@openvtc/trust-tasks 0.2.39 → 0.2.41

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 (66) hide show
  1. package/dist/credential-exchange/_shared/0.1/deferred-presentation.d.ts +11 -0
  2. package/dist/credential-exchange/_shared/0.1/deferred-presentation.d.ts.map +1 -0
  3. package/dist/credential-exchange/_shared/0.1/deferred-presentation.js +6 -0
  4. package/dist/credential-exchange/_shared/0.1/deferred-presentation.js.map +1 -0
  5. package/dist/credential-exchange/issue/0.1/payload.d.ts +31 -0
  6. package/dist/credential-exchange/issue/0.1/payload.d.ts.map +1 -0
  7. package/dist/credential-exchange/issue/0.1/payload.js +9 -0
  8. package/dist/credential-exchange/issue/0.1/payload.js.map +1 -0
  9. package/dist/credential-exchange/offer/0.1/payload.d.ts +25 -0
  10. package/dist/credential-exchange/offer/0.1/payload.d.ts.map +1 -0
  11. package/dist/credential-exchange/offer/0.1/payload.js +9 -0
  12. package/dist/credential-exchange/offer/0.1/payload.js.map +1 -0
  13. package/dist/credential-exchange/pending/approve/0.1/payload.d.ts +25 -0
  14. package/dist/credential-exchange/pending/approve/0.1/payload.d.ts.map +1 -0
  15. package/dist/credential-exchange/pending/approve/0.1/payload.js +9 -0
  16. package/dist/credential-exchange/pending/approve/0.1/payload.js.map +1 -0
  17. package/dist/credential-exchange/pending/deny/0.1/payload.d.ts +25 -0
  18. package/dist/credential-exchange/pending/deny/0.1/payload.d.ts.map +1 -0
  19. package/dist/credential-exchange/pending/deny/0.1/payload.js +9 -0
  20. package/dist/credential-exchange/pending/deny/0.1/payload.js.map +1 -0
  21. package/dist/credential-exchange/pending/list/0.1/payload.d.ts +21 -0
  22. package/dist/credential-exchange/pending/list/0.1/payload.d.ts.map +1 -0
  23. package/dist/credential-exchange/pending/list/0.1/payload.js +9 -0
  24. package/dist/credential-exchange/pending/list/0.1/payload.js.map +1 -0
  25. package/dist/credential-exchange/present/0.1/payload.d.ts +25 -0
  26. package/dist/credential-exchange/present/0.1/payload.d.ts.map +1 -0
  27. package/dist/credential-exchange/present/0.1/payload.js +9 -0
  28. package/dist/credential-exchange/present/0.1/payload.js.map +1 -0
  29. package/dist/credential-exchange/query/0.1/payload.d.ts +33 -0
  30. package/dist/credential-exchange/query/0.1/payload.d.ts.map +1 -0
  31. package/dist/credential-exchange/query/0.1/payload.js +9 -0
  32. package/dist/credential-exchange/query/0.1/payload.js.map +1 -0
  33. package/dist/credential-exchange/request/0.1/payload.d.ts +25 -0
  34. package/dist/credential-exchange/request/0.1/payload.d.ts.map +1 -0
  35. package/dist/credential-exchange/request/0.1/payload.js +9 -0
  36. package/dist/credential-exchange/request/0.1/payload.js.map +1 -0
  37. package/dist/index.d.ts +12 -0
  38. package/dist/index.d.ts.map +1 -1
  39. package/dist/index.js +12 -0
  40. package/dist/index.js.map +1 -1
  41. package/dist/vtc/_shared/0.1/config-portability.d.ts +11 -0
  42. package/dist/vtc/_shared/0.1/config-portability.d.ts.map +1 -0
  43. package/dist/vtc/_shared/0.1/config-portability.js +6 -0
  44. package/dist/vtc/_shared/0.1/config-portability.js.map +1 -0
  45. package/dist/vtc/config/export/0.1/payload.d.ts +21 -0
  46. package/dist/vtc/config/export/0.1/payload.d.ts.map +1 -0
  47. package/dist/vtc/config/export/0.1/payload.js +9 -0
  48. package/dist/vtc/config/export/0.1/payload.js.map +1 -0
  49. package/dist/vtc/config/import/0.1/payload.d.ts +73 -0
  50. package/dist/vtc/config/import/0.1/payload.d.ts.map +1 -0
  51. package/dist/vtc/config/import/0.1/payload.js +9 -0
  52. package/dist/vtc/config/import/0.1/payload.js.map +1 -0
  53. package/package.json +1 -1
  54. package/src/credential-exchange/_shared/0.1/deferred-presentation.ts +11 -0
  55. package/src/credential-exchange/issue/0.1/payload.ts +34 -0
  56. package/src/credential-exchange/offer/0.1/payload.ts +27 -0
  57. package/src/credential-exchange/pending/approve/0.1/payload.ts +27 -0
  58. package/src/credential-exchange/pending/deny/0.1/payload.ts +27 -0
  59. package/src/credential-exchange/pending/list/0.1/payload.ts +23 -0
  60. package/src/credential-exchange/present/0.1/payload.ts +27 -0
  61. package/src/credential-exchange/query/0.1/payload.ts +35 -0
  62. package/src/credential-exchange/request/0.1/payload.ts +27 -0
  63. package/src/index.ts +12 -0
  64. package/src/vtc/_shared/0.1/config-portability.ts +11 -0
  65. package/src/vtc/config/export/0.1/payload.ts +23 -0
  66. package/src/vtc/config/import/0.1/payload.ts +75 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-portability.d.ts","sourceRoot":"","sources":["../../../../src/vtc/_shared/0.1/config-portability.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,qCAAqC;IACpD,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/_shared/0.1/config-portability.schema.json
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=config-portability.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-portability.js","sourceRoot":"","sources":["../../../../src/vtc/_shared/0.1/config-portability.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/config/export/0.1/payload.schema.json
4
+ */
5
+ /**
6
+ * Export a community's portable configuration — its profile and its stored configuration overrides — as one document. Takes no parameters: a partial export is not portable, so there is nothing to select.
7
+ */
8
+ export interface VTCConfigExportPayload {
9
+ ext?: Ext;
10
+ }
11
+ /**
12
+ * 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.
13
+ */
14
+ export interface Ext {
15
+ [k: string]: unknown | undefined;
16
+ }
17
+ /** Trust Task type URI. */
18
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/config/export/0.1";
19
+ /** Trust Task response type URI (request type URI + "#response"). */
20
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/config/export/0.1#response";
21
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vtc/config/export/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,mDAA4D,CAAC;AAErF,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,4DAAqE,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/config/export/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/config/export/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/config/export/0.1#response";
9
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vtc/config/export/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAeH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,mDAA4D,CAAC;AAErF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,4DAAqE,CAAC"}
@@ -0,0 +1,73 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/config/import/0.1/payload.schema.json
4
+ */
5
+ /**
6
+ * Apply a portable configuration document to this community, or preview what applying it would change. Defaults to a preview.
7
+ */
8
+ export interface VTCConfigImportPayload {
9
+ document: ConfigExportDocument;
10
+ /**
11
+ * `false` (default) previews: the diff is computed and returned, nothing is written. `true` applies it. The preview and the apply return the same shape, so an operator UX can render one and then re-submit.
12
+ */
13
+ confirm?: boolean;
14
+ ext?: Ext;
15
+ }
16
+ /**
17
+ * The document returned by `vtc/config/export`.
18
+ */
19
+ export interface ConfigExportDocument {
20
+ /**
21
+ * Version of this document's own shape. Not redundant with the Type URI version: once the document is written to a file it is bare JSON with no envelope, and this is the only thing a later reader has to check it against. A consumer MUST reject a version it does not implement rather than guess.
22
+ */
23
+ schemaVersion: number;
24
+ /**
25
+ * When the export was taken. Provenance for the operator; a consumer does not act on it.
26
+ */
27
+ exportedAt: string;
28
+ communityProfile?: CommunityProfileSnapshot;
29
+ /**
30
+ * Stored configuration overrides as `key → value`, keyed by the maintainer's own configuration registry (the same keys `config/show` and `config/patch` use). An empty object is valid and means no overrides are set.
31
+ */
32
+ configOverrides: {
33
+ [k: string]: unknown | undefined;
34
+ };
35
+ ext?: Ext;
36
+ }
37
+ /**
38
+ * The community's profile at export time. Absent when the community has no profile yet — a maintainer exported before bootstrap.
39
+ */
40
+ export interface CommunityProfileSnapshot {
41
+ /**
42
+ * DID of the community this document was taken from. Immutable, set at install.
43
+ */
44
+ communityDid: string;
45
+ name: string;
46
+ description?: string;
47
+ logoUrl?: string | null;
48
+ publicUrl?: string | null;
49
+ contactEmail?: string | null;
50
+ /**
51
+ * BCP 47 language tag.
52
+ */
53
+ language: string;
54
+ /**
55
+ * Opaque community-defined extension bag.
56
+ */
57
+ extensions?: {};
58
+ /**
59
+ * When the community was created. Provenance only — an import never writes it.
60
+ */
61
+ createdAt?: string;
62
+ }
63
+ /**
64
+ * 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.
65
+ */
66
+ export interface Ext {
67
+ [k: string]: unknown | undefined;
68
+ }
69
+ /** Trust Task type URI. */
70
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/config/import/0.1";
71
+ /** Trust Task response type URI (request type URI + "#response"). */
72
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/config/import/0.1#response";
73
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vtc/config/import/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,oBAAoB,CAAC;IAC/B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,wBAAwB,CAAC;IAC5C;;OAEG;IACH,eAAe,EAAE;QACf,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;KAClC,CAAC;IACF,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,EAAE,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,mDAA4D,CAAC;AAErF,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,4DAAqE,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/config/import/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/config/import/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/config/import/0.1#response";
9
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vtc/config/import/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAmEH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,mDAA4D,CAAC;AAErF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,4DAAqE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openvtc/trust-tasks",
3
- "version": "0.2.39",
3
+ "version": "0.2.41",
4
4
  "description": "Generated TypeScript bindings for the Trust Tasks framework registry.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/credential-exchange/_shared/0.1/deferred-presentation.schema.json
