@openvtc/trust-tasks 0.26.15 → 0.26.17

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +104 -0
  2. package/dist/_shared/components.d.ts +35 -0
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +6 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +6 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/rooms/keys/act/0.4/payload.d.ts +546 -0
  9. package/dist/rooms/keys/act/0.4/payload.d.ts.map +1 -0
  10. package/dist/rooms/keys/act/0.4/payload.js +305 -0
  11. package/dist/rooms/keys/act/0.4/payload.js.map +1 -0
  12. package/dist/rooms/keys/act/0.5/payload.d.ts +546 -0
  13. package/dist/rooms/keys/act/0.5/payload.d.ts.map +1 -0
  14. package/dist/rooms/keys/act/0.5/payload.js +305 -0
  15. package/dist/rooms/keys/act/0.5/payload.js.map +1 -0
  16. package/dist/rooms/keys/key-package/0.2/payload.d.ts +304 -0
  17. package/dist/rooms/keys/key-package/0.2/payload.d.ts.map +1 -0
  18. package/dist/rooms/keys/key-package/0.2/payload.js +166 -0
  19. package/dist/rooms/keys/key-package/0.2/payload.js.map +1 -0
  20. package/dist/vtc/_shared/0.1/community-room.d.ts +1 -1
  21. package/dist/vtc/_shared/0.1/community-room.d.ts.map +1 -1
  22. package/dist/vtc/community/theme/show/0.1/payload.d.ts +238 -0
  23. package/dist/vtc/community/theme/show/0.1/payload.d.ts.map +1 -0
  24. package/dist/vtc/community/theme/show/0.1/payload.js +135 -0
  25. package/dist/vtc/community/theme/show/0.1/payload.js.map +1 -0
  26. package/dist/vtc/community/theme/update/0.1/payload.d.ts +286 -0
  27. package/dist/vtc/community/theme/update/0.1/payload.d.ts.map +1 -0
  28. package/dist/vtc/community/theme/update/0.1/payload.js +157 -0
  29. package/dist/vtc/community/theme/update/0.1/payload.js.map +1 -0
  30. package/dist/vtc/rooms/memberships/list/0.1/payload.d.ts +696 -0
  31. package/dist/vtc/rooms/memberships/list/0.1/payload.d.ts.map +1 -0
  32. package/dist/vtc/rooms/memberships/list/0.1/payload.js +402 -0
  33. package/dist/vtc/rooms/memberships/list/0.1/payload.js.map +1 -0
  34. package/package.json +1 -1
  35. package/src/_shared/components.ts +35 -0
  36. package/src/index.ts +6 -0
  37. package/src/rooms/keys/act/0.4/payload.ts +380 -0
  38. package/src/rooms/keys/act/0.5/payload.ts +380 -0
  39. package/src/rooms/keys/key-package/0.2/payload.ts +219 -0
  40. package/src/vtc/_shared/0.1/community-room.ts +1 -1
  41. package/src/vtc/community/theme/show/0.1/payload.ts +170 -0
  42. package/src/vtc/community/theme/update/0.1/payload.ts +204 -0
  43. package/src/vtc/rooms/memberships/list/0.1/payload.ts +445 -0
