@openvtc/trust-tasks 0.26.24 → 0.26.26
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 +93 -0
- package/dist/_shared/components.d.ts +248 -5
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/device/list/0.1/payload.d.ts +4 -4
- package/dist/device/list/0.1/payload.d.ts.map +1 -1
- package/dist/device/list/0.1/payload.js +4 -2
- package/dist/device/list/0.1/payload.js.map +1 -1
- package/dist/device/list/0.2/payload.d.ts +4 -4
- package/dist/device/list/0.2/payload.d.ts.map +1 -1
- package/dist/device/list/0.2/payload.js +4 -2
- package/dist/device/list/0.2/payload.js.map +1 -1
- package/dist/device/register/0.1/payload.d.ts +4 -4
- package/dist/device/register/0.1/payload.d.ts.map +1 -1
- package/dist/device/register/0.1/payload.js +4 -2
- package/dist/device/register/0.1/payload.js.map +1 -1
- package/dist/device/register/0.2/payload.d.ts +4 -4
- package/dist/device/register/0.2/payload.d.ts.map +1 -1
- package/dist/device/register/0.2/payload.js +4 -2
- package/dist/device/register/0.2/payload.js.map +1 -1
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/dist/rooms/keys/act/0.6/payload.d.ts +546 -0
- package/dist/rooms/keys/act/0.6/payload.d.ts.map +1 -0
- package/dist/rooms/keys/act/0.6/payload.js +305 -0
- package/dist/rooms/keys/act/0.6/payload.js.map +1 -0
- package/dist/voting/_shared/0.1/voting.d.ts +1 -1
- package/dist/voting/_shared/0.1/voting.d.ts.map +1 -1
- package/dist/voting/ballot/cast-encrypted/0.1/payload.d.ts +1166 -0
- package/dist/voting/ballot/cast-encrypted/0.1/payload.d.ts.map +1 -0
- package/dist/voting/ballot/cast-encrypted/0.1/payload.js +690 -0
- package/dist/voting/ballot/cast-encrypted/0.1/payload.js.map +1 -0
- package/dist/voting/board/read/0.1/payload.d.ts +2555 -719
- package/dist/voting/board/read/0.1/payload.d.ts.map +1 -1
- package/dist/voting/board/read/0.1/payload.js +1517 -391
- package/dist/voting/board/read/0.1/payload.js.map +1 -1
- package/dist/voting/election/register/0.1/payload.d.ts +4 -4
- package/dist/voting/election/register/0.1/payload.js +2 -2
- package/dist/voting/election/register/0.1/payload.js.map +1 -1
- package/dist/voting/election/show/0.1/payload.d.ts +4 -4
- package/dist/voting/election/show/0.1/payload.js +2 -2
- package/dist/voting/election/show/0.1/payload.js.map +1 -1
- package/dist/voting/trustees/confirm/0.1/payload.d.ts +620 -0
- package/dist/voting/trustees/confirm/0.1/payload.d.ts.map +1 -0
- package/dist/voting/trustees/confirm/0.1/payload.js +388 -0
- package/dist/voting/trustees/confirm/0.1/payload.js.map +1 -0
- package/dist/voting/trustees/deal/0.1/payload.d.ts +1032 -0
- package/dist/voting/trustees/deal/0.1/payload.d.ts.map +1 -0
- package/dist/voting/trustees/deal/0.1/payload.js +630 -0
- package/dist/voting/trustees/deal/0.1/payload.js.map +1 -0
- package/dist/voting/trustees/decrypt/0.1/payload.d.ts +1009 -0
- package/dist/voting/trustees/decrypt/0.1/payload.d.ts.map +1 -0
- package/dist/voting/trustees/decrypt/0.1/payload.js +623 -0
- package/dist/voting/trustees/decrypt/0.1/payload.js.map +1 -0
- package/dist/voting/trustees/enrol/0.1/payload.d.ts +792 -0
- package/dist/voting/trustees/enrol/0.1/payload.d.ts.map +1 -0
- package/dist/voting/trustees/enrol/0.1/payload.js +490 -0
- package/dist/voting/trustees/enrol/0.1/payload.js.map +1 -0
- package/dist/voting/trustees/justify/0.1/payload.d.ts +642 -0
- package/dist/voting/trustees/justify/0.1/payload.d.ts.map +1 -0
- package/dist/voting/trustees/justify/0.1/payload.js +402 -0
- package/dist/voting/trustees/justify/0.1/payload.js.map +1 -0
- package/dist/voting/trustees/status/0.1/payload.d.ts +1411 -0
- package/dist/voting/trustees/status/0.1/payload.d.ts.map +1 -0
- package/dist/voting/trustees/status/0.1/payload.js +822 -0
- package/dist/voting/trustees/status/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/trustee/deal/0.1/payload.d.ts +2005 -0
- package/dist/vta/pcs/trustee/deal/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/deal/0.1/payload.js +1176 -0
- package/dist/vta/pcs/trustee/deal/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/trustee/decrypt/0.1/payload.d.ts +736 -0
- package/dist/vta/pcs/trustee/decrypt/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/decrypt/0.1/payload.js +412 -0
- package/dist/vta/pcs/trustee/decrypt/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/trustee/enrol/0.1/payload.d.ts +1756 -0
- package/dist/vta/pcs/trustee/enrol/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/enrol/0.1/payload.js +1040 -0
- package/dist/vta/pcs/trustee/enrol/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/trustee/justify/0.1/payload.d.ts +504 -0
- package/dist/vta/pcs/trustee/justify/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/justify/0.1/payload.js +274 -0
- package/dist/vta/pcs/trustee/justify/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/trustee/keys/0.1/payload.d.ts +2501 -0
- package/dist/vta/pcs/trustee/keys/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/trustee/keys/0.1/payload.js +1455 -0
- package/dist/vta/pcs/trustee/keys/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/vote/0.1/payload.d.ts +4 -4
- package/dist/vta/pcs/vote/0.1/payload.js +2 -2
- package/dist/vta/pcs/vote/0.1/payload.js.map +1 -1
- package/dist/vta/pcs/vote-encrypted/0.1/payload.d.ts +2375 -0
- package/dist/vta/pcs/vote-encrypted/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/vote-encrypted/0.1/payload.js +1389 -0
- package/dist/vta/pcs/vote-encrypted/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/voter/register/0.1/payload.d.ts +4 -4
- package/dist/vta/pcs/voter/register/0.1/payload.js +2 -2
- package/dist/vta/pcs/voter/register/0.1/payload.js.map +1 -1
- package/dist/vtc/_shared/0.1/community-room.d.ts +1 -1
- package/dist/vtc/_shared/0.1/community-room.d.ts.map +1 -1
- package/dist/vtc/elections/create/0.1/payload.d.ts +4 -4
- package/dist/vtc/elections/create/0.1/payload.js +2 -2
- package/dist/vtc/elections/create/0.1/payload.js.map +1 -1
- package/dist/vtc/elections/show/0.1/payload.d.ts +4 -4
- package/dist/vtc/elections/show/0.1/payload.js +2 -2
- package/dist/vtc/elections/show/0.1/payload.js.map +1 -1
- package/dist/vtc/groups/bindings/add/0.1/payload.d.ts +4 -4
- package/dist/vtc/groups/bindings/add/0.1/payload.js +2 -2
- package/dist/vtc/groups/bindings/add/0.1/payload.js.map +1 -1
- package/dist/vtc/groups/bindings/list/0.1/payload.d.ts +4 -4
- package/dist/vtc/groups/bindings/list/0.1/payload.js +2 -2
- package/dist/vtc/groups/bindings/list/0.1/payload.js.map +1 -1
- package/dist/vtc/rooms/offers/list/0.3/payload.d.ts +1058 -0
- package/dist/vtc/rooms/offers/list/0.3/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/offers/list/0.3/payload.js +614 -0
- package/dist/vtc/rooms/offers/list/0.3/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +263 -5
- package/src/device/list/0.1/payload.ts +4 -2
- package/src/device/list/0.2/payload.ts +4 -2
- package/src/device/register/0.1/payload.ts +4 -2
- package/src/device/register/0.2/payload.ts +4 -2
- package/src/index.ts +15 -0
- package/src/rooms/keys/act/0.6/payload.ts +380 -0
- package/src/voting/_shared/0.1/voting.ts +1 -1
- package/src/voting/ballot/cast-encrypted/0.1/payload.ts +735 -0
- package/src/voting/board/read/0.1/payload.ts +1519 -393
- package/src/voting/election/register/0.1/payload.ts +2 -2
- package/src/voting/election/show/0.1/payload.ts +2 -2
- package/src/voting/trustees/confirm/0.1/payload.ts +429 -0
- package/src/voting/trustees/deal/0.1/payload.ts +665 -0
- package/src/voting/trustees/decrypt/0.1/payload.ts +663 -0
- package/src/voting/trustees/enrol/0.1/payload.ts +525 -0
- package/src/voting/trustees/justify/0.1/payload.ts +439 -0
- package/src/voting/trustees/status/0.1/payload.ts +890 -0
- package/src/vta/pcs/trustee/deal/0.1/payload.ts +1250 -0
- package/src/vta/pcs/trustee/decrypt/0.1/payload.ts +489 -0
- package/src/vta/pcs/trustee/enrol/0.1/payload.ts +1107 -0
- package/src/vta/pcs/trustee/justify/0.1/payload.ts +341 -0
- package/src/vta/pcs/trustee/keys/0.1/payload.ts +1545 -0
- package/src/vta/pcs/vote/0.1/payload.ts +2 -2
- package/src/vta/pcs/vote-encrypted/0.1/payload.ts +1455 -0
- package/src/vta/pcs/voter/register/0.1/payload.ts +2 -2
- package/src/vtc/_shared/0.1/community-room.ts +1 -1
- package/src/vtc/elections/create/0.1/payload.ts +2 -2
- package/src/vtc/elections/show/0.1/payload.ts +2 -2
- package/src/vtc/groups/bindings/add/0.1/payload.ts +2 -2
- package/src/vtc/groups/bindings/list/0.1/payload.ts +2 -2
- package/src/vtc/rooms/offers/list/0.3/payload.ts +663 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vtc/rooms/offers/list/0.3/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAG7L,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,GAAG,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiR1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|
|
@@ -0,0 +1,614 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/rooms/offers/list/0.3/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/rooms/offers/list/0.3";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/rooms/offers/list/0.3#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/vtc/rooms/offers/list/0.3",
|
|
21
|
+
"title": "VTC Rooms Offers List — payload",
|
|
22
|
+
"type": "object",
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"properties": {
|
|
25
|
+
"cursor": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"minLength": 1,
|
|
28
|
+
"maxLength": 1024,
|
|
29
|
+
"description": "Opaque continuation token from a previous page's `nextCursor`."
|
|
30
|
+
},
|
|
31
|
+
"limit": {
|
|
32
|
+
"type": "integer",
|
|
33
|
+
"minimum": 1,
|
|
34
|
+
"maximum": 100,
|
|
35
|
+
"description": "Page size. The community chooses when absent (50 in the reference implementation)."
|
|
36
|
+
},
|
|
37
|
+
"ext": {
|
|
38
|
+
"$ref": "#/$defs/Ext"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"$defs": {
|
|
42
|
+
"Response": {
|
|
43
|
+
"$anchor": "response",
|
|
44
|
+
"title": "VTC Rooms Offers List — response payload",
|
|
45
|
+
"description": "Success response to vtc/rooms/offers/list. Type https://trusttasks.org/spec/vtc/rooms/offers/list/0.3#response. The offers addressed to the caller, and the renewals of admissions they hold, and no one else's.",
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"required": [
|
|
49
|
+
"items"
|
|
50
|
+
],
|
|
51
|
+
"properties": {
|
|
52
|
+
"items": {
|
|
53
|
+
"type": "array",
|
|
54
|
+
"maxItems": 100,
|
|
55
|
+
"items": {
|
|
56
|
+
"$ref": "#/$defs/OfferV2"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"renewals": {
|
|
60
|
+
"type": "array",
|
|
61
|
+
"maxItems": 100,
|
|
62
|
+
"description": "Renewals of admissions the caller holds, each with the two credentials to store in place of the ones it renews. Present only on the page answered without a `cursor`, in full; absent on every later page and when there are none.",
|
|
63
|
+
"items": {
|
|
64
|
+
"$ref": "#/$defs/Renewal"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"nextCursor": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"minLength": 1,
|
|
70
|
+
"maxLength": 1024,
|
|
71
|
+
"description": "Present when more remain; pass it as `cursor`."
|
|
72
|
+
},
|
|
73
|
+
"ext": {
|
|
74
|
+
"$ref": "#/$defs/Ext"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"Ext": {
|
|
79
|
+
"title": "Ext",
|
|
80
|
+
"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.",
|
|
81
|
+
"type": "object",
|
|
82
|
+
"minProperties": 1,
|
|
83
|
+
"additionalProperties": true,
|
|
84
|
+
"propertyNames": {
|
|
85
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"Renewal": {
|
|
89
|
+
"title": "Renewal",
|
|
90
|
+
"type": "object",
|
|
91
|
+
"additionalProperties": false,
|
|
92
|
+
"required": [
|
|
93
|
+
"roomId",
|
|
94
|
+
"host",
|
|
95
|
+
"label",
|
|
96
|
+
"visibility",
|
|
97
|
+
"actions",
|
|
98
|
+
"validUntil",
|
|
99
|
+
"renews",
|
|
100
|
+
"issuedAt",
|
|
101
|
+
"credentials"
|
|
102
|
+
],
|
|
103
|
+
"description": "What vtc/rooms/offers/list/0.3 returns in `renewals`: a renewal of an admission the member already holds, as the member it is addressed to sees it. `label` and `description` are the room's as they stand when it is read.",
|
|
104
|
+
"properties": {
|
|
105
|
+
"roomId": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"minLength": 1,
|
|
108
|
+
"maxLength": 512
|
|
109
|
+
},
|
|
110
|
+
"host": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"pattern": "^did:",
|
|
113
|
+
"maxLength": 2048,
|
|
114
|
+
"description": "The room's host: this community."
|
|
115
|
+
},
|
|
116
|
+
"label": {
|
|
117
|
+
"$ref": "#/$defs/RoomLabel"
|
|
118
|
+
},
|
|
119
|
+
"description": {
|
|
120
|
+
"$ref": "#/$defs/RoomDescription",
|
|
121
|
+
"description": "Absent when the room has none."
|
|
122
|
+
},
|
|
123
|
+
"visibility": {
|
|
124
|
+
"$ref": "#/$defs/Visibility"
|
|
125
|
+
},
|
|
126
|
+
"actions": {
|
|
127
|
+
"$ref": "#/$defs/MemberActions"
|
|
128
|
+
},
|
|
129
|
+
"validUntil": {
|
|
130
|
+
"type": "string",
|
|
131
|
+
"format": "date-time",
|
|
132
|
+
"description": "When the renewed authority expires."
|
|
133
|
+
},
|
|
134
|
+
"renews": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"format": "date-time",
|
|
137
|
+
"description": "When the authority it replaces expires: the renewal is listed until then, or until a later renewal or the member's removal supersedes it."
|
|
138
|
+
},
|
|
139
|
+
"issuedAt": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"format": "date-time"
|
|
142
|
+
},
|
|
143
|
+
"credentials": {
|
|
144
|
+
"$ref": "#/$defs/RenewalCredentials"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"RenewalCredentials": {
|
|
149
|
+
"title": "RenewalCredentials",
|
|
150
|
+
"type": "object",
|
|
151
|
+
"additionalProperties": false,
|
|
152
|
+
"required": [
|
|
153
|
+
"membership",
|
|
154
|
+
"authority"
|
|
155
|
+
],
|
|
156
|
+
"description": "The two credentials a renewal replaces, serialized as rooms/owner/{issue-membership,issue-authority} return them: a membership and an authority granting the same actions until the renewal's `validUntil`. No invitation: the member is already admitted, and a renewal never opens a second way in. The member's surface stores each with the member's key holder **in place of** the one it renews, never beside it.",
|
|
157
|
+
"properties": {
|
|
158
|
+
"membership": {
|
|
159
|
+
"type": "string",
|
|
160
|
+
"minLength": 1,
|
|
161
|
+
"maxLength": 65536,
|
|
162
|
+
"description": "The renewed Verifiable Membership Credential."
|
|
163
|
+
},
|
|
164
|
+
"authority": {
|
|
165
|
+
"type": "string",
|
|
166
|
+
"minLength": 1,
|
|
167
|
+
"maxLength": 65536,
|
|
168
|
+
"description": "The renewed Verifiable Authority Credential granting `actions` until `validUntil`."
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"MemberActions": {
|
|
173
|
+
"title": "MemberActions",
|
|
174
|
+
"type": "array",
|
|
175
|
+
"minItems": 1,
|
|
176
|
+
"maxItems": 3,
|
|
177
|
+
"uniqueItems": true,
|
|
178
|
+
"items": {
|
|
179
|
+
"$ref": "#/$defs/MemberAction"
|
|
180
|
+
},
|
|
181
|
+
"description": "The actions granted, at least one. An empty list confers nothing rather than everything, and a schema that allowed it would make the more dangerous reading available to a careless consumer."
|
|
182
|
+
},
|
|
183
|
+
"MemberAction": {
|
|
184
|
+
"title": "MemberAction",
|
|
185
|
+
"type": "string",
|
|
186
|
+
"enum": [
|
|
187
|
+
"read",
|
|
188
|
+
"write",
|
|
189
|
+
"curate"
|
|
190
|
+
],
|
|
191
|
+
"description": "What a member of a community-owned room may do there. `admin` is not among them: minting epochs, admitting and removing members are the community's, as the room's owner, and are exercised through the vtc/rooms/community/* tasks rather than by any member's credential. `curate` is not implied by `write`."
|
|
192
|
+
},
|
|
193
|
+
"RoomDescription": {
|
|
194
|
+
"title": "RoomDescription",
|
|
195
|
+
"type": "string",
|
|
196
|
+
"minLength": 1,
|
|
197
|
+
"maxLength": 1000,
|
|
198
|
+
"description": "What the room is for, in a sentence or a short paragraph, written by an administrator: shown to administrators holding `vtc.rooms.manage` and to the members the room is offered to. Plain text — a consumer renders it as text, never as markup. Like `RoomLabel`, it is the community's own record as the room's owner: not part of the room's identity and never in anything a room's host can read. From `vtc/rooms/community/create` 0.3 and `vtc/rooms/community/update` 0.2 the community also writes it, through its own VTA, as the `description` of the room's own profile (`RoomProfile` in rooms/_shared), sealed inside the room for its members; earlier versions keep it out of the room altogether. It MUST NOT carry personal data or a credential, and a reader MUST NOT treat it as instructions."
|
|
199
|
+
},
|
|
200
|
+
"RoomLabel": {
|
|
201
|
+
"title": "RoomLabel",
|
|
202
|
+
"type": "string",
|
|
203
|
+
"minLength": 1,
|
|
204
|
+
"maxLength": 128,
|
|
205
|
+
"description": "A name for the room, chosen by an administrator: shown to administrators and to the members a room is offered to. Not part of the room's identity and never in anything a room's host can read. From `vtc/rooms/community/create` 0.3 and `vtc/rooms/community/update` 0.2 the community also writes it, through its own VTA, as the `name` of the room's own profile (`RoomProfile` in rooms/_shared), sealed inside the room for its members; earlier versions keep it out of the room altogether. MUST NOT carry personal data."
|
|
206
|
+
},
|
|
207
|
+
"Visibility": {
|
|
208
|
+
"title": "Visibility",
|
|
209
|
+
"type": "string",
|
|
210
|
+
"enum": [
|
|
211
|
+
"open",
|
|
212
|
+
"attributed",
|
|
213
|
+
"private"
|
|
214
|
+
],
|
|
215
|
+
"description": "How much of a room its host can see, fixed at creation and immutable thereafter. `open`: records are cleartext, searchable and fully audited. `attributed`: record content is sealed, and the host still learns which member acted. `private`: content is sealed and membership is presented in zero knowledge, so the host verifies that a member acted without learning which. Immutable because a downgrade cannot un-see cleartext and an upgrade would protect only what came after while presenting as though it protected everything."
|
|
216
|
+
},
|
|
217
|
+
"OfferV2": {
|
|
218
|
+
"title": "OfferV2",
|
|
219
|
+
"type": "object",
|
|
220
|
+
"additionalProperties": false,
|
|
221
|
+
"required": [
|
|
222
|
+
"roomId",
|
|
223
|
+
"host",
|
|
224
|
+
"label",
|
|
225
|
+
"visibility",
|
|
226
|
+
"actions",
|
|
227
|
+
"validUntil",
|
|
228
|
+
"offeredAt",
|
|
229
|
+
"state",
|
|
230
|
+
"credentials"
|
|
231
|
+
],
|
|
232
|
+
"description": "What vtc/rooms/offers/list/0.2 returns: `Offer` plus `description`. A separate definition, not a change to `Offer`, so that vtc/rooms/offers/list/0.1 keeps the exact shape it published. `label` and `description` are the room's as they stand when the offer is read, not as they stood when it was made.",
|
|
233
|
+
"properties": {
|
|
234
|
+
"roomId": {
|
|
235
|
+
"type": "string",
|
|
236
|
+
"minLength": 1,
|
|
237
|
+
"maxLength": 512
|
|
238
|
+
},
|
|
239
|
+
"host": {
|
|
240
|
+
"type": "string",
|
|
241
|
+
"pattern": "^did:",
|
|
242
|
+
"maxLength": 2048,
|
|
243
|
+
"description": "The room's host: this community."
|
|
244
|
+
},
|
|
245
|
+
"label": {
|
|
246
|
+
"$ref": "#/$defs/RoomLabel"
|
|
247
|
+
},
|
|
248
|
+
"description": {
|
|
249
|
+
"$ref": "#/$defs/RoomDescription",
|
|
250
|
+
"description": "Absent when the room has none."
|
|
251
|
+
},
|
|
252
|
+
"visibility": {
|
|
253
|
+
"$ref": "#/$defs/Visibility"
|
|
254
|
+
},
|
|
255
|
+
"actions": {
|
|
256
|
+
"$ref": "#/$defs/MemberActions"
|
|
257
|
+
},
|
|
258
|
+
"validUntil": {
|
|
259
|
+
"type": "string",
|
|
260
|
+
"format": "date-time"
|
|
261
|
+
},
|
|
262
|
+
"offeredAt": {
|
|
263
|
+
"type": "string",
|
|
264
|
+
"format": "date-time"
|
|
265
|
+
},
|
|
266
|
+
"state": {
|
|
267
|
+
"type": "string",
|
|
268
|
+
"enum": [
|
|
269
|
+
"open",
|
|
270
|
+
"accepted"
|
|
271
|
+
],
|
|
272
|
+
"description": "`open`: not yet accepted. `accepted`: accepted, kept listed while a repeated accept can still be answered."
|
|
273
|
+
},
|
|
274
|
+
"credentials": {
|
|
275
|
+
"$ref": "#/$defs/OfferCredentials"
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"OfferCredentials": {
|
|
280
|
+
"title": "OfferCredentials",
|
|
281
|
+
"type": "object",
|
|
282
|
+
"additionalProperties": false,
|
|
283
|
+
"required": [
|
|
284
|
+
"invitation",
|
|
285
|
+
"membership",
|
|
286
|
+
"authority"
|
|
287
|
+
],
|
|
288
|
+
"description": "The three credentials the room issued to the member, serialized as rooms/owner/{invite,issue-membership,issue-authority} return them. None is a secret: each names its subject, and a presentation of it must be signed by that subject. The member stores them in their own key holder's vault.",
|
|
289
|
+
"properties": {
|
|
290
|
+
"invitation": {
|
|
291
|
+
"type": "string",
|
|
292
|
+
"minLength": 1,
|
|
293
|
+
"maxLength": 65536,
|
|
294
|
+
"description": "The Verifiable Invitation Credential. On a sealed tier the member's key holder needs it to mint a KeyPackage (rooms/keys/key-package) and to accept the Welcome (rooms/keys/welcome)."
|
|
295
|
+
},
|
|
296
|
+
"membership": {
|
|
297
|
+
"type": "string",
|
|
298
|
+
"minLength": 1,
|
|
299
|
+
"maxLength": 65536,
|
|
300
|
+
"description": "The Verifiable Membership Credential."
|
|
301
|
+
},
|
|
302
|
+
"authority": {
|
|
303
|
+
"type": "string",
|
|
304
|
+
"minLength": 1,
|
|
305
|
+
"maxLength": 65536,
|
|
306
|
+
"description": "The Verifiable Authority Credential granting `actions` until `validUntil`."
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
313
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
314
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
315
|
+
"$ref": "#/$defs/Response",
|
|
316
|
+
"$defs": {
|
|
317
|
+
"Response": {
|
|
318
|
+
"$anchor": "response",
|
|
319
|
+
"title": "VTC Rooms Offers List — response payload",
|
|
320
|
+
"description": "Success response to vtc/rooms/offers/list. Type https://trusttasks.org/spec/vtc/rooms/offers/list/0.3#response. The offers addressed to the caller, and the renewals of admissions they hold, and no one else's.",
|
|
321
|
+
"type": "object",
|
|
322
|
+
"additionalProperties": false,
|
|
323
|
+
"required": [
|
|
324
|
+
"items"
|
|
325
|
+
],
|
|
326
|
+
"properties": {
|
|
327
|
+
"items": {
|
|
328
|
+
"type": "array",
|
|
329
|
+
"maxItems": 100,
|
|
330
|
+
"items": {
|
|
331
|
+
"$ref": "#/$defs/OfferV2"
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
"renewals": {
|
|
335
|
+
"type": "array",
|
|
336
|
+
"maxItems": 100,
|
|
337
|
+
"description": "Renewals of admissions the caller holds, each with the two credentials to store in place of the ones it renews. Present only on the page answered without a `cursor`, in full; absent on every later page and when there are none.",
|
|
338
|
+
"items": {
|
|
339
|
+
"$ref": "#/$defs/Renewal"
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
"nextCursor": {
|
|
343
|
+
"type": "string",
|
|
344
|
+
"minLength": 1,
|
|
345
|
+
"maxLength": 1024,
|
|
346
|
+
"description": "Present when more remain; pass it as `cursor`."
|
|
347
|
+
},
|
|
348
|
+
"ext": {
|
|
349
|
+
"$ref": "#/$defs/Ext"
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
"Ext": {
|
|
354
|
+
"title": "Ext",
|
|
355
|
+
"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.",
|
|
356
|
+
"type": "object",
|
|
357
|
+
"minProperties": 1,
|
|
358
|
+
"additionalProperties": true,
|
|
359
|
+
"propertyNames": {
|
|
360
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
"Renewal": {
|
|
364
|
+
"title": "Renewal",
|
|
365
|
+
"type": "object",
|
|
366
|
+
"additionalProperties": false,
|
|
367
|
+
"required": [
|
|
368
|
+
"roomId",
|
|
369
|
+
"host",
|
|
370
|
+
"label",
|
|
371
|
+
"visibility",
|
|
372
|
+
"actions",
|
|
373
|
+
"validUntil",
|
|
374
|
+
"renews",
|
|
375
|
+
"issuedAt",
|
|
376
|
+
"credentials"
|
|
377
|
+
],
|
|
378
|
+
"description": "What vtc/rooms/offers/list/0.3 returns in `renewals`: a renewal of an admission the member already holds, as the member it is addressed to sees it. `label` and `description` are the room's as they stand when it is read.",
|
|
379
|
+
"properties": {
|
|
380
|
+
"roomId": {
|
|
381
|
+
"type": "string",
|
|
382
|
+
"minLength": 1,
|
|
383
|
+
"maxLength": 512
|
|
384
|
+
},
|
|
385
|
+
"host": {
|
|
386
|
+
"type": "string",
|
|
387
|
+
"pattern": "^did:",
|
|
388
|
+
"maxLength": 2048,
|
|
389
|
+
"description": "The room's host: this community."
|
|
390
|
+
},
|
|
391
|
+
"label": {
|
|
392
|
+
"$ref": "#/$defs/RoomLabel"
|
|
393
|
+
},
|
|
394
|
+
"description": {
|
|
395
|
+
"$ref": "#/$defs/RoomDescription",
|
|
396
|
+
"description": "Absent when the room has none."
|
|
397
|
+
},
|
|
398
|
+
"visibility": {
|
|
399
|
+
"$ref": "#/$defs/Visibility"
|
|
400
|
+
},
|
|
401
|
+
"actions": {
|
|
402
|
+
"$ref": "#/$defs/MemberActions"
|
|
403
|
+
},
|
|
404
|
+
"validUntil": {
|
|
405
|
+
"type": "string",
|
|
406
|
+
"format": "date-time",
|
|
407
|
+
"description": "When the renewed authority expires."
|
|
408
|
+
},
|
|
409
|
+
"renews": {
|
|
410
|
+
"type": "string",
|
|
411
|
+
"format": "date-time",
|
|
412
|
+
"description": "When the authority it replaces expires: the renewal is listed until then, or until a later renewal or the member's removal supersedes it."
|
|
413
|
+
},
|
|
414
|
+
"issuedAt": {
|
|
415
|
+
"type": "string",
|
|
416
|
+
"format": "date-time"
|
|
417
|
+
},
|
|
418
|
+
"credentials": {
|
|
419
|
+
"$ref": "#/$defs/RenewalCredentials"
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
"RenewalCredentials": {
|
|
424
|
+
"title": "RenewalCredentials",
|
|
425
|
+
"type": "object",
|
|
426
|
+
"additionalProperties": false,
|
|
427
|
+
"required": [
|
|
428
|
+
"membership",
|
|
429
|
+
"authority"
|
|
430
|
+
],
|
|
431
|
+
"description": "The two credentials a renewal replaces, serialized as rooms/owner/{issue-membership,issue-authority} return them: a membership and an authority granting the same actions until the renewal's `validUntil`. No invitation: the member is already admitted, and a renewal never opens a second way in. The member's surface stores each with the member's key holder **in place of** the one it renews, never beside it.",
|
|
432
|
+
"properties": {
|
|
433
|
+
"membership": {
|
|
434
|
+
"type": "string",
|
|
435
|
+
"minLength": 1,
|
|
436
|
+
"maxLength": 65536,
|
|
437
|
+
"description": "The renewed Verifiable Membership Credential."
|
|
438
|
+
},
|
|
439
|
+
"authority": {
|
|
440
|
+
"type": "string",
|
|
441
|
+
"minLength": 1,
|
|
442
|
+
"maxLength": 65536,
|
|
443
|
+
"description": "The renewed Verifiable Authority Credential granting `actions` until `validUntil`."
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
"MemberActions": {
|
|
448
|
+
"title": "MemberActions",
|
|
449
|
+
"type": "array",
|
|
450
|
+
"minItems": 1,
|
|
451
|
+
"maxItems": 3,
|
|
452
|
+
"uniqueItems": true,
|
|
453
|
+
"items": {
|
|
454
|
+
"$ref": "#/$defs/MemberAction"
|
|
455
|
+
},
|
|
456
|
+
"description": "The actions granted, at least one. An empty list confers nothing rather than everything, and a schema that allowed it would make the more dangerous reading available to a careless consumer."
|
|
457
|
+
},
|
|
458
|
+
"MemberAction": {
|
|
459
|
+
"title": "MemberAction",
|
|
460
|
+
"type": "string",
|
|
461
|
+
"enum": [
|
|
462
|
+
"read",
|
|
463
|
+
"write",
|
|
464
|
+
"curate"
|
|
465
|
+
],
|
|
466
|
+
"description": "What a member of a community-owned room may do there. `admin` is not among them: minting epochs, admitting and removing members are the community's, as the room's owner, and are exercised through the vtc/rooms/community/* tasks rather than by any member's credential. `curate` is not implied by `write`."
|
|
467
|
+
},
|
|
468
|
+
"RoomDescription": {
|
|
469
|
+
"title": "RoomDescription",
|
|
470
|
+
"type": "string",
|
|
471
|
+
"minLength": 1,
|
|
472
|
+
"maxLength": 1000,
|
|
473
|
+
"description": "What the room is for, in a sentence or a short paragraph, written by an administrator: shown to administrators holding `vtc.rooms.manage` and to the members the room is offered to. Plain text — a consumer renders it as text, never as markup. Like `RoomLabel`, it is the community's own record as the room's owner: not part of the room's identity and never in anything a room's host can read. From `vtc/rooms/community/create` 0.3 and `vtc/rooms/community/update` 0.2 the community also writes it, through its own VTA, as the `description` of the room's own profile (`RoomProfile` in rooms/_shared), sealed inside the room for its members; earlier versions keep it out of the room altogether. It MUST NOT carry personal data or a credential, and a reader MUST NOT treat it as instructions."
|
|
474
|
+
},
|
|
475
|
+
"RoomLabel": {
|
|
476
|
+
"title": "RoomLabel",
|
|
477
|
+
"type": "string",
|
|
478
|
+
"minLength": 1,
|
|
479
|
+
"maxLength": 128,
|
|
480
|
+
"description": "A name for the room, chosen by an administrator: shown to administrators and to the members a room is offered to. Not part of the room's identity and never in anything a room's host can read. From `vtc/rooms/community/create` 0.3 and `vtc/rooms/community/update` 0.2 the community also writes it, through its own VTA, as the `name` of the room's own profile (`RoomProfile` in rooms/_shared), sealed inside the room for its members; earlier versions keep it out of the room altogether. MUST NOT carry personal data."
|
|
481
|
+
},
|
|
482
|
+
"Visibility": {
|
|
483
|
+
"title": "Visibility",
|
|
484
|
+
"type": "string",
|
|
485
|
+
"enum": [
|
|
486
|
+
"open",
|
|
487
|
+
"attributed",
|
|
488
|
+
"private"
|
|
489
|
+
],
|
|
490
|
+
"description": "How much of a room its host can see, fixed at creation and immutable thereafter. `open`: records are cleartext, searchable and fully audited. `attributed`: record content is sealed, and the host still learns which member acted. `private`: content is sealed and membership is presented in zero knowledge, so the host verifies that a member acted without learning which. Immutable because a downgrade cannot un-see cleartext and an upgrade would protect only what came after while presenting as though it protected everything."
|
|
491
|
+
},
|
|
492
|
+
"OfferV2": {
|
|
493
|
+
"title": "OfferV2",
|
|
494
|
+
"type": "object",
|
|
495
|
+
"additionalProperties": false,
|
|
496
|
+
"required": [
|
|
497
|
+
"roomId",
|
|
498
|
+
"host",
|
|
499
|
+
"label",
|
|
500
|
+
"visibility",
|
|
501
|
+
"actions",
|
|
502
|
+
"validUntil",
|
|
503
|
+
"offeredAt",
|
|
504
|
+
"state",
|
|
505
|
+
"credentials"
|
|
506
|
+
],
|
|
507
|
+
"description": "What vtc/rooms/offers/list/0.2 returns: `Offer` plus `description`. A separate definition, not a change to `Offer`, so that vtc/rooms/offers/list/0.1 keeps the exact shape it published. `label` and `description` are the room's as they stand when the offer is read, not as they stood when it was made.",
|
|
508
|
+
"properties": {
|
|
509
|
+
"roomId": {
|
|
510
|
+
"type": "string",
|
|
511
|
+
"minLength": 1,
|
|
512
|
+
"maxLength": 512
|
|
513
|
+
},
|
|
514
|
+
"host": {
|
|
515
|
+
"type": "string",
|
|
516
|
+
"pattern": "^did:",
|
|
517
|
+
"maxLength": 2048,
|
|
518
|
+
"description": "The room's host: this community."
|
|
519
|
+
},
|
|
520
|
+
"label": {
|
|
521
|
+
"$ref": "#/$defs/RoomLabel"
|
|
522
|
+
},
|
|
523
|
+
"description": {
|
|
524
|
+
"$ref": "#/$defs/RoomDescription",
|
|
525
|
+
"description": "Absent when the room has none."
|
|
526
|
+
},
|
|
527
|
+
"visibility": {
|
|
528
|
+
"$ref": "#/$defs/Visibility"
|
|
529
|
+
},
|
|
530
|
+
"actions": {
|
|
531
|
+
"$ref": "#/$defs/MemberActions"
|
|
532
|
+
},
|
|
533
|
+
"validUntil": {
|
|
534
|
+
"type": "string",
|
|
535
|
+
"format": "date-time"
|
|
536
|
+
},
|
|
537
|
+
"offeredAt": {
|
|
538
|
+
"type": "string",
|
|
539
|
+
"format": "date-time"
|
|
540
|
+
},
|
|
541
|
+
"state": {
|
|
542
|
+
"type": "string",
|
|
543
|
+
"enum": [
|
|
544
|
+
"open",
|
|
545
|
+
"accepted"
|
|
546
|
+
],
|
|
547
|
+
"description": "`open`: not yet accepted. `accepted`: accepted, kept listed while a repeated accept can still be answered."
|
|
548
|
+
},
|
|
549
|
+
"credentials": {
|
|
550
|
+
"$ref": "#/$defs/OfferCredentials"
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
"OfferCredentials": {
|
|
555
|
+
"title": "OfferCredentials",
|
|
556
|
+
"type": "object",
|
|
557
|
+
"additionalProperties": false,
|
|
558
|
+
"required": [
|
|
559
|
+
"invitation",
|
|
560
|
+
"membership",
|
|
561
|
+
"authority"
|
|
562
|
+
],
|
|
563
|
+
"description": "The three credentials the room issued to the member, serialized as rooms/owner/{invite,issue-membership,issue-authority} return them. None is a secret: each names its subject, and a presentation of it must be signed by that subject. The member stores them in their own key holder's vault.",
|
|
564
|
+
"properties": {
|
|
565
|
+
"invitation": {
|
|
566
|
+
"type": "string",
|
|
567
|
+
"minLength": 1,
|
|
568
|
+
"maxLength": 65536,
|
|
569
|
+
"description": "The Verifiable Invitation Credential. On a sealed tier the member's key holder needs it to mint a KeyPackage (rooms/keys/key-package) and to accept the Welcome (rooms/keys/welcome)."
|
|
570
|
+
},
|
|
571
|
+
"membership": {
|
|
572
|
+
"type": "string",
|
|
573
|
+
"minLength": 1,
|
|
574
|
+
"maxLength": 65536,
|
|
575
|
+
"description": "The Verifiable Membership Credential."
|
|
576
|
+
},
|
|
577
|
+
"authority": {
|
|
578
|
+
"type": "string",
|
|
579
|
+
"minLength": 1,
|
|
580
|
+
"maxLength": 65536,
|
|
581
|
+
"description": "The Verifiable Authority Credential granting `actions` until `validUntil`."
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
};
|
|
587
|
+
/**
|
|
588
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
589
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
590
|
+
* per-specification and cannot be derived from the document alone, and
|
|
591
|
+
* item 2 needs the schema this carries.
|
|
592
|
+
*/
|
|
593
|
+
export const SPEC = {
|
|
594
|
+
typeUri: TYPE_URI,
|
|
595
|
+
isBearer: false,
|
|
596
|
+
isProofRequired: true,
|
|
597
|
+
isRecipientRequired: true,
|
|
598
|
+
isIssuedAtRequired: true,
|
|
599
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
600
|
+
};
|
|
601
|
+
/**
|
|
602
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
603
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
604
|
+
* parties (§7.3 item 5).
|
|
605
|
+
*/
|
|
606
|
+
export const RESPONSE_SPEC = {
|
|
607
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
608
|
+
isBearer: false,
|
|
609
|
+
isProofRequired: true,
|
|
610
|
+
isRecipientRequired: true,
|
|
611
|
+
isIssuedAtRequired: true,
|
|
612
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
613
|
+
};
|
|
614
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/vtc/rooms/offers/list/0.3/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAwCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,uDAAgE,CAAC;AAKzF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,gEAAyE,CAAC;AAK3G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,uDAAuD;IAC9D,OAAO,EAAE,iCAAiC;IAC1C,MAAM,EAAE,QAA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