4
+ */
5
+
6
+ /**
7
+ * Shared types for the credential-exchange/pending/* family: the approver-facing view of a presentation request a holder deferred for consent, and the per-credential detail of what answering it would disclose.
8
+ */
9
+ export interface CredentialExchangeSharedDeferredPresentationDefinitions {
10
+ [k: string]: unknown | undefined;
11
+ }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/credential-exchange/issue/0.1/payload.schema.json
4
+ */
5
+
6
+ /**
7
+ * Issuer to holder: the issued credential. Exactly one of `credential_response` (cleartext, known holder over an authenticated channel) or `sealed` (an armored sealed-transfer bundle, for a secret-bearing credential or an unknown holder).
8
+ */
9
+ export type CredentialExchangeIssuePayload = {
10
+ /**
11
+ * A cleartext OID4VCI Credential Response, carried verbatim. Format-agnostic: the `credential` within is a JSON string (SD-JWT-VC compact serialization) or a JSON object (a W3C Data-Integrity VC with its proof), and the holder infers the format from the value's shape rather than a separate discriminator. snake_case member names are OID4VCI's own.
12
+ */
13
+ credential_response?: {};
14
+ /**
15
+ * An armored sealed-transfer bundle encrypted to the holder. Used when the credential is secret-bearing or the holder is not yet known (invite / air-gap). Only the holder can open it, and an out-of-band digest pins integrity — there is no trust-on-first-use.
16
+ */
17
+ sealed?: string;
18
+ ext?: Ext;
19
+ } & {
20
+ [k: string]: unknown | undefined;
21
+ };
22
+
23
+ /**
24
+ * 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.
25
+ */
26
+ export interface Ext {
27
+ [k: string]: unknown | undefined;
28
+ }
29
+
30
+ /** Trust Task type URI. */
31
+ export const TYPE_URI = "https://trusttasks.org/spec/credential-exchange/issue/0.1" as const;
32
+
33
+ /** Trust Task response type URI (request type URI + "#response"). */
34
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/credential-exchange/issue/0.1#response" as const;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/credential-exchange/offer/0.1/payload.schema.json
4
+ */
5
+
6
+ /**
7
+ * Issuer to holder: an OID4VCI Credential Offer. Opens the issuance thread; the holder replies with credential-exchange/request.
8
+ */
9
+ export interface CredentialExchangeOfferPayload {
10
+ /**
11
+ * An OID4VCI Credential Offer object, carried verbatim. Its members are defined by OpenID for Verifiable Credential Issuance and are deliberately NOT re-specified here — this task is the transport, authentication and threading envelope, and re-stating a foreign specification's shape would create a second source of truth that drifts. snake_case member names are OID4VCI's own.
12
+ */
13
+ credential_offer: {};
14
+ ext?: Ext;
15
+ }
16
+ /**
17
+ * 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.
18
+ */
19
+ export interface Ext {
20
+ [k: string]: unknown | undefined;
21
+ }
22
+
23
+ /** Trust Task type URI. */
24
+ export const TYPE_URI = "https://trusttasks.org/spec/credential-exchange/offer/0.1" as const;
25
+
26
+ /** Trust Task response type URI (request type URI + "#response"). */
27
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/credential-exchange/offer/0.1#response" as const;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/credential-exchange/pending/approve/0.1/payload.schema.json
4
+ */
5
+
6
+ /**
7
+ * Approve a deferred presentation request. The holder mints the presentation against the verifier's original query and nonce and returns it; the deferral is then terminal.
8
+ */
9
+ export interface CredentialExchangePendingApprovePayload {
10
+ /**
11
+ * The deferral to approve, as returned by credential-exchange/pending/list.
12
+ */
13
+ id: string;
14
+ ext?: Ext;
15
+ }
16
+ /**
17
+ * 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.
18
+ */
19
+ export interface Ext {
20
+ [k: string]: unknown | undefined;
21
+ }
22
+
23
+ /** Trust Task type URI. */
24
+ export const TYPE_URI = "https://trusttasks.org/spec/credential-exchange/pending/approve/0.1" as const;
25
+
26
+ /** Trust Task response type URI (request type URI + "#response"). */
27
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/credential-exchange/pending/approve/0.1#response" as const;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/credential-exchange/pending/deny/0.1/payload.schema.json
4
+ */
5
+
6
+ /**
7
+ * Refuse a deferred presentation request. Nothing is presented and the deferral becomes terminal.
8
+ */
9
+ export interface CredentialExchangePendingDenyPayload {
10
+ /**
11
+ * The deferral to refuse, as returned by credential-exchange/pending/list.
12
+ */
13
+ id: string;
14
+ ext?: Ext;
15
+ }
16
+ /**
17
+ * 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.
18
+ */
19
+ export interface Ext {
20
+ [k: string]: unknown | undefined;
21
+ }
22
+
23
+ /** Trust Task type URI. */
24
+ export const TYPE_URI = "https://trusttasks.org/spec/credential-exchange/pending/deny/0.1" as const;
25
+
26
+ /** Trust Task response type URI (request type URI + "#response"). */
27
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/credential-exchange/pending/deny/0.1#response" as const;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/credential-exchange/pending/list/0.1/payload.schema.json
4
+ */
5
+
6
+ /**
7
+ * List the presentation requests this holder deferred for consent and that can still be acted on. Takes no parameters: the caller's authenticated identity is the scope, and a holder agent answers only for its own wallet.
8
+ */
9
+ export interface CredentialExchangePendingListPayload {
10
+ ext?: Ext;
11
+ }
12
+ /**
13
+ * 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.
14
+ */
15
+ export interface Ext {
16
+ [k: string]: unknown | undefined;
17
+ }
18
+
19
+ /** Trust Task type URI. */
20
+ export const TYPE_URI = "https://trusttasks.org/spec/credential-exchange/pending/list/0.1" as const;
21
+
22
+ /** Trust Task response type URI (request type URI + "#response"). */
23
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/credential-exchange/pending/list/0.1#response" as const;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/credential-exchange/present/0.1/payload.schema.json
4
+ */
5
+
6
+ /**
7
+ * Holder to verifier: an OID4VP vp_token carrying the selectively-disclosed, holder-bound presentation. Replies on the query thread.
8
+ */
9
+ export interface CredentialExchangePresentPayload {
10
+ /**
11
+ * The OID4VP `vp_token`, format-agnostic by design. A JSON **string** is an SD-JWT-VC presentation: the consented disclosures plus a mandatory key-binding JWT over the verifier's nonce and audience. A JSON **object** is a W3C Data-Integrity VP whose proof carries the same nonce and domain. A consumer selects the verification path from the value's type rather than a separate format discriminator, so a new credential format needs no new member here. snake_case is OID4VP's own name for this field.
12
+ */
13
+ vp_token: string | {};
14
+ ext?: Ext;
15
+ }
16
+ /**
17
+ * 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.
18
+ */
19
+ export interface Ext {
20
+ [k: string]: unknown | undefined;
21
+ }
22
+
23
+ /** Trust Task type URI. */
24
+ export const TYPE_URI = "https://trusttasks.org/spec/credential-exchange/present/0.1" as const;
25
+
26
+ /** Trust Task response type URI (request type URI + "#response"). */
27
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/credential-exchange/present/0.1#response" as const;
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/credential-exchange/query/0.1/payload.schema.json
4
+ */
5
+
6
+ /**
7
+ * Verifier to holder: an OID4VP DCQL query, a freshness nonce, and a mandatory stated purpose. The holder answers with credential-exchange/present, or defers for consent.
8
+ */
9
+ export interface CredentialExchangeQueryPayload {
10
+ /**
11
+ * An OID4VP DCQL query object, carried verbatim: per-credential `format` selector, `meta` type discriminator (`vct_values` for SD-JWT-VC, `type_values` for W3C), and requested `claims`. Defined by OpenID for Verifiable Presentations and not re-specified here. snake_case member names are DCQL's own.
12
+ */
13
+ dcql_query: {};
14
+ /**
15
+ * Verifier freshness value, bound into the resulting presentation so it cannot be replayed to another verifier or at another time.
16
+ */
17
+ nonce: string;
18
+ /**
19
+ * The verifier's stated reason for asking, shown to the holder. REQUIRED and never empty: purpose binding means a verifier cannot ask for a credential without saying why, and a holder cannot be asked to consent to an unstated use.
20
+ */
21
+ purpose: string;
22
+ ext?: Ext;
23
+ }
24
+ /**
25
+ * 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.
26
+ */
27
+ export interface Ext {
28
+ [k: string]: unknown | undefined;
29
+ }
30
+
31
+ /** Trust Task type URI. */
32
+ export const TYPE_URI = "https://trusttasks.org/spec/credential-exchange/query/0.1" as const;
33
+
34
+ /** Trust Task response type URI (request type URI + "#response"). */
35
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/credential-exchange/query/0.1#response" as const;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/credential-exchange/request/0.1/payload.schema.json
4
+ */
5
+
6
+ /**
7
+ * Holder to issuer: an OID4VCI Credential Request carrying the holder's key-binding proof. Replies on the offer thread.
8
+ */
9
+ export interface CredentialExchangeRequestPayload {
10
+ /**
11
+ * An OID4VCI Credential Request object, carried verbatim, including the embedded key-binding proof (`openid4vci-proof+jwt`). Its members are defined by OpenID for Verifiable Credential Issuance and are not re-specified here. snake_case member names are OID4VCI's own.
12
+ */
13
+ credential_request: {};
14
+ ext?: Ext;
15
+ }
16
+ /**
17
+ * 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.
18
+ */
19
+ export interface Ext {
20
+ [k: string]: unknown | undefined;
21
+ }
22
+
23
+ /** Trust Task type URI. */
24
+ export const TYPE_URI = "https://trusttasks.org/spec/credential-exchange/request/0.1" as const;
25
+
26
+ /** Trust Task response type URI (request type URI + "#response"). */
27
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/credential-exchange/request/0.1#response" as const;
package/src/index.ts CHANGED
@@ -54,6 +54,15 @@ export * as ConsentDecision_v1_0 from "./consent/decision/1.0/payload";
54
54
  export * as ConsentList_v1_0 from "./consent/list/1.0/payload";
