Help us shape the future of Go! Take the 2026 Go Developer Survey

gen

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Apps_Operation = `
query Apps ($orgId: ID!) {
	apps(orgId: $orgId) {
		id
		urn
		name
		appType
		agentId
		memberCount
		createdAt
	}
}
`

The query executed by Apps.

View Source
const CloneMemory_Operation = `` /* 194-byte string literal not displayed */

The mutation executed by CloneMemory.

View Source
const CreateApp_Operation = `` /* 308-byte string literal not displayed */

The mutation executed by CreateApp.

View Source
const CreateEdge_Operation = `` /* 357-byte string literal not displayed */

The mutation executed by CreateEdge.

View Source
const CreateMemory_Operation = `` /* 459-byte string literal not displayed */

The mutation executed by CreateMemory.

View Source
const DeleteApp_Operation = `
mutation DeleteApp ($id: ID!) {
	deleteApp(id: $id)
}
`

The mutation executed by DeleteApp.

View Source
const DeleteEdge_Operation = `
mutation DeleteEdge ($edgeId: ID!) {
	deleteEdge(edgeId: $edgeId)
}
`

The mutation executed by DeleteEdge.

View Source
const DeleteMemory_Operation = `
mutation DeleteMemory ($id: ID!) {
	deleteMemory(id: $id)
}
`

The mutation executed by DeleteMemory.

View Source
const DeleteNode_Operation = `
mutation DeleteNode ($loc: String!, $memoryId: String!) {
	deleteNode(loc: $loc, memoryId: $memoryId)
}
`

The mutation executed by DeleteNode.

View Source
const GetMemory_Operation = `` /* 238-byte string literal not displayed */

The query executed by GetMemory.

View Source
const GetNodeById_Operation = `` /* 386-byte string literal not displayed */

The query executed by GetNodeById.

View Source
const Me_Operation = `
query Me {
	me {
		id
		name
		email
		handle
		githubUsername
		roles
	}
}
`

The query executed by Me.

View Source
const MyMemories_Operation = `` /* 212-byte string literal not displayed */

The query executed by MyMemories.

View Source
const NodeBatch_Operation = `` /* 471-byte string literal not displayed */

The query executed by NodeBatch.

View Source
const NodeSearch_Operation = `` /* 275-byte string literal not displayed */

The query executed by NodeSearch.

View Source
const Nodes_Operation = `` /* 317-byte string literal not displayed */

The query executed by Nodes.

View Source
const ResolveAiServiceConfigs_Operation = `` /* 250-byte string literal not displayed */

The query executed by ResolveAiServiceConfigs.

View Source
const ResolveUrn_Operation = `
query ResolveUrn ($urn: String!) {
	resolveUrn(urn: $urn) {
		id
		kind
		memoryId
	}
}
`

The query executed by ResolveUrn.

View Source
const UpdateEdge_Operation = `` /* 289-byte string literal not displayed */

The mutation executed by UpdateEdge.

View Source
const UpdateMemory_Operation = `` /* 428-byte string literal not displayed */

The mutation executed by UpdateMemory.

View Source
const UpsertNode_Operation = `` /* 137-byte string literal not displayed */

The mutation executed by UpsertNode.

Variables

Functions

This section is empty.

Types

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 AppType

type AppType string
const (
	AppTypeAgent       AppType = "AGENT"
	AppTypeAutomation  AppType = "AUTOMATION"
	AppTypeChatbot     AppType = "CHATBOT"
	AppTypeCloud       AppType = "CLOUD"
	AppTypeIot         AppType = "IOT"
	AppTypeWorkstation AppType = "WORKSTATION"
)

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 Apps

func Apps(
	ctx_ context.Context,
	client_ graphql.Client,
	orgId string,
) (data_ *AppsResponse, err_ error)

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 CloneMemory(
	ctx_ context.Context,
	client_ graphql.Client,
	id string,
	name string,
) (data_ *CloneMemoryResponse, err_ error)

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 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 CreateApp

