ak.schema.realm_stream_page.v1
ak.schema.realm_stream_page.v1 · schemas/realm-read-operations.schema.jsonClosed response DTOs for the self-surface Realm read operations (ak.self.realm.*). Realm read returns the lifecycle projection, stream enumeration returns the visible authority streams of one Realm, and export returns a full event-log + operation dump. See spec/v1/zh/models/realm-and-space.md.
必填标记属于当前 Schema 对象或分支。oneOf、anyOf、if / then / else 中的 required 不表示所有实例均必填。树状视图有递归深度限制;完整约束以 canonical 原件为准。
可视树中没有匹配项。清除条件或查看下面的完整 JSON。
必填 $ · anyOf[3]
Closed response DTOs for the self-surface Realm read operations (ak.self.realm.*). Realm read returns the lifecycle projection, stream enumeration returns the visible authority streams of one Realm, and export returns a full event-log + operation dump. See spec/v1/zh/models/realm-and-space.md.
anyOf · anyOf[0] · object · $ref #/$defs/realm_lifecycle_view
此分支的 required:realm_id, owner_id, member_ids, deleted
string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$string · $ref #/$defs/did_core_idCanonical 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.
^ak:did_core:[a-z0-9]+:[^\s/?#]+$分支必填 member_ids · array<$ref ./common-ids.schema.json#/$defs/actor_id>
items · 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
const "account""account"$ref #/$defs/account_id · $ref #/$defs/account_idoneOf · oneOf[1] · object
此分支的 required:kind, service_id
const "service""service"string · $ref #/$defs/did_core_idCanonical 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.
^ak:did_core:[a-z0-9]+:[^\s/?#]+$oneOf · oneOf[2] · object
此分支的 required:kind, realm_actor_id
const "realm""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
string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$分支必填 principal_id · allOf[2]
string · $ref ./common-ids.schema.json#/$defs/did_core_idCanonical 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.
^ak:did_core:[a-z0-9]+:[^\s/?#]+$?^ak:did_core:webvh:[^\s/?#]+$booleanbooleanfalsebooleanfalsestring (enum)"tombstoned" "destroyed"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$anyOf · anyOf[1] · object · $ref #/$defs/realm_stream_page
ACL-filtered, paginated enumeration of one Realm's authority streams (ak.self.realm.read.streams.v1). It is the discovery surface that positional scan cannot be: scan requires a stream_ref the caller already knows, so without this list a stream outside the bounded subscribe window would be undiscoverable. Pagination is a fixed snapshot: the page sequence is taken against one server-side generation, so a stream that appears after the first page is NOT inserted into the earlier pages and is therefore never skipped; it is discovered by a later enumeration or by the visible discovery delta. Permissions are re-checked on every page, so a page MAY be narrower than its predecessor, and a stream the caller has stopped being permitted to know about MUST disappear rather than be served from the frozen generation.
此分支的 required:realm_id, streams, has_more
string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$分支必填 streams · array<$ref #/$defs/realm_stream_view>
Rows sorted by unsigned bytes of RFC 8785 JCS(stream_ref), the same order the subscribe frame truncates in, so enumeration and delivery agree on which streams a bounded window kept. The Realm stream is a row like any other.
items · object · $ref #/$defs/realm_stream_view
One authority stream of the Realm that this caller is permitted to know exists and whose Commit chain is already established. Progress uses the same {head_commit_ref, next_position} shape as zh/sync/service-surface.md section 4.6, and readable_floor is the same anchor the scan surface returns, so a client can enumerate, bind its permitted prefix and continue the tail without a second vocabulary.
此分支的 required:stream_ref, head_commit_ref, next_position
分支必填 stream_ref · oneOf[3] · $ref ./realm-commit.schema.json#/$defs/stream_ref
Closed independent stream selector: Realm, Sidecar or private realm_control. realm_control is not a business, membership, capability or MLS scope.
oneOf · oneOf[0] · object
此分支的 required:kind, realm_id
const "realm""realm"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$oneOf · oneOf[1] · object
此分支的 required:kind, realm_id, sidecar_id
const "sidecar""sidecar"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$string · $ref ./common-ids.schema.json#/$defs/sidecar_id^ak:sidecar:[A-Za-z0-9_-]{44}$oneOf · oneOf[2] · object
此分支的 required:kind, realm_id
const "realm_control""realm_control"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$string · $ref ./common-ids.schema.json#/$defs/realm_commit_idContent-addressed identity of a closed unsigned RealmCommit body. The suffix uses the fixed v1 digest suite and the same canonical 33-octet token encoding as Event IDs.
^ak:realm_commit:[A-Za-z0-9_-]{44}$integerNext stream_position this stream expects, i.e. head stream_position + 1. Positions are never compared across streams.
readable_floor · object · $ref ./authority-commit-operations.schema.json#/$defs/readable_floor
Verifiable bottom of one caller's readable range on one stream. The anchor lets a member whose history is trimmed verify that its permitted prefix is complete without ever holding position 0: it proves where the accepted chain that caller may read begins, and it proves nothing about whether the Station holds further history below it or further updates above it.
此分支的 required:oldest_position, floor_commit_id, floor_reason
integerSmallest stream_position this caller is permitted to read. Positions below it are unreadable, not missing: their absence MUST NOT be treated as a gap and MUST NOT be used to infer activity, membership or existence below the floor.
string · $ref ./common-ids.schema.json#/$defs/realm_commit_idContent-addressed identity of a closed unsigned RealmCommit body. The suffix uses the fixed v1 digest suite and the same canonical 33-octet token encoding as Event IDs.
^ak:realm_commit:[A-Za-z0-9_-]{44}$string (enum)Why the range starts here. stream_start means the floor is the physical start of the stream and oldest_position is 0; the other two are trimmed ranges and MUST NOT be reported as stream_start. Retention never moves a floor: v1 never deletes an accepted RealmCommit and expired Events are returned through the withheld CommittedEventView branch.
"stream_start" "membership_join" "history_access_policy"string · $ref #/$defs/cursorOpaque continuation of this enumeration. Absent means the current page is the last one.
^ak:cursor:[A-Za-z0-9_-]+$booleanThe only field a client may use to decide whether to keep paging (zh/sync/api-conventions.md section 7.1).
anyOf · anyOf[2] · object · $ref #/$defs/realm_export
此分支的 required:schema, realm_id, generated_at, operations, events
const "ak.export.realm.v1""ak.export.realm.v1"string · $ref ./common-ids.schema.json#/$defs/realm_idRetyped 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.
^ak:realm:[A-Za-z0-9_-]{44}$string (date-time) · format=date-time · $ref #/$defs/timestampCanonical Arkret-owned absolute instant. UTC Z form with exactly three millisecond digits. Whole seconds MUST use .000Z; offsets, missing/finer fractions, lowercase separators, leap seconds, and invalid Gregorian calendar dates are forbidden. Shape validation by this pattern is supplemented by semantic date validation.
^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]\.[0-9]{3}Z$分支必填 operations · array<object>
Operation dump rows {operation_id, realm_id, object_kind, operation_type, payload, created_at}.
object分支必填 events · array<object>
Event-log dump rows {event_id, realm_id, event_kind, operation_type, operation_id, sender, payload, created_at}.
object完整 JSON(格式化展示)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://arkret.org/v1/schemas/realm-read-operations.schema.json",
"title": "Arkret Realm Read Operation DTOs",
"description": "Closed response DTOs for the self-surface Realm read operations (ak.self.realm.*). Realm read returns the lifecycle projection, stream enumeration returns the visible authority streams of one Realm, and export returns a full event-log + operation dump. See spec/v1/zh/models/realm-and-space.md.",
"anyOf": [
{
"$ref": "#/$defs/realm_lifecycle_view"
},
{
"$ref": "#/$defs/realm_stream_page"
},
{
"$ref": "#/$defs/realm_export"
}
],
"$defs": {
"did_core_id": {
"$ref": "./common-ids.schema.json#/$defs/did_core_id"
},
"timestamp": {
"$ref": "./time.schema.json#/$defs/timestamp"
},
"cursor": {
"$ref": "./authorization-operations.schema.json#/$defs/cursor"
},
"realm_stream_view": {
"type": "object",
"description": "One authority stream of the Realm that this caller is permitted to know exists and whose Commit chain is already established. Progress uses the same {head_commit_ref, next_position} shape as zh/sync/service-surface.md section 4.6, and readable_floor is the same anchor the scan surface returns, so a client can enumerate, bind its permitted prefix and continue the tail without a second vocabulary.",
"required": [
"stream_ref",
"head_commit_ref",
"next_position"
],
"properties": {
"stream_ref": {
"$ref": "./realm-commit.schema.json#/$defs/stream_ref"
},
"head_commit_ref": {
"$ref": "./common-ids.schema.json#/$defs/realm_commit_id",
"description": "Head Commit of this stream as known to the server when the page was served. A stream with no Commit yet MUST NOT appear in this list at all rather than appear with an empty head."
},
"next_position": {
"type": "integer",
"minimum": 0,
"description": "Next stream_position this stream expects, i.e. head stream_position + 1. Positions are never compared across streams."
},
"readable_floor": {
"$ref": "./authority-commit-operations.schema.json#/$defs/readable_floor",
"description": "Bottom of this caller's readable range on this stream. Omitted only when the caller may read no Commit of the stream while still being permitted to know that it exists."
}
},
"additionalProperties": false
},
"realm_stream_page": {
"type": "object",
"description": "ACL-filtered, paginated enumeration of one Realm's authority streams (ak.self.realm.read.streams.v1). It is the discovery surface that positional scan cannot be: scan requires a stream_ref the caller already knows, so without this list a stream outside the bounded subscribe window would be undiscoverable. Pagination is a fixed snapshot: the page sequence is taken against one server-side generation, so a stream that appears after the first page is NOT inserted into the earlier pages and is therefore never skipped; it is discovered by a later enumeration or by the visible discovery delta. Permissions are re-checked on every page, so a page MAY be narrower than its predecessor, and a stream the caller has stopped being permitted to know about MUST disappear rather than be served from the frozen generation.",
"required": [
"realm_id",
"streams",
"has_more"
],
"properties": {
"realm_id": {
"$ref": "./common-ids.schema.json#/$defs/realm_id"
},
"streams": {
"type": "array",
"maxItems": 500,
"uniqueItems": true,
"items": {
"$ref": "#/$defs/realm_stream_view"
},
"description": "Rows sorted by unsigned bytes of RFC 8785 JCS(stream_ref), the same order the subscribe frame truncates in, so enumeration and delivery agree on which streams a bounded window kept. The Realm stream is a row like any other."
},
"next_cursor": {
"$ref": "#/$defs/cursor",
"description": "Opaque continuation of this enumeration. Absent means the current page is the last one."
},
"has_more": {
"type": "boolean",
"description": "The only field a client may use to decide whether to keep paging (zh/sync/api-conventions.md section 7.1)."
}
},
"additionalProperties": false,
"x-arkret-name-role": "page"
},
"realm_lifecycle_view": {
"type": "object",
"required": [
"realm_id",
"owner_id",
"member_ids",
"deleted"
],
"properties": {
"realm_id": {
"$ref": "./common-ids.schema.json#/$defs/realm_id"
},
"owner_id": {
"$ref": "#/$defs/did_core_id"
},
"member_ids": {
"type": "array",
"items": {
"$ref": "./common-ids.schema.json#/$defs/actor_id"
},
"uniqueItems": true
},
"deleted": {
"type": "boolean"
},
"archived": {
"type": "boolean",
"default": false
},
"frozen": {
"type": "boolean",
"default": false
},
"terminal_state": {
"type": "string",
"enum": [
"tombstoned",
"destroyed"
],
"x-arkret-value-ownership": {
"class": "owned_symbol",
"authority": "realm-read-operations.schema.json#/$defs/realm_lifecycle_view/properties/terminal_state",
"owner": "realm-read-operations.schema.json#/$defs/realm_lifecycle_view/properties/terminal_state",
"values": [
"tombstoned",
"destroyed"
]
}
},
"successor_realm_id": {
"$ref": "./common-ids.schema.json#/$defs/realm_id"
}
},
"additionalProperties": false
},
"realm_export": {
"type": "object",
"required": [
"schema",
"realm_id",
"generated_at",
"operations",
"events"
],
"properties": {
"schema": {
"const": "ak.export.realm.v1",
"x-arkret-value-ownership": {
"class": "namespaced_symbol",
"authority": "realm-read-operations.schema.json#/$defs/realm_export/properties/schema",
"owner": "realm-read-operations.schema.json#/$defs/realm_export/properties/schema",
"values": [
"ak.export.realm.v1"
]
}
},
"realm_id": {
"$ref": "./common-ids.schema.json#/$defs/realm_id"
},
"generated_at": {
"$ref": "#/$defs/timestamp"
},
"operations": {
"type": "array",
"items": {
"type": "object"
},
"description": "Operation dump rows {operation_id, realm_id, object_kind, operation_type, payload, created_at}."
},
"events": {
"type": "array",
"items": {
"type": "object"
},
"description": "Event-log dump rows {event_id, realm_id, event_kind, operation_type, operation_id, sender, payload, created_at}."
}
},
"additionalProperties": false
}
}
}查看 canonical 原件:spec/v1/artifacts/schemas/realm-read-operations.schema.json
Source
- registry row:
spec/v1/artifacts/registry/schema-registry.json - schema document:
spec/v1/artifacts/schemas/realm-read-operations.schema.json