@openvtc/trust-tasks 0.21.8 → 0.21.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/CHANGELOG.md +86 -0
  2. package/dist/_shared/components.d.ts +40 -1
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/auth/_shared/0.1/session.d.ts +1 -1
  5. package/dist/auth/_shared/0.1/session.d.ts.map +1 -1
  6. package/dist/auth/_shared/0.2/session.d.ts +16 -0
  7. package/dist/auth/_shared/0.2/session.d.ts.map +1 -0
  8. package/dist/auth/_shared/0.2/session.js +6 -0
  9. package/dist/auth/_shared/0.2/session.js.map +1 -0
  10. package/dist/auth/authenticate/0.1/payload.d.ts +1 -1
  11. package/dist/auth/authenticate/0.1/payload.d.ts.map +1 -1
  12. package/dist/auth/authenticate/0.2/payload.d.ts +715 -0
  13. package/dist/auth/authenticate/0.2/payload.d.ts.map +1 -0
  14. package/dist/auth/authenticate/0.2/payload.js +384 -0
  15. package/dist/auth/authenticate/0.2/payload.js.map +1 -0
  16. package/dist/auth/passkey/login/finish/0.1/payload.d.ts +1 -1
  17. package/dist/auth/passkey/login/finish/0.1/payload.d.ts.map +1 -1
  18. package/dist/auth/passkey/login/finish/0.2/payload.d.ts +1 -1
  19. package/dist/auth/passkey/login/finish/0.2/payload.d.ts.map +1 -1
  20. package/dist/auth/refresh/0.1/payload.d.ts +1 -1
  21. package/dist/auth/refresh/0.1/payload.d.ts.map +1 -1
  22. package/dist/auth/sessions/list/0.1/payload.d.ts +1 -1
  23. package/dist/auth/sessions/list/0.1/payload.d.ts.map +1 -1
  24. package/dist/auth/step-up/approve-response/0.1/payload.d.ts +1 -1
  25. package/dist/auth/step-up/approve-response/0.1/payload.d.ts.map +1 -1
  26. package/dist/auth/step-up/approve-response/0.2/payload.d.ts +1 -1
  27. package/dist/auth/step-up/approve-response/0.2/payload.d.ts.map +1 -1
  28. package/dist/auth/step-up/approve-response/0.3/payload.d.ts +1 -1
  29. package/dist/auth/step-up/approve-response/0.3/payload.d.ts.map +1 -1
  30. package/dist/auth/step-up/approve-response/0.4/payload.d.ts +1 -1
  31. package/dist/auth/step-up/approve-response/0.4/payload.d.ts.map +1 -1
  32. package/dist/auth/step-up/approve-response/0.5/payload.d.ts +1 -1
  33. package/dist/auth/step-up/approve-response/0.5/payload.d.ts.map +1 -1
  34. package/dist/auth/whoami/0.1/payload.d.ts +1 -1
  35. package/dist/auth/whoami/0.1/payload.d.ts.map +1 -1
  36. package/dist/index.d.ts +3 -0
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/index.js +3 -0
  39. package/dist/index.js.map +1 -1
  40. package/dist/vta/services/rollback/1.1/payload.d.ts +433 -0
  41. package/dist/vta/services/rollback/1.1/payload.d.ts.map +1 -0
  42. package/dist/vta/services/rollback/1.1/payload.js +258 -0
  43. package/dist/vta/services/rollback/1.1/payload.js.map +1 -0
  44. package/package.json +1 -1
  45. package/src/_shared/components.ts +40 -1
  46. package/src/auth/_shared/0.1/session.ts +1 -1
  47. package/src/auth/_shared/0.2/session.ts +17 -0
  48. package/src/auth/authenticate/0.1/payload.ts +1 -1
  49. package/src/auth/authenticate/0.2/payload.ts +444 -0
  50. package/src/auth/passkey/login/finish/0.1/payload.ts +1 -1
  51. package/src/auth/passkey/login/finish/0.2/payload.ts +1 -1
  52. package/src/auth/refresh/0.1/payload.ts +1 -1
  53. package/src/auth/sessions/list/0.1/payload.ts +1 -1
  54. package/src/auth/step-up/approve-response/0.1/payload.ts +1 -1
  55. package/src/auth/step-up/approve-response/0.2/payload.ts +1 -1
  56. package/src/auth/step-up/approve-response/0.3/payload.ts +1 -1
  57. package/src/auth/step-up/approve-response/0.4/payload.ts +1 -1
  58. package/src/auth/step-up/approve-response/0.5/payload.ts +1 -1
  59. package/src/auth/whoami/0.1/payload.ts +1 -1
  60. package/src/index.ts +3 -0
  61. package/src/vta/services/rollback/1.1/payload.ts +294 -0