func CreateApp(
	ctx_ context.Context,
	client_ graphql.Client,
	orgId string,
	agentId string,
	name string,
	urn *string,
	appType *AppType,
	description *string,
) (data_ *CreateAppResponse, err_ error)

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

GetSource returns CreateEdgeCreateEdge.Source, and is useful for accessing the field via an interface.

func (*CreateEdgeCreateEdge) GetTarget

GetTarget returns CreateEdgeCreateEdge.Target, and is useful for accessing the field via an interface.

type CreateEdgeCreateEdgeSourceNode

type CreateEdgeCreateEdgeSourceNode struct {
	Id  string `json:"id"`
	Loc string `json:"loc"`
}

CreateEdgeCreateEdgeSourceNode includes the requested fields of the GraphQL type Node.

func (*CreateEdgeCreateEdgeSourceNode) GetId

GetId returns CreateEdgeCreateEdgeSourceNode.Id, and is useful for accessing the field via an interface.

func (*CreateEdgeCreateEdgeSourceNode) GetLoc

GetLoc returns CreateEdgeCreateEdgeSourceNode.Loc, and is useful for accessing the field via an interface.

type CreateEdgeCreateEdgeTargetNode

type CreateEdgeCreateEdgeTargetNode struct {
	Id  string `json:"id"`
	Loc string `json:"loc"`
}

CreateEdgeCreateEdgeTargetNode includes the requested fields of the GraphQL type Node.

func (*CreateEdgeCreateEdgeTargetNode) GetId

GetId returns CreateEdgeCreateEdgeTargetNode.Id, and is useful for accessing the field via an interface.

func (*CreateEdgeCreateEdgeTargetNode) GetLoc

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 DeleteApp

func DeleteApp(
	ctx_ context.Context,
	client_ graphql.Client,
	id string,
) (data_ *DeleteAppResponse, err_ error)

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 DeleteEdge(
	ctx_ context.Context,
	client_ graphql.Client,
	edgeId string,
) (data_ *DeleteEdgeResponse, err_ error)

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 DeleteMemory(
	ctx_ context.Context,
	client_ graphql.Client,
	id string,
) (data_ *DeleteMemoryResponse, err_ error)

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 DeleteNode(
	ctx_ context.Context,
	client_ graphql.Client,
	loc string,
	memoryId string,
) (data_ *DeleteNodeResponse, err_ error)

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"`
	// 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 GetMemory

func GetMemory(
	ctx_ context.Context,
	client_ graphql.Client,
	id string,
) (data_ *GetMemoryResponse, err_ error)

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"`
	// 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"`
	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

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

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

GetId returns GetNodeByIdNodeByIdNodeIncomingEdgesEdge.Id, and is useful for accessing the field via an interface.

func (*GetNodeByIdNodeByIdNodeIncomingEdgesEdge) GetLabel

GetLabel returns GetNodeByIdNodeByIdNodeIncomingEdgesEdge.Label, and is useful for accessing the field via an interface.

func (*GetNodeByIdNodeByIdNodeIncomingEdgesEdge) GetPriority

GetPriority returns GetNodeByIdNodeByIdNodeIncomingEdgesEdge.Priority, and is useful for accessing the field via an interface.

func (*GetNodeByIdNodeByIdNodeIncomingEdgesEdge) GetSource

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

GetId returns GetNodeByIdNodeByIdNodeIncomingEdgesEdgeSourceNode.Id, and is useful for accessing the field via an interface.

func (*GetNodeByIdNodeByIdNodeIncomingEdgesEdgeSourceNode) GetLoc

GetLoc returns GetNodeByIdNodeByIdNodeIncomingEdgesEdgeSourceNode.Loc, and is useful for accessing the field via an interface.

func (*GetNodeByIdNodeByIdNodeIncomingEdgesEdgeSourceNode) GetMemoryId

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

GetId returns GetNodeByIdNodeByIdNodeOutgoingEdgesEdge.Id, and is useful for accessing the field via an interface.

