跳转到内容

ak.schema.authorization_operations.v1

← Schema 目录

Arkret Authorization Operation DTOs
ak.schema.authorization_operations.v1 · schemas/authorization-operations.schema.json

Closed response DTOs for authorization query operations that need operation-specific list envelopes.

必填标记属于当前 Schema 对象或分支。oneOf、anyOf、if / then / else 中的 required 不表示所有实例均必填。树状视图有递归深度限制;完整约束以 canonical 原件为准。

必填 $ · anyOf[1]

Closed response DTOs for authorization query operations that need operation-specific list envelopes.

anyOf · anyOf[0] · object · $ref #/$defs/authorization_invite_page

此分支的 required:invites, has_more

分支必填 invites · array<$ref ./invite.schema.json>
items · object · $ref ./invite.schema.json

此分支的 required:id, schema, realm_id, inviter_account_id, invitee_account_id, introduction_evidence_digest, state, expires_at, created_at

分支必填 id · string
pattern: ^ak:invite:[A-Za-z0-9_-]{44}$
分支必填 schema · const "ak.schema.invite.v1"
enum: "ak.schema.invite.v1"
分支必填 realm_id · string · $ref ./common-ids.schema.json#/$defs/realm_id

Retyped ak.realm.create Event token. It therefore carries the same fixed current-v1 0x01/SHA-256 content-address identity and is not selected by Realm state.

pattern: ^ak:realm:[A-Za-z0-9_-]{44}$
分支必填 inviter_account_id · object · $ref ./common-ids.schema.json#/$defs/account_id

Complete protocol identity for a principal at one Station, including human, Organization and personal Agent accounts. It does not imply a human login, provisioning workflow, credential class or authorization. Equality is byte-for-byte equality of both canonical did_core_id components; neither component may be inferred from a DID Document, route, session audience, current service, handle, or local database key. Accounts with the same principal_id at different station_id values are permanently distinct. Principal equality MUST NOT establish account equivalence or any permission inheritance, merging, delegation, substitution or recovery relationship. Account-scoped authority requires independent authorization for the exact AccountId. Permanent loss of a Station does not permit its accounts or PCR lineages to migrate to or revive at another Station; Realm takeover and RealmCommit recovery do not waive this boundary. See models/common-fields.md section 4.2.

此分支的 required:principal_id, station_id

分支必填 principal_id · $ref #/$defs/did_core_id · $ref #/$defs/did_core_id
分支必填 station_id · $ref #/$defs/did_core_id · $ref #/$defs/did_core_id
分支必填 invitee_account_id · object · $ref ./common-ids.schema.json#/$defs/account_id

Complete protocol identity for a principal at one Station, including human, Organization and personal Agent accounts. It does not imply a human login, provisioning workflow, credential class or authorization. Equality is byte-for-byte equality of both canonical did_core_id components; neither component may be inferred from a DID Document, route, session audience, current service, handle, or local database key. Accounts with the same principal_id at different station_id values are permanently distinct. Principal equality MUST NOT establish account equivalence or any permission inheritance, merging, delegation, substitution or recovery relationship. Account-scoped authority requires independent authorization for the exact AccountId. Permanent loss of a Station does not permit its accounts or PCR lineages to migrate to or revive at another Station; Realm takeover and RealmCommit recovery do not waive this boundary. See models/common-fields.md section 4.2.

此分支的 required:principal_id, station_id

分支必填 principal_id · $ref #/$defs/did_core_id · $ref #/$defs/did_core_id
分支必填 station_id · $ref #/$defs/did_core_id · $ref #/$defs/did_core_id
分支必填 introduction_evidence_digest · $ref #/$defs/digest · $ref #/$defs/digest

Digest of private invite delivery introduction_evidence. Raw locator tokens and receive-policy state MUST NOT appear in durable Realm events.

