@openvtc/trust-tasks 0.22.6 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/CHANGELOG.md +81 -0
  2. package/dist/_shared/components.d.ts +434 -1
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/acl/_shared/0.1/acl-entry.d.ts +1 -1
  5. package/dist/acl/_shared/0.1/acl-entry.d.ts.map +1 -1
  6. package/dist/acl/_shared/0.2/acl-entry.d.ts +22 -0
  7. package/dist/acl/_shared/0.2/acl-entry.d.ts.map +1 -0
  8. package/dist/acl/_shared/0.2/acl-entry.js +6 -0
  9. package/dist/acl/_shared/0.2/acl-entry.js.map +1 -0
  10. package/dist/acl/change-role/0.1/payload.d.ts +1 -1
  11. package/dist/acl/change-role/0.1/payload.d.ts.map +1 -1
  12. package/dist/acl/change-role/0.2/payload.d.ts +1679 -0
  13. package/dist/acl/change-role/0.2/payload.d.ts.map +1 -0
  14. package/dist/acl/change-role/0.2/payload.js +955 -0
  15. package/dist/acl/change-role/0.2/payload.js.map +1 -0
  16. package/dist/acl/grant/0.1/payload.d.ts +1 -1
  17. package/dist/acl/grant/0.1/payload.d.ts.map +1 -1
  18. package/dist/acl/grant/0.2/payload.d.ts +1649 -0
  19. package/dist/acl/grant/0.2/payload.d.ts.map +1 -0
  20. package/dist/acl/grant/0.2/payload.js +942 -0
  21. package/dist/acl/grant/0.2/payload.js.map +1 -0
  22. package/dist/acl/list/0.1/payload.d.ts +1 -1
  23. package/dist/acl/list/0.1/payload.d.ts.map +1 -1
  24. package/dist/acl/list/0.2/payload.d.ts +1853 -0
  25. package/dist/acl/list/0.2/payload.d.ts.map +1 -0
  26. package/dist/acl/list/0.2/payload.js +1041 -0
  27. package/dist/acl/list/0.2/payload.js.map +1 -0
  28. package/dist/acl/revoke/0.1/payload.d.ts +1 -1
  29. package/dist/acl/revoke/0.1/payload.d.ts.map +1 -1
  30. package/dist/acl/revoke/0.2/payload.d.ts +1844 -0
  31. package/dist/acl/revoke/0.2/payload.d.ts.map +1 -0
  32. package/dist/acl/revoke/0.2/payload.js +1052 -0
  33. package/dist/acl/revoke/0.2/payload.js.map +1 -0
  34. package/dist/acl/show/0.1/payload.d.ts +1 -1
  35. package/dist/acl/show/0.1/payload.d.ts.map +1 -1
  36. package/dist/acl/show/0.2/payload.d.ts +1689 -0
  37. package/dist/acl/show/0.2/payload.d.ts.map +1 -0
  38. package/dist/acl/show/0.2/payload.js +968 -0
  39. package/dist/acl/show/0.2/payload.js.map +1 -0
  40. package/dist/acl/swap-key/0.1/payload.d.ts +1 -1
  41. package/dist/acl/swap-key/0.1/payload.d.ts.map +1 -1
  42. package/dist/acl/update/0.1/payload.d.ts +1 -1
  43. package/dist/acl/update/0.1/payload.d.ts.map +1 -1
  44. package/dist/acl/update/0.2/payload.d.ts +1784 -0
  45. package/dist/acl/update/0.2/payload.d.ts.map +1 -0
  46. package/dist/acl/update/0.2/payload.js +1005 -0
  47. package/dist/acl/update/0.2/payload.js.map +1 -0
  48. package/dist/auth/step-up/approve-request/0.4/payload.d.ts +672 -0
  49. package/dist/auth/step-up/approve-request/0.4/payload.d.ts.map +1 -0
  50. package/dist/auth/step-up/approve-request/0.4/payload.js +373 -0
  51. package/dist/auth/step-up/approve-request/0.4/payload.js.map +1 -0
  52. package/dist/auth/step-up/approve-response/0.6/payload.d.ts +974 -0
  53. package/dist/auth/step-up/approve-response/0.6/payload.d.ts.map +1 -0
  54. package/dist/auth/step-up/approve-response/0.6/payload.js +552 -0
  55. package/dist/auth/step-up/approve-response/0.6/payload.js.map +1 -0
  56. package/dist/auth/step-up/approver/_shared/0.1/approver.d.ts +16 -0
  57. package/dist/auth/step-up/approver/_shared/0.1/approver.d.ts.map +1 -0
  58. package/dist/auth/step-up/approver/_shared/0.1/approver.js +6 -0
  59. package/dist/auth/step-up/approver/_shared/0.1/approver.js.map +1 -0
  60. package/dist/auth/step-up/approver/attest/0.1/payload.d.ts +174 -0
  61. package/dist/auth/step-up/approver/attest/0.1/payload.d.ts.map +1 -0
  62. package/dist/auth/step-up/approver/attest/0.1/payload.js +97 -0
  63. package/dist/auth/step-up/approver/attest/0.1/payload.js.map +1 -0
  64. package/dist/auth/step-up/approver/enroll/0.1/payload.d.ts +503 -0
  65. package/dist/auth/step-up/approver/enroll/0.1/payload.d.ts.map +1 -0
  66. package/dist/auth/step-up/approver/enroll/0.1/payload.js +285 -0
  67. package/dist/auth/step-up/approver/enroll/0.1/payload.js.map +1 -0
  68. package/dist/auth/step-up/approver/invite/0.1/payload.d.ts +375 -0
  69. package/dist/auth/step-up/approver/invite/0.1/payload.d.ts.map +1 -0
  70. package/dist/auth/step-up/approver/invite/0.1/payload.js +200 -0
  71. package/dist/auth/step-up/approver/invite/0.1/payload.js.map +1 -0
  72. package/dist/auth/step-up/approver/list/0.1/payload.d.ts +477 -0
  73. package/dist/auth/step-up/approver/list/0.1/payload.d.ts.map +1 -0
  74. package/dist/auth/step-up/approver/list/0.1/payload.js +272 -0
  75. package/dist/auth/step-up/approver/list/0.1/payload.js.map +1 -0
  76. package/dist/auth/step-up/approver/redeem/finish/0.1/payload.d.ts +512 -0
  77. package/dist/auth/step-up/approver/redeem/finish/0.1/payload.d.ts.map +1 -0
  78. package/dist/auth/step-up/approver/redeem/finish/0.1/payload.js +290 -0
  79. package/dist/auth/step-up/approver/redeem/finish/0.1/payload.js.map +1 -0
  80. package/dist/auth/step-up/approver/redeem/start/0.1/payload.d.ts +343 -0
  81. package/dist/auth/step-up/approver/redeem/start/0.1/payload.d.ts.map +1 -0
  82. package/dist/auth/step-up/approver/redeem/start/0.1/payload.js +187 -0
  83. package/dist/auth/step-up/approver/redeem/start/0.1/payload.js.map +1 -0
  84. package/dist/auth/step-up/approver/revoke/0.1/payload.d.ts +534 -0
  85. package/dist/auth/step-up/approver/revoke/0.1/payload.d.ts.map +1 -0
  86. package/dist/auth/step-up/approver/revoke/0.1/payload.js +301 -0
  87. package/dist/auth/step-up/approver/revoke/0.1/payload.js.map +1 -0
  88. package/dist/git-ns/activity/list/0.1/payload.d.ts +21 -0
  89. package/dist/git-ns/activity/list/0.1/payload.d.ts.map +1 -1
  90. package/dist/git-ns/activity/list/0.1/payload.js +8 -0
  91. package/dist/git-ns/activity/list/0.1/payload.js.map +1 -1
  92. package/dist/index.d.ts +31 -0
  93. package/dist/index.d.ts.map +1 -1
  94. package/dist/index.js +31 -0
  95. package/dist/index.js.map +1 -1
  96. package/dist/task-consent/decision/0.2/payload.d.ts +775 -0
  97. package/dist/task-consent/decision/0.2/payload.d.ts.map +1 -0
  98. package/dist/task-consent/decision/0.2/payload.js +450 -0
  99. package/dist/task-consent/decision/0.2/payload.js.map +1 -0
  100. package/dist/vtc/admin/actions/_shared/0.1/action.d.ts +24 -0
  101. package/dist/vtc/admin/actions/_shared/0.1/action.d.ts.map +1 -0
  102. package/dist/vtc/admin/actions/_shared/0.1/action.js +6 -0
  103. package/dist/vtc/admin/actions/_shared/0.1/action.js.map +1 -0
  104. package/dist/vtc/admin/actions/acknowledge/0.1/payload.d.ts +1012 -0
  105. package/dist/vtc/admin/actions/acknowledge/0.1/payload.d.ts.map +1 -0
  106. package/dist/vtc/admin/actions/acknowledge/0.1/payload.js +636 -0
  107. package/dist/vtc/admin/actions/acknowledge/0.1/payload.js.map +1 -0
  108. package/dist/vtc/admin/actions/cancel/0.1/payload.d.ts +1026 -0
  109. package/dist/vtc/admin/actions/cancel/0.1/payload.d.ts.map +1 -0
  110. package/dist/vtc/admin/actions/cancel/0.1/payload.js +641 -0
  111. package/dist/vtc/admin/actions/cancel/0.1/payload.js.map +1 -0
  112. package/dist/vtc/admin/actions/list/0.1/payload.d.ts +1200 -0
  113. package/dist/vtc/admin/actions/list/0.1/payload.d.ts.map +1 -0
  114. package/dist/vtc/admin/actions/list/0.1/payload.js +726 -0
  115. package/dist/vtc/admin/actions/list/0.1/payload.js.map +1 -0
  116. package/dist/vtc/admin/actions/show/0.1/payload.d.ts +1012 -0
  117. package/dist/vtc/admin/actions/show/0.1/payload.d.ts.map +1 -0
  118. package/dist/vtc/admin/actions/show/0.1/payload.js +636 -0
  119. package/dist/vtc/admin/actions/show/0.1/payload.js.map +1 -0
  120. package/dist/vtc/install/claim/finish/0.3/payload.d.ts +379 -0
  121. package/dist/vtc/install/claim/finish/0.3/payload.d.ts.map +1 -0
  122. package/dist/vtc/install/claim/finish/0.3/payload.js +205 -0
  123. package/dist/vtc/install/claim/finish/0.3/payload.js.map +1 -0
  124. package/dist/vtc/install/claim/start/0.3/payload.d.ts +368 -0
  125. package/dist/vtc/install/claim/start/0.3/payload.d.ts.map +1 -0
  126. package/dist/vtc/install/claim/start/0.3/payload.js +201 -0
  127. package/dist/vtc/install/claim/start/0.3/payload.js.map +1 -0
  128. package/dist/vtc/members/authority-reduced-notice/0.1/payload.d.ts +208 -0
  129. package/dist/vtc/members/authority-reduced-notice/0.1/payload.d.ts.map +1 -0
  130. package/dist/vtc/members/authority-reduced-notice/0.1/payload.js +112 -0
  131. package/dist/vtc/members/authority-reduced-notice/0.1/payload.js.map +1 -0
  132. package/dist/vtc/roles/_shared/0.1/role.d.ts +16 -0
  133. package/dist/vtc/roles/_shared/0.1/role.d.ts.map +1 -0
  134. package/dist/vtc/roles/_shared/0.1/role.js +6 -0
  135. package/dist/vtc/roles/_shared/0.1/role.js.map +1 -0
  136. package/dist/vtc/roles/define/0.1/payload.d.ts +703 -0
  137. package/dist/vtc/roles/define/0.1/payload.d.ts.map +1 -0
  138. package/dist/vtc/roles/define/0.1/payload.js +371 -0
  139. package/dist/vtc/roles/define/0.1/payload.js.map +1 -0
  140. package/dist/vtc/roles/delete/0.1/payload.d.ts +281 -0
  141. package/dist/vtc/roles/delete/0.1/payload.d.ts.map +1 -0
  142. package/dist/vtc/roles/delete/0.1/payload.js +152 -0
  143. package/dist/vtc/roles/delete/0.1/payload.js.map +1 -0
  144. package/dist/vtc/roles/list/0.1/payload.d.ts +639 -0
  145. package/dist/vtc/roles/list/0.1/payload.d.ts.map +1 -0
  146. package/dist/vtc/roles/list/0.1/payload.js +345 -0
  147. package/dist/vtc/roles/list/0.1/payload.js.map +1 -0
  148. package/dist/vtc/roles/show/0.1/payload.d.ts +651 -0
  149. package/dist/vtc/roles/show/0.1/payload.d.ts.map +1 -0
  150. package/dist/vtc/roles/show/0.1/payload.js +351 -0
  151. package/dist/vtc/roles/show/0.1/payload.js.map +1 -0
  152. package/package.json +1 -1
  153. package/src/_shared/components.ts +440 -1
  154. package/src/acl/_shared/0.1/acl-entry.ts +1 -1
  155. package/src/acl/_shared/0.2/acl-entry.ts +23 -0
  156. package/src/acl/change-role/0.1/payload.ts +1 -1
  157. package/src/acl/change-role/0.2/payload.ts +1011 -0
  158. package/src/acl/grant/0.1/payload.ts +1 -1
  159. package/src/acl/grant/0.2/payload.ts +990 -0
  160. package/src/acl/list/0.1/payload.ts +1 -1
  161. package/src/acl/list/0.2/payload.ts +1125 -0
  162. package/src/acl/revoke/0.1/payload.ts +1 -1
  163. package/src/acl/revoke/0.2/payload.ts +1122 -0
  164. package/src/acl/show/0.1/payload.ts +1 -1
  165. package/src/acl/show/0.2/payload.ts +1016 -0
  166. package/src/acl/swap-key/0.1/payload.ts +1 -1
  167. package/src/acl/update/0.1/payload.ts +1 -1
  168. package/src/acl/update/0.2/payload.ts +1094 -0
  169. package/src/auth/step-up/approve-request/0.4/payload.ts +461 -0
  170. package/src/auth/step-up/approve-response/0.6/payload.ts +648 -0
  171. package/src/auth/step-up/approver/_shared/0.1/approver.ts +17 -0
  172. package/src/auth/step-up/approver/attest/0.1/payload.ts +135 -0
  173. package/src/auth/step-up/approver/enroll/0.1/payload.ts +329 -0
  174. package/src/auth/step-up/approver/invite/0.1/payload.ts +258 -0
  175. package/src/auth/step-up/approver/list/0.1/payload.ts +318 -0
  176. package/src/auth/step-up/approver/redeem/finish/0.1/payload.ts +337 -0
  177. package/src/auth/step-up/approver/redeem/start/0.1/payload.ts +241 -0
  178. package/src/auth/step-up/approver/revoke/0.1/payload.ts +352 -0
  179. package/src/git-ns/activity/list/0.1/payload.ts +14 -0
  180. package/src/index.ts +31 -0
  181. package/src/task-consent/decision/0.2/payload.ts +537 -0
  182. package/src/vtc/admin/actions/_shared/0.1/action.ts +25 -0
  183. package/src/vtc/admin/actions/acknowledge/0.1/payload.ts +671 -0
  184. package/src/vtc/admin/actions/cancel/0.1/payload.ts +680 -0
  185. package/src/vtc/admin/actions/list/0.1/payload.ts +795 -0
  186. package/src/vtc/admin/actions/show/0.1/payload.ts +671 -0
  187. package/src/vtc/install/claim/finish/0.3/payload.ts +253 -0
  188. package/src/vtc/install/claim/start/0.3/payload.ts +256 -0
  189. package/src/vtc/members/authority-reduced-notice/0.1/payload.ts +162 -0
  190. package/src/vtc/roles/_shared/0.1/role.ts +17 -0
  191. package/src/vtc/roles/define/0.1/payload.ts +435 -0
  192. package/src/vtc/roles/delete/0.1/payload.ts +200 -0
  193. package/src/vtc/roles/list/0.1/payload.ts +389 -0
  194. package/src/vtc/roles/show/0.1/payload.ts +399 -0
