gen

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ActionTickets_Operation = `` /* 335-byte string literal not displayed */

The query executed by ActionTickets.

View Source
const AddMemoryMember_Operation = `` /* 286-byte string literal not displayed */

The mutation executed by AddMemoryMember.

View Source
const AddOrgMember_Operation = `` /* 256-byte string literal not displayed */

The mutation executed by AddOrgMember.

View Source
const AgentSchedules_Operation = `` /* 404-byte string literal not displayed */

The query executed by AgentSchedules.

View Source
const AgentWebhooks_Operation = `` /* 387-byte string literal not displayed */

The query executed by AgentWebhooks.

View Source
const AppRun_Operation = `` /* 347-byte string literal not displayed */

The query executed by AppRun.

View Source
const AppRuns_Operation = `` /* 503-byte string literal not displayed */

The query executed by AppRuns.

View Source
const Apps_Operation = `` /* 208-byte string literal not displayed */

The query executed by Apps.

View Source
const CancelAppRun_Operation = `` /* 359-byte string literal not displayed */

The mutation executed by CancelAppRun.

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

The mutation executed by CloneMemory.

View Source
const CreateAgentSchedule_Operation = `` /* 353-byte string literal not displayed */

The mutation executed by CreateAgentSchedule.

View Source
const CreateAgentWebhook_Operation = `` /* 466-byte string literal not displayed */

The mutation executed by CreateAgentWebhook.

View Source
const CreateAiServiceConfig_Operation = `` /* 554-byte string literal not displayed */

The mutation executed by CreateAiServiceConfig.

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

The mutation executed by CreateApp.

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

The mutation executed by CreateEdge.

View Source
const CreateMemoryShare_Operation = `` /* 300-byte string literal not displayed */

The mutation executed by CreateMemoryShare.

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

The mutation executed by CreateMemory.

View Source
const CreateNode_Operation = `` /* 156-byte string literal not displayed */

The mutation executed by CreateNode.

View Source
const CreateOrganization_Operation = `` /* 217-byte string literal not displayed */

The mutation executed by CreateOrganization.

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

The mutation executed by CreateUserApiKey.

View Source
const DeleteAgentSchedule_Operation = `
mutation DeleteAgentSchedule ($id: ID!) {
	deleteAgentSchedule(id: $id)
}
`

The mutation executed by DeleteAgentSchedule.

View Source
const DeleteAgentWebhook_Operation = `
mutation DeleteAgentWebhook ($id: ID!) {
	deleteAgentWebhook(id: $id)
}
`

The mutation executed by DeleteAgentWebhook.

View Source
const DeleteAiServiceConfig_Operation = `
mutation DeleteAiServiceConfig ($id: ID!) {
	deleteAiServiceConfig(id: $id)
}
`

The mutation executed by DeleteAiServiceConfig.

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 DeleteOrganization_Operation = `
mutation DeleteOrganization ($id: ID!) {
	deleteOrganization(id: $id)
}
`

The mutation executed by DeleteOrganization.

View Source
const EffectiveAccess_Operation = `` /* 279-byte string literal not displayed */

The query executed by EffectiveAccess.

View Source
const FindNodes_Operation = `` /* 392-byte string literal not displayed */

The query executed by FindNodes.

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

The query executed by GetMemory.

View Source
const GetNode_Operation = `` /* 434-byte string literal not displayed */

The query executed by GetNode.

View Source
const GetOrganization_Operation = `` /* 172-byte string literal not displayed */

The query executed by GetOrganization.

View Source
const GetUser_Operation = `` /* 150-byte string literal not displayed */

The query executed by GetUser.

View Source
const ImportNode_Operation = `` /* 172-byte string literal not displayed */

The mutation executed by ImportNode.

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

The query executed by Me.

View Source
const Memories_Operation = `` /* 267-byte string literal not displayed */

The query executed by Memories.

View Source
const MemoryMembers_Operation = `` /* 200-byte string literal not displayed */

The query executed by MemoryMembers.

View Source
const MemoryShares_Operation = `` /* 201-byte string literal not displayed */

The query executed by MemoryShares.

View Source
const MintActionTickets_Operation = `
mutation MintActionTickets ($input: MintActionTicketsInput!) {
	mintActionTickets(input: $input)
}
`

The mutation executed by MintActionTickets.

View Source
const MyUserApiKeys_Operation = `` /* 180-byte string literal not displayed */

The query executed by MyUserApiKeys.

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

The query executed by NodeBatch.

View Source
const NodeExportMeta_Operation = `
query NodeExportMeta ($ref: ID!) {
	node(ref: $ref) {
		loc
		name
		memoryId
		memory {
			urn
		}
	}
}
`

The query executed by NodeExportMeta.

View Source
const NodeExport_Operation = `` /* 162-byte string literal not displayed */

The query executed by NodeExport.

View Source
const OrgMembers_Operation = `` /* 226-byte string literal not displayed */

The query executed by OrgMembers.

View Source
const RemoveMemoryMember_Operation = `` /* 147-byte string literal not displayed */

The mutation executed by RemoveMemoryMember.

View Source
const RemoveOrgMember_Operation = `
mutation RemoveOrgMember ($orgId: ID!, $userId: ID!) {
	removeOrgMember(orgId: $orgId, userId: $userId)
}
`

The mutation executed by RemoveOrgMember.

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 RevokeMemoryShare_Operation = `` /* 157-byte string literal not displayed */

The mutation executed by RevokeMemoryShare.

View Source
const RevokeUserApiKey_Operation = `` /* 209-byte string literal not displayed */

The mutation executed by RevokeUserApiKey.

View Source
const RotateAgentWebhook_Operation = `` /* 436-byte string literal not displayed */

The mutation executed by RotateAgentWebhook.

View Source
const RunTask_Operation = `` /* 145-byte string literal not displayed */

The mutation executed by RunTask.

View Source
const SearchNodes_Operation = `` /* 406-byte string literal not displayed */

The query executed by SearchNodes.

View Source
const SearchReplaceInNodes_Operation = `` /* 273-byte string literal not displayed */

The mutation executed by SearchReplaceInNodes.

View Source
const SearchUsers_Operation = `` /* 256-byte string literal not displayed */

The query executed by SearchUsers.

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

The mutation executed by TriggerAppRun.

View Source
const UpdateAgentSchedule_Operation = `` /* 372-byte string literal not displayed */

The mutation executed by UpdateAgentSchedule.

View Source
const UpdateAiServiceConfig_Operation = `` /* 481-byte string literal not displayed */

The mutation executed by UpdateAiServiceConfig.

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

The mutation executed by UpdateEdge.

View Source
const UpdateMemoryMemberRole_Operation = `` /* 300-byte string literal not displayed */

The mutation executed by UpdateMemoryMemberRole.

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

The mutation executed by UpdateMemoryShareRole.

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

The mutation executed by UpdateMemory.

View Source
const UpdateNodeData_Operation = `` /* 215-byte string literal not displayed */

The mutation executed by UpdateNodeData.

View Source
const UpdateNode_Operation = `` /* 156-byte string literal not displayed */

The mutation executed by UpdateNode.

View Source
const UpdateOrgMember_Operation = `` /* 262-byte string literal not displayed */

The mutation executed by UpdateOrgMember.

View Source
const UpdateOrganization_Operation = `` /* 278-byte string literal not displayed */

The mutation executed by UpdateOrganization.

Variables

Functions

This section is empty.

Types

type AccessSource added in v0.4.0

type AccessSource string

issue #323: where a single grant in an EffectiveAccess result comes from.

const (
	// active AgentSubscription, or an org-level AgentOrgGrant the user inherits.
	AccessSourceAgentSubscription AccessSource = "AGENT_SUBSCRIPTION"
	// admin of the AI config's owning entity.
	AccessSourceAiconfigOwner AccessSource = "AICONFIG_OWNER"
	// AppMember row.
	AccessSourceAppMember AccessSource = "APP_MEMBER"
	// group-class team membership row (MemoryMember).
	AccessSourceMemoryMember AccessSource = "MEMORY_MEMBER"
	// personal/private memory owner (Memory.userId).
	AccessSourceMemoryPrincipal AccessSource = "MEMORY_PRINCIPAL"
	// personal-class cross-user grant (MemoryShare).
	AccessSourceMemoryShare AccessSource = "MEMORY_SHARE"
	// node inherits its memory's access.
	AccessSourceNodeInherited AccessSource = "NODE_INHERITED"
	// ADMIN/OWNER (or, for org-readable knowledge, any Role) of the owning org.
	AccessSourceOrgRole AccessSource = "ORG_ROLE"
	// Platform ADMIN/OWNER.
	AccessSourcePlatformRole AccessSource = "PLATFORM_ROLE"
	// resource is publicly / universally visible.
	AccessSourcePublicVisibility AccessSource = "PUBLIC_VISIBILITY"
)

type ActionTicketFields added in v0.6.0

type ActionTicketFields struct {
	Id              string  `json:"id"`
	OrganizationId  string  `json:"organizationId"`
	AppId           *string `json:"appId"`
	Action          string  `json:"action"`
	MintedBy        string  `json:"mintedBy"`
	Note            *string `json:"note"`
	ConsumedByRunId *string `json:"consumedByRunId"`
	ConsumedAt      *string `json:"consumedAt"`
	ExpiresAt       *string `json:"expiresAt"`
	CreatedAt       string  `json:"createdAt"`
}

ActionTicketFields includes the GraphQL fields of ActionTicket requested by the fragment ActionTicketFields. The GraphQL type's documentation follows.

One consumable ticket in the org ledger (cor:acl:050:04 tier 2).

func (*ActionTicketFields) GetAction added in v0.6.0

func (v *ActionTicketFields) GetAction() string

GetAction returns ActionTicketFields.Action, and is useful for accessing the field via an interface.

func (*ActionTicketFields) GetAppId added in v0.6.0

func (v *ActionTicketFields) GetAppId() *string

GetAppId returns ActionTicketFields.AppId, and is useful for accessing the field via an interface.

func (*ActionTicketFields) GetConsumedAt added in v0.6.0

func (v *ActionTicketFields) GetConsumedAt() *string

GetConsumedAt returns ActionTicketFields.ConsumedAt, and is useful for accessing the field via an interface.

func (*ActionTicketFields) GetConsumedByRunId added in v0.6.0

func (v *ActionTicketFields) GetConsumedByRunId() *string

GetConsumedByRunId returns ActionTicketFields.ConsumedByRunId, and is useful for accessing the field via an interface.

func (*ActionTicketFields) GetCreatedAt added in v0.6.0

func (v *ActionTicketFields) GetCreatedAt() string

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

func (*ActionTicketFields) GetExpiresAt added in v0.6.0

func (v *ActionTicketFields) GetExpiresAt() *string

GetExpiresAt returns ActionTicketFields.ExpiresAt, and is useful for accessing the field via an interface.

func (*ActionTicketFields) GetId added in v0.6.0

func (v *ActionTicketFields) GetId() string

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

func (*ActionTicketFields) GetMintedBy added in v0.6.0

func (v *ActionTicketFields) GetMintedBy() string

GetMintedBy returns ActionTicketFields.MintedBy, and is useful for accessing the field via an interface.

func (*ActionTicketFields) GetNote added in v0.6.0

func (v *ActionTicketFields) GetNote() *string

GetNote returns ActionTicketFields.Note, and is useful for accessing the field via an interface.

func (*ActionTicketFields) GetOrganizationId added in v0.6.0

func (v *ActionTicketFields) GetOrganizationId() string

GetOrganizationId returns ActionTicketFields.OrganizationId, and is useful for accessing the field via an interface.

type ActionTicketsActionTicketsActionTicketsPage added in v0.6.0

type ActionTicketsActionTicketsActionTicketsPage struct {
	Total int                                                             `json:"total"`
	Items []*ActionTicketsActionTicketsActionTicketsPageItemsActionTicket `json:"items"`
}

ActionTicketsActionTicketsActionTicketsPage includes the requested fields of the GraphQL type ActionTicketsPage.

func (*ActionTicketsActionTicketsActionTicketsPage) GetItems added in v0.6.0

GetItems returns ActionTicketsActionTicketsActionTicketsPage.Items, and is useful for accessing the field via an interface.

func (*ActionTicketsActionTicketsActionTicketsPage) GetTotal added in v0.6.0

GetTotal returns ActionTicketsActionTicketsActionTicketsPage.Total, and is useful for accessing the field via an interface.

type ActionTicketsActionTicketsActionTicketsPageItemsActionTicket added in v0.6.0

type ActionTicketsActionTicketsActionTicketsPageItemsActionTicket struct {
	ActionTicketFields `json:"-"`
}

ActionTicketsActionTicketsActionTicketsPageItemsActionTicket includes the requested fields of the GraphQL type ActionTicket. The GraphQL type's documentation follows.

One consumable ticket in the org ledger (cor:acl:050:04 tier 2).

func (*ActionTicketsActionTicketsActionTicketsPageItemsActionTicket) GetAction added in v0.6.0

GetAction returns ActionTicketsActionTicketsActionTicketsPageItemsActionTicket.Action, and is useful for accessing the field via an interface.

func (*ActionTicketsActionTicketsActionTicketsPageItemsActionTicket) GetAppId added in v0.6.0

GetAppId returns ActionTicketsActionTicketsActionTicketsPageItemsActionTicket.AppId, and is useful for accessing the field via an interface.

func (*ActionTicketsActionTicketsActionTicketsPageItemsActionTicket) GetConsumedAt added in v0.6.0

GetConsumedAt returns ActionTicketsActionTicketsActionTicketsPageItemsActionTicket.ConsumedAt, and is useful for accessing the field via an interface.

func (*ActionTicketsActionTicketsActionTicketsPageItemsActionTicket) GetConsumedByRunId added in v0.6.0

GetConsumedByRunId returns ActionTicketsActionTicketsActionTicketsPageItemsActionTicket.ConsumedByRunId, and is useful for accessing the field via an interface.

func (*ActionTicketsActionTicketsActionTicketsPageItemsActionTicket) GetCreatedAt added in v0.6.0

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

func (*ActionTicketsActionTicketsActionTicketsPageItemsActionTicket) GetExpiresAt added in v0.6.0

GetExpiresAt returns ActionTicketsActionTicketsActionTicketsPageItemsActionTicket.ExpiresAt, and is useful for accessing the field via an interface.

func (*ActionTicketsActionTicketsActionTicketsPageItemsActionTicket) GetId added in v0.6.0

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

func (*ActionTicketsActionTicketsActionTicketsPageItemsActionTicket) GetMintedBy added in v0.6.0

GetMintedBy returns ActionTicketsActionTicketsActionTicketsPageItemsActionTicket.MintedBy, and is useful for accessing the field via an interface.

func (*ActionTicketsActionTicketsActionTicketsPageItemsActionTicket) GetNote added in v0.6.0

GetNote returns ActionTicketsActionTicketsActionTicketsPageItemsActionTicket.Note, and is useful for accessing the field via an interface.

func (*ActionTicketsActionTicketsActionTicketsPageItemsActionTicket) GetOrganizationId added in v0.6.0

GetOrganizationId returns ActionTicketsActionTicketsActionTicketsPageItemsActionTicket.OrganizationId, and is useful for accessing the field via an interface.

func (*ActionTicketsActionTicketsActionTicketsPageItemsActionTicket) MarshalJSON added in v0.6.0

func (*ActionTicketsActionTicketsActionTicketsPageItemsActionTicket) UnmarshalJSON added in v0.6.0

type ActionTicketsResponse added in v0.6.0

type ActionTicketsResponse struct {
	// The ticket ledger: minted, consumed-by-which-run, expired (org-ADMIN).
	ActionTickets *ActionTicketsActionTicketsActionTicketsPage `json:"actionTickets"`
}

ActionTicketsResponse is returned by ActionTickets on success.

func ActionTickets added in v0.6.0

func ActionTickets(
	ctx_ context.Context,
	client_ graphql.Client,
	orgId string,
	limit *int,
	offset *int,
) (data_ *ActionTicketsResponse, err_ error)

The ledger — minted / consumed-by-which-run / expired. Paged { items, total }.

func (*ActionTicketsResponse) GetActionTickets added in v0.6.0

GetActionTickets returns ActionTicketsResponse.ActionTickets, and is useful for accessing the field via an interface.

type AddMemoryMemberAddMemoryMemberAddMemoryMemberPayload added in v0.3.0

type AddMemoryMemberAddMemoryMemberAddMemoryMemberPayload struct {
	MemoryMember *AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMember `json:"memoryMember"`
}

AddMemoryMemberAddMemoryMemberAddMemoryMemberPayload includes the requested fields of the GraphQL type AddMemoryMemberPayload.

func (*AddMemoryMemberAddMemoryMemberAddMemoryMemberPayload) GetMemoryMember added in v0.3.0

GetMemoryMember returns AddMemoryMemberAddMemoryMemberAddMemoryMemberPayload.MemoryMember, and is useful for accessing the field via an interface.

type AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMember added in v0.3.0

type AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMember struct {
	Role MemoryMemberRole                                                      `json:"role"`
	User *AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser `json:"user"`
}

AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMember includes the requested fields of the GraphQL type MemoryMember. The GraphQL type's documentation follows.

023-app-shape US4: symmetric team-membership row for group-class memory. The "Company Brain" model — multiple users collaboratively read/write a shared memory, governance by role, no single owner on the Memory itself.

func (*AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMember) GetRole added in v0.3.0

GetRole returns AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMember.Role, and is useful for accessing the field via an interface.

func (*AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMember) GetUser added in v0.3.0

GetUser returns AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMember.User, and is useful for accessing the field via an interface.

type AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser added in v0.3.0

type AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser struct {
	MemUserFields `json:"-"`
}

AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser includes the requested fields of the GraphQL type User.

func (*AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser) GetEmail added in v0.3.0

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

func (*AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser) GetHandle added in v0.3.0

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

func (*AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser) GetId added in v0.3.0

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

func (*AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser) GetName added in v0.3.0

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

func (*AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser) MarshalJSON added in v0.3.0

func (*AddMemoryMemberAddMemoryMemberAddMemoryMemberPayloadMemoryMemberUser) UnmarshalJSON added in v0.3.0

type AddMemoryMemberResponse added in v0.3.0

type AddMemoryMemberResponse struct {
	// 023-app-shape US4 — add a team member to a group-class Memory.
	// Idempotent on the (memoryId, userId) PK: re-calling with a
	// different role upserts the role.
	//
	// The caller MUST be an owner of the Memory (role = owner). The
	// bootstrap case is handled by createMemory itself, which adds the
	// creator as the first owner of a newly-created group memory.
	//
	// Error codes (extensions.code, Error.name style):
	// - UNAUTHENTICATED — no logged-in user in context.
	// - FORBIDDEN — caller is not an owner of the memory. (Uniform
	// for missing-memory / wrong-class / not-an-owner cases, by
	// the same don't-leak-metadata rule as MemoryShare mutations.)
	// - InvalidMemoryClassForMemberError — memory is not group-class
	// (only reachable from non-GraphQL callers in v1 — the
	// caller-authority guard short-circuits to FORBIDDEN first).
	// - MemoryMemberUserMissingError — the userId doesn't resolve.
	// - LastOwnerProtectedError (FR-038) — reachable via the
	// idempotent upsert path when the call would demote an
	// existing sole owner to reader/writer.
	AddMemoryMember *AddMemoryMemberAddMemoryMemberAddMemoryMemberPayload `json:"addMemoryMember"`
}

AddMemoryMemberResponse is returned by AddMemoryMember on success.

func AddMemoryMember added in v0.3.0

func AddMemoryMember(
	ctx_ context.Context,
	client_ graphql.Client,
	memoryId string,
	userId string,
	role MemoryMemberRole,
) (data_ *AddMemoryMemberResponse, err_ error)

func (*AddMemoryMemberResponse) GetAddMemoryMember added in v0.3.0

GetAddMemoryMember returns AddMemoryMemberResponse.AddMemoryMember, and is useful for accessing the field via an interface.

type AddOrgMemberAddOrgMember added in v0.3.0

type AddOrgMemberAddOrgMember struct {
	Id string `json:"id"`
	// Target member's role in this org. Null when the viewer isn't an ADMIN/OWNER of the org (#384 field-level visibility); always visible for one's own membership.
	Role *Role                         `json:"role"`
	User *AddOrgMemberAddOrgMemberUser `json:"user"`
}

AddOrgMemberAddOrgMember includes the requested fields of the GraphQL type OrgMember.

func (*AddOrgMemberAddOrgMember) GetId added in v0.3.0

func (v *AddOrgMemberAddOrgMember) GetId() string

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

func (*AddOrgMemberAddOrgMember) GetRole added in v0.3.0

func (v *AddOrgMemberAddOrgMember) GetRole() *Role

GetRole returns AddOrgMemberAddOrgMember.Role, and is useful for accessing the field via an interface.

func (*AddOrgMemberAddOrgMember) GetUser added in v0.3.0

GetUser returns AddOrgMemberAddOrgMember.User, and is useful for accessing the field via an interface.

type AddOrgMemberAddOrgMemberUser added in v0.3.0

type AddOrgMemberAddOrgMemberUser struct {
	UserFields `json:"-"`
}

AddOrgMemberAddOrgMemberUser includes the requested fields of the GraphQL type User.

func (*AddOrgMemberAddOrgMemberUser) GetEmail added in v0.3.0

func (v *AddOrgMemberAddOrgMemberUser) GetEmail() *string

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

func (*AddOrgMemberAddOrgMemberUser) GetGithubUsername added in v0.3.0

func (v *AddOrgMemberAddOrgMemberUser) GetGithubUsername() *string

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

func (*AddOrgMemberAddOrgMemberUser) GetHandle added in v0.3.0

func (v *AddOrgMemberAddOrgMemberUser) GetHandle() *string

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

func (*AddOrgMemberAddOrgMemberUser) GetId added in v0.3.0

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

func (*AddOrgMemberAddOrgMemberUser) GetName added in v0.3.0

func (v *AddOrgMemberAddOrgMemberUser) GetName() *string

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

func (*AddOrgMemberAddOrgMemberUser) GetRoles added in v0.3.0

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

GetRoles returns AddOrgMemberAddOrgMemberUser.Roles, and is useful for accessing the field via an interface.

func (*AddOrgMemberAddOrgMemberUser) MarshalJSON added in v0.3.0

func (v *AddOrgMemberAddOrgMemberUser) MarshalJSON() ([]byte, error)

func (*AddOrgMemberAddOrgMemberUser) UnmarshalJSON added in v0.3.0

func (v *AddOrgMemberAddOrgMemberUser) UnmarshalJSON(b []byte) error

type AddOrgMemberResponse added in v0.3.0

type AddOrgMemberResponse struct {
	// Accepts the entity's ID or URN (orgId).
	AddOrgMember *AddOrgMemberAddOrgMember `json:"addOrgMember"`
}

AddOrgMemberResponse is returned by AddOrgMember on success.

func AddOrgMember added in v0.3.0

func AddOrgMember(
	ctx_ context.Context,
	client_ graphql.Client,
	orgId string,
	userId string,
	role Role,
) (data_ *AddOrgMemberResponse, err_ error)

func (*AddOrgMemberResponse) GetAddOrgMember added in v0.3.0

func (v *AddOrgMemberResponse) GetAddOrgMember() *AddOrgMemberAddOrgMember

GetAddOrgMember returns AddOrgMemberResponse.AddOrgMember, and is useful for accessing the field via an interface.

type AgentScheduleFields added in v0.6.0

type AgentScheduleFields struct {
	Id             string  `json:"id"`
	OrganizationId string  `json:"organizationId"`
	AppId          string  `json:"appId"`
	AgentId        *string `json:"agentId"`
	Name           string  `json:"name"`
	Cron           string  `json:"cron"`
	Timezone       string  `json:"timezone"`
	Enabled        bool    `json:"enabled"`
	EntryNodeUrn   string  `json:"entryNodeUrn"`
	AiConfigName   *string `json:"aiConfigName"`
	// On-behalf-of user captured at creation; v1 only the creator themself.
	UserId    *string          `json:"userId"`
	CreatedBy *string          `json:"createdBy"`
	EventData *json.RawMessage `json:"eventData"`
	Policy    *json.RawMessage `json:"policy"`
	LastRunAt *string          `json:"lastRunAt"`
	NextRunAt *string          `json:"nextRunAt"`
	CreatedAt string           `json:"createdAt"`
}

AgentScheduleFields includes the GraphQL fields of AgentSchedule requested by the fragment AgentScheduleFields. The GraphQL type's documentation follows.

Recurring trigger (cor:agt:010, D-2026-07-04-E).

func (*AgentScheduleFields) GetAgentId added in v0.6.0

func (v *AgentScheduleFields) GetAgentId() *string

GetAgentId returns AgentScheduleFields.AgentId, and is useful for accessing the field via an interface.

func (*AgentScheduleFields) GetAiConfigName added in v0.6.0

func (v *AgentScheduleFields) GetAiConfigName() *string

GetAiConfigName returns AgentScheduleFields.AiConfigName, and is useful for accessing the field via an interface.

func (*AgentScheduleFields) GetAppId added in v0.6.0

func (v *AgentScheduleFields) GetAppId() string

GetAppId returns AgentScheduleFields.AppId, and is useful for accessing the field via an interface.

func (*AgentScheduleFields) GetCreatedAt added in v0.6.0

func (v *AgentScheduleFields) GetCreatedAt() string

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

func (*AgentScheduleFields) GetCreatedBy added in v0.6.0

func (v *AgentScheduleFields) GetCreatedBy() *string

GetCreatedBy returns AgentScheduleFields.CreatedBy, and is useful for accessing the field via an interface.

func (*AgentScheduleFields) GetCron added in v0.6.0

func (v *AgentScheduleFields) GetCron() string

GetCron returns AgentScheduleFields.Cron, and is useful for accessing the field via an interface.

func (*AgentScheduleFields) GetEnabled added in v0.6.0

func (v *AgentScheduleFields) GetEnabled() bool

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

func (*AgentScheduleFields) GetEntryNodeUrn added in v0.6.0

func (v *AgentScheduleFields) GetEntryNodeUrn() string

GetEntryNodeUrn returns AgentScheduleFields.EntryNodeUrn, and is useful for accessing the field via an interface.

func (*AgentScheduleFields) GetEventData added in v0.6.0

func (v *AgentScheduleFields) GetEventData() *json.RawMessage

GetEventData returns AgentScheduleFields.EventData, and is useful for accessing the field via an interface.

func (*AgentScheduleFields) GetId added in v0.6.0

func (v *AgentScheduleFields) GetId() string

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

func (*AgentScheduleFields) GetLastRunAt added in v0.6.0

func (v *AgentScheduleFields) GetLastRunAt() *string

GetLastRunAt returns AgentScheduleFields.LastRunAt, and is useful for accessing the field via an interface.

func (*AgentScheduleFields) GetName added in v0.6.0

func (v *AgentScheduleFields) GetName() string

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

func (*AgentScheduleFields) GetNextRunAt added in v0.6.0

func (v *AgentScheduleFields) GetNextRunAt() *string

GetNextRunAt returns AgentScheduleFields.NextRunAt, and is useful for accessing the field via an interface.

func (*AgentScheduleFields) GetOrganizationId added in v0.6.0

func (v *AgentScheduleFields) GetOrganizationId() string

GetOrganizationId returns AgentScheduleFields.OrganizationId, and is useful for accessing the field via an interface.

func (*AgentScheduleFields) GetPolicy added in v0.6.0

func (v *AgentScheduleFields) GetPolicy() *json.RawMessage

GetPolicy returns AgentScheduleFields.Policy, and is useful for accessing the field via an interface.

func (*AgentScheduleFields) GetTimezone added in v0.6.0

func (v *AgentScheduleFields) GetTimezone() string

GetTimezone returns AgentScheduleFields.Timezone, and is useful for accessing the field via an interface.

func (*AgentScheduleFields) GetUserId added in v0.6.0

func (v *AgentScheduleFields) GetUserId() *string

GetUserId returns AgentScheduleFields.UserId, and is useful for accessing the field via an interface.

type AgentSchedulesAgentSchedulesAgentSchedulesPage added in v0.6.0

type AgentSchedulesAgentSchedulesAgentSchedulesPage struct {
	Total int                                                                 `json:"total"`
	Items []*AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule `json:"items"`
}

AgentSchedulesAgentSchedulesAgentSchedulesPage includes the requested fields of the GraphQL type AgentSchedulesPage.

func (*AgentSchedulesAgentSchedulesAgentSchedulesPage) GetItems added in v0.6.0

GetItems returns AgentSchedulesAgentSchedulesAgentSchedulesPage.Items, and is useful for accessing the field via an interface.

func (*AgentSchedulesAgentSchedulesAgentSchedulesPage) GetTotal added in v0.6.0

GetTotal returns AgentSchedulesAgentSchedulesAgentSchedulesPage.Total, and is useful for accessing the field via an interface.

type AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule added in v0.6.0

type AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule struct {
	AgentScheduleFields `json:"-"`
}

AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule includes the requested fields of the GraphQL type AgentSchedule. The GraphQL type's documentation follows.

Recurring trigger (cor:agt:010, D-2026-07-04-E).

func (*AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule) GetAgentId added in v0.6.0

GetAgentId returns AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule.AgentId, and is useful for accessing the field via an interface.

func (*AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule) GetAiConfigName added in v0.6.0

GetAiConfigName returns AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule.AiConfigName, and is useful for accessing the field via an interface.

func (*AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule) GetAppId added in v0.6.0

GetAppId returns AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule.AppId, and is useful for accessing the field via an interface.

func (*AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule) GetCreatedAt added in v0.6.0

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

func (*AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule) GetCreatedBy added in v0.6.0

GetCreatedBy returns AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule.CreatedBy, and is useful for accessing the field via an interface.

func (*AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule) GetCron added in v0.6.0

GetCron returns AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule.Cron, and is useful for accessing the field via an interface.

func (*AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule) GetEnabled added in v0.6.0

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

func (*AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule) GetEntryNodeUrn added in v0.6.0

GetEntryNodeUrn returns AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule.EntryNodeUrn, and is useful for accessing the field via an interface.

func (*AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule) GetEventData added in v0.6.0

GetEventData returns AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule.EventData, and is useful for accessing the field via an interface.

func (*AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule) GetId added in v0.6.0

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

func (*AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule) GetLastRunAt added in v0.6.0

GetLastRunAt returns AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule.LastRunAt, and is useful for accessing the field via an interface.

func (*AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule) GetName added in v0.6.0

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

func (*AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule) GetNextRunAt added in v0.6.0

GetNextRunAt returns AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule.NextRunAt, and is useful for accessing the field via an interface.

func (*AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule) GetOrganizationId added in v0.6.0

GetOrganizationId returns AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule.OrganizationId, and is useful for accessing the field via an interface.

func (*AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule) GetPolicy added in v0.6.0

GetPolicy returns AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule.Policy, and is useful for accessing the field via an interface.

func (*AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule) GetTimezone added in v0.6.0

GetTimezone returns AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule.Timezone, and is useful for accessing the field via an interface.

func (*AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule) GetUserId added in v0.6.0

GetUserId returns AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule.UserId, and is useful for accessing the field via an interface.

func (*AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule) MarshalJSON added in v0.6.0

func (*AgentSchedulesAgentSchedulesAgentSchedulesPageItemsAgentSchedule) UnmarshalJSON added in v0.6.0

type AgentSchedulesResponse added in v0.6.0

type AgentSchedulesResponse struct {
	AgentSchedules *AgentSchedulesAgentSchedulesAgentSchedulesPage `json:"agentSchedules"`
}

AgentSchedulesResponse is returned by AgentSchedules on success.

func AgentSchedules added in v0.6.0

func AgentSchedules(
	ctx_ context.Context,
	client_ graphql.Client,
	appId string,
	limit *int,
	offset *int,
) (data_ *AgentSchedulesResponse, err_ error)

func (*AgentSchedulesResponse) GetAgentSchedules added in v0.6.0

GetAgentSchedules returns AgentSchedulesResponse.AgentSchedules, and is useful for accessing the field via an interface.

type AgentWebhookCredentialFields added in v0.6.0

type AgentWebhookCredentialFields struct {
	// Server-relative URL path: /hooks/<secret>/<name>. Append ?hpt=<token>.
	Path string `json:"path"`
	// The time-limited platform JWT (hpt) — the second factor. Store it now.
	Token   string                                           `json:"token"`
	Webhook *AgentWebhookCredentialFieldsWebhookAgentWebhook `json:"webhook"`
}

AgentWebhookCredentialFields includes the GraphQL fields of AgentWebhookCredentials requested by the fragment AgentWebhookCredentialFields. The GraphQL type's documentation follows.

Create/rotate result — path + platform token are shown ONCE.

func (*AgentWebhookCredentialFields) GetPath added in v0.6.0

func (v *AgentWebhookCredentialFields) GetPath() string

GetPath returns AgentWebhookCredentialFields.Path, and is useful for accessing the field via an interface.

func (*AgentWebhookCredentialFields) GetToken added in v0.6.0

func (v *AgentWebhookCredentialFields) GetToken() string

GetToken returns AgentWebhookCredentialFields.Token, and is useful for accessing the field via an interface.

func (*AgentWebhookCredentialFields) GetWebhook added in v0.6.0

GetWebhook returns AgentWebhookCredentialFields.Webhook, and is useful for accessing the field via an interface.

type AgentWebhookCredentialFieldsWebhookAgentWebhook added in v0.6.0

type AgentWebhookCredentialFieldsWebhookAgentWebhook struct {
	AgentWebhookFields `json:"-"`
}

AgentWebhookCredentialFieldsWebhookAgentWebhook includes the requested fields of the GraphQL type AgentWebhook. The GraphQL type's documentation follows.

Webhook trigger (D-2026-05-02). The secret is NEVER exposed here — the URL is returned once at create/rotate.

func (*AgentWebhookCredentialFieldsWebhookAgentWebhook) GetAgentId added in v0.6.0

GetAgentId returns AgentWebhookCredentialFieldsWebhookAgentWebhook.AgentId, and is useful for accessing the field via an interface.

func (*AgentWebhookCredentialFieldsWebhookAgentWebhook) GetAiConfigName added in v0.6.0

GetAiConfigName returns AgentWebhookCredentialFieldsWebhookAgentWebhook.AiConfigName, and is useful for accessing the field via an interface.

func (*AgentWebhookCredentialFieldsWebhookAgentWebhook) GetAppId added in v0.6.0

GetAppId returns AgentWebhookCredentialFieldsWebhookAgentWebhook.AppId, and is useful for accessing the field via an interface.

func (*AgentWebhookCredentialFieldsWebhookAgentWebhook) GetArgsSchema added in v0.6.0

GetArgsSchema returns AgentWebhookCredentialFieldsWebhookAgentWebhook.ArgsSchema, and is useful for accessing the field via an interface.

func (*AgentWebhookCredentialFieldsWebhookAgentWebhook) GetCreatedAt added in v0.6.0

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

func (*AgentWebhookCredentialFieldsWebhookAgentWebhook) GetCreatedBy added in v0.6.0

GetCreatedBy returns AgentWebhookCredentialFieldsWebhookAgentWebhook.CreatedBy, and is useful for accessing the field via an interface.

func (*AgentWebhookCredentialFieldsWebhookAgentWebhook) GetEnabled added in v0.6.0

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

func (*AgentWebhookCredentialFieldsWebhookAgentWebhook) GetEntryNodeUrn added in v0.6.0

GetEntryNodeUrn returns AgentWebhookCredentialFieldsWebhookAgentWebhook.EntryNodeUrn, and is useful for accessing the field via an interface.

func (*AgentWebhookCredentialFieldsWebhookAgentWebhook) GetEventData added in v0.6.0

GetEventData returns AgentWebhookCredentialFieldsWebhookAgentWebhook.EventData, and is useful for accessing the field via an interface.

func (*AgentWebhookCredentialFieldsWebhookAgentWebhook) GetId added in v0.6.0

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

func (*AgentWebhookCredentialFieldsWebhookAgentWebhook) GetLastCalledAt added in v0.6.0

GetLastCalledAt returns AgentWebhookCredentialFieldsWebhookAgentWebhook.LastCalledAt, and is useful for accessing the field via an interface.

func (*AgentWebhookCredentialFieldsWebhookAgentWebhook) GetName added in v0.6.0

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

func (*AgentWebhookCredentialFieldsWebhookAgentWebhook) GetOrganizationId added in v0.6.0

GetOrganizationId returns AgentWebhookCredentialFieldsWebhookAgentWebhook.OrganizationId, and is useful for accessing the field via an interface.

func (*AgentWebhookCredentialFieldsWebhookAgentWebhook) GetPolicy added in v0.6.0