55
55
  export * as ConsentRequest_v1_0 from "./consent/request/1.0/payload";
56
56
  export * as ConsentRevoke_v1_0 from "./consent/revoke/1.0/payload";
57
+ export * as DeferredPresentationShared_v0_1 from "./credential-exchange/_shared/0.1/deferred-presentation";
58
+ export * as CredentialExchangeIssue_v0_1 from "./credential-exchange/issue/0.1/payload";
59
+ export * as CredentialExchangeOffer_v0_1 from "./credential-exchange/offer/0.1/payload";
60
+ export * as CredentialExchangePendingApprove_v0_1 from "./credential-exchange/pending/approve/0.1/payload";
61
+ export * as CredentialExchangePendingDeny_v0_1 from "./credential-exchange/pending/deny/0.1/payload";
62
+ export * as CredentialExchangePendingList_v0_1 from "./credential-exchange/pending/list/0.1/payload";
63
+ export * as CredentialExchangePresent_v0_1 from "./credential-exchange/present/0.1/payload";
64
+ export * as CredentialExchangeQuery_v0_1 from "./credential-exchange/query/0.1/payload";
65
+ export * as CredentialExchangeRequest_v0_1 from "./credential-exchange/request/0.1/payload";
57
66
  export * as CredentialsShared_v0_1 from "./credentials/_shared/0.1/credentials";