func (*GetNodeByIdNodeByIdNodeOutgoingEdgesEdge) GetLabel

GetLabel returns GetNodeByIdNodeByIdNodeOutgoingEdgesEdge.Label, and is useful for accessing the field via an interface.

func (*GetNodeByIdNodeByIdNodeOutgoingEdgesEdge) GetPriority

GetPriority returns GetNodeByIdNodeByIdNodeOutgoingEdgesEdge.Priority, and is useful for accessing the field via an interface.

func (*GetNodeByIdNodeByIdNodeOutgoingEdgesEdge) GetTarget

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

GetId returns GetNodeByIdNodeByIdNodeOutgoingEdgesEdgeTargetNode.Id, and is useful for accessing the field via an interface.

func (*GetNodeByIdNodeByIdNodeOutgoingEdgesEdgeTargetNode) GetLoc

GetLoc returns GetNodeByIdNodeByIdNodeOutgoingEdgesEdgeTargetNode.Loc, and is useful for accessing the field via an interface.

func (*GetNodeByIdNodeByIdNodeOutgoingEdgesEdgeTargetNode) GetMemoryId

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 GetNodeById(
	ctx_ context.Context,
	client_ graphql.Client,
	id string,
) (data_ *GetNodeByIdResponse, err_ error)

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

func (v *MeMeUser) GetEmail() *string

GetEmail returns MeMeUser.Email, and is useful for accessing the field via an interface.

func (*MeMeUser) GetGithubUsername

func (v *MeMeUser) GetGithubUsername() *string

GetGithubUsername returns MeMeUser.GithubUsername, and is useful for accessing the field via an interface.

func (*MeMeUser) GetHandle

func (v *MeMeUser) GetHandle() *string

GetHandle returns MeMeUser.Handle, and is useful for accessing the field via an interface.

func (*MeMeUser) GetId

func (v *MeMeUser) GetId() string

GetId returns MeMeUser.Id, and is useful for accessing the field via an interface.

func (*MeMeUser) GetName

func (v *MeMeUser) GetName() *string

GetName returns MeMeUser.Name, and is useful for accessing the field via an interface.

func (*MeMeUser) GetRoles

func (v *MeMeUser) GetRoles() []Role

GetRoles returns MeMeUser.Roles, 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 Me

func Me(
	ctx_ context.Context,
	client_ graphql.Client,
) (data_ *MeResponse, err_ error)

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

GetClass returns MyMemoriesMyMemoriesMemory.Class, and is useful for accessing the field via an interface.

func (*MyMemoriesMyMemoriesMemory) GetId

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 MyMemories(
	ctx_ context.Context,
	client_ graphql.Client,
	includeAgentSystem *bool,
) (data_ *MyMemoriesResponse, err_ error)

func (*MyMemoriesResponse) GetMyMemories

func (v *MyMemoriesResponse) GetMyMemories() []*MyMemoriesMyMemoriesMemory

GetMyMemories returns MyMemoriesResponse.MyMemories, 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"`
	Unavailable []string                                      `json:"unavailable"`
	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

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 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"`
	// 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

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

GetAlias returns NodeBatchNodeBatchNodeBatchResultNodesNode.Alias, and is useful for accessing the field via an interface.

func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetContent added in v0.2.0

GetContent returns NodeBatchNodeBatchNodeBatchResultNodesNode.Content, and is useful for accessing the field via an interface.

func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetData added in v0.2.0

GetData returns NodeBatchNodeBatchNodeBatchResultNodesNode.Data, and is useful for accessing the field via an interface.

func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetDescription added in v0.2.0

GetDescription returns NodeBatchNodeBatchNodeBatchResultNodesNode.Description, and is useful for accessing the field via an interface.

func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetId added in v0.2.0

GetId returns NodeBatchNodeBatchNodeBatchResultNodesNode.Id, and is useful for accessing the field via an interface.

func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetIncomingEdges added in v0.2.0

