Documentation
¶
Index ¶
- Constants
- Variables
- type AccessSource
- type AddMemoryMemberAddMemoryMemberAddMemoryMemberPayload
- type AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMember
- type AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser
- func (v *AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser) GetEmail() *string
- func (v *AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser) GetHandle() *string
- func (v *AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser) GetId() string
- func (v *AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser) GetName() *string
- func (v *AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser) MarshalJSON() ([]byte, error)
- func (v *AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser) UnmarshalJSON(b []byte) error
- type AddMemoryMemberResponse
- type AddOrgMemberAddOrgMember
- type AddOrgMemberAddOrgMemberUser
- func (v *AddOrgMemberAddOrgMemberUser) GetEmail() *string
- func (v *AddOrgMemberAddOrgMemberUser) GetGithubUsername() *string
- func (v *AddOrgMemberAddOrgMemberUser) GetHandle() *string
- func (v *AddOrgMemberAddOrgMemberUser) GetId() string
- func (v *AddOrgMemberAddOrgMemberUser) GetName() *string
- func (v *AddOrgMemberAddOrgMemberUser) GetRoles() []Role
- func (v *AddOrgMemberAddOrgMemberUser) MarshalJSON() ([]byte, error)
- func (v *AddOrgMemberAddOrgMemberUser) UnmarshalJSON(b []byte) error
- type AddOrgMemberResponse
- type AiConfigOwnerType
- type AiServiceConfigFields
- func (v *AiServiceConfigFields) GetApiKeyPreview() *string
- func (v *AiServiceConfigFields) GetCreatedAt() string
- func (v *AiServiceConfigFields) GetEnabled() bool
- func (v *AiServiceConfigFields) GetHasApiKey() bool
- func (v *AiServiceConfigFields) GetId() string
- func (v *AiServiceConfigFields) GetModel() string
- func (v *AiServiceConfigFields) GetName() string
- func (v *AiServiceConfigFields) GetOwnerId() string
- func (v *AiServiceConfigFields) GetOwnerType() AiConfigOwnerType
- func (v *AiServiceConfigFields) GetParams() *json.RawMessage
- func (v *AiServiceConfigFields) GetProvider() string
- func (v *AiServiceConfigFields) GetUpdatedAt() *string
- type AppType
- type AppsAppsApp
- type AppsResponse
- type CloneMemoryCloneMemory
- func (v *CloneMemoryCloneMemory) GetClass() MemoryClass
- func (v *CloneMemoryCloneMemory) GetId() string
- func (v *CloneMemoryCloneMemory) GetIsEncrypted() bool
- func (v *CloneMemoryCloneMemory) GetName() string
- func (v *CloneMemoryCloneMemory) GetOrganizationId() string
- func (v *CloneMemoryCloneMemory) GetShortDescription() *string
- func (v *CloneMemoryCloneMemory) GetUpdatedAt() string
- func (v *CloneMemoryCloneMemory) GetUrn() string
- func (v *CloneMemoryCloneMemory) GetVisibility() *MemoryVisibility
- type CloneMemoryResponse
- type CreateAiServiceConfigCreateAiServiceConfig
- func (v *CreateAiServiceConfigCreateAiServiceConfig) GetApiKeyPreview() *string
- func (v *CreateAiServiceConfigCreateAiServiceConfig) GetCreatedAt() string
- func (v *CreateAiServiceConfigCreateAiServiceConfig) GetEnabled() bool
- func (v *CreateAiServiceConfigCreateAiServiceConfig) GetHasApiKey() bool
- func (v *CreateAiServiceConfigCreateAiServiceConfig) GetId() string
- func (v *CreateAiServiceConfigCreateAiServiceConfig) GetModel() string
- func (v *CreateAiServiceConfigCreateAiServiceConfig) GetName() string
- func (v *CreateAiServiceConfigCreateAiServiceConfig) GetOwnerId() string
- func (v *CreateAiServiceConfigCreateAiServiceConfig) GetOwnerType() AiConfigOwnerType
- func (v *CreateAiServiceConfigCreateAiServiceConfig) GetParams() *json.RawMessage
- func (v *CreateAiServiceConfigCreateAiServiceConfig) GetProvider() string
- func (v *CreateAiServiceConfigCreateAiServiceConfig) GetUpdatedAt() *string
- func (v *CreateAiServiceConfigCreateAiServiceConfig) MarshalJSON() ([]byte, error)
- func (v *CreateAiServiceConfigCreateAiServiceConfig) UnmarshalJSON(b []byte) error
- type CreateAiServiceConfigResponse
- type CreateAppCreateApp
- func (v *CreateAppCreateApp) GetAgentId() *string
- func (v *CreateAppCreateApp) GetAppType() AppType
- func (v *CreateAppCreateApp) GetCreatedAt() string
- func (v *CreateAppCreateApp) GetId() string
- func (v *CreateAppCreateApp) GetMemberCount() int
- func (v *CreateAppCreateApp) GetName() string
- func (v *CreateAppCreateApp) GetUrn() string
- type CreateAppResponse
- type CreateEdgeCreateEdge
- func (v *CreateEdgeCreateEdge) GetId() string
- func (v *CreateEdgeCreateEdge) GetIsRunnable() *bool
- func (v *CreateEdgeCreateEdge) GetLoc() string
- func (v *CreateEdgeCreateEdge) GetName() *string
- func (v *CreateEdgeCreateEdge) GetPriority() int
- func (v *CreateEdgeCreateEdge) GetSource() *CreateEdgeCreateEdgeSourceNode
- func (v *CreateEdgeCreateEdge) GetTarget() *CreateEdgeCreateEdgeTargetNode
- type CreateEdgeCreateEdgeSourceNode
- type CreateEdgeCreateEdgeTargetNode
- type CreateEdgeResponse
- type CreateMemoryCreateMemory
- func (v *CreateMemoryCreateMemory) GetClass() MemoryClass
- func (v *CreateMemoryCreateMemory) GetId() string
- func (v *CreateMemoryCreateMemory) GetIsEncrypted() bool
- func (v *CreateMemoryCreateMemory) GetName() string
- func (v *CreateMemoryCreateMemory) GetOrganizationId() string
- func (v *CreateMemoryCreateMemory) GetShortDescription() *string
- func (v *CreateMemoryCreateMemory) GetUpdatedAt() string
- func (v *CreateMemoryCreateMemory) GetUrn() string
- func (v *CreateMemoryCreateMemory) GetVisibility() *MemoryVisibility
- type CreateMemoryResponse
- type CreateMemoryShareCreateMemoryShareCreateMemorySharePayload
- type CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShare
- type CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser
- func (v *CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser) GetEmail() *string
- func (v *CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser) GetHandle() *string
- func (v *CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser) GetId() string
- func (v *CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser) GetName() *string
- func (v *CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser) MarshalJSON() ([]byte, error)
- func (v *CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser) UnmarshalJSON(b []byte) error
- type CreateMemoryShareResponse
- type CreateOrganizationCreateOrganization
- func (v *CreateOrganizationCreateOrganization) GetCreatedAt() string
- func (v *CreateOrganizationCreateOrganization) GetId() string
- func (v *CreateOrganizationCreateOrganization) GetIsVisible() *bool
- func (v *CreateOrganizationCreateOrganization) GetName() string
- func (v *CreateOrganizationCreateOrganization) GetUpdatedAt() string
- func (v *CreateOrganizationCreateOrganization) GetUrn() string
- func (v *CreateOrganizationCreateOrganization) MarshalJSON() ([]byte, error)
- func (v *CreateOrganizationCreateOrganization) UnmarshalJSON(b []byte) error
- type CreateOrganizationResponse
- type CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResult
- type CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey
- func (v *CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetCreatedAt() string
- func (v *CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetId() string
- func (v *CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetIssuedVia() *string
- func (v *CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetKeyPreview() string
- func (v *CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetLabel() *string
- func (v *CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetLastUsedAt() *string
- func (v *CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetRevokedAt() *string
- func (v *CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) MarshalJSON() ([]byte, error)
- func (v *CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) UnmarshalJSON(b []byte) error
- type CreateUserApiKeyResponse
- type DeleteAiServiceConfigResponse
- type DeleteAppResponse
- type DeleteEdgeResponse
- type DeleteMemoryResponse
- type DeleteNodeResponse
- type DeleteOrganizationResponse
- type EffectiveAccessEffectiveAccess
- func (v *EffectiveAccessEffectiveAccess) GetCanDelete() bool
- func (v *EffectiveAccessEffectiveAccess) GetCanManage() bool
- func (v *EffectiveAccessEffectiveAccess) GetCanRead() bool
- func (v *EffectiveAccessEffectiveAccess) GetCanWrite() bool
- func (v *EffectiveAccessEffectiveAccess) GetGrants() []*EffectiveAccessEffectiveAccessGrantsAccessGrant
- func (v *EffectiveAccessEffectiveAccess) GetResourceKind() string
- func (v *EffectiveAccessEffectiveAccess) GetResourceUrn() string
- func (v *EffectiveAccessEffectiveAccess) GetRole() *string
- func (v *EffectiveAccessEffectiveAccess) GetUser() *EffectiveAccessEffectiveAccessUser
- type EffectiveAccessEffectiveAccessGrantsAccessGrant
- type EffectiveAccessEffectiveAccessUser
- type EffectiveAccessResponse
- type GetMemoryMemory
- func (v *GetMemoryMemory) GetClass() MemoryClass
- func (v *GetMemoryMemory) GetCreatedAt() string
- func (v *GetMemoryMemory) GetData() *json.RawMessage
- func (v *GetMemoryMemory) GetDescription() *string
- func (v *GetMemoryMemory) GetId() string
- func (v *GetMemoryMemory) GetIsEncrypted() bool
- func (v *GetMemoryMemory) GetName() string
- func (v *GetMemoryMemory) GetOrganizationId() string
- func (v *GetMemoryMemory) GetShortDescription() *string
- func (v *GetMemoryMemory) GetSource() *string
- func (v *GetMemoryMemory) GetSyncStatus() SyncStatus
- func (v *GetMemoryMemory) GetTags() []string
- func (v *GetMemoryMemory) GetUpdatedAt() string
- func (v *GetMemoryMemory) GetUrn() string
- func (v *GetMemoryMemory) GetVectorIndexEnabled() bool
- func (v *GetMemoryMemory) GetVisibility() *MemoryVisibility
- type GetMemoryResponse
- type GetNodeByIdNodeByIdNode
- func (v *GetNodeByIdNodeByIdNode) GetAbstract() *string
- func (v *GetNodeByIdNodeByIdNode) GetAbstractOriginHash() *string
- func (v *GetNodeByIdNodeByIdNode) GetContent() *string
- func (v *GetNodeByIdNodeByIdNode) GetCreatedAt() string
- func (v *GetNodeByIdNodeByIdNode) GetData() *json.RawMessage
- func (v *GetNodeByIdNodeByIdNode) GetDescription() *string
- func (v *GetNodeByIdNodeByIdNode) GetId() string
- func (v *GetNodeByIdNodeByIdNode) GetIncomingEdges() []*GetNodeByIdNodeByIdNodeIncomingEdgesEdge
- func (v *GetNodeByIdNodeByIdNode) GetIsRunnable() *bool
- func (v *GetNodeByIdNodeByIdNode) GetLoc() string
- func (v *GetNodeByIdNodeByIdNode) GetMemoryId() string
- func (v *GetNodeByIdNodeByIdNode) GetName() string
- func (v *GetNodeByIdNodeByIdNode) GetNodeType() string
- func (v *GetNodeByIdNodeByIdNode) GetOutgoingEdges() []*GetNodeByIdNodeByIdNodeOutgoingEdgesEdge
- func (v *GetNodeByIdNodeByIdNode) GetSeq() *int
- func (v *GetNodeByIdNodeByIdNode) GetTags() []string
- func (v *GetNodeByIdNodeByIdNode) GetUpdatedAt() string
- type GetNodeByIdNodeByIdNodeIncomingEdgesEdge
- func (v *GetNodeByIdNodeByIdNodeIncomingEdgesEdge) GetId() string
- func (v *GetNodeByIdNodeByIdNodeIncomingEdgesEdge) GetIsRunnable() *bool
- func (v *GetNodeByIdNodeByIdNodeIncomingEdgesEdge) GetLoc() string
- func (v *GetNodeByIdNodeByIdNodeIncomingEdgesEdge) GetName() *string
- func (v *GetNodeByIdNodeByIdNodeIncomingEdgesEdge) GetPriority() int
- func (v *GetNodeByIdNodeByIdNodeIncomingEdgesEdge) GetSource() *GetNodeByIdNodeByIdNodeIncomingEdgesEdgeSourceNode
- type GetNodeByIdNodeByIdNodeIncomingEdgesEdgeSourceNode
- type GetNodeByIdNodeByIdNodeOutgoingEdgesEdge
- func (v *GetNodeByIdNodeByIdNodeOutgoingEdgesEdge) GetId() string
- func (v *GetNodeByIdNodeByIdNodeOutgoingEdgesEdge) GetIsRunnable() *bool
- func (v *GetNodeByIdNodeByIdNodeOutgoingEdgesEdge) GetLoc() string
- func (v *GetNodeByIdNodeByIdNodeOutgoingEdgesEdge) GetName() *string
- func (v *GetNodeByIdNodeByIdNodeOutgoingEdgesEdge) GetPriority() int
- func (v *GetNodeByIdNodeByIdNodeOutgoingEdgesEdge) GetTarget() *GetNodeByIdNodeByIdNodeOutgoingEdgesEdgeTargetNode
- type GetNodeByIdNodeByIdNodeOutgoingEdgesEdgeTargetNode
- type GetNodeByIdResponse
- type GetOrganizationOrganization
- func (v *GetOrganizationOrganization) GetCreatedAt() string
- func (v *GetOrganizationOrganization) GetId() string
- func (v *GetOrganizationOrganization) GetIsVisible() *bool
- func (v *GetOrganizationOrganization) GetName() string
- func (v *GetOrganizationOrganization) GetUpdatedAt() string
- func (v *GetOrganizationOrganization) GetUrn() string
- func (v *GetOrganizationOrganization) MarshalJSON() ([]byte, error)
- func (v *GetOrganizationOrganization) UnmarshalJSON(b []byte) error
- type GetOrganizationResponse
- type MeMeUser
- type MeResponse
- type MemUserFields
- type MemoryClass
- type MemoryMemberRole
- type MemoryMembersMemory
- type MemoryMembersMemoryMembersMemoryMember
- type MemoryMembersMemoryMembersMemoryMemberUser
- func (v *MemoryMembersMemoryMembersMemoryMemberUser) GetEmail() *string
- func (v *MemoryMembersMemoryMembersMemoryMemberUser) GetHandle() *string
- func (v *MemoryMembersMemoryMembersMemoryMemberUser) GetId() string
- func (v *MemoryMembersMemoryMembersMemoryMemberUser) GetName() *string
- func (v *MemoryMembersMemoryMembersMemoryMemberUser) MarshalJSON() ([]byte, error)
- func (v *MemoryMembersMemoryMembersMemoryMemberUser) UnmarshalJSON(b []byte) error
- type MemoryMembersResponse
- type MemoryShareRole
- type MemorySharesMemory
- type MemorySharesMemorySharesMemoryShare
- type MemorySharesMemorySharesMemoryShareGranteeUser
- func (v *MemorySharesMemorySharesMemoryShareGranteeUser) GetEmail() *string
- func (v *MemorySharesMemorySharesMemoryShareGranteeUser) GetHandle() *string
- func (v *MemorySharesMemorySharesMemoryShareGranteeUser) GetId() string
- func (v *MemorySharesMemorySharesMemoryShareGranteeUser) GetName() *string
- func (v *MemorySharesMemorySharesMemoryShareGranteeUser) MarshalJSON() ([]byte, error)
- func (v *MemorySharesMemorySharesMemoryShareGranteeUser) UnmarshalJSON(b []byte) error
- type MemorySharesResponse
- type MemoryVisibility
- type MyMemoriesMyMemoriesMemory
- func (v *MyMemoriesMyMemoriesMemory) GetClass() MemoryClass
- func (v *MyMemoriesMyMemoriesMemory) GetId() string
- func (v *MyMemoriesMyMemoriesMemory) GetIsEncrypted() bool
- func (v *MyMemoriesMyMemoriesMemory) GetName() string
- func (v *MyMemoriesMyMemoriesMemory) GetOrganizationId() string
- func (v *MyMemoriesMyMemoriesMemory) GetShortDescription() *string
- func (v *MyMemoriesMyMemoriesMemory) GetUpdatedAt() string
- func (v *MyMemoriesMyMemoriesMemory) GetUrn() string
- func (v *MyMemoriesMyMemoriesMemory) GetVisibility() *MemoryVisibility
- type MyMemoriesResponse
- type MyUserApiKeysMyUserApiKeysUserApiKey
- func (v *MyUserApiKeysMyUserApiKeysUserApiKey) GetCreatedAt() string
- func (v *MyUserApiKeysMyUserApiKeysUserApiKey) GetId() string
- func (v *MyUserApiKeysMyUserApiKeysUserApiKey) GetIssuedVia() *string
- func (v *MyUserApiKeysMyUserApiKeysUserApiKey) GetKeyPreview() string
- func (v *MyUserApiKeysMyUserApiKeysUserApiKey) GetLabel() *string
- func (v *MyUserApiKeysMyUserApiKeysUserApiKey) GetLastUsedAt() *string
- func (v *MyUserApiKeysMyUserApiKeysUserApiKey) GetRevokedAt() *string
- func (v *MyUserApiKeysMyUserApiKeysUserApiKey) MarshalJSON() ([]byte, error)
- func (v *MyUserApiKeysMyUserApiKeysUserApiKey) UnmarshalJSON(b []byte) error
- type MyUserApiKeysResponse
- type NodeBatchNodeBatchNodeBatchResult
- func (v *NodeBatchNodeBatchNodeBatchResult) GetNodes() []*NodeBatchNodeBatchNodeBatchResultNodesNode
- func (v *NodeBatchNodeBatchNodeBatchResult) GetOmitted() []string
- func (v *NodeBatchNodeBatchNodeBatchResult) GetTruncated() bool
- func (v *NodeBatchNodeBatchNodeBatchResult) GetUnavailable() []string
- type NodeBatchNodeBatchNodeBatchResultNodesNode
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetAbstract() *string
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetAbstractOriginHash() *string
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetAlias() *string
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetContent() *string
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetData() *json.RawMessage
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetDescription() *string
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetId() string
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetIncomingEdges() []*NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetLoc() string
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetMemoryId() string
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetName() string
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetNodeType() string
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetOutgoingEdges() []*NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetProperties() *json.RawMessage
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetSeq() *int
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetTags() []string
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetUpdatedAt() string
- type NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge) GetIsRunnable() *bool
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge) GetLoc() string
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge) GetName() *string
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge) GetSource() *NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdgeSourceNode
- type NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdgeSourceNode
- type NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetCondition() *json.RawMessage
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetDescription() *string
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetIsRunnable() *bool
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetLoc() string
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetName() *string
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetPriority() int
- func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetTarget() *NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdgeTargetNode
- type NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdgeTargetNode
- type NodeBatchResponse
- type NodeEdgeInput
- type NodeExportFormat
- type NodeExportMetaNodeByIdNode
- type NodeExportMetaNodeByIdNodeMemory
- type NodeExportMetaResponse
- type NodeExportNodeExportNodeExportResult
- func (v *NodeExportNodeExportNodeExportResult) GetBytes() int
- func (v *NodeExportNodeExportNodeExportResult) GetData() string
- func (v *NodeExportNodeExportNodeExportResult) GetFilename() string
- func (v *NodeExportNodeExportNodeExportResult) GetFormat() NodeExportFormat
- func (v *NodeExportNodeExportNodeExportResult) GetMimeType() string
- type NodeExportResponse
- type NodeInput
- func (v *NodeInput) GetAbstract() *string
- func (v *NodeInput) GetAiAgent() *string
- func (v *NodeInput) GetAlias() *string
- func (v *NodeInput) GetContent() *string
- func (v *NodeInput) GetCreateOnly() *bool
- func (v *NodeInput) GetData() *json.RawMessage
- func (v *NodeInput) GetDescription() *string
- func (v *NodeInput) GetEdges() []*NodeEdgeInput
- func (v *NodeInput) GetId() *string
- func (v *NodeInput) GetIsRunnable() *bool
- func (v *NodeInput) GetLlmModel() *string
- func (v *NodeInput) GetLoc() string
- func (v *NodeInput) GetMemoryId() string
- func (v *NodeInput) GetName() string
- func (v *NodeInput) GetNodeType() *string
- func (v *NodeInput) GetOwnerRepo() *string
- func (v *NodeInput) GetProperties() *json.RawMessage
- func (v *NodeInput) GetReason() *string
- func (v *NodeInput) GetSeq() *int
- func (v *NodeInput) GetTags() []string
- type NodeSearchNodeSearchNodeSearchResult
- type NodeSearchNodeSearchNodeSearchResultNodesNode
- func (v *NodeSearchNodeSearchNodeSearchResultNodesNode) GetId() string
- func (v *NodeSearchNodeSearchNodeSearchResultNodesNode) GetLoc() string
- func (v *NodeSearchNodeSearchNodeSearchResultNodesNode) GetMemoryId() string
- func (v *NodeSearchNodeSearchNodeSearchResultNodesNode) GetName() string
- func (v *NodeSearchNodeSearchNodeSearchResultNodesNode) GetNodeType() string
- func (v *NodeSearchNodeSearchNodeSearchResultNodesNode) GetTags() []string
- func (v *NodeSearchNodeSearchNodeSearchResultNodesNode) GetUpdatedAt() string
- type NodeSearchResponse
- type NodeTextField
- type NodesNodesNode
- func (v *NodesNodesNode) GetId() string
- func (v *NodesNodesNode) GetIsRunnable() *bool
- func (v *NodesNodesNode) GetLoc() string
- func (v *NodesNodesNode) GetMemoryId() string
- func (v *NodesNodesNode) GetName() string
- func (v *NodesNodesNode) GetNodeType() string
- func (v *NodesNodesNode) GetSeq() *int
- func (v *NodesNodesNode) GetTags() []string
- func (v *NodesNodesNode) GetUpdatedAt() string
- type NodesResponse
- type OrgFields
- type OrgMembersOrganization
- type OrgMembersOrganizationMembersOrgMember
- type OrgMembersOrganizationMembersOrgMemberUser
- func (v *OrgMembersOrganizationMembersOrgMemberUser) GetEmail() *string
- func (v *OrgMembersOrganizationMembersOrgMemberUser) GetGithubUsername() *string
- func (v *OrgMembersOrganizationMembersOrgMemberUser) GetHandle() *string
- func (v *OrgMembersOrganizationMembersOrgMemberUser) GetId() string
- func (v *OrgMembersOrganizationMembersOrgMemberUser) GetName() *string
- func (v *OrgMembersOrganizationMembersOrgMemberUser) GetRoles() []Role
- func (v *OrgMembersOrganizationMembersOrgMemberUser) MarshalJSON() ([]byte, error)
- func (v *OrgMembersOrganizationMembersOrgMemberUser) UnmarshalJSON(b []byte) error
- type OrgMembersResponse
- type RemoveMemoryMemberRemoveMemoryMemberRemoveMemoryMemberPayload
- type RemoveMemoryMemberResponse
- type RemoveOrgMemberResponse
- type ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig
- func (v *ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetApiKeyPreview() *string
- func (v *ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetCreatedAt() string
- func (v *ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetEnabled() bool
- func (v *ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetHasApiKey() bool
- func (v *ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetId() string
- func (v *ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetModel() string
- func (v *ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetName() string
- func (v *ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetOwnerId() string
- func (v *ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetOwnerType() AiConfigOwnerType
- func (v *ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetParams() *json.RawMessage
- func (v *ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetProvider() string
- func (v *ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetUpdatedAt() *string
- type ResolveAiServiceConfigsResponse
- type ResolveUrnResolveUrnUrnResolution
- type ResolveUrnResponse
- type RevokeMemoryShareResponse
- type RevokeMemoryShareRevokeMemoryShareRevokeMemorySharePayload
- type RevokeUserApiKeyResponse
- type RevokeUserApiKeyRevokeUserApiKey
- func (v *RevokeUserApiKeyRevokeUserApiKey) GetCreatedAt() string
- func (v *RevokeUserApiKeyRevokeUserApiKey) GetId() string
- func (v *RevokeUserApiKeyRevokeUserApiKey) GetIssuedVia() *string
- func (v *RevokeUserApiKeyRevokeUserApiKey) GetKeyPreview() string
- func (v *RevokeUserApiKeyRevokeUserApiKey) GetLabel() *string
- func (v *RevokeUserApiKeyRevokeUserApiKey) GetLastUsedAt() *string
- func (v *RevokeUserApiKeyRevokeUserApiKey) GetRevokedAt() *string
- func (v *RevokeUserApiKeyRevokeUserApiKey) MarshalJSON() ([]byte, error)
- func (v *RevokeUserApiKeyRevokeUserApiKey) UnmarshalJSON(b []byte) error
- type Role
- type RunTaskResponse
- type SearchMode
- type SearchReplaceInNodesInput
- func (v *SearchReplaceInNodesInput) GetCaseInsensitive() *bool
- func (v *SearchReplaceInNodesInput) GetDryRun() *bool
- func (v *SearchReplaceInNodesInput) GetFields() []NodeTextField
- func (v *SearchReplaceInNodesInput) GetMemoryIds() []string
- func (v *SearchReplaceInNodesInput) GetNewText() string
- func (v *SearchReplaceInNodesInput) GetNodeIds() []string
- func (v *SearchReplaceInNodesInput) GetOldText() string
- func (v *SearchReplaceInNodesInput) GetPrefix() *string
- func (v *SearchReplaceInNodesInput) GetReason() *string
- func (v *SearchReplaceInNodesInput) GetRegex() *bool
- type SearchReplaceInNodesResponse
- type SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult
- func (v *SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult) GetDryRun() bool
- func (v *SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult) GetNodesChanged() int
- func (v *SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult) GetNodesScanned() int
- func (v *SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult) GetResults() ...
- func (v *SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult) GetTotalReplacements() int
- type SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult
- func (v *SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult) GetFields() ...
- func (v *SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult) GetLoc() string
- func (v *SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult) GetMemoryId() string
- func (v *SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult) GetNodeId() string
- func (v *SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult) GetReplacements() int
- type SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResultFieldsSearchReplaceFieldResult
- func (v *SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResultFieldsSearchReplaceFieldResult) GetField() NodeTextField
- func (v *SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResultFieldsSearchReplaceFieldResult) GetMatches() int
- type SearchUsersResponse
- type SearchUsersSearchUsersUser
- func (v *SearchUsersSearchUsersUser) GetEmail() *string
- func (v *SearchUsersSearchUsersUser) GetGithubUsername() *string
- func (v *SearchUsersSearchUsersUser) GetHandle() *string
- func (v *SearchUsersSearchUsersUser) GetId() string
- func (v *SearchUsersSearchUsersUser) GetName() *string
- func (v *SearchUsersSearchUsersUser) GetRoles() []Role
- func (v *SearchUsersSearchUsersUser) MarshalJSON() ([]byte, error)
- func (v *SearchUsersSearchUsersUser) UnmarshalJSON(b []byte) error
- type SyncStatus
- type UpdateAiServiceConfigResponse
- type UpdateAiServiceConfigUpdateAiServiceConfig
- func (v *UpdateAiServiceConfigUpdateAiServiceConfig) GetApiKeyPreview() *string
- func (v *UpdateAiServiceConfigUpdateAiServiceConfig) GetCreatedAt() string
- func (v *UpdateAiServiceConfigUpdateAiServiceConfig) GetEnabled() bool
- func (v *UpdateAiServiceConfigUpdateAiServiceConfig) GetHasApiKey() bool
- func (v *UpdateAiServiceConfigUpdateAiServiceConfig) GetId() string
- func (v *UpdateAiServiceConfigUpdateAiServiceConfig) GetModel() string
- func (v *UpdateAiServiceConfigUpdateAiServiceConfig) GetName() string
- func (v *UpdateAiServiceConfigUpdateAiServiceConfig) GetOwnerId() string
- func (v *UpdateAiServiceConfigUpdateAiServiceConfig) GetOwnerType() AiConfigOwnerType
- func (v *UpdateAiServiceConfigUpdateAiServiceConfig) GetParams() *json.RawMessage
- func (v *UpdateAiServiceConfigUpdateAiServiceConfig) GetProvider() string
- func (v *UpdateAiServiceConfigUpdateAiServiceConfig) GetUpdatedAt() *string
- func (v *UpdateAiServiceConfigUpdateAiServiceConfig) MarshalJSON() ([]byte, error)
- func (v *UpdateAiServiceConfigUpdateAiServiceConfig) UnmarshalJSON(b []byte) error
- type UpdateEdgeResponse
- type UpdateEdgeUpdateEdge
- func (v *UpdateEdgeUpdateEdge) GetId() string
- func (v *UpdateEdgeUpdateEdge) GetIsRunnable() *bool
- func (v *UpdateEdgeUpdateEdge) GetLoc() string
- func (v *UpdateEdgeUpdateEdge) GetName() *string
- func (v *UpdateEdgeUpdateEdge) GetPriority() int
- func (v *UpdateEdgeUpdateEdge) GetSource() *UpdateEdgeUpdateEdgeSourceNode
- func (v *UpdateEdgeUpdateEdge) GetTarget() *UpdateEdgeUpdateEdgeTargetNode
- type UpdateEdgeUpdateEdgeSourceNode
- type UpdateEdgeUpdateEdgeTargetNode
- type UpdateMemoryMemberRoleResponse
- type UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayload
- type UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMember
- type UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser
- func (v *UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser) GetEmail() *string
- func (v *UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser) GetHandle() *string
- func (v *UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser) GetId() string
- func (v *UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser) GetName() *string
- func (v *UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser) MarshalJSON() ([]byte, error)
- func (v *UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser) UnmarshalJSON(b []byte) error
- type UpdateMemoryResponse
- type UpdateMemoryShareRoleResponse
- type UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayload
- type UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShare
- type UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser
- func (v *UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser) GetEmail() *string
- func (v *UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser) GetHandle() *string
- func (v *UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser) GetId() string
- func (v *UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser) GetName() *string
- func (v *UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser) MarshalJSON() ([]byte, error)
- func (v *UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser) UnmarshalJSON(b []byte) error
- type UpdateMemoryUpdateMemory
- func (v *UpdateMemoryUpdateMemory) GetClass() MemoryClass
- func (v *UpdateMemoryUpdateMemory) GetData() *json.RawMessage
- func (v *UpdateMemoryUpdateMemory) GetId() string
- func (v *UpdateMemoryUpdateMemory) GetIsEncrypted() bool
- func (v *UpdateMemoryUpdateMemory) GetName() string
- func (v *UpdateMemoryUpdateMemory) GetOrganizationId() string
- func (v *UpdateMemoryUpdateMemory) GetShortDescription() *string
- func (v *UpdateMemoryUpdateMemory) GetUpdatedAt() string
- func (v *UpdateMemoryUpdateMemory) GetUrn() string
- func (v *UpdateMemoryUpdateMemory) GetVisibility() *MemoryVisibility
- type UpdateNodeDataResponse
- type UpdateNodeDataUpdateNodeDataNode
- func (v *UpdateNodeDataUpdateNodeDataNode) GetId() string
- func (v *UpdateNodeDataUpdateNodeDataNode) GetIsRunnable() *bool
- func (v *UpdateNodeDataUpdateNodeDataNode) GetLoc() string
- func (v *UpdateNodeDataUpdateNodeDataNode) GetMemoryId() string
- func (v *UpdateNodeDataUpdateNodeDataNode) GetName() string
- func (v *UpdateNodeDataUpdateNodeDataNode) GetNodeType() string
- func (v *UpdateNodeDataUpdateNodeDataNode) GetTags() []string
- func (v *UpdateNodeDataUpdateNodeDataNode) GetUpdatedAt() string
- type UpdateOrgMemberResponse
- type UpdateOrgMemberUpdateOrgMember
- type UpdateOrgMemberUpdateOrgMemberUser
- func (v *UpdateOrgMemberUpdateOrgMemberUser) GetEmail() *string
- func (v *UpdateOrgMemberUpdateOrgMemberUser) GetGithubUsername() *string
- func (v *UpdateOrgMemberUpdateOrgMemberUser) GetHandle() *string
- func (v *UpdateOrgMemberUpdateOrgMemberUser) GetId() string
- func (v *UpdateOrgMemberUpdateOrgMemberUser) GetName() *string
- func (v *UpdateOrgMemberUpdateOrgMemberUser) GetRoles() []Role
- func (v *UpdateOrgMemberUpdateOrgMemberUser) MarshalJSON() ([]byte, error)
- func (v *UpdateOrgMemberUpdateOrgMemberUser) UnmarshalJSON(b []byte) error
- type UpdateOrganizationResponse
- type UpdateOrganizationUpdateOrganization
- func (v *UpdateOrganizationUpdateOrganization) GetCreatedAt() string
- func (v *UpdateOrganizationUpdateOrganization) GetId() string
- func (v *UpdateOrganizationUpdateOrganization) GetIsVisible() *bool
- func (v *UpdateOrganizationUpdateOrganization) GetName() string
- func (v *UpdateOrganizationUpdateOrganization) GetUpdatedAt() string
- func (v *UpdateOrganizationUpdateOrganization) GetUrn() string
- func (v *UpdateOrganizationUpdateOrganization) MarshalJSON() ([]byte, error)
- func (v *UpdateOrganizationUpdateOrganization) UnmarshalJSON(b []byte) error
- type UpsertNodeResponse
- type UpsertNodeUpsertNode
- func (v *UpsertNodeUpsertNode) GetId() string
- func (v *UpsertNodeUpsertNode) GetIsRunnable() *bool
- func (v *UpsertNodeUpsertNode) GetLoc() string
- func (v *UpsertNodeUpsertNode) GetMemoryId() string
- func (v *UpsertNodeUpsertNode) GetName() string
- func (v *UpsertNodeUpsertNode) GetNodeType() string
- func (v *UpsertNodeUpsertNode) GetTags() []string
- func (v *UpsertNodeUpsertNode) GetUpdatedAt() string
- type UserApiKeyFields
- func (v *UserApiKeyFields) GetCreatedAt() string
- func (v *UserApiKeyFields) GetId() string
- func (v *UserApiKeyFields) GetIssuedVia() *string
- func (v *UserApiKeyFields) GetKeyPreview() string
- func (v *UserApiKeyFields) GetLabel() *string
- func (v *UserApiKeyFields) GetLastUsedAt() *string
- func (v *UserApiKeyFields) GetRevokedAt() *string
- type UserFields
Constants ¶
const AddMemoryMember_Operation = `` /* 286-byte string literal not displayed */
The mutation executed by AddMemoryMember.
const AddOrgMember_Operation = `` /* 256-byte string literal not displayed */
The mutation executed by AddOrgMember.
const Apps_Operation = `
query Apps ($orgId: ID!) {
apps(orgId: $orgId) {
id
urn
name
appType
agentId
memberCount
createdAt
}
}
`
The query executed by Apps.
const CloneMemory_Operation = `` /* 194-byte string literal not displayed */
The mutation executed by CloneMemory.
const CreateAiServiceConfig_Operation = `` /* 554-byte string literal not displayed */
The mutation executed by CreateAiServiceConfig.
const CreateApp_Operation = `` /* 308-byte string literal not displayed */
The mutation executed by CreateApp.
const CreateEdge_Operation = `` /* 493-byte string literal not displayed */
The mutation executed by CreateEdge.
The mutation executed by CreateMemoryShare.
const CreateMemory_Operation = `` /* 459-byte string literal not displayed */
The mutation executed by CreateMemory.
const CreateOrganization_Operation = `` /* 217-byte string literal not displayed */
The mutation executed by CreateOrganization.
const CreateUserApiKey_Operation = `` /* 250-byte string literal not displayed */
The mutation executed by CreateUserApiKey.
const DeleteAiServiceConfig_Operation = `
mutation DeleteAiServiceConfig ($id: ID!) {
deleteAiServiceConfig(id: $id)
}
`
The mutation executed by DeleteAiServiceConfig.
const DeleteApp_Operation = `
mutation DeleteApp ($id: ID!) {
deleteApp(id: $id)
}
`
The mutation executed by DeleteApp.
const DeleteEdge_Operation = `
mutation DeleteEdge ($edgeId: ID!) {
deleteEdge(edgeId: $edgeId)
}
`
The mutation executed by DeleteEdge.
const DeleteMemory_Operation = `
mutation DeleteMemory ($id: ID!) {
deleteMemory(id: $id)
}
`
The mutation executed by DeleteMemory.
const DeleteNode_Operation = `
mutation DeleteNode ($loc: String!, $memoryId: String!) {
deleteNode(loc: $loc, memoryId: $memoryId)
}
`
The mutation executed by DeleteNode.
const DeleteOrganization_Operation = `
mutation DeleteOrganization ($id: ID!) {
deleteOrganization(id: $id)
}
`
The mutation executed by DeleteOrganization.
const EffectiveAccess_Operation = `` /* 279-byte string literal not displayed */
The query executed by EffectiveAccess.
const GetMemory_Operation = `` /* 238-byte string literal not displayed */
The query executed by GetMemory.
const GetNodeById_Operation = `` /* 439-byte string literal not displayed */
The query executed by GetNodeById.
const GetOrganization_Operation = `` /* 169-byte string literal not displayed */
The query executed by GetOrganization.
const Me_Operation = `
query Me {
me {
id
name
email
handle
githubUsername
roles
}
}
`
The query executed by Me.
const MemoryMembers_Operation = `` /* 197-byte string literal not displayed */
The query executed by MemoryMembers.
The query executed by MemoryShares.
const MyMemories_Operation = `` /* 212-byte string literal not displayed */
The query executed by MyMemories.
const MyUserApiKeys_Operation = `` /* 180-byte string literal not displayed */
The query executed by MyUserApiKeys.
const NodeBatch_Operation = `` /* 531-byte string literal not displayed */
The query executed by NodeBatch.
const NodeExportMeta_Operation = `
query NodeExportMeta ($id: ID!) {
nodeById(id: $id) {
loc
name
memoryId
memory {
urn
}
}
}
`
The query executed by NodeExportMeta.
const NodeExport_Operation = `` /* 162-byte string literal not displayed */
The query executed by NodeExport.
const NodeSearch_Operation = `` /* 275-byte string literal not displayed */
The query executed by NodeSearch.
const Nodes_Operation = `` /* 383-byte string literal not displayed */
The query executed by Nodes.
const OrgMembers_Operation = `` /* 223-byte string literal not displayed */
The query executed by OrgMembers.
const RemoveMemoryMember_Operation = `` /* 147-byte string literal not displayed */
The mutation executed by RemoveMemoryMember.
const RemoveOrgMember_Operation = `
mutation RemoveOrgMember ($orgId: ID!, $userId: ID!) {
removeOrgMember(orgId: $orgId, userId: $userId)
}
`
The mutation executed by RemoveOrgMember.
const ResolveAiServiceConfigs_Operation = `` /* 250-byte string literal not displayed */
The query executed by ResolveAiServiceConfigs.
const ResolveUrn_Operation = `
query ResolveUrn ($urn: String!) {
resolveUrn(urn: $urn) {
id
kind
memoryId
}
}
`
The query executed by ResolveUrn.
The mutation executed by RevokeMemoryShare.
const RevokeUserApiKey_Operation = `` /* 209-byte string literal not displayed */
The mutation executed by RevokeUserApiKey.
const RunTask_Operation = `` /* 145-byte string literal not displayed */
The mutation executed by RunTask.
const SearchReplaceInNodes_Operation = `` /* 273-byte string literal not displayed */
The mutation executed by SearchReplaceInNodes.
const SearchUsers_Operation = `` /* 171-byte string literal not displayed */
The query executed by SearchUsers.
const UpdateAiServiceConfig_Operation = `` /* 481-byte string literal not displayed */
The mutation executed by UpdateAiServiceConfig.
const UpdateEdge_Operation = `` /* 425-byte string literal not displayed */
The mutation executed by UpdateEdge.
const UpdateMemoryMemberRole_Operation = `` /* 300-byte string literal not displayed */
The mutation executed by UpdateMemoryMemberRole.
The mutation executed by UpdateMemoryShareRole.
const UpdateMemory_Operation = `` /* 428-byte string literal not displayed */
The mutation executed by UpdateMemory.
const UpdateNodeData_Operation = `` /* 215-byte string literal not displayed */
The mutation executed by UpdateNodeData.
const UpdateOrgMember_Operation = `` /* 262-byte string literal not displayed */
The mutation executed by UpdateOrgMember.
const UpdateOrganization_Operation = `` /* 278-byte string literal not displayed */
The mutation executed by UpdateOrganization.
const UpsertNode_Operation = `` /* 150-byte string literal not displayed */
The mutation executed by UpsertNode.
Variables ¶
var AllAccessSource = []AccessSource{ AccessSourceAgentSubscription, AccessSourceAiconfigOwner, AccessSourceAppMember, AccessSourceMemoryMember, AccessSourceMemoryPrincipal, AccessSourceMemoryShare, AccessSourceNodeInherited, AccessSourceOrgRole, AccessSourcePlatformRole, AccessSourcePublicVisibility, }
var AllAiConfigOwnerType = []AiConfigOwnerType{ AiConfigOwnerTypeAgent, AiConfigOwnerTypeApp, AiConfigOwnerTypeHadronServer, AiConfigOwnerTypeOrganization, }
var AllAppType = []AppType{ AppTypeAgent, AppTypeAutomation, AppTypeChatbot, AppTypeCloud, AppTypeIot, AppTypeWorkstation, }
var AllMemoryClass = []MemoryClass{ MemoryClassApp, MemoryClassGroup, MemoryClassKnowledge, MemoryClassPersonal, MemoryClassPrivate, MemoryClassSystem, }
var AllMemoryMemberRole = []MemoryMemberRole{ MemoryMemberRoleOwner, MemoryMemberRoleReader, MemoryMemberRoleWriter, }
var AllMemoryVisibility = []MemoryVisibility{ MemoryVisibilityGroup, MemoryVisibilityOrganization, MemoryVisibilityPublic, }
var AllNodeExportFormat = []NodeExportFormat{ NodeExportFormatJson, NodeExportFormatMd, }
var AllNodeTextField = []NodeTextField{ NodeTextFieldAbstract, NodeTextFieldAlias, NodeTextFieldContent, NodeTextFieldDescription, NodeTextFieldName, NodeTextFieldTags, }
var AllRole = []Role{ RoleAdmin, RoleContributor, RoleOwner, RoleReader, }
var AllSearchMode = []SearchMode{ SearchModeHybrid, SearchModeKeyword, SearchModeVector, }
var AllSyncStatus = []SyncStatus{ SyncStatusError, SyncStatusOk, SyncStatusPending, SyncStatusSyncing, }
Functions ¶
This section is empty.
Types ¶
type AccessSource ¶ added in v0.4.0
type AccessSource string
issue #323: where a single grant in an EffectiveAccess result comes from.
const ( // active AgentSubscription, or an org-level AgentOrgGrant the user inherits. AccessSourceAgentSubscription AccessSource = "AGENT_SUBSCRIPTION" // admin of the AI config's owning entity. AccessSourceAiconfigOwner AccessSource = "AICONFIG_OWNER" // AppMember row. AccessSourceAppMember AccessSource = "APP_MEMBER" // group-class team membership row (MemoryMember). AccessSourceMemoryMember AccessSource = "MEMORY_MEMBER" // personal/private memory owner (Memory.userId). AccessSourceMemoryPrincipal AccessSource = "MEMORY_PRINCIPAL" AccessSourceMemoryShare AccessSource = "MEMORY_SHARE" // node inherits its memory's access. AccessSourceNodeInherited AccessSource = "NODE_INHERITED" // ADMIN/OWNER (or, for org-readable knowledge, any Role) of the owning org. AccessSourceOrgRole AccessSource = "ORG_ROLE" // Platform ADMIN/OWNER. AccessSourcePlatformRole AccessSource = "PLATFORM_ROLE" // resource is publicly / universally visible. AccessSourcePublicVisibility AccessSource = "PUBLIC_VISIBILITY" )
type AddMemoryMemberAddMemoryMemberAddMemoryMemberPayload ¶ added in v0.3.0
type AddMemoryMemberAddMemoryMemberAddMemoryMemberPayload struct {
MemoryMember *AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMember `json:"memoryMember"`
}
AddMemoryMemberAddMemoryMemberAddMemoryMemberPayload includes the requested fields of the GraphQL type AddMemoryMemberPayload.
func (*AddMemoryMemberAddMemoryMemberAddMemoryMemberPayload) GetMemoryMember ¶ added in v0.3.0
func (v *AddMemoryMemberAddMemoryMemberAddMemoryMemberPayload) GetMemoryMember() *AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMember
GetMemoryMember returns AddMemoryMemberAddMemoryMemberAddMemoryMemberPayload.MemoryMember, and is useful for accessing the field via an interface.
type AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMember ¶ added in v0.3.0
type AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMember struct {
Role MemoryMemberRole `json:"role"`
User *AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser `json:"user"`
}
AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMember includes the requested fields of the GraphQL type MemoryMember. The GraphQL type's documentation follows.
023-app-shape US4: symmetric team-membership row for group-class memory. The "Company Brain" model — multiple users collaboratively read/write a shared memory, governance by role, no single owner on the Memory itself.
func (*AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMember) GetRole ¶ added in v0.3.0
func (v *AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMember) GetRole() MemoryMemberRole
GetRole returns AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMember.Role, and is useful for accessing the field via an interface.
func (*AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMember) GetUser ¶ added in v0.3.0
func (v *AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMember) GetUser() *AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser
GetUser returns AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMember.User, and is useful for accessing the field via an interface.
type AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser ¶ added in v0.3.0
type AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser struct {
MemUserFields `json:"-"`
}
AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser includes the requested fields of the GraphQL type User.
func (*AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser) GetEmail ¶ added in v0.3.0
func (v *AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser) GetEmail() *string
GetEmail returns AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser.Email, and is useful for accessing the field via an interface.
func (*AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser) GetHandle ¶ added in v0.3.0
func (v *AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser) GetHandle() *string
GetHandle returns AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser.Handle, and is useful for accessing the field via an interface.
func (*AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser) GetId ¶ added in v0.3.0
func (v *AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser) GetId() string
GetId returns AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser.Id, and is useful for accessing the field via an interface.
func (*AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser) GetName ¶ added in v0.3.0
func (v *AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser) GetName() *string
GetName returns AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser.Name, and is useful for accessing the field via an interface.
func (*AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser) MarshalJSON ¶ added in v0.3.0
func (v *AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser) MarshalJSON() ([]byte, error)
func (*AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser) UnmarshalJSON ¶ added in v0.3.0
func (v *AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser) UnmarshalJSON(b []byte) error
type AddMemoryMemberResponse ¶ added in v0.3.0
type AddMemoryMemberResponse struct {
// 023-app-shape US4 — add a team member to a group-class Memory.
// Idempotent on the (memoryId, userId) PK: re-calling with a
// different role upserts the role.
//
// The caller MUST be an owner of the Memory (role = owner). The
// bootstrap case is handled by createMemory itself, which adds the
// creator as the first owner of a newly-created group memory.
//
// Error codes (extensions.code, Error.name style):
// - UNAUTHENTICATED — no logged-in user in context.
// - FORBIDDEN — caller is not an owner of the memory. (Uniform
// for missing-memory / wrong-class / not-an-owner cases, by
// the same don't-leak-metadata rule as MemoryShare mutations.)
// - InvalidMemoryClassForMemberError — memory is not group-class
// (only reachable from non-GraphQL callers in v1 — the
// caller-authority guard short-circuits to FORBIDDEN first).
// - MemoryMemberUserMissingError — the userId doesn't resolve.
// - LastOwnerProtectedError (FR-038) — reachable via the
// idempotent upsert path when the call would demote an
// existing sole owner to reader/writer.
AddMemoryMember *AddMemoryMemberAddMemoryMemberAddMemoryMemberPayload `json:"addMemoryMember"`
}
AddMemoryMemberResponse is returned by AddMemoryMember on success.
func AddMemoryMember ¶ added in v0.3.0
func AddMemoryMember( ctx_ context.Context, client_ graphql.Client, memoryId string, userId string, role MemoryMemberRole, ) (data_ *AddMemoryMemberResponse, err_ error)
func (*AddMemoryMemberResponse) GetAddMemoryMember ¶ added in v0.3.0
func (v *AddMemoryMemberResponse) GetAddMemoryMember() *AddMemoryMemberAddMemoryMemberAddMemoryMemberPayload
GetAddMemoryMember returns AddMemoryMemberResponse.AddMemoryMember, and is useful for accessing the field via an interface.
type AddOrgMemberAddOrgMember ¶ added in v0.3.0
type AddOrgMemberAddOrgMember struct {
Id string `json:"id"`
Role Role `json:"role"`
User *AddOrgMemberAddOrgMemberUser `json:"user"`
}
AddOrgMemberAddOrgMember includes the requested fields of the GraphQL type OrgMember.
func (*AddOrgMemberAddOrgMember) GetId ¶ added in v0.3.0
func (v *AddOrgMemberAddOrgMember) GetId() string
GetId returns AddOrgMemberAddOrgMember.Id, and is useful for accessing the field via an interface.
func (*AddOrgMemberAddOrgMember) GetRole ¶ added in v0.3.0
func (v *AddOrgMemberAddOrgMember) GetRole() Role
GetRole returns AddOrgMemberAddOrgMember.Role, and is useful for accessing the field via an interface.
func (*AddOrgMemberAddOrgMember) GetUser ¶ added in v0.3.0
func (v *AddOrgMemberAddOrgMember) GetUser() *AddOrgMemberAddOrgMemberUser
GetUser returns AddOrgMemberAddOrgMember.User, and is useful for accessing the field via an interface.
type AddOrgMemberAddOrgMemberUser ¶ added in v0.3.0
type AddOrgMemberAddOrgMemberUser struct {
UserFields `json:"-"`
}
AddOrgMemberAddOrgMemberUser includes the requested fields of the GraphQL type User.
func (*AddOrgMemberAddOrgMemberUser) GetEmail ¶ added in v0.3.0
func (v *AddOrgMemberAddOrgMemberUser) GetEmail() *string
GetEmail returns AddOrgMemberAddOrgMemberUser.Email, and is useful for accessing the field via an interface.
func (*AddOrgMemberAddOrgMemberUser) GetGithubUsername ¶ added in v0.3.0
func (v *AddOrgMemberAddOrgMemberUser) GetGithubUsername() *string
GetGithubUsername returns AddOrgMemberAddOrgMemberUser.GithubUsername, and is useful for accessing the field via an interface.
func (*AddOrgMemberAddOrgMemberUser) GetHandle ¶ added in v0.3.0
func (v *AddOrgMemberAddOrgMemberUser) GetHandle() *string
GetHandle returns AddOrgMemberAddOrgMemberUser.Handle, and is useful for accessing the field via an interface.
func (*AddOrgMemberAddOrgMemberUser) GetId ¶ added in v0.3.0
func (v *AddOrgMemberAddOrgMemberUser) GetId() string
GetId returns AddOrgMemberAddOrgMemberUser.Id, and is useful for accessing the field via an interface.
func (*AddOrgMemberAddOrgMemberUser) GetName ¶ added in v0.3.0
func (v *AddOrgMemberAddOrgMemberUser) GetName() *string
GetName returns AddOrgMemberAddOrgMemberUser.Name, and is useful for accessing the field via an interface.
func (*AddOrgMemberAddOrgMemberUser) GetRoles ¶ added in v0.3.0
func (v *AddOrgMemberAddOrgMemberUser) GetRoles() []Role
GetRoles returns AddOrgMemberAddOrgMemberUser.Roles, and is useful for accessing the field via an interface.
func (*AddOrgMemberAddOrgMemberUser) MarshalJSON ¶ added in v0.3.0
func (v *AddOrgMemberAddOrgMemberUser) MarshalJSON() ([]byte, error)
func (*AddOrgMemberAddOrgMemberUser) UnmarshalJSON ¶ added in v0.3.0
func (v *AddOrgMemberAddOrgMemberUser) UnmarshalJSON(b []byte) error
type AddOrgMemberResponse ¶ added in v0.3.0
type AddOrgMemberResponse struct {
// Accepts the entity's ID or URN (orgId).
AddOrgMember *AddOrgMemberAddOrgMember `json:"addOrgMember"`
}
AddOrgMemberResponse is returned by AddOrgMember on success.
func AddOrgMember ¶ added in v0.3.0
func (*AddOrgMemberResponse) GetAddOrgMember ¶ added in v0.3.0
func (v *AddOrgMemberResponse) GetAddOrgMember() *AddOrgMemberAddOrgMember
GetAddOrgMember returns AddOrgMemberResponse.AddOrgMember, and is useful for accessing the field via an interface.
type AiConfigOwnerType ¶ added in v0.2.0
type AiConfigOwnerType string
036-ai-service-config: which entity owns an AiServiceConfig. Exactly one owner per config (DB-enforced).
const ( AiConfigOwnerTypeAgent AiConfigOwnerType = "AGENT" AiConfigOwnerTypeApp AiConfigOwnerType = "APP" AiConfigOwnerTypeHadronServer AiConfigOwnerType = "HADRON_SERVER" AiConfigOwnerTypeOrganization AiConfigOwnerType = "ORGANIZATION" )
type AiServiceConfigFields ¶ added in v0.3.0
type AiServiceConfigFields struct {
Id string `json:"id"`
Name string `json:"name"`
OwnerType AiConfigOwnerType `json:"ownerType"`
// ID of the owning HadronServer / Organization / App / Agent.
OwnerId string `json:"ownerId"`
// Provider identifier; v1 known: 'anthropic' | 'openai' | 'glm' | 'bedrock'.
Provider string `json:"provider"`
// Model identifier, passed verbatim to the provider.
Model string `json:"model"`
HasApiKey bool `json:"hasApiKey"`
// Ellipsis + last 4 characters of the stored key; null when no key.
ApiKeyPreview *string `json:"apiKeyPreview"`
// Provider-specific knobs (maxTokens, thinking, effort, baseUrl, ...).
Params *json.RawMessage `json:"params"`
// Disabled configs are skipped by resolution (the walk continues outward).
Enabled bool `json:"enabled"`
CreatedAt string `json:"createdAt"`
UpdatedAt *string `json:"updatedAt"`
}
036-ai-service-config CRUD. The mutations return a masked AiServiceConfig (never key material — only hasApiKey + apiKeyPreview).
func (*AiServiceConfigFields) GetApiKeyPreview ¶ added in v0.3.0
func (v *AiServiceConfigFields) GetApiKeyPreview() *string
GetApiKeyPreview returns AiServiceConfigFields.ApiKeyPreview, and is useful for accessing the field via an interface.
func (*AiServiceConfigFields) GetCreatedAt ¶ added in v0.3.0
func (v *AiServiceConfigFields) GetCreatedAt() string
GetCreatedAt returns AiServiceConfigFields.CreatedAt, and is useful for accessing the field via an interface.
func (*AiServiceConfigFields) GetEnabled ¶ added in v0.3.0
func (v *AiServiceConfigFields) GetEnabled() bool
GetEnabled returns AiServiceConfigFields.Enabled, and is useful for accessing the field via an interface.
func (*AiServiceConfigFields) GetHasApiKey ¶ added in v0.3.0
func (v *AiServiceConfigFields) GetHasApiKey() bool
GetHasApiKey returns AiServiceConfigFields.HasApiKey, and is useful for accessing the field via an interface.
func (*AiServiceConfigFields) GetId ¶ added in v0.3.0
func (v *AiServiceConfigFields) GetId() string
GetId returns AiServiceConfigFields.Id, and is useful for accessing the field via an interface.
func (*AiServiceConfigFields) GetModel ¶ added in v0.3.0
func (v *AiServiceConfigFields) GetModel() string
GetModel returns AiServiceConfigFields.Model, and is useful for accessing the field via an interface.
func (*AiServiceConfigFields) GetName ¶ added in v0.3.0
func (v *AiServiceConfigFields) GetName() string
GetName returns AiServiceConfigFields.Name, and is useful for accessing the field via an interface.
func (*AiServiceConfigFields) GetOwnerId ¶ added in v0.3.0
func (v *AiServiceConfigFields) GetOwnerId() string
GetOwnerId returns AiServiceConfigFields.OwnerId, and is useful for accessing the field via an interface.
func (*AiServiceConfigFields) GetOwnerType ¶ added in v0.3.0
func (v *AiServiceConfigFields) GetOwnerType() AiConfigOwnerType
GetOwnerType returns AiServiceConfigFields.OwnerType, and is useful for accessing the field via an interface.
func (*AiServiceConfigFields) GetParams ¶ added in v0.3.0
func (v *AiServiceConfigFields) GetParams() *json.RawMessage
GetParams returns AiServiceConfigFields.Params, and is useful for accessing the field via an interface.
func (*AiServiceConfigFields) GetProvider ¶ added in v0.3.0
func (v *AiServiceConfigFields) GetProvider() string
GetProvider returns AiServiceConfigFields.Provider, and is useful for accessing the field via an interface.
func (*AiServiceConfigFields) GetUpdatedAt ¶ added in v0.3.0
func (v *AiServiceConfigFields) GetUpdatedAt() *string
GetUpdatedAt returns AiServiceConfigFields.UpdatedAt, and is useful for accessing the field via an interface.
type AppsAppsApp ¶
type AppsAppsApp struct {
Id string `json:"id"`
Urn string `json:"urn"`
Name string `json:"name"`
AppType AppType `json:"appType"`
AgentId *string `json:"agentId"`
MemberCount int `json:"memberCount"`
CreatedAt string `json:"createdAt"`
}
AppsAppsApp includes the requested fields of the GraphQL type App.
func (*AppsAppsApp) GetAgentId ¶
func (v *AppsAppsApp) GetAgentId() *string
GetAgentId returns AppsAppsApp.AgentId, and is useful for accessing the field via an interface.
func (*AppsAppsApp) GetAppType ¶
func (v *AppsAppsApp) GetAppType() AppType
GetAppType returns AppsAppsApp.AppType, and is useful for accessing the field via an interface.
func (*AppsAppsApp) GetCreatedAt ¶
func (v *AppsAppsApp) GetCreatedAt() string
GetCreatedAt returns AppsAppsApp.CreatedAt, and is useful for accessing the field via an interface.
func (*AppsAppsApp) GetId ¶
func (v *AppsAppsApp) GetId() string
GetId returns AppsAppsApp.Id, and is useful for accessing the field via an interface.
func (*AppsAppsApp) GetMemberCount ¶
func (v *AppsAppsApp) GetMemberCount() int
GetMemberCount returns AppsAppsApp.MemberCount, and is useful for accessing the field via an interface.
func (*AppsAppsApp) GetName ¶
func (v *AppsAppsApp) GetName() string
GetName returns AppsAppsApp.Name, and is useful for accessing the field via an interface.
func (*AppsAppsApp) GetUrn ¶
func (v *AppsAppsApp) GetUrn() string
GetUrn returns AppsAppsApp.Urn, and is useful for accessing the field via an interface.
type AppsResponse ¶
type AppsResponse struct {
// Apps in an organization (org ADMIN).
//
// Accepts the entity's ID or URN.
Apps []*AppsAppsApp `json:"apps"`
}
AppsResponse is returned by Apps on success.
func (*AppsResponse) GetApps ¶
func (v *AppsResponse) GetApps() []*AppsAppsApp
GetApps returns AppsResponse.Apps, and is useful for accessing the field via an interface.
type CloneMemoryCloneMemory ¶ added in v0.2.0
type CloneMemoryCloneMemory struct {
Id string `json:"id"`
Urn string `json:"urn"`
Name string `json:"name"`
ShortDescription *string `json:"shortDescription"`
Class MemoryClass `json:"class"`
Visibility *MemoryVisibility `json:"visibility"`
OrganizationId string `json:"organizationId"`
IsEncrypted bool `json:"isEncrypted"`
UpdatedAt string `json:"updatedAt"`
}
CloneMemoryCloneMemory includes the requested fields of the GraphQL type Memory.
func (*CloneMemoryCloneMemory) GetClass ¶ added in v0.2.0
func (v *CloneMemoryCloneMemory) GetClass() MemoryClass
GetClass returns CloneMemoryCloneMemory.Class, and is useful for accessing the field via an interface.
func (*CloneMemoryCloneMemory) GetId ¶ added in v0.2.0
func (v *CloneMemoryCloneMemory) GetId() string
GetId returns CloneMemoryCloneMemory.Id, and is useful for accessing the field via an interface.
func (*CloneMemoryCloneMemory) GetIsEncrypted ¶ added in v0.2.0
func (v *CloneMemoryCloneMemory) GetIsEncrypted() bool
GetIsEncrypted returns CloneMemoryCloneMemory.IsEncrypted, and is useful for accessing the field via an interface.
func (*CloneMemoryCloneMemory) GetName ¶ added in v0.2.0
func (v *CloneMemoryCloneMemory) GetName() string
GetName returns CloneMemoryCloneMemory.Name, and is useful for accessing the field via an interface.
func (*CloneMemoryCloneMemory) GetOrganizationId ¶ added in v0.2.0
func (v *CloneMemoryCloneMemory) GetOrganizationId() string
GetOrganizationId returns CloneMemoryCloneMemory.OrganizationId, and is useful for accessing the field via an interface.
func (*CloneMemoryCloneMemory) GetShortDescription ¶ added in v0.2.0
func (v *CloneMemoryCloneMemory) GetShortDescription() *string
GetShortDescription returns CloneMemoryCloneMemory.ShortDescription, and is useful for accessing the field via an interface.
func (*CloneMemoryCloneMemory) GetUpdatedAt ¶ added in v0.2.0
func (v *CloneMemoryCloneMemory) GetUpdatedAt() string
GetUpdatedAt returns CloneMemoryCloneMemory.UpdatedAt, and is useful for accessing the field via an interface.
func (*CloneMemoryCloneMemory) GetUrn ¶ added in v0.2.0
func (v *CloneMemoryCloneMemory) GetUrn() string
GetUrn returns CloneMemoryCloneMemory.Urn, and is useful for accessing the field via an interface.
func (*CloneMemoryCloneMemory) GetVisibility ¶ added in v0.2.0
func (v *CloneMemoryCloneMemory) GetVisibility() *MemoryVisibility
GetVisibility returns CloneMemoryCloneMemory.Visibility, and is useful for accessing the field via an interface.
type CloneMemoryResponse ¶ added in v0.2.0
type CloneMemoryResponse struct {
// Clone a Memory into a new Memory (same org) named `name`.
//
// Accepts the source's ID or URN. Copies the Memory row plus all live
// Nodes, Edges, and PendingEdges; references to the source memory's URN
// inside node content/abstract (canonical and legacy spellings) are
// rewritten to the clone's URN. Vector-index config carries over and the
// clone's nodes are stamped for re-embedding.
//
// NOT copied: version history, subscriptions, shares, group members
// (the caller is bootstrapped as a group clone's first owner), sessions,
// licenses, log entries, assets, and git-sync config (the clone starts
// DB-only).
//
// Authorization mirrors deleteMemory: personal/private → owner only;
// knowledge/group → org ADMIN. system/app-class sources and encrypted
// memories are rejected.
CloneMemory *CloneMemoryCloneMemory `json:"cloneMemory"`
}
CloneMemoryResponse is returned by CloneMemory on success.
func CloneMemory ¶ added in v0.2.0
func (*CloneMemoryResponse) GetCloneMemory ¶ added in v0.2.0
func (v *CloneMemoryResponse) GetCloneMemory() *CloneMemoryCloneMemory
GetCloneMemory returns CloneMemoryResponse.CloneMemory, and is useful for accessing the field via an interface.
type CreateAiServiceConfigCreateAiServiceConfig ¶ added in v0.3.0
type CreateAiServiceConfigCreateAiServiceConfig struct {
AiServiceConfigFields `json:"-"`
}
CreateAiServiceConfigCreateAiServiceConfig includes the requested fields of the GraphQL type AiServiceConfig. The GraphQL type's documentation follows.
036-ai-service-config: a named AI service configuration (masked management view — never carries key material beyond the preview). Owned by exactly one of HadronServer / Organization / App / Agent. Resolution walks App -> Agent -> Org (of the App) -> HadronServer and returns the first ENABLED config with the requested name. Well-known fallback name: 'default' (conventional extras: 'fast', 'frontier'). Name is unique per owner.
func (*CreateAiServiceConfigCreateAiServiceConfig) GetApiKeyPreview ¶ added in v0.3.0
func (v *CreateAiServiceConfigCreateAiServiceConfig) GetApiKeyPreview() *string
GetApiKeyPreview returns CreateAiServiceConfigCreateAiServiceConfig.ApiKeyPreview, and is useful for accessing the field via an interface.
func (*CreateAiServiceConfigCreateAiServiceConfig) GetCreatedAt ¶ added in v0.3.0
func (v *CreateAiServiceConfigCreateAiServiceConfig) GetCreatedAt() string
GetCreatedAt returns CreateAiServiceConfigCreateAiServiceConfig.CreatedAt, and is useful for accessing the field via an interface.
func (*CreateAiServiceConfigCreateAiServiceConfig) GetEnabled ¶ added in v0.3.0
func (v *CreateAiServiceConfigCreateAiServiceConfig) GetEnabled() bool
GetEnabled returns CreateAiServiceConfigCreateAiServiceConfig.Enabled, and is useful for accessing the field via an interface.
func (*CreateAiServiceConfigCreateAiServiceConfig) GetHasApiKey ¶ added in v0.3.0
func (v *CreateAiServiceConfigCreateAiServiceConfig) GetHasApiKey() bool
GetHasApiKey returns CreateAiServiceConfigCreateAiServiceConfig.HasApiKey, and is useful for accessing the field via an interface.
func (*CreateAiServiceConfigCreateAiServiceConfig) GetId ¶ added in v0.3.0
func (v *CreateAiServiceConfigCreateAiServiceConfig) GetId() string
GetId returns CreateAiServiceConfigCreateAiServiceConfig.Id, and is useful for accessing the field via an interface.
func (*CreateAiServiceConfigCreateAiServiceConfig) GetModel ¶ added in v0.3.0
func (v *CreateAiServiceConfigCreateAiServiceConfig) GetModel() string
GetModel returns CreateAiServiceConfigCreateAiServiceConfig.Model, and is useful for accessing the field via an interface.
func (*CreateAiServiceConfigCreateAiServiceConfig) GetName ¶ added in v0.3.0
func (v *CreateAiServiceConfigCreateAiServiceConfig) GetName() string
GetName returns CreateAiServiceConfigCreateAiServiceConfig.Name, and is useful for accessing the field via an interface.
func (*CreateAiServiceConfigCreateAiServiceConfig) GetOwnerId ¶ added in v0.3.0
func (v *CreateAiServiceConfigCreateAiServiceConfig) GetOwnerId() string
GetOwnerId returns CreateAiServiceConfigCreateAiServiceConfig.OwnerId, and is useful for accessing the field via an interface.
func (*CreateAiServiceConfigCreateAiServiceConfig) GetOwnerType ¶ added in v0.3.0
func (v *CreateAiServiceConfigCreateAiServiceConfig) GetOwnerType() AiConfigOwnerType
GetOwnerType returns CreateAiServiceConfigCreateAiServiceConfig.OwnerType, and is useful for accessing the field via an interface.
func (*CreateAiServiceConfigCreateAiServiceConfig) GetParams ¶ added in v0.3.0
func (v *CreateAiServiceConfigCreateAiServiceConfig) GetParams() *json.RawMessage
GetParams returns CreateAiServiceConfigCreateAiServiceConfig.Params, and is useful for accessing the field via an interface.
func (*CreateAiServiceConfigCreateAiServiceConfig) GetProvider ¶ added in v0.3.0
func (v *CreateAiServiceConfigCreateAiServiceConfig) GetProvider() string
GetProvider returns CreateAiServiceConfigCreateAiServiceConfig.Provider, and is useful for accessing the field via an interface.
func (*CreateAiServiceConfigCreateAiServiceConfig) GetUpdatedAt ¶ added in v0.3.0
func (v *CreateAiServiceConfigCreateAiServiceConfig) GetUpdatedAt() *string
GetUpdatedAt returns CreateAiServiceConfigCreateAiServiceConfig.UpdatedAt, and is useful for accessing the field via an interface.
func (*CreateAiServiceConfigCreateAiServiceConfig) MarshalJSON ¶ added in v0.3.0
func (v *CreateAiServiceConfigCreateAiServiceConfig) MarshalJSON() ([]byte, error)
func (*CreateAiServiceConfigCreateAiServiceConfig) UnmarshalJSON ¶ added in v0.3.0
func (v *CreateAiServiceConfigCreateAiServiceConfig) UnmarshalJSON(b []byte) error
type CreateAiServiceConfigResponse ¶ added in v0.3.0
type CreateAiServiceConfigResponse struct {
// 036-ai-service-config: create a named AI config on an owner entity.
//
// apiKey semantics: omitted = stored without a key (unusable for
// execution until one is set); non-empty = encrypted at rest with a
// masked preview. Name must be 1-64 lower-case [a-z0-9_-], unique per
// owner. provider must be a known provider; params are validated per
// provider.
//
// Auth: as aiServiceConfigs. ownerId accepts ID or URN
// (HADRON_SERVER: ID only).
CreateAiServiceConfig *CreateAiServiceConfigCreateAiServiceConfig `json:"createAiServiceConfig"`
}
CreateAiServiceConfigResponse is returned by CreateAiServiceConfig on success.
func CreateAiServiceConfig ¶ added in v0.3.0
func CreateAiServiceConfig( ctx_ context.Context, client_ graphql.Client, name string, provider string, model string, ownerId string, ownerType AiConfigOwnerType, apiKey *string, enabled *bool, params *json.RawMessage, ) (data_ *CreateAiServiceConfigResponse, err_ error)
apiKey: omitted (nil) = stored without a key; non-empty = encrypted at rest. omitempty here is nil-based, so a non-nil &false is still sent — only a nil pointer is dropped.
func (*CreateAiServiceConfigResponse) GetCreateAiServiceConfig ¶ added in v0.3.0
func (v *CreateAiServiceConfigResponse) GetCreateAiServiceConfig() *CreateAiServiceConfigCreateAiServiceConfig
GetCreateAiServiceConfig returns CreateAiServiceConfigResponse.CreateAiServiceConfig, and is useful for accessing the field via an interface.
type CreateAppCreateApp ¶
type CreateAppCreateApp struct {
Id string `json:"id"`
Urn string `json:"urn"`
Name string `json:"name"`
AppType AppType `json:"appType"`
AgentId *string `json:"agentId"`
MemberCount int `json:"memberCount"`
CreatedAt string `json:"createdAt"`
}
CreateAppCreateApp includes the requested fields of the GraphQL type App.
func (*CreateAppCreateApp) GetAgentId ¶
func (v *CreateAppCreateApp) GetAgentId() *string
GetAgentId returns CreateAppCreateApp.AgentId, and is useful for accessing the field via an interface.
func (*CreateAppCreateApp) GetAppType ¶
func (v *CreateAppCreateApp) GetAppType() AppType
GetAppType returns CreateAppCreateApp.AppType, and is useful for accessing the field via an interface.
func (*CreateAppCreateApp) GetCreatedAt ¶
func (v *CreateAppCreateApp) GetCreatedAt() string
GetCreatedAt returns CreateAppCreateApp.CreatedAt, and is useful for accessing the field via an interface.
func (*CreateAppCreateApp) GetId ¶
func (v *CreateAppCreateApp) GetId() string
GetId returns CreateAppCreateApp.Id, and is useful for accessing the field via an interface.
func (*CreateAppCreateApp) GetMemberCount ¶
func (v *CreateAppCreateApp) GetMemberCount() int
GetMemberCount returns CreateAppCreateApp.MemberCount, and is useful for accessing the field via an interface.
func (*CreateAppCreateApp) GetName ¶
func (v *CreateAppCreateApp) GetName() string
GetName returns CreateAppCreateApp.Name, and is useful for accessing the field via an interface.
func (*CreateAppCreateApp) GetUrn ¶
func (v *CreateAppCreateApp) GetUrn() string
GetUrn returns CreateAppCreateApp.Urn, and is useful for accessing the field via an interface.
type CreateAppResponse ¶
type CreateAppResponse struct {
// Install an Agent into an organization, creating an App that deploys it.
//
// Auto-provisions an AgentOrgGrant for (orgId, agentId) on first install,
// and adds the caller as an AppMember with role 'owner'. Required
// AgentImports cascade automatically; optional imports cascade only when
// their id appears in installOptional.
//
// 009-install-agent-flow: the cross-org install restriction (FR-009) is
// enforced at the portal — the Install affordance is hidden for Agents
// not owned by the calling org. The server still auto-provisions grants
// on first install (preserved from 008); a hard server-side cross-org
// gate is reserved for the marketplace spec.
//
// Accepts the entity's ID or URN.
CreateApp *CreateAppCreateApp `json:"createApp"`
}
CreateAppResponse is returned by CreateApp on success.
func (*CreateAppResponse) GetCreateApp ¶
func (v *CreateAppResponse) GetCreateApp() *CreateAppCreateApp
GetCreateApp returns CreateAppResponse.CreateApp, and is useful for accessing the field via an interface.
type CreateEdgeCreateEdge ¶
type CreateEdgeCreateEdge struct {
Id string `json:"id"`
Name *string `json:"name"`
Loc string `json:"loc"`
IsRunnable *bool `json:"isRunnable"`
Priority int `json:"priority"`
Source *CreateEdgeCreateEdgeSourceNode `json:"source"`
Target *CreateEdgeCreateEdgeTargetNode `json:"target"`
}
CreateEdgeCreateEdge includes the requested fields of the GraphQL type Edge.
func (*CreateEdgeCreateEdge) GetId ¶
func (v *CreateEdgeCreateEdge) GetId() string
GetId returns CreateEdgeCreateEdge.Id, and is useful for accessing the field via an interface.
func (*CreateEdgeCreateEdge) GetIsRunnable ¶ added in v0.3.0
func (v *CreateEdgeCreateEdge) GetIsRunnable() *bool
GetIsRunnable returns CreateEdgeCreateEdge.IsRunnable, and is useful for accessing the field via an interface.
func (*CreateEdgeCreateEdge) GetLoc ¶ added in v0.3.0
func (v *CreateEdgeCreateEdge) GetLoc() string
GetLoc returns CreateEdgeCreateEdge.Loc, and is useful for accessing the field via an interface.
func (*CreateEdgeCreateEdge) GetName ¶ added in v0.3.0
func (v *CreateEdgeCreateEdge) GetName() *string
GetName returns CreateEdgeCreateEdge.Name, and is useful for accessing the field via an interface.
func (*CreateEdgeCreateEdge) GetPriority ¶
func (v *CreateEdgeCreateEdge) GetPriority() int
GetPriority returns CreateEdgeCreateEdge.Priority, and is useful for accessing the field via an interface.
func (*CreateEdgeCreateEdge) GetSource ¶
func (v *CreateEdgeCreateEdge) GetSource() *CreateEdgeCreateEdgeSourceNode
GetSource returns CreateEdgeCreateEdge.Source, and is useful for accessing the field via an interface.
func (*CreateEdgeCreateEdge) GetTarget ¶
func (v *CreateEdgeCreateEdge) GetTarget() *CreateEdgeCreateEdgeTargetNode
GetTarget returns CreateEdgeCreateEdge.Target, and is useful for accessing the field via an interface.
type CreateEdgeCreateEdgeSourceNode ¶
CreateEdgeCreateEdgeSourceNode includes the requested fields of the GraphQL type Node.
func (*CreateEdgeCreateEdgeSourceNode) GetId ¶
func (v *CreateEdgeCreateEdgeSourceNode) GetId() string
GetId returns CreateEdgeCreateEdgeSourceNode.Id, and is useful for accessing the field via an interface.
func (*CreateEdgeCreateEdgeSourceNode) GetLoc ¶
func (v *CreateEdgeCreateEdgeSourceNode) GetLoc() string
GetLoc returns CreateEdgeCreateEdgeSourceNode.Loc, and is useful for accessing the field via an interface.
type CreateEdgeCreateEdgeTargetNode ¶
CreateEdgeCreateEdgeTargetNode includes the requested fields of the GraphQL type Node.
func (*CreateEdgeCreateEdgeTargetNode) GetId ¶
func (v *CreateEdgeCreateEdgeTargetNode) GetId() string
GetId returns CreateEdgeCreateEdgeTargetNode.Id, and is useful for accessing the field via an interface.
func (*CreateEdgeCreateEdgeTargetNode) GetLoc ¶
func (v *CreateEdgeCreateEdgeTargetNode) GetLoc() string
GetLoc returns CreateEdgeCreateEdgeTargetNode.Loc, and is useful for accessing the field via an interface.
type CreateEdgeResponse ¶
type CreateEdgeResponse struct {
CreateEdge *CreateEdgeCreateEdge `json:"createEdge"`
}
CreateEdgeResponse is returned by CreateEdge on success.
func CreateEdge ¶
func CreateEdge( ctx_ context.Context, client_ graphql.Client, sourceNodeId string, targetNodeId string, name string, loc *string, description *string, isRunnable *bool, priority *int, condition *json.RawMessage, data *json.RawMessage, ) (data_ *CreateEdgeResponse, err_ error)
Unset optional variables must be omitted from the wire, not sent as explicit nulls — the server rejects priority: null (hadron-server#263) and treats condition/data: null as "clear".
func (*CreateEdgeResponse) GetCreateEdge ¶
func (v *CreateEdgeResponse) GetCreateEdge() *CreateEdgeCreateEdge
GetCreateEdge returns CreateEdgeResponse.CreateEdge, and is useful for accessing the field via an interface.
type CreateMemoryCreateMemory ¶
type CreateMemoryCreateMemory struct {
Id string `json:"id"`
Urn string `json:"urn"`
Name string `json:"name"`
ShortDescription *string `json:"shortDescription"`
Class MemoryClass `json:"class"`
Visibility *MemoryVisibility `json:"visibility"`
OrganizationId string `json:"organizationId"`
IsEncrypted bool `json:"isEncrypted"`
UpdatedAt string `json:"updatedAt"`
}
CreateMemoryCreateMemory includes the requested fields of the GraphQL type Memory.
func (*CreateMemoryCreateMemory) GetClass ¶
func (v *CreateMemoryCreateMemory) GetClass() MemoryClass
GetClass returns CreateMemoryCreateMemory.Class, and is useful for accessing the field via an interface.
func (*CreateMemoryCreateMemory) GetId ¶
func (v *CreateMemoryCreateMemory) GetId() string
GetId returns CreateMemoryCreateMemory.Id, and is useful for accessing the field via an interface.
func (*CreateMemoryCreateMemory) GetIsEncrypted ¶
func (v *CreateMemoryCreateMemory) GetIsEncrypted() bool
GetIsEncrypted returns CreateMemoryCreateMemory.IsEncrypted, and is useful for accessing the field via an interface.
func (*CreateMemoryCreateMemory) GetName ¶
func (v *CreateMemoryCreateMemory) GetName() string
GetName returns CreateMemoryCreateMemory.Name, and is useful for accessing the field via an interface.
func (*CreateMemoryCreateMemory) GetOrganizationId ¶
func (v *CreateMemoryCreateMemory) GetOrganizationId() string
GetOrganizationId returns CreateMemoryCreateMemory.OrganizationId, and is useful for accessing the field via an interface.
func (*CreateMemoryCreateMemory) GetShortDescription ¶
func (v *CreateMemoryCreateMemory) GetShortDescription() *string
GetShortDescription returns CreateMemoryCreateMemory.ShortDescription, and is useful for accessing the field via an interface.
func (*CreateMemoryCreateMemory) GetUpdatedAt ¶
func (v *CreateMemoryCreateMemory) GetUpdatedAt() string
GetUpdatedAt returns CreateMemoryCreateMemory.UpdatedAt, and is useful for accessing the field via an interface.
func (*CreateMemoryCreateMemory) GetUrn ¶
func (v *CreateMemoryCreateMemory) GetUrn() string
GetUrn returns CreateMemoryCreateMemory.Urn, and is useful for accessing the field via an interface.
func (*CreateMemoryCreateMemory) GetVisibility ¶
func (v *CreateMemoryCreateMemory) GetVisibility() *MemoryVisibility
GetVisibility returns CreateMemoryCreateMemory.Visibility, and is useful for accessing the field via an interface.
type CreateMemoryResponse ¶
type CreateMemoryResponse struct {
// Create a memory in an organization. Accepts the entity's ID or URN
// for orgId.
//
// Defaults to knowledge-class with ORGANIZATION visibility. Pass
// memoryClass: group + visibility: GROUP for a group-class memory
// (023-app-shape US4; the caller is auto-added as the first owner),
// or memoryClass: personal | private for an owner-only memory the
// caller owns (spec 034 — free-standing, no app/agent; the caller
// must be a member of the org container). system- and app-class
// memories are NOT created here — they auto-provision via
// Agent.systemMemoryId / the App install path.
CreateMemory *CreateMemoryCreateMemory `json:"createMemory"`
}
CreateMemoryResponse is returned by CreateMemory on success.
func CreateMemory ¶
func CreateMemory( ctx_ context.Context, client_ graphql.Client, orgId string, name string, memoryClass *MemoryClass, shortDescription *string, description *string, tags *[]string, visibility *MemoryVisibility, ) (data_ *CreateMemoryResponse, err_ error)
func (*CreateMemoryResponse) GetCreateMemory ¶
func (v *CreateMemoryResponse) GetCreateMemory() *CreateMemoryCreateMemory
GetCreateMemory returns CreateMemoryResponse.CreateMemory, and is useful for accessing the field via an interface.
type CreateMemoryShareCreateMemoryShareCreateMemorySharePayload ¶ added in v0.3.0
type CreateMemoryShareCreateMemoryShareCreateMemorySharePayload struct {
}
CreateMemoryShareCreateMemoryShareCreateMemorySharePayload includes the requested fields of the GraphQL type CreateMemorySharePayload.
func (*CreateMemoryShareCreateMemoryShareCreateMemorySharePayload) GetMemoryShare ¶ added in v0.3.0
func (v *CreateMemoryShareCreateMemoryShareCreateMemorySharePayload) GetMemoryShare() *CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShare
GetMemoryShare returns CreateMemoryShareCreateMemoryShareCreateMemorySharePayload.MemoryShare, and is useful for accessing the field via an interface.
type CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShare ¶ added in v0.3.0
type CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShare struct {
Grantee *CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser `json:"grantee"`
}
CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShare includes the requested fields of the GraphQL type MemoryShare. The GraphQL type's documentation follows.
023-app-shape US3: asymmetric cross-user grant on a personal-class Memory. The principal (memory.userId) grants a grantee read/write access. Used for per-pairing isolation patterns (e.g., Alice's personal Memory paired-with-Mentor-A is distinct from her paired-with-Mentor-B Memory, each with its own MemoryShare).
func (*CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShare) GetGrantee ¶ added in v0.3.0
func (v *CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShare) GetGrantee() *CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser
GetGrantee returns CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShare.Grantee, and is useful for accessing the field via an interface.
func (*CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShare) GetRole ¶ added in v0.3.0
func (v *CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShare) GetRole() MemoryShareRole
GetRole returns CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShare.Role, and is useful for accessing the field via an interface.
type CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser ¶ added in v0.3.0
type CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser struct {
}
CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser includes the requested fields of the GraphQL type User.
func (*CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser) GetEmail ¶ added in v0.3.0
func (v *CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser) GetEmail() *string
GetEmail returns CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser.Email, and is useful for accessing the field via an interface.
func (*CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser) GetHandle ¶ added in v0.3.0
func (v *CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser) GetHandle() *string
GetHandle returns CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser.Handle, and is useful for accessing the field via an interface.
func (*CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser) GetId ¶ added in v0.3.0
func (v *CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser) GetId() string
GetId returns CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser.Id, and is useful for accessing the field via an interface.
func (*CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser) GetName ¶ added in v0.3.0
func (v *CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser) GetName() *string
GetName returns CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser.Name, and is useful for accessing the field via an interface.
func (*CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser) MarshalJSON ¶ added in v0.3.0
func (v *CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser) MarshalJSON() ([]byte, error)
func (*CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser) UnmarshalJSON ¶ added in v0.3.0
func (v *CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser) UnmarshalJSON(b []byte) error
type CreateMemoryShareResponse ¶ added in v0.3.0
type CreateMemoryShareResponse struct {
// Memory. The principal (memory.userId) grants a grantee read or
// write access. Used for the per-pairing pattern (Alice's
// paired-with-Mentor-A memory is distinct from her
// paired-with-Mentor-B memory; each gets its own MemoryShare).
//
// Upsert semantics: re-calling with a different role on an existing
// (memoryId, granteeId) pair updates the role rather than throwing.
//
// For v1 the caller MUST be the principal themselves (memory.userId
// === ctx.userId). The Agent-mediated path (App backend acting on
// the principal's behalf via MCP) is supported by the access-control
// predicate but not by this GraphQL surface — see the deferred
// policy discussion linked from joinApp.ts.
//
// Error codes (extensions.code, Error.name style):
// - UNAUTHENTICATED — no logged-in user in context.
// - FORBIDDEN — caller is not the Memory's principal. The
// caller-authority guard runs first and deliberately does not
// differentiate between "memory doesn't exist", "memory is not
// personal-class", and "caller isn't the principal" — all three
// return FORBIDDEN so memory metadata isn't leaked to
// non-principals.
// - MemoryShareGranteeMissingError — granteeId doesn't resolve to
// an existing User. Only reachable when the caller passes the
// principal guard.
// - InvalidMemoryClassForShareError / MemoryNotFoundForShareError —
// defined on the controller for completeness; functionally
// unreachable via this GraphQL mutation in v1 because the
// caller-authority guard short-circuits to FORBIDDEN first.
CreateMemoryShare *CreateMemoryShareCreateMemoryShareCreateMemorySharePayload `json:"createMemoryShare"`
}
CreateMemoryShareResponse is returned by CreateMemoryShare on success.
func CreateMemoryShare ¶ added in v0.3.0
func CreateMemoryShare( ctx_ context.Context, client_ graphql.Client, memoryId string, granteeId string, role MemoryShareRole, ) (data_ *CreateMemoryShareResponse, err_ error)
func (*CreateMemoryShareResponse) GetCreateMemoryShare ¶ added in v0.3.0
func (v *CreateMemoryShareResponse) GetCreateMemoryShare() *CreateMemoryShareCreateMemoryShareCreateMemorySharePayload
GetCreateMemoryShare returns CreateMemoryShareResponse.CreateMemoryShare, and is useful for accessing the field via an interface.
type CreateOrganizationCreateOrganization ¶ added in v0.3.0
type CreateOrganizationCreateOrganization struct {
OrgFields `json:"-"`
}
CreateOrganizationCreateOrganization includes the requested fields of the GraphQL type Organization.
func (*CreateOrganizationCreateOrganization) GetCreatedAt ¶ added in v0.3.0
func (v *CreateOrganizationCreateOrganization) GetCreatedAt() string
GetCreatedAt returns CreateOrganizationCreateOrganization.CreatedAt, and is useful for accessing the field via an interface.
func (*CreateOrganizationCreateOrganization) GetId ¶ added in v0.3.0
func (v *CreateOrganizationCreateOrganization) GetId() string
GetId returns CreateOrganizationCreateOrganization.Id, and is useful for accessing the field via an interface.
func (*CreateOrganizationCreateOrganization) GetIsVisible ¶ added in v0.3.0
func (v *CreateOrganizationCreateOrganization) GetIsVisible() *bool
GetIsVisible returns CreateOrganizationCreateOrganization.IsVisible, and is useful for accessing the field via an interface.
func (*CreateOrganizationCreateOrganization) GetName ¶ added in v0.3.0
func (v *CreateOrganizationCreateOrganization) GetName() string
GetName returns CreateOrganizationCreateOrganization.Name, and is useful for accessing the field via an interface.
func (*CreateOrganizationCreateOrganization) GetUpdatedAt ¶ added in v0.3.0
func (v *CreateOrganizationCreateOrganization) GetUpdatedAt() string
GetUpdatedAt returns CreateOrganizationCreateOrganization.UpdatedAt, and is useful for accessing the field via an interface.
func (*CreateOrganizationCreateOrganization) GetUrn ¶ added in v0.3.0
func (v *CreateOrganizationCreateOrganization) GetUrn() string
GetUrn returns CreateOrganizationCreateOrganization.Urn, and is useful for accessing the field via an interface.
func (*CreateOrganizationCreateOrganization) MarshalJSON ¶ added in v0.3.0
func (v *CreateOrganizationCreateOrganization) MarshalJSON() ([]byte, error)
func (*CreateOrganizationCreateOrganization) UnmarshalJSON ¶ added in v0.3.0
func (v *CreateOrganizationCreateOrganization) UnmarshalJSON(b []byte) error
type CreateOrganizationResponse ¶ added in v0.3.0
type CreateOrganizationResponse struct {
CreateOrganization *CreateOrganizationCreateOrganization `json:"createOrganization"`
}
CreateOrganizationResponse is returned by CreateOrganization on success.
func CreateOrganization ¶ added in v0.3.0
func (*CreateOrganizationResponse) GetCreateOrganization ¶ added in v0.3.0
func (v *CreateOrganizationResponse) GetCreateOrganization() *CreateOrganizationCreateOrganization
GetCreateOrganization returns CreateOrganizationResponse.CreateOrganization, and is useful for accessing the field via an interface.
type CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResult ¶ added in v0.3.0
type CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResult struct {
RawKey string `json:"rawKey"`
UserApiKey *CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey `json:"userApiKey"`
}
CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResult includes the requested fields of the GraphQL type UserApiKeyCreateResult.
func (*CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResult) GetRawKey ¶ added in v0.3.0
func (v *CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResult) GetRawKey() string
GetRawKey returns CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResult.RawKey, and is useful for accessing the field via an interface.
func (*CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResult) GetUserApiKey ¶ added in v0.3.0
func (v *CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResult) GetUserApiKey() *CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey
GetUserApiKey returns CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResult.UserApiKey, and is useful for accessing the field via an interface.
type CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey ¶ added in v0.3.0
type CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey struct {
UserApiKeyFields `json:"-"`
}
CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey includes the requested fields of the GraphQL type UserApiKey.
func (*CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetCreatedAt ¶ added in v0.3.0
func (v *CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetCreatedAt() string
GetCreatedAt returns CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey.CreatedAt, and is useful for accessing the field via an interface.
func (*CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetId ¶ added in v0.3.0
func (v *CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetId() string
GetId returns CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey.Id, and is useful for accessing the field via an interface.
func (*CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetIssuedVia ¶ added in v0.3.0
func (v *CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetIssuedVia() *string
GetIssuedVia returns CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey.IssuedVia, and is useful for accessing the field via an interface.
func (*CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetKeyPreview ¶ added in v0.3.0
func (v *CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetKeyPreview() string
GetKeyPreview returns CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey.KeyPreview, and is useful for accessing the field via an interface.
func (*CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetLabel ¶ added in v0.3.0
func (v *CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetLabel() *string
GetLabel returns CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey.Label, and is useful for accessing the field via an interface.
func (*CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetLastUsedAt ¶ added in v0.3.0
func (v *CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetLastUsedAt() *string
GetLastUsedAt returns CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey.LastUsedAt, and is useful for accessing the field via an interface.
func (*CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetRevokedAt ¶ added in v0.3.0
func (v *CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetRevokedAt() *string
GetRevokedAt returns CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey.RevokedAt, and is useful for accessing the field via an interface.
func (*CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) MarshalJSON ¶ added in v0.3.0
func (v *CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) MarshalJSON() ([]byte, error)
func (*CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) UnmarshalJSON ¶ added in v0.3.0
func (v *CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) UnmarshalJSON(b []byte) error
type CreateUserApiKeyResponse ¶ added in v0.3.0
type CreateUserApiKeyResponse struct {
// 025-oauth-for-mcp FR-004: mint a new user-scoped API key for the
// calling User. Returns the raw key exactly once (the server stores
// only the SHA-256 hash). Rejected with UNAUTHENTICATED for AppKey-
// resolved callers (no user in context). Per Clarifications, label
// is optional (portal defaults to a placeholder when omitted).
CreateUserApiKey *CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResult `json:"createUserApiKey"`
}
CreateUserApiKeyResponse is returned by CreateUserApiKey on success.
func CreateUserApiKey ¶ added in v0.3.0
func CreateUserApiKey( ctx_ context.Context, client_ graphql.Client, label *string, ) (data_ *CreateUserApiKeyResponse, err_ error)
Returns the raw key EXACTLY ONCE (the server stores only its hash). label is optional — omitted lets the server apply its placeholder default.
func (*CreateUserApiKeyResponse) GetCreateUserApiKey ¶ added in v0.3.0
func (v *CreateUserApiKeyResponse) GetCreateUserApiKey() *CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResult
GetCreateUserApiKey returns CreateUserApiKeyResponse.CreateUserApiKey, and is useful for accessing the field via an interface.
type DeleteAiServiceConfigResponse ¶ added in v0.3.0
type DeleteAiServiceConfigResponse struct {
// 036-ai-service-config: delete a named AI config (hard delete; the
// resolution walk simply no longer finds it).
//
// Auth: admin rights on the owning entity (as aiServiceConfigs).
DeleteAiServiceConfig bool `json:"deleteAiServiceConfig"`
}
DeleteAiServiceConfigResponse is returned by DeleteAiServiceConfig on success.
func DeleteAiServiceConfig ¶ added in v0.3.0
func (*DeleteAiServiceConfigResponse) GetDeleteAiServiceConfig ¶ added in v0.3.0
func (v *DeleteAiServiceConfigResponse) GetDeleteAiServiceConfig() bool
GetDeleteAiServiceConfig returns DeleteAiServiceConfigResponse.DeleteAiServiceConfig, and is useful for accessing the field via an interface.
type DeleteAppResponse ¶
type DeleteAppResponse struct {
// Soft-delete an App.
//
// Accepts the entity's ID or URN.
DeleteApp bool `json:"deleteApp"`
}
DeleteAppResponse is returned by DeleteApp on success.
func (*DeleteAppResponse) GetDeleteApp ¶
func (v *DeleteAppResponse) GetDeleteApp() bool
GetDeleteApp returns DeleteAppResponse.DeleteApp, and is useful for accessing the field via an interface.
type DeleteEdgeResponse ¶
type DeleteEdgeResponse struct {
DeleteEdge bool `json:"deleteEdge"`
}
DeleteEdgeResponse is returned by DeleteEdge on success.
func DeleteEdge ¶
func (*DeleteEdgeResponse) GetDeleteEdge ¶
func (v *DeleteEdgeResponse) GetDeleteEdge() bool
GetDeleteEdge returns DeleteEdgeResponse.DeleteEdge, and is useful for accessing the field via an interface.
type DeleteMemoryResponse ¶
type DeleteMemoryResponse struct {
// Soft-delete a Memory.
//
// Accepts the entity's ID or URN.
DeleteMemory bool `json:"deleteMemory"`
}
DeleteMemoryResponse is returned by DeleteMemory on success.
func DeleteMemory ¶
func (*DeleteMemoryResponse) GetDeleteMemory ¶
func (v *DeleteMemoryResponse) GetDeleteMemory() bool
GetDeleteMemory returns DeleteMemoryResponse.DeleteMemory, and is useful for accessing the field via an interface.
type DeleteNodeResponse ¶
type DeleteNodeResponse struct {
DeleteNode bool `json:"deleteNode"`
}
DeleteNodeResponse is returned by DeleteNode on success.
func DeleteNode ¶
func (*DeleteNodeResponse) GetDeleteNode ¶
func (v *DeleteNodeResponse) GetDeleteNode() bool
GetDeleteNode returns DeleteNodeResponse.DeleteNode, and is useful for accessing the field via an interface.
type DeleteOrganizationResponse ¶ added in v0.3.0
type DeleteOrganizationResponse struct {
// Soft-delete an Organization.
//
// Accepts the entity's ID or URN.
DeleteOrganization bool `json:"deleteOrganization"`
}
DeleteOrganizationResponse is returned by DeleteOrganization on success.
func DeleteOrganization ¶ added in v0.3.0
func (*DeleteOrganizationResponse) GetDeleteOrganization ¶ added in v0.3.0
func (v *DeleteOrganizationResponse) GetDeleteOrganization() bool
GetDeleteOrganization returns DeleteOrganizationResponse.DeleteOrganization, and is useful for accessing the field via an interface.
type EffectiveAccessEffectiveAccess ¶ added in v0.4.0
type EffectiveAccessEffectiveAccess struct {
User *EffectiveAccessEffectiveAccessUser `json:"user"`
// Canonical URN of the resolved resource (the AiServiceConfig id when the resource is a config, which has no URN).
ResourceUrn string `json:"resourceUrn"`
// memory | node | app | agent | aiServiceConfig.
ResourceKind string `json:"resourceKind"`
CanRead bool `json:"canRead"`
CanWrite bool `json:"canWrite"`
// Manage grants / settings (admin/owner-equivalent).
CanManage bool `json:"canManage"`
CanDelete bool `json:"canDelete"`
// Highest single clean role label (e.g. owner, writer, ADMIN); null when access is purely capability-based or absent.
Role *string `json:"role"`
// The reasons access is granted. Empty means no access. Ordered strongest-first.
Grants []*EffectiveAccessEffectiveAccessGrantsAccessGrant `json:"grants"`
}
EffectiveAccessEffectiveAccess includes the requested fields of the GraphQL type EffectiveAccess. The GraphQL type's documentation follows.
issue #323: the effective access a single user has to a single resource, with the grants that confer it. An empty grants list (with all capabilities false and role null) is a first-class 'no access' answer, NOT an error.
func (*EffectiveAccessEffectiveAccess) GetCanDelete ¶ added in v0.4.0
func (v *EffectiveAccessEffectiveAccess) GetCanDelete() bool
GetCanDelete returns EffectiveAccessEffectiveAccess.CanDelete, and is useful for accessing the field via an interface.
func (*EffectiveAccessEffectiveAccess) GetCanManage ¶ added in v0.4.0
func (v *EffectiveAccessEffectiveAccess) GetCanManage() bool
GetCanManage returns EffectiveAccessEffectiveAccess.CanManage, and is useful for accessing the field via an interface.
func (*EffectiveAccessEffectiveAccess) GetCanRead ¶ added in v0.4.0
func (v *EffectiveAccessEffectiveAccess) GetCanRead() bool
GetCanRead returns EffectiveAccessEffectiveAccess.CanRead, and is useful for accessing the field via an interface.
func (*EffectiveAccessEffectiveAccess) GetCanWrite ¶ added in v0.4.0
func (v *EffectiveAccessEffectiveAccess) GetCanWrite() bool
GetCanWrite returns EffectiveAccessEffectiveAccess.CanWrite, and is useful for accessing the field via an interface.
func (*EffectiveAccessEffectiveAccess) GetGrants ¶ added in v0.4.0
func (v *EffectiveAccessEffectiveAccess) GetGrants() []*EffectiveAccessEffectiveAccessGrantsAccessGrant
GetGrants returns EffectiveAccessEffectiveAccess.Grants, and is useful for accessing the field via an interface.
func (*EffectiveAccessEffectiveAccess) GetResourceKind ¶ added in v0.4.0
func (v *EffectiveAccessEffectiveAccess) GetResourceKind() string
GetResourceKind returns EffectiveAccessEffectiveAccess.ResourceKind, and is useful for accessing the field via an interface.
func (*EffectiveAccessEffectiveAccess) GetResourceUrn ¶ added in v0.4.0
func (v *EffectiveAccessEffectiveAccess) GetResourceUrn() string
GetResourceUrn returns EffectiveAccessEffectiveAccess.ResourceUrn, and is useful for accessing the field via an interface.
func (*EffectiveAccessEffectiveAccess) GetRole ¶ added in v0.4.0
func (v *EffectiveAccessEffectiveAccess) GetRole() *string
GetRole returns EffectiveAccessEffectiveAccess.Role, and is useful for accessing the field via an interface.
func (*EffectiveAccessEffectiveAccess) GetUser ¶ added in v0.4.0
func (v *EffectiveAccessEffectiveAccess) GetUser() *EffectiveAccessEffectiveAccessUser
GetUser returns EffectiveAccessEffectiveAccess.User, and is useful for accessing the field via an interface.
type EffectiveAccessEffectiveAccessGrantsAccessGrant ¶ added in v0.4.0
type EffectiveAccessEffectiveAccessGrantsAccessGrant struct {
Source AccessSource `json:"source"`
// The role/level this particular grant confers.
Role string `json:"role"`
// Human label for the grant's origin (owning org URN, the inherited memory URN, the app URN, etc.); null when the grant has no distinct origin.
Via *string `json:"via"`
}
EffectiveAccessEffectiveAccessGrantsAccessGrant includes the requested fields of the GraphQL type AccessGrant. The GraphQL type's documentation follows.
issue #323: one reason a subject has (or would have) access to a resource.
func (*EffectiveAccessEffectiveAccessGrantsAccessGrant) GetRole ¶ added in v0.4.0
func (v *EffectiveAccessEffectiveAccessGrantsAccessGrant) GetRole() string
GetRole returns EffectiveAccessEffectiveAccessGrantsAccessGrant.Role, and is useful for accessing the field via an interface.
func (*EffectiveAccessEffectiveAccessGrantsAccessGrant) GetSource ¶ added in v0.4.0
func (v *EffectiveAccessEffectiveAccessGrantsAccessGrant) GetSource() AccessSource
GetSource returns EffectiveAccessEffectiveAccessGrantsAccessGrant.Source, and is useful for accessing the field via an interface.
func (*EffectiveAccessEffectiveAccessGrantsAccessGrant) GetVia ¶ added in v0.4.0
func (v *EffectiveAccessEffectiveAccessGrantsAccessGrant) GetVia() *string
GetVia returns EffectiveAccessEffectiveAccessGrantsAccessGrant.Via, and is useful for accessing the field via an interface.
type EffectiveAccessEffectiveAccessUser ¶ added in v0.4.0
type EffectiveAccessEffectiveAccessUser struct {
Id string `json:"id"`
Name *string `json:"name"`
Email *string `json:"email"`
Handle *string `json:"handle"`
}
EffectiveAccessEffectiveAccessUser includes the requested fields of the GraphQL type User.
func (*EffectiveAccessEffectiveAccessUser) GetEmail ¶ added in v0.4.0
func (v *EffectiveAccessEffectiveAccessUser) GetEmail() *string
GetEmail returns EffectiveAccessEffectiveAccessUser.Email, and is useful for accessing the field via an interface.
func (*EffectiveAccessEffectiveAccessUser) GetHandle ¶ added in v0.4.0
func (v *EffectiveAccessEffectiveAccessUser) GetHandle() *string
GetHandle returns EffectiveAccessEffectiveAccessUser.Handle, and is useful for accessing the field via an interface.
func (*EffectiveAccessEffectiveAccessUser) GetId ¶ added in v0.4.0
func (v *EffectiveAccessEffectiveAccessUser) GetId() string
GetId returns EffectiveAccessEffectiveAccessUser.Id, and is useful for accessing the field via an interface.
func (*EffectiveAccessEffectiveAccessUser) GetName ¶ added in v0.4.0
func (v *EffectiveAccessEffectiveAccessUser) GetName() *string
GetName returns EffectiveAccessEffectiveAccessUser.Name, and is useful for accessing the field via an interface.
type EffectiveAccessResponse ¶ added in v0.4.0
type EffectiveAccessResponse struct {
// issue #323: resolve the effective access a single user has to a single
// resource, with the grants that confer it. The authoritative backing for
// the 'hadron access check <user> <resource>' audit command — one resolver
// that reuses the server's authorization rules instead of re-deriving them
// client-side.
//
// 'user' (the subject) accepts a User ID or a hrn:user:<handle> URN (spec
// cor:urn:010:01). 'resource' is dispatched on URN type the same way
// resolveUrn dispatches: a memory, node, app, agent, org, or user MUST be a
// fully-qualified hrn:<type>: URN (a bare id is ambiguous across those kinds).
// A bare id with no scheme prefix is treated as an AiServiceConfig id — the
// only URN-less resource kind.
//
// Authorization (who may CALL this): the same visibility bar already
// enforced on the underlying grant tables — a platform ADMIN/OWNER, an
// ADMIN/OWNER of the resource's owning org, or (for a strict-owner memory)
// the memory's principal. Everyone else gets FORBIDDEN, NOT a silent empty
// result, so the command can't probe access it isn't allowed to audit.
//
// A subject with no access is a SUCCESS with an empty grants list (all
// capabilities false, role null) — not NOT_FOUND. An unresolvable or
// unknown resource ref is NOT_FOUND.
EffectiveAccess *EffectiveAccessEffectiveAccess `json:"effectiveAccess"`
}
EffectiveAccessResponse is returned by EffectiveAccess on success.
func EffectiveAccess ¶ added in v0.4.0
func (*EffectiveAccessResponse) GetEffectiveAccess ¶ added in v0.4.0
func (v *EffectiveAccessResponse) GetEffectiveAccess() *EffectiveAccessEffectiveAccess
GetEffectiveAccess returns EffectiveAccessResponse.EffectiveAccess, and is useful for accessing the field via an interface.
type GetMemoryMemory ¶
type GetMemoryMemory struct {
Id string `json:"id"`
Urn string `json:"urn"`
Name string `json:"name"`
ShortDescription *string `json:"shortDescription"`
Description *string `json:"description"`
Class MemoryClass `json:"class"`
Visibility *MemoryVisibility `json:"visibility"`
OrganizationId string `json:"organizationId"`
IsEncrypted bool `json:"isEncrypted"`
Tags []string `json:"tags"`
Source *string `json:"source"`
SyncStatus SyncStatus `json:"syncStatus"`
VectorIndexEnabled bool `json:"vectorIndexEnabled"`
// Free-form structured metadata bag (client-defined JSON, no server-side
// semantics). Null when unset. Settable via createMemory / updateMemory.
Data *json.RawMessage `json:"data"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
GetMemoryMemory includes the requested fields of the GraphQL type Memory.
func (*GetMemoryMemory) GetClass ¶
func (v *GetMemoryMemory) GetClass() MemoryClass
GetClass returns GetMemoryMemory.Class, and is useful for accessing the field via an interface.
func (*GetMemoryMemory) GetCreatedAt ¶
func (v *GetMemoryMemory) GetCreatedAt() string
GetCreatedAt returns GetMemoryMemory.CreatedAt, and is useful for accessing the field via an interface.
func (*GetMemoryMemory) GetData ¶ added in v0.2.0
func (v *GetMemoryMemory) GetData() *json.RawMessage
GetData returns GetMemoryMemory.Data, and is useful for accessing the field via an interface.
func (*GetMemoryMemory) GetDescription ¶
func (v *GetMemoryMemory) GetDescription() *string
GetDescription returns GetMemoryMemory.Description, and is useful for accessing the field via an interface.
func (*GetMemoryMemory) GetId ¶
func (v *GetMemoryMemory) GetId() string
GetId returns GetMemoryMemory.Id, and is useful for accessing the field via an interface.
func (*GetMemoryMemory) GetIsEncrypted ¶
func (v *GetMemoryMemory) GetIsEncrypted() bool
GetIsEncrypted returns GetMemoryMemory.IsEncrypted, and is useful for accessing the field via an interface.
func (*GetMemoryMemory) GetName ¶
func (v *GetMemoryMemory) GetName() string
GetName returns GetMemoryMemory.Name, and is useful for accessing the field via an interface.
func (*GetMemoryMemory) GetOrganizationId ¶
func (v *GetMemoryMemory) GetOrganizationId() string
GetOrganizationId returns GetMemoryMemory.OrganizationId, and is useful for accessing the field via an interface.
func (*GetMemoryMemory) GetShortDescription ¶
func (v *GetMemoryMemory) GetShortDescription() *string
GetShortDescription returns GetMemoryMemory.ShortDescription, and is useful for accessing the field via an interface.
func (*GetMemoryMemory) GetSource ¶
func (v *GetMemoryMemory) GetSource() *string
GetSource returns GetMemoryMemory.Source, and is useful for accessing the field via an interface.
func (*GetMemoryMemory) GetSyncStatus ¶
func (v *GetMemoryMemory) GetSyncStatus() SyncStatus
GetSyncStatus returns GetMemoryMemory.SyncStatus, and is useful for accessing the field via an interface.
func (*GetMemoryMemory) GetTags ¶
func (v *GetMemoryMemory) GetTags() []string
GetTags returns GetMemoryMemory.Tags, and is useful for accessing the field via an interface.
func (*GetMemoryMemory) GetUpdatedAt ¶
func (v *GetMemoryMemory) GetUpdatedAt() string
GetUpdatedAt returns GetMemoryMemory.UpdatedAt, and is useful for accessing the field via an interface.
func (*GetMemoryMemory) GetUrn ¶
func (v *GetMemoryMemory) GetUrn() string
GetUrn returns GetMemoryMemory.Urn, and is useful for accessing the field via an interface.
func (*GetMemoryMemory) GetVectorIndexEnabled ¶
func (v *GetMemoryMemory) GetVectorIndexEnabled() bool
GetVectorIndexEnabled returns GetMemoryMemory.VectorIndexEnabled, and is useful for accessing the field via an interface.
func (*GetMemoryMemory) GetVisibility ¶
func (v *GetMemoryMemory) GetVisibility() *MemoryVisibility
GetVisibility returns GetMemoryMemory.Visibility, and is useful for accessing the field via an interface.
type GetMemoryResponse ¶
type GetMemoryResponse struct {
// Fetch a single Memory (org member or platform ADMIN).
//
// Accepts the entity's ID or URN.
Memory *GetMemoryMemory `json:"memory"`
}
GetMemoryResponse is returned by GetMemory on success.
func (*GetMemoryResponse) GetMemory ¶
func (v *GetMemoryResponse) GetMemory() *GetMemoryMemory
GetMemory returns GetMemoryResponse.Memory, and is useful for accessing the field via an interface.
type GetNodeByIdNodeByIdNode ¶
type GetNodeByIdNodeByIdNode struct {
Id string `json:"id"`
MemoryId string `json:"memoryId"`
Loc string `json:"loc"`
Name string `json:"name"`
Description *string `json:"description"`
// Paragraph-length summary of this node. Opt-in on hadron_get_node via the contentScope parameter. hadron_find_nodes preview surfacing ships in spec 031 US2 — not yet live. Never surfaced in hadron_list_nodes. Cap is 2000 characters; longer values are rejected with NodeAbstractTooLongError. Empty + whitespace-only values normalize to null. Spec 031.
Abstract *string `json:"abstract"`
// Spec 032 — fingerprint of the content value at the time abstract was authored. SHA-256 of plaintext content, truncated to 8 hex chars. Compared at read time against computeContentHash(node.content) to detect staleness; when the two values differ AND abstractOriginHash is non-null, the abstract may not reflect current content. System-managed; never settable via NodeInput.
AbstractOriginHash *string `json:"abstractOriginHash"`
NodeType string `json:"nodeType"`
Tags []string `json:"tags"`
Content *string `json:"content"`
Data *json.RawMessage `json:"data"`
Seq *int `json:"seq"`
IsRunnable *bool `json:"isRunnable"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
OutgoingEdges []*GetNodeByIdNodeByIdNodeOutgoingEdgesEdge `json:"outgoingEdges"`
IncomingEdges []*GetNodeByIdNodeByIdNodeIncomingEdgesEdge `json:"incomingEdges"`
}
GetNodeByIdNodeByIdNode includes the requested fields of the GraphQL type Node.
func (*GetNodeByIdNodeByIdNode) GetAbstract ¶
func (v *GetNodeByIdNodeByIdNode) GetAbstract() *string
GetAbstract returns GetNodeByIdNodeByIdNode.Abstract, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNode) GetAbstractOriginHash ¶ added in v0.2.0
func (v *GetNodeByIdNodeByIdNode) GetAbstractOriginHash() *string
GetAbstractOriginHash returns GetNodeByIdNodeByIdNode.AbstractOriginHash, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNode) GetContent ¶
func (v *GetNodeByIdNodeByIdNode) GetContent() *string
GetContent returns GetNodeByIdNodeByIdNode.Content, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNode) GetCreatedAt ¶
func (v *GetNodeByIdNodeByIdNode) GetCreatedAt() string
GetCreatedAt returns GetNodeByIdNodeByIdNode.CreatedAt, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNode) GetData ¶ added in v0.2.0
func (v *GetNodeByIdNodeByIdNode) GetData() *json.RawMessage
GetData returns GetNodeByIdNodeByIdNode.Data, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNode) GetDescription ¶
func (v *GetNodeByIdNodeByIdNode) GetDescription() *string
GetDescription returns GetNodeByIdNodeByIdNode.Description, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNode) GetId ¶
func (v *GetNodeByIdNodeByIdNode) GetId() string
GetId returns GetNodeByIdNodeByIdNode.Id, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNode) GetIncomingEdges ¶
func (v *GetNodeByIdNodeByIdNode) GetIncomingEdges() []*GetNodeByIdNodeByIdNodeIncomingEdgesEdge
GetIncomingEdges returns GetNodeByIdNodeByIdNode.IncomingEdges, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNode) GetIsRunnable ¶ added in v0.4.0
func (v *GetNodeByIdNodeByIdNode) GetIsRunnable() *bool
GetIsRunnable returns GetNodeByIdNodeByIdNode.IsRunnable, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNode) GetLoc ¶
func (v *GetNodeByIdNodeByIdNode) GetLoc() string
GetLoc returns GetNodeByIdNodeByIdNode.Loc, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNode) GetMemoryId ¶
func (v *GetNodeByIdNodeByIdNode) GetMemoryId() string
GetMemoryId returns GetNodeByIdNodeByIdNode.MemoryId, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNode) GetName ¶
func (v *GetNodeByIdNodeByIdNode) GetName() string
GetName returns GetNodeByIdNodeByIdNode.Name, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNode) GetNodeType ¶
func (v *GetNodeByIdNodeByIdNode) GetNodeType() string
GetNodeType returns GetNodeByIdNodeByIdNode.NodeType, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNode) GetOutgoingEdges ¶
func (v *GetNodeByIdNodeByIdNode) GetOutgoingEdges() []*GetNodeByIdNodeByIdNodeOutgoingEdgesEdge
GetOutgoingEdges returns GetNodeByIdNodeByIdNode.OutgoingEdges, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNode) GetSeq ¶
func (v *GetNodeByIdNodeByIdNode) GetSeq() *int
GetSeq returns GetNodeByIdNodeByIdNode.Seq, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNode) GetTags ¶
func (v *GetNodeByIdNodeByIdNode) GetTags() []string
GetTags returns GetNodeByIdNodeByIdNode.Tags, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNode) GetUpdatedAt ¶
func (v *GetNodeByIdNodeByIdNode) GetUpdatedAt() string
GetUpdatedAt returns GetNodeByIdNodeByIdNode.UpdatedAt, and is useful for accessing the field via an interface.
type GetNodeByIdNodeByIdNodeIncomingEdgesEdge ¶
type GetNodeByIdNodeByIdNodeIncomingEdgesEdge struct {
Id string `json:"id"`
Name *string `json:"name"`
Loc string `json:"loc"`
IsRunnable *bool `json:"isRunnable"`
Priority int `json:"priority"`
Source *GetNodeByIdNodeByIdNodeIncomingEdgesEdgeSourceNode `json:"source"`
}
GetNodeByIdNodeByIdNodeIncomingEdgesEdge includes the requested fields of the GraphQL type Edge.
func (*GetNodeByIdNodeByIdNodeIncomingEdgesEdge) GetId ¶
func (v *GetNodeByIdNodeByIdNodeIncomingEdgesEdge) GetId() string
GetId returns GetNodeByIdNodeByIdNodeIncomingEdgesEdge.Id, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNodeIncomingEdgesEdge) GetIsRunnable ¶ added in v0.3.0
func (v *GetNodeByIdNodeByIdNodeIncomingEdgesEdge) GetIsRunnable() *bool
GetIsRunnable returns GetNodeByIdNodeByIdNodeIncomingEdgesEdge.IsRunnable, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNodeIncomingEdgesEdge) GetLoc ¶ added in v0.3.0
func (v *GetNodeByIdNodeByIdNodeIncomingEdgesEdge) GetLoc() string
GetLoc returns GetNodeByIdNodeByIdNodeIncomingEdgesEdge.Loc, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNodeIncomingEdgesEdge) GetName ¶ added in v0.3.0
func (v *GetNodeByIdNodeByIdNodeIncomingEdgesEdge) GetName() *string
GetName returns GetNodeByIdNodeByIdNodeIncomingEdgesEdge.Name, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNodeIncomingEdgesEdge) GetPriority ¶
func (v *GetNodeByIdNodeByIdNodeIncomingEdgesEdge) GetPriority() int
GetPriority returns GetNodeByIdNodeByIdNodeIncomingEdgesEdge.Priority, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNodeIncomingEdgesEdge) GetSource ¶
func (v *GetNodeByIdNodeByIdNodeIncomingEdgesEdge) GetSource() *GetNodeByIdNodeByIdNodeIncomingEdgesEdgeSourceNode
GetSource returns GetNodeByIdNodeByIdNodeIncomingEdgesEdge.Source, and is useful for accessing the field via an interface.
type GetNodeByIdNodeByIdNodeIncomingEdgesEdgeSourceNode ¶
type GetNodeByIdNodeByIdNodeIncomingEdgesEdgeSourceNode struct {
Id string `json:"id"`
Loc string `json:"loc"`
MemoryId string `json:"memoryId"`
}
GetNodeByIdNodeByIdNodeIncomingEdgesEdgeSourceNode includes the requested fields of the GraphQL type Node.
func (*GetNodeByIdNodeByIdNodeIncomingEdgesEdgeSourceNode) GetId ¶
func (v *GetNodeByIdNodeByIdNodeIncomingEdgesEdgeSourceNode) GetId() string
GetId returns GetNodeByIdNodeByIdNodeIncomingEdgesEdgeSourceNode.Id, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNodeIncomingEdgesEdgeSourceNode) GetLoc ¶
func (v *GetNodeByIdNodeByIdNodeIncomingEdgesEdgeSourceNode) GetLoc() string
GetLoc returns GetNodeByIdNodeByIdNodeIncomingEdgesEdgeSourceNode.Loc, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNodeIncomingEdgesEdgeSourceNode) GetMemoryId ¶
func (v *GetNodeByIdNodeByIdNodeIncomingEdgesEdgeSourceNode) GetMemoryId() string
GetMemoryId returns GetNodeByIdNodeByIdNodeIncomingEdgesEdgeSourceNode.MemoryId, and is useful for accessing the field via an interface.
type GetNodeByIdNodeByIdNodeOutgoingEdgesEdge ¶
type GetNodeByIdNodeByIdNodeOutgoingEdgesEdge struct {
Id string `json:"id"`
Name *string `json:"name"`
Loc string `json:"loc"`
IsRunnable *bool `json:"isRunnable"`
Priority int `json:"priority"`
Target *GetNodeByIdNodeByIdNodeOutgoingEdgesEdgeTargetNode `json:"target"`
}
GetNodeByIdNodeByIdNodeOutgoingEdgesEdge includes the requested fields of the GraphQL type Edge.
func (*GetNodeByIdNodeByIdNodeOutgoingEdgesEdge) GetId ¶
func (v *GetNodeByIdNodeByIdNodeOutgoingEdgesEdge) GetId() string
GetId returns GetNodeByIdNodeByIdNodeOutgoingEdgesEdge.Id, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNodeOutgoingEdgesEdge) GetIsRunnable ¶ added in v0.3.0
func (v *GetNodeByIdNodeByIdNodeOutgoingEdgesEdge) GetIsRunnable() *bool
GetIsRunnable returns GetNodeByIdNodeByIdNodeOutgoingEdgesEdge.IsRunnable, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNodeOutgoingEdgesEdge) GetLoc ¶ added in v0.3.0
func (v *GetNodeByIdNodeByIdNodeOutgoingEdgesEdge) GetLoc() string
GetLoc returns GetNodeByIdNodeByIdNodeOutgoingEdgesEdge.Loc, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNodeOutgoingEdgesEdge) GetName ¶ added in v0.3.0
func (v *GetNodeByIdNodeByIdNodeOutgoingEdgesEdge) GetName() *string
GetName returns GetNodeByIdNodeByIdNodeOutgoingEdgesEdge.Name, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNodeOutgoingEdgesEdge) GetPriority ¶
func (v *GetNodeByIdNodeByIdNodeOutgoingEdgesEdge) GetPriority() int
GetPriority returns GetNodeByIdNodeByIdNodeOutgoingEdgesEdge.Priority, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNodeOutgoingEdgesEdge) GetTarget ¶
func (v *GetNodeByIdNodeByIdNodeOutgoingEdgesEdge) GetTarget() *GetNodeByIdNodeByIdNodeOutgoingEdgesEdgeTargetNode
GetTarget returns GetNodeByIdNodeByIdNodeOutgoingEdgesEdge.Target, and is useful for accessing the field via an interface.
type GetNodeByIdNodeByIdNodeOutgoingEdgesEdgeTargetNode ¶
type GetNodeByIdNodeByIdNodeOutgoingEdgesEdgeTargetNode struct {
Id string `json:"id"`
Loc string `json:"loc"`
MemoryId string `json:"memoryId"`
}
GetNodeByIdNodeByIdNodeOutgoingEdgesEdgeTargetNode includes the requested fields of the GraphQL type Node.
func (*GetNodeByIdNodeByIdNodeOutgoingEdgesEdgeTargetNode) GetId ¶
func (v *GetNodeByIdNodeByIdNodeOutgoingEdgesEdgeTargetNode) GetId() string
GetId returns GetNodeByIdNodeByIdNodeOutgoingEdgesEdgeTargetNode.Id, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNodeOutgoingEdgesEdgeTargetNode) GetLoc ¶
func (v *GetNodeByIdNodeByIdNodeOutgoingEdgesEdgeTargetNode) GetLoc() string
GetLoc returns GetNodeByIdNodeByIdNodeOutgoingEdgesEdgeTargetNode.Loc, and is useful for accessing the field via an interface.
func (*GetNodeByIdNodeByIdNodeOutgoingEdgesEdgeTargetNode) GetMemoryId ¶
func (v *GetNodeByIdNodeByIdNodeOutgoingEdgesEdgeTargetNode) GetMemoryId() string
GetMemoryId returns GetNodeByIdNodeByIdNodeOutgoingEdgesEdgeTargetNode.MemoryId, and is useful for accessing the field via an interface.
type GetNodeByIdResponse ¶
type GetNodeByIdResponse struct {
NodeById *GetNodeByIdNodeByIdNode `json:"nodeById"`
}
GetNodeByIdResponse is returned by GetNodeById on success.
func GetNodeById ¶
func (*GetNodeByIdResponse) GetNodeById ¶
func (v *GetNodeByIdResponse) GetNodeById() *GetNodeByIdNodeByIdNode
GetNodeById returns GetNodeByIdResponse.NodeById, and is useful for accessing the field via an interface.
type GetOrganizationOrganization ¶ added in v0.3.0
type GetOrganizationOrganization struct {
OrgFields `json:"-"`
}
GetOrganizationOrganization includes the requested fields of the GraphQL type Organization.
func (*GetOrganizationOrganization) GetCreatedAt ¶ added in v0.3.0
func (v *GetOrganizationOrganization) GetCreatedAt() string
GetCreatedAt returns GetOrganizationOrganization.CreatedAt, and is useful for accessing the field via an interface.
func (*GetOrganizationOrganization) GetId ¶ added in v0.3.0
func (v *GetOrganizationOrganization) GetId() string
GetId returns GetOrganizationOrganization.Id, and is useful for accessing the field via an interface.
func (*GetOrganizationOrganization) GetIsVisible ¶ added in v0.3.0
func (v *GetOrganizationOrganization) GetIsVisible() *bool
GetIsVisible returns GetOrganizationOrganization.IsVisible, and is useful for accessing the field via an interface.
func (*GetOrganizationOrganization) GetName ¶ added in v0.3.0
func (v *GetOrganizationOrganization) GetName() string
GetName returns GetOrganizationOrganization.Name, and is useful for accessing the field via an interface.
func (*GetOrganizationOrganization) GetUpdatedAt ¶ added in v0.3.0
func (v *GetOrganizationOrganization) GetUpdatedAt() string
GetUpdatedAt returns GetOrganizationOrganization.UpdatedAt, and is useful for accessing the field via an interface.
func (*GetOrganizationOrganization) GetUrn ¶ added in v0.3.0
func (v *GetOrganizationOrganization) GetUrn() string
GetUrn returns GetOrganizationOrganization.Urn, and is useful for accessing the field via an interface.
func (*GetOrganizationOrganization) MarshalJSON ¶ added in v0.3.0
func (v *GetOrganizationOrganization) MarshalJSON() ([]byte, error)
func (*GetOrganizationOrganization) UnmarshalJSON ¶ added in v0.3.0
func (v *GetOrganizationOrganization) UnmarshalJSON(b []byte) error
type GetOrganizationResponse ¶ added in v0.3.0
type GetOrganizationResponse struct {
// Fetch an Organization by id (org member or platform ADMIN).
//
// Accepts the entity's ID or URN.
Organization *GetOrganizationOrganization `json:"organization"`
}
GetOrganizationResponse is returned by GetOrganization on success.
func GetOrganization ¶ added in v0.3.0
func (*GetOrganizationResponse) GetOrganization ¶ added in v0.3.0
func (v *GetOrganizationResponse) GetOrganization() *GetOrganizationOrganization
GetOrganization returns GetOrganizationResponse.Organization, and is useful for accessing the field via an interface.
type MeMeUser ¶
type MeMeUser struct {
Id string `json:"id"`
Name *string `json:"name"`
Email *string `json:"email"`
Handle *string `json:"handle"`
GithubUsername *string `json:"githubUsername"`
Roles []Role `json:"roles"`
}
MeMeUser includes the requested fields of the GraphQL type User.
func (*MeMeUser) GetEmail ¶
GetEmail returns MeMeUser.Email, and is useful for accessing the field via an interface.
func (*MeMeUser) GetGithubUsername ¶
GetGithubUsername returns MeMeUser.GithubUsername, and is useful for accessing the field via an interface.
func (*MeMeUser) GetHandle ¶
GetHandle returns MeMeUser.Handle, and is useful for accessing the field via an interface.
func (*MeMeUser) GetId ¶
GetId returns MeMeUser.Id, and is useful for accessing the field via an interface.
type MeResponse ¶
type MeResponse struct {
Me *MeMeUser `json:"me"`
}
MeResponse is returned by Me on success.
func (*MeResponse) GetMe ¶
func (v *MeResponse) GetMe() *MeMeUser
GetMe returns MeResponse.Me, and is useful for accessing the field via an interface.
type MemUserFields ¶ added in v0.3.0
type MemUserFields struct {
Id string `json:"id"`
Name *string `json:"name"`
Email *string `json:"email"`
Handle *string `json:"handle"`
}
MemUserFields includes the GraphQL fields of User requested by the fragment MemUserFields.
func (*MemUserFields) GetEmail ¶ added in v0.3.0
func (v *MemUserFields) GetEmail() *string
GetEmail returns MemUserFields.Email, and is useful for accessing the field via an interface.
func (*MemUserFields) GetHandle ¶ added in v0.3.0
func (v *MemUserFields) GetHandle() *string
GetHandle returns MemUserFields.Handle, and is useful for accessing the field via an interface.
func (*MemUserFields) GetId ¶ added in v0.3.0
func (v *MemUserFields) GetId() string
GetId returns MemUserFields.Id, and is useful for accessing the field via an interface.
func (*MemUserFields) GetName ¶ added in v0.3.0
func (v *MemUserFields) GetName() *string
GetName returns MemUserFields.Name, and is useful for accessing the field via an interface.
type MemoryClass ¶
type MemoryClass string
const ( MemoryClassApp MemoryClass = "app" // 023-app-shape US4: team-shared memory with symmetric membership. // Governed by a list of MemoryMember rows (each with reader/writer/ // owner role) — no single owner field on Memory. Closes the // Company Brain gap that wasn't covered by the four legacy classes. MemoryClassGroup MemoryClass = "group" MemoryClassKnowledge MemoryClass = "knowledge" MemoryClassPersonal MemoryClass = "personal" // Single-owner, owner-only memory — no MemoryShare path (not // shareable), no ADMIN/OWNER bypass. Spec 034 (hadron-server #242) // made it user-creatable via createMemory: free-standing (no // app/agent) or app-scoped. May opt into encrypt-at-rest // (the private CLASS marks it; visibility is NULL), but the encryption // implementation itself is a deferred follow-up — do NOT rely on // at-rest encryption for secret material yet. MemoryClassPrivate MemoryClass = "private" MemoryClassSystem MemoryClass = "system" )
type MemoryMemberRole ¶ added in v0.3.0
type MemoryMemberRole string
023-app-shape US4: role on a MemoryMember row. Symmetric team membership for group-class memory. - reader: read access. - writer: read + write (the member can add/edit/delete nodes within the memory). - owner: read + write + management — add/remove other members, change roles, delete the Memory itself. Subject to the last-owner protection rule (FR-038): the platform refuses to remove or demote the sole remaining owner; the path to fully empty a group memory is to delete it.
const ( MemoryMemberRoleOwner MemoryMemberRole = "owner" MemoryMemberRoleReader MemoryMemberRole = "reader" MemoryMemberRoleWriter MemoryMemberRole = "writer" )
type MemoryMembersMemory ¶ added in v0.3.0
type MemoryMembersMemory struct {
Id string `json:"id"`
// 023-app-shape US4: team membership rows on this memory. Non-empty
// only when class = group (FR-027). Visible to any current member
// (any role) and to ADMIN/OWNER of the memory's owning org.
Members []*MemoryMembersMemoryMembersMemoryMember `json:"members"`
}
MemoryMembersMemory includes the requested fields of the GraphQL type Memory.
func (*MemoryMembersMemory) GetId ¶ added in v0.3.0
func (v *MemoryMembersMemory) GetId() string
GetId returns MemoryMembersMemory.Id, and is useful for accessing the field via an interface.
func (*MemoryMembersMemory) GetMembers ¶ added in v0.3.0
func (v *MemoryMembersMemory) GetMembers() []*MemoryMembersMemoryMembersMemoryMember
GetMembers returns MemoryMembersMemory.Members, and is useful for accessing the field via an interface.
type MemoryMembersMemoryMembersMemoryMember ¶ added in v0.3.0
type MemoryMembersMemoryMembersMemoryMember struct {
Role MemoryMemberRole `json:"role"`
CreatedAt string `json:"createdAt"`
User *MemoryMembersMemoryMembersMemoryMemberUser `json:"user"`
}
MemoryMembersMemoryMembersMemoryMember includes the requested fields of the GraphQL type MemoryMember. The GraphQL type's documentation follows.
023-app-shape US4: symmetric team-membership row for group-class memory. The "Company Brain" model — multiple users collaboratively read/write a shared memory, governance by role, no single owner on the Memory itself.
func (*MemoryMembersMemoryMembersMemoryMember) GetCreatedAt ¶ added in v0.3.0
func (v *MemoryMembersMemoryMembersMemoryMember) GetCreatedAt() string
GetCreatedAt returns MemoryMembersMemoryMembersMemoryMember.CreatedAt, and is useful for accessing the field via an interface.
func (*MemoryMembersMemoryMembersMemoryMember) GetRole ¶ added in v0.3.0
func (v *MemoryMembersMemoryMembersMemoryMember) GetRole() MemoryMemberRole
GetRole returns MemoryMembersMemoryMembersMemoryMember.Role, and is useful for accessing the field via an interface.
func (*MemoryMembersMemoryMembersMemoryMember) GetUser ¶ added in v0.3.0
func (v *MemoryMembersMemoryMembersMemoryMember) GetUser() *MemoryMembersMemoryMembersMemoryMemberUser
GetUser returns MemoryMembersMemoryMembersMemoryMember.User, and is useful for accessing the field via an interface.
type MemoryMembersMemoryMembersMemoryMemberUser ¶ added in v0.3.0
type MemoryMembersMemoryMembersMemoryMemberUser struct {
MemUserFields `json:"-"`
}
MemoryMembersMemoryMembersMemoryMemberUser includes the requested fields of the GraphQL type User.
func (*MemoryMembersMemoryMembersMemoryMemberUser) GetEmail ¶ added in v0.3.0
func (v *MemoryMembersMemoryMembersMemoryMemberUser) GetEmail() *string
GetEmail returns MemoryMembersMemoryMembersMemoryMemberUser.Email, and is useful for accessing the field via an interface.
func (*MemoryMembersMemoryMembersMemoryMemberUser) GetHandle ¶ added in v0.3.0
func (v *MemoryMembersMemoryMembersMemoryMemberUser) GetHandle() *string
GetHandle returns MemoryMembersMemoryMembersMemoryMemberUser.Handle, and is useful for accessing the field via an interface.
func (*MemoryMembersMemoryMembersMemoryMemberUser) GetId ¶ added in v0.3.0
func (v *MemoryMembersMemoryMembersMemoryMemberUser) GetId() string
GetId returns MemoryMembersMemoryMembersMemoryMemberUser.Id, and is useful for accessing the field via an interface.
func (*MemoryMembersMemoryMembersMemoryMemberUser) GetName ¶ added in v0.3.0
func (v *MemoryMembersMemoryMembersMemoryMemberUser) GetName() *string
GetName returns MemoryMembersMemoryMembersMemoryMemberUser.Name, and is useful for accessing the field via an interface.
func (*MemoryMembersMemoryMembersMemoryMemberUser) MarshalJSON ¶ added in v0.3.0
func (v *MemoryMembersMemoryMembersMemoryMemberUser) MarshalJSON() ([]byte, error)
func (*MemoryMembersMemoryMembersMemoryMemberUser) UnmarshalJSON ¶ added in v0.3.0
func (v *MemoryMembersMemoryMembersMemoryMemberUser) UnmarshalJSON(b []byte) error
type MemoryMembersResponse ¶ added in v0.3.0
type MemoryMembersResponse struct {
// Fetch a single Memory (org member or platform ADMIN).
//
// Accepts the entity's ID or URN.
Memory *MemoryMembersMemory `json:"memory"`
}
MemoryMembersResponse is returned by MemoryMembers on success.
func MemoryMembers ¶ added in v0.3.0
func MemoryMembers( ctx_ context.Context, client_ graphql.Client, id string, ) (data_ *MemoryMembersResponse, err_ error)
memory(id) is the path to a memory's member/share rows.
func (*MemoryMembersResponse) GetMemory ¶ added in v0.3.0
func (v *MemoryMembersResponse) GetMemory() *MemoryMembersMemory
GetMemory returns MemoryMembersResponse.Memory, and is useful for accessing the field via an interface.
type MemoryShareRole ¶ added in v0.3.0
type MemoryShareRole string
023-app-shape US3: role on a MemoryShare row. Asymmetric grant for personal-class memory. - reader: read access only. - writer: read + write (the grantee can add/edit/delete nodes within the memory).
const ( )
type MemorySharesMemory ¶ added in v0.3.0
type MemorySharesMemory struct {
// only when class = personal (FR-018). Includes grantee + role for
// each row. Visible only to the principal (memory.userId) and to
// ADMIN/OWNER of the memory's owning org.
Shares []*MemorySharesMemorySharesMemoryShare `json:"shares"`
}
MemorySharesMemory includes the requested fields of the GraphQL type Memory.
func (*MemorySharesMemory) GetId ¶ added in v0.3.0
func (v *MemorySharesMemory) GetId() string
GetId returns MemorySharesMemory.Id, and is useful for accessing the field via an interface.
func (*MemorySharesMemory) GetShares ¶ added in v0.3.0
func (v *MemorySharesMemory) GetShares() []*MemorySharesMemorySharesMemoryShare
GetShares returns MemorySharesMemory.Shares, and is useful for accessing the field via an interface.
type MemorySharesMemorySharesMemoryShare ¶ added in v0.3.0
type MemorySharesMemorySharesMemoryShare struct {
Grantee *MemorySharesMemorySharesMemoryShareGranteeUser `json:"grantee"`
}
MemorySharesMemorySharesMemoryShare includes the requested fields of the GraphQL type MemoryShare. The GraphQL type's documentation follows.
023-app-shape US3: asymmetric cross-user grant on a personal-class Memory. The principal (memory.userId) grants a grantee read/write access. Used for per-pairing isolation patterns (e.g., Alice's personal Memory paired-with-Mentor-A is distinct from her paired-with-Mentor-B Memory, each with its own MemoryShare).
func (*MemorySharesMemorySharesMemoryShare) GetCreatedAt ¶ added in v0.3.0
func (v *MemorySharesMemorySharesMemoryShare) GetCreatedAt() string
GetCreatedAt returns MemorySharesMemorySharesMemoryShare.CreatedAt, and is useful for accessing the field via an interface.
func (*MemorySharesMemorySharesMemoryShare) GetGrantee ¶ added in v0.3.0
func (v *MemorySharesMemorySharesMemoryShare) GetGrantee() *MemorySharesMemorySharesMemoryShareGranteeUser
GetGrantee returns MemorySharesMemorySharesMemoryShare.Grantee, and is useful for accessing the field via an interface.
func (*MemorySharesMemorySharesMemoryShare) GetRole ¶ added in v0.3.0
func (v *MemorySharesMemorySharesMemoryShare) GetRole() MemoryShareRole
GetRole returns MemorySharesMemorySharesMemoryShare.Role, and is useful for accessing the field via an interface.
type MemorySharesMemorySharesMemoryShareGranteeUser ¶ added in v0.3.0
type MemorySharesMemorySharesMemoryShareGranteeUser struct {
}
MemorySharesMemorySharesMemoryShareGranteeUser includes the requested fields of the GraphQL type User.
func (*MemorySharesMemorySharesMemoryShareGranteeUser) GetEmail ¶ added in v0.3.0
func (v *MemorySharesMemorySharesMemoryShareGranteeUser) GetEmail() *string
GetEmail returns MemorySharesMemorySharesMemoryShareGranteeUser.Email, and is useful for accessing the field via an interface.
func (*MemorySharesMemorySharesMemoryShareGranteeUser) GetHandle ¶ added in v0.3.0
func (v *MemorySharesMemorySharesMemoryShareGranteeUser) GetHandle() *string
GetHandle returns MemorySharesMemorySharesMemoryShareGranteeUser.Handle, and is useful for accessing the field via an interface.
func (*MemorySharesMemorySharesMemoryShareGranteeUser) GetId ¶ added in v0.3.0
func (v *MemorySharesMemorySharesMemoryShareGranteeUser) GetId() string
GetId returns MemorySharesMemorySharesMemoryShareGranteeUser.Id, and is useful for accessing the field via an interface.
func (*MemorySharesMemorySharesMemoryShareGranteeUser) GetName ¶ added in v0.3.0
func (v *MemorySharesMemorySharesMemoryShareGranteeUser) GetName() *string
GetName returns MemorySharesMemorySharesMemoryShareGranteeUser.Name, and is useful for accessing the field via an interface.
func (*MemorySharesMemorySharesMemoryShareGranteeUser) MarshalJSON ¶ added in v0.3.0
func (v *MemorySharesMemorySharesMemoryShareGranteeUser) MarshalJSON() ([]byte, error)
func (*MemorySharesMemorySharesMemoryShareGranteeUser) UnmarshalJSON ¶ added in v0.3.0
func (v *MemorySharesMemorySharesMemoryShareGranteeUser) UnmarshalJSON(b []byte) error
type MemorySharesResponse ¶ added in v0.3.0
type MemorySharesResponse struct {
//
// Accepts the entity's ID or URN.
Memory *MemorySharesMemory `json:"memory"`
}
MemorySharesResponse is returned by MemoryShares on success.
func MemoryShares ¶ added in v0.3.0
func (*MemorySharesResponse) GetMemory ¶ added in v0.3.0
func (v *MemorySharesResponse) GetMemory() *MemorySharesMemory
GetMemory returns MemorySharesResponse.Memory, and is useful for accessing the field via an interface.
type MemoryVisibility ¶
type MemoryVisibility string
035-visibility-enum-cleanup: meaningful only for knowledge (PUBLIC/ORGANIZATION) and group (GROUP); null otherwise. PERSONAL/PRIVATE were dropped — privacy is the personal/private memory CLASS now.
const ( // 023-app-shape US4: team-shared visibility. Bound bidirectionally // to MemoryClass.group by the chk_memory_group_visibility CHECK // constraint — a memory has class=group iff visibility=GROUP. MemoryVisibilityGroup MemoryVisibility = "GROUP" MemoryVisibilityOrganization MemoryVisibility = "ORGANIZATION" MemoryVisibilityPublic MemoryVisibility = "PUBLIC" )
type MyMemoriesMyMemoriesMemory ¶
type MyMemoriesMyMemoriesMemory struct {
Id string `json:"id"`
Urn string `json:"urn"`
Name string `json:"name"`
ShortDescription *string `json:"shortDescription"`
Class MemoryClass `json:"class"`
Visibility *MemoryVisibility `json:"visibility"`
OrganizationId string `json:"organizationId"`
IsEncrypted bool `json:"isEncrypted"`
UpdatedAt string `json:"updatedAt"`
}
MyMemoriesMyMemoriesMemory includes the requested fields of the GraphQL type Memory.
func (*MyMemoriesMyMemoriesMemory) GetClass ¶
func (v *MyMemoriesMyMemoriesMemory) GetClass() MemoryClass
GetClass returns MyMemoriesMyMemoriesMemory.Class, and is useful for accessing the field via an interface.
func (*MyMemoriesMyMemoriesMemory) GetId ¶
func (v *MyMemoriesMyMemoriesMemory) GetId() string
GetId returns MyMemoriesMyMemoriesMemory.Id, and is useful for accessing the field via an interface.
func (*MyMemoriesMyMemoriesMemory) GetIsEncrypted ¶
func (v *MyMemoriesMyMemoriesMemory) GetIsEncrypted() bool
GetIsEncrypted returns MyMemoriesMyMemoriesMemory.IsEncrypted, and is useful for accessing the field via an interface.
func (*MyMemoriesMyMemoriesMemory) GetName ¶
func (v *MyMemoriesMyMemoriesMemory) GetName() string
GetName returns MyMemoriesMyMemoriesMemory.Name, and is useful for accessing the field via an interface.
func (*MyMemoriesMyMemoriesMemory) GetOrganizationId ¶
func (v *MyMemoriesMyMemoriesMemory) GetOrganizationId() string
GetOrganizationId returns MyMemoriesMyMemoriesMemory.OrganizationId, and is useful for accessing the field via an interface.
func (*MyMemoriesMyMemoriesMemory) GetShortDescription ¶
func (v *MyMemoriesMyMemoriesMemory) GetShortDescription() *string
GetShortDescription returns MyMemoriesMyMemoriesMemory.ShortDescription, and is useful for accessing the field via an interface.
func (*MyMemoriesMyMemoriesMemory) GetUpdatedAt ¶
func (v *MyMemoriesMyMemoriesMemory) GetUpdatedAt() string
GetUpdatedAt returns MyMemoriesMyMemoriesMemory.UpdatedAt, and is useful for accessing the field via an interface.
func (*MyMemoriesMyMemoriesMemory) GetUrn ¶
func (v *MyMemoriesMyMemoriesMemory) GetUrn() string
GetUrn returns MyMemoriesMyMemoriesMemory.Urn, and is useful for accessing the field via an interface.
func (*MyMemoriesMyMemoriesMemory) GetVisibility ¶
func (v *MyMemoriesMyMemoriesMemory) GetVisibility() *MemoryVisibility
GetVisibility returns MyMemoriesMyMemoriesMemory.Visibility, and is useful for accessing the field via an interface.
type MyMemoriesResponse ¶
type MyMemoriesResponse struct {
MyMemories []*MyMemoriesMyMemoriesMemory `json:"myMemories"`
}
MyMemoriesResponse is returned by MyMemories on success.
func MyMemories ¶
func (*MyMemoriesResponse) GetMyMemories ¶
func (v *MyMemoriesResponse) GetMyMemories() []*MyMemoriesMyMemoriesMemory
GetMyMemories returns MyMemoriesResponse.MyMemories, and is useful for accessing the field via an interface.
type MyUserApiKeysMyUserApiKeysUserApiKey ¶ added in v0.3.0
type MyUserApiKeysMyUserApiKeysUserApiKey struct {
UserApiKeyFields `json:"-"`
}
MyUserApiKeysMyUserApiKeysUserApiKey includes the requested fields of the GraphQL type UserApiKey.
func (*MyUserApiKeysMyUserApiKeysUserApiKey) GetCreatedAt ¶ added in v0.3.0
func (v *MyUserApiKeysMyUserApiKeysUserApiKey) GetCreatedAt() string
GetCreatedAt returns MyUserApiKeysMyUserApiKeysUserApiKey.CreatedAt, and is useful for accessing the field via an interface.
func (*MyUserApiKeysMyUserApiKeysUserApiKey) GetId ¶ added in v0.3.0
func (v *MyUserApiKeysMyUserApiKeysUserApiKey) GetId() string
GetId returns MyUserApiKeysMyUserApiKeysUserApiKey.Id, and is useful for accessing the field via an interface.
func (*MyUserApiKeysMyUserApiKeysUserApiKey) GetIssuedVia ¶ added in v0.3.0
func (v *MyUserApiKeysMyUserApiKeysUserApiKey) GetIssuedVia() *string
GetIssuedVia returns MyUserApiKeysMyUserApiKeysUserApiKey.IssuedVia, and is useful for accessing the field via an interface.
func (*MyUserApiKeysMyUserApiKeysUserApiKey) GetKeyPreview ¶ added in v0.3.0
func (v *MyUserApiKeysMyUserApiKeysUserApiKey) GetKeyPreview() string
GetKeyPreview returns MyUserApiKeysMyUserApiKeysUserApiKey.KeyPreview, and is useful for accessing the field via an interface.
func (*MyUserApiKeysMyUserApiKeysUserApiKey) GetLabel ¶ added in v0.3.0
func (v *MyUserApiKeysMyUserApiKeysUserApiKey) GetLabel() *string
GetLabel returns MyUserApiKeysMyUserApiKeysUserApiKey.Label, and is useful for accessing the field via an interface.
func (*MyUserApiKeysMyUserApiKeysUserApiKey) GetLastUsedAt ¶ added in v0.3.0
func (v *MyUserApiKeysMyUserApiKeysUserApiKey) GetLastUsedAt() *string
GetLastUsedAt returns MyUserApiKeysMyUserApiKeysUserApiKey.LastUsedAt, and is useful for accessing the field via an interface.
func (*MyUserApiKeysMyUserApiKeysUserApiKey) GetRevokedAt ¶ added in v0.3.0
func (v *MyUserApiKeysMyUserApiKeysUserApiKey) GetRevokedAt() *string
GetRevokedAt returns MyUserApiKeysMyUserApiKeysUserApiKey.RevokedAt, and is useful for accessing the field via an interface.
func (*MyUserApiKeysMyUserApiKeysUserApiKey) MarshalJSON ¶ added in v0.3.0
func (v *MyUserApiKeysMyUserApiKeysUserApiKey) MarshalJSON() ([]byte, error)
func (*MyUserApiKeysMyUserApiKeysUserApiKey) UnmarshalJSON ¶ added in v0.3.0
func (v *MyUserApiKeysMyUserApiKeysUserApiKey) UnmarshalJSON(b []byte) error
type MyUserApiKeysResponse ¶ added in v0.3.0
type MyUserApiKeysResponse struct {
// 025-oauth-for-mcp FR-004: list the calling User's API keys (active
// + revoked, createdAt DESC). Powers Phase 3's portal revocation UI
// (SC-006). Rejected with UNAUTHENTICATED for AppKey-resolved
// callers (no user in context). PR-137 review delta D5 — Query
// not present in PR 137.
MyUserApiKeys []*MyUserApiKeysMyUserApiKeysUserApiKey `json:"myUserApiKeys"`
}
MyUserApiKeysResponse is returned by MyUserApiKeys on success.
func MyUserApiKeys ¶ added in v0.3.0
func (*MyUserApiKeysResponse) GetMyUserApiKeys ¶ added in v0.3.0
func (v *MyUserApiKeysResponse) GetMyUserApiKeys() []*MyUserApiKeysMyUserApiKeysUserApiKey
GetMyUserApiKeys returns MyUserApiKeysResponse.MyUserApiKeys, and is useful for accessing the field via an interface.
type NodeBatchNodeBatchNodeBatchResult ¶ added in v0.2.0
type NodeBatchNodeBatchNodeBatchResult struct {
Truncated bool `json:"truncated"`
Omitted []string `json:"omitted"`
Nodes []*NodeBatchNodeBatchNodeBatchResultNodesNode `json:"nodes"`
}
NodeBatchNodeBatchNodeBatchResult includes the requested fields of the GraphQL type NodeBatchResult. The GraphQL type's documentation follows.
Spec cor:api:040 — result envelope for the batch node read (nodeBatch). 'nodes' is the authorized, existing subset (input order for an id set, loc order for a prefix). 'unavailable' lists the requested refs that were denied OR not found — indistinguishable, so the result never discloses whether an unreadable node exists. 'truncated' is true when the response-size cap was reached, and 'omitted' then carries the dropped node ids. (Over the node-count cap the query errors instead — never a silent short read.)
func (*NodeBatchNodeBatchNodeBatchResult) GetNodes ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResult) GetNodes() []*NodeBatchNodeBatchNodeBatchResultNodesNode
GetNodes returns NodeBatchNodeBatchNodeBatchResult.Nodes, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResult) GetOmitted ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResult) GetOmitted() []string
GetOmitted returns NodeBatchNodeBatchNodeBatchResult.Omitted, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResult) GetTruncated ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResult) GetTruncated() bool
GetTruncated returns NodeBatchNodeBatchNodeBatchResult.Truncated, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResult) GetUnavailable ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResult) GetUnavailable() []string
GetUnavailable returns NodeBatchNodeBatchNodeBatchResult.Unavailable, and is useful for accessing the field via an interface.
type NodeBatchNodeBatchNodeBatchResultNodesNode ¶ added in v0.2.0
type NodeBatchNodeBatchNodeBatchResultNodesNode struct {
Id string `json:"id"`
MemoryId string `json:"memoryId"`
Loc string `json:"loc"`
Name string `json:"name"`
Alias *string `json:"alias"`
NodeType string `json:"nodeType"`
Description *string `json:"description"`
// Paragraph-length summary of this node. Opt-in on hadron_get_node via the contentScope parameter. hadron_find_nodes preview surfacing ships in spec 031 US2 — not yet live. Never surfaced in hadron_list_nodes. Cap is 2000 characters; longer values are rejected with NodeAbstractTooLongError. Empty + whitespace-only values normalize to null. Spec 031.
Abstract *string `json:"abstract"`
// Spec 032 — fingerprint of the content value at the time abstract was authored. SHA-256 of plaintext content, truncated to 8 hex chars. Compared at read time against computeContentHash(node.content) to detect staleness; when the two values differ AND abstractOriginHash is non-null, the abstract may not reflect current content. System-managed; never settable via NodeInput.
AbstractOriginHash *string `json:"abstractOriginHash"`
Tags []string `json:"tags"`
Seq *int `json:"seq"`
Data *json.RawMessage `json:"data"`
Properties *json.RawMessage `json:"properties"`
Content *string `json:"content"`
UpdatedAt string `json:"updatedAt"`
OutgoingEdges []*NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge `json:"outgoingEdges"`
IncomingEdges []*NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge `json:"incomingEdges"`
}
NodeBatchNodeBatchNodeBatchResultNodesNode includes the requested fields of the GraphQL type Node.
func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetAbstract ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetAbstract() *string
GetAbstract returns NodeBatchNodeBatchNodeBatchResultNodesNode.Abstract, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetAbstractOriginHash ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetAbstractOriginHash() *string
GetAbstractOriginHash returns NodeBatchNodeBatchNodeBatchResultNodesNode.AbstractOriginHash, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetAlias ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetAlias() *string
GetAlias returns NodeBatchNodeBatchNodeBatchResultNodesNode.Alias, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetContent ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetContent() *string
GetContent returns NodeBatchNodeBatchNodeBatchResultNodesNode.Content, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetData ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetData() *json.RawMessage
GetData returns NodeBatchNodeBatchNodeBatchResultNodesNode.Data, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetDescription ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetDescription() *string
GetDescription returns NodeBatchNodeBatchNodeBatchResultNodesNode.Description, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetId ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetId() string
GetId returns NodeBatchNodeBatchNodeBatchResultNodesNode.Id, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetIncomingEdges ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetIncomingEdges() []*NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge
GetIncomingEdges returns NodeBatchNodeBatchNodeBatchResultNodesNode.IncomingEdges, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetLoc ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetLoc() string
GetLoc returns NodeBatchNodeBatchNodeBatchResultNodesNode.Loc, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetMemoryId ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetMemoryId() string
GetMemoryId returns NodeBatchNodeBatchNodeBatchResultNodesNode.MemoryId, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetName ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetName() string
GetName returns NodeBatchNodeBatchNodeBatchResultNodesNode.Name, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetNodeType ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetNodeType() string
GetNodeType returns NodeBatchNodeBatchNodeBatchResultNodesNode.NodeType, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetOutgoingEdges ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetOutgoingEdges() []*NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge
GetOutgoingEdges returns NodeBatchNodeBatchNodeBatchResultNodesNode.OutgoingEdges, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetProperties ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetProperties() *json.RawMessage
GetProperties returns NodeBatchNodeBatchNodeBatchResultNodesNode.Properties, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetSeq ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetSeq() *int
GetSeq returns NodeBatchNodeBatchNodeBatchResultNodesNode.Seq, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetTags ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetTags() []string
GetTags returns NodeBatchNodeBatchNodeBatchResultNodesNode.Tags, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetUpdatedAt ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNode) GetUpdatedAt() string
GetUpdatedAt returns NodeBatchNodeBatchNodeBatchResultNodesNode.UpdatedAt, and is useful for accessing the field via an interface.
type NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge ¶ added in v0.2.0
type NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge struct {
Name *string `json:"name"`
Loc string `json:"loc"`
IsRunnable *bool `json:"isRunnable"`
Source *NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdgeSourceNode `json:"source"`
}
NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge includes the requested fields of the GraphQL type Edge.
func (*NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge) GetIsRunnable ¶ added in v0.3.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge) GetIsRunnable() *bool
GetIsRunnable returns NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge.IsRunnable, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge) GetLoc ¶ added in v0.3.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge) GetLoc() string
GetLoc returns NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge.Loc, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge) GetName ¶ added in v0.3.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge) GetName() *string
GetName returns NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge.Name, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge) GetSource ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge) GetSource() *NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdgeSourceNode
GetSource returns NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge.Source, and is useful for accessing the field via an interface.
type NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdgeSourceNode ¶ added in v0.2.0
type NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdgeSourceNode struct {
Id string `json:"id"`
Loc string `json:"loc"`
MemoryId string `json:"memoryId"`
}
NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdgeSourceNode includes the requested fields of the GraphQL type Node.
func (*NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdgeSourceNode) GetId ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdgeSourceNode) GetId() string
GetId returns NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdgeSourceNode.Id, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdgeSourceNode) GetLoc ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdgeSourceNode) GetLoc() string
GetLoc returns NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdgeSourceNode.Loc, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdgeSourceNode) GetMemoryId ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdgeSourceNode) GetMemoryId() string
GetMemoryId returns NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdgeSourceNode.MemoryId, and is useful for accessing the field via an interface.
type NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge ¶ added in v0.2.0
type NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge struct {
Name *string `json:"name"`
Loc string `json:"loc"`
Description *string `json:"description"`
IsRunnable *bool `json:"isRunnable"`
Priority int `json:"priority"`
Condition *json.RawMessage `json:"condition"`
Target *NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdgeTargetNode `json:"target"`
}
NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge includes the requested fields of the GraphQL type Edge.
func (*NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetCondition ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetCondition() *json.RawMessage
GetCondition returns NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge.Condition, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetDescription ¶ added in v0.3.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetDescription() *string
GetDescription returns NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge.Description, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetIsRunnable ¶ added in v0.3.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetIsRunnable() *bool
GetIsRunnable returns NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge.IsRunnable, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetLoc ¶ added in v0.3.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetLoc() string
GetLoc returns NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge.Loc, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetName ¶ added in v0.3.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetName() *string
GetName returns NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge.Name, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetPriority ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetPriority() int
GetPriority returns NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge.Priority, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetTarget ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetTarget() *NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdgeTargetNode
GetTarget returns NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge.Target, and is useful for accessing the field via an interface.
type NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdgeTargetNode ¶ added in v0.2.0
type NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdgeTargetNode struct {
Id string `json:"id"`
Loc string `json:"loc"`
MemoryId string `json:"memoryId"`
}
NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdgeTargetNode includes the requested fields of the GraphQL type Node.
func (*NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdgeTargetNode) GetId ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdgeTargetNode) GetId() string
GetId returns NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdgeTargetNode.Id, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdgeTargetNode) GetLoc ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdgeTargetNode) GetLoc() string
GetLoc returns NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdgeTargetNode.Loc, and is useful for accessing the field via an interface.
func (*NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdgeTargetNode) GetMemoryId ¶ added in v0.2.0
func (v *NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdgeTargetNode) GetMemoryId() string
GetMemoryId returns NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdgeTargetNode.MemoryId, and is useful for accessing the field via an interface.
type NodeBatchResponse ¶ added in v0.2.0
type NodeBatchResponse struct {
// Batch read (spec cor:api:040) — the full node projection (select any Node
// fields, including content + edges) for MANY nodes in one call, eliminating
// the N+1 of one nodeById per node (e.g. 'spec lint --all'). Provide EITHER
// 'ids' (explicit set, returned in input order) OR 'memory' + 'locPrefix'
// (subtree, loc order) — not both. Per-node access is applied independently:
// denied or missing ids come back in 'unavailable' and never fail the call.
// Bounded by hard caps — over the node-count cap throws BAD_USER_INPUT; over
// the response-size cap returns a partial result with 'truncated: true' and
// the dropped ids in 'omitted' (never a silent short read). Node content is
// returned raw — Mustache templates are NOT compiled (unlike single-node
// 'node'/'nodeById'), since this is a bulk source read for lint / audit /
// migration and compiling per node would re-introduce the N+1 it eliminates.
NodeBatch *NodeBatchNodeBatchNodeBatchResult `json:"nodeBatch"`
}
NodeBatchResponse is returned by NodeBatch on success.
func NodeBatch ¶ added in v0.2.0
func NodeBatch( ctx_ context.Context, client_ graphql.Client, ids []string, ) (data_ *NodeBatchResponse, err_ error)
Bulk read of full nodes by id (cor:api:040). Server caps a call at 200 nodes / 1 MB: an over-cap window comes back with truncated=true and the spillover ids in `omitted`, so callers must re-request those; `unavailable` lists ids the server could not return (deleted/inaccessible). Selects a full node projection — both edge directions (with target/source loc + memoryId), everything the markdown exporter serializes, and the fields the spec detail/ lint builders read — so the whole-corpus fan-outs (`memory export`, `spec get --prefix`) read in ceil(N/200) round-trips instead of one nodeById per node. Driven through api.CollectNodeBatch.
func (*NodeBatchResponse) GetNodeBatch ¶ added in v0.2.0
func (v *NodeBatchResponse) GetNodeBatch() *NodeBatchNodeBatchNodeBatchResult
GetNodeBatch returns NodeBatchResponse.NodeBatch, and is useful for accessing the field via an interface.
type NodeEdgeInput ¶
type NodeEdgeInput struct {
Description *string `json:"description"`
IsRunnable *bool `json:"isRunnable"`
// Explicit edge loc. Omit to derive <sourceLoc>:<name>:<targetLoc>.
Loc *string `json:"loc"`
// Relationship name (was 'label'). Optional — loc is the identity.
Name *string `json:"name"`
// Reference to the target node. Accepts a node ID, a full URN
// (hrn:node:<memory-urn>::<loc>), a memory-prefixed loc
// (<memory-urn>:<loc>), or a short loc resolved within the source
// node's memory.
TargetId string `json:"targetId"`
}
func (*NodeEdgeInput) GetDescription ¶ added in v0.3.0
func (v *NodeEdgeInput) GetDescription() *string
GetDescription returns NodeEdgeInput.Description, and is useful for accessing the field via an interface.
func (*NodeEdgeInput) GetIsRunnable ¶ added in v0.3.0
func (v *NodeEdgeInput) GetIsRunnable() *bool
GetIsRunnable returns NodeEdgeInput.IsRunnable, and is useful for accessing the field via an interface.
func (*NodeEdgeInput) GetLoc ¶ added in v0.3.0
func (v *NodeEdgeInput) GetLoc() *string
GetLoc returns NodeEdgeInput.Loc, and is useful for accessing the field via an interface.
func (*NodeEdgeInput) GetName ¶ added in v0.3.0
func (v *NodeEdgeInput) GetName() *string
GetName returns NodeEdgeInput.Name, and is useful for accessing the field via an interface.
func (*NodeEdgeInput) GetTargetId ¶
func (v *NodeEdgeInput) GetTargetId() string
GetTargetId returns NodeEdgeInput.TargetId, and is useful for accessing the field via an interface.
type NodeExportFormat ¶ added in v0.4.0
type NodeExportFormat string
const ( NodeExportFormatJson NodeExportFormat = "JSON" NodeExportFormatMd NodeExportFormat = "MD" )
type NodeExportMetaNodeByIdNode ¶ added in v0.4.0
type NodeExportMetaNodeByIdNode struct {
Loc string `json:"loc"`
Name string `json:"name"`
MemoryId string `json:"memoryId"`
Memory *NodeExportMetaNodeByIdNodeMemory `json:"memory"`
}
NodeExportMetaNodeByIdNode includes the requested fields of the GraphQL type Node.
func (*NodeExportMetaNodeByIdNode) GetLoc ¶ added in v0.4.0
func (v *NodeExportMetaNodeByIdNode) GetLoc() string
GetLoc returns NodeExportMetaNodeByIdNode.Loc, and is useful for accessing the field via an interface.
func (*NodeExportMetaNodeByIdNode) GetMemory ¶ added in v0.4.0
func (v *NodeExportMetaNodeByIdNode) GetMemory() *NodeExportMetaNodeByIdNodeMemory
GetMemory returns NodeExportMetaNodeByIdNode.Memory, and is useful for accessing the field via an interface.
func (*NodeExportMetaNodeByIdNode) GetMemoryId ¶ added in v0.4.0
func (v *NodeExportMetaNodeByIdNode) GetMemoryId() string
GetMemoryId returns NodeExportMetaNodeByIdNode.MemoryId, and is useful for accessing the field via an interface.
func (*NodeExportMetaNodeByIdNode) GetName ¶ added in v0.4.0
func (v *NodeExportMetaNodeByIdNode) GetName() string
GetName returns NodeExportMetaNodeByIdNode.Name, and is useful for accessing the field via an interface.
type NodeExportMetaNodeByIdNodeMemory ¶ added in v0.4.0
type NodeExportMetaNodeByIdNodeMemory struct {
Urn string `json:"urn"`
}
NodeExportMetaNodeByIdNodeMemory includes the requested fields of the GraphQL type Memory.
func (*NodeExportMetaNodeByIdNodeMemory) GetUrn ¶ added in v0.4.0
func (v *NodeExportMetaNodeByIdNodeMemory) GetUrn() string
GetUrn returns NodeExportMetaNodeByIdNodeMemory.Urn, and is useful for accessing the field via an interface.
type NodeExportMetaResponse ¶ added in v0.4.0
type NodeExportMetaResponse struct {
NodeById *NodeExportMetaNodeByIdNode `json:"nodeById"`
}
NodeExportMetaResponse is returned by NodeExportMeta on success.
func NodeExportMeta ¶ added in v0.4.0
func NodeExportMeta( ctx_ context.Context, client_ graphql.Client, id string, ) (data_ *NodeExportMetaResponse, err_ error)
Minimal metadata for the `node export -o` summary (loc/name/memory): the server's nodeExport render returns the bytes but no identifying fields, and memory { urn } here avoids a second myMemories round-trip (#106 review).
func (*NodeExportMetaResponse) GetNodeById ¶ added in v0.4.0
func (v *NodeExportMetaResponse) GetNodeById() *NodeExportMetaNodeByIdNode
GetNodeById returns NodeExportMetaResponse.NodeById, and is useful for accessing the field via an interface.
type NodeExportNodeExportNodeExportResult ¶ added in v0.4.0
type NodeExportNodeExportNodeExportResult struct {
Format NodeExportFormat `json:"format"`
// MIME type, e.g. text/markdown or application/json.
MimeType string `json:"mimeType"`
// Suggested download filename, e.g. <loc-leaf>.md.
Filename string `json:"filename"`
// The rendered file contents (TEXT).
Data string `json:"data"`
// Byte length of the rendered payload (UTF-8).
Bytes int `json:"bytes"`
}
NodeExportNodeExportNodeExportResult includes the requested fields of the GraphQL type NodeExportResult.
func (*NodeExportNodeExportNodeExportResult) GetBytes ¶ added in v0.4.0
func (v *NodeExportNodeExportNodeExportResult) GetBytes() int
GetBytes returns NodeExportNodeExportNodeExportResult.Bytes, and is useful for accessing the field via an interface.
func (*NodeExportNodeExportNodeExportResult) GetData ¶ added in v0.4.0
func (v *NodeExportNodeExportNodeExportResult) GetData() string
GetData returns NodeExportNodeExportNodeExportResult.Data, and is useful for accessing the field via an interface.
func (*NodeExportNodeExportNodeExportResult) GetFilename ¶ added in v0.4.0
func (v *NodeExportNodeExportNodeExportResult) GetFilename() string
GetFilename returns NodeExportNodeExportNodeExportResult.Filename, and is useful for accessing the field via an interface.
func (*NodeExportNodeExportNodeExportResult) GetFormat ¶ added in v0.4.0
func (v *NodeExportNodeExportNodeExportResult) GetFormat() NodeExportFormat
GetFormat returns NodeExportNodeExportNodeExportResult.Format, and is useful for accessing the field via an interface.
func (*NodeExportNodeExportNodeExportResult) GetMimeType ¶ added in v0.4.0
func (v *NodeExportNodeExportNodeExportResult) GetMimeType() string
GetMimeType returns NodeExportNodeExportNodeExportResult.MimeType, and is useful for accessing the field via an interface.
type NodeExportResponse ¶ added in v0.4.0
type NodeExportResponse struct {
// Render one node to a portable, self-contained file (#386, spec cor:api).
NodeExport *NodeExportNodeExportNodeExportResult `json:"nodeExport"`
}
NodeExportResponse is returned by NodeExport on success.
func NodeExport ¶ added in v0.4.0
func NodeExport( ctx_ context.Context, client_ graphql.Client, id string, format NodeExportFormat, ) (data_ *NodeExportResponse, err_ error)
Render one node to its canonical, round-trippable file via the SERVER's renderer (#106) — so `hadron node export` emits byte-for-byte what the portal and every other API client get from the one shared renderer. full: true is the canonical form (all sections, importable); format selects MD or JSON.
func (*NodeExportResponse) GetNodeExport ¶ added in v0.4.0
func (v *NodeExportResponse) GetNodeExport() *NodeExportNodeExportNodeExportResult
GetNodeExport returns NodeExportResponse.NodeExport, and is useful for accessing the field via an interface.
type NodeInput ¶
type NodeInput struct {
// Paragraph-length summary of this node — see Node.abstract for the surfacing contract (hadron_get_node opt-in via contentScope; hadron_find_nodes preview ships in US2). Optional. Omit to preserve; null to clear; string to replace. Empty + whitespace-only normalize to null. Cap is 2000 characters.
Abstract *string `json:"abstract,omitempty"`
AiAgent *string `json:"aiAgent,omitempty"`
Alias *string `json:"alias,omitempty"`
Content *string `json:"content,omitempty"`
CreateOnly *bool `json:"createOnly,omitempty"`
Data *json.RawMessage `json:"data,omitempty"`
Description *string `json:"description,omitempty"`
Edges []*NodeEdgeInput `json:"edges,omitempty"`
Id *string `json:"id,omitempty"`
// Whether this node can be run as a task by hadron_run_task (cor:api:060). Omit to preserve on update.
IsRunnable *bool `json:"isRunnable,omitempty"`
LlmModel *string `json:"llmModel,omitempty"`
Loc string `json:"loc"`
// Memory reference. Accepts the entity's ID (CUID / 32-char hex) or its
// URN (per spec 007 ID-or-URN dispatch). URN inputs MUST be fully
// qualified (org:memory) per spec 022 — relative-form URNs are
// rejected as GraphQL errors with extensions.code "URN_NOT_QUALIFIED".
MemoryId string `json:"memoryId"`
Name string `json:"name"`
NodeType *string `json:"nodeType,omitempty"`
OwnerRepo *string `json:"ownerRepo,omitempty"`
Properties *json.RawMessage `json:"properties,omitempty"`
// Why this change was made — recorded on the version-history snapshot
// (NodeVersion.editedBy), mirroring hadron_update_node's reason arg so CLI
// and MCP edits leave equally-traceable history. Only an update snapshots a
// prior version, so reason has no effect on a pure create.
Reason *string `json:"reason,omitempty"`
Seq *int `json:"seq,omitempty"`
Tags []string `json:"tags,omitempty"`
}
func (*NodeInput) GetAbstract ¶
GetAbstract returns NodeInput.Abstract, and is useful for accessing the field via an interface.
func (*NodeInput) GetAiAgent ¶
GetAiAgent returns NodeInput.AiAgent, and is useful for accessing the field via an interface.
func (*NodeInput) GetAlias ¶
GetAlias returns NodeInput.Alias, and is useful for accessing the field via an interface.
func (*NodeInput) GetContent ¶
GetContent returns NodeInput.Content, and is useful for accessing the field via an interface.
func (*NodeInput) GetCreateOnly ¶
GetCreateOnly returns NodeInput.CreateOnly, and is useful for accessing the field via an interface.
func (*NodeInput) GetData ¶
func (v *NodeInput) GetData() *json.RawMessage
GetData returns NodeInput.Data, and is useful for accessing the field via an interface.
func (*NodeInput) GetDescription ¶
GetDescription returns NodeInput.Description, and is useful for accessing the field via an interface.
func (*NodeInput) GetEdges ¶
func (v *NodeInput) GetEdges() []*NodeEdgeInput
GetEdges returns NodeInput.Edges, and is useful for accessing the field via an interface.
func (*NodeInput) GetId ¶
GetId returns NodeInput.Id, and is useful for accessing the field via an interface.
func (*NodeInput) GetIsRunnable ¶ added in v0.4.0
GetIsRunnable returns NodeInput.IsRunnable, and is useful for accessing the field via an interface.
func (*NodeInput) GetLlmModel ¶
GetLlmModel returns NodeInput.LlmModel, and is useful for accessing the field via an interface.
func (*NodeInput) GetLoc ¶
GetLoc returns NodeInput.Loc, and is useful for accessing the field via an interface.
func (*NodeInput) GetMemoryId ¶
GetMemoryId returns NodeInput.MemoryId, and is useful for accessing the field via an interface.
func (*NodeInput) GetName ¶
GetName returns NodeInput.Name, and is useful for accessing the field via an interface.
func (*NodeInput) GetNodeType ¶
GetNodeType returns NodeInput.NodeType, and is useful for accessing the field via an interface.
func (*NodeInput) GetOwnerRepo ¶
GetOwnerRepo returns NodeInput.OwnerRepo, and is useful for accessing the field via an interface.
func (*NodeInput) GetProperties ¶
func (v *NodeInput) GetProperties() *json.RawMessage
GetProperties returns NodeInput.Properties, and is useful for accessing the field via an interface.
func (*NodeInput) GetReason ¶ added in v0.4.0
GetReason returns NodeInput.Reason, and is useful for accessing the field via an interface.
type NodeSearchNodeSearchNodeSearchResult ¶ added in v0.2.0
type NodeSearchNodeSearchNodeSearchResult struct {
Degraded *string `json:"degraded"`
Reason *string `json:"reason"`
Nodes []*NodeSearchNodeSearchNodeSearchResultNodesNode `json:"nodes"`
}
NodeSearchNodeSearchNodeSearchResult includes the requested fields of the GraphQL type NodeSearchResult. The GraphQL type's documentation follows.
Envelope for nodeSearch — carries the ranked nodes plus structured flags surfacing degraded / no-index outcomes that the MCP path emits inline. Spec 033.
reason: set when the query could not run as requested (e.g. 'no_vector_index' on a non-indexed memory with mode:vector); nodes is empty in that case. degraded: set when the query ran but at reduced fidelity (e.g. 'no_vector_index' on a hybrid query that fell back to keyword-only); nodes still carries usable hits.
func (*NodeSearchNodeSearchNodeSearchResult) GetDegraded ¶ added in v0.2.0
func (v *NodeSearchNodeSearchNodeSearchResult) GetDegraded() *string
GetDegraded returns NodeSearchNodeSearchNodeSearchResult.Degraded, and is useful for accessing the field via an interface.
func (*NodeSearchNodeSearchNodeSearchResult) GetNodes ¶ added in v0.2.0
func (v *NodeSearchNodeSearchNodeSearchResult) GetNodes() []*NodeSearchNodeSearchNodeSearchResultNodesNode
GetNodes returns NodeSearchNodeSearchNodeSearchResult.Nodes, and is useful for accessing the field via an interface.
func (*NodeSearchNodeSearchNodeSearchResult) GetReason ¶ added in v0.2.0
func (v *NodeSearchNodeSearchNodeSearchResult) GetReason() *string
GetReason returns NodeSearchNodeSearchNodeSearchResult.Reason, and is useful for accessing the field via an interface.
type NodeSearchNodeSearchNodeSearchResultNodesNode ¶ added in v0.2.0
type NodeSearchNodeSearchNodeSearchResultNodesNode struct {
Id string `json:"id"`
MemoryId string `json:"memoryId"`
Loc string `json:"loc"`
Name string `json:"name"`
NodeType string `json:"nodeType"`
Tags []string `json:"tags"`
UpdatedAt string `json:"updatedAt"`
}
NodeSearchNodeSearchNodeSearchResultNodesNode includes the requested fields of the GraphQL type Node.
func (*NodeSearchNodeSearchNodeSearchResultNodesNode) GetId ¶ added in v0.2.0
func (v *NodeSearchNodeSearchNodeSearchResultNodesNode) GetId() string
GetId returns NodeSearchNodeSearchNodeSearchResultNodesNode.Id, and is useful for accessing the field via an interface.
func (*NodeSearchNodeSearchNodeSearchResultNodesNode) GetLoc ¶ added in v0.2.0
func (v *NodeSearchNodeSearchNodeSearchResultNodesNode) GetLoc() string
GetLoc returns NodeSearchNodeSearchNodeSearchResultNodesNode.Loc, and is useful for accessing the field via an interface.
func (*NodeSearchNodeSearchNodeSearchResultNodesNode) GetMemoryId ¶ added in v0.2.0
func (v *NodeSearchNodeSearchNodeSearchResultNodesNode) GetMemoryId() string
GetMemoryId returns NodeSearchNodeSearchNodeSearchResultNodesNode.MemoryId, and is useful for accessing the field via an interface.
func (*NodeSearchNodeSearchNodeSearchResultNodesNode) GetName ¶ added in v0.2.0
func (v *NodeSearchNodeSearchNodeSearchResultNodesNode) GetName() string
GetName returns NodeSearchNodeSearchNodeSearchResultNodesNode.Name, and is useful for accessing the field via an interface.
func (*NodeSearchNodeSearchNodeSearchResultNodesNode) GetNodeType ¶ added in v0.2.0
func (v *NodeSearchNodeSearchNodeSearchResultNodesNode) GetNodeType() string
GetNodeType returns NodeSearchNodeSearchNodeSearchResultNodesNode.NodeType, and is useful for accessing the field via an interface.
func (*NodeSearchNodeSearchNodeSearchResultNodesNode) GetTags ¶ added in v0.2.0
func (v *NodeSearchNodeSearchNodeSearchResultNodesNode) GetTags() []string
GetTags returns NodeSearchNodeSearchNodeSearchResultNodesNode.Tags, and is useful for accessing the field via an interface.
func (*NodeSearchNodeSearchNodeSearchResultNodesNode) GetUpdatedAt ¶ added in v0.2.0
func (v *NodeSearchNodeSearchNodeSearchResultNodesNode) GetUpdatedAt() string
GetUpdatedAt returns NodeSearchNodeSearchNodeSearchResultNodesNode.UpdatedAt, and is useful for accessing the field via an interface.
type NodeSearchResponse ¶ added in v0.2.0
type NodeSearchResponse struct {
// Vector/hybrid-aware search over a memory. Keyword-only callers should
// keep using the legacy 'nodes' query — nodeSearch is the
// vector-aware entrypoint per spec 033 contract.
//
// mode defaults to vector (the vector-aware entrypoint design — the
// MCP hadron_find_nodes tool defaults to keyword for backward-compat,
// a deliberate divergence between the two surfaces). expand (graph
// neighbor depth 0..3, default 0) and granularity:chunk (passage
// retrieval, vector-mode only) are both fully live.
//
// Access control: same memory-read gate as the keyword nodes query —
// the raw-SQL similarity query is scoped to memories the caller can
// read, never cross-memory.
NodeSearch *NodeSearchNodeSearchNodeSearchResult `json:"nodeSearch"`
}
NodeSearchResponse is returned by NodeSearch on success.
func NodeSearch ¶ added in v0.2.0
func NodeSearch( ctx_ context.Context, client_ graphql.Client, query string, mode *SearchMode, memoryUrn *string, limit *int, ) (data_ *NodeSearchResponse, err_ error)
Semantic + keyword search (spec 033). hybrid mode degrades to keyword (with a `degraded`/`reason` note) on memories without a vector index, so `spec find` is never silently empty. Backs `hadron spec find`.
func (*NodeSearchResponse) GetNodeSearch ¶ added in v0.2.0
func (v *NodeSearchResponse) GetNodeSearch() *NodeSearchNodeSearchNodeSearchResult
GetNodeSearch returns NodeSearchResponse.NodeSearch, and is useful for accessing the field via an interface.
type NodeTextField ¶ added in v0.3.1
type NodeTextField string
Text-bearing Node fields that searchReplaceInNodes may rewrite. JSON fields (data, properties) and the structural 'loc' are intentionally excluded in v1.
const ( NodeTextFieldAbstract NodeTextField = "abstract" NodeTextFieldAlias NodeTextField = "alias" NodeTextFieldContent NodeTextField = "content" NodeTextFieldDescription NodeTextField = "description" NodeTextFieldName NodeTextField = "name" NodeTextFieldTags NodeTextField = "tags" )
type NodesNodesNode ¶
type NodesNodesNode struct {
Id string `json:"id"`
MemoryId string `json:"memoryId"`
Loc string `json:"loc"`
Name string `json:"name"`
NodeType string `json:"nodeType"`
Tags []string `json:"tags"`
Seq *int `json:"seq"`
IsRunnable *bool `json:"isRunnable"`
UpdatedAt string `json:"updatedAt"`
}
NodesNodesNode includes the requested fields of the GraphQL type Node.
func (*NodesNodesNode) GetId ¶
func (v *NodesNodesNode) GetId() string
GetId returns NodesNodesNode.Id, and is useful for accessing the field via an interface.
func (*NodesNodesNode) GetIsRunnable ¶ added in v0.4.0
func (v *NodesNodesNode) GetIsRunnable() *bool
GetIsRunnable returns NodesNodesNode.IsRunnable, and is useful for accessing the field via an interface.
func (*NodesNodesNode) GetLoc ¶
func (v *NodesNodesNode) GetLoc() string
GetLoc returns NodesNodesNode.Loc, and is useful for accessing the field via an interface.
func (*NodesNodesNode) GetMemoryId ¶
func (v *NodesNodesNode) GetMemoryId() string
GetMemoryId returns NodesNodesNode.MemoryId, and is useful for accessing the field via an interface.
func (*NodesNodesNode) GetName ¶
func (v *NodesNodesNode) GetName() string
GetName returns NodesNodesNode.Name, and is useful for accessing the field via an interface.
func (*NodesNodesNode) GetNodeType ¶
func (v *NodesNodesNode) GetNodeType() string
GetNodeType returns NodesNodesNode.NodeType, and is useful for accessing the field via an interface.
func (*NodesNodesNode) GetSeq ¶ added in v0.3.0
func (v *NodesNodesNode) GetSeq() *int
GetSeq returns NodesNodesNode.Seq, and is useful for accessing the field via an interface.
func (*NodesNodesNode) GetTags ¶
func (v *NodesNodesNode) GetTags() []string
GetTags returns NodesNodesNode.Tags, and is useful for accessing the field via an interface.
func (*NodesNodesNode) GetUpdatedAt ¶
func (v *NodesNodesNode) GetUpdatedAt() string
GetUpdatedAt returns NodesNodesNode.UpdatedAt, and is useful for accessing the field via an interface.
type NodesResponse ¶
type NodesResponse struct {
Nodes []*NodesNodesNode `json:"nodes"`
}
NodesResponse is returned by Nodes on success.
func (*NodesResponse) GetNodes ¶
func (v *NodesResponse) GetNodes() []*NodesNodesNode
GetNodes returns NodesResponse.Nodes, and is useful for accessing the field via an interface.
type OrgFields ¶ added in v0.3.0
type OrgFields struct {
Id string `json:"id"`
Urn string `json:"urn"`
Name string `json:"name"`
IsVisible *bool `json:"isVisible"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
OrgFields includes the GraphQL fields of Organization requested by the fragment OrgFields.
func (*OrgFields) GetCreatedAt ¶ added in v0.3.0
GetCreatedAt returns OrgFields.CreatedAt, and is useful for accessing the field via an interface.
func (*OrgFields) GetId ¶ added in v0.3.0
GetId returns OrgFields.Id, and is useful for accessing the field via an interface.
func (*OrgFields) GetIsVisible ¶ added in v0.3.0
GetIsVisible returns OrgFields.IsVisible, and is useful for accessing the field via an interface.
func (*OrgFields) GetName ¶ added in v0.3.0
GetName returns OrgFields.Name, and is useful for accessing the field via an interface.
func (*OrgFields) GetUpdatedAt ¶ added in v0.3.0
GetUpdatedAt returns OrgFields.UpdatedAt, and is useful for accessing the field via an interface.
type OrgMembersOrganization ¶ added in v0.3.0
type OrgMembersOrganization struct {
Id string `json:"id"`
Members []*OrgMembersOrganizationMembersOrgMember `json:"members"`
}
OrgMembersOrganization includes the requested fields of the GraphQL type Organization.
func (*OrgMembersOrganization) GetId ¶ added in v0.3.0
func (v *OrgMembersOrganization) GetId() string
GetId returns OrgMembersOrganization.Id, and is useful for accessing the field via an interface.
func (*OrgMembersOrganization) GetMembers ¶ added in v0.3.0
func (v *OrgMembersOrganization) GetMembers() []*OrgMembersOrganizationMembersOrgMember
GetMembers returns OrgMembersOrganization.Members, and is useful for accessing the field via an interface.
type OrgMembersOrganizationMembersOrgMember ¶ added in v0.3.0
type OrgMembersOrganizationMembersOrgMember struct {
Id string `json:"id"`
Role Role `json:"role"`
CanInvite bool `json:"canInvite"`
User *OrgMembersOrganizationMembersOrgMemberUser `json:"user"`
}
OrgMembersOrganizationMembersOrgMember includes the requested fields of the GraphQL type OrgMember.
func (*OrgMembersOrganizationMembersOrgMember) GetCanInvite ¶ added in v0.3.0
func (v *OrgMembersOrganizationMembersOrgMember) GetCanInvite() bool
GetCanInvite returns OrgMembersOrganizationMembersOrgMember.CanInvite, and is useful for accessing the field via an interface.
func (*OrgMembersOrganizationMembersOrgMember) GetId ¶ added in v0.3.0
func (v *OrgMembersOrganizationMembersOrgMember) GetId() string
GetId returns OrgMembersOrganizationMembersOrgMember.Id, and is useful for accessing the field via an interface.
func (*OrgMembersOrganizationMembersOrgMember) GetRole ¶ added in v0.3.0
func (v *OrgMembersOrganizationMembersOrgMember) GetRole() Role
GetRole returns OrgMembersOrganizationMembersOrgMember.Role, and is useful for accessing the field via an interface.
func (*OrgMembersOrganizationMembersOrgMember) GetUser ¶ added in v0.3.0
func (v *OrgMembersOrganizationMembersOrgMember) GetUser() *OrgMembersOrganizationMembersOrgMemberUser
GetUser returns OrgMembersOrganizationMembersOrgMember.User, and is useful for accessing the field via an interface.
type OrgMembersOrganizationMembersOrgMemberUser ¶ added in v0.3.0
type OrgMembersOrganizationMembersOrgMemberUser struct {
UserFields `json:"-"`
}
OrgMembersOrganizationMembersOrgMemberUser includes the requested fields of the GraphQL type User.
func (*OrgMembersOrganizationMembersOrgMemberUser) GetEmail ¶ added in v0.3.0
func (v *OrgMembersOrganizationMembersOrgMemberUser) GetEmail() *string
GetEmail returns OrgMembersOrganizationMembersOrgMemberUser.Email, and is useful for accessing the field via an interface.
func (*OrgMembersOrganizationMembersOrgMemberUser) GetGithubUsername ¶ added in v0.3.0
func (v *OrgMembersOrganizationMembersOrgMemberUser) GetGithubUsername() *string
GetGithubUsername returns OrgMembersOrganizationMembersOrgMemberUser.GithubUsername, and is useful for accessing the field via an interface.
func (*OrgMembersOrganizationMembersOrgMemberUser) GetHandle ¶ added in v0.3.0
func (v *OrgMembersOrganizationMembersOrgMemberUser) GetHandle() *string
GetHandle returns OrgMembersOrganizationMembersOrgMemberUser.Handle, and is useful for accessing the field via an interface.
func (*OrgMembersOrganizationMembersOrgMemberUser) GetId ¶ added in v0.3.0
func (v *OrgMembersOrganizationMembersOrgMemberUser) GetId() string
GetId returns OrgMembersOrganizationMembersOrgMemberUser.Id, and is useful for accessing the field via an interface.
func (*OrgMembersOrganizationMembersOrgMemberUser) GetName ¶ added in v0.3.0
func (v *OrgMembersOrganizationMembersOrgMemberUser) GetName() *string
GetName returns OrgMembersOrganizationMembersOrgMemberUser.Name, and is useful for accessing the field via an interface.
func (*OrgMembersOrganizationMembersOrgMemberUser) GetRoles ¶ added in v0.3.0
func (v *OrgMembersOrganizationMembersOrgMemberUser) GetRoles() []Role
GetRoles returns OrgMembersOrganizationMembersOrgMemberUser.Roles, and is useful for accessing the field via an interface.
func (*OrgMembersOrganizationMembersOrgMemberUser) MarshalJSON ¶ added in v0.3.0
func (v *OrgMembersOrganizationMembersOrgMemberUser) MarshalJSON() ([]byte, error)
func (*OrgMembersOrganizationMembersOrgMemberUser) UnmarshalJSON ¶ added in v0.3.0
func (v *OrgMembersOrganizationMembersOrgMemberUser) UnmarshalJSON(b []byte) error
type OrgMembersResponse ¶ added in v0.3.0
type OrgMembersResponse struct {
// Fetch an Organization by id (org member or platform ADMIN).
//
// Accepts the entity's ID or URN.
Organization *OrgMembersOrganization `json:"organization"`
}
OrgMembersResponse is returned by OrgMembers on success.
func OrgMembers ¶ added in v0.3.0
func OrgMembers( ctx_ context.Context, client_ graphql.Client, id string, ) (data_ *OrgMembersResponse, err_ error)
organization(id) is the only path to an org's members (no plural query).
func (*OrgMembersResponse) GetOrganization ¶ added in v0.3.0
func (v *OrgMembersResponse) GetOrganization() *OrgMembersOrganization
GetOrganization returns OrgMembersResponse.Organization, and is useful for accessing the field via an interface.
type RemoveMemoryMemberRemoveMemoryMemberRemoveMemoryMemberPayload ¶ added in v0.3.0
type RemoveMemoryMemberRemoveMemoryMemberRemoveMemoryMemberPayload struct {
MemoryId string `json:"memoryId"`
UserId string `json:"userId"`
}
RemoveMemoryMemberRemoveMemoryMemberRemoveMemoryMemberPayload includes the requested fields of the GraphQL type RemoveMemoryMemberPayload.
func (*RemoveMemoryMemberRemoveMemoryMemberRemoveMemoryMemberPayload) GetMemoryId ¶ added in v0.3.0
func (v *RemoveMemoryMemberRemoveMemoryMemberRemoveMemoryMemberPayload) GetMemoryId() string
GetMemoryId returns RemoveMemoryMemberRemoveMemoryMemberRemoveMemoryMemberPayload.MemoryId, and is useful for accessing the field via an interface.
func (*RemoveMemoryMemberRemoveMemoryMemberRemoveMemoryMemberPayload) GetUserId ¶ added in v0.3.0
func (v *RemoveMemoryMemberRemoveMemoryMemberRemoveMemoryMemberPayload) GetUserId() string
GetUserId returns RemoveMemoryMemberRemoveMemoryMemberRemoveMemoryMemberPayload.UserId, and is useful for accessing the field via an interface.
type RemoveMemoryMemberResponse ¶ added in v0.3.0
type RemoveMemoryMemberResponse struct {
// 023-app-shape US4 — remove a team member. Idempotent. Removing
// the LAST owner is rejected with LastOwnerProtectedError (FR-038)
// — group memories must always have ≥1 owner; the path to fully
// empty one is to delete the Memory.
//
// Removing the last non-owner does NOT delete the Memory (FR-031);
// the row persists with its remaining owner(s).
//
// Caller-authority: either an owner of the Memory, or the member
// being removed (self-removal).
RemoveMemoryMember *RemoveMemoryMemberRemoveMemoryMemberRemoveMemoryMemberPayload `json:"removeMemoryMember"`
}
RemoveMemoryMemberResponse is returned by RemoveMemoryMember on success.
func RemoveMemoryMember ¶ added in v0.3.0
func (*RemoveMemoryMemberResponse) GetRemoveMemoryMember ¶ added in v0.3.0
func (v *RemoveMemoryMemberResponse) GetRemoveMemoryMember() *RemoveMemoryMemberRemoveMemoryMemberRemoveMemoryMemberPayload
GetRemoveMemoryMember returns RemoveMemoryMemberResponse.RemoveMemoryMember, and is useful for accessing the field via an interface.
type RemoveOrgMemberResponse ¶ added in v0.3.0
type RemoveOrgMemberResponse struct {
// Accepts the entity's ID or URN (orgId).
RemoveOrgMember bool `json:"removeOrgMember"`
}
RemoveOrgMemberResponse is returned by RemoveOrgMember on success.
func RemoveOrgMember ¶ added in v0.3.0
func (*RemoveOrgMemberResponse) GetRemoveOrgMember ¶ added in v0.3.0
func (v *RemoveOrgMemberResponse) GetRemoveOrgMember() bool
GetRemoveOrgMember returns RemoveOrgMemberResponse.RemoveOrgMember, and is useful for accessing the field via an interface.
type ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig ¶ added in v0.2.0
type ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig struct {
Id string `json:"id"`
Name string `json:"name"`
OwnerType AiConfigOwnerType `json:"ownerType"`
// ID of the owning HadronServer / Organization / App / Agent.
OwnerId string `json:"ownerId"`
// Provider identifier; v1 known: 'anthropic' | 'openai' | 'glm' | 'bedrock'.
Provider string `json:"provider"`
// Model identifier, passed verbatim to the provider.
Model string `json:"model"`
HasApiKey bool `json:"hasApiKey"`
// Ellipsis + last 4 characters of the stored key; null when no key.
ApiKeyPreview *string `json:"apiKeyPreview"`
// Provider-specific knobs (maxTokens, thinking, effort, baseUrl, ...).
Params *json.RawMessage `json:"params"`
// Disabled configs are skipped by resolution (the walk continues outward).
Enabled bool `json:"enabled"`
CreatedAt string `json:"createdAt"`
UpdatedAt *string `json:"updatedAt"`
}
ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig includes the requested fields of the GraphQL type AiServiceConfig. The GraphQL type's documentation follows.
036-ai-service-config: a named AI service configuration (masked management view — never carries key material beyond the preview). Owned by exactly one of HadronServer / Organization / App / Agent. Resolution walks App -> Agent -> Org (of the App) -> HadronServer and returns the first ENABLED config with the requested name. Well-known fallback name: 'default' (conventional extras: 'fast', 'frontier'). Name is unique per owner.
func (*ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetApiKeyPreview ¶ added in v0.2.0
func (v *ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetApiKeyPreview() *string
GetApiKeyPreview returns ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig.ApiKeyPreview, and is useful for accessing the field via an interface.
func (*ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetCreatedAt ¶ added in v0.2.0
func (v *ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetCreatedAt() string
GetCreatedAt returns ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig.CreatedAt, and is useful for accessing the field via an interface.
func (*ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetEnabled ¶ added in v0.2.0
func (v *ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetEnabled() bool
GetEnabled returns ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig.Enabled, and is useful for accessing the field via an interface.
func (*ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetHasApiKey ¶ added in v0.2.0
func (v *ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetHasApiKey() bool
GetHasApiKey returns ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig.HasApiKey, and is useful for accessing the field via an interface.
func (*ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetId ¶ added in v0.2.0
func (v *ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetId() string
GetId returns ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig.Id, and is useful for accessing the field via an interface.
func (*ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetModel ¶ added in v0.2.0
func (v *ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetModel() string
GetModel returns ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig.Model, and is useful for accessing the field via an interface.
func (*ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetName ¶ added in v0.2.0
func (v *ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetName() string
GetName returns ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig.Name, and is useful for accessing the field via an interface.
func (*ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetOwnerId ¶ added in v0.2.0
func (v *ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetOwnerId() string
GetOwnerId returns ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig.OwnerId, and is useful for accessing the field via an interface.
func (*ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetOwnerType ¶ added in v0.2.0
func (v *ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetOwnerType() AiConfigOwnerType
GetOwnerType returns ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig.OwnerType, and is useful for accessing the field via an interface.
func (*ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetParams ¶ added in v0.2.0
func (v *ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetParams() *json.RawMessage
GetParams returns ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig.Params, and is useful for accessing the field via an interface.
func (*ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetProvider ¶ added in v0.2.0
func (v *ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetProvider() string
GetProvider returns ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig.Provider, and is useful for accessing the field via an interface.
func (*ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetUpdatedAt ¶ added in v0.2.0
func (v *ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetUpdatedAt() *string
GetUpdatedAt returns ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig.UpdatedAt, and is useful for accessing the field via an interface.
type ResolveAiServiceConfigsResponse ¶ added in v0.2.0
type ResolveAiServiceConfigsResponse struct {
// 036-ai-service-config: the MASKED set of configs RESOLVABLE in an
// execution context — every distinct config name a chat in this context
// could select. Populates a config picker in the chatbot UI.
//
// Same walk as resolveAIConfig (App -> Agent -> Org (of the App, else of
// the Agent) -> HadronServer), but returns ALL names instead of resolving
// one: configs are deduped by name with the innermost owner winning, so
// each entry is the row resolveAIConfig would return for that name. Only
// the Agent named here contributes — sibling Agents installed in the same
// App are not consulted. Disabled configs are skipped. Never returns key
// material (hasApiKey + apiKeyPreview only).
//
// Auth: scoped to one App's chat context. A non-admin caller MUST pass an
// appId, be a member of that App, and (when an agentId is given) the Agent
// must be installed in that App. Because the result is masked (no key
// material), App membership — not org admin — is the bar, unlike
// resolveAIConfig and the aiServiceConfigs management list. Platform
// ADMIN/OWNER are always allowed and may omit appId.
//
// appId/agentId accept the entity's ID or URN.
ResolveAiServiceConfigs []*ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig `json:"resolveAiServiceConfigs"`
}
ResolveAiServiceConfigsResponse is returned by ResolveAiServiceConfigs on success.
func ResolveAiServiceConfigs ¶ added in v0.2.0
func (*ResolveAiServiceConfigsResponse) GetResolveAiServiceConfigs ¶ added in v0.2.0
func (v *ResolveAiServiceConfigsResponse) GetResolveAiServiceConfigs() []*ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig
GetResolveAiServiceConfigs returns ResolveAiServiceConfigsResponse.ResolveAiServiceConfigs, and is useful for accessing the field via an interface.
type ResolveUrnResolveUrnUrnResolution ¶
type ResolveUrnResolveUrnUrnResolution struct {
Id string `json:"id"`
Kind string `json:"kind"`
MemoryId *string `json:"memoryId"`
}
ResolveUrnResolveUrnUrnResolution includes the requested fields of the GraphQL type UrnResolution. The GraphQL type's documentation follows.
Result of resolving a Hadron URN to the ids a client needs to navigate to the resource's canonical page. Powers the portal's /app/u/<urn> redirect route (hadron-portal#262).
`kind` is the URN's type segment: memory | node | agent | org | app | user. `id` is the resolved entity's primary id. `memoryId` is set only for nodes (their owning memory), `organizationId` only for apps (their owning org) — both are the extra ids those resources' canonical routes require.
func (*ResolveUrnResolveUrnUrnResolution) GetId ¶
func (v *ResolveUrnResolveUrnUrnResolution) GetId() string
GetId returns ResolveUrnResolveUrnUrnResolution.Id, and is useful for accessing the field via an interface.
func (*ResolveUrnResolveUrnUrnResolution) GetKind ¶
func (v *ResolveUrnResolveUrnUrnResolution) GetKind() string
GetKind returns ResolveUrnResolveUrnUrnResolution.Kind, and is useful for accessing the field via an interface.
func (*ResolveUrnResolveUrnUrnResolution) GetMemoryId ¶
func (v *ResolveUrnResolveUrnUrnResolution) GetMemoryId() *string
GetMemoryId returns ResolveUrnResolveUrnUrnResolution.MemoryId, and is useful for accessing the field via an interface.
type ResolveUrnResponse ¶
type ResolveUrnResponse struct {
// Resolve a fully-qualified, `hrn:<type>:`-prefixed Hadron URN (legacy `urn:` scheme also accepted) to the ids
// needed to reach its canonical page. Returns null when the URN is
// unresolvable (not found) OR the caller lacks access. Unlike the dedicated
// per-kind queries — which throw `Forbidden` on no-access — this query
// deliberately collapses both not-found and no-access to null, so a
// redirect resolver can 404 uniformly without disclosing which case it was.
//
// Per-kind access uses the SAME authorization rules as the dedicated
// queries (memory/org/agent: org membership; app: org ADMIN; node:
// memoryAccessFilter), only with the throw replaced by a null return.
//
// The `hrn:<type>:` prefix (legacy `urn:<type>:` also accepted) is the
// dispatch key — bare URNs without a type prefix are ambiguous across kinds
// (`org::slug` could be a memory or an agent) and resolve to null.
ResolveUrn *ResolveUrnResolveUrnUrnResolution `json:"resolveUrn"`
}
ResolveUrnResponse is returned by ResolveUrn on success.
func ResolveUrn ¶
func (*ResolveUrnResponse) GetResolveUrn ¶
func (v *ResolveUrnResponse) GetResolveUrn() *ResolveUrnResolveUrnUrnResolution
GetResolveUrn returns ResolveUrnResponse.ResolveUrn, and is useful for accessing the field via an interface.
type RevokeMemoryShareResponse ¶ added in v0.3.0
type RevokeMemoryShareResponse struct {
// takes effect on the next read (there's no "deactivated" state;
// just a row delete). Idempotent.
//
// Caller-authority rule matches createMemoryShare.
RevokeMemoryShare *RevokeMemoryShareRevokeMemoryShareRevokeMemorySharePayload `json:"revokeMemoryShare"`
}
RevokeMemoryShareResponse is returned by RevokeMemoryShare on success.
func RevokeMemoryShare ¶ added in v0.3.0
func (*RevokeMemoryShareResponse) GetRevokeMemoryShare ¶ added in v0.3.0
func (v *RevokeMemoryShareResponse) GetRevokeMemoryShare() *RevokeMemoryShareRevokeMemoryShareRevokeMemorySharePayload
GetRevokeMemoryShare returns RevokeMemoryShareResponse.RevokeMemoryShare, and is useful for accessing the field via an interface.
type RevokeMemoryShareRevokeMemoryShareRevokeMemorySharePayload ¶ added in v0.3.0
type RevokeMemoryShareRevokeMemoryShareRevokeMemorySharePayload struct {
}
RevokeMemoryShareRevokeMemoryShareRevokeMemorySharePayload includes the requested fields of the GraphQL type RevokeMemorySharePayload.
func (*RevokeMemoryShareRevokeMemoryShareRevokeMemorySharePayload) GetGranteeId ¶ added in v0.3.0
func (v *RevokeMemoryShareRevokeMemoryShareRevokeMemorySharePayload) GetGranteeId() string
GetGranteeId returns RevokeMemoryShareRevokeMemoryShareRevokeMemorySharePayload.GranteeId, and is useful for accessing the field via an interface.
func (*RevokeMemoryShareRevokeMemoryShareRevokeMemorySharePayload) GetMemoryId ¶ added in v0.3.0
func (v *RevokeMemoryShareRevokeMemoryShareRevokeMemorySharePayload) GetMemoryId() string
GetMemoryId returns RevokeMemoryShareRevokeMemoryShareRevokeMemorySharePayload.MemoryId, and is useful for accessing the field via an interface.
type RevokeUserApiKeyResponse ¶ added in v0.3.0
type RevokeUserApiKeyResponse struct {
// 025-oauth-for-mcp FR-004: revoke a user-scoped API key owned by
// the calling User. Returns the updated UserApiKey so the portal
// can render the new revokedAt without a refetch (PR-137 review
// delta D3 — was Boolean). Idempotent for already-revoked keys;
// rejected with FORBIDDEN if the key belongs to another user;
// NOT_FOUND if id does not exist; UNAUTHENTICATED for AppKey-
// resolved callers.
RevokeUserApiKey *RevokeUserApiKeyRevokeUserApiKey `json:"revokeUserApiKey"`
}
RevokeUserApiKeyResponse is returned by RevokeUserApiKey on success.
func RevokeUserApiKey ¶ added in v0.3.0
func RevokeUserApiKey( ctx_ context.Context, client_ graphql.Client, id string, ) (data_ *RevokeUserApiKeyResponse, err_ error)
Idempotent for an already-revoked key; returns the updated key.
func (*RevokeUserApiKeyResponse) GetRevokeUserApiKey ¶ added in v0.3.0
func (v *RevokeUserApiKeyResponse) GetRevokeUserApiKey() *RevokeUserApiKeyRevokeUserApiKey
GetRevokeUserApiKey returns RevokeUserApiKeyResponse.RevokeUserApiKey, and is useful for accessing the field via an interface.
type RevokeUserApiKeyRevokeUserApiKey ¶ added in v0.3.0
type RevokeUserApiKeyRevokeUserApiKey struct {
UserApiKeyFields `json:"-"`
}
RevokeUserApiKeyRevokeUserApiKey includes the requested fields of the GraphQL type UserApiKey.
func (*RevokeUserApiKeyRevokeUserApiKey) GetCreatedAt ¶ added in v0.3.0
func (v *RevokeUserApiKeyRevokeUserApiKey) GetCreatedAt() string
GetCreatedAt returns RevokeUserApiKeyRevokeUserApiKey.CreatedAt, and is useful for accessing the field via an interface.
func (*RevokeUserApiKeyRevokeUserApiKey) GetId ¶ added in v0.3.0
func (v *RevokeUserApiKeyRevokeUserApiKey) GetId() string
GetId returns RevokeUserApiKeyRevokeUserApiKey.Id, and is useful for accessing the field via an interface.
func (*RevokeUserApiKeyRevokeUserApiKey) GetIssuedVia ¶ added in v0.3.0
func (v *RevokeUserApiKeyRevokeUserApiKey) GetIssuedVia() *string
GetIssuedVia returns RevokeUserApiKeyRevokeUserApiKey.IssuedVia, and is useful for accessing the field via an interface.
func (*RevokeUserApiKeyRevokeUserApiKey) GetKeyPreview ¶ added in v0.3.0
func (v *RevokeUserApiKeyRevokeUserApiKey) GetKeyPreview() string
GetKeyPreview returns RevokeUserApiKeyRevokeUserApiKey.KeyPreview, and is useful for accessing the field via an interface.
func (*RevokeUserApiKeyRevokeUserApiKey) GetLabel ¶ added in v0.3.0
func (v *RevokeUserApiKeyRevokeUserApiKey) GetLabel() *string
GetLabel returns RevokeUserApiKeyRevokeUserApiKey.Label, and is useful for accessing the field via an interface.
func (*RevokeUserApiKeyRevokeUserApiKey) GetLastUsedAt ¶ added in v0.3.0
func (v *RevokeUserApiKeyRevokeUserApiKey) GetLastUsedAt() *string
GetLastUsedAt returns RevokeUserApiKeyRevokeUserApiKey.LastUsedAt, and is useful for accessing the field via an interface.
func (*RevokeUserApiKeyRevokeUserApiKey) GetRevokedAt ¶ added in v0.3.0
func (v *RevokeUserApiKeyRevokeUserApiKey) GetRevokedAt() *string
GetRevokedAt returns RevokeUserApiKeyRevokeUserApiKey.RevokedAt, and is useful for accessing the field via an interface.
func (*RevokeUserApiKeyRevokeUserApiKey) MarshalJSON ¶ added in v0.3.0
func (v *RevokeUserApiKeyRevokeUserApiKey) MarshalJSON() ([]byte, error)
func (*RevokeUserApiKeyRevokeUserApiKey) UnmarshalJSON ¶ added in v0.3.0
func (v *RevokeUserApiKeyRevokeUserApiKey) UnmarshalJSON(b []byte) error
type RunTaskResponse ¶ added in v0.4.0
type RunTaskResponse struct {
RunTask string `json:"runTask"`
}
RunTaskResponse is returned by RunTask on success.
func (*RunTaskResponse) GetRunTask ¶ added in v0.4.0
func (v *RunTaskResponse) GetRunTask() string
GetRunTask returns RunTaskResponse.RunTask, and is useful for accessing the field via an interface.
type SearchMode ¶ added in v0.2.0
type SearchMode string
Search dispatch for nodeSearch. Spec 033.
- keyword: substring match across name/loc/description/tags (the legacy nodes-query semantic, exposed as a nodeSearch mode for parity). - vector: semantic search via the memory's vector index. Requires vectorIndexEnabled on the memory. - hybrid: reciprocal-rank fusion of keyword + vector (k=60).
const ( SearchModeHybrid SearchMode = "hybrid" SearchModeKeyword SearchMode = "keyword" SearchModeVector SearchMode = "vector" )
type SearchReplaceInNodesInput ¶ added in v0.3.1
type SearchReplaceInNodesInput struct {
CaseInsensitive *bool `json:"caseInsensitive"`
// When true, report matches without writing anything.
DryRun *bool `json:"dryRun"`
// Which text fields to search. At least one required.
Fields []NodeTextField `json:"fields"`
// Memory IDs or URNs — selects every live node in each.
MemoryIds []string `json:"memoryIds"`
// Replacement. May be empty (deletes the matched text). Regex mode honors dollar-sign backrefs.
NewText string `json:"newText"`
// Explicit node IDs or fully-qualified URNs.
NodeIds []string `json:"nodeIds"`
// Text (literal) or RegExp source (regex mode) to find. Must be non-empty.
OldText string `json:"oldText"`
// Loc-prefix filter applied within 'memoryIds' (parent loc + descendants).
Prefix *string `json:"prefix"`
// Why this change was made — recorded on each changed node's version-history
// snapshot (NodeVersion.editedBy), mirroring hadron_update_node's reason arg.
Reason *string `json:"reason"`
// Treat oldText as a RegExp source and newText as a replacement pattern.
Regex *bool `json:"regex"`
}
Bulk literal/regex search-and-replace across selected nodes.
Selection is a union — at least one of 'nodeIds' or 'memoryIds' is required: - nodeIds: explicit nodes (IDs or fully-qualified URNs). - memoryIds: every live node in those memories (IDs or URNs). - prefix: further restrict the memoryIds set to the node at 'prefix' plus its descendants, matched on colon loc-path boundaries (so 'auth' matches 'auth' and 'auth:tokens' but not 'authoring'). Requires 'memoryIds' — loc is only unique within a memory.
Matching is literal substring by default; set 'regex: true' to treat 'oldText' as a RegExp source (and 'newText' as a replacement pattern with dollar-sign backrefs). 'caseInsensitive' toggles case folding. Matching is always global.
Set 'dryRun: true' to get per-node/per-field match counts WITHOUT writing.
func (*SearchReplaceInNodesInput) GetCaseInsensitive ¶ added in v0.3.1
func (v *SearchReplaceInNodesInput) GetCaseInsensitive() *bool
GetCaseInsensitive returns SearchReplaceInNodesInput.CaseInsensitive, and is useful for accessing the field via an interface.
func (*SearchReplaceInNodesInput) GetDryRun ¶ added in v0.3.1
func (v *SearchReplaceInNodesInput) GetDryRun() *bool
GetDryRun returns SearchReplaceInNodesInput.DryRun, and is useful for accessing the field via an interface.
func (*SearchReplaceInNodesInput) GetFields ¶ added in v0.3.1
func (v *SearchReplaceInNodesInput) GetFields() []NodeTextField
GetFields returns SearchReplaceInNodesInput.Fields, and is useful for accessing the field via an interface.
func (*SearchReplaceInNodesInput) GetMemoryIds ¶ added in v0.3.1
func (v *SearchReplaceInNodesInput) GetMemoryIds() []string
GetMemoryIds returns SearchReplaceInNodesInput.MemoryIds, and is useful for accessing the field via an interface.
func (*SearchReplaceInNodesInput) GetNewText ¶ added in v0.3.1
func (v *SearchReplaceInNodesInput) GetNewText() string
GetNewText returns SearchReplaceInNodesInput.NewText, and is useful for accessing the field via an interface.
func (*SearchReplaceInNodesInput) GetNodeIds ¶ added in v0.3.1
func (v *SearchReplaceInNodesInput) GetNodeIds() []string
GetNodeIds returns SearchReplaceInNodesInput.NodeIds, and is useful for accessing the field via an interface.
func (*SearchReplaceInNodesInput) GetOldText ¶ added in v0.3.1
func (v *SearchReplaceInNodesInput) GetOldText() string
GetOldText returns SearchReplaceInNodesInput.OldText, and is useful for accessing the field via an interface.
func (*SearchReplaceInNodesInput) GetPrefix ¶ added in v0.3.1
func (v *SearchReplaceInNodesInput) GetPrefix() *string
GetPrefix returns SearchReplaceInNodesInput.Prefix, and is useful for accessing the field via an interface.
func (*SearchReplaceInNodesInput) GetReason ¶ added in v0.4.0
func (v *SearchReplaceInNodesInput) GetReason() *string
GetReason returns SearchReplaceInNodesInput.Reason, and is useful for accessing the field via an interface.
func (*SearchReplaceInNodesInput) GetRegex ¶ added in v0.3.1
func (v *SearchReplaceInNodesInput) GetRegex() *bool
GetRegex returns SearchReplaceInNodesInput.Regex, and is useful for accessing the field via an interface.
type SearchReplaceInNodesResponse ¶ added in v0.3.1
type SearchReplaceInNodesResponse struct {
SearchReplaceInNodes *SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult `json:"searchReplaceInNodes"`
}
SearchReplaceInNodesResponse is returned by SearchReplaceInNodes on success.
func SearchReplaceInNodes ¶ added in v0.3.1
func SearchReplaceInNodes( ctx_ context.Context, client_ graphql.Client, input *SearchReplaceInNodesInput, ) (data_ *SearchReplaceInNodesResponse, err_ error)
Bulk literal/regex search-and-replace across selected nodes (hadron-server#312). Unset optional selectors/flags serialize as null, which the server treats the same as absent (it checks `Array.isArray(nodeIds)` and null-vs-truthy on the flags), so no per-field omitempty is needed here.
func (*SearchReplaceInNodesResponse) GetSearchReplaceInNodes ¶ added in v0.3.1
func (v *SearchReplaceInNodesResponse) GetSearchReplaceInNodes() *SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult
GetSearchReplaceInNodes returns SearchReplaceInNodesResponse.SearchReplaceInNodes, and is useful for accessing the field via an interface.
type SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult ¶ added in v0.3.1
type SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult struct {
// Nodes the selection resolved to (after auth + prefix filtering).
NodesScanned int `json:"nodesScanned"`
// Nodes with at least one replacement.
NodesChanged int `json:"nodesChanged"`
TotalReplacements int `json:"totalReplacements"`
// Echoes the request — true means nothing was written.
DryRun bool `json:"dryRun"`
// Per-node breakdown; only nodes with at least one match are listed.
Results []*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult `json:"results"`
}
SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult includes the requested fields of the GraphQL type SearchReplaceResult.
func (*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult) GetDryRun ¶ added in v0.3.1
func (v *SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult) GetDryRun() bool
GetDryRun returns SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult.DryRun, and is useful for accessing the field via an interface.
func (*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult) GetNodesChanged ¶ added in v0.3.1
func (v *SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult) GetNodesChanged() int
GetNodesChanged returns SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult.NodesChanged, and is useful for accessing the field via an interface.
func (*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult) GetNodesScanned ¶ added in v0.3.1
func (v *SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult) GetNodesScanned() int
GetNodesScanned returns SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult.NodesScanned, and is useful for accessing the field via an interface.
func (*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult) GetResults ¶ added in v0.3.1
func (v *SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult) GetResults() []*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult
GetResults returns SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult.Results, and is useful for accessing the field via an interface.
func (*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult) GetTotalReplacements ¶ added in v0.3.1
func (v *SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult) GetTotalReplacements() int
GetTotalReplacements returns SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult.TotalReplacements, and is useful for accessing the field via an interface.
type SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult ¶ added in v0.3.1
type SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult struct {
NodeId string `json:"nodeId"`
Loc string `json:"loc"`
MemoryId string `json:"memoryId"`
// Total replacements across all searched fields on this node.
Replacements int `json:"replacements"`
Fields []*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResultFieldsSearchReplaceFieldResult `json:"fields"`
}
SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult includes the requested fields of the GraphQL type SearchReplaceNodeResult.
func (*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult) GetFields ¶ added in v0.3.1
func (v *SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult) GetFields() []*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResultFieldsSearchReplaceFieldResult
GetFields returns SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult.Fields, and is useful for accessing the field via an interface.
func (*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult) GetLoc ¶ added in v0.3.1
func (v *SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult) GetLoc() string
GetLoc returns SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult.Loc, and is useful for accessing the field via an interface.
func (*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult) GetMemoryId ¶ added in v0.3.1
func (v *SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult) GetMemoryId() string
GetMemoryId returns SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult.MemoryId, and is useful for accessing the field via an interface.
func (*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult) GetNodeId ¶ added in v0.3.1
func (v *SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult) GetNodeId() string
GetNodeId returns SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult.NodeId, and is useful for accessing the field via an interface.
func (*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult) GetReplacements ¶ added in v0.3.1
func (v *SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult) GetReplacements() int
GetReplacements returns SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult.Replacements, and is useful for accessing the field via an interface.
type SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResultFieldsSearchReplaceFieldResult ¶ added in v0.3.1
type SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResultFieldsSearchReplaceFieldResult struct {
Field NodeTextField `json:"field"`
Matches int `json:"matches"`
}
SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResultFieldsSearchReplaceFieldResult includes the requested fields of the GraphQL type SearchReplaceFieldResult.
func (*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResultFieldsSearchReplaceFieldResult) GetField ¶ added in v0.3.1
func (v *SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResultFieldsSearchReplaceFieldResult) GetField() NodeTextField
GetField returns SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResultFieldsSearchReplaceFieldResult.Field, and is useful for accessing the field via an interface.
func (*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResultFieldsSearchReplaceFieldResult) GetMatches ¶ added in v0.3.1
func (v *SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResultFieldsSearchReplaceFieldResult) GetMatches() int
GetMatches returns SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResultFieldsSearchReplaceFieldResult.Matches, and is useful for accessing the field via an interface.
type SearchUsersResponse ¶ added in v0.3.0
type SearchUsersResponse struct {
SearchUsers []*SearchUsersSearchUsersUser `json:"searchUsers"`
}
SearchUsersResponse is returned by SearchUsers on success.
func SearchUsers ¶ added in v0.3.0
func (*SearchUsersResponse) GetSearchUsers ¶ added in v0.3.0
func (v *SearchUsersResponse) GetSearchUsers() []*SearchUsersSearchUsersUser
GetSearchUsers returns SearchUsersResponse.SearchUsers, and is useful for accessing the field via an interface.
type SearchUsersSearchUsersUser ¶ added in v0.3.0
type SearchUsersSearchUsersUser struct {
UserFields `json:"-"`
}
SearchUsersSearchUsersUser includes the requested fields of the GraphQL type User.
func (*SearchUsersSearchUsersUser) GetEmail ¶ added in v0.3.0
func (v *SearchUsersSearchUsersUser) GetEmail() *string
GetEmail returns SearchUsersSearchUsersUser.Email, and is useful for accessing the field via an interface.
func (*SearchUsersSearchUsersUser) GetGithubUsername ¶ added in v0.3.0
func (v *SearchUsersSearchUsersUser) GetGithubUsername() *string
GetGithubUsername returns SearchUsersSearchUsersUser.GithubUsername, and is useful for accessing the field via an interface.
func (*SearchUsersSearchUsersUser) GetHandle ¶ added in v0.3.0
func (v *SearchUsersSearchUsersUser) GetHandle() *string
GetHandle returns SearchUsersSearchUsersUser.Handle, and is useful for accessing the field via an interface.
func (*SearchUsersSearchUsersUser) GetId ¶ added in v0.3.0
func (v *SearchUsersSearchUsersUser) GetId() string
GetId returns SearchUsersSearchUsersUser.Id, and is useful for accessing the field via an interface.
func (*SearchUsersSearchUsersUser) GetName ¶ added in v0.3.0
func (v *SearchUsersSearchUsersUser) GetName() *string
GetName returns SearchUsersSearchUsersUser.Name, and is useful for accessing the field via an interface.
func (*SearchUsersSearchUsersUser) GetRoles ¶ added in v0.3.0
func (v *SearchUsersSearchUsersUser) GetRoles() []Role
GetRoles returns SearchUsersSearchUsersUser.Roles, and is useful for accessing the field via an interface.
func (*SearchUsersSearchUsersUser) MarshalJSON ¶ added in v0.3.0
func (v *SearchUsersSearchUsersUser) MarshalJSON() ([]byte, error)
func (*SearchUsersSearchUsersUser) UnmarshalJSON ¶ added in v0.3.0
func (v *SearchUsersSearchUsersUser) UnmarshalJSON(b []byte) error
type SyncStatus ¶
type SyncStatus string
const ( SyncStatusError SyncStatus = "ERROR" SyncStatusOk SyncStatus = "OK" SyncStatusPending SyncStatus = "PENDING" SyncStatusSyncing SyncStatus = "SYNCING" )
type UpdateAiServiceConfigResponse ¶ added in v0.3.0
type UpdateAiServiceConfigResponse struct {
// 036-ai-service-config: update a named AI config. All fields optional.
//
// apiKey semantics: omitted = keep the stored key; empty string =
// clear it; non-empty = replace (encrypted, preview recomputed).
//
// Auth: admin rights on the owning entity (as aiServiceConfigs).
UpdateAiServiceConfig *UpdateAiServiceConfigUpdateAiServiceConfig `json:"updateAiServiceConfig"`
}
UpdateAiServiceConfigResponse is returned by UpdateAiServiceConfig on success.
func UpdateAiServiceConfig ¶ added in v0.3.0
func UpdateAiServiceConfig( ctx_ context.Context, client_ graphql.Client, id string, name *string, provider *string, model *string, apiKey *string, enabled *bool, params *json.RawMessage, ) (data_ *UpdateAiServiceConfigResponse, err_ error)
All fields optional. apiKey: omitted (nil) = keep the stored key; "" = clear it; non-empty = replace. nil-based omitempty makes a non-nil &"" send the empty string (the clear signal), while an absent flag stays nil and is omitted (preserve).
func (*UpdateAiServiceConfigResponse) GetUpdateAiServiceConfig ¶ added in v0.3.0
func (v *UpdateAiServiceConfigResponse) GetUpdateAiServiceConfig() *UpdateAiServiceConfigUpdateAiServiceConfig
GetUpdateAiServiceConfig returns UpdateAiServiceConfigResponse.UpdateAiServiceConfig, and is useful for accessing the field via an interface.
type UpdateAiServiceConfigUpdateAiServiceConfig ¶ added in v0.3.0
type UpdateAiServiceConfigUpdateAiServiceConfig struct {
AiServiceConfigFields `json:"-"`
}
UpdateAiServiceConfigUpdateAiServiceConfig includes the requested fields of the GraphQL type AiServiceConfig. The GraphQL type's documentation follows.
036-ai-service-config: a named AI service configuration (masked management view — never carries key material beyond the preview). Owned by exactly one of HadronServer / Organization / App / Agent. Resolution walks App -> Agent -> Org (of the App) -> HadronServer and returns the first ENABLED config with the requested name. Well-known fallback name: 'default' (conventional extras: 'fast', 'frontier'). Name is unique per owner.
func (*UpdateAiServiceConfigUpdateAiServiceConfig) GetApiKeyPreview ¶ added in v0.3.0
func (v *UpdateAiServiceConfigUpdateAiServiceConfig) GetApiKeyPreview() *string
GetApiKeyPreview returns UpdateAiServiceConfigUpdateAiServiceConfig.ApiKeyPreview, and is useful for accessing the field via an interface.
func (*UpdateAiServiceConfigUpdateAiServiceConfig) GetCreatedAt ¶ added in v0.3.0
func (v *UpdateAiServiceConfigUpdateAiServiceConfig) GetCreatedAt() string
GetCreatedAt returns UpdateAiServiceConfigUpdateAiServiceConfig.CreatedAt, and is useful for accessing the field via an interface.
func (*UpdateAiServiceConfigUpdateAiServiceConfig) GetEnabled ¶ added in v0.3.0
func (v *UpdateAiServiceConfigUpdateAiServiceConfig) GetEnabled() bool
GetEnabled returns UpdateAiServiceConfigUpdateAiServiceConfig.Enabled, and is useful for accessing the field via an interface.
func (*UpdateAiServiceConfigUpdateAiServiceConfig) GetHasApiKey ¶ added in v0.3.0
func (v *UpdateAiServiceConfigUpdateAiServiceConfig) GetHasApiKey() bool
GetHasApiKey returns UpdateAiServiceConfigUpdateAiServiceConfig.HasApiKey, and is useful for accessing the field via an interface.
func (*UpdateAiServiceConfigUpdateAiServiceConfig) GetId ¶ added in v0.3.0
func (v *UpdateAiServiceConfigUpdateAiServiceConfig) GetId() string
GetId returns UpdateAiServiceConfigUpdateAiServiceConfig.Id, and is useful for accessing the field via an interface.
func (*UpdateAiServiceConfigUpdateAiServiceConfig) GetModel ¶ added in v0.3.0
func (v *UpdateAiServiceConfigUpdateAiServiceConfig) GetModel() string
GetModel returns UpdateAiServiceConfigUpdateAiServiceConfig.Model, and is useful for accessing the field via an interface.
func (*UpdateAiServiceConfigUpdateAiServiceConfig) GetName ¶ added in v0.3.0
func (v *UpdateAiServiceConfigUpdateAiServiceConfig) GetName() string
GetName returns UpdateAiServiceConfigUpdateAiServiceConfig.Name, and is useful for accessing the field via an interface.
func (*UpdateAiServiceConfigUpdateAiServiceConfig) GetOwnerId ¶ added in v0.3.0
func (v *UpdateAiServiceConfigUpdateAiServiceConfig) GetOwnerId() string
GetOwnerId returns UpdateAiServiceConfigUpdateAiServiceConfig.OwnerId, and is useful for accessing the field via an interface.
func (*UpdateAiServiceConfigUpdateAiServiceConfig) GetOwnerType ¶ added in v0.3.0
func (v *UpdateAiServiceConfigUpdateAiServiceConfig) GetOwnerType() AiConfigOwnerType
GetOwnerType returns UpdateAiServiceConfigUpdateAiServiceConfig.OwnerType, and is useful for accessing the field via an interface.
func (*UpdateAiServiceConfigUpdateAiServiceConfig) GetParams ¶ added in v0.3.0
func (v *UpdateAiServiceConfigUpdateAiServiceConfig) GetParams() *json.RawMessage
GetParams returns UpdateAiServiceConfigUpdateAiServiceConfig.Params, and is useful for accessing the field via an interface.
func (*UpdateAiServiceConfigUpdateAiServiceConfig) GetProvider ¶ added in v0.3.0
func (v *UpdateAiServiceConfigUpdateAiServiceConfig) GetProvider() string
GetProvider returns UpdateAiServiceConfigUpdateAiServiceConfig.Provider, and is useful for accessing the field via an interface.
func (*UpdateAiServiceConfigUpdateAiServiceConfig) GetUpdatedAt ¶ added in v0.3.0
func (v *UpdateAiServiceConfigUpdateAiServiceConfig) GetUpdatedAt() *string
GetUpdatedAt returns UpdateAiServiceConfigUpdateAiServiceConfig.UpdatedAt, and is useful for accessing the field via an interface.
func (*UpdateAiServiceConfigUpdateAiServiceConfig) MarshalJSON ¶ added in v0.3.0
func (v *UpdateAiServiceConfigUpdateAiServiceConfig) MarshalJSON() ([]byte, error)
func (*UpdateAiServiceConfigUpdateAiServiceConfig) UnmarshalJSON ¶ added in v0.3.0
func (v *UpdateAiServiceConfigUpdateAiServiceConfig) UnmarshalJSON(b []byte) error
type UpdateEdgeResponse ¶
type UpdateEdgeResponse struct {
UpdateEdge *UpdateEdgeUpdateEdge `json:"updateEdge"`
}
UpdateEdgeResponse is returned by UpdateEdge on success.
func UpdateEdge ¶
func UpdateEdge( ctx_ context.Context, client_ graphql.Client, edgeId string, name *string, loc *string, description *string, isRunnable *bool, priority *int, condition *json.RawMessage, data *json.RawMessage, ) (data_ *UpdateEdgeResponse, err_ error)
Omitted = preserve, explicit null = clear (condition/data) or unset (priority). Flags the user didn't pass must not reach the wire.
func (*UpdateEdgeResponse) GetUpdateEdge ¶
func (v *UpdateEdgeResponse) GetUpdateEdge() *UpdateEdgeUpdateEdge
GetUpdateEdge returns UpdateEdgeResponse.UpdateEdge, and is useful for accessing the field via an interface.
type UpdateEdgeUpdateEdge ¶
type UpdateEdgeUpdateEdge struct {
Id string `json:"id"`
Name *string `json:"name"`
Loc string `json:"loc"`
IsRunnable *bool `json:"isRunnable"`
Priority int `json:"priority"`
Source *UpdateEdgeUpdateEdgeSourceNode `json:"source"`
Target *UpdateEdgeUpdateEdgeTargetNode `json:"target"`
}
UpdateEdgeUpdateEdge includes the requested fields of the GraphQL type Edge.
func (*UpdateEdgeUpdateEdge) GetId ¶
func (v *UpdateEdgeUpdateEdge) GetId() string
GetId returns UpdateEdgeUpdateEdge.Id, and is useful for accessing the field via an interface.
func (*UpdateEdgeUpdateEdge) GetIsRunnable ¶ added in v0.3.0
func (v *UpdateEdgeUpdateEdge) GetIsRunnable() *bool
GetIsRunnable returns UpdateEdgeUpdateEdge.IsRunnable, and is useful for accessing the field via an interface.
func (*UpdateEdgeUpdateEdge) GetLoc ¶ added in v0.3.0
func (v *UpdateEdgeUpdateEdge) GetLoc() string
GetLoc returns UpdateEdgeUpdateEdge.Loc, and is useful for accessing the field via an interface.
func (*UpdateEdgeUpdateEdge) GetName ¶ added in v0.3.0
func (v *UpdateEdgeUpdateEdge) GetName() *string
GetName returns UpdateEdgeUpdateEdge.Name, and is useful for accessing the field via an interface.
func (*UpdateEdgeUpdateEdge) GetPriority ¶
func (v *UpdateEdgeUpdateEdge) GetPriority() int
GetPriority returns UpdateEdgeUpdateEdge.Priority, and is useful for accessing the field via an interface.
func (*UpdateEdgeUpdateEdge) GetSource ¶
func (v *UpdateEdgeUpdateEdge) GetSource() *UpdateEdgeUpdateEdgeSourceNode
GetSource returns UpdateEdgeUpdateEdge.Source, and is useful for accessing the field via an interface.
func (*UpdateEdgeUpdateEdge) GetTarget ¶
func (v *UpdateEdgeUpdateEdge) GetTarget() *UpdateEdgeUpdateEdgeTargetNode
GetTarget returns UpdateEdgeUpdateEdge.Target, and is useful for accessing the field via an interface.
type UpdateEdgeUpdateEdgeSourceNode ¶
UpdateEdgeUpdateEdgeSourceNode includes the requested fields of the GraphQL type Node.
func (*UpdateEdgeUpdateEdgeSourceNode) GetId ¶
func (v *UpdateEdgeUpdateEdgeSourceNode) GetId() string
GetId returns UpdateEdgeUpdateEdgeSourceNode.Id, and is useful for accessing the field via an interface.
func (*UpdateEdgeUpdateEdgeSourceNode) GetLoc ¶
func (v *UpdateEdgeUpdateEdgeSourceNode) GetLoc() string
GetLoc returns UpdateEdgeUpdateEdgeSourceNode.Loc, and is useful for accessing the field via an interface.
type UpdateEdgeUpdateEdgeTargetNode ¶
UpdateEdgeUpdateEdgeTargetNode includes the requested fields of the GraphQL type Node.
func (*UpdateEdgeUpdateEdgeTargetNode) GetId ¶
func (v *UpdateEdgeUpdateEdgeTargetNode) GetId() string
GetId returns UpdateEdgeUpdateEdgeTargetNode.Id, and is useful for accessing the field via an interface.
func (*UpdateEdgeUpdateEdgeTargetNode) GetLoc ¶
func (v *UpdateEdgeUpdateEdgeTargetNode) GetLoc() string
GetLoc returns UpdateEdgeUpdateEdgeTargetNode.Loc, and is useful for accessing the field via an interface.
type UpdateMemoryMemberRoleResponse ¶ added in v0.3.0
type UpdateMemoryMemberRoleResponse struct {
// 023-app-shape US4 — change the role on an existing team member.
// Throws MemoryMemberNotFoundError when the row doesn't exist;
// use addMemoryMember to upsert. Throws LastOwnerProtectedError
// (FR-038) when demoting the sole remaining owner.
//
// Caller-authority rule matches addMemoryMember.
//
// Error codes (extensions.code, Error.name style):
// - UNAUTHENTICATED — no logged-in user in context.
// - FORBIDDEN — caller is not an owner of a live group memory.
// - MemoryNotFoundForMemberError — memory absent or soft-deleted
// (only reachable from non-GraphQL callers in v1 — the guard
// short-circuits to FORBIDDEN first).
// - InvalidMemoryClassForMemberError — memory is not group-class
// (same; guard short-circuits to FORBIDDEN first).
// - MemoryMemberNotFoundError — no row at (memoryId, userId).
// - LastOwnerProtectedError (FR-038) — would demote the sole owner.
UpdateMemoryMemberRole *UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayload `json:"updateMemoryMemberRole"`
}
UpdateMemoryMemberRoleResponse is returned by UpdateMemoryMemberRole on success.
func UpdateMemoryMemberRole ¶ added in v0.3.0
func UpdateMemoryMemberRole( ctx_ context.Context, client_ graphql.Client, memoryId string, userId string, role MemoryMemberRole, ) (data_ *UpdateMemoryMemberRoleResponse, err_ error)
func (*UpdateMemoryMemberRoleResponse) GetUpdateMemoryMemberRole ¶ added in v0.3.0
func (v *UpdateMemoryMemberRoleResponse) GetUpdateMemoryMemberRole() *UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayload
GetUpdateMemoryMemberRole returns UpdateMemoryMemberRoleResponse.UpdateMemoryMemberRole, and is useful for accessing the field via an interface.
type UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayload ¶ added in v0.3.0
type UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayload struct {
MemoryMember *UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMember `json:"memoryMember"`
}
UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayload includes the requested fields of the GraphQL type UpdateMemoryMemberRolePayload.
func (*UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayload) GetMemoryMember ¶ added in v0.3.0
func (v *UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayload) GetMemoryMember() *UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMember
GetMemoryMember returns UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayload.MemoryMember, and is useful for accessing the field via an interface.
type UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMember ¶ added in v0.3.0
type UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMember struct {
Role MemoryMemberRole `json:"role"`
User *UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser `json:"user"`
}
UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMember includes the requested fields of the GraphQL type MemoryMember. The GraphQL type's documentation follows.
023-app-shape US4: symmetric team-membership row for group-class memory. The "Company Brain" model — multiple users collaboratively read/write a shared memory, governance by role, no single owner on the Memory itself.
func (*UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMember) GetRole ¶ added in v0.3.0
func (v *UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMember) GetRole() MemoryMemberRole
GetRole returns UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMember.Role, and is useful for accessing the field via an interface.
func (*UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMember) GetUser ¶ added in v0.3.0
func (v *UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMember) GetUser() *UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser
GetUser returns UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMember.User, and is useful for accessing the field via an interface.
type UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser ¶ added in v0.3.0
type UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser struct {
MemUserFields `json:"-"`
}
UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser includes the requested fields of the GraphQL type User.
func (*UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser) GetEmail ¶ added in v0.3.0
func (v *UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser) GetEmail() *string
GetEmail returns UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser.Email, and is useful for accessing the field via an interface.
func (*UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser) GetHandle ¶ added in v0.3.0
func (v *UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser) GetHandle() *string
GetHandle returns UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser.Handle, and is useful for accessing the field via an interface.
func (*UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser) GetId ¶ added in v0.3.0
func (v *UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser) GetId() string
GetId returns UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser.Id, and is useful for accessing the field via an interface.
func (*UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser) GetName ¶ added in v0.3.0
func (v *UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser) GetName() *string
GetName returns UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser.Name, and is useful for accessing the field via an interface.
func (*UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser) MarshalJSON ¶ added in v0.3.0
func (v *UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser) MarshalJSON() ([]byte, error)
func (*UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser) UnmarshalJSON ¶ added in v0.3.0
func (v *UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser) UnmarshalJSON(b []byte) error
type UpdateMemoryResponse ¶
type UpdateMemoryResponse struct {
// Update a Memory.
//
// Accepts the entity's ID or URN.
//
// Spec 033 FR-026: enabling `vectorIndexEnabled` on an `isEncrypted` memory
// requires `acknowledgeVectorInversionRisk: true` in the same call. Without
// the flag, an `EncryptedVectorIndexNotAcknowledgedError` is thrown carrying
// the full four-point disclosure on `error.disclosure` (single source of
// truth in `FR_026_DISCLOSURE` — see `src/lib/entityRef/errors.ts`). On a
// non-encrypted memory the flag is a no-op.
UpdateMemory *UpdateMemoryUpdateMemory `json:"updateMemory"`
}
UpdateMemoryResponse is returned by UpdateMemory on success.
func UpdateMemory ¶
func UpdateMemory( ctx_ context.Context, client_ graphql.Client, id string, name *string, shortDescription *string, description *string, tags *[]string, visibility *MemoryVisibility, data *json.RawMessage, ) (data_ *UpdateMemoryResponse, err_ error)
Omitted = preserve; flags the user didn't pass must not reach the wire.
func (*UpdateMemoryResponse) GetUpdateMemory ¶
func (v *UpdateMemoryResponse) GetUpdateMemory() *UpdateMemoryUpdateMemory
GetUpdateMemory returns UpdateMemoryResponse.UpdateMemory, and is useful for accessing the field via an interface.
type UpdateMemoryShareRoleResponse ¶ added in v0.3.0
type UpdateMemoryShareRoleResponse struct {
// Throws MemoryShareNotFoundError if the (memoryId, granteeId) row
// doesn't exist — use createMemoryShare to upsert.
//
// Caller-authority rule matches createMemoryShare.
UpdateMemoryShareRole *UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayload `json:"updateMemoryShareRole"`
}
UpdateMemoryShareRoleResponse is returned by UpdateMemoryShareRole on success.
func UpdateMemoryShareRole ¶ added in v0.3.0
func UpdateMemoryShareRole( ctx_ context.Context, client_ graphql.Client, memoryId string, granteeId string, role MemoryShareRole, ) (data_ *UpdateMemoryShareRoleResponse, err_ error)
func (*UpdateMemoryShareRoleResponse) GetUpdateMemoryShareRole ¶ added in v0.3.0
func (v *UpdateMemoryShareRoleResponse) GetUpdateMemoryShareRole() *UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayload
GetUpdateMemoryShareRole returns UpdateMemoryShareRoleResponse.UpdateMemoryShareRole, and is useful for accessing the field via an interface.
type UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayload ¶ added in v0.3.0
type UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayload struct {
}
UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayload includes the requested fields of the GraphQL type UpdateMemoryShareRolePayload.
func (*UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayload) GetMemoryShare ¶ added in v0.3.0
func (v *UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayload) GetMemoryShare() *UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShare
GetMemoryShare returns UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayload.MemoryShare, and is useful for accessing the field via an interface.
type UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShare ¶ added in v0.3.0
type UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShare struct {
Grantee *UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser `json:"grantee"`
}
UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShare includes the requested fields of the GraphQL type MemoryShare. The GraphQL type's documentation follows.
023-app-shape US3: asymmetric cross-user grant on a personal-class Memory. The principal (memory.userId) grants a grantee read/write access. Used for per-pairing isolation patterns (e.g., Alice's personal Memory paired-with-Mentor-A is distinct from her paired-with-Mentor-B Memory, each with its own MemoryShare).
func (*UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShare) GetGrantee ¶ added in v0.3.0
func (v *UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShare) GetGrantee() *UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser
GetGrantee returns UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShare.Grantee, and is useful for accessing the field via an interface.
func (*UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShare) GetRole ¶ added in v0.3.0
func (v *UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShare) GetRole() MemoryShareRole
GetRole returns UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShare.Role, and is useful for accessing the field via an interface.
type UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser ¶ added in v0.3.0
type UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser struct {
}
UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser includes the requested fields of the GraphQL type User.
func (*UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser) GetEmail ¶ added in v0.3.0
func (v *UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser) GetEmail() *string
GetEmail returns UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser.Email, and is useful for accessing the field via an interface.
func (*UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser) GetHandle ¶ added in v0.3.0
func (v *UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser) GetHandle() *string
GetHandle returns UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser.Handle, and is useful for accessing the field via an interface.
func (*UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser) GetId ¶ added in v0.3.0
func (v *UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser) GetId() string
GetId returns UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser.Id, and is useful for accessing the field via an interface.
func (*UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser) GetName ¶ added in v0.3.0
func (v *UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser) GetName() *string
GetName returns UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser.Name, and is useful for accessing the field via an interface.
func (*UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser) MarshalJSON ¶ added in v0.3.0
func (v *UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser) MarshalJSON() ([]byte, error)
func (*UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser) UnmarshalJSON ¶ added in v0.3.0
func (v *UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser) UnmarshalJSON(b []byte) error
type UpdateMemoryUpdateMemory ¶
type UpdateMemoryUpdateMemory struct {
Id string `json:"id"`
Urn string `json:"urn"`
Name string `json:"name"`
ShortDescription *string `json:"shortDescription"`
Class MemoryClass `json:"class"`
Visibility *MemoryVisibility `json:"visibility"`
OrganizationId string `json:"organizationId"`
IsEncrypted bool `json:"isEncrypted"`
// Free-form structured metadata bag (client-defined JSON, no server-side
// semantics). Null when unset. Settable via createMemory / updateMemory.
Data *json.RawMessage `json:"data"`
UpdatedAt string `json:"updatedAt"`
}
UpdateMemoryUpdateMemory includes the requested fields of the GraphQL type Memory.
func (*UpdateMemoryUpdateMemory) GetClass ¶
func (v *UpdateMemoryUpdateMemory) GetClass() MemoryClass
GetClass returns UpdateMemoryUpdateMemory.Class, and is useful for accessing the field via an interface.
func (*UpdateMemoryUpdateMemory) GetData ¶ added in v0.2.0
func (v *UpdateMemoryUpdateMemory) GetData() *json.RawMessage
GetData returns UpdateMemoryUpdateMemory.Data, and is useful for accessing the field via an interface.
func (*UpdateMemoryUpdateMemory) GetId ¶
func (v *UpdateMemoryUpdateMemory) GetId() string
GetId returns UpdateMemoryUpdateMemory.Id, and is useful for accessing the field via an interface.
func (*UpdateMemoryUpdateMemory) GetIsEncrypted ¶
func (v *UpdateMemoryUpdateMemory) GetIsEncrypted() bool
GetIsEncrypted returns UpdateMemoryUpdateMemory.IsEncrypted, and is useful for accessing the field via an interface.
func (*UpdateMemoryUpdateMemory) GetName ¶
func (v *UpdateMemoryUpdateMemory) GetName() string
GetName returns UpdateMemoryUpdateMemory.Name, and is useful for accessing the field via an interface.
func (*UpdateMemoryUpdateMemory) GetOrganizationId ¶
func (v *UpdateMemoryUpdateMemory) GetOrganizationId() string
GetOrganizationId returns UpdateMemoryUpdateMemory.OrganizationId, and is useful for accessing the field via an interface.
func (*UpdateMemoryUpdateMemory) GetShortDescription ¶
func (v *UpdateMemoryUpdateMemory) GetShortDescription() *string
GetShortDescription returns UpdateMemoryUpdateMemory.ShortDescription, and is useful for accessing the field via an interface.
func (*UpdateMemoryUpdateMemory) GetUpdatedAt ¶
func (v *UpdateMemoryUpdateMemory) GetUpdatedAt() string
GetUpdatedAt returns UpdateMemoryUpdateMemory.UpdatedAt, and is useful for accessing the field via an interface.
func (*UpdateMemoryUpdateMemory) GetUrn ¶
func (v *UpdateMemoryUpdateMemory) GetUrn() string
GetUrn returns UpdateMemoryUpdateMemory.Urn, and is useful for accessing the field via an interface.
func (*UpdateMemoryUpdateMemory) GetVisibility ¶
func (v *UpdateMemoryUpdateMemory) GetVisibility() *MemoryVisibility
GetVisibility returns UpdateMemoryUpdateMemory.Visibility, and is useful for accessing the field via an interface.
type UpdateNodeDataResponse ¶ added in v0.4.0
type UpdateNodeDataResponse struct {
UpdateNodeData *UpdateNodeDataUpdateNodeDataNode `json:"updateNodeData"`
}
UpdateNodeDataResponse is returned by UpdateNodeData on success.
func UpdateNodeData ¶ added in v0.4.0
func UpdateNodeData( ctx_ context.Context, client_ graphql.Client, nodeId string, data json.RawMessage, reason *string, ) (data_ *UpdateNodeDataResponse, err_ error)
Shallow-merge a JSON patch into a node's `data` bag (the supplied object's top-level keys overwrite existing ones; absent keys are preserved). Unlike UpsertNode's `data`, which replaces the whole bag, this is a merge — the server rejects a non-object patch with BAD_USER_INPUT. Backs the `--data-merge`/`--data-merge-file` flags on `hadron node update`.
func (*UpdateNodeDataResponse) GetUpdateNodeData ¶ added in v0.4.0
func (v *UpdateNodeDataResponse) GetUpdateNodeData() *UpdateNodeDataUpdateNodeDataNode
GetUpdateNodeData returns UpdateNodeDataResponse.UpdateNodeData, and is useful for accessing the field via an interface.
type UpdateNodeDataUpdateNodeDataNode ¶ added in v0.4.0
type UpdateNodeDataUpdateNodeDataNode struct {
Id string `json:"id"`
MemoryId string `json:"memoryId"`
Loc string `json:"loc"`
Name string `json:"name"`
NodeType string `json:"nodeType"`
Tags []string `json:"tags"`
IsRunnable *bool `json:"isRunnable"`
UpdatedAt string `json:"updatedAt"`
}
UpdateNodeDataUpdateNodeDataNode includes the requested fields of the GraphQL type Node.
func (*UpdateNodeDataUpdateNodeDataNode) GetId ¶ added in v0.4.0
func (v *UpdateNodeDataUpdateNodeDataNode) GetId() string
GetId returns UpdateNodeDataUpdateNodeDataNode.Id, and is useful for accessing the field via an interface.
func (*UpdateNodeDataUpdateNodeDataNode) GetIsRunnable ¶ added in v0.4.0
func (v *UpdateNodeDataUpdateNodeDataNode) GetIsRunnable() *bool
GetIsRunnable returns UpdateNodeDataUpdateNodeDataNode.IsRunnable, and is useful for accessing the field via an interface.
func (*UpdateNodeDataUpdateNodeDataNode) GetLoc ¶ added in v0.4.0
func (v *UpdateNodeDataUpdateNodeDataNode) GetLoc() string
GetLoc returns UpdateNodeDataUpdateNodeDataNode.Loc, and is useful for accessing the field via an interface.
func (*UpdateNodeDataUpdateNodeDataNode) GetMemoryId ¶ added in v0.4.0
func (v *UpdateNodeDataUpdateNodeDataNode) GetMemoryId() string
GetMemoryId returns UpdateNodeDataUpdateNodeDataNode.MemoryId, and is useful for accessing the field via an interface.
func (*UpdateNodeDataUpdateNodeDataNode) GetName ¶ added in v0.4.0
func (v *UpdateNodeDataUpdateNodeDataNode) GetName() string
GetName returns UpdateNodeDataUpdateNodeDataNode.Name, and is useful for accessing the field via an interface.
func (*UpdateNodeDataUpdateNodeDataNode) GetNodeType ¶ added in v0.4.0
func (v *UpdateNodeDataUpdateNodeDataNode) GetNodeType() string
GetNodeType returns UpdateNodeDataUpdateNodeDataNode.NodeType, and is useful for accessing the field via an interface.
func (*UpdateNodeDataUpdateNodeDataNode) GetTags ¶ added in v0.4.0
func (v *UpdateNodeDataUpdateNodeDataNode) GetTags() []string
GetTags returns UpdateNodeDataUpdateNodeDataNode.Tags, and is useful for accessing the field via an interface.
func (*UpdateNodeDataUpdateNodeDataNode) GetUpdatedAt ¶ added in v0.4.0
func (v *UpdateNodeDataUpdateNodeDataNode) GetUpdatedAt() string
GetUpdatedAt returns UpdateNodeDataUpdateNodeDataNode.UpdatedAt, and is useful for accessing the field via an interface.
type UpdateOrgMemberResponse ¶ added in v0.3.0
type UpdateOrgMemberResponse struct {
// Accepts the entity's ID or URN (orgId).
UpdateOrgMember *UpdateOrgMemberUpdateOrgMember `json:"updateOrgMember"`
}
UpdateOrgMemberResponse is returned by UpdateOrgMember on success.
func UpdateOrgMember ¶ added in v0.3.0
func (*UpdateOrgMemberResponse) GetUpdateOrgMember ¶ added in v0.3.0
func (v *UpdateOrgMemberResponse) GetUpdateOrgMember() *UpdateOrgMemberUpdateOrgMember
GetUpdateOrgMember returns UpdateOrgMemberResponse.UpdateOrgMember, and is useful for accessing the field via an interface.
type UpdateOrgMemberUpdateOrgMember ¶ added in v0.3.0
type UpdateOrgMemberUpdateOrgMember struct {
Id string `json:"id"`
Role Role `json:"role"`
User *UpdateOrgMemberUpdateOrgMemberUser `json:"user"`
}
UpdateOrgMemberUpdateOrgMember includes the requested fields of the GraphQL type OrgMember.
func (*UpdateOrgMemberUpdateOrgMember) GetId ¶ added in v0.3.0
func (v *UpdateOrgMemberUpdateOrgMember) GetId() string
GetId returns UpdateOrgMemberUpdateOrgMember.Id, and is useful for accessing the field via an interface.
func (*UpdateOrgMemberUpdateOrgMember) GetRole ¶ added in v0.3.0
func (v *UpdateOrgMemberUpdateOrgMember) GetRole() Role
GetRole returns UpdateOrgMemberUpdateOrgMember.Role, and is useful for accessing the field via an interface.
func (*UpdateOrgMemberUpdateOrgMember) GetUser ¶ added in v0.3.0
func (v *UpdateOrgMemberUpdateOrgMember) GetUser() *UpdateOrgMemberUpdateOrgMemberUser
GetUser returns UpdateOrgMemberUpdateOrgMember.User, and is useful for accessing the field via an interface.
type UpdateOrgMemberUpdateOrgMemberUser ¶ added in v0.3.0
type UpdateOrgMemberUpdateOrgMemberUser struct {
UserFields `json:"-"`
}
UpdateOrgMemberUpdateOrgMemberUser includes the requested fields of the GraphQL type User.
func (*UpdateOrgMemberUpdateOrgMemberUser) GetEmail ¶ added in v0.3.0
func (v *UpdateOrgMemberUpdateOrgMemberUser) GetEmail() *string
GetEmail returns UpdateOrgMemberUpdateOrgMemberUser.Email, and is useful for accessing the field via an interface.
func (*UpdateOrgMemberUpdateOrgMemberUser) GetGithubUsername ¶ added in v0.3.0
func (v *UpdateOrgMemberUpdateOrgMemberUser) GetGithubUsername() *string
GetGithubUsername returns UpdateOrgMemberUpdateOrgMemberUser.GithubUsername, and is useful for accessing the field via an interface.
func (*UpdateOrgMemberUpdateOrgMemberUser) GetHandle ¶ added in v0.3.0
func (v *UpdateOrgMemberUpdateOrgMemberUser) GetHandle() *string
GetHandle returns UpdateOrgMemberUpdateOrgMemberUser.Handle, and is useful for accessing the field via an interface.
func (*UpdateOrgMemberUpdateOrgMemberUser) GetId ¶ added in v0.3.0
func (v *UpdateOrgMemberUpdateOrgMemberUser) GetId() string
GetId returns UpdateOrgMemberUpdateOrgMemberUser.Id, and is useful for accessing the field via an interface.
func (*UpdateOrgMemberUpdateOrgMemberUser) GetName ¶ added in v0.3.0
func (v *UpdateOrgMemberUpdateOrgMemberUser) GetName() *string
GetName returns UpdateOrgMemberUpdateOrgMemberUser.Name, and is useful for accessing the field via an interface.
func (*UpdateOrgMemberUpdateOrgMemberUser) GetRoles ¶ added in v0.3.0
func (v *UpdateOrgMemberUpdateOrgMemberUser) GetRoles() []Role
GetRoles returns UpdateOrgMemberUpdateOrgMemberUser.Roles, and is useful for accessing the field via an interface.
func (*UpdateOrgMemberUpdateOrgMemberUser) MarshalJSON ¶ added in v0.3.0
func (v *UpdateOrgMemberUpdateOrgMemberUser) MarshalJSON() ([]byte, error)
func (*UpdateOrgMemberUpdateOrgMemberUser) UnmarshalJSON ¶ added in v0.3.0
func (v *UpdateOrgMemberUpdateOrgMemberUser) UnmarshalJSON(b []byte) error
type UpdateOrganizationResponse ¶ added in v0.3.0
type UpdateOrganizationResponse struct {
// Update an Organization.
//
// Accepts the entity's ID or URN.
UpdateOrganization *UpdateOrganizationUpdateOrganization `json:"updateOrganization"`
}
UpdateOrganizationResponse is returned by UpdateOrganization on success.
func UpdateOrganization ¶ added in v0.3.0
func (*UpdateOrganizationResponse) GetUpdateOrganization ¶ added in v0.3.0
func (v *UpdateOrganizationResponse) GetUpdateOrganization() *UpdateOrganizationUpdateOrganization
GetUpdateOrganization returns UpdateOrganizationResponse.UpdateOrganization, and is useful for accessing the field via an interface.
type UpdateOrganizationUpdateOrganization ¶ added in v0.3.0
type UpdateOrganizationUpdateOrganization struct {
OrgFields `json:"-"`
}
UpdateOrganizationUpdateOrganization includes the requested fields of the GraphQL type Organization.
func (*UpdateOrganizationUpdateOrganization) GetCreatedAt ¶ added in v0.3.0
func (v *UpdateOrganizationUpdateOrganization) GetCreatedAt() string
GetCreatedAt returns UpdateOrganizationUpdateOrganization.CreatedAt, and is useful for accessing the field via an interface.
func (*UpdateOrganizationUpdateOrganization) GetId ¶ added in v0.3.0
func (v *UpdateOrganizationUpdateOrganization) GetId() string
GetId returns UpdateOrganizationUpdateOrganization.Id, and is useful for accessing the field via an interface.
func (*UpdateOrganizationUpdateOrganization) GetIsVisible ¶ added in v0.3.0
func (v *UpdateOrganizationUpdateOrganization) GetIsVisible() *bool
GetIsVisible returns UpdateOrganizationUpdateOrganization.IsVisible, and is useful for accessing the field via an interface.
func (*UpdateOrganizationUpdateOrganization) GetName ¶ added in v0.3.0
func (v *UpdateOrganizationUpdateOrganization) GetName() string
GetName returns UpdateOrganizationUpdateOrganization.Name, and is useful for accessing the field via an interface.
func (*UpdateOrganizationUpdateOrganization) GetUpdatedAt ¶ added in v0.3.0
func (v *UpdateOrganizationUpdateOrganization) GetUpdatedAt() string
GetUpdatedAt returns UpdateOrganizationUpdateOrganization.UpdatedAt, and is useful for accessing the field via an interface.
func (*UpdateOrganizationUpdateOrganization) GetUrn ¶ added in v0.3.0
func (v *UpdateOrganizationUpdateOrganization) GetUrn() string
GetUrn returns UpdateOrganizationUpdateOrganization.Urn, and is useful for accessing the field via an interface.
func (*UpdateOrganizationUpdateOrganization) MarshalJSON ¶ added in v0.3.0
func (v *UpdateOrganizationUpdateOrganization) MarshalJSON() ([]byte, error)
func (*UpdateOrganizationUpdateOrganization) UnmarshalJSON ¶ added in v0.3.0
func (v *UpdateOrganizationUpdateOrganization) UnmarshalJSON(b []byte) error
type UpsertNodeResponse ¶
type UpsertNodeResponse struct {
UpsertNode *UpsertNodeUpsertNode `json:"upsertNode"`
}
UpsertNodeResponse is returned by UpsertNode on success.
func UpsertNode ¶
func UpsertNode( ctx_ context.Context, client_ graphql.Client, input *NodeInput, ) (data_ *UpsertNodeResponse, err_ error)
The server treats omitted NodeInput fields as "preserve" and explicit nulls as "clear" — nil pointers must therefore be omitted from the request, not serialized as null.
func (*UpsertNodeResponse) GetUpsertNode ¶
func (v *UpsertNodeResponse) GetUpsertNode() *UpsertNodeUpsertNode
GetUpsertNode returns UpsertNodeResponse.UpsertNode, and is useful for accessing the field via an interface.
type UpsertNodeUpsertNode ¶
type UpsertNodeUpsertNode struct {
Id string `json:"id"`
MemoryId string `json:"memoryId"`
Loc string `json:"loc"`
Name string `json:"name"`
NodeType string `json:"nodeType"`
Tags []string `json:"tags"`
IsRunnable *bool `json:"isRunnable"`
UpdatedAt string `json:"updatedAt"`
}
UpsertNodeUpsertNode includes the requested fields of the GraphQL type Node.
func (*UpsertNodeUpsertNode) GetId ¶
func (v *UpsertNodeUpsertNode) GetId() string
GetId returns UpsertNodeUpsertNode.Id, and is useful for accessing the field via an interface.
func (*UpsertNodeUpsertNode) GetIsRunnable ¶ added in v0.4.0
func (v *UpsertNodeUpsertNode) GetIsRunnable() *bool
GetIsRunnable returns UpsertNodeUpsertNode.IsRunnable, and is useful for accessing the field via an interface.
func (*UpsertNodeUpsertNode) GetLoc ¶
func (v *UpsertNodeUpsertNode) GetLoc() string
GetLoc returns UpsertNodeUpsertNode.Loc, and is useful for accessing the field via an interface.
func (*UpsertNodeUpsertNode) GetMemoryId ¶
func (v *UpsertNodeUpsertNode) GetMemoryId() string
GetMemoryId returns UpsertNodeUpsertNode.MemoryId, and is useful for accessing the field via an interface.
func (*UpsertNodeUpsertNode) GetName ¶
func (v *UpsertNodeUpsertNode) GetName() string
GetName returns UpsertNodeUpsertNode.Name, and is useful for accessing the field via an interface.
func (*UpsertNodeUpsertNode) GetNodeType ¶
func (v *UpsertNodeUpsertNode) GetNodeType() string
GetNodeType returns UpsertNodeUpsertNode.NodeType, and is useful for accessing the field via an interface.
func (*UpsertNodeUpsertNode) GetTags ¶
func (v *UpsertNodeUpsertNode) GetTags() []string
GetTags returns UpsertNodeUpsertNode.Tags, and is useful for accessing the field via an interface.
func (*UpsertNodeUpsertNode) GetUpdatedAt ¶
func (v *UpsertNodeUpsertNode) GetUpdatedAt() string
GetUpdatedAt returns UpsertNodeUpsertNode.UpdatedAt, and is useful for accessing the field via an interface.
type UserApiKeyFields ¶ added in v0.3.0
type UserApiKeyFields struct {
Id string `json:"id"`
Label *string `json:"label"`
KeyPreview string `json:"keyPreview"`
IssuedVia *string `json:"issuedVia"`
CreatedAt string `json:"createdAt"`
LastUsedAt *string `json:"lastUsedAt"`
RevokedAt *string `json:"revokedAt"`
}
UserApiKeyFields includes the GraphQL fields of UserApiKey requested by the fragment UserApiKeyFields.
func (*UserApiKeyFields) GetCreatedAt ¶ added in v0.3.0
func (v *UserApiKeyFields) GetCreatedAt() string
GetCreatedAt returns UserApiKeyFields.CreatedAt, and is useful for accessing the field via an interface.
func (*UserApiKeyFields) GetId ¶ added in v0.3.0
func (v *UserApiKeyFields) GetId() string
GetId returns UserApiKeyFields.Id, and is useful for accessing the field via an interface.
func (*UserApiKeyFields) GetIssuedVia ¶ added in v0.3.0
func (v *UserApiKeyFields) GetIssuedVia() *string
GetIssuedVia returns UserApiKeyFields.IssuedVia, and is useful for accessing the field via an interface.
func (*UserApiKeyFields) GetKeyPreview ¶ added in v0.3.0
func (v *UserApiKeyFields) GetKeyPreview() string
GetKeyPreview returns UserApiKeyFields.KeyPreview, and is useful for accessing the field via an interface.
func (*UserApiKeyFields) GetLabel ¶ added in v0.3.0
func (v *UserApiKeyFields) GetLabel() *string
GetLabel returns UserApiKeyFields.Label, and is useful for accessing the field via an interface.
func (*UserApiKeyFields) GetLastUsedAt ¶ added in v0.3.0
func (v *UserApiKeyFields) GetLastUsedAt() *string
GetLastUsedAt returns UserApiKeyFields.LastUsedAt, and is useful for accessing the field via an interface.
func (*UserApiKeyFields) GetRevokedAt ¶ added in v0.3.0
func (v *UserApiKeyFields) GetRevokedAt() *string
GetRevokedAt returns UserApiKeyFields.RevokedAt, and is useful for accessing the field via an interface.
type UserFields ¶ added in v0.3.0
type UserFields struct {
Id string `json:"id"`
Name *string `json:"name"`
Email *string `json:"email"`
Handle *string `json:"handle"`
GithubUsername *string `json:"githubUsername"`
Roles []Role `json:"roles"`
}
UserFields includes the GraphQL fields of User requested by the fragment UserFields.
func (*UserFields) GetEmail ¶ added in v0.3.0
func (v *UserFields) GetEmail() *string
GetEmail returns UserFields.Email, and is useful for accessing the field via an interface.
func (*UserFields) GetGithubUsername ¶ added in v0.3.0
func (v *UserFields) GetGithubUsername() *string
GetGithubUsername returns UserFields.GithubUsername, and is useful for accessing the field via an interface.
func (*UserFields) GetHandle ¶ added in v0.3.0
func (v *UserFields) GetHandle() *string
GetHandle returns UserFields.Handle, and is useful for accessing the field via an interface.
func (*UserFields) GetId ¶ added in v0.3.0
func (v *UserFields) GetId() string
GetId returns UserFields.Id, and is useful for accessing the field via an interface.
func (*UserFields) GetName ¶ added in v0.3.0
func (v *UserFields) GetName() *string
GetName returns UserFields.Name, and is useful for accessing the field via an interface.
func (*UserFields) GetRoles ¶ added in v0.3.0
func (v *UserFields) GetRoles() []Role
GetRoles returns UserFields.Roles, and is useful for accessing the field via an interface.