@openvtc/trust-tasks 0.21.3 → 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 +72 -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/admin-list/0.1/payload.d.ts +484 -0
- package/dist/auth/passkey/admin-list/0.1/payload.d.ts.map +1 -0
- package/dist/auth/passkey/admin-list/0.1/payload.js +257 -0
- package/dist/auth/passkey/admin-list/0.1/payload.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/git-ns/namespace/list/0.1/payload.d.ts +1343 -0
- package/dist/git-ns/namespace/list/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/namespace/list/0.1/payload.js +704 -0
- package/dist/git-ns/namespace/list/0.1/payload.js.map +1 -0
- package/dist/git-ns/repo/list/0.1/payload.d.ts +1377 -0
- package/dist/git-ns/repo/list/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/repo/list/0.1/payload.js +744 -0
- package/dist/git-ns/repo/list/0.1/payload.js.map +1 -0
- package/dist/git-ns/view/0.5/payload.d.ts +1722 -0
- package/dist/git-ns/view/0.5/payload.d.ts.map +1 -0
- package/dist/git-ns/view/0.5/payload.js +1024 -0
- package/dist/git-ns/view/0.5/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/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/admin-list/0.1/payload.ts +338 -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/git-ns/namespace/list/0.1/payload.ts +883 -0
- package/src/git-ns/repo/list/0.1/payload.ts +909 -0
- package/src/git-ns/view/0.5/payload.ts +1095 -0
- package/src/index.ts +38 -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,181 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/webvh/sync/delete/0.2/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Ext } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export interface WebVHSyncDeletePayload {
|
|
10
|
+
/**
|
|
11
|
+
* The slot path the source no longer publishes.
|
|
12
|
+
*/
|
|
13
|
+
mnemonic: string;
|
|
14
|
+
ext?: Ext;
|
|
15
|
+
}
|
|
16
|
+
export interface WebVHSyncDeleteResponsePayload {
|
|
17
|
+
mnemonic: string;
|
|
18
|
+
/**
|
|
19
|
+
* `deleted` — the replica held the slot and has removed it. `absent` — it held nothing for the slot; the delete is idempotent.
|
|
20
|
+
*/
|
|
21
|
+
status: "deleted" | "absent";
|
|
22
|
+
ext?: Ext;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
26
|
+
export type { Ext };
|
|
27
|
+
|
|
28
|
+
/** Trust Task type URI. */
|
|
29
|
+
export const TYPE_URI = "https://trusttasks.org/spec/webvh/sync/delete/0.2" as const;
|
|
30
|
+
|
|
31
|
+
/** Stable alias for this specification's request payload shape. */
|
|
32
|
+
export type Payload = WebVHSyncDeletePayload;
|
|
33
|
+
|
|
34
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
35
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/webvh/sync/delete/0.2#response" as const;
|
|
36
|
+
|
|
37
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
38
|
+
export type Response = WebVHSyncDeleteResponsePayload;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* This specification's payload schema, as a value.
|
|
42
|
+
*
|
|
43
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
44
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
45
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
46
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
47
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
48
|
+
*/
|
|
49
|
+
export const PAYLOAD_SCHEMA = {
|
|
50
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
51
|
+
"$id": "https://trusttasks.org/spec/webvh/sync/delete/0.2",
|
|
52
|
+
"title": "WebVH Sync Delete — payload",
|
|
53
|
+
"type": "object",
|
|
54
|
+
"additionalProperties": false,
|
|
55
|
+
"required": [
|
|
56
|
+
"mnemonic"
|
|
57
|
+
],
|
|
58
|
+
"properties": {
|
|
59
|
+
"mnemonic": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"minLength": 1,
|
|
62
|
+
"description": "The slot path the source no longer publishes."
|
|
63
|
+
},
|
|
64
|
+
"ext": {
|
|
65
|
+
"$ref": "#/$defs/Ext"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"$defs": {
|
|
69
|
+
"Response": {
|
|
70
|
+
"$anchor": "response",
|
|
71
|
+
"title": "WebVH Sync Delete — response payload",
|
|
72
|
+
"type": "object",
|
|
73
|
+
"additionalProperties": false,
|
|
74
|
+
"required": [
|
|
75
|
+
"mnemonic",
|
|
76
|
+
"status"
|
|
77
|
+
],
|
|
78
|
+
"properties": {
|
|
79
|
+
"mnemonic": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"minLength": 1
|
|
82
|
+
},
|
|
83
|
+
"status": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"enum": [
|
|
86
|
+
"deleted",
|
|
87
|
+
"absent"
|
|
88
|
+
],
|
|
89
|
+
"description": "`deleted` — the replica held the slot and has removed it. `absent` — it held nothing for the slot; the delete is idempotent."
|
|
90
|
+
},
|
|
91
|
+
"ext": {
|
|
92
|
+
"$ref": "#/$defs/Ext"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"Ext": {
|
|
97
|
+
"title": "Ext",
|
|
98
|
+
"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.",
|
|
99
|
+
"type": "object",
|
|
100
|
+
"minProperties": 1,
|
|
101
|
+
"additionalProperties": true,
|
|
102
|
+
"propertyNames": {
|
|
103
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
} as const;
|
|
108
|
+
|
|
109
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
110
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
111
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
112
|
+
"$ref": "#/$defs/Response",
|
|
113
|
+
"$defs": {
|
|
114
|
+
"Response": {
|
|
115
|
+
"$anchor": "response",
|
|
116
|
+
"title": "WebVH Sync Delete — response payload",
|
|
117
|
+
"type": "object",
|
|
118
|
+
"additionalProperties": false,
|
|
119
|
+
"required": [
|
|
120
|
+
"mnemonic",
|
|
121
|
+
"status"
|
|
122
|
+
],
|
|
123
|
+
"properties": {
|
|
124
|
+
"mnemonic": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"minLength": 1
|
|
127
|
+
},
|
|
128
|
+
"status": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"enum": [
|
|
131
|
+
"deleted",
|
|
132
|
+
"absent"
|
|
133
|
+
],
|
|
134
|
+
"description": "`deleted` — the replica held the slot and has removed it. `absent` — it held nothing for the slot; the delete is idempotent."
|
|
135
|
+
},
|
|
136
|
+
"ext": {
|
|
137
|
+
"$ref": "#/$defs/Ext"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"Ext": {
|
|
142
|
+
"title": "Ext",
|
|
143
|
+
"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.",
|
|
144
|
+
"type": "object",
|
|
145
|
+
"minProperties": 1,
|
|
146
|
+
"additionalProperties": true,
|
|
147
|
+
"propertyNames": {
|
|
148
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
} as const;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
156
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
157
|
+
* per-specification and cannot be derived from the document alone, and
|
|
158
|
+
* item 2 needs the schema this carries.
|
|
159
|
+
*/
|
|
160
|
+
export const SPEC = {
|
|
161
|
+
typeUri: TYPE_URI,
|
|
162
|
+
isBearer: false,
|
|
163
|
+
isProofRequired: true,
|
|
164
|
+
isRecipientRequired: true,
|
|
165
|
+
isIssuedAtRequired: true,
|
|
166
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
167
|
+
} as const;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
171
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
172
|
+
* parties (§7.3 item 5).
|
|
173
|
+
*/
|
|
174
|
+
export const RESPONSE_SPEC = {
|
|
175
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
176
|
+
isBearer: false,
|
|
177
|
+
isProofRequired: true,
|
|
178
|
+
isRecipientRequired: true,
|
|
179
|
+
isIssuedAtRequired: true,
|
|
180
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
181
|
+
} as const;
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/webvh/sync/update/0.2/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Ext } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The same shape as webvh/_shared/0.1 SyncUpdate (the element of webvh/sync/batch/0.1), inlined because a top-level $ref payload does not survive every binding generator. The two MUST stay identical.
|
|
11
|
+
*/
|
|
12
|
+
export interface WebVHSyncUpdatePayload {
|
|
13
|
+
/**
|
|
14
|
+
* The slot path on its hosting domain (e.g. `alice`, `people/alice`, or `.well-known` for a root DID).
|
|
15
|
+
*/
|
|
16
|
+
mnemonic: string;
|
|
17
|
+
/**
|
|
18
|
+
* The DID the log establishes. A replica MUST refuse a log that does not establish exactly this DID.
|
|
19
|
+
*/
|
|
20
|
+
didId: string;
|
|
21
|
+
/**
|
|
22
|
+
* The slot's complete did.jsonl — one log entry per line — not a delta.
|
|
23
|
+
*/
|
|
24
|
+
logContent: string;
|
|
25
|
+
/**
|
|
26
|
+
* The slot's did-witness.json. ABSENT means the slot holds no witness proofs: the replica MUST drop any witness proofs it holds for the slot. Absence never means "unchanged".
|
|
27
|
+
*/
|
|
28
|
+
witnessContent?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Number of entries in `logContent`, as the source counts them. A replica MUST refuse an update whose `logContent` does not contain exactly this many entries.
|
|
31
|
+
*/
|
|
32
|
+
versionCount: number;
|
|
33
|
+
/**
|
|
34
|
+
* Whether the source has disabled the slot. A replica MUST stop serving a disabled slot and MUST resume only on an update carrying `false`.
|
|
35
|
+
*/
|
|
36
|
+
disabled: boolean;
|
|
37
|
+
ext?: Ext;
|
|
38
|
+
}
|
|
39
|
+
export interface WebVHSyncUpdateResponsePayload {
|
|
40
|
+
mnemonic: string;
|
|
41
|
+
/**
|
|
42
|
+
* `applied` — the replica now holds and serves exactly the submitted state. `unchanged` — it already held that state (or a newer version with identical content), and nothing was written.
|
|
43
|
+
*/
|
|
44
|
+
status: "applied" | "unchanged";
|
|
45
|
+
ext?: Ext;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
49
|
+
export type { Ext };
|
|
50
|
+
|
|
51
|
+
/** Trust Task type URI. */
|
|
52
|
+
export const TYPE_URI = "https://trusttasks.org/spec/webvh/sync/update/0.2" as const;
|
|
53
|
+
|
|
54
|
+
/** Stable alias for this specification's request payload shape. */
|
|
55
|
+
export type Payload = WebVHSyncUpdatePayload;
|
|
56
|
+
|
|
57
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
58
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/webvh/sync/update/0.2#response" as const;
|
|
59
|
+
|
|
60
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
61
|
+
export type Response = WebVHSyncUpdateResponsePayload;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* This specification's payload schema, as a value.
|
|
65
|
+
*
|
|
66
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
67
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
68
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
69
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
70
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
71
|
+
*/
|
|
72
|
+
export const PAYLOAD_SCHEMA = {
|
|
73
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
74
|
+
"$id": "https://trusttasks.org/spec/webvh/sync/update/0.2",
|
|
75
|
+
"title": "WebVH Sync Update — payload",
|
|
76
|
+
"description": "The same shape as webvh/_shared/0.1 SyncUpdate (the element of webvh/sync/batch/0.1), inlined because a top-level $ref payload does not survive every binding generator. The two MUST stay identical.",
|
|
77
|
+
"type": "object",
|
|
78
|
+
"additionalProperties": false,
|
|
79
|
+
"required": [
|
|
80
|
+
"mnemonic",
|
|
81
|
+
"didId",
|
|
82
|
+
"logContent",
|
|
83
|
+
"versionCount",
|
|
84
|
+
"disabled"
|
|
85
|
+
],
|
|
86
|
+
"properties": {
|
|
87
|
+
"mnemonic": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"minLength": 1,
|
|
90
|
+
"description": "The slot path on its hosting domain (e.g. `alice`, `people/alice`, or `.well-known` for a root DID)."
|
|
91
|
+
},
|
|
92
|
+
"didId": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"minLength": 1,
|
|
95
|
+
"description": "The DID the log establishes. A replica MUST refuse a log that does not establish exactly this DID."
|
|
96
|
+
},
|
|
97
|
+
"logContent": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"minLength": 1,
|
|
100
|
+
"description": "The slot's complete did.jsonl — one log entry per line — not a delta."
|
|
101
|
+
},
|
|
102
|
+
"witnessContent": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"minLength": 1,
|
|
105
|
+
"description": "The slot's did-witness.json. ABSENT means the slot holds no witness proofs: the replica MUST drop any witness proofs it holds for the slot. Absence never means \"unchanged\"."
|
|
106
|
+
},
|
|
107
|
+
"versionCount": {
|
|
108
|
+
"type": "integer",
|
|
109
|
+
"minimum": 1,
|
|
110
|
+
"description": "Number of entries in `logContent`, as the source counts them. A replica MUST refuse an update whose `logContent` does not contain exactly this many entries."
|
|
111
|
+
},
|
|
112
|
+
"disabled": {
|
|
113
|
+
"type": "boolean",
|
|
114
|
+
"description": "Whether the source has disabled the slot. A replica MUST stop serving a disabled slot and MUST resume only on an update carrying `false`."
|
|
115
|
+
},
|
|
116
|
+
"ext": {
|
|
117
|
+
"$ref": "#/$defs/Ext"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"$defs": {
|
|
121
|
+
"Response": {
|
|
122
|
+
"$anchor": "response",
|
|
123
|
+
"title": "WebVH Sync Update — response payload",
|
|
124
|
+
"type": "object",
|
|
125
|
+
"additionalProperties": false,
|
|
126
|
+
"required": [
|
|
127
|
+
"mnemonic",
|
|
128
|
+
"status"
|
|
129
|
+
],
|
|
130
|
+
"properties": {
|
|
131
|
+
"mnemonic": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"minLength": 1
|
|
134
|
+
},
|
|
135
|
+
"status": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"enum": [
|
|
138
|
+
"applied",
|
|
139
|
+
"unchanged"
|
|
140
|
+
],
|
|
141
|
+
"description": "`applied` — the replica now holds and serves exactly the submitted state. `unchanged` — it already held that state (or a newer version with identical content), and nothing was written."
|
|
142
|
+
},
|
|
143
|
+
"ext": {
|
|
144
|
+
"$ref": "#/$defs/Ext"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"Ext": {
|
|
149
|
+
"title": "Ext",
|
|
150
|
+
"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.",
|
|
151
|
+
"type": "object",
|
|
152
|
+
"minProperties": 1,
|
|
153
|
+
"additionalProperties": true,
|
|
154
|
+
"propertyNames": {
|
|
155
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
} as const;
|
|
160
|
+
|
|
161
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
162
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
163
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
164
|
+
"$ref": "#/$defs/Response",
|
|
165
|
+
"$defs": {
|
|
166
|
+
"Response": {
|
|
167
|
+
"$anchor": "response",
|
|
168
|
+
"title": "WebVH Sync Update — response payload",
|
|
169
|
+
"type": "object",
|
|
170
|
+
"additionalProperties": false,
|
|
171
|
+
"required": [
|
|
172
|
+
"mnemonic",
|
|
173
|
+
"status"
|
|
174
|
+
],
|
|
175
|
+
"properties": {
|
|
176
|
+
"mnemonic": {
|
|
177
|
+
"type": "string",
|
|
178
|
+
"minLength": 1
|
|
179
|
+
},
|
|
180
|
+
"status": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"enum": [
|
|
183
|
+
"applied",
|
|
184
|
+
"unchanged"
|
|
185
|
+
],
|
|
186
|
+
"description": "`applied` — the replica now holds and serves exactly the submitted state. `unchanged` — it already held that state (or a newer version with identical content), and nothing was written."
|
|
187
|
+
},
|
|
188
|
+
"ext": {
|
|
189
|
+
"$ref": "#/$defs/Ext"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"Ext": {
|
|
194
|
+
"title": "Ext",
|
|
195
|
+
"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.",
|
|
196
|
+
"type": "object",
|
|
197
|
+
"minProperties": 1,
|
|
198
|
+
"additionalProperties": true,
|
|
199
|
+
"propertyNames": {
|
|
200
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
} as const;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
208
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
209
|
+
* per-specification and cannot be derived from the document alone, and
|
|
210
|
+
* item 2 needs the schema this carries.
|
|
211
|
+
*/
|
|
212
|
+
export const SPEC = {
|
|
213
|
+
typeUri: TYPE_URI,
|
|
214
|
+
isBearer: false,
|
|
215
|
+
isProofRequired: true,
|
|
216
|
+
isRecipientRequired: true,
|
|
217
|
+
isIssuedAtRequired: true,
|
|
218
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
219
|
+
} as const;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
223
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
224
|
+
* parties (§7.3 item 5).
|
|
225
|
+
*/
|
|
226
|
+
export const RESPONSE_SPEC = {
|
|
227
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
228
|
+
isBearer: false,
|
|
229
|
+
isProofRequired: true,
|
|
230
|
+
isRecipientRequired: true,
|
|
231
|
+
isIssuedAtRequired: true,
|
|
232
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
233
|
+
} as const;
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/webvh/witness/key/create/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Ext, WitnessKey } from "../../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export interface WebVHWitnessKeyCreatePayload {
|
|
10
|
+
/**
|
|
11
|
+
* Operator display label for the new identity. Absent means the identity has no label.
|
|
12
|
+
*/
|
|
13
|
+
label?: string;
|
|
14
|
+
ext?: Ext;
|
|
15
|
+
}
|
|
16
|
+
export interface WebVHWitnessKeyCreateResponsePayload {
|
|
17
|
+
key: WitnessKey;
|
|
18
|
+
ext?: Ext;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
22
|
+
export type { Ext, WitnessKey };
|
|
23
|
+
|
|
24
|
+
/** Trust Task type URI. */
|
|
25
|
+
export const TYPE_URI = "https://trusttasks.org/spec/webvh/witness/key/create/0.1" as const;
|
|
26
|
+
|
|
27
|
+
/** Stable alias for this specification's request payload shape. */
|
|
28
|
+
export type Payload = WebVHWitnessKeyCreatePayload;
|
|
29
|
+
|
|
30
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
31
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/webvh/witness/key/create/0.1#response" as const;
|
|
32
|
+
|
|
33
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
34
|
+
export type Response = WebVHWitnessKeyCreateResponsePayload;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* This specification's payload schema, as a value.
|
|
38
|
+
*
|
|
39
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
40
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
41
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
42
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
43
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
44
|
+
*/
|
|
45
|
+
export const PAYLOAD_SCHEMA = {
|
|
46
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
47
|
+
"$id": "https://trusttasks.org/spec/webvh/witness/key/create/0.1",
|
|
48
|
+
"title": "WebVH Witness Key Create — payload",
|
|
49
|
+
"type": "object",
|
|
50
|
+
"additionalProperties": false,
|
|
51
|
+
"properties": {
|
|
52
|
+
"label": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"minLength": 1,
|
|
55
|
+
"maxLength": 256,
|
|
56
|
+
"description": "Operator display label for the new identity. Absent means the identity has no label."
|
|
57
|
+
},
|
|
58
|
+
"ext": {
|
|
59
|
+
"$ref": "#/$defs/Ext"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"$defs": {
|
|
63
|
+
"Response": {
|
|
64
|
+
"$anchor": "response",
|
|
65
|
+
"title": "WebVH Witness Key Create — response payload",
|
|
66
|
+
"type": "object",
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"required": [
|
|
69
|
+
"key"
|
|
70
|
+
],
|
|
71
|
+
"properties": {
|
|
72
|
+
"key": {
|
|
73
|
+
"$ref": "#/$defs/WitnessKey"
|
|
74
|
+
},
|
|
75
|
+
"ext": {
|
|
76
|
+
"$ref": "#/$defs/Ext"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"Ext": {
|
|
81
|
+
"title": "Ext",
|
|
82
|
+
"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.",
|
|
83
|
+
"type": "object",
|
|
84
|
+
"minProperties": 1,
|
|
85
|
+
"additionalProperties": true,
|
|
86
|
+
"propertyNames": {
|
|
87
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"WitnessKey": {
|
|
91
|
+
"title": "WitnessKey",
|
|
92
|
+
"type": "object",
|
|
93
|
+
"additionalProperties": false,
|
|
94
|
+
"required": [
|
|
95
|
+
"witnessId",
|
|
96
|
+
"did",
|
|
97
|
+
"createdAt",
|
|
98
|
+
"proofsSigned"
|
|
99
|
+
],
|
|
100
|
+
"properties": {
|
|
101
|
+
"witnessId": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"minLength": 1,
|
|
104
|
+
"maxLength": 256,
|
|
105
|
+
"description": "The witness service's identifier for this identity. Opaque to the requester."
|
|
106
|
+
},
|
|
107
|
+
"did": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"minLength": 1,
|
|
110
|
+
"description": "The witness identity's DID (for example a `did:key`) — the value a did:webvh log names in its `witness` parameter, and the controller of the key that signs its proofs."
|
|
111
|
+
},
|
|
112
|
+
"label": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"maxLength": 256,
|
|
115
|
+
"description": "Operator-chosen display label. Untrusted free text. Absent when none was given."
|
|
116
|
+
},
|
|
117
|
+
"createdAt": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"format": "date-time"
|
|
120
|
+
},
|
|
121
|
+
"proofsSigned": {
|
|
122
|
+
"type": "integer",
|
|
123
|
+
"minimum": 0,
|
|
124
|
+
"description": "How many witness proofs this identity has signed."
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
} as const;
|
|
130
|
+
|
|
131
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
132
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
133
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
134
|
+
"$ref": "#/$defs/Response",
|
|
135
|
+
"$defs": {
|
|
136
|
+
"Response": {
|
|
137
|
+
"$anchor": "response",
|
|
138
|
+
"title": "WebVH Witness Key Create — response payload",
|
|
139
|
+
"type": "object",
|
|
140
|
+
"additionalProperties": false,
|
|
141
|
+
"required": [
|
|
142
|
+
"key"
|
|
143
|
+
],
|
|
144
|
+
"properties": {
|
|
145
|
+
"key": {
|
|
146
|
+
"$ref": "#/$defs/WitnessKey"
|
|
147
|
+
},
|
|
148
|
+
"ext": {
|
|
149
|
+
"$ref": "#/$defs/Ext"
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"Ext": {
|
|
154
|
+
"title": "Ext",
|
|
155
|
+
"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.",
|
|
156
|
+
"type": "object",
|
|
157
|
+
"minProperties": 1,
|
|
158
|
+
"additionalProperties": true,
|
|
159
|
+
"propertyNames": {
|
|
160
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"WitnessKey": {
|
|
164
|
+
"title": "WitnessKey",
|
|
165
|
+
"type": "object",
|
|
166
|
+
"additionalProperties": false,
|
|
167
|
+
"required": [
|
|
168
|
+
"witnessId",
|
|
169
|
+
"did",
|
|
170
|
+
"createdAt",
|
|
171
|
+
"proofsSigned"
|
|
172
|
+
],
|
|
173
|
+
"properties": {
|
|
174
|
+
"witnessId": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"minLength": 1,
|
|
177
|
+
"maxLength": 256,
|
|
178
|
+
"description": "The witness service's identifier for this identity. Opaque to the requester."
|
|
179
|
+
},
|
|
180
|
+
"did": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"minLength": 1,
|
|
183
|
+
"description": "The witness identity's DID (for example a `did:key`) — the value a did:webvh log names in its `witness` parameter, and the controller of the key that signs its proofs."
|
|
184
|
+
},
|
|
185
|
+
"label": {
|
|
186
|
+
"type": "string",
|
|
187
|
+
"maxLength": 256,
|
|
188
|
+
"description": "Operator-chosen display label. Untrusted free text. Absent when none was given."
|
|
189
|
+
},
|
|
190
|
+
"createdAt": {
|
|
191
|
+
"type": "string",
|
|
192
|
+
"format": "date-time"
|
|
193
|
+
},
|
|
194
|
+
"proofsSigned": {
|
|
195
|
+
"type": "integer",
|
|
196
|
+
"minimum": 0,
|
|
197
|
+
"description": "How many witness proofs this identity has signed."
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
} as const;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
206
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
207
|
+
* per-specification and cannot be derived from the document alone, and
|
|
208
|
+
* item 2 needs the schema this carries.
|
|
209
|
+
*/
|
|
210
|
+
export const SPEC = {
|
|
211
|
+
typeUri: TYPE_URI,
|
|
212
|
+
isBearer: false,
|
|
213
|
+
isProofRequired: true,
|
|
214
|
+
isRecipientRequired: true,
|
|
215
|
+
isIssuedAtRequired: true,
|
|
216
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
217
|
+
} as const;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
221
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
222
|
+
* parties (§7.3 item 5).
|
|
223
|
+
*/
|
|
224
|
+
export const RESPONSE_SPEC = {
|
|
225
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
226
|
+
isBearer: false,
|
|
227
|
+
isProofRequired: true,
|
|
228
|
+
isRecipientRequired: true,
|
|
229
|
+
isIssuedAtRequired: true,
|
|
230
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
231
|
+
} as const;
|