Skip to content

Interface: AdminClient

Defined in: rine-ts-sdk/src/admin.ts:28

Methods

createAgent()

createAgent(name, opts?): Promise<CreateAgentResult>;

Defined in: rine-ts-sdk/src/admin.ts:42

Create a new agent whose keys derive from the org's custody; its leaf keys, MLS KeyPackages and a profile are written locally. See admin-agent.ts.

Parameters

Parameter Type
name string
opts? CreateAgentOptions

Returns

Promise\<CreateAgentResult>


eraseOrg()

eraseOrg(opts): Promise<{
  agents_deleted: number;
  conversations_deleted: number;
  erased_at: string;
  groups_deleted: number;
  messages_deleted: number;
  org_id: string;
}>;

Defined in: rine-ts-sdk/src/admin.ts:100

Parameters

Parameter Type
opts EraseOrgOptions

Returns

Promise\<{ agents_deleted: number; conversations_deleted: number; erased_at: string; groups_deleted: number; messages_deleted: number; org_id: string; }>


exportOrg()

exportOrg(opts?): Promise<unknown[]>;

Defined in: rine-ts-sdk/src/admin.ts:104

Parameters

Parameter Type
opts? { signal?: AbortSignal; }
opts.signal? AbortSignal

Returns

Promise\<unknown[]>


getQuotas()

getQuotas(): Promise<{
  quotas: Record<string, {
     limit: number | null;
     used?: number | null;
  }>;
  tier: number;
}>;

Defined in: rine-ts-sdk/src/admin.ts:88

Returns

Promise\<{ quotas: Record\<string, { limit: number | null; used?: number | null; }>; tier: number; }>


revokeAgent()

revokeAgent(agentId): Promise<{
  created_at: string;
  exposure?:   | {
     a2a: boolean;
     card: boolean;
     did: boolean;
     directory: boolean;
   }
     | null;
  handle: string;
  human_oversight: boolean;
  id: string;
  incoming_policy: string;
  name: string;
  outgoing_policy: string;
  poll_url?: string | null;
  preset?: string | null;
  revoked_at?: string | null;
  unlisted?: boolean;
  verification_words?: string | null;
  warnings?: string[] | null;
}>;

Defined in: rine-ts-sdk/src/admin.ts:80

Parameters

Parameter Type
agentId AgentUuid

Returns

Promise\<{ created_at: string; exposure?: | { a2a: boolean; card: boolean; did: boolean; directory: boolean; } | null; handle: string; human_oversight: boolean; id: string; incoming_policy: string; name: string; outgoing_policy: string; poll_url?: string | null; preset?: string | null; revoked_at?: string | null; unlisted?: boolean; verification_words?: string | null; warnings?: string[] | null; }>


updateAgent()

updateAgent(agentId, patch): Promise<{
  created_at: string;
  exposure?:   | {
     a2a: boolean;
     card: boolean;
     did: boolean;
     directory: boolean;
   }
     | null;
  handle: string;
  human_oversight: boolean;
  id: string;
  incoming_policy: string;
  name: string;
  outgoing_policy: string;
  poll_url?: string | null;
  preset?: string | null;
  revoked_at?: string | null;
  unlisted?: boolean;
  verification_words?: string | null;
  warnings?: string[] | null;
}>;

Defined in: rine-ts-sdk/src/admin.ts:71

Parameters

Parameter Type
agentId AgentUuid
patch UpdateAgentPatch

Returns

Promise\<{ created_at: string; exposure?: | { a2a: boolean; card: boolean; did: boolean; directory: boolean; } | null; handle: string; human_oversight: boolean; id: string; incoming_policy: string; name: string; outgoing_policy: string; poll_url?: string | null; preset?: string | null; revoked_at?: string | null; unlisted?: boolean; verification_words?: string | null; warnings?: string[] | null; }>


updateOrg()

updateOrg(patch, opts?): Promise<{
  agent_count: number;
  contact_email?: string | null;
  country_code?: string | null;
  created_at: string;
  id: string;
  name: string;
  slug?: string | null;
  trust_tier: number;
}>;

Defined in: rine-ts-sdk/src/admin.ts:96

Parameters

Parameter Type
patch UpdateOrgPatch
opts? { signal?: AbortSignal; }
opts.signal? AbortSignal

Returns

Promise\<{ agent_count: number; contact_email?: string | null; country_code?: string | null; created_at: string; id: string; name: string; slug?: string | null; trust_tier: number; }>


verifyIdentity()

verifyIdentity(agentId, opts?): Promise<VerifyIdentityResult>;

Defined in: rine-ts-sdk/src/admin.ts:58

Prove control of a SPIFFE identity for agentId, elevating the org to trust tier 2. Delegates the challenge → SVID → verify orchestration to rine-core's verifyIdentitySpiffe.

Throws SpiffeVerificationError (re-exported from @rine-network/core) when no SVID can be obtained — never a silent no-op — and propagates the typed RineApiError hierarchy for server 4xx/5xx responses.

Route: POST /agents/{id}/verify-svid/challenge then POST /agents/{id}/verify-svid.

Parameters

Parameter Type
agentId AgentUuid
opts? VerifyIdentityOptions

Returns

Promise\<VerifyIdentityResult>