@openvtc/trust-tasks 0.21.11 → 0.21.13

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 (208) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/dist/_framework/0.4/framework.d.ts +1 -1
  3. package/dist/_framework/0.4/framework.d.ts.map +1 -1
  4. package/dist/_shared/components.d.ts +371 -0
  5. package/dist/_shared/components.d.ts.map +1 -1
  6. package/dist/auth/_shared/0.1/signing-key.d.ts +16 -0
  7. package/dist/auth/_shared/0.1/signing-key.d.ts.map +1 -0
  8. package/dist/auth/_shared/0.1/signing-key.js +6 -0
  9. package/dist/auth/_shared/0.1/signing-key.js.map +1 -0
  10. package/dist/auth/signing-key/enroll/0.1/payload.d.ts +545 -0
  11. package/dist/auth/signing-key/enroll/0.1/payload.d.ts.map +1 -0
  12. package/dist/auth/signing-key/enroll/0.1/payload.js +307 -0
  13. package/dist/auth/signing-key/enroll/0.1/payload.js.map +1 -0
  14. package/dist/auth/signing-key/list/0.1/payload.d.ts +509 -0
  15. package/dist/auth/signing-key/list/0.1/payload.d.ts.map +1 -0
  16. package/dist/auth/signing-key/list/0.1/payload.js +289 -0
  17. package/dist/auth/signing-key/list/0.1/payload.js.map +1 -0
  18. package/dist/auth/signing-key/revoke/0.1/payload.d.ts +292 -0
  19. package/dist/auth/signing-key/revoke/0.1/payload.d.ts.map +1 -0
  20. package/dist/auth/signing-key/revoke/0.1/payload.js +167 -0
  21. package/dist/auth/signing-key/revoke/0.1/payload.js.map +1 -0
  22. package/dist/index.d.ts +39 -0
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +39 -0
  25. package/dist/index.js.map +1 -1
  26. package/dist/vta/contexts/update-did/1.1/payload.d.ts +388 -0
  27. package/dist/vta/contexts/update-did/1.1/payload.d.ts.map +1 -0
  28. package/dist/vta/contexts/update-did/1.1/payload.js +227 -0
  29. package/dist/vta/contexts/update-did/1.1/payload.js.map +1 -0
  30. package/dist/vtc/_shared/0.1/community-presentation.d.ts +16 -0
  31. package/dist/vtc/_shared/0.1/community-presentation.d.ts.map +1 -0
  32. package/dist/vtc/_shared/0.1/community-presentation.js +6 -0
  33. package/dist/vtc/_shared/0.1/community-presentation.js.map +1 -0
  34. package/dist/vtc/_shared/0.1/relationship-lifecycle.d.ts +16 -0
  35. package/dist/vtc/_shared/0.1/relationship-lifecycle.d.ts.map +1 -0
  36. package/dist/vtc/_shared/0.1/relationship-lifecycle.js +6 -0
  37. package/dist/vtc/_shared/0.1/relationship-lifecycle.js.map +1 -0
  38. package/dist/vtc/_shared/0.1/schema-registry.d.ts +16 -0
  39. package/dist/vtc/_shared/0.1/schema-registry.d.ts.map +1 -0
  40. package/dist/vtc/_shared/0.1/schema-registry.js +6 -0
  41. package/dist/vtc/_shared/0.1/schema-registry.js.map +1 -0
  42. package/dist/vtc/_shared/0.1/vetting-auto-grant.d.ts +16 -0
  43. package/dist/vtc/_shared/0.1/vetting-auto-grant.d.ts.map +1 -0
  44. package/dist/vtc/_shared/0.1/vetting-auto-grant.js +6 -0
  45. package/dist/vtc/_shared/0.1/vetting-auto-grant.js.map +1 -0
  46. package/dist/vtc/_shared/0.1/website-transfer.d.ts +16 -0
  47. package/dist/vtc/_shared/0.1/website-transfer.d.ts.map +1 -0
  48. package/dist/vtc/_shared/0.1/website-transfer.js +6 -0
  49. package/dist/vtc/_shared/0.1/website-transfer.js.map +1 -0
  50. package/dist/vtc/community/branding/show/0.1/payload.d.ts +319 -0
  51. package/dist/vtc/community/branding/show/0.1/payload.d.ts.map +1 -0
  52. package/dist/vtc/community/branding/show/0.1/payload.js +179 -0
  53. package/dist/vtc/community/branding/show/0.1/payload.js.map +1 -0
  54. package/dist/vtc/community/branding/update/0.1/payload.d.ts +328 -0
  55. package/dist/vtc/community/branding/update/0.1/payload.d.ts.map +1 -0
  56. package/dist/vtc/community/branding/update/0.1/payload.js +185 -0
  57. package/dist/vtc/community/branding/update/0.1/payload.js.map +1 -0
  58. package/dist/vtc/community/join-discovery/show/0.1/payload.d.ts +267 -0
  59. package/dist/vtc/community/join-discovery/show/0.1/payload.d.ts.map +1 -0
  60. package/dist/vtc/community/join-discovery/show/0.1/payload.js +157 -0
  61. package/dist/vtc/community/join-discovery/show/0.1/payload.js.map +1 -0
  62. package/dist/vtc/community/join-discovery/update/0.1/payload.d.ts +276 -0
  63. package/dist/vtc/community/join-discovery/update/0.1/payload.d.ts.map +1 -0
  64. package/dist/vtc/community/join-discovery/update/0.1/payload.js +163 -0
  65. package/dist/vtc/community/join-discovery/update/0.1/payload.js.map +1 -0
  66. package/dist/vtc/community/requested-attributes/show/0.1/payload.d.ts +339 -0
  67. package/dist/vtc/community/requested-attributes/show/0.1/payload.d.ts.map +1 -0
  68. package/dist/vtc/community/requested-attributes/show/0.1/payload.js +193 -0
  69. package/dist/vtc/community/requested-attributes/show/0.1/payload.js.map +1 -0
  70. package/dist/vtc/community/requested-attributes/update/0.1/payload.d.ts +348 -0
  71. package/dist/vtc/community/requested-attributes/update/0.1/payload.d.ts.map +1 -0
  72. package/dist/vtc/community/requested-attributes/update/0.1/payload.js +199 -0
  73. package/dist/vtc/community/requested-attributes/update/0.1/payload.js.map +1 -0
  74. package/dist/vtc/join-requests/query/0.1/payload.d.ts +412 -0
  75. package/dist/vtc/join-requests/query/0.1/payload.d.ts.map +1 -0
  76. package/dist/vtc/join-requests/query/0.1/payload.js +228 -0
  77. package/dist/vtc/join-requests/query/0.1/payload.js.map +1 -0
  78. package/dist/vtc/join-requests/vetting/show/0.1/payload.d.ts +1016 -0
  79. package/dist/vtc/join-requests/vetting/show/0.1/payload.d.ts.map +1 -0
  80. package/dist/vtc/join-requests/vetting/show/0.1/payload.js +509 -0
  81. package/dist/vtc/join-requests/vetting/show/0.1/payload.js.map +1 -0
  82. package/dist/vtc/relationships/restore/0.1/payload.d.ts +462 -0
  83. package/dist/vtc/relationships/restore/0.1/payload.d.ts.map +1 -0
  84. package/dist/vtc/relationships/restore/0.1/payload.js +270 -0
  85. package/dist/vtc/relationships/restore/0.1/payload.js.map +1 -0
  86. package/dist/vtc/relationships/suspend/0.1/payload.d.ts +462 -0
  87. package/dist/vtc/relationships/suspend/0.1/payload.d.ts.map +1 -0
  88. package/dist/vtc/relationships/suspend/0.1/payload.js +270 -0
  89. package/dist/vtc/relationships/suspend/0.1/payload.js.map +1 -0
  90. package/dist/vtc/rooms/list/0.1/payload.d.ts +653 -0
  91. package/dist/vtc/rooms/list/0.1/payload.d.ts.map +1 -0
  92. package/dist/vtc/rooms/list/0.1/payload.js +360 -0
  93. package/dist/vtc/rooms/list/0.1/payload.js.map +1 -0
  94. package/dist/vtc/schemas/accepts/delete/0.1/payload.d.ts +240 -0
  95. package/dist/vtc/schemas/accepts/delete/0.1/payload.d.ts.map +1 -0
  96. package/dist/vtc/schemas/accepts/delete/0.1/payload.js +141 -0
  97. package/dist/vtc/schemas/accepts/delete/0.1/payload.js.map +1 -0
  98. package/dist/vtc/schemas/accepts/list/0.1/payload.d.ts +1214 -0
  99. package/dist/vtc/schemas/accepts/list/0.1/payload.d.ts.map +1 -0
  100. package/dist/vtc/schemas/accepts/list/0.1/payload.js +681 -0
  101. package/dist/vtc/schemas/accepts/list/0.1/payload.js.map +1 -0
  102. package/dist/vtc/schemas/accepts/register/0.1/payload.d.ts +1165 -0
  103. package/dist/vtc/schemas/accepts/register/0.1/payload.d.ts.map +1 -0
  104. package/dist/vtc/schemas/accepts/register/0.1/payload.js +665 -0
  105. package/dist/vtc/schemas/accepts/register/0.1/payload.js.map +1 -0
  106. package/dist/vtc/schemas/accepts/show/0.1/payload.d.ts +1144 -0
  107. package/dist/vtc/schemas/accepts/show/0.1/payload.d.ts.map +1 -0
  108. package/dist/vtc/schemas/accepts/show/0.1/payload.js +655 -0
  109. package/dist/vtc/schemas/accepts/show/0.1/payload.js.map +1 -0
  110. package/dist/vtc/schemas/delete/0.1/payload.d.ts +240 -0
  111. package/dist/vtc/schemas/delete/0.1/payload.d.ts.map +1 -0
  112. package/dist/vtc/schemas/delete/0.1/payload.js +141 -0
  113. package/dist/vtc/schemas/delete/0.1/payload.js.map +1 -0
  114. package/dist/vtc/schemas/list/0.1/payload.d.ts +541 -0
  115. package/dist/vtc/schemas/list/0.1/payload.d.ts.map +1 -0
  116. package/dist/vtc/schemas/list/0.1/payload.js +300 -0
  117. package/dist/vtc/schemas/list/0.1/payload.js.map +1 -0
  118. package/dist/vtc/schemas/register/0.1/payload.d.ts +512 -0
  119. package/dist/vtc/schemas/register/0.1/payload.d.ts.map +1 -0
  120. package/dist/vtc/schemas/register/0.1/payload.js +292 -0
  121. package/dist/vtc/schemas/register/0.1/payload.js.map +1 -0
  122. package/dist/vtc/schemas/show/0.1/payload.d.ts +484 -0
  123. package/dist/vtc/schemas/show/0.1/payload.d.ts.map +1 -0
  124. package/dist/vtc/schemas/show/0.1/payload.js +279 -0
  125. package/dist/vtc/schemas/show/0.1/payload.js.map +1 -0
  126. package/dist/vtc/vetting/auto-grant/show/0.1/payload.d.ts +463 -0
  127. package/dist/vtc/vetting/auto-grant/show/0.1/payload.d.ts.map +1 -0
  128. package/dist/vtc/vetting/auto-grant/show/0.1/payload.js +269 -0
  129. package/dist/vtc/vetting/auto-grant/show/0.1/payload.js.map +1 -0
  130. package/dist/vtc/vetting/auto-grant/update/0.1/payload.d.ts +491 -0
  131. package/dist/vtc/vetting/auto-grant/update/0.1/payload.d.ts.map +1 -0
  132. package/dist/vtc/vetting/auto-grant/update/0.1/payload.js +282 -0
  133. package/dist/vtc/vetting/auto-grant/update/0.1/payload.js.map +1 -0
  134. package/dist/vtc/vetting/revocations/list/0.1/payload.d.ts +608 -0
  135. package/dist/vtc/vetting/revocations/list/0.1/payload.d.ts.map +1 -0
  136. package/dist/vtc/vetting/revocations/list/0.1/payload.js +332 -0
  137. package/dist/vtc/vetting/revocations/list/0.1/payload.js.map +1 -0
  138. package/dist/vtc/vetting/vetters/grants/list/0.1/payload.d.ts +992 -0
  139. package/dist/vtc/vetting/vetters/grants/list/0.1/payload.d.ts.map +1 -0
  140. package/dist/vtc/vetting/vetters/grants/list/0.1/payload.js +461 -0
  141. package/dist/vtc/vetting/vetters/grants/list/0.1/payload.js.map +1 -0
  142. package/dist/vtc/website/deploy/0.1/payload.d.ts +369 -0
  143. package/dist/vtc/website/deploy/0.1/payload.d.ts.map +1 -0
  144. package/dist/vtc/website/deploy/0.1/payload.js +213 -0
  145. package/dist/vtc/website/deploy/0.1/payload.js.map +1 -0
  146. package/dist/vtc/website/files/show/0.1/payload.d.ts +455 -0
  147. package/dist/vtc/website/files/show/0.1/payload.d.ts.map +1 -0
  148. package/dist/vtc/website/files/show/0.1/payload.js +247 -0
  149. package/dist/vtc/website/files/show/0.1/payload.js.map +1 -0
  150. package/dist/vtc/website/upload/abort/0.1/payload.d.ts +256 -0
  151. package/dist/vtc/website/upload/abort/0.1/payload.d.ts.map +1 -0
  152. package/dist/vtc/website/upload/abort/0.1/payload.js +149 -0
  153. package/dist/vtc/website/upload/abort/0.1/payload.js.map +1 -0
  154. package/dist/vtc/website/upload/begin/0.1/payload.d.ts +658 -0
  155. package/dist/vtc/website/upload/begin/0.1/payload.d.ts.map +1 -0
  156. package/dist/vtc/website/upload/begin/0.1/payload.js +375 -0
  157. package/dist/vtc/website/upload/begin/0.1/payload.js.map +1 -0
  158. package/dist/vtc/website/upload/chunk/0.1/payload.d.ts +447 -0
  159. package/dist/vtc/website/upload/chunk/0.1/payload.d.ts.map +1 -0
  160. package/dist/vtc/website/upload/chunk/0.1/payload.js +253 -0
  161. package/dist/vtc/website/upload/chunk/0.1/payload.js.map +1 -0
  162. package/dist/vtc/website/upload/commit/0.1/payload.d.ts +603 -0
  163. package/dist/vtc/website/upload/commit/0.1/payload.d.ts.map +1 -0
  164. package/dist/vtc/website/upload/commit/0.1/payload.js +337 -0
  165. package/dist/vtc/website/upload/commit/0.1/payload.js.map +1 -0
  166. package/package.json +1 -1
  167. package/src/_framework/0.4/framework.ts +1 -1
  168. package/src/_shared/components.ts +371 -0
  169. package/src/auth/_shared/0.1/signing-key.ts +17 -0
  170. package/src/auth/signing-key/enroll/0.1/payload.ts +349 -0
  171. package/src/auth/signing-key/list/0.1/payload.ts +323 -0
  172. package/src/auth/signing-key/revoke/0.1/payload.ts +204 -0
  173. package/src/index.ts +39 -0
  174. package/src/vta/contexts/update-did/1.1/payload.ts +256 -0
  175. package/src/vtc/_shared/0.1/community-presentation.ts +17 -0
  176. package/src/vtc/_shared/0.1/relationship-lifecycle.ts +17 -0
  177. package/src/vtc/_shared/0.1/schema-registry.ts +17 -0
  178. package/src/vtc/_shared/0.1/vetting-auto-grant.ts +17 -0
  179. package/src/vtc/_shared/0.1/website-transfer.ts +17 -0
  180. package/src/vtc/community/branding/show/0.1/payload.ts +207 -0
  181. package/src/vtc/community/branding/update/0.1/payload.ts +214 -0
  182. package/src/vtc/community/join-discovery/show/0.1/payload.ts +185 -0
  183. package/src/vtc/community/join-discovery/update/0.1/payload.ts +192 -0
  184. package/src/vtc/community/requested-attributes/show/0.1/payload.ts +221 -0
  185. package/src/vtc/community/requested-attributes/update/0.1/payload.ts +228 -0
  186. package/src/vtc/join-requests/query/0.1/payload.ts +285 -0
  187. package/src/vtc/join-requests/vetting/show/0.1/payload.ts +740 -0
  188. package/src/vtc/relationships/restore/0.1/payload.ts +307 -0
  189. package/src/vtc/relationships/suspend/0.1/payload.ts +307 -0
  190. package/src/vtc/rooms/list/0.1/payload.ts +449 -0
  191. package/src/vtc/schemas/accepts/delete/0.1/payload.ts +170 -0
  192. package/src/vtc/schemas/accepts/list/0.1/payload.ts +724 -0
  193. package/src/vtc/schemas/accepts/register/0.1/payload.ts +697 -0
  194. package/src/vtc/schemas/accepts/show/0.1/payload.ts +684 -0
  195. package/src/vtc/schemas/delete/0.1/payload.ts +170 -0
  196. package/src/vtc/schemas/list/0.1/payload.ts +344 -0
  197. package/src/vtc/schemas/register/0.1/payload.ts +325 -0
  198. package/src/vtc/schemas/show/0.1/payload.ts +308 -0
  199. package/src/vtc/vetting/auto-grant/show/0.1/payload.ts +297 -0
  200. package/src/vtc/vetting/auto-grant/update/0.1/payload.ts +316 -0
  201. package/src/vtc/vetting/revocations/list/0.1/payload.ts +416 -0
  202. package/src/vtc/vetting/vetters/grants/list/0.1/payload.ts +700 -0
  203. package/src/vtc/website/deploy/0.1/payload.ts +255 -0
  204. package/src/vtc/website/files/show/0.1/payload.ts +303 -0
  205. package/src/vtc/website/upload/abort/0.1/payload.ts +182 -0
  206. package/src/vtc/website/upload/begin/0.1/payload.ts +408 -0
  207. package/src/vtc/website/upload/chunk/0.1/payload.ts +295 -0
  208. package/src/vtc/website/upload/commit/0.1/payload.ts +385 -0
