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

gen

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 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 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 = `` /* 231-byte string literal not displayed */

The query executed by GetMemory.

View Source
const GetNodeById_Operation = `` /* 358-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 Nodes_Operation = `` /* 317-byte string literal not displayed */

The query executed by Nodes.

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 = `` /* 395-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 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 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"`
	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 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"`
	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

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

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 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 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, `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 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 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_ *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.

Jump to

Keyboard shortcuts

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