@distilled.cloud/cloudflare 0.12.3 → 0.12.5

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 (41) hide show
  1. package/lib/services/accounts.d.ts +52 -52
  2. package/lib/services/accounts.d.ts.map +1 -1
  3. package/lib/services/accounts.js +1533 -569
  4. package/lib/services/accounts.js.map +1 -1
  5. package/lib/services/d1.d.ts +7 -1
  6. package/lib/services/d1.d.ts.map +1 -1
  7. package/lib/services/d1.js +4 -1
  8. package/lib/services/d1.js.map +1 -1
  9. package/lib/services/pipelines.d.ts +35 -5
  10. package/lib/services/pipelines.d.ts.map +1 -1
  11. package/lib/services/pipelines.js +25 -6
  12. package/lib/services/pipelines.js.map +1 -1
  13. package/lib/services/queues.d.ts +14 -14
  14. package/lib/services/queues.d.ts.map +1 -1
  15. package/lib/services/queues.js +1192 -413
  16. package/lib/services/queues.js.map +1 -1
  17. package/lib/services/r2.d.ts +32 -32
  18. package/lib/services/r2.d.ts.map +1 -1
  19. package/lib/services/r2.js +873 -391
  20. package/lib/services/r2.js.map +1 -1
  21. package/lib/services/user.d.ts +36 -5
  22. package/lib/services/user.d.ts.map +1 -1
  23. package/lib/services/user.js +32 -5
  24. package/lib/services/user.js.map +1 -1
  25. package/lib/services/workers.d.ts +51 -1
  26. package/lib/services/workers.d.ts.map +1 -1
  27. package/lib/services/workers.js +59 -1
  28. package/lib/services/workers.js.map +1 -1
  29. package/lib/services/workflows.d.ts +8 -2
  30. package/lib/services/workflows.d.ts.map +1 -1
  31. package/lib/services/workflows.js +5 -2
  32. package/lib/services/workflows.js.map +1 -1
  33. package/package.json +2 -2
  34. package/src/services/accounts.ts +3546 -1036
  35. package/src/services/d1.ts +9 -2
  36. package/src/services/pipelines.ts +56 -11
  37. package/src/services/queues.ts +2978 -829
  38. package/src/services/r2.ts +2232 -848
  39. package/src/services/user.ts +66 -10
  40. package/src/services/workers.ts +77 -2
  41. package/src/services/workflows.ts +10 -2
@@ -15,51 +15,61 @@ import { SensitiveString } from "../sensitive.js";
15
15
  // =============================================================================
16
16
  export class BucketAlreadyExists extends Schema.TaggedErrorClass()("BucketAlreadyExists", { code: Schema.Number, message: Schema.String }) {
17
17
  }
18
- T.applyErrorMatchers(BucketAlreadyExists, [{ "code": 10004 }]);
18
+ T.applyErrorMatchers(BucketAlreadyExists, [{ code: 10004 }]);
19
19
  export class BucketNotFound extends Schema.TaggedErrorClass()("BucketNotFound", { code: Schema.Number, message: Schema.String }) {
20
20
  }
21
- T.applyErrorMatchers(BucketNotFound, [{ "code": 10085 }]);
21
+ T.applyErrorMatchers(BucketNotFound, [{ code: 10085 }]);
22
22
  export class DomainNotFound extends Schema.TaggedErrorClass()("DomainNotFound", { code: Schema.Number, message: Schema.String }) {
23
23
  }
24
- T.applyErrorMatchers(DomainNotFound, [{ "code": 10053 }]);
24
+ T.applyErrorMatchers(DomainNotFound, [{ code: 10053 }]);
25
25
  export class EventNotificationConfigNotFound extends Schema.TaggedErrorClass()("EventNotificationConfigNotFound", { code: Schema.Number, message: Schema.String }) {
26
26
  }
27
- T.applyErrorMatchers(EventNotificationConfigNotFound, [{ "code": 11011 }]);
27
+ T.applyErrorMatchers(EventNotificationConfigNotFound, [{ code: 11011 }]);
28
28
  export class EventNotificationRuleConflict extends Schema.TaggedErrorClass()("EventNotificationRuleConflict", { code: Schema.Number, message: Schema.String }) {
29
29
  }
30
- T.applyErrorMatchers(EventNotificationRuleConflict, [{ "code": 11020 }]);
30
+ T.applyErrorMatchers(EventNotificationRuleConflict, [{ code: 11020 }]);
31
31
  export class InvalidBucketName extends Schema.TaggedErrorClass()("InvalidBucketName", { code: Schema.Number, message: Schema.String }) {
32
32
  }
33
- T.applyErrorMatchers(InvalidBucketName, [{ "code": 10005 }]);
33
+ T.applyErrorMatchers(InvalidBucketName, [{ code: 10005 }]);
34
34
  export class InvalidEventNotificationConfig extends Schema.TaggedErrorClass()("InvalidEventNotificationConfig", { code: Schema.Number, message: Schema.String }) {
35
35
  }
36
- T.applyErrorMatchers(InvalidEventNotificationConfig, [{ "code": 11014 }, { "code": 11019 }]);
36
+ T.applyErrorMatchers(InvalidEventNotificationConfig, [
37
+ { code: 11014 },
38
+ { code: 11019 },
39
+ ]);
37
40
  export class InvalidRoute extends Schema.TaggedErrorClass()("InvalidRoute", { code: Schema.Number, message: Schema.String }) {
38
41
  }
39
- T.applyErrorMatchers(InvalidRoute, [{ "code": 7003 }]);
42
+ T.applyErrorMatchers(InvalidRoute, [{ code: 7003 }]);
40
43
  export class InvalidUpstreamCredentials extends Schema.TaggedErrorClass()("InvalidUpstreamCredentials", { code: Schema.Number, message: Schema.String }) {
41
44
  }
42
- T.applyErrorMatchers(InvalidUpstreamCredentials, [{ "code": 10063 }]);
45
+ T.applyErrorMatchers(InvalidUpstreamCredentials, [{ code: 10063 }]);
43
46
  export class NoCorsConfiguration extends Schema.TaggedErrorClass()("NoCorsConfiguration", { code: Schema.Number, message: Schema.String }) {
44
47
  }
45
- T.applyErrorMatchers(NoCorsConfiguration, [{ "code": 10059 }]);
48
+ T.applyErrorMatchers(NoCorsConfiguration, [{ code: 10059 }]);
46
49
  export class NoEventNotificationConfig extends Schema.TaggedErrorClass()("NoEventNotificationConfig", { code: Schema.Number, message: Schema.String }) {
47
50
  }
48
- T.applyErrorMatchers(NoEventNotificationConfig, [{ "code": 11015 }]);
49
- export class NoRoute extends Schema.TaggedErrorClass()("NoRoute", { code: Schema.Number, message: Schema.String }) {
51
+ T.applyErrorMatchers(NoEventNotificationConfig, [{ code: 11015 }]);
52
+ export class NoRoute extends Schema.TaggedErrorClass()("NoRoute", {
53
+ code: Schema.Number,
54
+ message: Schema.String,
55
+ }) {
50
56
  }
51
- T.applyErrorMatchers(NoRoute, [{ "code": 10015 }]);
57
+ T.applyErrorMatchers(NoRoute, [{ code: 10015 }]);
52
58
  export class NoSuchBucket extends Schema.TaggedErrorClass()("NoSuchBucket", { code: Schema.Number, message: Schema.String }) {
53
59
  }
54
- T.applyErrorMatchers(NoSuchBucket, [{ "code": 10006 }]);
60
+ T.applyErrorMatchers(NoSuchBucket, [{ code: 10006 }]);
55
61
  export class QueueNotFound extends Schema.TaggedErrorClass()("QueueNotFound", { code: Schema.Number, message: Schema.String }) {
56
62
  }
57
- T.applyErrorMatchers(QueueNotFound, [{ "code": 11000 }]);
58
- export const AbortAllSuperSlurperJobRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
59
- accountId: Schema.String.pipe(T.HttpPath("account_id"))
60
- })
61
- .pipe(T.Http({ method: "PUT", path: "/accounts/{account_id}/slurper/jobs/abortAll" }));
62
- export const AbortAllSuperSlurperJobResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(T.ResponsePath("result"));
63
+ T.applyErrorMatchers(QueueNotFound, [{ code: 11000 }]);
64
+ export const AbortAllSuperSlurperJobRequest =
65
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
66
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
67
+ }).pipe(T.Http({
68
+ method: "PUT",
69
+ path: "/accounts/{account_id}/slurper/jobs/abortAll",
70
+ }));
71
+ export const AbortAllSuperSlurperJobResponse =
72
+ /*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(T.ResponsePath("result"));
63
73
  export const abortAllSuperSlurperJob = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
64
74
  input: AbortAllSuperSlurperJobRequest,
65
75
  output: AbortAllSuperSlurperJobResponse,
@@ -68,16 +78,45 @@ export const abortAllSuperSlurperJob = /*@__PURE__*/ /*#__PURE__*/ API.make(() =
68
78
  export const GetBucketRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
69
79
  bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
70
80
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
71
- jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction"))
72
- })
73
- .pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/r2/buckets/{bucketName}" }));
81
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
82
+ }).pipe(T.Http({
83
+ method: "GET",
84
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}",
85
+ }));
74
86
  export const GetBucketResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
75
87
  creationDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
76
88
  jurisdiction: Schema.optional(Schema.Union([Schema.Literals(["default", "eu", "fedramp"]), Schema.Null])),
77
- location: Schema.optional(Schema.Union([Schema.Literals(["apac", "eeur", "enam", "weur", "wnam", "oc", "APAC", "EEUR", "ENAM", "WEUR", "WNAM", "OC"]), Schema.Null])),
89
+ location: Schema.optional(Schema.Union([
90
+ Schema.Literals([
91
+ "apac",
92
+ "eeur",
93
+ "enam",
94
+ "weur",
95
+ "wnam",
96
+ "oc",
97
+ "APAC",
98
+ "EEUR",
99
+ "ENAM",
100
+ "WEUR",
101
+ "WNAM",
102
+ "OC",
103
+ ]),
104
+ Schema.Null,
105
+ ])),
78
106
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
79
- storageClass: Schema.optional(Schema.Union([Schema.Literals(["Standard", "InfrequentAccess"]), Schema.Null]))
80
- }).pipe(Schema.encodeKeys({ creationDate: "creation_date", jurisdiction: "jurisdiction", location: "location", name: "name", storageClass: "storage_class" })).pipe(T.ResponsePath("result"));
107
+ storageClass: Schema.optional(Schema.Union([
108
+ Schema.Literals(["Standard", "InfrequentAccess"]),
109
+ Schema.Null,
110
+ ])),
111
+ })
112
+ .pipe(Schema.encodeKeys({
113
+ creationDate: "creation_date",
114
+ jurisdiction: "jurisdiction",
115
+ location: "location",
116
+ name: "name",
117
+ storageClass: "storage_class",
118
+ }))
119
+ .pipe(T.ResponsePath("result"));
81
120
  export const getBucket = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