@@ -0,0 +1,166 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/rooms/keys/key-package/0.2/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/rooms/keys/key-package/0.2";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/keys/key-package/0.2#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/rooms/keys/key-package/0.2",
21
+ "title": "Rooms Keys Key-Package — payload",
22
+ "description": "An invited party asks the agent that will hold its room keys for the MLS KeyPackage the room's owner adds to the group: the one it already holds for this room, member and invitation, or a new one. The private half stays with the agent; only the KeyPackage travels.",
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": [
26
+ "roomId",
27
+ "invitation"
28
+ ],
29
+ "properties": {
30
+ "roomId": {
31
+ "type": "string",
32
+ "minLength": 1,
33
+ "maxLength": 512,
34
+ "description": "The room to mint a KeyPackage for. Scoped per room rather than reused across rooms: one KeyPackage presented to two rooms correlates a member across them, which is the linkage a `private` room exists to deny."
35
+ },
36
+ "invitation": {
37
+ "type": "string",
38
+ "minLength": 1,
39
+ "maxLength": 65536,
40
+ "description": "The invitation credential (VIC) the room issued to the member, serialized per the governing profile. It authorizes the mint, names the member — its subject — and, with the room and the member, identifies the KeyPackage the recipient returns again while it is outstanding."
41
+ },
42
+ "ext": {
43
+ "$ref": "#/$defs/Ext",
44
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
45
+ }
46
+ },
47
+ "$defs": {
48
+ "Response": {
49
+ "$anchor": "response",
50
+ "title": "Rooms Keys Key-Package — response payload",
51
+ "description": "Success response to rooms/keys/key-package. Type https://trusttasks.org/spec/rooms/keys/key-package/0.2#response.",
52
+ "type": "object",
53
+ "additionalProperties": false,
54
+ "required": [
55
+ "keyPackage",
56
+ "expiresAt",
57
+ "alreadyMinted"
58
+ ],
59
+ "properties": {
60
+ "keyPackage": {
61
+ "type": "string",
62
+ "minLength": 1,
63
+ "description": "The MLS KeyPackage, base64url. Public: it carries a signature key, an HPKE init key and the leaf's credential, and nothing that opens anything."
64
+ },
65
+ "expiresAt": {
66
+ "type": "string",
67
+ "format": "date-time",
68
+ "description": "When the recipient stops holding the KeyPackage's private half. The same instant on every answer that returns the same KeyPackage: returning it again does not extend it."
69
+ },
70
+ "alreadyMinted": {
71
+ "type": "boolean",
72
+ "description": "`true` when the recipient returned a KeyPackage it had already minted for this room, member and invitation and still holds; `false` when it minted this one for this request."
73
+ },
74
+ "ext": {
75
+ "$ref": "#/$defs/Ext"
76
+ }
77
+ }
78
+ },
79
+ "Ext": {
80
+ "title": "Ext",
81
+ "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.",
82
+ "type": "object",
83
+ "minProperties": 1,
84
+ "additionalProperties": true,
85
+ "propertyNames": {
86
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
87
+ }
88
+ }
89
+ }
90
+ };
91
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
92
+ export const RESPONSE_PAYLOAD_SCHEMA = {
93
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
94
+ "$ref": "#/$defs/Response",
95
+ "$defs": {
96
+ "Response": {
97
+ "$anchor": "response",
98
+ "title": "Rooms Keys Key-Package — response payload",
99
+ "description": "Success response to rooms/keys/key-package. Type https://trusttasks.org/spec/rooms/keys/key-package/0.2#response.",
100
+ "type": "object",
101
+ "additionalProperties": false,
102
+ "required": [
103
+ "keyPackage",
104
+ "expiresAt",
105
+ "alreadyMinted"
106
+ ],
107
+ "properties": {
108
+ "keyPackage": {
109
+ "type": "string",
110
+ "minLength": 1,
111
+ "description": "The MLS KeyPackage, base64url. Public: it carries a signature key, an HPKE init key and the leaf's credential, and nothing that opens anything."
112
+ },
113
+ "expiresAt": {
114
+ "type": "string",
115
+ "format": "date-time",
116
+ "description": "When the recipient stops holding the KeyPackage's private half. The same instant on every answer that returns the same KeyPackage: returning it again does not extend it."
117
+ },
118
+ "alreadyMinted": {
119
+ "type": "boolean",
120
+ "description": "`true` when the recipient returned a KeyPackage it had already minted for this room, member and invitation and still holds; `false` when it minted this one for this request."
121
+ },
122
+ "ext": {
123
+ "$ref": "#/$defs/Ext"
124
+ }
125
+ }
126
+ },
127
+ "Ext": {
128
+ "title": "Ext",
129
+ "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.",
130
+ "type": "object",
131
+ "minProperties": 1,
132
+ "additionalProperties": true,
133
+ "propertyNames": {
134
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
135
+ }
136
+ }
137
+ }
138
+ };
139
+ /**
140
+ * SPEC.md §7.2 policy for the request variant, from this specification's
141
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
142
+ * per-specification and cannot be derived from the document alone, and
143
+ * item 2 needs the schema this carries.
144
+ */
145
+ export const SPEC = {
146
+ typeUri: TYPE_URI,
147
+ isBearer: false,
148
+ isProofRequired: true,
149
+ isRecipientRequired: true,
150
+ isIssuedAtRequired: true,
151
+ payloadSchema: PAYLOAD_SCHEMA,
152
+ };
153
+ /**
154
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
155
+ * tracks the *issuer* party's requirement because a response swaps the
156
+ * parties (§7.3 item 5).
157
+ */
158
+ export const RESPONSE_SPEC = {
159
+ typeUri: RESPONSE_TYPE_URI,
160
+ isBearer: false,
161
+ isProofRequired: true,
162
+ isRecipientRequired: true,
163
+ isIssuedAtRequired: true,
164
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
165
+ };
166
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/rooms/keys/key-package/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA4CH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,wDAAiE,CAAC;AAK1F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,iEAA0E,CAAC;AAK5G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,wDAAwD;IAC/D,OAAO,EAAE,kCAAkC;IAC3C,aAAa,EAAE,0QAA0Q;IACzR,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,QAAQ;QACR,YAAY;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,EAAE,uBAAuB;CAC9B,CAAC"}
@@ -12,5 +12,5 @@ export interface VTCSharedCommunityOwnedRoomDefinitions {
12
12
  * The definitions this shared schema publishes, hoisted to one declaration each.
13
13
  * See "../../../_shared/components.js".
14
14
  */
15
- export type { CommunityRoom, CommunityRoomV2, MemberAction, MemberActions, MemberState, Offer, OfferCredentials, OfferV2, Reason, RoomDescription, RoomLabel, RoomMember, RoomTag, RoomTags } from "../../../_shared/components.js";
15
+ export type { CommunityRoom, CommunityRoomV2, MemberAction, MemberActions, MemberState, Offer, OfferCredentials, OfferV2, Reason, RoomDescription, RoomLabel, RoomMember, RoomMembership, RoomTag, RoomTags } from "../../../_shared/components.js";
16
16
  //# sourceMappingURL=community-room.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"community-room.d.ts","sourceRoot":"","sources":["../../../../src/vtc/_shared/0.1/community-room.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,sCAAsC;IACrD,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED;;;GAGG;AACH,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC"}
1
+ {"version":3,"file":"community-room.d.ts","sourceRoot":"","sources":["../../../../src/vtc/_shared/0.1/community-room.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,sCAAsC;IACrD,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED;;;GAGG;AACH,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,SAAS,EAAE,UAAU,EAAE,cAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,238 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/community/theme/show/0.1/payload.schema.json
4
+ */
5
+ import type { Ext } from "../../../../../_shared/components.js";
6
+ /**
7
+ * An empty request: the community has one theme. The outer document members are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface VTCCommunityThemeShowPayload {
10
+ ext?: Ext;
11
+ }
12
+ export interface VTCCommunityThemeShowResponsePayload {
13
+ /**
14
+ * The stored theme stylesheet, in the theme profile of vtc/community/theme/update/0.1. The empty string when the community has none.
15
+ */
16
+ stylesheet: string;
17
+ /**
18
+ * When the stylesheet was last replaced. Absent when the community never set one.
19
+ */
20
+ updatedAt?: string;
21
+ ext?: Ext;
22
+ }
23
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
24
+ export type { Ext };
25
+ /** Trust Task type URI. */
26
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/community/theme/show/0.1";
27
+ /** Stable alias for this specification's request payload shape. */
28
+ export type Payload = VTCCommunityThemeShowPayload;
29
+ /** Trust Task response type URI (request type URI + "#response"). */
30
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/community/theme/show/0.1#response";
31
+ /** Stable alias for this specification's success-response payload shape. */
32
+ export type Response = VTCCommunityThemeShowResponsePayload;
33
+ /**
34
+ * This specification's payload schema, as a value.
35
+ *
36
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
37
+ * rather than only as a `.json` file because TypeScript types are erased
38
+ * at runtime: without a schema a consumer has nothing to validate, and
39
+ * every REQUIRED payload member is optional in practice. Cross-file
40
+ * `$ref`s are already inlined, so it needs no resolver.
41
+ */
42
+ export declare const PAYLOAD_SCHEMA: {
43
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
44
+ readonly $id: "https://trusttasks.org/spec/vtc/community/theme/show/0.1";
45
+ readonly title: "VTC Community — Theme — Show — payload";
46
+ readonly description: "An empty request: the community has one theme. The outer document members are owned by the framework — SPEC §6.3.";
47
+ readonly type: "object";
48
+ readonly additionalProperties: false;
49
+ readonly properties: {
50
+ readonly ext: {
51
+ readonly $ref: "#/$defs/Ext";
52
+ };
53
+ };
54
+ readonly $defs: {
55
+ readonly Response: {
56
+ readonly $anchor: "response";
57
+ readonly title: "VTC Community — Theme — Show — response payload";
58
+ readonly type: "object";
59
+ readonly additionalProperties: false;
60
+ readonly required: readonly ["stylesheet"];
61
+ readonly properties: {
62
+ readonly stylesheet: {
63
+ readonly type: "string";
64
+ readonly maxLength: 32768;
65
+ readonly description: "The stored theme stylesheet, in the theme profile of vtc/community/theme/update/0.1. The empty string when the community has none.";
66
+ };
67
+ readonly updatedAt: {
68
+ readonly type: "string";
69
+ readonly format: "date-time";
70
+ readonly description: "When the stylesheet was last replaced. Absent when the community never set one.";
71
+ };
72
+ readonly ext: {
73
+ readonly $ref: "#/$defs/Ext";
74
+ };
75
+ };
76
+ };
77
+ readonly Ext: {
78
+ readonly title: "Ext";
79
+ 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.";
80
+ readonly type: "object";
81
+ readonly minProperties: 1;
82
+ readonly additionalProperties: true;
83
+ readonly propertyNames: {
84
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
85
+ };
86
+ };
87
+ };
88
+ };
89
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
90
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
91
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
92
+ readonly $ref: "#/$defs/Response";
93
+ readonly $defs: {
94
+ readonly Response: {
95
+ readonly $anchor: "response";
96
+ readonly title: "VTC Community — Theme — Show — response payload";
97
+ readonly type: "object";
98
+ readonly additionalProperties: false;
99
+ readonly required: readonly ["stylesheet"];
100
+ readonly properties: {
101
+ readonly stylesheet: {
102
+ readonly type: "string";
103
+ readonly maxLength: 32768;
104
+ readonly description: "The stored theme stylesheet, in the theme profile of vtc/community/theme/update/0.1. The empty string when the community has none.";
105
+ };
106
+ readonly updatedAt: {
107
+ readonly type: "string";
108
+ readonly format: "date-time";
109
+ readonly description: "When the stylesheet was last replaced. Absent when the community never set one.";
110
+ };
111
+ readonly ext: {
112
+ readonly $ref: "#/$defs/Ext";
113
+ };
114
+ };
115
+ };
116
+ readonly Ext: {
117
+ readonly title: "Ext";
118
+ 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.";
119
+ readonly type: "object";
120
+ readonly minProperties: 1;
121
+ readonly additionalProperties: true;
122
+ readonly propertyNames: {
123
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
124
+ };
125
+ };
126
+ };
127
+ };
128
+ /**
129
+ * SPEC.md §7.2 policy for the request variant, from this specification's
130
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
131
+ * per-specification and cannot be derived from the document alone, and
132
+ * item 2 needs the schema this carries.
133
+ */
134
+ export declare const SPEC: {
135
+ readonly typeUri: "https://trusttasks.org/spec/vtc/community/theme/show/0.1";
136
+ readonly isBearer: false;
137
+ readonly isProofRequired: false;
138
+ readonly isRecipientRequired: true;
139
+ readonly isIssuedAtRequired: false;
140
+ readonly payloadSchema: {
141
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
142
+ readonly $id: "https://trusttasks.org/spec/vtc/community/theme/show/0.1";
143
+ readonly title: "VTC Community — Theme — Show — payload";
144
+ readonly description: "An empty request: the community has one theme. The outer document members are owned by the framework — SPEC §6.3.";
145
+ readonly type: "object";
146
+ readonly additionalProperties: false;
147
+ readonly properties: {
148
+ readonly ext: {
149
+ readonly $ref: "#/$defs/Ext";
150
+ };
151
+ };
152
+ readonly $defs: {
153
+ readonly Response: {
154
+ readonly $anchor: "response";
155
+ readonly title: "VTC Community — Theme — Show — response payload";
156
+ readonly type: "object";
157
+ readonly additionalProperties: false;
158
+ readonly required: readonly ["stylesheet"];
159
+ readonly properties: {
160
+ readonly stylesheet: {
161
+ readonly type: "string";
162
+ readonly maxLength: 32768;
163
+ readonly description: "The stored theme stylesheet, in the theme profile of vtc/community/theme/update/0.1. The empty string when the community has none.";
164
+ };
165
+ readonly updatedAt: {
166
+ readonly type: "string";
167
+ readonly format: "date-time";
168
+ readonly description: "When the stylesheet was last replaced. Absent when the community never set one.";
169
+ };
170
+ readonly ext: {
171
+ readonly $ref: "#/$defs/Ext";
172
+ };
173
+ };
174
+ };
175
+ readonly Ext: {
176
+ readonly title: "Ext";
177
+ 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.";
178
+ readonly type: "object";
179
+ readonly minProperties: 1;
180
+ readonly additionalProperties: true;
181
+ readonly propertyNames: {
182
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
183
+ };
184
+ };
185
+ };
186
+ };
187
+ };
188
+ /**
189
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
190
+ * tracks the *issuer* party's requirement because a response swaps the
191
+ * parties (§7.3 item 5).
192
+ */
193
+ export declare const RESPONSE_SPEC: {
194
+ readonly typeUri: "https://trusttasks.org/spec/vtc/community/theme/show/0.1#response";
195
+ readonly isBearer: false;
196
+ readonly isProofRequired: false;
197
+ readonly isRecipientRequired: false;
198
+ readonly isIssuedAtRequired: false;
199
+ readonly payloadSchema: {
200
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
201
+ readonly $ref: "#/$defs/Response";
202
+ readonly $defs: {
203
+ readonly Response: {
204
+ readonly $anchor: "response";
205
+ readonly title: "VTC Community — Theme — Show — response payload";
206
+ readonly type: "object";
207
+ readonly additionalProperties: false;
208
+ readonly required: readonly ["stylesheet"];
209
+ readonly properties: {
210
+ readonly stylesheet: {
211
+ readonly type: "string";
212
+ readonly maxLength: 32768;
213
+ readonly description: "The stored theme stylesheet, in the theme profile of vtc/community/theme/update/0.1. The empty string when the community has none.";
214
+ };
215
+ readonly updatedAt: {
216
+ readonly type: "string";
217
+ readonly format: "date-time";
218
+ readonly description: "When the stylesheet was last replaced. Absent when the community never set one.";
219
+ };
220
+ readonly ext: {
221
+ readonly $ref: "#/$defs/Ext";
222
+ };
223
+ };
224
+ };
225
+ readonly Ext: {
226
+ readonly title: "Ext";
227
+ 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.";
228
+ readonly type: "object";
229
+ readonly minProperties: 1;
230
+ readonly additionalProperties: true;
231
+ readonly propertyNames: {
232
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
233
+ };
234
+ };
235
+ };
236
+ };
237
+ };
238
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vtc/community/theme/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAGhE;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD,MAAM,WAAW,oCAAoC;IACnD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,CAAC;AAEpB,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,0DAAmE,CAAC;AAE5F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,4BAA4B,CAAC;AAEnD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,mEAA4E,CAAC;AAE9G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,oCAAoC,CAAC;AAE5D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuC1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
@@ -0,0 +1,135 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/community/theme/show/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vtc/community/theme/show/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/community/theme/show/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/vtc/community/theme/show/0.1",
21
+ "title": "VTC Community — Theme — Show — payload",
22
+ "description": "An empty request: the community has one theme. The outer document members are owned by the framework — SPEC §6.3.",
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "properties": {
26
+ "ext": {
27
+ "$ref": "#/$defs/Ext"
28
+ }
29
+ },
30
+ "$defs": {
31
+ "Response": {
32
+ "$anchor": "response",
33
+ "title": "VTC Community — Theme — Show — response payload",
34
+ "type": "object",
35
+ "additionalProperties": false,
36
+ "required": [
37
+ "stylesheet"
38
+ ],
39
+ "properties": {
40
+ "stylesheet": {
41
+ "type": "string",
42
+ "maxLength": 32768,
43
+ "description": "The stored theme stylesheet, in the theme profile of vtc/community/theme/update/0.1. The empty string when the community has none."
44
+ },
45
+ "updatedAt": {
46
+ "type": "string",
47
+ "format": "date-time",
48
+ "description": "When the stylesheet was last replaced. Absent when the community never set one."
49
+ },
50
+ "ext": {
51
+ "$ref": "#/$defs/Ext"
52
+ }
53
+ }
54
+ },
55
+ "Ext": {
56
+ "title": "Ext",
57
+ "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.",
58
+ "type": "object",
59
+ "minProperties": 1,
60
+ "additionalProperties": true,
61
+ "propertyNames": {
62
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
63
+ }
64
+ }
65
+ }
66
+ };
67
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
68
+ export const RESPONSE_PAYLOAD_SCHEMA = {
69
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
70
+ "$ref": "#/$defs/Response",
71
+ "$defs": {
72
+ "Response": {
73
+ "$anchor": "response",
74
+ "title": "VTC Community — Theme — Show — response payload",
75
+ "type": "object",
76
+ "additionalProperties": false,
77
+ "required": [
78
+ "stylesheet"
79
+ ],
80
+ "properties": {
81
+ "stylesheet": {
82
+ "type": "string",
83
+ "maxLength": 32768,
84
+ "description": "The stored theme stylesheet, in the theme profile of vtc/community/theme/update/0.1. The empty string when the community has none."
85
+ },
86
+ "updatedAt": {
87
+ "type": "string",
88
+ "format": "date-time",
89
+ "description": "When the stylesheet was last replaced. Absent when the community never set one."
90
+ },
91
+ "ext": {
92
+ "$ref": "#/$defs/Ext"
93
+ }
94
+ }
95
+ },
96
+ "Ext": {
97
+ "title": "Ext",
98
+ "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.",
99
+ "type": "object",
100
+ "minProperties": 1,
101
+ "additionalProperties": true,
102
+ "propertyNames": {
103
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
104
+ }
105
+ }
106
+ }
107
+ };
108
+ /**
109
+ * SPEC.md §7.2 policy for the request variant, from this specification's
110
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
111
+ * per-specification and cannot be derived from the document alone, and
112
+ * item 2 needs the schema this carries.
113
+ */
114
+ export const SPEC = {
115
+ typeUri: TYPE_URI,
116
+ isBearer: false,
117
+ isProofRequired: false,
118
+ isRecipientRequired: true,
119
+ isIssuedAtRequired: false,
120
+ payloadSchema: PAYLOAD_SCHEMA,
121
+ };
122
+ /**
123
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
124
+ * tracks the *issuer* party's requirement because a response swaps the
125
+ * parties (§7.3 item 5).
126
+ */
127
+ export const RESPONSE_SPEC = {
128
+ typeUri: RESPONSE_TYPE_URI,
129
+ isBearer: false,
130
+ isProofRequired: false,
131
+ isRecipientRequired: false,
132
+ isIssuedAtRequired: false,
133
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
134
+ };
135
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/vtc/community/theme/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA0BH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,0DAAmE,CAAC;AAK5F,qEA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