@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,335 @@
|
|
|
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
|
+
|
|
6
|
+
import type { Ext } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export interface IdentityListPayload {
|
|
10
|
+
ext?: Ext;
|
|
11
|
+
}
|
|
12
|
+
export interface IdentityListResponsePayload {
|
|
13
|
+
/**
|
|
14
|
+
* Every generation the service still honours, newest first. Exactly one is current. Empty when the service holds no rotating identity.
|
|
15
|
+
*/
|
|
16
|
+
generations: {
|
|
17
|
+
generationId: number;
|
|
18
|
+
did: string;
|
|
19
|
+
/**
|
|
20
|
+
* True for the generation the DID document currently advertises.
|
|
21
|
+
*/
|
|
22
|
+
current: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Verification-method id of the generation's signing key, as the DID document names it. Public; never key material.
|
|
25
|
+
*/
|
|
26
|
+
signingKeyId: string;
|
|
27
|
+
keyAgreementKeyId: string;
|
|
28
|
+
/**
|
|
29
|
+
* The mediator the generation was reached through. Absent for one reached without a mediator.
|
|
30
|
+
*/
|
|
31
|
+
mediatorDid?: string;
|
|
32
|
+
transports: {
|
|
33
|
+
tsp: boolean;
|
|
34
|
+
didcomm: boolean;
|
|
35
|
+
};
|
|
36
|
+
createdAt: string;
|
|
37
|
+
/**
|
|
38
|
+
* When the generation stopped being current. Absent on the current one.
|
|
39
|
+
*/
|
|
40
|
+
retiredAt?: string;
|
|
41
|
+
/**
|
|
42
|
+
* When the service stops honouring it and drops its key material. Absent on the current one.
|
|
43
|
+
*/
|
|
44
|
+
expiresAt?: string;
|
|
45
|
+
}[];
|
|
46
|
+
/**
|
|
47
|
+
* How long a generation superseded now would keep being honoured.
|
|
48
|
+
*/
|
|
49
|
+
rotationGraceSeconds: number;
|
|
50
|
+
ext?: Ext;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
54
|
+
export type { Ext };
|
|
55
|
+
|
|
56
|
+
/** Trust Task type URI. */
|
|
57
|
+
export const TYPE_URI = "https://trusttasks.org/spec/did-management/identity/list/0.1" as const;
|
|
58
|
+
|
|
59
|
+
/** Stable alias for this specification's request payload shape. */
|
|
60
|
+
export type Payload = IdentityListPayload;
|
|
61
|
+
|
|
62
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
63
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/did-management/identity/list/0.1#response" as const;
|
|
64
|
+
|
|
65
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
66
|
+
export type Response = IdentityListResponsePayload;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* This specification's payload schema, as a value.
|
|
70
|
+
*
|
|
71
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
72
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
73
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
74
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
75
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
76
|
+
*/
|
|
77
|
+
export const PAYLOAD_SCHEMA = {
|
|
78
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
79
|
+
"$id": "https://trusttasks.org/spec/did-management/identity/list/0.1",
|
|
80
|
+
"title": "Identity List — payload",
|
|
81
|
+
"type": "object",
|
|
82
|
+
"additionalProperties": false,
|
|
83
|
+
"properties": {
|
|
84
|
+
"ext": {
|
|
85
|
+
"$ref": "#/$defs/Ext"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"$defs": {
|
|
89
|
+
"Response": {
|
|
90
|
+
"$anchor": "response",
|
|
91
|
+
"title": "Identity List — response payload",
|
|
92
|
+
"type": "object",
|
|
93
|
+
"additionalProperties": false,
|
|
94
|
+
"required": [
|
|
95
|
+
"generations",
|
|
96
|
+
"rotationGraceSeconds"
|
|
97
|
+
],
|
|
98
|
+
"properties": {
|
|
99
|
+
"generations": {
|
|
100
|
+
"type": "array",
|
|
101
|
+
"description": "Every generation the service still honours, newest first. Exactly one is current. Empty when the service holds no rotating identity.",
|
|
102
|
+
"items": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"additionalProperties": false,
|
|
105
|
+
"required": [
|
|
106
|
+
"generationId",
|
|
107
|
+
"did",
|
|
108
|
+
"current",
|
|
109
|
+
"signingKeyId",
|
|
110
|
+
"keyAgreementKeyId",
|
|
111
|
+
"transports",
|
|
112
|
+
"createdAt"
|
|
113
|
+
],
|
|
114
|
+
"properties": {
|
|
115
|
+
"generationId": {
|
|
116
|
+
"type": "integer",
|
|
117
|
+
"minimum": 0
|
|
118
|
+
},
|
|
119
|
+
"did": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"minLength": 1
|
|
122
|
+
},
|
|
123
|
+
"current": {
|
|
124
|
+
"type": "boolean",
|
|
125
|
+
"description": "True for the generation the DID document currently advertises."
|
|
126
|
+
},
|
|
127
|
+
"signingKeyId": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"minLength": 1,
|
|
130
|
+
"description": "Verification-method id of the generation's signing key, as the DID document names it. Public; never key material."
|
|
131
|
+
},
|
|
132
|
+
"keyAgreementKeyId": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"minLength": 1
|
|
135
|
+
},
|
|
136
|
+
"mediatorDid": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"description": "The mediator the generation was reached through. Absent for one reached without a mediator."
|
|
139
|
+
},
|
|
140
|
+
"transports": {
|
|
141
|
+
"type": "object",
|
|
142
|
+
"additionalProperties": false,
|
|
143
|
+
"required": [
|
|
144
|
+
"tsp",
|
|
145
|
+
"didcomm"
|
|
146
|
+
],
|
|
147
|
+
"properties": {
|
|
148
|
+
"tsp": {
|
|
149
|
+
"type": "boolean"
|
|
150
|
+
},
|
|
151
|
+
"didcomm": {
|
|
152
|
+
"type": "boolean"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"createdAt": {
|
|
157
|
+
"type": "string",
|
|
158
|
+
"format": "date-time"
|
|
159
|
+
},
|
|
160
|
+
"retiredAt": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
"format": "date-time",
|
|
163
|
+
"description": "When the generation stopped being current. Absent on the current one."
|
|
164
|
+
},
|
|
165
|
+
"expiresAt": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"format": "date-time",
|
|
168
|
+
"description": "When the service stops honouring it and drops its key material. Absent on the current one."
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"rotationGraceSeconds": {
|
|
174
|
+
"type": "integer",
|
|
175
|
+
"minimum": 0,
|
|
176
|
+
"description": "How long a generation superseded now would keep being honoured."
|
|
177
|
+
},
|
|
178
|
+
"ext": {
|
|
179
|
+
"$ref": "#/$defs/Ext"
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"Ext": {
|
|
184
|
+
"title": "Ext",
|
|
185
|
+
"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.",
|
|
186
|
+
"type": "object",
|
|
187
|
+
"minProperties": 1,
|
|
188
|
+
"additionalProperties": true,
|
|
189
|
+
"propertyNames": {
|
|
190
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
} as const;
|
|
195
|
+
|
|
196
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
197
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
198
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
199
|
+
"$ref": "#/$defs/Response",
|
|
200
|
+
"$defs": {
|
|
201
|
+
"Response": {
|
|
202
|
+
"$anchor": "response",
|
|
203
|
+
"title": "Identity List — response payload",
|
|
204
|
+
"type": "object",
|
|
205
|
+
"additionalProperties": false,
|
|
206
|
+
"required": [
|
|
207
|
+
"generations",
|
|
208
|
+
"rotationGraceSeconds"
|
|
209
|
+
],
|
|
210
|
+
"properties": {
|
|
211
|
+
"generations": {
|
|
212
|
+
"type": "array",
|
|
213
|
+
"description": "Every generation the service still honours, newest first. Exactly one is current. Empty when the service holds no rotating identity.",
|
|
214
|
+
"items": {
|
|
215
|
+
"type": "object",
|
|
216
|
+
"additionalProperties": false,
|
|
217
|
+
"required": [
|
|
218
|
+
"generationId",
|
|
219
|
+
"did",
|
|
220
|
+
"current",
|
|
221
|
+
"signingKeyId",
|
|
222
|
+
"keyAgreementKeyId",
|
|
223
|
+
"transports",
|
|
224
|
+
"createdAt"
|
|
225
|
+
],
|
|
226
|
+
"properties": {
|
|
227
|
+
"generationId": {
|
|
228
|
+
"type": "integer",
|
|
229
|
+
"minimum": 0
|
|
230
|
+
},
|
|
231
|
+
"did": {
|
|
232
|
+
"type": "string",
|
|
233
|
+
"minLength": 1
|
|
234
|
+
},
|
|
235
|
+
"current": {
|
|
236
|
+
"type": "boolean",
|
|
237
|
+
"description": "True for the generation the DID document currently advertises."
|
|
238
|
+
},
|
|
239
|
+
"signingKeyId": {
|
|
240
|
+
"type": "string",
|
|
241
|
+
"minLength": 1,
|
|
242
|
+
"description": "Verification-method id of the generation's signing key, as the DID document names it. Public; never key material."
|
|
243
|
+
},
|
|
244
|
+
"keyAgreementKeyId": {
|
|
245
|
+
"type": "string",
|
|
246
|
+
"minLength": 1
|
|
247
|
+
},
|
|
248
|
+
"mediatorDid": {
|
|
249
|
+
"type": "string",
|
|
250
|
+
"description": "The mediator the generation was reached through. Absent for one reached without a mediator."
|
|
251
|
+
},
|
|
252
|
+
"transports": {
|
|
253
|
+
"type": "object",
|
|
254
|
+
"additionalProperties": false,
|
|
255
|
+
"required": [
|
|
256
|
+
"tsp",
|
|
257
|
+
"didcomm"
|
|
258
|
+
],
|
|
259
|
+
"properties": {
|
|
260
|
+
"tsp": {
|
|
261
|
+
"type": "boolean"
|
|
262
|
+
},
|
|
263
|
+
"didcomm": {
|
|
264
|
+
"type": "boolean"
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
"createdAt": {
|
|
269
|
+
"type": "string",
|
|
270
|
+
"format": "date-time"
|
|
271
|
+
},
|
|
272
|
+
"retiredAt": {
|
|
273
|
+
"type": "string",
|
|
274
|
+
"format": "date-time",
|
|
275
|
+
"description": "When the generation stopped being current. Absent on the current one."
|
|
276
|
+
},
|
|
277
|
+
"expiresAt": {
|
|
278
|
+
"type": "string",
|
|
279
|
+
"format": "date-time",
|
|
280
|
+
"description": "When the service stops honouring it and drops its key material. Absent on the current one."
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"rotationGraceSeconds": {
|
|
286
|
+
"type": "integer",
|
|
287
|
+
"minimum": 0,
|
|
288
|
+
"description": "How long a generation superseded now would keep being honoured."
|
|
289
|
+
},
|
|
290
|
+
"ext": {
|
|
291
|
+
"$ref": "#/$defs/Ext"
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
"Ext": {
|
|
296
|
+
"title": "Ext",
|
|
297
|
+
"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.",
|
|
298
|
+
"type": "object",
|
|
299
|
+
"minProperties": 1,
|
|
300
|
+
"additionalProperties": true,
|
|
301
|
+
"propertyNames": {
|
|
302
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
} as const;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
310
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
311
|
+
* per-specification and cannot be derived from the document alone, and
|
|
312
|
+
* item 2 needs the schema this carries.
|
|
313
|
+
*/
|
|
314
|
+
export const SPEC = {
|
|
315
|
+
typeUri: TYPE_URI,
|
|
316
|
+
isBearer: false,
|
|
317
|
+
isProofRequired: true,
|
|
318
|
+
isRecipientRequired: true,
|
|
319
|
+
isIssuedAtRequired: false,
|
|
320
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
321
|
+
} as const;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
325
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
326
|
+
* parties (§7.3 item 5).
|
|
327
|
+
*/
|
|
328
|
+
export const RESPONSE_SPEC = {
|
|
329
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
330
|
+
isBearer: false,
|
|
331
|
+
isProofRequired: true,
|
|
332
|
+
isRecipientRequired: true,
|
|
333
|
+
isIssuedAtRequired: false,
|
|
334
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
335
|
+
} as const;
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/did-management/identity/retire/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Ext } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export interface IdentityRetirePayload {
|
|
10
|
+
/**
|
|
11
|
+
* The superseded generation to stop honouring now.
|
|
12
|
+
*/
|
|
13
|
+
generationId: number;
|
|
14
|
+
ext?: Ext;
|
|
15
|
+
}
|
|
16
|
+
export interface IdentityRetireResponsePayload {
|
|
17
|
+
generationId: number;
|
|
18
|
+
/**
|
|
19
|
+
* When the generation's key material was dropped from the running service.
|
|
20
|
+
*/
|
|
21
|
+
droppedAt: string;
|
|
22
|
+
ext?: Ext;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
26
|
+
export type { Ext };
|
|
27
|
+
|
|
28
|
+
/** Trust Task type URI. */
|
|
29
|
+
export const TYPE_URI = "https://trusttasks.org/spec/did-management/identity/retire/0.1" as const;
|
|
30
|
+
|
|
31
|
+
/** Stable alias for this specification's request payload shape. */
|
|
32
|
+
export type Payload = IdentityRetirePayload;
|
|
33
|
+
|
|
34
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
35
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/did-management/identity/retire/0.1#response" as const;
|
|
36
|
+
|
|
37
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
38
|
+
export type Response = IdentityRetireResponsePayload;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* This specification's payload schema, as a value.
|
|
42
|
+
*
|
|
43
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
44
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
45
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
46
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
47
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
48
|
+
*/
|
|
49
|
+
export const PAYLOAD_SCHEMA = {
|
|
50
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
51
|
+
"$id": "https://trusttasks.org/spec/did-management/identity/retire/0.1",
|
|
52
|
+
"title": "Identity Retire — payload",
|
|
53
|
+
"type": "object",
|
|
54
|
+
"additionalProperties": false,
|
|
55
|
+
"required": [
|
|
56
|
+
"generationId"
|
|
57
|
+
],
|
|
58
|
+
"properties": {
|
|
59
|
+
"generationId": {
|
|
60
|
+
"type": "integer",
|
|
61
|
+
"minimum": 0,
|
|
62
|
+
"description": "The superseded generation to stop honouring now."
|
|
63
|
+
},
|
|
64
|
+
"ext": {
|
|
65
|
+
"$ref": "#/$defs/Ext"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"$defs": {
|
|
69
|
+
"Response": {
|
|
70
|
+
"$anchor": "response",
|
|
71
|
+
"title": "Identity Retire — response payload",
|
|
72
|
+
"type": "object",
|
|
73
|
+
"additionalProperties": false,
|
|
74
|
+
"required": [
|
|
75
|
+
"generationId",
|
|
76
|
+
"droppedAt"
|
|
77
|
+
],
|
|
78
|
+
"properties": {
|
|
79
|
+
"generationId": {
|
|
80
|
+
"type": "integer",
|
|
81
|
+
"minimum": 0
|
|
82
|
+
},
|
|
83
|
+
"droppedAt": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"format": "date-time",
|
|
86
|
+
"description": "When the generation's key material was dropped from the running service."
|
|
87
|
+
},
|
|
88
|
+
"ext": {
|
|
89
|
+
"$ref": "#/$defs/Ext"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"Ext": {
|
|
94
|
+
"title": "Ext",
|
|
95
|
+
"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.",
|
|
96
|
+
"type": "object",
|
|
97
|
+
"minProperties": 1,
|
|
98
|
+
"additionalProperties": true,
|
|
99
|
+
"propertyNames": {
|
|
100
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
} as const;
|
|
105
|
+
|
|
106
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
107
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
108
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
109
|
+
"$ref": "#/$defs/Response",
|
|
110
|
+
"$defs": {
|
|
111
|
+
"Response": {
|
|
112
|
+
"$anchor": "response",
|
|
113
|
+
"title": "Identity Retire — response payload",
|
|
114
|
+
"type": "object",
|
|
115
|
+
"additionalProperties": false,
|
|
116
|
+
"required": [
|
|
117
|
+
"generationId",
|
|
118
|
+
"droppedAt"
|
|
119
|
+
],
|
|
120
|
+
"properties": {
|
|
121
|
+
"generationId": {
|
|
122
|
+
"type": "integer",
|
|
123
|
+
"minimum": 0
|
|
124
|
+
},
|
|
125
|
+
"droppedAt": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"format": "date-time",
|
|
128
|
+
"description": "When the generation's key material was dropped from the running service."
|
|
129
|
+
},
|
|
130
|
+
"ext": {
|
|
131
|
+
"$ref": "#/$defs/Ext"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"Ext": {
|
|
136
|
+
"title": "Ext",
|
|
137
|
+
"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.",
|
|
138
|
+
"type": "object",
|
|
139
|
+
"minProperties": 1,
|
|
140
|
+
"additionalProperties": true,
|
|
141
|
+
"propertyNames": {
|
|
142
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
} as const;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
150
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
151
|
+
* per-specification and cannot be derived from the document alone, and
|
|
152
|
+
* item 2 needs the schema this carries.
|
|
153
|
+
*/
|
|
154
|
+
export const SPEC = {
|
|
155
|
+
typeUri: TYPE_URI,
|
|
156
|
+
isBearer: false,
|
|
157
|
+
isProofRequired: true,
|
|
158
|
+
isRecipientRequired: true,
|
|
159
|
+
isIssuedAtRequired: true,
|
|
160
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
161
|
+
} as const;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
165
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
166
|
+
* parties (§7.3 item 5).
|
|
167
|
+
*/
|
|
168
|
+
export const RESPONSE_SPEC = {
|
|
169
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
170
|
+
isBearer: false,
|
|
171
|
+
isProofRequired: true,
|
|
172
|
+
isRecipientRequired: true,
|
|
173
|
+
isIssuedAtRequired: true,
|
|
174
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
175
|
+
} as const;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Source: specs/did-management/registry/admin-register/0.1/payload.schema.json
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import type { Ext, ServiceInstance } from "../../../../_shared/components.js";
|
|
6
|
+
import type { Ext, ServiceInstance_DidManagementV0_1 as ServiceInstance } from "../../../../_shared/components.js";
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
export interface RegistryAdminRegisterPayload {
|