Documentation
¶
Index ¶
- Constants
- Variables
- type AppType
- type AppsAppsApp
- type AppsResponse
- 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
- 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 DeleteAppResponse
- type DeleteEdgeResponse
- type DeleteMemoryResponse
- type DeleteNodeResponse
- type GetMemoryMemory
- func (v *GetMemoryMemory) GetClass() MemoryClass
- func (v *GetMemoryMemory) GetCreatedAt() string
- 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) GetContent() *string
- func (v *GetNodeByIdNodeByIdNode) GetCreatedAt() string
- func (v *GetNodeByIdNodeByIdNode) GetDescription() *string
- func (v *GetNodeByIdNodeByIdNode) GetId() string
- func (v *GetNodeByIdNodeByIdNode) GetIncomingEdges() []*GetNodeByIdNodeByIdNodeIncomingEdgesEdge
- 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) GetLabel() string
- func (v *GetNodeByIdNodeByIdNodeIncomingEdgesEdge) GetPriority() int
- func (v *GetNodeByIdNodeByIdNodeIncomingEdgesEdge) GetSource() *GetNodeByIdNodeByIdNodeIncomingEdgesEdgeSourceNode
- type GetNodeByIdNodeByIdNodeIncomingEdgesEdgeSourceNode
- type GetNodeByIdNodeByIdNodeOutgoingEdgesEdge
- func (v *GetNodeByIdNodeByIdNodeOutgoingEdgesEdge) GetId() string
- func (v *GetNodeByIdNodeByIdNodeOutgoingEdgesEdge) GetLabel() string
- func (v *GetNodeByIdNodeByIdNodeOutgoingEdgesEdge) GetPriority() int
- func (v *GetNodeByIdNodeByIdNodeOutgoingEdgesEdge) GetTarget() *GetNodeByIdNodeByIdNodeOutgoingEdgesEdgeTargetNode
- type GetNodeByIdNodeByIdNodeOutgoingEdgesEdgeTargetNode
- type GetNodeByIdResponse
- type MeMeUser
- type MeResponse
- type MemoryClass
- 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 NodeEdgeInput
- 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) 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) GetSeq() *int
- func (v *NodeInput) GetTags() []string
- type NodesNodesNode
- func (v *NodesNodesNode) GetId() string
- func (v *NodesNodesNode) GetLoc() string
- func (v *NodesNodesNode) GetMemoryId() string
- func (v *NodesNodesNode) GetName() string
- func (v *NodesNodesNode) GetNodeType() string
- func (v *NodesNodesNode) GetTags() []string
- func (v *NodesNodesNode) GetUpdatedAt() string
- type NodesResponse
- type ResolveUrnResolveUrnUrnResolution
- type ResolveUrnResponse
- type Role
- type SyncStatus
- type UpdateEdgeResponse
- type UpdateEdgeUpdateEdge
- type UpdateEdgeUpdateEdgeSourceNode
- type UpdateEdgeUpdateEdgeTargetNode
- type UpdateMemoryResponse
- type UpdateMemoryUpdateMemory
- func (v *UpdateMemoryUpdateMemory) GetClass() MemoryClass
- 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 UpsertNodeResponse
- type UpsertNodeUpsertNode
- func (v *UpsertNodeUpsertNode) GetId() string
- 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
Constants ¶
const Apps_Operation = `
query Apps ($orgId: ID!) {
apps(orgId: $orgId) {
id
urn
name
appType
agentId
memberCount
createdAt
}
}
`
The query executed by Apps.
const CreateApp_Operation = `` /* 308-byte string literal not displayed */
The mutation executed by CreateApp.
const CreateEdge_Operation = `` /* 357-byte string literal not displayed */
The mutation executed by CreateEdge.
const CreateMemory_Operation = `` /* 459-byte string literal not displayed */
The mutation executed by CreateMemory.
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 GetMemory_Operation = `` /* 231-byte string literal not displayed */
The query executed by GetMemory.
const GetNodeById_Operation = `` /* 358-byte string literal not displayed */
The query executed by GetNodeById.
const Me_Operation = `
query Me {
me {
id
name
email
handle
githubUsername
roles
}
}
`
The query executed by Me.
const MyMemories_Operation = `` /* 212-byte string literal not displayed */
The query executed by MyMemories.
const Nodes_Operation = `` /* 317-byte string literal not displayed */
The query executed by Nodes.
const ResolveUrn_Operation = `
query ResolveUrn ($urn: String!) {
resolveUrn(urn: $urn) {
id
kind
memoryId
}
}
`
The query executed by ResolveUrn.
const UpdateEdge_Operation = `` /* 289-byte string literal not displayed */
The mutation executed by UpdateEdge.
const UpdateMemory_Operation = `` /* 395-byte string literal not displayed */
The mutation executed by UpdateMemory.
const UpsertNode_Operation = `` /* 137-byte string literal not displayed */
The mutation executed by UpsertNode.
Variables ¶
var AllAppType = []AppType{ AppTypeAgent, AppTypeAutomation, AppTypeChatbot, AppTypeCloud, AppTypeIot, AppTypeWorkstation, }
var AllMemoryClass = []MemoryClass{ MemoryClassApp, MemoryClassGroup, MemoryClassKnowledge, MemoryClassPersonal, MemoryClassPrivate, MemoryClassSystem, }
var AllMemoryVisibility = []MemoryVisibility{ MemoryVisibilityGroup, MemoryVisibilityOrganization, MemoryVisibilityPublic, }
var AllRole = []Role{ RoleAdmin, RoleContributor, RoleOwner, RoleReader, }
var AllSyncStatus = []SyncStatus{ SyncStatusError, SyncStatusOk, SyncStatusPending, SyncStatusSyncing, }
Functions ¶
This section is empty.
Types ¶
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 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"`
Label string `json:"label"`
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) GetLabel ¶
func (v *CreateEdgeCreateEdge) GetLabel() string
GetLabel returns CreateEdgeCreateEdge.Label, 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, label string, 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 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 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"`
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) 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 h-read-node via the contentScope parameter. h-find-nodes preview surfacing ships in spec 031 US2 — not yet live. Never surfaced in h-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"`
NodeType string `json:"nodeType"`
Tags []string `json:"tags"`
Content *string `json:"content"`
Seq *int `json:"seq"`
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) 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) 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) 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"`
Label string `json:"label"`
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) GetLabel ¶
func (v *GetNodeByIdNodeByIdNodeIncomingEdgesEdge) GetLabel() string
GetLabel returns GetNodeByIdNodeByIdNodeIncomingEdgesEdge.Label, 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"`
Label string `json:"label"`
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) GetLabel ¶
func (v *GetNodeByIdNodeByIdNodeOutgoingEdgesEdge) GetLabel() string
GetLabel returns GetNodeByIdNodeByIdNodeOutgoingEdgesEdge.Label, 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 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 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 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 NodeEdgeInput ¶
type NodeEdgeInput struct {
Label *string `json:"label"`
// Reference to the target node. Accepts a node ID, a full URN
// (urn: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) GetLabel ¶
func (v *NodeEdgeInput) GetLabel() *string
GetLabel returns NodeEdgeInput.Label, 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 NodeInput ¶
type NodeInput struct {
// Paragraph-length summary of this node — see Node.abstract for the surfacing contract (h-read-node opt-in via contentScope; h-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"`
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"`
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) 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.
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"`
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) 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) 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 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. `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, `urn:<type>:`-prefixed Hadron URN 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 `urn:<type>:` prefix 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 SyncStatus ¶
type SyncStatus string
const ( SyncStatusError SyncStatus = "ERROR" SyncStatusOk SyncStatus = "OK" SyncStatusPending SyncStatus = "PENDING" SyncStatusSyncing SyncStatus = "SYNCING" )
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, label *string, 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"`
Label string `json:"label"`
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) GetLabel ¶
func (v *UpdateEdgeUpdateEdge) GetLabel() string
GetLabel returns UpdateEdgeUpdateEdge.Label, 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 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_ *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 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"`
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) 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 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"`
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) 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.