@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,31 @@
|
|
|
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
|
+
/**
|
|
7
|
+
* 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.
|
|
8
|
+
*/
|
|
9
|
+
export interface VTADIDTemplateDeletePayload {
|
|
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
|
+
/**
|
|
15
|
+
* Resource id — the name of the template to remove within the selected scope.
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
ext?: Ext;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
22
|
+
*/
|
|
23
|
+
export interface Ext {
|
|
24
|
+
[k: string]: unknown | undefined;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Trust Task type URI. */
|
|
28
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/did-templates/delete/2.0" as const;
|
|
29
|
+
|
|
30
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
31
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/did-templates/delete/2.0#response" as const;
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
/**
|
|
7
|
+
* 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.
|
|
8
|
+
*/
|
|
9
|
+
export interface VTADIDTemplateGetPayload {
|
|
10
|
+
/**
|
|
11
|
+
* Scope selector. Absent: the global scope. Present: the context the template is scoped to; the caller MUST have access to that context.
|
|
12
|
+
*/
|
|
13
|
+
contextId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Template name to fetch within the selected scope.
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
ext?: Ext;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
22
|
+
*/
|
|
23
|
+
export interface Ext {
|
|
24
|
+
[k: string]: unknown | undefined;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Trust Task type URI. */
|
|
28
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/did-templates/get/2.0" as const;
|
|
29
|
+
|
|
30
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
31
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/did-templates/get/2.0#response" as const;
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
/**
|
|
7
|
+
* 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.
|
|
8
|
+
*/
|
|
9
|
+
export interface VTADIDTemplateListPayload {
|
|
10
|
+
/**
|
|
11
|
+
* Scope selector. Absent: the global scope. Present: the context whose templates are listed; the caller MUST have access to that context.
|
|
12
|
+
*/
|
|
13
|
+
contextId?: string;
|
|
14
|
+
ext?: Ext;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
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/vta/did-templates/list/2.0" as const;
|
|
25
|
+
|
|
26
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
27
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/did-templates/list/2.0#response" as const;
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
/**
|
|
7
|
+
* 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.
|
|
8
|
+
*/
|
|
9
|
+
export interface VTADIDTemplateRenderPayload {
|
|
10
|
+
/**
|
|
11
|
+
* 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.
|
|
12
|
+
*/
|
|
13
|
+
contextId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Resource id — the name of the template to render within the selected scope.
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
/**
|
|
19
|
+
* 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.
|
|
20
|
+
*/
|
|
21
|
+
vars?: {
|
|
22
|
+
[k: string]: unknown | undefined;
|
|
23
|
+
};
|
|
24
|
+
ext?: Ext;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
28
|
+
*/
|
|
29
|
+
export interface Ext {
|
|
30
|
+
[k: string]: unknown | undefined;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** Trust Task type URI. */
|
|
34
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/did-templates/render/2.0" as const;
|
|
35
|
+
|
|
36
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
37
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/did-templates/render/2.0#response" as const;
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
/**
|
|
7
|
+
* 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.
|
|
8
|
+
*/
|
|
9
|
+
export interface VTADIDTemplateUpdatePayload {
|
|
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
|
+
/**
|
|
15
|
+
* Resource id — the template's name within the selected scope. MUST equal `template.name` or the VTA rejects with the framework's `malformedRequest`.
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
template: DidTemplate;
|
|
19
|
+
ext?: Ext;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Full replacement template document. Validated against the v1 template schema before persistence; an invalid shape is rejected with the framework's `malformedRequest`.
|
|
23
|
+
*/
|
|
24
|
+
export interface DidTemplate {
|
|
25
|
+
/**
|
|
26
|
+
* Template schema version. Currently always 1.
|
|
27
|
+
*/
|
|
28
|
+
schemaVersion: 1;
|
|
29
|
+
/**
|
|
30
|
+
* Template id within its scope. Lowercase alphanumeric and hyphen only.
|
|
31
|
+
*/
|
|
32
|
+
name: string;
|
|
33
|
+
/**
|
|
34
|
+
* Classification hint, e.g. `mediator`, `did-host-http`, `app`. Drives downstream provisioning behaviour.
|
|
35
|
+
*/
|
|
36
|
+
kind: string;
|
|
37
|
+
/**
|
|
38
|
+
* Human-readable description of what the template provisions.
|
|
39
|
+
*/
|
|
40
|
+
description?: string | null;
|
|
41
|
+
/**
|
|
42
|
+
* DID methods this template targets, e.g. ["webvh", "web"] for a hosted DID or ["key"] for a did:key.
|
|
43
|
+
*/
|
|
44
|
+
methods?: string[];
|
|
45
|
+
/**
|
|
46
|
+
* 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).
|
|
47
|
+
*/
|
|
48
|
+
requiredVars?: string[];
|
|
49
|
+
/**
|
|
50
|
+
* Variables with default values, keyed by variable name.
|
|
51
|
+
*/
|
|
52
|
+
optionalVars?: {
|
|
53
|
+
[k: string]: unknown | undefined;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Hints for CLI / setup wizards (e.g. preRotationCount, portable, addMediatorService).
|
|
57
|
+
*/
|
|
58
|
+
defaults?: {
|
|
59
|
+
[k: string]: unknown | undefined;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* 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.
|
|
63
|
+
*/
|
|
64
|
+
document: {};
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
68
|
+
*/
|
|
69
|
+
export interface Ext {
|
|
70
|
+
[k: string]: unknown | undefined;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/** Trust Task type URI. */
|
|
74
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/did-templates/update/2.0" as const;
|
|
75
|
+
|
|
76
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
77
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/did-templates/update/2.0#response" as const;
|