58
67
  export * as DeviceBindingShared_v0_1 from "./device/_shared/0.1/device-binding";
59
68
  export * as DeviceBindingShared_v0_2 from "./device/_shared/0.2/device-binding";
@@ -219,6 +228,7 @@ export * as VtaPasskeyVmsRevoke_v0_1 from "./vta/passkey-vms/revoke/0.1/payload"
219
228
  export * as VtaWebvhDidsUpdate_v1_0 from "./vta/webvh/dids/update/1.0/payload";
220
229
  export * as BackupShared_v0_1 from "./vtc/_shared/0.1/backup";
221
230
  export * as CommunityShared_v0_1 from "./vtc/_shared/0.1/community";
231
+ export * as ConfigPortabilityShared_v0_1 from "./vtc/_shared/0.1/config-portability";
222
232
  export * as EndorsementTypeShared_v0_1 from "./vtc/_shared/0.1/endorsement-type";
223
233
  export * as EndorsementShared_v0_1 from "./vtc/_shared/0.1/endorsement";
224
234
  export * as InvitationShared_v0_1 from "./vtc/_shared/0.1/invitation";
@@ -237,6 +247,8 @@ export * as VtcBackupImport_v0_1 from "./vtc/backup/import/0.1/payload";
237
247
  export * as VtcCeremoniesList_v0_1 from "./vtc/ceremonies/list/0.1/payload";