82
121
  input: GetBucketRequest,
83
122
  output: GetBucketResponse,
@@ -91,17 +130,47 @@ export const ListBucketsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
91
130
  order: Schema.optional(Schema.Literal("name")).pipe(T.HttpQuery("order")),
92
131
  perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
93
132
  startAfter: Schema.optional(Schema.String).pipe(T.HttpQuery("start_after")),
94
- jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction"))
95
- })
96
- .pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/r2/buckets" }));
133
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
134
+ }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/r2/buckets" }));
97
135
  export const ListBucketsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
98
- buckets: Schema.optional(Schema.Union([Schema.Array(Schema.Struct({
136
+ buckets: Schema.optional(Schema.Union([
137
+ Schema.Array(Schema.Struct({
99
138
  creationDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
100
- jurisdiction: Schema.optional(Schema.Union([Schema.Literals(["default", "eu", "fedramp"]), Schema.Null])),
101
- location: Schema.optional(Schema.Union([Schema.Literals(["apac", "eeur", "enam", "weur", "wnam", "oc", "APAC", "EEUR", "ENAM", "WEUR", "WNAM", "OC"]), Schema.Null])),
139
+ jurisdiction: Schema.optional(Schema.Union([
140
+ Schema.Literals(["default", "eu", "fedramp"]),
141
+ Schema.Null,
142
+ ])),
143
+ location: Schema.optional(Schema.Union([
144
+ Schema.Literals([
145
+ "apac",
146
+ "eeur",
147
+ "enam",
148
+ "weur",
149
+ "wnam",
150
+ "oc",
151
+ "APAC",
152
+ "EEUR",
153
+ "ENAM",
154
+ "WEUR",
155
+ "WNAM",
156
+ "OC",
157
+ ]),
158
+ Schema.Null,
159
+ ])),
102
160
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
103
- storageClass: Schema.optional(Schema.Union([Schema.Literals(["Standard", "InfrequentAccess"]), Schema.Null]))
104
- }).pipe(Schema.encodeKeys({ creationDate: "creation_date", jurisdiction: "jurisdiction", location: "location", name: "name", storageClass: "storage_class" }))), Schema.Null]))
161
+ storageClass: Schema.optional(Schema.Union([
162
+ Schema.Literals(["Standard", "InfrequentAccess"]),
163
+ Schema.Null,
164
+ ])),
165
+ }).pipe(Schema.encodeKeys({
166
+ creationDate: "creation_date",
167
+ jurisdiction: "jurisdiction",
168
+ location: "location",
169
+ name: "name",
170
+ storageClass: "storage_class",
171
+ }))),
172
+ Schema.Null,
173
+ ])),
105
174
  }).pipe(T.ResponsePath("result"));
106
175
  export const listBuckets = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
107
176
  input: ListBucketsRequest,
@@ -113,16 +182,42 @@ export const CreateBucketRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
113
182
  jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
114
183
  name: Schema.String,
115
184
  locationHint: Schema.optional(Schema.Literals(["apac", "eeur", "enam", "weur", "wnam", "oc"])),
116
- storageClass: Schema.optional(Schema.Literals(["Standard", "InfrequentAccess"]))
117
- })
118
- .pipe(T.Http({ method: "POST", path: "/accounts/{account_id}/r2/buckets" }));
185
+ storageClass: Schema.optional(Schema.Literals(["Standard", "InfrequentAccess"])),
186
+ }).pipe(T.Http({ method: "POST", path: "/accounts/{account_id}/r2/buckets" }));
119
187
  export const CreateBucketResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
120
188
  creationDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
121
189
  jurisdiction: Schema.optional(Schema.Union([Schema.Literals(["default", "eu", "fedramp"]), Schema.Null])),
122
- location: Schema.optional(Schema.Union([Schema.Literals(["apac", "eeur", "enam", "weur", "wnam", "oc", "APAC", "EEUR", "ENAM", "WEUR", "WNAM", "OC"]), Schema.Null])),
190
+ location: Schema.optional(Schema.Union([
191
+ Schema.Literals([
192
+ "apac",
193
+ "eeur",
194
+ "enam",
195
+ "weur",
196
+ "wnam",
197
+ "oc",
198
+ "APAC",
199
+ "EEUR",
200
+ "ENAM",
201
+ "WEUR",
202
+ "WNAM",
203
+ "OC",
204
+ ]),
205
+ Schema.Null,
206
+ ])),
123
207
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
124
- storageClass: Schema.optional(Schema.Union([Schema.Literals(["Standard", "InfrequentAccess"]), Schema.Null]))
125
- }).pipe(Schema.encodeKeys({ creationDate: "creation_date", jurisdiction: "jurisdiction", location: "location", name: "name", storageClass: "storage_class" })).pipe(T.ResponsePath("result"));
208
+ storageClass: Schema.optional(Schema.Union([
209
+ Schema.Literals(["Standard", "InfrequentAccess"]),
210
+ Schema.Null,
211
+ ])),
212
+ })
213
+ .pipe(Schema.encodeKeys({
214
+ creationDate: "creation_date",
215
+ jurisdiction: "jurisdiction",
216
+ location: "location",
217
+ name: "name",
218
+ storageClass: "storage_class",
219
+ }))
220
+ .pipe(T.ResponsePath("result"));
126
221
  export const createBucket = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
127
222
  input: CreateBucketRequest,
128
223
  output: CreateBucketResponse,
@@ -132,16 +227,45 @@ export const PatchBucketRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
132
227
  bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
133
228
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
134
229
  storageClass: Schema.Literals(["Standard", "InfrequentAccess"]).pipe(T.HttpHeader("cf-r2-storage-class")),
135
- jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction"))
136
- })
137
- .pipe(T.Http({ method: "PATCH", path: "/accounts/{account_id}/r2/buckets/{bucketName}" }));
230
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
231
+ }).pipe(T.Http({
232
+ method: "PATCH",
233
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}",
234
+ }));
138
235
  export const PatchBucketResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
139
236
  creationDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
140
237
  jurisdiction: Schema.optional(Schema.Union([Schema.Literals(["default", "eu", "fedramp"]), Schema.Null])),
141
- location: Schema.optional(Schema.Union([Schema.Literals(["apac", "eeur", "enam", "weur", "wnam", "oc", "APAC", "EEUR", "ENAM", "WEUR", "WNAM", "OC"]), Schema.Null])),
238
+ location: Schema.optional(Schema.Union([
239
+ Schema.Literals([
240
+ "apac",
241
+ "eeur",
242
+ "enam",
243
+ "weur",
244
+ "wnam",
245
+ "oc",
246
+ "APAC",
247
+ "EEUR",
248
+ "ENAM",
249
+ "WEUR",
250
+ "WNAM",
251
+ "OC",
252
+ ]),
253
+ Schema.Null,
254
+ ])),
142
255
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
143
- storageClass: Schema.optional(Schema.Union([Schema.Literals(["Standard", "InfrequentAccess"]), Schema.Null]))
144
- }).pipe(Schema.encodeKeys({ creationDate: "creation_date", jurisdiction: "jurisdiction", location: "location", name: "name", storageClass: "storage_class" })).pipe(T.ResponsePath("result"));
256
+ storageClass: Schema.optional(Schema.Union([
257
+ Schema.Literals(["Standard", "InfrequentAccess"]),
258
+ Schema.Null,
259
+ ])),
260
+ })
261
+ .pipe(Schema.encodeKeys({
262
+ creationDate: "creation_date",
263
+ jurisdiction: "jurisdiction",
264
+ location: "location",
265
+ name: "name",
266
+ storageClass: "storage_class",
267
+ }))
268
+ .pipe(T.ResponsePath("result"));
145
269
  export const patchBucket = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
146
270
  input: PatchBucketRequest,
147
271
  output: PatchBucketResponse,
@@ -150,10 +274,13 @@ export const patchBucket = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
150
274
  export const DeleteBucketRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
151
275
  bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
152
276
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
153
- jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction"))
154
- })
155
- .pipe(T.Http({ method: "DELETE", path: "/accounts/{account_id}/r2/buckets/{bucketName}" }));
156
- export const DeleteBucketResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
277
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
278
+ }).pipe(T.Http({
279
+ method: "DELETE",
280
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}",
281
+ }));
282
+ export const DeleteBucketResponse =
283
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
157
284
  export const deleteBucket = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
158
285
  input: DeleteBucketRequest,
159
286
  output: DeleteBucketResponse,
@@ -162,20 +289,25 @@ export const deleteBucket = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
162
289
  export const GetBucketCorsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
163
290
  bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
164
291
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
165
- jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction"))
166
- })
167
- .pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/r2/buckets/{bucketName}/cors" }));
292
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
293
+ }).pipe(T.Http({
294
+ method: "GET",
295
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/cors",
296
+ }));
168
297
  export const GetBucketCorsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
169
- rules: Schema.optional(Schema.Union([Schema.Array(Schema.Struct({
298
+ rules: Schema.optional(Schema.Union([
299
+ Schema.Array(Schema.Struct({
170
300
  allowed: Schema.Struct({
171
301
  methods: Schema.Array(Schema.Literals(["GET", "PUT", "POST", "DELETE", "HEAD"])),
172
302
  origins: Schema.Array(Schema.String),
173
- headers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null]))
303
+ headers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
174
304
  }),
175
305
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
176
306
  exposeHeaders: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
177
- maxAgeSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null]))
178
- })), Schema.Null]))
307
+ maxAgeSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
308
+ })),
309
+ Schema.Null,
310
+ ])),
179
311
  }).pipe(T.ResponsePath("result"));
180
312
  export const getBucketCors = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
181
313
  input: GetBucketCorsRequest,
@@ -190,82 +322,132 @@ export const PutBucketCorsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
190
322
  allowed: Schema.Struct({
191
323
  methods: Schema.Array(Schema.Literals(["GET", "PUT", "POST", "DELETE", "HEAD"])),
192
324
  origins: Schema.Array(Schema.String),
193
- headers: Schema.optional(Schema.Array(Schema.String))
325
+ headers: Schema.optional(Schema.Array(Schema.String)),
194
326
  }),