@@ -0,0 +1,512 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/auth/step-up/approver/redeem/finish/0.1/payload.schema.json
4
+ */
5
+ import type { Approver, ApproverDid, ApproverLabel, AttestStatement, EnrolledVia, Ext } from "../../../../../../_shared/components.js";
6
+ /**
7
+ * The invited subject, signing as their own DID, names the step-up approver to bind and carries its signed enrolment statement over the ceremony's challenge; the relying party binds the approver and consumes the invite. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface AuthStepUpApproverRedeemFinishPayload {
10
+ /**
11
+ * The enrollmentId from auth/step-up/approver/redeem/start, echoed verbatim. Also the `boundTo` of the statement.
12
+ */
13
+ enrollmentId: string;
14
+ /**
15
+ * The step-up approver to bind. MUST equal the statement's issuer.
16
+ */
17
+ approverDid: ApproverDid;
18
+ /**
19
+ * A name for where the approver lives. Overrides the inviter's suggestion.
20
+ */
21
+ label?: ApproverLabel;
22
+ /**
23
+ * The approver's complete, signed auth/step-up/approver/attest/0.1 document with `purpose: enrol`, `boundTo` equal to `enrollmentId`, over the start's `challenge` — the proof of possession of the approver key. Verified as received.
24
+ */
25
+ statement: AttestStatement;
26
+ ext?: Ext;
27
+ }
28
+ /**
29
+ * The binding as stored.
30
+ */
31
+ export interface AuthStepUpApproverRedeemFinishResponsePayload {
32
+ approver: Approver;
33
+ ext?: Ext;
34
+ }
35
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
36
+ export type { Approver, ApproverDid, ApproverLabel, AttestStatement, EnrolledVia, Ext };
37
+ /** Trust Task type URI. */
38
+ export declare const TYPE_URI: "https://trusttasks.org/spec/auth/step-up/approver/redeem/finish/0.1";
39
+ /** Stable alias for this specification's request payload shape. */
40
+ export type Payload = AuthStepUpApproverRedeemFinishPayload;
41
+ /** Trust Task response type URI (request type URI + "#response"). */
42
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/auth/step-up/approver/redeem/finish/0.1#response";
43
+ /** Stable alias for this specification's success-response payload shape. */
44
+ export type Response = AuthStepUpApproverRedeemFinishResponsePayload;
45
+ /**
46
+ * This specification's payload schema, as a value.
47
+ *
48
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
49
+ * rather than only as a `.json` file because TypeScript types are erased
50
+ * at runtime: without a schema a consumer has nothing to validate, and
51
+ * every REQUIRED payload member is optional in practice. Cross-file
52
+ * `$ref`s are already inlined, so it needs no resolver.
53
+ */
54
+ export declare const PAYLOAD_SCHEMA: {
55
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
56
+ readonly $id: "https://trusttasks.org/spec/auth/step-up/approver/redeem/finish/0.1";
57
+ readonly title: "Auth — Step-up Approver Redeem (finish) — payload";
58
+ readonly description: "The invited subject, signing as their own DID, names the step-up approver to bind and carries its signed enrolment statement over the ceremony's challenge; the relying party binds the approver and consumes the invite. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
59
+ readonly type: "object";
60
+ readonly additionalProperties: false;
61
+ readonly required: readonly ["enrollmentId", "approverDid", "statement"];
62
+ readonly properties: {
63
+ readonly enrollmentId: {
64
+ readonly type: "string";
65
+ readonly minLength: 1;
66
+ readonly maxLength: 256;
67
+ readonly description: "The enrollmentId from auth/step-up/approver/redeem/start, echoed verbatim. Also the `boundTo` of the statement.";
68
+ };
69
+ readonly approverDid: {
70
+ readonly $ref: "#/$defs/ApproverDid";
71
+ readonly description: "The step-up approver to bind. MUST equal the statement's issuer.";
72
+ };
73
+ readonly label: {
74
+ readonly $ref: "#/$defs/ApproverLabel";
75
+ readonly description: "A name for where the approver lives. Overrides the inviter's suggestion.";
76
+ };
77
+ readonly statement: {
78
+ readonly $ref: "#/$defs/AttestStatement";
79
+ readonly description: "The approver's complete, signed auth/step-up/approver/attest/0.1 document with `purpose: enrol`, `boundTo` equal to `enrollmentId`, over the start's `challenge` — the proof of possession of the approver key. Verified as received.";
80
+ };
81
+ readonly ext: {
82
+ readonly $ref: "#/$defs/Ext";
83
+ };
84
+ };
85
+ readonly $defs: {
86
+ readonly Response: {
87
+ readonly $anchor: "response";
88
+ readonly title: "Auth — Step-up Approver Redeem (finish) — response payload";
89
+ readonly description: "The binding as stored.";
90
+ readonly type: "object";
91
+ readonly additionalProperties: false;
92
+ readonly required: readonly ["approver"];
93
+ readonly properties: {
94
+ readonly approver: {
95
+ readonly $ref: "#/$defs/Approver";
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 Approver: {
113
+ readonly title: "Approver";
114
+ readonly type: "object";
115
+ readonly additionalProperties: false;
116
+ readonly required: readonly ["approverDid", "subject", "enrolledAt", "enrolledVia"];
117
+ readonly description: "One step-up approver binding, as its subject or an administrator sees it. The binding confers nothing of its own: it is read only when the relying party checks the evidence of a step-up asked of `subject`.";
118
+ readonly properties: {
119
+ readonly approverDid: {
120
+ readonly $ref: "#/$defs/ApproverDid";
121
+ };
122
+ readonly subject: {
123
+ readonly type: "string";
124
+ readonly pattern: "^did:";
125
+ readonly minLength: 5;
126
+ readonly maxLength: 2048;
127
+ readonly description: "The one subject DID this approver is bound to. An approver DID is bound to at most one subject at a relying party.";
128
+ };
129
+ readonly label: {
130
+ readonly $ref: "#/$defs/ApproverLabel";
131
+ };
132
+ readonly enrolledAt: {
133
+ readonly type: "string";
134
+ readonly format: "date-time";
135
+ readonly description: "When the binding was written.";
136
+ };
137
+ readonly enrolledVia: {
138
+ readonly $ref: "#/$defs/EnrolledVia";
139
+ };
140
+ readonly lastUsedAt: {
141
+ readonly type: "string";
142
+ readonly format: "date-time";
143
+ readonly description: "When a statement by this approver last satisfied a step-up. Absent when it never has.";
144
+ };
145
+ };
146
+ };
147
+ readonly EnrolledVia: {
148
+ readonly title: "EnrolledVia";
149
+ readonly type: "string";
150
+ readonly enum: readonly ["install", "invite", "selfService", "offline"];
151
+ readonly description: "The anchor the binding rested on, recorded so an incident review can see how each factor came to exist. `install`: claimed with the community's install token (vtc/install/claim/finish/0.3). `invite`: redeemed from an administrator's invite (auth/step-up/approver/redeem/finish/0.1). `selfService`: added by the subject behind a factor they already held (auth/step-up/approver/enroll/0.1). `offline`: redeemed from an invite minted by the operator with host access while the service was stopped — an `invite`-shaped redemption whose issuer was the host rather than an administrator.";
152
+ };
153
+ readonly ApproverLabel: {
154
+ readonly title: "ApproverLabel";
155
+ readonly type: "string";
156
+ readonly minLength: 1;
157
+ readonly maxLength: 64;
158
+ readonly description: "A human-readable name for where the approver lives — e.g. `Browser plugin — work laptop`. Chosen by the subject (or suggested by an inviter), untrusted, and attributed to its author wherever it is rendered. Absent rather than invented when none was chosen.";
159
+ };
160
+ readonly ApproverDid: {
161
+ readonly title: "ApproverDid";
162
+ readonly type: "string";
163
+ readonly minLength: 16;
164
+ readonly maxLength: 128;
165
+ readonly pattern: "^did:key:z6Mk[1-9A-HJ-NP-Za-km-z]+$";
166
+ readonly description: "A step-up approver, as an Ed25519 `did:key` (`z6Mk…`). `did:key` only, because its document is a function of the key and resolves with no network, so verifying an approver's statement never depends on a fetch, and a key whose DID document could be rewritten after enrolment would not be the key that was enrolled. Distinct from the subject's DID, from every verification method in the subject's DID document, and from every key the subject can sign operations with at the relying party.";
167
+ };
168
+ readonly AttestStatement: {
169
+ readonly title: "AttestStatement";
170
+ readonly type: "object";
171
+ readonly minProperties: 1;
172
+ readonly description: "A complete, signed auth/step-up/approver/attest/0.1 Trust Task document — envelope, payload and proof — issued by the approver. Deliberately an open object here rather than a typed one: the consumer verifies it as a document in its own right (envelope, proof and payload against that specification's schemas), and verifies its proof over the members exactly as received, which a binding that narrowed it to a typed struct and re-serialised it could silently break.";
173
+ };
174
+ };
175
+ };
176
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
177
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
178
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
179
+ readonly $ref: "#/$defs/Response";
180
+ readonly $defs: {
181
+ readonly Response: {
182
+ readonly $anchor: "response";
183
+ readonly title: "Auth — Step-up Approver Redeem (finish) — response payload";
184
+ readonly description: "The binding as stored.";
185
+ readonly type: "object";
186
+ readonly additionalProperties: false;
187
+ readonly required: readonly ["approver"];
188
+ readonly properties: {
189
+ readonly approver: {
190
+ readonly $ref: "#/$defs/Approver";
191
+ };
192
+ readonly ext: {
193
+ readonly $ref: "#/$defs/Ext";
194
+ };
195
+ };
196
+ };
197
+ readonly Ext: {
198
+ readonly title: "Ext";
199
+ 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.";
200
+ readonly type: "object";
201
+ readonly minProperties: 1;
202
+ readonly additionalProperties: true;
203
+ readonly propertyNames: {
204
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
205
+ };
206
+ };
207
+ readonly Approver: {
208
+ readonly title: "Approver";
209
+ readonly type: "object";
210
+ readonly additionalProperties: false;
211
+ readonly required: readonly ["approverDid", "subject", "enrolledAt", "enrolledVia"];
212
+ readonly description: "One step-up approver binding, as its subject or an administrator sees it. The binding confers nothing of its own: it is read only when the relying party checks the evidence of a step-up asked of `subject`.";
213
+ readonly properties: {
214
+ readonly approverDid: {
215
+ readonly $ref: "#/$defs/ApproverDid";
216
+ };
217
+ readonly subject: {
218
+ readonly type: "string";
219
+ readonly pattern: "^did:";
220
+ readonly minLength: 5;
221
+ readonly maxLength: 2048;
222
+ readonly description: "The one subject DID this approver is bound to. An approver DID is bound to at most one subject at a relying party.";
223
+ };
224
+ readonly label: {
225
+ readonly $ref: "#/$defs/ApproverLabel";
226
+ };
227
+ readonly enrolledAt: {
228
+ readonly type: "string";
229
+ readonly format: "date-time";
230
+ readonly description: "When the binding was written.";
231
+ };
232
+ readonly enrolledVia: {
233
+ readonly $ref: "#/$defs/EnrolledVia";
234
+ };
235
+ readonly lastUsedAt: {
236
+ readonly type: "string";
237
+ readonly format: "date-time";
238
+ readonly description: "When a statement by this approver last satisfied a step-up. Absent when it never has.";
239
+ };
240
+ };
241
+ };
242
+ readonly EnrolledVia: {
243
+ readonly title: "EnrolledVia";
244
+ readonly type: "string";
245
+ readonly enum: readonly ["install", "invite", "selfService", "offline"];
246
+ readonly description: "The anchor the binding rested on, recorded so an incident review can see how each factor came to exist. `install`: claimed with the community's install token (vtc/install/claim/finish/0.3). `invite`: redeemed from an administrator's invite (auth/step-up/approver/redeem/finish/0.1). `selfService`: added by the subject behind a factor they already held (auth/step-up/approver/enroll/0.1). `offline`: redeemed from an invite minted by the operator with host access while the service was stopped — an `invite`-shaped redemption whose issuer was the host rather than an administrator.";
247
+ };
248
+ readonly ApproverLabel: {
249
+ readonly title: "ApproverLabel";
250
+ readonly type: "string";
251
+ readonly minLength: 1;
252
+ readonly maxLength: 64;
253
+ readonly description: "A human-readable name for where the approver lives — e.g. `Browser plugin — work laptop`. Chosen by the subject (or suggested by an inviter), untrusted, and attributed to its author wherever it is rendered. Absent rather than invented when none was chosen.";
254
+ };
255
+ readonly ApproverDid: {
256
+ readonly title: "ApproverDid";
257
+ readonly type: "string";
258
+ readonly minLength: 16;
259
+ readonly maxLength: 128;
260
+ readonly pattern: "^did:key:z6Mk[1-9A-HJ-NP-Za-km-z]+$";
261
+ readonly description: "A step-up approver, as an Ed25519 `did:key` (`z6Mk…`). `did:key` only, because its document is a function of the key and resolves with no network, so verifying an approver's statement never depends on a fetch, and a key whose DID document could be rewritten after enrolment would not be the key that was enrolled. Distinct from the subject's DID, from every verification method in the subject's DID document, and from every key the subject can sign operations with at the relying party.";
262
+ };
263
+ readonly AttestStatement: {
264
+ readonly title: "AttestStatement";
265
+ readonly type: "object";
266
+ readonly minProperties: 1;
267
+ readonly description: "A complete, signed auth/step-up/approver/attest/0.1 Trust Task document — envelope, payload and proof — issued by the approver. Deliberately an open object here rather than a typed one: the consumer verifies it as a document in its own right (envelope, proof and payload against that specification's schemas), and verifies its proof over the members exactly as received, which a binding that narrowed it to a typed struct and re-serialised it could silently break.";
268
+ };
269
+ };
270
+ };
271
+ /**
272
+ * SPEC.md §7.2 policy for the request variant, from this specification's
273
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
274
+ * per-specification and cannot be derived from the document alone, and
275
+ * item 2 needs the schema this carries.
276
+ */
277
+ export declare const SPEC: {
278
+ readonly typeUri: "https://trusttasks.org/spec/auth/step-up/approver/redeem/finish/0.1";
279
+ readonly isBearer: false;
280
+ readonly isProofRequired: true;
281
+ readonly isRecipientRequired: true;
282
+ readonly isIssuedAtRequired: true;
283
+ readonly payloadSchema: {
284
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
285
+ readonly $id: "https://trusttasks.org/spec/auth/step-up/approver/redeem/finish/0.1";
286
+ readonly title: "Auth — Step-up Approver Redeem (finish) — payload";
287
+ readonly description: "The invited subject, signing as their own DID, names the step-up approver to bind and carries its signed enrolment statement over the ceremony's challenge; the relying party binds the approver and consumes the invite. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
288
+ readonly type: "object";
289
+ readonly additionalProperties: false;
290
+ readonly required: readonly ["enrollmentId", "approverDid", "statement"];
291
+ readonly properties: {
292
+ readonly enrollmentId: {
293
+ readonly type: "string";
294
+ readonly minLength: 1;
295
+ readonly maxLength: 256;
296
+ readonly description: "The enrollmentId from auth/step-up/approver/redeem/start, echoed verbatim. Also the `boundTo` of the statement.";
297
+ };
298
+ readonly approverDid: {
299
+ readonly $ref: "#/$defs/ApproverDid";
300
+ readonly description: "The step-up approver to bind. MUST equal the statement's issuer.";
301
+ };
302
+ readonly label: {
303
+ readonly $ref: "#/$defs/ApproverLabel";
304
+ readonly description: "A name for where the approver lives. Overrides the inviter's suggestion.";
305
+ };
306
+ readonly statement: {
307
+ readonly $ref: "#/$defs/AttestStatement";
308
+ readonly description: "The approver's complete, signed auth/step-up/approver/attest/0.1 document with `purpose: enrol`, `boundTo` equal to `enrollmentId`, over the start's `challenge` — the proof of possession of the approver key. Verified as received.";
309
+ };
310
+ readonly ext: {
311
+ readonly $ref: "#/$defs/Ext";
312
+ };
313
+ };
314
+ readonly $defs: {
315
+ readonly Response: {
316
+ readonly $anchor: "response";
317
+ readonly title: "Auth — Step-up Approver Redeem (finish) — response payload";
318
+ readonly description: "The binding as stored.";
319
+ readonly type: "object";
320
+ readonly additionalProperties: false;
321
+ readonly required: readonly ["approver"];
322
+ readonly properties: {
323
+ readonly approver: {
324
+ readonly $ref: "#/$defs/Approver";
325
+ };
326
+ readonly ext: {
327
+ readonly $ref: "#/$defs/Ext";
328
+ };
329
+ };
330
+ };
331
+ readonly Ext: {
332
+ readonly title: "Ext";
333
+ 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.";
334
+ readonly type: "object";
335
+ readonly minProperties: 1;
336
+ readonly additionalProperties: true;
337
+ readonly propertyNames: {
338
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
339
+ };
340
+ };
341
+ readonly Approver: {
342
+ readonly title: "Approver";
343
+ readonly type: "object";
344
+ readonly additionalProperties: false;
345
+ readonly required: readonly ["approverDid", "subject", "enrolledAt", "enrolledVia"];
346
+ readonly description: "One step-up approver binding, as its subject or an administrator sees it. The binding confers nothing of its own: it is read only when the relying party checks the evidence of a step-up asked of `subject`.";
347
+ readonly properties: {
348
+ readonly approverDid: {
349
+ readonly $ref: "#/$defs/ApproverDid";
350
+ };
351
+ readonly subject: {
352
+ readonly type: "string";
353
+ readonly pattern: "^did:";
354
+ readonly minLength: 5;
355
+ readonly maxLength: 2048;
356
+ readonly description: "The one subject DID this approver is bound to. An approver DID is bound to at most one subject at a relying party.";
357
+ };
358
+ readonly label: {
359
+ readonly $ref: "#/$defs/ApproverLabel";
360
+ };
361
+ readonly enrolledAt: {
362
+ readonly type: "string";
363
+ readonly format: "date-time";
364
+ readonly description: "When the binding was written.";
365
+ };
366
+ readonly enrolledVia: {
367
+ readonly $ref: "#/$defs/EnrolledVia";
368
+ };
369
+ readonly lastUsedAt: {
370
+ readonly type: "string";
371
+ readonly format: "date-time";
372
+ readonly description: "When a statement by this approver last satisfied a step-up. Absent when it never has.";
373
+ };
374
+ };
375
+ };
376
+ readonly EnrolledVia: {
377
+ readonly title: "EnrolledVia";
378
+ readonly type: "string";
379
+ readonly enum: readonly ["install", "invite", "selfService", "offline"];
380
+ readonly description: "The anchor the binding rested on, recorded so an incident review can see how each factor came to exist. `install`: claimed with the community's install token (vtc/install/claim/finish/0.3). `invite`: redeemed from an administrator's invite (auth/step-up/approver/redeem/finish/0.1). `selfService`: added by the subject behind a factor they already held (auth/step-up/approver/enroll/0.1). `offline`: redeemed from an invite minted by the operator with host access while the service was stopped — an `invite`-shaped redemption whose issuer was the host rather than an administrator.";
381
+ };
382
+ readonly ApproverLabel: {
383
+ readonly title: "ApproverLabel";
384
+ readonly type: "string";
385
+ readonly minLength: 1;
386
+ readonly maxLength: 64;
387
+ readonly description: "A human-readable name for where the approver lives — e.g. `Browser plugin — work laptop`. Chosen by the subject (or suggested by an inviter), untrusted, and attributed to its author wherever it is rendered. Absent rather than invented when none was chosen.";
388
+ };
389
+ readonly ApproverDid: {
390
+ readonly title: "ApproverDid";
391
+ readonly type: "string";
392
+ readonly minLength: 16;
393
+ readonly maxLength: 128;
394
+ readonly pattern: "^did:key:z6Mk[1-9A-HJ-NP-Za-km-z]+$";
395
+ readonly description: "A step-up approver, as an Ed25519 `did:key` (`z6Mk…`). `did:key` only, because its document is a function of the key and resolves with no network, so verifying an approver's statement never depends on a fetch, and a key whose DID document could be rewritten after enrolment would not be the key that was enrolled. Distinct from the subject's DID, from every verification method in the subject's DID document, and from every key the subject can sign operations with at the relying party.";
396
+ };
397
+ readonly AttestStatement: {
398
+ readonly title: "AttestStatement";
399
+ readonly type: "object";
400
+ readonly minProperties: 1;
401
+ readonly description: "A complete, signed auth/step-up/approver/attest/0.1 Trust Task document — envelope, payload and proof — issued by the approver. Deliberately an open object here rather than a typed one: the consumer verifies it as a document in its own right (envelope, proof and payload against that specification's schemas), and verifies its proof over the members exactly as received, which a binding that narrowed it to a typed struct and re-serialised it could silently break.";
402
+ };
403
+ };
404
+ };
405
+ };
406
+ /**
407
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
408
+ * tracks the *issuer* party's requirement because a response swaps the
409
+ * parties (§7.3 item 5).
410
+ */
411
+ export declare const RESPONSE_SPEC: {
412
+ readonly typeUri: "https://trusttasks.org/spec/auth/step-up/approver/redeem/finish/0.1#response";
413
+ readonly isBearer: false;
414
+ readonly isProofRequired: false;
415
+ readonly isRecipientRequired: true;
416
+ readonly isIssuedAtRequired: true;
417
+ readonly payloadSchema: {
418
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
419
+ readonly $ref: "#/$defs/Response";
420
+ readonly $defs: {
421
+ readonly Response: {
422
+ readonly $anchor: "response";
423
+ readonly title: "Auth — Step-up Approver Redeem (finish) — response payload";
424
+ readonly description: "The binding as stored.";
425
+ readonly type: "object";
426
+ readonly additionalProperties: false;
427
+ readonly required: readonly ["approver"];
428
+ readonly properties: {
429
+ readonly approver: {
430
+ readonly $ref: "#/$defs/Approver";
431
+ };
432
+ readonly ext: {
433
+ readonly $ref: "#/$defs/Ext";
434
+ };
435
+ };
436
+ };
437
+ readonly Ext: {
438
+ readonly title: "Ext";
439
+ 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.";
440
+ readonly type: "object";
441
+ readonly minProperties: 1;
442
+ readonly additionalProperties: true;
443
+ readonly propertyNames: {
444
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
445
+ };
446
+ };
447
+ readonly Approver: {
448
+ readonly title: "Approver";
449
+ readonly type: "object";
450
+ readonly additionalProperties: false;
451
+ readonly required: readonly ["approverDid", "subject", "enrolledAt", "enrolledVia"];
452
+ readonly description: "One step-up approver binding, as its subject or an administrator sees it. The binding confers nothing of its own: it is read only when the relying party checks the evidence of a step-up asked of `subject`.";
453
+ readonly properties: {
454
+ readonly approverDid: {
455
+ readonly $ref: "#/$defs/ApproverDid";
456
+ };
457
+ readonly subject: {
458
+ readonly type: "string";
459
+ readonly pattern: "^did:";
460
+ readonly minLength: 5;
461
+ readonly maxLength: 2048;
462
+ readonly description: "The one subject DID this approver is bound to. An approver DID is bound to at most one subject at a relying party.";
463
+ };
464
+ readonly label: {
465
+ readonly $ref: "#/$defs/ApproverLabel";
466
+ };
467
+ readonly enrolledAt: {
468
+ readonly type: "string";
469
+ readonly format: "date-time";
470
+ readonly description: "When the binding was written.";
471
+ };
472
+ readonly enrolledVia: {
473
+ readonly $ref: "#/$defs/EnrolledVia";
474
+ };
475
+ readonly lastUsedAt: {
476
+ readonly type: "string";
477
+ readonly format: "date-time";
478
+ readonly description: "When a statement by this approver last satisfied a step-up. Absent when it never has.";
479
+ };
480
+ };
481
+ };
482
+ readonly EnrolledVia: {
483
+ readonly title: "EnrolledVia";
484
+ readonly type: "string";
485
+ readonly enum: readonly ["install", "invite", "selfService", "offline"];
486
+ readonly description: "The anchor the binding rested on, recorded so an incident review can see how each factor came to exist. `install`: claimed with the community's install token (vtc/install/claim/finish/0.3). `invite`: redeemed from an administrator's invite (auth/step-up/approver/redeem/finish/0.1). `selfService`: added by the subject behind a factor they already held (auth/step-up/approver/enroll/0.1). `offline`: redeemed from an invite minted by the operator with host access while the service was stopped — an `invite`-shaped redemption whose issuer was the host rather than an administrator.";
487
+ };
488
+ readonly ApproverLabel: {
489
+ readonly title: "ApproverLabel";
490
+ readonly type: "string";
491
+ readonly minLength: 1;
492
+ readonly maxLength: 64;
493
+ readonly description: "A human-readable name for where the approver lives — e.g. `Browser plugin — work laptop`. Chosen by the subject (or suggested by an inviter), untrusted, and attributed to its author wherever it is rendered. Absent rather than invented when none was chosen.";
494
+ };
495
+ readonly ApproverDid: {
496
+ readonly title: "ApproverDid";
497
+ readonly type: "string";
498
+ readonly minLength: 16;
499
+ readonly maxLength: 128;
500
+ readonly pattern: "^did:key:z6Mk[1-9A-HJ-NP-Za-km-z]+$";
501
+ readonly description: "A step-up approver, as an Ed25519 `did:key` (`z6Mk…`). `did:key` only, because its document is a function of the key and resolves with no network, so verifying an approver's statement never depends on a fetch, and a key whose DID document could be rewritten after enrolment would not be the key that was enrolled. Distinct from the subject's DID, from every verification method in the subject's DID document, and from every key the subject can sign operations with at the relying party.";
502
+ };
503
+ readonly AttestStatement: {
504
+ readonly title: "AttestStatement";
505
+ readonly type: "object";
506
+ readonly minProperties: 1;
507
+ readonly description: "A complete, signed auth/step-up/approver/attest/0.1 Trust Task document — envelope, payload and proof — issued by the approver. Deliberately an open object here rather than a typed one: the consumer verifies it as a document in its own right (envelope, proof and payload against that specification's schemas), and verifies its proof over the members exactly as received, which a binding that narrowed it to a typed struct and re-serialised it could silently break.";
508
+ };
509
+ };
510
+ };
511
+ };
512
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../../src/auth/step-up/approver/redeem/finish/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,yCAAyC,CAAC;AAGvI;;GAEG;AACH,MAAM,WAAW,qCAAqC;IACpD;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB;;OAEG;IACH,SAAS,EAAE,eAAe,CAAC;IAC3B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,6CAA6C;IAC5D,QAAQ,EAAE,QAAQ,CAAC;IACnB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,WAAW,EAAE,GAAG,EAAE,CAAC;AAExF,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,qEAA8E,CAAC;AAEvG,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,qCAAqC,CAAC;AAE5D,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,8EAAuF,CAAC;AAEzH,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,6CAA6C,CAAC;AAErE;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyIjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyG1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}