@openvtc/trust-tasks 0.21.4 → 0.21.5
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 +18 -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/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 +34 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +34 -0
- package/dist/index.js.map +1 -1
- 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/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 +34 -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,436 @@
|
|
|
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
|
+
import type { Ext } from "../../../../_shared/components.js";
|
|
6
|
+
export interface DIDLogPayload {
|
|
7
|
+
mnemonic: string;
|
|
8
|
+
/**
|
|
9
|
+
* Disambiguates `mnemonic` per the category conventions. Absent means the domain is resolved by the category's chain.
|
|
10
|
+
*/
|
|
11
|
+
domain?: string;
|
|
12
|
+
/**
|
|
13
|
+
* When true, the response also carries the stored artifacts verbatim. Absent or false means parsed entries only.
|
|
14
|
+
*/
|
|
15
|
+
raw?: boolean;
|
|
16
|
+
ext?: Ext;
|
|
17
|
+
}
|
|
18
|
+
export interface DIDLogResponsePayload {
|
|
19
|
+
mnemonic: string;
|
|
20
|
+
/**
|
|
21
|
+
* The slot's DID method (`webvh`, `web`, `webs`, …). Determines what an entry is.
|
|
22
|
+
*/
|
|
23
|
+
method: string;
|
|
24
|
+
/**
|
|
25
|
+
* 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.
|
|
26
|
+
*/
|
|
27
|
+
entries: {
|
|
28
|
+
/**
|
|
29
|
+
* The entry's version identifier. Absent for a method that has none.
|
|
30
|
+
*/
|
|
31
|
+
versionId?: string;
|
|
32
|
+
/**
|
|
33
|
+
* When the entry was made, as the entry states it. Absent for a method that records none.
|
|
34
|
+
*/
|
|
35
|
+
versionTime?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The DID document as of this entry.
|
|
38
|
+
*/
|
|
39
|
+
state: {};
|
|
40
|
+
/**
|
|
41
|
+
* The method's parameters as of this entry (did:webvh log parameters). Absent for a method that has none.
|
|
42
|
+
*/
|
|
43
|
+
parameters?: {};
|
|
44
|
+
}[];
|
|
45
|
+
/**
|
|
46
|
+
* 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.
|
|
47
|
+
*/
|
|
48
|
+
logContent?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The stored did-witness.json verbatim. Present iff the request set raw: true and the slot holds witness proofs.
|
|
51
|
+
*/
|
|
52
|
+
witnessContent?: string;
|
|
53
|
+
ext?: Ext;
|
|
54
|
+
}
|
|
55
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
56
|
+
export type { Ext };
|
|
57
|
+
/** Trust Task type URI. */
|
|
58
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/did-management/did/log/0.1";
|
|
59
|
+
/** Stable alias for this specification's request payload shape. */
|
|
60
|
+
export type Payload = DIDLogPayload;
|
|
61
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
62
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/did-management/did/log/0.1#response";
|
|
63
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
64
|
+
export type Response = DIDLogResponsePayload;
|
|
65
|
+
/**
|
|
66
|
+
* This specification's payload schema, as a value.
|
|
67
|
+
*
|
|
68
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
69
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
70
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
71
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
72
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
73
|
+
*/
|
|
74
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
75
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
76
|
+
readonly $id: "https://trusttasks.org/spec/did-management/did/log/0.1";
|
|
77
|
+
readonly title: "DID Log — payload";
|
|
78
|
+
readonly type: "object";
|
|
79
|
+
readonly additionalProperties: false;
|
|
80
|
+
readonly required: readonly ["mnemonic"];
|
|
81
|
+
readonly properties: {
|
|
82
|
+
readonly mnemonic: {
|
|
83
|
+
readonly type: "string";
|
|
84
|
+
readonly minLength: 1;
|
|
85
|
+
readonly maxLength: 512;
|
|
86
|
+
};
|
|
87
|
+
readonly domain: {
|
|
88
|
+
readonly type: "string";
|
|
89
|
+
readonly minLength: 1;
|
|
90
|
+
readonly maxLength: 253;
|
|
91
|
+
readonly description: "Disambiguates `mnemonic` per the category conventions. Absent means the domain is resolved by the category's chain.";
|
|
92
|
+
};
|
|
93
|
+
readonly raw: {
|
|
94
|
+
readonly type: "boolean";
|
|
95
|
+
readonly description: "When true, the response also carries the stored artifacts verbatim. Absent or false means parsed entries only.";
|
|
96
|
+
};
|
|
97
|
+
readonly ext: {
|
|
98
|
+
readonly $ref: "#/$defs/Ext";
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
readonly $defs: {
|
|
102
|
+
readonly Response: {
|
|
103
|
+
readonly $anchor: "response";
|
|
104
|
+
readonly title: "DID Log — response payload";
|
|
105
|
+
readonly type: "object";
|
|
106
|
+
readonly additionalProperties: false;
|
|
107
|
+
readonly required: readonly ["mnemonic", "method", "entries"];
|
|
108
|
+
readonly properties: {
|
|
109
|
+
readonly mnemonic: {
|
|
110
|
+
readonly type: "string";
|
|
111
|
+
};
|
|
112
|
+
readonly method: {
|
|
113
|
+
readonly type: "string";
|
|
114
|
+
readonly minLength: 1;
|
|
115
|
+
readonly description: "The slot's DID method (`webvh`, `web`, `webs`, …). Determines what an entry is.";
|
|
116
|
+
};
|
|
117
|
+
readonly entries: {
|
|
118
|
+
readonly type: "array";
|
|
119
|
+
readonly 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.";
|
|
120
|
+
readonly items: {
|
|
121
|
+
readonly type: "object";
|
|
122
|
+
readonly additionalProperties: false;
|
|
123
|
+
readonly required: readonly ["state"];
|
|
124
|
+
readonly properties: {
|
|
125
|
+
readonly versionId: {
|
|
126
|
+
readonly type: "string";
|
|
127
|
+
readonly description: "The entry's version identifier. Absent for a method that has none.";
|
|
128
|
+
};
|
|
129
|
+
readonly versionTime: {
|
|
130
|
+
readonly type: "string";
|
|
131
|
+
readonly format: "date-time";
|
|
132
|
+
readonly description: "When the entry was made, as the entry states it. Absent for a method that records none.";
|
|
133
|
+
};
|
|
134
|
+
readonly state: {
|
|
135
|
+
readonly type: "object";
|
|
136
|
+
readonly description: "The DID document as of this entry.";
|
|
137
|
+
};
|
|
138
|
+
readonly parameters: {
|
|
139
|
+
readonly type: "object";
|
|
140
|
+
readonly description: "The method's parameters as of this entry (did:webvh log parameters). Absent for a method that has none.";
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
readonly logContent: {
|
|
146
|
+
readonly type: "string";
|
|
147
|
+
readonly 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.";
|
|
148
|
+
};
|
|
149
|
+
readonly witnessContent: {
|
|
150
|
+
readonly type: "string";
|
|
151
|
+
readonly description: "The stored did-witness.json verbatim. Present iff the request set raw: true and the slot holds witness proofs.";
|
|
152
|
+
};
|
|
153
|
+
readonly ext: {
|
|
154
|
+
readonly $ref: "#/$defs/Ext";
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
readonly Ext: {
|
|
159
|
+
readonly title: "Ext";
|
|
160
|
+
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.";
|
|
161
|
+
readonly type: "object";
|
|
162
|
+
readonly minProperties: 1;
|
|
163
|
+
readonly additionalProperties: true;
|
|
164
|
+
readonly propertyNames: {
|
|
165
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
171
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
172
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
173
|
+
readonly $ref: "#/$defs/Response";
|
|
174
|
+
readonly $defs: {
|
|
175
|
+
readonly Response: {
|
|
176
|
+
readonly $anchor: "response";
|
|
177
|
+
readonly title: "DID Log — response payload";
|
|
178
|
+
readonly type: "object";
|
|
179
|
+
readonly additionalProperties: false;
|
|
180
|
+
readonly required: readonly ["mnemonic", "method", "entries"];
|
|
181
|
+
readonly properties: {
|
|
182
|
+
readonly mnemonic: {
|
|
183
|
+
readonly type: "string";
|
|
184
|
+
};
|
|
185
|
+
readonly method: {
|
|
186
|
+
readonly type: "string";
|
|
187
|
+
readonly minLength: 1;
|
|
188
|
+
readonly description: "The slot's DID method (`webvh`, `web`, `webs`, …). Determines what an entry is.";
|
|
189
|
+
};
|
|
190
|
+
readonly entries: {
|
|
191
|
+
readonly type: "array";
|
|
192
|
+
readonly 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.";
|
|
193
|
+
readonly items: {
|
|
194
|
+
readonly type: "object";
|
|
195
|
+
readonly additionalProperties: false;
|
|
196
|
+
readonly required: readonly ["state"];
|
|
197
|
+
readonly properties: {
|
|
198
|
+
readonly versionId: {
|
|
199
|
+
readonly type: "string";
|
|
200
|
+
readonly description: "The entry's version identifier. Absent for a method that has none.";
|
|
201
|
+
};
|
|
202
|
+
readonly versionTime: {
|
|
203
|
+
readonly type: "string";
|
|
204
|
+
readonly format: "date-time";
|
|
205
|
+
readonly description: "When the entry was made, as the entry states it. Absent for a method that records none.";
|
|
206
|
+
};
|
|
207
|
+
readonly state: {
|
|
208
|
+
readonly type: "object";
|
|
209
|
+
readonly description: "The DID document as of this entry.";
|
|
210
|
+
};
|
|
211
|
+
readonly parameters: {
|
|
212
|
+
readonly type: "object";
|
|
213
|
+
readonly description: "The method's parameters as of this entry (did:webvh log parameters). Absent for a method that has none.";
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
readonly logContent: {
|
|
219
|
+
readonly type: "string";
|
|
220
|
+
readonly 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.";
|
|
221
|
+
};
|
|
222
|
+
readonly witnessContent: {
|
|
223
|
+
readonly type: "string";
|
|
224
|
+
readonly description: "The stored did-witness.json verbatim. Present iff the request set raw: true and the slot holds witness proofs.";
|
|
225
|
+
};
|
|
226
|
+
readonly ext: {
|
|
227
|
+
readonly $ref: "#/$defs/Ext";
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
readonly Ext: {
|
|
232
|
+
readonly title: "Ext";
|
|
233
|
+
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.";
|
|
234
|
+
readonly type: "object";
|
|
235
|
+
readonly minProperties: 1;
|
|
236
|
+
readonly additionalProperties: true;
|
|
237
|
+
readonly propertyNames: {
|
|
238
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
245
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
246
|
+
* per-specification and cannot be derived from the document alone, and
|
|
247
|
+
* item 2 needs the schema this carries.
|
|
248
|
+
*/
|
|
249
|
+
export declare const SPEC: {
|
|
250
|
+
readonly typeUri: "https://trusttasks.org/spec/did-management/did/log/0.1";
|
|
251
|
+
readonly isBearer: false;
|
|
252
|
+
readonly isProofRequired: true;
|
|
253
|
+
readonly isRecipientRequired: true;
|
|
254
|
+
readonly isIssuedAtRequired: false;
|
|
255
|
+
readonly payloadSchema: {
|
|
256
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
257
|
+
readonly $id: "https://trusttasks.org/spec/did-management/did/log/0.1";
|
|
258
|
+
readonly title: "DID Log — payload";
|
|
259
|
+
readonly type: "object";
|
|
260
|
+
readonly additionalProperties: false;
|
|
261
|
+
readonly required: readonly ["mnemonic"];
|
|
262
|
+
readonly properties: {
|
|
263
|
+
readonly mnemonic: {
|
|
264
|
+
readonly type: "string";
|
|
265
|
+
readonly minLength: 1;
|
|
266
|
+
readonly maxLength: 512;
|
|
267
|
+
};
|
|
268
|
+
readonly domain: {
|
|
269
|
+
readonly type: "string";
|
|
270
|
+
readonly minLength: 1;
|
|
271
|
+
readonly maxLength: 253;
|
|
272
|
+
readonly description: "Disambiguates `mnemonic` per the category conventions. Absent means the domain is resolved by the category's chain.";
|
|
273
|
+
};
|
|
274
|
+
readonly raw: {
|
|
275
|
+
readonly type: "boolean";
|
|
276
|
+
readonly description: "When true, the response also carries the stored artifacts verbatim. Absent or false means parsed entries only.";
|
|
277
|
+
};
|
|
278
|
+
readonly ext: {
|
|
279
|
+
readonly $ref: "#/$defs/Ext";
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
readonly $defs: {
|
|
283
|
+
readonly Response: {
|
|
284
|
+
readonly $anchor: "response";
|
|
285
|
+
readonly title: "DID Log — response payload";
|
|
286
|
+
readonly type: "object";
|
|
287
|
+
readonly additionalProperties: false;
|
|
288
|
+
readonly required: readonly ["mnemonic", "method", "entries"];
|
|
289
|
+
readonly properties: {
|
|
290
|
+
readonly mnemonic: {
|
|
291
|
+
readonly type: "string";
|
|
292
|
+
};
|
|
293
|
+
readonly method: {
|
|
294
|
+
readonly type: "string";
|
|
295
|
+
readonly minLength: 1;
|
|
296
|
+
readonly description: "The slot's DID method (`webvh`, `web`, `webs`, …). Determines what an entry is.";
|
|
297
|
+
};
|
|
298
|
+
readonly entries: {
|
|
299
|
+
readonly type: "array";
|
|
300
|
+
readonly 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.";
|
|
301
|
+
readonly items: {
|
|
302
|
+
readonly type: "object";
|
|
303
|
+
readonly additionalProperties: false;
|
|
304
|
+
readonly required: readonly ["state"];
|
|
305
|
+
readonly properties: {
|
|
306
|
+
readonly versionId: {
|
|
307
|
+
readonly type: "string";
|
|
308
|
+
readonly description: "The entry's version identifier. Absent for a method that has none.";
|
|
309
|
+
};
|
|
310
|
+
readonly versionTime: {
|
|
311
|
+
readonly type: "string";
|
|
312
|
+
readonly format: "date-time";
|
|
313
|
+
readonly description: "When the entry was made, as the entry states it. Absent for a method that records none.";
|
|
314
|
+
};
|
|
315
|
+
readonly state: {
|
|
316
|
+
readonly type: "object";
|
|
317
|
+
readonly description: "The DID document as of this entry.";
|
|
318
|
+
};
|
|
319
|
+
readonly parameters: {
|
|
320
|
+
readonly type: "object";
|
|
321
|
+
readonly description: "The method's parameters as of this entry (did:webvh log parameters). Absent for a method that has none.";
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
readonly logContent: {
|
|
327
|
+
readonly type: "string";
|
|
328
|
+
readonly 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.";
|
|
329
|
+
};
|
|
330
|
+
readonly witnessContent: {
|
|
331
|
+
readonly type: "string";
|
|
332
|
+
readonly description: "The stored did-witness.json verbatim. Present iff the request set raw: true and the slot holds witness proofs.";
|
|
333
|
+
};
|
|
334
|
+
readonly ext: {
|
|
335
|
+
readonly $ref: "#/$defs/Ext";
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
readonly Ext: {
|
|
340
|
+
readonly title: "Ext";
|
|
341
|
+
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.";
|
|
342
|
+
readonly type: "object";
|
|
343
|
+
readonly minProperties: 1;
|
|
344
|
+
readonly additionalProperties: true;
|
|
345
|
+
readonly propertyNames: {
|
|
346
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
/**
|
|
353
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
354
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
355
|
+
* parties (§7.3 item 5).
|
|
356
|
+
*/
|
|
357
|
+
export declare const RESPONSE_SPEC: {
|
|
358
|
+
readonly typeUri: "https://trusttasks.org/spec/did-management/did/log/0.1#response";
|
|
359
|
+
readonly isBearer: false;
|
|
360
|
+
readonly isProofRequired: true;
|
|
361
|
+
readonly isRecipientRequired: true;
|
|
362
|
+
readonly isIssuedAtRequired: false;
|
|
363
|
+
readonly payloadSchema: {
|
|
364
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
365
|
+
readonly $ref: "#/$defs/Response";
|
|
366
|
+
readonly $defs: {
|
|
367
|
+
readonly Response: {
|
|
368
|
+
readonly $anchor: "response";
|
|
369
|
+
readonly title: "DID Log — response payload";
|
|
370
|
+
readonly type: "object";
|
|
371
|
+
readonly additionalProperties: false;
|
|
372
|
+
readonly required: readonly ["mnemonic", "method", "entries"];
|
|
373
|
+
readonly properties: {
|
|
374
|
+
readonly mnemonic: {
|
|
375
|
+
readonly type: "string";
|
|
376
|
+
};
|
|
377
|
+
readonly method: {
|
|
378
|
+
readonly type: "string";
|
|
379
|
+
readonly minLength: 1;
|
|
380
|
+
readonly description: "The slot's DID method (`webvh`, `web`, `webs`, …). Determines what an entry is.";
|
|
381
|
+
};
|
|
382
|
+
readonly entries: {
|
|
383
|
+
readonly type: "array";
|
|
384
|
+
readonly 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.";
|
|
385
|
+
readonly items: {
|
|
386
|
+
readonly type: "object";
|
|
387
|
+
readonly additionalProperties: false;
|
|
388
|
+
readonly required: readonly ["state"];
|
|
389
|
+
readonly properties: {
|
|
390
|
+
readonly versionId: {
|
|
391
|
+
readonly type: "string";
|
|
392
|
+
readonly description: "The entry's version identifier. Absent for a method that has none.";
|
|
393
|
+
};
|
|
394
|
+
readonly versionTime: {
|
|
395
|
+
readonly type: "string";
|
|
396
|
+
readonly format: "date-time";
|
|
397
|
+
readonly description: "When the entry was made, as the entry states it. Absent for a method that records none.";
|
|
398
|
+
};
|
|
399
|
+
readonly state: {
|
|
400
|
+
readonly type: "object";
|
|
401
|
+
readonly description: "The DID document as of this entry.";
|
|
402
|
+
};
|
|
403
|
+
readonly parameters: {
|
|
404
|
+
readonly type: "object";
|
|
405
|
+
readonly description: "The method's parameters as of this entry (did:webvh log parameters). Absent for a method that has none.";
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
readonly logContent: {
|
|
411
|
+
readonly type: "string";
|
|
412
|
+
readonly 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.";
|
|
413
|
+
};
|
|
414
|
+
readonly witnessContent: {
|
|
415
|
+
readonly type: "string";
|
|
416
|
+
readonly description: "The stored did-witness.json verbatim. Present iff the request set raw: true and the slot holds witness proofs.";
|
|
417
|
+
};
|
|
418
|
+
readonly ext: {
|
|
419
|
+
readonly $ref: "#/$defs/Ext";
|
|
420
|
+
};
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
readonly Ext: {
|
|
424
|
+
readonly title: "Ext";
|
|
425
|
+
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.";
|
|
426
|
+
readonly type: "object";
|
|
427
|
+
readonly minProperties: 1;
|
|
428
|
+
readonly additionalProperties: true;
|
|
429
|
+
readonly propertyNames: {
|
|
430
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
};
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/did-management/did/log/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AAG7D,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,EAAE;QACP;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB;;WAEG;QACH,KAAK,EAAE,EAAE,CAAC;QACV;;WAEG;QACH,UAAU,CAAC,EAAE,EAAE,CAAC;KACjB,EAAE,CAAC;IACJ;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,CAAC;AAEpB,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,wDAAiE,CAAC;AAE1F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,aAAa,CAAC;AAEpC,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,iEAA0E,CAAC;AAE5G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,qBAAqB,CAAC;AAE7C;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuGjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6E1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|
|
@@ -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
|