@openvtc/trust-tasks 0.21.4 → 0.21.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +51 -0
- package/dist/_shared/components.d.ts +210 -2
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/auth/_shared/0.1/passkey-invite.d.ts +16 -0
- package/dist/auth/_shared/0.1/passkey-invite.d.ts.map +1 -0
- package/dist/auth/_shared/0.1/passkey-invite.js +6 -0
- package/dist/auth/_shared/0.1/passkey-invite.js.map +1 -0
- package/dist/auth/passkey/enroll/invite/list/0.1/payload.d.ts +393 -0
- package/dist/auth/passkey/enroll/invite/list/0.1/payload.d.ts.map +1 -0
- package/dist/auth/passkey/enroll/invite/list/0.1/payload.js +234 -0
- package/dist/auth/passkey/enroll/invite/list/0.1/payload.js.map +1 -0
- package/dist/auth/passkey/enroll/invite/revoke/0.1/payload.d.ts +228 -0
- package/dist/auth/passkey/enroll/invite/revoke/0.1/payload.d.ts.map +1 -0
- package/dist/auth/passkey/enroll/invite/revoke/0.1/payload.js +138 -0
- package/dist/auth/passkey/enroll/invite/revoke/0.1/payload.js.map +1 -0
- package/dist/auth/passkey/enroll/invite/update/0.1/payload.d.ts +459 -0
- package/dist/auth/passkey/enroll/invite/update/0.1/payload.d.ts.map +1 -0
- package/dist/auth/passkey/enroll/invite/update/0.1/payload.js +286 -0
- package/dist/auth/passkey/enroll/invite/update/0.1/payload.js.map +1 -0
- package/dist/auth/revoke-session/0.2/payload.d.ts +347 -0
- package/dist/auth/revoke-session/0.2/payload.d.ts.map +1 -0
- package/dist/auth/revoke-session/0.2/payload.js +209 -0
- package/dist/auth/revoke-session/0.2/payload.js.map +1 -0
- package/dist/auth/step-up/start/0.1/payload.d.ts +420 -0
- package/dist/auth/step-up/start/0.1/payload.d.ts.map +1 -0
- package/dist/auth/step-up/start/0.1/payload.js +232 -0
- package/dist/auth/step-up/start/0.1/payload.js.map +1 -0
- package/dist/did-management/_shared/0.1/service-instance.d.ts +1 -1
- package/dist/did-management/_shared/0.1/service-instance.d.ts.map +1 -1
- package/dist/did-management/_shared/0.2/metrics-snapshot.d.ts +16 -0
- package/dist/did-management/_shared/0.2/metrics-snapshot.d.ts.map +1 -0
- package/dist/did-management/_shared/0.2/metrics-snapshot.js +6 -0
- package/dist/did-management/_shared/0.2/metrics-snapshot.js.map +1 -0
- package/dist/did-management/_shared/0.2/service-instance.d.ts +16 -0
- package/dist/did-management/_shared/0.2/service-instance.d.ts.map +1 -0
- package/dist/did-management/_shared/0.2/service-instance.js +6 -0
- package/dist/did-management/_shared/0.2/service-instance.js.map +1 -0
- package/dist/did-management/agent-name/resolve/0.1/payload.d.ts +318 -0
- package/dist/did-management/agent-name/resolve/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/agent-name/resolve/0.1/payload.js +179 -0
- package/dist/did-management/agent-name/resolve/0.1/payload.js.map +1 -0
- package/dist/did-management/did/log/0.1/payload.d.ts +436 -0
- package/dist/did-management/did/log/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/did/log/0.1/payload.js +228 -0
- package/dist/did-management/did/log/0.1/payload.js.map +1 -0
- package/dist/did-management/domain/list/0.1/payload.d.ts +423 -0
- package/dist/did-management/domain/list/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/domain/list/0.1/payload.js +244 -0
- package/dist/did-management/domain/list/0.1/payload.js.map +1 -0
- package/dist/did-management/identity/list/0.1/payload.d.ts +494 -0
- package/dist/did-management/identity/list/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/identity/list/0.1/payload.js +274 -0
- package/dist/did-management/identity/list/0.1/payload.js.map +1 -0
- package/dist/did-management/identity/retire/0.1/payload.d.ts +242 -0
- package/dist/did-management/identity/retire/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/identity/retire/0.1/payload.js +142 -0
- package/dist/did-management/identity/retire/0.1/payload.js.map +1 -0
- package/dist/did-management/registry/admin-register/0.1/payload.d.ts +1 -1
- package/dist/did-management/registry/admin-register/0.1/payload.d.ts.map +1 -1
- package/dist/did-management/registry/check/0.1/payload.d.ts +639 -0
- package/dist/did-management/registry/check/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/registry/check/0.1/payload.js +383 -0
- package/dist/did-management/registry/check/0.1/payload.js.map +1 -0
- package/dist/did-management/registry/get/0.1/payload.d.ts +632 -0
- package/dist/did-management/registry/get/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/registry/get/0.1/payload.js +381 -0
- package/dist/did-management/registry/get/0.1/payload.js.map +1 -0
- package/dist/did-management/registry/list/0.1/payload.d.ts +661 -0
- package/dist/did-management/registry/list/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/registry/list/0.1/payload.js +398 -0
- package/dist/did-management/registry/list/0.1/payload.js.map +1 -0
- package/dist/did-management/registry/purge-domain/0.1/payload.d.ts +269 -0
- package/dist/did-management/registry/purge-domain/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/registry/purge-domain/0.1/payload.js +160 -0
- package/dist/did-management/registry/purge-domain/0.1/payload.js.map +1 -0
- package/dist/did-management/replica/domain/assign/0.1/payload.d.ts +233 -0
- package/dist/did-management/replica/domain/assign/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/replica/domain/assign/0.1/payload.js +143 -0
- package/dist/did-management/replica/domain/assign/0.1/payload.js.map +1 -0
- package/dist/did-management/replica/domain/purge/0.1/payload.d.ts +257 -0
- package/dist/did-management/replica/domain/purge/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/replica/domain/purge/0.1/payload.js +155 -0
- package/dist/did-management/replica/domain/purge/0.1/payload.js.map +1 -0
- package/dist/did-management/replica/domain/unassign/0.1/payload.d.ts +257 -0
- package/dist/did-management/replica/domain/unassign/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/replica/domain/unassign/0.1/payload.js +155 -0
- package/dist/did-management/replica/domain/unassign/0.1/payload.js.map +1 -0
- package/dist/did-management/replica/domain/upsert/0.1/payload.d.ts +401 -0
- package/dist/did-management/replica/domain/upsert/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/replica/domain/upsert/0.1/payload.js +241 -0
- package/dist/did-management/replica/domain/upsert/0.1/payload.js.map +1 -0
- package/dist/did-management/server/config/0.1/payload.d.ts +838 -0
- package/dist/did-management/server/config/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/server/config/0.1/payload.js +444 -0
- package/dist/did-management/server/config/0.1/payload.js.map +1 -0
- package/dist/did-management/server/info/0.1/payload.d.ts +285 -0
- package/dist/did-management/server/info/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/server/info/0.1/payload.js +160 -0
- package/dist/did-management/server/info/0.1/payload.js.map +1 -0
- package/dist/did-management/server/metrics/0.1/payload.d.ts +674 -0
- package/dist/did-management/server/metrics/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/server/metrics/0.1/payload.js +387 -0
- package/dist/did-management/server/metrics/0.1/payload.js.map +1 -0
- package/dist/did-management/stats/get/0.1/payload.d.ts +349 -0
- package/dist/did-management/stats/get/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/stats/get/0.1/payload.js +187 -0
- package/dist/did-management/stats/get/0.1/payload.js.map +1 -0
- package/dist/did-management/stats/timeseries/0.1/payload.d.ts +381 -0
- package/dist/did-management/stats/timeseries/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/stats/timeseries/0.1/payload.js +227 -0
- package/dist/did-management/stats/timeseries/0.1/payload.js.map +1 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +38 -0
- package/dist/index.js.map +1 -1
- package/dist/keys/import-wrapping-key/0.1/payload.d.ts +289 -0
- package/dist/keys/import-wrapping-key/0.1/payload.d.ts.map +1 -0
- package/dist/keys/import-wrapping-key/0.1/payload.js +158 -0
- package/dist/keys/import-wrapping-key/0.1/payload.js.map +1 -0
- package/dist/vta/health/details/0.1/payload.d.ts +479 -0
- package/dist/vta/health/details/0.1/payload.d.ts.map +1 -0
- package/dist/vta/health/details/0.1/payload.js +258 -0
- package/dist/vta/health/details/0.1/payload.js.map +1 -0
- package/dist/vta/restore/status/0.1/payload.d.ts +565 -0
- package/dist/vta/restore/status/0.1/payload.d.ts.map +1 -0
- package/dist/vta/restore/status/0.1/payload.js +294 -0
- package/dist/vta/restore/status/0.1/payload.js.map +1 -0
- package/dist/vtc/_shared/0.1/invite.d.ts +1 -1
- package/dist/vtc/_shared/0.1/invite.d.ts.map +1 -1
- package/dist/vtc/admin/invites/list/0.1/payload.d.ts +1 -1
- package/dist/vtc/admin/invites/list/0.1/payload.d.ts.map +1 -1
- package/dist/webvh/_shared/0.1/sync-update.d.ts +16 -0
- package/dist/webvh/_shared/0.1/sync-update.d.ts.map +1 -0
- package/dist/webvh/_shared/0.1/sync-update.js +6 -0
- package/dist/webvh/_shared/0.1/sync-update.js.map +1 -0
- package/dist/webvh/_shared/0.1/witness-key.d.ts +16 -0
- package/dist/webvh/_shared/0.1/witness-key.d.ts.map +1 -0
- package/dist/webvh/_shared/0.1/witness-key.js +6 -0
- package/dist/webvh/_shared/0.1/witness-key.js.map +1 -0
- package/dist/webvh/sync/batch/0.1/payload.d.ts +503 -0
- package/dist/webvh/sync/batch/0.1/payload.d.ts.map +1 -0
- package/dist/webvh/sync/batch/0.1/payload.js +290 -0
- package/dist/webvh/sync/batch/0.1/payload.js.map +1 -0
- package/dist/webvh/sync/delete/0.2/payload.d.ts +242 -0
- package/dist/webvh/sync/delete/0.2/payload.d.ts.map +1 -0
- package/dist/webvh/sync/delete/0.2/payload.js +148 -0
- package/dist/webvh/sync/delete/0.2/payload.js.map +1 -0
- package/dist/webvh/sync/update/0.2/payload.d.ts +315 -0
- package/dist/webvh/sync/update/0.2/payload.d.ts.map +1 -0
- package/dist/webvh/sync/update/0.2/payload.js +177 -0
- package/dist/webvh/sync/update/0.2/payload.js.map +1 -0
- package/dist/webvh/witness/key/create/0.1/payload.d.ts +346 -0
- package/dist/webvh/witness/key/create/0.1/payload.d.ts.map +1 -0
- package/dist/webvh/witness/key/create/0.1/payload.js +202 -0
- package/dist/webvh/witness/key/create/0.1/payload.js.map +1 -0
- package/dist/webvh/witness/key/delete/0.1/payload.d.ts +237 -0
- package/dist/webvh/witness/key/delete/0.1/payload.d.ts.map +1 -0
- package/dist/webvh/witness/key/delete/0.1/payload.js +141 -0
- package/dist/webvh/witness/key/delete/0.1/payload.js.map +1 -0
- package/dist/webvh/witness/key/list/0.1/payload.d.ts +349 -0
- package/dist/webvh/witness/key/list/0.1/payload.d.ts.map +1 -0
- package/dist/webvh/witness/key/list/0.1/payload.js +204 -0
- package/dist/webvh/witness/key/list/0.1/payload.js.map +1 -0
- package/dist/webvh/witness/sign/0.1/payload.d.ts +401 -0
- package/dist/webvh/witness/sign/0.1/payload.d.ts.map +1 -0
- package/dist/webvh/witness/sign/0.1/payload.js +229 -0
- package/dist/webvh/witness/sign/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +210 -2
- package/src/auth/_shared/0.1/passkey-invite.ts +17 -0
- package/src/auth/passkey/enroll/invite/list/0.1/payload.ts +266 -0
- package/src/auth/passkey/enroll/invite/revoke/0.1/payload.ts +165 -0
- package/src/auth/passkey/enroll/invite/update/0.1/payload.ts +327 -0
- package/src/auth/revoke-session/0.2/payload.ts +268 -0
- package/src/auth/step-up/start/0.1/payload.ts +287 -0
- package/src/did-management/_shared/0.1/service-instance.ts +1 -1
- package/src/did-management/_shared/0.2/metrics-snapshot.ts +17 -0
- package/src/did-management/_shared/0.2/service-instance.ts +17 -0
- package/src/did-management/agent-name/resolve/0.1/payload.ts +222 -0
- package/src/did-management/did/log/0.1/payload.ts +295 -0
- package/src/did-management/domain/list/0.1/payload.ts +280 -0
- package/src/did-management/identity/list/0.1/payload.ts +335 -0
- package/src/did-management/identity/retire/0.1/payload.ts +175 -0
- package/src/did-management/registry/admin-register/0.1/payload.ts +1 -1
- package/src/did-management/registry/check/0.1/payload.ts +415 -0
- package/src/did-management/registry/get/0.1/payload.ts +410 -0
- package/src/did-management/registry/list/0.1/payload.ts +434 -0
- package/src/did-management/registry/purge-domain/0.1/payload.ts +198 -0
- package/src/did-management/replica/domain/assign/0.1/payload.ts +173 -0
- package/src/did-management/replica/domain/purge/0.1/payload.ts +189 -0
- package/src/did-management/replica/domain/unassign/0.1/payload.ts +189 -0
- package/src/did-management/replica/domain/upsert/0.1/payload.ts +271 -0
- package/src/did-management/server/config/0.1/payload.ts +545 -0
- package/src/did-management/server/info/0.1/payload.ts +200 -0
- package/src/did-management/server/metrics/0.1/payload.ts +418 -0
- package/src/did-management/stats/get/0.1/payload.ts +237 -0
- package/src/did-management/stats/timeseries/0.1/payload.ts +279 -0
- package/src/index.ts +38 -0
- package/src/keys/import-wrapping-key/0.1/payload.ts +206 -0
- package/src/vta/health/details/0.1/payload.ts +336 -0
- package/src/vta/restore/status/0.1/payload.ts +379 -0
- package/src/vtc/_shared/0.1/invite.ts +1 -1
- package/src/vtc/admin/invites/list/0.1/payload.ts +1 -1
- package/src/webvh/_shared/0.1/sync-update.ts +17 -0
- package/src/webvh/_shared/0.1/witness-key.ts +17 -0
- package/src/webvh/sync/batch/0.1/payload.ts +336 -0
- package/src/webvh/sync/delete/0.2/payload.ts +181 -0
- package/src/webvh/sync/update/0.2/payload.ts +233 -0
- package/src/webvh/witness/key/create/0.1/payload.ts +231 -0
- package/src/webvh/witness/key/delete/0.1/payload.ts +171 -0
- package/src/webvh/witness/key/list/0.1/payload.ts +232 -0
- package/src/webvh/witness/sign/0.1/payload.ts +279 -0
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/did-management/did/log/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/did-management/did/log/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/did-management/did/log/0.1#response";
|
|
9
|
+
/**
|
|
10
|
+
* This specification's payload schema, as a value.
|
|
11
|
+
*
|
|
12
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
13
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
14
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
15
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
16
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
17
|
+
*/
|
|
18
|
+
export const PAYLOAD_SCHEMA = {
|
|
19
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
20
|
+
"$id": "https://trusttasks.org/spec/did-management/did/log/0.1",
|
|
21
|
+
"title": "DID Log — payload",
|
|
22
|
+
"type": "object",
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"required": [
|
|
25
|
+
"mnemonic"
|
|
26
|
+
],
|
|
27
|
+
"properties": {
|
|
28
|
+
"mnemonic": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"minLength": 1,
|
|
31
|
+
"maxLength": 512
|
|
32
|
+
},
|
|
33
|
+
"domain": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"minLength": 1,
|
|
36
|
+
"maxLength": 253,
|
|
37
|
+
"description": "Disambiguates `mnemonic` per the category conventions. Absent means the domain is resolved by the category's chain."
|
|
38
|
+
},
|
|
39
|
+
"raw": {
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"description": "When true, the response also carries the stored artifacts verbatim. Absent or false means parsed entries only."
|
|
42
|
+
},
|
|
43
|
+
"ext": {
|
|
44
|
+
"$ref": "#/$defs/Ext"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"$defs": {
|
|
48
|
+
"Response": {
|
|
49
|
+
"$anchor": "response",
|
|
50
|
+
"title": "DID Log — response payload",
|
|
51
|
+
"type": "object",
|
|
52
|
+
"additionalProperties": false,
|
|
53
|
+
"required": [
|
|
54
|
+
"mnemonic",
|
|
55
|
+
"method",
|
|
56
|
+
"entries"
|
|
57
|
+
],
|
|
58
|
+
"properties": {
|
|
59
|
+
"mnemonic": {
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
"method": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"minLength": 1,
|
|
65
|
+
"description": "The slot's DID method (`webvh`, `web`, `webs`, …). Determines what an entry is."
|
|
66
|
+
},
|
|
67
|
+
"entries": {
|
|
68
|
+
"type": "array",
|
|
69
|
+
"description": "The slot's history, oldest first. For did:webvh, one per log line; for a method with no log (did:web) a single entry for the current document; for did:webs one per establishment event that changed the document.",
|
|
70
|
+
"items": {
|
|
71
|
+
"type": "object",
|
|
72
|
+
"additionalProperties": false,
|
|
73
|
+
"required": [
|
|
74
|
+
"state"
|
|
75
|
+
],
|
|
76
|
+
"properties": {
|
|
77
|
+
"versionId": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"description": "The entry's version identifier. Absent for a method that has none."
|
|
80
|
+
},
|
|
81
|
+
"versionTime": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"format": "date-time",
|
|
84
|
+
"description": "When the entry was made, as the entry states it. Absent for a method that records none."
|
|
85
|
+
},
|
|
86
|
+
"state": {
|
|
87
|
+
"type": "object",
|
|
88
|
+
"description": "The DID document as of this entry."
|
|
89
|
+
},
|
|
90
|
+
"parameters": {
|
|
91
|
+
"type": "object",
|
|
92
|
+
"description": "The method's parameters as of this entry (did:webvh log parameters). Absent for a method that has none."
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"logContent": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"description": "The stored primary artifact verbatim — did.jsonl for did:webvh, the key event stream for did:webs, did.json for did:web. Present iff the request set raw: true."
|
|
100
|
+
},
|
|
101
|
+
"witnessContent": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"description": "The stored did-witness.json verbatim. Present iff the request set raw: true and the slot holds witness proofs."
|
|
104
|
+
},
|
|
105
|
+
"ext": {
|
|
106
|
+
"$ref": "#/$defs/Ext"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"Ext": {
|
|
111
|
+
"title": "Ext",
|
|
112
|
+
"description": "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.",
|
|
113
|
+
"type": "object",
|
|
114
|
+
"minProperties": 1,
|
|
115
|
+
"additionalProperties": true,
|
|
116
|
+
"propertyNames": {
|
|
117
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
123
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
124
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
125
|
+
"$ref": "#/$defs/Response",
|
|
126
|
+
"$defs": {
|
|
127
|
+
"Response": {
|
|
128
|
+
"$anchor": "response",
|
|
129
|
+
"title": "DID Log — response payload",
|
|
130
|
+
"type": "object",
|
|
131
|
+
"additionalProperties": false,
|
|
132
|
+
"required": [
|
|
133
|
+
"mnemonic",
|
|
134
|
+
"method",
|
|
135
|
+
"entries"
|
|
136
|
+
],
|
|
137
|
+
"properties": {
|
|
138
|
+
"mnemonic": {
|
|
139
|
+
"type": "string"
|
|
140
|
+
},
|
|
141
|
+
"method": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"minLength": 1,
|
|
144
|
+
"description": "The slot's DID method (`webvh`, `web`, `webs`, …). Determines what an entry is."
|
|
145
|
+
},
|
|
146
|
+
"entries": {
|
|
147
|
+
"type": "array",
|
|
148
|
+
"description": "The slot's history, oldest first. For did:webvh, one per log line; for a method with no log (did:web) a single entry for the current document; for did:webs one per establishment event that changed the document.",
|
|
149
|
+
"items": {
|
|
150
|
+
"type": "object",
|
|
151
|
+
"additionalProperties": false,
|
|
152
|
+
"required": [
|
|
153
|
+
"state"
|
|
154
|
+
],
|
|
155
|
+
"properties": {
|
|
156
|
+
"versionId": {
|
|
157
|
+
"type": "string",
|
|
158
|
+
"description": "The entry's version identifier. Absent for a method that has none."
|
|
159
|
+
},
|
|
160
|
+
"versionTime": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
"format": "date-time",
|
|
163
|
+
"description": "When the entry was made, as the entry states it. Absent for a method that records none."
|
|
164
|
+
},
|
|
165
|
+
"state": {
|
|
166
|
+
"type": "object",
|
|
167
|
+
"description": "The DID document as of this entry."
|
|
168
|
+
},
|
|
169
|
+
"parameters": {
|
|
170
|
+
"type": "object",
|
|
171
|
+
"description": "The method's parameters as of this entry (did:webvh log parameters). Absent for a method that has none."
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"logContent": {
|
|
177
|
+
"type": "string",
|
|
178
|
+
"description": "The stored primary artifact verbatim — did.jsonl for did:webvh, the key event stream for did:webs, did.json for did:web. Present iff the request set raw: true."
|
|
179
|
+
},
|
|
180
|
+
"witnessContent": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"description": "The stored did-witness.json verbatim. Present iff the request set raw: true and the slot holds witness proofs."
|
|
183
|
+
},
|
|
184
|
+
"ext": {
|
|
185
|
+
"$ref": "#/$defs/Ext"
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"Ext": {
|
|
190
|
+
"title": "Ext",
|
|
191
|
+
"description": "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.",
|
|
192
|
+
"type": "object",
|
|
193
|
+
"minProperties": 1,
|
|
194
|
+
"additionalProperties": true,
|
|
195
|
+
"propertyNames": {
|
|
196
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
203
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
204
|
+
* per-specification and cannot be derived from the document alone, and
|
|
205
|
+
* item 2 needs the schema this carries.
|
|
206
|
+
*/
|
|
207
|
+
export const SPEC = {
|
|
208
|
+
typeUri: TYPE_URI,
|
|
209
|
+
isBearer: false,
|
|
210
|
+
isProofRequired: true,
|
|
211
|
+
isRecipientRequired: true,
|
|
212
|
+
isIssuedAtRequired: false,
|
|
213
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
217
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
218
|
+
* parties (§7.3 item 5).
|
|
219
|
+
*/
|
|
220
|
+
export const RESPONSE_SPEC = {
|
|
221
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
222
|
+
isBearer: false,
|
|
223
|
+
isProofRequired: true,
|
|
224
|
+
isRecipientRequired: true,
|
|
225
|
+
isIssuedAtRequired: false,
|
|
226
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
227
|
+
};
|
|
228
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/did-management/did/log/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA0DH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,wDAAiE,CAAC;AAK1F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,iEAA0E,CAAC;AAK5G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KA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kB,EAAE,KAAK;IACzB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
|
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/did-management/domain/list/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { DomainEntry, Ext } from "../../../../_shared/components.js";
|
|
6
|
+
export interface DomainListPayload {
|
|
7
|
+
/**
|
|
8
|
+
* Only domains in this state. Absent means every state.
|
|
9
|
+
*/
|
|
10
|
+
status?: "active" | "disabled";
|
|
11
|
+
ext?: Ext;
|
|
12
|
+
}
|
|
13
|
+
export interface DomainListResponsePayload {
|
|
14
|
+
/**
|
|
15
|
+
* Every matching hosting domain, ordered by name.
|
|
16
|
+
*/
|
|
17
|
+
domains: DomainEntry[];
|
|
18
|
+
/**
|
|
19
|
+
* The service's system-default domain. Absent when none is set.
|
|
20
|
+
*/
|
|
21
|
+
default?: string;
|
|
22
|
+
ext?: Ext;
|
|
23
|
+
}
|
|
24
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
25
|
+
export type { DomainEntry, Ext };
|
|
26
|
+
/** Trust Task type URI. */
|
|
27
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/did-management/domain/list/0.1";
|
|
28
|
+
/** Stable alias for this specification's request payload shape. */
|
|
29
|
+
export type Payload = DomainListPayload;
|
|
30
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
31
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/did-management/domain/list/0.1#response";
|
|
32
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
33
|
+
export type Response = DomainListResponsePayload;
|
|
34
|
+
/**
|
|
35
|
+
* This specification's payload schema, as a value.
|
|
36
|
+
*
|
|
37
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
38
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
39
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
40
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
41
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
42
|
+
*/
|
|
43
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
44
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
45
|
+
readonly $id: "https://trusttasks.org/spec/did-management/domain/list/0.1";
|
|
46
|
+
readonly title: "Domain List — payload";
|
|
47
|
+
readonly type: "object";
|
|
48
|
+
readonly additionalProperties: false;
|
|
49
|
+
readonly properties: {
|
|
50
|
+
readonly status: {
|
|
51
|
+
readonly type: "string";
|
|
52
|
+
readonly enum: readonly ["active", "disabled"];
|
|
53
|
+
readonly description: "Only domains in this state. Absent means every state.";
|
|
54
|
+
};
|
|
55
|
+
readonly ext: {
|
|
56
|
+
readonly $ref: "#/$defs/Ext";
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
readonly $defs: {
|
|
60
|
+
readonly Response: {
|
|
61
|
+
readonly $anchor: "response";
|
|
62
|
+
readonly title: "Domain List — response payload";
|
|
63
|
+
readonly type: "object";
|
|
64
|
+
readonly additionalProperties: false;
|
|
65
|
+
readonly required: readonly ["domains"];
|
|
66
|
+
readonly properties: {
|
|
67
|
+
readonly domains: {
|
|
68
|
+
readonly type: "array";
|
|
69
|
+
readonly items: {
|
|
70
|
+
readonly $ref: "#/$defs/DomainEntry";
|
|
71
|
+
};
|
|
72
|
+
readonly description: "Every matching hosting domain, ordered by name.";
|
|
73
|
+
};
|
|
74
|
+
readonly default: {
|
|
75
|
+
readonly type: "string";
|
|
76
|
+
readonly description: "The service's system-default domain. Absent when none is set.";
|
|
77
|
+
};
|
|
78
|
+
readonly ext: {
|
|
79
|
+
readonly $ref: "#/$defs/Ext";
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
readonly Ext: {
|
|
84
|
+
readonly title: "Ext";
|
|
85
|
+
readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
|
|
86
|
+
readonly type: "object";
|
|
87
|
+
readonly minProperties: 1;
|
|
88
|
+
readonly additionalProperties: true;
|
|
89
|
+
readonly propertyNames: {
|
|
90
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
readonly DomainEntry: {
|
|
94
|
+
readonly title: "DomainEntry";
|
|
95
|
+
readonly type: "object";
|
|
96
|
+
readonly additionalProperties: false;
|
|
97
|
+
readonly required: readonly ["name", "status", "createdAt"];
|
|
98
|
+
readonly properties: {
|
|
99
|
+
readonly name: {
|
|
100
|
+
readonly type: "string";
|
|
101
|
+
readonly description: "Hosting domain name (e.g. `did.example.com`). Compared case-insensitively; producers SHOULD emit lowercase canonical form.";
|
|
102
|
+
};
|
|
103
|
+
readonly label: {
|
|
104
|
+
readonly type: "string";
|
|
105
|
+
readonly description: "Optional human-readable label.";
|
|
106
|
+
};
|
|
107
|
+
readonly status: {
|
|
108
|
+
readonly type: "string";
|
|
109
|
+
readonly enum: readonly ["active", "disabled"];
|
|
110
|
+
readonly description: "Domain lifecycle state. A `disabled` domain still serves existing DIDs in read-only mode for the host's configured grace period before purge becomes eligible.";
|
|
111
|
+
};
|
|
112
|
+
readonly defaultDomain: {
|
|
113
|
+
readonly type: "boolean";
|
|
114
|
+
readonly description: "When `true`, this domain is the host's default — new DIDs created without an explicit domain are hosted here. Exactly one entry SHOULD carry `defaultDomain: true`.";
|
|
115
|
+
};
|
|
116
|
+
readonly createdAt: {
|
|
117
|
+
readonly type: "string";
|
|
118
|
+
readonly format: "date-time";
|
|
119
|
+
};
|
|
120
|
+
readonly disabledAt: {
|
|
121
|
+
readonly type: "string";
|
|
122
|
+
readonly format: "date-time";
|
|
123
|
+
readonly description: "Present iff `status === \"disabled\"`.";
|
|
124
|
+
};
|
|
125
|
+
readonly purgeAt: {
|
|
126
|
+
readonly type: "string";
|
|
127
|
+
readonly format: "date-time";
|
|
128
|
+
readonly description: "Earliest RFC3339 timestamp at which the host's background sweep is allowed to purge content for a disabled domain. Operators with administrative authority MAY override the wait via `domain/purge`.";
|
|
129
|
+
};
|
|
130
|
+
readonly ext: {
|
|
131
|
+
readonly $ref: "#/$defs/Ext";
|
|
132
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
139
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
140
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
141
|
+
readonly $ref: "#/$defs/Response";
|
|
142
|
+
readonly $defs: {
|
|
143
|
+
readonly Response: {
|
|
144
|
+
readonly $anchor: "response";
|
|
145
|
+
readonly title: "Domain List — response payload";
|
|
146
|
+
readonly type: "object";
|
|
147
|
+
readonly additionalProperties: false;
|
|
148
|
+
readonly required: readonly ["domains"];
|
|
149
|
+
readonly properties: {
|
|
150
|
+
readonly domains: {
|
|
151
|
+
readonly type: "array";
|
|
152
|
+
readonly items: {
|
|
153
|
+
readonly $ref: "#/$defs/DomainEntry";
|
|
154
|
+
};
|
|
155
|
+
readonly description: "Every matching hosting domain, ordered by name.";
|
|
156
|
+
};
|
|
157
|
+
readonly default: {
|
|
158
|
+
readonly type: "string";
|
|
159
|
+
readonly description: "The service's system-default domain. Absent when none is set.";
|
|
160
|
+
};
|
|
161
|
+
readonly ext: {
|
|
162
|
+
readonly $ref: "#/$defs/Ext";
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
readonly Ext: {
|
|
167
|
+
readonly title: "Ext";
|
|
168
|
+
readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
|
|
169
|
+
readonly type: "object";
|
|
170
|
+
readonly minProperties: 1;
|
|
171
|
+
readonly additionalProperties: true;
|
|
172
|
+
readonly propertyNames: {
|
|
173
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
readonly DomainEntry: {
|
|
177
|
+
readonly title: "DomainEntry";
|
|
178
|
+
readonly type: "object";
|
|
179
|
+
readonly additionalProperties: false;
|
|
180
|
+
readonly required: readonly ["name", "status", "createdAt"];
|
|
181
|
+
readonly properties: {
|
|
182
|
+
readonly name: {
|
|
183
|
+
readonly type: "string";
|
|
184
|
+
readonly description: "Hosting domain name (e.g. `did.example.com`). Compared case-insensitively; producers SHOULD emit lowercase canonical form.";
|
|
185
|
+
};
|
|
186
|
+
readonly label: {
|
|
187
|
+
readonly type: "string";
|
|
188
|
+
readonly description: "Optional human-readable label.";
|
|
189
|
+
};
|
|
190
|
+
readonly status: {
|
|
191
|
+
readonly type: "string";
|
|
192
|
+
readonly enum: readonly ["active", "disabled"];
|
|
193
|
+
readonly description: "Domain lifecycle state. A `disabled` domain still serves existing DIDs in read-only mode for the host's configured grace period before purge becomes eligible.";
|
|
194
|
+
};
|
|
195
|
+
readonly defaultDomain: {
|
|
196
|
+
readonly type: "boolean";
|
|
197
|
+
readonly description: "When `true`, this domain is the host's default — new DIDs created without an explicit domain are hosted here. Exactly one entry SHOULD carry `defaultDomain: true`.";
|
|
198
|
+
};
|
|
199
|
+
readonly createdAt: {
|
|
200
|
+
readonly type: "string";
|
|
201
|
+
readonly format: "date-time";
|
|
202
|
+
};
|
|
203
|
+
readonly disabledAt: {
|
|
204
|
+
readonly type: "string";
|
|
205
|
+
readonly format: "date-time";
|
|
206
|
+
readonly description: "Present iff `status === \"disabled\"`.";
|
|
207
|
+
};
|
|
208
|
+
readonly purgeAt: {
|
|
209
|
+
readonly type: "string";
|
|
210
|
+
readonly format: "date-time";
|
|
211
|
+
readonly description: "Earliest RFC3339 timestamp at which the host's background sweep is allowed to purge content for a disabled domain. Operators with administrative authority MAY override the wait via `domain/purge`.";
|
|
212
|
+
};
|
|
213
|
+
readonly ext: {
|
|
214
|
+
readonly $ref: "#/$defs/Ext";
|
|
215
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
/**
|
|
222
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
223
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
224
|
+
* per-specification and cannot be derived from the document alone, and
|
|
225
|
+
* item 2 needs the schema this carries.
|
|
226
|
+
*/
|
|
227
|
+
export declare const SPEC: {
|
|
228
|
+
readonly typeUri: "https://trusttasks.org/spec/did-management/domain/list/0.1";
|
|
229
|
+
readonly isBearer: false;
|
|
230
|
+
readonly isProofRequired: true;
|
|
231
|
+
readonly isRecipientRequired: true;
|
|
232
|
+
readonly isIssuedAtRequired: false;
|
|
233
|
+
readonly payloadSchema: {
|
|
234
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
235
|
+
readonly $id: "https://trusttasks.org/spec/did-management/domain/list/0.1";
|
|
236
|
+
readonly title: "Domain List — payload";
|
|
237
|
+
readonly type: "object";
|
|
238
|
+
readonly additionalProperties: false;
|
|
239
|
+
readonly properties: {
|
|
240
|
+
readonly status: {
|
|
241
|
+
readonly type: "string";
|
|
242
|
+
readonly enum: readonly ["active", "disabled"];
|
|
243
|
+
readonly description: "Only domains in this state. Absent means every state.";
|
|
244
|
+
};
|
|
245
|
+
readonly ext: {
|
|
246
|
+
readonly $ref: "#/$defs/Ext";
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
readonly $defs: {
|
|
250
|
+
readonly Response: {
|
|
251
|
+
readonly $anchor: "response";
|
|
252
|
+
readonly title: "Domain List — response payload";
|
|
253
|
+
readonly type: "object";
|
|
254
|
+
readonly additionalProperties: false;
|
|
255
|
+
readonly required: readonly ["domains"];
|
|
256
|
+
readonly properties: {
|
|
257
|
+
readonly domains: {
|
|
258
|
+
readonly type: "array";
|
|
259
|
+
readonly items: {
|
|
260
|
+
readonly $ref: "#/$defs/DomainEntry";
|
|
261
|
+
};
|
|
262
|
+
readonly description: "Every matching hosting domain, ordered by name.";
|
|
263
|
+
};
|
|
264
|
+
readonly default: {
|
|
265
|
+
readonly type: "string";
|
|
266
|
+
readonly description: "The service's system-default domain. Absent when none is set.";
|
|
267
|
+
};
|
|
268
|
+
readonly ext: {
|
|
269
|
+
readonly $ref: "#/$defs/Ext";
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
readonly Ext: {
|
|
274
|
+
readonly title: "Ext";
|
|
275
|
+
readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
|
|
276
|
+
readonly type: "object";
|
|
277
|
+
readonly minProperties: 1;
|
|
278
|
+
readonly additionalProperties: true;
|
|
279
|
+
readonly propertyNames: {
|
|
280
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
readonly DomainEntry: {
|
|
284
|
+
readonly title: "DomainEntry";
|
|
285
|
+
readonly type: "object";
|
|
286
|
+
readonly additionalProperties: false;
|
|
287
|
+
readonly required: readonly ["name", "status", "createdAt"];
|
|
288
|
+
readonly properties: {
|
|
289
|
+
readonly name: {
|
|
290
|
+
readonly type: "string";
|
|
291
|
+
readonly description: "Hosting domain name (e.g. `did.example.com`). Compared case-insensitively; producers SHOULD emit lowercase canonical form.";
|
|
292
|
+
};
|
|
293
|
+
readonly label: {
|
|
294
|
+
readonly type: "string";
|
|
295
|
+
readonly description: "Optional human-readable label.";
|
|
296
|
+
};
|
|
297
|
+
readonly status: {
|
|
298
|
+
readonly type: "string";
|
|
299
|
+
readonly enum: readonly ["active", "disabled"];
|
|
300
|
+
readonly description: "Domain lifecycle state. A `disabled` domain still serves existing DIDs in read-only mode for the host's configured grace period before purge becomes eligible.";
|
|
301
|
+
};
|
|
302
|
+
readonly defaultDomain: {
|
|
303
|
+
readonly type: "boolean";
|
|
304
|
+
readonly description: "When `true`, this domain is the host's default — new DIDs created without an explicit domain are hosted here. Exactly one entry SHOULD carry `defaultDomain: true`.";
|
|
305
|
+
};
|
|
306
|
+
readonly createdAt: {
|
|
307
|
+
readonly type: "string";
|
|
308
|
+
readonly format: "date-time";
|
|
309
|
+
};
|
|
310
|
+
readonly disabledAt: {
|
|
311
|
+
readonly type: "string";
|
|
312
|
+
readonly format: "date-time";
|
|
313
|
+
readonly description: "Present iff `status === \"disabled\"`.";
|
|
314
|
+
};
|
|
315
|
+
readonly purgeAt: {
|
|
316
|
+
readonly type: "string";
|
|
317
|
+
readonly format: "date-time";
|
|
318
|
+
readonly description: "Earliest RFC3339 timestamp at which the host's background sweep is allowed to purge content for a disabled domain. Operators with administrative authority MAY override the wait via `domain/purge`.";
|
|
319
|
+
};
|
|
320
|
+
readonly ext: {
|
|
321
|
+
readonly $ref: "#/$defs/Ext";
|
|
322
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
/**
|
|
330
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
331
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
332
|
+
* parties (§7.3 item 5).
|
|
333
|
+
*/
|
|
334
|
+
export declare const RESPONSE_SPEC: {
|
|
335
|
+
readonly typeUri: "https://trusttasks.org/spec/did-management/domain/list/0.1#response";
|
|
336
|
+
readonly isBearer: false;
|
|
337
|
+
readonly isProofRequired: true;
|
|
338
|
+
readonly isRecipientRequired: true;
|
|
339
|
+
readonly isIssuedAtRequired: false;
|
|
340
|
+
readonly payloadSchema: {
|
|
341
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
342
|
+
readonly $ref: "#/$defs/Response";
|
|
343
|
+
readonly $defs: {
|
|
344
|
+
readonly Response: {
|
|
345
|
+
readonly $anchor: "response";
|
|
346
|
+
readonly title: "Domain List — response payload";
|
|
347
|
+
readonly type: "object";
|
|
348
|
+
readonly additionalProperties: false;
|
|
349
|
+
readonly required: readonly ["domains"];
|
|
350
|
+
readonly properties: {
|
|
351
|
+
readonly domains: {
|
|
352
|
+
readonly type: "array";
|
|
353
|
+
readonly items: {
|
|
354
|
+
readonly $ref: "#/$defs/DomainEntry";
|
|
355
|
+
};
|
|
356
|
+
readonly description: "Every matching hosting domain, ordered by name.";
|
|
357
|
+
};
|
|
358
|
+
readonly default: {
|
|
359
|
+
readonly type: "string";
|
|
360
|
+
readonly description: "The service's system-default domain. Absent when none is set.";
|
|
361
|
+
};
|
|
362
|
+
readonly ext: {
|
|
363
|
+
readonly $ref: "#/$defs/Ext";
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
readonly Ext: {
|
|
368
|
+
readonly title: "Ext";
|
|
369
|
+
readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
|
|
370
|
+
readonly type: "object";
|
|
371
|
+
readonly minProperties: 1;
|
|
372
|
+
readonly additionalProperties: true;
|
|
373
|
+
readonly propertyNames: {
|
|
374
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
readonly DomainEntry: {
|
|
378
|
+
readonly title: "DomainEntry";
|
|
379
|
+
readonly type: "object";
|
|
380
|
+
readonly additionalProperties: false;
|
|
381
|
+
readonly required: readonly ["name", "status", "createdAt"];
|
|
382
|
+
readonly properties: {
|
|
383
|
+
readonly name: {
|
|
384
|
+
readonly type: "string";
|
|
385
|
+
readonly description: "Hosting domain name (e.g. `did.example.com`). Compared case-insensitively; producers SHOULD emit lowercase canonical form.";
|
|
386
|
+
};
|
|
387
|
+
readonly label: {
|
|
388
|
+
readonly type: "string";
|
|
389
|
+
readonly description: "Optional human-readable label.";
|
|
390
|
+
};
|
|
391
|
+
readonly status: {
|
|
392
|
+
readonly type: "string";
|
|
393
|
+
readonly enum: readonly ["active", "disabled"];
|
|
394
|
+
readonly description: "Domain lifecycle state. A `disabled` domain still serves existing DIDs in read-only mode for the host's configured grace period before purge becomes eligible.";
|
|
395
|
+
};
|
|
396
|
+
readonly defaultDomain: {
|
|
397
|
+
readonly type: "boolean";
|
|
398
|
+
readonly description: "When `true`, this domain is the host's default — new DIDs created without an explicit domain are hosted here. Exactly one entry SHOULD carry `defaultDomain: true`.";
|
|
399
|
+
};
|
|
400
|
+
readonly createdAt: {
|
|
401
|
+
readonly type: "string";
|
|
402
|
+
readonly format: "date-time";
|
|
403
|
+
};
|
|
404
|
+
readonly disabledAt: {
|
|
405
|
+
readonly type: "string";
|
|
406
|
+
readonly format: "date-time";
|
|
407
|
+
readonly description: "Present iff `status === \"disabled\"`.";
|
|
408
|
+
};
|
|
409
|
+
readonly purgeAt: {
|
|
410
|
+
readonly type: "string";
|
|
411
|
+
readonly format: "date-time";
|
|
412
|
+
readonly description: "Earliest RFC3339 timestamp at which the host's background sweep is allowed to purge content for a disabled domain. Operators with administrative authority MAY override the wait via `domain/purge`.";
|
|
413
|
+
};
|
|
414
|
+
readonly ext: {
|
|
415
|
+
readonly $ref: "#/$defs/Ext";
|
|
416
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|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