@openvtc/trust-tasks 0.21.4 → 0.21.6

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 (212) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/dist/_shared/components.d.ts +210 -2
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/auth/_shared/0.1/passkey-invite.d.ts +16 -0
  5. package/dist/auth/_shared/0.1/passkey-invite.d.ts.map +1 -0
  6. package/dist/auth/_shared/0.1/passkey-invite.js +6 -0
  7. package/dist/auth/_shared/0.1/passkey-invite.js.map +1 -0
  8. package/dist/auth/passkey/enroll/invite/list/0.1/payload.d.ts +393 -0
  9. package/dist/auth/passkey/enroll/invite/list/0.1/payload.d.ts.map +1 -0
  10. package/dist/auth/passkey/enroll/invite/list/0.1/payload.js +234 -0
  11. package/dist/auth/passkey/enroll/invite/list/0.1/payload.js.map +1 -0
  12. package/dist/auth/passkey/enroll/invite/revoke/0.1/payload.d.ts +228 -0
  13. package/dist/auth/passkey/enroll/invite/revoke/0.1/payload.d.ts.map +1 -0
  14. package/dist/auth/passkey/enroll/invite/revoke/0.1/payload.js +138 -0
  15. package/dist/auth/passkey/enroll/invite/revoke/0.1/payload.js.map +1 -0
  16. package/dist/auth/passkey/enroll/invite/update/0.1/payload.d.ts +459 -0
  17. package/dist/auth/passkey/enroll/invite/update/0.1/payload.d.ts.map +1 -0
  18. package/dist/auth/passkey/enroll/invite/update/0.1/payload.js +286 -0
  19. package/dist/auth/passkey/enroll/invite/update/0.1/payload.js.map +1 -0
  20. package/dist/auth/revoke-session/0.2/payload.d.ts +347 -0
  21. package/dist/auth/revoke-session/0.2/payload.d.ts.map +1 -0
  22. package/dist/auth/revoke-session/0.2/payload.js +209 -0
  23. package/dist/auth/revoke-session/0.2/payload.js.map +1 -0
  24. package/dist/auth/step-up/start/0.1/payload.d.ts +420 -0
  25. package/dist/auth/step-up/start/0.1/payload.d.ts.map +1 -0
  26. package/dist/auth/step-up/start/0.1/payload.js +232 -0
  27. package/dist/auth/step-up/start/0.1/payload.js.map +1 -0
  28. package/dist/did-management/_shared/0.1/service-instance.d.ts +1 -1
  29. package/dist/did-management/_shared/0.1/service-instance.d.ts.map +1 -1
  30. package/dist/did-management/_shared/0.2/metrics-snapshot.d.ts +16 -0
  31. package/dist/did-management/_shared/0.2/metrics-snapshot.d.ts.map +1 -0
  32. package/dist/did-management/_shared/0.2/metrics-snapshot.js +6 -0
  33. package/dist/did-management/_shared/0.2/metrics-snapshot.js.map +1 -0
  34. package/dist/did-management/_shared/0.2/service-instance.d.ts +16 -0
  35. package/dist/did-management/_shared/0.2/service-instance.d.ts.map +1 -0
  36. package/dist/did-management/_shared/0.2/service-instance.js +6 -0
  37. package/dist/did-management/_shared/0.2/service-instance.js.map +1 -0
  38. package/dist/did-management/agent-name/resolve/0.1/payload.d.ts +318 -0
  39. package/dist/did-management/agent-name/resolve/0.1/payload.d.ts.map +1 -0
  40. package/dist/did-management/agent-name/resolve/0.1/payload.js +179 -0
  41. package/dist/did-management/agent-name/resolve/0.1/payload.js.map +1 -0
  42. package/dist/did-management/did/log/0.1/payload.d.ts +436 -0
  43. package/dist/did-management/did/log/0.1/payload.d.ts.map +1 -0
  44. package/dist/did-management/did/log/0.1/payload.js +228 -0
  45. package/dist/did-management/did/log/0.1/payload.js.map +1 -0
  46. package/dist/did-management/domain/list/0.1/payload.d.ts +423 -0
  47. package/dist/did-management/domain/list/0.1/payload.d.ts.map +1 -0
  48. package/dist/did-management/domain/list/0.1/payload.js +244 -0
  49. package/dist/did-management/domain/list/0.1/payload.js.map +1 -0
  50. package/dist/did-management/identity/list/0.1/payload.d.ts +494 -0
  51. package/dist/did-management/identity/list/0.1/payload.d.ts.map +1 -0
  52. package/dist/did-management/identity/list/0.1/payload.js +274 -0
  53. package/dist/did-management/identity/list/0.1/payload.js.map +1 -0
  54. package/dist/did-management/identity/retire/0.1/payload.d.ts +242 -0
  55. package/dist/did-management/identity/retire/0.1/payload.d.ts.map +1 -0
  56. package/dist/did-management/identity/retire/0.1/payload.js +142 -0
  57. package/dist/did-management/identity/retire/0.1/payload.js.map +1 -0
  58. package/dist/did-management/registry/admin-register/0.1/payload.d.ts +1 -1
  59. package/dist/did-management/registry/admin-register/0.1/payload.d.ts.map +1 -1
  60. package/dist/did-management/registry/check/0.1/payload.d.ts +639 -0
  61. package/dist/did-management/registry/check/0.1/payload.d.ts.map +1 -0
  62. package/dist/did-management/registry/check/0.1/payload.js +383 -0
  63. package/dist/did-management/registry/check/0.1/payload.js.map +1 -0
  64. package/dist/did-management/registry/get/0.1/payload.d.ts +632 -0
  65. package/dist/did-management/registry/get/0.1/payload.d.ts.map +1 -0
  66. package/dist/did-management/registry/get/0.1/payload.js +381 -0
  67. package/dist/did-management/registry/get/0.1/payload.js.map +1 -0
  68. package/dist/did-management/registry/list/0.1/payload.d.ts +661 -0
  69. package/dist/did-management/registry/list/0.1/payload.d.ts.map +1 -0
  70. package/dist/did-management/registry/list/0.1/payload.js +398 -0
  71. package/dist/did-management/registry/list/0.1/payload.js.map +1 -0
  72. package/dist/did-management/registry/purge-domain/0.1/payload.d.ts +269 -0
  73. package/dist/did-management/registry/purge-domain/0.1/payload.d.ts.map +1 -0
  74. package/dist/did-management/registry/purge-domain/0.1/payload.js +160 -0
  75. package/dist/did-management/registry/purge-domain/0.1/payload.js.map +1 -0
  76. package/dist/did-management/replica/domain/assign/0.1/payload.d.ts +233 -0
  77. package/dist/did-management/replica/domain/assign/0.1/payload.d.ts.map +1 -0
  78. package/dist/did-management/replica/domain/assign/0.1/payload.js +143 -0
  79. package/dist/did-management/replica/domain/assign/0.1/payload.js.map +1 -0
  80. package/dist/did-management/replica/domain/purge/0.1/payload.d.ts +257 -0
  81. package/dist/did-management/replica/domain/purge/0.1/payload.d.ts.map +1 -0
  82. package/dist/did-management/replica/domain/purge/0.1/payload.js +155 -0
  83. package/dist/did-management/replica/domain/purge/0.1/payload.js.map +1 -0
  84. package/dist/did-management/replica/domain/unassign/0.1/payload.d.ts +257 -0
  85. package/dist/did-management/replica/domain/unassign/0.1/payload.d.ts.map +1 -0
  86. package/dist/did-management/replica/domain/unassign/0.1/payload.js +155 -0
  87. package/dist/did-management/replica/domain/unassign/0.1/payload.js.map +1 -0
  88. package/dist/did-management/replica/domain/upsert/0.1/payload.d.ts +401 -0
  89. package/dist/did-management/replica/domain/upsert/0.1/payload.d.ts.map +1 -0
  90. package/dist/did-management/replica/domain/upsert/0.1/payload.js +241 -0
  91. package/dist/did-management/replica/domain/upsert/0.1/payload.js.map +1 -0
  92. package/dist/did-management/server/config/0.1/payload.d.ts +838 -0
  93. package/dist/did-management/server/config/0.1/payload.d.ts.map +1 -0
  94. package/dist/did-management/server/config/0.1/payload.js +444 -0
  95. package/dist/did-management/server/config/0.1/payload.js.map +1 -0
  96. package/dist/did-management/server/info/0.1/payload.d.ts +285 -0
  97. package/dist/did-management/server/info/0.1/payload.d.ts.map +1 -0
  98. package/dist/did-management/server/info/0.1/payload.js +160 -0
  99. package/dist/did-management/server/info/0.1/payload.js.map +1 -0
  100. package/dist/did-management/server/metrics/0.1/payload.d.ts +674 -0
  101. package/dist/did-management/server/metrics/0.1/payload.d.ts.map +1 -0
  102. package/dist/did-management/server/metrics/0.1/payload.js +387 -0
  103. package/dist/did-management/server/metrics/0.1/payload.js.map +1 -0
  104. package/dist/did-management/stats/get/0.1/payload.d.ts +349 -0
  105. package/dist/did-management/stats/get/0.1/payload.d.ts.map +1 -0
  106. package/dist/did-management/stats/get/0.1/payload.js +187 -0
  107. package/dist/did-management/stats/get/0.1/payload.js.map +1 -0
  108. package/dist/did-management/stats/timeseries/0.1/payload.d.ts +381 -0
  109. package/dist/did-management/stats/timeseries/0.1/payload.d.ts.map +1 -0
  110. package/dist/did-management/stats/timeseries/0.1/payload.js +227 -0
  111. package/dist/did-management/stats/timeseries/0.1/payload.js.map +1 -0
  112. package/dist/index.d.ts +38 -0
  113. package/dist/index.d.ts.map +1 -1
  114. package/dist/index.js +38 -0
  115. package/dist/index.js.map +1 -1
  116. package/dist/keys/import-wrapping-key/0.1/payload.d.ts +289 -0
  117. package/dist/keys/import-wrapping-key/0.1/payload.d.ts.map +1 -0
  118. package/dist/keys/import-wrapping-key/0.1/payload.js +158 -0
  119. package/dist/keys/import-wrapping-key/0.1/payload.js.map +1 -0
  120. package/dist/vta/health/details/0.1/payload.d.ts +479 -0
  121. package/dist/vta/health/details/0.1/payload.d.ts.map +1 -0
  122. package/dist/vta/health/details/0.1/payload.js +258 -0
  123. package/dist/vta/health/details/0.1/payload.js.map +1 -0
  124. package/dist/vta/restore/status/0.1/payload.d.ts +565 -0
  125. package/dist/vta/restore/status/0.1/payload.d.ts.map +1 -0
  126. package/dist/vta/restore/status/0.1/payload.js +294 -0
  127. package/dist/vta/restore/status/0.1/payload.js.map +1 -0
  128. package/dist/vtc/_shared/0.1/invite.d.ts +1 -1
  129. package/dist/vtc/_shared/0.1/invite.d.ts.map +1 -1
  130. package/dist/vtc/admin/invites/list/0.1/payload.d.ts +1 -1
  131. package/dist/vtc/admin/invites/list/0.1/payload.d.ts.map +1 -1
  132. package/dist/webvh/_shared/0.1/sync-update.d.ts +16 -0
  133. package/dist/webvh/_shared/0.1/sync-update.d.ts.map +1 -0
  134. package/dist/webvh/_shared/0.1/sync-update.js +6 -0
  135. package/dist/webvh/_shared/0.1/sync-update.js.map +1 -0
  136. package/dist/webvh/_shared/0.1/witness-key.d.ts +16 -0
  137. package/dist/webvh/_shared/0.1/witness-key.d.ts.map +1 -0
  138. package/dist/webvh/_shared/0.1/witness-key.js +6 -0
  139. package/dist/webvh/_shared/0.1/witness-key.js.map +1 -0
  140. package/dist/webvh/sync/batch/0.1/payload.d.ts +503 -0
  141. package/dist/webvh/sync/batch/0.1/payload.d.ts.map +1 -0
  142. package/dist/webvh/sync/batch/0.1/payload.js +290 -0
  143. package/dist/webvh/sync/batch/0.1/payload.js.map +1 -0
  144. package/dist/webvh/sync/delete/0.2/payload.d.ts +242 -0
  145. package/dist/webvh/sync/delete/0.2/payload.d.ts.map +1 -0
  146. package/dist/webvh/sync/delete/0.2/payload.js +148 -0
  147. package/dist/webvh/sync/delete/0.2/payload.js.map +1 -0
  148. package/dist/webvh/sync/update/0.2/payload.d.ts +315 -0
  149. package/dist/webvh/sync/update/0.2/payload.d.ts.map +1 -0
  150. package/dist/webvh/sync/update/0.2/payload.js +177 -0
  151. package/dist/webvh/sync/update/0.2/payload.js.map +1 -0
  152. package/dist/webvh/witness/key/create/0.1/payload.d.ts +346 -0
  153. package/dist/webvh/witness/key/create/0.1/payload.d.ts.map +1 -0
  154. package/dist/webvh/witness/key/create/0.1/payload.js +202 -0
  155. package/dist/webvh/witness/key/create/0.1/payload.js.map +1 -0
  156. package/dist/webvh/witness/key/delete/0.1/payload.d.ts +237 -0
  157. package/dist/webvh/witness/key/delete/0.1/payload.d.ts.map +1 -0
  158. package/dist/webvh/witness/key/delete/0.1/payload.js +141 -0
  159. package/dist/webvh/witness/key/delete/0.1/payload.js.map +1 -0
  160. package/dist/webvh/witness/key/list/0.1/payload.d.ts +349 -0
  161. package/dist/webvh/witness/key/list/0.1/payload.d.ts.map +1 -0
  162. package/dist/webvh/witness/key/list/0.1/payload.js +204 -0
  163. package/dist/webvh/witness/key/list/0.1/payload.js.map +1 -0
  164. package/dist/webvh/witness/sign/0.1/payload.d.ts +401 -0
  165. package/dist/webvh/witness/sign/0.1/payload.d.ts.map +1 -0
  166. package/dist/webvh/witness/sign/0.1/payload.js +229 -0
  167. package/dist/webvh/witness/sign/0.1/payload.js.map +1 -0
  168. package/package.json +1 -1
  169. package/src/_shared/components.ts +210 -2
  170. package/src/auth/_shared/0.1/passkey-invite.ts +17 -0
  171. package/src/auth/passkey/enroll/invite/list/0.1/payload.ts +266 -0
  172. package/src/auth/passkey/enroll/invite/revoke/0.1/payload.ts +165 -0
  173. package/src/auth/passkey/enroll/invite/update/0.1/payload.ts +327 -0
  174. package/src/auth/revoke-session/0.2/payload.ts +268 -0
  175. package/src/auth/step-up/start/0.1/payload.ts +287 -0
  176. package/src/did-management/_shared/0.1/service-instance.ts +1 -1
  177. package/src/did-management/_shared/0.2/metrics-snapshot.ts +17 -0
  178. package/src/did-management/_shared/0.2/service-instance.ts +17 -0
  179. package/src/did-management/agent-name/resolve/0.1/payload.ts +222 -0
  180. package/src/did-management/did/log/0.1/payload.ts +295 -0
  181. package/src/did-management/domain/list/0.1/payload.ts +280 -0
  182. package/src/did-management/identity/list/0.1/payload.ts +335 -0
  183. package/src/did-management/identity/retire/0.1/payload.ts +175 -0
  184. package/src/did-management/registry/admin-register/0.1/payload.ts +1 -1
  185. package/src/did-management/registry/check/0.1/payload.ts +415 -0
  186. package/src/did-management/registry/get/0.1/payload.ts +410 -0
  187. package/src/did-management/registry/list/0.1/payload.ts +434 -0
  188. package/src/did-management/registry/purge-domain/0.1/payload.ts +198 -0
  189. package/src/did-management/replica/domain/assign/0.1/payload.ts +173 -0
  190. package/src/did-management/replica/domain/purge/0.1/payload.ts +189 -0
  191. package/src/did-management/replica/domain/unassign/0.1/payload.ts +189 -0
  192. package/src/did-management/replica/domain/upsert/0.1/payload.ts +271 -0
  193. package/src/did-management/server/config/0.1/payload.ts +545 -0
  194. package/src/did-management/server/info/0.1/payload.ts +200 -0
  195. package/src/did-management/server/metrics/0.1/payload.ts +418 -0
  196. package/src/did-management/stats/get/0.1/payload.ts +237 -0
  197. package/src/did-management/stats/timeseries/0.1/payload.ts +279 -0
  198. package/src/index.ts +38 -0
  199. package/src/keys/import-wrapping-key/0.1/payload.ts +206 -0
  200. package/src/vta/health/details/0.1/payload.ts +336 -0
  201. package/src/vta/restore/status/0.1/payload.ts +379 -0
  202. package/src/vtc/_shared/0.1/invite.ts +1 -1
  203. package/src/vtc/admin/invites/list/0.1/payload.ts +1 -1
  204. package/src/webvh/_shared/0.1/sync-update.ts +17 -0
  205. package/src/webvh/_shared/0.1/witness-key.ts +17 -0
  206. package/src/webvh/sync/batch/0.1/payload.ts +336 -0
  207. package/src/webvh/sync/delete/0.2/payload.ts +181 -0
  208. package/src/webvh/sync/update/0.2/payload.ts +233 -0
  209. package/src/webvh/witness/key/create/0.1/payload.ts +231 -0
  210. package/src/webvh/witness/key/delete/0.1/payload.ts +171 -0
  211. package/src/webvh/witness/key/list/0.1/payload.ts +232 -0
  212. package/src/webvh/witness/sign/0.1/payload.ts +279 -0
