@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,287 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/auth/step-up/start/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Ext } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export interface AuthStepUpStartPayload {
|
|
10
|
+
/**
|
|
11
|
+
* The relying-party session to elevate.
|
|
12
|
+
*/
|
|
13
|
+
sessionId: string;
|
|
14
|
+
/**
|
|
15
|
+
* The assurance level the holder wants the session raised to. Absent means the relying party's own next level above the session's current one.
|
|
16
|
+
*/
|
|
17
|
+
targetAcr?: string;
|
|
18
|
+
ext?: Ext;
|
|
19
|
+
}
|
|
20
|
+
export interface AuthStepUpStartResponsePayload {
|
|
21
|
+
/**
|
|
22
|
+
* A complete, signed auth/step-up/approve-request/0.3 document for this session: issuer the relying party, recipient the approver. The approver verifies it on its own terms; the framework-level envelope members are modelled here so none are lost on receipt, but `payload` and `proof` are carried opaque (unpacked and re-validated by that spec, not by this one) so the proof survives.
|
|
23
|
+
*/
|
|
24
|
+
approveRequest: {
|
|
25
|
+
id: string;
|
|
26
|
+
type: "https://trusttasks.org/spec/auth/step-up/approve-request/0.3";
|
|
27
|
+
threadId?: string;
|
|
28
|
+
issuer: string;
|
|
29
|
+
recipient: string;
|
|
30
|
+
issuedAt?: string;
|
|
31
|
+
expiresAt?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The auth/step-up/approve-request/0.3 payload, opaque here — see that spec for its shape.
|
|
34
|
+
*/
|
|
35
|
+
payload: {
|
|
36
|
+
[k: string]: unknown | undefined;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* A W3C Data Integrity proof (SPEC §4.7), opaque here — the approver verifies it on its own terms.
|
|
40
|
+
*/
|
|
41
|
+
proof: {};
|
|
42
|
+
ext?: Ext;
|
|
43
|
+
};
|
|
44
|
+
ext?: Ext;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
48
|
+
export type { Ext };
|
|
49
|
+
|
|
50
|
+
/** Trust Task type URI. */
|
|
51
|
+
export const TYPE_URI = "https://trusttasks.org/spec/auth/step-up/start/0.1" as const;
|
|
52
|
+
|
|
53
|
+
/** Stable alias for this specification's request payload shape. */
|
|
54
|
+
export type Payload = AuthStepUpStartPayload;
|
|
55
|
+
|
|
56
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
57
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/auth/step-up/start/0.1#response" as const;
|
|
58
|
+
|
|
59
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
60
|
+
export type Response = AuthStepUpStartResponsePayload;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* This specification's payload schema, as a value.
|
|
64
|
+
*
|
|
65
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
66
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
67
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
68
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
69
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
70
|
+
*/
|
|
71
|
+
export const PAYLOAD_SCHEMA = {
|
|
72
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
73
|
+
"$id": "https://trusttasks.org/spec/auth/step-up/start/0.1",
|
|
74
|
+
"title": "Auth Step-up Start — payload",
|
|
75
|
+
"type": "object",
|
|
76
|
+
"additionalProperties": false,
|
|
77
|
+
"required": [
|
|
78
|
+
"sessionId"
|
|
79
|
+
],
|
|
80
|
+
"properties": {
|
|
81
|
+
"sessionId": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"minLength": 1,
|
|
84
|
+
"maxLength": 256,
|
|
85
|
+
"description": "The relying-party session to elevate."
|
|
86
|
+
},
|
|
87
|
+
"targetAcr": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"minLength": 1,
|
|
90
|
+
"description": "The assurance level the holder wants the session raised to. Absent means the relying party's own next level above the session's current one."
|
|
91
|
+
},
|
|
92
|
+
"ext": {
|
|
93
|
+
"$ref": "#/$defs/Ext"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"$defs": {
|
|
97
|
+
"Response": {
|
|
98
|
+
"$anchor": "response",
|
|
99
|
+
"title": "Auth Step-up Start — response payload",
|
|
100
|
+
"type": "object",
|
|
101
|
+
"additionalProperties": false,
|
|
102
|
+
"required": [
|
|
103
|
+
"approveRequest"
|
|
104
|
+
],
|
|
105
|
+
"properties": {
|
|
106
|
+
"approveRequest": {
|
|
107
|
+
"type": "object",
|
|
108
|
+
"additionalProperties": false,
|
|
109
|
+
"description": "A complete, signed auth/step-up/approve-request/0.3 document for this session: issuer the relying party, recipient the approver. The approver verifies it on its own terms; the framework-level envelope members are modelled here so none are lost on receipt, but `payload` and `proof` are carried opaque (unpacked and re-validated by that spec, not by this one) so the proof survives.",
|
|
110
|
+
"required": [
|
|
111
|
+
"id",
|
|
112
|
+
"type",
|
|
113
|
+
"issuer",
|
|
114
|
+
"recipient",
|
|
115
|
+
"payload",
|
|
116
|
+
"proof"
|
|
117
|
+
],
|
|
118
|
+
"properties": {
|
|
119
|
+
"id": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"minLength": 1
|
|
122
|
+
},
|
|
123
|
+
"type": {
|
|
124
|
+
"const": "https://trusttasks.org/spec/auth/step-up/approve-request/0.3"
|
|
125
|
+
},
|
|
126
|
+
"threadId": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"minLength": 1
|
|
129
|
+
},
|
|
130
|
+
"issuer": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"minLength": 1
|
|
133
|
+
},
|
|
134
|
+
"recipient": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"minLength": 1
|
|
137
|
+
},
|
|
138
|
+
"issuedAt": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"format": "date-time"
|
|
141
|
+
},
|
|
142
|
+
"expiresAt": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"format": "date-time"
|
|
145
|
+
},
|
|
146
|
+
"payload": {
|
|
147
|
+
"description": "The auth/step-up/approve-request/0.3 payload, opaque here — see that spec for its shape."
|
|
148
|
+
},
|
|
149
|
+
"proof": {
|
|
150
|
+
"type": "object",
|
|
151
|
+
"description": "A W3C Data Integrity proof (SPEC §4.7), opaque here — the approver verifies it on its own terms."
|
|
152
|
+
},
|
|
153
|
+
"ext": {
|
|
154
|
+
"$ref": "#/$defs/Ext"
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"ext": {
|
|
159
|
+
"$ref": "#/$defs/Ext"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"Ext": {
|
|
164
|
+
"title": "Ext",
|
|
165
|
+
"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.",
|
|
166
|
+
"type": "object",
|
|
167
|
+
"minProperties": 1,
|
|
168
|
+
"additionalProperties": true,
|
|
169
|
+
"propertyNames": {
|
|
170
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
} as const;
|
|
175
|
+
|
|
176
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
177
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
178
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
179
|
+
"$ref": "#/$defs/Response",
|
|
180
|
+
"$defs": {
|
|
181
|
+
"Response": {
|
|
182
|
+
"$anchor": "response",
|
|
183
|
+
"title": "Auth Step-up Start — response payload",
|
|
184
|
+
"type": "object",
|
|
185
|
+
"additionalProperties": false,
|
|
186
|
+
"required": [
|
|
187
|
+
"approveRequest"
|
|
188
|
+
],
|
|
189
|
+
"properties": {
|
|
190
|
+
"approveRequest": {
|
|
191
|
+
"type": "object",
|
|
192
|
+
"additionalProperties": false,
|
|
193
|
+
"description": "A complete, signed auth/step-up/approve-request/0.3 document for this session: issuer the relying party, recipient the approver. The approver verifies it on its own terms; the framework-level envelope members are modelled here so none are lost on receipt, but `payload` and `proof` are carried opaque (unpacked and re-validated by that spec, not by this one) so the proof survives.",
|
|
194
|
+
"required": [
|
|
195
|
+
"id",
|
|
196
|
+
"type",
|
|
197
|
+
"issuer",
|
|
198
|
+
"recipient",
|
|
199
|
+
"payload",
|
|
200
|
+
"proof"
|
|
201
|
+
],
|
|
202
|
+
"properties": {
|
|
203
|
+
"id": {
|
|
204
|
+
"type": "string",
|
|
205
|
+
"minLength": 1
|
|
206
|
+
},
|
|
207
|
+
"type": {
|
|
208
|
+
"const": "https://trusttasks.org/spec/auth/step-up/approve-request/0.3"
|
|
209
|
+
},
|
|
210
|
+
"threadId": {
|
|
211
|
+
"type": "string",
|
|
212
|
+
"minLength": 1
|
|
213
|
+
},
|
|
214
|
+
"issuer": {
|
|
215
|
+
"type": "string",
|
|
216
|
+
"minLength": 1
|
|
217
|
+
},
|
|
218
|
+
"recipient": {
|
|
219
|
+
"type": "string",
|
|
220
|
+
"minLength": 1
|
|
221
|
+
},
|
|
222
|
+
"issuedAt": {
|
|
223
|
+
"type": "string",
|
|
224
|
+
"format": "date-time"
|
|
225
|
+
},
|
|
226
|
+
"expiresAt": {
|
|
227
|
+
"type": "string",
|
|
228
|
+
"format": "date-time"
|
|
229
|
+
},
|
|
230
|
+
"payload": {
|
|
231
|
+
"description": "The auth/step-up/approve-request/0.3 payload, opaque here — see that spec for its shape."
|
|
232
|
+
},
|
|
233
|
+
"proof": {
|
|
234
|
+
"type": "object",
|
|
235
|
+
"description": "A W3C Data Integrity proof (SPEC §4.7), opaque here — the approver verifies it on its own terms."
|
|
236
|
+
},
|
|
237
|
+
"ext": {
|
|
238
|
+
"$ref": "#/$defs/Ext"
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"ext": {
|
|
243
|
+
"$ref": "#/$defs/Ext"
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"Ext": {
|
|
248
|
+
"title": "Ext",
|
|
249
|
+
"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.",
|
|
250
|
+
"type": "object",
|
|
251
|
+
"minProperties": 1,
|
|
252
|
+
"additionalProperties": true,
|
|
253
|
+
"propertyNames": {
|
|
254
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
} as const;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
262
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
263
|
+
* per-specification and cannot be derived from the document alone, and
|
|
264
|
+
* item 2 needs the schema this carries.
|
|
265
|
+
*/
|
|
266
|
+
export const SPEC = {
|
|
267
|
+
typeUri: TYPE_URI,
|
|
268
|
+
isBearer: false,
|
|
269
|
+
isProofRequired: true,
|
|
270
|
+
isRecipientRequired: true,
|
|
271
|
+
isIssuedAtRequired: true,
|
|
272
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
273
|
+
} as const;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
277
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
278
|
+
* parties (§7.3 item 5).
|
|
279
|
+
*/
|
|
280
|
+
export const RESPONSE_SPEC = {
|
|
281
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
282
|
+
isBearer: false,
|
|
283
|
+
isProofRequired: true,
|
|
284
|
+
isRecipientRequired: true,
|
|
285
|
+
isIssuedAtRequired: true,
|
|
286
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
287
|
+
} as const;
|
|
@@ -11,4 +11,4 @@ export interface ServiceInstanceSharedDefinitionForTheDidManagementRegistrySpecF
|
|
|
11
11
|
* The definitions this shared schema publishes, hoisted to one declaration each.
|
|
12
12
|
* See "../../../_shared/components.js".
|
|
13
13
|
*/
|
|
14
|
-
export type { ServiceInstance } from "../../../_shared/components.js";
|
|
14
|
+
export type { ServiceInstance_DidManagementV0_1 as ServiceInstance } from "../../../_shared/components.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/did-management/_shared/0.2/metrics-snapshot.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A point-in-time read of a service's own operational counters, gauges and histograms — the shape a Trust Task returns in place of a Prometheus `/metrics` endpoint. Deliberately generic: any service in this ecosystem can reuse it for its own `server/metrics`-shaped task, not only a DID hosting service. Not itself a Trust Task specification (the `_shared` folder is skipped by the registry build and the codegen).
|
|
8
|
+
*/
|
|
9
|
+
export interface MetricsSnapshotSharedDefinitionForAServiceSOperationalMetrics {
|
|
10
|
+
[k: string]: unknown | undefined;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The definitions this shared schema publishes, hoisted to one declaration each.
|
|
15
|
+
* See "../../../_shared/components.js".
|
|
16
|
+
*/
|
|
17
|
+
export type { Histogram, HistogramBucket, Metric, MetricsSnapshot } from "../../../_shared/components.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/did-management/_shared/0.2/service-instance.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The control plane's record of one registered service instance, as an administrator reads it. 0.2 adds what an operator needs to judge an instance's health and reachability — its service type, status, the transports it advertises and was last seen on, and the DID methods it can host. Not itself a Trust Task specification (the `_shared` folder is skipped by the registry build and the codegen).
|
|
8
|
+
*/
|
|
9
|
+
export interface ServiceInstanceSharedDefinitionForTheDidManagementRegistryReads {
|
|
10
|
+
[k: string]: unknown | undefined;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The definitions this shared schema publishes, hoisted to one declaration each.
|
|
15
|
+
* See "../../../_shared/components.js".
|
|
16
|
+
*/
|
|
17
|
+
export type { ServiceInstance_DidManagementV0_2 as ServiceInstance, TransportObservation } from "../../../_shared/components.js";
|
|
@@ -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;
|