195
327
  id: Schema.optional(Schema.String),
196
328
  exposeHeaders: Schema.optional(Schema.Array(Schema.String)),
197
- maxAgeSeconds: Schema.optional(Schema.Number)
198
- })))
199
- })
200
- .pipe(T.Http({ method: "PUT", path: "/accounts/{account_id}/r2/buckets/{bucketName}/cors" }));
201
- export const PutBucketCorsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
329
+ maxAgeSeconds: Schema.optional(Schema.Number),
330
+ }))),
331
+ }).pipe(T.Http({
332
+ method: "PUT",
333
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/cors",
334
+ }));
335
+ export const PutBucketCorsResponse =
336
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
202
337
  export const putBucketCors = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
203
338
  input: PutBucketCorsRequest,
204
339
  output: PutBucketCorsResponse,
205
340
  errors: [NoSuchBucket, InvalidRoute],
206
341
  }));
207
- export const DeleteBucketCorsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
342
+ export const DeleteBucketCorsRequest =
343
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
208
344
  bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
209
345
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
210
- jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction"))
211
- })
212
- .pipe(T.Http({ method: "DELETE", path: "/accounts/{account_id}/r2/buckets/{bucketName}/cors" }));
213
- export const DeleteBucketCorsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
346
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
347
+ }).pipe(T.Http({
348
+ method: "DELETE",
349
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/cors",
350
+ }));
351
+ export const DeleteBucketCorsResponse =
352
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
214
353
  export const deleteBucketCors = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
215
354
  input: DeleteBucketCorsRequest,
216
355
  output: DeleteBucketCorsResponse,
217
356
  errors: [NoSuchBucket, InvalidRoute],
218
357
  }));
219
- export const GetBucketDomainCustomRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
358
+ export const GetBucketDomainCustomRequest =
359
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
220
360
  bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
221
361
  domain: Schema.String.pipe(T.HttpPath("domain")),
222
362
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
223
- jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction"))
224
- })
225
- .pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/custom/{domain}" }));
226
- export const GetBucketDomainCustomResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
363
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
364
+ }).pipe(T.Http({
365
+ method: "GET",
366
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/custom/{domain}",
367
+ }));
368
+ export const GetBucketDomainCustomResponse =
369
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
227
370
  domain: Schema.String,
228
371
  enabled: Schema.Boolean,
229
372
  status: Schema.Struct({
230
- ownership: Schema.Literals(["pending", "active", "deactivated", "blocked", "error", "unknown"]),
231
- ssl: Schema.Literals(["initializing", "pending", "active", "deactivated", "error", "unknown"])
373
+ ownership: Schema.Literals([
374
+ "pending",
375
+ "active",
376
+ "deactivated",
377
+ "blocked",
378
+ "error",
379
+ "unknown",
380
+ ]),
381
+ ssl: Schema.Literals([
382
+ "initializing",
383
+ "pending",
384
+ "active",
385
+ "deactivated",
386
+ "error",
387
+ "unknown",
388
+ ]),
232
389
  }),
233
390
  ciphers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
234
- minTLS: Schema.optional(Schema.Union([Schema.Literals(["1.0", "1.1", "1.2", "1.3"]), Schema.Null])),
391
+ minTLS: Schema.optional(Schema.Union([
392
+ Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
393
+ Schema.Null,
394
+ ])),
235
395
  zoneId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
236
- zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
396
+ zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
237
397
  }).pipe(T.ResponsePath("result"));
238
398
  export const getBucketDomainCustom = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
239
399
  input: GetBucketDomainCustomRequest,
240
400
  output: GetBucketDomainCustomResponse,
241
401
  errors: [DomainNotFound, NoSuchBucket, InvalidRoute],
242
402
  }));
243
- export const ListBucketDomainCustomsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
403
+ export const ListBucketDomainCustomsRequest =
404
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
244
405
  bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
245
406
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
246
- jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction"))
247
- })
248
- .pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/custom" }));
249
- export const ListBucketDomainCustomsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
407
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
408
+ }).pipe(T.Http({
409
+ method: "GET",
410
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/custom",
411
+ }));
412
+ export const ListBucketDomainCustomsResponse =
413
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
250
414
  domains: Schema.Array(Schema.Struct({
251
415
  domain: Schema.String,
252
416
  enabled: Schema.Boolean,
253
417
  status: Schema.Struct({
254
- ownership: Schema.Literals(["pending", "active", "deactivated", "blocked", "error", "unknown"]),
255
- ssl: Schema.Literals(["initializing", "pending", "active", "deactivated", "error", "unknown"])
418
+ ownership: Schema.Literals([
419
+ "pending",
420
+ "active",
421
+ "deactivated",
422
+ "blocked",
423
+ "error",
424
+ "unknown",
425
+ ]),
426
+ ssl: Schema.Literals([
427
+ "initializing",
428
+ "pending",
429
+ "active",
430
+ "deactivated",
431
+ "error",
432
+ "unknown",
433
+ ]),
256
434
  }),
257
435
  ciphers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
258
- minTLS: Schema.optional(Schema.Union([Schema.Literals(["1.0", "1.1", "1.2", "1.3"]), Schema.Null])),
436
+ minTLS: Schema.optional(Schema.Union([
437
+ Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
438
+ Schema.Null,
439
+ ])),
259
440
  zoneId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
260
- zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
261
- }))
441
+ zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
442
+ })),
262
443
  }).pipe(T.ResponsePath("result"));
263
444
  export const listBucketDomainCustoms = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
264
445
  input: ListBucketDomainCustomsRequest,
265
446
  output: ListBucketDomainCustomsResponse,
266
447
  errors: [NoSuchBucket, InvalidRoute],
267
448
  }));
268
- export const CreateBucketDomainCustomRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
449
+ export const CreateBucketDomainCustomRequest =
450
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
269
451
  bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
270
452
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
271
453
  jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
@@ -273,255 +455,383 @@ export const CreateBucketDomainCustomRequest = /*@__PURE__*/ /*#__PURE__*/ Schem
273
455
  enabled: Schema.Boolean,
274
456
  zoneId: Schema.String,
275
457
  ciphers: Schema.optional(Schema.Array(Schema.String)),
276
- minTLS: Schema.optional(Schema.Literals(["1.0", "1.1", "1.2", "1.3"]))
277
- })
278
- .pipe(T.Http({ method: "POST", path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/custom" }));
279
- export const CreateBucketDomainCustomResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
458
+ minTLS: Schema.optional(Schema.Literals(["1.0", "1.1", "1.2", "1.3"])),
459
+ }).pipe(T.Http({
460
+ method: "POST",
461
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/custom",
462
+ }));
463
+ export const CreateBucketDomainCustomResponse =
464
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
280
465
  domain: Schema.String,
281
466
  enabled: Schema.Boolean,
282
467
  ciphers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
283
- minTLS: Schema.optional(Schema.Union([Schema.Literals(["1.0", "1.1", "1.2", "1.3"]), Schema.Null]))
468
+ minTLS: Schema.optional(Schema.Union([
469
+ Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
470
+ Schema.Null,
471
+ ])),
284
472
  }).pipe(T.ResponsePath("result"));
285
473
  export const createBucketDomainCustom = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
286
474
  input: CreateBucketDomainCustomRequest,
287
475
  output: CreateBucketDomainCustomResponse,
288
476
  errors: [NoSuchBucket, InvalidBucketName],
289
477
  }));
290
- export const UpdateBucketDomainCustomRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
478
+ export const UpdateBucketDomainCustomRequest =
479
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
291
480
  bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
292
481
  domain: Schema.String.pipe(T.HttpPath("domain")),
293
482
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
294
483
  jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
295
484
  ciphers: Schema.optional(Schema.Array(Schema.String)),
296
485
  enabled: Schema.optional(Schema.Boolean),
297
- minTLS: Schema.optional(Schema.Literals(["1.0", "1.1", "1.2", "1.3"]))
298
- })
299
- .pipe(T.Http({ method: "PUT", path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/custom/{domain}" }));
300
- export const UpdateBucketDomainCustomResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
486
+ minTLS: Schema.optional(Schema.Literals(["1.0", "1.1", "1.2", "1.3"])),
487
+ }).pipe(T.Http({
488
+ method: "PUT",
489
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/custom/{domain}",
490
+ }));
491
+ export const UpdateBucketDomainCustomResponse =
492
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
301
493
  domain: Schema.String,
302
494
  ciphers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
303
495
  enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
304
- minTLS: Schema.optional(Schema.Union([Schema.Literals(["1.0", "1.1", "1.2", "1.3"]), Schema.Null]))
496
+ minTLS: Schema.optional(Schema.Union([
497
+ Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
498
+ Schema.Null,
499
+ ])),
305
500
  }).pipe(T.ResponsePath("result"));
306
501
  export const updateBucketDomainCustom = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
307
502
  input: UpdateBucketDomainCustomRequest,
308
503
  output: UpdateBucketDomainCustomResponse,
309
504
  errors: [],
310
505
  }));
311
- export const DeleteBucketDomainCustomRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
506
+ export const DeleteBucketDomainCustomRequest =
507
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
312
508
  bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
313
509
  domain: Schema.String.pipe(T.HttpPath("domain")),
314
510
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
315
- jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction"))
316
- })
317
- .pipe(T.Http({ method: "DELETE", path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/custom/{domain}" }));
318
- export const DeleteBucketDomainCustomResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
319
- domain: Schema.String
511
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
512
+ }).pipe(T.Http({
513
+ method: "DELETE",
514
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/custom/{domain}",
515
+ }));
516
+ export const DeleteBucketDomainCustomResponse =
517
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
518
+ domain: Schema.String,
320
519
  }).pipe(T.ResponsePath("result"));
321
520
  export const deleteBucketDomainCustom = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
322
521
  input: DeleteBucketDomainCustomRequest,
323
522
  output: DeleteBucketDomainCustomResponse,
324
523
  errors: [],
325
524
  }));
326
- export const ListBucketDomainManagedsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
525
+ export const ListBucketDomainManagedsRequest =
526
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
327
527
  bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
328
528
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
329
- jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction"))
330
- })
331
- .pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/managed" }));
332
- export const ListBucketDomainManagedsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
529
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
530
+ }).pipe(T.Http({
531
+ method: "GET",
532
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/managed",
533
+ }));
534
+ export const ListBucketDomainManagedsResponse =
535
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
333
536
  bucketId: Schema.String,
334
537
  domain: Schema.String,