@@ -0,0 +1,455 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/website/files/show/0.1/payload.schema.json
4
+ */
5
+ import type { Ext, FileData, WebsiteEtag, WebsitePath } from "../../../../../_shared/components.js";
6
+ /**
7
+ * Read a range of one website file. The outer document members are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface VTCWebsiteFilesShowPayload {
10
+ path: WebsitePath;
11
+ /**
12
+ * Byte offset to read from; 0 when absent.
13
+ */
14
+ offset?: number;
15
+ /**
16
+ * Bytes to read; 262144 when absent.
17
+ */
18
+ length?: number;
19
+ ifMatch?: WebsiteEtag;
20
+ ext?: Ext;
21
+ }
22
+ export interface VTCWebsiteFilesShowResponsePayload {
23
+ path: WebsitePath;
24
+ etag: WebsiteEtag;
25
+ /**
26
+ * The whole file's size.
27
+ */
28
+ sizeBytes: number;
29
+ /**
30
+ * The media type the site serves the file as, guessed from its extension; `application/octet-stream` when unknown.
31
+ */
32
+ contentType: string;
33
+ /**
34
+ * Echoed.
35
+ */
36
+ offset: number;
37
+ data: FileData;
38
+ /**
39
+ * Whether this range reached the end of the file.
40
+ */
41
+ complete: boolean;
42
+ ext?: Ext;
43
+ }
44
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
45
+ export type { Ext, FileData, WebsiteEtag, WebsitePath };
46
+ /** Trust Task type URI. */
47
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/website/files/show/0.1";
48
+ /** Stable alias for this specification's request payload shape. */
49
+ export type Payload = VTCWebsiteFilesShowPayload;
50
+ /** Trust Task response type URI (request type URI + "#response"). */
51
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/website/files/show/0.1#response";
52
+ /** Stable alias for this specification's success-response payload shape. */
53
+ export type Response = VTCWebsiteFilesShowResponsePayload;
54
+ /**
55
+ * This specification's payload schema, as a value.
56
+ *
57
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
58
+ * rather than only as a `.json` file because TypeScript types are erased
59
+ * at runtime: without a schema a consumer has nothing to validate, and
60
+ * every REQUIRED payload member is optional in practice. Cross-file
61
+ * `$ref`s are already inlined, so it needs no resolver.
62
+ */
63
+ export declare const PAYLOAD_SCHEMA: {
64
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
65
+ readonly $id: "https://trusttasks.org/spec/vtc/website/files/show/0.1";
66
+ readonly title: "VTC Website — Files — Show — payload";
67
+ readonly description: "Read a range of one website file. The outer document members are owned by the framework — SPEC §6.3.";
68
+ readonly type: "object";
69
+ readonly additionalProperties: false;
70
+ readonly required: readonly ["path"];
71
+ readonly properties: {
72
+ readonly path: {
73
+ readonly $ref: "#/$defs/WebsitePath";
74
+ };
75
+ readonly offset: {
76
+ readonly type: "integer";
77
+ readonly minimum: 0;
78
+ readonly description: "Byte offset to read from; 0 when absent.";
79
+ };
80
+ readonly length: {
81
+ readonly type: "integer";
82
+ readonly minimum: 1;
83
+ readonly maximum: 262144;
84
+ readonly description: "Bytes to read; 262144 when absent.";
85
+ };
86
+ readonly ifMatch: {
87
+ readonly $ref: "#/$defs/WebsiteEtag";
88
+ };
89
+ readonly ext: {
90
+ readonly $ref: "#/$defs/Ext";
91
+ };
92
+ };
93
+ readonly $defs: {
94
+ readonly Response: {
95
+ readonly $anchor: "response";
96
+ readonly title: "VTC Website — Files — Show — response payload";
97
+ readonly type: "object";
98
+ readonly additionalProperties: false;
99
+ readonly required: readonly ["path", "etag", "sizeBytes", "contentType", "offset", "data", "complete"];
100
+ readonly properties: {
101
+ readonly path: {
102
+ readonly $ref: "#/$defs/WebsitePath";
103
+ };
104
+ readonly etag: {
105
+ readonly $ref: "#/$defs/WebsiteEtag";
106
+ };
107
+ readonly sizeBytes: {
108
+ readonly type: "integer";
109
+ readonly minimum: 0;
110
+ readonly description: "The whole file's size.";
111
+ };
112
+ readonly contentType: {
113
+ readonly type: "string";
114
+ readonly minLength: 1;
115
+ readonly maxLength: 255;
116
+ readonly description: "The media type the site serves the file as, guessed from its extension; `application/octet-stream` when unknown.";
117
+ };
118
+ readonly offset: {
119
+ readonly type: "integer";
120
+ readonly minimum: 0;
121
+ readonly description: "Echoed.";
122
+ };
123
+ readonly data: {
124
+ readonly $ref: "#/$defs/FileData";
125
+ };
126
+ readonly complete: {
127
+ readonly type: "boolean";
128
+ readonly description: "Whether this range reached the end of the file.";
129
+ };
130
+ readonly ext: {
131
+ readonly $ref: "#/$defs/Ext";
132
+ };
133
+ };
134
+ };
135
+ readonly Ext: {
136
+ readonly title: "Ext";
137
+ 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.";
138
+ readonly type: "object";
139
+ readonly minProperties: 1;
140
+ readonly additionalProperties: true;
141
+ readonly propertyNames: {
142
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
143
+ };
144
+ };
145
+ readonly FileData: {
146
+ readonly title: "FileData";
147
+ readonly type: "string";
148
+ readonly maxLength: 349526;
149
+ readonly pattern: "^[A-Za-z0-9_-]*$";
150
+ readonly description: "A range of a file's bytes, base64url-encoded without padding (RFC 4648 §5). Empty for an empty range. Bounded at 349526 characters, the unpadded encoding of the 262144-byte range ceiling.";
151
+ };
152
+ readonly WebsiteEtag: {
153
+ readonly title: "WebsiteEtag";
154
+ readonly type: "string";
155
+ readonly pattern: "^[0-9a-f]{64}$";
156
+ readonly description: "A file's content hash: the lowercase hex SHA-256 of its bytes — the `etag` vtc/website/files/list reports, and the `ETag` a direct read of the path returns, without the HTTP quotes.";
157
+ };
158
+ readonly WebsitePath: {
159
+ readonly title: "WebsitePath";
160
+ readonly type: "string";
161
+ readonly minLength: 1;
162
+ readonly maxLength: 1024;
163
+ readonly pattern: "^[^\\\\]+$";
164
+ readonly description: "A file's path relative to the site root, `/`-separated, with or without a leading `/`. The community resolves it inside the site root and refuses one that escapes the root (`..`), names a hidden file or directory (a segment beginning `.`), carries a blocklisted extension, or contains a control character — the same rules the public read handler applies, so nothing can be written that the site would refuse to serve, and nothing can be read that it would not.";
165
+ };
166
+ };
167
+ };
168
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
169
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
170
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
171
+ readonly $ref: "#/$defs/Response";
172
+ readonly $defs: {
173
+ readonly Response: {
174
+ readonly $anchor: "response";
175
+ readonly title: "VTC Website — Files — Show — response payload";
176
+ readonly type: "object";
177
+ readonly additionalProperties: false;
178
+ readonly required: readonly ["path", "etag", "sizeBytes", "contentType", "offset", "data", "complete"];
179
+ readonly properties: {
180
+ readonly path: {
181
+ readonly $ref: "#/$defs/WebsitePath";
182
+ };
183
+ readonly etag: {
184
+ readonly $ref: "#/$defs/WebsiteEtag";
185
+ };
186
+ readonly sizeBytes: {
187
+ readonly type: "integer";
188
+ readonly minimum: 0;
189
+ readonly description: "The whole file's size.";
190
+ };
191
+ readonly contentType: {
192
+ readonly type: "string";
193
+ readonly minLength: 1;
194
+ readonly maxLength: 255;
195
+ readonly description: "The media type the site serves the file as, guessed from its extension; `application/octet-stream` when unknown.";
196
+ };
197
+ readonly offset: {
198
+ readonly type: "integer";
199
+ readonly minimum: 0;
200
+ readonly description: "Echoed.";
201
+ };
202
+ readonly data: {
203
+ readonly $ref: "#/$defs/FileData";
204
+ };
205
+ readonly complete: {
206
+ readonly type: "boolean";
207
+ readonly description: "Whether this range reached the end of the file.";
208
+ };
209
+ readonly ext: {
210
+ readonly $ref: "#/$defs/Ext";
211
+ };
212
+ };
213
+ };
214
+ readonly Ext: {
215
+ readonly title: "Ext";
216
+ 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.";
217
+ readonly type: "object";
218
+ readonly minProperties: 1;
219
+ readonly additionalProperties: true;
220
+ readonly propertyNames: {
221
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
222
+ };
223
+ };
224
+ readonly FileData: {
225
+ readonly title: "FileData";
226
+ readonly type: "string";
227
+ readonly maxLength: 349526;
228
+ readonly pattern: "^[A-Za-z0-9_-]*$";
229
+ readonly description: "A range of a file's bytes, base64url-encoded without padding (RFC 4648 §5). Empty for an empty range. Bounded at 349526 characters, the unpadded encoding of the 262144-byte range ceiling.";
230
+ };
231
+ readonly WebsiteEtag: {
232
+ readonly title: "WebsiteEtag";
233
+ readonly type: "string";
234
+ readonly pattern: "^[0-9a-f]{64}$";
235
+ readonly description: "A file's content hash: the lowercase hex SHA-256 of its bytes — the `etag` vtc/website/files/list reports, and the `ETag` a direct read of the path returns, without the HTTP quotes.";
236
+ };
237
+ readonly WebsitePath: {
238
+ readonly title: "WebsitePath";
239
+ readonly type: "string";
240
+ readonly minLength: 1;
241
+ readonly maxLength: 1024;
242
+ readonly pattern: "^[^\\\\]+$";
243
+ readonly description: "A file's path relative to the site root, `/`-separated, with or without a leading `/`. The community resolves it inside the site root and refuses one that escapes the root (`..`), names a hidden file or directory (a segment beginning `.`), carries a blocklisted extension, or contains a control character — the same rules the public read handler applies, so nothing can be written that the site would refuse to serve, and nothing can be read that it would not.";
244
+ };
245
+ };
246
+ };
247
+ /**
248
+ * SPEC.md §7.2 policy for the request variant, from this specification's
249
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
250
+ * per-specification and cannot be derived from the document alone, and
251
+ * item 2 needs the schema this carries.
252
+ */
253
+ export declare const SPEC: {
254
+ readonly typeUri: "https://trusttasks.org/spec/vtc/website/files/show/0.1";
255
+ readonly isBearer: false;
256
+ readonly isProofRequired: false;
257
+ readonly isRecipientRequired: true;
258
+ readonly isIssuedAtRequired: false;
259
+ readonly payloadSchema: {
260
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
261
+ readonly $id: "https://trusttasks.org/spec/vtc/website/files/show/0.1";
262
+ readonly title: "VTC Website — Files — Show — payload";
263
+ readonly description: "Read a range of one website file. The outer document members are owned by the framework — SPEC §6.3.";
264
+ readonly type: "object";
265
+ readonly additionalProperties: false;
266
+ readonly required: readonly ["path"];
267
+ readonly properties: {
268
+ readonly path: {
269
+ readonly $ref: "#/$defs/WebsitePath";
270
+ };
271
+ readonly offset: {
272
+ readonly type: "integer";
273
+ readonly minimum: 0;
274
+ readonly description: "Byte offset to read from; 0 when absent.";
275
+ };
276
+ readonly length: {
277
+ readonly type: "integer";
278
+ readonly minimum: 1;
279
+ readonly maximum: 262144;
280
+ readonly description: "Bytes to read; 262144 when absent.";
281
+ };
282
+ readonly ifMatch: {
283
+ readonly $ref: "#/$defs/WebsiteEtag";
284
+ };
285
+ readonly ext: {
286
+ readonly $ref: "#/$defs/Ext";
287
+ };
288
+ };
289
+ readonly $defs: {
290
+ readonly Response: {
291
+ readonly $anchor: "response";
292
+ readonly title: "VTC Website — Files — Show — response payload";
293
+ readonly type: "object";
294
+ readonly additionalProperties: false;
295
+ readonly required: readonly ["path", "etag", "sizeBytes", "contentType", "offset", "data", "complete"];
296
+ readonly properties: {
297
+ readonly path: {
298
+ readonly $ref: "#/$defs/WebsitePath";
299
+ };
300
+ readonly etag: {
301
+ readonly $ref: "#/$defs/WebsiteEtag";
302
+ };
303
+ readonly sizeBytes: {
304
+ readonly type: "integer";
305
+ readonly minimum: 0;
306
+ readonly description: "The whole file's size.";
307
+ };
308
+ readonly contentType: {
309
+ readonly type: "string";
310
+ readonly minLength: 1;
311
+ readonly maxLength: 255;
312
+ readonly description: "The media type the site serves the file as, guessed from its extension; `application/octet-stream` when unknown.";
313
+ };
314
+ readonly offset: {
315
+ readonly type: "integer";
316
+ readonly minimum: 0;
317
+ readonly description: "Echoed.";
318
+ };
319
+ readonly data: {
320
+ readonly $ref: "#/$defs/FileData";
321
+ };
322
+ readonly complete: {
323
+ readonly type: "boolean";
324
+ readonly description: "Whether this range reached the end of the file.";
325
+ };
326
+ readonly ext: {
327
+ readonly $ref: "#/$defs/Ext";
328
+ };
329
+ };
330
+ };
331
+ readonly Ext: {
332
+ readonly title: "Ext";
333
+ 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.";
334
+ readonly type: "object";
335
+ readonly minProperties: 1;
336
+ readonly additionalProperties: true;
337
+ readonly propertyNames: {
338
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
339
+ };
340
+ };
341
+ readonly FileData: {
342
+ readonly title: "FileData";
343
+ readonly type: "string";
344
+ readonly maxLength: 349526;
345
+ readonly pattern: "^[A-Za-z0-9_-]*$";
346
+ readonly description: "A range of a file's bytes, base64url-encoded without padding (RFC 4648 §5). Empty for an empty range. Bounded at 349526 characters, the unpadded encoding of the 262144-byte range ceiling.";
347
+ };
348
+ readonly WebsiteEtag: {
349
+ readonly title: "WebsiteEtag";
350
+ readonly type: "string";
351
+ readonly pattern: "^[0-9a-f]{64}$";
352
+ readonly description: "A file's content hash: the lowercase hex SHA-256 of its bytes — the `etag` vtc/website/files/list reports, and the `ETag` a direct read of the path returns, without the HTTP quotes.";
353
+ };
354
+ readonly WebsitePath: {
355
+ readonly title: "WebsitePath";
356
+ readonly type: "string";
357
+ readonly minLength: 1;
358
+ readonly maxLength: 1024;
359
+ readonly pattern: "^[^\\\\]+$";
360
+ readonly description: "A file's path relative to the site root, `/`-separated, with or without a leading `/`. The community resolves it inside the site root and refuses one that escapes the root (`..`), names a hidden file or directory (a segment beginning `.`), carries a blocklisted extension, or contains a control character — the same rules the public read handler applies, so nothing can be written that the site would refuse to serve, and nothing can be read that it would not.";
361
+ };
362
+ };
363
+ };
364
+ };
365
+ /**
366
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
367
+ * tracks the *issuer* party's requirement because a response swaps the
368
+ * parties (§7.3 item 5).
369
+ */
370
+ export declare const RESPONSE_SPEC: {
371
+ readonly typeUri: "https://trusttasks.org/spec/vtc/website/files/show/0.1#response";
372
+ readonly isBearer: false;
373
+ readonly isProofRequired: false;
374
+ readonly isRecipientRequired: true;
375
+ readonly isIssuedAtRequired: false;
376
+ readonly payloadSchema: {
377
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
378
+ readonly $ref: "#/$defs/Response";
379
+ readonly $defs: {
380
+ readonly Response: {
381
+ readonly $anchor: "response";
382
+ readonly title: "VTC Website — Files — Show — response payload";
383
+ readonly type: "object";
384
+ readonly additionalProperties: false;
385
+ readonly required: readonly ["path", "etag", "sizeBytes", "contentType", "offset", "data", "complete"];
386
+ readonly properties: {
387
+ readonly path: {
388
+ readonly $ref: "#/$defs/WebsitePath";
389
+ };
390
+ readonly etag: {
391
+ readonly $ref: "#/$defs/WebsiteEtag";
392
+ };
393
+ readonly sizeBytes: {
394
+ readonly type: "integer";
395
+ readonly minimum: 0;
396
+ readonly description: "The whole file's size.";
397
+ };
398
+ readonly contentType: {
399
+ readonly type: "string";
400
+ readonly minLength: 1;
401
+ readonly maxLength: 255;
402
+ readonly description: "The media type the site serves the file as, guessed from its extension; `application/octet-stream` when unknown.";
403
+ };
404
+ readonly offset: {
405
+ readonly type: "integer";
406
+ readonly minimum: 0;
407
+ readonly description: "Echoed.";
408
+ };
409
+ readonly data: {
410
+ readonly $ref: "#/$defs/FileData";
411
+ };
412
+ readonly complete: {
413
+ readonly type: "boolean";
414
+ readonly description: "Whether this range reached the end of the file.";
415
+ };
416
+ readonly ext: {
417
+ readonly $ref: "#/$defs/Ext";
418
+ };
419
+ };
420
+ };
421
+ readonly Ext: {
422
+ readonly title: "Ext";
423
+ 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.";
424
+ readonly type: "object";
425
+ readonly minProperties: 1;
426
+ readonly additionalProperties: true;
427
+ readonly propertyNames: {
428
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
429
+ };
430
+ };
431
+ readonly FileData: {
432
+ readonly title: "FileData";
433
+ readonly type: "string";
434
+ readonly maxLength: 349526;
435
+ readonly pattern: "^[A-Za-z0-9_-]*$";
436
+ readonly description: "A range of a file's bytes, base64url-encoded without padding (RFC 4648 §5). Empty for an empty range. Bounded at 349526 characters, the unpadded encoding of the 262144-byte range ceiling.";
437
+ };
438
+ readonly WebsiteEtag: {
439
+ readonly title: "WebsiteEtag";
440
+ readonly type: "string";
441
+ readonly pattern: "^[0-9a-f]{64}$";
442
+ readonly description: "A file's content hash: the lowercase hex SHA-256 of its bytes — the `etag` vtc/website/files/list reports, and the `ETag` a direct read of the path returns, without the HTTP quotes.";
443
+ };
444
+ readonly WebsitePath: {
445
+ readonly title: "WebsitePath";
446
+ readonly type: "string";
447
+ readonly minLength: 1;
448
+ readonly maxLength: 1024;
449
+ readonly pattern: "^[^\\\\]+$";
450
+ readonly description: "A file's path relative to the site root, `/`-separated, with or without a leading `/`. The community resolves it inside the site root and refuses one that escapes the root (`..`), names a hidden file or directory (a segment beginning `.`), carries a blocklisted extension, or contains a control character — the same rules the public read handler applies, so nothing can be written that the site would refuse to serve, and nothing can be read that it would not.";
451
+ };
452
+ };
453
+ };
454
+ };
455
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vtc/website/files/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAGpG;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,WAAW,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD,MAAM,WAAW,kCAAkC;IACjD,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE,WAAW,CAAC;IAClB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,QAAQ,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;AAExD,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,wDAAiE,CAAC;AAE1F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,0BAA0B,CAAC;AAEjD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,iEAA0E,CAAC;AAE5G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,kCAAkC,CAAC;AAE1D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkHjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqF1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}