@openvtc/trust-tasks 0.16.7 → 0.16.8
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 +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/rooms/keys/open/0.1/payload.d.ts +323 -0
- package/dist/rooms/keys/open/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/keys/open/0.1/payload.js +171 -0
- package/dist/rooms/keys/open/0.1/payload.js.map +1 -0
- package/dist/rooms/keys/present/0.1/payload.d.ts +306 -0
- package/dist/rooms/keys/present/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/keys/present/0.1/payload.js +165 -0
- package/dist/rooms/keys/present/0.1/payload.js.map +1 -0
- package/dist/vta/backup/abort/1.0/payload.d.ts +262 -0
- package/dist/vta/backup/abort/1.0/payload.d.ts.map +1 -0
- package/dist/vta/backup/abort/1.0/payload.js +146 -0
- package/dist/vta/backup/abort/1.0/payload.js.map +1 -0
- package/dist/vta/backup/complete-export/1.0/payload.d.ts +262 -0
- package/dist/vta/backup/complete-export/1.0/payload.d.ts.map +1 -0
- package/dist/vta/backup/complete-export/1.0/payload.js +146 -0
- package/dist/vta/backup/complete-export/1.0/payload.js.map +1 -0
- package/dist/vta/backup/finalize-import/1.0/payload.d.ts +477 -0
- package/dist/vta/backup/finalize-import/1.0/payload.d.ts.map +1 -0
- package/dist/vta/backup/finalize-import/1.0/payload.js +249 -0
- package/dist/vta/backup/finalize-import/1.0/payload.js.map +1 -0
- package/dist/vta/backup/initiate-export/1.0/payload.d.ts +514 -0
- package/dist/vta/backup/initiate-export/1.0/payload.d.ts.map +1 -0
- package/dist/vta/backup/initiate-export/1.0/payload.js +267 -0
- package/dist/vta/backup/initiate-export/1.0/payload.js.map +1 -0
- package/dist/vta/backup/initiate-import/1.0/payload.d.ts +510 -0
- package/dist/vta/backup/initiate-import/1.0/payload.d.ts.map +1 -0
- package/dist/vta/backup/initiate-import/1.0/payload.js +266 -0
- package/dist/vta/backup/initiate-import/1.0/payload.js.map +1 -0
- package/dist/vta/management/reload-services/1.0/payload.d.ts +230 -0
- package/dist/vta/management/reload-services/1.0/payload.d.ts.map +1 -0
- package/dist/vta/management/reload-services/1.0/payload.js +130 -0
- package/dist/vta/management/reload-services/1.0/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +8 -0
- package/src/rooms/keys/open/0.1/payload.ts +237 -0
- package/src/rooms/keys/present/0.1/payload.ts +224 -0
- package/src/vta/backup/abort/1.0/payload.ts +191 -0
- package/src/vta/backup/complete-export/1.0/payload.ts +191 -0
- package/src/vta/backup/finalize-import/1.0/payload.ts +333 -0
- package/src/vta/backup/initiate-export/1.0/payload.ts +350 -0
- package/src/vta/backup/initiate-import/1.0/payload.ts +349 -0
- package/src/vta/management/reload-services/1.0/payload.ts +167 -0
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/backup/abort/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Ext } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Cancels an in-flight export or import bundle and discards its staged bytes. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
|
|
11
|
+
*/
|
|
12
|
+
export interface VTABackupAbortPayload {
|
|
13
|
+
/**
|
|
14
|
+
* Handle from an initiate-export or initiate-import descriptor; either kind is accepted. Opaque: a producer quotes what it was given and must not derive, guess or enumerate one.
|
|
15
|
+
*/
|
|
16
|
+
bundleId: string;
|
|
17
|
+
/**
|
|
18
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
19
|
+
*/
|
|
20
|
+
ext?: Ext;
|
|
21
|
+
}
|
|
22
|
+
export interface VTABackupAbortResponsePayload {
|
|
23
|
+
/**
|
|
24
|
+
* Echoed so the response stands alone as a record.
|
|
25
|
+
*/
|
|
26
|
+
bundleId: string;
|
|
27
|
+
/**
|
|
28
|
+
* Whether this request is what moved the bundle to a terminal state. False means it was already terminal — a success, not a failure, and the reason abort can be retried safely. Required rather than optional: an absent member on an idempotent no-op would be indistinguishable from a cancellation that happened.
|
|
29
|
+
*/
|
|
30
|
+
aborted: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
33
|
+
*/
|
|
34
|
+
ext?: Ext;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
38
|
+
export type { Ext };
|
|
39
|
+
|
|
40
|
+
/** Trust Task type URI. */
|
|
41
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/backup/abort/1.0" as const;
|
|
42
|
+
|
|
43
|
+
/** Stable alias for this specification's request payload shape. */
|
|
44
|
+
export type Payload = VTABackupAbortPayload;
|
|
45
|
+
|
|
46
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
47
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/backup/abort/1.0#response" as const;
|
|
48
|
+
|
|
49
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
50
|
+
export type Response = VTABackupAbortResponsePayload;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* This specification's payload schema, as a value.
|
|
54
|
+
*
|
|
55
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
56
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
57
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
58
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
59
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
60
|
+
*/
|
|
61
|
+
export const PAYLOAD_SCHEMA = {
|
|
62
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
63
|
+
"$id": "https://trusttasks.org/spec/vta/backup/abort/1.0",
|
|
64
|
+
"title": "VTA Backup — Abort — payload",
|
|
65
|
+
"description": "Cancels an in-flight export or import bundle and discards its staged bytes. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
|
|
66
|
+
"type": "object",
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"required": [
|
|
69
|
+
"bundleId"
|
|
70
|
+
],
|
|
71
|
+
"properties": {
|
|
72
|
+
"bundleId": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
75
|
+
"description": "Handle from an initiate-export or initiate-import descriptor; either kind is accepted. Opaque: a producer quotes what it was given and must not derive, guess or enumerate one."
|
|
76
|
+
},
|
|
77
|
+
"ext": {
|
|
78
|
+
"$ref": "#/$defs/Ext",
|
|
79
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"$defs": {
|
|
83
|
+
"Response": {
|
|
84
|
+
"$anchor": "response",
|
|
85
|
+
"title": "VTA Backup Abort — response payload",
|
|
86
|
+
"type": "object",
|
|
87
|
+
"additionalProperties": false,
|
|
88
|
+
"required": [
|
|
89
|
+
"bundleId",
|
|
90
|
+
"aborted"
|
|
91
|
+
],
|
|
92
|
+
"properties": {
|
|
93
|
+
"bundleId": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
96
|
+
"description": "Echoed so the response stands alone as a record."
|
|
97
|
+
},
|
|
98
|
+
"aborted": {
|
|
99
|
+
"type": "boolean",
|
|
100
|
+
"description": "Whether this request is what moved the bundle to a terminal state. False means it was already terminal — a success, not a failure, and the reason abort can be retried safely. Required rather than optional: an absent member on an idempotent no-op would be indistinguishable from a cancellation that happened."
|
|
101
|
+
},
|
|
102
|
+
"ext": {
|
|
103
|
+
"$ref": "#/$defs/Ext",
|
|
104
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"Ext": {
|
|
109
|
+
"title": "Ext",
|
|
110
|
+
"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.",
|
|
111
|
+
"type": "object",
|
|
112
|
+
"minProperties": 1,
|
|
113
|
+
"additionalProperties": true,
|
|
114
|
+
"propertyNames": {
|
|
115
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
} as const;
|
|
120
|
+
|
|
121
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
122
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
123
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
124
|
+
"$ref": "#/$defs/Response",
|
|
125
|
+
"$defs": {
|
|
126
|
+
"Response": {
|
|
127
|
+
"$anchor": "response",
|
|
128
|
+
"title": "VTA Backup Abort — response payload",
|
|
129
|
+
"type": "object",
|
|
130
|
+
"additionalProperties": false,
|
|
131
|
+
"required": [
|
|
132
|
+
"bundleId",
|
|
133
|
+
"aborted"
|
|
134
|
+
],
|
|
135
|
+
"properties": {
|
|
136
|
+
"bundleId": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
139
|
+
"description": "Echoed so the response stands alone as a record."
|
|
140
|
+
},
|
|
141
|
+
"aborted": {
|
|
142
|
+
"type": "boolean",
|
|
143
|
+
"description": "Whether this request is what moved the bundle to a terminal state. False means it was already terminal — a success, not a failure, and the reason abort can be retried safely. Required rather than optional: an absent member on an idempotent no-op would be indistinguishable from a cancellation that happened."
|
|
144
|
+
},
|
|
145
|
+
"ext": {
|
|
146
|
+
"$ref": "#/$defs/Ext",
|
|
147
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"Ext": {
|
|
152
|
+
"title": "Ext",
|
|
153
|
+
"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.",
|
|
154
|
+
"type": "object",
|
|
155
|
+
"minProperties": 1,
|
|
156
|
+
"additionalProperties": true,
|
|
157
|
+
"propertyNames": {
|
|
158
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
} as const;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
166
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
167
|
+
* per-specification and cannot be derived from the document alone, and
|
|
168
|
+
* item 2 needs the schema this carries.
|
|
169
|
+
*/
|
|
170
|
+
export const SPEC = {
|
|
171
|
+
typeUri: TYPE_URI,
|
|
172
|
+
isBearer: false,
|
|
173
|
+
isProofRequired: true,
|
|
174
|
+
isRecipientRequired: true,
|
|
175
|
+
isIssuedAtRequired: true,
|
|
176
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
177
|
+
} as const;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
181
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
182
|
+
* parties (§7.3 item 5).
|
|
183
|
+
*/
|
|
184
|
+
export const RESPONSE_SPEC = {
|
|
185
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
186
|
+
isBearer: false,
|
|
187
|
+
isProofRequired: true,
|
|
188
|
+
isRecipientRequired: true,
|
|
189
|
+
isIssuedAtRequired: true,
|
|
190
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
191
|
+
} as const;
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/backup/complete-export/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Ext } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Acknowledges that an export bundle was downloaded, so the recipient can release the staged bytes and retire the transport token. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
|
|
11
|
+
*/
|
|
12
|
+
export interface VTABackupCompleteExportPayload {
|
|
13
|
+
/**
|
|
14
|
+
* Handle from the initiate-export descriptor. Opaque: a producer quotes what it was given and must not derive, guess or enumerate one.
|
|
15
|
+
*/
|
|
16
|
+
bundleId: string;
|
|
17
|
+
/**
|
|
18
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
19
|
+
*/
|
|
20
|
+
ext?: Ext;
|
|
21
|
+
}
|
|
22
|
+
export interface VTABackupCompleteExportResponsePayload {
|
|
23
|
+
/**
|
|
24
|
+
* Echoed so the response stands alone as a record.
|
|
25
|
+
*/
|
|
26
|
+
bundleId: string;
|
|
27
|
+
/**
|
|
28
|
+
* Whether the byte stream was actually fetched before this acknowledgement. Required, not optional: false is the honest answer when the operator skipped the download or the slot expired first, and an absent member would let that be read as success.
|
|
29
|
+
*/
|
|
30
|
+
downloaded: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
33
|
+
*/
|
|
34
|
+
ext?: Ext;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
38
|
+
export type { Ext };
|
|
39
|
+
|
|
40
|
+
/** Trust Task type URI. */
|
|
41
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/backup/complete-export/1.0" as const;
|
|
42
|
+
|
|
43
|
+
/** Stable alias for this specification's request payload shape. */
|
|
44
|
+
export type Payload = VTABackupCompleteExportPayload;
|
|
45
|
+
|
|
46
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
47
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/backup/complete-export/1.0#response" as const;
|
|
48
|
+
|
|
49
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
50
|
+
export type Response = VTABackupCompleteExportResponsePayload;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* This specification's payload schema, as a value.
|
|
54
|
+
*
|
|
55
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
56
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
57
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
58
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
59
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
60
|
+
*/
|
|
61
|
+
export const PAYLOAD_SCHEMA = {
|
|
62
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
63
|
+
"$id": "https://trusttasks.org/spec/vta/backup/complete-export/1.0",
|
|
64
|
+
"title": "VTA Backup — Complete Export — payload",
|
|
65
|
+
"description": "Acknowledges that an export bundle was downloaded, so the recipient can release the staged bytes and retire the transport token. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
|
|
66
|
+
"type": "object",
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"required": [
|
|
69
|
+
"bundleId"
|
|
70
|
+
],
|
|
71
|
+
"properties": {
|
|
72
|
+
"bundleId": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
75
|
+
"description": "Handle from the initiate-export descriptor. Opaque: a producer quotes what it was given and must not derive, guess or enumerate one."
|
|
76
|
+
},
|
|
77
|
+
"ext": {
|
|
78
|
+
"$ref": "#/$defs/Ext",
|
|
79
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"$defs": {
|
|
83
|
+
"Response": {
|
|
84
|
+
"$anchor": "response",
|
|
85
|
+
"title": "VTA Backup Complete Export — response payload",
|
|
86
|
+
"type": "object",
|
|
87
|
+
"additionalProperties": false,
|
|
88
|
+
"required": [
|
|
89
|
+
"bundleId",
|
|
90
|
+
"downloaded"
|
|
91
|
+
],
|
|
92
|
+
"properties": {
|
|
93
|
+
"bundleId": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
96
|
+
"description": "Echoed so the response stands alone as a record."
|
|
97
|
+
},
|
|
98
|
+
"downloaded": {
|
|
99
|
+
"type": "boolean",
|
|
100
|
+
"description": "Whether the byte stream was actually fetched before this acknowledgement. Required, not optional: false is the honest answer when the operator skipped the download or the slot expired first, and an absent member would let that be read as success."
|
|
101
|
+
},
|
|
102
|
+
"ext": {
|
|
103
|
+
"$ref": "#/$defs/Ext",
|
|
104
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"Ext": {
|
|
109
|
+
"title": "Ext",
|
|
110
|
+
"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.",
|
|
111
|
+
"type": "object",
|
|
112
|
+
"minProperties": 1,
|
|
113
|
+
"additionalProperties": true,
|
|
114
|
+
"propertyNames": {
|
|
115
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
} as const;
|
|
120
|
+
|
|
121
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
122
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
123
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
124
|
+
"$ref": "#/$defs/Response",
|
|
125
|
+
"$defs": {
|
|
126
|
+
"Response": {
|
|
127
|
+
"$anchor": "response",
|
|
128
|
+
"title": "VTA Backup Complete Export — response payload",
|
|
129
|
+
"type": "object",
|
|
130
|
+
"additionalProperties": false,
|
|
131
|
+
"required": [
|
|
132
|
+
"bundleId",
|
|
133
|
+
"downloaded"
|
|
134
|
+
],
|
|
135
|
+
"properties": {
|
|
136
|
+
"bundleId": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
139
|
+
"description": "Echoed so the response stands alone as a record."
|
|
140
|
+
},
|
|
141
|
+
"downloaded": {
|
|
142
|
+
"type": "boolean",
|
|
143
|
+
"description": "Whether the byte stream was actually fetched before this acknowledgement. Required, not optional: false is the honest answer when the operator skipped the download or the slot expired first, and an absent member would let that be read as success."
|
|
144
|
+
},
|
|
145
|
+
"ext": {
|
|
146
|
+
"$ref": "#/$defs/Ext",
|
|
147
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"Ext": {
|
|
152
|
+
"title": "Ext",
|
|
153
|
+
"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.",
|
|
154
|
+
"type": "object",
|
|
155
|
+
"minProperties": 1,
|
|
156
|
+
"additionalProperties": true,
|
|
157
|
+
"propertyNames": {
|
|
158
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
} as const;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
166
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
167
|
+
* per-specification and cannot be derived from the document alone, and
|
|
168
|
+
* item 2 needs the schema this carries.
|
|
169
|
+
*/
|
|
170
|
+
export const SPEC = {
|
|
171
|
+
typeUri: TYPE_URI,
|
|
172
|
+
isBearer: false,
|
|
173
|
+
isProofRequired: true,
|
|
174
|
+
isRecipientRequired: true,
|
|
175
|
+
isIssuedAtRequired: true,
|
|
176
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
177
|
+
} as const;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
181
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
182
|
+
* parties (§7.3 item 5).
|
|
183
|
+
*/
|
|
184
|
+
export const RESPONSE_SPEC = {
|
|
185
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
186
|
+
isBearer: false,
|
|
187
|
+
isProofRequired: true,
|
|
188
|
+
isRecipientRequired: true,
|
|
189
|
+
isIssuedAtRequired: true,
|
|
190
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
191
|
+
} as const;
|