@openvtc/trust-tasks 0.17.11 → 0.18.1

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 (56) hide show
  1. package/CHANGELOG.md +108 -0
  2. package/dist/_shared/components.d.ts +34 -2
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +2 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +2 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/rooms/_shared/0.1/room.d.ts +1 -1
  9. package/dist/rooms/_shared/0.1/room.d.ts.map +1 -1
  10. package/dist/rooms/epoch/chain/0.1/payload.d.ts +4 -4
  11. package/dist/rooms/epoch/chain/0.1/payload.js +2 -2
  12. package/dist/rooms/epoch/chain/0.1/payload.js.map +1 -1
  13. package/dist/rooms/epoch/mint/0.1/payload.d.ts +4 -4
  14. package/dist/rooms/epoch/mint/0.1/payload.js +2 -2
  15. package/dist/rooms/epoch/mint/0.1/payload.js.map +1 -1
  16. package/dist/rooms/keys/present/0.2/payload.d.ts +378 -0
  17. package/dist/rooms/keys/present/0.2/payload.d.ts.map +1 -0
  18. package/dist/rooms/keys/present/0.2/payload.js +212 -0
  19. package/dist/rooms/keys/present/0.2/payload.js.map +1 -0
  20. package/dist/rooms/owner/claim/0.1/payload.d.ts +4 -4
  21. package/dist/rooms/owner/claim/0.1/payload.js +2 -2
  22. package/dist/rooms/owner/claim/0.1/payload.js.map +1 -1
  23. package/dist/rooms/owner/issue-authority/0.2/payload.d.ts +315 -0
  24. package/dist/rooms/owner/issue-authority/0.2/payload.d.ts.map +1 -0
  25. package/dist/rooms/owner/issue-authority/0.2/payload.js +174 -0
  26. package/dist/rooms/owner/issue-authority/0.2/payload.js.map +1 -0
  27. package/dist/rooms/owner/transfer/0.1/payload.d.ts +4 -4
  28. package/dist/rooms/owner/transfer/0.1/payload.js +2 -2
  29. package/dist/rooms/owner/transfer/0.1/payload.js.map +1 -1
  30. package/dist/rooms/records/curate/0.1/payload.d.ts +4 -4
  31. package/dist/rooms/records/curate/0.1/payload.js +2 -2
  32. package/dist/rooms/records/curate/0.1/payload.js.map +1 -1
  33. package/dist/rooms/records/get/0.1/payload.d.ts +241 -27
  34. package/dist/rooms/records/get/0.1/payload.d.ts.map +1 -1
  35. package/dist/rooms/records/get/0.1/payload.js +128 -12
  36. package/dist/rooms/records/get/0.1/payload.js.map +1 -1
  37. package/dist/rooms/records/list/0.1/payload.d.ts +8 -8
  38. package/dist/rooms/records/list/0.1/payload.js +4 -4
  39. package/dist/rooms/records/list/0.1/payload.js.map +1 -1
  40. package/dist/rooms/records/put/0.1/payload.d.ts +4 -4
  41. package/dist/rooms/records/put/0.1/payload.js +2 -2
  42. package/dist/rooms/records/put/0.1/payload.js.map +1 -1
  43. package/package.json +1 -1
  44. package/src/_shared/components.ts +34 -2
  45. package/src/index.ts +2 -0
  46. package/src/rooms/_shared/0.1/room.ts +1 -1
  47. package/src/rooms/epoch/chain/0.1/payload.ts +2 -2
  48. package/src/rooms/epoch/mint/0.1/payload.ts +2 -2
  49. package/src/rooms/keys/present/0.2/payload.ts +261 -0
  50. package/src/rooms/owner/claim/0.1/payload.ts +2 -2
  51. package/src/rooms/owner/issue-authority/0.2/payload.ts +234 -0
  52. package/src/rooms/owner/transfer/0.1/payload.ts +2 -2
  53. package/src/rooms/records/curate/0.1/payload.ts +2 -2
  54. package/src/rooms/records/get/0.1/payload.ts +157 -15
  55. package/src/rooms/records/list/0.1/payload.ts +4 -4
  56. package/src/rooms/records/put/0.1/payload.ts +2 -2