@@ -0,0 +1,258 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/services/rollback/1.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vta/services/rollback/1.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/services/rollback/1.1#response";
9
+ /**
10
+ * This specification's payload schema, as a value.
11
+ *
12
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
13
+ * rather than only as a `.json` file because TypeScript types are erased
14
+ * at runtime: without a schema a consumer has nothing to validate, and
15
+ * every REQUIRED payload member is optional in practice. Cross-file
16
+ * `$ref`s are already inlined, so it needs no resolver.
17
+ */
18
+ export const PAYLOAD_SCHEMA = {
19
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
20
+ "$id": "https://trusttasks.org/spec/vta/services/rollback/1.1",
21
+ "title": "VTA Services — Rollback — payload",
22
+ "description": "Request payload for vta/services/rollback. Reverts a transport to its previous advertised settings by writing a NEW log entry — the history is append-only, so a rollback is a forward step that restores an earlier state, never an erasure of what happened.",
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": [
26
+ "service"
27
+ ],
28
+ "properties": {
29
+ "service": {
30
+ "$ref": "#/$defs/ServiceKind"
31
+ },
32
+ "drainTtlSecs": {
33
+ "type": "integer",
34
+ "minimum": 0,
35
+ "description": "Mediated transports only (`didcomm`, `tsp`): when the rollback moves the transport off its current mediator, how long that mediator keeps accepting delivery for correspondents still holding the current DID document. Refused for `rest` and `webauthn`. Absent takes the agent's default; ignored when the rollback leaves no mediator draining. The agent may raise a value below its floor to the floor — and does, over a request that arrived through the mediator being replaced — and one mediator carrying both mediated transports drains once for both, so read `drainUntil` in the result for the window actually applied."
36
+ },
37
+ "ext": {
38
+ "$ref": "#/$defs/Ext"
39
+ }
40
+ },
41
+ "$defs": {
42
+ "Response": {
43
+ "$anchor": "response",
44
+ "title": "VTA Services — Rollback — response payload",
45
+ "description": "Success response to vta/services/rollback. Type https://trusttasks.org/spec/vta/services/rollback/1.1#response.",
46
+ "type": "object",
47
+ "additionalProperties": false,
48
+ "required": [
49
+ "result"
50
+ ],
51
+ "properties": {
52
+ "result": {
53
+ "$ref": "#/$defs/RollbackResult"
54
+ },
55
+ "ext": {
56
+ "$ref": "#/$defs/Ext"
57
+ }
58
+ }
59
+ },
60
+ "Ext": {
61
+ "title": "Ext",
62
+ "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.",
63
+ "type": "object",
64
+ "minProperties": 1,
65
+ "additionalProperties": true,
66
+ "propertyNames": {
67
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
68
+ }
69
+ },
70
+ "RollbackResult": {
71
+ "title": "RollbackResult",
72
+ "description": "The outcome of a rollback. Distinct from ServiceMutationResult because a rollback can legitimately publish nothing: if the previous state already equals the current one there is no change to write, and `kind: \"noOp\"` says so with `logEntryVersionId` absent. Treating that as a failure would be wrong — the requested state holds — and treating it as an ordinary success would report a log entry that does not exist.",
73
+ "type": "object",
74
+ "additionalProperties": false,
75
+ "required": [
76
+ "kind"
77
+ ],
78
+ "properties": {
79
+ "kind": {
80
+ "type": "string",
81
+ "enum": [
82
+ "disabled",
83
+ "enabled",
84
+ "updated",
85
+ "noOp"
86
+ ],
87
+ "description": "What the rollback did. `disabled` re-disabled the transport, `enabled` re-advertised it at its prior settings, `updated` restored prior settings on an entry that stayed advertised, and `noOp` means the previous state already matched — nothing was written."
88
+ },
89
+ "logEntryVersionId": {
90
+ "type": "string",
91
+ "description": "Version id of the log entry the rollback wrote. **Absent when `kind` is `noOp`**, and present otherwise."
92
+ },
93
+ "effectiveAt": {
94
+ "type": "string",
95
+ "format": "date-time",
96
+ "description": "RFC 3339 instant the rollback took effect. Absent for `noOp`."
97
+ },
98
+ "drainingMediator": {
99
+ "type": "string",
100
+ "description": "Present when rolling back DIDComm left a mediator draining."
101
+ },
102
+ "drainUntil": {
103
+ "type": "string",
104
+ "format": "date-time",
105
+ "description": "When that drain completes."
106
+ },
107
+ "vtaDid": {
108
+ "type": "string",
109
+ "description": "The agent's own DID."
110
+ },
111
+ "serverless": {
112
+ "type": "boolean",
113
+ "default": false,
114
+ "description": "True when the entry was written locally but not published — the operator must redeploy before any verifier sees it."
115
+ },
116
+ "ext": {
117
+ "$ref": "#/$defs/Ext"
118
+ }
119
+ }
120
+ },
121
+ "ServiceKind": {
122
+ "title": "ServiceKind",
123
+ "description": "Which transport a task is acting on. This is the discriminator: it selects which member of `config` is meaningful, and a payload naming one kind with another's config is malformed rather than merely ignored.",
124
+ "type": "string",
125
+ "enum": [
126
+ "didcomm",
127
+ "rest",
128
+ "tsp",
129
+ "webauthn"
130
+ ]
131
+ }
132
+ }
133
+ };
134
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
135
+ export const RESPONSE_PAYLOAD_SCHEMA = {
136
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
137
+ "$ref": "#/$defs/Response",
138
+ "$defs": {
139
+ "Response": {
140
+ "$anchor": "response",
141
+ "title": "VTA Services — Rollback — response payload",
142
+ "description": "Success response to vta/services/rollback. Type https://trusttasks.org/spec/vta/services/rollback/1.1#response.",
143
+ "type": "object",
144
+ "additionalProperties": false,
145
+ "required": [
146
+ "result"
147
+ ],
148
+ "properties": {
149
+ "result": {
150
+ "$ref": "#/$defs/RollbackResult"
151
+ },
152
+ "ext": {
153
+ "$ref": "#/$defs/Ext"
154
+ }
155
+ }
156
+ },
157
+ "Ext": {
158
+ "title": "Ext",
159
+ "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.",
160
+ "type": "object",
161
+ "minProperties": 1,
162
+ "additionalProperties": true,
163
+ "propertyNames": {
164
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
165
+ }
166
+ },
167
+ "RollbackResult": {
168
+ "title": "RollbackResult",
169
+ "description": "The outcome of a rollback. Distinct from ServiceMutationResult because a rollback can legitimately publish nothing: if the previous state already equals the current one there is no change to write, and `kind: \"noOp\"` says so with `logEntryVersionId` absent. Treating that as a failure would be wrong — the requested state holds — and treating it as an ordinary success would report a log entry that does not exist.",
170
+ "type": "object",
171
+ "additionalProperties": false,
172
+ "required": [
173
+ "kind"
174
+ ],
175
+ "properties": {
176
+ "kind": {
177
+ "type": "string",
178
+ "enum": [
179
+ "disabled",
180
+ "enabled",
181
+ "updated",
182
+ "noOp"
183
+ ],
184
+ "description": "What the rollback did. `disabled` re-disabled the transport, `enabled` re-advertised it at its prior settings, `updated` restored prior settings on an entry that stayed advertised, and `noOp` means the previous state already matched — nothing was written."
185
+ },
186
+ "logEntryVersionId": {
187
+ "type": "string",
188
+ "description": "Version id of the log entry the rollback wrote. **Absent when `kind` is `noOp`**, and present otherwise."
189
+ },
190
+ "effectiveAt": {
191
+ "type": "string",
192
+ "format": "date-time",
193
+ "description": "RFC 3339 instant the rollback took effect. Absent for `noOp`."
194
+ },
195
+ "drainingMediator": {
196
+ "type": "string",
197
+ "description": "Present when rolling back DIDComm left a mediator draining."
198
+ },
199
+ "drainUntil": {
200
+ "type": "string",
201
+ "format": "date-time",
202
+ "description": "When that drain completes."
203
+ },
204
+ "vtaDid": {
205
+ "type": "string",
206
+ "description": "The agent's own DID."
207
+ },
208
+ "serverless": {
209
+ "type": "boolean",
210
+ "default": false,
211
+ "description": "True when the entry was written locally but not published — the operator must redeploy before any verifier sees it."
212
+ },
213
+ "ext": {
214
+ "$ref": "#/$defs/Ext"
215
+ }
216
+ }
217
+ },
218
+ "ServiceKind": {
219
+ "title": "ServiceKind",
220
+ "description": "Which transport a task is acting on. This is the discriminator: it selects which member of `config` is meaningful, and a payload naming one kind with another's config is malformed rather than merely ignored.",
221
+ "type": "string",
222
+ "enum": [
223
+ "didcomm",
224
+ "rest",
225
+ "tsp",
226
+ "webauthn"
227
+ ]
228
+ }
229
+ }
230
+ };
231
+ /**
232
+ * SPEC.md §7.2 policy for the request variant, from this specification's
233
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
234
+ * per-specification and cannot be derived from the document alone, and
235
+ * item 2 needs the schema this carries.
236
+ */
237
+ export const SPEC = {
238
+ typeUri: TYPE_URI,
239
+ isBearer: false,
240
+ isProofRequired: true,
241
+ isRecipientRequired: true,
242
+ isIssuedAtRequired: true,
243
+ payloadSchema: PAYLOAD_SCHEMA,
244
+ };
245
+ /**
246
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
247
+ * tracks the *issuer* party's requirement because a response swaps the
248
+ * parties (§7.3 item 5).
249
+ */
250
+ export const RESPONSE_SPEC = {
251
+ typeUri: RESPONSE_TYPE_URI,
252
+ isBearer: false,
253
+ isProofRequired: true,
254
+ isRecipientRequired: true,
255
+ isIssuedAtRequired: true,
256
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
257
+ };
258
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vta/services/rollback/1.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA2BH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,uDAAgE,CAAC;AAKzF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,gEAAyE,CAAC;AAK3G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,uDAAuD;IAC9D,OAAO,EAAE,mCAAmC;IAC5C,aAAa,EAAE,gQAAgQ;IAC/Q,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,SAAS;KACV;IACD,YAAY,EAAE;QACZ,SAAS,EAAE;YACT,MAAM,EAAE,qB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AAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openvtc/trust-tasks",
3
- "version": "0.21.8",
3
+ "version": "0.21.10",
4
4
  "description": "Generated TypeScript bindings for the Trust Tasks framework registry.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -4703,7 +4703,7 @@ export interface ServiceState {