capability_grant_refs · array<string>
items · string
pattern: ^ak:grant:[A-Za-z0-9_-]{44}$
分支必填 state · string (enum)
enum: "pending" "accepted" "rejected" "revoked" "expired"
分支必填 expires_at · $ref #/$defs/timestamp · $ref #/$defs/timestamp
分支必填 created_at · $ref #/$defs/timestamp · $ref #/$defs/timestamp
updated_by · oneOf[3] · $ref ./common-ids.schema.json#/$defs/actor_id

Closed complete actor identity: account binds a principal permanently to one Station; service acts as itself; realm binds an Applet Bot/Ghost permanently to one owning Realm. Full tagged-object equality is required. No authority is inferred from a discriminator, shared principal, key, route or DID controller.

oneOf · oneOf[0] · object

此分支的 required:kind, account_id

分支必填 kind · const "account"
enum: "account"
分支必填 account_id · $ref #/$defs/account_id · $ref #/$defs/account_id
oneOf · oneOf[1] · object

此分支的 required:kind, service_id

分支必填 kind · const "service"
enum: "service"
分支必填 service_id · $ref #/$defs/did_core_id · $ref #/$defs/did_core_id
oneOf · oneOf[2] · object

此分支的 required:kind, realm_actor_id

分支必填 kind · const "realm"
enum: "realm"
分支必填 realm_actor_id · object · $ref ./common-ids.schema.json#/$defs/realm_actor_id

Stable Realm-owned Bot/Ghost identity. Both components are required for equality; governance handoff does not change either. No Station binding or AccountId is implied.

此分支的 required:realm_id, principal_id

分支必填 realm_id · string · $ref ./common-ids.schema.json#/$defs/realm_id

Retyped ak.realm.create Event token. It therefore carries the same fixed current-v1 0x01/SHA-256 content-address identity and is not selected by Realm state.

pattern: ^ak:realm:[A-Za-z0-9_-]{44}$
分支必填 principal_id · allOf[2]
allOf · allOf[0] · string · $ref ./common-ids.schema.json#/$defs/did_core_id

Canonical stable DID-derived identity core. The lowercase DID method name follows ak:did_core:, and the remaining method-adapter-defined core is opaque to generic consumers. The did:web v1 adapter uses the complete canonical method-specific-id, never a digest or truncated host. Principal-core and service-core equality is byte-for-byte equality of the complete did_core_id. Event actor and Realm membership equality instead use the complete closed ActorId, and account-scoped equality uses the complete AccountId; neither may be reduced to a principal core. A did_core_id is not a DID and cannot be resolved without a did or AuthenticatedServiceResolution.

pattern: ^ak:did_core:[a-z0-9]+:[^\s/?#]+$
allOf · allOf[1] · ?
pattern: ^ak:did_core:webvh:[^\s/?#]+$
updated_at · $ref #/$defs/timestamp · $ref #/$defs/timestamp
(^x_[a-z][a-z0-9_]{0,63}$) · any
next_cursor · string · $ref #/$defs/cursor
pattern: ^ak:cursor:[A-Za-z0-9_-]+$
分支必填 has_more · boolean
完整 JSON(格式化展示)
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://arkret.org/v1/schemas/authorization-operations.schema.json",
  "title": "Arkret Authorization Operation DTOs",
  "description": "Closed response DTOs for authorization query operations that need operation-specific list envelopes.",
  "anyOf": [
    {
      "$ref": "#/$defs/authorization_invite_page"
    }
  ],
  "$defs": {
    "cursor": {
      "type": "string",
      "pattern": "^ak:cursor:[A-Za-z0-9_-]+$"
    },
    "authorization_invite_page": {
      "type": "object",
      "required": [
        "invites",
        "has_more"
      ],
      "properties": {
        "invites": {
          "type": "array",
          "items": {
            "$ref": "./invite.schema.json"
          }
        },
        "next_cursor": {
          "$ref": "#/$defs/cursor"
        },
        "has_more": {
          "type": "boolean"
        }
      },
      "additionalProperties": false,
      "x-arkret-name-role": "page"
    }
  }
}

查看 canonical 原件:spec/v1/artifacts/schemas/authorization-operations.schema.json

Source