238
248
  export * as VtcCommunityProfileShow_v0_1 from "./vtc/community/profile/show/0.1/payload";
239
249
  export * as VtcCommunityProfileUpdate_v0_1 from "./vtc/community/profile/update/0.1/payload";
250
+ export * as VtcConfigExport_v0_1 from "./vtc/config/export/0.1/payload";
251
+ export * as VtcConfigImport_v0_1 from "./vtc/config/import/0.1/payload";
240
252
  export * as VtcDirectoryQuery_v0_1 from "./vtc/directory/query/0.1/payload";
241
253
  export * as VtcEndorsementTypesDelete_v0_1 from "./vtc/endorsement-types/delete/0.1/payload";
242
254
  export * as VtcEndorsementTypesList_v0_1 from "./vtc/endorsement-types/list/0.1/payload";
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/_shared/0.1/config-portability.schema.json
4
+ */
5
+
6
+ /**
7
+ * Shared types for the vtc/config/* family: the portable configuration document a community exports and re-imports, the identity-bearing profile snapshot it carries, and the per-field change an import reports.
8
+ */
9
+ export interface VTCSharedConfigPortabilityDefinitions {
10
+ [k: string]: unknown | undefined;
11
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/config/export/0.1/payload.schema.json
4
+ */
5
+
6
+ /**
7
+ * Export a community's portable configuration — its profile and its stored configuration overrides — as one document. Takes no parameters: a partial export is not portable, so there is nothing to select.
8
+ */
9
+ export interface VTCConfigExportPayload {
10
+ ext?: Ext;
11
+ }
12
+ /**
13
+ * 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.
14
+ */
15
+ export interface Ext {
16
+ [k: string]: unknown | undefined;
17
+ }
18
+
19
+ /** Trust Task type URI. */
20
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/config/export/0.1" as const;
21
+
22
+ /** Trust Task response type URI (request type URI + "#response"). */
23
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/config/export/0.1#response" as const;
@@ -0,0 +1,75 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/config/import/0.1/payload.schema.json
4
+ */
5
+
6
+ /**
7
+ * Apply a portable configuration document to this community, or preview what applying it would change. Defaults to a preview.
8
+ */
9
+ export interface VTCConfigImportPayload {
10
+ document: ConfigExportDocument;
11
+ /**
12
+ * `false` (default) previews: the diff is computed and returned, nothing is written. `true` applies it. The preview and the apply return the same shape, so an operator UX can render one and then re-submit.
13
+ */
14
+ confirm?: boolean;
15
+ ext?: Ext;
16
+ }
17
+ /**
18
+ * The document returned by `vtc/config/export`.
19
+ */
20
+ export interface ConfigExportDocument {
21
+ /**
22
+ * Version of this document's own shape. Not redundant with the Type URI version: once the document is written to a file it is bare JSON with no envelope, and this is the only thing a later reader has to check it against. A consumer MUST reject a version it does not implement rather than guess.
23
+ */
24
+ schemaVersion: number;
25
+ /**
26
+ * When the export was taken. Provenance for the operator; a consumer does not act on it.
27
+ */
28
+ exportedAt: string;
29
+ communityProfile?: CommunityProfileSnapshot;
30
+ /**
31
+ * Stored configuration overrides as `key → value`, keyed by the maintainer's own configuration registry (the same keys `config/show` and `config/patch` use). An empty object is valid and means no overrides are set.
32
+ */
33
+ configOverrides: {
34
+ [k: string]: unknown | undefined;
35
+ };
36
+ ext?: Ext;
37
+ }
38
+ /**
39
+ * The community's profile at export time. Absent when the community has no profile yet — a maintainer exported before bootstrap.
40
+ */
41
+ export interface CommunityProfileSnapshot {
42
+ /**
43
+ * DID of the community this document was taken from. Immutable, set at install.
44
+ */
45
+ communityDid: string;
46
+ name: string;
47
+ description?: string;
48
+ logoUrl?: string | null;
49
+ publicUrl?: string | null;
50
+ contactEmail?: string | null;
51
+ /**
52
+ * BCP 47 language tag.
53
+ */
54
+ language: string;
55
+ /**
56
+ * Opaque community-defined extension bag.
57
+ */
58
+ extensions?: {};
59
+ /**
60
+ * When the community was created. Provenance only — an import never writes it.
61
+ */
62
+ createdAt?: string;
63
+ }
64
+ /**
65
+ * 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.
66
+ */
67
+ export interface Ext {
68
+ [k: string]: unknown | undefined;
69
+ }
70
+
71
+ /** Trust Task type URI. */
72
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/config/import/0.1" as const;
73
+
74
+ /** Trust Task response type URI (request type URI + "#response"). */
75
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/config/import/0.1#response" as const;