GetPolicy returns AgentWebhookCredentialFieldsWebhookAgentWebhook.Policy, and is useful for accessing the field via an interface.

func (*AgentWebhookCredentialFieldsWebhookAgentWebhook) GetUserId added in v0.6.0

GetUserId returns AgentWebhookCredentialFieldsWebhookAgentWebhook.UserId, and is useful for accessing the field via an interface.

func (*AgentWebhookCredentialFieldsWebhookAgentWebhook) MarshalJSON added in v0.6.0

func (*AgentWebhookCredentialFieldsWebhookAgentWebhook) UnmarshalJSON added in v0.6.0

type AgentWebhookFields added in v0.6.0

type AgentWebhookFields struct {
	Id             string           `json:"id"`
	OrganizationId string           `json:"organizationId"`
	AppId          string           `json:"appId"`
	AgentId        *string          `json:"agentId"`
	Name           string           `json:"name"`
	Enabled        bool             `json:"enabled"`
	EntryNodeUrn   string           `json:"entryNodeUrn"`
	AiConfigName   *string          `json:"aiConfigName"`
	UserId         *string          `json:"userId"`
	CreatedBy      *string          `json:"createdBy"`
	ArgsSchema     *json.RawMessage `json:"argsSchema"`
	EventData      *json.RawMessage `json:"eventData"`
	Policy         *json.RawMessage `json:"policy"`
	LastCalledAt   *string          `json:"lastCalledAt"`
	CreatedAt      string           `json:"createdAt"`
}

AgentWebhookFields includes the GraphQL fields of AgentWebhook requested by the fragment AgentWebhookFields. The GraphQL type's documentation follows.

Webhook trigger (D-2026-05-02). The secret is NEVER exposed here — the URL is returned once at create/rotate.

func (*AgentWebhookFields) GetAgentId added in v0.6.0

func (v *AgentWebhookFields) GetAgentId() *string

GetAgentId returns AgentWebhookFields.AgentId, and is useful for accessing the field via an interface.

func (*AgentWebhookFields) GetAiConfigName added in v0.6.0

func (v *AgentWebhookFields) GetAiConfigName() *string

GetAiConfigName returns AgentWebhookFields.AiConfigName, and is useful for accessing the field via an interface.

func (*AgentWebhookFields) GetAppId added in v0.6.0

func (v *AgentWebhookFields) GetAppId() string

GetAppId returns AgentWebhookFields.AppId, and is useful for accessing the field via an interface.

func (*AgentWebhookFields) GetArgsSchema added in v0.6.0

func (v *AgentWebhookFields) GetArgsSchema() *json.RawMessage

GetArgsSchema returns AgentWebhookFields.ArgsSchema, and is useful for accessing the field via an interface.

func (*AgentWebhookFields) GetCreatedAt added in v0.6.0

func (v *AgentWebhookFields) GetCreatedAt() string

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

func (*AgentWebhookFields) GetCreatedBy added in v0.6.0

func (v *AgentWebhookFields) GetCreatedBy() *string

GetCreatedBy returns AgentWebhookFields.CreatedBy, and is useful for accessing the field via an interface.

func (*AgentWebhookFields) GetEnabled added in v0.6.0

func (v *AgentWebhookFields) GetEnabled() bool

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

func (*AgentWebhookFields) GetEntryNodeUrn added in v0.6.0

func (v *AgentWebhookFields) GetEntryNodeUrn() string

GetEntryNodeUrn returns AgentWebhookFields.EntryNodeUrn, and is useful for accessing the field via an interface.

func (*AgentWebhookFields) GetEventData added in v0.6.0

func (v *AgentWebhookFields) GetEventData() *json.RawMessage

GetEventData returns AgentWebhookFields.EventData, and is useful for accessing the field via an interface.

func (*AgentWebhookFields) GetId added in v0.6.0

func (v *AgentWebhookFields) GetId() string

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

func (*AgentWebhookFields) GetLastCalledAt added in v0.6.0

func (v *AgentWebhookFields) GetLastCalledAt() *string

GetLastCalledAt returns AgentWebhookFields.LastCalledAt, and is useful for accessing the field via an interface.

func (*AgentWebhookFields) GetName added in v0.6.0

func (v *AgentWebhookFields) GetName() string

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

func (*AgentWebhookFields) GetOrganizationId added in v0.6.0

func (v *AgentWebhookFields) GetOrganizationId() string

GetOrganizationId returns AgentWebhookFields.OrganizationId, and is useful for accessing the field via an interface.

func (*AgentWebhookFields) GetPolicy added in v0.6.0

func (v *AgentWebhookFields) GetPolicy() *json.RawMessage

GetPolicy returns AgentWebhookFields.Policy, and is useful for accessing the field via an interface.

func (*AgentWebhookFields) GetUserId added in v0.6.0

func (v *AgentWebhookFields) GetUserId() *string

GetUserId returns AgentWebhookFields.UserId, and is useful for accessing the field via an interface.

type AgentWebhooksAgentWebhooksAgentWebhooksPage added in v0.6.0

type AgentWebhooksAgentWebhooksAgentWebhooksPage struct {
	Total int                                                             `json:"total"`
	Items []*AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook `json:"items"`
}

AgentWebhooksAgentWebhooksAgentWebhooksPage includes the requested fields of the GraphQL type AgentWebhooksPage.

func (*AgentWebhooksAgentWebhooksAgentWebhooksPage) GetItems added in v0.6.0

GetItems returns AgentWebhooksAgentWebhooksAgentWebhooksPage.Items, and is useful for accessing the field via an interface.

func (*AgentWebhooksAgentWebhooksAgentWebhooksPage) GetTotal added in v0.6.0

GetTotal returns AgentWebhooksAgentWebhooksAgentWebhooksPage.Total, and is useful for accessing the field via an interface.

type AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook added in v0.6.0

type AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook struct {
	AgentWebhookFields `json:"-"`
}

AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook includes the requested fields of the GraphQL type AgentWebhook. The GraphQL type's documentation follows.

Webhook trigger (D-2026-05-02). The secret is NEVER exposed here — the URL is returned once at create/rotate.

func (*AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook) GetAgentId added in v0.6.0

GetAgentId returns AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook.AgentId, and is useful for accessing the field via an interface.

func (*AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook) GetAiConfigName added in v0.6.0

GetAiConfigName returns AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook.AiConfigName, and is useful for accessing the field via an interface.

func (*AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook) GetAppId added in v0.6.0

GetAppId returns AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook.AppId, and is useful for accessing the field via an interface.

func (*AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook) GetArgsSchema added in v0.6.0

GetArgsSchema returns AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook.ArgsSchema, and is useful for accessing the field via an interface.

func (*AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook) GetCreatedAt added in v0.6.0

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

func (*AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook) GetCreatedBy added in v0.6.0

GetCreatedBy returns AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook.CreatedBy, and is useful for accessing the field via an interface.

func (*AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook) GetEnabled added in v0.6.0

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

func (*AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook) GetEntryNodeUrn added in v0.6.0

GetEntryNodeUrn returns AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook.EntryNodeUrn, and is useful for accessing the field via an interface.

func (*AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook) GetEventData added in v0.6.0

GetEventData returns AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook.EventData, and is useful for accessing the field via an interface.

func (*AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook) GetId added in v0.6.0

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

func (*AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook) GetLastCalledAt added in v0.6.0

GetLastCalledAt returns AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook.LastCalledAt, and is useful for accessing the field via an interface.

func (*AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook) GetName added in v0.6.0

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

func (*AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook) GetOrganizationId added in v0.6.0

GetOrganizationId returns AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook.OrganizationId, and is useful for accessing the field via an interface.

func (*AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook) GetPolicy added in v0.6.0

GetPolicy returns AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook.Policy, and is useful for accessing the field via an interface.

func (*AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook) GetUserId added in v0.6.0

GetUserId returns AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook.UserId, and is useful for accessing the field via an interface.

func (*AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook) MarshalJSON added in v0.6.0

func (*AgentWebhooksAgentWebhooksAgentWebhooksPageItemsAgentWebhook) UnmarshalJSON added in v0.6.0

type AgentWebhooksResponse added in v0.6.0

type AgentWebhooksResponse struct {
	AgentWebhooks *AgentWebhooksAgentWebhooksAgentWebhooksPage `json:"agentWebhooks"`
}

AgentWebhooksResponse is returned by AgentWebhooks on success.

func AgentWebhooks added in v0.6.0

func AgentWebhooks(
	ctx_ context.Context,
	client_ graphql.Client,
	appId string,
	limit *int,
	offset *int,
) (data_ *AgentWebhooksResponse, err_ error)

func (*AgentWebhooksResponse) GetAgentWebhooks added in v0.6.0

GetAgentWebhooks returns AgentWebhooksResponse.AgentWebhooks, and is useful for accessing the field via an interface.

type AiConfigOwnerType added in v0.2.0

type AiConfigOwnerType string

036-ai-service-config: which entity owns an AiServiceConfig. Exactly one owner per config (DB-enforced).

const (
	AiConfigOwnerTypeAgent        AiConfigOwnerType = "AGENT"
	AiConfigOwnerTypeApp          AiConfigOwnerType = "APP"
	AiConfigOwnerTypeHadronServer AiConfigOwnerType = "HADRON_SERVER"
	AiConfigOwnerTypeOrganization AiConfigOwnerType = "ORGANIZATION"
)

type AiServiceConfigFields added in v0.3.0

type AiServiceConfigFields struct {
	Id        string            `json:"id"`
	Name      string            `json:"name"`
	OwnerType AiConfigOwnerType `json:"ownerType"`
	// ID of the owning HadronServer / Organization / App / Agent.
	OwnerId string `json:"ownerId"`
	// Provider identifier; v1 known: 'anthropic' | 'openai' | 'glm' | 'bedrock'.
	Provider string `json:"provider"`
	// Model identifier, passed verbatim to the provider.
	Model     string `json:"model"`
	HasApiKey bool   `json:"hasApiKey"`
	// Ellipsis + last 4 characters of the stored key; null when no key.
	ApiKeyPreview *string `json:"apiKeyPreview"`
	// Provider-specific knobs (maxTokens, thinking, effort, baseUrl, ...).
	Params *json.RawMessage `json:"params"`
	// Disabled configs are skipped by resolution (the walk continues outward).
	Enabled   bool    `json:"enabled"`
	CreatedAt string  `json:"createdAt"`
	UpdatedAt *string `json:"updatedAt"`
}

036-ai-service-config CRUD. The mutations return a masked AiServiceConfig (never key material — only hasApiKey + apiKeyPreview).

func (*AiServiceConfigFields) GetApiKeyPreview added in v0.3.0

func (v *AiServiceConfigFields) GetApiKeyPreview() *string

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

func (*AiServiceConfigFields) GetCreatedAt added in v0.3.0

func (v *AiServiceConfigFields) GetCreatedAt() string

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

func (*AiServiceConfigFields) GetEnabled added in v0.3.0

func (v *AiServiceConfigFields) GetEnabled() bool

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

func (*AiServiceConfigFields) GetHasApiKey added in v0.3.0

func (v *AiServiceConfigFields) GetHasApiKey() bool

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

func (*AiServiceConfigFields) GetId added in v0.3.0

func (v *AiServiceConfigFields) GetId() string

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

func (*AiServiceConfigFields) GetModel added in v0.3.0

func (v *AiServiceConfigFields) GetModel() string

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

func (*AiServiceConfigFields) GetName added in v0.3.0

func (v *AiServiceConfigFields) GetName() string

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

func (*AiServiceConfigFields) GetOwnerId added in v0.3.0

func (v *AiServiceConfigFields) GetOwnerId() string

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

func (*AiServiceConfigFields) GetOwnerType added in v0.3.0

func (v *AiServiceConfigFields) GetOwnerType() AiConfigOwnerType

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

func (*AiServiceConfigFields) GetParams added in v0.3.0

func (v *AiServiceConfigFields) GetParams() *json.RawMessage

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

func (*AiServiceConfigFields) GetProvider added in v0.3.0

func (v *AiServiceConfigFields) GetProvider() string

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

func (*AiServiceConfigFields) GetUpdatedAt added in v0.3.0

func (v *AiServiceConfigFields) GetUpdatedAt() *string

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

type AppRunAppRun added in v0.6.0

type AppRunAppRun struct {
	AppRunFields `json:"-"`
}

AppRunAppRun includes the requested fields of the GraphQL type AppRun.

func (*AppRunAppRun) GetAgentId added in v0.6.0

func (v *AppRunAppRun) GetAgentId() *string

GetAgentId returns AppRunAppRun.AgentId, and is useful for accessing the field via an interface.

func (*AppRunAppRun) GetAppId added in v0.6.0

func (v *AppRunAppRun) GetAppId() string

GetAppId returns AppRunAppRun.AppId, and is useful for accessing the field via an interface.

func (*AppRunAppRun) GetAttempts added in v0.6.0

func (v *AppRunAppRun) GetAttempts() int

GetAttempts returns AppRunAppRun.Attempts, and is useful for accessing the field via an interface.

func (*AppRunAppRun) GetBudgetActions added in v0.6.0

func (v *AppRunAppRun) GetBudgetActions() *int

GetBudgetActions returns AppRunAppRun.BudgetActions, and is useful for accessing the field via an interface.

func (*AppRunAppRun) GetBudgetTokens added in v0.6.0

func (v *AppRunAppRun) GetBudgetTokens() *int

GetBudgetTokens returns AppRunAppRun.BudgetTokens, and is useful for accessing the field via an interface.

func (*AppRunAppRun) GetCreatedAt added in v0.6.0

func (v *AppRunAppRun) GetCreatedAt() string

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

func (*AppRunAppRun) GetCreatedBy added in v0.6.0

func (v *AppRunAppRun) GetCreatedBy() *string

GetCreatedBy returns AppRunAppRun.CreatedBy, and is useful for accessing the field via an interface.

func (*AppRunAppRun) GetCurNodeUrn added in v0.6.0

func (v *AppRunAppRun) GetCurNodeUrn() *string

GetCurNodeUrn returns AppRunAppRun.CurNodeUrn, and is useful for accessing the field via an interface.

func (*AppRunAppRun) GetEntryNodeUrn added in v0.6.0

func (v *AppRunAppRun) GetEntryNodeUrn() string

GetEntryNodeUrn returns AppRunAppRun.EntryNodeUrn, and is useful for accessing the field via an interface.

func (*AppRunAppRun) GetEventData added in v0.6.0

func (v *AppRunAppRun) GetEventData() *json.RawMessage

GetEventData returns AppRunAppRun.EventData, and is useful for accessing the field via an interface.

func (*AppRunAppRun) GetFailure added in v0.6.0

func (v *AppRunAppRun) GetFailure() *json.RawMessage

GetFailure returns AppRunAppRun.Failure, and is useful for accessing the field via an interface.

func (*AppRunAppRun) GetFinishedAt added in v0.6.0

func (v *AppRunAppRun) GetFinishedAt() *string

GetFinishedAt returns AppRunAppRun.FinishedAt, and is useful for accessing the field via an interface.

func (*AppRunAppRun) GetId added in v0.6.0

func (v *AppRunAppRun) GetId() string

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

func (*AppRunAppRun) GetOrganizationId added in v0.6.0

func (v *AppRunAppRun) GetOrganizationId() string

GetOrganizationId returns AppRunAppRun.OrganizationId, and is useful for accessing the field via an interface.

func (*AppRunAppRun) GetParentRunId added in v0.6.0

func (v *AppRunAppRun) GetParentRunId() *string

GetParentRunId returns AppRunAppRun.ParentRunId, and is useful for accessing the field via an interface.

func (*AppRunAppRun) GetPolicy added in v0.6.0

func (v *AppRunAppRun) GetPolicy() *json.RawMessage

GetPolicy returns AppRunAppRun.Policy, and is useful for accessing the field via an interface.

func (*AppRunAppRun) GetStartedAt added in v0.6.0

func (v *AppRunAppRun) GetStartedAt() *string

GetStartedAt returns AppRunAppRun.StartedAt, and is useful for accessing the field via an interface.

func (*AppRunAppRun) GetStatus added in v0.6.0

func (v *AppRunAppRun) GetStatus() AppRunStatus

GetStatus returns AppRunAppRun.Status, and is useful for accessing the field via an interface.

func (*AppRunAppRun) GetTimeoutMs added in v0.6.0

func (v *AppRunAppRun) GetTimeoutMs() *int

GetTimeoutMs returns AppRunAppRun.TimeoutMs, and is useful for accessing the field via an interface.

func (*AppRunAppRun) GetTriggerId added in v0.6.0

func (v *AppRunAppRun) GetTriggerId() *string

GetTriggerId returns AppRunAppRun.TriggerId, and is useful for accessing the field via an interface.

func (*AppRunAppRun) GetTriggerKind added in v0.6.0

func (v *AppRunAppRun) GetTriggerKind() AppRunTriggerKind

GetTriggerKind returns AppRunAppRun.TriggerKind, and is useful for accessing the field via an interface.

func (*AppRunAppRun) GetUserId added in v0.6.0

func (v *AppRunAppRun) GetUserId() *string

GetUserId returns AppRunAppRun.UserId, and is useful for accessing the field via an interface.

func (*AppRunAppRun) MarshalJSON added in v0.6.0

func (v *AppRunAppRun) MarshalJSON() ([]byte, error)

func (*AppRunAppRun) UnmarshalJSON added in v0.6.0

func (v *AppRunAppRun) UnmarshalJSON(b []byte) error

type AppRunFields added in v0.6.0

type AppRunFields struct {
	Id             string            `json:"id"`
	OrganizationId string            `json:"organizationId"`
	AppId          string            `json:"appId"`
	AgentId        *string           `json:"agentId"`
	Status         AppRunStatus      `json:"status"`
	TriggerKind    AppRunTriggerKind `json:"triggerKind"`
	TriggerId      *string           `json:"triggerId"`
	EntryNodeUrn   string            `json:"entryNodeUrn"`
	CurNodeUrn     *string           `json:"curNodeUrn"`
	// On-behalf-of user (cor:agt:010:01). Null = pure App service identity.
	UserId      *string `json:"userId"`
	CreatedBy   *string `json:"createdBy"`
	ParentRunId *string `json:"parentRunId"`
	Attempts    int     `json:"attempts"`
	// Remaining action budget — live-decremented per write/tool action.
	BudgetActions *int `json:"budgetActions"`
	// Remaining LLM-token budget — live-decremented; zero halts the run.
	BudgetTokens *int             `json:"budgetTokens"`
	TimeoutMs    *int             `json:"timeoutMs"`
	Policy       *json.RawMessage `json:"policy"`
	EventData    *json.RawMessage `json:"eventData"`
	Failure      *json.RawMessage `json:"failure"`
	CreatedAt    string           `json:"createdAt"`
	StartedAt    *string          `json:"startedAt"`
	FinishedAt   *string          `json:"finishedAt"`
}

AppRunFields includes the GraphQL fields of AppRun requested by the fragment AppRunFields.

func (*AppRunFields) GetAgentId added in v0.6.0

func (v *AppRunFields) GetAgentId() *string

GetAgentId returns AppRunFields.AgentId, and is useful for accessing the field via an interface.

func (*AppRunFields) GetAppId added in v0.6.0

func (v *AppRunFields) GetAppId() string

GetAppId returns AppRunFields.AppId, and is useful for accessing the field via an interface.

func (*AppRunFields) GetAttempts added in v0.6.0

func (v *AppRunFields) GetAttempts() int

GetAttempts returns AppRunFields.Attempts, and is useful for accessing the field via an interface.

func (*AppRunFields) GetBudgetActions added in v0.6.0

func (v *AppRunFields) GetBudgetActions() *int

GetBudgetActions returns AppRunFields.BudgetActions, and is useful for accessing the field via an interface.

func (*AppRunFields) GetBudgetTokens added in v0.6.0

func (v *AppRunFields) GetBudgetTokens() *int

GetBudgetTokens returns AppRunFields.BudgetTokens, and is useful for accessing the field via an interface.

func (*AppRunFields) GetCreatedAt added in v0.6.0

func (v *AppRunFields) GetCreatedAt() string

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

func (*AppRunFields) GetCreatedBy added in v0.6.0

func (v *AppRunFields) GetCreatedBy() *string

GetCreatedBy returns AppRunFields.CreatedBy, and is useful for accessing the field via an interface.

func (*AppRunFields) GetCurNodeUrn added in v0.6.0

func (v *AppRunFields) GetCurNodeUrn() *string

GetCurNodeUrn returns AppRunFields.CurNodeUrn, and is useful for accessing the field via an interface.

func (*AppRunFields) GetEntryNodeUrn added in v0.6.0

func (v *AppRunFields) GetEntryNodeUrn() string

GetEntryNodeUrn returns AppRunFields.EntryNodeUrn, and is useful for accessing the field via an interface.

func (*AppRunFields) GetEventData added in v0.6.0

func (v *AppRunFields) GetEventData() *json.RawMessage

GetEventData returns AppRunFields.EventData, and is useful for accessing the field via an interface.

func (*AppRunFields) GetFailure added in v0.6.0

func (v *AppRunFields) GetFailure() *json.RawMessage

GetFailure returns AppRunFields.Failure, and is useful for accessing the field via an interface.

func (*AppRunFields) GetFinishedAt added in v0.6.0

func (v *AppRunFields) GetFinishedAt() *string

GetFinishedAt returns AppRunFields.FinishedAt, and is useful for accessing the field via an interface.

func (*AppRunFields) GetId added in v0.6.0

func (v *AppRunFields) GetId() string

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

func (*AppRunFields) GetOrganizationId added in v0.6.0

func (v *AppRunFields) GetOrganizationId() string

GetOrganizationId returns AppRunFields.OrganizationId, and is useful for accessing the field via an interface.

func (*AppRunFields) GetParentRunId added in v0.6.0

func (v *AppRunFields) GetParentRunId() *string

GetParentRunId returns AppRunFields.ParentRunId, and is useful for accessing the field via an interface.

func (*AppRunFields) GetPolicy added in v0.6.0

func (v *AppRunFields) GetPolicy() *json.RawMessage

GetPolicy returns AppRunFields.Policy, and is useful for accessing the field via an interface.

func (*AppRunFields) GetStartedAt added in v0.6.0

func (v *AppRunFields) GetStartedAt() *string

GetStartedAt returns AppRunFields.StartedAt, and is useful for accessing the field via an interface.

func (*AppRunFields) GetStatus added in v0.6.0

func (v *AppRunFields) GetStatus() AppRunStatus

GetStatus returns AppRunFields.Status, and is useful for accessing the field via an interface.

func (*AppRunFields) GetTimeoutMs added in v0.6.0

func (v *AppRunFields) GetTimeoutMs() *int

GetTimeoutMs returns AppRunFields.TimeoutMs, and is useful for accessing the field via an interface.

func (*AppRunFields) GetTriggerId added in v0.6.0

func (v *AppRunFields) GetTriggerId() *string

GetTriggerId returns AppRunFields.TriggerId, and is useful for accessing the field via an interface.

func (*AppRunFields) GetTriggerKind added in v0.6.0

func (v *AppRunFields) GetTriggerKind() AppRunTriggerKind

GetTriggerKind returns AppRunFields.TriggerKind, and is useful for accessing the field via an interface.

func (*AppRunFields) GetUserId added in v0.6.0

func (v *AppRunFields) GetUserId() *string

GetUserId returns AppRunFields.UserId, and is useful for accessing the field via an interface.

type AppRunResponse added in v0.6.0

type AppRunResponse struct {
	// One run by ID (runs are URN-less, like AiServiceConfig).
	AppRun *AppRunAppRun `json:"appRun"`
}

AppRunResponse is returned by AppRun on success.

func AppRun added in v0.6.0

func AppRun(
	ctx_ context.Context,
	client_ graphql.Client,
	ref string,
) (data_ *AppRunResponse, err_ error)

Single-run detail; null when absent/denied (anti-enumeration).

func (*AppRunResponse) GetAppRun added in v0.6.0

func (v *AppRunResponse) GetAppRun() *AppRunAppRun

GetAppRun returns AppRunResponse.AppRun, and is useful for accessing the field via an interface.

type AppRunStatus added in v0.6.0

type AppRunStatus string
const (
	AppRunStatusCancelled AppRunStatus = "CANCELLED"
	AppRunStatusCompleted AppRunStatus = "COMPLETED"
	AppRunStatusFailed    AppRunStatus = "FAILED"
	AppRunStatusPending   AppRunStatus = "PENDING"
	AppRunStatusRunning   AppRunStatus = "RUNNING"
	AppRunStatusTimedOut  AppRunStatus = "TIMED_OUT"
)

type AppRunTriggerKind added in v0.6.0

type AppRunTriggerKind string
const (
	AppRunTriggerKindIntegration AppRunTriggerKind = "INTEGRATION"
	AppRunTriggerKindManual      AppRunTriggerKind = "MANUAL"
	AppRunTriggerKindSchedule    AppRunTriggerKind = "SCHEDULE"
	AppRunTriggerKindWebhook     AppRunTriggerKind = "WEBHOOK"
)

type AppRunsAppRunsAppRunsPage added in v0.6.0

type AppRunsAppRunsAppRunsPage struct {
	Total int                                     `json:"total"`
	Items []*AppRunsAppRunsAppRunsPageItemsAppRun `json:"items"`
}

AppRunsAppRunsAppRunsPage includes the requested fields of the GraphQL type AppRunsPage.

func (*AppRunsAppRunsAppRunsPage) GetItems added in v0.6.0

GetItems returns AppRunsAppRunsAppRunsPage.Items, and is useful for accessing the field via an interface.

func (*AppRunsAppRunsAppRunsPage) GetTotal added in v0.6.0

func (v *AppRunsAppRunsAppRunsPage) GetTotal() int

GetTotal returns AppRunsAppRunsAppRunsPage.Total, and is useful for accessing the field via an interface.

type AppRunsAppRunsAppRunsPageItemsAppRun added in v0.6.0

type AppRunsAppRunsAppRunsPageItemsAppRun struct {
	AppRunFields `json:"-"`
}

AppRunsAppRunsAppRunsPageItemsAppRun includes the requested fields of the GraphQL type AppRun.

func (*AppRunsAppRunsAppRunsPageItemsAppRun) GetAgentId added in v0.6.0

GetAgentId returns AppRunsAppRunsAppRunsPageItemsAppRun.AgentId, and is useful for accessing the field via an interface.

func (*AppRunsAppRunsAppRunsPageItemsAppRun) GetAppId added in v0.6.0

GetAppId returns AppRunsAppRunsAppRunsPageItemsAppRun.AppId, and is useful for accessing the field via an interface.

func (*AppRunsAppRunsAppRunsPageItemsAppRun) GetAttempts added in v0.6.0

func (v *AppRunsAppRunsAppRunsPageItemsAppRun) GetAttempts() int

GetAttempts returns AppRunsAppRunsAppRunsPageItemsAppRun.Attempts, and is useful for accessing the field via an interface.

func (*AppRunsAppRunsAppRunsPageItemsAppRun) GetBudgetActions added in v0.6.0

func (v *AppRunsAppRunsAppRunsPageItemsAppRun) GetBudgetActions() *int

GetBudgetActions returns AppRunsAppRunsAppRunsPageItemsAppRun.BudgetActions, and is useful for accessing the field via an interface.

func (*AppRunsAppRunsAppRunsPageItemsAppRun) GetBudgetTokens added in v0.6.0

func (v *AppRunsAppRunsAppRunsPageItemsAppRun) GetBudgetTokens() *int

GetBudgetTokens returns AppRunsAppRunsAppRunsPageItemsAppRun.BudgetTokens, and is useful for accessing the field via an interface.

func (*AppRunsAppRunsAppRunsPageItemsAppRun) GetCreatedAt added in v0.6.0

func (v *AppRunsAppRunsAppRunsPageItemsAppRun) GetCreatedAt() string

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

func (*AppRunsAppRunsAppRunsPageItemsAppRun) GetCreatedBy added in v0.6.0

func (v *AppRunsAppRunsAppRunsPageItemsAppRun) GetCreatedBy() *string

GetCreatedBy returns AppRunsAppRunsAppRunsPageItemsAppRun.CreatedBy, and is useful for accessing the field via an interface.

func (*AppRunsAppRunsAppRunsPageItemsAppRun) GetCurNodeUrn added in v0.6.0

func (v *AppRunsAppRunsAppRunsPageItemsAppRun) GetCurNodeUrn() *string

GetCurNodeUrn returns AppRunsAppRunsAppRunsPageItemsAppRun.CurNodeUrn, and is useful for accessing the field via an interface.

func (*AppRunsAppRunsAppRunsPageItemsAppRun) GetEntryNodeUrn added in v0.6.0

func (v *AppRunsAppRunsAppRunsPageItemsAppRun) GetEntryNodeUrn() string

GetEntryNodeUrn returns AppRunsAppRunsAppRunsPageItemsAppRun.EntryNodeUrn, and is useful for accessing the field via an interface.

func (*AppRunsAppRunsAppRunsPageItemsAppRun) GetEventData added in v0.6.0

GetEventData returns AppRunsAppRunsAppRunsPageItemsAppRun.EventData, and is useful for accessing the field via an interface.

func (*AppRunsAppRunsAppRunsPageItemsAppRun) GetFailure added in v0.6.0

GetFailure returns AppRunsAppRunsAppRunsPageItemsAppRun.Failure, and is useful for accessing the field via an interface.

func (*AppRunsAppRunsAppRunsPageItemsAppRun) GetFinishedAt added in v0.6.0

func (v *AppRunsAppRunsAppRunsPageItemsAppRun) GetFinishedAt() *string

GetFinishedAt returns AppRunsAppRunsAppRunsPageItemsAppRun.FinishedAt, and is useful for accessing the field via an interface.

func (*AppRunsAppRunsAppRunsPageItemsAppRun) GetId added in v0.6.0

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

func (*AppRunsAppRunsAppRunsPageItemsAppRun) GetOrganizationId added in v0.6.0

func (v *AppRunsAppRunsAppRunsPageItemsAppRun) GetOrganizationId() string

GetOrganizationId returns AppRunsAppRunsAppRunsPageItemsAppRun.OrganizationId, and is useful for accessing the field via an interface.

func (*AppRunsAppRunsAppRunsPageItemsAppRun) GetParentRunId added in v0.6.0

func (v *AppRunsAppRunsAppRunsPageItemsAppRun) GetParentRunId() *string

GetParentRunId returns AppRunsAppRunsAppRunsPageItemsAppRun.ParentRunId, and is useful for accessing the field via an interface.

func (*AppRunsAppRunsAppRunsPageItemsAppRun) GetPolicy added in v0.6.0

GetPolicy returns AppRunsAppRunsAppRunsPageItemsAppRun.Policy, and is useful for accessing the field via an interface.

func (*AppRunsAppRunsAppRunsPageItemsAppRun) GetStartedAt added in v0.6.0

func (v *AppRunsAppRunsAppRunsPageItemsAppRun) GetStartedAt() *string

GetStartedAt returns AppRunsAppRunsAppRunsPageItemsAppRun.StartedAt, and is useful for accessing the field via an interface.

func (*AppRunsAppRunsAppRunsPageItemsAppRun) GetStatus added in v0.6.0

GetStatus returns AppRunsAppRunsAppRunsPageItemsAppRun.Status, and is useful for accessing the field via an interface.

func (*AppRunsAppRunsAppRunsPageItemsAppRun) GetTimeoutMs added in v0.6.0

func (v *AppRunsAppRunsAppRunsPageItemsAppRun) GetTimeoutMs() *int

GetTimeoutMs returns AppRunsAppRunsAppRunsPageItemsAppRun.TimeoutMs, and is useful for accessing the field via an interface.

func (*AppRunsAppRunsAppRunsPageItemsAppRun) GetTriggerId added in v0.6.0

func (v *AppRunsAppRunsAppRunsPageItemsAppRun) GetTriggerId() *string

GetTriggerId returns AppRunsAppRunsAppRunsPageItemsAppRun.TriggerId, and is useful for accessing the field via an interface.

func (*AppRunsAppRunsAppRunsPageItemsAppRun) GetTriggerKind added in v0.6.0

GetTriggerKind returns AppRunsAppRunsAppRunsPageItemsAppRun.TriggerKind, and is useful for accessing the field via an interface.

func (*AppRunsAppRunsAppRunsPageItemsAppRun) GetUserId added in v0.6.0

GetUserId returns AppRunsAppRunsAppRunsPageItemsAppRun.UserId, and is useful for accessing the field via an interface.

func (*AppRunsAppRunsAppRunsPageItemsAppRun) MarshalJSON added in v0.6.0

func (v *AppRunsAppRunsAppRunsPageItemsAppRun) MarshalJSON() ([]byte, error)

func (*AppRunsAppRunsAppRunsPageItemsAppRun) UnmarshalJSON added in v0.6.0

func (v *AppRunsAppRunsAppRunsPageItemsAppRun) UnmarshalJSON(b []byte) error

type AppRunsResponse added in v0.6.0

type AppRunsResponse struct {
	AppRuns *AppRunsAppRunsAppRunsPage `json:"appRuns"`
}

AppRunsResponse is returned by AppRuns on success.

func AppRuns added in v0.6.0

func AppRuns(
	ctx_ context.Context,
	client_ graphql.Client,
	appId *string,
	orgId *string,
	status *AppRunStatus,
	limit *int,
	offset *int,
) (data_ *AppRunsResponse, err_ error)

Paged { items, total } envelope (#473). appId/orgId/status all optional filters; `run ls` pages to exhaustion.

func (*AppRunsResponse) GetAppRuns added in v0.6.0

func (v *AppRunsResponse) GetAppRuns() *AppRunsAppRunsAppRunsPage

GetAppRuns returns AppRunsResponse.AppRuns, and is useful for accessing the field via an interface.

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 AppsAppsAppsPage added in v0.5.1

type AppsAppsAppsPage struct {
	Total int                         `json:"total"`
	Items []*AppsAppsAppsPageItemsApp `json:"items"`
}

AppsAppsAppsPage includes the requested fields of the GraphQL type AppsPage.

func (*AppsAppsAppsPage) GetItems added in v0.5.1

func (v *AppsAppsAppsPage) GetItems() []*AppsAppsAppsPageItemsApp

GetItems returns AppsAppsAppsPage.Items, and is useful for accessing the field via an interface.

func (*AppsAppsAppsPage) GetTotal added in v0.5.1

func (v *AppsAppsAppsPage) GetTotal() int

GetTotal returns AppsAppsAppsPage.Total, and is useful for accessing the field via an interface.

type AppsAppsAppsPageItemsApp added in v0.5.1

type AppsAppsAppsPageItemsApp 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"`
}

AppsAppsAppsPageItemsApp includes the requested fields of the GraphQL type App.

func (*AppsAppsAppsPageItemsApp) GetAgentId added in v0.5.1

func (v *AppsAppsAppsPageItemsApp) GetAgentId() *string

GetAgentId returns AppsAppsAppsPageItemsApp.AgentId, and is useful for accessing the field via an interface.

func (*AppsAppsAppsPageItemsApp) GetAppType added in v0.5.1

func (v *AppsAppsAppsPageItemsApp) GetAppType() AppType

GetAppType returns AppsAppsAppsPageItemsApp.AppType, and is useful for accessing the field via an interface.

func (*AppsAppsAppsPageItemsApp) GetCreatedAt added in v0.5.1

func (v *AppsAppsAppsPageItemsApp) GetCreatedAt() string

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

func (*AppsAppsAppsPageItemsApp) GetId added in v0.5.1

func (v *AppsAppsAppsPageItemsApp) GetId() string

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

func (*AppsAppsAppsPageItemsApp) GetMemberCount added in v0.5.1

func (v *AppsAppsAppsPageItemsApp) GetMemberCount() int

GetMemberCount returns AppsAppsAppsPageItemsApp.MemberCount, and is useful for accessing the field via an interface.

func (*AppsAppsAppsPageItemsApp) GetName added in v0.5.1

func (v *AppsAppsAppsPageItemsApp) GetName() string

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

func (*AppsAppsAppsPageItemsApp) GetUrn added in v0.5.1

func (v *AppsAppsAppsPageItemsApp) GetUrn() string

GetUrn returns AppsAppsAppsPageItemsApp.Urn, and is useful for accessing the field via an interface.

type AppsResponse

type AppsResponse struct {
	// Uniform paginated app list (#473) — replaces the org-ADMIN apps(orgId!)
	// and the member myApps. Scope: Apps in the caller's member orgs (App
	// doesn't carry a userId, so org membership is the routing); platform
	// ADMIN/OWNER unscoped get every live App. orgId follows cor:api:100:01
	// (member -> scope, non-member -> empty page, no disclosure, no admin
	// bypass). Name-ascending order (id tiebreak); limit default 50 / cap 200;
	// limit: 0 -> count only.
	Apps *AppsAppsAppsPage `json:"apps"`
}