335
- enabled: Schema.Boolean
538
+ enabled: Schema.Boolean,
336
539
  }).pipe(T.ResponsePath("result"));
337
540
  export const listBucketDomainManageds = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
338
541
  input: ListBucketDomainManagedsRequest,
339
542
  output: ListBucketDomainManagedsResponse,
340
543
  errors: [NoSuchBucket, InvalidRoute],
341
544
  }));
342
- export const PutBucketDomainManagedRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
545
+ export const PutBucketDomainManagedRequest =
546
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
343
547
  bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
344
548
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
345
549
  jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
346
- enabled: Schema.Boolean
347
- })
348
- .pipe(T.Http({ method: "PUT", path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/managed" }));
349
- export const PutBucketDomainManagedResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
550
+ enabled: Schema.Boolean,
551
+ }).pipe(T.Http({
552
+ method: "PUT",
553
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/managed",
554
+ }));
555
+ export const PutBucketDomainManagedResponse =
556
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
350
557
  bucketId: Schema.String,
351
558
  domain: Schema.String,
352
- enabled: Schema.Boolean
559
+ enabled: Schema.Boolean,
353
560
  }).pipe(T.ResponsePath("result"));
354
561
  export const putBucketDomainManaged = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
355
562
  input: PutBucketDomainManagedRequest,
356
563
  output: PutBucketDomainManagedResponse,
357
564
  errors: [NoSuchBucket, InvalidRoute],
358
565
  }));
359
- export const GetBucketEventNotificationRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
566
+ export const GetBucketEventNotificationRequest =
567
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
360
568
  bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
361
569
  queueId: Schema.String.pipe(T.HttpPath("queueId")),
362
570
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
363
- jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction"))
364
- })
365
- .pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/event_notifications/r2/{bucketName}/configuration/queues/{queueId}" }));
366
- export const GetBucketEventNotificationResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
571
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
572
+ }).pipe(T.Http({
573
+ method: "GET",
574
+ path: "/accounts/{account_id}/event_notifications/r2/{bucketName}/configuration/queues/{queueId}",
575
+ }));
576
+ export const GetBucketEventNotificationResponse =
577
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
367
578
  queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
368
579
  queueName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
369
- rules: Schema.optional(Schema.Union([Schema.Array(Schema.Struct({
370
- actions: Schema.Array(Schema.Literals(["PutObject", "CopyObject", "DeleteObject", "CompleteMultipartUpload", "LifecycleDeletion"])),
580
+ rules: Schema.optional(Schema.Union([
581
+ Schema.Array(Schema.Struct({
582
+ actions: Schema.Array(Schema.Literals([
583
+ "PutObject",
584
+ "CopyObject",
585
+ "DeleteObject",
586
+ "CompleteMultipartUpload",
587
+ "LifecycleDeletion",
588
+ ])),
371
589
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
372
590
  description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
373
591
  prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
374
592
  ruleId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
375
- suffix: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
376
- })), Schema.Null]))
593
+ suffix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
594
+ })),
595
+ Schema.Null,
596
+ ])),
377
597
  }).pipe(T.ResponsePath("result"));
378
598
  export const getBucketEventNotification = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
379
599
  input: GetBucketEventNotificationRequest,
380
600
  output: GetBucketEventNotificationResponse,
381
- errors: [BucketNotFound, NoEventNotificationConfig, EventNotificationConfigNotFound, QueueNotFound, InvalidRoute],
601
+ errors: [
602
+ BucketNotFound,
603
+ NoEventNotificationConfig,
604
+ EventNotificationConfigNotFound,
605
+ QueueNotFound,
606
+ InvalidRoute,
607
+ ],
382
608
  }));
383
- export const ListBucketEventNotificationsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
609
+ export const ListBucketEventNotificationsRequest =
610
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
384
611
  bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
385
612
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
386
- jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction"))
387
- })
388
- .pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/event_notifications/r2/{bucketName}/configuration" }));
389
- export const ListBucketEventNotificationsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
613
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
614
+ }).pipe(T.Http({
615
+ method: "GET",
616
+ path: "/accounts/{account_id}/event_notifications/r2/{bucketName}/configuration",
617
+ }));
618
+ export const ListBucketEventNotificationsResponse =
619
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
390
620
  bucketName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
391
- queues: Schema.optional(Schema.Union([Schema.Array(Schema.Struct({
621
+ queues: Schema.optional(Schema.Union([
622
+ Schema.Array(Schema.Struct({
392
623
  queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
393
624
  queueName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
394
- rules: Schema.optional(Schema.Union([Schema.Array(Schema.Struct({
395
- actions: Schema.Array(Schema.Literals(["PutObject", "CopyObject", "DeleteObject", "CompleteMultipartUpload", "LifecycleDeletion"])),
625
+ rules: Schema.optional(Schema.Union([
626
+ Schema.Array(Schema.Struct({
627
+ actions: Schema.Array(Schema.Literals([
628
+ "PutObject",
629
+ "CopyObject",
630
+ "DeleteObject",
631
+ "CompleteMultipartUpload",
632
+ "LifecycleDeletion",
633
+ ])),
396
634
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
397
635
  description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
398
636
  prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
399
637
  ruleId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
400
- suffix: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
401
- })), Schema.Null]))
402
- })), Schema.Null]))
638
+ suffix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
639
+ })),
640
+ Schema.Null,
641
+ ])),
642
+ })),
643
+ Schema.Null,
644
+ ])),
403
645
  }).pipe(T.ResponsePath("result"));
404
646
  export const listBucketEventNotifications = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
405
647
  input: ListBucketEventNotificationsRequest,
406
648
  output: ListBucketEventNotificationsResponse,
407
- errors: [NoSuchBucket, InvalidRoute, NoEventNotificationConfig, BucketNotFound],
649
+ errors: [
650
+ NoSuchBucket,
651
+ InvalidRoute,
652
+ NoEventNotificationConfig,
653
+ BucketNotFound,
654
+ ],
408
655
  }));
409
- export const PutBucketEventNotificationRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
656
+ export const PutBucketEventNotificationRequest =
657
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
410
658
  bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
411
659
  queueId: Schema.String.pipe(T.HttpPath("queueId")),
412
660
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
413
661
  jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
414
662
  rules: Schema.Array(Schema.Struct({
415
- actions: Schema.Array(Schema.Literals(["PutObject", "CopyObject", "DeleteObject", "CompleteMultipartUpload", "LifecycleDeletion"])),
663
+ actions: Schema.Array(Schema.Literals([
664
+ "PutObject",
665
+ "CopyObject",
666
+ "DeleteObject",
667
+ "CompleteMultipartUpload",
668
+ "LifecycleDeletion",
669
+ ])),
416
670
  description: Schema.optional(Schema.String),
417
671
  prefix: Schema.optional(Schema.String),
418
- suffix: Schema.optional(Schema.String)
419
- }))
420
- })
421
- .pipe(T.Http({ method: "PUT", path: "/accounts/{account_id}/event_notifications/r2/{bucketName}/configuration/queues/{queueId}" }));
422
- export const PutBucketEventNotificationResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
672
+ suffix: Schema.optional(Schema.String),
673
+ })),
674
+ }).pipe(T.Http({
675
+ method: "PUT",
676
+ path: "/accounts/{account_id}/event_notifications/r2/{bucketName}/configuration/queues/{queueId}",
677
+ }));
678
+ export const PutBucketEventNotificationResponse =
679
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
423
680
  export const putBucketEventNotification = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
424
681
  input: PutBucketEventNotificationRequest,
425
682
  output: PutBucketEventNotificationResponse,
426
- errors: [BucketNotFound, InvalidEventNotificationConfig, EventNotificationRuleConflict, QueueNotFound, InvalidRoute],
683
+ errors: [
684
+ BucketNotFound,
685
+ InvalidEventNotificationConfig,
686
+ EventNotificationRuleConflict,
687
+ QueueNotFound,
688
+ InvalidRoute,
689
+ ],
427
690
  }));
428
- export const DeleteBucketEventNotificationRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
691
+ export const DeleteBucketEventNotificationRequest =
692
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
429
693
  bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
430
694
  queueId: Schema.String.pipe(T.HttpPath("queueId")),
431
695
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
432
- jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction"))
433
- })
434
- .pipe(T.Http({ method: "DELETE", path: "/accounts/{account_id}/event_notifications/r2/{bucketName}/configuration/queues/{queueId}" }));
435
- export const DeleteBucketEventNotificationResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
696
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
697
+ }).pipe(T.Http({
698
+ method: "DELETE",
699
+ path: "/accounts/{account_id}/event_notifications/r2/{bucketName}/configuration/queues/{queueId}",
700
+ }));
701
+ export const DeleteBucketEventNotificationResponse =
702
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
436
703
  export const deleteBucketEventNotification = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
437
704
  input: DeleteBucketEventNotificationRequest,
438
705
  output: DeleteBucketEventNotificationResponse,
439
- errors: [BucketNotFound, EventNotificationConfigNotFound, QueueNotFound, InvalidRoute],
706
+ errors: [
707
+ BucketNotFound,
708
+ EventNotificationConfigNotFound,
709
+ QueueNotFound,
710
+ InvalidRoute,
711
+ ],
440
712
  }));
441
- export const GetBucketLifecycleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
713
+ export const GetBucketLifecycleRequest =
714
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
442
715
  bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
443
716
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
444
- jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction"))
445
- })
446
- .pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/r2/buckets/{bucketName}/lifecycle" }));
447
- export const GetBucketLifecycleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
448
- rules: Schema.optional(Schema.Union([Schema.Array(Schema.Struct({
717
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
718
+ }).pipe(T.Http({
719
+ method: "GET",
720
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/lifecycle",
721
+ }));
722
+ export const GetBucketLifecycleResponse =
723
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
724
+ rules: Schema.optional(Schema.Union([
725
+ Schema.Array(Schema.Struct({
449
726
  id: Schema.String,
450
727
  conditions: Schema.Struct({
451
- prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
728
+ prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
452
729
  }),
453
730
  enabled: Schema.Boolean,
454
- abortMultipartUploadsTransition: Schema.optional(Schema.Union([Schema.Struct({
455
- condition: Schema.optional(Schema.Union([Schema.Struct({
731
+ abortMultipartUploadsTransition: Schema.optional(Schema.Union([
732
+ Schema.Struct({
733
+ condition: Schema.optional(Schema.Union([
734
+ Schema.Struct({
456
735
  maxAge: Schema.Number,
457
- type: Schema.Literal("Age")
458
- }), Schema.Null]))
459
- }), Schema.Null])),
460
- deleteObjectsTransition: Schema.optional(Schema.Union([Schema.Struct({
461
- condition: Schema.optional(Schema.Union([Schema.Union([Schema.Struct({
736
+ type: Schema.Literal("Age"),
737
+ }),
738
+ Schema.Null,
739
+ ])),
740
+ }),
741
+ Schema.Null,
742
+ ])),
743
+ deleteObjectsTransition: Schema.optional(Schema.Union([
744
+ Schema.Struct({
745
+ condition: Schema.optional(Schema.Union([
746
+ Schema.Union([
747
+ Schema.Struct({
462
748
  maxAge: Schema.Number,
463
- type: Schema.Literal("Age")
464
- }), Schema.Struct({
749
+ type: Schema.Literal("Age"),
750
+ }),
751
+ Schema.Struct({
465
752
  date: Schema.String,
466
- type: Schema.Literal("Date")
467
- })]), Schema.Null]))
468
- }), Schema.Null])),
469
- storageClassTransitions: Schema.optional(Schema.Union([Schema.Array(Schema.Struct({
470
- condition: Schema.Union([Schema.Struct({
753
+ type: Schema.Literal("Date"),
754
+ }),
755
+ ]),
756
+ Schema.Null,
757
+ ])),
758
+ }),
759
+ Schema.Null,
760
+ ])),
761
+ storageClassTransitions: Schema.optional(Schema.Union([
762
+ Schema.Array(Schema.Struct({
763
+ condition: Schema.Union([
764
+ Schema.Struct({
471
765
  maxAge: Schema.Number,
472
- type: Schema.Literal("Age")
473
- }), Schema.Struct({
766
+ type: Schema.Literal("Age"),
767
+ }),
768
+ Schema.Struct({
474
769
  date: Schema.String,
475
- type: Schema.Literal("Date")
476
- })]),
477
- storageClass: Schema.Literal("InfrequentAccess")
478
- })), Schema.Null]))
479
- })), Schema.Null]))
770
+ type: Schema.Literal("Date"),
771
+ }),
772
+ ]),
773
+ storageClass: Schema.Literal("InfrequentAccess"),
774
+ })),
775
+ Schema.Null,
776
+ ])),
777
+ })),
778
+ Schema.Null,
779
+ ])),
480
780
  }).pipe(T.ResponsePath("result"));
481
781
  export const getBucketLifecycle = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
482
782
  input: GetBucketLifecycleRequest,
483
783
  output: GetBucketLifecycleResponse,
484
784
  errors: [NoSuchBucket, InvalidRoute],
485
785
  }));
486
- export const PutBucketLifecycleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
786
+ export const PutBucketLifecycleRequest =
787
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
487
788
  bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
488
789
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
489
790
  jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
490
791
  rules: Schema.optional(Schema.Array(Schema.Struct({
491
792
  id: Schema.String,
492
793
  conditions: Schema.Struct({
493
- prefix: Schema.String
794
+ prefix: Schema.String,
494
795
  }),
495
796
  enabled: Schema.Boolean,
496
797
  abortMultipartUploadsTransition: Schema.optional(Schema.Struct({
497
798
  condition: Schema.optional(Schema.Struct({
498
799
  maxAge: Schema.Number,
499
- type: Schema.Literal("Age")
500
- }))
800
+ type: Schema.Literal("Age"),
801
+ })),
501
802
  })),
502
803
  deleteObjectsTransition: Schema.optional(Schema.Struct({
503
- condition: Schema.optional(Schema.Union([Schema.Struct({
804
+ condition: Schema.optional(Schema.Union([
805
+ Schema.Struct({
504
806
  maxAge: Schema.Number,
505
- type: Schema.Literal("Age")
506
- }), Schema.Struct({
807
+ type: Schema.Literal("Age"),
808
+ }),
809
+ Schema.Struct({
507
810
  date: Schema.String,
508
- type: Schema.Literal("Date")
509
- })]))
811
+ type: Schema.Literal("Date"),
812
+ }),
813
+ ])),
510
814
  })),
511
815
  storageClassTransitions: Schema.optional(Schema.Array(Schema.Struct({
512
- condition: Schema.Union([Schema.Struct({
816
+ condition: Schema.Union([
817
+ Schema.Struct({
513
818
  maxAge: Schema.Number,
514
- type: Schema.Literal("Age")
515
- }), Schema.Struct({
819
+ type: Schema.Literal("Age"),
820
+ }),
821
+ Schema.Struct({
516
822
  date: Schema.String,
517
- type: Schema.Literal("Date")
518
- })]),
519
- storageClass: Schema.Literal("InfrequentAccess")
520
- })))
521
- })))
522
- })
523
- .pipe(T.Http({ method: "PUT", path: "/accounts/{account_id}/r2/buckets/{bucketName}/lifecycle" }));
524
- export const PutBucketLifecycleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
823
+ type: Schema.Literal("Date"),
824
+ }),
825
+ ]),
826
+ storageClass: Schema.Literal("InfrequentAccess"),
827
+ }))),
828
+ }))),
829
+ }).pipe(T.Http({
830
+ method: "PUT",
831
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/lifecycle",
832
+ }));
833
+ export const PutBucketLifecycleResponse =
834
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
525
835
  export const putBucketLifecycle = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
526
836
  input: PutBucketLifecycleRequest,
527
837
  output: PutBucketLifecycleResponse,
@@ -530,24 +840,33 @@ export const putBucketLifecycle = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
530
840
  export const GetBucketLockRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
531
841
  bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
532
842
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
533
- jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction"))
534
- })
535
- .pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/r2/buckets/{bucketName}/lock" }));
843
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
844
+ }).pipe(T.Http({
845
+ method: "GET",
846
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/lock",
847
+ }));
536
848
  export const GetBucketLockResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
537
- rules: Schema.optional(Schema.Union([Schema.Array(Schema.Struct({
849
+ rules: Schema.optional(Schema.Union([
850
+ Schema.Array(Schema.Struct({
538
851
  id: Schema.String,
539
- condition: Schema.Union([Schema.Struct({
852
+ condition: Schema.Union([
853
+ Schema.Struct({
540
854
  maxAgeSeconds: Schema.Number,
541
- type: Schema.Literal("Age")
542
- }), Schema.Struct({
855
+ type: Schema.Literal("Age"),
856
+ }),
857
+ Schema.Struct({
543
858
  date: Schema.String,
544
- type: Schema.Literal("Date")
545
- }), Schema.Struct({
546
- type: Schema.Literal("Indefinite")
547
- })]),
859
+ type: Schema.Literal("Date"),
860
+ }),
861
+ Schema.Struct({
862
+ type: Schema.Literal("Indefinite"),
863
+ }),
864
+ ]),
548
865
  enabled: Schema.Boolean,
549
- prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
550
- })), Schema.Null]))
866
+ prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
867
+ })),
868
+ Schema.Null,
869
+ ])),
551
870
  }).pipe(T.ResponsePath("result"));
552
871
  export const getBucketLock = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
553
872
  input: GetBucketLockRequest,
@@ -560,55 +879,81 @@ export const PutBucketLockRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
560
879
  jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
561
880
  rules: Schema.optional(Schema.Array(Schema.Struct({
562
881
  id: Schema.String,
563
- condition: Schema.Union([Schema.Struct({
882
+ condition: Schema.Union([
883
+ Schema.Struct({
564
884
  maxAgeSeconds: Schema.Number,
565
- type: Schema.Literal("Age")
566
- }), Schema.Struct({
885
+ type: Schema.Literal("Age"),
886
+ }),
887
+ Schema.Struct({
567
888
  date: Schema.String,
568
- type: Schema.Literal("Date")
569
- }), Schema.Struct({
570
- type: Schema.Literal("Indefinite")
571
- })]),
889
+ type: Schema.Literal("Date"),
890
+ }),
891
+ Schema.Struct({
892
+ type: Schema.Literal("Indefinite"),
893
+ }),
894
+ ]),
572
895
  enabled: Schema.Boolean,
573
- prefix: Schema.optional(Schema.String)
574
- })))
575
- })
576
- .pipe(T.Http({ method: "PUT", path: "/accounts/{account_id}/r2/buckets/{bucketName}/lock" }));
577
- export const PutBucketLockResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
896
+ prefix: Schema.optional(Schema.String),
897
+ }))),
898
+ }).pipe(T.Http({
899
+ method: "PUT",
900
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/lock",
901
+ }));
902
+ export const PutBucketLockResponse =
903
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
578
904
  export const putBucketLock = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
579
905
  input: PutBucketLockRequest,
580
906
  output: PutBucketLockResponse,
581
907
  errors: [NoSuchBucket, InvalidRoute],
582
908
  }));
583
- export const ListBucketMetricsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
584
- accountId: Schema.String.pipe(T.HttpPath("account_id"))
585
- })
586
- .pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/r2/metrics" }));
587
- export const ListBucketMetricsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
588
- infrequentAccess: Schema.optional(Schema.Union([Schema.Struct({
589
- published: Schema.optional(Schema.Union([Schema.Struct({
909
+ export const ListBucketMetricsRequest =
910
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
911
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
912
+ }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/r2/metrics" }));
913
+ export const ListBucketMetricsResponse =
914
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
915
+ infrequentAccess: Schema.optional(Schema.Union([
916
+ Schema.Struct({
917
+ published: Schema.optional(Schema.Union([
918
+ Schema.Struct({
590
919
  metadataSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
591
920
  objects: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
592
- payloadSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null]))
593
- }), Schema.Null])),
594
- uploaded: Schema.optional(Schema.Union([Schema.Struct({
921
+ payloadSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
922
+ }),
923
+ Schema.Null,
924
+ ])),
925
+ uploaded: Schema.optional(Schema.Union([
926
+ Schema.Struct({
595
927
  metadataSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
596
928
  objects: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
597
- payloadSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null]))
598
- }), Schema.Null]))
599
- }), Schema.Null])),
600
- standard: Schema.optional(Schema.Union([Schema.Struct({
601
- published: Schema.optional(Schema.Union([Schema.Struct({
929
+ payloadSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
930
+ }),
931
+ Schema.Null,
932
+ ])),
933
+ }),
934
+ Schema.Null,
935
+ ])),
936
+ standard: Schema.optional(Schema.Union([
937
+ Schema.Struct({
938
+ published: Schema.optional(Schema.Union([
939
+ Schema.Struct({
602
940
  metadataSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
603
941
  objects: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
604
- payloadSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null]))
605
- }), Schema.Null])),
606
- uploaded: Schema.optional(Schema.Union([Schema.Struct({
942
+ payloadSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
943
+ }),
944
+ Schema.Null,
945
+ ])),
946
+ uploaded: Schema.optional(Schema.Union([
947
+ Schema.Struct({
607
948
  metadataSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
608
949
  objects: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
609
- payloadSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null]))
610
- }), Schema.Null]))
611
- }), Schema.Null]))
950
+ payloadSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
951
+ }),
952
+ Schema.Null,
953
+ ])),
954
+ }),
955
+ Schema.Null,
956
+ ])),
612
957
  }).pipe(T.ResponsePath("result"));
613
958
  export const listBucketMetrics = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
614
959
  input: ListBucketMetricsRequest,
@@ -618,23 +963,31 @@ export const listBucketMetrics = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
618
963
  export const GetBucketSippyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
619
964
  bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
620
965
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
621
- jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction"))
622
- })
623
- .pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/r2/buckets/{bucketName}/sippy" }));
966
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
967
+ }).pipe(T.Http({
968
+ method: "GET",
969
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/sippy",
970
+ }));
624
971
  export const GetBucketSippyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
625
- destination: Schema.optional(Schema.Union([Schema.Struct({
972
+ destination: Schema.optional(Schema.Union([
973
+ Schema.Struct({
626
974
  accessKeyId: Schema.optional(Schema.Union([SensitiveString, Schema.Null])),
627
975
  account: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
628
976
  bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
629
- provider: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null]))
630
- }), Schema.Null])),
977
+ provider: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null])),
978
+ }),
979
+ Schema.Null,
980
+ ])),
631
981
  enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
632
- source: Schema.optional(Schema.Union([Schema.Struct({
982
+ source: Schema.optional(Schema.Union([
983
+ Schema.Struct({
633
984
  bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
634
985
  bucketUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
635
986
  provider: Schema.optional(Schema.Union([Schema.Literals(["aws", "gcs", "s3"]), Schema.Null])),
636
- region: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
637
- }), Schema.Null]))
987
+ region: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
988
+ }),
989
+ Schema.Null,
990
+ ])),
638
991
  }).pipe(T.ResponsePath("result"));
639
992
  export const getBucketSippy = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
640
993
  input: GetBucketSippyRequest,
@@ -648,45 +1001,57 @@ export const PutBucketSippyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
648
1001
  destination: Schema.optional(Schema.Struct({
649
1002
  accessKeyId: Schema.optional(SensitiveString),
650
1003
  provider: Schema.optional(Schema.Literal("r2")),
651
- secretAccessKey: Schema.optional(SensitiveString)
1004
+ secretAccessKey: Schema.optional(SensitiveString),
652
1005
  })),
653
1006
  source: Schema.optional(Schema.Struct({
654
1007
  accessKeyId: Schema.optional(SensitiveString),
655
1008
  bucket: Schema.optional(Schema.String),
656
1009
  provider: Schema.optional(Schema.Literal("aws")),
657
1010
  region: Schema.optional(Schema.String),
658
- secretAccessKey: Schema.optional(SensitiveString)
659
- }))
660
- })
661
- .pipe(T.Http({ method: "PUT", path: "/accounts/{account_id}/r2/buckets/{bucketName}/sippy" }));
1011
+ secretAccessKey: Schema.optional(SensitiveString),
1012
+ })),
1013
+ }).pipe(T.Http({
1014
+ method: "PUT",
1015
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/sippy",
1016
+ }));
662
1017
  export const PutBucketSippyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
663
- destination: Schema.optional(Schema.Union([Schema.Struct({
1018
+ destination: Schema.optional(Schema.Union([
1019
+ Schema.Struct({
664
1020
  accessKeyId: Schema.optional(Schema.Union([SensitiveString, Schema.Null])),
665
1021
  account: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
666
1022
  bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
667
- provider: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null]))
668
- }), Schema.Null])),
1023
+ provider: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null])),
1024
+ }),
1025
+ Schema.Null,
1026
+ ])),
669
1027
  enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
670
- source: Schema.optional(Schema.Union([Schema.Struct({
1028
+ source: Schema.optional(Schema.Union([
1029
+ Schema.Struct({
671
1030
  bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
672
1031
  bucketUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
673
1032
  provider: Schema.optional(Schema.Union([Schema.Literals(["aws", "gcs", "s3"]), Schema.Null])),
674
- region: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
675
- }), Schema.Null]))
1033
+ region: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1034
+ }),
1035
+ Schema.Null,
1036
+ ])),
676
1037
  }).pipe(T.ResponsePath("result"));
677
1038
  export const putBucketSippy = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
678
1039
  input: PutBucketSippyRequest,
679
1040
  output: PutBucketSippyResponse,
680
1041
  errors: [InvalidUpstreamCredentials, InvalidRoute],
681
1042
  }));
682
- export const DeleteBucketSippyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1043
+ export const DeleteBucketSippyRequest =
1044
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
683
1045
  bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
684
1046
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
685
- jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction"))
686
- })
687
- .pipe(T.Http({ method: "DELETE", path: "/accounts/{account_id}/r2/buckets/{bucketName}/sippy" }));
688
- export const DeleteBucketSippyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
689
- enabled: Schema.optional(Schema.Union([Schema.Literal(false), Schema.Null]))
1047
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
1048
+ }).pipe(T.Http({
1049
+ method: "DELETE",
1050
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/sippy",
1051
+ }));
1052
+ export const DeleteBucketSippyResponse =
1053
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1054
+ enabled: Schema.optional(Schema.Union([Schema.Literal(false), Schema.Null])),
690
1055
  }).pipe(T.ResponsePath("result"));
691
1056
  export const deleteBucketSippy = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
692
1057
  input: DeleteBucketSippyRequest,
@@ -697,10 +1062,13 @@ export const GetObjectRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
697
1062
  bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
698
1063
  objectName: Schema.String.pipe(T.HttpPath("objectName")),
699
1064
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
700
- cfR2Jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction"))
701
- })
702
- .pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/r2/buckets/{bucketName}/objects/{objectName}" }));
703
- export const GetObjectResponse = /*@__PURE__*/ /*#__PURE__*/ UploadableSchema.pipe(T.HttpFormDataFile()).pipe(T.ResponsePath("result"));
1065
+ cfR2Jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
1066
+ }).pipe(T.Http({
1067
+ method: "GET",
1068
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/objects/{objectName}",
1069
+ }));
1070
+ export const GetObjectResponse =
1071
+ /*@__PURE__*/ /*#__PURE__*/ UploadableSchema.pipe(T.HttpFormDataFile()).pipe(T.ResponsePath("result"));
704
1072
  export const getObject = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
705
1073
  input: GetObjectRequest,
706
1074
  output: GetObjectResponse,
@@ -719,10 +1087,14 @@ export const PutObjectRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
719
1087
  cacheControl: Schema.optional(Schema.String).pipe(T.HttpHeader("cache-control")),
720
1088
  expires: Schema.optional(Schema.String).pipe(T.HttpHeader("expires")),
721
1089
  cfR2StorageClass: Schema.optional(Schema.Literals(["Standard", "InfrequentAccess"])).pipe(T.HttpHeader("cf-r2-storage-class")),
722
- body: UploadableSchema.pipe(T.HttpFormDataFile()).pipe(T.HttpBody())
723
- })
724
- .pipe(T.Http({ method: "PUT", path: "/accounts/{account_id}/r2/buckets/{bucketName}/objects/{objectName}", contentType: "multipart" }));
725
- export const PutObjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
1090
+ body: UploadableSchema.pipe(T.HttpFormDataFile()).pipe(T.HttpBody()),
1091
+ }).pipe(T.Http({
1092
+ method: "PUT",
1093
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/objects/{objectName}",
1094
+ contentType: "multipart",
1095
+ }));
1096
+ export const PutObjectResponse =
1097
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
726
1098
  export const putObject = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
727
1099
  input: PutObjectRequest,
728
1100
  output: PutObjectResponse,
@@ -732,132 +1104,186 @@ export const DeleteObjectRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
732
1104
  bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
733
1105
  objectName: Schema.String.pipe(T.HttpPath("objectName")),
734
1106
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
735
- cfR2Jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction"))
736
- })
737
- .pipe(T.Http({ method: "DELETE", path: "/accounts/{account_id}/r2/buckets/{bucketName}/objects/{objectName}" }));
738
- export const DeleteObjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
1107
+ cfR2Jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
1108
+ }).pipe(T.Http({
1109
+ method: "DELETE",
1110
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/objects/{objectName}",
1111
+ }));
1112
+ export const DeleteObjectResponse =
1113
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
739
1114
  export const deleteObject = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
740
1115
  input: DeleteObjectRequest,
741
1116
  output: DeleteObjectResponse,
742
1117
  errors: [NoSuchBucket, InvalidRoute, NoRoute],
743
1118
  }));
744
- export const SourceSuperSlurperConnectivityPrecheckRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1119
+ export const SourceSuperSlurperConnectivityPrecheckRequest =
1120
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
745
1121
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
746
1122
  bucket: Schema.String,
747
1123
  secret: Schema.Struct({
748
1124
  accessKeyId: SensitiveString,
749
- secretAccessKey: SensitiveString
1125
+ secretAccessKey: SensitiveString,
750
1126
  }),
751
1127
  vendor: Schema.Literal("s3"),
752
1128
  endpoint: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
753
1129
  pathPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
754
- region: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
755
- })
756
- .pipe(T.Http({ method: "PUT", path: "/accounts/{account_id}/slurper/source/connectivity-precheck" }));
757
- export const SourceSuperSlurperConnectivityPrecheckResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
758
- connectivityStatus: Schema.optional(Schema.Union([Schema.Literals(["success", "error"]), Schema.Null]))
1130
+ region: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1131
+ }).pipe(T.Http({
1132
+ method: "PUT",
1133
+ path: "/accounts/{account_id}/slurper/source/connectivity-precheck",
1134
+ }));
1135
+ export const SourceSuperSlurperConnectivityPrecheckResponse =
1136
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1137
+ connectivityStatus: Schema.optional(Schema.Union([Schema.Literals(["success", "error"]), Schema.Null])),
759
1138
  }).pipe(T.ResponsePath("result"));
760
1139
  export const sourceSuperSlurperConnectivityPrecheck = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
761
1140
  input: SourceSuperSlurperConnectivityPrecheckRequest,
762
1141
  output: SourceSuperSlurperConnectivityPrecheckResponse,
763
1142
  errors: [],
764
1143
  }));
765
- export const TargetSuperSlurperConnectivityPrecheckRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1144
+ export const TargetSuperSlurperConnectivityPrecheckRequest =
1145
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
766
1146
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
767
1147
  bucket: Schema.String,
768
1148
  secret: Schema.Struct({
769
1149
  accessKeyId: SensitiveString,
770
- secretAccessKey: SensitiveString
1150
+ secretAccessKey: SensitiveString,
771
1151
  }),
772
1152
  vendor: Schema.Literal("r2"),
773
- jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"]))
774
- })
775
- .pipe(T.Http({ method: "PUT", path: "/accounts/{account_id}/slurper/target/connectivity-precheck" }));
776
- export const TargetSuperSlurperConnectivityPrecheckResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
777
- connectivityStatus: Schema.optional(Schema.Union([Schema.Literals(["success", "error"]), Schema.Null]))
1153
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])),
1154
+ }).pipe(T.Http({
1155
+ method: "PUT",
1156
+ path: "/accounts/{account_id}/slurper/target/connectivity-precheck",
1157
+ }));
1158
+ export const TargetSuperSlurperConnectivityPrecheckResponse =
1159
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1160
+ connectivityStatus: Schema.optional(Schema.Union([Schema.Literals(["success", "error"]), Schema.Null])),
778
1161
  }).pipe(T.ResponsePath("result"));
779
1162
  export const targetSuperSlurperConnectivityPrecheck = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
780
1163
  input: TargetSuperSlurperConnectivityPrecheckRequest,
781
1164
  output: TargetSuperSlurperConnectivityPrecheckResponse,
782
1165
  errors: [],
783
1166
  }));
784
- export const GetSuperSlurperJobRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1167
+ export const GetSuperSlurperJobRequest =
1168
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
785
1169
  jobId: Schema.String.pipe(T.HttpPath("jobId")),
786
- accountId: Schema.String.pipe(T.HttpPath("account_id"))
787
- })
788
- .pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/slurper/jobs/{jobId}" }));
789
- export const GetSuperSlurperJobResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1170
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1171
+ }).pipe(T.Http({
1172
+ method: "GET",
1173
+ path: "/accounts/{account_id}/slurper/jobs/{jobId}",
1174
+ }));
1175
+ export const GetSuperSlurperJobResponse =
1176
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
790
1177
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
791
1178
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
792
1179
  finishedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
793
1180
  overwrite: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
794
- source: Schema.optional(Schema.Union([Schema.Union([Schema.Struct({
1181
+ source: Schema.optional(Schema.Union([
1182
+ Schema.Union([
1183
+ Schema.Struct({
795
1184
  bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
796
1185
  endpoint: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
797
1186
  keys: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
798
1187
  pathPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
799
- vendor: Schema.optional(Schema.Union([Schema.Literal("s3"), Schema.Null]))
800
- }), Schema.Struct({
1188
+ vendor: Schema.optional(Schema.Union([Schema.Literal("s3"), Schema.Null])),
1189
+ }),
1190
+ Schema.Struct({
801
1191
  bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
802
1192
  keys: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
803
1193
  pathPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
804
- vendor: Schema.optional(Schema.Union([Schema.Literal("gcs"), Schema.Null]))
805
- }), Schema.Struct({
1194
+ vendor: Schema.optional(Schema.Union([Schema.Literal("gcs"), Schema.Null])),
1195
+ }),
1196
+ Schema.Struct({
806
1197
  bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
807
- jurisdiction: Schema.optional(Schema.Union([Schema.Literals(["default", "eu", "fedramp"]), Schema.Null])),
1198
+ jurisdiction: Schema.optional(Schema.Union([
1199
+ Schema.Literals(["default", "eu", "fedramp"]),
1200
+ Schema.Null,
1201
+ ])),
808
1202
  keys: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
809
1203
  pathPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
810
- vendor: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null]))
811
- })]), Schema.Null])),
812
- status: Schema.optional(Schema.Union([Schema.Literals(["running", "paused", "aborted", "completed"]), Schema.Null])),
813
- target: Schema.optional(Schema.Union([Schema.Struct({
1204
+ vendor: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null])),
1205
+ }),
1206
+ ]),
1207
+ Schema.Null,
1208
+ ])),
1209
+ status: Schema.optional(Schema.Union([
1210
+ Schema.Literals(["running", "paused", "aborted", "completed"]),
1211
+ Schema.Null,
1212
+ ])),
1213
+ target: Schema.optional(Schema.Union([
1214
+ Schema.Struct({
814
1215
  bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
815
- jurisdiction: Schema.optional(Schema.Union([Schema.Literals(["default", "eu", "fedramp"]), Schema.Null])),
816
- vendor: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null]))
817
- }), Schema.Null]))
1216
+ jurisdiction: Schema.optional(Schema.Union([
1217
+ Schema.Literals(["default", "eu", "fedramp"]),
1218
+ Schema.Null,
1219
+ ])),
1220
+ vendor: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null])),
1221
+ }),
1222
+ Schema.Null,
1223
+ ])),
818
1224
  }).pipe(T.ResponsePath("result"));
819
1225
  export const getSuperSlurperJob = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
820
1226
  input: GetSuperSlurperJobRequest,
821
1227
  output: GetSuperSlurperJobResponse,
822
1228
  errors: [],
823
1229
  }));
824
- export const ListSuperSlurperJobsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1230
+ export const ListSuperSlurperJobsRequest =
1231
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
825
1232
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
826
1233
  limit: Schema.optional(Schema.Number).pipe(T.HttpQuery("limit")),
827
- offset: Schema.optional(Schema.Number).pipe(T.HttpQuery("offset"))
828
- })
829
- .pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/slurper/jobs" }));
830
- export const ListSuperSlurperJobsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1234
+ offset: Schema.optional(Schema.Number).pipe(T.HttpQuery("offset")),
1235
+ }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/slurper/jobs" }));
1236
+ export const ListSuperSlurperJobsResponse =
1237
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
831
1238
  result: Schema.Array(Schema.Struct({
832
1239
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
833
1240
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
834
1241
  finishedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
835
1242
  overwrite: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
836
- source: Schema.optional(Schema.Union([Schema.Union([Schema.Struct({
1243
+ source: Schema.optional(Schema.Union([
1244
+ Schema.Union([
1245
+ Schema.Struct({
837
1246
  bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
838
1247
  endpoint: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
839
1248
  keys: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
840
1249
  pathPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
841
- vendor: Schema.optional(Schema.Union([Schema.Literal("s3"), Schema.Null]))
842
- }), Schema.Struct({
1250
+ vendor: Schema.optional(Schema.Union([Schema.Literal("s3"), Schema.Null])),
1251
+ }),
1252
+ Schema.Struct({
843
1253
  bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
844
1254
  keys: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
845
1255
  pathPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
846
- vendor: Schema.optional(Schema.Union([Schema.Literal("gcs"), Schema.Null]))
847
- }), Schema.Struct({
1256
+ vendor: Schema.optional(Schema.Union([Schema.Literal("gcs"), Schema.Null])),
1257
+ }),
1258
+ Schema.Struct({
848
1259
  bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
849
- jurisdiction: Schema.optional(Schema.Union([Schema.Literals(["default", "eu", "fedramp"]), Schema.Null])),
1260
+ jurisdiction: Schema.optional(Schema.Union([
1261
+ Schema.Literals(["default", "eu", "fedramp"]),
1262
+ Schema.Null,
1263
+ ])),
850
1264
  keys: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
851
1265
  pathPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
852
- vendor: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null]))
853
- })]), Schema.Null])),
854
- status: Schema.optional(Schema.Union([Schema.Literals(["running", "paused", "aborted", "completed"]), Schema.Null])),
855
- target: Schema.optional(Schema.Union([Schema.Struct({
1266
+ vendor: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null])),
1267
+ }),
1268
+ ]),
1269
+ Schema.Null,
1270
+ ])),
1271
+ status: Schema.optional(Schema.Union([
1272
+ Schema.Literals(["running", "paused", "aborted", "completed"]),
1273
+ Schema.Null,
1274
+ ])),
1275
+ target: Schema.optional(Schema.Union([
1276
+ Schema.Struct({
856
1277
  bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
857
- jurisdiction: Schema.optional(Schema.Union([Schema.Literals(["default", "eu", "fedramp"]), Schema.Null])),
858
- vendor: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null]))
859
- }), Schema.Null]))
860
- }))
1278
+ jurisdiction: Schema.optional(Schema.Union([
1279
+ Schema.Literals(["default", "eu", "fedramp"]),
1280
+ Schema.Null,
1281
+ ])),
1282
+ vendor: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null])),
1283
+ }),
1284
+ Schema.Null,
1285
+ ])),
1286
+ })),
861
1287
  });
862
1288
  export const listSuperSlurperJobs = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
863
1289
  input: ListSuperSlurperJobsRequest,
@@ -868,123 +1294,170 @@ export const listSuperSlurperJobs = /*@__PURE__*/ /*#__PURE__*/ API.makePaginate
868
1294
  items: "result",
869
1295
  },
870
1296
  }));
871
- export const CreateSuperSlurperJobRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1297
+ export const CreateSuperSlurperJobRequest =
1298
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
872
1299
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
873
1300
  overwrite: Schema.optional(Schema.Boolean),
874
- source: Schema.optional(Schema.Union([Schema.Struct({
1301
+ source: Schema.optional(Schema.Union([
1302
+ Schema.Struct({
875
1303
  bucket: Schema.String,
876
1304
  secret: Schema.Struct({
877
1305
  accessKeyId: SensitiveString,
878
- secretAccessKey: SensitiveString
1306
+ secretAccessKey: SensitiveString,
879
1307
  }),
880
1308
  vendor: Schema.Literal("s3"),
881
1309
  endpoint: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
882
1310
  pathPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
883
- region: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
884
- }), Schema.Struct({
1311
+ region: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1312
+ }),
1313
+ Schema.Struct({
885
1314
  bucket: Schema.String,
886
1315
  secret: Schema.Struct({
887
1316
  clientEmail: Schema.String,
888
- privateKey: SensitiveString
1317
+ privateKey: SensitiveString,
889
1318
  }),
890
1319
  vendor: Schema.Literal("gcs"),
891
- pathPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
892
- }), Schema.Struct({
1320
+ pathPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1321
+ }),
1322
+ Schema.Struct({
893
1323
  bucket: Schema.String,
894
1324
  secret: Schema.Struct({
895
1325
  accessKeyId: SensitiveString,
896
- secretAccessKey: SensitiveString
1326
+ secretAccessKey: SensitiveString,
897
1327
  }),
898
1328
  vendor: Schema.Literal("r2"),
899
1329
  jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])),
900
- pathPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
901
- })])),
1330
+ pathPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1331
+ }),
1332
+ ])),
902
1333
  target: Schema.optional(Schema.Struct({
903
1334
  bucket: Schema.String,
904
1335
  secret: Schema.Struct({
905
1336
  accessKeyId: SensitiveString,
906
- secretAccessKey: SensitiveString
1337
+ secretAccessKey: SensitiveString,
907
1338
  }),
908
1339
  vendor: Schema.Literal("r2"),
909
- jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"]))
910
- }))
911
- })
912
- .pipe(T.Http({ method: "POST", path: "/accounts/{account_id}/slurper/jobs" }));
913
- export const CreateSuperSlurperJobResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
914
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
1340
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])),
1341
+ })),
1342
+ }).pipe(T.Http({ method: "POST", path: "/accounts/{account_id}/slurper/jobs" }));
1343
+ export const CreateSuperSlurperJobResponse =
1344
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1345
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
915
1346
  }).pipe(T.ResponsePath("result"));
