@openvtc/trust-tasks 0.25.2 → 0.26.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 (43) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/dist/_shared/components.d.ts +10 -1
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +1 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +1 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/vtc/_shared/0.1/room-storage.d.ts +1 -1
  9. package/dist/vtc/_shared/0.1/room-storage.d.ts.map +1 -1
  10. package/dist/vtc/oid4vp/identities/list/0.1/payload.d.ts +938 -0
  11. package/dist/vtc/oid4vp/identities/list/0.1/payload.d.ts.map +1 -0
  12. package/dist/vtc/oid4vp/identities/list/0.1/payload.js +559 -0
  13. package/dist/vtc/oid4vp/identities/list/0.1/payload.js.map +1 -0
  14. package/dist/vtc/storage/configs/create/0.1/payload.d.ts +50 -10
  15. package/dist/vtc/storage/configs/create/0.1/payload.d.ts.map +1 -1
  16. package/dist/vtc/storage/configs/create/0.1/payload.js +24 -2
  17. package/dist/vtc/storage/configs/create/0.1/payload.js.map +1 -1
  18. package/dist/vtc/storage/configs/get/0.1/payload.d.ts +66 -10
  19. package/dist/vtc/storage/configs/get/0.1/payload.d.ts.map +1 -1
  20. package/dist/vtc/storage/configs/get/0.1/payload.js +32 -2
  21. package/dist/vtc/storage/configs/get/0.1/payload.js.map +1 -1
  22. package/dist/vtc/storage/configs/list/0.1/payload.d.ts +66 -10
  23. package/dist/vtc/storage/configs/list/0.1/payload.d.ts.map +1 -1
  24. package/dist/vtc/storage/configs/list/0.1/payload.js +32 -2
  25. package/dist/vtc/storage/configs/list/0.1/payload.js.map +1 -1
  26. package/dist/vtc/storage/configs/update/0.1/payload.d.ts +50 -10
  27. package/dist/vtc/storage/configs/update/0.1/payload.d.ts.map +1 -1
  28. package/dist/vtc/storage/configs/update/0.1/payload.js +24 -2
  29. package/dist/vtc/storage/configs/update/0.1/payload.js.map +1 -1
  30. package/dist/vtc/storage/credentials/set/0.1/payload.d.ts +46 -2
  31. package/dist/vtc/storage/credentials/set/0.1/payload.d.ts.map +1 -1
  32. package/dist/vtc/storage/credentials/set/0.1/payload.js +22 -0
  33. package/dist/vtc/storage/credentials/set/0.1/payload.js.map +1 -1
  34. package/package.json +1 -1
  35. package/src/_shared/components.ts +10 -1
  36. package/src/index.ts +1 -0
  37. package/src/vtc/_shared/0.1/room-storage.ts +1 -1
  38. package/src/vtc/oid4vp/identities/list/0.1/payload.ts +706 -0
  39. package/src/vtc/storage/configs/create/0.1/payload.ts +26 -4
  40. package/src/vtc/storage/configs/get/0.1/payload.ts +34 -4
  41. package/src/vtc/storage/configs/list/0.1/payload.ts +34 -4
  42. package/src/vtc/storage/configs/update/0.1/payload.ts +26 -4
  43. package/src/vtc/storage/credentials/set/0.1/payload.ts +24 -2
@@ -108,6 +108,10 @@ export const PAYLOAD_SCHEMA = {
108
108
  "none"
109
109
  ]
110
110
  },
111
+ "context": {
112
+ "$ref": "#/$defs/ExternalAccountContextId",
113
+ "description": "Present with `vta-account`."
114
+ },
111
115
  "account": {
112
116
  "$ref": "#/$defs/ExternalAccountId",
113
117
  "description": "Present with `vta-account`."
@@ -136,6 +140,13 @@ export const PAYLOAD_SCHEMA = {
136
140
  "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$",
137
141
  "description": "The identifier of an external account held by the community's VTA (the external/accounts/* family), which issues the community short-lived, room-scoped credentials and holds the long-lived authority itself."
138
142
  },
143
+ "ExternalAccountContextId": {
144
+ "title": "ExternalAccountContextId",
145
+ "type": "string",
146
+ "minLength": 1,
147
+ "maxLength": 256,
148
+ "description": "The context at the community's VTA that owns an external account. The VTA names an account by its context and its identifier, and decides who may use it by act scope in that context: the community must hold `external-auth-use` there, and be bound to the account, for the account to issue it anything. Naming a context grants nothing; the VTA's binding is the gate."
149
+ },
139
150
  "DigestMultibase": {
140
151
  "title": "DigestMultibase",
141
152
  "description": "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.",
@@ -215,6 +226,10 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
215
226
  "none"
216
227
  ]
217
228
  },