AppsResponse is returned by Apps on success.

func Apps

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

Uniform paginated app list (hadron-server#473) — { items, total } envelope, limit capped at 200 server-side; `app ls` pages to exhaustion.

func (*AppsResponse) GetApps

func (v *AppsResponse) GetApps() *AppsAppsAppsPage

GetApps returns AppsResponse.Apps, and is useful for accessing the field via an interface.

type CancelAppRunCancelAppRun added in v0.6.0

type CancelAppRunCancelAppRun struct {
	AppRunFields `json:"-"`
}

CancelAppRunCancelAppRun includes the requested fields of the GraphQL type AppRun.

func (*CancelAppRunCancelAppRun) GetAgentId added in v0.6.0

func (v *CancelAppRunCancelAppRun) GetAgentId() *string

GetAgentId returns CancelAppRunCancelAppRun.AgentId, and is useful for accessing the field via an interface.

func (*CancelAppRunCancelAppRun) GetAppId added in v0.6.0

func (v *CancelAppRunCancelAppRun) GetAppId() string

GetAppId returns CancelAppRunCancelAppRun.AppId, and is useful for accessing the field via an interface.

func (*CancelAppRunCancelAppRun) GetAttempts added in v0.6.0

func (v *CancelAppRunCancelAppRun) GetAttempts() int

GetAttempts returns CancelAppRunCancelAppRun.Attempts, and is useful for accessing the field via an interface.

func (*CancelAppRunCancelAppRun) GetBudgetActions added in v0.6.0

func (v *CancelAppRunCancelAppRun) GetBudgetActions() *int

GetBudgetActions returns CancelAppRunCancelAppRun.BudgetActions, and is useful for accessing the field via an interface.

func (*CancelAppRunCancelAppRun) GetBudgetTokens added in v0.6.0

func (v *CancelAppRunCancelAppRun) GetBudgetTokens() *int

GetBudgetTokens returns CancelAppRunCancelAppRun.BudgetTokens, and is useful for accessing the field via an interface.

func (*CancelAppRunCancelAppRun) GetCreatedAt added in v0.6.0

func (v *CancelAppRunCancelAppRun) GetCreatedAt() string

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

func (*CancelAppRunCancelAppRun) GetCreatedBy added in v0.6.0

func (v *CancelAppRunCancelAppRun) GetCreatedBy() *string

GetCreatedBy returns CancelAppRunCancelAppRun.CreatedBy, and is useful for accessing the field via an interface.

func (*CancelAppRunCancelAppRun) GetCurNodeUrn added in v0.6.0

func (v *CancelAppRunCancelAppRun) GetCurNodeUrn() *string

GetCurNodeUrn returns CancelAppRunCancelAppRun.CurNodeUrn, and is useful for accessing the field via an interface.

func (*CancelAppRunCancelAppRun) GetEntryNodeUrn added in v0.6.0

func (v *CancelAppRunCancelAppRun) GetEntryNodeUrn() string

GetEntryNodeUrn returns CancelAppRunCancelAppRun.EntryNodeUrn, and is useful for accessing the field via an interface.

func (*CancelAppRunCancelAppRun) GetEventData added in v0.6.0

func (v *CancelAppRunCancelAppRun) GetEventData() *json.RawMessage

GetEventData returns CancelAppRunCancelAppRun.EventData, and is useful for accessing the field via an interface.

func (*CancelAppRunCancelAppRun) GetFailure added in v0.6.0

func (v *CancelAppRunCancelAppRun) GetFailure() *json.RawMessage

GetFailure returns CancelAppRunCancelAppRun.Failure, and is useful for accessing the field via an interface.

func (*CancelAppRunCancelAppRun) GetFinishedAt added in v0.6.0

func (v *CancelAppRunCancelAppRun) GetFinishedAt() *string

GetFinishedAt returns CancelAppRunCancelAppRun.FinishedAt, and is useful for accessing the field via an interface.

func (*CancelAppRunCancelAppRun) GetId added in v0.6.0

func (v *CancelAppRunCancelAppRun) GetId() string

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

func (*CancelAppRunCancelAppRun) GetOrganizationId added in v0.6.0

func (v *CancelAppRunCancelAppRun) GetOrganizationId() string

GetOrganizationId returns CancelAppRunCancelAppRun.OrganizationId, and is useful for accessing the field via an interface.

func (*CancelAppRunCancelAppRun) GetParentRunId added in v0.6.0

func (v *CancelAppRunCancelAppRun) GetParentRunId() *string

GetParentRunId returns CancelAppRunCancelAppRun.ParentRunId, and is useful for accessing the field via an interface.

func (*CancelAppRunCancelAppRun) GetPolicy added in v0.6.0

func (v *CancelAppRunCancelAppRun) GetPolicy() *json.RawMessage

GetPolicy returns CancelAppRunCancelAppRun.Policy, and is useful for accessing the field via an interface.

func (*CancelAppRunCancelAppRun) GetStartedAt added in v0.6.0

func (v *CancelAppRunCancelAppRun) GetStartedAt() *string

GetStartedAt returns CancelAppRunCancelAppRun.StartedAt, and is useful for accessing the field via an interface.

func (*CancelAppRunCancelAppRun) GetStatus added in v0.6.0

func (v *CancelAppRunCancelAppRun) GetStatus() AppRunStatus

GetStatus returns CancelAppRunCancelAppRun.Status, and is useful for accessing the field via an interface.

func (*CancelAppRunCancelAppRun) GetTimeoutMs added in v0.6.0

func (v *CancelAppRunCancelAppRun) GetTimeoutMs() *int

GetTimeoutMs returns CancelAppRunCancelAppRun.TimeoutMs, and is useful for accessing the field via an interface.

func (*CancelAppRunCancelAppRun) GetTriggerId added in v0.6.0

func (v *CancelAppRunCancelAppRun) GetTriggerId() *string

GetTriggerId returns CancelAppRunCancelAppRun.TriggerId, and is useful for accessing the field via an interface.

func (*CancelAppRunCancelAppRun) GetTriggerKind added in v0.6.0

func (v *CancelAppRunCancelAppRun) GetTriggerKind() AppRunTriggerKind

GetTriggerKind returns CancelAppRunCancelAppRun.TriggerKind, and is useful for accessing the field via an interface.

func (*CancelAppRunCancelAppRun) GetUserId added in v0.6.0

func (v *CancelAppRunCancelAppRun) GetUserId() *string

GetUserId returns CancelAppRunCancelAppRun.UserId, and is useful for accessing the field via an interface.

func (*CancelAppRunCancelAppRun) MarshalJSON added in v0.6.0

func (v *CancelAppRunCancelAppRun) MarshalJSON() ([]byte, error)

func (*CancelAppRunCancelAppRun) UnmarshalJSON added in v0.6.0

func (v *CancelAppRunCancelAppRun) UnmarshalJSON(b []byte) error

type CancelAppRunResponse added in v0.6.0

type CancelAppRunResponse struct {
	// The kill switch manual handle: PENDING/RUNNING to CANCELLED (cor:agt:010:02).
	CancelAppRun *CancelAppRunCancelAppRun `json:"cancelAppRun"`
}

CancelAppRunResponse is returned by CancelAppRun on success.

func CancelAppRun added in v0.6.0

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

The kill switch — transitions a live run to CANCELLED.

func (*CancelAppRunResponse) GetCancelAppRun added in v0.6.0

func (v *CancelAppRunResponse) GetCancelAppRun() *CancelAppRunCancelAppRun

GetCancelAppRun returns CancelAppRunResponse.CancelAppRun, 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 CreateAgentScheduleCreateAgentSchedule added in v0.6.0

type CreateAgentScheduleCreateAgentSchedule struct {
	AgentScheduleFields `json:"-"`
}

CreateAgentScheduleCreateAgentSchedule includes the requested fields of the GraphQL type AgentSchedule. The GraphQL type's documentation follows.

Recurring trigger (cor:agt:010, D-2026-07-04-E).

func (*CreateAgentScheduleCreateAgentSchedule) GetAgentId added in v0.6.0

GetAgentId returns CreateAgentScheduleCreateAgentSchedule.AgentId, and is useful for accessing the field via an interface.

func (*CreateAgentScheduleCreateAgentSchedule) GetAiConfigName added in v0.6.0

func (v *CreateAgentScheduleCreateAgentSchedule) GetAiConfigName() *string

GetAiConfigName returns CreateAgentScheduleCreateAgentSchedule.AiConfigName, and is useful for accessing the field via an interface.

func (*CreateAgentScheduleCreateAgentSchedule) GetAppId added in v0.6.0

GetAppId returns CreateAgentScheduleCreateAgentSchedule.AppId, and is useful for accessing the field via an interface.

func (*CreateAgentScheduleCreateAgentSchedule) GetCreatedAt added in v0.6.0

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

func (*CreateAgentScheduleCreateAgentSchedule) GetCreatedBy added in v0.6.0

GetCreatedBy returns CreateAgentScheduleCreateAgentSchedule.CreatedBy, and is useful for accessing the field via an interface.

func (*CreateAgentScheduleCreateAgentSchedule) GetCron added in v0.6.0

GetCron returns CreateAgentScheduleCreateAgentSchedule.Cron, and is useful for accessing the field via an interface.

func (*CreateAgentScheduleCreateAgentSchedule) GetEnabled added in v0.6.0

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

func (*CreateAgentScheduleCreateAgentSchedule) GetEntryNodeUrn added in v0.6.0

func (v *CreateAgentScheduleCreateAgentSchedule) GetEntryNodeUrn() string

GetEntryNodeUrn returns CreateAgentScheduleCreateAgentSchedule.EntryNodeUrn, and is useful for accessing the field via an interface.

func (*CreateAgentScheduleCreateAgentSchedule) GetEventData added in v0.6.0

GetEventData returns CreateAgentScheduleCreateAgentSchedule.EventData, and is useful for accessing the field via an interface.

func (*CreateAgentScheduleCreateAgentSchedule) GetId added in v0.6.0

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

func (*CreateAgentScheduleCreateAgentSchedule) GetLastRunAt added in v0.6.0

GetLastRunAt returns CreateAgentScheduleCreateAgentSchedule.LastRunAt, and is useful for accessing the field via an interface.

func (*CreateAgentScheduleCreateAgentSchedule) GetName added in v0.6.0

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

func (*CreateAgentScheduleCreateAgentSchedule) GetNextRunAt added in v0.6.0

GetNextRunAt returns CreateAgentScheduleCreateAgentSchedule.NextRunAt, and is useful for accessing the field via an interface.

func (*CreateAgentScheduleCreateAgentSchedule) GetOrganizationId added in v0.6.0

func (v *CreateAgentScheduleCreateAgentSchedule) GetOrganizationId() string

GetOrganizationId returns CreateAgentScheduleCreateAgentSchedule.OrganizationId, and is useful for accessing the field via an interface.

func (*CreateAgentScheduleCreateAgentSchedule) GetPolicy added in v0.6.0

GetPolicy returns CreateAgentScheduleCreateAgentSchedule.Policy, and is useful for accessing the field via an interface.

func (*CreateAgentScheduleCreateAgentSchedule) GetTimezone added in v0.6.0

GetTimezone returns CreateAgentScheduleCreateAgentSchedule.Timezone, and is useful for accessing the field via an interface.

func (*CreateAgentScheduleCreateAgentSchedule) GetUserId added in v0.6.0

GetUserId returns CreateAgentScheduleCreateAgentSchedule.UserId, and is useful for accessing the field via an interface.

func (*CreateAgentScheduleCreateAgentSchedule) MarshalJSON added in v0.6.0

func (v *CreateAgentScheduleCreateAgentSchedule) MarshalJSON() ([]byte, error)

func (*CreateAgentScheduleCreateAgentSchedule) UnmarshalJSON added in v0.6.0

func (v *CreateAgentScheduleCreateAgentSchedule) UnmarshalJSON(b []byte) error

type CreateAgentScheduleInput added in v0.6.0

type CreateAgentScheduleInput struct {
	AgentId *string `json:"agentId,omitempty"`
	// Named AI config for this trigger (spec-036 walk override).
	AiConfigName *string `json:"aiConfigName,omitempty"`
	// App the run executes as (ID or URN).
	AppId string `json:"appId"`
	// 5-field cron expression, evaluated in timezone (default UTC).
	Cron    string `json:"cron"`
	Enabled *bool  `json:"enabled,omitempty"`
	// Fully-qualified URN of the prompt node to run (D-2026-05-09-012/017).
	EntryNodeUrn string `json:"entryNodeUrn"`
	// Static payload merged into each run's template args.
	EventData *json.RawMessage `json:"eventData,omitempty"`
	Name      string           `json:"name"`
	// Trigger-layer allow-list { allow: [...] } — one link of the conjunctive chain (cor:acl:040).
	Policy *json.RawMessage `json:"policy,omitempty"`
	// true: the run acts on behalf of YOU (required to reach your personal memories). v1 never delegates a third party (cor:agt:010:01).
	RunAsSelf *bool   `json:"runAsSelf,omitempty"`
	Timezone  *string `json:"timezone,omitempty"`
}

func (*CreateAgentScheduleInput) GetAgentId added in v0.6.0

func (v *CreateAgentScheduleInput) GetAgentId() *string

GetAgentId returns CreateAgentScheduleInput.AgentId, and is useful for accessing the field via an interface.

func (*CreateAgentScheduleInput) GetAiConfigName added in v0.6.0

func (v *CreateAgentScheduleInput) GetAiConfigName() *string

GetAiConfigName returns CreateAgentScheduleInput.AiConfigName, and is useful for accessing the field via an interface.

func (*CreateAgentScheduleInput) GetAppId added in v0.6.0

func (v *CreateAgentScheduleInput) GetAppId() string

GetAppId returns CreateAgentScheduleInput.AppId, and is useful for accessing the field via an interface.

func (*CreateAgentScheduleInput) GetCron added in v0.6.0

func (v *CreateAgentScheduleInput) GetCron() string

GetCron returns CreateAgentScheduleInput.Cron, and is useful for accessing the field via an interface.

func (*CreateAgentScheduleInput) GetEnabled added in v0.6.0

func (v *CreateAgentScheduleInput) GetEnabled() *bool

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

func (*CreateAgentScheduleInput) GetEntryNodeUrn added in v0.6.0

func (v *CreateAgentScheduleInput) GetEntryNodeUrn() string

GetEntryNodeUrn returns CreateAgentScheduleInput.EntryNodeUrn, and is useful for accessing the field via an interface.

func (*CreateAgentScheduleInput) GetEventData added in v0.6.0

func (v *CreateAgentScheduleInput) GetEventData() *json.RawMessage

GetEventData returns CreateAgentScheduleInput.EventData, and is useful for accessing the field via an interface.

func (*CreateAgentScheduleInput) GetName added in v0.6.0

func (v *CreateAgentScheduleInput) GetName() string

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

func (*CreateAgentScheduleInput) GetPolicy added in v0.6.0

func (v *CreateAgentScheduleInput) GetPolicy() *json.RawMessage

GetPolicy returns CreateAgentScheduleInput.Policy, and is useful for accessing the field via an interface.

func (*CreateAgentScheduleInput) GetRunAsSelf added in v0.6.0

func (v *CreateAgentScheduleInput) GetRunAsSelf() *bool

GetRunAsSelf returns CreateAgentScheduleInput.RunAsSelf, and is useful for accessing the field via an interface.

func (*CreateAgentScheduleInput) GetTimezone added in v0.6.0

func (v *CreateAgentScheduleInput) GetTimezone() *string

GetTimezone returns CreateAgentScheduleInput.Timezone, and is useful for accessing the field via an interface.

type CreateAgentScheduleResponse added in v0.6.0

type CreateAgentScheduleResponse struct {
	CreateAgentSchedule *CreateAgentScheduleCreateAgentSchedule `json:"createAgentSchedule"`
}

CreateAgentScheduleResponse is returned by CreateAgentSchedule on success.

func CreateAgentSchedule added in v0.6.0

func CreateAgentSchedule(
	ctx_ context.Context,
	client_ graphql.Client,
	input *CreateAgentScheduleInput,
) (data_ *CreateAgentScheduleResponse, err_ error)

func (*CreateAgentScheduleResponse) GetCreateAgentSchedule added in v0.6.0

GetCreateAgentSchedule returns CreateAgentScheduleResponse.CreateAgentSchedule, and is useful for accessing the field via an interface.

type CreateAgentWebhookCreateAgentWebhookAgentWebhookCredentials added in v0.6.0

type CreateAgentWebhookCreateAgentWebhookAgentWebhookCredentials struct {
	AgentWebhookCredentialFields `json:"-"`
}

CreateAgentWebhookCreateAgentWebhookAgentWebhookCredentials includes the requested fields of the GraphQL type AgentWebhookCredentials. The GraphQL type's documentation follows.

Create/rotate result — path + platform token are shown ONCE.

func (*CreateAgentWebhookCreateAgentWebhookAgentWebhookCredentials) GetPath added in v0.6.0

GetPath returns CreateAgentWebhookCreateAgentWebhookAgentWebhookCredentials.Path, and is useful for accessing the field via an interface.

func (*CreateAgentWebhookCreateAgentWebhookAgentWebhookCredentials) GetToken added in v0.6.0

GetToken returns CreateAgentWebhookCreateAgentWebhookAgentWebhookCredentials.Token, and is useful for accessing the field via an interface.

func (*CreateAgentWebhookCreateAgentWebhookAgentWebhookCredentials) GetWebhook added in v0.6.0

GetWebhook returns CreateAgentWebhookCreateAgentWebhookAgentWebhookCredentials.Webhook, and is useful for accessing the field via an interface.

func (*CreateAgentWebhookCreateAgentWebhookAgentWebhookCredentials) MarshalJSON added in v0.6.0

func (*CreateAgentWebhookCreateAgentWebhookAgentWebhookCredentials) UnmarshalJSON added in v0.6.0

type CreateAgentWebhookInput added in v0.6.0

type CreateAgentWebhookInput struct {
	AgentId      *string `json:"agentId,omitempty"`
	AiConfigName *string `json:"aiConfigName,omitempty"`
	AppId        string  `json:"appId"`
	// JSON Schema for POST args (stored in v1; enforcement is follow-on).
	ArgsSchema   *json.RawMessage `json:"argsSchema,omitempty"`
	Enabled      *bool            `json:"enabled,omitempty"`
	EntryNodeUrn string           `json:"entryNodeUrn"`
	EventData    *json.RawMessage `json:"eventData,omitempty"`
	// Lowercase alphanumeric/dash, 1-64 chars — part of the URL.
	Name      string           `json:"name"`
	Policy    *json.RawMessage `json:"policy,omitempty"`
	RunAsSelf *bool            `json:"runAsSelf,omitempty"`
}

func (*CreateAgentWebhookInput) GetAgentId added in v0.6.0

func (v *CreateAgentWebhookInput) GetAgentId() *string

GetAgentId returns CreateAgentWebhookInput.AgentId, and is useful for accessing the field via an interface.

func (*CreateAgentWebhookInput) GetAiConfigName added in v0.6.0

func (v *CreateAgentWebhookInput) GetAiConfigName() *string

GetAiConfigName returns CreateAgentWebhookInput.AiConfigName, and is useful for accessing the field via an interface.

func (*CreateAgentWebhookInput) GetAppId added in v0.6.0

func (v *CreateAgentWebhookInput) GetAppId() string

GetAppId returns CreateAgentWebhookInput.AppId, and is useful for accessing the field via an interface.

func (*CreateAgentWebhookInput) GetArgsSchema added in v0.6.0

func (v *CreateAgentWebhookInput) GetArgsSchema() *json.RawMessage

GetArgsSchema returns CreateAgentWebhookInput.ArgsSchema, and is useful for accessing the field via an interface.

func (*CreateAgentWebhookInput) GetEnabled added in v0.6.0

func (v *CreateAgentWebhookInput) GetEnabled() *bool

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

func (*CreateAgentWebhookInput) GetEntryNodeUrn added in v0.6.0

func (v *CreateAgentWebhookInput) GetEntryNodeUrn() string

GetEntryNodeUrn returns CreateAgentWebhookInput.EntryNodeUrn, and is useful for accessing the field via an interface.

func (*CreateAgentWebhookInput) GetEventData added in v0.6.0

func (v *CreateAgentWebhookInput) GetEventData() *json.RawMessage

GetEventData returns CreateAgentWebhookInput.EventData, and is useful for accessing the field via an interface.

func (*CreateAgentWebhookInput) GetName added in v0.6.0

func (v *CreateAgentWebhookInput) GetName() string

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

func (*CreateAgentWebhookInput) GetPolicy added in v0.6.0

func (v *CreateAgentWebhookInput) GetPolicy() *json.RawMessage

GetPolicy returns CreateAgentWebhookInput.Policy, and is useful for accessing the field via an interface.

func (*CreateAgentWebhookInput) GetRunAsSelf added in v0.6.0

func (v *CreateAgentWebhookInput) GetRunAsSelf() *bool

GetRunAsSelf returns CreateAgentWebhookInput.RunAsSelf, and is useful for accessing the field via an interface.

type CreateAgentWebhookResponse added in v0.6.0

type CreateAgentWebhookResponse struct {
	// Create a webhook trigger — returns the URL path + platform token ONCE (D-2026-05-02).
	CreateAgentWebhook *CreateAgentWebhookCreateAgentWebhookAgentWebhookCredentials `json:"createAgentWebhook"`
}

CreateAgentWebhookResponse is returned by CreateAgentWebhook on success.

func CreateAgentWebhook added in v0.6.0

func CreateAgentWebhook(
	ctx_ context.Context,
	client_ graphql.Client,
	input *CreateAgentWebhookInput,
) (data_ *CreateAgentWebhookResponse, err_ error)

func (*CreateAgentWebhookResponse) GetCreateAgentWebhook added in v0.6.0

GetCreateAgentWebhook returns CreateAgentWebhookResponse.CreateAgentWebhook, and is useful for accessing the field via an interface.

type CreateAiServiceConfigCreateAiServiceConfig added in v0.3.0

type CreateAiServiceConfigCreateAiServiceConfig struct {
	AiServiceConfigFields `json:"-"`
}

CreateAiServiceConfigCreateAiServiceConfig includes the requested fields of the GraphQL type AiServiceConfig. The GraphQL type's documentation follows.

036-ai-service-config: a named AI service configuration (masked management view — never carries key material beyond the preview). Owned by exactly one of HadronServer / Organization / App / Agent. Resolution walks App -> Agent -> Org (of the App) -> HadronServer and returns the first ENABLED config with the requested name. Well-known fallback name: 'default' (conventional extras: 'fast', 'frontier'). Name is unique per owner.

func (*CreateAiServiceConfigCreateAiServiceConfig) GetApiKeyPreview added in v0.3.0

func (v *CreateAiServiceConfigCreateAiServiceConfig) GetApiKeyPreview() *string

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

func (*CreateAiServiceConfigCreateAiServiceConfig) GetCreatedAt added in v0.3.0

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

func (*CreateAiServiceConfigCreateAiServiceConfig) GetEnabled added in v0.3.0

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

func (*CreateAiServiceConfigCreateAiServiceConfig) GetHasApiKey added in v0.3.0

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

func (*CreateAiServiceConfigCreateAiServiceConfig) GetId added in v0.3.0

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

func (*CreateAiServiceConfigCreateAiServiceConfig) GetModel added in v0.3.0

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

func (*CreateAiServiceConfigCreateAiServiceConfig) GetName added in v0.3.0

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

func (*CreateAiServiceConfigCreateAiServiceConfig) GetOwnerId added in v0.3.0

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

func (*CreateAiServiceConfigCreateAiServiceConfig) GetOwnerType added in v0.3.0

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

func (*CreateAiServiceConfigCreateAiServiceConfig) GetParams added in v0.3.0

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

func (*CreateAiServiceConfigCreateAiServiceConfig) GetProvider added in v0.3.0

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

func (*CreateAiServiceConfigCreateAiServiceConfig) GetUpdatedAt added in v0.3.0

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

func (*CreateAiServiceConfigCreateAiServiceConfig) MarshalJSON added in v0.3.0

func (*CreateAiServiceConfigCreateAiServiceConfig) UnmarshalJSON added in v0.3.0

type CreateAiServiceConfigResponse added in v0.3.0

type CreateAiServiceConfigResponse struct {
	// 036-ai-service-config: create a named AI config on an owner entity.
	//
	// apiKey semantics: omitted = stored without a key (unusable for
	// execution until one is set); non-empty = encrypted at rest with a
	// masked preview. Name must be 1-64 lower-case [a-z0-9_-], unique per
	// owner. provider must be a known provider; params are validated per
	// provider.
	//
	// Auth: as aiServiceConfigs. ownerId accepts ID or URN
	// (HADRON_SERVER: ID only).
	CreateAiServiceConfig *CreateAiServiceConfigCreateAiServiceConfig `json:"createAiServiceConfig"`
}

CreateAiServiceConfigResponse is returned by CreateAiServiceConfig on success.

func CreateAiServiceConfig added in v0.3.0

func CreateAiServiceConfig(
	ctx_ context.Context,
	client_ graphql.Client,
	name string,
	provider string,
	model string,
	ownerId string,
	ownerType AiConfigOwnerType,
	apiKey *string,
	enabled *bool,
	params *json.RawMessage,
) (data_ *CreateAiServiceConfigResponse, err_ error)

apiKey: omitted (nil) = stored without a key; non-empty = encrypted at rest. omitempty here is nil-based, so a non-nil &false is still sent — only a nil pointer is dropped.

func (*CreateAiServiceConfigResponse) GetCreateAiServiceConfig added in v0.3.0

GetCreateAiServiceConfig returns CreateAiServiceConfigResponse.CreateAiServiceConfig, and is useful for accessing the field via an interface.

type CreateAppCreateApp

type CreateAppCreateApp struct {
	Id          string  `json:"id"`
	Urn         string  `json:"urn"`
	Name        string  `json:"name"`
	AppType     AppType `json:"appType"`
	AgentId     *string `json:"agentId"`
	MemberCount int     `json:"memberCount"`
	CreatedAt   string  `json:"createdAt"`
}

CreateAppCreateApp includes the requested fields of the GraphQL type App.

func (*CreateAppCreateApp) GetAgentId

func (v *CreateAppCreateApp) GetAgentId() *string

GetAgentId returns CreateAppCreateApp.AgentId, and is useful for accessing the field via an interface.

func (*CreateAppCreateApp) GetAppType

func (v *CreateAppCreateApp) GetAppType() AppType

GetAppType returns CreateAppCreateApp.AppType, and is useful for accessing the field via an interface.

func (*CreateAppCreateApp) GetCreatedAt

func (v *CreateAppCreateApp) GetCreatedAt() string

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

func (*CreateAppCreateApp) GetId

func (v *CreateAppCreateApp) GetId() string

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

func (*CreateAppCreateApp) GetMemberCount

func (v *CreateAppCreateApp) GetMemberCount() int

GetMemberCount returns CreateAppCreateApp.MemberCount, and is useful for accessing the field via an interface.

func (*CreateAppCreateApp) GetName

func (v *CreateAppCreateApp) GetName() string

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

func (*CreateAppCreateApp) GetUrn

func (v *CreateAppCreateApp) GetUrn() string

GetUrn returns CreateAppCreateApp.Urn, and is useful for accessing the field via an interface.

type CreateAppResponse

type CreateAppResponse struct {
	// Install an Agent into an organization, creating an App that deploys it.
	//
	// Auto-provisions an AgentOrgGrant for (orgId, agentId) on first install,
	// and adds the caller as an AppMember with role 'owner'. Required
	// AgentImports cascade automatically; optional imports cascade only when
	// their id appears in installOptional.
	//
	// 009-install-agent-flow: the cross-org install restriction (FR-009) is
	// enforced at the portal — the Install affordance is hidden for Agents
	// not owned by the calling org. The server still auto-provisions grants
	// on first install (preserved from 008); a hard server-side cross-org
	// gate is reserved for the marketplace spec.
	//
	// Accepts the entity's ID or URN.
	CreateApp *CreateAppCreateApp `json:"createApp"`
}

CreateAppResponse is returned by CreateApp on success.

func 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"`
	Name       *string                         `json:"name"`
	Loc        string                          `json:"loc"`
	IsRunnable *bool                           `json:"isRunnable"`
	Priority   int                             `json:"priority"`
	Source     *CreateEdgeCreateEdgeSourceNode `json:"source"`
	Target     *CreateEdgeCreateEdgeTargetNode `json:"target"`
}

CreateEdgeCreateEdge includes the requested fields of the GraphQL type Edge.

func (*CreateEdgeCreateEdge) GetId

func (v *CreateEdgeCreateEdge) GetId() string

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

func (*CreateEdgeCreateEdge) GetIsRunnable added in v0.3.0

func (v *CreateEdgeCreateEdge) GetIsRunnable() *bool

GetIsRunnable returns CreateEdgeCreateEdge.IsRunnable, and is useful for accessing the field via an interface.

func (*CreateEdgeCreateEdge) GetLoc added in v0.3.0

func (v *CreateEdgeCreateEdge) GetLoc() string

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

func (*CreateEdgeCreateEdge) GetName added in v0.3.0

func (v *CreateEdgeCreateEdge) GetName() *string

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

func (*CreateEdgeCreateEdge) GetPriority

func (v *CreateEdgeCreateEdge) GetPriority() int

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

func (*CreateEdgeCreateEdge) GetSource

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,
	name string,
	loc *string,
	description *string,
	isRunnable *bool,
	priority *int,
	condition *json.RawMessage,
	data *json.RawMessage,
) (data_ *CreateEdgeResponse, err_ error)