@@ -12,5 +12,5 @@ export interface RoomsSharedTypes {
12
12
  * The definitions this shared schema publishes, hoisted to one declaration each.
13
13
  * See "../../../_shared/components.js".
14
14
  */
15
- export type { AuthorityPresentation, DataCommitment, EpochLink, RecordMetadata, RetentionPolicy, SealedRecord, Visibility } from "../../../_shared/components.js";
15
+ export type { AuthorityPresentation, DataCommitment, EpochLink, RecordMetadata, RecordTrace, RetentionPolicy, SealedRecord, Visibility } from "../../../_shared/components.js";
16
16
  //# sourceMappingURL=room.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"room.d.ts","sourceRoot":"","sources":["../../../../src/rooms/_shared/0.1/room.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED;;;GAGG;AACH,YAAY,EAAE,qBAAqB,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc,EAAE,eAAe,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC"}
1
+ {"version":3,"file":"room.d.ts","sourceRoot":"","sources":["../../../../src/rooms/_shared/0.1/room.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED;;;GAGG;AACH,YAAY,EAAE,qBAAqB,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC"}
@@ -148,7 +148,7 @@ export declare const PAYLOAD_SCHEMA: {
148
148
  readonly type: "object";
149
149
  readonly additionalProperties: false;
150
150
  readonly required: readonly ["membership", "authority"];
151
- 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.";
151
+ 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.";
152
152
  readonly properties: {
153
153
  readonly membership: {
154
154
  readonly type: "string";
@@ -236,7 +236,7 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
236
236
  readonly type: "object";
237
237
  readonly additionalProperties: false;
238
238
  readonly required: readonly ["membership", "authority"];
239
- 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.";
239
+ 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.";
240
240
  readonly properties: {
241
241
  readonly membership: {
242
242
  readonly type: "string";
@@ -364,7 +364,7 @@ export declare const 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";
@@ -463,7 +463,7 @@ export declare const RESPONSE_SPEC: {
463
463
  readonly type: "object";
464
464
  readonly additionalProperties: false;
465
465
  readonly required: readonly ["membership", "authority"];
466
- 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.";
466
+ 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.";
467
467
  readonly properties: {
468
468
  readonly membership: {
469
469
  readonly type: "string";
@@ -121,7 +121,7 @@ export const PAYLOAD_SCHEMA = {
121
121
  "membership",
122
122
  "authority"
123
123
  ],
124
- "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.",
124
+ "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.",
125
125
  "properties": {
126
126
  "membership": {
127
127
  "type": "string",
@@ -219,7 +219,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
219
219
  "membership",
220
220
  "authority"
221
221
  ],
222
- "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.",
222
+ "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.",
223
223
  "properties": {
224
224
  "membership": {
225
225
  "type": "string",
@@ -1 +1 @@
1
- {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/rooms/epoch/chain/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA0CH,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,6BAA6B;IACt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AAE,4JAA4J;iBAC5K;gBACD,WAAW,EAAE;oBACX,MAAM,EAAE,OAAO;oBACf,UAAU,EAAE,CAAC;oBACb,UAAU,EAAE,CAAC;oBACb,OAAO,EAAE;wBACP,MAAM,EAAE,QAAQ;qBACjB;oBACD,aAAa,EAAE,odAAod;iBACpe;gBACD,gBAAgB,EAAE;oBAChB,MAAM,EAAE,QAAQ;oBAChB,aAAa,EAAE,mYAAmY;iBACnZ;aACF;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"}
@@ -150,7 +150,7 @@ export declare const PAYLOAD_SCHEMA: {
150
150
  readonly type: "object";
151
151
  readonly additionalProperties: false;
152
152
  readonly required: readonly ["membership", "authority"];
153
- 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.";
153
+ 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.";
154
154
  readonly properties: {
155
155
  readonly membership: {
156
156
  readonly type: "string";
@@ -235,7 +235,7 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
235
235
  readonly type: "object";
236
236
  readonly additionalProperties: false;
237
237
  readonly required: readonly ["membership", "authority"];
238
- 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.";
238
+ 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.";
239
239
  readonly properties: {
240
240
  readonly membership: {
241
241
  readonly type: "string";
@@ -364,7 +364,7 @@ export declare const 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";
@@ -460,7 +460,7 @@ export declare const RESPONSE_SPEC: {
460
460
  readonly type: "object";
461
461
  readonly additionalProperties: false;
462
462
  readonly required: readonly ["membership", "authority"];
463
- 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.";
463
+ 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.";
464
464
  readonly properties: {
465
465
  readonly membership: {
466
466
  readonly type: "string";
@@ -123,7 +123,7 @@ export const PAYLOAD_SCHEMA = {
123
123
  "membership",
124
124
  "authority"
125
125
  ],
126
- "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.",
126
+ "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.",
127
127
  "properties": {
128
128
  "membership": {
129
129
  "type": "string",
@@ -218,7 +218,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
218
218
  "membership",
219
219
  "authority"
220
220
  ],
221
- "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.",
221
+ "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.",
222
222
  "properties": {
223
223
  "membership": {
224
224
  "type": "string",
@@ -1 +1 @@
1
- {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/rooms/epoch/mint/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA2CH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,kDAA2D,CAAC;AAKpF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,2DAAoE,CAAC;AAKtG;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,kDAAkD;IACzD,OAAO,EAAE,4BAA4B;IACrC,MAAM,EAAE,QAAQ;IAChB,sBAAsB,E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,EAAE,4JAA4J;iBAC5K;gBACD,WAAW,EAAE;oBACX,MAAM,EAAE,OAAO;oBACf,UAAU,EAAE,CAAC;oBACb,UAAU,EAAE,CAAC;oBACb,OAAO,EAAE;wBACP,MAAM,EAAE,QAAQ;qBACjB;oBACD,aAAa,EAAE,odAAod;iBACpe;gBACD,gBAAgB,EAAE;oBAChB,MAAM,EAAE,QAAQ;oBAChB,aAAa,EAAE,mYAAmY;iBACnZ;aACF;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"}
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/rooms/epoch/mint/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA2CH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,kDAA2D,CAAC;AAKpF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,2DAAoE,CAAC;AAKtG;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,kDAAkD;IACzD,OAAO,EAAE,4BAA4B;IACrC,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,QAAQ;QACR,OAAO;QACP,cAAc;KACf;IACD,Y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AU,EAAE,CAAC;oBACb,UAAU,EAAE,CAAC;oBACb,OAAO,EAAE;wBACP,MAAM,EAAE,QAAQ;qBACjB;oBACD,aAAa,EAAE,odAAod;iBACpe;gBACD,gBAAgB,EAAE;oBAChB,MAAM,EAAE,QAAQ;oBAChB,aAAa,EAAE,mYAAmY;iBACnZ;aACF;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"}
@@ -0,0 +1,378 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/rooms/keys/present/0.2/payload.schema.json
4
+ */
5
+ import type { AuthorityPresentation, Ext } from "../../../../_shared/components.js";
6
+ /**
7
+ * An agent asks the party holding its principal's room credentials to produce a presentation for one room operation. The credentials never cross to the agent; only the presentation does, and it is bound to the operation it was asked for and to the agent that asked.
8
+ */
9
+ export interface RoomsKeysPresentPayload {
10
+ /**
11
+ * The room to present for.
12
+ */
13
+ roomId: string;
14
+ /**
15
+ * The action the presentation must confer. Named here so the produced presentation can be scoped to it: a presentation minted for `read` should not be reusable for `write`, and a holder that mints one covering everything has handed the agent its own standing.
16
+ */
17
+ action: "read" | "write" | "curate" | "admin";
18
+ /**
19
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
20
+ */
21
+ ext?: Ext;
22
+ }
23
+ /**
24
+ * Success response to rooms/keys/present. Type https://trusttasks.org/spec/rooms/keys/present/0.2#response.
25
+ */
26
+ export interface RoomsKeysPresentResponsePayload {
27
+ /**
28
+ * The presentation to send to the host. Its authority chain grants to the CALLER, who is the only party that can present it — see the task's Security & Privacy section.
29
+ */
30
+ presentation: AuthorityPresentation;
31
+ /**
32
+ * When the presentation stops being accepted, so a caller can avoid presenting a stale one.
33
+ */
34
+ expiresAt?: string;
35
+ ext?: Ext;
36
+ }
37
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
38
+ export type { AuthorityPresentation, Ext };
39
+ /** Trust Task type URI. */
40
+ export declare const TYPE_URI: "https://trusttasks.org/spec/rooms/keys/present/0.2";
41
+ /** Stable alias for this specification's request payload shape. */
42
+ export type Payload = RoomsKeysPresentPayload;
43
+ /** Trust Task response type URI (request type URI + "#response"). */
44
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/rooms/keys/present/0.2#response";
45
+ /** Stable alias for this specification's success-response payload shape. */
46
+ export type Response = RoomsKeysPresentResponsePayload;
47
+ /**
48
+ * This specification's payload schema, as a value.
49
+ *
50
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
51
+ * rather than only as a `.json` file because TypeScript types are erased
52
+ * at runtime: without a schema a consumer has nothing to validate, and
53
+ * every REQUIRED payload member is optional in practice. Cross-file
54
+ * `$ref`s are already inlined, so it needs no resolver.
55
+ */
56
+ export declare const PAYLOAD_SCHEMA: {
57
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
58
+ readonly $id: "https://trusttasks.org/spec/rooms/keys/present/0.2";
59
+ readonly title: "Rooms Keys Present — payload";
60
+ readonly description: "An agent asks the party holding its principal's room credentials to produce a presentation for one room operation. The credentials never cross to the agent; only the presentation does, and it is bound to the operation it was asked for and to the agent that asked.";
61
+ readonly type: "object";
62
+ readonly additionalProperties: false;
63
+ readonly required: readonly ["roomId", "action"];
64
+ readonly properties: {
65
+ readonly roomId: {
66
+ readonly type: "string";
67
+ readonly description: "The room to present for.";
68
+ };
69
+ readonly action: {
70
+ readonly type: "string";
71
+ readonly enum: readonly ["read", "write", "curate", "admin"];
72
+ readonly description: "The action the presentation must confer. Named here so the produced presentation can be scoped to it: a presentation minted for `read` should not be reusable for `write`, and a holder that mints one covering everything has handed the agent its own standing.";
73
+ };
74
+ readonly ext: {
75
+ readonly $ref: "#/$defs/Ext";
76
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
77
+ };
78
+ };
79
+ readonly $defs: {
80
+ readonly Response: {
81
+ readonly $anchor: "response";
82
+ readonly title: "Rooms Keys Present — response payload";
83
+ readonly description: "Success response to rooms/keys/present. Type https://trusttasks.org/spec/rooms/keys/present/0.2#response.";
84
+ readonly type: "object";
85
+ readonly additionalProperties: false;
86
+ readonly required: readonly ["presentation"];
87
+ readonly properties: {
88
+ readonly presentation: {
89
+ readonly $ref: "#/$defs/AuthorityPresentation";
90
+ readonly description: "The presentation to send to the host. Its authority chain grants to the CALLER, who is the only party that can present it — see the task's Security & Privacy section.";
91
+ };
92
+ readonly expiresAt: {
93
+ readonly type: "string";
94
+ readonly format: "date-time";
95
+ readonly description: "When the presentation stops being accepted, so a caller can avoid presenting a stale one.";
96
+ };
97
+ readonly ext: {
98
+ readonly $ref: "#/$defs/Ext";
99
+ };
100
+ };
101
+ };
102
+ readonly Ext: {
103
+ readonly title: "Ext";
104
+ 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.";
105
+ readonly type: "object";
106
+ readonly minProperties: 1;
107
+ readonly additionalProperties: true;
108
+ readonly propertyNames: {
109
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
110
+ };
111
+ };
112
+ readonly AuthorityPresentation: {
113
+ readonly title: "AuthorityPresentation";
114
+ readonly type: "object";
115
+ readonly additionalProperties: false;
116
+ readonly required: readonly ["membership", "authority"];
117
+ 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.";
118
+ readonly properties: {
119
+ readonly membership: {
120
+ readonly type: "string";
121
+ readonly description: "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile.";
122
+ };
123
+ readonly authority: {
124
+ readonly type: "array";
125
+ readonly minItems: 1;
126
+ readonly maxItems: 8;
127
+ readonly items: {
128
+ readonly type: "string";
129
+ };
130
+ readonly description: "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent.";
131
+ };
132
+ readonly subjectBinding: {
133
+ readonly type: "string";
134
+ readonly description: "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this.";
135
+ };
136
+ };
137
+ };
138
+ };
139
+ };
140
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
141
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
142
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
143
+ readonly $ref: "#/$defs/Response";
144
+ readonly $defs: {
145
+ readonly Response: {
146
+ readonly $anchor: "response";
147
+ readonly title: "Rooms Keys Present — response payload";
148
+ readonly description: "Success response to rooms/keys/present. Type https://trusttasks.org/spec/rooms/keys/present/0.2#response.";
149
+ readonly type: "object";
150
+ readonly additionalProperties: false;
151
+ readonly required: readonly ["presentation"];
152
+ readonly properties: {
153
+ readonly presentation: {
154
+ readonly $ref: "#/$defs/AuthorityPresentation";
155
+ readonly description: "The presentation to send to the host. Its authority chain grants to the CALLER, who is the only party that can present it — see the task's Security & Privacy section.";
156
+ };
157
+ readonly expiresAt: {
158
+ readonly type: "string";
159
+ readonly format: "date-time";
160
+ readonly description: "When the presentation stops being accepted, so a caller can avoid presenting a stale one.";
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
+ readonly AuthorityPresentation: {
178
+ readonly title: "AuthorityPresentation";
179
+ readonly type: "object";
180
+ readonly additionalProperties: false;
181
+ readonly required: readonly ["membership", "authority"];
182
+ 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.";
183
+ readonly properties: {
184
+ readonly membership: {
185
+ readonly type: "string";
186
+ readonly description: "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile.";
187
+ };
188
+ readonly authority: {
189
+ readonly type: "array";
190
+ readonly minItems: 1;
191
+ readonly maxItems: 8;
192
+ readonly items: {
193
+ readonly type: "string";
194
+ };
195
+ readonly description: "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent.";
196
+ };
197
+ readonly subjectBinding: {
198
+ readonly type: "string";
199
+ readonly description: "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this.";
200
+ };
201
+ };
202
+ };
203
+ };
204
+ };
205
+ /**
206
+ * SPEC.md §7.2 policy for the request variant, from this specification's
207
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
208
+ * per-specification and cannot be derived from the document alone, and
209
+ * item 2 needs the schema this carries.
210
+ */
211
+ export declare const SPEC: {
212
+ readonly typeUri: "https://trusttasks.org/spec/rooms/keys/present/0.2";
213
+ readonly isBearer: false;
214
+ readonly isProofRequired: true;
215
+ readonly isRecipientRequired: true;
216
+ readonly isIssuedAtRequired: true;
217
+ readonly payloadSchema: {
218
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
219
+ readonly $id: "https://trusttasks.org/spec/rooms/keys/present/0.2";
220
+ readonly title: "Rooms Keys Present — payload";
221
+ readonly description: "An agent asks the party holding its principal's room credentials to produce a presentation for one room operation. The credentials never cross to the agent; only the presentation does, and it is bound to the operation it was asked for and to the agent that asked.";
222
+ readonly type: "object";
223
+ readonly additionalProperties: false;
224
+ readonly required: readonly ["roomId", "action"];
225
+ readonly properties: {
226
+ readonly roomId: {
227
+ readonly type: "string";
228
+ readonly description: "The room to present for.";
229
+ };
230
+ readonly action: {
231
+ readonly type: "string";
232
+ readonly enum: readonly ["read", "write", "curate", "admin"];
233
+ readonly description: "The action the presentation must confer. Named here so the produced presentation can be scoped to it: a presentation minted for `read` should not be reusable for `write`, and a holder that mints one covering everything has handed the agent its own standing.";
234
+ };
235
+ readonly ext: {
236
+ readonly $ref: "#/$defs/Ext";
237
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
238
+ };
239
+ };
240
+ readonly $defs: {
241
+ readonly Response: {
242
+ readonly $anchor: "response";
243
+ readonly title: "Rooms Keys Present — response payload";
244
+ readonly description: "Success response to rooms/keys/present. Type https://trusttasks.org/spec/rooms/keys/present/0.2#response.";
245
+ readonly type: "object";
246
+ readonly additionalProperties: false;
247
+ readonly required: readonly ["presentation"];
248
+ readonly properties: {
249
+ readonly presentation: {
250
+ readonly $ref: "#/$defs/AuthorityPresentation";
251
+ readonly description: "The presentation to send to the host. Its authority chain grants to the CALLER, who is the only party that can present it — see the task's Security & Privacy section.";
252
+ };
253
+ readonly expiresAt: {
254
+ readonly type: "string";
255
+ readonly format: "date-time";
256
+ readonly description: "When the presentation stops being accepted, so a caller can avoid presenting a stale one.";
257
+ };
258
+ readonly ext: {
259
+ readonly $ref: "#/$defs/Ext";
260
+ };
261
+ };
262
+ };
263
+ readonly Ext: {
264
+ readonly title: "Ext";
265
+ 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.";
266
+ readonly type: "object";
267
+ readonly minProperties: 1;
268
+ readonly additionalProperties: true;
269
+ readonly propertyNames: {
270
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
271
+ };
272
+ };
273
+ readonly AuthorityPresentation: {
274
+ readonly title: "AuthorityPresentation";
275
+ readonly type: "object";
276
+ readonly additionalProperties: false;
277
+ readonly required: readonly ["membership", "authority"];
278
+ 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.";
279
+ readonly properties: {
280
+ readonly membership: {
281
+ readonly type: "string";
282
+ readonly description: "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile.";
283
+ };
284
+ readonly authority: {
285
+ readonly type: "array";
286
+ readonly minItems: 1;
287
+ readonly maxItems: 8;
288
+ readonly items: {
289
+ readonly type: "string";
290
+ };
291
+ readonly description: "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent.";
292
+ };
293
+ readonly subjectBinding: {
294
+ readonly type: "string";
295
+ readonly description: "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this.";
296
+ };
297
+ };
298
+ };
299
+ };
300
+ };
301
+ };
302
+ /**
303
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
304
+ * tracks the *issuer* party's requirement because a response swaps the
305
+ * parties (§7.3 item 5).
306
+ */
307
+ export declare const RESPONSE_SPEC: {
308
+ readonly typeUri: "https://trusttasks.org/spec/rooms/keys/present/0.2#response";
309
+ readonly isBearer: false;
310
+ readonly isProofRequired: true;
311
+ readonly isRecipientRequired: true;
312
+ readonly isIssuedAtRequired: true;
313
+ readonly payloadSchema: {
314
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
315
+ readonly $ref: "#/$defs/Response";
316
+ readonly $defs: {
317
+ readonly Response: {
318
+ readonly $anchor: "response";
319
+ readonly title: "Rooms Keys Present — response payload";
320
+ readonly description: "Success response to rooms/keys/present. Type https://trusttasks.org/spec/rooms/keys/present/0.2#response.";
321
+ readonly type: "object";
322
+ readonly additionalProperties: false;
323
+ readonly required: readonly ["presentation"];
324
+ readonly properties: {
325
+ readonly presentation: {
326
+ readonly $ref: "#/$defs/AuthorityPresentation";
327
+ readonly description: "The presentation to send to the host. Its authority chain grants to the CALLER, who is the only party that can present it — see the task's Security & Privacy section.";
328
+ };
329
+ readonly expiresAt: {
330
+ readonly type: "string";
331
+ readonly format: "date-time";
332
+ readonly description: "When the presentation stops being accepted, so a caller can avoid presenting a stale one.";
333
+ };
334
+ readonly ext: {
335
+ readonly $ref: "#/$defs/Ext";
336
+ };
337
+ };
338
+ };
339
+ readonly Ext: {
340
+ readonly title: "Ext";
341
+ readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
342
+ readonly type: "object";
343
+ readonly minProperties: 1;
344
+ readonly additionalProperties: true;
345
+ readonly propertyNames: {
346
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
347
+ };
348
+ };
349
+ readonly AuthorityPresentation: {
350
+ readonly title: "AuthorityPresentation";
351
+ readonly type: "object";
352
+ readonly additionalProperties: false;
353
+ readonly required: readonly ["membership", "authority"];
354
+ 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.";
355
+ readonly properties: {
356
+ readonly membership: {
357
+ readonly type: "string";
358
+ readonly description: "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile.";
359
+ };
360
+ readonly authority: {
361
+ readonly type: "array";
362
+ readonly minItems: 1;
363
+ readonly maxItems: 8;
364
+ readonly items: {
365
+ readonly type: "string";
366
+ };
367
+ readonly description: "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent.";
368
+ };
369
+ readonly subjectBinding: {
370
+ readonly type: "string";
371
+ readonly description: "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this.";
372
+ };
373
+ };
374
+ };
375
+ };
376
+ };
377
+ };
378
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/rooms/keys/present/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AAGpF;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC9C;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,YAAY,EAAE,qBAAqB,CAAC;IACpC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,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