@openvtc/trust-tasks 0.21.4 → 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 +18 -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/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/index.d.ts +34 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +34 -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/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/index.ts +34 -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,494 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/did-management/identity/list/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { Ext } from "../../../../_shared/components.js";
|
|
6
|
+
export interface IdentityListPayload {
|
|
7
|
+
ext?: Ext;
|
|
8
|
+
}
|
|
9
|
+
export interface IdentityListResponsePayload {
|
|
10
|
+
/**
|
|
11
|
+
* Every generation the service still honours, newest first. Exactly one is current. Empty when the service holds no rotating identity.
|
|
12
|
+
*/
|
|
13
|
+
generations: {
|
|
14
|
+
generationId: number;
|
|
15
|
+
did: string;
|
|
16
|
+
/**
|
|
17
|
+
* True for the generation the DID document currently advertises.
|
|
18
|
+
*/
|
|
19
|
+
current: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Verification-method id of the generation's signing key, as the DID document names it. Public; never key material.
|
|
22
|
+
*/
|
|
23
|
+
signingKeyId: string;
|
|
24
|
+
keyAgreementKeyId: string;
|
|
25
|
+
/**
|
|
26
|
+
* The mediator the generation was reached through. Absent for one reached without a mediator.
|
|
27
|
+
*/
|
|
28
|
+
mediatorDid?: string;
|
|
29
|
+
transports: {
|
|
30
|
+
tsp: boolean;
|
|
31
|
+
didcomm: boolean;
|
|
32
|
+
};
|
|
33
|
+
createdAt: string;
|
|
34
|
+
/**
|
|
35
|
+
* When the generation stopped being current. Absent on the current one.
|
|
36
|
+
*/
|
|
37
|
+
retiredAt?: string;
|
|
38
|
+
/**
|
|
39
|
+
* When the service stops honouring it and drops its key material. Absent on the current one.
|
|
40
|
+
*/
|
|
41
|
+
expiresAt?: string;
|
|
42
|
+
}[];
|
|
43
|
+
/**
|
|
44
|
+
* How long a generation superseded now would keep being honoured.
|
|
45
|
+
*/
|
|
46
|
+
rotationGraceSeconds: number;
|
|
47
|
+
ext?: Ext;
|
|
48
|
+
}
|
|
49
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
50
|
+
export type { Ext };
|
|
51
|
+
/** Trust Task type URI. */
|
|
52
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/did-management/identity/list/0.1";
|
|
53
|
+
/** Stable alias for this specification's request payload shape. */
|
|
54
|
+
export type Payload = IdentityListPayload;
|
|
55
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
56
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/did-management/identity/list/0.1#response";
|
|
57
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
58
|
+
export type Response = IdentityListResponsePayload;
|
|
59
|
+
/**
|
|
60
|
+
* This specification's payload schema, as a value.
|
|
61
|
+
*
|
|
62
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
63
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
64
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
65
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
66
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
67
|
+
*/
|
|
68
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
69
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
70
|
+
readonly $id: "https://trusttasks.org/spec/did-management/identity/list/0.1";
|
|
71
|
+
readonly title: "Identity List — payload";
|
|
72
|
+
readonly type: "object";
|
|
73
|
+
readonly additionalProperties: false;
|
|
74
|
+
readonly properties: {
|
|
75
|
+
readonly ext: {
|
|
76
|
+
readonly $ref: "#/$defs/Ext";
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
readonly $defs: {
|
|
80
|
+
readonly Response: {
|
|
81
|
+
readonly $anchor: "response";
|
|
82
|
+
readonly title: "Identity List — response payload";
|
|
83
|
+
readonly type: "object";
|
|
84
|
+
readonly additionalProperties: false;
|
|
85
|
+
readonly required: readonly ["generations", "rotationGraceSeconds"];
|
|
86
|
+
readonly properties: {
|
|
87
|
+
readonly generations: {
|
|
88
|
+
readonly type: "array";
|
|
89
|
+
readonly description: "Every generation the service still honours, newest first. Exactly one is current. Empty when the service holds no rotating identity.";
|
|
90
|
+
readonly items: {
|
|
91
|
+
readonly type: "object";
|
|
92
|
+
readonly additionalProperties: false;
|
|
93
|
+
readonly required: readonly ["generationId", "did", "current", "signingKeyId", "keyAgreementKeyId", "transports", "createdAt"];
|
|
94
|
+
readonly properties: {
|
|
95
|
+
readonly generationId: {
|
|
96
|
+
readonly type: "integer";
|
|
97
|
+
readonly minimum: 0;
|
|
98
|
+
};
|
|
99
|
+
readonly did: {
|
|
100
|
+
readonly type: "string";
|
|
101
|
+
readonly minLength: 1;
|
|
102
|
+
};
|
|
103
|
+
readonly current: {
|
|
104
|
+
readonly type: "boolean";
|
|
105
|
+
readonly description: "True for the generation the DID document currently advertises.";
|
|
106
|
+
};
|
|
107
|
+
readonly signingKeyId: {
|
|
108
|
+
readonly type: "string";
|
|
109
|
+
readonly minLength: 1;
|
|
110
|
+
readonly description: "Verification-method id of the generation's signing key, as the DID document names it. Public; never key material.";
|
|
111
|
+
};
|
|
112
|
+
readonly keyAgreementKeyId: {
|
|
113
|
+
readonly type: "string";
|
|
114
|
+
readonly minLength: 1;
|
|
115
|
+
};
|
|
116
|
+
readonly mediatorDid: {
|
|
117
|
+
readonly type: "string";
|
|
118
|
+
readonly description: "The mediator the generation was reached through. Absent for one reached without a mediator.";
|
|
119
|
+
};
|
|
120
|
+
readonly transports: {
|
|
121
|
+
readonly type: "object";
|
|
122
|
+
readonly additionalProperties: false;
|
|
123
|
+
readonly required: readonly ["tsp", "didcomm"];
|
|
124
|
+
readonly properties: {
|
|
125
|
+
readonly tsp: {
|
|
126
|
+
readonly type: "boolean";
|
|
127
|
+
};
|
|
128
|
+
readonly didcomm: {
|
|
129
|
+
readonly type: "boolean";
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
readonly createdAt: {
|
|
134
|
+
readonly type: "string";
|
|
135
|
+
readonly format: "date-time";
|
|
136
|
+
};
|
|
137
|
+
readonly retiredAt: {
|
|
138
|
+
readonly type: "string";
|
|
139
|
+
readonly format: "date-time";
|
|
140
|
+
readonly description: "When the generation stopped being current. Absent on the current one.";
|
|
141
|
+
};
|
|
142
|
+
readonly expiresAt: {
|
|
143
|
+
readonly type: "string";
|
|
144
|
+
readonly format: "date-time";
|
|
145
|
+
readonly description: "When the service stops honouring it and drops its key material. Absent on the current one.";
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
readonly rotationGraceSeconds: {
|
|
151
|
+
readonly type: "integer";
|
|
152
|
+
readonly minimum: 0;
|
|
153
|
+
readonly description: "How long a generation superseded now would keep being honoured.";
|
|
154
|
+
};
|
|
155
|
+
readonly ext: {
|
|
156
|
+
readonly $ref: "#/$defs/Ext";
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
readonly Ext: {
|
|
161
|
+
readonly title: "Ext";
|
|
162
|
+
readonly 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.";
|
|
163
|
+
readonly type: "object";
|
|
164
|
+
readonly minProperties: 1;
|
|
165
|
+
readonly additionalProperties: true;
|
|
166
|
+
readonly propertyNames: {
|
|
167
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
173
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
174
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
175
|
+
readonly $ref: "#/$defs/Response";
|
|
176
|
+
readonly $defs: {
|
|
177
|
+
readonly Response: {
|
|
178
|
+
readonly $anchor: "response";
|
|
179
|
+
readonly title: "Identity List — response payload";
|
|
180
|
+
readonly type: "object";
|
|
181
|
+
readonly additionalProperties: false;
|
|
182
|
+
readonly required: readonly ["generations", "rotationGraceSeconds"];
|
|
183
|
+
readonly properties: {
|
|
184
|
+
readonly generations: {
|
|
185
|
+
readonly type: "array";
|
|
186
|
+
readonly description: "Every generation the service still honours, newest first. Exactly one is current. Empty when the service holds no rotating identity.";
|
|
187
|
+
readonly items: {
|
|
188
|
+
readonly type: "object";
|
|
189
|
+
readonly additionalProperties: false;
|
|
190
|
+
readonly required: readonly ["generationId", "did", "current", "signingKeyId", "keyAgreementKeyId", "transports", "createdAt"];
|
|
191
|
+
readonly properties: {
|
|
192
|
+
readonly generationId: {
|
|
193
|
+
readonly type: "integer";
|
|
194
|
+
readonly minimum: 0;
|
|
195
|
+
};
|
|
196
|
+
readonly did: {
|
|
197
|
+
readonly type: "string";
|
|
198
|
+
readonly minLength: 1;
|
|
199
|
+
};
|
|
200
|
+
readonly current: {
|
|
201
|
+
readonly type: "boolean";
|
|
202
|
+
readonly description: "True for the generation the DID document currently advertises.";
|
|
203
|
+
};
|
|
204
|
+
readonly signingKeyId: {
|
|
205
|
+
readonly type: "string";
|
|
206
|
+
readonly minLength: 1;
|
|
207
|
+
readonly description: "Verification-method id of the generation's signing key, as the DID document names it. Public; never key material.";
|
|
208
|
+
};
|
|
209
|
+
readonly keyAgreementKeyId: {
|
|
210
|
+
readonly type: "string";
|
|
211
|
+
readonly minLength: 1;
|
|
212
|
+
};
|
|
213
|
+
readonly mediatorDid: {
|
|
214
|
+
readonly type: "string";
|
|
215
|
+
readonly description: "The mediator the generation was reached through. Absent for one reached without a mediator.";
|
|
216
|
+
};
|
|
217
|
+
readonly transports: {
|
|
218
|
+
readonly type: "object";
|
|
219
|
+
readonly additionalProperties: false;
|
|
220
|
+
readonly required: readonly ["tsp", "didcomm"];
|
|
221
|
+
readonly properties: {
|
|
222
|
+
readonly tsp: {
|
|
223
|
+
readonly type: "boolean";
|
|
224
|
+
};
|
|
225
|
+
readonly didcomm: {
|
|
226
|
+
readonly type: "boolean";
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
readonly createdAt: {
|
|
231
|
+
readonly type: "string";
|
|
232
|
+
readonly format: "date-time";
|
|
233
|
+
};
|
|
234
|
+
readonly retiredAt: {
|
|
235
|
+
readonly type: "string";
|
|
236
|
+
readonly format: "date-time";
|
|
237
|
+
readonly description: "When the generation stopped being current. Absent on the current one.";
|
|
238
|
+
};
|
|
239
|
+
readonly expiresAt: {
|
|
240
|
+
readonly type: "string";
|
|
241
|
+
readonly format: "date-time";
|
|
242
|
+
readonly description: "When the service stops honouring it and drops its key material. Absent on the current one.";
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
readonly rotationGraceSeconds: {
|
|
248
|
+
readonly type: "integer";
|
|
249
|
+
readonly minimum: 0;
|
|
250
|
+
readonly description: "How long a generation superseded now would keep being honoured.";
|
|
251
|
+
};
|
|
252
|
+
readonly ext: {
|
|
253
|
+
readonly $ref: "#/$defs/Ext";
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
readonly Ext: {
|
|
258
|
+
readonly title: "Ext";
|
|
259
|
+
readonly 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.";
|
|
260
|
+
readonly type: "object";
|
|
261
|
+
readonly minProperties: 1;
|
|
262
|
+
readonly additionalProperties: true;
|
|
263
|
+
readonly propertyNames: {
|
|
264
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
/**
|
|
270
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
271
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
272
|
+
* per-specification and cannot be derived from the document alone, and
|
|
273
|
+
* item 2 needs the schema this carries.
|
|
274
|
+
*/
|
|
275
|
+
export declare const SPEC: {
|
|
276
|
+
readonly typeUri: "https://trusttasks.org/spec/did-management/identity/list/0.1";
|
|
277
|
+
readonly isBearer: false;
|
|
278
|
+
readonly isProofRequired: true;
|
|
279
|
+
readonly isRecipientRequired: true;
|
|
280
|
+
readonly isIssuedAtRequired: false;
|
|
281
|
+
readonly payloadSchema: {
|
|
282
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
283
|
+
readonly $id: "https://trusttasks.org/spec/did-management/identity/list/0.1";
|
|
284
|
+
readonly title: "Identity List — payload";
|
|
285
|
+
readonly type: "object";
|
|
286
|
+
readonly additionalProperties: false;
|
|
287
|
+
readonly properties: {
|
|
288
|
+
readonly ext: {
|
|
289
|
+
readonly $ref: "#/$defs/Ext";
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
readonly $defs: {
|
|
293
|
+
readonly Response: {
|
|
294
|
+
readonly $anchor: "response";
|
|
295
|
+
readonly title: "Identity List — response payload";
|
|
296
|
+
readonly type: "object";
|
|
297
|
+
readonly additionalProperties: false;
|
|
298
|
+
readonly required: readonly ["generations", "rotationGraceSeconds"];
|
|
299
|
+
readonly properties: {
|
|
300
|
+
readonly generations: {
|
|
301
|
+
readonly type: "array";
|
|
302
|
+
readonly description: "Every generation the service still honours, newest first. Exactly one is current. Empty when the service holds no rotating identity.";
|
|
303
|
+
readonly items: {
|
|
304
|
+
readonly type: "object";
|
|
305
|
+
readonly additionalProperties: false;
|
|
306
|
+
readonly required: readonly ["generationId", "did", "current", "signingKeyId", "keyAgreementKeyId", "transports", "createdAt"];
|
|
307
|
+
readonly properties: {
|
|
308
|
+
readonly generationId: {
|
|
309
|
+
readonly type: "integer";
|
|
310
|
+
readonly minimum: 0;
|
|
311
|
+
};
|
|
312
|
+
readonly did: {
|
|
313
|
+
readonly type: "string";
|
|
314
|
+
readonly minLength: 1;
|
|
315
|
+
};
|
|
316
|
+
readonly current: {
|
|
317
|
+
readonly type: "boolean";
|
|
318
|
+
readonly description: "True for the generation the DID document currently advertises.";
|
|
319
|
+
};
|
|
320
|
+
readonly signingKeyId: {
|
|
321
|
+
readonly type: "string";
|
|
322
|
+
readonly minLength: 1;
|
|
323
|
+
readonly description: "Verification-method id of the generation's signing key, as the DID document names it. Public; never key material.";
|
|
324
|
+
};
|
|
325
|
+
readonly keyAgreementKeyId: {
|
|
326
|
+
readonly type: "string";
|
|
327
|
+
readonly minLength: 1;
|
|
328
|
+
};
|
|
329
|
+
readonly mediatorDid: {
|
|
330
|
+
readonly type: "string";
|
|
331
|
+
readonly description: "The mediator the generation was reached through. Absent for one reached without a mediator.";
|
|
332
|
+
};
|
|
333
|
+
readonly transports: {
|
|
334
|
+
readonly type: "object";
|
|
335
|
+
readonly additionalProperties: false;
|
|
336
|
+
readonly required: readonly ["tsp", "didcomm"];
|
|
337
|
+
readonly properties: {
|
|
338
|
+
readonly tsp: {
|
|
339
|
+
readonly type: "boolean";
|
|
340
|
+
};
|
|
341
|
+
readonly didcomm: {
|
|
342
|
+
readonly type: "boolean";
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
readonly createdAt: {
|
|
347
|
+
readonly type: "string";
|
|
348
|
+
readonly format: "date-time";
|
|
349
|
+
};
|
|
350
|
+
readonly retiredAt: {
|
|
351
|
+
readonly type: "string";
|
|
352
|
+
readonly format: "date-time";
|
|
353
|
+
readonly description: "When the generation stopped being current. Absent on the current one.";
|
|
354
|
+
};
|
|
355
|
+
readonly expiresAt: {
|
|
356
|
+
readonly type: "string";
|
|
357
|
+
readonly format: "date-time";
|
|
358
|
+
readonly description: "When the service stops honouring it and drops its key material. Absent on the current one.";
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
readonly rotationGraceSeconds: {
|
|
364
|
+
readonly type: "integer";
|
|
365
|
+
readonly minimum: 0;
|
|
366
|
+
readonly description: "How long a generation superseded now would keep being honoured.";
|
|
367
|
+
};
|
|
368
|
+
readonly ext: {
|
|
369
|
+
readonly $ref: "#/$defs/Ext";
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
readonly Ext: {
|
|
374
|
+
readonly title: "Ext";
|
|
375
|
+
readonly 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.";
|
|
376
|
+
readonly type: "object";
|
|
377
|
+
readonly minProperties: 1;
|
|
378
|
+
readonly additionalProperties: true;
|
|
379
|
+
readonly propertyNames: {
|
|
380
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
381
|
+
};
|
|
382
|
+
};
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
/**
|
|
387
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
388
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
389
|
+
* parties (§7.3 item 5).
|
|
390
|
+
*/
|
|
391
|
+
export declare const RESPONSE_SPEC: {
|
|
392
|
+
readonly typeUri: "https://trusttasks.org/spec/did-management/identity/list/0.1#response";
|
|
393
|
+
readonly isBearer: false;
|
|
394
|
+
readonly isProofRequired: true;
|
|
395
|
+
readonly isRecipientRequired: true;
|
|
396
|
+
readonly isIssuedAtRequired: false;
|
|
397
|
+
readonly payloadSchema: {
|
|
398
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
399
|
+
readonly $ref: "#/$defs/Response";
|
|
400
|
+
readonly $defs: {
|
|
401
|
+
readonly Response: {
|
|
402
|
+
readonly $anchor: "response";
|
|
403
|
+
readonly title: "Identity List — response payload";
|
|
404
|
+
readonly type: "object";
|
|
405
|
+
readonly additionalProperties: false;
|
|
406
|
+
readonly required: readonly ["generations", "rotationGraceSeconds"];
|
|
407
|
+
readonly properties: {
|
|
408
|
+
readonly generations: {
|
|
409
|
+
readonly type: "array";
|
|
410
|
+
readonly description: "Every generation the service still honours, newest first. Exactly one is current. Empty when the service holds no rotating identity.";
|
|
411
|
+
readonly items: {
|
|
412
|
+
readonly type: "object";
|
|
413
|
+
readonly additionalProperties: false;
|
|
414
|
+
readonly required: readonly ["generationId", "did", "current", "signingKeyId", "keyAgreementKeyId", "transports", "createdAt"];
|
|
415
|
+
readonly properties: {
|
|
416
|
+
readonly generationId: {
|
|
417
|
+
readonly type: "integer";
|
|
418
|
+
readonly minimum: 0;
|
|
419
|
+
};
|
|
420
|
+
readonly did: {
|
|
421
|
+
readonly type: "string";
|
|
422
|
+
readonly minLength: 1;
|
|
423
|
+
};
|
|
424
|
+
readonly current: {
|
|
425
|
+
readonly type: "boolean";
|
|
426
|
+
readonly description: "True for the generation the DID document currently advertises.";
|
|
427
|
+
};
|
|
428
|
+
readonly signingKeyId: {
|
|
429
|
+
readonly type: "string";
|
|
430
|
+
readonly minLength: 1;
|
|
431
|
+
readonly description: "Verification-method id of the generation's signing key, as the DID document names it. Public; never key material.";
|
|
432
|
+
};
|
|
433
|
+
readonly keyAgreementKeyId: {
|
|
434
|
+
readonly type: "string";
|
|
435
|
+
readonly minLength: 1;
|
|
436
|
+
};
|
|
437
|
+
readonly mediatorDid: {
|
|
438
|
+
readonly type: "string";
|
|
439
|
+
readonly description: "The mediator the generation was reached through. Absent for one reached without a mediator.";
|
|
440
|
+
};
|
|
441
|
+
readonly transports: {
|
|
442
|
+
readonly type: "object";
|
|
443
|
+
readonly additionalProperties: false;
|
|
444
|
+
readonly required: readonly ["tsp", "didcomm"];
|
|
445
|
+
readonly properties: {
|
|
446
|
+
readonly tsp: {
|
|
447
|
+
readonly type: "boolean";
|
|
448
|
+
};
|
|
449
|
+
readonly didcomm: {
|
|
450
|
+
readonly type: "boolean";
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
};
|
|
454
|
+
readonly createdAt: {
|
|
455
|
+
readonly type: "string";
|
|
456
|
+
readonly format: "date-time";
|
|
457
|
+
};
|
|
458
|
+
readonly retiredAt: {
|
|
459
|
+
readonly type: "string";
|
|
460
|
+
readonly format: "date-time";
|
|
461
|
+
readonly description: "When the generation stopped being current. Absent on the current one.";
|
|
462
|
+
};
|
|
463
|
+
readonly expiresAt: {
|
|
464
|
+
readonly type: "string";
|
|
465
|
+
readonly format: "date-time";
|
|
466
|
+
readonly description: "When the service stops honouring it and drops its key material. Absent on the current one.";
|
|
467
|
+
};
|
|
468
|
+
};
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
readonly rotationGraceSeconds: {
|
|
472
|
+
readonly type: "integer";
|
|
473
|
+
readonly minimum: 0;
|
|
474
|
+
readonly description: "How long a generation superseded now would keep being honoured.";
|
|
475
|
+
};
|
|
476
|
+
readonly ext: {
|
|
477
|
+
readonly $ref: "#/$defs/Ext";
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
};
|
|
481
|
+
readonly Ext: {
|
|
482
|
+
readonly title: "Ext";
|
|
483
|
+
readonly 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.";
|
|
484
|
+
readonly type: "object";
|
|
485
|
+
readonly minProperties: 1;
|
|
486
|
+
readonly additionalProperties: true;
|
|
487
|
+
readonly propertyNames: {
|
|
488
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
};
|
|
494
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/did-management/identity/list/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AAG7D,MAAM,WAAW,mBAAmB;IAClC,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,WAAW,EAAE;QACX,YAAY,EAAE,MAAM,CAAC;QACrB,GAAG,EAAE,MAAM,CAAC;QACZ;;WAEG;QACH,OAAO,EAAE,OAAO,CAAC;QACjB;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;QACrB,iBAAiB,EAAE,MAAM,CAAC;QAC1B;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,UAAU,EAAE;YACV,GAAG,EAAE,OAAO,CAAC;YACb,OAAO,EAAE,OAAO,CAAC;SAClB,CAAC;QACF,SAAS,EAAE,MAAM,CAAC;QAClB;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,EAAE,CAAC;IACJ;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,CAAC;AAEpB,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,8DAAuE,CAAC;AAEhG,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,mBAAmB,CAAC;AAE1C,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,uEAAgF,CAAC;AAElH,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,2BAA2B,CAAC;AAEnD;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqHjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6G1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|