Unset optional variables must be omitted from the wire, not sent as explicit nulls — the server rejects priority: null (hadron-server#263) and treats condition/data: null as "clear".

func (*CreateEdgeResponse) GetCreateEdge

func (v *CreateEdgeResponse) GetCreateEdge() *CreateEdgeCreateEdge

GetCreateEdge returns CreateEdgeResponse.CreateEdge, and is useful for accessing the field via an interface.

type CreateMemoryCreateMemory

type CreateMemoryCreateMemory struct {
	Id               string            `json:"id"`
	Urn              string            `json:"urn"`
	Name             string            `json:"name"`
	ShortDescription *string           `json:"shortDescription"`
	Class            MemoryClass       `json:"class"`
	Visibility       *MemoryVisibility `json:"visibility"`
	OrganizationId   string            `json:"organizationId"`
	IsEncrypted      bool              `json:"isEncrypted"`
	UpdatedAt        string            `json:"updatedAt"`
}

CreateMemoryCreateMemory includes the requested fields of the GraphQL type Memory.

func (*CreateMemoryCreateMemory) GetClass

func (v *CreateMemoryCreateMemory) GetClass() MemoryClass

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

func (*CreateMemoryCreateMemory) GetId

func (v *CreateMemoryCreateMemory) GetId() string

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

func (*CreateMemoryCreateMemory) GetIsEncrypted

func (v *CreateMemoryCreateMemory) GetIsEncrypted() bool

GetIsEncrypted returns CreateMemoryCreateMemory.IsEncrypted, and is useful for accessing the field via an interface.

func (*CreateMemoryCreateMemory) GetName

func (v *CreateMemoryCreateMemory) GetName() string

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

func (*CreateMemoryCreateMemory) GetOrganizationId

func (v *CreateMemoryCreateMemory) GetOrganizationId() string

GetOrganizationId returns CreateMemoryCreateMemory.OrganizationId, and is useful for accessing the field via an interface.

func (*CreateMemoryCreateMemory) GetShortDescription

func (v *CreateMemoryCreateMemory) GetShortDescription() *string

GetShortDescription returns CreateMemoryCreateMemory.ShortDescription, and is useful for accessing the field via an interface.

func (*CreateMemoryCreateMemory) GetUpdatedAt

func (v *CreateMemoryCreateMemory) GetUpdatedAt() string

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

func (*CreateMemoryCreateMemory) GetUrn

func (v *CreateMemoryCreateMemory) GetUrn() string

GetUrn returns CreateMemoryCreateMemory.Urn, and is useful for accessing the field via an interface.

func (*CreateMemoryCreateMemory) GetVisibility

func (v *CreateMemoryCreateMemory) GetVisibility() *MemoryVisibility

GetVisibility returns CreateMemoryCreateMemory.Visibility, and is useful for accessing the field via an interface.

type CreateMemoryResponse

type CreateMemoryResponse struct {
	// Create a memory in an organization. Accepts the entity's ID or URN
	// for orgId.
	//
	// Defaults to knowledge-class with ORGANIZATION visibility. Pass
	// memoryClass: group + visibility: GROUP for a group-class memory
	// (023-app-shape US4; the caller is auto-added as the first owner),
	// or memoryClass: personal | private for an owner-only memory the
	// caller owns (spec 034 — free-standing, no app/agent; the caller
	// must be a member of the org container). system- and app-class
	// memories are NOT created here — they auto-provision via
	// Agent.systemMemoryId / the App install path.
	CreateMemory *CreateMemoryCreateMemory `json:"createMemory"`
}

CreateMemoryResponse is returned by CreateMemory on success.

func CreateMemory

func CreateMemory(
	ctx_ context.Context,
	client_ graphql.Client,
	orgId string,
	name string,
	memoryClass *MemoryClass,
	shortDescription *string,
	description *string,
	tags *[]string,
	visibility *MemoryVisibility,
) (data_ *CreateMemoryResponse, err_ error)

func (*CreateMemoryResponse) GetCreateMemory

func (v *CreateMemoryResponse) GetCreateMemory() *CreateMemoryCreateMemory

GetCreateMemory returns CreateMemoryResponse.CreateMemory, and is useful for accessing the field via an interface.

type CreateMemoryShareCreateMemoryShareCreateMemorySharePayload added in v0.3.0

type CreateMemoryShareCreateMemoryShareCreateMemorySharePayload struct {
	MemoryShare *CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShare `json:"memoryShare"`
}

CreateMemoryShareCreateMemoryShareCreateMemorySharePayload includes the requested fields of the GraphQL type CreateMemorySharePayload.

func (*CreateMemoryShareCreateMemoryShareCreateMemorySharePayload) GetMemoryShare added in v0.3.0

GetMemoryShare returns CreateMemoryShareCreateMemoryShareCreateMemorySharePayload.MemoryShare, and is useful for accessing the field via an interface.

type CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShare added in v0.3.0

type CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShare struct {
	Role MemoryShareRole `json:"role"`
	// The User who was granted access.
	Grantee *CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser `json:"grantee"`
}

CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShare includes the requested fields of the GraphQL type MemoryShare. The GraphQL type's documentation follows.

023-app-shape US3: asymmetric cross-user grant on a personal-class Memory. The principal (memory.userId) grants a grantee read/write access. Used for per-pairing isolation patterns (e.g., Alice's personal Memory paired-with-Mentor-A is distinct from her paired-with-Mentor-B Memory, each with its own MemoryShare).

func (*CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShare) GetGrantee added in v0.3.0

GetGrantee returns CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShare.Grantee, and is useful for accessing the field via an interface.

func (*CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShare) GetRole added in v0.3.0

GetRole returns CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShare.Role, and is useful for accessing the field via an interface.

type CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser added in v0.3.0

type CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser struct {
	MemUserFields `json:"-"`
}

CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser includes the requested fields of the GraphQL type User.

func (*CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser) GetEmail added in v0.3.0

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

func (*CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser) GetHandle added in v0.3.0

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

func (*CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser) GetId added in v0.3.0

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

func (*CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser) GetName added in v0.3.0

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

func (*CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser) MarshalJSON added in v0.3.0

func (*CreateMemoryShareCreateMemoryShareCreateMemorySharePayloadMemoryShareGranteeUser) UnmarshalJSON added in v0.3.0

type CreateMemoryShareResponse added in v0.3.0

type CreateMemoryShareResponse struct {
	// 023-app-shape US3 — asymmetric cross-user grant on a personal-class
	// Memory. The principal (memory.userId) grants a grantee read or
	// write access. Used for the per-pairing pattern (Alice's
	// paired-with-Mentor-A memory is distinct from her
	// paired-with-Mentor-B memory; each gets its own MemoryShare).
	//
	// Upsert semantics: re-calling with a different role on an existing
	// (memoryId, granteeId) pair updates the role rather than throwing.
	//
	// For v1 the caller MUST be the principal themselves (memory.userId
	// === ctx.userId). The Agent-mediated path (App backend acting on
	// the principal's behalf via MCP) is supported by the access-control
	// predicate but not by this GraphQL surface — see the deferred
	// policy discussion linked from joinApp.ts.
	//
	// Error codes (extensions.code, Error.name style):
	// - UNAUTHENTICATED — no logged-in user in context.
	// - FORBIDDEN — caller is not the Memory's principal. The
	// caller-authority guard runs first and deliberately does not
	// differentiate between "memory doesn't exist", "memory is not
	// personal-class", and "caller isn't the principal" — all three
	// return FORBIDDEN so memory metadata isn't leaked to
	// non-principals.
	// - MemoryShareGranteeMissingError — granteeId doesn't resolve to
	// an existing User. Only reachable when the caller passes the
	// principal guard.
	// - InvalidMemoryClassForShareError / MemoryNotFoundForShareError —
	// defined on the controller for completeness; functionally
	// unreachable via this GraphQL mutation in v1 because the
	// caller-authority guard short-circuits to FORBIDDEN first.
	CreateMemoryShare *CreateMemoryShareCreateMemoryShareCreateMemorySharePayload `json:"createMemoryShare"`
}

CreateMemoryShareResponse is returned by CreateMemoryShare on success.

func CreateMemoryShare added in v0.3.0

func CreateMemoryShare(
	ctx_ context.Context,
	client_ graphql.Client,
	memoryId string,
	granteeId string,
	role MemoryShareRole,
) (data_ *CreateMemoryShareResponse, err_ error)

func (*CreateMemoryShareResponse) GetCreateMemoryShare added in v0.3.0

GetCreateMemoryShare returns CreateMemoryShareResponse.CreateMemoryShare, and is useful for accessing the field via an interface.

type CreateNodeCreateNode added in v0.5.1

type CreateNodeCreateNode struct {
	Id         string   `json:"id"`
	MemoryId   string   `json:"memoryId"`
	Loc        string   `json:"loc"`
	Name       string   `json:"name"`
	NodeType   string   `json:"nodeType"`
	Tags       []string `json:"tags"`
	IsRunnable *bool    `json:"isRunnable"`
	UpdatedAt  string   `json:"updatedAt"`
}

CreateNodeCreateNode includes the requested fields of the GraphQL type Node.

func (*CreateNodeCreateNode) GetId added in v0.5.1

func (v *CreateNodeCreateNode) GetId() string

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

func (*CreateNodeCreateNode) GetIsRunnable added in v0.5.1

func (v *CreateNodeCreateNode) GetIsRunnable() *bool

GetIsRunnable returns CreateNodeCreateNode.IsRunnable, and is useful for accessing the field via an interface.

func (*CreateNodeCreateNode) GetLoc added in v0.5.1

func (v *CreateNodeCreateNode) GetLoc() string

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

func (*CreateNodeCreateNode) GetMemoryId added in v0.5.1

func (v *CreateNodeCreateNode) GetMemoryId() string

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

func (*CreateNodeCreateNode) GetName added in v0.5.1

func (v *CreateNodeCreateNode) GetName() string

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

func (*CreateNodeCreateNode) GetNodeType added in v0.5.1

func (v *CreateNodeCreateNode) GetNodeType() string

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

func (*CreateNodeCreateNode) GetTags added in v0.5.1

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

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

func (*CreateNodeCreateNode) GetUpdatedAt added in v0.5.1

func (v *CreateNodeCreateNode) GetUpdatedAt() string

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

type CreateNodeInput added in v0.5.1

type CreateNodeInput struct {
	// Paragraph-length summary of this node — see Node.abstract for the surfacing contract. Optional. 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"`
	// MIME type of content (#476/#488, spec cor:cnv:010:01): 'text/markdown' (default) stores as-is; 'text/html' converts captured DOM to Markdown; 'application/pdf' extracts a PDF's text layer to Markdown (send 'content' as raw base64 — a PDF is binary; scanned/image-only PDFs error). The conversion runs before storage and fills properties.title from the extracted title when not supplied. Consumed at write time — never persisted. Any other value is rejected.
	ContentType *string          `json:"contentType,omitempty"`
	Data        *json.RawMessage `json:"data,omitempty"`
	Description *string          `json:"description,omitempty"`
	// Outgoing edges to create with the node.
	Edges []*NodeEdgeInput `json:"edges,omitempty"`
	// Forced PK (importer/sync use case, e.g. a stable UUIDv7). Only ever a create-id here — never a selector (D2). Omit to mint.
	Id *string `json:"id,omitempty"`
	// Whether this node can be run as a task by hadron_run_task (cor:api:060).
	IsRunnable *bool   `json:"isRunnable,omitempty"`
	LlmModel   *string `json:"llmModel,omitempty"`
	Loc        string  `json:"loc"`
	// Memory reference. Accepts the entity's ID (CUID / 32-char hex) or its
	// URN (per spec 007 ID-or-URN dispatch). URN inputs MUST be fully
	// qualified (org:memory) per spec 022 — relative-form URNs are
	// rejected as GraphQL errors with extensions.code "URN_NOT_QUALIFIED".
	MemoryId   string           `json:"memoryId"`
	Name       string           `json:"name"`
	NodeType   *string          `json:"nodeType,omitempty"`
	OwnerRepo  *string          `json:"ownerRepo,omitempty"`
	Properties *json.RawMessage `json:"properties,omitempty"`
	// Recorded on version history only when a soft-deleted node is resurrected (a pure create snapshots nothing).
	Reason *string  `json:"reason,omitempty"`
	Seq    *int     `json:"seq,omitempty"`
	Tags   []string `json:"tags,omitempty"`
}

Input for createNode. 'memoryId', 'loc', and 'name' are required; creating is create-only — a live node at (memoryId, loc) rejects with NodeLocConflictError (spec 039 Phase 0 D1/D4).

func (*CreateNodeInput) GetAbstract added in v0.5.1

func (v *CreateNodeInput) GetAbstract() *string

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

func (*CreateNodeInput) GetAiAgent added in v0.5.1

func (v *CreateNodeInput) GetAiAgent() *string

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

func (*CreateNodeInput) GetAlias added in v0.5.1

func (v *CreateNodeInput) GetAlias() *string

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

func (*CreateNodeInput) GetContent added in v0.5.1

func (v *CreateNodeInput) GetContent() *string

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

func (*CreateNodeInput) GetContentType added in v0.6.0

func (v *CreateNodeInput) GetContentType() *string

GetContentType returns CreateNodeInput.ContentType, and is useful for accessing the field via an interface.

func (*CreateNodeInput) GetData added in v0.5.1

func (v *CreateNodeInput) GetData() *json.RawMessage

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

func (*CreateNodeInput) GetDescription added in v0.5.1

func (v *CreateNodeInput) GetDescription() *string

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

func (*CreateNodeInput) GetEdges added in v0.5.1

func (v *CreateNodeInput) GetEdges() []*NodeEdgeInput

GetEdges returns CreateNodeInput.Edges, and is useful for accessing the field via an interface.

func (*CreateNodeInput) GetId added in v0.5.1

func (v *CreateNodeInput) GetId() *string

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

func (*CreateNodeInput) GetIsRunnable added in v0.5.1

func (v *CreateNodeInput) GetIsRunnable() *bool

GetIsRunnable returns CreateNodeInput.IsRunnable, and is useful for accessing the field via an interface.

func (*CreateNodeInput) GetLlmModel added in v0.5.1

func (v *CreateNodeInput) GetLlmModel() *string

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

func (*CreateNodeInput) GetLoc added in v0.5.1

func (v *CreateNodeInput) GetLoc() string

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

func (*CreateNodeInput) GetMemoryId added in v0.5.1

func (v *CreateNodeInput) GetMemoryId() string

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

func (*CreateNodeInput) GetName added in v0.5.1

func (v *CreateNodeInput) GetName() string

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

func (*CreateNodeInput) GetNodeType added in v0.5.1

func (v *CreateNodeInput) GetNodeType() *string

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

func (*CreateNodeInput) GetOwnerRepo added in v0.5.1

func (v *CreateNodeInput) GetOwnerRepo() *string

GetOwnerRepo returns CreateNodeInput.OwnerRepo, and is useful for accessing the field via an interface.

func (*CreateNodeInput) GetProperties added in v0.5.1

func (v *CreateNodeInput) GetProperties() *json.RawMessage

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

func (*CreateNodeInput) GetReason added in v0.5.1

func (v *CreateNodeInput) GetReason() *string

GetReason returns CreateNodeInput.Reason, and is useful for accessing the field via an interface.

func (*CreateNodeInput) GetSeq added in v0.5.1

func (v *CreateNodeInput) GetSeq() *int

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

func (*CreateNodeInput) GetTags added in v0.5.1

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

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

type CreateNodeResponse added in v0.5.1

type CreateNodeResponse struct {
	// Create a single node. Rejects with NodeLocConflictError when a live node
	// already exists at (memoryId, loc) — creating is create-only (spec 039
	// Phase 0 D1); a soft-deleted node at the target loc is resurrected.
	// 'name' is required here and only here (D4).
	CreateNode *CreateNodeCreateNode `json:"createNode"`
}

CreateNodeResponse is returned by CreateNode on success.

func CreateNode added in v0.5.1

func CreateNode(
	ctx_ context.Context,
	client_ graphql.Client,
	input *CreateNodeInput,
) (data_ *CreateNodeResponse, err_ error)

Create-only node write (spec 039 Phase 0 — upsertNode is gone). A live node already at (memoryId, loc) rejects with extensions.code NodeLocConflictError. Optional fields the caller leaves unset must be omitted from the wire, not serialized as null — hence the per-field omitempty annotations.

func (*CreateNodeResponse) GetCreateNode added in v0.5.1

func (v *CreateNodeResponse) GetCreateNode() *CreateNodeCreateNode

GetCreateNode returns CreateNodeResponse.CreateNode, and is useful for accessing the field via an interface.

type CreateOrganizationCreateOrganization added in v0.3.0

type CreateOrganizationCreateOrganization struct {
	OrgFields `json:"-"`
}

CreateOrganizationCreateOrganization includes the requested fields of the GraphQL type Organization.

func (*CreateOrganizationCreateOrganization) GetCreatedAt added in v0.3.0

func (v *CreateOrganizationCreateOrganization) GetCreatedAt() string

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

func (*CreateOrganizationCreateOrganization) GetId added in v0.3.0

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

func (*CreateOrganizationCreateOrganization) GetIsVisible added in v0.3.0

func (v *CreateOrganizationCreateOrganization) GetIsVisible() *bool

GetIsVisible returns CreateOrganizationCreateOrganization.IsVisible, and is useful for accessing the field via an interface.

func (*CreateOrganizationCreateOrganization) GetName added in v0.3.0

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

func (*CreateOrganizationCreateOrganization) GetUpdatedAt added in v0.3.0

func (v *CreateOrganizationCreateOrganization) GetUpdatedAt() string

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

func (*CreateOrganizationCreateOrganization) GetUrn added in v0.3.0

GetUrn returns CreateOrganizationCreateOrganization.Urn, and is useful for accessing the field via an interface.

func (*CreateOrganizationCreateOrganization) MarshalJSON added in v0.3.0

func (v *CreateOrganizationCreateOrganization) MarshalJSON() ([]byte, error)

func (*CreateOrganizationCreateOrganization) UnmarshalJSON added in v0.3.0

func (v *CreateOrganizationCreateOrganization) UnmarshalJSON(b []byte) error

type CreateOrganizationResponse added in v0.3.0

type CreateOrganizationResponse struct {
	CreateOrganization *CreateOrganizationCreateOrganization `json:"createOrganization"`
}

CreateOrganizationResponse is returned by CreateOrganization on success.

func CreateOrganization added in v0.3.0

func CreateOrganization(
	ctx_ context.Context,
	client_ graphql.Client,
	name string,
	urn string,
) (data_ *CreateOrganizationResponse, err_ error)

func (*CreateOrganizationResponse) GetCreateOrganization added in v0.3.0

GetCreateOrganization returns CreateOrganizationResponse.CreateOrganization, and is useful for accessing the field via an interface.

type CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResult added in v0.3.0

type CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResult struct {
	RawKey     string                                                            `json:"rawKey"`
	UserApiKey *CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey `json:"userApiKey"`
}

CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResult includes the requested fields of the GraphQL type UserApiKeyCreateResult.

func (*CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResult) GetRawKey added in v0.3.0

GetRawKey returns CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResult.RawKey, and is useful for accessing the field via an interface.

func (*CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResult) GetUserApiKey added in v0.3.0

GetUserApiKey returns CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResult.UserApiKey, and is useful for accessing the field via an interface.

type CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey added in v0.3.0

type CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey struct {
	UserApiKeyFields `json:"-"`
}

CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey includes the requested fields of the GraphQL type UserApiKey.

func (*CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetCreatedAt added in v0.3.0

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

func (*CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetId added in v0.3.0

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

func (*CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetIssuedVia added in v0.3.0

GetIssuedVia returns CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey.IssuedVia, and is useful for accessing the field via an interface.

func (*CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetKeyPreview added in v0.3.0

GetKeyPreview returns CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey.KeyPreview, and is useful for accessing the field via an interface.

func (*CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetLabel added in v0.3.0

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

func (*CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetLastUsedAt added in v0.3.0

GetLastUsedAt returns CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey.LastUsedAt, and is useful for accessing the field via an interface.

func (*CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) GetRevokedAt added in v0.3.0

GetRevokedAt returns CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey.RevokedAt, and is useful for accessing the field via an interface.

func (*CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) MarshalJSON added in v0.3.0

func (*CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResultUserApiKey) UnmarshalJSON added in v0.3.0

type CreateUserApiKeyResponse added in v0.3.0

type CreateUserApiKeyResponse struct {
	// 025-oauth-for-mcp FR-004: mint a new user-scoped API key for the
	// calling User. Returns the raw key exactly once (the server stores
	// only the SHA-256 hash). Rejected with UNAUTHENTICATED for AppKey-
	// resolved callers (no user in context). Per Clarifications, label
	// is optional (portal defaults to a placeholder when omitted).
	CreateUserApiKey *CreateUserApiKeyCreateUserApiKeyUserApiKeyCreateResult `json:"createUserApiKey"`
}

CreateUserApiKeyResponse is returned by CreateUserApiKey on success.

func CreateUserApiKey added in v0.3.0

func CreateUserApiKey(
	ctx_ context.Context,
	client_ graphql.Client,
	label *string,
) (data_ *CreateUserApiKeyResponse, err_ error)

Returns the raw key EXACTLY ONCE (the server stores only its hash). label is optional — omitted lets the server apply its placeholder default.

func (*CreateUserApiKeyResponse) GetCreateUserApiKey added in v0.3.0

GetCreateUserApiKey returns CreateUserApiKeyResponse.CreateUserApiKey, and is useful for accessing the field via an interface.

type DeleteAgentScheduleResponse added in v0.6.0

type DeleteAgentScheduleResponse struct {
	DeleteAgentSchedule bool `json:"deleteAgentSchedule"`
}

DeleteAgentScheduleResponse is returned by DeleteAgentSchedule on success.

func DeleteAgentSchedule added in v0.6.0

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

func (*DeleteAgentScheduleResponse) GetDeleteAgentSchedule added in v0.6.0

func (v *DeleteAgentScheduleResponse) GetDeleteAgentSchedule() bool

GetDeleteAgentSchedule returns DeleteAgentScheduleResponse.DeleteAgentSchedule, and is useful for accessing the field via an interface.

type DeleteAgentWebhookResponse added in v0.6.0

type DeleteAgentWebhookResponse struct {
	DeleteAgentWebhook bool `json:"deleteAgentWebhook"`
}

DeleteAgentWebhookResponse is returned by DeleteAgentWebhook on success.

func DeleteAgentWebhook added in v0.6.0

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

func (*DeleteAgentWebhookResponse) GetDeleteAgentWebhook added in v0.6.0

func (v *DeleteAgentWebhookResponse) GetDeleteAgentWebhook() bool

GetDeleteAgentWebhook returns DeleteAgentWebhookResponse.DeleteAgentWebhook, and is useful for accessing the field via an interface.

type DeleteAiServiceConfigResponse added in v0.3.0

type DeleteAiServiceConfigResponse struct {
	// 036-ai-service-config: delete a named AI config (hard delete; the
	// resolution walk simply no longer finds it).
	//
	// Auth: admin rights on the owning entity (as aiServiceConfigs).
	DeleteAiServiceConfig bool `json:"deleteAiServiceConfig"`
}

DeleteAiServiceConfigResponse is returned by DeleteAiServiceConfig on success.

func DeleteAiServiceConfig added in v0.3.0

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

func (*DeleteAiServiceConfigResponse) GetDeleteAiServiceConfig added in v0.3.0

func (v *DeleteAiServiceConfigResponse) GetDeleteAiServiceConfig() bool

GetDeleteAiServiceConfig returns DeleteAiServiceConfigResponse.DeleteAiServiceConfig, and is useful for accessing the field via an interface.

type DeleteAppResponse

type DeleteAppResponse struct {
	// Soft-delete an App.
	//
	// Accepts the entity's ID or URN.
	DeleteApp bool `json:"deleteApp"`
}

DeleteAppResponse is returned by DeleteApp on success.

func 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 DeleteOrganizationResponse added in v0.3.0

type DeleteOrganizationResponse struct {
	// Soft-delete an Organization.
	//
	// Accepts the entity's ID or URN.
	DeleteOrganization bool `json:"deleteOrganization"`
}

DeleteOrganizationResponse is returned by DeleteOrganization on success.

func DeleteOrganization added in v0.3.0

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

func (*DeleteOrganizationResponse) GetDeleteOrganization added in v0.3.0

func (v *DeleteOrganizationResponse) GetDeleteOrganization() bool

GetDeleteOrganization returns DeleteOrganizationResponse.DeleteOrganization, and is useful for accessing the field via an interface.

type EffectiveAccessEffectiveAccess added in v0.4.0

type EffectiveAccessEffectiveAccess struct {
	User *EffectiveAccessEffectiveAccessUser `json:"user"`
	// Canonical URN of the resolved resource (the AiServiceConfig id when the resource is a config, which has no URN).
	ResourceUrn string `json:"resourceUrn"`
	// memory | node | app | agent | aiServiceConfig.
	ResourceKind string `json:"resourceKind"`
	CanRead      bool   `json:"canRead"`
	CanWrite     bool   `json:"canWrite"`
	// Manage grants / settings (admin/owner-equivalent).
	CanManage bool `json:"canManage"`
	CanDelete bool `json:"canDelete"`
	// Highest single clean role label (e.g. owner, writer, ADMIN); null when access is purely capability-based or absent.
	Role *string `json:"role"`
	// The reasons access is granted. Empty means no access. Ordered strongest-first.
	Grants []*EffectiveAccessEffectiveAccessGrantsAccessGrant `json:"grants"`
}

EffectiveAccessEffectiveAccess includes the requested fields of the GraphQL type EffectiveAccess. The GraphQL type's documentation follows.

issue #323: the effective access a single user has to a single resource, with the grants that confer it. An empty grants list (with all capabilities false and role null) is a first-class 'no access' answer, NOT an error.

func (*EffectiveAccessEffectiveAccess) GetCanDelete added in v0.4.0

func (v *EffectiveAccessEffectiveAccess) GetCanDelete() bool

GetCanDelete returns EffectiveAccessEffectiveAccess.CanDelete, and is useful for accessing the field via an interface.

func (*EffectiveAccessEffectiveAccess) GetCanManage added in v0.4.0

func (v *EffectiveAccessEffectiveAccess) GetCanManage() bool

GetCanManage returns EffectiveAccessEffectiveAccess.CanManage, and is useful for accessing the field via an interface.

func (*EffectiveAccessEffectiveAccess) GetCanRead added in v0.4.0

func (v *EffectiveAccessEffectiveAccess) GetCanRead() bool

GetCanRead returns EffectiveAccessEffectiveAccess.CanRead, and is useful for accessing the field via an interface.

func (*EffectiveAccessEffectiveAccess) GetCanWrite added in v0.4.0

func (v *EffectiveAccessEffectiveAccess) GetCanWrite() bool

GetCanWrite returns EffectiveAccessEffectiveAccess.CanWrite, and is useful for accessing the field via an interface.

func (*EffectiveAccessEffectiveAccess) GetGrants added in v0.4.0

GetGrants returns EffectiveAccessEffectiveAccess.Grants, and is useful for accessing the field via an interface.

func (*EffectiveAccessEffectiveAccess) GetResourceKind added in v0.4.0

func (v *EffectiveAccessEffectiveAccess) GetResourceKind() string

GetResourceKind returns EffectiveAccessEffectiveAccess.ResourceKind, and is useful for accessing the field via an interface.

func (*EffectiveAccessEffectiveAccess) GetResourceUrn added in v0.4.0

func (v *EffectiveAccessEffectiveAccess) GetResourceUrn() string

GetResourceUrn returns EffectiveAccessEffectiveAccess.ResourceUrn, and is useful for accessing the field via an interface.

func (*EffectiveAccessEffectiveAccess) GetRole added in v0.4.0

func (v *EffectiveAccessEffectiveAccess) GetRole() *string

GetRole returns EffectiveAccessEffectiveAccess.Role, and is useful for accessing the field via an interface.

func (*EffectiveAccessEffectiveAccess) GetUser added in v0.4.0

GetUser returns EffectiveAccessEffectiveAccess.User, and is useful for accessing the field via an interface.

type EffectiveAccessEffectiveAccessGrantsAccessGrant added in v0.4.0

type EffectiveAccessEffectiveAccessGrantsAccessGrant struct {
	Source AccessSource `json:"source"`
	// The role/level this particular grant confers.
	Role string `json:"role"`
	// Human label for the grant's origin (owning org URN, the inherited memory URN, the app URN, etc.); null when the grant has no distinct origin.
	Via *string `json:"via"`
}

EffectiveAccessEffectiveAccessGrantsAccessGrant includes the requested fields of the GraphQL type AccessGrant. The GraphQL type's documentation follows.

issue #323: one reason a subject has (or would have) access to a resource.

func (*EffectiveAccessEffectiveAccessGrantsAccessGrant) GetRole added in v0.4.0

GetRole returns EffectiveAccessEffectiveAccessGrantsAccessGrant.Role, and is useful for accessing the field via an interface.

func (*EffectiveAccessEffectiveAccessGrantsAccessGrant) GetSource added in v0.4.0

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

func (*EffectiveAccessEffectiveAccessGrantsAccessGrant) GetVia added in v0.4.0

GetVia returns EffectiveAccessEffectiveAccessGrantsAccessGrant.Via, and is useful for accessing the field via an interface.

type EffectiveAccessEffectiveAccessUser added in v0.4.0

type EffectiveAccessEffectiveAccessUser struct {
	Id     string  `json:"id"`
	Name   *string `json:"name"`
	Email  *string `json:"email"`
	Handle *string `json:"handle"`
}

EffectiveAccessEffectiveAccessUser includes the requested fields of the GraphQL type User.

func (*EffectiveAccessEffectiveAccessUser) GetEmail added in v0.4.0

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

func (*EffectiveAccessEffectiveAccessUser) GetHandle added in v0.4.0

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

func (*EffectiveAccessEffectiveAccessUser) GetId added in v0.4.0

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

func (*EffectiveAccessEffectiveAccessUser) GetName added in v0.4.0

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

type EffectiveAccessResponse added in v0.4.0

type EffectiveAccessResponse struct {
	// issue #323: resolve the effective access a single user has to a single
	// resource, with the grants that confer it. The authoritative backing for
	// the 'hadron access check <user> <resource>' audit command — one resolver
	// that reuses the server's authorization rules instead of re-deriving them
	// client-side.
	//
	// 'user' (the subject) accepts a User ID or a hrn:user:<handle> URN (spec
	// cor:urn:010:01). 'resource' is dispatched on URN type the same way
	// resolveUrn dispatches: a memory, node, app, agent, org, or user MUST be a
	// fully-qualified hrn:<type>: URN (a bare id is ambiguous across those kinds).
	// A bare id with no scheme prefix is treated as an AiServiceConfig id — the
	// only URN-less resource kind.
	//
	// Authorization (who may CALL this): the same visibility bar already
	// enforced on the underlying grant tables — a platform ADMIN/OWNER, an
	// ADMIN/OWNER of the resource's owning org, or (for a strict-owner memory)
	// the memory's principal. Everyone else gets FORBIDDEN, NOT a silent empty
	// result, so the command can't probe access it isn't allowed to audit.
	//
	// A subject with no access is a SUCCESS with an empty grants list (all
	// capabilities false, role null) — not NOT_FOUND. An unresolvable or
	// unknown resource ref is NOT_FOUND.
	EffectiveAccess *EffectiveAccessEffectiveAccess `json:"effectiveAccess"`
}

EffectiveAccessResponse is returned by EffectiveAccess on success.

func EffectiveAccess added in v0.4.0

func EffectiveAccess(
	ctx_ context.Context,
	client_ graphql.Client,
	user string,
	resource string,
) (data_ *EffectiveAccessResponse, err_ error)

func (*EffectiveAccessResponse) GetEffectiveAccess added in v0.4.0

GetEffectiveAccess returns EffectiveAccessResponse.EffectiveAccess, and is useful for accessing the field via an interface.

type FindNodesFindNodesFindNodesResult added in v0.5.0

type FindNodesFindNodesFindNodesResult struct {
	Total *int `json:"total"`
	// Reduced-fidelity flag(s); hits are usable. May carry MULTIPLE
	// comma-separated codes (e.g. 'no_vector_index,literal_fallback') —
	// parse the set, never compare the whole string. Codes: no_vector_index,
	// embedding_unavailable, literal_fallback.
	Degraded *string                                         `json:"degraded"`
	Reason   *string                                         `json:"reason"`
	Hits     []*FindNodesFindNodesFindNodesResultHitsNodeHit `json:"hits"`
}

FindNodesFindNodesFindNodesResult includes the requested fields of the GraphQL type FindNodesResult. The GraphQL type's documentation follows.

Envelope for findNodes (cor:api:090) — the unified node list + search field (it replaced the removed nodes + nodeSearch queries). hits carry per-hit score + vector metadata; passages carry chunk-granularity results; reason/degraded surface no-index / reduced-fidelity outcomes.

func (*FindNodesFindNodesFindNodesResult) GetDegraded added in v0.5.0

func (v *FindNodesFindNodesFindNodesResult) GetDegraded() *string

GetDegraded returns FindNodesFindNodesFindNodesResult.Degraded, and is useful for accessing the field via an interface.

func (*FindNodesFindNodesFindNodesResult) GetHits added in v0.5.0

GetHits returns FindNodesFindNodesFindNodesResult.Hits, and is useful for accessing the field via an interface.

func (*FindNodesFindNodesFindNodesResult) GetReason added in v0.5.0

func (v *FindNodesFindNodesFindNodesResult) GetReason() *string

GetReason returns FindNodesFindNodesFindNodesResult.Reason, and is useful for accessing the field via an interface.

func (*FindNodesFindNodesFindNodesResult) GetTotal added in v0.5.0

func (v *FindNodesFindNodesFindNodesResult) GetTotal() *int

GetTotal returns FindNodesFindNodesFindNodesResult.Total, and is useful for accessing the field via an interface.

type FindNodesFindNodesFindNodesResultHitsNodeHit added in v0.5.0

type FindNodesFindNodesFindNodesResultHitsNodeHit struct {
	Score *float64                                          `json:"score"`
	Node  *FindNodesFindNodesFindNodesResultHitsNodeHitNode `json:"node"`
}

FindNodesFindNodesFindNodesResultHitsNodeHit includes the requested fields of the GraphQL type NodeHit. The GraphQL type's documentation follows.

A scored node hit (cor:api:090:04). score is null for an unscored filtered list (no query).

func (*FindNodesFindNodesFindNodesResultHitsNodeHit) GetNode added in v0.5.0

GetNode returns FindNodesFindNodesFindNodesResultHitsNodeHit.Node, and is useful for accessing the field via an interface.

func (*FindNodesFindNodesFindNodesResultHitsNodeHit) GetScore added in v0.5.0

GetScore returns FindNodesFindNodesFindNodesResultHitsNodeHit.Score, and is useful for accessing the field via an interface.

type FindNodesFindNodesFindNodesResultHitsNodeHitNode added in v0.5.0

type FindNodesFindNodesFindNodesResultHitsNodeHitNode struct {
	Id         string   `json:"id"`
	MemoryId   string   `json:"memoryId"`
	Loc        string   `json:"loc"`
	Name       string   `json:"name"`
	NodeType   string   `json:"nodeType"`
	Tags       []string `json:"tags"`
	Seq        *int     `json:"seq"`
	IsRunnable *bool    `json:"isRunnable"`
	UpdatedAt  string   `json:"updatedAt"`
}

FindNodesFindNodesFindNodesResultHitsNodeHitNode includes the requested fields of the GraphQL type Node.

func (*FindNodesFindNodesFindNodesResultHitsNodeHitNode) GetId added in v0.5.0

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

func (*FindNodesFindNodesFindNodesResultHitsNodeHitNode) GetIsRunnable added in v0.5.0

GetIsRunnable returns FindNodesFindNodesFindNodesResultHitsNodeHitNode.IsRunnable, and is useful for accessing the field via an interface.

func (*FindNodesFindNodesFindNodesResultHitsNodeHitNode) GetLoc added in v0.5.0

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

func (*FindNodesFindNodesFindNodesResultHitsNodeHitNode) GetMemoryId added in v0.5.0

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

func (*FindNodesFindNodesFindNodesResultHitsNodeHitNode) GetName added in v0.5.0

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

func (*FindNodesFindNodesFindNodesResultHitsNodeHitNode) GetNodeType added in v0.5.0

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

func (*FindNodesFindNodesFindNodesResultHitsNodeHitNode) GetSeq added in v0.5.0

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

func (*FindNodesFindNodesFindNodesResultHitsNodeHitNode) GetTags added in v0.5.0

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

func (*FindNodesFindNodesFindNodesResultHitsNodeHitNode) GetUpdatedAt added in v0.5.0

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

type FindNodesMode added in v0.5.0

type FindNodesMode string

Retrieval modes for findNodes (cor:api:090:01). keyword is stemmed FTS; vector/hybrid need the memory's vector index; regex is a POSIX pattern match.

const (
	FindNodesModeHybrid  FindNodesMode = "hybrid"
	FindNodesModeKeyword FindNodesMode = "keyword"
	FindNodesModeRegex   FindNodesMode = "regex"
	FindNodesModeVector  FindNodesMode = "vector"
)

type FindNodesResponse added in v0.5.0

type FindNodesResponse struct {
	// Unified node search (cor:api:090) — the single node list + retrieval
	// surface (it replaced the removed `nodes` filter/list and `nodeSearch`
	// rank queries in PR3). Omit `query` for a filtered list in deterministic
	// order (subsumes `nodes`); pass `query` to rank by `mode`
	// (keyword | vector | hybrid | regex). Lexical modes honor boolean operators
	// (`(a OR b) AND c`, quoted phrases, NOT/-) — operator words are
	// UPPERCASE-ONLY, so natural phrases like 'not sure' search literally —
	// and `fields` as a ranking weight-mask. Malformed boolean syntax
	// (unmatched parenthesis, unterminated quote) DEGRADES to a literal phrase
	// search flagged `degraded: 'literal_fallback'` instead of erroring; only
	// mode: regex fails loudly on bad syntax. `filter` is the structured, AND-combined filter context
	// (SYSTEM memory class excluded by default; explicit wins). Returns a
	// scored-hit envelope. Access-scoped identically to the per-kind node queries.
	//
	// orgId (optional) narrows the accessible scope to a single organization the
	// caller is a member of; a non-member orgId returns an empty envelope
	// (total 0, no existence disclosure). Combined with filter.isRunnable: true
	// this is the canonical "the caller's runnable task nodes in one org" query
	// (there is no separate myTasks surface — a task is simply an isRunnable node).
	FindNodes *FindNodesFindNodesFindNodesResult `json:"findNodes"`
}

FindNodesResponse is returned by FindNodes on success.

func FindNodes added in v0.5.0

func FindNodes(
	ctx_ context.Context,
	client_ graphql.Client,
	query *string,
	mode *FindNodesMode,
	filter *NodeFilter,
	sort *NodeSort,
	limit *int,
	offset *int,
) (data_ *FindNodesResponse, err_ error)

Unified node list + search (cor:api:090) — the one field that supersedes the old `nodes` list and `nodeSearch`. Omit $query for a filtered list in deterministic order (subsumes `nodes`); pass $query to rank by $mode (keyword | vector | hybrid | regex). $filter is the structured, AND-combined selector context (memoryIds, locPrefix, nodeType, tags, isRunnable, …). Results are under hits[].node — never a bare array. Backs `node ls`, `node import`, `memory export`, and the `spec` reads; driven through api.FindNodes, which flattens hits→nodes and surfaces degraded/reason.

The server treats an omitted NodeFilter field as "no constraint"; nil pointers must therefore be omitted, not sent as null — hence the per-field omitempty annotations mirroring nodes.graphql's NodeInput contract.

func (*FindNodesResponse) GetFindNodes added in v0.5.0

GetFindNodes returns FindNodesResponse.FindNodes, 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, shared-read gate, or platform ADMIN).
	//
	// 'ref' 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,
	ref string,
) (data_ *GetMemoryResponse, err_ error)

memory(ref:) accepts the memory's PK id or URN (hadron-server#473).

func (*GetMemoryResponse) GetMemory

func (v *GetMemoryResponse) GetMemory() *GetMemoryMemory

GetMemory returns GetMemoryResponse.Memory, and is useful for accessing the field via an interface.

type GetNodeNode added in v0.5.1

type GetNodeNode struct {
	Id          string  `json:"id"`
	MemoryId    string  `json:"memoryId"`
	Loc         string  `json:"loc"`
	Name        string  `json:"name"`
	Description *string `json:"description"`
	// Paragraph-length summary of this node. Opt-in on hadron_get_node via the contentScope parameter. hadron_find_nodes preview surfacing ships in spec 031 US2 — not yet live. Never surfaced in hadron_list_nodes. Cap is 2000 characters; longer values are rejected with NodeAbstractTooLongError. Empty + whitespace-only values normalize to null. Spec 031.
	Abstract *string `json:"abstract"`
	// Spec 032 — fingerprint of the content value at the time abstract was authored. SHA-256 of plaintext content, truncated to 8 hex chars. Compared at read time against computeContentHash(node.content) to detect staleness; when the two values differ AND abstractOriginHash is non-null, the abstract may not reflect current content. System-managed; never settable via NodeInput.
	AbstractOriginHash *string                         `json:"abstractOriginHash"`
	NodeType           string                          `json:"nodeType"`
	Tags               []string                        `json:"tags"`
	Content            *string                         `json:"content"`
	Data               *json.RawMessage                `json:"data"`
	Seq                *int                            `json:"seq"`
	IsRunnable         *bool                           `json:"isRunnable"`
	CreatedAt          string                          `json:"createdAt"`
	UpdatedAt          string                          `json:"updatedAt"`
	OutgoingEdges      []*GetNodeNodeOutgoingEdgesEdge `json:"outgoingEdges"`
	IncomingEdges      []*GetNodeNodeIncomingEdgesEdge `json:"incomingEdges"`
}

GetNodeNode includes the requested fields of the GraphQL type Node.

func (*GetNodeNode) GetAbstract added in v0.5.1

func (v *GetNodeNode) GetAbstract() *string

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

func (*GetNodeNode) GetAbstractOriginHash added in v0.5.1

func (v *GetNodeNode) GetAbstractOriginHash() *string

GetAbstractOriginHash returns GetNodeNode.AbstractOriginHash, and is useful for accessing the field via an interface.

func (*GetNodeNode) GetContent added in v0.5.1

func (v *GetNodeNode) GetContent() *string

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

func (*GetNodeNode) GetCreatedAt added in v0.5.1

func (v *GetNodeNode) GetCreatedAt() string

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

func (*GetNodeNode) GetData added in v0.5.1

func (v *GetNodeNode) GetData() *json.RawMessage

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

func (*GetNodeNode) GetDescription added in v0.5.1

func (v *GetNodeNode) GetDescription() *string

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

func (*GetNodeNode) GetId added in v0.5.1

func (v *GetNodeNode) GetId() string

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

func (*GetNodeNode) GetIncomingEdges added in v0.5.1

func (v *GetNodeNode) GetIncomingEdges() []*GetNodeNodeIncomingEdgesEdge

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

func (*GetNodeNode) GetIsRunnable added in v0.5.1

func (v *GetNodeNode) GetIsRunnable() *bool

GetIsRunnable returns GetNodeNode.IsRunnable, and is useful for accessing the field via an interface.

func (*GetNodeNode) GetLoc added in v0.5.1

func (v *GetNodeNode) GetLoc() string

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

func (*GetNodeNode) GetMemoryId added in v0.5.1

func (v *GetNodeNode) GetMemoryId() string

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

func (*GetNodeNode) GetName added in v0.5.1

func (v *GetNodeNode) GetName() string

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

func (*GetNodeNode) GetNodeType added in v0.5.1

func (v *GetNodeNode) GetNodeType() string

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

func (*GetNodeNode) GetOutgoingEdges added in v0.5.1

func (v *GetNodeNode) GetOutgoingEdges() []*GetNodeNodeOutgoingEdgesEdge

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

func (*GetNodeNode) GetSeq added in v0.5.1

func (v *GetNodeNode) GetSeq() *int

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

func (*GetNodeNode) GetTags added in v0.5.1

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

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

func (*GetNodeNode) GetUpdatedAt added in v0.5.1

func (v *GetNodeNode) GetUpdatedAt() string

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

type GetNodeNodeIncomingEdgesEdge added in v0.5.1

type GetNodeNodeIncomingEdgesEdge struct {
	Id         string                                  `json:"id"`
	Name       *string                                 `json:"name"`
	Loc        string                                  `json:"loc"`
	IsRunnable *bool                                   `json:"isRunnable"`
	Priority   int                                     `json:"priority"`
	Source     *GetNodeNodeIncomingEdgesEdgeSourceNode `json:"source"`
}

GetNodeNodeIncomingEdgesEdge includes the requested fields of the GraphQL type Edge.

func (*GetNodeNodeIncomingEdgesEdge) GetId added in v0.5.1

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

func (*GetNodeNodeIncomingEdgesEdge) GetIsRunnable added in v0.5.1

func (v *GetNodeNodeIncomingEdgesEdge) GetIsRunnable() *bool

GetIsRunnable returns GetNodeNodeIncomingEdgesEdge.IsRunnable, and is useful for accessing the field via an interface.

func (*GetNodeNodeIncomingEdgesEdge) GetLoc added in v0.5.1

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

func (*GetNodeNodeIncomingEdgesEdge) GetName added in v0.5.1

func (v *GetNodeNodeIncomingEdgesEdge) GetName() *string

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

func (*GetNodeNodeIncomingEdgesEdge) GetPriority added in v0.5.1

func (v *GetNodeNodeIncomingEdgesEdge) GetPriority() int

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

func (*GetNodeNodeIncomingEdgesEdge) GetSource added in v0.5.1

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

type GetNodeNodeIncomingEdgesEdgeSourceNode added in v0.5.1

type GetNodeNodeIncomingEdgesEdgeSourceNode struct {
	Id       string `json:"id"`
	Loc      string `json:"loc"`
	MemoryId string `json:"memoryId"`
}

GetNodeNodeIncomingEdgesEdgeSourceNode includes the requested fields of the GraphQL type Node.

func (*GetNodeNodeIncomingEdgesEdgeSourceNode) GetId added in v0.5.1

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

func (*GetNodeNodeIncomingEdgesEdgeSourceNode) GetLoc added in v0.5.1

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

func (*GetNodeNodeIncomingEdgesEdgeSourceNode) GetMemoryId added in v0.5.1

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

type GetNodeNodeOutgoingEdgesEdge added in v0.5.1

type GetNodeNodeOutgoingEdgesEdge struct {
	Id         string                                  `json:"id"`
	Name       *string                                 `json:"name"`
	Loc        string                                  `json:"loc"`
	IsRunnable *bool                                   `json:"isRunnable"`
	Priority   int                                     `json:"priority"`
	Target     *GetNodeNodeOutgoingEdgesEdgeTargetNode `json:"target"`
}

GetNodeNodeOutgoingEdgesEdge includes the requested fields of the GraphQL type Edge.

func (*GetNodeNodeOutgoingEdgesEdge) GetId added in v0.5.1

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

func (*GetNodeNodeOutgoingEdgesEdge) GetIsRunnable added in v0.5.1

func (v *GetNodeNodeOutgoingEdgesEdge) GetIsRunnable() *bool

GetIsRunnable returns GetNodeNodeOutgoingEdgesEdge.IsRunnable, and is useful for accessing the field via an interface.

func (*GetNodeNodeOutgoingEdgesEdge) GetLoc added in v0.5.1

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

func (*GetNodeNodeOutgoingEdgesEdge) GetName added in v0.5.1

func (v *GetNodeNodeOutgoingEdgesEdge) GetName() *string

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

func (*GetNodeNodeOutgoingEdgesEdge) GetPriority added in v0.5.1

func (v *GetNodeNodeOutgoingEdgesEdge) GetPriority() int

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

func (*GetNodeNodeOutgoingEdgesEdge) GetTarget added in v0.5.1

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

type GetNodeNodeOutgoingEdgesEdgeTargetNode added in v0.5.1

type GetNodeNodeOutgoingEdgesEdgeTargetNode struct {
	Id       string `json:"id"`
	Loc      string `json:"loc"`
	MemoryId string `json:"memoryId"`
}

GetNodeNodeOutgoingEdgesEdgeTargetNode includes the requested fields of the GraphQL type Node.

func (*GetNodeNodeOutgoingEdgesEdgeTargetNode) GetId added in v0.5.1

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

func (*GetNodeNodeOutgoingEdgesEdgeTargetNode) GetLoc added in v0.5.1

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

func (*GetNodeNodeOutgoingEdgesEdgeTargetNode) GetMemoryId added in v0.5.1

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

type GetNodeResponse added in v0.5.1

type GetNodeResponse struct {
	// The uniform single-node read (#473) — subsumes the former nodeById(id:)
	// and node(loc:, memory:) split. 'ref' accepts, in dispatch order:
	//
	// 1. a primary key (the unambiguous read — the old nodeById),
	// 2. a fully-qualified node URN (`hrn:node:<org>::<memory>::<loc>`,
	// legacy `urn:` scheme accepted),
	// 3. a bare loc — scoped by 'memory' (an ID or URN) when given; unscoped,
	// it resolves across every readable memory and a cross-memory loc
	// collision is REJECTED with extensions.code AMBIGUOUS_NODE_LOC
	// (listing the candidate memoryIds) rather than silently returning
	// one (#335). An unprefixed 3+-segment ref whose first two segments
	// name a readable memory is treated as form 2 (a full URN); pass
	// 'memory' to force loc interpretation.
	//
	// raw: true skips Mustache template compilation. Soft-deleted nodes do not
	// resolve. Access: the caller's readable-memory set (same gate the old
	// queries used); denied and missing are both null.
	Node *GetNodeNode `json:"node"`
}

GetNodeResponse is returned by GetNode on success.

func GetNode added in v0.5.1

func GetNode(
	ctx_ context.Context,
	client_ graphql.Client,
	ref string,
) (data_ *GetNodeResponse, err_ error)

The uniform single-node read (hadron-server#473) — node(ref:) subsumes the former nodeById(id:); ref accepts a PK, a fully-qualified node URN, or a bare loc (memory-scoped via the separate `memory` arg, unused here — the CLI resolves refs to PKs first via resolveUrn).

func (*GetNodeResponse) GetNode added in v0.5.1

func (v *GetNodeResponse) GetNode() *GetNodeNode

GetNode returns GetNodeResponse.Node, and is useful for accessing the field via an interface.

type GetOrganizationOrganization added in v0.3.0

type GetOrganizationOrganization struct {
	OrgFields `json:"-"`
}

GetOrganizationOrganization includes the requested fields of the GraphQL type Organization.

func (*GetOrganizationOrganization) GetCreatedAt added in v0.3.0

func (v *GetOrganizationOrganization) GetCreatedAt() string

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

func (*GetOrganizationOrganization) GetId added in v0.3.0

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

func (*GetOrganizationOrganization) GetIsVisible added in v0.3.0

func (v *GetOrganizationOrganization) GetIsVisible() *bool

GetIsVisible returns GetOrganizationOrganization.IsVisible, and is useful for accessing the field via an interface.

func (*GetOrganizationOrganization) GetName added in v0.3.0

func (v *GetOrganizationOrganization) GetName() string

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

func (*GetOrganizationOrganization) GetUpdatedAt added in v0.3.0

func (v *GetOrganizationOrganization) GetUpdatedAt() string

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

func (*GetOrganizationOrganization) GetUrn added in v0.3.0

func (v *GetOrganizationOrganization) GetUrn() string

GetUrn returns GetOrganizationOrganization.Urn, and is useful for accessing the field via an interface.

func (*GetOrganizationOrganization) MarshalJSON added in v0.3.0

func (v *GetOrganizationOrganization) MarshalJSON() ([]byte, error)

func (*GetOrganizationOrganization) UnmarshalJSON added in v0.3.0

func (v *GetOrganizationOrganization) UnmarshalJSON(b []byte) error

type GetOrganizationResponse added in v0.3.0

type GetOrganizationResponse struct {
	// Fetch an Organization (org member or platform ADMIN).
	//
	// 'ref' accepts the entity's ID or URN.
	Organization *GetOrganizationOrganization `json:"organization"`
}

GetOrganizationResponse is returned by GetOrganization on success.

func GetOrganization added in v0.3.0

func GetOrganization(
	ctx_ context.Context,
	client_ graphql.Client,
	ref string,
) (data_ *GetOrganizationResponse, err_ error)

organization(ref:) accepts the org's PK id or URN (hadron-server#473).

func (*GetOrganizationResponse) GetOrganization added in v0.3.0

GetOrganization returns GetOrganizationResponse.Organization, and is useful for accessing the field via an interface.

type GetUserResponse added in v0.5.1

type GetUserResponse struct {
	// The uniform single-user read (#473). 'ref' accepts a primary key or a
	// `hrn:user:<handle>` URN. Resolves for the user themselves, a platform
	// ADMIN/OWNER, or a caller sharing at least one organization with the
	// target (the resolveUrn user gate); anyone else gets null — denied and
	// missing are indistinguishable, preserving #384's anti-enumeration
	// posture. PII fields (name/email) stay gated by the User field resolvers.
	User *GetUserUser `json:"user"`
}

GetUserResponse is returned by GetUser on success.

func GetUser added in v0.5.1

func GetUser(
	ctx_ context.Context,
	client_ graphql.Client,
	ref string,
) (data_ *GetUserResponse, err_ error)

The uniform single-user read (hadron-server#473): ref accepts a PK or an hrn:user:<handle> URN; denied and missing are both null (anti-enumeration). The access-check user resolution tries this before falling back to the paged search below.

func (*GetUserResponse) GetUser added in v0.5.1

func (v *GetUserResponse) GetUser() *GetUserUser

GetUser returns GetUserResponse.User, and is useful for accessing the field via an interface.

type GetUserUser added in v0.5.1

type GetUserUser struct {
	UserFields `json:"-"`
}

GetUserUser includes the requested fields of the GraphQL type User.

func (*GetUserUser) GetEmail added in v0.5.1

func (v *GetUserUser) GetEmail() *string

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

func (*GetUserUser) GetGithubUsername added in v0.5.1

func (v *GetUserUser) GetGithubUsername() *string

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

func (*GetUserUser) GetHandle added in v0.5.1

func (v *GetUserUser) GetHandle() *string

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

func (*GetUserUser) GetId added in v0.5.1

func (v *GetUserUser) GetId() string

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

func (*GetUserUser) GetName added in v0.5.1

func (v *GetUserUser) GetName() *string

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

func (*GetUserUser) GetRoles added in v0.5.1

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

GetRoles returns GetUserUser.Roles, and is useful for accessing the field via an interface.

func (*GetUserUser) MarshalJSON added in v0.5.1

func (v *GetUserUser) MarshalJSON() ([]byte, error)

func (*GetUserUser) UnmarshalJSON added in v0.5.1

func (v *GetUserUser) UnmarshalJSON(b []byte) error

type ImportNodeImportNodeImportNodeResult added in v0.6.0

type ImportNodeImportNodeImportNodeResult struct {
	Status ImportNodeStatus `json:"status"`
	// Reserved for the async path — always null in sync v1.
	JobId *string                                   `json:"jobId"`
	Node  *ImportNodeImportNodeImportNodeResultNode `json:"node"`
}

ImportNodeImportNodeImportNodeResult includes the requested fields of the GraphQL type ImportNodeResult.

func (*ImportNodeImportNodeImportNodeResult) GetJobId added in v0.6.0

GetJobId returns ImportNodeImportNodeImportNodeResult.JobId, and is useful for accessing the field via an interface.

func (*ImportNodeImportNodeImportNodeResult) GetNode added in v0.6.0

GetNode returns ImportNodeImportNodeImportNodeResult.Node, and is useful for accessing the field via an interface.

func (*ImportNodeImportNodeImportNodeResult) GetStatus added in v0.6.0

GetStatus returns ImportNodeImportNodeImportNodeResult.Status, and is useful for accessing the field via an interface.

type ImportNodeImportNodeImportNodeResultNode added in v0.6.0

type ImportNodeImportNodeImportNodeResultNode struct {
	Id        string `json:"id"`
	MemoryId  string `json:"memoryId"`
	Loc       string `json:"loc"`
	Name      string `json:"name"`
	NodeType  string `json:"nodeType"`
	UpdatedAt string `json:"updatedAt"`
}

ImportNodeImportNodeImportNodeResultNode includes the requested fields of the GraphQL type Node.

func (*ImportNodeImportNodeImportNodeResultNode) GetId added in v0.6.0

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

func (*ImportNodeImportNodeImportNodeResultNode) GetLoc added in v0.6.0

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

func (*ImportNodeImportNodeImportNodeResultNode) GetMemoryId added in v0.6.0

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

func (*ImportNodeImportNodeImportNodeResultNode) GetName added in v0.6.0

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

func (*ImportNodeImportNodeImportNodeResultNode) GetNodeType added in v0.6.0

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

func (*ImportNodeImportNodeImportNodeResultNode) GetUpdatedAt added in v0.6.0

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

type ImportNodeInput added in v0.6.0

type ImportNodeInput struct {
	// Inline source content (e.g. the Web Clipper's authenticated-DOM capture). XOR with 'url'.
	Content *string `json:"content,omitempty"`
	// MIME type of 'content': text/html (DEFAULT here — unlike createNode) converts to Markdown at the write seam; text/markdown stores as-is; application/pdf extracts a PDF's text layer to Markdown ('content' must be raw base64 — a PDF is binary; scanned/image-only PDFs error). Ignored on the url path (always HTML).
	ContentType *string `json:"contentType,omitempty"`
	// Target loc within 'memoryId'. XOR with 'nodeUrn'.
	Loc *string `json:"loc,omitempty"`
	// Target memory (ID or fully-qualified URN), with 'loc'. XOR with 'nodeUrn'.
	MemoryId *string `json:"memoryId,omitempty"`
	// Display name. Default: the extracted page/article/document title; on a re-import of an existing node the current name is preserved; a fresh create without either falls back to the loc leaf.
	Name *string `json:"name,omitempty"`
	// Default 'webpage' (or 'info' when contentType is application/pdf).
	NodeType *string `json:"nodeType,omitempty"`
	// Fully-qualified node URN naming the target (existing or new). XOR with memoryId+loc.
	NodeUrn *string `json:"nodeUrn,omitempty"`
	// Merged provenance metadata; the server sets properties.url on the url path when absent (properties.title is filled from the extracted title by the write seam).
	Properties *json.RawMessage `json:"properties,omitempty"`
	// Source URL (http/https) — fetched server-side, SSRF-guarded, WITHOUT user credentials.
	Url *string `json:"url,omitempty"`
}

Input for importNode (#457). Target: 'nodeUrn' XOR ('memoryId' + 'loc') — the URN may name a not-yet-existing node (import creates it). Source: exactly one of 'url' | 'content'.

func (*ImportNodeInput) GetContent added in v0.6.0

func (v *ImportNodeInput) GetContent() *string

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

func (*ImportNodeInput) GetContentType added in v0.6.0

func (v *ImportNodeInput) GetContentType() *string

GetContentType returns ImportNodeInput.ContentType, and is useful for accessing the field via an interface.

func (*ImportNodeInput) GetLoc added in v0.6.0

func (v *ImportNodeInput) GetLoc() *string

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

func (*ImportNodeInput) GetMemoryId added in v0.6.0

func (v *ImportNodeInput) GetMemoryId() *string

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

func (*ImportNodeInput) GetName added in v0.6.0

func (v *ImportNodeInput) GetName() *string

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

func (*ImportNodeInput) GetNodeType added in v0.6.0

func (v *ImportNodeInput) GetNodeType() *string

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

func (*ImportNodeInput) GetNodeUrn added in v0.6.0

func (v *ImportNodeInput) GetNodeUrn() *string

GetNodeUrn returns ImportNodeInput.NodeUrn, and is useful for accessing the field via an interface.

func (*ImportNodeInput) GetProperties added in v0.6.0

func (v *ImportNodeInput) GetProperties() *json.RawMessage

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

func (*ImportNodeInput) GetUrl added in v0.6.0

func (v *ImportNodeInput) GetUrl() *string

GetUrl returns ImportNodeInput.Url, and is useful for accessing the field via an interface.

type ImportNodeResponse added in v0.6.0

type ImportNodeResponse struct {
	// Import external content into a node (#457, sync v1). Source: exactly one
	// of 'url' (server-fetched inline, SSRF-guarded, Readability-extracted,
	// ~30s budget — the fetch carries NO user credentials, so authenticated
	// pages must come as 'content') or 'content' (client-captured, e.g. the
	// Web Clipper's authenticated DOM). Target: 'nodeUrn' XOR ('memoryId' +
	// 'loc'); an existing node is updated IN PLACE (NodeVersion snapshot is
	// the undo), a missing one is created. HTML converts to Markdown at the
	// write seam (contentType defaults to text/html here, unlike createNode).
	ImportNode *ImportNodeImportNodeImportNodeResult `json:"importNode"`
}

ImportNodeResponse is returned by ImportNode on success.

func ImportNode added in v0.6.0

func ImportNode(
	ctx_ context.Context,
	client_ graphql.Client,
	input *ImportNodeInput,
) (data_ *ImportNodeResponse, err_ error)

Import external content into a node (cor:api:130 / importNode #457, #488). Target: $nodeUrn XOR ($memoryId + $loc) — the URN may name a not-yet-existing node (import creates it). Source: exactly one of $url or $content; for application/pdf the $content is raw base64. Every input field is optional, and the server reads an *omitted* field differently from an explicit null — nil pointers must be omitted from the wire, hence the per-field omitempty annotations. Backs `hadron node import`'s content mode.

func (*ImportNodeResponse) GetImportNode added in v0.6.0

GetImportNode returns ImportNodeResponse.ImportNode, and is useful for accessing the field via an interface.

type ImportNodeStatus added in v0.6.0

type ImportNodeStatus string

importNode outcome. Sync v1 always returns STORED with the stored node; FETCH_PENDING + jobId are RESERVED for the future async url path (same API shape, no breaking change when it lands).

const (
	ImportNodeStatusFetchPending ImportNodeStatus = "FETCH_PENDING"
	ImportNodeStatusStored       ImportNodeStatus = "STORED"
)

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 MemUserFields added in v0.3.0

type MemUserFields struct {
	Id     string  `json:"id"`
	Name   *string `json:"name"`
	Email  *string `json:"email"`
	Handle *string `json:"handle"`
}

MemUserFields includes the GraphQL fields of User requested by the fragment MemUserFields.

func (*MemUserFields) GetEmail added in v0.3.0

func (v *MemUserFields) GetEmail() *string

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

func (*MemUserFields) GetHandle added in v0.3.0

func (v *MemUserFields) GetHandle() *string

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

func (*MemUserFields) GetId added in v0.3.0

func (v *MemUserFields) GetId() string

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

func (*MemUserFields) GetName added in v0.3.0

func (v *MemUserFields) GetName() *string

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

type MemoriesMemoriesMemoriesPage added in v0.5.1

type MemoriesMemoriesMemoriesPage struct {
	Total int                                        `json:"total"`
	Items []*MemoriesMemoriesMemoriesPageItemsMemory `json:"items"`
}

MemoriesMemoriesMemoriesPage includes the requested fields of the GraphQL type MemoriesPage.

func (*MemoriesMemoriesMemoriesPage) GetItems added in v0.5.1

GetItems returns MemoriesMemoriesMemoriesPage.Items, and is useful for accessing the field via an interface.

func (*MemoriesMemoriesMemoriesPage) GetTotal added in v0.5.1

func (v *MemoriesMemoriesMemoriesPage) GetTotal() int

GetTotal returns MemoriesMemoriesMemoriesPage.Total, and is useful for accessing the field via an interface.

type MemoriesMemoriesMemoriesPageItemsMemory added in v0.5.1

type MemoriesMemoriesMemoriesPageItemsMemory 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"`
}

MemoriesMemoriesMemoriesPageItemsMemory includes the requested fields of the GraphQL type Memory.

func (*MemoriesMemoriesMemoriesPageItemsMemory) GetClass added in v0.5.1

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

func (*MemoriesMemoriesMemoriesPageItemsMemory) GetId added in v0.5.1

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

func (*MemoriesMemoriesMemoriesPageItemsMemory) GetIsEncrypted added in v0.5.1

func (v *MemoriesMemoriesMemoriesPageItemsMemory) GetIsEncrypted() bool

GetIsEncrypted returns MemoriesMemoriesMemoriesPageItemsMemory.IsEncrypted, and is useful for accessing the field via an interface.

func (*MemoriesMemoriesMemoriesPageItemsMemory) GetName added in v0.5.1

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

func (*MemoriesMemoriesMemoriesPageItemsMemory) GetOrganizationId added in v0.5.1

func (v *MemoriesMemoriesMemoriesPageItemsMemory) GetOrganizationId() string

GetOrganizationId returns MemoriesMemoriesMemoriesPageItemsMemory.OrganizationId, and is useful for accessing the field via an interface.

func (*MemoriesMemoriesMemoriesPageItemsMemory) GetShortDescription added in v0.5.1

func (v *MemoriesMemoriesMemoriesPageItemsMemory) GetShortDescription() *string

GetShortDescription returns MemoriesMemoriesMemoriesPageItemsMemory.ShortDescription, and is useful for accessing the field via an interface.

func (*MemoriesMemoriesMemoriesPageItemsMemory) GetUpdatedAt added in v0.5.1

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

func (*MemoriesMemoriesMemoriesPageItemsMemory) GetUrn added in v0.5.1

GetUrn returns MemoriesMemoriesMemoriesPageItemsMemory.Urn, and is useful for accessing the field via an interface.

func (*MemoriesMemoriesMemoriesPageItemsMemory) GetVisibility added in v0.5.1

GetVisibility returns MemoriesMemoriesMemoriesPageItemsMemory.Visibility, and is useful for accessing the field via an interface.

type MemoriesResponse added in v0.5.1

type MemoriesResponse struct {
	// Uniform paginated memory list (#473) — replaces myMemories,
	// publicMemories, and orgSystemMemories.
	//
	// Default scope: the caller's union — (1) their OWN personal/private
	// memories (always; they are user-owned and show in every org context),
	// (2) memories their member orgs own, (3) memories their member orgs
	// subscribe to. Per-user agent memories (userMemoryOfAgentId) are excluded.
	// App-key callers get the union of their installed Agents' memory items.
	//
	// filter.visibility: PUBLIC selects the public marketplace slice instead
	// (every PUBLIC memory — the old publicMemories). filter.memoryClasses
	// restricts to exactly the listed classes; omitted, the noisy agent system
	// class is hidden by default (pass it explicitly to surface system
	// memories, e.g. the old orgSystemMemories = orgId + memoryClasses:
	// [system]).
	//
	// orgId follows cor:api:100:01: member -> the "active organization" view
	// (own personal/private + that org's owned + subscribed memories);
	// non-member -> empty page, no existence disclosure, no admin bypass.
	//
	// Name-ascending order (id tiebreak); limit default 50 / cap 200;
	// limit: 0 -> count only.
	Memories *MemoriesMemoriesMemoriesPage `json:"memories"`
}

MemoriesResponse is returned by Memories on success.

func Memories added in v0.5.1

func Memories(
	ctx_ context.Context,
	client_ graphql.Client,
	filter *MemoryFilter,
	limit *int,
	offset *int,
) (data_ *MemoriesResponse, err_ error)

Uniform paginated memory list (hadron-server#473) — replaces myMemories. The noisy agent system class is hidden unless filter.memoryClasses names it explicitly; limit is capped at 200 server-side, so whole-scope callers page to exhaustion (api.CollectAll).

func (*MemoriesResponse) GetMemories added in v0.5.1

GetMemories returns MemoriesResponse.Memories, 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 MemoryFilter added in v0.5.1

type MemoryFilter struct {
	// Restrict to exactly these classes. Omitted, the noisy agent system class is hidden by default; pass it explicitly to surface system memories.
	MemoryClasses []MemoryClass `json:"memoryClasses,omitempty"`
	// Restrict by visibility. PUBLIC selects the marketplace slice (see above).
	Visibility *MemoryVisibility `json:"visibility,omitempty"`
}

Filter for the uniform memories() list (#473). All clauses AND-combine and only ever narrow the caller's accessible scope — with one documented scope SELECTION: visibility: PUBLIC switches from the caller's own union (org-owned + org-subscribed + own personal/private) to the public marketplace slice (every PUBLIC memory — the old publicMemories query). Both slices are readable by the caller, so this never widens access.

func (*MemoryFilter) GetMemoryClasses added in v0.5.1

func (v *MemoryFilter) GetMemoryClasses() []MemoryClass

GetMemoryClasses returns MemoryFilter.MemoryClasses, and is useful for accessing the field via an interface.

func (*MemoryFilter) GetVisibility added in v0.5.1

func (v *MemoryFilter) GetVisibility() *MemoryVisibility

GetVisibility returns MemoryFilter.Visibility, and is useful for accessing the field via an interface.

type MemoryMemberRole added in v0.3.0

type MemoryMemberRole string

023-app-shape US4: role on a MemoryMember row. Symmetric team membership for group-class memory. - reader: read access. - writer: read + write (the member can add/edit/delete nodes within the memory). - owner: read + write + management — add/remove other members, change roles, delete the Memory itself. Subject to the last-owner protection rule (FR-038): the platform refuses to remove or demote the sole remaining owner; the path to fully empty a group memory is to delete it.

const (
	MemoryMemberRoleOwner  MemoryMemberRole = "owner"
	MemoryMemberRoleReader MemoryMemberRole = "reader"
	MemoryMemberRoleWriter MemoryMemberRole = "writer"
)

type MemoryMembersMemory added in v0.3.0

type MemoryMembersMemory struct {
	Id string `json:"id"`
	// 023-app-shape US4: team membership rows on this memory. Non-empty
	// only when class = group (FR-027). Visible to any current member
	// (any role) and to ADMIN/OWNER of the memory's owning org.
	Members []*MemoryMembersMemoryMembersMemoryMember `json:"members"`
}

MemoryMembersMemory includes the requested fields of the GraphQL type Memory.

func (*MemoryMembersMemory) GetId added in v0.3.0

func (v *MemoryMembersMemory) GetId() string

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

func (*MemoryMembersMemory) GetMembers added in v0.3.0

GetMembers returns MemoryMembersMemory.Members, and is useful for accessing the field via an interface.

type MemoryMembersMemoryMembersMemoryMember added in v0.3.0

type MemoryMembersMemoryMembersMemoryMember struct {
	Role      MemoryMemberRole                            `json:"role"`
	CreatedAt string                                      `json:"createdAt"`
	User      *MemoryMembersMemoryMembersMemoryMemberUser `json:"user"`
}

MemoryMembersMemoryMembersMemoryMember includes the requested fields of the GraphQL type MemoryMember. The GraphQL type's documentation follows.

023-app-shape US4: symmetric team-membership row for group-class memory. The "Company Brain" model — multiple users collaboratively read/write a shared memory, governance by role, no single owner on the Memory itself.

func (*MemoryMembersMemoryMembersMemoryMember) GetCreatedAt added in v0.3.0

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

func (*MemoryMembersMemoryMembersMemoryMember) GetRole added in v0.3.0

GetRole returns MemoryMembersMemoryMembersMemoryMember.Role, and is useful for accessing the field via an interface.

func (*MemoryMembersMemoryMembersMemoryMember) GetUser added in v0.3.0

GetUser returns MemoryMembersMemoryMembersMemoryMember.User, and is useful for accessing the field via an interface.

type MemoryMembersMemoryMembersMemoryMemberUser added in v0.3.0

type MemoryMembersMemoryMembersMemoryMemberUser struct {
	MemUserFields `json:"-"`
}

MemoryMembersMemoryMembersMemoryMemberUser includes the requested fields of the GraphQL type User.

func (*MemoryMembersMemoryMembersMemoryMemberUser) GetEmail added in v0.3.0

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

func (*MemoryMembersMemoryMembersMemoryMemberUser) GetHandle added in v0.3.0

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

func (*MemoryMembersMemoryMembersMemoryMemberUser) GetId added in v0.3.0

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

func (*MemoryMembersMemoryMembersMemoryMemberUser) GetName added in v0.3.0

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

func (*MemoryMembersMemoryMembersMemoryMemberUser) MarshalJSON added in v0.3.0

func (*MemoryMembersMemoryMembersMemoryMemberUser) UnmarshalJSON added in v0.3.0

type MemoryMembersResponse added in v0.3.0

type MemoryMembersResponse struct {
	// Fetch a single Memory (org member, shared-read gate, or platform ADMIN).
	//
	// 'ref' accepts the entity's ID or URN.
	Memory *MemoryMembersMemory `json:"memory"`
}

MemoryMembersResponse is returned by MemoryMembers on success.

func MemoryMembers added in v0.3.0

func MemoryMembers(
	ctx_ context.Context,
	client_ graphql.Client,
	ref string,
) (data_ *MemoryMembersResponse, err_ error)

memory(ref) — PK id or URN (hadron-server#473) — is the path to a memory's member/share rows.

func (*MemoryMembersResponse) GetMemory added in v0.3.0

GetMemory returns MemoryMembersResponse.Memory, and is useful for accessing the field via an interface.

type MemoryShareRole added in v0.3.0

type MemoryShareRole string

023-app-shape US3: role on a MemoryShare row. Asymmetric grant for personal-class memory. - reader: read access only. - writer: read + write (the grantee can add/edit/delete nodes within the memory).

const (
	MemoryShareRoleReader MemoryShareRole = "reader"
	MemoryShareRoleWriter MemoryShareRole = "writer"
)

type MemorySharesMemory added in v0.3.0

type MemorySharesMemory struct {
	Id string `json:"id"`
	// 023-app-shape US3: cross-user grants on this memory. Non-empty
	// only when class = personal (FR-018). Includes grantee + role for
	// each row. Visible only to the principal (memory.userId) and to
	// ADMIN/OWNER of the memory's owning org.
	Shares []*MemorySharesMemorySharesMemoryShare `json:"shares"`
}

MemorySharesMemory includes the requested fields of the GraphQL type Memory.

func (*MemorySharesMemory) GetId added in v0.3.0

func (v *MemorySharesMemory) GetId() string

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

func (*MemorySharesMemory) GetShares added in v0.3.0

GetShares returns MemorySharesMemory.Shares, and is useful for accessing the field via an interface.

type MemorySharesMemorySharesMemoryShare added in v0.3.0

type MemorySharesMemorySharesMemoryShare struct {
	Role      MemoryShareRole `json:"role"`
	CreatedAt string          `json:"createdAt"`
	// The User who was granted access.
	Grantee *MemorySharesMemorySharesMemoryShareGranteeUser `json:"grantee"`
}

MemorySharesMemorySharesMemoryShare includes the requested fields of the GraphQL type MemoryShare. The GraphQL type's documentation follows.

023-app-shape US3: asymmetric cross-user grant on a personal-class Memory. The principal (memory.userId) grants a grantee read/write access. Used for per-pairing isolation patterns (e.g., Alice's personal Memory paired-with-Mentor-A is distinct from her paired-with-Mentor-B Memory, each with its own MemoryShare).

func (*MemorySharesMemorySharesMemoryShare) GetCreatedAt added in v0.3.0

func (v *MemorySharesMemorySharesMemoryShare) GetCreatedAt() string

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

func (*MemorySharesMemorySharesMemoryShare) GetGrantee added in v0.3.0

GetGrantee returns MemorySharesMemorySharesMemoryShare.Grantee, and is useful for accessing the field via an interface.

func (*MemorySharesMemorySharesMemoryShare) GetRole added in v0.3.0

GetRole returns MemorySharesMemorySharesMemoryShare.Role, and is useful for accessing the field via an interface.

type MemorySharesMemorySharesMemoryShareGranteeUser added in v0.3.0

type MemorySharesMemorySharesMemoryShareGranteeUser struct {
	MemUserFields `json:"-"`
}

MemorySharesMemorySharesMemoryShareGranteeUser includes the requested fields of the GraphQL type User.

func (*MemorySharesMemorySharesMemoryShareGranteeUser) GetEmail added in v0.3.0

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

func (*MemorySharesMemorySharesMemoryShareGranteeUser) GetHandle added in v0.3.0

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

func (*MemorySharesMemorySharesMemoryShareGranteeUser) GetId added in v0.3.0

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

func (*MemorySharesMemorySharesMemoryShareGranteeUser) GetName added in v0.3.0

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

func (*MemorySharesMemorySharesMemoryShareGranteeUser) MarshalJSON added in v0.3.0

func (*MemorySharesMemorySharesMemoryShareGranteeUser) UnmarshalJSON added in v0.3.0

type MemorySharesResponse added in v0.3.0

type MemorySharesResponse struct {
	// Fetch a single Memory (org member, shared-read gate, or platform ADMIN).
	//
	// 'ref' accepts the entity's ID or URN.
	Memory *MemorySharesMemory `json:"memory"`
}

MemorySharesResponse is returned by MemoryShares on success.

func MemoryShares added in v0.3.0

func MemoryShares(
	ctx_ context.Context,
	client_ graphql.Client,
	ref string,
) (data_ *MemorySharesResponse, err_ error)

func (*MemorySharesResponse) GetMemory added in v0.3.0

func (v *MemorySharesResponse) GetMemory() *MemorySharesMemory

GetMemory returns MemorySharesResponse.Memory, and is useful for accessing the field via an interface.

type MemoryVisibility

type MemoryVisibility string

035-visibility-enum-cleanup: meaningful only for knowledge (PUBLIC/ORGANIZATION) and group (GROUP); null otherwise. PERSONAL/PRIVATE were dropped — privacy is the personal/private memory CLASS now.

const (
	// 023-app-shape US4: team-shared visibility. Bound bidirectionally
	// to MemoryClass.group by the chk_memory_group_visibility CHECK
	// constraint — a memory has class=group iff visibility=GROUP.
	MemoryVisibilityGroup        MemoryVisibility = "GROUP"
	MemoryVisibilityOrganization MemoryVisibility = "ORGANIZATION"
	MemoryVisibilityPublic       MemoryVisibility = "PUBLIC"
)

type MintActionTicketsInput added in v0.6.0

type MintActionTicketsInput struct {
	// v1: comm.outbound only.
	Action string `json:"action"`
	// Scope tickets to one App; omit for org-wide.
	AppId     *string `json:"appId,omitempty"`
	Count     int     `json:"count"`
	ExpiresAt *string `json:"expiresAt,omitempty"`
	// Ledger legibility — why these tickets exist.
	Note  *string `json:"note,omitempty"`
	OrgId string  `json:"orgId"`
}

func (*MintActionTicketsInput) GetAction added in v0.6.0

func (v *MintActionTicketsInput) GetAction() string

GetAction returns MintActionTicketsInput.Action, and is useful for accessing the field via an interface.

func (*MintActionTicketsInput) GetAppId added in v0.6.0

func (v *MintActionTicketsInput) GetAppId() *string

GetAppId returns MintActionTicketsInput.AppId, and is useful for accessing the field via an interface.

func (*MintActionTicketsInput) GetCount added in v0.6.0

func (v *MintActionTicketsInput) GetCount() int

GetCount returns MintActionTicketsInput.Count, and is useful for accessing the field via an interface.

func (*MintActionTicketsInput) GetExpiresAt added in v0.6.0

func (v *MintActionTicketsInput) GetExpiresAt() *string

GetExpiresAt returns MintActionTicketsInput.ExpiresAt, and is useful for accessing the field via an interface.

func (*MintActionTicketsInput) GetNote added in v0.6.0

func (v *MintActionTicketsInput) GetNote() *string

GetNote returns MintActionTicketsInput.Note, and is useful for accessing the field via an interface.

func (*MintActionTicketsInput) GetOrgId added in v0.6.0

func (v *MintActionTicketsInput) GetOrgId() string

GetOrgId returns MintActionTicketsInput.OrgId, and is useful for accessing the field via an interface.

type MintActionTicketsResponse added in v0.6.0

type MintActionTicketsResponse struct {
	// Mint comm.outbound tickets into the org ledger (org-ADMIN; cor:acl:050:04).
	MintActionTickets int `json:"mintActionTickets"`
}

MintActionTicketsResponse is returned by MintActionTickets on success.

func MintActionTickets added in v0.6.0

func MintActionTickets(
	ctx_ context.Context,
	client_ graphql.Client,
	input *MintActionTicketsInput,
) (data_ *MintActionTicketsResponse, err_ error)

Mint N consumable tickets into the org ledger; returns the count minted.

func (*MintActionTicketsResponse) GetMintActionTickets added in v0.6.0

func (v *MintActionTicketsResponse) GetMintActionTickets() int

GetMintActionTickets returns MintActionTicketsResponse.MintActionTickets, and is useful for accessing the field via an interface.

type MyUserApiKeysMyUserApiKeysUserApiKey added in v0.3.0

type MyUserApiKeysMyUserApiKeysUserApiKey struct {
	UserApiKeyFields `json:"-"`
}

MyUserApiKeysMyUserApiKeysUserApiKey includes the requested fields of the GraphQL type UserApiKey.

func (*MyUserApiKeysMyUserApiKeysUserApiKey) GetCreatedAt added in v0.3.0

func (v *MyUserApiKeysMyUserApiKeysUserApiKey) GetCreatedAt() string

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

func (*MyUserApiKeysMyUserApiKeysUserApiKey) GetId added in v0.3.0

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

func (*MyUserApiKeysMyUserApiKeysUserApiKey) GetIssuedVia added in v0.3.0

func (v *MyUserApiKeysMyUserApiKeysUserApiKey) GetIssuedVia() *string

GetIssuedVia returns MyUserApiKeysMyUserApiKeysUserApiKey.IssuedVia, and is useful for accessing the field via an interface.

func (*MyUserApiKeysMyUserApiKeysUserApiKey) GetKeyPreview added in v0.3.0

func (v *MyUserApiKeysMyUserApiKeysUserApiKey) GetKeyPreview() string

GetKeyPreview returns MyUserApiKeysMyUserApiKeysUserApiKey.KeyPreview, and is useful for accessing the field via an interface.

func (*MyUserApiKeysMyUserApiKeysUserApiKey) GetLabel added in v0.3.0

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

func (*MyUserApiKeysMyUserApiKeysUserApiKey) GetLastUsedAt added in v0.3.0

func (v *MyUserApiKeysMyUserApiKeysUserApiKey) GetLastUsedAt() *string

GetLastUsedAt returns MyUserApiKeysMyUserApiKeysUserApiKey.LastUsedAt, and is useful for accessing the field via an interface.

func (*MyUserApiKeysMyUserApiKeysUserApiKey) GetRevokedAt added in v0.3.0

func (v *MyUserApiKeysMyUserApiKeysUserApiKey) GetRevokedAt() *string

GetRevokedAt returns MyUserApiKeysMyUserApiKeysUserApiKey.RevokedAt, and is useful for accessing the field via an interface.

func (*MyUserApiKeysMyUserApiKeysUserApiKey) MarshalJSON added in v0.3.0

func (v *MyUserApiKeysMyUserApiKeysUserApiKey) MarshalJSON() ([]byte, error)

func (*MyUserApiKeysMyUserApiKeysUserApiKey) UnmarshalJSON added in v0.3.0

func (v *MyUserApiKeysMyUserApiKeysUserApiKey) UnmarshalJSON(b []byte) error

type MyUserApiKeysResponse added in v0.3.0

type MyUserApiKeysResponse struct {
	// 025-oauth-for-mcp FR-004: list the calling User's API keys (active
	// + revoked, createdAt DESC). Powers Phase 3's portal revocation UI
	// (SC-006). Rejected with UNAUTHENTICATED for AppKey-resolved
	// callers (no user in context). PR-137 review delta D5 — Query
	// not present in PR 137.
	MyUserApiKeys []*MyUserApiKeysMyUserApiKeysUserApiKey `json:"myUserApiKeys"`
}

MyUserApiKeysResponse is returned by MyUserApiKeys on success.

func MyUserApiKeys added in v0.3.0

func MyUserApiKeys(
	ctx_ context.Context,
	client_ graphql.Client,
) (data_ *MyUserApiKeysResponse, err_ error)

func (*MyUserApiKeysResponse) GetMyUserApiKeys added in v0.3.0

GetMyUserApiKeys returns MyUserApiKeysResponse.MyUserApiKeys, and is useful for accessing the field via an interface.

type NodeBatchNodeBatchNodeBatchResult added in v0.2.0

type NodeBatchNodeBatchNodeBatchResult struct {
	Truncated   bool                                          `json:"truncated"`
	Omitted     []string                                      `json:"omitted"`
	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 hadron_get_node via the contentScope parameter. hadron_find_nodes preview surfacing ships in spec 031 US2 — not yet live. Never surfaced in hadron_list_nodes. Cap is 2000 characters; longer values are rejected with NodeAbstractTooLongError. Empty + whitespace-only values normalize to null. Spec 031.
	Abstract *string `json:"abstract"`
	// Spec 032 — fingerprint of the content value at the time abstract was authored. SHA-256 of plaintext content, truncated to 8 hex chars. Compared at read time against computeContentHash(node.content) to detect staleness; when the two values differ AND abstractOriginHash is non-null, the abstract may not reflect current content. System-managed; never settable via NodeInput.
	AbstractOriginHash *string                                                        `json:"abstractOriginHash"`
	Tags               []string                                                       `json:"tags"`
	Seq                *int                                                           `json:"seq"`
	Data               *json.RawMessage                                               `json:"data"`
	Properties         *json.RawMessage                                               `json:"properties"`
	Content            *string                                                        `json:"content"`
	UpdatedAt          string                                                         `json:"updatedAt"`
	OutgoingEdges      []*NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge `json:"outgoingEdges"`
	IncomingEdges      []*NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge `json:"incomingEdges"`
}

NodeBatchNodeBatchNodeBatchResultNodesNode includes the requested fields of the GraphQL type Node.

func (*NodeBatchNodeBatchNodeBatchResultNodesNode) GetAbstract added in v0.2.0

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 {
	Name       *string                                                                `json:"name"`
	Loc        string                                                                 `json:"loc"`
	IsRunnable *bool                                                                  `json:"isRunnable"`
	Source     *NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdgeSourceNode `json:"source"`
}

NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge includes the requested fields of the GraphQL type Edge.

func (*NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge) GetIsRunnable added in v0.3.0

GetIsRunnable returns NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge.IsRunnable, and is useful for accessing the field via an interface.

func (*NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge) GetLoc added in v0.3.0

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

func (*NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge) GetName added in v0.3.0

GetName returns NodeBatchNodeBatchNodeBatchResultNodesNodeIncomingEdgesEdge.Name, 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 {
	Name        *string                                                                `json:"name"`
	Loc         string                                                                 `json:"loc"`
	Description *string                                                                `json:"description"`
	IsRunnable  *bool                                                                  `json:"isRunnable"`
	Priority    int                                                                    `json:"priority"`
	Condition   *json.RawMessage                                                       `json:"condition"`
	Target      *NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdgeTargetNode `json:"target"`
}

NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge includes the requested fields of the GraphQL type Edge.

func (*NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetCondition added in v0.2.0

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

func (*NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetDescription added in v0.3.0

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

func (*NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetIsRunnable added in v0.3.0

GetIsRunnable returns NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge.IsRunnable, and is useful for accessing the field via an interface.

func (*NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetLoc added in v0.3.0

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

func (*NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge) GetName added in v0.3.0

GetName returns NodeBatchNodeBatchNodeBatchResultNodesNodeOutgoingEdgesEdge.Name, 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 node(ref:) 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 the single-node
	// 'node' read), 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 node(ref) 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 {
	Description *string `json:"description"`
	IsRunnable  *bool   `json:"isRunnable"`
	// Explicit edge loc. Omit to derive <sourceLoc>:<name>:<targetLoc>.
	Loc *string `json:"loc"`
	// Relationship name (was 'label'). Optional — loc is the identity.
	Name *string `json:"name"`
	// Reference to the target node. Accepts a node ID, a full URN
	// (hrn:node:<memory-urn>::<loc>), a memory-prefixed loc
	// (<memory-urn>:<loc>), or a short loc resolved within the source
	// node's memory.
	TargetId string `json:"targetId"`
}

func (*NodeEdgeInput) GetDescription added in v0.3.0

func (v *NodeEdgeInput) GetDescription() *string

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

func (*NodeEdgeInput) GetIsRunnable added in v0.3.0

func (v *NodeEdgeInput) GetIsRunnable() *bool

GetIsRunnable returns NodeEdgeInput.IsRunnable, and is useful for accessing the field via an interface.

func (*NodeEdgeInput) GetLoc added in v0.3.0

func (v *NodeEdgeInput) GetLoc() *string

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

func (*NodeEdgeInput) GetName added in v0.3.0

func (v *NodeEdgeInput) GetName() *string

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

func (*NodeEdgeInput) GetTargetId

func (v *NodeEdgeInput) GetTargetId() string

GetTargetId returns NodeEdgeInput.TargetId, and is useful for accessing the field via an interface.

type NodeExportFormat added in v0.4.0

type NodeExportFormat string
const (
	NodeExportFormatJson NodeExportFormat = "JSON"
	NodeExportFormatMd   NodeExportFormat = "MD"
	NodeExportFormatPdf  NodeExportFormat = "PDF"
)

type NodeExportMetaNode added in v0.5.1

type NodeExportMetaNode struct {
	Loc      string                    `json:"loc"`
	Name     string                    `json:"name"`
	MemoryId string                    `json:"memoryId"`
	Memory   *NodeExportMetaNodeMemory `json:"memory"`
}

NodeExportMetaNode includes the requested fields of the GraphQL type Node.

func (*NodeExportMetaNode) GetLoc added in v0.5.1

func (v *NodeExportMetaNode) GetLoc() string

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

func (*NodeExportMetaNode) GetMemory added in v0.5.1

GetMemory returns NodeExportMetaNode.Memory, and is useful for accessing the field via an interface.

func (*NodeExportMetaNode) GetMemoryId added in v0.5.1

func (v *NodeExportMetaNode) GetMemoryId() string

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

func (*NodeExportMetaNode) GetName added in v0.5.1

func (v *NodeExportMetaNode) GetName() string

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

type NodeExportMetaNodeMemory added in v0.5.1

type NodeExportMetaNodeMemory struct {
	Urn string `json:"urn"`
}

NodeExportMetaNodeMemory includes the requested fields of the GraphQL type Memory.

func (*NodeExportMetaNodeMemory) GetUrn added in v0.5.1

func (v *NodeExportMetaNodeMemory) GetUrn() string

GetUrn returns NodeExportMetaNodeMemory.Urn, and is useful for accessing the field via an interface.

type NodeExportMetaResponse added in v0.4.0

type NodeExportMetaResponse struct {
	// The uniform single-node read (#473) — subsumes the former nodeById(id:)
	// and node(loc:, memory:) split. 'ref' accepts, in dispatch order:
	//
	// 1. a primary key (the unambiguous read — the old nodeById),
	// 2. a fully-qualified node URN (`hrn:node:<org>::<memory>::<loc>`,
	// legacy `urn:` scheme accepted),
	// 3. a bare loc — scoped by 'memory' (an ID or URN) when given; unscoped,
	// it resolves across every readable memory and a cross-memory loc
	// collision is REJECTED with extensions.code AMBIGUOUS_NODE_LOC
	// (listing the candidate memoryIds) rather than silently returning
	// one (#335). An unprefixed 3+-segment ref whose first two segments
	// name a readable memory is treated as form 2 (a full URN); pass
	// 'memory' to force loc interpretation.
	//
	// raw: true skips Mustache template compilation. Soft-deleted nodes do not
	// resolve. Access: the caller's readable-memory set (same gate the old
	// queries used); denied and missing are both null.
	Node *NodeExportMetaNode `json:"node"`
}

NodeExportMetaResponse is returned by NodeExportMeta on success.

func NodeExportMeta added in v0.4.0

func NodeExportMeta(
	ctx_ context.Context,
	client_ graphql.Client,
	ref string,
) (data_ *NodeExportMetaResponse, err_ error)

Minimal metadata for the `node export -o` summary (loc/name/memory): the server's nodeExport render returns the bytes but no identifying fields, and memory { urn } here avoids a second memory-list round-trip (#106 review).

func (*NodeExportMetaResponse) GetNode added in v0.5.1

GetNode returns NodeExportMetaResponse.Node, and is useful for accessing the field via an interface.

type NodeExportNodeExportNodeExportResult added in v0.4.0

type NodeExportNodeExportNodeExportResult struct {
	Format NodeExportFormat `json:"format"`
	// MIME type, e.g. text/markdown or application/json.
	MimeType string `json:"mimeType"`
	// Suggested download filename, e.g. <loc-leaf>.md.
	Filename string `json:"filename"`
	// The rendered file contents (TEXT).
	Data string `json:"data"`
	// Byte length of the rendered payload (UTF-8).
	Bytes int `json:"bytes"`
}

NodeExportNodeExportNodeExportResult includes the requested fields of the GraphQL type NodeExportResult.

func (*NodeExportNodeExportNodeExportResult) GetBytes added in v0.4.0

GetBytes returns NodeExportNodeExportNodeExportResult.Bytes, and is useful for accessing the field via an interface.

func (*NodeExportNodeExportNodeExportResult) GetData added in v0.4.0

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

func (*NodeExportNodeExportNodeExportResult) GetFilename added in v0.4.0

GetFilename returns NodeExportNodeExportNodeExportResult.Filename, and is useful for accessing the field via an interface.

func (*NodeExportNodeExportNodeExportResult) GetFormat added in v0.4.0

GetFormat returns NodeExportNodeExportNodeExportResult.Format, and is useful for accessing the field via an interface.

func (*NodeExportNodeExportNodeExportResult) GetMimeType added in v0.4.0

GetMimeType returns NodeExportNodeExportNodeExportResult.MimeType, and is useful for accessing the field via an interface.

type NodeExportResponse added in v0.4.0

type NodeExportResponse struct {
	NodeExport *NodeExportNodeExportNodeExportResult `json:"nodeExport"`
}

NodeExportResponse is returned by NodeExport on success.

func NodeExport added in v0.4.0

func NodeExport(
	ctx_ context.Context,
	client_ graphql.Client,
	id string,
	format NodeExportFormat,
) (data_ *NodeExportResponse, err_ error)

Render one node to its canonical, round-trippable file via the SERVER's renderer (#106) — so `hadron node export` emits byte-for-byte what the portal and every other API client get from the one shared renderer. full: true is the canonical form (all sections, importable); format selects MD or JSON.

func (*NodeExportResponse) GetNodeExport added in v0.4.0

GetNodeExport returns NodeExportResponse.NodeExport, and is useful for accessing the field via an interface.

type NodeFilter added in v0.5.0

type NodeFilter struct {
	CreatedBy *string `json:"createdBy,omitempty"`
	// Include soft-deleted nodes (default false).
	IncludeDeleted *bool   `json:"includeDeleted,omitempty"`
	IsRunnable     *bool   `json:"isRunnable,omitempty"`
	LocPrefix      *string `json:"locPrefix,omitempty"`
	// Restrict by memory class. SYSTEM is excluded by default; passing this (or naming a system memory in memoryIds) overrides that.
	MemoryClasses []MemoryClass `json:"memoryClasses,omitempty"`
	// Memory scope — a mix of memory IDs and fully-qualified URNs; intersected with the caller's access.
	MemoryIds     []string `json:"memoryIds,omitempty"`
	NodeType      *string  `json:"nodeType,omitempty"`
	Tags          []string `json:"tags,omitempty"`
	UpdatedAfter  *string  `json:"updatedAfter,omitempty"`
	UpdatedBefore *string  `json:"updatedBefore,omitempty"`
}

Structured, unscored, AND-combined filter context for findNodes (cor:api:090:02).

func (*NodeFilter) GetCreatedBy added in v0.5.0

func (v *NodeFilter) GetCreatedBy() *string

GetCreatedBy returns NodeFilter.CreatedBy, and is useful for accessing the field via an interface.

func (*NodeFilter) GetIncludeDeleted added in v0.5.0

func (v *NodeFilter) GetIncludeDeleted() *bool

GetIncludeDeleted returns NodeFilter.IncludeDeleted, and is useful for accessing the field via an interface.

func (*NodeFilter) GetIsRunnable added in v0.5.0

func (v *NodeFilter) GetIsRunnable() *bool

GetIsRunnable returns NodeFilter.IsRunnable, and is useful for accessing the field via an interface.

func (*NodeFilter) GetLocPrefix added in v0.5.0

func (v *NodeFilter) GetLocPrefix() *string

GetLocPrefix returns NodeFilter.LocPrefix, and is useful for accessing the field via an interface.

func (*NodeFilter) GetMemoryClasses added in v0.5.0

func (v *NodeFilter) GetMemoryClasses() []MemoryClass

GetMemoryClasses returns NodeFilter.MemoryClasses, and is useful for accessing the field via an interface.

func (*NodeFilter) GetMemoryIds added in v0.5.0

func (v *NodeFilter) GetMemoryIds() []string

GetMemoryIds returns NodeFilter.MemoryIds, and is useful for accessing the field via an interface.

func (*NodeFilter) GetNodeType added in v0.5.0

func (v *NodeFilter) GetNodeType() *string

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

func (*NodeFilter) GetTags added in v0.5.0

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

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

func (*NodeFilter) GetUpdatedAfter added in v0.5.0

func (v *NodeFilter) GetUpdatedAfter() *string

GetUpdatedAfter returns NodeFilter.UpdatedAfter, and is useful for accessing the field via an interface.

func (*NodeFilter) GetUpdatedBefore added in v0.5.0

func (v *NodeFilter) GetUpdatedBefore() *string

GetUpdatedBefore returns NodeFilter.UpdatedBefore, and is useful for accessing the field via an interface.

type NodeSort added in v0.5.0

type NodeSort string

Result ordering for findNodes. Default relevance; the rest suppress scoring (browse order).

const (
	NodeSortLoc       NodeSort = "loc"
	NodeSortRelevance NodeSort = "relevance"
	NodeSortSeq       NodeSort = "seq"
	NodeSortUpdatedat NodeSort = "updatedAt"
)

type NodeTextField added in v0.3.1

type NodeTextField string

Text-bearing Node fields that searchReplaceInNodes may rewrite. JSON fields (data, properties) and the structural 'loc' are intentionally excluded in v1.

const (
	NodeTextFieldAbstract    NodeTextField = "abstract"
	NodeTextFieldAlias       NodeTextField = "alias"
	NodeTextFieldContent     NodeTextField = "content"
	NodeTextFieldDescription NodeTextField = "description"
	NodeTextFieldName        NodeTextField = "name"
	NodeTextFieldTags        NodeTextField = "tags"
)

type OrgFields added in v0.3.0

type OrgFields struct {
	Id        string `json:"id"`
	Urn       string `json:"urn"`
	Name      string `json:"name"`
	IsVisible *bool  `json:"isVisible"`
	CreatedAt string `json:"createdAt"`
	UpdatedAt string `json:"updatedAt"`
}

OrgFields includes the GraphQL fields of Organization requested by the fragment OrgFields.

func (*OrgFields) GetCreatedAt added in v0.3.0

func (v *OrgFields) GetCreatedAt() string

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

func (*OrgFields) GetId added in v0.3.0

func (v *OrgFields) GetId() string

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

func (*OrgFields) GetIsVisible added in v0.3.0

func (v *OrgFields) GetIsVisible() *bool

GetIsVisible returns OrgFields.IsVisible, and is useful for accessing the field via an interface.

func (*OrgFields) GetName added in v0.3.0

func (v *OrgFields) GetName() string

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

func (*OrgFields) GetUpdatedAt added in v0.3.0

func (v *OrgFields) GetUpdatedAt() string

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

func (*OrgFields) GetUrn added in v0.3.0

func (v *OrgFields) GetUrn() string

GetUrn returns OrgFields.Urn, and is useful for accessing the field via an interface.

type OrgMembersOrganization added in v0.3.0

type OrgMembersOrganization struct {
	Id      string                                    `json:"id"`
	Members []*OrgMembersOrganizationMembersOrgMember `json:"members"`
}

OrgMembersOrganization includes the requested fields of the GraphQL type Organization.

func (*OrgMembersOrganization) GetId added in v0.3.0

func (v *OrgMembersOrganization) GetId() string

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

func (*OrgMembersOrganization) GetMembers added in v0.3.0

GetMembers returns OrgMembersOrganization.Members, and is useful for accessing the field via an interface.

type OrgMembersOrganizationMembersOrgMember added in v0.3.0

type OrgMembersOrganizationMembersOrgMember struct {
	Id string `json:"id"`
	// Target member's role in this org. Null when the viewer isn't an ADMIN/OWNER of the org (#384 field-level visibility); always visible for one's own membership.
	Role      *Role                                       `json:"role"`
	CanInvite bool                                        `json:"canInvite"`
	User      *OrgMembersOrganizationMembersOrgMemberUser `json:"user"`
}

OrgMembersOrganizationMembersOrgMember includes the requested fields of the GraphQL type OrgMember.

func (*OrgMembersOrganizationMembersOrgMember) GetCanInvite added in v0.3.0

func (v *OrgMembersOrganizationMembersOrgMember) GetCanInvite() bool

GetCanInvite returns OrgMembersOrganizationMembersOrgMember.CanInvite, and is useful for accessing the field via an interface.

func (*OrgMembersOrganizationMembersOrgMember) GetId added in v0.3.0

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

func (*OrgMembersOrganizationMembersOrgMember) GetRole added in v0.3.0

GetRole returns OrgMembersOrganizationMembersOrgMember.Role, and is useful for accessing the field via an interface.

func (*OrgMembersOrganizationMembersOrgMember) GetUser added in v0.3.0

GetUser returns OrgMembersOrganizationMembersOrgMember.User, and is useful for accessing the field via an interface.

type OrgMembersOrganizationMembersOrgMemberUser added in v0.3.0

type OrgMembersOrganizationMembersOrgMemberUser struct {
	UserFields `json:"-"`
}

OrgMembersOrganizationMembersOrgMemberUser includes the requested fields of the GraphQL type User.

func (*OrgMembersOrganizationMembersOrgMemberUser) GetEmail added in v0.3.0

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

func (*OrgMembersOrganizationMembersOrgMemberUser) GetGithubUsername added in v0.3.0

func (v *OrgMembersOrganizationMembersOrgMemberUser) GetGithubUsername() *string

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

func (*OrgMembersOrganizationMembersOrgMemberUser) GetHandle added in v0.3.0

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

func (*OrgMembersOrganizationMembersOrgMemberUser) GetId added in v0.3.0

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

func (*OrgMembersOrganizationMembersOrgMemberUser) GetName added in v0.3.0

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

func (*OrgMembersOrganizationMembersOrgMemberUser) GetRoles added in v0.3.0

GetRoles returns OrgMembersOrganizationMembersOrgMemberUser.Roles, and is useful for accessing the field via an interface.

func (*OrgMembersOrganizationMembersOrgMemberUser) MarshalJSON added in v0.3.0

func (*OrgMembersOrganizationMembersOrgMemberUser) UnmarshalJSON added in v0.3.0

type OrgMembersResponse added in v0.3.0

type OrgMembersResponse struct {
	// Fetch an Organization (org member or platform ADMIN).
	//
	// 'ref' accepts the entity's ID or URN.
	Organization *OrgMembersOrganization `json:"organization"`
}

OrgMembersResponse is returned by OrgMembers on success.

func OrgMembers added in v0.3.0

func OrgMembers(
	ctx_ context.Context,
	client_ graphql.Client,
	ref string,
) (data_ *OrgMembersResponse, err_ error)

organization(ref) is the only path to an org's members.

func (*OrgMembersResponse) GetOrganization added in v0.3.0

func (v *OrgMembersResponse) GetOrganization() *OrgMembersOrganization

GetOrganization returns OrgMembersResponse.Organization, and is useful for accessing the field via an interface.

type RemoveMemoryMemberRemoveMemoryMemberRemoveMemoryMemberPayload added in v0.3.0

type RemoveMemoryMemberRemoveMemoryMemberRemoveMemoryMemberPayload struct {
	MemoryId string `json:"memoryId"`
	UserId   string `json:"userId"`
}

RemoveMemoryMemberRemoveMemoryMemberRemoveMemoryMemberPayload includes the requested fields of the GraphQL type RemoveMemoryMemberPayload.

func (*RemoveMemoryMemberRemoveMemoryMemberRemoveMemoryMemberPayload) GetMemoryId added in v0.3.0

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

func (*RemoveMemoryMemberRemoveMemoryMemberRemoveMemoryMemberPayload) GetUserId added in v0.3.0

GetUserId returns RemoveMemoryMemberRemoveMemoryMemberRemoveMemoryMemberPayload.UserId, and is useful for accessing the field via an interface.

type RemoveMemoryMemberResponse added in v0.3.0

type RemoveMemoryMemberResponse struct {
	// 023-app-shape US4 — remove a team member. Idempotent. Removing
	// the LAST owner is rejected with LastOwnerProtectedError (FR-038)
	// — group memories must always have ≥1 owner; the path to fully
	// empty one is to delete the Memory.
	//
	// Removing the last non-owner does NOT delete the Memory (FR-031);
	// the row persists with its remaining owner(s).
	//
	// Caller-authority: either an owner of the Memory, or the member
	// being removed (self-removal).
	RemoveMemoryMember *RemoveMemoryMemberRemoveMemoryMemberRemoveMemoryMemberPayload `json:"removeMemoryMember"`
}

RemoveMemoryMemberResponse is returned by RemoveMemoryMember on success.

func RemoveMemoryMember added in v0.3.0

func RemoveMemoryMember(
	ctx_ context.Context,
	client_ graphql.Client,
	memoryId string,
	userId string,
) (data_ *RemoveMemoryMemberResponse, err_ error)

func (*RemoveMemoryMemberResponse) GetRemoveMemoryMember added in v0.3.0

GetRemoveMemoryMember returns RemoveMemoryMemberResponse.RemoveMemoryMember, and is useful for accessing the field via an interface.

type RemoveOrgMemberResponse added in v0.3.0

type RemoveOrgMemberResponse struct {
	// Accepts the entity's ID or URN (orgId).
	RemoveOrgMember bool `json:"removeOrgMember"`
}

RemoveOrgMemberResponse is returned by RemoveOrgMember on success.

func RemoveOrgMember added in v0.3.0

func RemoveOrgMember(
	ctx_ context.Context,
	client_ graphql.Client,
	orgId string,
	userId string,
) (data_ *RemoveOrgMemberResponse, err_ error)

func (*RemoveOrgMemberResponse) GetRemoveOrgMember added in v0.3.0

func (v *RemoveOrgMemberResponse) GetRemoveOrgMember() bool

GetRemoveOrgMember returns RemoveOrgMemberResponse.RemoveOrgMember, and is useful for accessing the field via an interface.

type ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig added in v0.2.0

type ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig struct {
	Id        string            `json:"id"`
	Name      string            `json:"name"`
	OwnerType AiConfigOwnerType `json:"ownerType"`
	// ID of the owning HadronServer / Organization / App / Agent.
	OwnerId string `json:"ownerId"`
	// Provider identifier; v1 known: 'anthropic' | 'openai' | 'glm' | 'bedrock'.
	Provider string `json:"provider"`
	// Model identifier, passed verbatim to the provider.
	Model     string `json:"model"`
	HasApiKey bool   `json:"hasApiKey"`
	// Ellipsis + last 4 characters of the stored key; null when no key.
	ApiKeyPreview *string `json:"apiKeyPreview"`
	// Provider-specific knobs (maxTokens, thinking, effort, baseUrl, ...).
	Params *json.RawMessage `json:"params"`
	// Disabled configs are skipped by resolution (the walk continues outward).
	Enabled   bool    `json:"enabled"`
	CreatedAt string  `json:"createdAt"`
	UpdatedAt *string `json:"updatedAt"`
}

ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig includes the requested fields of the GraphQL type AiServiceConfig. The GraphQL type's documentation follows.

036-ai-service-config: a named AI service configuration (masked management view — never carries key material beyond the preview). Owned by exactly one of HadronServer / Organization / App / Agent. Resolution walks App -> Agent -> Org (of the App) -> HadronServer and returns the first ENABLED config with the requested name. Well-known fallback name: 'default' (conventional extras: 'fast', 'frontier'). Name is unique per owner.

func (*ResolveAiServiceConfigsResolveAiServiceConfigsAiServiceConfig) GetApiKeyPreview added in v0.2.0

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 | user. `id` is the resolved entity's primary id. `memoryId` is set only for nodes (their owning memory), `organizationId` only for apps (their owning org) — both are the extra ids those resources' canonical routes require.

func (*ResolveUrnResolveUrnUrnResolution) GetId

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 RevokeMemoryShareResponse added in v0.3.0

type RevokeMemoryShareResponse struct {
	// 023-app-shape US3 — revoke a MemoryShare. Per FR-022, revocation
	// takes effect on the next read (there's no "deactivated" state;
	// just a row delete). Idempotent.
	//
	// Caller-authority rule matches createMemoryShare.
	RevokeMemoryShare *RevokeMemoryShareRevokeMemoryShareRevokeMemorySharePayload `json:"revokeMemoryShare"`
}

RevokeMemoryShareResponse is returned by RevokeMemoryShare on success.

func RevokeMemoryShare added in v0.3.0

func RevokeMemoryShare(
	ctx_ context.Context,
	client_ graphql.Client,
	memoryId string,
	granteeId string,
) (data_ *RevokeMemoryShareResponse, err_ error)

func (*RevokeMemoryShareResponse) GetRevokeMemoryShare added in v0.3.0

GetRevokeMemoryShare returns RevokeMemoryShareResponse.RevokeMemoryShare, and is useful for accessing the field via an interface.

type RevokeMemoryShareRevokeMemoryShareRevokeMemorySharePayload added in v0.3.0

type RevokeMemoryShareRevokeMemoryShareRevokeMemorySharePayload struct {
	GranteeId string `json:"granteeId"`
	MemoryId  string `json:"memoryId"`
}

RevokeMemoryShareRevokeMemoryShareRevokeMemorySharePayload includes the requested fields of the GraphQL type RevokeMemorySharePayload.

func (*RevokeMemoryShareRevokeMemoryShareRevokeMemorySharePayload) GetGranteeId added in v0.3.0

GetGranteeId returns RevokeMemoryShareRevokeMemoryShareRevokeMemorySharePayload.GranteeId, and is useful for accessing the field via an interface.

func (*RevokeMemoryShareRevokeMemoryShareRevokeMemorySharePayload) GetMemoryId added in v0.3.0

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

type RevokeUserApiKeyResponse added in v0.3.0

type RevokeUserApiKeyResponse struct {
	// 025-oauth-for-mcp FR-004: revoke a user-scoped API key owned by
	// the calling User. Returns the updated UserApiKey so the portal
	// can render the new revokedAt without a refetch (PR-137 review
	// delta D3 — was Boolean). Idempotent for already-revoked keys;
	// rejected with FORBIDDEN if the key belongs to another user;
	// NOT_FOUND if id does not exist; UNAUTHENTICATED for AppKey-
	// resolved callers.
	RevokeUserApiKey *RevokeUserApiKeyRevokeUserApiKey `json:"revokeUserApiKey"`
}

RevokeUserApiKeyResponse is returned by RevokeUserApiKey on success.

func RevokeUserApiKey added in v0.3.0

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

Idempotent for an already-revoked key; returns the updated key.

func (*RevokeUserApiKeyResponse) GetRevokeUserApiKey added in v0.3.0

GetRevokeUserApiKey returns RevokeUserApiKeyResponse.RevokeUserApiKey, and is useful for accessing the field via an interface.

type RevokeUserApiKeyRevokeUserApiKey added in v0.3.0

type RevokeUserApiKeyRevokeUserApiKey struct {
	UserApiKeyFields `json:"-"`
}

RevokeUserApiKeyRevokeUserApiKey includes the requested fields of the GraphQL type UserApiKey.

func (*RevokeUserApiKeyRevokeUserApiKey) GetCreatedAt added in v0.3.0

func (v *RevokeUserApiKeyRevokeUserApiKey) GetCreatedAt() string

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

func (*RevokeUserApiKeyRevokeUserApiKey) GetId added in v0.3.0

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

func (*RevokeUserApiKeyRevokeUserApiKey) GetIssuedVia added in v0.3.0

func (v *RevokeUserApiKeyRevokeUserApiKey) GetIssuedVia() *string

GetIssuedVia returns RevokeUserApiKeyRevokeUserApiKey.IssuedVia, and is useful for accessing the field via an interface.

func (*RevokeUserApiKeyRevokeUserApiKey) GetKeyPreview added in v0.3.0

func (v *RevokeUserApiKeyRevokeUserApiKey) GetKeyPreview() string

GetKeyPreview returns RevokeUserApiKeyRevokeUserApiKey.KeyPreview, and is useful for accessing the field via an interface.

func (*RevokeUserApiKeyRevokeUserApiKey) GetLabel added in v0.3.0

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

func (*RevokeUserApiKeyRevokeUserApiKey) GetLastUsedAt added in v0.3.0

func (v *RevokeUserApiKeyRevokeUserApiKey) GetLastUsedAt() *string

GetLastUsedAt returns RevokeUserApiKeyRevokeUserApiKey.LastUsedAt, and is useful for accessing the field via an interface.

func (*RevokeUserApiKeyRevokeUserApiKey) GetRevokedAt added in v0.3.0

func (v *RevokeUserApiKeyRevokeUserApiKey) GetRevokedAt() *string

GetRevokedAt returns RevokeUserApiKeyRevokeUserApiKey.RevokedAt, and is useful for accessing the field via an interface.

func (*RevokeUserApiKeyRevokeUserApiKey) MarshalJSON added in v0.3.0

func (v *RevokeUserApiKeyRevokeUserApiKey) MarshalJSON() ([]byte, error)

func (*RevokeUserApiKeyRevokeUserApiKey) UnmarshalJSON added in v0.3.0

func (v *RevokeUserApiKeyRevokeUserApiKey) UnmarshalJSON(b []byte) error

type Role

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

type RotateAgentWebhookResponse added in v0.6.0

type RotateAgentWebhookResponse struct {
	// New secret + token; the old URL dies immediately.
	RotateAgentWebhook *RotateAgentWebhookRotateAgentWebhookAgentWebhookCredentials `json:"rotateAgentWebhook"`
}

RotateAgentWebhookResponse is returned by RotateAgentWebhook on success.

func RotateAgentWebhook added in v0.6.0

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

func (*RotateAgentWebhookResponse) GetRotateAgentWebhook added in v0.6.0

GetRotateAgentWebhook returns RotateAgentWebhookResponse.RotateAgentWebhook, and is useful for accessing the field via an interface.

type RotateAgentWebhookRotateAgentWebhookAgentWebhookCredentials added in v0.6.0

type RotateAgentWebhookRotateAgentWebhookAgentWebhookCredentials struct {
	AgentWebhookCredentialFields `json:"-"`
}

RotateAgentWebhookRotateAgentWebhookAgentWebhookCredentials includes the requested fields of the GraphQL type AgentWebhookCredentials. The GraphQL type's documentation follows.

Create/rotate result — path + platform token are shown ONCE.

func (*RotateAgentWebhookRotateAgentWebhookAgentWebhookCredentials) GetPath added in v0.6.0

GetPath returns RotateAgentWebhookRotateAgentWebhookAgentWebhookCredentials.Path, and is useful for accessing the field via an interface.

func (*RotateAgentWebhookRotateAgentWebhookAgentWebhookCredentials) GetToken added in v0.6.0

GetToken returns RotateAgentWebhookRotateAgentWebhookAgentWebhookCredentials.Token, and is useful for accessing the field via an interface.

func (*RotateAgentWebhookRotateAgentWebhookAgentWebhookCredentials) GetWebhook added in v0.6.0

GetWebhook returns RotateAgentWebhookRotateAgentWebhookAgentWebhookCredentials.Webhook, and is useful for accessing the field via an interface.

func (*RotateAgentWebhookRotateAgentWebhookAgentWebhookCredentials) MarshalJSON added in v0.6.0

func (*RotateAgentWebhookRotateAgentWebhookAgentWebhookCredentials) UnmarshalJSON added in v0.6.0

type RunTaskResponse added in v0.4.0

type RunTaskResponse struct {
	RunTask string `json:"runTask"`
}

RunTaskResponse is returned by RunTask on success.

func RunTask added in v0.4.0

func RunTask(
	ctx_ context.Context,
	client_ graphql.Client,
	urn *string,
	memory *string,
	task *string,
	args *json.RawMessage,
) (data_ *RunTaskResponse, err_ error)

func (*RunTaskResponse) GetRunTask added in v0.4.0

func (v *RunTaskResponse) GetRunTask() string

GetRunTask returns RunTaskResponse.RunTask, and is useful for accessing the field via an interface.

type SearchNodesFindNodesFindNodesResult added in v0.6.0

type SearchNodesFindNodesFindNodesResult struct {
	Total *int `json:"total"`
	// Reduced-fidelity flag(s); hits are usable. May carry MULTIPLE
	// comma-separated codes (e.g. 'no_vector_index,literal_fallback') —
	// parse the set, never compare the whole string. Codes: no_vector_index,
	// embedding_unavailable, literal_fallback.
	Degraded *string                                           `json:"degraded"`
	Reason   *string                                           `json:"reason"`
	Hits     []*SearchNodesFindNodesFindNodesResultHitsNodeHit `json:"hits"`
}

SearchNodesFindNodesFindNodesResult includes the requested fields of the GraphQL type FindNodesResult. The GraphQL type's documentation follows.

Envelope for findNodes (cor:api:090) — the unified node list + search field (it replaced the removed nodes + nodeSearch queries). hits carry per-hit score + vector metadata; passages carry chunk-granularity results; reason/degraded surface no-index / reduced-fidelity outcomes.

func (*SearchNodesFindNodesFindNodesResult) GetDegraded added in v0.6.0

func (v *SearchNodesFindNodesFindNodesResult) GetDegraded() *string

GetDegraded returns SearchNodesFindNodesFindNodesResult.Degraded, and is useful for accessing the field via an interface.

func (*SearchNodesFindNodesFindNodesResult) GetHits added in v0.6.0

GetHits returns SearchNodesFindNodesFindNodesResult.Hits, and is useful for accessing the field via an interface.

func (*SearchNodesFindNodesFindNodesResult) GetReason added in v0.6.0

GetReason returns SearchNodesFindNodesFindNodesResult.Reason, and is useful for accessing the field via an interface.

func (*SearchNodesFindNodesFindNodesResult) GetTotal added in v0.6.0

GetTotal returns SearchNodesFindNodesFindNodesResult.Total, and is useful for accessing the field via an interface.

type SearchNodesFindNodesFindNodesResultHitsNodeHit added in v0.6.0

type SearchNodesFindNodesFindNodesResultHitsNodeHit struct {
	Score  *float64                                                            `json:"score"`
	Vector *SearchNodesFindNodesFindNodesResultHitsNodeHitVectorNodeVectorMeta `json:"vector"`
	Node   *SearchNodesFindNodesFindNodesResultHitsNodeHitNode                 `json:"node"`
}

SearchNodesFindNodesFindNodesResultHitsNodeHit includes the requested fields of the GraphQL type NodeHit. The GraphQL type's documentation follows.

A scored node hit (cor:api:090:04). score is null for an unscored filtered list (no query).

func (*SearchNodesFindNodesFindNodesResultHitsNodeHit) GetNode added in v0.6.0

GetNode returns SearchNodesFindNodesFindNodesResultHitsNodeHit.Node, and is useful for accessing the field via an interface.

func (*SearchNodesFindNodesFindNodesResultHitsNodeHit) GetScore added in v0.6.0

GetScore returns SearchNodesFindNodesFindNodesResultHitsNodeHit.Score, and is useful for accessing the field via an interface.

func (*SearchNodesFindNodesFindNodesResultHitsNodeHit) GetVector added in v0.6.0

GetVector returns SearchNodesFindNodesFindNodesResultHitsNodeHit.Vector, and is useful for accessing the field via an interface.

type SearchNodesFindNodesFindNodesResultHitsNodeHitNode added in v0.6.0

type SearchNodesFindNodesFindNodesResultHitsNodeHitNode 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"`
	Description *string  `json:"description"`
	// Paragraph-length summary of this node. Opt-in on hadron_get_node via the contentScope parameter. hadron_find_nodes preview surfacing ships in spec 031 US2 — not yet live. Never surfaced in hadron_list_nodes. Cap is 2000 characters; longer values are rejected with NodeAbstractTooLongError. Empty + whitespace-only values normalize to null. Spec 031.
	Abstract  *string `json:"abstract"`
	UpdatedAt string  `json:"updatedAt"`
}

SearchNodesFindNodesFindNodesResultHitsNodeHitNode includes the requested fields of the GraphQL type Node.

func (*SearchNodesFindNodesFindNodesResultHitsNodeHitNode) GetAbstract added in v0.6.0

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

func (*SearchNodesFindNodesFindNodesResultHitsNodeHitNode) GetDescription added in v0.6.0

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

func (*SearchNodesFindNodesFindNodesResultHitsNodeHitNode) GetId added in v0.6.0

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

func (*SearchNodesFindNodesFindNodesResultHitsNodeHitNode) GetLoc added in v0.6.0

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

func (*SearchNodesFindNodesFindNodesResultHitsNodeHitNode) GetMemoryId added in v0.6.0

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

func (*SearchNodesFindNodesFindNodesResultHitsNodeHitNode) GetName added in v0.6.0

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

func (*SearchNodesFindNodesFindNodesResultHitsNodeHitNode) GetNodeType added in v0.6.0

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

func (*SearchNodesFindNodesFindNodesResultHitsNodeHitNode) GetTags added in v0.6.0

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

func (*SearchNodesFindNodesFindNodesResultHitsNodeHitNode) GetUpdatedAt added in v0.6.0

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

type SearchNodesFindNodesFindNodesResultHitsNodeHitVectorNodeVectorMeta added in v0.6.0

type SearchNodesFindNodesFindNodesResultHitsNodeHitVectorNodeVectorMeta struct {
	AbstractStale *bool `json:"abstractStale"`
}

SearchNodesFindNodesFindNodesResultHitsNodeHitVectorNodeVectorMeta includes the requested fields of the GraphQL type NodeVectorMeta. The GraphQL type's documentation follows.

Per-hit vector-retrieval lineage (cor:api:090:04), present when a hit came from the vector index.

func (*SearchNodesFindNodesFindNodesResultHitsNodeHitVectorNodeVectorMeta) GetAbstractStale added in v0.6.0

GetAbstractStale returns SearchNodesFindNodesFindNodesResultHitsNodeHitVectorNodeVectorMeta.AbstractStale, and is useful for accessing the field via an interface.

type SearchNodesResponse added in v0.6.0

type SearchNodesResponse struct {
	// Unified node search (cor:api:090) — the single node list + retrieval
	// surface (it replaced the removed `nodes` filter/list and `nodeSearch`
	// rank queries in PR3). Omit `query` for a filtered list in deterministic
	// order (subsumes `nodes`); pass `query` to rank by `mode`
	// (keyword | vector | hybrid | regex). Lexical modes honor boolean operators
	// (`(a OR b) AND c`, quoted phrases, NOT/-) — operator words are
	// UPPERCASE-ONLY, so natural phrases like 'not sure' search literally —
	// and `fields` as a ranking weight-mask. Malformed boolean syntax
	// (unmatched parenthesis, unterminated quote) DEGRADES to a literal phrase
	// search flagged `degraded: 'literal_fallback'` instead of erroring; only
	// mode: regex fails loudly on bad syntax. `filter` is the structured, AND-combined filter context
	// (SYSTEM memory class excluded by default; explicit wins). Returns a
	// scored-hit envelope. Access-scoped identically to the per-kind node queries.
	//
	// orgId (optional) narrows the accessible scope to a single organization the
	// caller is a member of; a non-member orgId returns an empty envelope
	// (total 0, no existence disclosure). Combined with filter.isRunnable: true
	// this is the canonical "the caller's runnable task nodes in one org" query
	// (there is no separate myTasks surface — a task is simply an isRunnable node).
	FindNodes *SearchNodesFindNodesFindNodesResult `json:"findNodes"`
}

SearchNodesResponse is returned by SearchNodes on success.

func SearchNodes added in v0.6.0

func SearchNodes(
	ctx_ context.Context,
	client_ graphql.Client,
	query string,
	mode *FindNodesMode,
	filter *NodeFilter,
	limit *int,
	offset *int,
) (data_ *SearchNodesResponse, err_ error)

Ranked node search backing `hadron search` (#135). Same unified findNodes field as nodes.graphql's FindNodes, but a search-shaped selection: per-hit score, abstract/description, and the vector abstract-staleness flag — so a result list is assessable at a glance without one `node get` per hit. Kept separate from FindNodes so the browse/list callers (`node ls`, exports, spec reads) don't pay for abstract payloads they never render.

The server treats an omitted NodeFilter field as "no constraint"; nil pointers must therefore be omitted, not sent as null — same contract as nodes.graphql.

func (*SearchNodesResponse) GetFindNodes added in v0.6.0

GetFindNodes returns SearchNodesResponse.FindNodes, and is useful for accessing the field via an interface.

type SearchReplaceInNodesInput added in v0.3.1

type SearchReplaceInNodesInput struct {
	CaseInsensitive *bool `json:"caseInsensitive"`
	// When true, report matches without writing anything.
	DryRun *bool `json:"dryRun"`
	// Which text fields to search. At least one required.
	Fields []NodeTextField `json:"fields"`
	// Memory IDs or URNs — selects every live node in each.
	MemoryIds []string `json:"memoryIds"`
	// Replacement. May be empty (deletes the matched text). Regex mode honors dollar-sign backrefs.
	NewText string `json:"newText"`
	// Explicit node IDs or fully-qualified URNs.
	NodeIds []string `json:"nodeIds"`
	// Text (literal) or RegExp source (regex mode) to find. Must be non-empty.
	OldText string `json:"oldText"`
	// Loc-prefix filter applied within 'memoryIds' (parent loc + descendants).
	Prefix *string `json:"prefix"`
	// Why this change was made — recorded on each changed node's version-history
	// snapshot (NodeVersion.editedBy), mirroring hadron_update_node's reason arg.
	Reason *string `json:"reason"`
	// Treat oldText as a RegExp source and newText as a replacement pattern.
	Regex *bool `json:"regex"`
}

Bulk literal/regex search-and-replace across selected nodes.

Selection is a union — at least one of 'nodeIds' or 'memoryIds' is required: - nodeIds: explicit nodes (IDs or fully-qualified URNs). - memoryIds: every live node in those memories (IDs or URNs). - prefix: further restrict the memoryIds set to the node at 'prefix' plus its descendants, matched on colon loc-path boundaries (so 'auth' matches 'auth' and 'auth:tokens' but not 'authoring'). Requires 'memoryIds' — loc is only unique within a memory.

Matching is literal substring by default; set 'regex: true' to treat 'oldText' as a RegExp source (and 'newText' as a replacement pattern with dollar-sign backrefs). 'caseInsensitive' toggles case folding. Matching is always global.

Set 'dryRun: true' to get per-node/per-field match counts WITHOUT writing.

func (*SearchReplaceInNodesInput) GetCaseInsensitive added in v0.3.1

func (v *SearchReplaceInNodesInput) GetCaseInsensitive() *bool

GetCaseInsensitive returns SearchReplaceInNodesInput.CaseInsensitive, and is useful for accessing the field via an interface.

func (*SearchReplaceInNodesInput) GetDryRun added in v0.3.1

func (v *SearchReplaceInNodesInput) GetDryRun() *bool

GetDryRun returns SearchReplaceInNodesInput.DryRun, and is useful for accessing the field via an interface.

func (*SearchReplaceInNodesInput) GetFields added in v0.3.1

func (v *SearchReplaceInNodesInput) GetFields() []NodeTextField

GetFields returns SearchReplaceInNodesInput.Fields, and is useful for accessing the field via an interface.

func (*SearchReplaceInNodesInput) GetMemoryIds added in v0.3.1

func (v *SearchReplaceInNodesInput) GetMemoryIds() []string

GetMemoryIds returns SearchReplaceInNodesInput.MemoryIds, and is useful for accessing the field via an interface.

func (*SearchReplaceInNodesInput) GetNewText added in v0.3.1

func (v *SearchReplaceInNodesInput) GetNewText() string

GetNewText returns SearchReplaceInNodesInput.NewText, and is useful for accessing the field via an interface.

func (*SearchReplaceInNodesInput) GetNodeIds added in v0.3.1

func (v *SearchReplaceInNodesInput) GetNodeIds() []string

GetNodeIds returns SearchReplaceInNodesInput.NodeIds, and is useful for accessing the field via an interface.

func (*SearchReplaceInNodesInput) GetOldText added in v0.3.1

func (v *SearchReplaceInNodesInput) GetOldText() string

GetOldText returns SearchReplaceInNodesInput.OldText, and is useful for accessing the field via an interface.

func (*SearchReplaceInNodesInput) GetPrefix added in v0.3.1

func (v *SearchReplaceInNodesInput) GetPrefix() *string

GetPrefix returns SearchReplaceInNodesInput.Prefix, and is useful for accessing the field via an interface.

func (*SearchReplaceInNodesInput) GetReason added in v0.4.0

func (v *SearchReplaceInNodesInput) GetReason() *string

GetReason returns SearchReplaceInNodesInput.Reason, and is useful for accessing the field via an interface.

func (*SearchReplaceInNodesInput) GetRegex added in v0.3.1

func (v *SearchReplaceInNodesInput) GetRegex() *bool

GetRegex returns SearchReplaceInNodesInput.Regex, and is useful for accessing the field via an interface.

type SearchReplaceInNodesResponse added in v0.3.1

type SearchReplaceInNodesResponse struct {
	SearchReplaceInNodes *SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult `json:"searchReplaceInNodes"`
}

SearchReplaceInNodesResponse is returned by SearchReplaceInNodes on success.

func SearchReplaceInNodes added in v0.3.1

func SearchReplaceInNodes(
	ctx_ context.Context,
	client_ graphql.Client,
	input *SearchReplaceInNodesInput,
) (data_ *SearchReplaceInNodesResponse, err_ error)

Bulk literal/regex search-and-replace across selected nodes (hadron-server#312). Unset optional selectors/flags serialize as null, which the server treats the same as absent (it checks `Array.isArray(nodeIds)` and null-vs-truthy on the flags), so no per-field omitempty is needed here.

func (*SearchReplaceInNodesResponse) GetSearchReplaceInNodes added in v0.3.1

GetSearchReplaceInNodes returns SearchReplaceInNodesResponse.SearchReplaceInNodes, and is useful for accessing the field via an interface.

type SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult added in v0.3.1

type SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult struct {
	// Nodes the selection resolved to (after auth + prefix filtering).
	NodesScanned int `json:"nodesScanned"`
	// Nodes with at least one replacement.
	NodesChanged      int `json:"nodesChanged"`
	TotalReplacements int `json:"totalReplacements"`
	// Echoes the request — true means nothing was written.
	DryRun bool `json:"dryRun"`
	// Per-node breakdown; only nodes with at least one match are listed.
	Results []*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult `json:"results"`
}

SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult includes the requested fields of the GraphQL type SearchReplaceResult.

func (*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult) GetDryRun added in v0.3.1

GetDryRun returns SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult.DryRun, and is useful for accessing the field via an interface.

func (*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult) GetNodesChanged added in v0.3.1

GetNodesChanged returns SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult.NodesChanged, and is useful for accessing the field via an interface.

func (*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult) GetNodesScanned added in v0.3.1

GetNodesScanned returns SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult.NodesScanned, and is useful for accessing the field via an interface.

func (*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult) GetResults added in v0.3.1

GetResults returns SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult.Results, and is useful for accessing the field via an interface.

func (*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult) GetTotalReplacements added in v0.3.1

GetTotalReplacements returns SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResult.TotalReplacements, and is useful for accessing the field via an interface.

type SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult added in v0.3.1

type SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult struct {
	NodeId   string `json:"nodeId"`
	Loc      string `json:"loc"`
	MemoryId string `json:"memoryId"`
	// Total replacements across all searched fields on this node.
	Replacements int                                                                                                                        `json:"replacements"`
	Fields       []*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResultFieldsSearchReplaceFieldResult `json:"fields"`
}

SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult includes the requested fields of the GraphQL type SearchReplaceNodeResult.

func (*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult) GetFields added in v0.3.1

GetFields returns SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult.Fields, and is useful for accessing the field via an interface.

func (*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult) GetLoc added in v0.3.1

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

func (*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult) GetMemoryId added in v0.3.1

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

func (*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult) GetNodeId added in v0.3.1

GetNodeId returns SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult.NodeId, and is useful for accessing the field via an interface.

func (*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult) GetReplacements added in v0.3.1

GetReplacements returns SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResult.Replacements, and is useful for accessing the field via an interface.

type SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResultFieldsSearchReplaceFieldResult added in v0.3.1

type SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResultFieldsSearchReplaceFieldResult struct {
	Field   NodeTextField `json:"field"`
	Matches int           `json:"matches"`
}

SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResultFieldsSearchReplaceFieldResult includes the requested fields of the GraphQL type SearchReplaceFieldResult.

func (*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResultFieldsSearchReplaceFieldResult) GetField added in v0.3.1

GetField returns SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResultFieldsSearchReplaceFieldResult.Field, and is useful for accessing the field via an interface.

func (*SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResultFieldsSearchReplaceFieldResult) GetMatches added in v0.3.1

GetMatches returns SearchReplaceInNodesSearchReplaceInNodesSearchReplaceResultResultsSearchReplaceNodeResultFieldsSearchReplaceFieldResult.Matches, and is useful for accessing the field via an interface.

type SearchUsersResponse added in v0.3.0

type SearchUsersResponse struct {
	// Uniform paginated user list (#473) — replaces the admin-only users list
	// and searchUsers. Platform ADMIN/OWNER: every live user, filter.query
	// optional. Everyone else: filter.query is REQUIRED (blank/omitted -> empty
	// page) and matching is enumeration-safe per cor:acl:070:02 — handle /
	// githubUsername by substring, email by exact match, name only where the
	// viewer may see it (self/admin/co-member). Name-ascending order (id
	// tiebreak); limit default 50 / cap 200; limit: 0 -> count only.
	Users *SearchUsersUsersUsersPage `json:"users"`
}

SearchUsersResponse is returned by SearchUsers on success.

func SearchUsers added in v0.3.0

func SearchUsers(
	ctx_ context.Context,
	client_ graphql.Client,
	query string,
	limit *int,
	offset *int,
) (data_ *SearchUsersResponse, err_ error)

Uniform paginated user list (hadron-server#473) — replaces searchUsers. Non-admin callers must pass filter.query (enumeration-safe matching: handle/githubUsername substring, email exact). Results are name-ascending, so an EXACT identifier match can sit past the first 200-cap page — user-ref resolution pages via api.CollectUntil with an exact-match short-circuit.

func (*SearchUsersResponse) GetUsers added in v0.5.1

GetUsers returns SearchUsersResponse.Users, and is useful for accessing the field via an interface.

type SearchUsersUsersUsersPage added in v0.5.1

type SearchUsersUsersUsersPage struct {
	Total int                                   `json:"total"`
	Items []*SearchUsersUsersUsersPageItemsUser `json:"items"`
}

SearchUsersUsersUsersPage includes the requested fields of the GraphQL type UsersPage.

func (*SearchUsersUsersUsersPage) GetItems added in v0.5.1

GetItems returns SearchUsersUsersUsersPage.Items, and is useful for accessing the field via an interface.

func (*SearchUsersUsersUsersPage) GetTotal added in v0.5.1

func (v *SearchUsersUsersUsersPage) GetTotal() int

GetTotal returns SearchUsersUsersUsersPage.Total, and is useful for accessing the field via an interface.

type SearchUsersUsersUsersPageItemsUser added in v0.5.1

type SearchUsersUsersUsersPageItemsUser struct {
	UserFields `json:"-"`
}

SearchUsersUsersUsersPageItemsUser includes the requested fields of the GraphQL type User.

func (*SearchUsersUsersUsersPageItemsUser) GetEmail added in v0.5.1

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

func (*SearchUsersUsersUsersPageItemsUser) GetGithubUsername added in v0.5.1

func (v *SearchUsersUsersUsersPageItemsUser) GetGithubUsername() *string

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

func (*SearchUsersUsersUsersPageItemsUser) GetHandle added in v0.5.1

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

func (*SearchUsersUsersUsersPageItemsUser) GetId added in v0.5.1

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

func (*SearchUsersUsersUsersPageItemsUser) GetName added in v0.5.1

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

func (*SearchUsersUsersUsersPageItemsUser) GetRoles added in v0.5.1

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

GetRoles returns SearchUsersUsersUsersPageItemsUser.Roles, and is useful for accessing the field via an interface.

func (*SearchUsersUsersUsersPageItemsUser) MarshalJSON added in v0.5.1

func (v *SearchUsersUsersUsersPageItemsUser) MarshalJSON() ([]byte, error)

func (*SearchUsersUsersUsersPageItemsUser) UnmarshalJSON added in v0.5.1

func (v *SearchUsersUsersUsersPageItemsUser) UnmarshalJSON(b []byte) error

type SyncStatus

type SyncStatus string
const (
	SyncStatusError   SyncStatus = "ERROR"
	SyncStatusOk      SyncStatus = "OK"
	SyncStatusPending SyncStatus = "PENDING"
	SyncStatusSyncing SyncStatus = "SYNCING"
)

type TriggerAppRunInput added in v0.6.0

type TriggerAppRunInput struct {
	AiConfigName *string          `json:"aiConfigName,omitempty"`
	AppId        string           `json:"appId"`
	EntryNodeUrn string           `json:"entryNodeUrn"`
	EventData    *json.RawMessage `json:"eventData,omitempty"`
	RunAsSelf    *bool            `json:"runAsSelf,omitempty"`
}

func (*TriggerAppRunInput) GetAiConfigName added in v0.6.0

func (v *TriggerAppRunInput) GetAiConfigName() *string

GetAiConfigName returns TriggerAppRunInput.AiConfigName, and is useful for accessing the field via an interface.

func (*TriggerAppRunInput) GetAppId added in v0.6.0

func (v *TriggerAppRunInput) GetAppId() string

GetAppId returns TriggerAppRunInput.AppId, and is useful for accessing the field via an interface.

func (*TriggerAppRunInput) GetEntryNodeUrn added in v0.6.0

func (v *TriggerAppRunInput) GetEntryNodeUrn() string

GetEntryNodeUrn returns TriggerAppRunInput.EntryNodeUrn, and is useful for accessing the field via an interface.

func (*TriggerAppRunInput) GetEventData added in v0.6.0

func (v *TriggerAppRunInput) GetEventData() *json.RawMessage

GetEventData returns TriggerAppRunInput.EventData, and is useful for accessing the field via an interface.

func (*TriggerAppRunInput) GetRunAsSelf added in v0.6.0

func (v *TriggerAppRunInput) GetRunAsSelf() *bool

GetRunAsSelf returns TriggerAppRunInput.RunAsSelf, and is useful for accessing the field via an interface.

type TriggerAppRunResponse added in v0.6.0

type TriggerAppRunResponse struct {
	// Run an entry node now (MANUAL trigger) — same launch gate + kernel as a schedule.
	TriggerAppRun *TriggerAppRunTriggerAppRun `json:"triggerAppRun"`
}

TriggerAppRunResponse is returned by TriggerAppRun on success.

func TriggerAppRun added in v0.6.0

func TriggerAppRun(
	ctx_ context.Context,
	client_ graphql.Client,
	input *TriggerAppRunInput,
) (data_ *TriggerAppRunResponse, err_ error)

MANUAL trigger. runAsSelf requires an authenticated user (an App-key caller gets UNAUTHENTICATED). eventData carries the template args.

The server reads an omitted optional input field as "unset"; nil pointers must be omitted, not sent as null — hence the per-field omitempty directives (the NodeInput contract in nodes.graphql). Load-bearing on the Update* inputs, where an explicit null means "clear".

func (*TriggerAppRunResponse) GetTriggerAppRun added in v0.6.0

func (v *TriggerAppRunResponse) GetTriggerAppRun() *TriggerAppRunTriggerAppRun

GetTriggerAppRun returns TriggerAppRunResponse.TriggerAppRun, and is useful for accessing the field via an interface.

type TriggerAppRunTriggerAppRun added in v0.6.0

type TriggerAppRunTriggerAppRun struct {
	AppRunFields `json:"-"`
}

TriggerAppRunTriggerAppRun includes the requested fields of the GraphQL type AppRun.

func (*TriggerAppRunTriggerAppRun) GetAgentId added in v0.6.0

func (v *TriggerAppRunTriggerAppRun) GetAgentId() *string

GetAgentId returns TriggerAppRunTriggerAppRun.AgentId, and is useful for accessing the field via an interface.

func (*TriggerAppRunTriggerAppRun) GetAppId added in v0.6.0

func (v *TriggerAppRunTriggerAppRun) GetAppId() string

GetAppId returns TriggerAppRunTriggerAppRun.AppId, and is useful for accessing the field via an interface.

func (*TriggerAppRunTriggerAppRun) GetAttempts added in v0.6.0

func (v *TriggerAppRunTriggerAppRun) GetAttempts() int

GetAttempts returns TriggerAppRunTriggerAppRun.Attempts, and is useful for accessing the field via an interface.

func (*TriggerAppRunTriggerAppRun) GetBudgetActions added in v0.6.0

func (v *TriggerAppRunTriggerAppRun) GetBudgetActions() *int

GetBudgetActions returns TriggerAppRunTriggerAppRun.BudgetActions, and is useful for accessing the field via an interface.

func (*TriggerAppRunTriggerAppRun) GetBudgetTokens added in v0.6.0

func (v *TriggerAppRunTriggerAppRun) GetBudgetTokens() *int

GetBudgetTokens returns TriggerAppRunTriggerAppRun.BudgetTokens, and is useful for accessing the field via an interface.

func (*TriggerAppRunTriggerAppRun) GetCreatedAt added in v0.6.0

func (v *TriggerAppRunTriggerAppRun) GetCreatedAt() string

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

func (*TriggerAppRunTriggerAppRun) GetCreatedBy added in v0.6.0

func (v *TriggerAppRunTriggerAppRun) GetCreatedBy() *string

GetCreatedBy returns TriggerAppRunTriggerAppRun.CreatedBy, and is useful for accessing the field via an interface.

func (*TriggerAppRunTriggerAppRun) GetCurNodeUrn added in v0.6.0

func (v *TriggerAppRunTriggerAppRun) GetCurNodeUrn() *string

GetCurNodeUrn returns TriggerAppRunTriggerAppRun.CurNodeUrn, and is useful for accessing the field via an interface.

func (*TriggerAppRunTriggerAppRun) GetEntryNodeUrn added in v0.6.0

func (v *TriggerAppRunTriggerAppRun) GetEntryNodeUrn() string

GetEntryNodeUrn returns TriggerAppRunTriggerAppRun.EntryNodeUrn, and is useful for accessing the field via an interface.

func (*TriggerAppRunTriggerAppRun) GetEventData added in v0.6.0

func (v *TriggerAppRunTriggerAppRun) GetEventData() *json.RawMessage

GetEventData returns TriggerAppRunTriggerAppRun.EventData, and is useful for accessing the field via an interface.

func (*TriggerAppRunTriggerAppRun) GetFailure added in v0.6.0

func (v *TriggerAppRunTriggerAppRun) GetFailure() *json.RawMessage

GetFailure returns TriggerAppRunTriggerAppRun.Failure, and is useful for accessing the field via an interface.

func (*TriggerAppRunTriggerAppRun) GetFinishedAt added in v0.6.0

func (v *TriggerAppRunTriggerAppRun) GetFinishedAt() *string

GetFinishedAt returns TriggerAppRunTriggerAppRun.FinishedAt, and is useful for accessing the field via an interface.

func (*TriggerAppRunTriggerAppRun) GetId added in v0.6.0

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

func (*TriggerAppRunTriggerAppRun) GetOrganizationId added in v0.6.0

func (v *TriggerAppRunTriggerAppRun) GetOrganizationId() string

GetOrganizationId returns TriggerAppRunTriggerAppRun.OrganizationId, and is useful for accessing the field via an interface.

func (*TriggerAppRunTriggerAppRun) GetParentRunId added in v0.6.0

func (v *TriggerAppRunTriggerAppRun) GetParentRunId() *string

GetParentRunId returns TriggerAppRunTriggerAppRun.ParentRunId, and is useful for accessing the field via an interface.

func (*TriggerAppRunTriggerAppRun) GetPolicy added in v0.6.0

func (v *TriggerAppRunTriggerAppRun) GetPolicy() *json.RawMessage

GetPolicy returns TriggerAppRunTriggerAppRun.Policy, and is useful for accessing the field via an interface.

func (*TriggerAppRunTriggerAppRun) GetStartedAt added in v0.6.0

func (v *TriggerAppRunTriggerAppRun) GetStartedAt() *string

GetStartedAt returns TriggerAppRunTriggerAppRun.StartedAt, and is useful for accessing the field via an interface.

func (*TriggerAppRunTriggerAppRun) GetStatus added in v0.6.0

GetStatus returns TriggerAppRunTriggerAppRun.Status, and is useful for accessing the field via an interface.

func (*TriggerAppRunTriggerAppRun) GetTimeoutMs added in v0.6.0

func (v *TriggerAppRunTriggerAppRun) GetTimeoutMs() *int

GetTimeoutMs returns TriggerAppRunTriggerAppRun.TimeoutMs, and is useful for accessing the field via an interface.

func (*TriggerAppRunTriggerAppRun) GetTriggerId added in v0.6.0

func (v *TriggerAppRunTriggerAppRun) GetTriggerId() *string

GetTriggerId returns TriggerAppRunTriggerAppRun.TriggerId, and is useful for accessing the field via an interface.

func (*TriggerAppRunTriggerAppRun) GetTriggerKind added in v0.6.0

func (v *TriggerAppRunTriggerAppRun) GetTriggerKind() AppRunTriggerKind

GetTriggerKind returns TriggerAppRunTriggerAppRun.TriggerKind, and is useful for accessing the field via an interface.

func (*TriggerAppRunTriggerAppRun) GetUserId added in v0.6.0

func (v *TriggerAppRunTriggerAppRun) GetUserId() *string

GetUserId returns TriggerAppRunTriggerAppRun.UserId, and is useful for accessing the field via an interface.

func (*TriggerAppRunTriggerAppRun) MarshalJSON added in v0.6.0

func (v *TriggerAppRunTriggerAppRun) MarshalJSON() ([]byte, error)

func (*TriggerAppRunTriggerAppRun) UnmarshalJSON added in v0.6.0

func (v *TriggerAppRunTriggerAppRun) UnmarshalJSON(b []byte) error

type UpdateAgentScheduleInput added in v0.6.0

type UpdateAgentScheduleInput struct {
	AiConfigName *string          `json:"aiConfigName,omitempty"`
	Cron         *string          `json:"cron,omitempty"`
	Enabled      *bool            `json:"enabled,omitempty"`
	EntryNodeUrn *string          `json:"entryNodeUrn,omitempty"`
	EventData    *json.RawMessage `json:"eventData,omitempty"`
	Name         *string          `json:"name,omitempty"`
	Policy       *json.RawMessage `json:"policy,omitempty"`
	RunAsSelf    *bool            `json:"runAsSelf,omitempty"`
	Timezone     *string          `json:"timezone,omitempty"`
}

func (*UpdateAgentScheduleInput) GetAiConfigName added in v0.6.0

func (v *UpdateAgentScheduleInput) GetAiConfigName() *string

GetAiConfigName returns UpdateAgentScheduleInput.AiConfigName, and is useful for accessing the field via an interface.

func (*UpdateAgentScheduleInput) GetCron added in v0.6.0

func (v *UpdateAgentScheduleInput) GetCron() *string

GetCron returns UpdateAgentScheduleInput.Cron, and is useful for accessing the field via an interface.

func (*UpdateAgentScheduleInput) GetEnabled added in v0.6.0

func (v *UpdateAgentScheduleInput) GetEnabled() *bool

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

func (*UpdateAgentScheduleInput) GetEntryNodeUrn added in v0.6.0

func (v *UpdateAgentScheduleInput) GetEntryNodeUrn() *string

GetEntryNodeUrn returns UpdateAgentScheduleInput.EntryNodeUrn, and is useful for accessing the field via an interface.

func (*UpdateAgentScheduleInput) GetEventData added in v0.6.0

func (v *UpdateAgentScheduleInput) GetEventData() *json.RawMessage

GetEventData returns UpdateAgentScheduleInput.EventData, and is useful for accessing the field via an interface.

func (*UpdateAgentScheduleInput) GetName added in v0.6.0

func (v *UpdateAgentScheduleInput) GetName() *string

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

func (*UpdateAgentScheduleInput) GetPolicy added in v0.6.0

func (v *UpdateAgentScheduleInput) GetPolicy() *json.RawMessage

GetPolicy returns UpdateAgentScheduleInput.Policy, and is useful for accessing the field via an interface.

func (*UpdateAgentScheduleInput) GetRunAsSelf added in v0.6.0

func (v *UpdateAgentScheduleInput) GetRunAsSelf() *bool

GetRunAsSelf returns UpdateAgentScheduleInput.RunAsSelf, and is useful for accessing the field via an interface.

func (*UpdateAgentScheduleInput) GetTimezone added in v0.6.0

func (v *UpdateAgentScheduleInput) GetTimezone() *string

GetTimezone returns UpdateAgentScheduleInput.Timezone, and is useful for accessing the field via an interface.

type UpdateAgentScheduleResponse added in v0.6.0

type UpdateAgentScheduleResponse struct {
	UpdateAgentSchedule *UpdateAgentScheduleUpdateAgentSchedule `json:"updateAgentSchedule"`
}

UpdateAgentScheduleResponse is returned by UpdateAgentSchedule on success.

func UpdateAgentSchedule added in v0.6.0

func UpdateAgentSchedule(
	ctx_ context.Context,
	client_ graphql.Client,
	id string,
	input *UpdateAgentScheduleInput,
) (data_ *UpdateAgentScheduleResponse, err_ error)

Every field optional. An omitted field preserves; an explicit null clears — so unset flags MUST be omitted (nil pointers dropped by these directives).

func (*UpdateAgentScheduleResponse) GetUpdateAgentSchedule added in v0.6.0

GetUpdateAgentSchedule returns UpdateAgentScheduleResponse.UpdateAgentSchedule, and is useful for accessing the field via an interface.

type UpdateAgentScheduleUpdateAgentSchedule added in v0.6.0

type UpdateAgentScheduleUpdateAgentSchedule struct {
	AgentScheduleFields `json:"-"`
}

UpdateAgentScheduleUpdateAgentSchedule includes the requested fields of the GraphQL type AgentSchedule. The GraphQL type's documentation follows.

Recurring trigger (cor:agt:010, D-2026-07-04-E).

func (*UpdateAgentScheduleUpdateAgentSchedule) GetAgentId added in v0.6.0

GetAgentId returns UpdateAgentScheduleUpdateAgentSchedule.AgentId, and is useful for accessing the field via an interface.

func (*UpdateAgentScheduleUpdateAgentSchedule) GetAiConfigName added in v0.6.0

func (v *UpdateAgentScheduleUpdateAgentSchedule) GetAiConfigName() *string

GetAiConfigName returns UpdateAgentScheduleUpdateAgentSchedule.AiConfigName, and is useful for accessing the field via an interface.

func (*UpdateAgentScheduleUpdateAgentSchedule) GetAppId added in v0.6.0

GetAppId returns UpdateAgentScheduleUpdateAgentSchedule.AppId, and is useful for accessing the field via an interface.

func (*UpdateAgentScheduleUpdateAgentSchedule) GetCreatedAt added in v0.6.0

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

func (*UpdateAgentScheduleUpdateAgentSchedule) GetCreatedBy added in v0.6.0

GetCreatedBy returns UpdateAgentScheduleUpdateAgentSchedule.CreatedBy, and is useful for accessing the field via an interface.

func (*UpdateAgentScheduleUpdateAgentSchedule) GetCron added in v0.6.0

GetCron returns UpdateAgentScheduleUpdateAgentSchedule.Cron, and is useful for accessing the field via an interface.

func (*UpdateAgentScheduleUpdateAgentSchedule) GetEnabled added in v0.6.0

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

func (*UpdateAgentScheduleUpdateAgentSchedule) GetEntryNodeUrn added in v0.6.0

func (v *UpdateAgentScheduleUpdateAgentSchedule) GetEntryNodeUrn() string

GetEntryNodeUrn returns UpdateAgentScheduleUpdateAgentSchedule.EntryNodeUrn, and is useful for accessing the field via an interface.

func (*UpdateAgentScheduleUpdateAgentSchedule) GetEventData added in v0.6.0

GetEventData returns UpdateAgentScheduleUpdateAgentSchedule.EventData, and is useful for accessing the field via an interface.

func (*UpdateAgentScheduleUpdateAgentSchedule) GetId added in v0.6.0

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

func (*UpdateAgentScheduleUpdateAgentSchedule) GetLastRunAt added in v0.6.0

GetLastRunAt returns UpdateAgentScheduleUpdateAgentSchedule.LastRunAt, and is useful for accessing the field via an interface.

func (*UpdateAgentScheduleUpdateAgentSchedule) GetName added in v0.6.0

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

func (*UpdateAgentScheduleUpdateAgentSchedule) GetNextRunAt added in v0.6.0

GetNextRunAt returns UpdateAgentScheduleUpdateAgentSchedule.NextRunAt, and is useful for accessing the field via an interface.

func (*UpdateAgentScheduleUpdateAgentSchedule) GetOrganizationId added in v0.6.0

func (v *UpdateAgentScheduleUpdateAgentSchedule) GetOrganizationId() string

GetOrganizationId returns UpdateAgentScheduleUpdateAgentSchedule.OrganizationId, and is useful for accessing the field via an interface.

func (*UpdateAgentScheduleUpdateAgentSchedule) GetPolicy added in v0.6.0

GetPolicy returns UpdateAgentScheduleUpdateAgentSchedule.Policy, and is useful for accessing the field via an interface.

func (*UpdateAgentScheduleUpdateAgentSchedule) GetTimezone added in v0.6.0

GetTimezone returns UpdateAgentScheduleUpdateAgentSchedule.Timezone, and is useful for accessing the field via an interface.

func (*UpdateAgentScheduleUpdateAgentSchedule) GetUserId added in v0.6.0

GetUserId returns UpdateAgentScheduleUpdateAgentSchedule.UserId, and is useful for accessing the field via an interface.

func (*UpdateAgentScheduleUpdateAgentSchedule) MarshalJSON added in v0.6.0

func (v *UpdateAgentScheduleUpdateAgentSchedule) MarshalJSON() ([]byte, error)

func (*UpdateAgentScheduleUpdateAgentSchedule) UnmarshalJSON added in v0.6.0

func (v *UpdateAgentScheduleUpdateAgentSchedule) UnmarshalJSON(b []byte) error

type UpdateAiServiceConfigResponse added in v0.3.0

type UpdateAiServiceConfigResponse struct {
	// 036-ai-service-config: update a named AI config. All fields optional.
	//
	// apiKey semantics: omitted = keep the stored key; empty string =
	// clear it; non-empty = replace (encrypted, preview recomputed).
	//
	// Auth: admin rights on the owning entity (as aiServiceConfigs).
	UpdateAiServiceConfig *UpdateAiServiceConfigUpdateAiServiceConfig `json:"updateAiServiceConfig"`
}

UpdateAiServiceConfigResponse is returned by UpdateAiServiceConfig on success.

func UpdateAiServiceConfig added in v0.3.0

func UpdateAiServiceConfig(
	ctx_ context.Context,
	client_ graphql.Client,
	id string,
	name *string,
	provider *string,
	model *string,
	apiKey *string,
	enabled *bool,
	params *json.RawMessage,
) (data_ *UpdateAiServiceConfigResponse, err_ error)

All fields optional. apiKey: omitted (nil) = keep the stored key; "" = clear it; non-empty = replace. nil-based omitempty makes a non-nil &"" send the empty string (the clear signal), while an absent flag stays nil and is omitted (preserve).

func (*UpdateAiServiceConfigResponse) GetUpdateAiServiceConfig added in v0.3.0

GetUpdateAiServiceConfig returns UpdateAiServiceConfigResponse.UpdateAiServiceConfig, and is useful for accessing the field via an interface.

type UpdateAiServiceConfigUpdateAiServiceConfig added in v0.3.0

type UpdateAiServiceConfigUpdateAiServiceConfig struct {
	AiServiceConfigFields `json:"-"`
}

UpdateAiServiceConfigUpdateAiServiceConfig includes the requested fields of the GraphQL type AiServiceConfig. The GraphQL type's documentation follows.

036-ai-service-config: a named AI service configuration (masked management view — never carries key material beyond the preview). Owned by exactly one of HadronServer / Organization / App / Agent. Resolution walks App -> Agent -> Org (of the App) -> HadronServer and returns the first ENABLED config with the requested name. Well-known fallback name: 'default' (conventional extras: 'fast', 'frontier'). Name is unique per owner.

func (*UpdateAiServiceConfigUpdateAiServiceConfig) GetApiKeyPreview added in v0.3.0

func (v *UpdateAiServiceConfigUpdateAiServiceConfig) GetApiKeyPreview() *string

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

func (*UpdateAiServiceConfigUpdateAiServiceConfig) GetCreatedAt added in v0.3.0

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

func (*UpdateAiServiceConfigUpdateAiServiceConfig) GetEnabled added in v0.3.0

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

func (*UpdateAiServiceConfigUpdateAiServiceConfig) GetHasApiKey added in v0.3.0

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

func (*UpdateAiServiceConfigUpdateAiServiceConfig) GetId added in v0.3.0

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

func (*UpdateAiServiceConfigUpdateAiServiceConfig) GetModel added in v0.3.0

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

func (*UpdateAiServiceConfigUpdateAiServiceConfig) GetName added in v0.3.0

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

func (*UpdateAiServiceConfigUpdateAiServiceConfig) GetOwnerId added in v0.3.0

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

func (*UpdateAiServiceConfigUpdateAiServiceConfig) GetOwnerType added in v0.3.0

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

func (*UpdateAiServiceConfigUpdateAiServiceConfig) GetParams added in v0.3.0

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

func (*UpdateAiServiceConfigUpdateAiServiceConfig) GetProvider added in v0.3.0

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

func (*UpdateAiServiceConfigUpdateAiServiceConfig) GetUpdatedAt added in v0.3.0

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

func (*UpdateAiServiceConfigUpdateAiServiceConfig) MarshalJSON added in v0.3.0

func (*UpdateAiServiceConfigUpdateAiServiceConfig) UnmarshalJSON added in v0.3.0

type UpdateEdgeResponse

type UpdateEdgeResponse struct {
	UpdateEdge *UpdateEdgeUpdateEdge `json:"updateEdge"`
}

UpdateEdgeResponse is returned by UpdateEdge on success.

func UpdateEdge

func UpdateEdge(
	ctx_ context.Context,
	client_ graphql.Client,
	edgeId string,
	name *string,
	loc *string,
	description *string,
	isRunnable *bool,
	priority *int,
	condition *json.RawMessage,
	data *json.RawMessage,
) (data_ *UpdateEdgeResponse, err_ error)

Omitted = preserve, explicit null = clear (condition/data) or unset (priority). Flags the user didn't pass must not reach the wire.

func (*UpdateEdgeResponse) GetUpdateEdge

func (v *UpdateEdgeResponse) GetUpdateEdge() *UpdateEdgeUpdateEdge

GetUpdateEdge returns UpdateEdgeResponse.UpdateEdge, and is useful for accessing the field via an interface.

type UpdateEdgeUpdateEdge

type UpdateEdgeUpdateEdge struct {
	Id         string                          `json:"id"`
	Name       *string                         `json:"name"`
	Loc        string                          `json:"loc"`
	IsRunnable *bool                           `json:"isRunnable"`
	Priority   int                             `json:"priority"`
	Source     *UpdateEdgeUpdateEdgeSourceNode `json:"source"`
	Target     *UpdateEdgeUpdateEdgeTargetNode `json:"target"`
}

UpdateEdgeUpdateEdge includes the requested fields of the GraphQL type Edge.

func (*UpdateEdgeUpdateEdge) GetId

func (v *UpdateEdgeUpdateEdge) GetId() string

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

func (*UpdateEdgeUpdateEdge) GetIsRunnable added in v0.3.0

func (v *UpdateEdgeUpdateEdge) GetIsRunnable() *bool

GetIsRunnable returns UpdateEdgeUpdateEdge.IsRunnable, and is useful for accessing the field via an interface.

func (*UpdateEdgeUpdateEdge) GetLoc added in v0.3.0

func (v *UpdateEdgeUpdateEdge) GetLoc() string

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

func (*UpdateEdgeUpdateEdge) GetName added in v0.3.0

func (v *UpdateEdgeUpdateEdge) GetName() *string

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

func (*UpdateEdgeUpdateEdge) GetPriority

func (v *UpdateEdgeUpdateEdge) GetPriority() int

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

func (*UpdateEdgeUpdateEdge) GetSource

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 UpdateMemoryMemberRoleResponse added in v0.3.0

type UpdateMemoryMemberRoleResponse struct {
	// 023-app-shape US4 — change the role on an existing team member.
	// Throws MemoryMemberNotFoundError when the row doesn't exist;
	// use addMemoryMember to upsert. Throws LastOwnerProtectedError
	// (FR-038) when demoting the sole remaining owner.
	//
	// Caller-authority rule matches addMemoryMember.
	//
	// Error codes (extensions.code, Error.name style):
	// - UNAUTHENTICATED — no logged-in user in context.
	// - FORBIDDEN — caller is not an owner of a live group memory.
	// - MemoryNotFoundForMemberError — memory absent or soft-deleted
	// (only reachable from non-GraphQL callers in v1 — the guard
	// short-circuits to FORBIDDEN first).
	// - InvalidMemoryClassForMemberError — memory is not group-class
	// (same; guard short-circuits to FORBIDDEN first).
	// - MemoryMemberNotFoundError — no row at (memoryId, userId).
	// - LastOwnerProtectedError (FR-038) — would demote the sole owner.
	UpdateMemoryMemberRole *UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayload `json:"updateMemoryMemberRole"`
}

UpdateMemoryMemberRoleResponse is returned by UpdateMemoryMemberRole on success.

func UpdateMemoryMemberRole added in v0.3.0

func UpdateMemoryMemberRole(
	ctx_ context.Context,
	client_ graphql.Client,
	memoryId string,
	userId string,
	role MemoryMemberRole,
) (data_ *UpdateMemoryMemberRoleResponse, err_ error)

func (*UpdateMemoryMemberRoleResponse) GetUpdateMemoryMemberRole added in v0.3.0

GetUpdateMemoryMemberRole returns UpdateMemoryMemberRoleResponse.UpdateMemoryMemberRole, and is useful for accessing the field via an interface.

type UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayload added in v0.3.0

type UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayload struct {
	MemoryMember *UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMember `json:"memoryMember"`
}

UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayload includes the requested fields of the GraphQL type UpdateMemoryMemberRolePayload.

func (*UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayload) GetMemoryMember added in v0.3.0

GetMemoryMember returns UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayload.MemoryMember, and is useful for accessing the field via an interface.

type UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMember added in v0.3.0

type UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMember struct {
	Role MemoryMemberRole                                                                           `json:"role"`
	User *UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser `json:"user"`
}

UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMember includes the requested fields of the GraphQL type MemoryMember. The GraphQL type's documentation follows.

023-app-shape US4: symmetric team-membership row for group-class memory. The "Company Brain" model — multiple users collaboratively read/write a shared memory, governance by role, no single owner on the Memory itself.

func (*UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMember) GetRole added in v0.3.0

GetRole returns UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMember.Role, and is useful for accessing the field via an interface.

func (*UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMember) GetUser added in v0.3.0

GetUser returns UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMember.User, and is useful for accessing the field via an interface.

type UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser added in v0.3.0

type UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser struct {
	MemUserFields `json:"-"`
}

UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser includes the requested fields of the GraphQL type User.

func (*UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser) GetEmail added in v0.3.0

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

func (*UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser) GetHandle added in v0.3.0

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

func (*UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser) GetId added in v0.3.0

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

func (*UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser) GetName added in v0.3.0

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

func (*UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser) MarshalJSON added in v0.3.0

func (*UpdateMemoryMemberRoleUpdateMemoryMemberRoleUpdateMemoryMemberRolePayloadMemoryMemberUser) UnmarshalJSON added in v0.3.0

type UpdateMemoryResponse

type UpdateMemoryResponse struct {
	// Update a Memory.
	//
	// Accepts the entity's ID or URN.
	//
	// Spec 033 FR-026: enabling `vectorIndexEnabled` on an `isEncrypted` memory
	// requires `acknowledgeVectorInversionRisk: true` in the same call. Without
	// the flag, an `EncryptedVectorIndexNotAcknowledgedError` is thrown carrying
	// the full four-point disclosure on `error.disclosure` (single source of
	// truth in `FR_026_DISCLOSURE` — see `src/lib/entityRef/errors.ts`). On a
	// non-encrypted memory the flag is a no-op.
	UpdateMemory *UpdateMemoryUpdateMemory `json:"updateMemory"`
}

UpdateMemoryResponse is returned by UpdateMemory on success.

func UpdateMemory

func UpdateMemory(
	ctx_ context.Context,
	client_ graphql.Client,
	id string,
	name *string,
	shortDescription *string,
	description *string,
	tags *[]string,
	visibility *MemoryVisibility,
	data *json.RawMessage,
) (data_ *UpdateMemoryResponse, err_ error)

Omitted = preserve; flags the user didn't pass must not reach the wire.

func (*UpdateMemoryResponse) GetUpdateMemory

func (v *UpdateMemoryResponse) GetUpdateMemory() *UpdateMemoryUpdateMemory

GetUpdateMemory returns UpdateMemoryResponse.UpdateMemory, and is useful for accessing the field via an interface.

type UpdateMemoryShareRoleResponse added in v0.3.0

type UpdateMemoryShareRoleResponse struct {
	// 023-app-shape US3 — change the role on an existing MemoryShare.
	// Throws MemoryShareNotFoundError if the (memoryId, granteeId) row
	// doesn't exist — use createMemoryShare to upsert.
	//
	// Caller-authority rule matches createMemoryShare.
	UpdateMemoryShareRole *UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayload `json:"updateMemoryShareRole"`
}

UpdateMemoryShareRoleResponse is returned by UpdateMemoryShareRole on success.

func UpdateMemoryShareRole added in v0.3.0

func UpdateMemoryShareRole(
	ctx_ context.Context,
	client_ graphql.Client,
	memoryId string,
	granteeId string,
	role MemoryShareRole,
) (data_ *UpdateMemoryShareRoleResponse, err_ error)

func (*UpdateMemoryShareRoleResponse) GetUpdateMemoryShareRole added in v0.3.0

GetUpdateMemoryShareRole returns UpdateMemoryShareRoleResponse.UpdateMemoryShareRole, and is useful for accessing the field via an interface.

type UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayload added in v0.3.0

type UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayload struct {
	MemoryShare *UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShare `json:"memoryShare"`
}

UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayload includes the requested fields of the GraphQL type UpdateMemoryShareRolePayload.

func (*UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayload) GetMemoryShare added in v0.3.0

GetMemoryShare returns UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayload.MemoryShare, and is useful for accessing the field via an interface.

type UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShare added in v0.3.0

type UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShare struct {
	Role MemoryShareRole `json:"role"`
	// The User who was granted access.
	Grantee *UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser `json:"grantee"`
}

UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShare includes the requested fields of the GraphQL type MemoryShare. The GraphQL type's documentation follows.

023-app-shape US3: asymmetric cross-user grant on a personal-class Memory. The principal (memory.userId) grants a grantee read/write access. Used for per-pairing isolation patterns (e.g., Alice's personal Memory paired-with-Mentor-A is distinct from her paired-with-Mentor-B Memory, each with its own MemoryShare).

func (*UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShare) GetGrantee added in v0.3.0

GetGrantee returns UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShare.Grantee, and is useful for accessing the field via an interface.

func (*UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShare) GetRole added in v0.3.0

GetRole returns UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShare.Role, and is useful for accessing the field via an interface.

type UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser added in v0.3.0

type UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser struct {
	MemUserFields `json:"-"`
}

UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser includes the requested fields of the GraphQL type User.

func (*UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser) GetEmail added in v0.3.0

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

func (*UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser) GetHandle added in v0.3.0

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

func (*UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser) GetId added in v0.3.0

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

func (*UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser) GetName added in v0.3.0

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

func (*UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser) MarshalJSON added in v0.3.0

func (*UpdateMemoryShareRoleUpdateMemoryShareRoleUpdateMemoryShareRolePayloadMemoryShareGranteeUser) UnmarshalJSON added in v0.3.0

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 UpdateNodeDataResponse added in v0.4.0

type UpdateNodeDataResponse struct {
	UpdateNodeData *UpdateNodeDataUpdateNodeDataNode `json:"updateNodeData"`
}

UpdateNodeDataResponse is returned by UpdateNodeData on success.

func UpdateNodeData added in v0.4.0

func UpdateNodeData(
	ctx_ context.Context,
	client_ graphql.Client,
	nodeId string,
	data json.RawMessage,
	reason *string,
) (data_ *UpdateNodeDataResponse, err_ error)

Shallow-merge a JSON patch into a node's `data` bag (the supplied object's top-level keys overwrite existing ones; absent keys are preserved). Unlike UpdateNode's `data`, which replaces the whole bag, this is a merge — the server rejects a non-object patch with BAD_USER_INPUT. Backs the `--data-merge`/`--data-merge-file` flags on `hadron node update`.

func (*UpdateNodeDataResponse) GetUpdateNodeData added in v0.4.0

GetUpdateNodeData returns UpdateNodeDataResponse.UpdateNodeData, and is useful for accessing the field via an interface.

type UpdateNodeDataUpdateNodeDataNode added in v0.4.0

type UpdateNodeDataUpdateNodeDataNode struct {
	Id         string   `json:"id"`
	MemoryId   string   `json:"memoryId"`
	Loc        string   `json:"loc"`
	Name       string   `json:"name"`
	NodeType   string   `json:"nodeType"`
	Tags       []string `json:"tags"`
	IsRunnable *bool    `json:"isRunnable"`
	UpdatedAt  string   `json:"updatedAt"`
}

UpdateNodeDataUpdateNodeDataNode includes the requested fields of the GraphQL type Node.

func (*UpdateNodeDataUpdateNodeDataNode) GetId added in v0.4.0

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

func (*UpdateNodeDataUpdateNodeDataNode) GetIsRunnable added in v0.4.0

func (v *UpdateNodeDataUpdateNodeDataNode) GetIsRunnable() *bool

GetIsRunnable returns UpdateNodeDataUpdateNodeDataNode.IsRunnable, and is useful for accessing the field via an interface.

func (*UpdateNodeDataUpdateNodeDataNode) GetLoc added in v0.4.0

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

func (*UpdateNodeDataUpdateNodeDataNode) GetMemoryId added in v0.4.0

func (v *UpdateNodeDataUpdateNodeDataNode) GetMemoryId() string

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

func (*UpdateNodeDataUpdateNodeDataNode) GetName added in v0.4.0

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

func (*UpdateNodeDataUpdateNodeDataNode) GetNodeType added in v0.4.0

func (v *UpdateNodeDataUpdateNodeDataNode) GetNodeType() string

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

func (*UpdateNodeDataUpdateNodeDataNode) GetTags added in v0.4.0

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

func (*UpdateNodeDataUpdateNodeDataNode) GetUpdatedAt added in v0.4.0

func (v *UpdateNodeDataUpdateNodeDataNode) GetUpdatedAt() string

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

type UpdateNodeInput added in v0.5.1

type UpdateNodeInput struct {
	// Paragraph-length summary of this node — see Node.abstract for the surfacing contract. 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"`
	// MIME type of content (#476/#488, spec cor:cnv:010:01): 'text/markdown' (default) stores as-is; 'text/html' converts captured DOM to Markdown; 'application/pdf' extracts a PDF's text layer to Markdown (send 'content' as raw base64 — a PDF is binary; scanned/image-only PDFs error). The conversion runs before storage and fills properties.title from the extracted title when not supplied. Consumed at write time — never persisted. Any other value is rejected.
	ContentType *string          `json:"contentType,omitempty"`
	Data        *json.RawMessage `json:"data,omitempty"`
	Description *string          `json:"description,omitempty"`
	Edges       []*NodeEdgeInput `json:"edges,omitempty"`
	// The node to change: PK (CUID / 32-char hex) or fully-qualified node URN (org::memory::loc). XOR with memoryId+loc.
	Id *string `json:"id,omitempty"`
	// Whether this node can be run as a task by hadron_run_task (cor:api:060). Omit to preserve.
	IsRunnable *bool   `json:"isRunnable,omitempty"`
	LlmModel   *string `json:"llmModel,omitempty"`
	// Selector, with 'memoryId': the target's current loc. Not writable here — moveNode relocates.
	Loc *string `json:"loc,omitempty"`
	// Selector, with 'loc': the target's memory (ID or fully-qualified URN). XOR with 'id'.
	MemoryId *string `json:"memoryId,omitempty"`
	// Omit to preserve (D4).
	Name       *string          `json:"name,omitempty"`
	NodeType   *string          `json:"nodeType,omitempty"`
	OwnerRepo  *string          `json:"ownerRepo,omitempty"`
	Properties *json.RawMessage `json:"properties,omitempty"`
	// Why this change was made — recorded on the version-history snapshot
	// (NodeVersion.editedBy), mirroring hadron_update_node's reason arg so CLI
	// and MCP edits leave equally-traceable history.
	Reason *string `json:"reason,omitempty"`
	Seq    *int    `json:"seq,omitempty"`
	// Omit to preserve existing tags (issue #235); supply to replace the set.
	Tags []string `json:"tags,omitempty"`
}

Input for updateNode. Identify the target by 'id' (PK or fully-qualified node URN) XOR ('memoryId' + 'loc') — both selectors, or neither, is an error (spec 039 Phase 0 D2). updateNode never creates and never moves (D3). Every content field is optional: omitted = preserved (D4).

func (*UpdateNodeInput) GetAbstract added in v0.5.1

func (v *UpdateNodeInput) GetAbstract() *string

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

func (*UpdateNodeInput) GetAiAgent added in v0.5.1

func (v *UpdateNodeInput) GetAiAgent() *string

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

func (*UpdateNodeInput) GetAlias added in v0.5.1

func (v *UpdateNodeInput) GetAlias() *string

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

func (*UpdateNodeInput) GetContent added in v0.5.1

func (v *UpdateNodeInput) GetContent() *string

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

func (*UpdateNodeInput) GetContentType added in v0.6.0

func (v *UpdateNodeInput) GetContentType() *string

GetContentType returns UpdateNodeInput.ContentType, and is useful for accessing the field via an interface.

func (*UpdateNodeInput) GetData added in v0.5.1

func (v *UpdateNodeInput) GetData() *json.RawMessage

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

func (*UpdateNodeInput) GetDescription added in v0.5.1

func (v *UpdateNodeInput) GetDescription() *string

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

func (*UpdateNodeInput) GetEdges added in v0.5.1

func (v *UpdateNodeInput) GetEdges() []*NodeEdgeInput

GetEdges returns UpdateNodeInput.Edges, and is useful for accessing the field via an interface.

func (*UpdateNodeInput) GetId added in v0.5.1

func (v *UpdateNodeInput) GetId() *string

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

func (*UpdateNodeInput) GetIsRunnable added in v0.5.1

func (v *UpdateNodeInput) GetIsRunnable() *bool

GetIsRunnable returns UpdateNodeInput.IsRunnable, and is useful for accessing the field via an interface.

func (*UpdateNodeInput) GetLlmModel added in v0.5.1

func (v *UpdateNodeInput) GetLlmModel() *string

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

func (*UpdateNodeInput) GetLoc added in v0.5.1

func (v *UpdateNodeInput) GetLoc() *string

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

func (*UpdateNodeInput) GetMemoryId added in v0.5.1

func (v *UpdateNodeInput) GetMemoryId() *string

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

func (*UpdateNodeInput) GetName added in v0.5.1

func (v *UpdateNodeInput) GetName() *string

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

func (*UpdateNodeInput) GetNodeType added in v0.5.1

func (v *UpdateNodeInput) GetNodeType() *string

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

func (*UpdateNodeInput) GetOwnerRepo added in v0.5.1

func (v *UpdateNodeInput) GetOwnerRepo() *string

GetOwnerRepo returns UpdateNodeInput.OwnerRepo, and is useful for accessing the field via an interface.

func (*UpdateNodeInput) GetProperties added in v0.5.1

func (v *UpdateNodeInput) GetProperties() *json.RawMessage

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

func (*UpdateNodeInput) GetReason added in v0.5.1

func (v *UpdateNodeInput) GetReason() *string

GetReason returns UpdateNodeInput.Reason, and is useful for accessing the field via an interface.

func (*UpdateNodeInput) GetSeq added in v0.5.1

func (v *UpdateNodeInput) GetSeq() *int

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

func (*UpdateNodeInput) GetTags added in v0.5.1

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

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

type UpdateNodeResponse added in v0.5.1

type UpdateNodeResponse struct {
	// Update an existing node. Identify it by 'id' (PK or fully-qualified node
	// URN) XOR the ('memoryId', 'loc') combo — supplying both selectors, or
	// neither, is an error (D2). Rejects with NODE_NOT_FOUND when the target
	// does not exist; updateNode never creates and never moves (relocation is
	// moveNode's job, D3). Every content field is optional — omitted fields are
	// preserved ('name' included, D4; 'abstract' keeps its omit/null/string
	// contract; omitted 'tags' are preserved, issue #235).
	UpdateNode *UpdateNodeUpdateNode `json:"updateNode"`
}

UpdateNodeResponse is returned by UpdateNode on success.

func UpdateNode added in v0.5.1

func UpdateNode(
	ctx_ context.Context,
	client_ graphql.Client,
	input *UpdateNodeInput,
) (data_ *UpdateNodeResponse, err_ error)

Update-only node write (spec 039 Phase 0). Target by `id` (PK or fully-qualified node URN) XOR (`memoryId` + `loc`) — both or neither is BAD_USER_INPUT; a miss is extensions.code NODE_NOT_FOUND (updateNode never creates). Every content field is optional: the server reads an *omitted* field as "preserve" (name and tags included) and an explicit null as "clear" — nil pointers must therefore be omitted from the wire, not serialized as null.

func (*UpdateNodeResponse) GetUpdateNode added in v0.5.1

func (v *UpdateNodeResponse) GetUpdateNode() *UpdateNodeUpdateNode

GetUpdateNode returns UpdateNodeResponse.UpdateNode, and is useful for accessing the field via an interface.

type UpdateNodeUpdateNode added in v0.5.1

type UpdateNodeUpdateNode struct {
	Id         string   `json:"id"`
	MemoryId   string   `json:"memoryId"`
	Loc        string   `json:"loc"`
	Name       string   `json:"name"`
	NodeType   string   `json:"nodeType"`
	Tags       []string `json:"tags"`
	IsRunnable *bool    `json:"isRunnable"`
	UpdatedAt  string   `json:"updatedAt"`
}

UpdateNodeUpdateNode includes the requested fields of the GraphQL type Node.

func (*UpdateNodeUpdateNode) GetId added in v0.5.1

func (v *UpdateNodeUpdateNode) GetId() string

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

func (*UpdateNodeUpdateNode) GetIsRunnable added in v0.5.1

func (v *UpdateNodeUpdateNode) GetIsRunnable() *bool

GetIsRunnable returns UpdateNodeUpdateNode.IsRunnable, and is useful for accessing the field via an interface.

func (*UpdateNodeUpdateNode) GetLoc added in v0.5.1

func (v *UpdateNodeUpdateNode) GetLoc() string

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

func (*UpdateNodeUpdateNode) GetMemoryId added in v0.5.1

func (v *UpdateNodeUpdateNode) GetMemoryId() string

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

func (*UpdateNodeUpdateNode) GetName added in v0.5.1

func (v *UpdateNodeUpdateNode) GetName() string

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

func (*UpdateNodeUpdateNode) GetNodeType added in v0.5.1

func (v *UpdateNodeUpdateNode) GetNodeType() string

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

func (*UpdateNodeUpdateNode) GetTags added in v0.5.1

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

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

func (*UpdateNodeUpdateNode) GetUpdatedAt added in v0.5.1

func (v *UpdateNodeUpdateNode) GetUpdatedAt() string

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

type UpdateOrgMemberResponse added in v0.3.0

type UpdateOrgMemberResponse struct {
	// Accepts the entity's ID or URN (orgId).
	UpdateOrgMember *UpdateOrgMemberUpdateOrgMember `json:"updateOrgMember"`
}

UpdateOrgMemberResponse is returned by UpdateOrgMember on success.

func UpdateOrgMember added in v0.3.0

func UpdateOrgMember(
	ctx_ context.Context,
	client_ graphql.Client,
	orgId string,
	userId string,
	role Role,
) (data_ *UpdateOrgMemberResponse, err_ error)

func (*UpdateOrgMemberResponse) GetUpdateOrgMember added in v0.3.0

GetUpdateOrgMember returns UpdateOrgMemberResponse.UpdateOrgMember, and is useful for accessing the field via an interface.

type UpdateOrgMemberUpdateOrgMember added in v0.3.0

type UpdateOrgMemberUpdateOrgMember struct {
	Id string `json:"id"`
	// Target member's role in this org. Null when the viewer isn't an ADMIN/OWNER of the org (#384 field-level visibility); always visible for one's own membership.
	Role *Role                               `json:"role"`
	User *UpdateOrgMemberUpdateOrgMemberUser `json:"user"`
}

UpdateOrgMemberUpdateOrgMember includes the requested fields of the GraphQL type OrgMember.

func (*UpdateOrgMemberUpdateOrgMember) GetId added in v0.3.0

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

func (*UpdateOrgMemberUpdateOrgMember) GetRole added in v0.3.0

func (v *UpdateOrgMemberUpdateOrgMember) GetRole() *Role

GetRole returns UpdateOrgMemberUpdateOrgMember.Role, and is useful for accessing the field via an interface.

func (*UpdateOrgMemberUpdateOrgMember) GetUser added in v0.3.0

GetUser returns UpdateOrgMemberUpdateOrgMember.User, and is useful for accessing the field via an interface.

type UpdateOrgMemberUpdateOrgMemberUser added in v0.3.0

type UpdateOrgMemberUpdateOrgMemberUser struct {
	UserFields `json:"-"`
}

UpdateOrgMemberUpdateOrgMemberUser includes the requested fields of the GraphQL type User.

func (*UpdateOrgMemberUpdateOrgMemberUser) GetEmail added in v0.3.0

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

func (*UpdateOrgMemberUpdateOrgMemberUser) GetGithubUsername added in v0.3.0

func (v *UpdateOrgMemberUpdateOrgMemberUser) GetGithubUsername() *string

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

func (*UpdateOrgMemberUpdateOrgMemberUser) GetHandle added in v0.3.0

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

func (*UpdateOrgMemberUpdateOrgMemberUser) GetId added in v0.3.0

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

func (*UpdateOrgMemberUpdateOrgMemberUser) GetName added in v0.3.0

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

func (*UpdateOrgMemberUpdateOrgMemberUser) GetRoles added in v0.3.0

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

GetRoles returns UpdateOrgMemberUpdateOrgMemberUser.Roles, and is useful for accessing the field via an interface.

func (*UpdateOrgMemberUpdateOrgMemberUser) MarshalJSON added in v0.3.0

func (v *UpdateOrgMemberUpdateOrgMemberUser) MarshalJSON() ([]byte, error)

func (*UpdateOrgMemberUpdateOrgMemberUser) UnmarshalJSON added in v0.3.0

func (v *UpdateOrgMemberUpdateOrgMemberUser) UnmarshalJSON(b []byte) error

type UpdateOrganizationResponse added in v0.3.0

type UpdateOrganizationResponse struct {
	// Update an Organization.
	//
	// Accepts the entity's ID or URN.
	UpdateOrganization *UpdateOrganizationUpdateOrganization `json:"updateOrganization"`
}

UpdateOrganizationResponse is returned by UpdateOrganization on success.

func UpdateOrganization added in v0.3.0

func UpdateOrganization(
	ctx_ context.Context,
	client_ graphql.Client,
	id string,
	name *string,
	urn *string,
	isVisible *bool,
) (data_ *UpdateOrganizationResponse, err_ error)

func (*UpdateOrganizationResponse) GetUpdateOrganization added in v0.3.0

GetUpdateOrganization returns UpdateOrganizationResponse.UpdateOrganization, and is useful for accessing the field via an interface.

type UpdateOrganizationUpdateOrganization added in v0.3.0

type UpdateOrganizationUpdateOrganization struct {
	OrgFields `json:"-"`
}

UpdateOrganizationUpdateOrganization includes the requested fields of the GraphQL type Organization.

func (*UpdateOrganizationUpdateOrganization) GetCreatedAt added in v0.3.0

func (v *UpdateOrganizationUpdateOrganization) GetCreatedAt() string

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

func (*UpdateOrganizationUpdateOrganization) GetId added in v0.3.0

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

func (*UpdateOrganizationUpdateOrganization) GetIsVisible added in v0.3.0

func (v *UpdateOrganizationUpdateOrganization) GetIsVisible() *bool

GetIsVisible returns UpdateOrganizationUpdateOrganization.IsVisible, and is useful for accessing the field via an interface.

func (*UpdateOrganizationUpdateOrganization) GetName added in v0.3.0

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

func (*UpdateOrganizationUpdateOrganization) GetUpdatedAt added in v0.3.0

func (v *UpdateOrganizationUpdateOrganization) GetUpdatedAt() string

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

func (*UpdateOrganizationUpdateOrganization) GetUrn added in v0.3.0

GetUrn returns UpdateOrganizationUpdateOrganization.Urn, and is useful for accessing the field via an interface.

func (*UpdateOrganizationUpdateOrganization) MarshalJSON added in v0.3.0

func (v *UpdateOrganizationUpdateOrganization) MarshalJSON() ([]byte, error)

func (*UpdateOrganizationUpdateOrganization) UnmarshalJSON added in v0.3.0

func (v *UpdateOrganizationUpdateOrganization) UnmarshalJSON(b []byte) error

type UserApiKeyFields added in v0.3.0

type UserApiKeyFields struct {
	Id         string  `json:"id"`
	Label      *string `json:"label"`
	KeyPreview string  `json:"keyPreview"`
	IssuedVia  *string `json:"issuedVia"`
	CreatedAt  string  `json:"createdAt"`
	LastUsedAt *string `json:"lastUsedAt"`
	RevokedAt  *string `json:"revokedAt"`
}

UserApiKeyFields includes the GraphQL fields of UserApiKey requested by the fragment UserApiKeyFields.

func (*UserApiKeyFields) GetCreatedAt added in v0.3.0

func (v *UserApiKeyFields) GetCreatedAt() string

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

func (*UserApiKeyFields) GetId added in v0.3.0

func (v *UserApiKeyFields) GetId() string

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

func (*UserApiKeyFields) GetIssuedVia added in v0.3.0

func (v *UserApiKeyFields) GetIssuedVia() *string

GetIssuedVia returns UserApiKeyFields.IssuedVia, and is useful for accessing the field via an interface.

func (*UserApiKeyFields) GetKeyPreview added in v0.3.0

func (v *UserApiKeyFields) GetKeyPreview() string

GetKeyPreview returns UserApiKeyFields.KeyPreview, and is useful for accessing the field via an interface.

func (*UserApiKeyFields) GetLabel added in v0.3.0

func (v *UserApiKeyFields) GetLabel() *string

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

func (*UserApiKeyFields) GetLastUsedAt added in v0.3.0

func (v *UserApiKeyFields) GetLastUsedAt() *string

GetLastUsedAt returns UserApiKeyFields.LastUsedAt, and is useful for accessing the field via an interface.

func (*UserApiKeyFields) GetRevokedAt added in v0.3.0

func (v *UserApiKeyFields) GetRevokedAt() *string

GetRevokedAt returns UserApiKeyFields.RevokedAt, and is useful for accessing the field via an interface.

type UserFields added in v0.3.0

type UserFields struct {
	Id             string  `json:"id"`
	Name           *string `json:"name"`
	Email          *string `json:"email"`
	Handle         *string `json:"handle"`
	GithubUsername *string `json:"githubUsername"`
	Roles          []Role  `json:"roles"`
}

UserFields includes the GraphQL fields of User requested by the fragment UserFields.

func (*UserFields) GetEmail added in v0.3.0

func (v *UserFields) GetEmail() *string

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

func (*UserFields) GetGithubUsername added in v0.3.0

func (v *UserFields) GetGithubUsername() *string

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

func (*UserFields) GetHandle added in v0.3.0

func (v *UserFields) GetHandle() *string

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

func (*UserFields) GetId added in v0.3.0

func (v *UserFields) GetId() string

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

func (*UserFields) GetName added in v0.3.0

func (v *UserFields) GetName() *string

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

func (*UserFields) GetRoles added in v0.3.0

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

GetRoles returns UserFields.Roles, and is useful for accessing the field via an interface.

Jump to

Keyboard shortcuts

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