@openvtc/trust-tasks 0.1.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (256) hide show
  1. package/dist/_framework/0.2/framework.d.ts +11 -0
  2. package/dist/_framework/0.2/framework.d.ts.map +1 -0
  3. package/dist/_framework/0.2/framework.js +6 -0
  4. package/dist/_framework/0.2/framework.js.map +1 -0
  5. package/dist/acl/grant/0.1/payload.d.ts +13 -0
  6. package/dist/acl/grant/0.1/payload.d.ts.map +1 -1
  7. package/dist/acl/grant/0.1/payload.js.map +1 -1
  8. package/dist/auth/passkey/login/finish/0.2/payload.d.ts +42 -0
  9. package/dist/auth/passkey/login/finish/0.2/payload.d.ts.map +1 -0
  10. package/dist/auth/passkey/login/finish/0.2/payload.js +9 -0
  11. package/dist/auth/passkey/login/finish/0.2/payload.js.map +1 -0
  12. package/dist/auth/passkey/login/start/0.2/payload.d.ts +29 -0
  13. package/dist/auth/passkey/login/start/0.2/payload.d.ts.map +1 -0
  14. package/dist/auth/passkey/login/start/0.2/payload.js +9 -0
  15. package/dist/auth/passkey/login/start/0.2/payload.js.map +1 -0
  16. package/dist/auth/step-up/approve-request/0.1/payload.d.ts +28 -0
  17. package/dist/auth/step-up/approve-request/0.1/payload.d.ts.map +1 -1
  18. package/dist/auth/step-up/approve-request/0.1/payload.js.map +1 -1
  19. package/dist/auth/step-up/approve-request/0.2/payload.d.ts +73 -0
  20. package/dist/auth/step-up/approve-request/0.2/payload.d.ts.map +1 -0
  21. package/dist/auth/step-up/approve-request/0.2/payload.js +9 -0
  22. package/dist/auth/step-up/approve-request/0.2/payload.js.map +1 -0
  23. package/dist/auth/step-up/approve-response/0.1/payload.d.ts +31 -0
  24. package/dist/auth/step-up/approve-response/0.1/payload.d.ts.map +1 -1
  25. package/dist/auth/step-up/approve-response/0.1/payload.js.map +1 -1
  26. package/dist/auth/step-up/approve-response/0.2/payload.d.ts +76 -0
  27. package/dist/auth/step-up/approve-response/0.2/payload.d.ts.map +1 -0
  28. package/dist/auth/step-up/approve-response/0.2/payload.js +9 -0
  29. package/dist/auth/step-up/approve-response/0.2/payload.js.map +1 -0
  30. package/dist/auth/step-up/policy/0.1/payload.d.ts +43 -0
  31. package/dist/auth/step-up/policy/0.1/payload.d.ts.map +1 -0
  32. package/dist/auth/step-up/policy/0.1/payload.js +9 -0
  33. package/dist/auth/step-up/policy/0.1/payload.js.map +1 -0
  34. package/dist/auth/step-up/policy/0.2/payload.d.ts +43 -0
  35. package/dist/auth/step-up/policy/0.2/payload.d.ts.map +1 -0
  36. package/dist/auth/step-up/policy/0.2/payload.js +9 -0
  37. package/dist/auth/step-up/policy/0.2/payload.js.map +1 -0
  38. package/dist/device/_shared/0.2/device-binding.d.ts +11 -0
  39. package/dist/device/_shared/0.2/device-binding.d.ts.map +1 -0
  40. package/dist/device/_shared/0.2/device-binding.js +6 -0
  41. package/dist/device/_shared/0.2/device-binding.js.map +1 -0
  42. package/dist/device/heartbeat/0.2/payload.d.ts +29 -0
  43. package/dist/device/heartbeat/0.2/payload.d.ts.map +1 -0
  44. package/dist/device/heartbeat/0.2/payload.js +9 -0
  45. package/dist/device/heartbeat/0.2/payload.js.map +1 -0
  46. package/dist/device/list/0.2/payload.d.ts +37 -0
  47. package/dist/device/list/0.2/payload.d.ts.map +1 -0
  48. package/dist/device/list/0.2/payload.js +9 -0
  49. package/dist/device/list/0.2/payload.js.map +1 -0
  50. package/dist/device/register/0.1/payload.d.ts +18 -0
  51. package/dist/device/register/0.1/payload.d.ts.map +1 -1
  52. package/dist/device/register/0.1/payload.js.map +1 -1
  53. package/dist/device/register/0.2/payload.d.ts +97 -0
  54. package/dist/device/register/0.2/payload.d.ts.map +1 -0
  55. package/dist/device/register/0.2/payload.js +9 -0
  56. package/dist/device/register/0.2/payload.js.map +1 -0
  57. package/dist/device/set-wake/0.1/payload.d.ts +43 -0
  58. package/dist/device/set-wake/0.1/payload.d.ts.map +1 -0
  59. package/dist/device/set-wake/0.1/payload.js +9 -0
  60. package/dist/device/set-wake/0.1/payload.js.map +1 -0
  61. package/dist/device/set-wake/0.2/payload.d.ts +43 -0
  62. package/dist/device/set-wake/0.2/payload.d.ts.map +1 -0
  63. package/dist/device/set-wake/0.2/payload.js +9 -0
  64. package/dist/device/set-wake/0.2/payload.js.map +1 -0
  65. package/dist/device/wipe/0.2/payload.d.ts +37 -0
  66. package/dist/device/wipe/0.2/payload.d.ts.map +1 -0
  67. package/dist/device/wipe/0.2/payload.js +9 -0
  68. package/dist/device/wipe/0.2/payload.js.map +1 -0
  69. package/dist/did-management/did/check-name/0.1/payload.d.ts +5 -2
  70. package/dist/did-management/did/check-name/0.1/payload.d.ts.map +1 -1
  71. package/dist/did-management/did/check-name/0.1/payload.js.map +1 -1
  72. package/dist/index.d.ts +63 -17
  73. package/dist/index.d.ts.map +1 -1
  74. package/dist/index.js +63 -17
  75. package/dist/index.js.map +1 -1
  76. package/dist/policy/_shared/0.2/policy.d.ts +11 -0
  77. package/dist/policy/_shared/0.2/policy.d.ts.map +1 -0
  78. package/dist/policy/_shared/0.2/policy.js +6 -0
  79. package/dist/policy/_shared/0.2/policy.js.map +1 -0
  80. package/dist/policy/evaluate/0.2/payload.d.ts +99 -0
  81. package/dist/policy/evaluate/0.2/payload.d.ts.map +1 -0
  82. package/dist/policy/evaluate/0.2/payload.js +9 -0
  83. package/dist/policy/evaluate/0.2/payload.js.map +1 -0
  84. package/dist/policy/list/0.2/payload.d.ts +22 -0
  85. package/dist/policy/list/0.2/payload.d.ts.map +1 -0
  86. package/dist/policy/list/0.2/payload.js +9 -0
  87. package/dist/policy/list/0.2/payload.js.map +1 -0
  88. package/dist/policy/upsert/0.2/payload.d.ts +29 -0
  89. package/dist/policy/upsert/0.2/payload.d.ts.map +1 -0
  90. package/dist/policy/upsert/0.2/payload.js +9 -0
  91. package/dist/policy/upsert/0.2/payload.js.map +1 -0
  92. package/dist/provision/integration/0.2/payload.d.ts +178 -0
  93. package/dist/provision/integration/0.2/payload.d.ts.map +1 -0
  94. package/dist/provision/integration/0.2/payload.js +9 -0
  95. package/dist/provision/integration/0.2/payload.js.map +1 -0
  96. package/dist/push/provision/0.1/payload.d.ts +35 -0
  97. package/dist/push/provision/0.1/payload.d.ts.map +1 -0
  98. package/dist/push/provision/0.1/payload.js +9 -0
  99. package/dist/push/provision/0.1/payload.js.map +1 -0
  100. package/dist/push/provision/0.2/payload.d.ts +35 -0
  101. package/dist/push/provision/0.2/payload.d.ts.map +1 -0
  102. package/dist/push/provision/0.2/payload.js +9 -0
  103. package/dist/push/provision/0.2/payload.js.map +1 -0
  104. package/dist/push/register/0.1/payload.d.ts +72 -0
  105. package/dist/push/register/0.1/payload.d.ts.map +1 -0
  106. package/dist/push/register/0.1/payload.js +9 -0
  107. package/dist/push/register/0.1/payload.js.map +1 -0
  108. package/dist/push/register/0.2/payload.d.ts +72 -0
  109. package/dist/push/register/0.2/payload.d.ts.map +1 -0
  110. package/dist/push/register/0.2/payload.js +9 -0
  111. package/dist/push/register/0.2/payload.js.map +1 -0
  112. package/dist/push/wake/0.1/payload.d.ts +41 -0
  113. package/dist/push/wake/0.1/payload.d.ts.map +1 -0
  114. package/dist/push/wake/0.1/payload.js +9 -0
  115. package/dist/push/wake/0.1/payload.js.map +1 -0
  116. package/dist/push/wake/0.2/payload.d.ts +41 -0
  117. package/dist/push/wake/0.2/payload.d.ts.map +1 -0
  118. package/dist/push/wake/0.2/payload.js +9 -0
  119. package/dist/push/wake/0.2/payload.js.map +1 -0
  120. package/dist/sync/_shared/0.2/sync-event.d.ts +11 -0
  121. package/dist/sync/_shared/0.2/sync-event.d.ts.map +1 -0
  122. package/dist/sync/_shared/0.2/sync-event.js +6 -0
  123. package/dist/sync/_shared/0.2/sync-event.js.map +1 -0
  124. package/dist/sync/event/0.2/payload.d.ts +208 -0
  125. package/dist/sync/event/0.2/payload.d.ts.map +1 -0
  126. package/dist/sync/event/0.2/payload.js +9 -0
  127. package/dist/sync/event/0.2/payload.js.map +1 -0
  128. package/dist/trust-task-error/0.2/payload.d.ts +36 -0
  129. package/dist/trust-task-error/0.2/payload.d.ts.map +1 -0
  130. package/dist/trust-task-error/0.2/payload.js +9 -0
  131. package/dist/trust-task-error/0.2/payload.js.map +1 -0
  132. package/dist/vault/_shared/0.2/consumer-context.d.ts +11 -0
  133. package/dist/vault/_shared/0.2/consumer-context.d.ts.map +1 -0
  134. package/dist/vault/_shared/0.2/consumer-context.js +6 -0
  135. package/dist/vault/_shared/0.2/consumer-context.js.map +1 -0
  136. package/dist/vault/_shared/0.2/sealed-envelope.d.ts +15 -0
  137. package/dist/vault/_shared/0.2/sealed-envelope.d.ts.map +1 -0
  138. package/dist/vault/_shared/0.2/sealed-envelope.js +6 -0
  139. package/dist/vault/_shared/0.2/sealed-envelope.js.map +1 -0
  140. package/dist/vault/_shared/0.2/session-blob.d.ts +13 -0
  141. package/dist/vault/_shared/0.2/session-blob.d.ts.map +1 -0
  142. package/dist/vault/_shared/0.2/session-blob.js +6 -0
  143. package/dist/vault/_shared/0.2/session-blob.js.map +1 -0
  144. package/dist/vault/_shared/0.2/vault-entry.d.ts +13 -0
  145. package/dist/vault/_shared/0.2/vault-entry.d.ts.map +1 -0
  146. package/dist/vault/_shared/0.2/vault-entry.js +6 -0
  147. package/dist/vault/_shared/0.2/vault-entry.js.map +1 -0
  148. package/dist/vault/_shared/0.2/vault-secret.d.ts +15 -0
  149. package/dist/vault/_shared/0.2/vault-secret.d.ts.map +1 -0
  150. package/dist/vault/_shared/0.2/vault-secret.js +6 -0
  151. package/dist/vault/_shared/0.2/vault-secret.js.map +1 -0
  152. package/dist/vault/get/0.2/payload.d.ts +25 -0
  153. package/dist/vault/get/0.2/payload.d.ts.map +1 -0
  154. package/dist/vault/get/0.2/payload.js +9 -0
  155. package/dist/vault/get/0.2/payload.js.map +1 -0
  156. package/dist/vault/list/0.2/payload.d.ts +74 -0
  157. package/dist/vault/list/0.2/payload.d.ts.map +1 -0
  158. package/dist/vault/list/0.2/payload.js +9 -0
  159. package/dist/vault/list/0.2/payload.js.map +1 -0
  160. package/dist/vault/proxy-login/0.2/payload.d.ts +109 -0
  161. package/dist/vault/proxy-login/0.2/payload.d.ts.map +1 -0
  162. package/dist/vault/proxy-login/0.2/payload.js +9 -0
  163. package/dist/vault/proxy-login/0.2/payload.js.map +1 -0
  164. package/dist/vault/release/0.2/payload.d.ts +102 -0
  165. package/dist/vault/release/0.2/payload.d.ts.map +1 -0
  166. package/dist/vault/release/0.2/payload.js +9 -0
  167. package/dist/vault/release/0.2/payload.js.map +1 -0
  168. package/dist/vault/sign-trust-task/0.2/payload.d.ts +99 -0
  169. package/dist/vault/sign-trust-task/0.2/payload.d.ts.map +1 -0
  170. package/dist/vault/sign-trust-task/0.2/payload.js +9 -0
  171. package/dist/vault/sign-trust-task/0.2/payload.js.map +1 -0
  172. package/dist/vault/sync/0.2/payload.d.ts +33 -0
  173. package/dist/vault/sync/0.2/payload.d.ts.map +1 -0
  174. package/dist/vault/sync/0.2/payload.js +9 -0
  175. package/dist/vault/sync/0.2/payload.js.map +1 -0
  176. package/dist/vault/upsert/0.2/payload.d.ts +150 -0
  177. package/dist/vault/upsert/0.2/payload.d.ts.map +1 -0
  178. package/dist/vault/upsert/0.2/payload.js +9 -0
  179. package/dist/vault/upsert/0.2/payload.js.map +1 -0
  180. package/dist/vault/usage/0.2/payload.d.ts +38 -0
  181. package/dist/vault/usage/0.2/payload.d.ts.map +1 -0
  182. package/dist/vault/usage/0.2/payload.js +9 -0
  183. package/dist/vault/usage/0.2/payload.js.map +1 -0
  184. package/dist/vta/_shared/0.1/passkey-vm.d.ts +11 -0
  185. package/dist/vta/_shared/0.1/passkey-vm.d.ts.map +1 -0
  186. package/dist/vta/_shared/0.1/passkey-vm.js +6 -0
  187. package/dist/vta/_shared/0.1/passkey-vm.js.map +1 -0
  188. package/dist/vta/passkey-vms/enroll-challenge/0.1/payload.d.ts +29 -0
  189. package/dist/vta/passkey-vms/enroll-challenge/0.1/payload.d.ts.map +1 -0
  190. package/dist/vta/passkey-vms/enroll-challenge/0.1/payload.js +9 -0
  191. package/dist/vta/passkey-vms/enroll-challenge/0.1/payload.js.map +1 -0
  192. package/dist/vta/passkey-vms/enroll-submit/0.1/payload.d.ts +61 -0
  193. package/dist/vta/passkey-vms/enroll-submit/0.1/payload.d.ts.map +1 -0
  194. package/dist/vta/passkey-vms/enroll-submit/0.1/payload.js +9 -0
  195. package/dist/vta/passkey-vms/enroll-submit/0.1/payload.js.map +1 -0
  196. package/dist/vta/passkey-vms/list/0.1/payload.d.ts +25 -0
  197. package/dist/vta/passkey-vms/list/0.1/payload.d.ts.map +1 -0
  198. package/dist/vta/passkey-vms/list/0.1/payload.js +9 -0
  199. package/dist/vta/passkey-vms/list/0.1/payload.js.map +1 -0
  200. package/dist/vta/passkey-vms/revoke/0.1/payload.d.ts +29 -0
  201. package/dist/vta/passkey-vms/revoke/0.1/payload.d.ts.map +1 -0
  202. package/dist/vta/passkey-vms/revoke/0.1/payload.js +9 -0
  203. package/dist/vta/passkey-vms/revoke/0.1/payload.js.map +1 -0
  204. package/package.json +2 -2
  205. package/src/_framework/0.2/framework.ts +11 -0
  206. package/src/acl/grant/0.1/payload.ts +13 -0
  207. package/src/auth/passkey/login/finish/0.2/payload.ts +44 -0
  208. package/src/auth/passkey/login/start/0.2/payload.ts +31 -0
  209. package/src/auth/step-up/approve-request/0.1/payload.ts +28 -0
  210. package/src/auth/step-up/approve-request/0.2/payload.ts +75 -0
  211. package/src/auth/step-up/approve-response/0.1/payload.ts +32 -0
  212. package/src/auth/step-up/approve-response/0.2/payload.ts +79 -0
  213. package/src/auth/step-up/policy/0.1/payload.ts +45 -0
  214. package/src/auth/step-up/policy/0.2/payload.ts +45 -0
  215. package/src/device/_shared/0.2/device-binding.ts +11 -0
  216. package/src/device/heartbeat/0.2/payload.ts +31 -0
  217. package/src/device/list/0.2/payload.ts +48 -0
  218. package/src/device/register/0.1/payload.ts +18 -0
  219. package/src/device/register/0.2/payload.ts +106 -0
  220. package/src/device/set-wake/0.1/payload.ts +45 -0
  221. package/src/device/set-wake/0.2/payload.ts +45 -0
  222. package/src/device/wipe/0.2/payload.ts +39 -0
  223. package/src/did-management/did/check-name/0.1/payload.ts +5 -2
  224. package/src/index.ts +63 -17
  225. package/src/policy/_shared/0.2/policy.ts +11 -0
  226. package/src/policy/evaluate/0.2/payload.ts +102 -0
  227. package/src/policy/list/0.2/payload.ts +24 -0
  228. package/src/policy/upsert/0.2/payload.ts +31 -0
  229. package/src/provision/integration/0.2/payload.ts +181 -0
  230. package/src/push/provision/0.1/payload.ts +37 -0
  231. package/src/push/provision/0.2/payload.ts +37 -0
  232. package/src/push/register/0.1/payload.ts +75 -0
  233. package/src/push/register/0.2/payload.ts +75 -0
  234. package/src/push/wake/0.1/payload.ts +43 -0
  235. package/src/push/wake/0.2/payload.ts +43 -0
  236. package/src/sync/_shared/0.2/sync-event.ts +11 -0
  237. package/src/sync/event/0.2/payload.ts +219 -0
  238. package/src/trust-task-error/0.2/payload.ts +55 -0
  239. package/src/vault/_shared/0.2/consumer-context.ts +11 -0
  240. package/src/vault/_shared/0.2/sealed-envelope.ts +15 -0
  241. package/src/vault/_shared/0.2/session-blob.ts +13 -0
  242. package/src/vault/_shared/0.2/vault-entry.ts +13 -0
  243. package/src/vault/_shared/0.2/vault-secret.ts +15 -0
  244. package/src/vault/get/0.2/payload.ts +27 -0
  245. package/src/vault/list/0.2/payload.ts +85 -0
  246. package/src/vault/proxy-login/0.2/payload.ts +112 -0
  247. package/src/vault/release/0.2/payload.ts +105 -0
  248. package/src/vault/sign-trust-task/0.2/payload.ts +101 -0
  249. package/src/vault/sync/0.2/payload.ts +35 -0
  250. package/src/vault/upsert/0.2/payload.ts +161 -0
  251. package/src/vault/usage/0.2/payload.ts +40 -0
  252. package/src/vta/_shared/0.1/passkey-vm.ts +11 -0
  253. package/src/vta/passkey-vms/enroll-challenge/0.1/payload.ts +31 -0
  254. package/src/vta/passkey-vms/enroll-submit/0.1/payload.ts +63 -0
  255. package/src/vta/passkey-vms/list/0.1/payload.ts +27 -0
  256. package/src/vta/passkey-vms/revoke/0.1/payload.ts +31 -0
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/auth/step-up/policy/0.1/payload.schema.json
4
+ */
5
+
6
+ /**
7
+ * The relying party's (ACL maintainer's) system-wide step-up policy: the per-operation-class floor that decides whether — and how — a step-up to a higher assurance level is required before a gated operation proceeds. Set by an administrator; resolved per request against per-entry overrides (see acl/_shared AclEntry.stepUp).
8
+ */
9
+ export interface AuthStepUpPolicyPayload {
10
+ /**
11
+ * Master switch. `false` (the shipping default) ⇒ step-up is NOT enforced anywhere; every operation proceeds at AAL1 regardless of `floors`, because a freshly-provisioned maintainer has no registered approver and could not otherwise be administered (chicken-and-egg). The maintainer SHOULD surface this 'not enforced' state prominently. `true` ⇒ the `floors` are enforced.
12
+ */
13
+ enabled: boolean;
14
+ /**
15
+ * The system-wide minimum step-up requirement per operation-class — the maintainer-owned floor. Per-entry `stepUp` settings on an AclEntry MAY raise the requirement for a given subject but MUST NOT lower it (additive-only). The effective requirement for a request is the strictest of (matching floor, caller's per-entry setting).
16
+ */
17
+ floors: StepUpFloor[];
18
+ ext?: Ext;
19
+ }
20
+ export interface StepUpFloor {
21
+ /**
22
+ * The operation-class this floor governs: a Trust Task type URI or slug (e.g. `acl/grant`, `acl/swap-key`, `context/delete`, `key/revoke`, `vault/release`), or `*` for the catch-all default applied when no more-specific floor matches.
23
+ */
24
+ operation: string;
25
+ /**
26
+ * Minimum mode required to perform the operation. `none` = AAL1 permitted (no step-up). `self` = the caller must elevate its own session (AAL2 via its own authenticator). `delegated` = a separate approver named on the caller's AclEntry (`stepUp.approver`) MUST ratify (AAL2 via auth/step-up/approve-request). `delegated-any` = any VID satisfying the maintainer's approver criterion MAY ratify. Strictness order for floor/override resolution: none < self < delegated-any < delegated.
27
+ */
28
+ mode: "none" | "self" | "delegated" | "delegated-any";
29
+ /**
30
+ * Carve-out for non-escalating self-service operations (notably acl/swap-key key-rotation and method-enrolment). When `true` and the maintainer verifies the request does not escalate (its resulting AclEntry's role and scopes are a subset of the caller's existing entry, and the caller acts on its own entry), the operation is admitted at AAL1 even though `mode` requires AAL2 — so a holder with no authenticator yet can still bootstrap/rotate. Omitted is equivalent to `false` (the correct default for escalating operations such as acl/grant, change-role, revoke, context/delete, key/revoke): a caller lacking a usable step-up method is denied (fail-closed) rather than silently downgraded to AAL1.
31
+ */
32
+ allowAal1IfNonEscalating?: boolean;
33
+ }
34
+ /**
35
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
36
+ */
37
+ export interface Ext {
38
+ [k: string]: unknown | undefined;
39
+ }
40
+
41
+ /** Trust Task type URI. */
42
+ export const TYPE_URI = "https://trusttasks.org/spec/auth/step-up/policy/0.1" as const;
43
+
44
+ /** Trust Task response type URI (request type URI + "#response"). */
45
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/auth/step-up/policy/0.1#response" as const;
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/auth/step-up/policy/0.2/payload.schema.json
4
+ */
5
+
6
+ /**
7
+ * The relying party's (ACL maintainer's) system-wide step-up policy: the per-operation-class floor that decides whether — and how — a step-up to a higher assurance level is required before a gated operation proceeds. Set by an administrator; resolved per request against per-entry overrides (see acl/_shared AclEntry.stepUp).
8
+ */
9
+ export interface AuthStepUpPolicyPayload {
10
+ /**
11
+ * Master switch. `false` (the shipping default) ⇒ step-up is NOT enforced anywhere; every operation proceeds at AAL1 regardless of `floors`, because a freshly-provisioned maintainer has no registered approver and could not otherwise be administered (chicken-and-egg). The maintainer SHOULD surface this 'not enforced' state prominently. `true` ⇒ the `floors` are enforced.
12
+ */
13
+ enabled: boolean;
14
+ /**
15
+ * The system-wide minimum step-up requirement per operation-class — the maintainer-owned floor. Per-entry `stepUp` settings on an AclEntry MAY raise the requirement for a given subject but MUST NOT lower it (additive-only). The effective requirement for a request is the strictest of (matching floor, caller's per-entry setting).
16
+ */
17
+ floors: StepUpFloor[];
18
+ ext?: Ext;
19
+ }
20
+ export interface StepUpFloor {
21
+ /**
22
+ * The operation-class this floor governs: a Trust Task type URI or slug (e.g. `acl/grant`, `acl/swap-key`, `context/delete`, `key/revoke`, `vault/release`), or `*` for the catch-all default applied when no more-specific floor matches.
23
+ */
24
+ operation: string;
25
+ /**
26
+ * Minimum mode required to perform the operation. `none` = AAL1 permitted (no step-up). `self` = the caller must elevate its own session (AAL2 via its own authenticator). `delegated` = a separate approver named on the caller's AclEntry (`stepUp.approver`) MUST ratify (AAL2 via auth/step-up/approve-request). `delegatedAny` = any VID satisfying the maintainer's approver criterion MAY ratify. Strictness order for floor/override resolution: none < self < delegated-any < delegated.
27
+ */
28
+ mode: "none" | "self" | "delegated" | "delegatedAny";
29
+ /**
30
+ * Carve-out for non-escalating self-service operations (notably acl/swap-key key-rotation and method-enrolment). When `true` and the maintainer verifies the request does not escalate (its resulting AclEntry's role and scopes are a subset of the caller's existing entry, and the caller acts on its own entry), the operation is admitted at AAL1 even though `mode` requires AAL2 — so a holder with no authenticator yet can still bootstrap/rotate. Omitted is equivalent to `false` (the correct default for escalating operations such as acl/grant, change-role, revoke, context/delete, key/revoke): a caller lacking a usable step-up method is denied (fail-closed) rather than silently downgraded to AAL1.
31
+ */
32
+ allowAal1IfNonEscalating?: boolean;
33
+ }
34
+ /**
35
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
36
+ */
37
+ export interface Ext {
38
+ [k: string]: unknown | undefined;
39
+ }
40
+
41
+ /** Trust Task type URI. */
42
+ export const TYPE_URI = "https://trusttasks.org/spec/auth/step-up/policy/0.2" as const;
43
+
44
+ /** Trust Task response type URI (request type URI + "#response"). */
45
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/auth/step-up/policy/0.2#response" as const;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/device/_shared/0.2/device-binding.schema.json
4
+ */
5
+
6
+ /**
7
+ * Canonical metadata view of a registered consumer device — a Companion (browser plugin, mobile app, desktop app) or a Service (mediator, AI agent, daemon) enrolled to a VTA. Referenced by every device/* specification. Pairs with the ACL: a DeviceBinding is the device-facing half of an AclEntry. Most fields are maintainer-side observations (device id, attestation, timestamps); a few are consumer-supplied at registration time (form factor, display name).
8
+ */
9
+ export interface DeviceBindingSharedDefinitionForTheDeviceSpecFamily {
10
+ [k: string]: unknown | undefined;
11
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/device/heartbeat/0.2/payload.schema.json
4
+ */
5
+
6
+ /**
7
+ * Periodic check-in from a Companion or Service. Refreshes `lastSeenAt`, carries optional state digests, and gives the maintainer a chance to deliver queued operations (notably queued wipes for targets that were offline at issuance).
8
+ */
9
+ export interface DeviceHeartbeatPayload {
10
+ /**
11
+ * Updated platform descriptor if it changed since registration (e.g. browser updated).
12
+ */
13
+ platform?: string;
14
+ /**
15
+ * Optional — consumer's current sync baseline. If the maintainer notices a gap (consumer is behind), the response can hint that a vault/sync is due.
16
+ */
17
+ vaultSeq?: number;
18
+ ext?: Ext;
19
+ }
20
+ /**
21
+ * 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.
22
+ */
23
+ export interface Ext {
24
+ [k: string]: unknown | undefined;
25
+ }
26
+
27
+ /** Trust Task type URI. */
28
+ export const TYPE_URI = "https://trusttasks.org/spec/device/heartbeat/0.2" as const;
29
+
30
+ /** Trust Task response type URI (request type URI + "#response"). */
31
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/device/heartbeat/0.2#response" as const;
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/device/list/0.2/payload.schema.json
4
+ */
5
+
6
+ /**
7
+ * Fine-grained capability flag scoped to the device's allowed contexts. See SPEC.md for the full semantics of each.
8
+ */
9
+ export type Capability =
10
+ | "vaultRead"
11
+ | "vaultWrite"
12
+ | "proxyLogin"
13
+ | "fillRelease"
14
+ | "policyAdmin"
15
+ | "deviceAdmin"
16
+ | "sign"
17
+ | "keyMint";
18
+
19
+ /**
20
+ * List DeviceBindings known to the maintainer, optionally filtered by consumer kind, capability, status, and last-seen time.
21
+ */
22
+ export interface DeviceListPayload {
23
+ consumerKindFilter?: "companion" | "service";
24
+ formFactorFilter?: "browser" | "mobile" | "desktop";
25
+ serviceKindFilter?: "mediator" | "aiAgent" | "daemon";
26
+ capabilityFilter?: Capability;
27
+ /**
28
+ * When true, include devices with `disabledAt` set. Default omits disabled.
29
+ */
30
+ includeDisabled?: boolean;
31
+ includeWiped?: boolean;
32
+ lastSeenSince?: string;
33
+ pageSize?: number;
34
+ cursor?: string;
35
+ ext?: Ext;
36
+ }
37
+ /**
38
+ * 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.
39
+ */
40
+ export interface Ext {
41
+ [k: string]: unknown | undefined;
42
+ }
43
+
44
+ /** Trust Task type URI. */
45
+ export const TYPE_URI = "https://trusttasks.org/spec/device/list/0.2" as const;
46
+
47
+ /** Trust Task response type URI (request type URI + "#response"). */
48
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/device/list/0.2#response" as const;
@@ -26,6 +26,7 @@ export interface DeviceRegisterPayload {
26
26
  displayName: string;
27
27
  platform?: string;
28
28
  attestation?: DeviceAttestation;
29
+ keyCustody?: KeyCustody;
29
30
  /**
30
31
  * X25519 public key (did:key form) the maintainer will use to HPKE-seal sensitive payloads to this device (sealed secrets, session blobs, sync events). REQUIRED — every Companion/Service needs a recipient key.
31
32
  */
@@ -74,6 +75,23 @@ export interface NitroEnclave {
74
75
  export interface NoAttestation {
75
76
  kind: "none";
76
77
  }
78
+ /**
79
+ * OPTIONAL. How the device custodies its private keys (tier + algorithms). RECOMMENDED for mobile Companions. Maintainer policy input — see docs/design-notes/mobile-key-custody-profile.md.
80
+ */
81
+ export interface KeyCustody {
82
+ /**
83
+ * `hardware`: the key is non-exportable in the secure keystore (iOS Secure Enclave / Android StrongBox) and every signing / key-agreement operation runs in-chip — achievable only with P-256. `software`: the key is held in app memory during use, stored hardware-wrapped at rest. Maintainers MAY apply stricter policy (shorter sessions, more frequent step-up) to `software`-tier devices.
84
+ */
85
+ tier: "hardware" | "software";
86
+ /**
87
+ * JOSE `alg` of the holder's signing key, e.g. `ES256` (hardware-custodiable on mobile) or `EdDSA` (not).
88
+ */
89
+ signingAlg?: string;
90
+ /**
91
+ * Curve of the holder's keyAgreement key, e.g. `P-256` (hardware-custodiable on mobile) or `X25519` (not).
92
+ */
93
+ keyAgreementCurve?: string;
94
+ }
77
95
  /**
78
96
  * 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.
79
97
  */
@@ -0,0 +1,106 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/device/register/0.2/payload.schema.json
4
+ */
5
+
6
+ /**
7
+ * Discriminator: is this consumer a user-driven Companion or a headless Service?
8
+ */
9
+ export type ConsumerKind = Companion | Service;
10
+ /**
11
+ * Producer-supplied attestation at registration time, verifiable by the maintainer against the platform's attestation infrastructure. Tagged union over the discriminator `kind`.
12
+ */
13
+ export type DeviceAttestation =
14
+ | WebAuthnAttestation
15
+ | AppleAppAttest
16
+ | PlayIntegrity
17
+ | Tpm
18
+ | NitroEnclave
19
+ | NoAttestation;
20
+
21
+ /**
22
+ * Public discovery surface that wraps the maintainer's existing two-phase enrolment (provision-integration → acl/swap-key). A new Companion or Service hands the maintainer its long-term VTA-derived key, its consumer kind, display name, and an optional device attestation; the maintainer creates the DeviceBinding and returns it. Phase 1 (provision-integration) is assumed to have already happened — this task is the post-bootstrap claim step.
23
+ */
24
+ export interface DeviceRegisterPayload {
25
+ consumerKind: ConsumerKind;
26
+ displayName: string;
27
+ platform?: string;
28
+ attestation?: DeviceAttestation;
29
+ keyCustody?: KeyCustody;
30
+ /**
31
+ * X25519 public key (did:key form) the maintainer will use to HPKE-seal sensitive payloads to this device (sealed secrets, session blobs, sync events). REQUIRED — every Companion/Service needs a recipient key.
32
+ */
33
+ hpkePublicKey?: string;
34
+ ext?: Ext;
35
+ }
36
+ export interface Companion {
37
+ kind: "companion";
38
+ formFactor: "browser" | "mobile" | "desktop";
39
+ }
40
+ export interface Service {
41
+ kind: "service";
42
+ serviceKind: "mediator" | "aiAgent" | "daemon";
43
+ }
44
+ export interface WebAuthnAttestation {
45
+ kind: "webauthn";
46
+ /**
47
+ * WebAuthn Authenticator AAGUID (UUID).
48
+ */
49
+ aaguid: string;
50
+ /**
51
+ * Base64url-encoded WebAuthn attestation statement, when supplied by the platform.
52
+ */
53
+ attestationStatement?: string;
54
+ }
55
+ export interface AppleAppAttest {
56
+ kind: "appleAppAttest";
57
+ keyId: string;
58
+ attestation: string;
59
+ }
60
+ export interface PlayIntegrity {
61
+ kind: "playIntegrity";
62
+ token: string;
63
+ }
64
+ export interface Tpm {
65
+ kind: "tpm";
66
+ quote: string;
67
+ }
68
+ export interface NitroEnclave {
69
+ kind: "nitroEnclave";
70
+ quote: string;
71
+ }
72
+ /**
73
+ * No device-level attestation is available. Maintainers MAY still register the device but SHOULD apply stricter policy (shorter session TTL, more frequent step-up).
74
+ */
75
+ export interface NoAttestation {
76
+ kind: "none";
77
+ }
78
+ /**
79
+ * OPTIONAL. How the device custodies its private keys (tier + algorithms). RECOMMENDED for mobile Companions. Maintainer policy input — see docs/design-notes/mobile-key-custody-profile.md.
80
+ */
81
+ export interface KeyCustody {
82
+ /**
83
+ * `hardware`: the key is non-exportable in the secure keystore (iOS Secure Enclave / Android StrongBox) and every signing / key-agreement operation runs in-chip — achievable only with P-256. `software`: the key is held in app memory during use, stored hardware-wrapped at rest. Maintainers MAY apply stricter policy (shorter sessions, more frequent step-up) to `software`-tier devices.
84
+ */
85
+ tier: "hardware" | "software";
86
+ /**
87
+ * JOSE `alg` of the holder's signing key, e.g. `ES256` (hardware-custodiable on mobile) or `EdDSA` (not).
88
+ */
89
+ signingAlg?: string;
90
+ /**
91
+ * Curve of the holder's keyAgreement key, e.g. `P-256` (hardware-custodiable on mobile) or `X25519` (not).
92
+ */
93
+ keyAgreementCurve?: string;
94
+ }
95
+ /**
96
+ * Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.
97
+ */
98
+ export interface Ext {
99
+ [k: string]: unknown | undefined;
100
+ }
101
+
102
+ /** Trust Task type URI. */
103
+ export const TYPE_URI = "https://trusttasks.org/spec/device/register/0.2" as const;
104
+
105
+ /** Trust Task response type URI (request type URI + "#response"). */
106
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/device/register/0.2#response" as const;
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/device/set-wake/0.1/payload.schema.json
4
+ */
5
+
6
+ /**
7
+ * A device conveys to its VTA the opaque WakeHandle it obtained from a push gateway, so the VTA can own the trigger allowlist and provision the gateway. Carries no platform push token — only the handle. Present `wakeHandle` sets/replaces the wake channel; absent clears it (device becomes non-wakeable). Idempotent; re-issued on token rotation. See the push wake-up binding (https://trusttasks.org/binding/push/0.1).
8
+ */
9
+ export interface DeviceSetWakePayload {
10
+ wakeHandle?: WakeHandle;
11
+ /**
12
+ * OPTIONAL, advisory. The abstract platform behind the handle, for device/list visibility only. The VTA never sees the token; this is a non-authoritative hint.
13
+ */
14
+ pushPlatform?: "apns" | "fcm" | "webpush";
15
+ /**
16
+ * OPTIONAL, advisory. DIDs the device suggests as wake triggers (e.g. its mediator). The VTA owns the allowlist and MAY ignore this entirely — it is a hint, not an instruction.
17
+ */
18
+ suggestedTriggers?: string[];
19
+ ext?: Ext;
20
+ }
21
+ /**
22
+ * OPTIONAL. The opaque gateway-issued handle for this device's push channel. Omit to clear the wake channel (the VTA empties the gateway allowlist; the device becomes non-wakeable).
23
+ */
24
+ export interface WakeHandle {
25
+ /**
26
+ * The push gateway that issued this handle and acts on it — a DID (DIDComm-reachable gateway) or an https URL (REST gateway). A trigger sends its contentless wake request here.
27
+ */
28
+ gateway: string;
29
+ /**
30
+ * Opaque gateway-issued identifier for the device's push channel. Reveals no platform token. Rotates whenever the device re-registers a new platform token with the gateway; the device then re-conveys the fresh handle via device/set-wake.
31
+ */
32
+ handle: string;
33
+ }
34
+ /**
35
+ * 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.
36
+ */
37
+ export interface Ext {
38
+ [k: string]: unknown | undefined;
39
+ }
40
+
41
+ /** Trust Task type URI. */
42
+ export const TYPE_URI = "https://trusttasks.org/spec/device/set-wake/0.1" as const;
43
+
44
+ /** Trust Task response type URI (request type URI + "#response"). */
45
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/device/set-wake/0.1#response" as const;
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/device/set-wake/0.2/payload.schema.json
4
+ */
5
+
6
+ /**
7
+ * A device conveys to its VTA the opaque WakeHandle it obtained from a push gateway, so the VTA can own the trigger allowlist and provision the gateway. Carries no platform push token — only the handle. Present `wakeHandle` sets/replaces the wake channel; absent clears it (device becomes non-wakeable). Idempotent; re-issued on token rotation. See the push wake-up binding (https://trusttasks.org/binding/push/0.1).
8
+ */
9
+ export interface DeviceSetWakePayload {
10
+ wakeHandle?: WakeHandle;
11
+ /**
12
+ * OPTIONAL, advisory. The abstract platform behind the handle, for device/list visibility only. The VTA never sees the token; this is a non-authoritative hint.
13
+ */
14
+ pushPlatform?: "apns" | "fcm" | "webpush";
15
+ /**
16
+ * OPTIONAL, advisory. DIDs the device suggests as wake triggers (e.g. its mediator). The VTA owns the allowlist and MAY ignore this entirely — it is a hint, not an instruction.
17
+ */
18
+ suggestedTriggers?: string[];
19
+ ext?: Ext;
20
+ }
21
+ /**
22
+ * OPTIONAL. The opaque gateway-issued handle for this device's push channel. Omit to clear the wake channel (the VTA empties the gateway allowlist; the device becomes non-wakeable).
23
+ */
24
+ export interface WakeHandle {
25
+ /**
26
+ * The push gateway that issued this handle and acts on it — a DID (DIDComm-reachable gateway) or an https URL (REST gateway). A trigger sends its contentless wake request here.
27
+ */
28
+ gateway: string;
29
+ /**
30
+ * Opaque gateway-issued identifier for the device's push channel. Reveals no platform token. Rotates whenever the device re-registers a new platform token with the gateway; the device then re-conveys the fresh handle via device/set-wake.
31
+ */
32
+ handle: string;
33
+ }
34
+ /**
35
+ * 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.
36
+ */
37
+ export interface Ext {
38
+ [k: string]: unknown | undefined;
39
+ }
40
+
41
+ /** Trust Task type URI. */
42
+ export const TYPE_URI = "https://trusttasks.org/spec/device/set-wake/0.2" as const;
43
+
44
+ /** Trust Task response type URI (request type URI + "#response"). */
45
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/device/set-wake/0.2#response" as const;
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/device/wipe/0.2/payload.schema.json
4
+ */
5
+
6
+ /**
7
+ * The maintainer issues a wipe to a Companion or Service. The target is expected to destroy its local cache and (depending on scope) its device-local key material. The action is best-effort — a compromised device may silently drop the wipe — so the maintainer additionally revokes ACL access and rotates the device's cache-key derivation root, so that defence in depth means a non-compliant device is still neutralised.
8
+ */
9
+ export interface DeviceWipePayload {
10
+ deviceId: string;
11
+ /**
12
+ * How aggressively the target should wipe:
13
+ * - `cache` — discard the encrypted vault cache; consumer can re-sync with valid creds.
14
+ * - `cacheAndKeys` — discard cache + device-local key material; consumer must re-onboard.
15
+ * - `full` — `cacheAndKeys` + clear all extension/app storage + revoke OS credential-provider registration where APIs permit.
16
+ */
17
+ scope: "cache" | "cacheAndKeys" | "full";
18
+ /**
19
+ * Human-readable reason. Required (not optional) because every wipe is consequential and the audit log must capture intent.
20
+ */
21
+ reason: string;
22
+ /**
23
+ * Wipe-issuance timestamp; identical to the document's `issuedAt`, repeated here so the body is self-contained for offline-queued delivery.
24
+ */
25
+ issuedAt?: string;
26
+ ext?: Ext;
27
+ }
28
+ /**
29
+ * 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.
30
+ */
31
+ export interface Ext {
32
+ [k: string]: unknown | undefined;
33
+ }
34
+
35
+ /** Trust Task type URI. */
36
+ export const TYPE_URI = "https://trusttasks.org/spec/device/wipe/0.2" as const;
37
+
38
+ /** Trust Task response type URI (request type URI + "#response"). */
39
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/device/wipe/0.2#response" as const;
@@ -4,9 +4,12 @@
4
4
  */
5
5
 
6
6
  export interface DIDManagementCheckNamePayload {
7
- path: string;
8
7
  /**
9
- * When true and the path is available, atomically reserve it under the caller and return the resulting DidRecord.
8
+ * Local path to test. REQUIRED for an availability probe (`reserve: false`). OPTIONAL when `reserve: true`: omit it to ask the host to auto-assign a fresh, server-generated mnemonic for the reservation.
9
+ */
10
+ path?: string;
11
+ /**
12
+ * When true and the path is available — or, when `path` is omitted, always — atomically reserve a slot under the caller and return the resulting DidRecord. When `path` is omitted the host generates a fresh unused mnemonic (auto-assign).
10
13
  */
11
14
  reserve?: boolean;
12
15
  /**
package/src/index.ts CHANGED
@@ -1,41 +1,55 @@
1
1
  /** Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND. */
2
2
 
3
- export * as FrameworkShared from "./_framework/0.1/framework";
4
- export * as AclEntryShared from "./acl/_shared/0.1/acl-entry";
3
+ export * as FrameworkShared_v0_1 from "./_framework/0.1/framework";
4
+ export * as FrameworkShared_v0_2 from "./_framework/0.2/framework";
5
+ export * as AclEntryShared_v0_1 from "./acl/_shared/0.1/acl-entry";
5
6
  export * as AclChangeRole_v0_1 from "./acl/change-role/0.1/payload";
6
7
  export * as AclGrant_v0_1 from "./acl/grant/0.1/payload";
7
8
  export * as AclList_v0_1 from "./acl/list/0.1/payload";
8
9
  export * as AclRevoke_v0_1 from "./acl/revoke/0.1/payload";
9
10
  export * as AclShow_v0_1 from "./acl/show/0.1/payload";
10
11
  export * as AclSwapKey_v0_1 from "./acl/swap-key/0.1/payload";
11
- export * as SessionShared from "./auth/_shared/0.1/session";
12
- export * as TokensShared from "./auth/_shared/0.1/tokens";
13
- export * as WebauthnShared from "./auth/_shared/0.1/webauthn";
12
+ export * as SessionShared_v0_1 from "./auth/_shared/0.1/session";
13
+ export * as TokensShared_v0_1 from "./auth/_shared/0.1/tokens";
14
+ export * as WebauthnShared_v0_1 from "./auth/_shared/0.1/webauthn";
14
15
  export * as AuthAuthenticate_v0_1 from "./auth/authenticate/0.1/payload";
15
16
  export * as AuthChallenge_v0_1 from "./auth/challenge/0.1/payload";
16
17
  export * as AuthPasskeyEnrollFinish_v0_1 from "./auth/passkey/enroll/finish/0.1/payload";
17
18
  export * as AuthPasskeyEnrollInvite_v0_1 from "./auth/passkey/enroll/invite/0.1/payload";
18
19
  export * as AuthPasskeyEnrollStart_v0_1 from "./auth/passkey/enroll/start/0.1/payload";
19
20
  export * as AuthPasskeyLoginFinish_v0_1 from "./auth/passkey/login/finish/0.1/payload";
21
+ export * as AuthPasskeyLoginFinish_v0_2 from "./auth/passkey/login/finish/0.2/payload";
20
22
  export * as AuthPasskeyLoginStart_v0_1 from "./auth/passkey/login/start/0.1/payload";
23
+ export * as AuthPasskeyLoginStart_v0_2 from "./auth/passkey/login/start/0.2/payload";
21
24
  export * as AuthRefresh_v0_1 from "./auth/refresh/0.1/payload";
22
25
  export * as AuthRevokeSession_v0_1 from "./auth/revoke-session/0.1/payload";
23
26
  export * as AuthSessionsList_v0_1 from "./auth/sessions/list/0.1/payload";
24
27
  export * as AuthStepUpApproveRequest_v0_1 from "./auth/step-up/approve-request/0.1/payload";
28
+ export * as AuthStepUpApproveRequest_v0_2 from "./auth/step-up/approve-request/0.2/payload";
25
29
  export * as AuthStepUpApproveResponse_v0_1 from "./auth/step-up/approve-response/0.1/payload";
30
+ export * as AuthStepUpApproveResponse_v0_2 from "./auth/step-up/approve-response/0.2/payload";
31
+ export * as AuthStepUpPolicy_v0_1 from "./auth/step-up/policy/0.1/payload";
32
+ export * as AuthStepUpPolicy_v0_2 from "./auth/step-up/policy/0.2/payload";
26
33
  export * as AuthWhoami_v0_1 from "./auth/whoami/0.1/payload";
27
34
  export * as ConfirmRequest_v0_1 from "./confirm/request/0.1/payload";
28
35
  export * as ConfirmResponse_v0_1 from "./confirm/response/0.1/payload";
29
- export * as DeviceBindingShared from "./device/_shared/0.1/device-binding";
36
+ export * as DeviceBindingShared_v0_1 from "./device/_shared/0.1/device-binding";
37
+ export * as DeviceBindingShared_v0_2 from "./device/_shared/0.2/device-binding";
30
38
  export * as DeviceDisable_v0_1 from "./device/disable/0.1/payload";
31
39
  export * as DeviceHeartbeat_v0_1 from "./device/heartbeat/0.1/payload";
40
+ export * as DeviceHeartbeat_v0_2 from "./device/heartbeat/0.2/payload";
32
41
  export * as DeviceList_v0_1 from "./device/list/0.1/payload";
42
+ export * as DeviceList_v0_2 from "./device/list/0.2/payload";
33
43
  export * as DeviceRegister_v0_1 from "./device/register/0.1/payload";
44
+ export * as DeviceRegister_v0_2 from "./device/register/0.2/payload";
45
+ export * as DeviceSetWake_v0_1 from "./device/set-wake/0.1/payload";
46
+ export * as DeviceSetWake_v0_2 from "./device/set-wake/0.2/payload";
34
47
  export * as DeviceWipe_v0_1 from "./device/wipe/0.1/payload";
35
- export * as WebvhShared from "./did-management/_shared/0.1/did-method-extensions/webvh";
36
- export * as DidRecordShared from "./did-management/_shared/0.1/did-record";
37
- export * as DomainEntryShared from "./did-management/_shared/0.1/domain-entry";
38
- export * as ServiceInstanceShared from "./did-management/_shared/0.1/service-instance";
48
+ export * as DeviceWipe_v0_2 from "./device/wipe/0.2/payload";
49
+ export * as WebvhShared_v0_1 from "./did-management/_shared/0.1/did-method-extensions/webvh";
50
+ export * as DidRecordShared_v0_1 from "./did-management/_shared/0.1/did-record";
51
+ export * as DomainEntryShared_v0_1 from "./did-management/_shared/0.1/domain-entry";
52
+ export * as ServiceInstanceShared_v0_1 from "./did-management/_shared/0.1/service-instance";
39
53
  export * as DidManagementDidChangeOwner_v0_1 from "./did-management/did/change-owner/0.1/payload";
40
54
  export * as DidManagementDidCheckName_v0_1 from "./did-management/did/check-name/0.1/payload";
41
55
  export * as DidManagementDidDelete_v0_1 from "./did-management/did/delete/0.1/payload";
@@ -61,30 +75,62 @@ export * as DidManagementRegistryDeregister_v0_1 from "./did-management/registry
61
75
  export * as DidManagementServerHealth_v0_1 from "./did-management/server/health/0.1/payload";
62
76
  export * as DidManagementServerRegister_v0_1 from "./did-management/server/register/0.1/payload";
63
77
  export * as DidManagementServerStatsSync_v0_1 from "./did-management/server/stats-sync/0.1/payload";
64
- export * as PolicyShared from "./policy/_shared/0.1/policy";
78
+ export * as PolicyShared_v0_1 from "./policy/_shared/0.1/policy";
79
+ export * as PolicyShared_v0_2 from "./policy/_shared/0.2/policy";
65
80
  export * as PolicyDelete_v0_1 from "./policy/delete/0.1/payload";
66
81
  export * as PolicyEvaluate_v0_1 from "./policy/evaluate/0.1/payload";
82
+ export * as PolicyEvaluate_v0_2 from "./policy/evaluate/0.2/payload";
67
83
  export * as PolicyList_v0_1 from "./policy/list/0.1/payload";
84
+ export * as PolicyList_v0_2 from "./policy/list/0.2/payload";
68
85
  export * as PolicyUpsert_v0_1 from "./policy/upsert/0.1/payload";
86
+ export * as PolicyUpsert_v0_2 from "./policy/upsert/0.2/payload";
69
87
  export * as ProvisionIntegration_v0_1 from "./provision/integration/0.1/payload";
70
- export * as SyncEventShared from "./sync/_shared/0.1/sync-event";
88
+ export * as ProvisionIntegration_v0_2 from "./provision/integration/0.2/payload";
89
+ export * as PushProvision_v0_1 from "./push/provision/0.1/payload";
90
+ export * as PushProvision_v0_2 from "./push/provision/0.2/payload";
91
+ export * as PushRegister_v0_1 from "./push/register/0.1/payload";
92
+ export * as PushRegister_v0_2 from "./push/register/0.2/payload";
93
+ export * as PushWake_v0_1 from "./push/wake/0.1/payload";
94
+ export * as PushWake_v0_2 from "./push/wake/0.2/payload";
95
+ export * as SyncEventShared_v0_1 from "./sync/_shared/0.1/sync-event";
96
+ export * as SyncEventShared_v0_2 from "./sync/_shared/0.2/sync-event";
71
97
  export * as SyncEvent_v0_1 from "./sync/event/0.1/payload";
98
+ export * as SyncEvent_v0_2 from "./sync/event/0.2/payload";
72
99
  export * as TrustTaskDiscovery_v0_1 from "./trust-task-discovery/0.1/payload";
73
100
  export * as TrustTaskError_v0_1 from "./trust-task-error/0.1/payload";
74
- export * as ConsumerContextShared from "./vault/_shared/0.1/consumer-context";
75
- export * as SealedEnvelopeShared from "./vault/_shared/0.1/sealed-envelope";
76
- export * as SessionBlobShared from "./vault/_shared/0.1/session-blob";
77
- export * as VaultEntryShared from "./vault/_shared/0.1/vault-entry";
78
- export * as VaultSecretShared from "./vault/_shared/0.1/vault-secret";
101
+ export * as TrustTaskError_v0_2 from "./trust-task-error/0.2/payload";
102
+ export * as ConsumerContextShared_v0_1 from "./vault/_shared/0.1/consumer-context";
103
+ export * as SealedEnvelopeShared_v0_1 from "./vault/_shared/0.1/sealed-envelope";
104
+ export * as SessionBlobShared_v0_1 from "./vault/_shared/0.1/session-blob";
105
+ export * as VaultEntryShared_v0_1 from "./vault/_shared/0.1/vault-entry";
106
+ export * as VaultSecretShared_v0_1 from "./vault/_shared/0.1/vault-secret";
107
+ export * as ConsumerContextShared_v0_2 from "./vault/_shared/0.2/consumer-context";
108
+ export * as SealedEnvelopeShared_v0_2 from "./vault/_shared/0.2/sealed-envelope";
109
+ export * as SessionBlobShared_v0_2 from "./vault/_shared/0.2/session-blob";
110
+ export * as VaultEntryShared_v0_2 from "./vault/_shared/0.2/vault-entry";
111
+ export * as VaultSecretShared_v0_2 from "./vault/_shared/0.2/vault-secret";
79
112
  export * as VaultDelete_v0_1 from "./vault/delete/0.1/payload";
80
113
  export * as VaultGet_v0_1 from "./vault/get/0.1/payload";
114
+ export * as VaultGet_v0_2 from "./vault/get/0.2/payload";
81
115
  export * as VaultList_v0_1 from "./vault/list/0.1/payload";
116
+ export * as VaultList_v0_2 from "./vault/list/0.2/payload";
82
117
  export * as VaultProxyLogin_v0_1 from "./vault/proxy-login/0.1/payload";
118
+ export * as VaultProxyLogin_v0_2 from "./vault/proxy-login/0.2/payload";
83
119
  export * as VaultRelease_v0_1 from "./vault/release/0.1/payload";
120
+ export * as VaultRelease_v0_2 from "./vault/release/0.2/payload";
84
121
  export * as VaultSignTrustTask_v0_1 from "./vault/sign-trust-task/0.1/payload";
122
+ export * as VaultSignTrustTask_v0_2 from "./vault/sign-trust-task/0.2/payload";
85
123
  export * as VaultSync_v0_1 from "./vault/sync/0.1/payload";
124
+ export * as VaultSync_v0_2 from "./vault/sync/0.2/payload";
86
125
  export * as VaultUpsert_v0_1 from "./vault/upsert/0.1/payload";
126
+ export * as VaultUpsert_v0_2 from "./vault/upsert/0.2/payload";
87
127
  export * as VaultUsage_v0_1 from "./vault/usage/0.1/payload";
128
+ export * as VaultUsage_v0_2 from "./vault/usage/0.2/payload";
129
+ export * as PasskeyVmShared_v0_1 from "./vta/_shared/0.1/passkey-vm";
130
+ export * as VtaPasskeyVmsEnrollChallenge_v0_1 from "./vta/passkey-vms/enroll-challenge/0.1/payload";
131
+ export * as VtaPasskeyVmsEnrollSubmit_v0_1 from "./vta/passkey-vms/enroll-submit/0.1/payload";
132
+ export * as VtaPasskeyVmsList_v0_1 from "./vta/passkey-vms/list/0.1/payload";
133
+ export * as VtaPasskeyVmsRevoke_v0_1 from "./vta/passkey-vms/revoke/0.1/payload";
88
134
  export * as WebvhSyncDelete_v0_1 from "./webvh/sync/delete/0.1/payload";
89
135
  export * as WebvhSyncUpdate_v0_1 from "./webvh/sync/update/0.1/payload";
90
136
  export * as WebvhWitnessPublish_v0_1 from "./webvh/witness/publish/0.1/payload";
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/policy/_shared/0.2/policy.schema.json
4
+ */
5
+
6
+ /**
7
+ * Shared Rego policy types referenced by the policy/* spec family. The maintainer evaluates these against PolicyInput (the request context) to decide proxy_login vs fill, release vs deny, and step-up demands. Engine: embedded Rego via `regorus` (pure-Rust evaluator) in the canonical maintainer implementation; other implementations MAY use a different engine if they accept the same Rego syntax.
8
+ */
9
+ export interface PolicySharedDefinitions {
10
+ [k: string]: unknown | undefined;
11
+ }