4703
4703
  /**
4704
4704
  * A logical authentication context bound to a subject. Producers and consumers exchange Session-shaped data in challenge issuance, authentication responses, and introspection (whoami).
4705
4705
  */
4706
- export interface Session {
4706
+ export interface Session_AuthV0_1 {
4707
4707
  /**
4708
4708
  * Opaque, server-chosen session identifier. Stable for the lifetime of the session. Consumers MUST treat the value as opaque; no structure is implied.
4709
4709
  */
@@ -4735,6 +4735,45 @@ export interface Session {
4735
4735
  */
4736
4736
  ext?: Ext;
4737
4737
  }
4738
+ /**
4739
+ * A logical authentication context bound to a subject. Producers and consumers exchange Session-shaped data in challenge issuance, authentication responses, and introspection (whoami).
4740
+ */
4741
+ export interface Session_AuthV0_2 {
4742
+ /**
4743
+ * Opaque, server-chosen session identifier. Stable for the lifetime of the session. Consumers MUST treat the value as opaque; no structure is implied.
4744
+ */
4745
+ id: string;
4746
+ /**
4747
+ * The authenticated party's VID (typically a DID URL).
4748
+ */
4749
+ subject: string;
4750
+ /**
4751
+ * ISO-8601 timestamp when the session was created.
4752
+ */
4753
+ issuedAt: string;
4754
+ /**
4755
+ * ISO-8601 timestamp when the session ceases to be valid. Producers SHOULD refresh before this time; consumers MUST reject after.
4756
+ */
4757
+ expiresAt: string;
4758
+ /**
4759
+ * Authentication Methods References per [RFC 8176]. Typical values: "did" (challenge-response), "passkey" (WebAuthn), "vta" (verifiable-trust agent approval). Multi-factor sessions list every method used.
4760
+ *
4761
+ * @minItems 1
4762
+ */
4763
+ amr?: [string, ...string[]];
4764
+ /**
4765
+ * Authentication Context Class Reference per [OIDC Core §2]. Profiles define their own values; the recommended set is "aal1" (single-factor DID auth), "aal2" (a second possession-or-biometric factor confirmed), and "aal3" (hardware-bound second factor).
4766
+ */
4767
+ acr?: string;
4768
+ /**
4769
+ * The did:key VID bound to this session by auth/authenticate/0.2, when the producer registered one. Present here so introspection (auth/whoami, auth/sessions/list) can show the binding a client already holds; it is descriptive, not an additional grant — the binding, its scope and its lifetime are governed entirely by the auth/authenticate/0.2 specification that established it. Absent when the session was established without a session key, or by a specification version that does not carry one.
4770
+ */
4771
+ sessionKey?: string;
4772
+ /**
4773
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
4774
+ */
4775
+ ext?: Ext;
4776
+ }
4738
4777
  export interface WebOrigin_VaultV0_1 {
4739
4778
  kind: "web-origin";
4740
4779
  /**
@@ -14,4 +14,4 @@ export interface AuthSharedSessionDefinitions {
14
14
  * The definitions this shared schema publishes, hoisted to one declaration each.
15
15
  * See "../../../_shared/components.js".
16
16
  */
17
- export type { Session } from "../../../_shared/components.js";
17
+ export type { Session_AuthV0_1 as Session } 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/auth/_shared/0.2/session.schema.json
4
+ */
5
+
6
+ /**
7
+ * Reusable JSON Schema fragments that describe an authenticated session, referenced by the auth/* Trust Task specifications. 0.2 adds the optional sessionKey binding (auth/authenticate/0.2); 0.1 remains in place for specifications still pinned to it (SPEC.md §6.6 item 3 — a component version bump never changes an already-published specification version underfoot).
8
+ */
9
+ export interface AuthSharedSessionDefinitions {
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 { Session_AuthV0_2 as Session } from "../../../_shared/components.js";
@@ -3,7 +3,7 @@
3
3
  * Source: specs/auth/authenticate/0.1/payload.schema.json
4
4
  */
5
5
 
6
- import type { Ext, Session, TokenBundle } from "../../../_shared/components.js";
6
+ import type { Ext, Session_AuthV0_1 as Session, TokenBundle } from "../../../_shared/components.js";
7
7
 
8
8
 
9
9
  /**