@@ -0,0 +1,268 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/auth/revoke-session/0.2/payload.schema.json
4
+ */
5
+
6
+ import type { Ext } from "../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * Invalidate one named session, every session of the producer, or every session of a named subject the producer may manage. The auth service drops the targeted session(s); any future use of their access or refresh tokens MUST fail. Exactly one of `sessionId`, `all` and `subject` is present.
11
+ */
12
+ export type AuthRevokeSession = {
13
+ /**
14
+ * The session to revoke. Mutually exclusive with `all` and `subject`.
15
+ */
16
+ sessionId?: string;
17
+ /**
18
+ * When true, revoke every active session the consumer holds for the producer's own subject — equivalent to `subject` naming the producer. `false` targets nothing and is refused as malformedRequest; it stays schema-valid only because 0.1 admitted it. Mutually exclusive with `sessionId` and `subject`.
19
+ */
20
+ all?: boolean;
21
+ /**
22
+ * Revoke every active session the consumer holds for this subject. The producer's own identifier, or a subject whose access the producer could withdraw under the consumer's access-control policy — see Authorization. Mutually exclusive with `sessionId` and `all`.
23
+ */
24
+ subject?: string;
25
+ /**
26
+ * Optional human-readable rationale (e.g. "logout", "device-lost", "access-withdrawn"). Surfaced in audit logs; the framework imposes no vocabulary.
27
+ */
28
+ reason?: string;
29
+ /**
30
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
31
+ */
32
+ ext?: Ext;
33
+ } & {
34
+ [k: string]: unknown | undefined;
35
+ };
36
+
37
+ /**
38
+ * Acknowledgement carried in a Trust Task document whose type is https://trusttasks.org/spec/auth/revoke-session/0.2#response.
39
+ */
40
+ export interface AuthRevokeSessionResponsePayload {
41
+ /**
42
+ * Number of sessions this request invalidated. Zero is a valid outcome: the named session was already gone, or the subject held no active sessions.
43
+ */
44
+ revokedCount: number;
45
+ /**
46
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
47
+ */
48
+ ext?: Ext;
49
+ }
50
+
51
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
52
+ export type { Ext };
53
+
54
+ /** Trust Task type URI. */
55
+ export const TYPE_URI = "https://trusttasks.org/spec/auth/revoke-session/0.2" as const;
56
+
57
+ /** Stable alias for this specification's request payload shape. */
58
+ export type Payload = AuthRevokeSession;
59
+
60
+ /** Trust Task response type URI (request type URI + "#response"). */
61
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/auth/revoke-session/0.2#response" as const;
62
+
63
+ /** Stable alias for this specification's success-response payload shape. */
64
+ export type Response = AuthRevokeSessionResponsePayload;
65
+
66
+ /**
67
+ * This specification's payload schema, as a value.
68
+ *
69
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
70
+ * rather than only as a `.json` file because TypeScript types are erased
71
+ * at runtime: without a schema a consumer has nothing to validate, and
72
+ * every REQUIRED payload member is optional in practice. Cross-file
73
+ * `$ref`s are already inlined, so it needs no resolver.
74
+ */
75
+ export const PAYLOAD_SCHEMA = {
76
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
77
+ "$id": "https://trusttasks.org/spec/auth/revoke-session/0.2",
78
+ "title": "Auth — Revoke Session",
79
+ "description": "Invalidate one named session, every session of the producer, or every session of a named subject the producer may manage. The auth service drops the targeted session(s); any future use of their access or refresh tokens MUST fail. Exactly one of `sessionId`, `all` and `subject` is present.",
80
+ "type": "object",
81
+ "additionalProperties": false,
82
+ "properties": {
83
+ "sessionId": {
84
+ "type": "string",
85
+ "minLength": 1,
86
+ "description": "The session to revoke. Mutually exclusive with `all` and `subject`."
87
+ },
88
+ "all": {
89
+ "type": "boolean",
90
+ "description": "When true, revoke every active session the consumer holds for the producer's own subject — equivalent to `subject` naming the producer. `false` targets nothing and is refused as malformedRequest; it stays schema-valid only because 0.1 admitted it. Mutually exclusive with `sessionId` and `subject`."
91
+ },
92
+ "subject": {
93
+ "type": "string",
94
+ "pattern": "^did:",
95
+ "maxLength": 2048,
96
+ "description": "Revoke every active session the consumer holds for this subject. The producer's own identifier, or a subject whose access the producer could withdraw under the consumer's access-control policy — see Authorization. Mutually exclusive with `sessionId` and `all`."
97
+ },
98
+ "reason": {
99
+ "type": "string",
100
+ "maxLength": 1024,
101
+ "description": "Optional human-readable rationale (e.g. \"logout\", \"device-lost\", \"access-withdrawn\"). Surfaced in audit logs; the framework imposes no vocabulary."
102
+ },
103
+ "ext": {
104
+ "$ref": "#/$defs/Ext",
105
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
106
+ }
107
+ },
108
+ "oneOf": [
109
+ {
110
+ "required": [
111
+ "sessionId"
112
+ ],
113
+ "not": {
114
+ "anyOf": [
115
+ {
116
+ "required": [
117
+ "all"
118
+ ]
119
+ },
120
+ {
121
+ "required": [
122
+ "subject"
123
+ ]
124
+ }
125
+ ]
126
+ }
127
+ },
128
+ {
129
+ "required": [
130
+ "all"
131
+ ],
132
+ "not": {
133
+ "anyOf": [
134
+ {
135
+ "required": [
136
+ "sessionId"
137
+ ]
138
+ },
139
+ {
140
+ "required": [
141
+ "subject"
142
+ ]
143
+ }
144
+ ]
145
+ }
146
+ },
147
+ {
148
+ "required": [
149
+ "subject"
150
+ ],
151
+ "not": {
152
+ "anyOf": [
153
+ {
154
+ "required": [
155
+ "sessionId"
156
+ ]
157
+ },
158
+ {
159
+ "required": [
160
+ "all"
161
+ ]
162
+ }
163
+ ]
164
+ }
165
+ }
166
+ ],
167
+ "$defs": {
168
+ "Response": {
169
+ "$anchor": "response",
170
+ "title": "Auth Revoke Session — response payload",
171
+ "description": "Acknowledgement carried in a Trust Task document whose type is https://trusttasks.org/spec/auth/revoke-session/0.2#response.",
172
+ "type": "object",
173
+ "additionalProperties": false,
174
+ "required": [
175
+ "revokedCount"
176
+ ],
177
+ "properties": {
178
+ "revokedCount": {
179
+ "type": "integer",
180
+ "minimum": 0,
181
+ "description": "Number of sessions this request invalidated. Zero is a valid outcome: the named session was already gone, or the subject held no active sessions."
182
+ },
183
+ "ext": {
184
+ "$ref": "#/$defs/Ext",
185
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
186
+ }
187
+ }
188
+ },
189
+ "Ext": {
190
+ "title": "Ext",
191
+ "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.",
192
+ "type": "object",
193
+ "minProperties": 1,
194
+ "additionalProperties": true,
195
+ "propertyNames": {
196
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
197
+ }
198
+ }
199
+ }
200
+ } as const;
201
+
202
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
203
+ export const RESPONSE_PAYLOAD_SCHEMA = {
204
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
205
+ "$ref": "#/$defs/Response",
206
+ "$defs": {
207
+ "Response": {
208
+ "$anchor": "response",
209
+ "title": "Auth Revoke Session — response payload",
210
+ "description": "Acknowledgement carried in a Trust Task document whose type is https://trusttasks.org/spec/auth/revoke-session/0.2#response.",
211
+ "type": "object",
212
+ "additionalProperties": false,
213
+ "required": [
214
+ "revokedCount"
215
+ ],
216
+ "properties": {
217
+ "revokedCount": {
218
+ "type": "integer",
219
+ "minimum": 0,
220
+ "description": "Number of sessions this request invalidated. Zero is a valid outcome: the named session was already gone, or the subject held no active sessions."
221
+ },
222
+ "ext": {
223
+ "$ref": "#/$defs/Ext",
224
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
225
+ }
226
+ }
227
+ },
228
+ "Ext": {
229
+ "title": "Ext",
230
+ "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.",
231
+ "type": "object",
232
+ "minProperties": 1,
233
+ "additionalProperties": true,
234
+ "propertyNames": {
235
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
236
+ }
237
+ }
238
+ }
239
+ } as const;
240
+
241
+ /**
242
+ * SPEC.md §7.2 policy for the request variant, from this specification's
243
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
244
+ * per-specification and cannot be derived from the document alone, and
245
+ * item 2 needs the schema this carries.
246
+ */
247
+ export const SPEC = {
248
+ typeUri: TYPE_URI,
249
+ isBearer: false,
250
+ isProofRequired: true,
251
+ isRecipientRequired: true,
252
+ isIssuedAtRequired: true,
253
+ payloadSchema: PAYLOAD_SCHEMA,
254
+ } as const;
255
+
256
+ /**
257
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
258
+ * tracks the *issuer* party's requirement because a response swaps the
259
+ * parties (§7.3 item 5).
260
+ */
261
+ export const RESPONSE_SPEC = {
262
+ typeUri: RESPONSE_TYPE_URI,
263
+ isBearer: false,
264
+ isProofRequired: true,
265
+ isRecipientRequired: true,
266
+ isIssuedAtRequired: true,
267
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
268
+ } as const;
@@ -0,0 +1,287 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/auth/step-up/start/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Ext } from "../../../../_shared/components.js";
7
+
8
+
9
+ export interface AuthStepUpStartPayload {
10
+ /**
11
+ * The relying-party session to elevate.
12
+ */
13
+ sessionId: string;
14
+ /**
15
+ * The assurance level the holder wants the session raised to. Absent means the relying party's own next level above the session's current one.
16
+ */
17
+ targetAcr?: string;
18
+ ext?: Ext;
19
+ }
20
+ export interface AuthStepUpStartResponsePayload {
21
+ /**
22
+ * A complete, signed auth/step-up/approve-request/0.3 document for this session: issuer the relying party, recipient the approver. The approver verifies it on its own terms; the framework-level envelope members are modelled here so none are lost on receipt, but `payload` and `proof` are carried opaque (unpacked and re-validated by that spec, not by this one) so the proof survives.
23
+ */
24
+ approveRequest: {
25
+ id: string;
26
+ type: "https://trusttasks.org/spec/auth/step-up/approve-request/0.3";
27
+ threadId?: string;
28
+ issuer: string;
29
+ recipient: string;
30
+ issuedAt?: string;
31
+ expiresAt?: string;
32
+ /**
33
+ * The auth/step-up/approve-request/0.3 payload, opaque here — see that spec for its shape.
34
+ */
35
+ payload: {
36
+ [k: string]: unknown | undefined;
37
+ };
38
+ /**
39
+ * A W3C Data Integrity proof (SPEC §4.7), opaque here — the approver verifies it on its own terms.
40
+ */
41
+ proof: {};
42
+ ext?: Ext;
43
+ };
44
+ ext?: Ext;
45
+ }
46
+
47
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
48
+ export type { Ext };
49
+
50
+ /** Trust Task type URI. */
51
+ export const TYPE_URI = "https://trusttasks.org/spec/auth/step-up/start/0.1" as const;
52
+
53
+ /** Stable alias for this specification's request payload shape. */
54
+ export type Payload = AuthStepUpStartPayload;
55
+
56
+ /** Trust Task response type URI (request type URI + "#response"). */
57
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/auth/step-up/start/0.1#response" as const;
58
+
59
+ /** Stable alias for this specification's success-response payload shape. */
60
+ export type Response = AuthStepUpStartResponsePayload;
61
+
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 const PAYLOAD_SCHEMA = {
72
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
73
+ "$id": "https://trusttasks.org/spec/auth/step-up/start/0.1",
74
+ "title": "Auth Step-up Start — payload",
75
+ "type": "object",
76
+ "additionalProperties": false,
77
+ "required": [
78
+ "sessionId"
79
+ ],
80
+ "properties": {
81
+ "sessionId": {
82
+ "type": "string",
83
+ "minLength": 1,
84
+ "maxLength": 256,
85
+ "description": "The relying-party session to elevate."
86
+ },
87
+ "targetAcr": {
88
+ "type": "string",
89
+ "minLength": 1,
90
+ "description": "The assurance level the holder wants the session raised to. Absent means the relying party's own next level above the session's current one."
91
+ },
92
+ "ext": {
93
+ "$ref": "#/$defs/Ext"
94
+ }
95
+ },
96
+ "$defs": {
97
+ "Response": {
98
+ "$anchor": "response",
99
+ "title": "Auth Step-up Start — response payload",
100
+ "type": "object",
101
+ "additionalProperties": false,
102
+ "required": [
103
+ "approveRequest"
104
+ ],
105
+ "properties": {
106
+ "approveRequest": {
107
+ "type": "object",
108
+ "additionalProperties": false,
109
+ "description": "A complete, signed auth/step-up/approve-request/0.3 document for this session: issuer the relying party, recipient the approver. The approver verifies it on its own terms; the framework-level envelope members are modelled here so none are lost on receipt, but `payload` and `proof` are carried opaque (unpacked and re-validated by that spec, not by this one) so the proof survives.",
110
+ "required": [
111
+ "id",
112
+ "type",
113
+ "issuer",
114
+ "recipient",
115
+ "payload",
116
+ "proof"
117
+ ],
118
+ "properties": {
119
+ "id": {
120
+ "type": "string",
121
+ "minLength": 1
122
+ },
123
+ "type": {
124
+ "const": "https://trusttasks.org/spec/auth/step-up/approve-request/0.3"
125
+ },
126
+ "threadId": {
127
+ "type": "string",
128
+ "minLength": 1
129
+ },
130
+ "issuer": {
131
+ "type": "string",
132
+ "minLength": 1
133
+ },
134
+ "recipient": {
135
+ "type": "string",
136
+ "minLength": 1
137
+ },
138
+ "issuedAt": {
139
+ "type": "string",
140
+ "format": "date-time"
141
+ },
142
+ "expiresAt": {
143
+ "type": "string",
144
+ "format": "date-time"
145
+ },
146
+ "payload": {
147
+ "description": "The auth/step-up/approve-request/0.3 payload, opaque here — see that spec for its shape."
148
+ },
149
+ "proof": {
150
+ "type": "object",
151
+ "description": "A W3C Data Integrity proof (SPEC §4.7), opaque here — the approver verifies it on its own terms."
152
+ },
153
+ "ext": {
154
+ "$ref": "#/$defs/Ext"
155
+ }
156
+ }
157
+ },
158
+ "ext": {
159
+ "$ref": "#/$defs/Ext"
160
+ }
161
+ }
162
+ },
163
+ "Ext": {
164
+ "title": "Ext",
165
+ "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.",
166
+ "type": "object",
167
+ "minProperties": 1,
168
+ "additionalProperties": true,
169
+ "propertyNames": {
170
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
171
+ }
172
+ }
173
+ }
174
+ } as const;
175
+
176
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
177
+ export const RESPONSE_PAYLOAD_SCHEMA = {
178
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
179
+ "$ref": "#/$defs/Response",
180
+ "$defs": {
181
+ "Response": {
182
+ "$anchor": "response",
183
+ "title": "Auth Step-up Start — response payload",
184
+ "type": "object",
185
+ "additionalProperties": false,
186
+ "required": [
187
+ "approveRequest"
188
+ ],
189
+ "properties": {
190
+ "approveRequest": {
191
+ "type": "object",
192
+ "additionalProperties": false,
193
+ "description": "A complete, signed auth/step-up/approve-request/0.3 document for this session: issuer the relying party, recipient the approver. The approver verifies it on its own terms; the framework-level envelope members are modelled here so none are lost on receipt, but `payload` and `proof` are carried opaque (unpacked and re-validated by that spec, not by this one) so the proof survives.",
194
+ "required": [
195
+ "id",
196
+ "type",
197
+ "issuer",
198
+ "recipient",
199
+ "payload",
200
+ "proof"
201
+ ],
202
+ "properties": {
203
+ "id": {
204
+ "type": "string",
205
+ "minLength": 1
206
+ },
207
+ "type": {
208
+ "const": "https://trusttasks.org/spec/auth/step-up/approve-request/0.3"
209
+ },
210
+ "threadId": {
211
+ "type": "string",
212
+ "minLength": 1
213
+ },
214
+ "issuer": {
215
+ "type": "string",
216
+ "minLength": 1
217
+ },
218
+ "recipient": {
219
+ "type": "string",
220
+ "minLength": 1
221
+ },
222
+ "issuedAt": {
223
+ "type": "string",
224
+ "format": "date-time"
225
+ },
226
+ "expiresAt": {
227
+ "type": "string",
228
+ "format": "date-time"
229
+ },
230
+ "payload": {
231
+ "description": "The auth/step-up/approve-request/0.3 payload, opaque here — see that spec for its shape."
232
+ },
233
+ "proof": {
234
+ "type": "object",
235
+ "description": "A W3C Data Integrity proof (SPEC §4.7), opaque here — the approver verifies it on its own terms."
236
+ },
237
+ "ext": {
238
+ "$ref": "#/$defs/Ext"
239
+ }
240
+ }
241
+ },
242
+ "ext": {
243
+ "$ref": "#/$defs/Ext"
244
+ }
245
+ }
246
+ },
247
+ "Ext": {
248
+ "title": "Ext",
249
+ "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.",
250
+ "type": "object",
251
+ "minProperties": 1,
252
+ "additionalProperties": true,
253
+ "propertyNames": {
254
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
255
+ }
256
+ }
257
+ }
258
+ } as const;
259
+
260
+ /**
261
+ * SPEC.md §7.2 policy for the request variant, from this specification's
262
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
263
+ * per-specification and cannot be derived from the document alone, and
264
+ * item 2 needs the schema this carries.
265
+ */
266
+ export const SPEC = {
267
+ typeUri: TYPE_URI,
268
+ isBearer: false,
269
+ isProofRequired: true,
270
+ isRecipientRequired: true,
271
+ isIssuedAtRequired: true,
272
+ payloadSchema: PAYLOAD_SCHEMA,
273
+ } as const;
274
+
275
+ /**
276
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
277
+ * tracks the *issuer* party's requirement because a response swaps the
278
+ * parties (§7.3 item 5).
279
+ */
280
+ export const RESPONSE_SPEC = {
281
+ typeUri: RESPONSE_TYPE_URI,
282
+ isBearer: false,
283
+ isProofRequired: true,
284
+ isRecipientRequired: true,
285
+ isIssuedAtRequired: true,
286
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
287
+ } as const;
@@ -11,4 +11,4 @@ export interface ServiceInstanceSharedDefinitionForTheDidManagementRegistrySpecF
11
11
  * The definitions this shared schema publishes, hoisted to one declaration each.