229
+ "context": {
230
+ "$ref": "#/$defs/ExternalAccountContextId",
231
+ "description": "Present with `vta-account`."
232
+ },
218
233
  "account": {
219
234
  "$ref": "#/$defs/ExternalAccountId",
220
235
  "description": "Present with `vta-account`."
@@ -243,6 +258,13 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
243
258
  "pattern": "^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$",
244
259
  "description": "The identifier of an external account held by the community's VTA (the external/accounts/* family), which issues the community short-lived, room-scoped credentials and holds the long-lived authority itself."
245
260
  },
261
+ "ExternalAccountContextId": {
262
+ "title": "ExternalAccountContextId",
263
+ "type": "string",
264
+ "minLength": 1,
265
+ "maxLength": 256,
266
+ "description": "The context at the community's VTA that owns an external account. The VTA names an account by its context and its identifier, and decides who may use it by act scope in that context: the community must hold `external-auth-use` there, and be bound to the account, for the account to issue it anything. Naming a context grants nothing; the VTA's binding is the gate."
267
+ },
246
268
  "DigestMultibase": {
247
269
  "title": "DigestMultibase",
248
270
  "description": "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.",
@@ -1 +1 @@
1
- {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/vtc/storage/credentials/set/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAqCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,6DAAsE,CAAC;AAK/F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,sEAA+E,CAAC;AAKjH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAA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e,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/vtc/storage/credentials/set/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAqCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,6DAAsE,CAAC;AAK/F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,sEAA+E,CAAC;AAKjH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,6DAA6D;IACpE,OAAO,EAAE,2CAA2C;IACpD,aAAa,EAAE,iMAAiM;IAChN,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,UAAU;QACV,QAAQ;QACR,iBAAiB;QACjB,QAAQ;KACT;IACD,YAAY,EAAE;QACZ,UAAU,EAAE;YACV,MAAM,EAAE,yBAAyB;SAClC;QACD,QAAQ,EAAE;YACR,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,EAAE;YACf,WAAW,EAAE,KAAK;YAClB,SAAS,EAAE,oCAAoC;YAC/C,aAAa,EAAE,uPAAuP;SACvQ;QACD,iBAAiB,EAAE;YACjB,MAAM,EAAE,yBAAyB;YACjC,aAAa,EAAE,mJAAmJ;SACnK;QACD,QAAQ,EAAE;YACR,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,GAAG;YAChB,aAAa,EAAE,4QAA4Q;SAC5R;QACD,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;SACtB;KACF;IACD,OAAO,EAAE;QACP,UAAU,EAAE;YACV,SAAS,EAAE,UAAU;YACrB,OAAO,EAAE,oDAAoD;YAC7D,MAAM,EAAE,QAAQ;YAChB,sBAAs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AS,EAAE,wCAAwC;YACnD,aAAa,EAAE,gNAAgN;SAChO;QACD,0BAA0B,EAAE;YAC1B,OAAO,EAAE,0BAA0B;YACnC,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,GAAG;YAChB,aAAa,EAAE,8WAA8W;SAC9X;QACD,iBAAiB,EAAE;YACjB,OAAO,EAAE,iBAAiB;YAC1B,aAAa,EAAE,gnDAAgnD;YAC/nD,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,EAAE;YACf,SAAS,EAAE,4CAA4C;YACvD,UAAU,EAAE;gBACV,iDAAiD;aAClD;SACF;QACD,iBAAiB,EAAE;YACjB,OAAO,EAAE,iBAAiB;YAC1B,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,EAAE;YACf,SAAS,EAAE,wCAAwC;YACnD,aAAa,EAAE,8TAA8T;SAC9U;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,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.25.2",
3
+ "version": "0.26.1",
4
4
  "description": "Generated TypeScript bindings for the Trust Tasks framework registry.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -687,6 +687,10 @@ export type ExpiresAt = string;
687
687
  * @minItems 1
688
688
  */
689
689
  export type ExtCritical = [string, ...string[]];
690
+ /**
691
+ * The context at the community's VTA that owns an external account. The VTA names an account by its context and its identifier, and decides who may use it by act scope in that context: the community must hold `external-auth-use` there, and be bound to the account, for the account to issue it anything. Naming a context grants nothing; the VTA's binding is the gate.
692
+ */
693
+ export type ExternalAccountContextId = string;
690
694
  /**
691
695
  * The identifier of an external account held by the community's VTA (the external/accounts/* family), which issues the community short-lived, room-scoped credentials and holds the long-lived authority itself.
692
696
  */
@@ -1222,7 +1226,7 @@ export type Slot = string;
1222
1226
  /**
1223
1227
  * How the community authenticates to a config's backend. Absent on a `local` config, which needs none.
1224
1228
  *
1225
- * `vta-account` (RECOMMENDED): an external account in the community's VTA. The VTA holds the long-lived authority; the community holds nothing that outlives a credential lifetime, and asks for credentials scoped to one room's prefix for at most 15 minutes, every issuance audited at the VTA. Required for a `walrus` config other than a `sealed` one, since the VTA's `sui-signer` account signs its storage transactions.
1229
+ * `vta-account` (RECOMMENDED): an external account in the community's VTA, named by the context that owns it and its identifier there. The VTA holds the long-lived authority; the community holds nothing that outlives a credential lifetime, and asks for credentials scoped to one room's prefix for at most 15 minutes, every issuance audited at the VTA. Required for a `walrus` config other than a `sealed` one, since the VTA's `sui-signer` account signs its storage transactions.
1226
1230
  *
1227
1231
  * `ambient`: the cloud identity of the machine the community runs on (an instance role, workload identity), downscoped to one room's prefix by the community itself. Not audited or rate-limited by the VTA, and usable by anything on that machine that reaches the metadata endpoint. Not valid for `walrus`.
1228
1232
  *
@@ -1231,6 +1235,7 @@ export type Slot = string;
1231
1235
  export type StorageAuth =
1232
1236
  | {
1233
1237
  mode: "vta-account";
1238
+ context: ExternalAccountContextId;
1234
1239
  account: ExternalAccountId;
1235
1240
  }
1236
1241
  | {
@@ -4884,6 +4889,10 @@ export interface CredentialScopeCeiling {
4884
4889
  */
4885
4890
  export interface CredentialState {
4886
4891
  status: "vta-account" | "ambient" | "sealed" | "required" | "none";
4892
+ /**
4893
+ * Present with `vta-account`.
4894
+ */
4895
+ context?: ExternalAccountContextId;
4887
4896
  /**
4888
4897
  * Present with `vta-account`.
4889
4898
  */
package/src/index.ts CHANGED
@@ -780,6 +780,7 @@ export * as VtcMembersSolicitVmc_v0_1 from "./vtc/members/solicit-vmc/0.1/payloa
780
780
  export * as VtcMembersStepUpPasskeyNotice_v0_1 from "./vtc/members/step-up-passkey-notice/0.1/payload.js";
781
781
  export * as VtcMembersUpdate_v0_1 from "./vtc/members/update/0.1/payload.js";
782
782
  export * as VtcMembersVmc_v0_1 from "./vtc/members/vmc/0.1/payload.js";
783
+ export * as VtcOid4vpIdentitiesList_v0_1 from "./vtc/oid4vp/identities/list/0.1/payload.js";
783
784
  export * as VtcOperatorOfflineWrite_v0_1 from "./vtc/operator/offline-write/0.1/payload.js";
784
785
  export * as VtcPoliciesTest_v0_1 from "./vtc/policies/test/0.1/payload.js";
785
786
  export * as VtcRecognitionCheck_v0_1 from "./vtc/recognition/check/0.1/payload.js";
@@ -14,4 +14,4 @@ export interface VTCSharedRoomStorageDefinitions {
14
14
  * The definitions this shared schema publishes, hoisted to one declaration each.
15
15
  * See "../../../_shared/components.js".
16
16
  */
17
- export type { ConfigState, CredentialState, EffectiveLimits, ExternalAccountId, GcsSettings, HostedRoom, LimitSource, LimitTarget, LocalSettings, ObjectPrefix, S3Settings, StorageAuth, StorageConfig, StorageConfigFacts, StorageConfigId, StorageHealth, StorageKind, StorageSettings, WalrusSettings } from "../../../_shared/components.js";
17
+ export type { ConfigState, CredentialState, EffectiveLimits, ExternalAccountContextId, ExternalAccountId, GcsSettings, HostedRoom, LimitSource, LimitTarget, LocalSettings, ObjectPrefix, S3Settings, StorageAuth, StorageConfig, StorageConfigFacts, StorageConfigId, StorageHealth, StorageKind, StorageSettings, WalrusSettings } from "../../../_shared/components.js";