GetIncomingEdges returns NodeBatchNodeBatchNodeBatchResultNodesNode.IncomingEdges, and is useful for accessing the field via an interface.

func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetLoc added in v0.2.0

GetLoc returns NodeBatchNodeBatchNodeBatchResultNodesNode.Loc, and is useful for accessing the field via an interface.

func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetMemoryId added in v0.2.0

GetMemoryId returns NodeBatchNodeBatchNodeBatchResultNodesNode.MemoryId, and is useful for accessing the field via an interface.

func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetName added in v0.2.0

GetName returns NodeBatchNodeBatchNodeBatchResultNodesNode.Name, and is useful for accessing the field via an interface.

func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetNodeType added in v0.2.0

GetNodeType returns NodeBatchNodeBatchNodeBatchResultNodesNode.NodeType, and is useful for accessing the field via an interface.

func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetOutgoingEdges added in v0.2.0

GetOutgoingEdges returns NodeBatchNodeBatchNodeBatchResultNodesNode.OutgoingEdges, and is useful for accessing the field via an interface.

func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetProperties added in v0.2.0

GetProperties returns NodeBatchNodeBatchNodeBatchResultNodesNode.Properties, and is useful for accessing the field via an interface.

func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetSeq added in v0.2.0

GetSeq returns NodeBatchNodeBatchNodeBatchResultNodesNode.Seq, and is useful for accessing the field via an interface.

func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetTags added in v0.2.0

GetTags returns NodeBatchNodeBatchNodeBatchResultNodesNode.Tags, and is useful for accessing the field via an interface.

func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetUpdatedAt added in v0.2.0

GetUpdatedAt returns NodeBatchNodeBatchNodeBatchResultNodesNode.UpdatedAt, and is useful for accessing the field via an interface.

type NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge added in v0.2.0

type NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge struct {
	Label  string                                                                 `json:"label"`
	Source *NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdgeSourceNode `json:"source"`
}

NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge includes the requested fields of the GraphQL type Edge.

func (*NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge) GetLabel added in v0.2.0

GetLabel returns NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge.Label, and is useful for accessing the field via an interface.

func (*NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge) GetSource added in v0.2.0

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

GetId returns NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdgeSourceNode.Id, and is useful for accessing the field via an interface.

func (*NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdgeSourceNode) GetLoc added in v0.2.0

GetLoc returns NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdgeSourceNode.Loc, and is useful for accessing the field via an interface.

func (*NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdgeSourceNode) GetMemoryId added in v0.2.0

GetMemoryId returns NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdgeSourceNode.MemoryId, and is useful for accessing the field via an interface.

type NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge added in v0.2.0

type NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge struct {
	Label     string                                                                 `json:"label"`
	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

GetCondition returns NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge.Condition, and is useful for accessing the field via an interface.

func (*NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetLabel added in v0.2.0

GetLabel returns NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge.Label, and is useful for accessing the field via an interface.

func (*NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetPriority added in v0.2.0

GetPriority returns NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge.Priority, and is useful for accessing the field via an interface.

func (*NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetTarget added in v0.2.0

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

GetId returns NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdgeTargetNode.Id, and is useful for accessing the field via an interface.

func (*NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdgeTargetNode) GetLoc added in v0.2.0

GetLoc returns NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdgeTargetNode.Loc, and is useful for accessing the field via an interface.

func (*NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdgeTargetNode) GetMemoryId added in v0.2.0

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

GetNodeBatch returns NodeBatchResponse.NodeBatch, 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
	// (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) 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

func (v *NodeInput) GetAbstract() *string

GetAbstract returns NodeInput.Abstract, and is useful for accessing the field via an interface.

func (*NodeInput) GetAiAgent

func (v *NodeInput) GetAiAgent() *string

GetAiAgent returns NodeInput.AiAgent, and is useful for accessing the field via an interface.

func (*NodeInput) GetAlias

func (v *NodeInput) GetAlias() *string

GetAlias returns NodeInput.Alias, and is useful for accessing the field via an interface.

func (*NodeInput) GetContent

func (v *NodeInput) GetContent() *string

GetContent returns NodeInput.Content, and is useful for accessing the field via an interface.

func (*NodeInput) GetCreateOnly

func (v *NodeInput) GetCreateOnly() *bool

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

func (v *NodeInput) GetDescription() *string

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

func (v *NodeInput) GetId() *string

GetId returns NodeInput.Id, and is useful for accessing the field via an interface.

func (*NodeInput) GetLlmModel

func (v *NodeInput) GetLlmModel() *string

GetLlmModel returns NodeInput.LlmModel, and is useful for accessing the field via an interface.

func (*NodeInput) GetLoc

func (v *NodeInput) GetLoc() string

GetLoc returns NodeInput.Loc, and is useful for accessing the field via an interface.

func (*NodeInput) GetMemoryId

func (v *NodeInput) GetMemoryId() string

GetMemoryId returns NodeInput.MemoryId, and is useful for accessing the field via an interface.

func (*NodeInput) GetName

func (v *NodeInput) GetName() string

GetName returns NodeInput.Name, and is useful for accessing the field via an interface.

func (*NodeInput) GetNodeType

func (v *NodeInput) GetNodeType() *string

GetNodeType returns NodeInput.NodeType, and is useful for accessing the field via an interface.

func (*NodeInput) GetOwnerRepo

func (v *NodeInput) GetOwnerRepo() *string

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) GetSeq

func (v *NodeInput) GetSeq() *int

GetSeq returns NodeInput.Seq, and is useful for accessing the field via an interface.

func (*NodeInput) GetTags

func (v *NodeInput) GetTags() []string

GetTags returns NodeInput.Tags, 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

GetNodes returns NodeSearchNodeSearchNodeSearchResult.Nodes, and is useful for accessing the field via an interface.

func (*NodeSearchNodeSearchNodeSearchResult) GetReason added in v0.2.0

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

GetId returns NodeSearchNodeSearchNodeSearchResultNodesNode.Id, and is useful for accessing the field via an interface.

func (*NodeSearchNodeSearchNodeSearchResultNodesNode) GetLoc added in v0.2.0

GetLoc returns NodeSearchNodeSearchNodeSearchResultNodesNode.Loc, and is useful for accessing the field via an interface.

func (*NodeSearchNodeSearchNodeSearchResultNodesNode) GetMemoryId added in v0.2.0

GetMemoryId returns NodeSearchNodeSearchNodeSearchResultNodesNode.MemoryId, and is useful for accessing the field via an interface.

func (*NodeSearchNodeSearchNodeSearchResultNodesNode) GetName added in v0.2.0

GetName returns NodeSearchNodeSearchNodeSearchResultNodesNode.Name, and is useful for accessing the field via an interface.

func (*NodeSearchNodeSearchNodeSearchResultNodesNode) GetNodeType added in v0.2.0

GetNodeType returns NodeSearchNodeSearchNodeSearchResultNodesNode.NodeType, and is useful for accessing the field via an interface.

func (*NodeSearchNodeSearchNodeSearchResultNodesNode) GetTags added in v0.2.0

GetTags returns NodeSearchNodeSearchNodeSearchResultNodesNode.Tags, and is useful for accessing the field via an interface.

func (*NodeSearchNodeSearchNodeSearchResultNodesNode) GetUpdatedAt added in v0.2.0

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 h-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

GetNodeSearch returns NodeSearchResponse.NodeSearch, 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 Nodes

func Nodes(
	ctx_ context.Context,
	client_ graphql.Client,
	memory *string,
	prefix *string,
	nodeType *string,
	tags []string,
	search *string,
	limit *int,
	offset *int,
) (data_ *NodesResponse, err_ error)

func (*NodesResponse) GetNodes

func (v *NodesResponse) GetNodes() []*NodesNodesNode

GetNodes returns NodesResponse.Nodes, 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

GetApiKeyPreview returns ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig.ApiKeyPreview, and is useful for accessing the field via an interface.

func (*ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetCreatedAt added in v0.2.0

GetCreatedAt returns ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig.CreatedAt, and is useful for accessing the field via an interface.

func (*ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetEnabled added in v0.2.0

GetEnabled returns ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig.Enabled, and is useful for accessing the field via an interface.

func (*ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetHasApiKey added in v0.2.0

GetHasApiKey returns ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig.HasApiKey, and is useful for accessing the field via an interface.

func (*ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetId added in v0.2.0

GetId returns ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig.Id, and is useful for accessing the field via an interface.

func (*ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetModel added in v0.2.0

GetModel returns ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig.Model, and is useful for accessing the field via an interface.

func (*ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetName added in v0.2.0

GetName returns ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig.Name, and is useful for accessing the field via an interface.

func (*ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetOwnerId added in v0.2.0

GetOwnerId returns ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig.OwnerId, and is useful for accessing the field via an interface.

func (*ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetOwnerType added in v0.2.0

GetOwnerType returns ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig.OwnerType, and is useful for accessing the field via an interface.

func (*ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetParams added in v0.2.0

GetParams returns ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig.Params, and is useful for accessing the field via an interface.

func (*ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetProvider added in v0.2.0

GetProvider returns ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig.Provider, and is useful for accessing the field via an interface.

func (*ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetUpdatedAt added in v0.2.0

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 ResolveAiServiceConfigs(
	ctx_ context.Context,
	client_ graphql.Client,
	appId *string,
	agentId *string,
) (data_ *ResolveAiServiceConfigsResponse, err_ error)

func (*ResolveAiServiceConfigsResponse) GetResolveAiServiceConfigs added in v0.2.0

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. `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

GetId returns ResolveUrnResolveUrnUrnResolution.Id, and is useful for accessing the field via an interface.

func (*ResolveUrnResolveUrnUrnResolution) GetKind

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 ResolveUrn(
	ctx_ context.Context,
	client_ graphql.Client,
	urn string,
) (data_ *ResolveUrnResponse, err_ error)

func (*ResolveUrnResponse) GetResolveUrn

GetResolveUrn returns ResolveUrnResponse.ResolveUrn, and is useful for accessing the field via an interface.

type Role

type Role string
const (
	RoleAdmin       Role = "ADMIN"
	RoleContributor Role = "CONTRIBUTOR"
	RoleOwner       Role = "OWNER"
	RoleReader      Role = "READER"
)

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 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

GetSource returns UpdateEdgeUpdateEdge.Source, and is useful for accessing the field via an interface.

func (*UpdateEdgeUpdateEdge) GetTarget

GetTarget returns UpdateEdgeUpdateEdge.Target, and is useful for accessing the field via an interface.

type UpdateEdgeUpdateEdgeSourceNode

type UpdateEdgeUpdateEdgeSourceNode struct {
	Id  string `json:"id"`
	Loc string `json:"loc"`
}

UpdateEdgeUpdateEdgeSourceNode includes the requested fields of the GraphQL type Node.

func (*UpdateEdgeUpdateEdgeSourceNode) GetId

GetId returns UpdateEdgeUpdateEdgeSourceNode.Id, and is useful for accessing the field via an interface.

func (*UpdateEdgeUpdateEdgeSourceNode) GetLoc

GetLoc returns UpdateEdgeUpdateEdgeSourceNode.Loc, and is useful for accessing the field via an interface.

type UpdateEdgeUpdateEdgeTargetNode

type UpdateEdgeUpdateEdgeTargetNode struct {
	Id  string `json:"id"`
	Loc string `json:"loc"`
}

UpdateEdgeUpdateEdgeTargetNode includes the requested fields of the GraphQL type Node.

func (*UpdateEdgeUpdateEdgeTargetNode) GetId

GetId returns UpdateEdgeUpdateEdgeTargetNode.Id, and is useful for accessing the field via an interface.

func (*UpdateEdgeUpdateEdgeTargetNode) GetLoc

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 *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 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

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 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL