@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,603 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vtc/website/upload/commit/0.1/payload.schema.json
4
+ */
5
+ import type { ExpectedSha256, ExpectedSizeBytes, ExpiresAt, Ext, UploadId, UploadTarget, WebsiteEtag, WebsitePath } from "../../../../../_shared/components.js";
6
+ /**
7
+ * Complete an upload. The outer document members are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface VTCWebsiteUploadCommitPayload {
10
+ uploadId: UploadId;
11
+ ext?: Ext;
12
+ }
13
+ /**
14
+ * Exactly one of `file` (for a `file` target) and `stagedUntil` (for a `bundle` target) is present — a rule over two members that this schema does not express.
15
+ */
16
+ export interface VTCWebsiteUploadCommitResponsePayload {
17
+ uploadId: UploadId;
18
+ target: UploadTarget;
19
+ sha256: ExpectedSha256;
20
+ sizeBytes: ExpectedSizeBytes;
21
+ file?: WrittenFile;
22
+ stagedUntil?: ExpiresAt;
23
+ ext?: Ext;
24
+ }
25
+ /**
26
+ * The file a `file` upload wrote.
27
+ */
28
+ export interface WrittenFile {
29
+ path: WebsitePath;
30
+ etag: WebsiteEtag;
31
+ /**
32
+ * The file's size in bytes.
33
+ */
34
+ sizeBytes: number;
35
+ }
36
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
37
+ export type { ExpectedSha256, ExpectedSizeBytes, ExpiresAt, Ext, UploadId, UploadTarget, WebsiteEtag, WebsitePath };
38
+ /** Trust Task type URI. */
39
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/website/upload/commit/0.1";
40
+ /** Stable alias for this specification's request payload shape. */
41
+ export type Payload = VTCWebsiteUploadCommitPayload;
42
+ /** Trust Task response type URI (request type URI + "#response"). */
43
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/website/upload/commit/0.1#response";
44
+ /** Stable alias for this specification's success-response payload shape. */
45
+ export type Response = VTCWebsiteUploadCommitResponsePayload;
46
+ /**
47
+ * This specification's payload schema, as a value.
48
+ *
49
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
50
+ * rather than only as a `.json` file because TypeScript types are erased
51
+ * at runtime: without a schema a consumer has nothing to validate, and
52
+ * every REQUIRED payload member is optional in practice. Cross-file
53
+ * `$ref`s are already inlined, so it needs no resolver.
54
+ */
55
+ export declare const PAYLOAD_SCHEMA: {
56
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
57
+ readonly $id: "https://trusttasks.org/spec/vtc/website/upload/commit/0.1";
58
+ readonly title: "VTC Website — Upload — Commit — payload";
59
+ readonly description: "Complete an upload. The outer document members are owned by the framework — SPEC §6.3.";
60
+ readonly type: "object";
61
+ readonly additionalProperties: false;
62
+ readonly required: readonly ["uploadId"];
63
+ readonly properties: {
64
+ readonly uploadId: {
65
+ readonly $ref: "#/$defs/UploadId";
66
+ };
67
+ readonly ext: {
68
+ readonly $ref: "#/$defs/Ext";
69
+ };
70
+ };
71
+ readonly $defs: {
72
+ readonly WrittenFile: {
73
+ readonly title: "WrittenFile";
74
+ readonly type: "object";
75
+ readonly additionalProperties: false;
76
+ readonly required: readonly ["path", "etag", "sizeBytes"];
77
+ readonly description: "The file a `file` upload wrote.";
78
+ readonly properties: {
79
+ readonly path: {
80
+ readonly $ref: "#/$defs/WebsitePath";
81
+ };
82
+ readonly etag: {
83
+ readonly $ref: "#/$defs/WebsiteEtag";
84
+ };
85
+ readonly sizeBytes: {
86
+ readonly type: "integer";
87
+ readonly minimum: 1;
88
+ readonly description: "The file's size in bytes.";
89
+ };
90
+ };
91
+ };
92
+ readonly Response: {
93
+ readonly $anchor: "response";
94
+ readonly title: "VTC Website — Upload — Commit — response payload";
95
+ readonly type: "object";
96
+ readonly additionalProperties: false;
97
+ readonly required: readonly ["uploadId", "target", "sha256", "sizeBytes"];
98
+ readonly description: "Exactly one of `file` (for a `file` target) and `stagedUntil` (for a `bundle` target) is present — a rule over two members that this schema does not express.";
99
+ readonly properties: {
100
+ readonly uploadId: {
101
+ readonly $ref: "#/$defs/UploadId";
102
+ };
103
+ readonly target: {
104
+ readonly $ref: "#/$defs/UploadTarget";
105
+ };
106
+ readonly sha256: {
107
+ readonly $ref: "#/$defs/ExpectedSha256";
108
+ };
109
+ readonly sizeBytes: {
110
+ readonly $ref: "#/$defs/ExpectedSizeBytes";
111
+ };
112
+ readonly file: {
113
+ readonly $ref: "#/$defs/WrittenFile";
114
+ };
115
+ readonly stagedUntil: {
116
+ readonly $ref: "#/$defs/ExpiresAt";
117
+ };
118
+ readonly ext: {
119
+ readonly $ref: "#/$defs/Ext";
120
+ };
121
+ };
122
+ };
123
+ readonly Ext: {
124
+ readonly title: "Ext";
125
+ 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.";
126
+ readonly type: "object";
127
+ readonly minProperties: 1;
128
+ readonly additionalProperties: true;
129
+ readonly propertyNames: {
130
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
131
+ };
132
+ };
133
+ readonly ExpiresAt: {
134
+ readonly title: "ExpiresAt";
135
+ readonly description: "After which the bundle is collected: staged bytes discarded, tokens and chunk requests refused. Short by design. For a chunked transfer a recipient may move it later as chunks are exchanged, never past its own ceiling — each chunk response reports the current value.";
136
+ readonly type: "string";
137
+ readonly format: "date-time";
138
+ };
139
+ readonly ExpectedSizeBytes: {
140
+ readonly title: "ExpectedSizeBytes";
141
+ readonly description: "Total byte count of the bundle. A zero-length bundle is not a degenerate success — nothing was serialized — so the floor is 1.";
142
+ readonly type: "integer";
143
+ readonly minimum: 1;
144
+ };
145
+ readonly ExpectedSha256: {
146
+ readonly title: "ExpectedSha256";
147
+ readonly description: "Lowercase hex SHA-256 of the whole bundle's bytes. Kept in the hex form the 1.0 descriptor published rather than moved to DigestMultibase, because it is an unchanged member of an existing descriptor and re-encoding it would break every stream producer for no gain in what it checks. For a chunked transfer it is the check over the reassembled bundle, applied after every chunk has verified individually, so that a correct set of chunks assembled in the wrong order is still caught.";
148
+ readonly type: "string";
149
+ readonly pattern: "^[0-9a-f]{64}$";
150
+ };
151
+ readonly UploadTarget: {
152
+ readonly title: "UploadTarget";
153
+ readonly type: "object";
154
+ readonly additionalProperties: false;
155
+ readonly required: readonly ["kind"];
156
+ readonly description: "What the uploaded bytes are for, committed before any byte moves. `file`: one file at `path`, written into the site when the upload commits — the single-file write. `bundle`: a gzip-compressed tar of the whole site, staged when the upload commits and published by vtc/website/deploy. `path` is required for a `file` target and forbidden for a `bundle`, and `ifMatch` is allowed only for a `file` — rules over two members that this schema does not express; a community refuses a violation with `malformedRequest`. `ifMatch` is optimistic concurrency: the write commits only if the file's current content hash is this value.";
157
+ readonly properties: {
158
+ readonly kind: {
159
+ readonly type: "string";
160
+ readonly enum: readonly ["file", "bundle"];
161
+ };
162
+ readonly path: {
163
+ readonly $ref: "#/$defs/WebsitePath";
164
+ };
165
+ readonly ifMatch: {
166
+ readonly $ref: "#/$defs/WebsiteEtag";
167
+ };
168
+ };
169
+ };
170
+ readonly WebsiteEtag: {
171
+ readonly title: "WebsiteEtag";
172
+ readonly type: "string";
173
+ readonly pattern: "^[0-9a-f]{64}$";
174
+ 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.";
175
+ };
176
+ readonly WebsitePath: {
177
+ readonly title: "WebsitePath";
178
+ readonly type: "string";
179
+ readonly minLength: 1;
180
+ readonly maxLength: 1024;
181
+ readonly pattern: "^[^\\\\]+$";
182
+ 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.";
183
+ };
184
+ readonly UploadId: {
185
+ readonly title: "UploadId";
186
+ readonly type: "string";
187
+ readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$";
188
+ readonly description: "Handle for one upload across begin, chunk, commit and abort, and — for a bundle — deploy. Recipient-generated and unguessable, which is what lets a reference to somebody else's upload be answered as not-found without confirming it exists. Opaque: a producer quotes what it was given.";
189
+ };
190
+ };
191
+ };
192
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
193
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
194
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
195
+ readonly $ref: "#/$defs/Response";
196
+ readonly $defs: {
197
+ readonly WrittenFile: {
198
+ readonly title: "WrittenFile";
199
+ readonly type: "object";
200
+ readonly additionalProperties: false;
201
+ readonly required: readonly ["path", "etag", "sizeBytes"];
202
+ readonly description: "The file a `file` upload wrote.";
203
+ readonly properties: {
204
+ readonly path: {
205
+ readonly $ref: "#/$defs/WebsitePath";
206
+ };
207
+ readonly etag: {
208
+ readonly $ref: "#/$defs/WebsiteEtag";
209
+ };
210
+ readonly sizeBytes: {
211
+ readonly type: "integer";
212
+ readonly minimum: 1;
213
+ readonly description: "The file's size in bytes.";
214
+ };
215
+ };
216
+ };
217
+ readonly Response: {
218
+ readonly $anchor: "response";
219
+ readonly title: "VTC Website — Upload — Commit — response payload";
220
+ readonly type: "object";
221
+ readonly additionalProperties: false;
222
+ readonly required: readonly ["uploadId", "target", "sha256", "sizeBytes"];
223
+ readonly description: "Exactly one of `file` (for a `file` target) and `stagedUntil` (for a `bundle` target) is present — a rule over two members that this schema does not express.";
224
+ readonly properties: {
225
+ readonly uploadId: {
226
+ readonly $ref: "#/$defs/UploadId";
227
+ };
228
+ readonly target: {
229
+ readonly $ref: "#/$defs/UploadTarget";
230
+ };
231
+ readonly sha256: {
232
+ readonly $ref: "#/$defs/ExpectedSha256";
233
+ };
234
+ readonly sizeBytes: {
235
+ readonly $ref: "#/$defs/ExpectedSizeBytes";
236
+ };
237
+ readonly file: {
238
+ readonly $ref: "#/$defs/WrittenFile";
239
+ };
240
+ readonly stagedUntil: {
241
+ readonly $ref: "#/$defs/ExpiresAt";
242
+ };
243
+ readonly ext: {
244
+ readonly $ref: "#/$defs/Ext";
245
+ };
246
+ };
247
+ };
248
+ readonly Ext: {
249
+ readonly title: "Ext";
250
+ 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.";
251
+ readonly type: "object";
252
+ readonly minProperties: 1;
253
+ readonly additionalProperties: true;
254
+ readonly propertyNames: {
255
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
256
+ };
257
+ };
258
+ readonly ExpiresAt: {
259
+ readonly title: "ExpiresAt";
260
+ readonly description: "After which the bundle is collected: staged bytes discarded, tokens and chunk requests refused. Short by design. For a chunked transfer a recipient may move it later as chunks are exchanged, never past its own ceiling — each chunk response reports the current value.";
261
+ readonly type: "string";
262
+ readonly format: "date-time";
263
+ };
264
+ readonly ExpectedSizeBytes: {
265
+ readonly title: "ExpectedSizeBytes";
266
+ readonly description: "Total byte count of the bundle. A zero-length bundle is not a degenerate success — nothing was serialized — so the floor is 1.";
267
+ readonly type: "integer";
268
+ readonly minimum: 1;
269
+ };
270
+ readonly ExpectedSha256: {
271
+ readonly title: "ExpectedSha256";
272
+ readonly description: "Lowercase hex SHA-256 of the whole bundle's bytes. Kept in the hex form the 1.0 descriptor published rather than moved to DigestMultibase, because it is an unchanged member of an existing descriptor and re-encoding it would break every stream producer for no gain in what it checks. For a chunked transfer it is the check over the reassembled bundle, applied after every chunk has verified individually, so that a correct set of chunks assembled in the wrong order is still caught.";
273
+ readonly type: "string";
274
+ readonly pattern: "^[0-9a-f]{64}$";
275
+ };
276
+ readonly UploadTarget: {
277
+ readonly title: "UploadTarget";
278
+ readonly type: "object";
279
+ readonly additionalProperties: false;
280
+ readonly required: readonly ["kind"];
281
+ readonly description: "What the uploaded bytes are for, committed before any byte moves. `file`: one file at `path`, written into the site when the upload commits — the single-file write. `bundle`: a gzip-compressed tar of the whole site, staged when the upload commits and published by vtc/website/deploy. `path` is required for a `file` target and forbidden for a `bundle`, and `ifMatch` is allowed only for a `file` — rules over two members that this schema does not express; a community refuses a violation with `malformedRequest`. `ifMatch` is optimistic concurrency: the write commits only if the file's current content hash is this value.";
282
+ readonly properties: {
283
+ readonly kind: {
284
+ readonly type: "string";
285
+ readonly enum: readonly ["file", "bundle"];
286
+ };
287
+ readonly path: {
288
+ readonly $ref: "#/$defs/WebsitePath";
289
+ };
290
+ readonly ifMatch: {
291
+ readonly $ref: "#/$defs/WebsiteEtag";
292
+ };
293
+ };
294
+ };
295
+ readonly WebsiteEtag: {
296
+ readonly title: "WebsiteEtag";
297
+ readonly type: "string";
298
+ readonly pattern: "^[0-9a-f]{64}$";
299
+ 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.";
300
+ };
301
+ readonly WebsitePath: {
302
+ readonly title: "WebsitePath";
303
+ readonly type: "string";
304
+ readonly minLength: 1;
305
+ readonly maxLength: 1024;
306
+ readonly pattern: "^[^\\\\]+$";
307
+ 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.";
308
+ };
309
+ readonly UploadId: {
310
+ readonly title: "UploadId";
311
+ readonly type: "string";
312
+ readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$";
313
+ readonly description: "Handle for one upload across begin, chunk, commit and abort, and — for a bundle — deploy. Recipient-generated and unguessable, which is what lets a reference to somebody else's upload be answered as not-found without confirming it exists. Opaque: a producer quotes what it was given.";
314
+ };
315
+ };
316
+ };
317
+ /**
318
+ * SPEC.md §7.2 policy for the request variant, from this specification's
319
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
320
+ * per-specification and cannot be derived from the document alone, and
321
+ * item 2 needs the schema this carries.
322
+ */
323
+ export declare const SPEC: {
324
+ readonly typeUri: "https://trusttasks.org/spec/vtc/website/upload/commit/0.1";
325
+ readonly isBearer: false;
326
+ readonly isProofRequired: true;
327
+ readonly isRecipientRequired: true;
328
+ readonly isIssuedAtRequired: true;
329
+ readonly payloadSchema: {
330
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
331
+ readonly $id: "https://trusttasks.org/spec/vtc/website/upload/commit/0.1";
332
+ readonly title: "VTC Website — Upload — Commit — payload";
333
+ readonly description: "Complete an upload. The outer document members are owned by the framework — SPEC §6.3.";
334
+ readonly type: "object";
335
+ readonly additionalProperties: false;
336
+ readonly required: readonly ["uploadId"];
337
+ readonly properties: {
338
+ readonly uploadId: {
339
+ readonly $ref: "#/$defs/UploadId";
340
+ };
341
+ readonly ext: {
342
+ readonly $ref: "#/$defs/Ext";
343
+ };
344
+ };
345
+ readonly $defs: {
346
+ readonly WrittenFile: {
347
+ readonly title: "WrittenFile";
348
+ readonly type: "object";
349
+ readonly additionalProperties: false;
350
+ readonly required: readonly ["path", "etag", "sizeBytes"];
351
+ readonly description: "The file a `file` upload wrote.";
352
+ readonly properties: {
353
+ readonly path: {
354
+ readonly $ref: "#/$defs/WebsitePath";
355
+ };
356
+ readonly etag: {
357
+ readonly $ref: "#/$defs/WebsiteEtag";
358
+ };
359
+ readonly sizeBytes: {
360
+ readonly type: "integer";
361
+ readonly minimum: 1;
362
+ readonly description: "The file's size in bytes.";
363
+ };
364
+ };
365
+ };
366
+ readonly Response: {
367
+ readonly $anchor: "response";
368
+ readonly title: "VTC Website — Upload — Commit — response payload";
369
+ readonly type: "object";
370
+ readonly additionalProperties: false;
371
+ readonly required: readonly ["uploadId", "target", "sha256", "sizeBytes"];
372
+ readonly description: "Exactly one of `file` (for a `file` target) and `stagedUntil` (for a `bundle` target) is present — a rule over two members that this schema does not express.";
373
+ readonly properties: {
374
+ readonly uploadId: {
375
+ readonly $ref: "#/$defs/UploadId";
376
+ };
377
+ readonly target: {
378
+ readonly $ref: "#/$defs/UploadTarget";
379
+ };
380
+ readonly sha256: {
381
+ readonly $ref: "#/$defs/ExpectedSha256";
382
+ };
383
+ readonly sizeBytes: {
384
+ readonly $ref: "#/$defs/ExpectedSizeBytes";
385
+ };
386
+ readonly file: {
387
+ readonly $ref: "#/$defs/WrittenFile";
388
+ };
389
+ readonly stagedUntil: {
390
+ readonly $ref: "#/$defs/ExpiresAt";
391
+ };
392
+ readonly ext: {
393
+ readonly $ref: "#/$defs/Ext";
394
+ };
395
+ };
396
+ };
397
+ readonly Ext: {
398
+ readonly title: "Ext";
399
+ 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.";
400
+ readonly type: "object";
401
+ readonly minProperties: 1;
402
+ readonly additionalProperties: true;
403
+ readonly propertyNames: {
404
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
405
+ };
406
+ };
407
+ readonly ExpiresAt: {
408
+ readonly title: "ExpiresAt";
409
+ readonly description: "After which the bundle is collected: staged bytes discarded, tokens and chunk requests refused. Short by design. For a chunked transfer a recipient may move it later as chunks are exchanged, never past its own ceiling — each chunk response reports the current value.";
410
+ readonly type: "string";
411
+ readonly format: "date-time";
412
+ };
413
+ readonly ExpectedSizeBytes: {
414
+ readonly title: "ExpectedSizeBytes";
415
+ readonly description: "Total byte count of the bundle. A zero-length bundle is not a degenerate success — nothing was serialized — so the floor is 1.";
416
+ readonly type: "integer";
417
+ readonly minimum: 1;
418
+ };
419
+ readonly ExpectedSha256: {
420
+ readonly title: "ExpectedSha256";
421
+ readonly description: "Lowercase hex SHA-256 of the whole bundle's bytes. Kept in the hex form the 1.0 descriptor published rather than moved to DigestMultibase, because it is an unchanged member of an existing descriptor and re-encoding it would break every stream producer for no gain in what it checks. For a chunked transfer it is the check over the reassembled bundle, applied after every chunk has verified individually, so that a correct set of chunks assembled in the wrong order is still caught.";
422
+ readonly type: "string";
423
+ readonly pattern: "^[0-9a-f]{64}$";
424
+ };
425
+ readonly UploadTarget: {
426
+ readonly title: "UploadTarget";
427
+ readonly type: "object";
428
+ readonly additionalProperties: false;
429
+ readonly required: readonly ["kind"];
430
+ readonly description: "What the uploaded bytes are for, committed before any byte moves. `file`: one file at `path`, written into the site when the upload commits — the single-file write. `bundle`: a gzip-compressed tar of the whole site, staged when the upload commits and published by vtc/website/deploy. `path` is required for a `file` target and forbidden for a `bundle`, and `ifMatch` is allowed only for a `file` — rules over two members that this schema does not express; a community refuses a violation with `malformedRequest`. `ifMatch` is optimistic concurrency: the write commits only if the file's current content hash is this value.";
431
+ readonly properties: {
432
+ readonly kind: {
433
+ readonly type: "string";
434
+ readonly enum: readonly ["file", "bundle"];
435
+ };
436
+ readonly path: {
437
+ readonly $ref: "#/$defs/WebsitePath";
438
+ };
439
+ readonly ifMatch: {
440
+ readonly $ref: "#/$defs/WebsiteEtag";
441
+ };
442
+ };
443
+ };
444
+ readonly WebsiteEtag: {
445
+ readonly title: "WebsiteEtag";
446
+ readonly type: "string";
447
+ readonly pattern: "^[0-9a-f]{64}$";
448
+ 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.";
449
+ };
450
+ readonly WebsitePath: {
451
+ readonly title: "WebsitePath";
452
+ readonly type: "string";
453
+ readonly minLength: 1;
454
+ readonly maxLength: 1024;
455
+ readonly pattern: "^[^\\\\]+$";
456
+ 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.";
457
+ };
458
+ readonly UploadId: {
459
+ readonly title: "UploadId";
460
+ readonly type: "string";
461
+ readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$";
462
+ readonly description: "Handle for one upload across begin, chunk, commit and abort, and — for a bundle — deploy. Recipient-generated and unguessable, which is what lets a reference to somebody else's upload be answered as not-found without confirming it exists. Opaque: a producer quotes what it was given.";
463
+ };
464
+ };
465
+ };
466
+ };
467
+ /**
468
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
469
+ * tracks the *issuer* party's requirement because a response swaps the
470
+ * parties (§7.3 item 5).
471
+ */
472
+ export declare const RESPONSE_SPEC: {
473
+ readonly typeUri: "https://trusttasks.org/spec/vtc/website/upload/commit/0.1#response";
474
+ readonly isBearer: false;
475
+ readonly isProofRequired: true;
476
+ readonly isRecipientRequired: true;
477
+ readonly isIssuedAtRequired: true;
478
+ readonly payloadSchema: {
479
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
480
+ readonly $ref: "#/$defs/Response";
481
+ readonly $defs: {
482
+ readonly WrittenFile: {
483
+ readonly title: "WrittenFile";
484
+ readonly type: "object";
485
+ readonly additionalProperties: false;
486
+ readonly required: readonly ["path", "etag", "sizeBytes"];
487
+ readonly description: "The file a `file` upload wrote.";
488
+ readonly properties: {
489
+ readonly path: {
490
+ readonly $ref: "#/$defs/WebsitePath";
491
+ };
492
+ readonly etag: {
493
+ readonly $ref: "#/$defs/WebsiteEtag";
494
+ };
495
+ readonly sizeBytes: {
496
+ readonly type: "integer";
497
+ readonly minimum: 1;
498
+ readonly description: "The file's size in bytes.";
499
+ };
500
+ };
501
+ };
502
+ readonly Response: {
503
+ readonly $anchor: "response";
504
+ readonly title: "VTC Website — Upload — Commit — response payload";
505
+ readonly type: "object";
506
+ readonly additionalProperties: false;
507
+ readonly required: readonly ["uploadId", "target", "sha256", "sizeBytes"];
508
+ readonly description: "Exactly one of `file` (for a `file` target) and `stagedUntil` (for a `bundle` target) is present — a rule over two members that this schema does not express.";
509
+ readonly properties: {
510
+ readonly uploadId: {
511
+ readonly $ref: "#/$defs/UploadId";
512
+ };
513
+ readonly target: {
514
+ readonly $ref: "#/$defs/UploadTarget";
515
+ };
516
+ readonly sha256: {
517
+ readonly $ref: "#/$defs/ExpectedSha256";
518
+ };
519
+ readonly sizeBytes: {
520
+ readonly $ref: "#/$defs/ExpectedSizeBytes";
521
+ };
522
+ readonly file: {
523
+ readonly $ref: "#/$defs/WrittenFile";
524
+ };
525
+ readonly stagedUntil: {
526
+ readonly $ref: "#/$defs/ExpiresAt";
527
+ };
528
+ readonly ext: {
529
+ readonly $ref: "#/$defs/Ext";
530
+ };
531
+ };
532
+ };
533
+ readonly Ext: {
534
+ readonly title: "Ext";
535
+ 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.";
536
+ readonly type: "object";
537
+ readonly minProperties: 1;
538
+ readonly additionalProperties: true;
539
+ readonly propertyNames: {
540
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
541
+ };
542
+ };
543
+ readonly ExpiresAt: {
544
+ readonly title: "ExpiresAt";
545
+ readonly description: "After which the bundle is collected: staged bytes discarded, tokens and chunk requests refused. Short by design. For a chunked transfer a recipient may move it later as chunks are exchanged, never past its own ceiling — each chunk response reports the current value.";
546
+ readonly type: "string";
547
+ readonly format: "date-time";
548
+ };
549
+ readonly ExpectedSizeBytes: {
550
+ readonly title: "ExpectedSizeBytes";
551
+ readonly description: "Total byte count of the bundle. A zero-length bundle is not a degenerate success — nothing was serialized — so the floor is 1.";
552
+ readonly type: "integer";
553
+ readonly minimum: 1;
554
+ };
555
+ readonly ExpectedSha256: {
556
+ readonly title: "ExpectedSha256";
557
+ readonly description: "Lowercase hex SHA-256 of the whole bundle's bytes. Kept in the hex form the 1.0 descriptor published rather than moved to DigestMultibase, because it is an unchanged member of an existing descriptor and re-encoding it would break every stream producer for no gain in what it checks. For a chunked transfer it is the check over the reassembled bundle, applied after every chunk has verified individually, so that a correct set of chunks assembled in the wrong order is still caught.";
558
+ readonly type: "string";
559
+ readonly pattern: "^[0-9a-f]{64}$";
560
+ };
561
+ readonly UploadTarget: {
562
+ readonly title: "UploadTarget";
563
+ readonly type: "object";
564
+ readonly additionalProperties: false;
565
+ readonly required: readonly ["kind"];
566
+ readonly description: "What the uploaded bytes are for, committed before any byte moves. `file`: one file at `path`, written into the site when the upload commits — the single-file write. `bundle`: a gzip-compressed tar of the whole site, staged when the upload commits and published by vtc/website/deploy. `path` is required for a `file` target and forbidden for a `bundle`, and `ifMatch` is allowed only for a `file` — rules over two members that this schema does not express; a community refuses a violation with `malformedRequest`. `ifMatch` is optimistic concurrency: the write commits only if the file's current content hash is this value.";
567
+ readonly properties: {
568
+ readonly kind: {
569
+ readonly type: "string";
570
+ readonly enum: readonly ["file", "bundle"];
571
+ };
572
+ readonly path: {
573
+ readonly $ref: "#/$defs/WebsitePath";
574
+ };
575
+ readonly ifMatch: {
576
+ readonly $ref: "#/$defs/WebsiteEtag";
577
+ };
578
+ };
579
+ };
580
+ readonly WebsiteEtag: {
581
+ readonly title: "WebsiteEtag";
582
+ readonly type: "string";
583
+ readonly pattern: "^[0-9a-f]{64}$";
584
+ 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.";
585
+ };
586
+ readonly WebsitePath: {
587
+ readonly title: "WebsitePath";
588
+ readonly type: "string";
589
+ readonly minLength: 1;
590
+ readonly maxLength: 1024;
591
+ readonly pattern: "^[^\\\\]+$";
592
+ 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.";
593
+ };
594
+ readonly UploadId: {
595
+ readonly title: "UploadId";
596
+ readonly type: "string";
597
+ readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$";
598
+ readonly description: "Handle for one upload across begin, chunk, commit and abort, and — for a bundle — deploy. Recipient-generated and unguessable, which is what lets a reference to somebody else's upload be answered as not-found without confirming it exists. Opaque: a producer quotes what it was given.";
599
+ };
600
+ };
601
+ };
602
+ };
603
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vtc/website/upload/commit/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAGhK;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,EAAE,QAAQ,CAAC;IACnB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,qCAAqC;IACpD,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,EAAE,YAAY,CAAC;IACrB,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,EAAE,iBAAiB,CAAC;IAC7B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE,WAAW,CAAC;IAClB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,kHAAkH;AAClH,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC;AAEpH,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,2DAAoE,CAAC;AAE7F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,6BAA6B,CAAC;AAEpD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,oEAA6E,CAAC;AAE/G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,qCAAqC,CAAC;AAE7D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwJjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyI1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}