@openvtc/trust-tasks 0.16.8 → 0.16.10

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 (206) hide show
  1. package/CHANGELOG.md +285 -0
  2. package/dist/_shared/components.d.ts +206 -7
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/device/list/0.1/payload.d.ts +4 -4
  5. package/dist/device/list/0.1/payload.d.ts.map +1 -1
  6. package/dist/device/list/0.1/payload.js +6 -2
  7. package/dist/device/list/0.1/payload.js.map +1 -1
  8. package/dist/device/list/0.2/payload.d.ts +4 -4
  9. package/dist/device/list/0.2/payload.d.ts.map +1 -1
  10. package/dist/device/list/0.2/payload.js +6 -2
  11. package/dist/device/list/0.2/payload.js.map +1 -1
  12. package/dist/device/register/0.1/payload.d.ts +4 -4
  13. package/dist/device/register/0.1/payload.d.ts.map +1 -1
  14. package/dist/device/register/0.1/payload.js +6 -2
  15. package/dist/device/register/0.1/payload.js.map +1 -1
  16. package/dist/device/register/0.2/payload.d.ts +4 -4
  17. package/dist/device/register/0.2/payload.d.ts.map +1 -1
  18. package/dist/device/register/0.2/payload.js +6 -2
  19. package/dist/device/register/0.2/payload.js.map +1 -1
  20. package/dist/index.d.ts +31 -0
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +31 -0
  23. package/dist/index.js.map +1 -1
  24. package/dist/persona/_shared/0.1/persona-record.d.ts +22 -0
  25. package/dist/persona/_shared/0.1/persona-record.d.ts.map +1 -0
  26. package/dist/persona/_shared/0.1/persona-record.js +6 -0
  27. package/dist/persona/_shared/0.1/persona-record.js.map +1 -0
  28. package/dist/persona/attribute/delete/1.0/payload.d.ts +351 -0
  29. package/dist/persona/attribute/delete/1.0/payload.d.ts.map +1 -0
  30. package/dist/persona/attribute/delete/1.0/payload.js +188 -0
  31. package/dist/persona/attribute/delete/1.0/payload.js.map +1 -0
  32. package/dist/persona/attribute/list/1.0/payload.d.ts +895 -0
  33. package/dist/persona/attribute/list/1.0/payload.d.ts.map +1 -0
  34. package/dist/persona/attribute/list/1.0/payload.js +532 -0
  35. package/dist/persona/attribute/list/1.0/payload.js.map +1 -0
  36. package/dist/persona/attribute/put/1.0/payload.d.ts +829 -0
  37. package/dist/persona/attribute/put/1.0/payload.d.ts.map +1 -0
  38. package/dist/persona/attribute/put/1.0/payload.js +487 -0
  39. package/dist/persona/attribute/put/1.0/payload.js.map +1 -0
  40. package/dist/persona/binding/get/1.0/payload.d.ts +382 -0
  41. package/dist/persona/binding/get/1.0/payload.d.ts.map +1 -0
  42. package/dist/persona/binding/get/1.0/payload.js +206 -0
  43. package/dist/persona/binding/get/1.0/payload.js.map +1 -0
  44. package/dist/persona/binding/list/1.0/payload.d.ts +387 -0
  45. package/dist/persona/binding/list/1.0/payload.d.ts.map +1 -0
  46. package/dist/persona/binding/list/1.0/payload.js +210 -0
  47. package/dist/persona/binding/list/1.0/payload.js.map +1 -0
  48. package/dist/persona/binding/set/1.0/payload.d.ts +545 -0
  49. package/dist/persona/binding/set/1.0/payload.d.ts.map +1 -0
  50. package/dist/persona/binding/set/1.0/payload.js +302 -0
  51. package/dist/persona/binding/set/1.0/payload.js.map +1 -0
  52. package/dist/persona/contact/delete/1.0/payload.d.ts +313 -0
  53. package/dist/persona/contact/delete/1.0/payload.d.ts.map +1 -0
  54. package/dist/persona/contact/delete/1.0/payload.js +174 -0
  55. package/dist/persona/contact/delete/1.0/payload.js.map +1 -0
  56. package/dist/persona/contact/get/1.0/payload.d.ts +1027 -0
  57. package/dist/persona/contact/get/1.0/payload.d.ts.map +1 -0
  58. package/dist/persona/contact/get/1.0/payload.js +606 -0
  59. package/dist/persona/contact/get/1.0/payload.js.map +1 -0
  60. package/dist/persona/contact/list/1.0/payload.d.ts +490 -0
  61. package/dist/persona/contact/list/1.0/payload.d.ts.map +1 -0
  62. package/dist/persona/contact/list/1.0/payload.js +262 -0
  63. package/dist/persona/contact/list/1.0/payload.js.map +1 -0
  64. package/dist/persona/contact/put/1.0/payload.d.ts +885 -0
  65. package/dist/persona/contact/put/1.0/payload.d.ts.map +1 -0
  66. package/dist/persona/contact/put/1.0/payload.js +518 -0
  67. package/dist/persona/contact/put/1.0/payload.js.map +1 -0
  68. package/dist/persona/correlation/analyze/1.0/payload.d.ts +648 -0
  69. package/dist/persona/correlation/analyze/1.0/payload.d.ts.map +1 -0
  70. package/dist/persona/correlation/analyze/1.0/payload.js +338 -0
  71. package/dist/persona/correlation/analyze/1.0/payload.js.map +1 -0
  72. package/dist/persona/disclosure/history/1.0/payload.d.ts +639 -0
  73. package/dist/persona/disclosure/history/1.0/payload.d.ts.map +1 -0
  74. package/dist/persona/disclosure/history/1.0/payload.js +339 -0
  75. package/dist/persona/disclosure/history/1.0/payload.js.map +1 -0
  76. package/dist/persona/disclosure/present/1.0/payload.d.ts +400 -0
  77. package/dist/persona/disclosure/present/1.0/payload.d.ts.map +1 -0
  78. package/dist/persona/disclosure/present/1.0/payload.js +211 -0
  79. package/dist/persona/disclosure/present/1.0/payload.js.map +1 -0
  80. package/dist/persona/disclosure/preview/1.0/payload.d.ts +858 -0
  81. package/dist/persona/disclosure/preview/1.0/payload.d.ts.map +1 -0
  82. package/dist/persona/disclosure/preview/1.0/payload.js +480 -0
  83. package/dist/persona/disclosure/preview/1.0/payload.js.map +1 -0
  84. package/dist/persona/local/binding/set/1.0/payload.d.ts +394 -0
  85. package/dist/persona/local/binding/set/1.0/payload.d.ts.map +1 -0
  86. package/dist/persona/local/binding/set/1.0/payload.js +226 -0
  87. package/dist/persona/local/binding/set/1.0/payload.js.map +1 -0
  88. package/dist/persona/local/profile/delete/1.0/payload.d.ts +311 -0
  89. package/dist/persona/local/profile/delete/1.0/payload.d.ts.map +1 -0
  90. package/dist/persona/local/profile/delete/1.0/payload.js +173 -0
  91. package/dist/persona/local/profile/delete/1.0/payload.js.map +1 -0
  92. package/dist/persona/local/profile/get/1.0/payload.d.ts +368 -0
  93. package/dist/persona/local/profile/get/1.0/payload.d.ts.map +1 -0
  94. package/dist/persona/local/profile/get/1.0/payload.js +210 -0
  95. package/dist/persona/local/profile/get/1.0/payload.js.map +1 -0
  96. package/dist/persona/local/profile/list/1.0/payload.d.ts +387 -0
  97. package/dist/persona/local/profile/list/1.0/payload.d.ts.map +1 -0
  98. package/dist/persona/local/profile/list/1.0/payload.js +214 -0
  99. package/dist/persona/local/profile/list/1.0/payload.js.map +1 -0
  100. package/dist/persona/local/profile/put/1.0/payload.d.ts +545 -0
  101. package/dist/persona/local/profile/put/1.0/payload.d.ts.map +1 -0
  102. package/dist/persona/local/profile/put/1.0/payload.js +315 -0
  103. package/dist/persona/local/profile/put/1.0/payload.js.map +1 -0
  104. package/dist/persona/profile/delete/1.0/payload.d.ts +350 -0
  105. package/dist/persona/profile/delete/1.0/payload.d.ts.map +1 -0
  106. package/dist/persona/profile/delete/1.0/payload.js +189 -0
  107. package/dist/persona/profile/delete/1.0/payload.js.map +1 -0
  108. package/dist/persona/profile/get/1.0/payload.d.ts +1307 -0
  109. package/dist/persona/profile/get/1.0/payload.d.ts.map +1 -0
  110. package/dist/persona/profile/get/1.0/payload.js +804 -0
  111. package/dist/persona/profile/get/1.0/payload.js.map +1 -0
  112. package/dist/persona/profile/list/1.0/payload.d.ts +1120 -0
  113. package/dist/persona/profile/list/1.0/payload.d.ts.map +1 -0
  114. package/dist/persona/profile/list/1.0/payload.js +680 -0
  115. package/dist/persona/profile/list/1.0/payload.js.map +1 -0
  116. package/dist/persona/profile/put/1.0/payload.d.ts +1115 -0
  117. package/dist/persona/profile/put/1.0/payload.d.ts.map +1 -0
  118. package/dist/persona/profile/put/1.0/payload.js +675 -0
  119. package/dist/persona/profile/put/1.0/payload.js.map +1 -0
  120. package/dist/persona/renderers/list/1.0/payload.d.ts +362 -0
  121. package/dist/persona/renderers/list/1.0/payload.d.ts.map +1 -0
  122. package/dist/persona/renderers/list/1.0/payload.js +197 -0
  123. package/dist/persona/renderers/list/1.0/payload.js.map +1 -0
  124. package/dist/rooms/keys/commit/0.1/payload.d.ts +266 -0
  125. package/dist/rooms/keys/commit/0.1/payload.d.ts.map +1 -0
  126. package/dist/rooms/keys/commit/0.1/payload.js +146 -0
  127. package/dist/rooms/keys/commit/0.1/payload.js.map +1 -0
  128. package/dist/rooms/keys/key-package/0.1/payload.d.ts +272 -0
  129. package/dist/rooms/keys/key-package/0.1/payload.d.ts.map +1 -0
  130. package/dist/rooms/keys/key-package/0.1/payload.js +147 -0
  131. package/dist/rooms/keys/key-package/0.1/payload.js.map +1 -0
  132. package/dist/rooms/keys/welcome/0.1/payload.d.ts +276 -0
  133. package/dist/rooms/keys/welcome/0.1/payload.d.ts.map +1 -0
  134. package/dist/rooms/keys/welcome/0.1/payload.js +148 -0
  135. package/dist/rooms/keys/welcome/0.1/payload.js.map +1 -0
  136. package/dist/rooms/owner/claim/0.1/payload.d.ts +391 -0
  137. package/dist/rooms/owner/claim/0.1/payload.d.ts.map +1 -0
  138. package/dist/rooms/owner/claim/0.1/payload.js +214 -0
  139. package/dist/rooms/owner/claim/0.1/payload.js.map +1 -0
  140. package/dist/rooms/owner/transfer/0.1/payload.d.ts +391 -0
  141. package/dist/rooms/owner/transfer/0.1/payload.d.ts.map +1 -0
  142. package/dist/rooms/owner/transfer/0.1/payload.js +214 -0
  143. package/dist/rooms/owner/transfer/0.1/payload.js.map +1 -0
  144. package/dist/rooms/records/curate/0.1/payload.d.ts +500 -0
  145. package/dist/rooms/records/curate/0.1/payload.d.ts.map +1 -0
  146. package/dist/rooms/records/curate/0.1/payload.js +277 -0
  147. package/dist/rooms/records/curate/0.1/payload.js.map +1 -0
  148. package/dist/vta/_shared/0.1/app-state-record.d.ts +1 -1
  149. package/dist/vta/_shared/0.1/app-state-record.d.ts.map +1 -1
  150. package/dist/vta/app-state/delete/1.0/payload.d.ts +1 -1
  151. package/dist/vta/app-state/delete/1.0/payload.d.ts.map +1 -1
  152. package/dist/vta/app-state/get/1.0/payload.d.ts +1 -1
  153. package/dist/vta/app-state/get/1.0/payload.d.ts.map +1 -1
  154. package/dist/vta/app-state/get-many/1.0/payload.d.ts +1 -1
  155. package/dist/vta/app-state/get-many/1.0/payload.d.ts.map +1 -1
  156. package/dist/vta/app-state/list/1.0/payload.d.ts +1 -1
  157. package/dist/vta/app-state/list/1.0/payload.d.ts.map +1 -1
  158. package/dist/vta/app-state/put/1.0/payload.d.ts +1 -1
  159. package/dist/vta/app-state/put/1.0/payload.d.ts.map +1 -1
  160. package/dist/vta/app-state/put-many/1.0/payload.d.ts +1 -1
  161. package/dist/vta/app-state/put-many/1.0/payload.d.ts.map +1 -1
  162. package/package.json +1 -1
  163. package/src/_shared/components.ts +217 -7
  164. package/src/device/list/0.1/payload.ts +6 -2
  165. package/src/device/list/0.2/payload.ts +6 -2
  166. package/src/device/register/0.1/payload.ts +6 -2
  167. package/src/device/register/0.2/payload.ts +6 -2
  168. package/src/index.ts +31 -0
  169. package/src/persona/_shared/0.1/persona-record.ts +23 -0
  170. package/src/persona/attribute/delete/1.0/payload.ts +238 -0
  171. package/src/persona/attribute/list/1.0/payload.ts +590 -0
  172. package/src/persona/attribute/put/1.0/payload.ts +559 -0
  173. package/src/persona/binding/get/1.0/payload.ts +257 -0
  174. package/src/persona/binding/list/1.0/payload.ts +260 -0
  175. package/src/persona/binding/set/1.0/payload.ts +370 -0
  176. package/src/persona/contact/delete/1.0/payload.ts +216 -0
  177. package/src/persona/contact/get/1.0/payload.ts +662 -0
  178. package/src/persona/contact/list/1.0/payload.ts +323 -0
  179. package/src/persona/contact/put/1.0/payload.ts +580 -0
  180. package/src/persona/correlation/analyze/1.0/payload.ts +466 -0
  181. package/src/persona/disclosure/history/1.0/payload.ts +415 -0
  182. package/src/persona/disclosure/present/1.0/payload.ts +274 -0
  183. package/src/persona/disclosure/preview/1.0/payload.ts +597 -0
  184. package/src/persona/local/binding/set/1.0/payload.ts +267 -0
  185. package/src/persona/local/profile/delete/1.0/payload.ts +215 -0
  186. package/src/persona/local/profile/get/1.0/payload.ts +251 -0
  187. package/src/persona/local/profile/list/1.0/payload.ts +260 -0
  188. package/src/persona/local/profile/put/1.0/payload.ts +373 -0
  189. package/src/persona/profile/delete/1.0/payload.ts +236 -0
  190. package/src/persona/profile/get/1.0/payload.ts +846 -0
  191. package/src/persona/profile/list/1.0/payload.ts +723 -0
  192. package/src/persona/profile/put/1.0/payload.ts +741 -0
  193. package/src/persona/renderers/list/1.0/payload.ts +248 -0
  194. package/src/rooms/keys/commit/0.1/payload.ts +195 -0
  195. package/src/rooms/keys/key-package/0.1/payload.ts +196 -0
  196. package/src/rooms/keys/welcome/0.1/payload.ts +201 -0
  197. package/src/rooms/owner/claim/0.1/payload.ts +268 -0
  198. package/src/rooms/owner/transfer/0.1/payload.ts +268 -0
  199. package/src/rooms/records/curate/0.1/payload.ts +357 -0
  200. package/src/vta/_shared/0.1/app-state-record.ts +1 -1
  201. package/src/vta/app-state/delete/1.0/payload.ts +1 -1
  202. package/src/vta/app-state/get/1.0/payload.ts +1 -1
  203. package/src/vta/app-state/get-many/1.0/payload.ts +1 -1
  204. package/src/vta/app-state/list/1.0/payload.ts +1 -1
  205. package/src/vta/app-state/put/1.0/payload.ts +1 -1
  206. package/src/vta/app-state/put-many/1.0/payload.ts +1 -1
