@openvtc/trust-tasks 0.26.4 → 0.26.6
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 +79 -0
- package/dist/_shared/components.d.ts +1 -1
- package/dist/external/accounts/secret/set/0.1/payload.d.ts +4 -4
- package/dist/external/accounts/secret/set/0.1/payload.js +2 -2
- package/dist/external/accounts/secret/set/0.1/payload.js.map +1 -1
- package/dist/external/credentials/issue/0.1/payload.d.ts +4 -4
- package/dist/external/credentials/issue/0.1/payload.js +2 -2
- package/dist/external/credentials/issue/0.1/payload.js.map +1 -1
- package/dist/external/credentials/issue/0.2/payload.d.ts +1517 -0
- package/dist/external/credentials/issue/0.2/payload.d.ts.map +1 -0
- package/dist/external/credentials/issue/0.2/payload.js +845 -0
- package/dist/external/credentials/issue/0.2/payload.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/rooms/owner/group/renew/0.1/payload.d.ts +299 -0
- package/dist/rooms/owner/group/renew/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/owner/group/renew/0.1/payload.js +163 -0
- package/dist/rooms/owner/group/renew/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +1 -1
- package/src/external/accounts/secret/set/0.1/payload.ts +2 -2
- package/src/external/credentials/issue/0.1/payload.ts +2 -2
- package/src/external/credentials/issue/0.2/payload.ts +995 -0
- package/src/index.ts +2 -0
- package/src/rooms/owner/group/renew/0.1/payload.ts +213 -0
package/src/index.ts
CHANGED
|
@@ -227,6 +227,7 @@ export * as ExternalAccountsSetup_v0_1 from "./external/accounts/setup/0.1/paylo
|
|
|
227
227
|
export * as ExternalAccountsSuspend_v0_1 from "./external/accounts/suspend/0.1/payload.js";
|
|
228
228
|
export * as ExternalAccountsUpdate_v0_1 from "./external/accounts/update/0.1/payload.js";
|
|
229
229
|
export * as ExternalCredentialsIssue_v0_1 from "./external/credentials/issue/0.1/payload.js";
|
|
230
|
+
export * as ExternalCredentialsIssue_v0_2 from "./external/credentials/issue/0.2/payload.js";
|
|
230
231
|
export * as ExternalSign_v0_1 from "./external/sign/0.1/payload.js";
|
|
231
232
|
export * as GitNsShared_v0_1 from "./git-ns/_shared/0.1/git-ns.js";
|
|
232
233
|
export * as GitNsShared_v0_2 from "./git-ns/_shared/0.2/git-ns.js";
|
|
@@ -462,6 +463,7 @@ export * as RoomsOwnerClaim_v0_1 from "./rooms/owner/claim/0.1/payload.js";
|
|
|
462
463
|
export * as RoomsOwnerGroupAdd_v0_1 from "./rooms/owner/group/add/0.1/payload.js";
|
|
463
464
|
export * as RoomsOwnerGroupCreate_v0_1 from "./rooms/owner/group/create/0.1/payload.js";
|
|
464
465
|
export * as RoomsOwnerGroupRemove_v0_1 from "./rooms/owner/group/remove/0.1/payload.js";
|
|
466
|
+
export * as RoomsOwnerGroupRenew_v0_1 from "./rooms/owner/group/renew/0.1/payload.js";
|
|
465
467
|
export * as RoomsOwnerInvite_v0_1 from "./rooms/owner/invite/0.1/payload.js";
|
|
466
468
|
export * as RoomsOwnerIssueAuthority_v0_1 from "./rooms/owner/issue-authority/0.1/payload.js";
|
|
467
469
|
export * as RoomsOwnerIssueAuthority_v0_2 from "./rooms/owner/issue-authority/0.2/payload.js";
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/rooms/owner/group/renew/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Ext } from "../../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export interface RoomsOwnerGroupRenewPayload {
|
|
10
|
+
/**
|
|
11
|
+
* The sealed room to renew. The recipient MUST hold its group.
|
|
12
|
+
*/
|
|
13
|
+
roomId: string;
|
|
14
|
+
/**
|
|
15
|
+
* The room's host, as a DID: where the room's epoch advances.
|
|
16
|
+
*/
|
|
17
|
+
host: string;
|
|
18
|
+
/**
|
|
19
|
+
* Why, carried to the host's epoch advance. Untrusted and attributed to its author: it MUST NOT carry personal data or a credential.
|
|
20
|
+
*/
|
|
21
|
+
reason?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
24
|
+
*/
|
|
25
|
+
ext?: Ext;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Success response to rooms/owner/group/renew. Type https://trusttasks.org/spec/rooms/owner/group/renew/0.1#response. The room's new epoch, at which the host and the group agree.
|
|
29
|
+
*/
|
|
30
|
+
export interface RoomsOwnerGroupRenewResponsePayload {
|
|
31
|
+
/**
|
|
32
|
+
* The room.
|
|
33
|
+
*/
|
|
34
|
+
roomId: string;
|
|
35
|
+
/**
|
|
36
|
+
* The room epoch after the renewal, as the host recorded it.
|
|
37
|
+
*/
|
|
38
|
+
epoch: number;
|
|
39
|
+
ext?: Ext;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
43
|
+
export type { Ext };
|
|
44
|
+
|
|
45
|
+
/** Trust Task type URI. */
|
|
46
|
+
export const TYPE_URI = "https://trusttasks.org/spec/rooms/owner/group/renew/0.1" as const;
|
|
47
|
+
|
|
48
|
+
/** Stable alias for this specification's request payload shape. */
|
|
49
|
+
export type Payload = RoomsOwnerGroupRenewPayload;
|
|
50
|
+
|
|
51
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
52
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/owner/group/renew/0.1#response" as const;
|
|
53
|
+
|
|
54
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
55
|
+
export type Response = RoomsOwnerGroupRenewResponsePayload;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* This specification's payload schema, as a value.
|
|
59
|
+
*
|
|
60
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
61
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
62
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
63
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
64
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
65
|
+
*/
|
|
66
|
+
export const PAYLOAD_SCHEMA = {
|
|
67
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
68
|
+
"$id": "https://trusttasks.org/spec/rooms/owner/group/renew/0.1",
|
|
69
|
+
"title": "Rooms Owner Group Renew — payload",
|
|
70
|
+
"type": "object",
|
|
71
|
+
"additionalProperties": false,
|
|
72
|
+
"required": [
|
|
73
|
+
"roomId",
|
|
74
|
+
"host"
|
|
75
|
+
],
|
|
76
|
+
"properties": {
|
|
77
|
+
"roomId": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"minLength": 1,
|
|
80
|
+
"maxLength": 512,
|
|
81
|
+
"description": "The sealed room to renew. The recipient MUST hold its group."
|
|
82
|
+
},
|
|
83
|
+
"host": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"pattern": "^did:",
|
|
86
|
+
"maxLength": 2048,
|
|
87
|
+
"description": "The room's host, as a DID: where the room's epoch advances."
|
|
88
|
+
},
|
|
89
|
+
"reason": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"minLength": 1,
|
|
92
|
+
"maxLength": 500,
|
|
93
|
+
"description": "Why, carried to the host's epoch advance. Untrusted and attributed to its author: it MUST NOT carry personal data or a credential."
|
|
94
|
+
},
|
|
95
|
+
"ext": {
|
|
96
|
+
"$ref": "#/$defs/Ext",
|
|
97
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"$defs": {
|
|
101
|
+
"Response": {
|
|
102
|
+
"$anchor": "response",
|
|
103
|
+
"title": "Rooms Owner Group Renew — response payload",
|
|
104
|
+
"description": "Success response to rooms/owner/group/renew. Type https://trusttasks.org/spec/rooms/owner/group/renew/0.1#response. The room's new epoch, at which the host and the group agree.",
|
|
105
|
+
"type": "object",
|
|
106
|
+
"additionalProperties": false,
|
|
107
|
+
"required": [
|
|
108
|
+
"roomId",
|
|
109
|
+
"epoch"
|
|
110
|
+
],
|
|
111
|
+
"properties": {
|
|
112
|
+
"roomId": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"minLength": 1,
|
|
115
|
+
"maxLength": 512,
|
|
116
|
+
"description": "The room."
|
|
117
|
+
},
|
|
118
|
+
"epoch": {
|
|
119
|
+
"type": "integer",
|
|
120
|
+
"minimum": 2,
|
|
121
|
+
"description": "The room epoch after the renewal, as the host recorded it."
|
|
122
|
+
},
|
|
123
|
+
"ext": {
|
|
124
|
+
"$ref": "#/$defs/Ext"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"Ext": {
|
|
129
|
+
"title": "Ext",
|
|
130
|
+
"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.",
|
|
131
|
+
"type": "object",
|
|
132
|
+
"minProperties": 1,
|
|
133
|
+
"additionalProperties": true,
|
|
134
|
+
"propertyNames": {
|
|
135
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
} as const;
|
|
140
|
+
|
|
141
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
142
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
143
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
144
|
+
"$ref": "#/$defs/Response",
|
|
145
|
+
"$defs": {
|
|
146
|
+
"Response": {
|
|
147
|
+
"$anchor": "response",
|
|
148
|
+
"title": "Rooms Owner Group Renew — response payload",
|
|
149
|
+
"description": "Success response to rooms/owner/group/renew. Type https://trusttasks.org/spec/rooms/owner/group/renew/0.1#response. The room's new epoch, at which the host and the group agree.",
|
|
150
|
+
"type": "object",
|
|
151
|
+
"additionalProperties": false,
|
|
152
|
+
"required": [
|
|
153
|
+
"roomId",
|
|
154
|
+
"epoch"
|
|
155
|
+
],
|
|
156
|
+
"properties": {
|
|
157
|
+
"roomId": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"minLength": 1,
|
|
160
|
+
"maxLength": 512,
|
|
161
|
+
"description": "The room."
|
|
162
|
+
},
|
|
163
|
+
"epoch": {
|
|
164
|
+
"type": "integer",
|
|
165
|
+
"minimum": 2,
|
|
166
|
+
"description": "The room epoch after the renewal, as the host recorded it."
|
|
167
|
+
},
|
|
168
|
+
"ext": {
|
|
169
|
+
"$ref": "#/$defs/Ext"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"Ext": {
|
|
174
|
+
"title": "Ext",
|
|
175
|
+
"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.",
|
|
176
|
+
"type": "object",
|
|
177
|
+
"minProperties": 1,
|
|
178
|
+
"additionalProperties": true,
|
|
179
|
+
"propertyNames": {
|
|
180
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
} as const;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
188
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
189
|
+
* per-specification and cannot be derived from the document alone, and
|
|
190
|
+
* item 2 needs the schema this carries.
|
|
191
|
+
*/
|
|
192
|
+
export const SPEC = {
|
|
193
|
+
typeUri: TYPE_URI,
|
|
194
|
+
isBearer: false,
|
|
195
|
+
isProofRequired: true,
|
|
196
|
+
isRecipientRequired: true,
|
|
197
|
+
isIssuedAtRequired: true,
|
|
198
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
199
|
+
} as const;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
203
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
204
|
+
* parties (§7.3 item 5).
|
|
205
|
+
*/
|
|
206
|
+
export const RESPONSE_SPEC = {
|
|
207
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
208
|
+
isBearer: false,
|
|
209
|
+
isProofRequired: true,
|
|
210
|
+
isRecipientRequired: true,
|
|
211
|
+
isIssuedAtRequired: true,
|
|
212
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
213
|
+
} as const;
|