@distilled.cloud/cloudflare 0.12.1 → 0.12.3

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