@openvtc/trust-tasks 0.2.48 → 0.2.50
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.
- package/dist/did-management/agent-name/check/0.1/payload.d.ts +26 -0
- package/dist/did-management/agent-name/check/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/agent-name/check/0.1/payload.js +9 -0
- package/dist/did-management/agent-name/check/0.1/payload.js.map +1 -0
- package/dist/did-management/agent-name/list/0.1/payload.d.ts +26 -0
- package/dist/did-management/agent-name/list/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/agent-name/list/0.1/payload.js +9 -0
- package/dist/did-management/agent-name/list/0.1/payload.js.map +1 -0
- package/dist/did-management/agent-name/update/0.1/payload.d.ts +38 -0
- package/dist/did-management/agent-name/update/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/agent-name/update/0.1/payload.js +9 -0
- package/dist/did-management/agent-name/update/0.1/payload.js.map +1 -0
- package/dist/did-management/did/set-state/0.1/payload.d.ts +30 -0
- package/dist/did-management/did/set-state/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/did/set-state/0.1/payload.js +9 -0
- package/dist/did-management/did/set-state/0.1/payload.js.map +1 -0
- package/dist/did-management/domain/set-state/0.1/payload.d.ts +26 -0
- package/dist/did-management/domain/set-state/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/domain/set-state/0.1/payload.js +9 -0
- package/dist/did-management/domain/set-state/0.1/payload.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/vta/_shared/0.1/did-template.d.ts +11 -0
- package/dist/vta/_shared/0.1/did-template.d.ts.map +1 -0
- package/dist/vta/_shared/0.1/did-template.js +6 -0
- package/dist/vta/_shared/0.1/did-template.js.map +1 -0
- package/dist/vta/did-templates/create/2.0/payload.d.ts +71 -0
- package/dist/vta/did-templates/create/2.0/payload.d.ts.map +1 -0
- package/dist/vta/did-templates/create/2.0/payload.js +9 -0
- package/dist/vta/did-templates/create/2.0/payload.js.map +1 -0
- package/dist/vta/did-templates/delete/2.0/payload.d.ts +29 -0
- package/dist/vta/did-templates/delete/2.0/payload.d.ts.map +1 -0
- package/dist/vta/did-templates/delete/2.0/payload.js +9 -0
- package/dist/vta/did-templates/delete/2.0/payload.js.map +1 -0
- package/dist/vta/did-templates/get/2.0/payload.d.ts +29 -0
- package/dist/vta/did-templates/get/2.0/payload.d.ts.map +1 -0
- package/dist/vta/did-templates/get/2.0/payload.js +9 -0
- package/dist/vta/did-templates/get/2.0/payload.js.map +1 -0
- package/dist/vta/did-templates/list/2.0/payload.d.ts +25 -0
- package/dist/vta/did-templates/list/2.0/payload.d.ts.map +1 -0
- package/dist/vta/did-templates/list/2.0/payload.js +9 -0
- package/dist/vta/did-templates/list/2.0/payload.js.map +1 -0
- package/dist/vta/did-templates/render/2.0/payload.d.ts +35 -0
- package/dist/vta/did-templates/render/2.0/payload.d.ts.map +1 -0
- package/dist/vta/did-templates/render/2.0/payload.js +9 -0
- package/dist/vta/did-templates/render/2.0/payload.js.map +1 -0
- package/dist/vta/did-templates/update/2.0/payload.d.ts +75 -0
- package/dist/vta/did-templates/update/2.0/payload.d.ts.map +1 -0
- package/dist/vta/did-templates/update/2.0/payload.js +9 -0
- package/dist/vta/did-templates/update/2.0/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/did-management/agent-name/check/0.1/payload.ts +28 -0
- package/src/did-management/agent-name/list/0.1/payload.ts +28 -0
- package/src/did-management/agent-name/update/0.1/payload.ts +40 -0
- package/src/did-management/did/set-state/0.1/payload.ts +32 -0
- package/src/did-management/domain/set-state/0.1/payload.ts +28 -0
- package/src/index.ts +12 -0
- package/src/vta/_shared/0.1/did-template.ts +11 -0
- package/src/vta/did-templates/create/2.0/payload.ts +73 -0
- package/src/vta/did-templates/delete/2.0/payload.ts +31 -0
- package/src/vta/did-templates/get/2.0/payload.ts +31 -0
- package/src/vta/did-templates/list/2.0/payload.ts +27 -0
- package/src/vta/did-templates/render/2.0/payload.ts +37 -0
- package/src/vta/did-templates/update/2.0/payload.ts +77 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/did-templates/delete/2.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Remove a DID template from a VTA by name. Omit `contextId` to remove from the global scope (super-admin gated); set it to remove a template scoped to that context (gated on the context's admin, or a super-admin). The success response echoes the deleted name for audit pipelines.
|
|
7
|
+
*/
|
|
8
|
+
export interface VTADIDTemplateDeletePayload {
|
|
9
|
+
/**
|
|
10
|
+
* Scope selector. Absent: the global scope, gated on a super-administrator. Present: the context the template is scoped to, gated on that context's administrator (or a super-administrator).
|
|
11
|
+
*/
|
|
12
|
+
contextId?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Resource id — the name of the template to remove within the selected scope.
|
|
15
|
+
*/
|
|
16
|
+
name: string;
|
|
17
|
+
ext?: Ext;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
21
|
+
*/
|
|
22
|
+
export interface Ext {
|
|
23
|
+
[k: string]: unknown | undefined;
|
|
24
|
+
}
|
|
25
|
+
/** Trust Task type URI. */
|
|
26
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vta/did-templates/delete/2.0";
|
|
27
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
28
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/did-templates/delete/2.0#response";
|
|
29
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vta/did-templates/delete/2.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,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,0DAAmE,CAAC;AAE5F,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,mEAA4E,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/did-templates/delete/2.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/did-templates/delete/2.0";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/did-templates/delete/2.0#response";
|
|
9
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vta/did-templates/delete/2.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAuBH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,0DAAmE,CAAC;AAE5F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,mEAA4E,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/did-templates/get/2.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Fetch one DID template on a VTA by name. Omit `contextId` to read from the global scope (any authenticated caller); set it to read a template scoped to that context (requires access to the context). The success response is the persisted DidTemplateRecord.
|
|
7
|
+
*/
|
|
8
|
+
export interface VTADIDTemplateGetPayload {
|
|
9
|
+
/**
|
|
10
|
+
* Scope selector. Absent: the global scope. Present: the context the template is scoped to; the caller MUST have access to that context.
|
|
11
|
+
*/
|
|
12
|
+
contextId?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Template name to fetch within the selected scope.
|
|
15
|
+
*/
|
|
16
|
+
name: string;
|
|
17
|
+
ext?: Ext;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
21
|
+
*/
|
|
22
|
+
export interface Ext {
|
|
23
|
+
[k: string]: unknown | undefined;
|
|
24
|
+
}
|
|
25
|
+
/** Trust Task type URI. */
|
|
26
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vta/did-templates/get/2.0";
|
|
27
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
28
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/did-templates/get/2.0#response";
|
|
29
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vta/did-templates/get/2.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,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,uDAAgE,CAAC;AAEzF,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,gEAAyE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/did-templates/get/2.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/did-templates/get/2.0";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/did-templates/get/2.0#response";
|
|
9
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vta/did-templates/get/2.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAuBH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,uDAAgE,CAAC;AAEzF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,gEAAyE,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/did-templates/list/2.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* List the DID templates in one scope on a VTA. Omit `contextId` to list the global templates (any authenticated caller); set it to list the templates scoped to that context (requires access to the context). The success response is the array of persisted DidTemplateRecords for the selected scope.
|
|
7
|
+
*/
|
|
8
|
+
export interface VTADIDTemplateListPayload {
|
|
9
|
+
/**
|
|
10
|
+
* Scope selector. Absent: the global scope. Present: the context whose templates are listed; the caller MUST have access to that context.
|
|
11
|
+
*/
|
|
12
|
+
contextId?: string;
|
|
13
|
+
ext?: Ext;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
17
|
+
*/
|
|
18
|
+
export interface Ext {
|
|
19
|
+
[k: string]: unknown | undefined;
|
|
20
|
+
}
|
|
21
|
+
/** Trust Task type URI. */
|
|
22
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vta/did-templates/list/2.0";
|
|
23
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
24
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/did-templates/list/2.0#response";
|
|
25
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vta/did-templates/list/2.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,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,wDAAiE,CAAC;AAE1F,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,iEAA0E,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/did-templates/list/2.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/did-templates/list/2.0";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/did-templates/list/2.0#response";
|
|
9
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vta/did-templates/list/2.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAmBH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,wDAAiE,CAAC;AAE1F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,iEAA0E,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/did-templates/render/2.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Render a DID template to a DID document. Omit `contextId` to render a global template; set it to render a template scoped to that context (requires access to the context; the VTA MAY fall back to a global template of the same name). Callers supply variables; the VTA injects ambient variables (VTA_DID, VTA_URL, NOW — plus CONTEXT_ID and, if set on the context, CONTEXT_DID when contextId is present) server-side, merges the caller's on top, substitutes every placeholder, and returns the rendered document.
|
|
7
|
+
*/
|
|
8
|
+
export interface VTADIDTemplateRenderPayload {
|
|
9
|
+
/**
|
|
10
|
+
* Scope selector. Absent: the global scope. Present: the context whose template is rendered; the caller MUST have access to that context. When present the VTA additionally injects the ambient variables CONTEXT_ID and (if set on the context) CONTEXT_DID.
|
|
11
|
+
*/
|
|
12
|
+
contextId?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Resource id — the name of the template to render within the selected scope.
|
|
15
|
+
*/
|
|
16
|
+
name: string;
|
|
17
|
+
/**
|
|
18
|
+
* Caller-supplied template variables, keyed by name. The VTA injects ambient variables (VTA_DID, VTA_URL, NOW; plus CONTEXT_ID / CONTEXT_DID when contextId is present) server-side and merges these on top.
|
|
19
|
+
*/
|
|
20
|
+
vars?: {
|
|
21
|
+
[k: string]: unknown | undefined;
|
|
22
|
+
};
|
|
23
|
+
ext?: Ext;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
27
|
+
*/
|
|
28
|
+
export interface Ext {
|
|
29
|
+
[k: string]: unknown | undefined;
|
|
30
|
+
}
|
|
31
|
+
/** Trust Task type URI. */
|
|
32
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vta/did-templates/render/2.0";
|
|
33
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
34
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/did-templates/render/2.0#response";
|
|
35
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vta/did-templates/render/2.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,CAAC,EAAE;QACL,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;KAClC,CAAC;IACF,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,0DAAmE,CAAC;AAE5F,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,mEAA4E,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/did-templates/render/2.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/did-templates/render/2.0";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/did-templates/render/2.0#response";
|
|
9
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vta/did-templates/render/2.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA6BH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,0DAAmE,CAAC;AAE5F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,mEAA4E,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/did-templates/update/2.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Replace an existing DID template on a VTA. Omit `contextId` to replace in the global scope (super-admin gated); set it to replace a template scoped to that context (gated on the context's admin, or a super-admin). The `name` is the resource id within the selected scope and MUST equal `template.name`; the VTA replaces the stored body, preserving createdAt/createdBy and advancing updatedAt. The success response is the persisted DidTemplateRecord.
|
|
7
|
+
*/
|
|
8
|
+
export interface VTADIDTemplateUpdatePayload {
|
|
9
|
+
/**
|
|
10
|
+
* Scope selector. Absent: the global scope, gated on a super-administrator. Present: the context the template is scoped to, gated on that context's administrator (or a super-administrator).
|
|
11
|
+
*/
|
|
12
|
+
contextId?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Resource id — the template's name within the selected scope. MUST equal `template.name` or the VTA rejects with the framework's `malformedRequest`.
|
|
15
|
+
*/
|
|
16
|
+
name: string;
|
|
17
|
+
template: DidTemplate;
|
|
18
|
+
ext?: Ext;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Full replacement template document. Validated against the v1 template schema before persistence; an invalid shape is rejected with the framework's `malformedRequest`.
|
|
22
|
+
*/
|
|
23
|
+
export interface DidTemplate {
|
|
24
|
+
/**
|
|
25
|
+
* Template schema version. Currently always 1.
|
|
26
|
+
*/
|
|
27
|
+
schemaVersion: 1;
|
|
28
|
+
/**
|
|
29
|
+
* Template id within its scope. Lowercase alphanumeric and hyphen only.
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
* Classification hint, e.g. `mediator`, `did-host-http`, `app`. Drives downstream provisioning behaviour.
|
|
34
|
+
*/
|
|
35
|
+
kind: string;
|
|
36
|
+
/**
|
|
37
|
+
* Human-readable description of what the template provisions.
|
|
38
|
+
*/
|
|
39
|
+
description?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* DID methods this template targets, e.g. ["webvh", "web"] for a hosted DID or ["key"] for a did:key.
|
|
42
|
+
*/
|
|
43
|
+
methods?: string[];
|
|
44
|
+
/**
|
|
45
|
+
* Variables the caller MUST supply at render time. MUST NOT include reserved ambient names (DID, SIGNING_KEY_MB, KA_KEY_MB, VTA_DID, VTA_URL, CONTEXT_ID, CONTEXT_DID, NOW).
|
|
46
|
+
*/
|
|
47
|
+
requiredVars?: string[];
|
|
48
|
+
/**
|
|
49
|
+
* Variables with default values, keyed by variable name.
|
|
50
|
+
*/
|
|
51
|
+
optionalVars?: {
|
|
52
|
+
[k: string]: unknown | undefined;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Hints for CLI / setup wizards (e.g. preRotationCount, portable, addMediatorService).
|
|
56
|
+
*/
|
|
57
|
+
defaults?: {
|
|
58
|
+
[k: string]: unknown | undefined;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* The DID document body with `{TOKEN}` placeholders. `document.id` MUST contain the `{DID}` placeholder. Every `{TOKEN}` MUST be declared in requiredVars/optionalVars or be a reserved ambient name.
|
|
62
|
+
*/
|
|
63
|
+
document: {};
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
67
|
+
*/
|
|
68
|
+
export interface Ext {
|
|
69
|
+
[k: string]: unknown | undefined;
|
|
70
|
+
}
|
|
71
|
+
/** Trust Task type URI. */
|
|
72
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vta/did-templates/update/2.0";
|
|
73
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
74
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/did-templates/update/2.0#response";
|
|
75
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vta/did-templates/update/2.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,WAAW,CAAC;IACtB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,aAAa,EAAE,CAAC,CAAC;IACjB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE;QACb,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;KAClC,CAAC;IACF;;OAEG;IACH,QAAQ,CAAC,EAAE;QACT,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;KAClC,CAAC;IACF;;OAEG;IACH,QAAQ,EAAE,EAAE,CAAC;CACd;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,0DAAmE,CAAC;AAE5F,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,mEAA4E,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/did-templates/update/2.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/did-templates/update/2.0";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/did-templates/update/2.0#response";
|
|
9
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vta/did-templates/update/2.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAqEH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,0DAAmE,CAAC;AAE5F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,mEAA4E,CAAC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/did-management/agent-name/check/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export interface DIDManagementCheckAgentNamePayload {
|
|
7
|
+
/**
|
|
8
|
+
* The agent name's local part to probe, without the leading `@` (the `alice` in `/@alice`). A leading `@` submitted by a lenient client is stripped by the consumer before evaluation.
|
|
9
|
+
*/
|
|
10
|
+
name: string;
|
|
11
|
+
/**
|
|
12
|
+
* Optional explicit hosting domain to probe against. Availability is domain-scoped — the same name may be free on one domain and taken on another. When omitted, resolves via caller ACL default → system default. See category CONVENTIONS §1.
|
|
13
|
+
*/
|
|
14
|
+
domain?: string;
|
|
15
|
+
ext?: Ext;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 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.
|
|
19
|
+
*/
|
|
20
|
+
export interface Ext {
|
|
21
|
+
[k: string]: unknown | undefined;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** Trust Task type URI. */
|
|
25
|
+
export const TYPE_URI = "https://trusttasks.org/spec/did-management/agent-name/check/0.1" as const;
|
|
26
|
+
|
|
27
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
28
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/did-management/agent-name/check/0.1#response" as const;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/did-management/agent-name/list/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export interface DIDManagementListAgentNamesPayload {
|
|
7
|
+
/**
|
|
8
|
+
* The hosted DID slot whose agent-name registry is being read.
|
|
9
|
+
*/
|
|
10
|
+
mnemonic: string;
|
|
11
|
+
/**
|
|
12
|
+
* Optional explicit hosting domain, for disambiguation per category CONVENTIONS §3. When present it MUST match the slot's recorded domain.
|
|
13
|
+
*/
|
|
14
|
+
domain?: string;
|
|
15
|
+
ext?: Ext;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 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.
|
|
19
|
+
*/
|
|
20
|
+
export interface Ext {
|
|
21
|
+
[k: string]: unknown | undefined;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** Trust Task type URI. */
|
|
25
|
+
export const TYPE_URI = "https://trusttasks.org/spec/did-management/agent-name/list/0.1" as const;
|
|
26
|
+
|
|
27
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
28
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/did-management/agent-name/list/0.1#response" as const;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/did-management/agent-name/update/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export interface DIDManagementUpdateAgentNamePayload {
|
|
7
|
+
/**
|
|
8
|
+
* The hosted DID slot the name is bound to.
|
|
9
|
+
*/
|
|
10
|
+
mnemonic: string;
|
|
11
|
+
/**
|
|
12
|
+
* The agent name's local part, without the leading `@` (the `alice` in `/@alice`). The hosting domain is taken from the DID, not this field.
|
|
13
|
+
*/
|
|
14
|
+
name: string;
|
|
15
|
+
/**
|
|
16
|
+
* Desired binding state. `active`: the name is bound to the DID and resolves (binds a free name, refreshes an existing binding, or resumes a parked one). `parked`: the name stops resolving but stays reserved to this DID. Declarative — requesting the state the binding is already in is an idempotent no-op refresh. Releasing the name entirely is NOT a state of this task; that is `agent-name/remove`.
|
|
17
|
+
*/
|
|
18
|
+
state: "active" | "parked";
|
|
19
|
+
/**
|
|
20
|
+
* A new signed DID document whose `alsoKnownAs` matches the requested state: for `active` it MUST claim the name; for `parked` it MUST NOT. For `webvh`, a JSONL string containing the new log entry; for `web`, the DID document JSON. Published as a new version of the DID in the same commit as the binding transition.
|
|
21
|
+
*/
|
|
22
|
+
didData: string | {};
|
|
23
|
+
/**
|
|
24
|
+
* Optional explicit hosting domain. When omitted, resolves via caller ACL default → system default. See category CONVENTIONS §1.
|
|
25
|
+
*/
|
|
26
|
+
domain?: string;
|
|
27
|
+
ext?: Ext;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* 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.
|
|
31
|
+
*/
|
|
32
|
+
export interface Ext {
|
|
33
|
+
[k: string]: unknown | undefined;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** Trust Task type URI. */
|
|
37
|
+
export const TYPE_URI = "https://trusttasks.org/spec/did-management/agent-name/update/0.1" as const;
|
|
38
|
+
|
|
39
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
40
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/did-management/agent-name/update/0.1#response" as const;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/did-management/did/set-state/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export interface DIDManagementSetStatePayload {
|
|
7
|
+
/**
|
|
8
|
+
* The hosted DID slot whose hosting state is being set.
|
|
9
|
+
*/
|
|
10
|
+
mnemonic: string;
|
|
11
|
+
/**
|
|
12
|
+
* Desired hosting state. `active`: the DID resolves normally. `suspended`: resolution returns a deactivation marker while the log and witness content are retained for recovery. Declarative — requesting the state the slot is already in is an idempotent no-op.
|
|
13
|
+
*/
|
|
14
|
+
state: "active" | "suspended";
|
|
15
|
+
/**
|
|
16
|
+
* Optional explicit hosting domain. When omitted, resolves via caller ACL default → system default. See category CONVENTIONS §1.
|
|
17
|
+
*/
|
|
18
|
+
domain?: string;
|
|
19
|
+
ext?: Ext;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* 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.
|
|
23
|
+
*/
|
|
24
|
+
export interface Ext {
|
|
25
|
+
[k: string]: unknown | undefined;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** Trust Task type URI. */
|
|
29
|
+
export const TYPE_URI = "https://trusttasks.org/spec/did-management/did/set-state/0.1" as const;
|
|
30
|
+
|
|
31
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
32
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/did-management/did/set-state/0.1#response" as const;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/did-management/domain/set-state/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export interface DomainSetStatePayload {
|
|
7
|
+
/**
|
|
8
|
+
* The hosting domain whose state is being set.
|
|
9
|
+
*/
|
|
10
|
+
name: string;
|
|
11
|
+
/**
|
|
12
|
+
* Desired domain state. `active`: the domain is in active service and accepts new DID registrations (re-activating a disabled domain cancels any pending purge). `disabled`: existing DIDs remain readable for the host's grace period, but no new DIDs may be hosted under it. Declarative — requesting the state the domain is already in is an idempotent no-op.
|
|
13
|
+
*/
|
|
14
|
+
state: "active" | "disabled";
|
|
15
|
+
ext?: Ext;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 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.
|
|
19
|
+
*/
|
|
20
|
+
export interface Ext {
|
|
21
|
+
[k: string]: unknown | undefined;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** Trust Task type URI. */
|
|
25
|
+
export const TYPE_URI = "https://trusttasks.org/spec/did-management/domain/set-state/0.1" as const;
|
|
26
|
+
|
|
27
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
28
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/did-management/domain/set-state/0.1#response" as const;
|
package/src/index.ts
CHANGED
|
@@ -82,10 +82,13 @@ export * as WebvhShared_v0_1 from "./did-management/_shared/0.1/did-method-exten
|
|
|
82
82
|
export * as DidRecordShared_v0_1 from "./did-management/_shared/0.1/did-record";
|
|
83
83
|
export * as DomainEntryShared_v0_1 from "./did-management/_shared/0.1/domain-entry";
|
|
84
84
|
export * as ServiceInstanceShared_v0_1 from "./did-management/_shared/0.1/service-instance";
|
|
85
|
+
export * as DidManagementAgentNameCheck_v0_1 from "./did-management/agent-name/check/0.1/payload";
|
|
85
86
|
export * as DidManagementAgentNameDisable_v0_1 from "./did-management/agent-name/disable/0.1/payload";
|
|
86
87
|
export * as DidManagementAgentNameEnable_v0_1 from "./did-management/agent-name/enable/0.1/payload";
|
|
88
|
+
export * as DidManagementAgentNameList_v0_1 from "./did-management/agent-name/list/0.1/payload";
|
|
87
89
|
export * as DidManagementAgentNameRemove_v0_1 from "./did-management/agent-name/remove/0.1/payload";
|
|
88
90
|
export * as DidManagementAgentNameSet_v0_1 from "./did-management/agent-name/set/0.1/payload";
|
|
91
|
+
export * as DidManagementAgentNameUpdate_v0_1 from "./did-management/agent-name/update/0.1/payload";
|
|
89
92
|
export * as DidManagementDidChangeOwner_v0_1 from "./did-management/did/change-owner/0.1/payload";
|
|
90
93
|
export * as DidManagementDidCheckName_v0_1 from "./did-management/did/check-name/0.1/payload";
|
|
91
94
|
export * as DidManagementDidDelete_v0_1 from "./did-management/did/delete/0.1/payload";
|
|
@@ -97,12 +100,14 @@ export * as DidManagementDidProblemReport_v0_1 from "./did-management/did/proble
|
|
|
97
100
|
export * as DidManagementDidPublish_v0_1 from "./did-management/did/publish/0.1/payload";
|
|
98
101
|
export * as DidManagementDidRegister_v0_1 from "./did-management/did/register/0.1/payload";
|
|
99
102
|
export * as DidManagementDidRollback_v0_1 from "./did-management/did/rollback/0.1/payload";
|
|
103
|
+
export * as DidManagementDidSetState_v0_1 from "./did-management/did/set-state/0.1/payload";
|
|
100
104
|
export * as DidManagementDomainAssign_v0_1 from "./did-management/domain/assign/0.1/payload";
|
|
101
105
|
export * as DidManagementDomainCreate_v0_1 from "./did-management/domain/create/0.1/payload";
|
|
102
106
|
export * as DidManagementDomainDisable_v0_1 from "./did-management/domain/disable/0.1/payload";
|
|
103
107
|
export * as DidManagementDomainEnable_v0_1 from "./did-management/domain/enable/0.1/payload";
|
|
104
108
|
export * as DidManagementDomainPurge_v0_1 from "./did-management/domain/purge/0.1/payload";
|
|
105
109
|
export * as DidManagementDomainSetDefault_v0_1 from "./did-management/domain/set-default/0.1/payload";
|
|
110
|
+
export * as DidManagementDomainSetState_v0_1 from "./did-management/domain/set-state/0.1/payload";
|
|
106
111
|
export * as DidManagementDomainUnassign_v0_1 from "./did-management/domain/unassign/0.1/payload";
|
|
107
112
|
export * as DidManagementDomainUpdate_v0_1 from "./did-management/domain/update/0.1/payload";
|
|
108
113
|
export * as DidManagementMeDomains_v0_1 from "./did-management/me/domains/0.1/payload";
|
|
@@ -210,6 +215,7 @@ export * as VaultUpsert_v0_1 from "./vault/upsert/0.1/payload";
|
|
|
210
215
|
export * as VaultUpsert_v0_2 from "./vault/upsert/0.2/payload";
|
|
211
216
|
export * as VaultUsage_v0_1 from "./vault/usage/0.1/payload";
|
|
212
217
|
export * as VaultUsage_v0_2 from "./vault/usage/0.2/payload";
|
|
218
|
+
export * as DidTemplateShared_v0_1 from "./vta/_shared/0.1/did-template";
|
|
213
219
|
export * as PasskeyVmShared_v0_1 from "./vta/_shared/0.1/passkey-vm";
|
|
214
220
|
export * as VtaContextsDidTemplatesCreate_v1_0 from "./vta/contexts/did-templates/create/1.0/payload";
|
|
215
221
|
export * as VtaContextsDidTemplatesDelete_v1_0 from "./vta/contexts/did-templates/delete/1.0/payload";
|
|
@@ -220,11 +226,17 @@ export * as VtaContextsDidTemplatesUpdate_v1_0 from "./vta/contexts/did-template
|
|
|
220
226
|
export * as VtaCredentialsIssue_v0_1 from "./vta/credentials/issue/0.1/payload";
|
|
221
227
|
export * as VtaCredentialsRevoke_v0_1 from "./vta/credentials/revoke/0.1/payload";
|
|
222
228
|
export * as VtaDidTemplatesCreate_v1_0 from "./vta/did-templates/create/1.0/payload";
|
|
229
|
+
export * as VtaDidTemplatesCreate_v2_0 from "./vta/did-templates/create/2.0/payload";
|
|
223
230
|
export * as VtaDidTemplatesDelete_v1_0 from "./vta/did-templates/delete/1.0/payload";
|
|
231
|
+
export * as VtaDidTemplatesDelete_v2_0 from "./vta/did-templates/delete/2.0/payload";
|
|
224
232
|
export * as VtaDidTemplatesGet_v1_0 from "./vta/did-templates/get/1.0/payload";
|
|
233
|
+
export * as VtaDidTemplatesGet_v2_0 from "./vta/did-templates/get/2.0/payload";
|
|
225
234
|
export * as VtaDidTemplatesList_v1_0 from "./vta/did-templates/list/1.0/payload";
|
|
235
|
+
export * as VtaDidTemplatesList_v2_0 from "./vta/did-templates/list/2.0/payload";
|
|
226
236
|
export * as VtaDidTemplatesRender_v1_0 from "./vta/did-templates/render/1.0/payload";
|
|
237
|
+
export * as VtaDidTemplatesRender_v2_0 from "./vta/did-templates/render/2.0/payload";
|
|
227
238
|
export * as VtaDidTemplatesUpdate_v1_0 from "./vta/did-templates/update/1.0/payload";
|
|
239
|
+
export * as VtaDidTemplatesUpdate_v2_0 from "./vta/did-templates/update/2.0/payload";
|
|
228
240
|
export * as VtaMemoryDelete_v0_1 from "./vta/memory/delete/0.1/payload";
|
|
229
241
|
export * as VtaMemoryList_v0_1 from "./vta/memory/list/0.1/payload";
|
|
230
242
|
export * as VtaMemoryPut_v0_1 from "./vta/memory/put/0.1/payload";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/_shared/0.1/did-template.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A *DID template* is the JSON shape of a DID document with `{TOKEN}` placeholders plus the variable contract the VTA's renderer enforces; the VTA fills the placeholders with keys it mints and caller-supplied variables when provisioning an integration. `DidTemplate` is the authored shape a caller uploads; `DidTemplateRecord` is the persisted shape the VTA returns (the DidTemplate fields flattened at the top level alongside the resolved `Scope` and provenance metadata). Shared by every task in the vta/did-templates/* family so the record is defined once rather than duplicated per task.
|
|
8
|
+
*/
|
|
9
|
+
export interface DidTemplateDidTemplateRecordSharedDefinitionsForTheVtaDidTemplatesSpecFamily {
|
|
10
|
+
[k: string]: unknown | undefined;
|
|
11
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/did-templates/create/2.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Create a new DID template on a VTA. Omit `contextId` to create in the global scope (super-admin gated); set it to create a template scoped to that context (gated on the context's admin, or a super-admin). The template's own `name` is the resource id within the selected scope; the VTA refuses duplicates (use update to replace). The success response is the persisted DidTemplateRecord.
|
|
8
|
+
*/
|
|
9
|
+
export interface VTADIDTemplateCreatePayload {
|
|
10
|
+
/**
|
|
11
|
+
* Scope selector. Absent: the global scope, gated on a super-administrator. Present: the context the template is scoped to, gated on that context's administrator (or a super-administrator).
|
|
12
|
+
*/
|
|
13
|
+
contextId?: string;
|
|
14
|
+
template: DidTemplate;
|
|
15
|
+
ext?: Ext;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Full template document to store. Validated against the v1 template schema before persistence; an invalid shape is rejected with the framework's `malformedRequest`.
|
|
19
|
+
*/
|
|
20
|
+
export interface DidTemplate {
|
|
21
|
+
/**
|
|
22
|
+
* Template schema version. Currently always 1.
|
|
23
|
+
*/
|
|
24
|
+
schemaVersion: 1;
|
|
25
|
+
/**
|
|
26
|
+
* Template id within its scope. Lowercase alphanumeric and hyphen only.
|
|
27
|
+
*/
|
|
28
|
+
name: string;
|
|
29
|
+
/**
|
|
30
|
+
* Classification hint, e.g. `mediator`, `did-host-http`, `app`. Drives downstream provisioning behaviour.
|
|
31
|
+
*/
|
|
32
|
+
kind: string;
|
|
33
|
+
/**
|
|
34
|
+
* Human-readable description of what the template provisions.
|
|
35
|
+
*/
|
|
36
|
+
description?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* DID methods this template targets, e.g. ["webvh", "web"] for a hosted DID or ["key"] for a did:key.
|
|
39
|
+
*/
|
|
40
|
+
methods?: string[];
|
|
41
|
+
/**
|
|
42
|
+
* Variables the caller MUST supply at render time. MUST NOT include reserved ambient names (DID, SIGNING_KEY_MB, KA_KEY_MB, VTA_DID, VTA_URL, CONTEXT_ID, CONTEXT_DID, NOW).
|
|
43
|
+
*/
|
|
44
|
+
requiredVars?: string[];
|
|
45
|
+
/**
|
|
46
|
+
* Variables with default values, keyed by variable name.
|
|
47
|
+
*/
|
|
48
|
+
optionalVars?: {
|
|
49
|
+
[k: string]: unknown | undefined;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Hints for CLI / setup wizards (e.g. preRotationCount, portable, addMediatorService).
|
|
53
|
+
*/
|
|
54
|
+
defaults?: {
|
|
55
|
+
[k: string]: unknown | undefined;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* The DID document body with `{TOKEN}` placeholders. `document.id` MUST contain the `{DID}` placeholder. Every `{TOKEN}` MUST be declared in requiredVars/optionalVars or be a reserved ambient name.
|
|
59
|
+
*/
|
|
60
|
+
document: {};
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
64
|
+
*/
|
|
65
|
+
export interface Ext {
|
|
66
|
+
[k: string]: unknown | undefined;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** Trust Task type URI. */
|
|
70
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/did-templates/create/2.0" as const;
|
|
71
|
+
|
|
72
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
73
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/did-templates/create/2.0#response" as const;
|