@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,459 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/auth/passkey/enroll/invite/update/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { Ext, InviteSummary_AuthV0_1 as InviteSummary } from "../../../../../../_shared/components.js";
|
|
6
|
+
export type AuthPasskeyInviteUpdatePayload = {
|
|
7
|
+
inviteId: string;
|
|
8
|
+
/**
|
|
9
|
+
* The role the invitee will receive. Absent leaves the role unchanged.
|
|
10
|
+
*/
|
|
11
|
+
role?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The new absolute expiry. Absent leaves the expiry unchanged unless extendBy is given. Mutually exclusive with extendBy.
|
|
14
|
+
*/
|
|
15
|
+
expiresAt?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Seconds to add to the time of processing to form the new expiry. Absent leaves the expiry unchanged unless expiresAt is given. Mutually exclusive with expiresAt.
|
|
18
|
+
*/
|
|
19
|
+
extendBy?: number;
|
|
20
|
+
ext?: Ext;
|
|
21
|
+
} & {
|
|
22
|
+
[k: string]: unknown | undefined;
|
|
23
|
+
};
|
|
24
|
+
export interface AuthPasskeyInviteUpdateResponsePayload {
|
|
25
|
+
invite: InviteSummary;
|
|
26
|
+
ext?: Ext;
|
|
27
|
+
}
|
|
28
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
29
|
+
export type { Ext, InviteSummary };
|
|
30
|
+
/** Trust Task type URI. */
|
|
31
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/auth/passkey/enroll/invite/update/0.1";
|
|
32
|
+
/** Stable alias for this specification's request payload shape. */
|
|
33
|
+
export type Payload = AuthPasskeyInviteUpdatePayload;
|
|
34
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
35
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/auth/passkey/enroll/invite/update/0.1#response";
|
|
36
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
37
|
+
export type Response = AuthPasskeyInviteUpdateResponsePayload;
|
|
38
|
+
/**
|
|
39
|
+
* This specification's payload schema, as a value.
|
|
40
|
+
*
|
|
41
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
42
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
43
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
44
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
45
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
46
|
+
*/
|
|
47
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
48
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
49
|
+
readonly $id: "https://trusttasks.org/spec/auth/passkey/enroll/invite/update/0.1";
|
|
50
|
+
readonly title: "Auth Passkey Invite Update — payload";
|
|
51
|
+
readonly type: "object";
|
|
52
|
+
readonly additionalProperties: false;
|
|
53
|
+
readonly required: readonly ["inviteId"];
|
|
54
|
+
readonly oneOf: readonly [{
|
|
55
|
+
readonly required: readonly ["role"];
|
|
56
|
+
readonly not: {
|
|
57
|
+
readonly anyOf: readonly [{
|
|
58
|
+
readonly required: readonly ["expiresAt"];
|
|
59
|
+
}, {
|
|
60
|
+
readonly required: readonly ["extendBy"];
|
|
61
|
+
}];
|
|
62
|
+
};
|
|
63
|
+
}, {
|
|
64
|
+
readonly required: readonly ["expiresAt"];
|
|
65
|
+
readonly not: {
|
|
66
|
+
readonly required: readonly ["extendBy"];
|
|
67
|
+
};
|
|
68
|
+
}, {
|
|
69
|
+
readonly required: readonly ["extendBy"];
|
|
70
|
+
readonly not: {
|
|
71
|
+
readonly required: readonly ["expiresAt"];
|
|
72
|
+
};
|
|
73
|
+
}];
|
|
74
|
+
readonly properties: {
|
|
75
|
+
readonly inviteId: {
|
|
76
|
+
readonly type: "string";
|
|
77
|
+
readonly minLength: 1;
|
|
78
|
+
readonly maxLength: 128;
|
|
79
|
+
};
|
|
80
|
+
readonly role: {
|
|
81
|
+
readonly type: "string";
|
|
82
|
+
readonly minLength: 1;
|
|
83
|
+
readonly description: "The role the invitee will receive. Absent leaves the role unchanged.";
|
|
84
|
+
};
|
|
85
|
+
readonly expiresAt: {
|
|
86
|
+
readonly type: "string";
|
|
87
|
+
readonly format: "date-time";
|
|
88
|
+
readonly description: "The new absolute expiry. Absent leaves the expiry unchanged unless extendBy is given. Mutually exclusive with extendBy.";
|
|
89
|
+
};
|
|
90
|
+
readonly extendBy: {
|
|
91
|
+
readonly type: "integer";
|
|
92
|
+
readonly minimum: 1;
|
|
93
|
+
readonly description: "Seconds to add to the time of processing to form the new expiry. Absent leaves the expiry unchanged unless expiresAt is given. Mutually exclusive with expiresAt.";
|
|
94
|
+
};
|
|
95
|
+
readonly ext: {
|
|
96
|
+
readonly $ref: "#/$defs/Ext";
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
readonly $defs: {
|
|
100
|
+
readonly Response: {
|
|
101
|
+
readonly $anchor: "response";
|
|
102
|
+
readonly title: "Auth Passkey Invite Update — response payload";
|
|
103
|
+
readonly type: "object";
|
|
104
|
+
readonly additionalProperties: false;
|
|
105
|
+
readonly required: readonly ["invite"];
|
|
106
|
+
readonly properties: {
|
|
107
|
+
readonly invite: {
|
|
108
|
+
readonly $ref: "#/$defs/InviteSummary";
|
|
109
|
+
};
|
|
110
|
+
readonly ext: {
|
|
111
|
+
readonly $ref: "#/$defs/Ext";
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
readonly Ext: {
|
|
116
|
+
readonly title: "Ext";
|
|
117
|
+
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.";
|
|
118
|
+
readonly type: "object";
|
|
119
|
+
readonly minProperties: 1;
|
|
120
|
+
readonly additionalProperties: true;
|
|
121
|
+
readonly propertyNames: {
|
|
122
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
readonly InviteSummary: {
|
|
126
|
+
readonly $anchor: "inviteSummary";
|
|
127
|
+
readonly title: "InviteSummary";
|
|
128
|
+
readonly type: "object";
|
|
129
|
+
readonly additionalProperties: false;
|
|
130
|
+
readonly required: readonly ["inviteId", "subject", "purpose", "createdAt", "expiresAt", "expired"];
|
|
131
|
+
readonly properties: {
|
|
132
|
+
readonly inviteId: {
|
|
133
|
+
readonly type: "string";
|
|
134
|
+
readonly minLength: 1;
|
|
135
|
+
readonly maxLength: 128;
|
|
136
|
+
readonly description: "Consumer-chosen opaque handle for the invite. It is NOT the invite token and MUST NOT be derivable into it; knowing it lets an administrator manage the invite, never redeem it.";
|
|
137
|
+
};
|
|
138
|
+
readonly subject: {
|
|
139
|
+
readonly type: "string";
|
|
140
|
+
readonly minLength: 1;
|
|
141
|
+
readonly description: "The VID the invite binds a passkey to.";
|
|
142
|
+
};
|
|
143
|
+
readonly purpose: {
|
|
144
|
+
readonly type: "string";
|
|
145
|
+
readonly enum: readonly ["session", "stepUp"];
|
|
146
|
+
readonly description: "What the redeemed credential may authenticate, as in auth/passkey/enroll/invite.";
|
|
147
|
+
};
|
|
148
|
+
readonly role: {
|
|
149
|
+
readonly type: "string";
|
|
150
|
+
readonly description: "The role the invitee receives on redemption. Absent when the consumer applies its default role, and always absent for purpose stepUp.";
|
|
151
|
+
};
|
|
152
|
+
readonly createdAt: {
|
|
153
|
+
readonly type: "string";
|
|
154
|
+
readonly format: "date-time";
|
|
155
|
+
};
|
|
156
|
+
readonly expiresAt: {
|
|
157
|
+
readonly type: "string";
|
|
158
|
+
readonly format: "date-time";
|
|
159
|
+
};
|
|
160
|
+
readonly expired: {
|
|
161
|
+
readonly type: "boolean";
|
|
162
|
+
readonly description: "True when expiresAt has passed. An expired invite can no longer be redeemed; it is listed until the consumer's cleanup removes it.";
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
169
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
170
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
171
|
+
readonly $ref: "#/$defs/Response";
|
|
172
|
+
readonly $defs: {
|
|
173
|
+
readonly Response: {
|
|
174
|
+
readonly $anchor: "response";
|
|
175
|
+
readonly title: "Auth Passkey Invite Update — response payload";
|
|
176
|
+
readonly type: "object";
|
|
177
|
+
readonly additionalProperties: false;
|
|
178
|
+
readonly required: readonly ["invite"];
|
|
179
|
+
readonly properties: {
|
|
180
|
+
readonly invite: {
|
|
181
|
+
readonly $ref: "#/$defs/InviteSummary";
|
|
182
|
+
};
|
|
183
|
+
readonly ext: {
|
|
184
|
+
readonly $ref: "#/$defs/Ext";
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
readonly Ext: {
|
|
189
|
+
readonly title: "Ext";
|
|
190
|
+
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.";
|
|
191
|
+
readonly type: "object";
|
|
192
|
+
readonly minProperties: 1;
|
|
193
|
+
readonly additionalProperties: true;
|
|
194
|
+
readonly propertyNames: {
|
|
195
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
readonly InviteSummary: {
|
|
199
|
+
readonly $anchor: "inviteSummary";
|
|
200
|
+
readonly title: "InviteSummary";
|
|
201
|
+
readonly type: "object";
|
|
202
|
+
readonly additionalProperties: false;
|
|
203
|
+
readonly required: readonly ["inviteId", "subject", "purpose", "createdAt", "expiresAt", "expired"];
|
|
204
|
+
readonly properties: {
|
|
205
|
+
readonly inviteId: {
|
|
206
|
+
readonly type: "string";
|
|
207
|
+
readonly minLength: 1;
|
|
208
|
+
readonly maxLength: 128;
|
|
209
|
+
readonly description: "Consumer-chosen opaque handle for the invite. It is NOT the invite token and MUST NOT be derivable into it; knowing it lets an administrator manage the invite, never redeem it.";
|
|
210
|
+
};
|
|
211
|
+
readonly subject: {
|
|
212
|
+
readonly type: "string";
|
|
213
|
+
readonly minLength: 1;
|
|
214
|
+
readonly description: "The VID the invite binds a passkey to.";
|
|
215
|
+
};
|
|
216
|
+
readonly purpose: {
|
|
217
|
+
readonly type: "string";
|
|
218
|
+
readonly enum: readonly ["session", "stepUp"];
|
|
219
|
+
readonly description: "What the redeemed credential may authenticate, as in auth/passkey/enroll/invite.";
|
|
220
|
+
};
|
|
221
|
+
readonly role: {
|
|
222
|
+
readonly type: "string";
|
|
223
|
+
readonly description: "The role the invitee receives on redemption. Absent when the consumer applies its default role, and always absent for purpose stepUp.";
|
|
224
|
+
};
|
|
225
|
+
readonly createdAt: {
|
|
226
|
+
readonly type: "string";
|
|
227
|
+
readonly format: "date-time";
|
|
228
|
+
};
|
|
229
|
+
readonly expiresAt: {
|
|
230
|
+
readonly type: "string";
|
|
231
|
+
readonly format: "date-time";
|
|
232
|
+
};
|
|
233
|
+
readonly expired: {
|
|
234
|
+
readonly type: "boolean";
|
|
235
|
+
readonly description: "True when expiresAt has passed. An expired invite can no longer be redeemed; it is listed until the consumer's cleanup removes it.";
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
/**
|
|
242
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
243
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
244
|
+
* per-specification and cannot be derived from the document alone, and
|
|
245
|
+
* item 2 needs the schema this carries.
|
|
246
|
+
*/
|
|
247
|
+
export declare const SPEC: {
|
|
248
|
+
readonly typeUri: "https://trusttasks.org/spec/auth/passkey/enroll/invite/update/0.1";
|
|
249
|
+
readonly isBearer: false;
|
|
250
|
+
readonly isProofRequired: true;
|
|
251
|
+
readonly isRecipientRequired: true;
|
|
252
|
+
readonly isIssuedAtRequired: true;
|
|
253
|
+
readonly payloadSchema: {
|
|
254
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
255
|
+
readonly $id: "https://trusttasks.org/spec/auth/passkey/enroll/invite/update/0.1";
|
|
256
|
+
readonly title: "Auth Passkey Invite Update — payload";
|
|
257
|
+
readonly type: "object";
|
|
258
|
+
readonly additionalProperties: false;
|
|
259
|
+
readonly required: readonly ["inviteId"];
|
|
260
|
+
readonly oneOf: readonly [{
|
|
261
|
+
readonly required: readonly ["role"];
|
|
262
|
+
readonly not: {
|
|
263
|
+
readonly anyOf: readonly [{
|
|
264
|
+
readonly required: readonly ["expiresAt"];
|
|
265
|
+
}, {
|
|
266
|
+
readonly required: readonly ["extendBy"];
|
|
267
|
+
}];
|
|
268
|
+
};
|
|
269
|
+
}, {
|
|
270
|
+
readonly required: readonly ["expiresAt"];
|
|
271
|
+
readonly not: {
|
|
272
|
+
readonly required: readonly ["extendBy"];
|
|
273
|
+
};
|
|
274
|
+
}, {
|
|
275
|
+
readonly required: readonly ["extendBy"];
|
|
276
|
+
readonly not: {
|
|
277
|
+
readonly required: readonly ["expiresAt"];
|
|
278
|
+
};
|
|
279
|
+
}];
|
|
280
|
+
readonly properties: {
|
|
281
|
+
readonly inviteId: {
|
|
282
|
+
readonly type: "string";
|
|
283
|
+
readonly minLength: 1;
|
|
284
|
+
readonly maxLength: 128;
|
|
285
|
+
};
|
|
286
|
+
readonly role: {
|
|
287
|
+
readonly type: "string";
|
|
288
|
+
readonly minLength: 1;
|
|
289
|
+
readonly description: "The role the invitee will receive. Absent leaves the role unchanged.";
|
|
290
|
+
};
|
|
291
|
+
readonly expiresAt: {
|
|
292
|
+
readonly type: "string";
|
|
293
|
+
readonly format: "date-time";
|
|
294
|
+
readonly description: "The new absolute expiry. Absent leaves the expiry unchanged unless extendBy is given. Mutually exclusive with extendBy.";
|
|
295
|
+
};
|
|
296
|
+
readonly extendBy: {
|
|
297
|
+
readonly type: "integer";
|
|
298
|
+
readonly minimum: 1;
|
|
299
|
+
readonly description: "Seconds to add to the time of processing to form the new expiry. Absent leaves the expiry unchanged unless expiresAt is given. Mutually exclusive with expiresAt.";
|
|
300
|
+
};
|
|
301
|
+
readonly ext: {
|
|
302
|
+
readonly $ref: "#/$defs/Ext";
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
readonly $defs: {
|
|
306
|
+
readonly Response: {
|
|
307
|
+
readonly $anchor: "response";
|
|
308
|
+
readonly title: "Auth Passkey Invite Update — response payload";
|
|
309
|
+
readonly type: "object";
|
|
310
|
+
readonly additionalProperties: false;
|
|
311
|
+
readonly required: readonly ["invite"];
|
|
312
|
+
readonly properties: {
|
|
313
|
+
readonly invite: {
|
|
314
|
+
readonly $ref: "#/$defs/InviteSummary";
|
|
315
|
+
};
|
|
316
|
+
readonly ext: {
|
|
317
|
+
readonly $ref: "#/$defs/Ext";
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
readonly Ext: {
|
|
322
|
+
readonly title: "Ext";
|
|
323
|
+
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.";
|
|
324
|
+
readonly type: "object";
|
|
325
|
+
readonly minProperties: 1;
|
|
326
|
+
readonly additionalProperties: true;
|
|
327
|
+
readonly propertyNames: {
|
|
328
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
readonly InviteSummary: {
|
|
332
|
+
readonly $anchor: "inviteSummary";
|
|
333
|
+
readonly title: "InviteSummary";
|
|
334
|
+
readonly type: "object";
|
|
335
|
+
readonly additionalProperties: false;
|
|
336
|
+
readonly required: readonly ["inviteId", "subject", "purpose", "createdAt", "expiresAt", "expired"];
|
|
337
|
+
readonly properties: {
|
|
338
|
+
readonly inviteId: {
|
|
339
|
+
readonly type: "string";
|
|
340
|
+
readonly minLength: 1;
|
|
341
|
+
readonly maxLength: 128;
|
|
342
|
+
readonly description: "Consumer-chosen opaque handle for the invite. It is NOT the invite token and MUST NOT be derivable into it; knowing it lets an administrator manage the invite, never redeem it.";
|
|
343
|
+
};
|
|
344
|
+
readonly subject: {
|
|
345
|
+
readonly type: "string";
|
|
346
|
+
readonly minLength: 1;
|
|
347
|
+
readonly description: "The VID the invite binds a passkey to.";
|
|
348
|
+
};
|
|
349
|
+
readonly purpose: {
|
|
350
|
+
readonly type: "string";
|
|
351
|
+
readonly enum: readonly ["session", "stepUp"];
|
|
352
|
+
readonly description: "What the redeemed credential may authenticate, as in auth/passkey/enroll/invite.";
|
|
353
|
+
};
|
|
354
|
+
readonly role: {
|
|
355
|
+
readonly type: "string";
|
|
356
|
+
readonly description: "The role the invitee receives on redemption. Absent when the consumer applies its default role, and always absent for purpose stepUp.";
|
|
357
|
+
};
|
|
358
|
+
readonly createdAt: {
|
|
359
|
+
readonly type: "string";
|
|
360
|
+
readonly format: "date-time";
|
|
361
|
+
};
|
|
362
|
+
readonly expiresAt: {
|
|
363
|
+
readonly type: "string";
|
|
364
|
+
readonly format: "date-time";
|
|
365
|
+
};
|
|
366
|
+
readonly expired: {
|
|
367
|
+
readonly type: "boolean";
|
|
368
|
+
readonly description: "True when expiresAt has passed. An expired invite can no longer be redeemed; it is listed until the consumer's cleanup removes it.";
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
/**
|
|
376
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
377
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
378
|
+
* parties (§7.3 item 5).
|
|
379
|
+
*/
|
|
380
|
+
export declare const RESPONSE_SPEC: {
|
|
381
|
+
readonly typeUri: "https://trusttasks.org/spec/auth/passkey/enroll/invite/update/0.1#response";
|
|
382
|
+
readonly isBearer: false;
|
|
383
|
+
readonly isProofRequired: true;
|
|
384
|
+
readonly isRecipientRequired: true;
|
|
385
|
+
readonly isIssuedAtRequired: true;
|
|
386
|
+
readonly payloadSchema: {
|
|
387
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
388
|
+
readonly $ref: "#/$defs/Response";
|
|
389
|
+
readonly $defs: {
|
|
390
|
+
readonly Response: {
|
|
391
|
+
readonly $anchor: "response";
|
|
392
|
+
readonly title: "Auth Passkey Invite Update — response payload";
|
|
393
|
+
readonly type: "object";
|
|
394
|
+
readonly additionalProperties: false;
|
|
395
|
+
readonly required: readonly ["invite"];
|
|
396
|
+
readonly properties: {
|
|
397
|
+
readonly invite: {
|
|
398
|
+
readonly $ref: "#/$defs/InviteSummary";
|
|
399
|
+
};
|
|
400
|
+
readonly ext: {
|
|
401
|
+
readonly $ref: "#/$defs/Ext";
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
};
|
|
405
|
+
readonly Ext: {
|
|
406
|
+
readonly title: "Ext";
|
|
407
|
+
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.";
|
|
408
|
+
readonly type: "object";
|
|
409
|
+
readonly minProperties: 1;
|
|
410
|
+
readonly additionalProperties: true;
|
|
411
|
+
readonly propertyNames: {
|
|
412
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
readonly InviteSummary: {
|
|
416
|
+
readonly $anchor: "inviteSummary";
|
|
417
|
+
readonly title: "InviteSummary";
|
|
418
|
+
readonly type: "object";
|
|
419
|
+
readonly additionalProperties: false;
|
|
420
|
+
readonly required: readonly ["inviteId", "subject", "purpose", "createdAt", "expiresAt", "expired"];
|
|
421
|
+
readonly properties: {
|
|
422
|
+
readonly inviteId: {
|
|
423
|
+
readonly type: "string";
|
|
424
|
+
readonly minLength: 1;
|
|
425
|
+
readonly maxLength: 128;
|
|
426
|
+
readonly description: "Consumer-chosen opaque handle for the invite. It is NOT the invite token and MUST NOT be derivable into it; knowing it lets an administrator manage the invite, never redeem it.";
|
|
427
|
+
};
|
|
428
|
+
readonly subject: {
|
|
429
|
+
readonly type: "string";
|
|
430
|
+
readonly minLength: 1;
|
|
431
|
+
readonly description: "The VID the invite binds a passkey to.";
|
|
432
|
+
};
|
|
433
|
+
readonly purpose: {
|
|
434
|
+
readonly type: "string";
|
|
435
|
+
readonly enum: readonly ["session", "stepUp"];
|
|
436
|
+
readonly description: "What the redeemed credential may authenticate, as in auth/passkey/enroll/invite.";
|
|
437
|
+
};
|
|
438
|
+
readonly role: {
|
|
439
|
+
readonly type: "string";
|
|
440
|
+
readonly description: "The role the invitee receives on redemption. Absent when the consumer applies its default role, and always absent for purpose stepUp.";
|
|
441
|
+
};
|
|
442
|
+
readonly createdAt: {
|
|
443
|
+
readonly type: "string";
|
|
444
|
+
readonly format: "date-time";
|
|
445
|
+
};
|
|
446
|
+
readonly expiresAt: {
|
|
447
|
+
readonly type: "string";
|
|
448
|
+
readonly format: "date-time";
|
|
449
|
+
};
|
|
450
|
+
readonly expired: {
|
|
451
|
+
readonly type: "boolean";
|
|
452
|
+
readonly description: "True when expiresAt has passed. An expired invite can no longer be redeemed; it is listed until the consumer's cleanup removes it.";
|
|
453
|
+
};
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../../src/auth/passkey/enroll/invite/update/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,sBAAsB,IAAI,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAG5G,MAAM,MAAM,8BAA8B,GAAG;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX,GAAG;IACF,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,MAAM,WAAW,sCAAsC;IACrD,MAAM,EAAE,aAAa,CAAC;IACtB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,aAAa,EAAE,CAAC;AAEnC,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,mEAA4E,CAAC;AAErG,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,8BAA8B,CAAC;AAErD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,4EAAqF,CAAC;AAEvH,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,sCAAsC,CAAC;AAE9D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2JjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmF1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|