@openvtc/trust-tasks 0.17.11 → 0.18.0

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.
Files changed (51) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/dist/_shared/components.d.ts +1 -1
  3. package/dist/index.d.ts +2 -0
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +2 -0
  6. package/dist/index.js.map +1 -1
  7. package/dist/rooms/epoch/chain/0.1/payload.d.ts +4 -4
  8. package/dist/rooms/epoch/chain/0.1/payload.js +2 -2
  9. package/dist/rooms/epoch/chain/0.1/payload.js.map +1 -1
  10. package/dist/rooms/epoch/mint/0.1/payload.d.ts +4 -4
  11. package/dist/rooms/epoch/mint/0.1/payload.js +2 -2
  12. package/dist/rooms/epoch/mint/0.1/payload.js.map +1 -1
  13. package/dist/rooms/keys/present/0.2/payload.d.ts +378 -0
  14. package/dist/rooms/keys/present/0.2/payload.d.ts.map +1 -0
  15. package/dist/rooms/keys/present/0.2/payload.js +212 -0
  16. package/dist/rooms/keys/present/0.2/payload.js.map +1 -0
  17. package/dist/rooms/owner/claim/0.1/payload.d.ts +4 -4
  18. package/dist/rooms/owner/claim/0.1/payload.js +2 -2
  19. package/dist/rooms/owner/claim/0.1/payload.js.map +1 -1
  20. package/dist/rooms/owner/issue-authority/0.2/payload.d.ts +315 -0
  21. package/dist/rooms/owner/issue-authority/0.2/payload.d.ts.map +1 -0
  22. package/dist/rooms/owner/issue-authority/0.2/payload.js +174 -0
  23. package/dist/rooms/owner/issue-authority/0.2/payload.js.map +1 -0
  24. package/dist/rooms/owner/transfer/0.1/payload.d.ts +4 -4
  25. package/dist/rooms/owner/transfer/0.1/payload.js +2 -2
  26. package/dist/rooms/owner/transfer/0.1/payload.js.map +1 -1
  27. package/dist/rooms/records/curate/0.1/payload.d.ts +4 -4
  28. package/dist/rooms/records/curate/0.1/payload.js +2 -2
  29. package/dist/rooms/records/curate/0.1/payload.js.map +1 -1
  30. package/dist/rooms/records/get/0.1/payload.d.ts +4 -4
  31. package/dist/rooms/records/get/0.1/payload.js +2 -2
  32. package/dist/rooms/records/get/0.1/payload.js.map +1 -1
  33. package/dist/rooms/records/list/0.1/payload.d.ts +4 -4
  34. package/dist/rooms/records/list/0.1/payload.js +2 -2
  35. package/dist/rooms/records/list/0.1/payload.js.map +1 -1
  36. package/dist/rooms/records/put/0.1/payload.d.ts +4 -4
  37. package/dist/rooms/records/put/0.1/payload.js +2 -2
  38. package/dist/rooms/records/put/0.1/payload.js.map +1 -1
  39. package/package.json +1 -1
  40. package/src/_shared/components.ts +1 -1
  41. package/src/index.ts +2 -0
  42. package/src/rooms/epoch/chain/0.1/payload.ts +2 -2
  43. package/src/rooms/epoch/mint/0.1/payload.ts +2 -2
  44. package/src/rooms/keys/present/0.2/payload.ts +261 -0
  45. package/src/rooms/owner/claim/0.1/payload.ts +2 -2
  46. package/src/rooms/owner/issue-authority/0.2/payload.ts +234 -0
  47. package/src/rooms/owner/transfer/0.1/payload.ts +2 -2
  48. package/src/rooms/records/curate/0.1/payload.ts +2 -2
  49. package/src/rooms/records/get/0.1/payload.ts +2 -2
  50. package/src/rooms/records/list/0.1/payload.ts +2 -2
  51. package/src/rooms/records/put/0.1/payload.ts +2 -2
