@openvtc/trust-tasks 0.22.6 → 0.22.7
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 +48 -0
- package/dist/_shared/components.d.ts +434 -1
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/acl/_shared/0.1/acl-entry.d.ts +1 -1
- package/dist/acl/_shared/0.1/acl-entry.d.ts.map +1 -1
- package/dist/acl/_shared/0.2/acl-entry.d.ts +22 -0
- package/dist/acl/_shared/0.2/acl-entry.d.ts.map +1 -0
- package/dist/acl/_shared/0.2/acl-entry.js +6 -0
- package/dist/acl/_shared/0.2/acl-entry.js.map +1 -0
- package/dist/acl/change-role/0.1/payload.d.ts +1 -1
- package/dist/acl/change-role/0.1/payload.d.ts.map +1 -1
- package/dist/acl/change-role/0.2/payload.d.ts +1679 -0
- package/dist/acl/change-role/0.2/payload.d.ts.map +1 -0
- package/dist/acl/change-role/0.2/payload.js +955 -0
- package/dist/acl/change-role/0.2/payload.js.map +1 -0
- package/dist/acl/grant/0.1/payload.d.ts +1 -1
- package/dist/acl/grant/0.1/payload.d.ts.map +1 -1
- package/dist/acl/grant/0.2/payload.d.ts +1649 -0
- package/dist/acl/grant/0.2/payload.d.ts.map +1 -0
- package/dist/acl/grant/0.2/payload.js +942 -0
- package/dist/acl/grant/0.2/payload.js.map +1 -0
- package/dist/acl/list/0.1/payload.d.ts +1 -1
- package/dist/acl/list/0.1/payload.d.ts.map +1 -1
- package/dist/acl/list/0.2/payload.d.ts +1853 -0
- package/dist/acl/list/0.2/payload.d.ts.map +1 -0
- package/dist/acl/list/0.2/payload.js +1041 -0
- package/dist/acl/list/0.2/payload.js.map +1 -0
- package/dist/acl/revoke/0.1/payload.d.ts +1 -1
- package/dist/acl/revoke/0.1/payload.d.ts.map +1 -1
- package/dist/acl/revoke/0.2/payload.d.ts +1844 -0
- package/dist/acl/revoke/0.2/payload.d.ts.map +1 -0
- package/dist/acl/revoke/0.2/payload.js +1052 -0
- package/dist/acl/revoke/0.2/payload.js.map +1 -0
- package/dist/acl/show/0.1/payload.d.ts +1 -1
- package/dist/acl/show/0.1/payload.d.ts.map +1 -1
- package/dist/acl/show/0.2/payload.d.ts +1689 -0
- package/dist/acl/show/0.2/payload.d.ts.map +1 -0
- package/dist/acl/show/0.2/payload.js +968 -0
- package/dist/acl/show/0.2/payload.js.map +1 -0
- package/dist/acl/swap-key/0.1/payload.d.ts +1 -1
- package/dist/acl/swap-key/0.1/payload.d.ts.map +1 -1
- package/dist/acl/update/0.1/payload.d.ts +1 -1
- package/dist/acl/update/0.1/payload.d.ts.map +1 -1
- package/dist/acl/update/0.2/payload.d.ts +1784 -0
- package/dist/acl/update/0.2/payload.d.ts.map +1 -0
- package/dist/acl/update/0.2/payload.js +1005 -0
- package/dist/acl/update/0.2/payload.js.map +1 -0
- package/dist/auth/step-up/approve-request/0.4/payload.d.ts +672 -0
- package/dist/auth/step-up/approve-request/0.4/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approve-request/0.4/payload.js +373 -0
- package/dist/auth/step-up/approve-request/0.4/payload.js.map +1 -0
- package/dist/auth/step-up/approve-response/0.6/payload.d.ts +974 -0
- package/dist/auth/step-up/approve-response/0.6/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approve-response/0.6/payload.js +552 -0
- package/dist/auth/step-up/approve-response/0.6/payload.js.map +1 -0
- package/dist/auth/step-up/approver/_shared/0.1/approver.d.ts +16 -0
- package/dist/auth/step-up/approver/_shared/0.1/approver.d.ts.map +1 -0
- package/dist/auth/step-up/approver/_shared/0.1/approver.js +6 -0
- package/dist/auth/step-up/approver/_shared/0.1/approver.js.map +1 -0
- package/dist/auth/step-up/approver/attest/0.1/payload.d.ts +174 -0
- package/dist/auth/step-up/approver/attest/0.1/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approver/attest/0.1/payload.js +97 -0
- package/dist/auth/step-up/approver/attest/0.1/payload.js.map +1 -0
- package/dist/auth/step-up/approver/enroll/0.1/payload.d.ts +503 -0
- package/dist/auth/step-up/approver/enroll/0.1/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approver/enroll/0.1/payload.js +285 -0
- package/dist/auth/step-up/approver/enroll/0.1/payload.js.map +1 -0
- package/dist/auth/step-up/approver/invite/0.1/payload.d.ts +375 -0
- package/dist/auth/step-up/approver/invite/0.1/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approver/invite/0.1/payload.js +200 -0
- package/dist/auth/step-up/approver/invite/0.1/payload.js.map +1 -0
- package/dist/auth/step-up/approver/list/0.1/payload.d.ts +477 -0
- package/dist/auth/step-up/approver/list/0.1/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approver/list/0.1/payload.js +272 -0
- package/dist/auth/step-up/approver/list/0.1/payload.js.map +1 -0
- package/dist/auth/step-up/approver/redeem/finish/0.1/payload.d.ts +512 -0
- package/dist/auth/step-up/approver/redeem/finish/0.1/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approver/redeem/finish/0.1/payload.js +290 -0
- package/dist/auth/step-up/approver/redeem/finish/0.1/payload.js.map +1 -0
- package/dist/auth/step-up/approver/redeem/start/0.1/payload.d.ts +343 -0
- package/dist/auth/step-up/approver/redeem/start/0.1/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approver/redeem/start/0.1/payload.js +187 -0
- package/dist/auth/step-up/approver/redeem/start/0.1/payload.js.map +1 -0
- package/dist/auth/step-up/approver/revoke/0.1/payload.d.ts +534 -0
- package/dist/auth/step-up/approver/revoke/0.1/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approver/revoke/0.1/payload.js +301 -0
- package/dist/auth/step-up/approver/revoke/0.1/payload.js.map +1 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +31 -0
- package/dist/index.js.map +1 -1
- package/dist/task-consent/decision/0.2/payload.d.ts +775 -0
- package/dist/task-consent/decision/0.2/payload.d.ts.map +1 -0
- package/dist/task-consent/decision/0.2/payload.js +450 -0
- package/dist/task-consent/decision/0.2/payload.js.map +1 -0
- package/dist/vtc/admin/actions/_shared/0.1/action.d.ts +24 -0
- package/dist/vtc/admin/actions/_shared/0.1/action.d.ts.map +1 -0
- package/dist/vtc/admin/actions/_shared/0.1/action.js +6 -0
- package/dist/vtc/admin/actions/_shared/0.1/action.js.map +1 -0
- package/dist/vtc/admin/actions/acknowledge/0.1/payload.d.ts +1012 -0
- package/dist/vtc/admin/actions/acknowledge/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/admin/actions/acknowledge/0.1/payload.js +636 -0
- package/dist/vtc/admin/actions/acknowledge/0.1/payload.js.map +1 -0
- package/dist/vtc/admin/actions/cancel/0.1/payload.d.ts +1026 -0
- package/dist/vtc/admin/actions/cancel/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/admin/actions/cancel/0.1/payload.js +641 -0
- package/dist/vtc/admin/actions/cancel/0.1/payload.js.map +1 -0
- package/dist/vtc/admin/actions/list/0.1/payload.d.ts +1200 -0
- package/dist/vtc/admin/actions/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/admin/actions/list/0.1/payload.js +726 -0
- package/dist/vtc/admin/actions/list/0.1/payload.js.map +1 -0
- package/dist/vtc/admin/actions/show/0.1/payload.d.ts +1012 -0
- package/dist/vtc/admin/actions/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/admin/actions/show/0.1/payload.js +636 -0
- package/dist/vtc/admin/actions/show/0.1/payload.js.map +1 -0
- package/dist/vtc/install/claim/finish/0.3/payload.d.ts +379 -0
- package/dist/vtc/install/claim/finish/0.3/payload.d.ts.map +1 -0
- package/dist/vtc/install/claim/finish/0.3/payload.js +205 -0
- package/dist/vtc/install/claim/finish/0.3/payload.js.map +1 -0
- package/dist/vtc/install/claim/start/0.3/payload.d.ts +368 -0
- package/dist/vtc/install/claim/start/0.3/payload.d.ts.map +1 -0
- package/dist/vtc/install/claim/start/0.3/payload.js +201 -0
- package/dist/vtc/install/claim/start/0.3/payload.js.map +1 -0
- package/dist/vtc/members/authority-reduced-notice/0.1/payload.d.ts +208 -0
- package/dist/vtc/members/authority-reduced-notice/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/members/authority-reduced-notice/0.1/payload.js +112 -0
- package/dist/vtc/members/authority-reduced-notice/0.1/payload.js.map +1 -0
- package/dist/vtc/roles/_shared/0.1/role.d.ts +16 -0
- package/dist/vtc/roles/_shared/0.1/role.d.ts.map +1 -0
- package/dist/vtc/roles/_shared/0.1/role.js +6 -0
- package/dist/vtc/roles/_shared/0.1/role.js.map +1 -0
- package/dist/vtc/roles/define/0.1/payload.d.ts +703 -0
- package/dist/vtc/roles/define/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/roles/define/0.1/payload.js +371 -0
- package/dist/vtc/roles/define/0.1/payload.js.map +1 -0
- package/dist/vtc/roles/delete/0.1/payload.d.ts +281 -0
- package/dist/vtc/roles/delete/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/roles/delete/0.1/payload.js +152 -0
- package/dist/vtc/roles/delete/0.1/payload.js.map +1 -0
- package/dist/vtc/roles/list/0.1/payload.d.ts +639 -0
- package/dist/vtc/roles/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/roles/list/0.1/payload.js +345 -0
- package/dist/vtc/roles/list/0.1/payload.js.map +1 -0
- package/dist/vtc/roles/show/0.1/payload.d.ts +651 -0
- package/dist/vtc/roles/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/roles/show/0.1/payload.js +351 -0
- package/dist/vtc/roles/show/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +440 -1
- package/src/acl/_shared/0.1/acl-entry.ts +1 -1
- package/src/acl/_shared/0.2/acl-entry.ts +23 -0
- package/src/acl/change-role/0.1/payload.ts +1 -1
- package/src/acl/change-role/0.2/payload.ts +1011 -0
- package/src/acl/grant/0.1/payload.ts +1 -1
- package/src/acl/grant/0.2/payload.ts +990 -0
- package/src/acl/list/0.1/payload.ts +1 -1
- package/src/acl/list/0.2/payload.ts +1125 -0
- package/src/acl/revoke/0.1/payload.ts +1 -1
- package/src/acl/revoke/0.2/payload.ts +1122 -0
- package/src/acl/show/0.1/payload.ts +1 -1
- package/src/acl/show/0.2/payload.ts +1016 -0
- package/src/acl/swap-key/0.1/payload.ts +1 -1
- package/src/acl/update/0.1/payload.ts +1 -1
- package/src/acl/update/0.2/payload.ts +1094 -0
- package/src/auth/step-up/approve-request/0.4/payload.ts +461 -0
- package/src/auth/step-up/approve-response/0.6/payload.ts +648 -0
- package/src/auth/step-up/approver/_shared/0.1/approver.ts +17 -0
- package/src/auth/step-up/approver/attest/0.1/payload.ts +135 -0
- package/src/auth/step-up/approver/enroll/0.1/payload.ts +329 -0
- package/src/auth/step-up/approver/invite/0.1/payload.ts +258 -0
- package/src/auth/step-up/approver/list/0.1/payload.ts +318 -0
- package/src/auth/step-up/approver/redeem/finish/0.1/payload.ts +337 -0
- package/src/auth/step-up/approver/redeem/start/0.1/payload.ts +241 -0
- package/src/auth/step-up/approver/revoke/0.1/payload.ts +352 -0
- package/src/index.ts +31 -0
- package/src/task-consent/decision/0.2/payload.ts +537 -0
- package/src/vtc/admin/actions/_shared/0.1/action.ts +25 -0
- package/src/vtc/admin/actions/acknowledge/0.1/payload.ts +671 -0
- package/src/vtc/admin/actions/cancel/0.1/payload.ts +680 -0
- package/src/vtc/admin/actions/list/0.1/payload.ts +795 -0
- package/src/vtc/admin/actions/show/0.1/payload.ts +671 -0
- package/src/vtc/install/claim/finish/0.3/payload.ts +253 -0
- package/src/vtc/install/claim/start/0.3/payload.ts +256 -0
- package/src/vtc/members/authority-reduced-notice/0.1/payload.ts +162 -0
- package/src/vtc/roles/_shared/0.1/role.ts +17 -0
- package/src/vtc/roles/define/0.1/payload.ts +435 -0
- package/src/vtc/roles/delete/0.1/payload.ts +200 -0
- package/src/vtc/roles/list/0.1/payload.ts +389 -0
- package/src/vtc/roles/show/0.1/payload.ts +399 -0
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/auth/step-up/approver/invite/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { ApproverLabel, Ext } from "../../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* An administrator asks the relying party for a single-use invite, redeemed by the invited subject with a separately delivered claim code, to bind a step-up approver to that subject. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
|
|
8
|
+
*/
|
|
9
|
+
export interface AuthStepUpApproverInvitePayload {
|
|
10
|
+
/**
|
|
11
|
+
* The DID invited to bind a step-up approver. MUST be a subject the relying party recognises, and MUST NOT be the administrator issuing the invite.
|
|
12
|
+
*/
|
|
13
|
+
subject: string;
|
|
14
|
+
/**
|
|
15
|
+
* A suggested label for the approver. The subject MAY override it at redeem/finish.
|
|
16
|
+
*/
|
|
17
|
+
label?: ApproverLabel;
|
|
18
|
+
/**
|
|
19
|
+
* Seconds the invite stays redeemable. Default 900 (15 minutes). The relying party refuses more than 86400 (24 hours), or more than its own lower cap, with `ttlTooLong`.
|
|
20
|
+
*/
|
|
21
|
+
ttl?: number;
|
|
22
|
+
ext?: Ext;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The issued invite. The claim code is returned only here.
|
|
26
|
+
*/
|
|
27
|
+
export interface AuthStepUpApproverInviteResponsePayload {
|
|
28
|
+
/**
|
|
29
|
+
* The relying party's identifier for the invite, for audit and administration. Not a redemption factor: it is neither the token nor derivable from it.
|
|
30
|
+
*/
|
|
31
|
+
inviteId: string;
|
|
32
|
+
/**
|
|
33
|
+
* Where the invited subject redeems the invite. Carries the single-use token (≥128 bits). MUST NOT carry the claim code.
|
|
34
|
+
*/
|
|
35
|
+
url: string;
|
|
36
|
+
/**
|
|
37
|
+
* A short code (≥40 bits) the invited subject types at redemption, returned exactly once. Delivered by the administrator over a different channel from `url`. The relying party stores only a slow hash of it.
|
|
38
|
+
*/
|
|
39
|
+
claimCode: string;
|
|
40
|
+
/**
|
|
41
|
+
* When the invite stops being redeemable.
|
|
42
|
+
*/
|
|
43
|
+
expiresAt: string;
|
|
44
|
+
ext?: Ext;
|
|
45
|
+
}
|
|
46
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
47
|
+
export type { ApproverLabel, Ext };
|
|
48
|
+
/** Trust Task type URI. */
|
|
49
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/auth/step-up/approver/invite/0.1";
|
|
50
|
+
/** Stable alias for this specification's request payload shape. */
|
|
51
|
+
export type Payload = AuthStepUpApproverInvitePayload;
|
|
52
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
53
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/auth/step-up/approver/invite/0.1#response";
|
|
54
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
55
|
+
export type Response = AuthStepUpApproverInviteResponsePayload;
|
|
56
|
+
/**
|
|
57
|
+
* This specification's payload schema, as a value.
|
|
58
|
+
*
|
|
59
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
60
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
61
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
62
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
63
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
64
|
+
*/
|
|
65
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
66
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
67
|
+
readonly $id: "https://trusttasks.org/spec/auth/step-up/approver/invite/0.1";
|
|
68
|
+
readonly title: "Auth — Step-up Approver Invite — payload";
|
|
69
|
+
readonly description: "An administrator asks the relying party for a single-use invite, redeemed by the invited subject with a separately delivered claim code, to bind a step-up approver to that subject. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
70
|
+
readonly type: "object";
|
|
71
|
+
readonly additionalProperties: false;
|
|
72
|
+
readonly required: readonly ["subject"];
|
|
73
|
+
readonly properties: {
|
|
74
|
+
readonly subject: {
|
|
75
|
+
readonly type: "string";
|
|
76
|
+
readonly pattern: "^did:";
|
|
77
|
+
readonly minLength: 5;
|
|
78
|
+
readonly maxLength: 2048;
|
|
79
|
+
readonly description: "The DID invited to bind a step-up approver. MUST be a subject the relying party recognises, and MUST NOT be the administrator issuing the invite.";
|
|
80
|
+
};
|
|
81
|
+
readonly label: {
|
|
82
|
+
readonly $ref: "#/$defs/ApproverLabel";
|
|
83
|
+
readonly description: "A suggested label for the approver. The subject MAY override it at redeem/finish.";
|
|
84
|
+
};
|
|
85
|
+
readonly ttl: {
|
|
86
|
+
readonly type: "integer";
|
|
87
|
+
readonly minimum: 1;
|
|
88
|
+
readonly description: "Seconds the invite stays redeemable. Default 900 (15 minutes). The relying party refuses more than 86400 (24 hours), or more than its own lower cap, with `ttlTooLong`.";
|
|
89
|
+
};
|
|
90
|
+
readonly ext: {
|
|
91
|
+
readonly $ref: "#/$defs/Ext";
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
readonly $defs: {
|
|
95
|
+
readonly Response: {
|
|
96
|
+
readonly $anchor: "response";
|
|
97
|
+
readonly title: "Auth — Step-up Approver Invite — response payload";
|
|
98
|
+
readonly description: "The issued invite. The claim code is returned only here.";
|
|
99
|
+
readonly type: "object";
|
|
100
|
+
readonly additionalProperties: false;
|
|
101
|
+
readonly required: readonly ["inviteId", "url", "claimCode", "expiresAt"];
|
|
102
|
+
readonly properties: {
|
|
103
|
+
readonly inviteId: {
|
|
104
|
+
readonly type: "string";
|
|
105
|
+
readonly minLength: 1;
|
|
106
|
+
readonly maxLength: 128;
|
|
107
|
+
readonly description: "The relying party's identifier for the invite, for audit and administration. Not a redemption factor: it is neither the token nor derivable from it.";
|
|
108
|
+
};
|
|
109
|
+
readonly url: {
|
|
110
|
+
readonly type: "string";
|
|
111
|
+
readonly format: "uri";
|
|
112
|
+
readonly description: "Where the invited subject redeems the invite. Carries the single-use token (≥128 bits). MUST NOT carry the claim code.";
|
|
113
|
+
};
|
|
114
|
+
readonly claimCode: {
|
|
115
|
+
readonly type: "string";
|
|
116
|
+
readonly minLength: 8;
|
|
117
|
+
readonly maxLength: 64;
|
|
118
|
+
readonly description: "A short code (≥40 bits) the invited subject types at redemption, returned exactly once. Delivered by the administrator over a different channel from `url`. The relying party stores only a slow hash of it.";
|
|
119
|
+
};
|
|
120
|
+
readonly expiresAt: {
|
|
121
|
+
readonly type: "string";
|
|
122
|
+
readonly format: "date-time";
|
|
123
|
+
readonly description: "When the invite stops being redeemable.";
|
|
124
|
+
};
|
|
125
|
+
readonly ext: {
|
|
126
|
+
readonly $ref: "#/$defs/Ext";
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
readonly Ext: {
|
|
131
|
+
readonly title: "Ext";
|
|
132
|
+
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.";
|
|
133
|
+
readonly type: "object";
|
|
134
|
+
readonly minProperties: 1;
|
|
135
|
+
readonly additionalProperties: true;
|
|
136
|
+
readonly propertyNames: {
|
|
137
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
readonly ApproverLabel: {
|
|
141
|
+
readonly title: "ApproverLabel";
|
|
142
|
+
readonly type: "string";
|
|
143
|
+
readonly minLength: 1;
|
|
144
|
+
readonly maxLength: 64;
|
|
145
|
+
readonly description: "A human-readable name for where the approver lives — e.g. `Browser plugin — work laptop`. Chosen by the subject (or suggested by an inviter), untrusted, and attributed to its author wherever it is rendered. Absent rather than invented when none was chosen.";
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
150
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
151
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
152
|
+
readonly $ref: "#/$defs/Response";
|
|
153
|
+
readonly $defs: {
|
|
154
|
+
readonly Response: {
|
|
155
|
+
readonly $anchor: "response";
|
|
156
|
+
readonly title: "Auth — Step-up Approver Invite — response payload";
|
|
157
|
+
readonly description: "The issued invite. The claim code is returned only here.";
|
|
158
|
+
readonly type: "object";
|
|
159
|
+
readonly additionalProperties: false;
|
|
160
|
+
readonly required: readonly ["inviteId", "url", "claimCode", "expiresAt"];
|
|
161
|
+
readonly properties: {
|
|
162
|
+
readonly inviteId: {
|
|
163
|
+
readonly type: "string";
|
|
164
|
+
readonly minLength: 1;
|
|
165
|
+
readonly maxLength: 128;
|
|
166
|
+
readonly description: "The relying party's identifier for the invite, for audit and administration. Not a redemption factor: it is neither the token nor derivable from it.";
|
|
167
|
+
};
|
|
168
|
+
readonly url: {
|
|
169
|
+
readonly type: "string";
|
|
170
|
+
readonly format: "uri";
|
|
171
|
+
readonly description: "Where the invited subject redeems the invite. Carries the single-use token (≥128 bits). MUST NOT carry the claim code.";
|
|
172
|
+
};
|
|
173
|
+
readonly claimCode: {
|
|
174
|
+
readonly type: "string";
|
|
175
|
+
readonly minLength: 8;
|
|
176
|
+
readonly maxLength: 64;
|
|
177
|
+
readonly description: "A short code (≥40 bits) the invited subject types at redemption, returned exactly once. Delivered by the administrator over a different channel from `url`. The relying party stores only a slow hash of it.";
|
|
178
|
+
};
|
|
179
|
+
readonly expiresAt: {
|
|
180
|
+
readonly type: "string";
|
|
181
|
+
readonly format: "date-time";
|
|
182
|
+
readonly description: "When the invite stops being redeemable.";
|
|
183
|
+
};
|
|
184
|
+
readonly ext: {
|
|
185
|
+
readonly $ref: "#/$defs/Ext";
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
readonly Ext: {
|
|
190
|
+
readonly title: "Ext";
|
|
191
|
+
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.";
|
|
192
|
+
readonly type: "object";
|
|
193
|
+
readonly minProperties: 1;
|
|
194
|
+
readonly additionalProperties: true;
|
|
195
|
+
readonly propertyNames: {
|
|
196
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
readonly ApproverLabel: {
|
|
200
|
+
readonly title: "ApproverLabel";
|
|
201
|
+
readonly type: "string";
|
|
202
|
+
readonly minLength: 1;
|
|
203
|
+
readonly maxLength: 64;
|
|
204
|
+
readonly description: "A human-readable name for where the approver lives — e.g. `Browser plugin — work laptop`. Chosen by the subject (or suggested by an inviter), untrusted, and attributed to its author wherever it is rendered. Absent rather than invented when none was chosen.";
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
210
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
211
|
+
* per-specification and cannot be derived from the document alone, and
|
|
212
|
+
* item 2 needs the schema this carries.
|
|
213
|
+
*/
|
|
214
|
+
export declare const SPEC: {
|
|
215
|
+
readonly typeUri: "https://trusttasks.org/spec/auth/step-up/approver/invite/0.1";
|
|
216
|
+
readonly isBearer: false;
|
|
217
|
+
readonly isProofRequired: true;
|
|
218
|
+
readonly isRecipientRequired: true;
|
|
219
|
+
readonly isIssuedAtRequired: true;
|
|
220
|
+
readonly payloadSchema: {
|
|
221
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
222
|
+
readonly $id: "https://trusttasks.org/spec/auth/step-up/approver/invite/0.1";
|
|
223
|
+
readonly title: "Auth — Step-up Approver Invite — payload";
|
|
224
|
+
readonly description: "An administrator asks the relying party for a single-use invite, redeemed by the invited subject with a separately delivered claim code, to bind a step-up approver to that subject. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
|
|
225
|
+
readonly type: "object";
|
|
226
|
+
readonly additionalProperties: false;
|
|
227
|
+
readonly required: readonly ["subject"];
|
|
228
|
+
readonly properties: {
|
|
229
|
+
readonly subject: {
|
|
230
|
+
readonly type: "string";
|
|
231
|
+
readonly pattern: "^did:";
|
|
232
|
+
readonly minLength: 5;
|
|
233
|
+
readonly maxLength: 2048;
|
|
234
|
+
readonly description: "The DID invited to bind a step-up approver. MUST be a subject the relying party recognises, and MUST NOT be the administrator issuing the invite.";
|
|
235
|
+
};
|
|
236
|
+
readonly label: {
|
|
237
|
+
readonly $ref: "#/$defs/ApproverLabel";
|
|
238
|
+
readonly description: "A suggested label for the approver. The subject MAY override it at redeem/finish.";
|
|
239
|
+
};
|
|
240
|
+
readonly ttl: {
|
|
241
|
+
readonly type: "integer";
|
|
242
|
+
readonly minimum: 1;
|
|
243
|
+
readonly description: "Seconds the invite stays redeemable. Default 900 (15 minutes). The relying party refuses more than 86400 (24 hours), or more than its own lower cap, with `ttlTooLong`.";
|
|
244
|
+
};
|
|
245
|
+
readonly ext: {
|
|
246
|
+
readonly $ref: "#/$defs/Ext";
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
readonly $defs: {
|
|
250
|
+
readonly Response: {
|
|
251
|
+
readonly $anchor: "response";
|
|
252
|
+
readonly title: "Auth — Step-up Approver Invite — response payload";
|
|
253
|
+
readonly description: "The issued invite. The claim code is returned only here.";
|
|
254
|
+
readonly type: "object";
|
|
255
|
+
readonly additionalProperties: false;
|
|
256
|
+
readonly required: readonly ["inviteId", "url", "claimCode", "expiresAt"];
|
|
257
|
+
readonly properties: {
|
|
258
|
+
readonly inviteId: {
|
|
259
|
+
readonly type: "string";
|
|
260
|
+
readonly minLength: 1;
|
|
261
|
+
readonly maxLength: 128;
|
|
262
|
+
readonly description: "The relying party's identifier for the invite, for audit and administration. Not a redemption factor: it is neither the token nor derivable from it.";
|
|
263
|
+
};
|
|
264
|
+
readonly url: {
|
|
265
|
+
readonly type: "string";
|
|
266
|
+
readonly format: "uri";
|
|
267
|
+
readonly description: "Where the invited subject redeems the invite. Carries the single-use token (≥128 bits). MUST NOT carry the claim code.";
|
|
268
|
+
};
|
|
269
|
+
readonly claimCode: {
|
|
270
|
+
readonly type: "string";
|
|
271
|
+
readonly minLength: 8;
|
|
272
|
+
readonly maxLength: 64;
|
|
273
|
+
readonly description: "A short code (≥40 bits) the invited subject types at redemption, returned exactly once. Delivered by the administrator over a different channel from `url`. The relying party stores only a slow hash of it.";
|
|
274
|
+
};
|
|
275
|
+
readonly expiresAt: {
|
|
276
|
+
readonly type: "string";
|
|
277
|
+
readonly format: "date-time";
|
|
278
|
+
readonly description: "When the invite stops being redeemable.";
|
|
279
|
+
};
|
|
280
|
+
readonly ext: {
|
|
281
|
+
readonly $ref: "#/$defs/Ext";
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
readonly Ext: {
|
|
286
|
+
readonly title: "Ext";
|
|
287
|
+
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.";
|
|
288
|
+
readonly type: "object";
|
|
289
|
+
readonly minProperties: 1;
|
|
290
|
+
readonly additionalProperties: true;
|
|
291
|
+
readonly propertyNames: {
|
|
292
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
readonly ApproverLabel: {
|
|
296
|
+
readonly title: "ApproverLabel";
|
|
297
|
+
readonly type: "string";
|
|
298
|
+
readonly minLength: 1;
|
|
299
|
+
readonly maxLength: 64;
|
|
300
|
+
readonly description: "A human-readable name for where the approver lives — e.g. `Browser plugin — work laptop`. Chosen by the subject (or suggested by an inviter), untrusted, and attributed to its author wherever it is rendered. Absent rather than invented when none was chosen.";
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
/**
|
|
306
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
307
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
308
|
+
* parties (§7.3 item 5).
|
|
309
|
+
*/
|
|
310
|
+
export declare const RESPONSE_SPEC: {
|
|
311
|
+
readonly typeUri: "https://trusttasks.org/spec/auth/step-up/approver/invite/0.1#response";
|
|
312
|
+
readonly isBearer: false;
|
|
313
|
+
readonly isProofRequired: true;
|
|
314
|
+
readonly isRecipientRequired: true;
|
|
315
|
+
readonly isIssuedAtRequired: true;
|
|
316
|
+
readonly payloadSchema: {
|
|
317
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
318
|
+
readonly $ref: "#/$defs/Response";
|
|
319
|
+
readonly $defs: {
|
|
320
|
+
readonly Response: {
|
|
321
|
+
readonly $anchor: "response";
|
|
322
|
+
readonly title: "Auth — Step-up Approver Invite — response payload";
|
|
323
|
+
readonly description: "The issued invite. The claim code is returned only here.";
|
|
324
|
+
readonly type: "object";
|
|
325
|
+
readonly additionalProperties: false;
|
|
326
|
+
readonly required: readonly ["inviteId", "url", "claimCode", "expiresAt"];
|
|
327
|
+
readonly properties: {
|
|
328
|
+
readonly inviteId: {
|
|
329
|
+
readonly type: "string";
|
|
330
|
+
readonly minLength: 1;
|
|
331
|
+
readonly maxLength: 128;
|
|
332
|
+
readonly description: "The relying party's identifier for the invite, for audit and administration. Not a redemption factor: it is neither the token nor derivable from it.";
|
|
333
|
+
};
|
|
334
|
+
readonly url: {
|
|
335
|
+
readonly type: "string";
|
|
336
|
+
readonly format: "uri";
|
|
337
|
+
readonly description: "Where the invited subject redeems the invite. Carries the single-use token (≥128 bits). MUST NOT carry the claim code.";
|
|
338
|
+
};
|
|
339
|
+
readonly claimCode: {
|
|
340
|
+
readonly type: "string";
|
|
341
|
+
readonly minLength: 8;
|
|
342
|
+
readonly maxLength: 64;
|
|
343
|
+
readonly description: "A short code (≥40 bits) the invited subject types at redemption, returned exactly once. Delivered by the administrator over a different channel from `url`. The relying party stores only a slow hash of it.";
|
|
344
|
+
};
|
|
345
|
+
readonly expiresAt: {
|
|
346
|
+
readonly type: "string";
|
|
347
|
+
readonly format: "date-time";
|
|
348
|
+
readonly description: "When the invite stops being redeemable.";
|
|
349
|
+
};
|
|
350
|
+
readonly ext: {
|
|
351
|
+
readonly $ref: "#/$defs/Ext";
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
readonly Ext: {
|
|
356
|
+
readonly title: "Ext";
|
|
357
|
+
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.";
|
|
358
|
+
readonly type: "object";
|
|
359
|
+
readonly minProperties: 1;
|
|
360
|
+
readonly additionalProperties: true;
|
|
361
|
+
readonly propertyNames: {
|
|
362
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
readonly ApproverLabel: {
|
|
366
|
+
readonly title: "ApproverLabel";
|
|
367
|
+
readonly type: "string";
|
|
368
|
+
readonly minLength: 1;
|
|
369
|
+
readonly maxLength: 64;
|
|
370
|
+
readonly description: "A human-readable name for where the approver lives — e.g. `Browser plugin — work laptop`. Chosen by the subject (or suggested by an inviter), untrusted, and attributed to its author wherever it is rendered. Absent rather than invented when none was chosen.";
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/auth/step-up/approver/invite/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,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C;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/auth/step-up/approver/invite/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/auth/step-up/approver/invite/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/auth/step-up/approver/invite/0.1#response";
|
|
9
|
+
/**
|
|
10
|
+
* This specification's payload schema, as a value.
|
|
11
|
+
*
|
|
12
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
13
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
14
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
15
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
16
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
17
|
+
*/
|
|
18
|
+
export const PAYLOAD_SCHEMA = {
|
|
19
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
20
|
+
"$id": "https://trusttasks.org/spec/auth/step-up/approver/invite/0.1",
|
|
21
|
+
"title": "Auth — Step-up Approver Invite — payload",
|
|
22
|
+
"description": "An administrator asks the relying party for a single-use invite, redeemed by the invited subject with a separately delivered claim code, to bind a step-up approver to that subject. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": [
|
|
26
|
+
"subject"
|
|
27
|
+
],
|
|
28
|
+
"properties": {
|
|
29
|
+
"subject": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"pattern": "^did:",
|
|
32
|
+
"minLength": 5,
|
|
33
|
+
"maxLength": 2048,
|
|
34
|
+
"description": "The DID invited to bind a step-up approver. MUST be a subject the relying party recognises, and MUST NOT be the administrator issuing the invite."
|
|
35
|
+
},
|
|
36
|
+
"label": {
|
|
37
|
+
"$ref": "#/$defs/ApproverLabel",
|
|
38
|
+
"description": "A suggested label for the approver. The subject MAY override it at redeem/finish."
|
|
39
|
+
},
|
|
40
|
+
"ttl": {
|
|
41
|
+
"type": "integer",
|
|
42
|
+
"minimum": 1,
|
|
43
|
+
"description": "Seconds the invite stays redeemable. Default 900 (15 minutes). The relying party refuses more than 86400 (24 hours), or more than its own lower cap, with `ttlTooLong`."
|
|
44
|
+
},
|
|
45
|
+
"ext": {
|
|
46
|
+
"$ref": "#/$defs/Ext"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"$defs": {
|
|
50
|
+
"Response": {
|
|
51
|
+
"$anchor": "response",
|
|
52
|
+
"title": "Auth — Step-up Approver Invite — response payload",
|
|
53
|
+
"description": "The issued invite. The claim code is returned only here.",
|
|
54
|
+
"type": "object",
|
|
55
|
+
"additionalProperties": false,
|
|
56
|
+
"required": [
|
|
57
|
+
"inviteId",
|
|
58
|
+
"url",
|
|
59
|
+
"claimCode",
|
|
60
|
+
"expiresAt"
|
|
61
|
+
],
|
|
62
|
+
"properties": {
|
|
63
|
+
"inviteId": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"minLength": 1,
|
|
66
|
+
"maxLength": 128,
|
|
67
|
+
"description": "The relying party's identifier for the invite, for audit and administration. Not a redemption factor: it is neither the token nor derivable from it."
|
|
68
|
+
},
|
|
69
|
+
"url": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"format": "uri",
|
|
72
|
+
"description": "Where the invited subject redeems the invite. Carries the single-use token (≥128 bits). MUST NOT carry the claim code."
|
|
73
|
+
},
|
|
74
|
+
"claimCode": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"minLength": 8,
|
|
77
|
+
"maxLength": 64,
|
|
78
|
+
"description": "A short code (≥40 bits) the invited subject types at redemption, returned exactly once. Delivered by the administrator over a different channel from `url`. The relying party stores only a slow hash of it."
|
|
79
|
+
},
|
|
80
|
+
"expiresAt": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"format": "date-time",
|
|
83
|
+
"description": "When the invite stops being redeemable."
|
|
84
|
+
},
|
|
85
|
+
"ext": {
|
|
86
|
+
"$ref": "#/$defs/Ext"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"Ext": {
|
|
91
|
+
"title": "Ext",
|
|
92
|
+
"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.",
|
|
93
|
+
"type": "object",
|
|
94
|
+
"minProperties": 1,
|
|
95
|
+
"additionalProperties": true,
|
|
96
|
+
"propertyNames": {
|
|
97
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"ApproverLabel": {
|
|
101
|
+
"title": "ApproverLabel",
|
|
102
|
+
"type": "string",
|
|
103
|
+
"minLength": 1,
|
|
104
|
+
"maxLength": 64,
|
|
105
|
+
"description": "A human-readable name for where the approver lives — e.g. `Browser plugin — work laptop`. Chosen by the subject (or suggested by an inviter), untrusted, and attributed to its author wherever it is rendered. Absent rather than invented when none was chosen."
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
110
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
111
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
112
|
+
"$ref": "#/$defs/Response",
|
|
113
|
+
"$defs": {
|
|
114
|
+
"Response": {
|
|
115
|
+
"$anchor": "response",
|
|
116
|
+
"title": "Auth — Step-up Approver Invite — response payload",
|
|
117
|
+
"description": "The issued invite. The claim code is returned only here.",
|
|
118
|
+
"type": "object",
|
|
119
|
+
"additionalProperties": false,
|
|
120
|
+
"required": [
|
|
121
|
+
"inviteId",
|
|
122
|
+
"url",
|
|
123
|
+
"claimCode",
|
|
124
|
+
"expiresAt"
|
|
125
|
+
],
|
|
126
|
+
"properties": {
|
|
127
|
+
"inviteId": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"minLength": 1,
|
|
130
|
+
"maxLength": 128,
|
|
131
|
+
"description": "The relying party's identifier for the invite, for audit and administration. Not a redemption factor: it is neither the token nor derivable from it."
|
|
132
|
+
},
|
|
133
|
+
"url": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"format": "uri",
|
|
136
|
+
"description": "Where the invited subject redeems the invite. Carries the single-use token (≥128 bits). MUST NOT carry the claim code."
|
|
137
|
+
},
|
|
138
|
+
"claimCode": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"minLength": 8,
|
|
141
|
+
"maxLength": 64,
|
|
142
|
+
"description": "A short code (≥40 bits) the invited subject types at redemption, returned exactly once. Delivered by the administrator over a different channel from `url`. The relying party stores only a slow hash of it."
|
|
143
|
+
},
|
|
144
|
+
"expiresAt": {
|
|
145
|
+
"type": "string",
|
|
146
|
+
"format": "date-time",
|
|
147
|
+
"description": "When the invite stops being redeemable."
|
|
148
|
+
},
|
|
149
|
+
"ext": {
|
|
150
|
+
"$ref": "#/$defs/Ext"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"Ext": {
|
|
155
|
+
"title": "Ext",
|
|
156
|
+
"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.",
|
|
157
|
+
"type": "object",
|
|
158
|
+
"minProperties": 1,
|
|
159
|
+
"additionalProperties": true,
|
|
160
|
+
"propertyNames": {
|
|
161
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"ApproverLabel": {
|
|
165
|
+
"title": "ApproverLabel",
|
|
166
|
+
"type": "string",
|
|
167
|
+
"minLength": 1,
|
|
168
|
+
"maxLength": 64,
|
|
169
|
+
"description": "A human-readable name for where the approver lives — e.g. `Browser plugin — work laptop`. Chosen by the subject (or suggested by an inviter), untrusted, and attributed to its author wherever it is rendered. Absent rather than invented when none was chosen."
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
175
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
176
|
+
* per-specification and cannot be derived from the document alone, and
|
|
177
|
+
* item 2 needs the schema this carries.
|
|
178
|
+
*/
|
|
179
|
+
export const SPEC = {
|
|
180
|
+
typeUri: TYPE_URI,
|
|
181
|
+
isBearer: false,
|
|
182
|
+
isProofRequired: true,
|
|
183
|
+
isRecipientRequired: true,
|
|
184
|
+
isIssuedAtRequired: true,
|
|
185
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
186
|
+
};
|
|
187
|
+
/**
|
|
188
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
189
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
190
|
+
* parties (§7.3 item 5).
|
|
191
|
+
*/
|
|
192
|
+
export const RESPONSE_SPEC = {
|
|
193
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
194
|
+
isBearer: false,
|
|
195
|
+
isProofRequired: true,
|
|
196
|
+
isRecipientRequired: true,
|
|
197
|
+
isIssuedAtRequired: true,
|
|
198
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
199
|
+
};
|
|
200
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../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