@openvtc/trust-tasks 0.21.3 → 0.21.5
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/CHANGELOG.md +72 -0
- package/dist/_shared/components.d.ts +210 -2
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/auth/_shared/0.1/passkey-invite.d.ts +16 -0
- package/dist/auth/_shared/0.1/passkey-invite.d.ts.map +1 -0
- package/dist/auth/_shared/0.1/passkey-invite.js +6 -0
- package/dist/auth/_shared/0.1/passkey-invite.js.map +1 -0
- package/dist/auth/passkey/admin-list/0.1/payload.d.ts +484 -0
- package/dist/auth/passkey/admin-list/0.1/payload.d.ts.map +1 -0
- package/dist/auth/passkey/admin-list/0.1/payload.js +257 -0
- package/dist/auth/passkey/admin-list/0.1/payload.js.map +1 -0
- package/dist/auth/passkey/enroll/invite/list/0.1/payload.d.ts +393 -0
- package/dist/auth/passkey/enroll/invite/list/0.1/payload.d.ts.map +1 -0
- package/dist/auth/passkey/enroll/invite/list/0.1/payload.js +234 -0
- package/dist/auth/passkey/enroll/invite/list/0.1/payload.js.map +1 -0
- package/dist/auth/passkey/enroll/invite/revoke/0.1/payload.d.ts +228 -0
- package/dist/auth/passkey/enroll/invite/revoke/0.1/payload.d.ts.map +1 -0
- package/dist/auth/passkey/enroll/invite/revoke/0.1/payload.js +138 -0
- package/dist/auth/passkey/enroll/invite/revoke/0.1/payload.js.map +1 -0
- package/dist/auth/passkey/enroll/invite/update/0.1/payload.d.ts +459 -0
- package/dist/auth/passkey/enroll/invite/update/0.1/payload.d.ts.map +1 -0
- package/dist/auth/passkey/enroll/invite/update/0.1/payload.js +286 -0
- package/dist/auth/passkey/enroll/invite/update/0.1/payload.js.map +1 -0
- package/dist/auth/step-up/start/0.1/payload.d.ts +420 -0
- package/dist/auth/step-up/start/0.1/payload.d.ts.map +1 -0
- package/dist/auth/step-up/start/0.1/payload.js +232 -0
- package/dist/auth/step-up/start/0.1/payload.js.map +1 -0
- package/dist/did-management/_shared/0.1/service-instance.d.ts +1 -1
- package/dist/did-management/_shared/0.1/service-instance.d.ts.map +1 -1
- package/dist/did-management/_shared/0.2/metrics-snapshot.d.ts +16 -0
- package/dist/did-management/_shared/0.2/metrics-snapshot.d.ts.map +1 -0
- package/dist/did-management/_shared/0.2/metrics-snapshot.js +6 -0
- package/dist/did-management/_shared/0.2/metrics-snapshot.js.map +1 -0
- package/dist/did-management/_shared/0.2/service-instance.d.ts +16 -0
- package/dist/did-management/_shared/0.2/service-instance.d.ts.map +1 -0
- package/dist/did-management/_shared/0.2/service-instance.js +6 -0
- package/dist/did-management/_shared/0.2/service-instance.js.map +1 -0
- package/dist/did-management/agent-name/resolve/0.1/payload.d.ts +318 -0
- package/dist/did-management/agent-name/resolve/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/agent-name/resolve/0.1/payload.js +179 -0
- package/dist/did-management/agent-name/resolve/0.1/payload.js.map +1 -0
- package/dist/did-management/did/log/0.1/payload.d.ts +436 -0
- package/dist/did-management/did/log/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/did/log/0.1/payload.js +228 -0
- package/dist/did-management/did/log/0.1/payload.js.map +1 -0
- package/dist/did-management/domain/list/0.1/payload.d.ts +423 -0
- package/dist/did-management/domain/list/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/domain/list/0.1/payload.js +244 -0
- package/dist/did-management/domain/list/0.1/payload.js.map +1 -0
- package/dist/did-management/identity/list/0.1/payload.d.ts +494 -0
- package/dist/did-management/identity/list/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/identity/list/0.1/payload.js +274 -0
- package/dist/did-management/identity/list/0.1/payload.js.map +1 -0
- package/dist/did-management/identity/retire/0.1/payload.d.ts +242 -0
- package/dist/did-management/identity/retire/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/identity/retire/0.1/payload.js +142 -0
- package/dist/did-management/identity/retire/0.1/payload.js.map +1 -0
- package/dist/did-management/registry/admin-register/0.1/payload.d.ts +1 -1
- package/dist/did-management/registry/admin-register/0.1/payload.d.ts.map +1 -1
- package/dist/did-management/registry/check/0.1/payload.d.ts +639 -0
- package/dist/did-management/registry/check/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/registry/check/0.1/payload.js +383 -0
- package/dist/did-management/registry/check/0.1/payload.js.map +1 -0
- package/dist/did-management/registry/get/0.1/payload.d.ts +632 -0
- package/dist/did-management/registry/get/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/registry/get/0.1/payload.js +381 -0
- package/dist/did-management/registry/get/0.1/payload.js.map +1 -0
- package/dist/did-management/registry/list/0.1/payload.d.ts +661 -0
- package/dist/did-management/registry/list/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/registry/list/0.1/payload.js +398 -0
- package/dist/did-management/registry/list/0.1/payload.js.map +1 -0
- package/dist/did-management/registry/purge-domain/0.1/payload.d.ts +269 -0
- package/dist/did-management/registry/purge-domain/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/registry/purge-domain/0.1/payload.js +160 -0
- package/dist/did-management/registry/purge-domain/0.1/payload.js.map +1 -0
- package/dist/did-management/replica/domain/assign/0.1/payload.d.ts +233 -0
- package/dist/did-management/replica/domain/assign/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/replica/domain/assign/0.1/payload.js +143 -0
- package/dist/did-management/replica/domain/assign/0.1/payload.js.map +1 -0
- package/dist/did-management/replica/domain/purge/0.1/payload.d.ts +257 -0
- package/dist/did-management/replica/domain/purge/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/replica/domain/purge/0.1/payload.js +155 -0
- package/dist/did-management/replica/domain/purge/0.1/payload.js.map +1 -0
- package/dist/did-management/replica/domain/unassign/0.1/payload.d.ts +257 -0
- package/dist/did-management/replica/domain/unassign/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/replica/domain/unassign/0.1/payload.js +155 -0
- package/dist/did-management/replica/domain/unassign/0.1/payload.js.map +1 -0
- package/dist/did-management/replica/domain/upsert/0.1/payload.d.ts +401 -0
- package/dist/did-management/replica/domain/upsert/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/replica/domain/upsert/0.1/payload.js +241 -0
- package/dist/did-management/replica/domain/upsert/0.1/payload.js.map +1 -0
- package/dist/did-management/server/config/0.1/payload.d.ts +838 -0
- package/dist/did-management/server/config/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/server/config/0.1/payload.js +444 -0
- package/dist/did-management/server/config/0.1/payload.js.map +1 -0
- package/dist/did-management/server/info/0.1/payload.d.ts +285 -0
- package/dist/did-management/server/info/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/server/info/0.1/payload.js +160 -0
- package/dist/did-management/server/info/0.1/payload.js.map +1 -0
- package/dist/did-management/server/metrics/0.1/payload.d.ts +674 -0
- package/dist/did-management/server/metrics/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/server/metrics/0.1/payload.js +387 -0
- package/dist/did-management/server/metrics/0.1/payload.js.map +1 -0
- package/dist/did-management/stats/get/0.1/payload.d.ts +349 -0
- package/dist/did-management/stats/get/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/stats/get/0.1/payload.js +187 -0
- package/dist/did-management/stats/get/0.1/payload.js.map +1 -0
- package/dist/did-management/stats/timeseries/0.1/payload.d.ts +381 -0
- package/dist/did-management/stats/timeseries/0.1/payload.d.ts.map +1 -0
- package/dist/did-management/stats/timeseries/0.1/payload.js +227 -0
- package/dist/did-management/stats/timeseries/0.1/payload.js.map +1 -0
- package/dist/git-ns/namespace/list/0.1/payload.d.ts +1343 -0
- package/dist/git-ns/namespace/list/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/namespace/list/0.1/payload.js +704 -0
- package/dist/git-ns/namespace/list/0.1/payload.js.map +1 -0
- package/dist/git-ns/repo/list/0.1/payload.d.ts +1377 -0
- package/dist/git-ns/repo/list/0.1/payload.d.ts.map +1 -0
- package/dist/git-ns/repo/list/0.1/payload.js +744 -0
- package/dist/git-ns/repo/list/0.1/payload.js.map +1 -0
- package/dist/git-ns/view/0.5/payload.d.ts +1722 -0
- package/dist/git-ns/view/0.5/payload.d.ts.map +1 -0
- package/dist/git-ns/view/0.5/payload.js +1024 -0
- package/dist/git-ns/view/0.5/payload.js.map +1 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +38 -0
- package/dist/index.js.map +1 -1
- package/dist/vtc/_shared/0.1/invite.d.ts +1 -1
- package/dist/vtc/_shared/0.1/invite.d.ts.map +1 -1
- package/dist/vtc/admin/invites/list/0.1/payload.d.ts +1 -1
- package/dist/vtc/admin/invites/list/0.1/payload.d.ts.map +1 -1
- package/dist/webvh/_shared/0.1/sync-update.d.ts +16 -0
- package/dist/webvh/_shared/0.1/sync-update.d.ts.map +1 -0
- package/dist/webvh/_shared/0.1/sync-update.js +6 -0
- package/dist/webvh/_shared/0.1/sync-update.js.map +1 -0
- package/dist/webvh/_shared/0.1/witness-key.d.ts +16 -0
- package/dist/webvh/_shared/0.1/witness-key.d.ts.map +1 -0
- package/dist/webvh/_shared/0.1/witness-key.js +6 -0
- package/dist/webvh/_shared/0.1/witness-key.js.map +1 -0
- package/dist/webvh/sync/batch/0.1/payload.d.ts +503 -0
- package/dist/webvh/sync/batch/0.1/payload.d.ts.map +1 -0
- package/dist/webvh/sync/batch/0.1/payload.js +290 -0
- package/dist/webvh/sync/batch/0.1/payload.js.map +1 -0
- package/dist/webvh/sync/delete/0.2/payload.d.ts +242 -0
- package/dist/webvh/sync/delete/0.2/payload.d.ts.map +1 -0
- package/dist/webvh/sync/delete/0.2/payload.js +148 -0
- package/dist/webvh/sync/delete/0.2/payload.js.map +1 -0
- package/dist/webvh/sync/update/0.2/payload.d.ts +315 -0
- package/dist/webvh/sync/update/0.2/payload.d.ts.map +1 -0
- package/dist/webvh/sync/update/0.2/payload.js +177 -0
- package/dist/webvh/sync/update/0.2/payload.js.map +1 -0
- package/dist/webvh/witness/key/create/0.1/payload.d.ts +346 -0
- package/dist/webvh/witness/key/create/0.1/payload.d.ts.map +1 -0
- package/dist/webvh/witness/key/create/0.1/payload.js +202 -0
- package/dist/webvh/witness/key/create/0.1/payload.js.map +1 -0
- package/dist/webvh/witness/key/delete/0.1/payload.d.ts +237 -0
- package/dist/webvh/witness/key/delete/0.1/payload.d.ts.map +1 -0
- package/dist/webvh/witness/key/delete/0.1/payload.js +141 -0
- package/dist/webvh/witness/key/delete/0.1/payload.js.map +1 -0
- package/dist/webvh/witness/key/list/0.1/payload.d.ts +349 -0
- package/dist/webvh/witness/key/list/0.1/payload.d.ts.map +1 -0
- package/dist/webvh/witness/key/list/0.1/payload.js +204 -0
- package/dist/webvh/witness/key/list/0.1/payload.js.map +1 -0
- package/dist/webvh/witness/sign/0.1/payload.d.ts +401 -0
- package/dist/webvh/witness/sign/0.1/payload.d.ts.map +1 -0
- package/dist/webvh/witness/sign/0.1/payload.js +229 -0
- package/dist/webvh/witness/sign/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +210 -2
- package/src/auth/_shared/0.1/passkey-invite.ts +17 -0
- package/src/auth/passkey/admin-list/0.1/payload.ts +338 -0
- package/src/auth/passkey/enroll/invite/list/0.1/payload.ts +266 -0
- package/src/auth/passkey/enroll/invite/revoke/0.1/payload.ts +165 -0
- package/src/auth/passkey/enroll/invite/update/0.1/payload.ts +327 -0
- package/src/auth/step-up/start/0.1/payload.ts +287 -0
- package/src/did-management/_shared/0.1/service-instance.ts +1 -1
- package/src/did-management/_shared/0.2/metrics-snapshot.ts +17 -0
- package/src/did-management/_shared/0.2/service-instance.ts +17 -0
- package/src/did-management/agent-name/resolve/0.1/payload.ts +222 -0
- package/src/did-management/did/log/0.1/payload.ts +295 -0
- package/src/did-management/domain/list/0.1/payload.ts +280 -0
- package/src/did-management/identity/list/0.1/payload.ts +335 -0
- package/src/did-management/identity/retire/0.1/payload.ts +175 -0
- package/src/did-management/registry/admin-register/0.1/payload.ts +1 -1
- package/src/did-management/registry/check/0.1/payload.ts +415 -0
- package/src/did-management/registry/get/0.1/payload.ts +410 -0
- package/src/did-management/registry/list/0.1/payload.ts +434 -0
- package/src/did-management/registry/purge-domain/0.1/payload.ts +198 -0
- package/src/did-management/replica/domain/assign/0.1/payload.ts +173 -0
- package/src/did-management/replica/domain/purge/0.1/payload.ts +189 -0
- package/src/did-management/replica/domain/unassign/0.1/payload.ts +189 -0
- package/src/did-management/replica/domain/upsert/0.1/payload.ts +271 -0
- package/src/did-management/server/config/0.1/payload.ts +545 -0
- package/src/did-management/server/info/0.1/payload.ts +200 -0
- package/src/did-management/server/metrics/0.1/payload.ts +418 -0
- package/src/did-management/stats/get/0.1/payload.ts +237 -0
- package/src/did-management/stats/timeseries/0.1/payload.ts +279 -0
- package/src/git-ns/namespace/list/0.1/payload.ts +883 -0
- package/src/git-ns/repo/list/0.1/payload.ts +909 -0
- package/src/git-ns/view/0.5/payload.ts +1095 -0
- package/src/index.ts +38 -0
- package/src/vtc/_shared/0.1/invite.ts +1 -1
- package/src/vtc/admin/invites/list/0.1/payload.ts +1 -1
- package/src/webvh/_shared/0.1/sync-update.ts +17 -0
- package/src/webvh/_shared/0.1/witness-key.ts +17 -0
- package/src/webvh/sync/batch/0.1/payload.ts +336 -0
- package/src/webvh/sync/delete/0.2/payload.ts +181 -0
- package/src/webvh/sync/update/0.2/payload.ts +233 -0
- package/src/webvh/witness/key/create/0.1/payload.ts +231 -0
- package/src/webvh/witness/key/delete/0.1/payload.ts +171 -0
- package/src/webvh/witness/key/list/0.1/payload.ts +232 -0
- package/src/webvh/witness/sign/0.1/payload.ts +279 -0
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/did-management/agent-name/resolve/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Ext } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export interface AgentNameResolvePayload {
|
|
10
|
+
/**
|
|
11
|
+
* The DIDs whose served names are wanted.
|
|
12
|
+
*
|
|
13
|
+
* @minItems 1
|
|
14
|
+
* @maxItems 100
|
|
15
|
+
*/
|
|
16
|
+
dids: [string, ...string[]];
|
|
17
|
+
ext?: Ext;
|
|
18
|
+
}
|
|
19
|
+
export interface AgentNameResolveResponsePayload {
|
|
20
|
+
/**
|
|
21
|
+
* One entry per requested DID that the caller may read and that serves at least one name, in request order. A DID that is not hosted here, that the caller may not read, or that serves no name is absent — the three are indistinguishable.
|
|
22
|
+
*/
|
|
23
|
+
entries: {
|
|
24
|
+
did: string;
|
|
25
|
+
/**
|
|
26
|
+
* Served (enabled) agent names as `{domain}/@{name}` addresses. Parked names are not served and are not listed; did-management/agent-name/list shows them to the owner.
|
|
27
|
+
*
|
|
28
|
+
* @minItems 1
|
|
29
|
+
*/
|
|
30
|
+
names: [string, ...string[]];
|
|
31
|
+
}[];
|
|
32
|
+
ext?: Ext;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
36
|
+
export type { Ext };
|
|
37
|
+
|
|
38
|
+
/** Trust Task type URI. */
|
|
39
|
+
export const TYPE_URI = "https://trusttasks.org/spec/did-management/agent-name/resolve/0.1" as const;
|
|
40
|
+
|
|
41
|
+
/** Stable alias for this specification's request payload shape. */
|
|
42
|
+
export type Payload = AgentNameResolvePayload;
|
|
43
|
+
|
|
44
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
45
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/did-management/agent-name/resolve/0.1#response" as const;
|
|
46
|
+
|
|
47
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
48
|
+
export type Response = AgentNameResolveResponsePayload;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* This specification's payload schema, as a value.
|
|
52
|
+
*
|
|
53
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
54
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
55
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
56
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
57
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
58
|
+
*/
|
|
59
|
+
export const PAYLOAD_SCHEMA = {
|
|
60
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
61
|
+
"$id": "https://trusttasks.org/spec/did-management/agent-name/resolve/0.1",
|
|
62
|
+
"title": "Agent Name Resolve — payload",
|
|
63
|
+
"type": "object",
|
|
64
|
+
"additionalProperties": false,
|
|
65
|
+
"required": [
|
|
66
|
+
"dids"
|
|
67
|
+
],
|
|
68
|
+
"properties": {
|
|
69
|
+
"dids": {
|
|
70
|
+
"type": "array",
|
|
71
|
+
"minItems": 1,
|
|
72
|
+
"maxItems": 100,
|
|
73
|
+
"uniqueItems": true,
|
|
74
|
+
"items": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"minLength": 1,
|
|
77
|
+
"maxLength": 2048
|
|
78
|
+
},
|
|
79
|
+
"description": "The DIDs whose served names are wanted."
|
|
80
|
+
},
|
|
81
|
+
"ext": {
|
|
82
|
+
"$ref": "#/$defs/Ext"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"$defs": {
|
|
86
|
+
"Response": {
|
|
87
|
+
"$anchor": "response",
|
|
88
|
+
"title": "Agent Name Resolve — response payload",
|
|
89
|
+
"type": "object",
|
|
90
|
+
"additionalProperties": false,
|
|
91
|
+
"required": [
|
|
92
|
+
"entries"
|
|
93
|
+
],
|
|
94
|
+
"properties": {
|
|
95
|
+
"entries": {
|
|
96
|
+
"type": "array",
|
|
97
|
+
"description": "One entry per requested DID that the caller may read and that serves at least one name, in request order. A DID that is not hosted here, that the caller may not read, or that serves no name is absent — the three are indistinguishable.",
|
|
98
|
+
"items": {
|
|
99
|
+
"type": "object",
|
|
100
|
+
"additionalProperties": false,
|
|
101
|
+
"required": [
|
|
102
|
+
"did",
|
|
103
|
+
"names"
|
|
104
|
+
],
|
|
105
|
+
"properties": {
|
|
106
|
+
"did": {
|
|
107
|
+
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
"names": {
|
|
110
|
+
"type": "array",
|
|
111
|
+
"minItems": 1,
|
|
112
|
+
"items": {
|
|
113
|
+
"type": "string"
|
|
114
|
+
},
|
|
115
|
+
"description": "Served (enabled) agent names as `{domain}/@{name}` addresses. Parked names are not served and are not listed; did-management/agent-name/list shows them to the owner."
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"ext": {
|
|
121
|
+
"$ref": "#/$defs/Ext"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"Ext": {
|
|
126
|
+
"title": "Ext",
|
|
127
|
+
"description": "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.",
|
|
128
|
+
"type": "object",
|
|
129
|
+
"minProperties": 1,
|
|
130
|
+
"additionalProperties": true,
|
|
131
|
+
"propertyNames": {
|
|
132
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
} as const;
|
|
137
|
+
|
|
138
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
139
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
140
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
141
|
+
"$ref": "#/$defs/Response",
|
|
142
|
+
"$defs": {
|
|
143
|
+
"Response": {
|
|
144
|
+
"$anchor": "response",
|
|
145
|
+
"title": "Agent Name Resolve — response payload",
|
|
146
|
+
"type": "object",
|
|
147
|
+
"additionalProperties": false,
|
|
148
|
+
"required": [
|
|
149
|
+
"entries"
|
|
150
|
+
],
|
|
151
|
+
"properties": {
|
|
152
|
+
"entries": {
|
|
153
|
+
"type": "array",
|
|
154
|
+
"description": "One entry per requested DID that the caller may read and that serves at least one name, in request order. A DID that is not hosted here, that the caller may not read, or that serves no name is absent — the three are indistinguishable.",
|
|
155
|
+
"items": {
|
|
156
|
+
"type": "object",
|
|
157
|
+
"additionalProperties": false,
|
|
158
|
+
"required": [
|
|
159
|
+
"did",
|
|
160
|
+
"names"
|
|
161
|
+
],
|
|
162
|
+
"properties": {
|
|
163
|
+
"did": {
|
|
164
|
+
"type": "string"
|
|
165
|
+
},
|
|
166
|
+
"names": {
|
|
167
|
+
"type": "array",
|
|
168
|
+
"minItems": 1,
|
|
169
|
+
"items": {
|
|
170
|
+
"type": "string"
|
|
171
|
+
},
|
|
172
|
+
"description": "Served (enabled) agent names as `{domain}/@{name}` addresses. Parked names are not served and are not listed; did-management/agent-name/list shows them to the owner."
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"ext": {
|
|
178
|
+
"$ref": "#/$defs/Ext"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"Ext": {
|
|
183
|
+
"title": "Ext",
|
|
184
|
+
"description": "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.",
|
|
185
|
+
"type": "object",
|
|
186
|
+
"minProperties": 1,
|
|
187
|
+
"additionalProperties": true,
|
|
188
|
+
"propertyNames": {
|
|
189
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
} as const;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
197
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
198
|
+
* per-specification and cannot be derived from the document alone, and
|
|
199
|
+
* item 2 needs the schema this carries.
|
|
200
|
+
*/
|
|
201
|
+
export const SPEC = {
|
|
202
|
+
typeUri: TYPE_URI,
|
|
203
|
+
isBearer: false,
|
|
204
|
+
isProofRequired: true,
|
|
205
|
+
isRecipientRequired: true,
|
|
206
|
+
isIssuedAtRequired: false,
|
|
207
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
208
|
+
} as const;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
212
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
213
|
+
* parties (§7.3 item 5).
|
|
214
|
+
*/
|
|
215
|
+
export const RESPONSE_SPEC = {
|
|
216
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
217
|
+
isBearer: false,
|
|
218
|
+
isProofRequired: true,
|
|
219
|
+
isRecipientRequired: true,
|
|
220
|
+
isIssuedAtRequired: false,
|
|
221
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
222
|
+
} as const;
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/did-management/did/log/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Ext } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export interface DIDLogPayload {
|
|
10
|
+
mnemonic: string;
|
|
11
|
+
/**
|
|
12
|
+
* Disambiguates `mnemonic` per the category conventions. Absent means the domain is resolved by the category's chain.
|
|
13
|
+
*/
|
|
14
|
+
domain?: string;
|
|
15
|
+
/**
|
|
16
|
+
* When true, the response also carries the stored artifacts verbatim. Absent or false means parsed entries only.
|
|
17
|
+
*/
|
|
18
|
+
raw?: boolean;
|
|
19
|
+
ext?: Ext;
|
|
20
|
+
}
|
|
21
|
+
export interface DIDLogResponsePayload {
|
|
22
|
+
mnemonic: string;
|
|
23
|
+
/**
|
|
24
|
+
* The slot's DID method (`webvh`, `web`, `webs`, …). Determines what an entry is.
|
|
25
|
+
*/
|
|
26
|
+
method: string;
|
|
27
|
+
/**
|
|
28
|
+
* The slot's history, oldest first. For did:webvh, one per log line; for a method with no log (did:web) a single entry for the current document; for did:webs one per establishment event that changed the document.
|
|
29
|
+
*/
|
|
30
|
+
entries: {
|
|
31
|
+
/**
|
|
32
|
+
* The entry's version identifier. Absent for a method that has none.
|
|
33
|
+
*/
|
|
34
|
+
versionId?: string;
|
|
35
|
+
/**
|
|
36
|
+
* When the entry was made, as the entry states it. Absent for a method that records none.
|
|
37
|
+
*/
|
|
38
|
+
versionTime?: string;
|
|
39
|
+
/**
|
|
40
|
+
* The DID document as of this entry.
|
|
41
|
+
*/
|
|
42
|
+
state: {};
|
|
43
|
+
/**
|
|
44
|
+
* The method's parameters as of this entry (did:webvh log parameters). Absent for a method that has none.
|
|
45
|
+
*/
|
|
46
|
+
parameters?: {};
|
|
47
|
+
}[];
|
|
48
|
+
/**
|
|
49
|
+
* The stored primary artifact verbatim — did.jsonl for did:webvh, the key event stream for did:webs, did.json for did:web. Present iff the request set raw: true.
|
|
50
|
+
*/
|
|
51
|
+
logContent?: string;
|
|
52
|
+
/**
|
|
53
|
+
* The stored did-witness.json verbatim. Present iff the request set raw: true and the slot holds witness proofs.
|
|
54
|
+
*/
|
|
55
|
+
witnessContent?: string;
|
|
56
|
+
ext?: Ext;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
60
|
+
export type { Ext };
|
|
61
|
+
|
|
62
|
+
/** Trust Task type URI. */
|
|
63
|
+
export const TYPE_URI = "https://trusttasks.org/spec/did-management/did/log/0.1" as const;
|
|
64
|
+
|
|
65
|
+
/** Stable alias for this specification's request payload shape. */
|
|
66
|
+
export type Payload = DIDLogPayload;
|
|
67
|
+
|
|
68
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
69
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/did-management/did/log/0.1#response" as const;
|
|
70
|
+
|
|
71
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
72
|
+
export type Response = DIDLogResponsePayload;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* This specification's payload schema, as a value.
|
|
76
|
+
*
|
|
77
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
78
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
79
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
80
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
81
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
82
|
+
*/
|
|
83
|
+
export const PAYLOAD_SCHEMA = {
|
|
84
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
85
|
+
"$id": "https://trusttasks.org/spec/did-management/did/log/0.1",
|
|
86
|
+
"title": "DID Log — payload",
|
|
87
|
+
"type": "object",
|
|
88
|
+
"additionalProperties": false,
|
|
89
|
+
"required": [
|
|
90
|
+
"mnemonic"
|
|
91
|
+
],
|
|
92
|
+
"properties": {
|
|
93
|
+
"mnemonic": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"minLength": 1,
|
|
96
|
+
"maxLength": 512
|
|
97
|
+
},
|
|
98
|
+
"domain": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"minLength": 1,
|
|
101
|
+
"maxLength": 253,
|
|
102
|
+
"description": "Disambiguates `mnemonic` per the category conventions. Absent means the domain is resolved by the category's chain."
|
|
103
|
+
},
|
|
104
|
+
"raw": {
|
|
105
|
+
"type": "boolean",
|
|
106
|
+
"description": "When true, the response also carries the stored artifacts verbatim. Absent or false means parsed entries only."
|
|
107
|
+
},
|
|
108
|
+
"ext": {
|
|
109
|
+
"$ref": "#/$defs/Ext"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"$defs": {
|
|
113
|
+
"Response": {
|
|
114
|
+
"$anchor": "response",
|
|
115
|
+
"title": "DID Log — response payload",
|
|
116
|
+
"type": "object",
|
|
117
|
+
"additionalProperties": false,
|
|
118
|
+
"required": [
|
|
119
|
+
"mnemonic",
|
|
120
|
+
"method",
|
|
121
|
+
"entries"
|
|
122
|
+
],
|
|
123
|
+
"properties": {
|
|
124
|
+
"mnemonic": {
|
|
125
|
+
"type": "string"
|
|
126
|
+
},
|
|
127
|
+
"method": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"minLength": 1,
|
|
130
|
+
"description": "The slot's DID method (`webvh`, `web`, `webs`, …). Determines what an entry is."
|
|
131
|
+
},
|
|
132
|
+
"entries": {
|
|
133
|
+
"type": "array",
|
|
134
|
+
"description": "The slot's history, oldest first. For did:webvh, one per log line; for a method with no log (did:web) a single entry for the current document; for did:webs one per establishment event that changed the document.",
|
|
135
|
+
"items": {
|
|
136
|
+
"type": "object",
|
|
137
|
+
"additionalProperties": false,
|
|
138
|
+
"required": [
|
|
139
|
+
"state"
|
|
140
|
+
],
|
|
141
|
+
"properties": {
|
|
142
|
+
"versionId": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"description": "The entry's version identifier. Absent for a method that has none."
|
|
145
|
+
},
|
|
146
|
+
"versionTime": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"format": "date-time",
|
|
149
|
+
"description": "When the entry was made, as the entry states it. Absent for a method that records none."
|
|
150
|
+
},
|
|
151
|
+
"state": {
|
|
152
|
+
"type": "object",
|
|
153
|
+
"description": "The DID document as of this entry."
|
|
154
|
+
},
|
|
155
|
+
"parameters": {
|
|
156
|
+
"type": "object",
|
|
157
|
+
"description": "The method's parameters as of this entry (did:webvh log parameters). Absent for a method that has none."
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"logContent": {
|
|
163
|
+
"type": "string",
|
|
164
|
+
"description": "The stored primary artifact verbatim — did.jsonl for did:webvh, the key event stream for did:webs, did.json for did:web. Present iff the request set raw: true."
|
|
165
|
+
},
|
|
166
|
+
"witnessContent": {
|
|
167
|
+
"type": "string",
|
|
168
|
+
"description": "The stored did-witness.json verbatim. Present iff the request set raw: true and the slot holds witness proofs."
|
|
169
|
+
},
|
|
170
|
+
"ext": {
|
|
171
|
+
"$ref": "#/$defs/Ext"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"Ext": {
|
|
176
|
+
"title": "Ext",
|
|
177
|
+
"description": "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.",
|
|
178
|
+
"type": "object",
|
|
179
|
+
"minProperties": 1,
|
|
180
|
+
"additionalProperties": true,
|
|
181
|
+
"propertyNames": {
|
|
182
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
} as const;
|
|
187
|
+
|
|
188
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
189
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
190
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
191
|
+
"$ref": "#/$defs/Response",
|
|
192
|
+
"$defs": {
|
|
193
|
+
"Response": {
|
|
194
|
+
"$anchor": "response",
|
|
195
|
+
"title": "DID Log — response payload",
|
|
196
|
+
"type": "object",
|
|
197
|
+
"additionalProperties": false,
|
|
198
|
+
"required": [
|
|
199
|
+
"mnemonic",
|
|
200
|
+
"method",
|
|
201
|
+
"entries"
|
|
202
|
+
],
|
|
203
|
+
"properties": {
|
|
204
|
+
"mnemonic": {
|
|
205
|
+
"type": "string"
|
|
206
|
+
},
|
|
207
|
+
"method": {
|
|
208
|
+
"type": "string",
|
|
209
|
+
"minLength": 1,
|
|
210
|
+
"description": "The slot's DID method (`webvh`, `web`, `webs`, …). Determines what an entry is."
|
|
211
|
+
},
|
|
212
|
+
"entries": {
|
|
213
|
+
"type": "array",
|
|
214
|
+
"description": "The slot's history, oldest first. For did:webvh, one per log line; for a method with no log (did:web) a single entry for the current document; for did:webs one per establishment event that changed the document.",
|
|
215
|
+
"items": {
|
|
216
|
+
"type": "object",
|
|
217
|
+
"additionalProperties": false,
|
|
218
|
+
"required": [
|
|
219
|
+
"state"
|
|
220
|
+
],
|
|
221
|
+
"properties": {
|
|
222
|
+
"versionId": {
|
|
223
|
+
"type": "string",
|
|
224
|
+
"description": "The entry's version identifier. Absent for a method that has none."
|
|
225
|
+
},
|
|
226
|
+
"versionTime": {
|
|
227
|
+
"type": "string",
|
|
228
|
+
"format": "date-time",
|
|
229
|
+
"description": "When the entry was made, as the entry states it. Absent for a method that records none."
|
|
230
|
+
},
|
|
231
|
+
"state": {
|
|
232
|
+
"type": "object",
|
|
233
|
+
"description": "The DID document as of this entry."
|
|
234
|
+
},
|
|
235
|
+
"parameters": {
|
|
236
|
+
"type": "object",
|
|
237
|
+
"description": "The method's parameters as of this entry (did:webvh log parameters). Absent for a method that has none."
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"logContent": {
|
|
243
|
+
"type": "string",
|
|
244
|
+
"description": "The stored primary artifact verbatim — did.jsonl for did:webvh, the key event stream for did:webs, did.json for did:web. Present iff the request set raw: true."
|
|
245
|
+
},
|
|
246
|
+
"witnessContent": {
|
|
247
|
+
"type": "string",
|
|
248
|
+
"description": "The stored did-witness.json verbatim. Present iff the request set raw: true and the slot holds witness proofs."
|
|
249
|
+
},
|
|
250
|
+
"ext": {
|
|
251
|
+
"$ref": "#/$defs/Ext"
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"Ext": {
|
|
256
|
+
"title": "Ext",
|
|
257
|
+
"description": "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.",
|
|
258
|
+
"type": "object",
|
|
259
|
+
"minProperties": 1,
|
|
260
|
+
"additionalProperties": true,
|
|
261
|
+
"propertyNames": {
|
|
262
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
} as const;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
270
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
271
|
+
* per-specification and cannot be derived from the document alone, and
|
|
272
|
+
* item 2 needs the schema this carries.
|
|
273
|
+
*/
|
|
274
|
+
export const SPEC = {
|
|
275
|
+
typeUri: TYPE_URI,
|
|
276
|
+
isBearer: false,
|
|
277
|
+
isProofRequired: true,
|
|
278
|
+
isRecipientRequired: true,
|
|
279
|
+
isIssuedAtRequired: false,
|
|
280
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
281
|
+
} as const;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
285
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
286
|
+
* parties (§7.3 item 5).
|
|
287
|
+
*/
|
|
288
|
+
export const RESPONSE_SPEC = {
|
|
289
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
290
|
+
isBearer: false,
|
|
291
|
+
isProofRequired: true,
|
|
292
|
+
isRecipientRequired: true,
|
|
293
|
+
isIssuedAtRequired: false,
|
|
294
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
295
|
+
} as const;
|