@openvtc/trust-tasks 0.20.8 → 0.21.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 (208) hide show
  1. package/CHANGELOG.md +233 -0
  2. package/dist/_shared/components.d.ts +299 -2
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/auth/passkey/enroll/invite/0.2/payload.d.ts +456 -0
  5. package/dist/auth/passkey/enroll/invite/0.2/payload.d.ts.map +1 -0
  6. package/dist/auth/passkey/enroll/invite/0.2/payload.js +248 -0
  7. package/dist/auth/passkey/enroll/invite/0.2/payload.js.map +1 -0
  8. package/dist/auth/passkey/enroll/redeem/finish/0.1/payload.d.ts +728 -0
  9. package/dist/auth/passkey/enroll/redeem/finish/0.1/payload.d.ts.map +1 -0
  10. package/dist/auth/passkey/enroll/redeem/finish/0.1/payload.js +430 -0
  11. package/dist/auth/passkey/enroll/redeem/finish/0.1/payload.js.map +1 -0
  12. package/dist/auth/passkey/enroll/redeem/start/0.1/payload.d.ts +1043 -0
  13. package/dist/auth/passkey/enroll/redeem/start/0.1/payload.d.ts.map +1 -0
  14. package/dist/auth/passkey/enroll/redeem/start/0.1/payload.js +628 -0
  15. package/dist/auth/passkey/enroll/redeem/start/0.1/payload.js.map +1 -0
  16. package/dist/auth/passkey/revoke/finish/0.2/payload.d.ts +533 -0
  17. package/dist/auth/passkey/revoke/finish/0.2/payload.d.ts.map +1 -0
  18. package/dist/auth/passkey/revoke/finish/0.2/payload.js +315 -0
  19. package/dist/auth/passkey/revoke/finish/0.2/payload.js.map +1 -0
  20. package/dist/auth/passkey/revoke/start/0.2/payload.d.ts +511 -0
  21. package/dist/auth/passkey/revoke/start/0.2/payload.d.ts.map +1 -0
  22. package/dist/auth/passkey/revoke/start/0.2/payload.js +297 -0
  23. package/dist/auth/passkey/revoke/start/0.2/payload.js.map +1 -0
  24. package/dist/auth/step-up/approve-response/0.5/payload.d.ts +887 -0
  25. package/dist/auth/step-up/approve-response/0.5/payload.d.ts.map +1 -0
  26. package/dist/auth/step-up/approve-response/0.5/payload.js +504 -0
  27. package/dist/auth/step-up/approve-response/0.5/payload.js.map +1 -0
  28. package/dist/device/list/0.1/payload.d.ts +4 -4
  29. package/dist/device/list/0.1/payload.d.ts.map +1 -1
  30. package/dist/device/list/0.1/payload.js +4 -2
  31. package/dist/device/list/0.1/payload.js.map +1 -1
  32. package/dist/device/list/0.2/payload.d.ts +4 -4
  33. package/dist/device/list/0.2/payload.d.ts.map +1 -1
  34. package/dist/device/list/0.2/payload.js +4 -2
  35. package/dist/device/list/0.2/payload.js.map +1 -1
  36. package/dist/device/register/0.1/payload.d.ts +4 -4
  37. package/dist/device/register/0.1/payload.d.ts.map +1 -1
  38. package/dist/device/register/0.1/payload.js +4 -2
  39. package/dist/device/register/0.1/payload.js.map +1 -1
  40. package/dist/device/register/0.2/payload.d.ts +4 -4
  41. package/dist/device/register/0.2/payload.d.ts.map +1 -1
  42. package/dist/device/register/0.2/payload.js +4 -2
  43. package/dist/device/register/0.2/payload.js.map +1 -1
  44. package/dist/git-ns/_shared/0.4/git-ns.d.ts +16 -0
  45. package/dist/git-ns/_shared/0.4/git-ns.d.ts.map +1 -0
  46. package/dist/git-ns/_shared/0.4/git-ns.js +6 -0
  47. package/dist/git-ns/_shared/0.4/git-ns.js.map +1 -0
  48. package/dist/git-ns/account/link-status/0.1/payload.d.ts +2 -2
  49. package/dist/git-ns/account/link-status/0.1/payload.js +2 -2
  50. package/dist/git-ns/account/link-status/0.1/payload.js.map +1 -1
  51. package/dist/git-ns/account/unlink/0.1/payload.d.ts +411 -0
  52. package/dist/git-ns/account/unlink/0.1/payload.d.ts.map +1 -0
  53. package/dist/git-ns/account/unlink/0.1/payload.js +228 -0
  54. package/dist/git-ns/account/unlink/0.1/payload.js.map +1 -0
  55. package/dist/git-ns/bridge/event/0.3/payload.d.ts +1682 -0
  56. package/dist/git-ns/bridge/event/0.3/payload.d.ts.map +1 -0
  57. package/dist/git-ns/bridge/event/0.3/payload.js +971 -0
  58. package/dist/git-ns/bridge/event/0.3/payload.js.map +1 -0
  59. package/dist/git-ns/bridge/job/0.4/payload.d.ts +1068 -0
  60. package/dist/git-ns/bridge/job/0.4/payload.d.ts.map +1 -0
  61. package/dist/git-ns/bridge/job/0.4/payload.js +573 -0
  62. package/dist/git-ns/bridge/job/0.4/payload.js.map +1 -0
  63. package/dist/git-ns/drift/resolve/0.3/payload.d.ts +1072 -0
  64. package/dist/git-ns/drift/resolve/0.3/payload.d.ts.map +1 -0
  65. package/dist/git-ns/drift/resolve/0.3/payload.js +634 -0
  66. package/dist/git-ns/drift/resolve/0.3/payload.js.map +1 -0
  67. package/dist/git-ns/namespace/reseat/0.3/payload.d.ts +515 -0
  68. package/dist/git-ns/namespace/reseat/0.3/payload.d.ts.map +1 -0
  69. package/dist/git-ns/namespace/reseat/0.3/payload.js +296 -0
  70. package/dist/git-ns/namespace/reseat/0.3/payload.js.map +1 -0
  71. package/dist/git-ns/repo/create/0.3/payload.d.ts +1101 -0
  72. package/dist/git-ns/repo/create/0.3/payload.d.ts.map +1 -0
  73. package/dist/git-ns/repo/create/0.3/payload.js +646 -0
  74. package/dist/git-ns/repo/create/0.3/payload.js.map +1 -0
  75. package/dist/git-ns/right/break-glass/0.1/payload.d.ts +685 -0
  76. package/dist/git-ns/right/break-glass/0.1/payload.d.ts.map +1 -0
  77. package/dist/git-ns/right/break-glass/0.1/payload.js +397 -0
  78. package/dist/git-ns/right/break-glass/0.1/payload.js.map +1 -0
  79. package/dist/git-ns/right/break-glass-notice/0.1/payload.d.ts +384 -0
  80. package/dist/git-ns/right/break-glass-notice/0.1/payload.d.ts.map +1 -0
  81. package/dist/git-ns/right/break-glass-notice/0.1/payload.js +216 -0
  82. package/dist/git-ns/right/break-glass-notice/0.1/payload.js.map +1 -0
  83. package/dist/git-ns/right/grant/0.3/payload.d.ts +678 -0
  84. package/dist/git-ns/right/grant/0.3/payload.d.ts.map +1 -0
  85. package/dist/git-ns/right/grant/0.3/payload.js +383 -0
  86. package/dist/git-ns/right/grant/0.3/payload.js.map +1 -0
  87. package/dist/git-ns/right/ratify/0.1/payload.d.ts +702 -0
  88. package/dist/git-ns/right/ratify/0.1/payload.d.ts.map +1 -0
  89. package/dist/git-ns/right/ratify/0.1/payload.js +404 -0
  90. package/dist/git-ns/right/ratify/0.1/payload.js.map +1 -0
  91. package/dist/git-ns/right/revoke/0.3/payload.d.ts +664 -0
  92. package/dist/git-ns/right/revoke/0.3/payload.d.ts.map +1 -0
  93. package/dist/git-ns/right/revoke/0.3/payload.js +378 -0
  94. package/dist/git-ns/right/revoke/0.3/payload.js.map +1 -0
  95. package/dist/git-ns/roles/reproject/0.1/payload.d.ts +325 -0
  96. package/dist/git-ns/roles/reproject/0.1/payload.d.ts.map +1 -0
  97. package/dist/git-ns/roles/reproject/0.1/payload.js +176 -0
  98. package/dist/git-ns/roles/reproject/0.1/payload.js.map +1 -0
  99. package/dist/git-ns/view/0.1/payload.d.ts +2 -2
  100. package/dist/git-ns/view/0.1/payload.js +2 -2
  101. package/dist/git-ns/view/0.1/payload.js.map +1 -1
  102. package/dist/git-ns/view/0.2/payload.d.ts +2 -2
  103. package/dist/git-ns/view/0.2/payload.js +2 -2
  104. package/dist/git-ns/view/0.2/payload.js.map +1 -1
  105. package/dist/git-ns/view/0.3/payload.d.ts +2 -2
  106. package/dist/git-ns/view/0.3/payload.js +2 -2
  107. package/dist/git-ns/view/0.3/payload.js.map +1 -1
  108. package/dist/git-ns/view/0.4/payload.d.ts +1696 -0
  109. package/dist/git-ns/view/0.4/payload.d.ts.map +1 -0
  110. package/dist/git-ns/view/0.4/payload.js +1012 -0
  111. package/dist/git-ns/view/0.4/payload.js.map +1 -0
  112. package/dist/index.d.ts +30 -0
  113. package/dist/index.d.ts.map +1 -1
  114. package/dist/index.js +30 -0
  115. package/dist/index.js.map +1 -1
  116. package/dist/messaging/message/status/0.1/payload.d.ts +372 -0
  117. package/dist/messaging/message/status/0.1/payload.d.ts.map +1 -0
  118. package/dist/messaging/message/status/0.1/payload.js +214 -0
  119. package/dist/messaging/message/status/0.1/payload.js.map +1 -0
  120. package/dist/vta/_shared/0.3/did-key-roles.d.ts +16 -0
  121. package/dist/vta/_shared/0.3/did-key-roles.d.ts.map +1 -0
  122. package/dist/vta/_shared/0.3/did-key-roles.js +6 -0
  123. package/dist/vta/_shared/0.3/did-key-roles.js.map +1 -0
  124. package/dist/vta/attestation/mnemonic-export/1.0/payload.d.ts +326 -0
  125. package/dist/vta/attestation/mnemonic-export/1.0/payload.d.ts.map +1 -0
  126. package/dist/vta/attestation/mnemonic-export/1.0/payload.js +175 -0
  127. package/dist/vta/attestation/mnemonic-export/1.0/payload.js.map +1 -0
  128. package/dist/vta/webvh/dids/keys/add/1.0/payload.d.ts +1914 -0
  129. package/dist/vta/webvh/dids/keys/add/1.0/payload.d.ts.map +1 -0
  130. package/dist/vta/webvh/dids/keys/add/1.0/payload.js +1128 -0
  131. package/dist/vta/webvh/dids/keys/add/1.0/payload.js.map +1 -0
  132. package/dist/vta/webvh/dids/keys/list/1.0/payload.d.ts +1603 -0
  133. package/dist/vta/webvh/dids/keys/list/1.0/payload.d.ts.map +1 -0
  134. package/dist/vta/webvh/dids/keys/list/1.0/payload.js +942 -0
  135. package/dist/vta/webvh/dids/keys/list/1.0/payload.js.map +1 -0
  136. package/dist/vta/webvh/dids/keys/retire/1.0/payload.d.ts +1914 -0
  137. package/dist/vta/webvh/dids/keys/retire/1.0/payload.d.ts.map +1 -0
  138. package/dist/vta/webvh/dids/keys/retire/1.0/payload.js +1123 -0
  139. package/dist/vta/webvh/dids/keys/retire/1.0/payload.js.map +1 -0
  140. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.d.ts +2021 -0
  141. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.d.ts.map +1 -0
  142. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.js +1168 -0
  143. package/dist/vta/webvh/dids/keys/revoke/1.0/payload.js.map +1 -0
  144. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.d.ts +1992 -0
  145. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.d.ts.map +1 -0
  146. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.js +1151 -0
  147. package/dist/vta/webvh/dids/rotate-keys/2.0/payload.js.map +1 -0
  148. package/dist/vta/webvh/dids/update/2.0/payload.d.ts +1062 -0
  149. package/dist/vta/webvh/dids/update/2.0/payload.d.ts.map +1 -0
  150. package/dist/vta/webvh/dids/update/2.0/payload.js +616 -0
  151. package/dist/vta/webvh/dids/update/2.0/payload.js.map +1 -0
  152. package/dist/vtc/credentials/reissue/0.1/payload.d.ts +502 -0
  153. package/dist/vtc/credentials/reissue/0.1/payload.d.ts.map +1 -0
  154. package/dist/vtc/credentials/reissue/0.1/payload.js +282 -0
  155. package/dist/vtc/credentials/reissue/0.1/payload.js.map +1 -0
  156. package/dist/vtc/members/personhood/challenge/0.1/payload.d.ts +2 -2
  157. package/dist/vtc/members/personhood/challenge/0.1/payload.js +2 -2
  158. package/dist/vtc/members/personhood/challenge/0.1/payload.js.map +1 -1
  159. package/dist/vtc/vetting/vetters/profile/0.1/payload.d.ts +2 -2
  160. package/dist/vtc/vetting/vetters/profile/0.1/payload.js +2 -2
  161. package/dist/vtc/vetting/vetters/profile/0.1/payload.js.map +1 -1
  162. package/dist/vtc/vetting/vetters/resend/0.1/payload.d.ts +2 -2
  163. package/dist/vtc/vetting/vetters/resend/0.1/payload.js +2 -2
  164. package/dist/vtc/vetting/vetters/resend/0.1/payload.js.map +1 -1
  165. package/package.json +1 -1
  166. package/src/_shared/components.ts +313 -2
  167. package/src/auth/passkey/enroll/invite/0.2/payload.ts +325 -0
  168. package/src/auth/passkey/enroll/redeem/finish/0.1/payload.ts +499 -0
  169. package/src/auth/passkey/enroll/redeem/start/0.1/payload.ts +700 -0
  170. package/src/auth/passkey/revoke/finish/0.2/payload.ts +379 -0
  171. package/src/auth/passkey/revoke/start/0.2/payload.ts +349 -0
  172. package/src/auth/step-up/approve-response/0.5/payload.ts +593 -0
  173. package/src/device/list/0.1/payload.ts +4 -2
  174. package/src/device/list/0.2/payload.ts +4 -2
  175. package/src/device/register/0.1/payload.ts +4 -2
  176. package/src/device/register/0.2/payload.ts +4 -2
  177. package/src/git-ns/_shared/0.4/git-ns.ts +17 -0
  178. package/src/git-ns/account/link-status/0.1/payload.ts +2 -2
  179. package/src/git-ns/account/unlink/0.1/payload.ts +274 -0
  180. package/src/git-ns/bridge/event/0.3/payload.ts +1132 -0
  181. package/src/git-ns/bridge/job/0.4/payload.ts +691 -0
  182. package/src/git-ns/drift/resolve/0.3/payload.ts +707 -0
  183. package/src/git-ns/namespace/reseat/0.3/payload.ts +342 -0
  184. package/src/git-ns/repo/create/0.3/payload.ts +706 -0
  185. package/src/git-ns/right/break-glass/0.1/payload.ts +443 -0
  186. package/src/git-ns/right/break-glass-notice/0.1/payload.ts +258 -0
  187. package/src/git-ns/right/grant/0.3/payload.ts +434 -0
  188. package/src/git-ns/right/ratify/0.1/payload.ts +455 -0
  189. package/src/git-ns/right/revoke/0.3/payload.ts +425 -0
  190. package/src/git-ns/roles/reproject/0.1/payload.ts +220 -0
  191. package/src/git-ns/view/0.1/payload.ts +2 -2
  192. package/src/git-ns/view/0.2/payload.ts +2 -2
  193. package/src/git-ns/view/0.3/payload.ts +2 -2
  194. package/src/git-ns/view/0.4/payload.ts +1075 -0
  195. package/src/index.ts +30 -0
  196. package/src/messaging/message/status/0.1/payload.ts +270 -0
  197. package/src/vta/_shared/0.3/did-key-roles.ts +17 -0
  198. package/src/vta/attestation/mnemonic-export/1.0/payload.ts +232 -0
  199. package/src/vta/webvh/dids/keys/add/1.0/payload.ts +1217 -0
  200. package/src/vta/webvh/dids/keys/list/1.0/payload.ts +1004 -0
  201. package/src/vta/webvh/dids/keys/retire/1.0/payload.ts +1212 -0
  202. package/src/vta/webvh/dids/keys/revoke/1.0/payload.ts +1276 -0
  203. package/src/vta/webvh/dids/rotate-keys/2.0/payload.ts +1262 -0
  204. package/src/vta/webvh/dids/update/2.0/payload.ts +713 -0
  205. package/src/vtc/credentials/reissue/0.1/payload.ts +357 -0
  206. package/src/vtc/members/personhood/challenge/0.1/payload.ts +2 -2
  207. package/src/vtc/vetting/vetters/profile/0.1/payload.ts +2 -2
  208. package/src/vtc/vetting/vetters/resend/0.1/payload.ts +2 -2
@@ -0,0 +1,533 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/auth/passkey/revoke/finish/0.2/payload.schema.json
4
+ */
5
+ import type { AuthenticatorAssertionResponseLogin, Ext } from "../../../../../_shared/components.js";
6
+ /**
7
+ * Submit the user-verification assertion that completes a passkey revocation. On success the auth service unbinds the credential named at start. The payload carries no target — the revocationId is bound to it server-side.
8
+ */
9
+ export interface AuthPasskeyRevokeFinish {
10
+ /**
11
+ * The revocationId issued by the matching auth/passkey/revoke/start response. Echoed verbatim.
12
+ */
13
+ revocationId: string;
14
+ /**
15
+ * AuthenticatorAssertionResponse as returned by navigator.credentials.get over the uvOptions from start. Binary fields base64url-encoded.
16
+ */
17
+ uvCredential: AuthenticatorAssertionResponseLogin;
18
+ /**
19
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
20
+ */
21
+ ext?: Ext;
22
+ }
23
+ /**
24
+ * Acknowledgement of the removed credential. Carried in a Trust Task document whose type is https://trusttasks.org/spec/auth/passkey/revoke/finish/0.2#response.
25
+ */
26
+ export interface AuthPasskeyRevokeFinishResponsePayload {
27
+ /**
28
+ * The credential that was removed. Echoed from the server-side binding rather than from the request, so the producer can confirm the ceremony destroyed what they intended.
29
+ */
30
+ credentialId: string;
31
+ /**
32
+ * New in 0.2. The VID the revoked credential was bound to.
33
+ */
34
+ subject: string;
35
+ /**
36
+ * New in 0.2. What the revoked credential authenticated. `remaining` counts the subject's credentials of this purpose.
37
+ */
38
+ purpose: "session" | "stepUp";
39
+ /**
40
+ * When the credential was unbound.
41
+ */
42
+ revokedAt: string;
43
+ /**
44
+ * How many credentials of the revoked credential's purpose the subject still has. For a session credential never zero — the last-credential guard guarantees it; for a step-up credential it may be zero. Present so whoever just pruned an estate knows what is left without a second round-trip.
45
+ */
46
+ remaining: number;
47
+ /**
48
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
49
+ */
50
+ ext?: Ext;
51
+ }
52
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
53
+ export type { AuthenticatorAssertionResponseLogin, Ext };
54
+ /** Trust Task type URI. */
55
+ export declare const TYPE_URI: "https://trusttasks.org/spec/auth/passkey/revoke/finish/0.2";
56
+ /** Stable alias for this specification's request payload shape. */
57
+ export type Payload = AuthPasskeyRevokeFinish;
58
+ /** Trust Task response type URI (request type URI + "#response"). */
59
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/auth/passkey/revoke/finish/0.2#response";
60
+ /** Stable alias for this specification's success-response payload shape. */
61
+ export type Response = AuthPasskeyRevokeFinishResponsePayload;
62
+ /**
63
+ * This specification's payload schema, as a value.
64
+ *
65
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
66
+ * rather than only as a `.json` file because TypeScript types are erased
67
+ * at runtime: without a schema a consumer has nothing to validate, and
68
+ * every REQUIRED payload member is optional in practice. Cross-file
69
+ * `$ref`s are already inlined, so it needs no resolver.
70
+ */
71
+ export declare const PAYLOAD_SCHEMA: {
72
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
73
+ readonly $id: "https://trusttasks.org/spec/auth/passkey/revoke/finish/0.2";
74
+ readonly title: "Auth — Passkey Revoke (finish)";
75
+ readonly description: "Submit the user-verification assertion that completes a passkey revocation. On success the auth service unbinds the credential named at start. The payload carries no target — the revocationId is bound to it server-side.";
76
+ readonly type: "object";
77
+ readonly additionalProperties: false;
78
+ readonly required: readonly ["revocationId", "uvCredential"];
79
+ readonly properties: {
80
+ readonly revocationId: {
81
+ readonly type: "string";
82
+ readonly minLength: 1;
83
+ readonly description: "The revocationId issued by the matching auth/passkey/revoke/start response. Echoed verbatim.";
84
+ };
85
+ readonly uvCredential: {
86
+ readonly $ref: "#/$defs/AssertionResponse";
87
+ readonly description: "AuthenticatorAssertionResponse as returned by navigator.credentials.get over the uvOptions from start. Binary fields base64url-encoded.";
88
+ };
89
+ readonly ext: {
90
+ readonly $ref: "#/$defs/Ext";
91
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
92
+ };
93
+ };
94
+ readonly $defs: {
95
+ readonly Response: {
96
+ readonly $anchor: "response";
97
+ readonly title: "Auth Passkey Revoke Finish — response payload";
98
+ readonly description: "Acknowledgement of the removed credential. Carried in a Trust Task document whose type is https://trusttasks.org/spec/auth/passkey/revoke/finish/0.2#response.";
99
+ readonly type: "object";
100
+ readonly additionalProperties: false;
101
+ readonly required: readonly ["credentialId", "revokedAt", "remaining", "subject", "purpose"];
102
+ readonly properties: {
103
+ readonly credentialId: {
104
+ readonly type: "string";
105
+ readonly minLength: 1;
106
+ readonly description: "The credential that was removed. Echoed from the server-side binding rather than from the request, so the producer can confirm the ceremony destroyed what they intended.";
107
+ };
108
+ readonly subject: {
109
+ readonly type: "string";
110
+ readonly minLength: 1;
111
+ readonly description: "New in 0.2. The VID the revoked credential was bound to.";
112
+ };
113
+ readonly purpose: {
114
+ readonly type: "string";
115
+ readonly enum: readonly ["session", "stepUp"];
116
+ readonly description: "New in 0.2. What the revoked credential authenticated. `remaining` counts the subject's credentials of this purpose.";
117
+ };
118
+ readonly revokedAt: {
119
+ readonly type: "string";
120
+ readonly format: "date-time";
121
+ readonly description: "When the credential was unbound.";
122
+ };
123
+ readonly remaining: {
124
+ readonly type: "integer";
125
+ readonly minimum: 0;
126
+ readonly description: "How many credentials of the revoked credential's purpose the subject still has. For a session credential never zero — the last-credential guard guarantees it; for a step-up credential it may be zero. Present so whoever just pruned an estate knows what is left without a second round-trip.";
127
+ };
128
+ readonly ext: {
129
+ readonly $ref: "#/$defs/Ext";
130
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
131
+ };
132
+ };
133
+ };
134
+ readonly Ext: {
135
+ readonly title: "Ext";
136
+ 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.";
137
+ readonly type: "object";
138
+ readonly minProperties: 1;
139
+ readonly additionalProperties: true;
140
+ readonly propertyNames: {
141
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
142
+ };
143
+ };
144
+ readonly AssertionResponse: {
145
+ readonly $anchor: "assertionResponse";
146
+ readonly title: "AuthenticatorAssertionResponse (login)";
147
+ readonly description: "The credential the client returns from `navigator.credentials.get`. Binary fields are base64url-encoded.";
148
+ readonly type: "object";
149
+ readonly additionalProperties: false;
150
+ readonly required: readonly ["id", "rawId", "type", "response"];
151
+ readonly properties: {
152
+ readonly id: {
153
+ readonly type: "string";
154
+ };
155
+ readonly rawId: {
156
+ readonly type: "string";
157
+ };
158
+ readonly type: {
159
+ readonly const: "public-key";
160
+ };
161
+ readonly response: {
162
+ readonly type: "object";
163
+ readonly additionalProperties: false;
164
+ readonly required: readonly ["clientDataJSON", "authenticatorData", "signature"];
165
+ readonly properties: {
166
+ readonly clientDataJSON: {
167
+ readonly type: "string";
168
+ };
169
+ readonly authenticatorData: {
170
+ readonly type: "string";
171
+ };
172
+ readonly signature: {
173
+ readonly type: "string";
174
+ };
175
+ readonly userHandle: {
176
+ readonly type: readonly ["string", "null"];
177
+ };
178
+ };
179
+ };
180
+ readonly authenticatorAttachment: {
181
+ readonly enum: readonly ["platform", "cross-platform"];
182
+ };
183
+ readonly clientExtensionResults: {
184
+ readonly type: "object";
185
+ };
186
+ };
187
+ };
188
+ };
189
+ };
190
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
191
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
192
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
193
+ readonly $ref: "#/$defs/Response";
194
+ readonly $defs: {
195
+ readonly Response: {
196
+ readonly $anchor: "response";
197
+ readonly title: "Auth Passkey Revoke Finish — response payload";
198
+ readonly description: "Acknowledgement of the removed credential. Carried in a Trust Task document whose type is https://trusttasks.org/spec/auth/passkey/revoke/finish/0.2#response.";
199
+ readonly type: "object";
200
+ readonly additionalProperties: false;
201
+ readonly required: readonly ["credentialId", "revokedAt", "remaining", "subject", "purpose"];
202
+ readonly properties: {
203
+ readonly credentialId: {
204
+ readonly type: "string";
205
+ readonly minLength: 1;
206
+ readonly description: "The credential that was removed. Echoed from the server-side binding rather than from the request, so the producer can confirm the ceremony destroyed what they intended.";
207
+ };
208
+ readonly subject: {
209
+ readonly type: "string";
210
+ readonly minLength: 1;
211
+ readonly description: "New in 0.2. The VID the revoked credential was bound to.";
212
+ };
213
+ readonly purpose: {
214
+ readonly type: "string";
215
+ readonly enum: readonly ["session", "stepUp"];
216
+ readonly description: "New in 0.2. What the revoked credential authenticated. `remaining` counts the subject's credentials of this purpose.";
217
+ };
218
+ readonly revokedAt: {
219
+ readonly type: "string";
220
+ readonly format: "date-time";
221
+ readonly description: "When the credential was unbound.";
222
+ };
223
+ readonly remaining: {
224
+ readonly type: "integer";
225
+ readonly minimum: 0;
226
+ readonly description: "How many credentials of the revoked credential's purpose the subject still has. For a session credential never zero — the last-credential guard guarantees it; for a step-up credential it may be zero. Present so whoever just pruned an estate knows what is left without a second round-trip.";
227
+ };
228
+ readonly ext: {
229
+ readonly $ref: "#/$defs/Ext";
230
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
231
+ };
232
+ };
233
+ };
234
+ readonly Ext: {
235
+ readonly title: "Ext";
236
+ 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.";
237
+ readonly type: "object";
238
+ readonly minProperties: 1;
239
+ readonly additionalProperties: true;
240
+ readonly propertyNames: {
241
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
242
+ };
243
+ };
244
+ readonly AssertionResponse: {
245
+ readonly $anchor: "assertionResponse";
246
+ readonly title: "AuthenticatorAssertionResponse (login)";
247
+ readonly description: "The credential the client returns from `navigator.credentials.get`. Binary fields are base64url-encoded.";
248
+ readonly type: "object";
249
+ readonly additionalProperties: false;
250
+ readonly required: readonly ["id", "rawId", "type", "response"];
251
+ readonly properties: {
252
+ readonly id: {
253
+ readonly type: "string";
254
+ };
255
+ readonly rawId: {
256
+ readonly type: "string";
257
+ };
258
+ readonly type: {
259
+ readonly const: "public-key";
260
+ };
261
+ readonly response: {
262
+ readonly type: "object";
263
+ readonly additionalProperties: false;
264
+ readonly required: readonly ["clientDataJSON", "authenticatorData", "signature"];
265
+ readonly properties: {
266
+ readonly clientDataJSON: {
267
+ readonly type: "string";
268
+ };
269
+ readonly authenticatorData: {
270
+ readonly type: "string";
271
+ };
272
+ readonly signature: {
273
+ readonly type: "string";
274
+ };
275
+ readonly userHandle: {
276
+ readonly type: readonly ["string", "null"];
277
+ };
278
+ };
279
+ };
280
+ readonly authenticatorAttachment: {
281
+ readonly enum: readonly ["platform", "cross-platform"];
282
+ };
283
+ readonly clientExtensionResults: {
284
+ readonly type: "object";
285
+ };
286
+ };
287
+ };
288
+ };
289
+ };
290
+ /**
291
+ * SPEC.md §7.2 policy for the request variant, from this specification's
292
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
293
+ * per-specification and cannot be derived from the document alone, and
294
+ * item 2 needs the schema this carries.
295
+ */
296
+ export declare const SPEC: {
297
+ readonly typeUri: "https://trusttasks.org/spec/auth/passkey/revoke/finish/0.2";
298
+ readonly isBearer: false;
299
+ readonly isProofRequired: true;
300
+ readonly isRecipientRequired: true;
301
+ readonly isIssuedAtRequired: true;
302
+ readonly payloadSchema: {
303
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
304
+ readonly $id: "https://trusttasks.org/spec/auth/passkey/revoke/finish/0.2";
305
+ readonly title: "Auth — Passkey Revoke (finish)";
306
+ readonly description: "Submit the user-verification assertion that completes a passkey revocation. On success the auth service unbinds the credential named at start. The payload carries no target — the revocationId is bound to it server-side.";
307
+ readonly type: "object";
308
+ readonly additionalProperties: false;
309
+ readonly required: readonly ["revocationId", "uvCredential"];
310
+ readonly properties: {
311
+ readonly revocationId: {
312
+ readonly type: "string";
313
+ readonly minLength: 1;
314
+ readonly description: "The revocationId issued by the matching auth/passkey/revoke/start response. Echoed verbatim.";
315
+ };
316
+ readonly uvCredential: {
317
+ readonly $ref: "#/$defs/AssertionResponse";
318
+ readonly description: "AuthenticatorAssertionResponse as returned by navigator.credentials.get over the uvOptions from start. Binary fields base64url-encoded.";
319
+ };
320
+ readonly ext: {
321
+ readonly $ref: "#/$defs/Ext";
322
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
323
+ };
324
+ };
325
+ readonly $defs: {
326
+ readonly Response: {
327
+ readonly $anchor: "response";
328
+ readonly title: "Auth Passkey Revoke Finish — response payload";
329
+ readonly description: "Acknowledgement of the removed credential. Carried in a Trust Task document whose type is https://trusttasks.org/spec/auth/passkey/revoke/finish/0.2#response.";
330
+ readonly type: "object";
331
+ readonly additionalProperties: false;
332
+ readonly required: readonly ["credentialId", "revokedAt", "remaining", "subject", "purpose"];
333
+ readonly properties: {
334
+ readonly credentialId: {
335
+ readonly type: "string";
336
+ readonly minLength: 1;
337
+ readonly description: "The credential that was removed. Echoed from the server-side binding rather than from the request, so the producer can confirm the ceremony destroyed what they intended.";
338
+ };
339
+ readonly subject: {
340
+ readonly type: "string";
341
+ readonly minLength: 1;
342
+ readonly description: "New in 0.2. The VID the revoked credential was bound to.";
343
+ };
344
+ readonly purpose: {
345
+ readonly type: "string";
346
+ readonly enum: readonly ["session", "stepUp"];
347
+ readonly description: "New in 0.2. What the revoked credential authenticated. `remaining` counts the subject's credentials of this purpose.";
348
+ };
349
+ readonly revokedAt: {
350
+ readonly type: "string";
351
+ readonly format: "date-time";
352
+ readonly description: "When the credential was unbound.";
353
+ };
354
+ readonly remaining: {
355
+ readonly type: "integer";
356
+ readonly minimum: 0;
357
+ readonly description: "How many credentials of the revoked credential's purpose the subject still has. For a session credential never zero — the last-credential guard guarantees it; for a step-up credential it may be zero. Present so whoever just pruned an estate knows what is left without a second round-trip.";
358
+ };
359
+ readonly ext: {
360
+ readonly $ref: "#/$defs/Ext";
361
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
362
+ };
363
+ };
364
+ };
365
+ readonly Ext: {
366
+ readonly title: "Ext";
367
+ 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.";
368
+ readonly type: "object";
369
+ readonly minProperties: 1;
370
+ readonly additionalProperties: true;
371
+ readonly propertyNames: {
372
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
373
+ };
374
+ };
375
+ readonly AssertionResponse: {
376
+ readonly $anchor: "assertionResponse";
377
+ readonly title: "AuthenticatorAssertionResponse (login)";
378
+ readonly description: "The credential the client returns from `navigator.credentials.get`. Binary fields are base64url-encoded.";
379
+ readonly type: "object";
380
+ readonly additionalProperties: false;
381
+ readonly required: readonly ["id", "rawId", "type", "response"];
382
+ readonly properties: {
383
+ readonly id: {
384
+ readonly type: "string";
385
+ };
386
+ readonly rawId: {
387
+ readonly type: "string";
388
+ };
389
+ readonly type: {
390
+ readonly const: "public-key";
391
+ };
392
+ readonly response: {
393
+ readonly type: "object";
394
+ readonly additionalProperties: false;
395
+ readonly required: readonly ["clientDataJSON", "authenticatorData", "signature"];
396
+ readonly properties: {
397
+ readonly clientDataJSON: {
398
+ readonly type: "string";
399
+ };
400
+ readonly authenticatorData: {
401
+ readonly type: "string";
402
+ };
403
+ readonly signature: {
404
+ readonly type: "string";
405
+ };
406
+ readonly userHandle: {
407
+ readonly type: readonly ["string", "null"];
408
+ };
409
+ };
410
+ };
411
+ readonly authenticatorAttachment: {
412
+ readonly enum: readonly ["platform", "cross-platform"];
413
+ };
414
+ readonly clientExtensionResults: {
415
+ readonly type: "object";
416
+ };
417
+ };
418
+ };
419
+ };
420
+ };
421
+ };
422
+ /**
423
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
424
+ * tracks the *issuer* party's requirement because a response swaps the
425
+ * parties (§7.3 item 5).
426
+ */
427
+ export declare const RESPONSE_SPEC: {
428
+ readonly typeUri: "https://trusttasks.org/spec/auth/passkey/revoke/finish/0.2#response";
429
+ readonly isBearer: false;
430
+ readonly isProofRequired: true;
431
+ readonly isRecipientRequired: true;
432
+ readonly isIssuedAtRequired: true;
433
+ readonly payloadSchema: {
434
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
435
+ readonly $ref: "#/$defs/Response";
436
+ readonly $defs: {
437
+ readonly Response: {
438
+ readonly $anchor: "response";
439
+ readonly title: "Auth Passkey Revoke Finish — response payload";
440
+ readonly description: "Acknowledgement of the removed credential. Carried in a Trust Task document whose type is https://trusttasks.org/spec/auth/passkey/revoke/finish/0.2#response.";
441
+ readonly type: "object";
442
+ readonly additionalProperties: false;
443
+ readonly required: readonly ["credentialId", "revokedAt", "remaining", "subject", "purpose"];
444
+ readonly properties: {
445
+ readonly credentialId: {
446
+ readonly type: "string";
447
+ readonly minLength: 1;
448
+ readonly description: "The credential that was removed. Echoed from the server-side binding rather than from the request, so the producer can confirm the ceremony destroyed what they intended.";
449
+ };
450
+ readonly subject: {
451
+ readonly type: "string";
452
+ readonly minLength: 1;
453
+ readonly description: "New in 0.2. The VID the revoked credential was bound to.";
454
+ };
455
+ readonly purpose: {
456
+ readonly type: "string";
457
+ readonly enum: readonly ["session", "stepUp"];
458
+ readonly description: "New in 0.2. What the revoked credential authenticated. `remaining` counts the subject's credentials of this purpose.";
459
+ };
460
+ readonly revokedAt: {
461
+ readonly type: "string";
462
+ readonly format: "date-time";
463
+ readonly description: "When the credential was unbound.";
464
+ };
465
+ readonly remaining: {
466
+ readonly type: "integer";
467
+ readonly minimum: 0;
468
+ readonly description: "How many credentials of the revoked credential's purpose the subject still has. For a session credential never zero — the last-credential guard guarantees it; for a step-up credential it may be zero. Present so whoever just pruned an estate knows what is left without a second round-trip.";
469
+ };
470
+ readonly ext: {
471
+ readonly $ref: "#/$defs/Ext";
472
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
473
+ };
474
+ };
475
+ };
476
+ readonly Ext: {
477
+ readonly title: "Ext";
478
+ 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.";
479
+ readonly type: "object";
480
+ readonly minProperties: 1;
481
+ readonly additionalProperties: true;
482
+ readonly propertyNames: {
483
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
484
+ };
485
+ };
486
+ readonly AssertionResponse: {
487
+ readonly $anchor: "assertionResponse";
488
+ readonly title: "AuthenticatorAssertionResponse (login)";
489
+ readonly description: "The credential the client returns from `navigator.credentials.get`. Binary fields are base64url-encoded.";
490
+ readonly type: "object";
491
+ readonly additionalProperties: false;
492
+ readonly required: readonly ["id", "rawId", "type", "response"];
493
+ readonly properties: {
494
+ readonly id: {
495
+ readonly type: "string";
496
+ };
497
+ readonly rawId: {
498
+ readonly type: "string";
499
+ };
500
+ readonly type: {
501
+ readonly const: "public-key";
502
+ };
503
+ readonly response: {
504
+ readonly type: "object";
505
+ readonly additionalProperties: false;
506
+ readonly required: readonly ["clientDataJSON", "authenticatorData", "signature"];
507
+ readonly properties: {
508
+ readonly clientDataJSON: {
509
+ readonly type: "string";
510
+ };
511
+ readonly authenticatorData: {
512
+ readonly type: "string";
513
+ };
514
+ readonly signature: {
515
+ readonly type: "string";
516
+ };
517
+ readonly userHandle: {
518
+ readonly type: readonly ["string", "null"];
519
+ };
520
+ };
521
+ };
522
+ readonly authenticatorAttachment: {
523
+ readonly enum: readonly ["platform", "cross-platform"];
524
+ };
525
+ readonly clientExtensionResults: {
526
+ readonly type: "object";
527
+ };
528
+ };
529
+ };
530
+ };
531
+ };
532
+ };
533
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/auth/passkey/revoke/finish/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,mCAAmC,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGrG;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,EAAE,mCAAmC,CAAC;IAClD;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,sCAAsC;IACrD;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC9B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,mCAAmC,EAAE,GAAG,EAAE,CAAC;AAEzD,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,4DAAqE,CAAC;AAE9F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,uBAAuB,CAAC;AAE9C,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,qEAA8E,CAAC;AAEhH,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,sCAAsC,CAAC;AAE9D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiJjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0H1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}