916
1347
  export const createSuperSlurperJob = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
917
1348
  input: CreateSuperSlurperJobRequest,
918
1349
  output: CreateSuperSlurperJobResponse,
919
1350
  errors: [],
920
1351
  }));
921
- export const AbortSuperSlurperJobRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1352
+ export const AbortSuperSlurperJobRequest =
1353
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
922
1354
  jobId: Schema.String.pipe(T.HttpPath("jobId")),
923
- accountId: Schema.String.pipe(T.HttpPath("account_id"))
924
- })
925
- .pipe(T.Http({ method: "PUT", path: "/accounts/{account_id}/slurper/jobs/{jobId}/abort" }));
926
- export const AbortSuperSlurperJobResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(T.ResponsePath("result"));
1355
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1356
+ }).pipe(T.Http({
1357
+ method: "PUT",
1358
+ path: "/accounts/{account_id}/slurper/jobs/{jobId}/abort",
1359
+ }));
1360
+ export const AbortSuperSlurperJobResponse =
1361
+ /*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(T.ResponsePath("result"));
927
1362
  export const abortSuperSlurperJob = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
928
1363
  input: AbortSuperSlurperJobRequest,
929
1364
  output: AbortSuperSlurperJobResponse,
930
1365
  errors: [],
931
1366
  }));
932
- export const PauseSuperSlurperJobRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1367
+ export const PauseSuperSlurperJobRequest =
1368
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
933
1369
  jobId: Schema.String.pipe(T.HttpPath("jobId")),
934
- accountId: Schema.String.pipe(T.HttpPath("account_id"))
935
- })
936
- .pipe(T.Http({ method: "PUT", path: "/accounts/{account_id}/slurper/jobs/{jobId}/pause" }));
937
- export const PauseSuperSlurperJobResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(T.ResponsePath("result"));
1370
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1371
+ }).pipe(T.Http({
1372
+ method: "PUT",
1373
+ path: "/accounts/{account_id}/slurper/jobs/{jobId}/pause",
1374
+ }));
1375
+ export const PauseSuperSlurperJobResponse =
1376
+ /*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(T.ResponsePath("result"));
938
1377
  export const pauseSuperSlurperJob = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
939
1378
  input: PauseSuperSlurperJobRequest,
940
1379
  output: PauseSuperSlurperJobResponse,
941
1380
  errors: [],
942
1381
  }));
943
- export const ProgressSuperSlurperJobRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1382
+ export const ProgressSuperSlurperJobRequest =
1383
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
944
1384
  jobId: Schema.String.pipe(T.HttpPath("jobId")),
945
- accountId: Schema.String.pipe(T.HttpPath("account_id"))
946
- })
947
- .pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/slurper/jobs/{jobId}/progress" }));
948
- export const ProgressSuperSlurperJobResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1385
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1386
+ }).pipe(T.Http({
1387
+ method: "GET",
1388
+ path: "/accounts/{account_id}/slurper/jobs/{jobId}/progress",
1389
+ }));
1390
+ export const ProgressSuperSlurperJobResponse =
1391
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
949
1392
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
950
1393
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
951
1394
  failedObjects: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
952
1395
  objects: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
953
1396
  skippedObjects: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
954
- status: Schema.optional(Schema.Union([Schema.Literals(["running", "paused", "aborted", "completed"]), Schema.Null])),
955
- transferredObjects: Schema.optional(Schema.Union([Schema.Number, Schema.Null]))
1397
+ status: Schema.optional(Schema.Union([
1398
+ Schema.Literals(["running", "paused", "aborted", "completed"]),
1399
+ Schema.Null,
1400
+ ])),
1401
+ transferredObjects: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
956
1402
  }).pipe(T.ResponsePath("result"));
957
1403
  export const progressSuperSlurperJob = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
958
1404
  input: ProgressSuperSlurperJobRequest,
959
1405
  output: ProgressSuperSlurperJobResponse,
960
1406
  errors: [],
961
1407
  }));
962
- export const ResumeSuperSlurperJobRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1408
+ export const ResumeSuperSlurperJobRequest =
1409
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
963
1410
  jobId: Schema.String.pipe(T.HttpPath("jobId")),
964
- accountId: Schema.String.pipe(T.HttpPath("account_id"))
965
- })
966
- .pipe(T.Http({ method: "PUT", path: "/accounts/{account_id}/slurper/jobs/{jobId}/resume" }));
967
- export const ResumeSuperSlurperJobResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(T.ResponsePath("result"));
1411
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1412
+ }).pipe(T.Http({
1413
+ method: "PUT",
1414
+ path: "/accounts/{account_id}/slurper/jobs/{jobId}/resume",
1415
+ }));
1416
+ export const ResumeSuperSlurperJobResponse =
1417
+ /*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(T.ResponsePath("result"));
968
1418
  export const resumeSuperSlurperJob = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
969
1419
  input: ResumeSuperSlurperJobRequest,
970
1420
  output: ResumeSuperSlurperJobResponse,
971
1421
  errors: [],
972
1422
  }));
973
- export const ListSuperSlurperJobLogsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1423
+ export const ListSuperSlurperJobLogsRequest =
1424
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
974
1425
  jobId: Schema.String.pipe(T.HttpPath("jobId")),
975
1426
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
976
1427
  limit: Schema.optional(Schema.Number).pipe(T.HttpQuery("limit")),
977
- offset: Schema.optional(Schema.Number).pipe(T.HttpQuery("offset"))
978
- })
979
- .pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/slurper/jobs/{jobId}/logs" }));
980
- export const ListSuperSlurperJobLogsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1428
+ offset: Schema.optional(Schema.Number).pipe(T.HttpQuery("offset")),
1429
+ }).pipe(T.Http({
1430
+ method: "GET",
1431
+ path: "/accounts/{account_id}/slurper/jobs/{jobId}/logs",
1432
+ }));
1433
+ export const ListSuperSlurperJobLogsResponse =
1434
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
981
1435
  result: Schema.Array(Schema.Struct({
982
1436
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
983
1437
  job: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
984
- logType: Schema.optional(Schema.Union([Schema.Literals(["migrationStart", "migrationComplete", "migrationAbort", "migrationError", "migrationPause", "migrationResume", "migrationErrorFailedContinuation", "importErrorRetryExhaustion", "importSkippedStorageClass", "importSkippedOversized", "importSkippedEmptyObject", "importSkippedUnsupportedContentType", "importSkippedExcludedContentType", "importSkippedInvalidMedia", "importSkippedRequiresRetrieval"]), Schema.Null])),
1438
+ logType: Schema.optional(Schema.Union([
1439
+ Schema.Literals([
1440
+ "migrationStart",
1441
+ "migrationComplete",
1442
+ "migrationAbort",
1443
+ "migrationError",
1444
+ "migrationPause",
1445
+ "migrationResume",
1446
+ "migrationErrorFailedContinuation",
1447
+ "importErrorRetryExhaustion",
1448
+ "importSkippedStorageClass",
1449
+ "importSkippedOversized",
1450
+ "importSkippedEmptyObject",
1451
+ "importSkippedUnsupportedContentType",
1452
+ "importSkippedExcludedContentType",
1453
+ "importSkippedInvalidMedia",
1454
+ "importSkippedRequiresRetrieval",
1455
+ ]),
1456
+ Schema.Null,
1457
+ ])),
985
1458
  message: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
986
- objectKey: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
987
- }))
1459
+ objectKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1460
+ })),
988
1461
  });
989
1462
  export const listSuperSlurperJobLogs = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
990
1463
  input: ListSuperSlurperJobLogsRequest,
@@ -995,20 +1468,29 @@ export const listSuperSlurperJobLogs = /*@__PURE__*/ /*#__PURE__*/ API.makePagin
995
1468
  items: "result",
996
1469
  },
997
1470
  }));
998
- export const CreateTemporaryCredentialRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1471
+ export const CreateTemporaryCredentialRequest =
1472
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
999
1473
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
1000
1474
  bucket: Schema.String,
1001
1475
  parentAccessKeyId: Schema.String,
1002
- permission: Schema.Literals(["admin-read-write", "admin-read-only", "object-read-write", "object-read-only"]),
1476
+ permission: Schema.Literals([
1477
+ "admin-read-write",
1478
+ "admin-read-only",
1479
+ "object-read-write",
1480
+ "object-read-only",
1481
+ ]),
1003
1482
  ttlSeconds: Schema.Number,
1004
1483
  objects: Schema.optional(Schema.Array(Schema.String)),
1005
- prefixes: Schema.optional(Schema.Array(Schema.String))
1006
- })
1007
- .pipe(T.Http({ method: "POST", path: "/accounts/{account_id}/r2/temp-access-credentials" }));
1008
- export const CreateTemporaryCredentialResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1484
+ prefixes: Schema.optional(Schema.Array(Schema.String)),
1485
+ }).pipe(T.Http({
1486
+ method: "POST",
1487
+ path: "/accounts/{account_id}/r2/temp-access-credentials",
1488
+ }));
1489
+ export const CreateTemporaryCredentialResponse =
1490
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1009
1491
  accessKeyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1010
1492
  secretAccessKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1011
- sessionToken: Schema.optional(Schema.Union([Schema.String, Schema.Null]))
1493
+ sessionToken: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1012
1494
  }).pipe(T.ResponsePath("result"));
1013
1495
  export const createTemporaryCredential = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1014
1496
  input: CreateTemporaryCredentialRequest,