12
12
  * See "../../../_shared/components.js".
13
13
  */
14
- export type { ServiceInstance } from "../../../_shared/components.js";
14
+ export type { ServiceInstance_DidManagementV0_1 as ServiceInstance } from "../../../_shared/components.js";
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/did-management/_shared/0.2/metrics-snapshot.schema.json
4
+ */
5
+
6
+ /**
7
+ * A point-in-time read of a service's own operational counters, gauges and histograms — the shape a Trust Task returns in place of a Prometheus `/metrics` endpoint. Deliberately generic: any service in this ecosystem can reuse it for its own `server/metrics`-shaped task, not only a DID hosting service. Not itself a Trust Task specification (the `_shared` folder is skipped by the registry build and the codegen).
8
+ */
9
+ export interface MetricsSnapshotSharedDefinitionForAServiceSOperationalMetrics {
10
+ [k: string]: unknown | undefined;
11
+ }
12
+
13
+ /**
14
+ * The definitions this shared schema publishes, hoisted to one declaration each.
15
+ * See "../../../_shared/components.js".
16
+ */
17
+ export type { Histogram, HistogramBucket, Metric, MetricsSnapshot } from "../../../_shared/components.js";
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/did-management/_shared/0.2/service-instance.schema.json
4
+ */
5
+
6
+ /**
7
+ * The control plane's record of one registered service instance, as an administrator reads it. 0.2 adds what an operator needs to judge an instance's health and reachability — its service type, status, the transports it advertises and was last seen on, and the DID methods it can host. Not itself a Trust Task specification (the `_shared` folder is skipped by the registry build and the codegen).
8
+ */
9
+ export interface ServiceInstanceSharedDefinitionForTheDidManagementRegistryReads {
10
+ [k: string]: unknown | undefined;
11
+ }
12
+
13
+ /**
14
+ * The definitions this shared schema publishes, hoisted to one declaration each.
15
+ * See "../../../_shared/components.js".
16
+ */
17
+ export type { ServiceInstance_DidManagementV0_2 as ServiceInstance, TransportObservation } from "../../../_shared/components.js";