@@ -125,7 +125,7 @@ export declare const PAYLOAD_SCHEMA: {
125
125
  readonly type: "object";
126
126
  readonly additionalProperties: false;
127
127
  readonly required: readonly ["membership", "authority"];
128
- readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier.";
128
+ readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.";
129
129
  readonly properties: {
130
130
  readonly membership: {
131
131
  readonly type: "string";
@@ -188,7 +188,7 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
188
188
  readonly type: "object";
189
189
  readonly additionalProperties: false;
190
190
  readonly required: readonly ["membership", "authority"];
191
- readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier.";
191
+ readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.";
192
192
  readonly properties: {
193
193
  readonly membership: {
194
194
  readonly type: "string";
@@ -290,7 +290,7 @@ export declare const SPEC: {
290
290
  readonly type: "object";
291
291
  readonly additionalProperties: false;
292
292
  readonly required: readonly ["membership", "authority"];
293
- readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier.";
293
+ readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.";
294
294
  readonly properties: {
295
295
  readonly membership: {
296
296
  readonly type: "string";
@@ -364,7 +364,7 @@ export declare const RESPONSE_SPEC: {
364
364
  readonly type: "object";
365
365
  readonly additionalProperties: false;
366
366
  readonly required: readonly ["membership", "authority"];
367
- readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier.";
367
+ readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.";
368
368
  readonly properties: {
369
369
  readonly membership: {
370
370
  readonly type: "string";
@@ -92,7 +92,7 @@ export const PAYLOAD_SCHEMA = {
92
92
  "membership",
93
93
  "authority"
94
94
  ],
95
- "description": "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier.",
95
+ "description": "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.",
96
96
  "properties": {
97
97
  "membership": {
98
98
  "type": "string",
@@ -161,7 +161,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
161
161
  "membership",
162
162
  "authority"
163
163
  ],
164
- "description": "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier.",
164
+ "description": "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.",
165
165
  "properties": {
166
166
  "membership": {
167
167
  "type": "string",
@@ -1 +1 @@
1
- {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/rooms/owner/claim/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA6CH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,mDAA4D,CAAC;AAKrF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,4DAAqE,CAAC;AAKvG;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,mDAAmD;IAC1D,OAAO,EAAE,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issue-authority/0.2/payload.schema.json
4
+ */
5
+ import type { Ext } from "../../../../_shared/components.js";
6
+ export interface RoomsOwnerIssueAuthorityPayload {
7
+ /**
8
+ * The room whose identity issues this credential. The recipient MUST hold a signing key for it — it is signing AS the room, not as itself.
9
+ */
10
+ roomId: string;
11
+ /**
12
+ * Which held key signs. Named explicitly rather than looked up from `roomId`, because nothing maps a DID to a key it was minted with and inventing that mapping would add a lifecycle to get wrong. A key that is not the room's produces a credential that fails to verify against the room's DID document — loud, and at the first use rather than later.
13
+ */
14
+ signingKeyId: string;
15
+ /**
16
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
17
+ */
18
+ ext?: Ext;
19
+ /**
20
+ * The party this grants to. A chain ROOT: the room is the governing party, so this is the grant everything else descends from. A holder narrows their own grant with attenuation instead, which needs no issuer.
21
+ */
22
+ subject: string;
23
+ /**
24
+ * What the subject may do. MUST NOT be empty — an empty list confers nothing rather than everything, and a schema that allowed it would make the more dangerous reading available to a careless consumer. `curate` is not implied by `write`: pinning, deprecating and retracting are judgements over shared knowledge, not writes.
25
+ *
26
+ * @minItems 1
27
+ */
28
+ actions: ["read" | "write" | "curate" | "admin", ...("read" | "write" | "curate" | "admin")[]];
29
+ /**
30
+ * When the grant lapses. REQUIRED, and not merely recommended: nothing about the subject's current standing is consulted when an authority credential is verified, so a grant that never expires is authority nobody can withdraw by waiting. A verifier refuses a chain link carrying none, so a grant minted without one could not have been used. Changing what a party may do reissues this one small credential and leaves the membership edge alone, which is why the two are separate credentials.
31
+ */
32
+ validUntil: string;
33
+ }
34
+ /**
35
+ * Success response to rooms/owner/issue-authority. Type https://trusttasks.org/spec/rooms/owner/issue-authority/0.2#response. The signed VAC, a chain root at the room's scope.
36
+ */
37
+ export interface RoomsOwnerIssueAuthorityResponsePayload {
38
+ /**
39
+ * The signed Verifiable Authority Credential, serialised.
40
+ */
41
+ credential: string;
42
+ /**
43
+ * Its `id`.
44
+ */
45
+ credentialId: string;
46
+ ext?: Ext;
47
+ }
48
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
49
+ export type { Ext };
50
+ /** Trust Task type URI. */
51
+ export declare const TYPE_URI: "https://trusttasks.org/spec/rooms/owner/issue-authority/0.2";
52
+ /** Stable alias for this specification's request payload shape. */
53
+ export type Payload = RoomsOwnerIssueAuthorityPayload;
54
+ /** Trust Task response type URI (request type URI + "#response"). */
55
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/rooms/owner/issue-authority/0.2#response";
56
+ /** Stable alias for this specification's success-response payload shape. */
57
+ export type Response = RoomsOwnerIssueAuthorityResponsePayload;
58
+ /**
59
+ * This specification's payload schema, as a value.
60
+ *
61
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
62
+ * rather than only as a `.json` file because TypeScript types are erased
63
+ * at runtime: without a schema a consumer has nothing to validate, and
64
+ * every REQUIRED payload member is optional in practice. Cross-file
65
+ * `$ref`s are already inlined, so it needs no resolver.
66
+ */
67
+ export declare const PAYLOAD_SCHEMA: {
68
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
69
+ readonly $id: "https://trusttasks.org/spec/rooms/owner/issue-authority/0.2";
70
+ readonly title: "Rooms Owner Issue Authority — payload";
71
+ readonly type: "object";
72
+ readonly additionalProperties: false;
73
+ readonly required: readonly ["roomId", "signingKeyId", "subject", "actions", "validUntil"];
74
+ readonly properties: {
75
+ readonly roomId: {
76
+ readonly type: "string";
77
+ readonly description: "The room whose identity issues this credential. The recipient MUST hold a signing key for it — it is signing AS the room, not as itself.";
78
+ };
79
+ readonly signingKeyId: {
80
+ readonly type: "string";
81
+ readonly maxLength: 256;
82
+ readonly description: "Which held key signs. Named explicitly rather than looked up from `roomId`, because nothing maps a DID to a key it was minted with and inventing that mapping would add a lifecycle to get wrong. A key that is not the room's produces a credential that fails to verify against the room's DID document — loud, and at the first use rather than later.";
83
+ };
84
+ readonly ext: {
85
+ readonly $ref: "#/$defs/Ext";
86
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
87
+ };
88
+ readonly subject: {
89
+ readonly type: "string";
90
+ readonly description: "The party this grants to. A chain ROOT: the room is the governing party, so this is the grant everything else descends from. A holder narrows their own grant with attenuation instead, which needs no issuer.";
91
+ };
92
+ readonly actions: {
93
+ readonly type: "array";
94
+ readonly minItems: 1;
95
+ readonly items: {
96
+ readonly type: "string";
97
+ readonly enum: readonly ["read", "write", "curate", "admin"];
98
+ };
99
+ readonly description: "What the subject may do. MUST NOT be empty — an empty list confers nothing rather than everything, and a schema that allowed it would make the more dangerous reading available to a careless consumer. `curate` is not implied by `write`: pinning, deprecating and retracting are judgements over shared knowledge, not writes.";
100
+ };
101
+ readonly validUntil: {
102
+ readonly type: "string";
103
+ readonly format: "date-time";
104
+ readonly description: "When the grant lapses. REQUIRED, and not merely recommended: nothing about the subject's current standing is consulted when an authority credential is verified, so a grant that never expires is authority nobody can withdraw by waiting. A verifier refuses a chain link carrying none, so a grant minted without one could not have been used. Changing what a party may do reissues this one small credential and leaves the membership edge alone, which is why the two are separate credentials.";
105
+ };
106
+ };
107
+ readonly $defs: {
108
+ readonly Response: {
109
+ readonly $anchor: "response";
110
+ readonly title: "Rooms Owner Issue Authority — response payload";
111
+ readonly description: "Success response to rooms/owner/issue-authority. Type https://trusttasks.org/spec/rooms/owner/issue-authority/0.2#response. The signed VAC, a chain root at the room's scope.";
112
+ readonly type: "object";
113
+ readonly additionalProperties: false;
114
+ readonly required: readonly ["credential", "credentialId"];
115
+ readonly properties: {
116
+ readonly credential: {
117
+ readonly type: "string";
118
+ readonly description: "The signed Verifiable Authority Credential, serialised.";
119
+ };
120
+ readonly credentialId: {
121
+ readonly type: "string";
122
+ readonly description: "Its `id`.";
123
+ };
124
+ readonly ext: {
125
+ readonly $ref: "#/$defs/Ext";
126
+ };
127
+ };
128
+ };
129
+ readonly Ext: {
130
+ readonly title: "Ext";
131
+ 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.";
132
+ readonly type: "object";
133
+ readonly minProperties: 1;
134
+ readonly additionalProperties: true;
135
+ readonly propertyNames: {
136
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
137
+ };
138
+ };
139
+ };
140
+ };
141
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
142
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
143
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
144
+ readonly $ref: "#/$defs/Response";
145
+ readonly $defs: {
146
+ readonly Response: {
147
+ readonly $anchor: "response";
148
+ readonly title: "Rooms Owner Issue Authority — response payload";
149
+ readonly description: "Success response to rooms/owner/issue-authority. Type https://trusttasks.org/spec/rooms/owner/issue-authority/0.2#response. The signed VAC, a chain root at the room's scope.";
150
+ readonly type: "object";
151
+ readonly additionalProperties: false;
152
+ readonly required: readonly ["credential", "credentialId"];
153
+ readonly properties: {
154
+ readonly credential: {
155
+ readonly type: "string";
156
+ readonly description: "The signed Verifiable Authority Credential, serialised.";
157
+ };
158
+ readonly credentialId: {
159
+ readonly type: "string";
160
+ readonly description: "Its `id`.";
161
+ };
162
+ readonly ext: {
163
+ readonly $ref: "#/$defs/Ext";
164
+ };
165
+ };
166
+ };
167
+ readonly Ext: {
168
+ readonly title: "Ext";
169
+ 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.";
170
+ readonly type: "object";
171
+ readonly minProperties: 1;
172
+ readonly additionalProperties: true;
173
+ readonly propertyNames: {
174
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
175
+ };
176
+ };
177
+ };
178
+ };
179
+ /**
180
+ * SPEC.md §7.2 policy for the request variant, from this specification's
181
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
182
+ * per-specification and cannot be derived from the document alone, and
183
+ * item 2 needs the schema this carries.
184
+ */
185
+ export declare const SPEC: {
186
+ readonly typeUri: "https://trusttasks.org/spec/rooms/owner/issue-authority/0.2";
187
+ readonly isBearer: false;
188
+ readonly isProofRequired: true;
189
+ readonly isRecipientRequired: true;
190
+ readonly isIssuedAtRequired: true;
191
+ readonly payloadSchema: {
192
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
193
+ readonly $id: "https://trusttasks.org/spec/rooms/owner/issue-authority/0.2";
194
+ readonly title: "Rooms Owner Issue Authority — payload";
195
+ readonly type: "object";
196
+ readonly additionalProperties: false;
197
+ readonly required: readonly ["roomId", "signingKeyId", "subject", "actions", "validUntil"];
198
+ readonly properties: {
199
+ readonly roomId: {
200
+ readonly type: "string";
201
+ readonly description: "The room whose identity issues this credential. The recipient MUST hold a signing key for it — it is signing AS the room, not as itself.";
202
+ };
203
+ readonly signingKeyId: {
204
+ readonly type: "string";
205
+ readonly maxLength: 256;
206
+ readonly description: "Which held key signs. Named explicitly rather than looked up from `roomId`, because nothing maps a DID to a key it was minted with and inventing that mapping would add a lifecycle to get wrong. A key that is not the room's produces a credential that fails to verify against the room's DID document — loud, and at the first use rather than later.";
207
+ };
208
+ readonly ext: {
209
+ readonly $ref: "#/$defs/Ext";
210
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
211
+ };
212
+ readonly subject: {
213
+ readonly type: "string";
214
+ readonly description: "The party this grants to. A chain ROOT: the room is the governing party, so this is the grant everything else descends from. A holder narrows their own grant with attenuation instead, which needs no issuer.";
215
+ };
216
+ readonly actions: {
217
+ readonly type: "array";
218
+ readonly minItems: 1;
219
+ readonly items: {
220
+ readonly type: "string";
221
+ readonly enum: readonly ["read", "write", "curate", "admin"];
222
+ };
223
+ readonly description: "What the subject may do. MUST NOT be empty — an empty list confers nothing rather than everything, and a schema that allowed it would make the more dangerous reading available to a careless consumer. `curate` is not implied by `write`: pinning, deprecating and retracting are judgements over shared knowledge, not writes.";
224
+ };
225
+ readonly validUntil: {
226
+ readonly type: "string";
227
+ readonly format: "date-time";
228
+ readonly description: "When the grant lapses. REQUIRED, and not merely recommended: nothing about the subject's current standing is consulted when an authority credential is verified, so a grant that never expires is authority nobody can withdraw by waiting. A verifier refuses a chain link carrying none, so a grant minted without one could not have been used. Changing what a party may do reissues this one small credential and leaves the membership edge alone, which is why the two are separate credentials.";
229
+ };
230
+ };
231
+ readonly $defs: {
232
+ readonly Response: {
233
+ readonly $anchor: "response";
234
+ readonly title: "Rooms Owner Issue Authority — response payload";
235
+ readonly description: "Success response to rooms/owner/issue-authority. Type https://trusttasks.org/spec/rooms/owner/issue-authority/0.2#response. The signed VAC, a chain root at the room's scope.";
236
+ readonly type: "object";
237
+ readonly additionalProperties: false;
238
+ readonly required: readonly ["credential", "credentialId"];
239
+ readonly properties: {
240
+ readonly credential: {
241
+ readonly type: "string";
242
+ readonly description: "The signed Verifiable Authority Credential, serialised.";
243
+ };
244
+ readonly credentialId: {
245
+ readonly type: "string";
246
+ readonly description: "Its `id`.";
247
+ };
248
+ readonly ext: {
249
+ readonly $ref: "#/$defs/Ext";
250
+ };
251
+ };
252
+ };
253
+ readonly Ext: {
254
+ readonly title: "Ext";
255
+ 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.";
256
+ readonly type: "object";
257
+ readonly minProperties: 1;
258
+ readonly additionalProperties: true;
259
+ readonly propertyNames: {
260
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
261
+ };
262
+ };
263
+ };
264
+ };
265
+ };
266
+ /**
267
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
268
+ * tracks the *issuer* party's requirement because a response swaps the
269
+ * parties (§7.3 item 5).
270
+ */
271
+ export declare const RESPONSE_SPEC: {
272
+ readonly typeUri: "https://trusttasks.org/spec/rooms/owner/issue-authority/0.2#response";
273
+ readonly isBearer: false;
274
+ readonly isProofRequired: true;
275
+ readonly isRecipientRequired: true;
276
+ readonly isIssuedAtRequired: true;
277
+ readonly payloadSchema: {
278
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
279
+ readonly $ref: "#/$defs/Response";
280
+ readonly $defs: {
281
+ readonly Response: {
282
+ readonly $anchor: "response";
283
+ readonly title: "Rooms Owner Issue Authority — response payload";
284
+ readonly description: "Success response to rooms/owner/issue-authority. Type https://trusttasks.org/spec/rooms/owner/issue-authority/0.2#response. The signed VAC, a chain root at the room's scope.";
285
+ readonly type: "object";
286
+ readonly additionalProperties: false;
287
+ readonly required: readonly ["credential", "credentialId"];
288
+ readonly properties: {
289
+ readonly credential: {
290
+ readonly type: "string";
291
+ readonly description: "The signed Verifiable Authority Credential, serialised.";
292
+ };
293
+ readonly credentialId: {
294
+ readonly type: "string";
295
+ readonly description: "Its `id`.";
296
+ };
297
+ readonly ext: {
298
+ readonly $ref: "#/$defs/Ext";
299
+ };
300
+ };
301
+ };
302
+ readonly Ext: {
303
+ readonly title: "Ext";
304
+ 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.";
305
+ readonly type: "object";
306
+ readonly minProperties: 1;
307
+ readonly additionalProperties: true;
308
+ readonly propertyNames: {
309
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
310
+ };
311
+ };
312
+ };
313
+ };
314
+ };
315
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/rooms/owner/issue-authority/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AAG7D,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;IACV;;OAEG;IACH,OAAO,EAAE,MAAM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mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/rooms/owner/issue-authority/0.2/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/rooms/owner/issue-authority/0.2";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/owner/issue-authority/0.2#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/rooms/owner/issue-authority/0.2",
21
+ "title": "Rooms Owner Issue Authority — payload",
22
+ "type": "object",
23
+ "additionalProperties": false,
24
+ "required": [
25
+ "roomId",
26
+ "signingKeyId",
27
+ "subject",
28
+ "actions",
29
+ "validUntil"
30
+ ],
31
+ "properties": {
32
+ "roomId": {
33
+ "type": "string",
34
+ "description": "The room whose identity issues this credential. The recipient MUST hold a signing key for it — it is signing AS the room, not as itself."
35
+ },
36
+ "signingKeyId": {
37
+ "type": "string",
38
+ "maxLength": 256,
39
+ "description": "Which held key signs. Named explicitly rather than looked up from `roomId`, because nothing maps a DID to a key it was minted with and inventing that mapping would add a lifecycle to get wrong. A key that is not the room's produces a credential that fails to verify against the room's DID document — loud, and at the first use rather than later."
40
+ },
41
+ "ext": {
42
+ "$ref": "#/$defs/Ext",
43
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
44
+ },
45
+ "subject": {
46
+ "type": "string",
47
+ "description": "The party this grants to. A chain ROOT: the room is the governing party, so this is the grant everything else descends from. A holder narrows their own grant with attenuation instead, which needs no issuer."
48
+ },
49
+ "actions": {
50
+ "type": "array",
51
+ "minItems": 1,
52
+ "items": {
53
+ "type": "string",
54
+ "enum": [
55
+ "read",
56
+ "write",
57
+ "curate",
58
+ "admin"
59
+ ]
60
+ },
61
+ "description": "What the subject may do. MUST NOT be empty — an empty list confers nothing rather than everything, and a schema that allowed it would make the more dangerous reading available to a careless consumer. `curate` is not implied by `write`: pinning, deprecating and retracting are judgements over shared knowledge, not writes."
62
+ },
63
+ "validUntil": {
64
+ "type": "string",
65
+ "format": "date-time",
66
+ "description": "When the grant lapses. REQUIRED, and not merely recommended: nothing about the subject's current standing is consulted when an authority credential is verified, so a grant that never expires is authority nobody can withdraw by waiting. A verifier refuses a chain link carrying none, so a grant minted without one could not have been used. Changing what a party may do reissues this one small credential and leaves the membership edge alone, which is why the two are separate credentials."
67
+ }
68
+ },
69
+ "$defs": {
70
+ "Response": {
71
+ "$anchor": "response",
72
+ "title": "Rooms Owner Issue Authority — response payload",
73
+ "description": "Success response to rooms/owner/issue-authority. Type https://trusttasks.org/spec/rooms/owner/issue-authority/0.2#response. The signed VAC, a chain root at the room's scope.",
74
+ "type": "object",
75
+ "additionalProperties": false,
76
+ "required": [
77
+ "credential",
78
+ "credentialId"
79
+ ],
80
+ "properties": {
81
+ "credential": {
82
+ "type": "string",
83
+ "description": "The signed Verifiable Authority Credential, serialised."
84
+ },
85
+ "credentialId": {
86
+ "type": "string",
87
+ "description": "Its `id`."
88
+ },
89
+ "ext": {
90
+ "$ref": "#/$defs/Ext"
91
+ }
92
+ }
93
+ },
94
+ "Ext": {
95
+ "title": "Ext",
96
+ "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.",
97
+ "type": "object",
98
+ "minProperties": 1,
99
+ "additionalProperties": true,
100
+ "propertyNames": {
101
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
102
+ }
103
+ }
104
+ }
105
+ };
106
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
107
+ export const RESPONSE_PAYLOAD_SCHEMA = {
108
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
109
+ "$ref": "#/$defs/Response",
110
+ "$defs": {
111
+ "Response": {
112
+ "$anchor": "response",
113
+ "title": "Rooms Owner Issue Authority — response payload",
114
+ "description": "Success response to rooms/owner/issue-authority. Type https://trusttasks.org/spec/rooms/owner/issue-authority/0.2#response. The signed VAC, a chain root at the room's scope.",
115
+ "type": "object",
116
+ "additionalProperties": false,
117
+ "required": [
118
+ "credential",
119
+ "credentialId"
120
+ ],
121
+ "properties": {
122
+ "credential": {
123
+ "type": "string",
124
+ "description": "The signed Verifiable Authority Credential, serialised."
125
+ },
126
+ "credentialId": {
127
+ "type": "string",
128
+ "description": "Its `id`."
129
+ },
130
+ "ext": {
131
+ "$ref": "#/$defs/Ext"
132
+ }
133
+ }
134
+ },
135
+ "Ext": {
136
+ "title": "Ext",
137
+ "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.",
138
+ "type": "object",
139
+ "minProperties": 1,
140
+ "additionalProperties": true,
141
+ "propertyNames": {
142
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
143
+ }
144
+ }
145
+ }
146
+ };
147
+ /**
148
+ * SPEC.md §7.2 policy for the request variant, from this specification's
149
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
150
+ * per-specification and cannot be derived from the document alone, and
151
+ * item 2 needs the schema this carries.
152
+ */
153
+ export const SPEC = {
154
+ typeUri: TYPE_URI,
155
+ isBearer: false,
156
+ isProofRequired: true,
157
+ isRecipientRequired: true,
158
+ isIssuedAtRequired: true,
159
+ payloadSchema: PAYLOAD_SCHEMA,
160
+ };
161
+ /**
162
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
163
+ * tracks the *issuer* party's requirement because a response swaps the
164
+ * parties (§7.3 item 5).
165
+ */
166
+ export const RESPONSE_SPEC = {
167
+ typeUri: RESPONSE_TYPE_URI,
168
+ isBearer: false,
169
+ isProofRequired: true,
170
+ isRecipientRequired: true,
171
+ isIssuedAtRequired: true,
172
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
173
+ };
174
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/rooms/owner/issue-authority/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAmDH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,6DAAsE,CAAC;AAK/F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,sEAA+E,CAAC;AAKjH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,6DAA6D;IACpE,OAAO,EAAE,uCAAuC;IAChD,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,QAAQ;QACR,cAAc;QACd,SAAS;QACT,SAAS;QACT,YAAY;KACb;IACD,YAAY,EAAE;QACZ,QAAQ,EAAE;YACR,MAAM,EAAE,QAAQ;YAChB,aAAa,EAAE,0IAA0I;SAC1J;QACD,cAAc,EAAE;YACd,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,GAAG;YAChB,aAAa,EAAE,2VAA2V;SAC3W;QACD,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;YACrB,aAAa,EAAE,yDAAyD;SACzE;QACD,SAAS,EAAE;YACT,MAAM,EAAE,QAAQ;YAChB,aAAa,EAAE,gNAAgN;SAChO;QACD,SAAS,EAAE;YACT,MAAM,EAAE,OAAO;YACf,UAAU,EAAE,CAAC;YACb,OAAO,EAAE;gBACP,MAAM,EAAE,QAAQ;gBAChB,MAAM,EAAE;oBACN,MAAM;oBACN,OAAO;oBACP,QAAQ;oBACR,OAAO;i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,EAAE;oBACd,MAAM,EAAE,QAAQ;oBAChB,aAAa,EAAE,WAAW;iBAC3B;gBACD,KAAK,EAAE;oBACL,MAAM,EAAE,aAAa;iBACtB;aACF;SACF;QACD,KAAK,EAAE;YACL,OAAO,EAAE,KAAK;YACd,aAAa,EAAE,uKAAuK;YACtL,MAAM,EAAE,QAAQ;YAChB,eAAe,EAAE,CAAC;YAClB,sBAAsB,EAAE,IAAI;YAC5B,eAAe,EAAE;gBACf,SAAS,EAAE,mCAAmC;aAC/C;SACF;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
@@ -125,7 +125,7 @@ export declare const PAYLOAD_SCHEMA: {
125
125
  readonly type: "object";
126
126
  readonly additionalProperties: false;
127
127
  readonly required: readonly ["membership", "authority"];
128
- readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier.";
128
+ readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.";
129
129
  readonly properties: {
130
130
  readonly membership: {
131
131
  readonly type: "string";
@@ -188,7 +188,7 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
188
188
  readonly type: "object";
189
189
  readonly additionalProperties: false;
190
190
  readonly required: readonly ["membership", "authority"];
191
- readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier.";
191
+ readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.";
192
192
  readonly properties: {
193
193
  readonly membership: {
194
194
  readonly type: "string";
@@ -290,7 +290,7 @@ export declare const SPEC: {
290
290
  readonly type: "object";
291
291
  readonly additionalProperties: false;
292
292
  readonly required: readonly ["membership", "authority"];
293
- readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier.";
293
+ readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.";
294
294
  readonly properties: {
295
295
  readonly membership: {
296
296
  readonly type: "string";
@@ -364,7 +364,7 @@ export declare const RESPONSE_SPEC: {
364
364
  readonly type: "object";
365
365
  readonly additionalProperties: false;
366
366
  readonly required: readonly ["membership", "authority"];
367
- readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier.";
367
+ readonly description: "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.";
368
368
  readonly properties: {
369
369
  readonly membership: {
370
370
  readonly type: "string";