@@ -0,0 +1,391 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/rooms/owner/claim/0.1/payload.schema.json
4
+ */
5
+ import type { AuthorityPresentation, Ext } from "../../../../_shared/components.js";
6
+ /**
7
+ * A nominated successor claims ownership of a room whose owner has stopped renewing it. A claim is an act, never an automatic promotion: an ownership change should be something somebody caused, not something that happened.
8
+ */
9
+ export interface RoomsOwnerClaimPayload {
10
+ /**
11
+ * The room being claimed.
12
+ */
13
+ roomId: string;
14
+ /**
15
+ * The succession credential the room issued to this claimant, serialized per the governing profile. Issued in advance by the owner themselves — a host verifies a decision the previous owner already made, and never makes one of its own about who should own a room.
16
+ */
17
+ nomination: string;
18
+ /**
19
+ * The claimant's own membership and authority in the room. A host cannot see the MLS group, so this credential — the room's own statement that this party is a member — is the only membership it can check, and it is the same one every other room task presents.
20
+ */
21
+ presentation: AuthorityPresentation;
22
+ /**
23
+ * Why, for the room's audit trail. A claim is a takeover; it should say what prompted it.
24
+ */
25
+ reason?: string;
26
+ /**
27
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
28
+ */
29
+ ext?: Ext;
30
+ }
31
+ /**
32
+ * Success response to rooms/owner/claim. Type https://trusttasks.org/spec/rooms/owner/claim/0.1#response.
33
+ */
34
+ export interface RoomsOwnerClaimResponsePayload {
35
+ roomId: string;
36
+ /**
37
+ * The owner after the claim — the claimant.
38
+ */
39
+ ownerDid: string;
40
+ ext?: Ext;
41
+ }
42
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
43
+ export type { AuthorityPresentation, Ext };
44
+ /** Trust Task type URI. */
45
+ export declare const TYPE_URI: "https://trusttasks.org/spec/rooms/owner/claim/0.1";
46
+ /** Stable alias for this specification's request payload shape. */
47
+ export type Payload = RoomsOwnerClaimPayload;
48
+ /** Trust Task response type URI (request type URI + "#response"). */
49
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/rooms/owner/claim/0.1#response";
50
+ /** Stable alias for this specification's success-response payload shape. */
51
+ export type Response = RoomsOwnerClaimResponsePayload;
52
+ /**
53
+ * This specification's payload schema, as a value.
54
+ *
55
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
56
+ * rather than only as a `.json` file because TypeScript types are erased
57
+ * at runtime: without a schema a consumer has nothing to validate, and
58
+ * every REQUIRED payload member is optional in practice. Cross-file
59
+ * `$ref`s are already inlined, so it needs no resolver.
60
+ */
61
+ export declare const PAYLOAD_SCHEMA: {
62
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
63
+ readonly $id: "https://trusttasks.org/spec/rooms/owner/claim/0.1";
64
+ readonly title: "Rooms Owner Claim — payload";
65
+ readonly description: "A nominated successor claims ownership of a room whose owner has stopped renewing it. A claim is an act, never an automatic promotion: an ownership change should be something somebody caused, not something that happened.";
66
+ readonly type: "object";
67
+ readonly additionalProperties: false;
68
+ readonly required: readonly ["roomId", "nomination", "presentation"];
69
+ readonly properties: {
70
+ readonly roomId: {
71
+ readonly type: "string";
72
+ readonly description: "The room being claimed.";
73
+ };
74
+ readonly nomination: {
75
+ readonly type: "string";
76
+ readonly description: "The succession credential the room issued to this claimant, serialized per the governing profile. Issued in advance by the owner themselves — a host verifies a decision the previous owner already made, and never makes one of its own about who should own a room.";
77
+ };
78
+ readonly presentation: {
79
+ readonly $ref: "#/$defs/AuthorityPresentation";
80
+ readonly description: "The claimant's own membership and authority in the room. A host cannot see the MLS group, so this credential — the room's own statement that this party is a member — is the only membership it can check, and it is the same one every other room task presents.";
81
+ };
82
+ readonly reason: {
83
+ readonly type: "string";
84
+ readonly maxLength: 512;
85
+ readonly description: "Why, for the room's audit trail. A claim is a takeover; it should say what prompted it.";
86
+ };
87
+ readonly ext: {
88
+ readonly $ref: "#/$defs/Ext";
89
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
90
+ };
91
+ };
92
+ readonly $defs: {
93
+ readonly Response: {
94
+ readonly $anchor: "response";
95
+ readonly title: "Rooms Owner Claim — response payload";
96
+ readonly description: "Success response to rooms/owner/claim. Type https://trusttasks.org/spec/rooms/owner/claim/0.1#response.";
97
+ readonly type: "object";
98
+ readonly additionalProperties: false;
99
+ readonly required: readonly ["roomId", "ownerDid"];
100
+ readonly properties: {
101
+ readonly roomId: {
102
+ readonly type: "string";
103
+ };
104
+ readonly ownerDid: {
105
+ readonly type: "string";
106
+ readonly description: "The owner after the claim — the claimant.";
107
+ };
108
+ readonly ext: {
109
+ readonly $ref: "#/$defs/Ext";
110
+ };
111
+ };
112
+ };
113
+ readonly Ext: {
114
+ readonly title: "Ext";
115
+ 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.";
116
+ readonly type: "object";
117
+ readonly minProperties: 1;
118
+ readonly additionalProperties: true;
119
+ readonly propertyNames: {
120
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
121
+ };
122
+ };
123
+ readonly AuthorityPresentation: {
124
+ readonly title: "AuthorityPresentation";
125
+ readonly type: "object";
126
+ readonly additionalProperties: false;
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.";
129
+ readonly properties: {
130
+ readonly membership: {
131
+ readonly type: "string";
132
+ 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.";
133
+ };
134
+ readonly authority: {
135
+ readonly type: "array";
136
+ readonly minItems: 1;
137
+ readonly maxItems: 8;
138
+ readonly items: {
139
+ readonly type: "string";
140
+ };
141
+ 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.";
142
+ };
143
+ readonly subjectBinding: {
144
+ readonly type: "string";
145
+ 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.";
146
+ };
147
+ };
148
+ };
149
+ };
150
+ };
151
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
152
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
153
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
154
+ readonly $ref: "#/$defs/Response";
155
+ readonly $defs: {
156
+ readonly Response: {
157
+ readonly $anchor: "response";
158
+ readonly title: "Rooms Owner Claim — response payload";
159
+ readonly description: "Success response to rooms/owner/claim. Type https://trusttasks.org/spec/rooms/owner/claim/0.1#response.";
160
+ readonly type: "object";
161
+ readonly additionalProperties: false;
162
+ readonly required: readonly ["roomId", "ownerDid"];
163
+ readonly properties: {
164
+ readonly roomId: {
165
+ readonly type: "string";
166
+ };
167
+ readonly ownerDid: {
168
+ readonly type: "string";
169
+ readonly description: "The owner after the claim — the claimant.";
170
+ };
171
+ readonly ext: {
172
+ readonly $ref: "#/$defs/Ext";
173
+ };
174
+ };
175
+ };
176
+ readonly Ext: {
177
+ readonly title: "Ext";
178
+ 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.";
179
+ readonly type: "object";
180
+ readonly minProperties: 1;
181
+ readonly additionalProperties: true;
182
+ readonly propertyNames: {
183
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
184
+ };
185
+ };
186
+ readonly AuthorityPresentation: {
187
+ readonly title: "AuthorityPresentation";
188
+ readonly type: "object";
189
+ readonly additionalProperties: false;
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.";
192
+ readonly properties: {
193
+ readonly membership: {
194
+ readonly type: "string";
195
+ 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.";
196
+ };
197
+ readonly authority: {
198
+ readonly type: "array";
199
+ readonly minItems: 1;
200
+ readonly maxItems: 8;
201
+ readonly items: {
202
+ readonly type: "string";
203
+ };
204
+ 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.";
205
+ };
206
+ readonly subjectBinding: {
207
+ readonly type: "string";
208
+ 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.";
209
+ };
210
+ };
211
+ };
212
+ };
213
+ };
214
+ /**
215
+ * SPEC.md §7.2 policy for the request variant, from this specification's
216
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
217
+ * per-specification and cannot be derived from the document alone, and
218
+ * item 2 needs the schema this carries.
219
+ */
220
+ export declare const SPEC: {
221
+ readonly typeUri: "https://trusttasks.org/spec/rooms/owner/claim/0.1";
222
+ readonly isBearer: false;
223
+ readonly isProofRequired: true;
224
+ readonly isRecipientRequired: true;
225
+ readonly isIssuedAtRequired: true;
226
+ readonly payloadSchema: {
227
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
228
+ readonly $id: "https://trusttasks.org/spec/rooms/owner/claim/0.1";
229
+ readonly title: "Rooms Owner Claim — payload";
230
+ readonly description: "A nominated successor claims ownership of a room whose owner has stopped renewing it. A claim is an act, never an automatic promotion: an ownership change should be something somebody caused, not something that happened.";
231
+ readonly type: "object";
232
+ readonly additionalProperties: false;
233
+ readonly required: readonly ["roomId", "nomination", "presentation"];
234
+ readonly properties: {
235
+ readonly roomId: {
236
+ readonly type: "string";
237
+ readonly description: "The room being claimed.";
238
+ };
239
+ readonly nomination: {
240
+ readonly type: "string";
241
+ readonly description: "The succession credential the room issued to this claimant, serialized per the governing profile. Issued in advance by the owner themselves — a host verifies a decision the previous owner already made, and never makes one of its own about who should own a room.";
242
+ };
243
+ readonly presentation: {
244
+ readonly $ref: "#/$defs/AuthorityPresentation";
245
+ readonly description: "The claimant's own membership and authority in the room. A host cannot see the MLS group, so this credential — the room's own statement that this party is a member — is the only membership it can check, and it is the same one every other room task presents.";
246
+ };
247
+ readonly reason: {
248
+ readonly type: "string";
249
+ readonly maxLength: 512;
250
+ readonly description: "Why, for the room's audit trail. A claim is a takeover; it should say what prompted it.";
251
+ };
252
+ readonly ext: {
253
+ readonly $ref: "#/$defs/Ext";
254
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
255
+ };
256
+ };
257
+ readonly $defs: {
258
+ readonly Response: {
259
+ readonly $anchor: "response";
260
+ readonly title: "Rooms Owner Claim — response payload";
261
+ readonly description: "Success response to rooms/owner/claim. Type https://trusttasks.org/spec/rooms/owner/claim/0.1#response.";
262
+ readonly type: "object";
263
+ readonly additionalProperties: false;
264
+ readonly required: readonly ["roomId", "ownerDid"];
265
+ readonly properties: {
266
+ readonly roomId: {
267
+ readonly type: "string";
268
+ };
269
+ readonly ownerDid: {
270
+ readonly type: "string";
271
+ readonly description: "The owner after the claim — the claimant.";
272
+ };
273
+ readonly ext: {
274
+ readonly $ref: "#/$defs/Ext";
275
+ };
276
+ };
277
+ };
278
+ readonly Ext: {
279
+ readonly title: "Ext";
280
+ 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.";
281
+ readonly type: "object";
282
+ readonly minProperties: 1;
283
+ readonly additionalProperties: true;
284
+ readonly propertyNames: {
285
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
286
+ };
287
+ };
288
+ readonly AuthorityPresentation: {
289
+ readonly title: "AuthorityPresentation";
290
+ readonly type: "object";
291
+ readonly additionalProperties: false;
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.";
294
+ readonly properties: {
295
+ readonly membership: {
296
+ readonly type: "string";
297
+ 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.";
298
+ };
299
+ readonly authority: {
300
+ readonly type: "array";
301
+ readonly minItems: 1;
302
+ readonly maxItems: 8;
303
+ readonly items: {
304
+ readonly type: "string";
305
+ };
306
+ 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.";
307
+ };
308
+ readonly subjectBinding: {
309
+ readonly type: "string";
310
+ 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.";
311
+ };
312
+ };
313
+ };
314
+ };
315
+ };
316
+ };
317
+ /**
318
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
319
+ * tracks the *issuer* party's requirement because a response swaps the
320
+ * parties (§7.3 item 5).
321
+ */
322
+ export declare const RESPONSE_SPEC: {
323
+ readonly typeUri: "https://trusttasks.org/spec/rooms/owner/claim/0.1#response";
324
+ readonly isBearer: false;
325
+ readonly isProofRequired: true;
326
+ readonly isRecipientRequired: true;
327
+ readonly isIssuedAtRequired: true;
328
+ readonly payloadSchema: {
329
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
330
+ readonly $ref: "#/$defs/Response";
331
+ readonly $defs: {
332
+ readonly Response: {
333
+ readonly $anchor: "response";
334
+ readonly title: "Rooms Owner Claim — response payload";
335
+ readonly description: "Success response to rooms/owner/claim. Type https://trusttasks.org/spec/rooms/owner/claim/0.1#response.";
336
+ readonly type: "object";
337
+ readonly additionalProperties: false;
338
+ readonly required: readonly ["roomId", "ownerDid"];
339
+ readonly properties: {
340
+ readonly roomId: {
341
+ readonly type: "string";
342
+ };
343
+ readonly ownerDid: {
344
+ readonly type: "string";
345
+ readonly description: "The owner after the claim — the claimant.";
346
+ };
347
+ readonly ext: {
348
+ readonly $ref: "#/$defs/Ext";
349
+ };
350
+ };
351
+ };
352
+ readonly Ext: {
353
+ readonly title: "Ext";
354
+ 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.";
355
+ readonly type: "object";
356
+ readonly minProperties: 1;
357
+ readonly additionalProperties: true;
358
+ readonly propertyNames: {
359
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
360
+ };
361
+ };
362
+ readonly AuthorityPresentation: {
363
+ readonly title: "AuthorityPresentation";
364
+ readonly type: "object";
365
+ readonly additionalProperties: false;
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.";
368
+ readonly properties: {
369
+ readonly membership: {
370
+ readonly type: "string";
371
+ 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.";
372
+ };
373
+ readonly authority: {
374
+ readonly type: "array";
375
+ readonly minItems: 1;
376
+ readonly maxItems: 8;
377
+ readonly items: {
378
+ readonly type: "string";
379
+ };
380
+ 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.";
381
+ };
382
+ readonly subjectBinding: {
383
+ readonly type: "string";
384
+ 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.";
385
+ };
386
+ };
387
+ };
388
+ };
389
+ };
390
+ };
391
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/rooms/owner/claim/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AAGpF;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,EAAE,qBAAqB,CAAC;IACpC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,qBAAqB,EAAE,GAAG,EAAE,CAAC;AAE3C,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,mDAA4D,CAAC;AAErF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,sBAAsB,CAAC;AAE7C,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,4DAAqE,CAAC;AAEvG,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,8BAA8B,CAAC;AAEtD;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmGjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmE1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
@@ -0,0 +1,214 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/rooms/owner/claim/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/rooms/owner/claim/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/owner/claim/0.1#response";
9
+ /**
10
+ * This specification's payload schema, as a value.
11
+ *
12
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
13
+ * rather than only as a `.json` file because TypeScript types are erased
14
+ * at runtime: without a schema a consumer has nothing to validate, and
15
+ * every REQUIRED payload member is optional in practice. Cross-file
16
+ * `$ref`s are already inlined, so it needs no resolver.
17
+ */
18
+ export const PAYLOAD_SCHEMA = {
19
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
20
+ "$id": "https://trusttasks.org/spec/rooms/owner/claim/0.1",
21
+ "title": "Rooms Owner Claim — payload",
22
+ "description": "A nominated successor claims ownership of a room whose owner has stopped renewing it. A claim is an act, never an automatic promotion: an ownership change should be something somebody caused, not something that happened.",
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": [
26
+ "roomId",
27
+ "nomination",
28
+ "presentation"
29
+ ],
30
+ "properties": {
31
+ "roomId": {
32
+ "type": "string",
33
+ "description": "The room being claimed."
34
+ },
35
+ "nomination": {
36
+ "type": "string",
37
+ "description": "The succession credential the room issued to this claimant, serialized per the governing profile. Issued in advance by the owner themselves — a host verifies a decision the previous owner already made, and never makes one of its own about who should own a room."
38
+ },
39
+ "presentation": {
40
+ "$ref": "#/$defs/AuthorityPresentation",
41
+ "description": "The claimant's own membership and authority in the room. A host cannot see the MLS group, so this credential — the room's own statement that this party is a member — is the only membership it can check, and it is the same one every other room task presents."
42
+ },
43
+ "reason": {
44
+ "type": "string",
45
+ "maxLength": 512,
46
+ "description": "Why, for the room's audit trail. A claim is a takeover; it should say what prompted it."
47
+ },
48
+ "ext": {
49
+ "$ref": "#/$defs/Ext",
50
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
51
+ }
52
+ },
53
+ "$defs": {
54
+ "Response": {
55
+ "$anchor": "response",
56
+ "title": "Rooms Owner Claim — response payload",
57
+ "description": "Success response to rooms/owner/claim. Type https://trusttasks.org/spec/rooms/owner/claim/0.1#response.",
58
+ "type": "object",
59
+ "additionalProperties": false,
60
+ "required": [
61
+ "roomId",
62
+ "ownerDid"
63
+ ],
64
+ "properties": {
65
+ "roomId": {
66
+ "type": "string"
67
+ },
68
+ "ownerDid": {
69
+ "type": "string",
70
+ "description": "The owner after the claim — the claimant."
71
+ },
72
+ "ext": {
73
+ "$ref": "#/$defs/Ext"
74
+ }
75
+ }
76
+ },
77
+ "Ext": {
78
+ "title": "Ext",
79
+ "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.",
80
+ "type": "object",
81
+ "minProperties": 1,
82
+ "additionalProperties": true,
83
+ "propertyNames": {
84
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
85
+ }
86
+ },
87
+ "AuthorityPresentation": {
88
+ "title": "AuthorityPresentation",
89
+ "type": "object",
90
+ "additionalProperties": false,
91
+ "required": [
92
+ "membership",
93
+ "authority"
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.",
96
+ "properties": {
97
+ "membership": {
98
+ "type": "string",
99
+ "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."
100
+ },
101
+ "authority": {
102
+ "type": "array",
103
+ "minItems": 1,
104
+ "maxItems": 8,
105
+ "items": {
106
+ "type": "string"
107
+ },
108
+ "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."
109
+ },
110
+ "subjectBinding": {
111
+ "type": "string",
112
+ "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."
113
+ }
114
+ }
115
+ }
116
+ }
117
+ };
118
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
119
+ export const RESPONSE_PAYLOAD_SCHEMA = {
120
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
121
+ "$ref": "#/$defs/Response",
122
+ "$defs": {
123
+ "Response": {
124
+ "$anchor": "response",
125
+ "title": "Rooms Owner Claim — response payload",
126
+ "description": "Success response to rooms/owner/claim. Type https://trusttasks.org/spec/rooms/owner/claim/0.1#response.",
127
+ "type": "object",
128
+ "additionalProperties": false,
129
+ "required": [
130
+ "roomId",
131
+ "ownerDid"
132
+ ],
133
+ "properties": {
134
+ "roomId": {
135
+ "type": "string"
136
+ },
137
+ "ownerDid": {
138
+ "type": "string",
139
+ "description": "The owner after the claim — the claimant."
140
+ },
141
+ "ext": {
142
+ "$ref": "#/$defs/Ext"
143
+ }
144
+ }
145
+ },
146
+ "Ext": {
147
+ "title": "Ext",
148
+ "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.",
149
+ "type": "object",
150
+ "minProperties": 1,
151
+ "additionalProperties": true,
152
+ "propertyNames": {
153
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
154
+ }
155
+ },
156
+ "AuthorityPresentation": {
157
+ "title": "AuthorityPresentation",
158
+ "type": "object",
159
+ "additionalProperties": false,
160
+ "required": [
161
+ "membership",
162
+ "authority"
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.",
165
+ "properties": {
166
+ "membership": {
167
+ "type": "string",
168
+ "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."
169
+ },
170
+ "authority": {
171
+ "type": "array",
172
+ "minItems": 1,
173
+ "maxItems": 8,
174
+ "items": {
175
+ "type": "string"
176
+ },
177
+ "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."
178
+ },
179
+ "subjectBinding": {
180
+ "type": "string",
181
+ "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."
182
+ }
183
+ }
184
+ }
185
+ }
186
+ };
187
+ /**
188
+ * SPEC.md §7.2 policy for the request variant, from this specification's
189
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
190
+ * per-specification and cannot be derived from the document alone, and
191
+ * item 2 needs the schema this carries.
192
+ */
193
+ export const SPEC = {
194
+ typeUri: TYPE_URI,
195
+ isBearer: false,
196
+ isProofRequired: true,
197
+ isRecipientRequired: true,
198
+ isIssuedAtRequired: true,
199
+ payloadSchema: PAYLOAD_SCHEMA,
200
+ };
201
+ /**
202
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
203
+ * tracks the *issuer* party's requirement because a response swaps the
204
+ * parties (§7.3 item 5).
205
+ */
206
+ export const RESPONSE_SPEC = {
207
+ typeUri: RESPONSE_TYPE_URI,
208
+ isBearer: false,
209
+ isProofRequired: true,
210
+ isRecipientRequired: true,
211
+ isIssuedAtRequired: true,
212
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
213
+ };
214
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +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,6BAA6B;IACtC,aAAa,EAAE,8NAA8N;IAC7O,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,QAAQ;QACR,YAAY;QACZ,cAAc;KACf;IACD,YAAY,EAAE;QACZ,QAAQ,EAAE;YACR,MAAM,EAAE,QAAQ;YAChB,aAAa,EAAE,yBAAyB;SACzC;Q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