@distilled.cloud/cloudflare 0.12.3 → 0.12.4
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.
- package/lib/services/accounts.d.ts +52 -52
- package/lib/services/accounts.d.ts.map +1 -1
- package/lib/services/accounts.js +1533 -569
- package/lib/services/accounts.js.map +1 -1
- package/lib/services/d1.d.ts +7 -1
- package/lib/services/d1.d.ts.map +1 -1
- package/lib/services/d1.js +4 -1
- package/lib/services/d1.js.map +1 -1
- package/lib/services/pipelines.d.ts +35 -5
- package/lib/services/pipelines.d.ts.map +1 -1
- package/lib/services/pipelines.js +25 -6
- package/lib/services/pipelines.js.map +1 -1
- package/lib/services/queues.d.ts +14 -14
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +1192 -413
- package/lib/services/queues.js.map +1 -1
- package/lib/services/r2.d.ts +32 -32
- package/lib/services/r2.d.ts.map +1 -1
- package/lib/services/r2.js +873 -391
- package/lib/services/r2.js.map +1 -1
- package/lib/services/user.d.ts +36 -5
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +32 -5
- package/lib/services/user.js.map +1 -1
- package/lib/services/workers.d.ts +7 -1
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +4 -1
- package/lib/services/workers.js.map +1 -1
- package/lib/services/workflows.d.ts +8 -2
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +5 -2
- package/lib/services/workflows.js.map +1 -1
- package/package.json +2 -2
- package/src/services/accounts.ts +3546 -1036
- package/src/services/d1.ts +9 -2
- package/src/services/pipelines.ts +56 -11
- package/src/services/queues.ts +2978 -829
- package/src/services/r2.ts +2232 -848
- package/src/services/user.ts +66 -10
- package/src/services/workers.ts +11 -2
- package/src/services/workflows.ts +10 -2
package/src/services/r2.ts
CHANGED
|
@@ -10,9 +10,7 @@ import type * as HttpClient from "effect/unstable/http/HttpClient";
|
|
|
10
10
|
import * as API from "../client/api.ts";
|
|
11
11
|
import * as T from "../traits.ts";
|
|
12
12
|
import type { Credentials } from "../credentials.ts";
|
|
13
|
-
import {
|
|
14
|
-
type DefaultErrors,
|
|
15
|
-
} from "../errors.ts";
|
|
13
|
+
import { type DefaultErrors } from "../errors.ts";
|
|
16
14
|
import { UploadableSchema } from "../schemas.ts";
|
|
17
15
|
import { SensitiveString } from "../sensitive.ts";
|
|
18
16
|
|
|
@@ -24,85 +22,88 @@ export class BucketAlreadyExists extends Schema.TaggedErrorClass<BucketAlreadyEx
|
|
|
24
22
|
"BucketAlreadyExists",
|
|
25
23
|
{ code: Schema.Number, message: Schema.String },
|
|
26
24
|
) {}
|
|
27
|
-
T.applyErrorMatchers(BucketAlreadyExists, [{
|
|
25
|
+
T.applyErrorMatchers(BucketAlreadyExists, [{ code: 10004 }]);
|
|
28
26
|
|
|
29
27
|
export class BucketNotFound extends Schema.TaggedErrorClass<BucketNotFound>()(
|
|
30
28
|
"BucketNotFound",
|
|
31
29
|
{ code: Schema.Number, message: Schema.String },
|
|
32
30
|
) {}
|
|
33
|
-
T.applyErrorMatchers(BucketNotFound, [{
|
|
31
|
+
T.applyErrorMatchers(BucketNotFound, [{ code: 10085 }]);
|
|
34
32
|
|
|
35
33
|
export class DomainNotFound extends Schema.TaggedErrorClass<DomainNotFound>()(
|
|
36
34
|
"DomainNotFound",
|
|
37
35
|
{ code: Schema.Number, message: Schema.String },
|
|
38
36
|
) {}
|
|
39
|
-
T.applyErrorMatchers(DomainNotFound, [{
|
|
37
|
+
T.applyErrorMatchers(DomainNotFound, [{ code: 10053 }]);
|
|
40
38
|
|
|
41
39
|
export class EventNotificationConfigNotFound extends Schema.TaggedErrorClass<EventNotificationConfigNotFound>()(
|
|
42
40
|
"EventNotificationConfigNotFound",
|
|
43
41
|
{ code: Schema.Number, message: Schema.String },
|
|
44
42
|
) {}
|
|
45
|
-
T.applyErrorMatchers(EventNotificationConfigNotFound, [{
|
|
43
|
+
T.applyErrorMatchers(EventNotificationConfigNotFound, [{ code: 11011 }]);
|
|
46
44
|
|
|
47
45
|
export class EventNotificationRuleConflict extends Schema.TaggedErrorClass<EventNotificationRuleConflict>()(
|
|
48
46
|
"EventNotificationRuleConflict",
|
|
49
47
|
{ code: Schema.Number, message: Schema.String },
|
|
50
48
|
) {}
|
|
51
|
-
T.applyErrorMatchers(EventNotificationRuleConflict, [{
|
|
49
|
+
T.applyErrorMatchers(EventNotificationRuleConflict, [{ code: 11020 }]);
|
|
52
50
|
|
|
53
51
|
export class InvalidBucketName extends Schema.TaggedErrorClass<InvalidBucketName>()(
|
|
54
52
|
"InvalidBucketName",
|
|
55
53
|
{ code: Schema.Number, message: Schema.String },
|
|
56
54
|
) {}
|
|
57
|
-
T.applyErrorMatchers(InvalidBucketName, [{
|
|
55
|
+
T.applyErrorMatchers(InvalidBucketName, [{ code: 10005 }]);
|
|
58
56
|
|
|
59
57
|
export class InvalidEventNotificationConfig extends Schema.TaggedErrorClass<InvalidEventNotificationConfig>()(
|
|
60
58
|
"InvalidEventNotificationConfig",
|
|
61
59
|
{ code: Schema.Number, message: Schema.String },
|
|
62
60
|
) {}
|
|
63
|
-
T.applyErrorMatchers(InvalidEventNotificationConfig, [
|
|
61
|
+
T.applyErrorMatchers(InvalidEventNotificationConfig, [
|
|
62
|
+
{ code: 11014 },
|
|
63
|
+
{ code: 11019 },
|
|
64
|
+
]);
|
|
64
65
|
|
|
65
66
|
export class InvalidRoute extends Schema.TaggedErrorClass<InvalidRoute>()(
|
|
66
67
|
"InvalidRoute",
|
|
67
68
|
{ code: Schema.Number, message: Schema.String },
|
|
68
69
|
) {}
|
|
69
|
-
T.applyErrorMatchers(InvalidRoute, [{
|
|
70
|
+
T.applyErrorMatchers(InvalidRoute, [{ code: 7003 }]);
|
|
70
71
|
|
|
71
72
|
export class InvalidUpstreamCredentials extends Schema.TaggedErrorClass<InvalidUpstreamCredentials>()(
|
|
72
73
|
"InvalidUpstreamCredentials",
|
|
73
74
|
{ code: Schema.Number, message: Schema.String },
|
|
74
75
|
) {}
|
|
75
|
-
T.applyErrorMatchers(InvalidUpstreamCredentials, [{
|
|
76
|
+
T.applyErrorMatchers(InvalidUpstreamCredentials, [{ code: 10063 }]);
|
|
76
77
|
|
|
77
78
|
export class NoCorsConfiguration extends Schema.TaggedErrorClass<NoCorsConfiguration>()(
|
|
78
79
|
"NoCorsConfiguration",
|
|
79
80
|
{ code: Schema.Number, message: Schema.String },
|
|
80
81
|
) {}
|
|
81
|
-
T.applyErrorMatchers(NoCorsConfiguration, [{
|
|
82
|
+
T.applyErrorMatchers(NoCorsConfiguration, [{ code: 10059 }]);
|
|
82
83
|
|
|
83
84
|
export class NoEventNotificationConfig extends Schema.TaggedErrorClass<NoEventNotificationConfig>()(
|
|
84
85
|
"NoEventNotificationConfig",
|
|
85
86
|
{ code: Schema.Number, message: Schema.String },
|
|
86
87
|
) {}
|
|
87
|
-
T.applyErrorMatchers(NoEventNotificationConfig, [{
|
|
88
|
+
T.applyErrorMatchers(NoEventNotificationConfig, [{ code: 11015 }]);
|
|
88
89
|
|
|
89
|
-
export class NoRoute extends Schema.TaggedErrorClass<NoRoute>()(
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
) {}
|
|
93
|
-
T.applyErrorMatchers(NoRoute, [{
|
|
90
|
+
export class NoRoute extends Schema.TaggedErrorClass<NoRoute>()("NoRoute", {
|
|
91
|
+
code: Schema.Number,
|
|
92
|
+
message: Schema.String,
|
|
93
|
+
}) {}
|
|
94
|
+
T.applyErrorMatchers(NoRoute, [{ code: 10015 }]);
|
|
94
95
|
|
|
95
96
|
export class NoSuchBucket extends Schema.TaggedErrorClass<NoSuchBucket>()(
|
|
96
97
|
"NoSuchBucket",
|
|
97
98
|
{ code: Schema.Number, message: Schema.String },
|
|
98
99
|
) {}
|
|
99
|
-
T.applyErrorMatchers(NoSuchBucket, [{
|
|
100
|
+
T.applyErrorMatchers(NoSuchBucket, [{ code: 10006 }]);
|
|
100
101
|
|
|
101
102
|
export class QueueNotFound extends Schema.TaggedErrorClass<QueueNotFound>()(
|
|
102
103
|
"QueueNotFound",
|
|
103
104
|
{ code: Schema.Number, message: Schema.String },
|
|
104
105
|
) {}
|
|
105
|
-
T.applyErrorMatchers(QueueNotFound, [{
|
|
106
|
+
T.applyErrorMatchers(QueueNotFound, [{ code: 11000 }]);
|
|
106
107
|
|
|
107
108
|
// =============================================================================
|
|
108
109
|
// AllSuperSlurperJob
|
|
@@ -112,17 +113,24 @@ export interface AbortAllSuperSlurperJobRequest {
|
|
|
112
113
|
accountId: string;
|
|
113
114
|
}
|
|
114
115
|
|
|
115
|
-
export const AbortAllSuperSlurperJobRequest =
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
.pipe(
|
|
116
|
+
export const AbortAllSuperSlurperJobRequest =
|
|
117
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
118
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
119
|
+
}).pipe(
|
|
120
|
+
T.Http({
|
|
121
|
+
method: "PUT",
|
|
122
|
+
path: "/accounts/{account_id}/slurper/jobs/abortAll",
|
|
123
|
+
}),
|
|
124
|
+
) as unknown as Schema.Schema<AbortAllSuperSlurperJobRequest>;
|
|
119
125
|
|
|
120
126
|
export type AbortAllSuperSlurperJobResponse = string;
|
|
121
127
|
|
|
122
|
-
export const AbortAllSuperSlurperJobResponse =
|
|
128
|
+
export const AbortAllSuperSlurperJobResponse =
|
|
129
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(
|
|
130
|
+
T.ResponsePath("result"),
|
|
131
|
+
) as unknown as Schema.Schema<AbortAllSuperSlurperJobResponse>;
|
|
123
132
|
|
|
124
|
-
export type AbortAllSuperSlurperJobError =
|
|
125
|
-
| DefaultErrors;
|
|
133
|
+
export type AbortAllSuperSlurperJobError = DefaultErrors;
|
|
126
134
|
|
|
127
135
|
export const abortAllSuperSlurperJob: API.OperationMethod<
|
|
128
136
|
AbortAllSuperSlurperJobRequest,
|
|
@@ -135,7 +143,6 @@ export const abortAllSuperSlurperJob: API.OperationMethod<
|
|
|
135
143
|
errors: [],
|
|
136
144
|
}));
|
|
137
145
|
|
|
138
|
-
|
|
139
146
|
// =============================================================================
|
|
140
147
|
// Bucket
|
|
141
148
|
// =============================================================================
|
|
@@ -151,9 +158,15 @@ export interface GetBucketRequest {
|
|
|
151
158
|
export const GetBucketRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
152
159
|
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
153
160
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
154
|
-
jurisdiction: Schema.optional(
|
|
155
|
-
|
|
156
|
-
.pipe(T.
|
|
161
|
+
jurisdiction: Schema.optional(
|
|
162
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
163
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
164
|
+
}).pipe(
|
|
165
|
+
T.Http({
|
|
166
|
+
method: "GET",
|
|
167
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}",
|
|
168
|
+
}),
|
|
169
|
+
) as unknown as Schema.Schema<GetBucketRequest>;
|
|
157
170
|
|
|
158
171
|
export interface GetBucketResponse {
|
|
159
172
|
/** Creation timestamp. */
|
|
@@ -161,7 +174,20 @@ export interface GetBucketResponse {
|
|
|
161
174
|
/** Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
162
175
|
jurisdiction?: "default" | "eu" | "fedramp" | null;
|
|
163
176
|
/** Location of the bucket. */
|
|
164
|
-
location?:
|
|
177
|
+
location?:
|
|
178
|
+
| "apac"
|
|
179
|
+
| "eeur"
|
|
180
|
+
| "enam"
|
|
181
|
+
| "weur"
|
|
182
|
+
| "wnam"
|
|
183
|
+
| "oc"
|
|
184
|
+
| "APAC"
|
|
185
|
+
| "EEUR"
|
|
186
|
+
| "ENAM"
|
|
187
|
+
| "WEUR"
|
|
188
|
+
| "WNAM"
|
|
189
|
+
| "OC"
|
|
190
|
+
| null;
|
|
165
191
|
/** Name of the bucket. */
|
|
166
192
|
name?: string | null;
|
|
167
193
|
/** Storage class for newly uploaded objects, unless specified otherwise. */
|
|
@@ -170,16 +196,50 @@ export interface GetBucketResponse {
|
|
|
170
196
|
|
|
171
197
|
export const GetBucketResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
172
198
|
creationDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
173
|
-
jurisdiction: Schema.optional(
|
|
174
|
-
|
|
199
|
+
jurisdiction: Schema.optional(
|
|
200
|
+
Schema.Union([Schema.Literals(["default", "eu", "fedramp"]), Schema.Null]),
|
|
201
|
+
),
|
|
202
|
+
location: Schema.optional(
|
|
203
|
+
Schema.Union([
|
|
204
|
+
Schema.Literals([
|
|
205
|
+
"apac",
|
|
206
|
+
"eeur",
|
|
207
|
+
"enam",
|
|
208
|
+
"weur",
|
|
209
|
+
"wnam",
|
|
210
|
+
"oc",
|
|
211
|
+
"APAC",
|
|
212
|
+
"EEUR",
|
|
213
|
+
"ENAM",
|
|
214
|
+
"WEUR",
|
|
215
|
+
"WNAM",
|
|
216
|
+
"OC",
|
|
217
|
+
]),
|
|
218
|
+
Schema.Null,
|
|
219
|
+
]),
|
|
220
|
+
),
|
|
175
221
|
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
176
|
-
storageClass: Schema.optional(
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
222
|
+
storageClass: Schema.optional(
|
|
223
|
+
Schema.Union([
|
|
224
|
+
Schema.Literals(["Standard", "InfrequentAccess"]),
|
|
225
|
+
Schema.Null,
|
|
226
|
+
]),
|
|
227
|
+
),
|
|
228
|
+
})
|
|
229
|
+
.pipe(
|
|
230
|
+
Schema.encodeKeys({
|
|
231
|
+
creationDate: "creation_date",
|
|
232
|
+
jurisdiction: "jurisdiction",
|
|
233
|
+
location: "location",
|
|
234
|
+
name: "name",
|
|
235
|
+
storageClass: "storage_class",
|
|
236
|
+
}),
|
|
237
|
+
)
|
|
238
|
+
.pipe(
|
|
239
|
+
T.ResponsePath("result"),
|
|
240
|
+
) as unknown as Schema.Schema<GetBucketResponse>;
|
|
241
|
+
|
|
242
|
+
export type GetBucketError = DefaultErrors | NoSuchBucket | InvalidRoute;
|
|
183
243
|
|
|
184
244
|
export const getBucket: API.OperationMethod<
|
|
185
245
|
GetBucketRequest,
|
|
@@ -214,32 +274,105 @@ export interface ListBucketsRequest {
|
|
|
214
274
|
export const ListBucketsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
215
275
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
216
276
|
cursor: Schema.optional(Schema.String).pipe(T.HttpQuery("cursor")),
|
|
217
|
-
direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(
|
|
218
|
-
|
|
277
|
+
direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(
|
|
278
|
+
T.HttpQuery("direction"),
|
|
279
|
+
),
|
|
280
|
+
nameContains: Schema.optional(Schema.String).pipe(
|
|
281
|
+
T.HttpQuery("name_contains"),
|
|
282
|
+
),
|
|
219
283
|
order: Schema.optional(Schema.Literal("name")).pipe(T.HttpQuery("order")),
|
|
220
284
|
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
221
285
|
startAfter: Schema.optional(Schema.String).pipe(T.HttpQuery("start_after")),
|
|
222
|
-
jurisdiction: Schema.optional(
|
|
223
|
-
|
|
224
|
-
.pipe(T.
|
|
286
|
+
jurisdiction: Schema.optional(
|
|
287
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
288
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
289
|
+
}).pipe(
|
|
290
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/r2/buckets" }),
|
|
291
|
+
) as unknown as Schema.Schema<ListBucketsRequest>;
|
|
225
292
|
|
|
226
293
|
export interface ListBucketsResponse {
|
|
227
|
-
buckets?:
|
|
294
|
+
buckets?:
|
|
295
|
+
| {
|
|
296
|
+
creationDate?: string | null;
|
|
297
|
+
jurisdiction?: "default" | "eu" | "fedramp" | null;
|
|
298
|
+
location?:
|
|
299
|
+
| "apac"
|
|
300
|
+
| "eeur"
|
|
301
|
+
| "enam"
|
|
302
|
+
| "weur"
|
|
303
|
+
| "wnam"
|
|
304
|
+
| "oc"
|
|
305
|
+
| "APAC"
|
|
306
|
+
| "EEUR"
|
|
307
|
+
| "ENAM"
|
|
308
|
+
| "WEUR"
|
|
309
|
+
| "WNAM"
|
|
310
|
+
| "OC"
|
|
311
|
+
| null;
|
|
312
|
+
name?: string | null;
|
|
313
|
+
storageClass?: "Standard" | "InfrequentAccess" | null;
|
|
314
|
+
}[]
|
|
315
|
+
| null;
|
|
228
316
|
}
|
|
229
317
|
|
|
230
318
|
export const ListBucketsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
231
|
-
buckets: Schema.optional(
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
319
|
+
buckets: Schema.optional(
|
|
320
|
+
Schema.Union([
|
|
321
|
+
Schema.Array(
|
|
322
|
+
Schema.Struct({
|
|
323
|
+
creationDate: Schema.optional(
|
|
324
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
325
|
+
),
|
|
326
|
+
jurisdiction: Schema.optional(
|
|
327
|
+
Schema.Union([
|
|
328
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
329
|
+
Schema.Null,
|
|
330
|
+
]),
|
|
331
|
+
),
|
|
332
|
+
location: Schema.optional(
|
|
333
|
+
Schema.Union([
|
|
334
|
+
Schema.Literals([
|
|
335
|
+
"apac",
|
|
336
|
+
"eeur",
|
|
337
|
+
"enam",
|
|
338
|
+
"weur",
|
|
339
|
+
"wnam",
|
|
340
|
+
"oc",
|
|
341
|
+
"APAC",
|
|
342
|
+
"EEUR",
|
|
343
|
+
"ENAM",
|
|
344
|
+
"WEUR",
|
|
345
|
+
"WNAM",
|
|
346
|
+
"OC",
|
|
347
|
+
]),
|
|
348
|
+
Schema.Null,
|
|
349
|
+
]),
|
|
350
|
+
),
|
|
351
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
352
|
+
storageClass: Schema.optional(
|
|
353
|
+
Schema.Union([
|
|
354
|
+
Schema.Literals(["Standard", "InfrequentAccess"]),
|
|
355
|
+
Schema.Null,
|
|
356
|
+
]),
|
|
357
|
+
),
|
|
358
|
+
}).pipe(
|
|
359
|
+
Schema.encodeKeys({
|
|
360
|
+
creationDate: "creation_date",
|
|
361
|
+
jurisdiction: "jurisdiction",
|
|
362
|
+
location: "location",
|
|
363
|
+
name: "name",
|
|
364
|
+
storageClass: "storage_class",
|
|
365
|
+
}),
|
|
366
|
+
),
|
|
367
|
+
),
|
|
368
|
+
Schema.Null,
|
|
369
|
+
]),
|
|
370
|
+
),
|
|
371
|
+
}).pipe(
|
|
372
|
+
T.ResponsePath("result"),
|
|
373
|
+
) as unknown as Schema.Schema<ListBucketsResponse>;
|
|
374
|
+
|
|
375
|
+
export type ListBucketsError = DefaultErrors | InvalidRoute;
|
|
243
376
|
|
|
244
377
|
export const listBuckets: API.OperationMethod<
|
|
245
378
|
ListBucketsRequest,
|
|
@@ -267,12 +400,19 @@ export interface CreateBucketRequest {
|
|
|
267
400
|
|
|
268
401
|
export const CreateBucketRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
269
402
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
270
|
-
jurisdiction: Schema.optional(
|
|
403
|
+
jurisdiction: Schema.optional(
|
|
404
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
405
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
271
406
|
name: Schema.String,
|
|
272
|
-
locationHint: Schema.optional(
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
407
|
+
locationHint: Schema.optional(
|
|
408
|
+
Schema.Literals(["apac", "eeur", "enam", "weur", "wnam", "oc"]),
|
|
409
|
+
),
|
|
410
|
+
storageClass: Schema.optional(
|
|
411
|
+
Schema.Literals(["Standard", "InfrequentAccess"]),
|
|
412
|
+
),
|
|
413
|
+
}).pipe(
|
|
414
|
+
T.Http({ method: "POST", path: "/accounts/{account_id}/r2/buckets" }),
|
|
415
|
+
) as unknown as Schema.Schema<CreateBucketRequest>;
|
|
276
416
|
|
|
277
417
|
export interface CreateBucketResponse {
|
|
278
418
|
/** Creation timestamp. */
|
|
@@ -280,7 +420,20 @@ export interface CreateBucketResponse {
|
|
|
280
420
|
/** Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
281
421
|
jurisdiction?: "default" | "eu" | "fedramp" | null;
|
|
282
422
|
/** Location of the bucket. */
|
|
283
|
-
location?:
|
|
423
|
+
location?:
|
|
424
|
+
| "apac"
|
|
425
|
+
| "eeur"
|
|
426
|
+
| "enam"
|
|
427
|
+
| "weur"
|
|
428
|
+
| "wnam"
|
|
429
|
+
| "oc"
|
|
430
|
+
| "APAC"
|
|
431
|
+
| "EEUR"
|
|
432
|
+
| "ENAM"
|
|
433
|
+
| "WEUR"
|
|
434
|
+
| "WNAM"
|
|
435
|
+
| "OC"
|
|
436
|
+
| null;
|
|
284
437
|
/** Name of the bucket. */
|
|
285
438
|
name?: string | null;
|
|
286
439
|
/** Storage class for newly uploaded objects, unless specified otherwise. */
|
|
@@ -289,11 +442,48 @@ export interface CreateBucketResponse {
|
|
|
289
442
|
|
|
290
443
|
export const CreateBucketResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
291
444
|
creationDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
292
|
-
jurisdiction: Schema.optional(
|
|
293
|
-
|
|
445
|
+
jurisdiction: Schema.optional(
|
|
446
|
+
Schema.Union([Schema.Literals(["default", "eu", "fedramp"]), Schema.Null]),
|
|
447
|
+
),
|
|
448
|
+
location: Schema.optional(
|
|
449
|
+
Schema.Union([
|
|
450
|
+
Schema.Literals([
|
|
451
|
+
"apac",
|
|
452
|
+
"eeur",
|
|
453
|
+
"enam",
|
|
454
|
+
"weur",
|
|
455
|
+
"wnam",
|
|
456
|
+
"oc",
|
|
457
|
+
"APAC",
|
|
458
|
+
"EEUR",
|
|
459
|
+
"ENAM",
|
|
460
|
+
"WEUR",
|
|
461
|
+
"WNAM",
|
|
462
|
+
"OC",
|
|
463
|
+
]),
|
|
464
|
+
Schema.Null,
|
|
465
|
+
]),
|
|
466
|
+
),
|
|
294
467
|
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
295
|
-
storageClass: Schema.optional(
|
|
296
|
-
|
|
468
|
+
storageClass: Schema.optional(
|
|
469
|
+
Schema.Union([
|
|
470
|
+
Schema.Literals(["Standard", "InfrequentAccess"]),
|
|
471
|
+
Schema.Null,
|
|
472
|
+
]),
|
|
473
|
+
),
|
|
474
|
+
})
|
|
475
|
+
.pipe(
|
|
476
|
+
Schema.encodeKeys({
|
|
477
|
+
creationDate: "creation_date",
|
|
478
|
+
jurisdiction: "jurisdiction",
|
|
479
|
+
location: "location",
|
|
480
|
+
name: "name",
|
|
481
|
+
storageClass: "storage_class",
|
|
482
|
+
}),
|
|
483
|
+
)
|
|
484
|
+
.pipe(
|
|
485
|
+
T.ResponsePath("result"),
|
|
486
|
+
) as unknown as Schema.Schema<CreateBucketResponse>;
|
|
297
487
|
|
|
298
488
|
export type CreateBucketError =
|
|
299
489
|
| DefaultErrors
|
|
@@ -325,10 +515,18 @@ export interface PatchBucketRequest {
|
|
|
325
515
|
export const PatchBucketRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
326
516
|
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
327
517
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
328
|
-
storageClass: Schema.Literals(["Standard", "InfrequentAccess"]).pipe(
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
518
|
+
storageClass: Schema.Literals(["Standard", "InfrequentAccess"]).pipe(
|
|
519
|
+
T.HttpHeader("cf-r2-storage-class"),
|
|
520
|
+
),
|
|
521
|
+
jurisdiction: Schema.optional(
|
|
522
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
523
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
524
|
+
}).pipe(
|
|
525
|
+
T.Http({
|
|
526
|
+
method: "PATCH",
|
|
527
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}",
|
|
528
|
+
}),
|
|
529
|
+
) as unknown as Schema.Schema<PatchBucketRequest>;
|
|
332
530
|
|
|
333
531
|
export interface PatchBucketResponse {
|
|
334
532
|
/** Creation timestamp. */
|
|
@@ -336,7 +534,20 @@ export interface PatchBucketResponse {
|
|
|
336
534
|
/** Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
337
535
|
jurisdiction?: "default" | "eu" | "fedramp" | null;
|
|
338
536
|
/** Location of the bucket. */
|
|
339
|
-
location?:
|
|
537
|
+
location?:
|
|
538
|
+
| "apac"
|
|
539
|
+
| "eeur"
|
|
540
|
+
| "enam"
|
|
541
|
+
| "weur"
|
|
542
|
+
| "wnam"
|
|
543
|
+
| "oc"
|
|
544
|
+
| "APAC"
|
|
545
|
+
| "EEUR"
|
|
546
|
+
| "ENAM"
|
|
547
|
+
| "WEUR"
|
|
548
|
+
| "WNAM"
|
|
549
|
+
| "OC"
|
|
550
|
+
| null;
|
|
340
551
|
/** Name of the bucket. */
|
|
341
552
|
name?: string | null;
|
|
342
553
|
/** Storage class for newly uploaded objects, unless specified otherwise. */
|
|
@@ -345,16 +556,50 @@ export interface PatchBucketResponse {
|
|
|
345
556
|
|
|
346
557
|
export const PatchBucketResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
347
558
|
creationDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
348
|
-
jurisdiction: Schema.optional(
|
|
349
|
-
|
|
559
|
+
jurisdiction: Schema.optional(
|
|
560
|
+
Schema.Union([Schema.Literals(["default", "eu", "fedramp"]), Schema.Null]),
|
|
561
|
+
),
|
|
562
|
+
location: Schema.optional(
|
|
563
|
+
Schema.Union([
|
|
564
|
+
Schema.Literals([
|
|
565
|
+
"apac",
|
|
566
|
+
"eeur",
|
|
567
|
+
"enam",
|
|
568
|
+
"weur",
|
|
569
|
+
"wnam",
|
|
570
|
+
"oc",
|
|
571
|
+
"APAC",
|
|
572
|
+
"EEUR",
|
|
573
|
+
"ENAM",
|
|
574
|
+
"WEUR",
|
|
575
|
+
"WNAM",
|
|
576
|
+
"OC",
|
|
577
|
+
]),
|
|
578
|
+
Schema.Null,
|
|
579
|
+
]),
|
|
580
|
+
),
|
|
350
581
|
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
351
|
-
storageClass: Schema.optional(
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
582
|
+
storageClass: Schema.optional(
|
|
583
|
+
Schema.Union([
|
|
584
|
+
Schema.Literals(["Standard", "InfrequentAccess"]),
|
|
585
|
+
Schema.Null,
|
|
586
|
+
]),
|
|
587
|
+
),
|
|
588
|
+
})
|
|
589
|
+
.pipe(
|
|
590
|
+
Schema.encodeKeys({
|
|
591
|
+
creationDate: "creation_date",
|
|
592
|
+
jurisdiction: "jurisdiction",
|
|
593
|
+
location: "location",
|
|
594
|
+
name: "name",
|
|
595
|
+
storageClass: "storage_class",
|
|
596
|
+
}),
|
|
597
|
+
)
|
|
598
|
+
.pipe(
|
|
599
|
+
T.ResponsePath("result"),
|
|
600
|
+
) as unknown as Schema.Schema<PatchBucketResponse>;
|
|
601
|
+
|
|
602
|
+
export type PatchBucketError = DefaultErrors | NoSuchBucket | InvalidRoute;
|
|
358
603
|
|
|
359
604
|
export const patchBucket: API.OperationMethod<
|
|
360
605
|
PatchBucketRequest,
|
|
@@ -378,13 +623,22 @@ export interface DeleteBucketRequest {
|
|
|
378
623
|
export const DeleteBucketRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
379
624
|
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
380
625
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
381
|
-
jurisdiction: Schema.optional(
|
|
382
|
-
|
|
383
|
-
.pipe(T.
|
|
626
|
+
jurisdiction: Schema.optional(
|
|
627
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
628
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
629
|
+
}).pipe(
|
|
630
|
+
T.Http({
|
|
631
|
+
method: "DELETE",
|
|
632
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}",
|
|
633
|
+
}),
|
|
634
|
+
) as unknown as Schema.Schema<DeleteBucketRequest>;
|
|
384
635
|
|
|
385
636
|
export type DeleteBucketResponse = unknown;
|
|
386
637
|
|
|
387
|
-
export const DeleteBucketResponse =
|
|
638
|
+
export const DeleteBucketResponse =
|
|
639
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
|
|
640
|
+
T.ResponsePath("result"),
|
|
641
|
+
) as unknown as Schema.Schema<DeleteBucketResponse>;
|
|
388
642
|
|
|
389
643
|
export type DeleteBucketError =
|
|
390
644
|
| DefaultErrors
|
|
@@ -403,7 +657,6 @@ export const deleteBucket: API.OperationMethod<
|
|
|
403
657
|
errors: [NoSuchBucket, InvalidRoute, NoRoute],
|
|
404
658
|
}));
|
|
405
659
|
|
|
406
|
-
|
|
407
660
|
// =============================================================================
|
|
408
661
|
// BucketCor
|
|
409
662
|
// =============================================================================
|
|
@@ -419,26 +672,60 @@ export interface GetBucketCorsRequest {
|
|
|
419
672
|
export const GetBucketCorsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
420
673
|
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
421
674
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
422
|
-
jurisdiction: Schema.optional(
|
|
423
|
-
|
|
424
|
-
.pipe(T.
|
|
675
|
+
jurisdiction: Schema.optional(
|
|
676
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
677
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
678
|
+
}).pipe(
|
|
679
|
+
T.Http({
|
|
680
|
+
method: "GET",
|
|
681
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/cors",
|
|
682
|
+
}),
|
|
683
|
+
) as unknown as Schema.Schema<GetBucketCorsRequest>;
|
|
425
684
|
|
|
426
685
|
export interface GetBucketCorsResponse {
|
|
427
|
-
rules?:
|
|
686
|
+
rules?:
|
|
687
|
+
| {
|
|
688
|
+
allowed: {
|
|
689
|
+
methods: ("GET" | "PUT" | "POST" | "DELETE" | "HEAD")[];
|
|
690
|
+
origins: string[];
|
|
691
|
+
headers?: string[] | null;
|
|
692
|
+
};
|
|
693
|
+
id?: string | null;
|
|
694
|
+
exposeHeaders?: string[] | null;
|
|
695
|
+
maxAgeSeconds?: number | null;
|
|
696
|
+
}[]
|
|
697
|
+
| null;
|
|
428
698
|
}
|
|
429
699
|
|
|
430
700
|
export const GetBucketCorsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
431
|
-
rules: Schema.optional(
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
701
|
+
rules: Schema.optional(
|
|
702
|
+
Schema.Union([
|
|
703
|
+
Schema.Array(
|
|
704
|
+
Schema.Struct({
|
|
705
|
+
allowed: Schema.Struct({
|
|
706
|
+
methods: Schema.Array(
|
|
707
|
+
Schema.Literals(["GET", "PUT", "POST", "DELETE", "HEAD"]),
|
|
708
|
+
),
|
|
709
|
+
origins: Schema.Array(Schema.String),
|
|
710
|
+
headers: Schema.optional(
|
|
711
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
712
|
+
),
|
|
713
|
+
}),
|
|
714
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
715
|
+
exposeHeaders: Schema.optional(
|
|
716
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
717
|
+
),
|
|
718
|
+
maxAgeSeconds: Schema.optional(
|
|
719
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
720
|
+
),
|
|
721
|
+
}),
|
|
722
|
+
),
|
|
723
|
+
Schema.Null,
|
|
724
|
+
]),
|
|
725
|
+
),
|
|
726
|
+
}).pipe(
|
|
727
|
+
T.ResponsePath("result"),
|
|
728
|
+
) as unknown as Schema.Schema<GetBucketCorsResponse>;
|
|
442
729
|
|
|
443
730
|
export type GetBucketCorsError =
|
|
444
731
|
| DefaultErrors
|
|
@@ -464,34 +751,55 @@ export interface PutBucketCorsRequest {
|
|
|
464
751
|
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
465
752
|
jurisdiction?: "default" | "eu" | "fedramp";
|
|
466
753
|
/** Body param: */
|
|
467
|
-
rules?:
|
|
754
|
+
rules?: {
|
|
755
|
+
allowed: {
|
|
756
|
+
methods: ("GET" | "PUT" | "POST" | "DELETE" | "HEAD")[];
|
|
757
|
+
origins: string[];
|
|
758
|
+
headers?: string[];
|
|
759
|
+
};
|
|
760
|
+
id?: string;
|
|
761
|
+
exposeHeaders?: string[];
|
|
762
|
+
maxAgeSeconds?: number;
|
|
763
|
+
}[];
|
|
468
764
|
}
|
|
469
765
|
|
|
470
766
|
export const PutBucketCorsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
471
767
|
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
472
768
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
473
|
-
jurisdiction: Schema.optional(
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
769
|
+
jurisdiction: Schema.optional(
|
|
770
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
771
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
772
|
+
rules: Schema.optional(
|
|
773
|
+
Schema.Array(
|
|
774
|
+
Schema.Struct({
|
|
775
|
+
allowed: Schema.Struct({
|
|
776
|
+
methods: Schema.Array(
|
|
777
|
+
Schema.Literals(["GET", "PUT", "POST", "DELETE", "HEAD"]),
|
|
778
|
+
),
|
|
779
|
+
origins: Schema.Array(Schema.String),
|
|
780
|
+
headers: Schema.optional(Schema.Array(Schema.String)),
|
|
781
|
+
}),
|
|
782
|
+
id: Schema.optional(Schema.String),
|
|
783
|
+
exposeHeaders: Schema.optional(Schema.Array(Schema.String)),
|
|
784
|
+
maxAgeSeconds: Schema.optional(Schema.Number),
|
|
785
|
+
}),
|
|
786
|
+
),
|
|
787
|
+
),
|
|
788
|
+
}).pipe(
|
|
789
|
+
T.Http({
|
|
790
|
+
method: "PUT",
|
|
791
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/cors",
|
|
479
792
|
}),
|
|
480
|
-
|
|
481
|
-
exposeHeaders: Schema.optional(Schema.Array(Schema.String)),
|
|
482
|
-
maxAgeSeconds: Schema.optional(Schema.Number)
|
|
483
|
-
})))
|
|
484
|
-
})
|
|
485
|
-
.pipe(T.Http({ method: "PUT", path: "/accounts/{account_id}/r2/buckets/{bucketName}/cors" })) as unknown as Schema.Schema<PutBucketCorsRequest>;
|
|
793
|
+
) as unknown as Schema.Schema<PutBucketCorsRequest>;
|
|
486
794
|
|
|
487
795
|
export type PutBucketCorsResponse = unknown;
|
|
488
796
|
|
|
489
|
-
export const PutBucketCorsResponse =
|
|
797
|
+
export const PutBucketCorsResponse =
|
|
798
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
|
|
799
|
+
T.ResponsePath("result"),
|
|
800
|
+
) as unknown as Schema.Schema<PutBucketCorsResponse>;
|
|
490
801
|
|
|
491
|
-
export type PutBucketCorsError =
|
|
492
|
-
| DefaultErrors
|
|
493
|
-
| NoSuchBucket
|
|
494
|
-
| InvalidRoute;
|
|
802
|
+
export type PutBucketCorsError = DefaultErrors | NoSuchBucket | InvalidRoute;
|
|
495
803
|
|
|
496
804
|
export const putBucketCors: API.OperationMethod<
|
|
497
805
|
PutBucketCorsRequest,
|
|
@@ -512,21 +820,28 @@ export interface DeleteBucketCorsRequest {
|
|
|
512
820
|
jurisdiction?: "default" | "eu" | "fedramp";
|
|
513
821
|
}
|
|
514
822
|
|
|
515
|
-
export const DeleteBucketCorsRequest =
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
823
|
+
export const DeleteBucketCorsRequest =
|
|
824
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
825
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
826
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
827
|
+
jurisdiction: Schema.optional(
|
|
828
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
829
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
830
|
+
}).pipe(
|
|
831
|
+
T.Http({
|
|
832
|
+
method: "DELETE",
|
|
833
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/cors",
|
|
834
|
+
}),
|
|
835
|
+
) as unknown as Schema.Schema<DeleteBucketCorsRequest>;
|
|
521
836
|
|
|
522
837
|
export type DeleteBucketCorsResponse = unknown;
|
|
523
838
|
|
|
524
|
-
export const DeleteBucketCorsResponse =
|
|
839
|
+
export const DeleteBucketCorsResponse =
|
|
840
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
|
|
841
|
+
T.ResponsePath("result"),
|
|
842
|
+
) as unknown as Schema.Schema<DeleteBucketCorsResponse>;
|
|
525
843
|
|
|
526
|
-
export type DeleteBucketCorsError =
|
|
527
|
-
| DefaultErrors
|
|
528
|
-
| NoSuchBucket
|
|
529
|
-
| InvalidRoute;
|
|
844
|
+
export type DeleteBucketCorsError = DefaultErrors | NoSuchBucket | InvalidRoute;
|
|
530
845
|
|
|
531
846
|
export const deleteBucketCors: API.OperationMethod<
|
|
532
847
|
DeleteBucketCorsRequest,
|
|
@@ -539,7 +854,6 @@ export const deleteBucketCors: API.OperationMethod<
|
|
|
539
854
|
errors: [NoSuchBucket, InvalidRoute],
|
|
540
855
|
}));
|
|
541
856
|
|
|
542
|
-
|
|
543
857
|
// =============================================================================
|
|
544
858
|
// BucketDomainCustom
|
|
545
859
|
// =============================================================================
|
|
@@ -553,20 +867,42 @@ export interface GetBucketDomainCustomRequest {
|
|
|
553
867
|
jurisdiction?: "default" | "eu" | "fedramp";
|
|
554
868
|
}
|
|
555
869
|
|
|
556
|
-
export const GetBucketDomainCustomRequest =
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
870
|
+
export const GetBucketDomainCustomRequest =
|
|
871
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
872
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
873
|
+
domain: Schema.String.pipe(T.HttpPath("domain")),
|
|
874
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
875
|
+
jurisdiction: Schema.optional(
|
|
876
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
877
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
878
|
+
}).pipe(
|
|
879
|
+
T.Http({
|
|
880
|
+
method: "GET",
|
|
881
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/custom/{domain}",
|
|
882
|
+
}),
|
|
883
|
+
) as unknown as Schema.Schema<GetBucketDomainCustomRequest>;
|
|
563
884
|
|
|
564
885
|
export interface GetBucketDomainCustomResponse {
|
|
565
886
|
/** Domain name of the custom domain to be added. */
|
|
566
887
|
domain: string;
|
|
567
888
|
/** Whether this bucket is publicly accessible at the specified custom domain. */
|
|
568
889
|
enabled: boolean;
|
|
569
|
-
status: {
|
|
890
|
+
status: {
|
|
891
|
+
ownership:
|
|
892
|
+
| "pending"
|
|
893
|
+
| "active"
|
|
894
|
+
| "deactivated"
|
|
895
|
+
| "blocked"
|
|
896
|
+
| "error"
|
|
897
|
+
| "unknown";
|
|
898
|
+
ssl:
|
|
899
|
+
| "initializing"
|
|
900
|
+
| "pending"
|
|
901
|
+
| "active"
|
|
902
|
+
| "deactivated"
|
|
903
|
+
| "error"
|
|
904
|
+
| "unknown";
|
|
905
|
+
};
|
|
570
906
|
/** An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format. */
|
|
571
907
|
ciphers?: string[] | null;
|
|
572
908
|
/** Minimum TLS Version the custom domain will accept for incoming connections. If not set, defaults to 1.0. */
|
|
@@ -577,18 +913,42 @@ export interface GetBucketDomainCustomResponse {
|
|
|
577
913
|
zoneName?: string | null;
|
|
578
914
|
}
|
|
579
915
|
|
|
580
|
-
export const GetBucketDomainCustomResponse =
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
916
|
+
export const GetBucketDomainCustomResponse =
|
|
917
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
918
|
+
domain: Schema.String,
|
|
919
|
+
enabled: Schema.Boolean,
|
|
920
|
+
status: Schema.Struct({
|
|
921
|
+
ownership: Schema.Literals([
|
|
922
|
+
"pending",
|
|
923
|
+
"active",
|
|
924
|
+
"deactivated",
|
|
925
|
+
"blocked",
|
|
926
|
+
"error",
|
|
927
|
+
"unknown",
|
|
928
|
+
]),
|
|
929
|
+
ssl: Schema.Literals([
|
|
930
|
+
"initializing",
|
|
931
|
+
"pending",
|
|
932
|
+
"active",
|
|
933
|
+
"deactivated",
|
|
934
|
+
"error",
|
|
935
|
+
"unknown",
|
|
936
|
+
]),
|
|
937
|
+
}),
|
|
938
|
+
ciphers: Schema.optional(
|
|
939
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
940
|
+
),
|
|
941
|
+
minTLS: Schema.optional(
|
|
942
|
+
Schema.Union([
|
|
943
|
+
Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
|
|
944
|
+
Schema.Null,
|
|
945
|
+
]),
|
|
946
|
+
),
|
|
947
|
+
zoneId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
948
|
+
zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
949
|
+
}).pipe(
|
|
950
|
+
T.ResponsePath("result"),
|
|
951
|
+
) as unknown as Schema.Schema<GetBucketDomainCustomResponse>;
|
|
592
952
|
|
|
593
953
|
export type GetBucketDomainCustomError =
|
|
594
954
|
| DefaultErrors
|
|
@@ -615,31 +975,87 @@ export interface ListBucketDomainCustomsRequest {
|
|
|
615
975
|
jurisdiction?: "default" | "eu" | "fedramp";
|
|
616
976
|
}
|
|
617
977
|
|
|
618
|
-
export const ListBucketDomainCustomsRequest =
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
978
|
+
export const ListBucketDomainCustomsRequest =
|
|
979
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
980
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
981
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
982
|
+
jurisdiction: Schema.optional(
|
|
983
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
984
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
985
|
+
}).pipe(
|
|
986
|
+
T.Http({
|
|
987
|
+
method: "GET",
|
|
988
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/custom",
|
|
989
|
+
}),
|
|
990
|
+
) as unknown as Schema.Schema<ListBucketDomainCustomsRequest>;
|
|
624
991
|
|
|
625
992
|
export interface ListBucketDomainCustomsResponse {
|
|
626
|
-
domains:
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
993
|
+
domains: {
|
|
994
|
+
domain: string;
|
|
995
|
+
enabled: boolean;
|
|
996
|
+
status: {
|
|
997
|
+
ownership:
|
|
998
|
+
| "pending"
|
|
999
|
+
| "active"
|
|
1000
|
+
| "deactivated"
|
|
1001
|
+
| "blocked"
|
|
1002
|
+
| "error"
|
|
1003
|
+
| "unknown";
|
|
1004
|
+
ssl:
|
|
1005
|
+
| "initializing"
|
|
1006
|
+
| "pending"
|
|
1007
|
+
| "active"
|
|
1008
|
+
| "deactivated"
|
|
1009
|
+
| "error"
|
|
1010
|
+
| "unknown";
|
|
1011
|
+
};
|
|
1012
|
+
ciphers?: string[] | null;
|
|
1013
|
+
minTLS?: "1.0" | "1.1" | "1.2" | "1.3" | null;
|
|
1014
|
+
zoneId?: string | null;
|
|
1015
|
+
zoneName?: string | null;
|
|
1016
|
+
}[];
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
export const ListBucketDomainCustomsResponse =
|
|
1020
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1021
|
+
domains: Schema.Array(
|
|
1022
|
+
Schema.Struct({
|
|
1023
|
+
domain: Schema.String,
|
|
1024
|
+
enabled: Schema.Boolean,
|
|
1025
|
+
status: Schema.Struct({
|
|
1026
|
+
ownership: Schema.Literals([
|
|
1027
|
+
"pending",
|
|
1028
|
+
"active",
|
|
1029
|
+
"deactivated",
|
|
1030
|
+
"blocked",
|
|
1031
|
+
"error",
|
|
1032
|
+
"unknown",
|
|
1033
|
+
]),
|
|
1034
|
+
ssl: Schema.Literals([
|
|
1035
|
+
"initializing",
|
|
1036
|
+
"pending",
|
|
1037
|
+
"active",
|
|
1038
|
+
"deactivated",
|
|
1039
|
+
"error",
|
|
1040
|
+
"unknown",
|
|
1041
|
+
]),
|
|
1042
|
+
}),
|
|
1043
|
+
ciphers: Schema.optional(
|
|
1044
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1045
|
+
),
|
|
1046
|
+
minTLS: Schema.optional(
|
|
1047
|
+
Schema.Union([
|
|
1048
|
+
Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
|
|
1049
|
+
Schema.Null,
|
|
1050
|
+
]),
|
|
1051
|
+
),
|
|
1052
|
+
zoneId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1053
|
+
zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1054
|
+
}),
|
|
1055
|
+
),
|
|
1056
|
+
}).pipe(
|
|
1057
|
+
T.ResponsePath("result"),
|
|
1058
|
+
) as unknown as Schema.Schema<ListBucketDomainCustomsResponse>;
|
|
643
1059
|
|
|
644
1060
|
export type ListBucketDomainCustomsError =
|
|
645
1061
|
| DefaultErrors
|
|
@@ -675,17 +1091,24 @@ export interface CreateBucketDomainCustomRequest {
|
|
|
675
1091
|
minTLS?: "1.0" | "1.1" | "1.2" | "1.3";
|
|
676
1092
|
}
|
|
677
1093
|
|
|
678
|
-
export const CreateBucketDomainCustomRequest =
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
1094
|
+
export const CreateBucketDomainCustomRequest =
|
|
1095
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1096
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1097
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1098
|
+
jurisdiction: Schema.optional(
|
|
1099
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
1100
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
1101
|
+
domain: Schema.String,
|
|
1102
|
+
enabled: Schema.Boolean,
|
|
1103
|
+
zoneId: Schema.String,
|
|
1104
|
+
ciphers: Schema.optional(Schema.Array(Schema.String)),
|
|
1105
|
+
minTLS: Schema.optional(Schema.Literals(["1.0", "1.1", "1.2", "1.3"])),
|
|
1106
|
+
}).pipe(
|
|
1107
|
+
T.Http({
|
|
1108
|
+
method: "POST",
|
|
1109
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/custom",
|
|
1110
|
+
}),
|
|
1111
|
+
) as unknown as Schema.Schema<CreateBucketDomainCustomRequest>;
|
|
689
1112
|
|
|
690
1113
|
export interface CreateBucketDomainCustomResponse {
|
|
691
1114
|
/** Domain name of the affected custom domain. */
|
|
@@ -698,12 +1121,22 @@ export interface CreateBucketDomainCustomResponse {
|
|
|
698
1121
|
minTLS?: "1.0" | "1.1" | "1.2" | "1.3" | null;
|
|
699
1122
|
}
|
|
700
1123
|
|
|
701
|
-
export const CreateBucketDomainCustomResponse =
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
1124
|
+
export const CreateBucketDomainCustomResponse =
|
|
1125
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1126
|
+
domain: Schema.String,
|
|
1127
|
+
enabled: Schema.Boolean,
|
|
1128
|
+
ciphers: Schema.optional(
|
|
1129
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1130
|
+
),
|
|
1131
|
+
minTLS: Schema.optional(
|
|
1132
|
+
Schema.Union([
|
|
1133
|
+
Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
|
|
1134
|
+
Schema.Null,
|
|
1135
|
+
]),
|
|
1136
|
+
),
|
|
1137
|
+
}).pipe(
|
|
1138
|
+
T.ResponsePath("result"),
|
|
1139
|
+
) as unknown as Schema.Schema<CreateBucketDomainCustomResponse>;
|
|
707
1140
|
|
|
708
1141
|
export type CreateBucketDomainCustomError =
|
|
709
1142
|
| DefaultErrors
|
|
@@ -736,16 +1169,23 @@ export interface UpdateBucketDomainCustomRequest {
|
|
|
736
1169
|
minTLS?: "1.0" | "1.1" | "1.2" | "1.3";
|
|
737
1170
|
}
|
|
738
1171
|
|
|
739
|
-
export const UpdateBucketDomainCustomRequest =
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
1172
|
+
export const UpdateBucketDomainCustomRequest =
|
|
1173
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1174
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1175
|
+
domain: Schema.String.pipe(T.HttpPath("domain")),
|
|
1176
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1177
|
+
jurisdiction: Schema.optional(
|
|
1178
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
1179
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
1180
|
+
ciphers: Schema.optional(Schema.Array(Schema.String)),
|
|
1181
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
1182
|
+
minTLS: Schema.optional(Schema.Literals(["1.0", "1.1", "1.2", "1.3"])),
|
|
1183
|
+
}).pipe(
|
|
1184
|
+
T.Http({
|
|
1185
|
+
method: "PUT",
|
|
1186
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/custom/{domain}",
|
|
1187
|
+
}),
|
|
1188
|
+
) as unknown as Schema.Schema<UpdateBucketDomainCustomRequest>;
|
|
749
1189
|
|
|
750
1190
|
export interface UpdateBucketDomainCustomResponse {
|
|
751
1191
|
/** Domain name of the affected custom domain. */
|
|
@@ -758,15 +1198,24 @@ export interface UpdateBucketDomainCustomResponse {
|
|
|
758
1198
|
minTLS?: "1.0" | "1.1" | "1.2" | "1.3" | null;
|
|
759
1199
|
}
|
|
760
1200
|
|
|
761
|
-
export const UpdateBucketDomainCustomResponse =
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
1201
|
+
export const UpdateBucketDomainCustomResponse =
|
|
1202
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1203
|
+
domain: Schema.String,
|
|
1204
|
+
ciphers: Schema.optional(
|
|
1205
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1206
|
+
),
|
|
1207
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1208
|
+
minTLS: Schema.optional(
|
|
1209
|
+
Schema.Union([
|
|
1210
|
+
Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
|
|
1211
|
+
Schema.Null,
|
|
1212
|
+
]),
|
|
1213
|
+
),
|
|
1214
|
+
}).pipe(
|
|
1215
|
+
T.ResponsePath("result"),
|
|
1216
|
+
) as unknown as Schema.Schema<UpdateBucketDomainCustomResponse>;
|
|
1217
|
+
|
|
1218
|
+
export type UpdateBucketDomainCustomError = DefaultErrors;
|
|
770
1219
|
|
|
771
1220
|
export const updateBucketDomainCustom: API.OperationMethod<
|
|
772
1221
|
UpdateBucketDomainCustomRequest,
|
|
@@ -788,25 +1237,34 @@ export interface DeleteBucketDomainCustomRequest {
|
|
|
788
1237
|
jurisdiction?: "default" | "eu" | "fedramp";
|
|
789
1238
|
}
|
|
790
1239
|
|
|
791
|
-
export const DeleteBucketDomainCustomRequest =
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
1240
|
+
export const DeleteBucketDomainCustomRequest =
|
|
1241
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1242
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1243
|
+
domain: Schema.String.pipe(T.HttpPath("domain")),
|
|
1244
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1245
|
+
jurisdiction: Schema.optional(
|
|
1246
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
1247
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
1248
|
+
}).pipe(
|
|
1249
|
+
T.Http({
|
|
1250
|
+
method: "DELETE",
|
|
1251
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/custom/{domain}",
|
|
1252
|
+
}),
|
|
1253
|
+
) as unknown as Schema.Schema<DeleteBucketDomainCustomRequest>;
|
|
798
1254
|
|
|
799
1255
|
export interface DeleteBucketDomainCustomResponse {
|
|
800
1256
|
/** Name of the removed custom domain. */
|
|
801
1257
|
domain: string;
|
|
802
1258
|
}
|
|
803
1259
|
|
|
804
|
-
export const DeleteBucketDomainCustomResponse =
|
|
805
|
-
|
|
806
|
-
|
|
1260
|
+
export const DeleteBucketDomainCustomResponse =
|
|
1261
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1262
|
+
domain: Schema.String,
|
|
1263
|
+
}).pipe(
|
|
1264
|
+
T.ResponsePath("result"),
|
|
1265
|
+
) as unknown as Schema.Schema<DeleteBucketDomainCustomResponse>;
|
|
807
1266
|
|
|
808
|
-
export type DeleteBucketDomainCustomError =
|
|
809
|
-
| DefaultErrors;
|
|
1267
|
+
export type DeleteBucketDomainCustomError = DefaultErrors;
|
|
810
1268
|
|
|
811
1269
|
export const deleteBucketDomainCustom: API.OperationMethod<
|
|
812
1270
|
DeleteBucketDomainCustomRequest,
|
|
@@ -819,7 +1277,6 @@ export const deleteBucketDomainCustom: API.OperationMethod<
|
|
|
819
1277
|
errors: [],
|
|
820
1278
|
}));
|
|
821
1279
|
|
|
822
|
-
|
|
823
1280
|
// =============================================================================
|
|
824
1281
|
// BucketDomainManaged
|
|
825
1282
|
// =============================================================================
|
|
@@ -832,12 +1289,19 @@ export interface ListBucketDomainManagedsRequest {
|
|
|
832
1289
|
jurisdiction?: "default" | "eu" | "fedramp";
|
|
833
1290
|
}
|
|
834
1291
|
|
|
835
|
-
export const ListBucketDomainManagedsRequest =
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
1292
|
+
export const ListBucketDomainManagedsRequest =
|
|
1293
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1294
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1295
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1296
|
+
jurisdiction: Schema.optional(
|
|
1297
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
1298
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
1299
|
+
}).pipe(
|
|
1300
|
+
T.Http({
|
|
1301
|
+
method: "GET",
|
|
1302
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/managed",
|
|
1303
|
+
}),
|
|
1304
|
+
) as unknown as Schema.Schema<ListBucketDomainManagedsRequest>;
|
|
841
1305
|
|
|
842
1306
|
export interface ListBucketDomainManagedsResponse {
|
|
843
1307
|
/** Bucket ID. */
|
|
@@ -848,11 +1312,14 @@ export interface ListBucketDomainManagedsResponse {
|
|
|
848
1312
|
enabled: boolean;
|
|
849
1313
|
}
|
|
850
1314
|
|
|
851
|
-
export const ListBucketDomainManagedsResponse =
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
1315
|
+
export const ListBucketDomainManagedsResponse =
|
|
1316
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1317
|
+
bucketId: Schema.String,
|
|
1318
|
+
domain: Schema.String,
|
|
1319
|
+
enabled: Schema.Boolean,
|
|
1320
|
+
}).pipe(
|
|
1321
|
+
T.ResponsePath("result"),
|
|
1322
|
+
) as unknown as Schema.Schema<ListBucketDomainManagedsResponse>;
|
|
856
1323
|
|
|
857
1324
|
export type ListBucketDomainManagedsError =
|
|
858
1325
|
| DefaultErrors
|
|
@@ -880,13 +1347,20 @@ export interface PutBucketDomainManagedRequest {
|
|
|
880
1347
|
enabled: boolean;
|
|
881
1348
|
}
|
|
882
1349
|
|
|
883
|
-
export const PutBucketDomainManagedRequest =
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
1350
|
+
export const PutBucketDomainManagedRequest =
|
|
1351
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1352
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1353
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1354
|
+
jurisdiction: Schema.optional(
|
|
1355
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
1356
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
1357
|
+
enabled: Schema.Boolean,
|
|
1358
|
+
}).pipe(
|
|
1359
|
+
T.Http({
|
|
1360
|
+
method: "PUT",
|
|
1361
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/managed",
|
|
1362
|
+
}),
|
|
1363
|
+
) as unknown as Schema.Schema<PutBucketDomainManagedRequest>;
|
|
890
1364
|
|
|
891
1365
|
export interface PutBucketDomainManagedResponse {
|
|
892
1366
|
/** Bucket ID. */
|
|
@@ -897,11 +1371,14 @@ export interface PutBucketDomainManagedResponse {
|
|
|
897
1371
|
enabled: boolean;
|
|
898
1372
|
}
|
|
899
1373
|
|
|
900
|
-
export const PutBucketDomainManagedResponse =
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
1374
|
+
export const PutBucketDomainManagedResponse =
|
|
1375
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1376
|
+
bucketId: Schema.String,
|
|
1377
|
+
domain: Schema.String,
|
|
1378
|
+
enabled: Schema.Boolean,
|
|
1379
|
+
}).pipe(
|
|
1380
|
+
T.ResponsePath("result"),
|
|
1381
|
+
) as unknown as Schema.Schema<PutBucketDomainManagedResponse>;
|
|
905
1382
|
|
|
906
1383
|
export type PutBucketDomainManagedError =
|
|
907
1384
|
| DefaultErrors
|
|
@@ -919,7 +1396,6 @@ export const putBucketDomainManaged: API.OperationMethod<
|
|
|
919
1396
|
errors: [NoSuchBucket, InvalidRoute],
|
|
920
1397
|
}));
|
|
921
1398
|
|
|
922
|
-
|
|
923
1399
|
// =============================================================================
|
|
924
1400
|
// BucketEventNotification
|
|
925
1401
|
// =============================================================================
|
|
@@ -933,34 +1409,78 @@ export interface GetBucketEventNotificationRequest {
|
|
|
933
1409
|
jurisdiction?: "default" | "eu" | "fedramp";
|
|
934
1410
|
}
|
|
935
1411
|
|
|
936
|
-
export const GetBucketEventNotificationRequest =
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
1412
|
+
export const GetBucketEventNotificationRequest =
|
|
1413
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1414
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1415
|
+
queueId: Schema.String.pipe(T.HttpPath("queueId")),
|
|
1416
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1417
|
+
jurisdiction: Schema.optional(
|
|
1418
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
1419
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
1420
|
+
}).pipe(
|
|
1421
|
+
T.Http({
|
|
1422
|
+
method: "GET",
|
|
1423
|
+
path: "/accounts/{account_id}/event_notifications/r2/{bucketName}/configuration/queues/{queueId}",
|
|
1424
|
+
}),
|
|
1425
|
+
) as unknown as Schema.Schema<GetBucketEventNotificationRequest>;
|
|
943
1426
|
|
|
944
1427
|
export interface GetBucketEventNotificationResponse {
|
|
945
1428
|
/** Queue ID. */
|
|
946
1429
|
queueId?: string | null;
|
|
947
1430
|
/** Name of the queue. */
|
|
948
1431
|
queueName?: string | null;
|
|
949
|
-
rules?:
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
}
|
|
1432
|
+
rules?:
|
|
1433
|
+
| {
|
|
1434
|
+
actions: (
|
|
1435
|
+
| "PutObject"
|
|
1436
|
+
| "CopyObject"
|
|
1437
|
+
| "DeleteObject"
|
|
1438
|
+
| "CompleteMultipartUpload"
|
|
1439
|
+
| "LifecycleDeletion"
|
|
1440
|
+
)[];
|
|
1441
|
+
createdAt?: string | null;
|
|
1442
|
+
description?: string | null;
|
|
1443
|
+
prefix?: string | null;
|
|
1444
|
+
ruleId?: string | null;
|
|
1445
|
+
suffix?: string | null;
|
|
1446
|
+
}[]
|
|
1447
|
+
| null;
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
export const GetBucketEventNotificationResponse =
|
|
1451
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1452
|
+
queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1453
|
+
queueName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1454
|
+
rules: Schema.optional(
|
|
1455
|
+
Schema.Union([
|
|
1456
|
+
Schema.Array(
|
|
1457
|
+
Schema.Struct({
|
|
1458
|
+
actions: Schema.Array(
|
|
1459
|
+
Schema.Literals([
|
|
1460
|
+
"PutObject",
|
|
1461
|
+
"CopyObject",
|
|
1462
|
+
"DeleteObject",
|
|
1463
|
+
"CompleteMultipartUpload",
|
|
1464
|
+
"LifecycleDeletion",
|
|
1465
|
+
]),
|
|
1466
|
+
),
|
|
1467
|
+
createdAt: Schema.optional(
|
|
1468
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1469
|
+
),
|
|
1470
|
+
description: Schema.optional(
|
|
1471
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1472
|
+
),
|
|
1473
|
+
prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1474
|
+
ruleId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1475
|
+
suffix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1476
|
+
}),
|
|
1477
|
+
),
|
|
1478
|
+
Schema.Null,
|
|
1479
|
+
]),
|
|
1480
|
+
),
|
|
1481
|
+
}).pipe(
|
|
1482
|
+
T.ResponsePath("result"),
|
|
1483
|
+
) as unknown as Schema.Schema<GetBucketEventNotificationResponse>;
|
|
964
1484
|
|
|
965
1485
|
export type GetBucketEventNotificationError =
|
|
966
1486
|
| DefaultErrors
|
|
@@ -978,7 +1498,13 @@ export const getBucketEventNotification: API.OperationMethod<
|
|
|
978
1498
|
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
979
1499
|
input: GetBucketEventNotificationRequest,
|
|
980
1500
|
output: GetBucketEventNotificationResponse,
|
|
981
|
-
errors: [
|
|
1501
|
+
errors: [
|
|
1502
|
+
BucketNotFound,
|
|
1503
|
+
NoEventNotificationConfig,
|
|
1504
|
+
EventNotificationConfigNotFound,
|
|
1505
|
+
QueueNotFound,
|
|
1506
|
+
InvalidRoute,
|
|
1507
|
+
],
|
|
982
1508
|
}));
|
|
983
1509
|
|
|
984
1510
|
export interface ListBucketEventNotificationsRequest {
|
|
@@ -989,35 +1515,102 @@ export interface ListBucketEventNotificationsRequest {
|
|
|
989
1515
|
jurisdiction?: "default" | "eu" | "fedramp";
|
|
990
1516
|
}
|
|
991
1517
|
|
|
992
|
-
export const ListBucketEventNotificationsRequest =
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
1518
|
+
export const ListBucketEventNotificationsRequest =
|
|
1519
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1520
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1521
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1522
|
+
jurisdiction: Schema.optional(
|
|
1523
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
1524
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
1525
|
+
}).pipe(
|
|
1526
|
+
T.Http({
|
|
1527
|
+
method: "GET",
|
|
1528
|
+
path: "/accounts/{account_id}/event_notifications/r2/{bucketName}/configuration",
|
|
1529
|
+
}),
|
|
1530
|
+
) as unknown as Schema.Schema<ListBucketEventNotificationsRequest>;
|
|
998
1531
|
|
|
999
1532
|
export interface ListBucketEventNotificationsResponse {
|
|
1000
1533
|
/** Name of the bucket. */
|
|
1001
1534
|
bucketName?: string | null;
|
|
1002
1535
|
/** List of queues associated with the bucket. */
|
|
1003
|
-
queues?:
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1536
|
+
queues?:
|
|
1537
|
+
| {
|
|
1538
|
+
queueId?: string | null;
|
|
1539
|
+
queueName?: string | null;
|
|
1540
|
+
rules?:
|
|
1541
|
+
| {
|
|
1542
|
+
actions: (
|
|
1543
|
+
| "PutObject"
|
|
1544
|
+
| "CopyObject"
|
|
1545
|
+
| "DeleteObject"
|
|
1546
|
+
| "CompleteMultipartUpload"
|
|
1547
|
+
| "LifecycleDeletion"
|
|
1548
|
+
)[];
|
|
1549
|
+
createdAt?: string | null;
|
|
1550
|
+
description?: string | null;
|
|
1551
|
+
prefix?: string | null;
|
|
1552
|
+
ruleId?: string | null;
|
|
1553
|
+
suffix?: string | null;
|
|
1554
|
+
}[]
|
|
1555
|
+
| null;
|
|
1556
|
+
}[]
|
|
1557
|
+
| null;
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1560
|
+
export const ListBucketEventNotificationsResponse =
|
|
1561
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1562
|
+
bucketName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1563
|
+
queues: Schema.optional(
|
|
1564
|
+
Schema.Union([
|
|
1565
|
+
Schema.Array(
|
|
1566
|
+
Schema.Struct({
|
|
1567
|
+
queueId: Schema.optional(
|
|
1568
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1569
|
+
),
|
|
1570
|
+
queueName: Schema.optional(
|
|
1571
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1572
|
+
),
|
|
1573
|
+
rules: Schema.optional(
|
|
1574
|
+
Schema.Union([
|
|
1575
|
+
Schema.Array(
|
|
1576
|
+
Schema.Struct({
|
|
1577
|
+
actions: Schema.Array(
|
|
1578
|
+
Schema.Literals([
|
|
1579
|
+
"PutObject",
|
|
1580
|
+
"CopyObject",
|
|
1581
|
+
"DeleteObject",
|
|
1582
|
+
"CompleteMultipartUpload",
|
|
1583
|
+
"LifecycleDeletion",
|
|
1584
|
+
]),
|
|
1585
|
+
),
|
|
1586
|
+
createdAt: Schema.optional(
|
|
1587
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1588
|
+
),
|
|
1589
|
+
description: Schema.optional(
|
|
1590
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1591
|
+
),
|
|
1592
|
+
prefix: Schema.optional(
|
|
1593
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1594
|
+
),
|
|
1595
|
+
ruleId: Schema.optional(
|
|
1596
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1597
|
+
),
|
|
1598
|
+
suffix: Schema.optional(
|
|
1599
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1600
|
+
),
|
|
1601
|
+
}),
|
|
1602
|
+
),
|
|
1603
|
+
Schema.Null,
|
|
1604
|
+
]),
|
|
1605
|
+
),
|
|
1606
|
+
}),
|
|
1607
|
+
),
|
|
1608
|
+
Schema.Null,
|
|
1609
|
+
]),
|
|
1610
|
+
),
|
|
1611
|
+
}).pipe(
|
|
1612
|
+
T.ResponsePath("result"),
|
|
1613
|
+
) as unknown as Schema.Schema<ListBucketEventNotificationsResponse>;
|
|
1021
1614
|
|
|
1022
1615
|
export type ListBucketEventNotificationsError =
|
|
1023
1616
|
| DefaultErrors
|
|
@@ -1034,7 +1627,12 @@ export const listBucketEventNotifications: API.OperationMethod<
|
|
|
1034
1627
|
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1035
1628
|
input: ListBucketEventNotificationsRequest,
|
|
1036
1629
|
output: ListBucketEventNotificationsResponse,
|
|
1037
|
-
errors: [
|
|
1630
|
+
errors: [
|
|
1631
|
+
NoSuchBucket,
|
|
1632
|
+
InvalidRoute,
|
|
1633
|
+
NoEventNotificationConfig,
|
|
1634
|
+
BucketNotFound,
|
|
1635
|
+
],
|
|
1038
1636
|
}));
|
|
1039
1637
|
|
|
1040
1638
|
export interface PutBucketEventNotificationRequest {
|
|
@@ -1045,26 +1643,57 @@ export interface PutBucketEventNotificationRequest {
|
|
|
1045
1643
|
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
1046
1644
|
jurisdiction?: "default" | "eu" | "fedramp";
|
|
1047
1645
|
/** Body param: Array of rules to drive notifications. */
|
|
1048
|
-
rules:
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1646
|
+
rules: {
|
|
1647
|
+
actions: (
|
|
1648
|
+
| "PutObject"
|
|
1649
|
+
| "CopyObject"
|
|
1650
|
+
| "DeleteObject"
|
|
1651
|
+
| "CompleteMultipartUpload"
|
|
1652
|
+
| "LifecycleDeletion"
|
|
1653
|
+
)[];
|
|
1654
|
+
description?: string;
|
|
1655
|
+
prefix?: string;
|
|
1656
|
+
suffix?: string;
|
|
1657
|
+
}[];
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1660
|
+
export const PutBucketEventNotificationRequest =
|
|
1661
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1662
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1663
|
+
queueId: Schema.String.pipe(T.HttpPath("queueId")),
|
|
1664
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1665
|
+
jurisdiction: Schema.optional(
|
|
1666
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
1667
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
1668
|
+
rules: Schema.Array(
|
|
1669
|
+
Schema.Struct({
|
|
1670
|
+
actions: Schema.Array(
|
|
1671
|
+
Schema.Literals([
|
|
1672
|
+
"PutObject",
|
|
1673
|
+
"CopyObject",
|
|
1674
|
+
"DeleteObject",
|
|
1675
|
+
"CompleteMultipartUpload",
|
|
1676
|
+
"LifecycleDeletion",
|
|
1677
|
+
]),
|
|
1678
|
+
),
|
|
1679
|
+
description: Schema.optional(Schema.String),
|
|
1680
|
+
prefix: Schema.optional(Schema.String),
|
|
1681
|
+
suffix: Schema.optional(Schema.String),
|
|
1682
|
+
}),
|
|
1683
|
+
),
|
|
1684
|
+
}).pipe(
|
|
1685
|
+
T.Http({
|
|
1686
|
+
method: "PUT",
|
|
1687
|
+
path: "/accounts/{account_id}/event_notifications/r2/{bucketName}/configuration/queues/{queueId}",
|
|
1688
|
+
}),
|
|
1689
|
+
) as unknown as Schema.Schema<PutBucketEventNotificationRequest>;
|
|
1064
1690
|
|
|
1065
1691
|
export type PutBucketEventNotificationResponse = unknown;
|
|
1066
1692
|
|
|
1067
|
-
export const PutBucketEventNotificationResponse =
|
|
1693
|
+
export const PutBucketEventNotificationResponse =
|
|
1694
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
|
|
1695
|
+
T.ResponsePath("result"),
|
|
1696
|
+
) as unknown as Schema.Schema<PutBucketEventNotificationResponse>;
|
|
1068
1697
|
|
|
1069
1698
|
export type PutBucketEventNotificationError =
|
|
1070
1699
|
| DefaultErrors
|
|
@@ -1082,7 +1711,13 @@ export const putBucketEventNotification: API.OperationMethod<
|
|
|
1082
1711
|
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1083
1712
|
input: PutBucketEventNotificationRequest,
|
|
1084
1713
|
output: PutBucketEventNotificationResponse,
|
|
1085
|
-
errors: [
|
|
1714
|
+
errors: [
|
|
1715
|
+
BucketNotFound,
|
|
1716
|
+
InvalidEventNotificationConfig,
|
|
1717
|
+
EventNotificationRuleConflict,
|
|
1718
|
+
QueueNotFound,
|
|
1719
|
+
InvalidRoute,
|
|
1720
|
+
],
|
|
1086
1721
|
}));
|
|
1087
1722
|
|
|
1088
1723
|
export interface DeleteBucketEventNotificationRequest {
|
|
@@ -1094,17 +1729,27 @@ export interface DeleteBucketEventNotificationRequest {
|
|
|
1094
1729
|
jurisdiction?: "default" | "eu" | "fedramp";
|
|
1095
1730
|
}
|
|
1096
1731
|
|
|
1097
|
-
export const DeleteBucketEventNotificationRequest =
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1732
|
+
export const DeleteBucketEventNotificationRequest =
|
|
1733
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1734
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1735
|
+
queueId: Schema.String.pipe(T.HttpPath("queueId")),
|
|
1736
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1737
|
+
jurisdiction: Schema.optional(
|
|
1738
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
1739
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
1740
|
+
}).pipe(
|
|
1741
|
+
T.Http({
|
|
1742
|
+
method: "DELETE",
|
|
1743
|
+
path: "/accounts/{account_id}/event_notifications/r2/{bucketName}/configuration/queues/{queueId}",
|
|
1744
|
+
}),
|
|
1745
|
+
) as unknown as Schema.Schema<DeleteBucketEventNotificationRequest>;
|
|
1104
1746
|
|
|
1105
1747
|
export type DeleteBucketEventNotificationResponse = unknown;
|
|
1106
1748
|
|
|
1107
|
-
export const DeleteBucketEventNotificationResponse =
|
|
1749
|
+
export const DeleteBucketEventNotificationResponse =
|
|
1750
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
|
|
1751
|
+
T.ResponsePath("result"),
|
|
1752
|
+
) as unknown as Schema.Schema<DeleteBucketEventNotificationResponse>;
|
|
1108
1753
|
|
|
1109
1754
|
export type DeleteBucketEventNotificationError =
|
|
1110
1755
|
| DefaultErrors
|
|
@@ -1121,10 +1766,14 @@ export const deleteBucketEventNotification: API.OperationMethod<
|
|
|
1121
1766
|
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1122
1767
|
input: DeleteBucketEventNotificationRequest,
|
|
1123
1768
|
output: DeleteBucketEventNotificationResponse,
|
|
1124
|
-
errors: [
|
|
1769
|
+
errors: [
|
|
1770
|
+
BucketNotFound,
|
|
1771
|
+
EventNotificationConfigNotFound,
|
|
1772
|
+
QueueNotFound,
|
|
1773
|
+
InvalidRoute,
|
|
1774
|
+
],
|
|
1125
1775
|
}));
|
|
1126
1776
|
|
|
1127
|
-
|
|
1128
1777
|
// =============================================================================
|
|
1129
1778
|
// BucketLifecycle
|
|
1130
1779
|
// =============================================================================
|
|
@@ -1137,51 +1786,126 @@ export interface GetBucketLifecycleRequest {
|
|
|
1137
1786
|
jurisdiction?: "default" | "eu" | "fedramp";
|
|
1138
1787
|
}
|
|
1139
1788
|
|
|
1140
|
-
export const GetBucketLifecycleRequest =
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1789
|
+
export const GetBucketLifecycleRequest =
|
|
1790
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1791
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1792
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1793
|
+
jurisdiction: Schema.optional(
|
|
1794
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
1795
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
1796
|
+
}).pipe(
|
|
1797
|
+
T.Http({
|
|
1798
|
+
method: "GET",
|
|
1799
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/lifecycle",
|
|
1800
|
+
}),
|
|
1801
|
+
) as unknown as Schema.Schema<GetBucketLifecycleRequest>;
|
|
1146
1802
|
|
|
1147
1803
|
export interface GetBucketLifecycleResponse {
|
|
1148
|
-
rules?:
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1804
|
+
rules?:
|
|
1805
|
+
| {
|
|
1806
|
+
id: string;
|
|
1807
|
+
conditions: { prefix?: string | null };
|
|
1808
|
+
enabled: boolean;
|
|
1809
|
+
abortMultipartUploadsTransition?: {
|
|
1810
|
+
condition?: { maxAge: number; type: "Age" } | null;
|
|
1811
|
+
} | null;
|
|
1812
|
+
deleteObjectsTransition?: {
|
|
1813
|
+
condition?:
|
|
1814
|
+
| { maxAge: number; type: "Age" }
|
|
1815
|
+
| { date: string; type: "Date" }
|
|
1816
|
+
| null;
|
|
1817
|
+
} | null;
|
|
1818
|
+
storageClassTransitions?:
|
|
1819
|
+
| {
|
|
1820
|
+
condition:
|
|
1821
|
+
| { maxAge: number; type: "Age" }
|
|
1822
|
+
| { date: string; type: "Date" };
|
|
1823
|
+
storageClass: "InfrequentAccess";
|
|
1824
|
+
}[]
|
|
1825
|
+
| null;
|
|
1826
|
+
}[]
|
|
1827
|
+
| null;
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
export const GetBucketLifecycleResponse =
|
|
1831
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1832
|
+
rules: Schema.optional(
|
|
1833
|
+
Schema.Union([
|
|
1834
|
+
Schema.Array(
|
|
1835
|
+
Schema.Struct({
|
|
1836
|
+
id: Schema.String,
|
|
1837
|
+
conditions: Schema.Struct({
|
|
1838
|
+
prefix: Schema.optional(
|
|
1839
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1840
|
+
),
|
|
1841
|
+
}),
|
|
1842
|
+
enabled: Schema.Boolean,
|
|
1843
|
+
abortMultipartUploadsTransition: Schema.optional(
|
|
1844
|
+
Schema.Union([
|
|
1845
|
+
Schema.Struct({
|
|
1846
|
+
condition: Schema.optional(
|
|
1847
|
+
Schema.Union([
|
|
1848
|
+
Schema.Struct({
|
|
1849
|
+
maxAge: Schema.Number,
|
|
1850
|
+
type: Schema.Literal("Age"),
|
|
1851
|
+
}),
|
|
1852
|
+
Schema.Null,
|
|
1853
|
+
]),
|
|
1854
|
+
),
|
|
1855
|
+
}),
|
|
1856
|
+
Schema.Null,
|
|
1857
|
+
]),
|
|
1858
|
+
),
|
|
1859
|
+
deleteObjectsTransition: Schema.optional(
|
|
1860
|
+
Schema.Union([
|
|
1861
|
+
Schema.Struct({
|
|
1862
|
+
condition: Schema.optional(
|
|
1863
|
+
Schema.Union([
|
|
1864
|
+
Schema.Union([
|
|
1865
|
+
Schema.Struct({
|
|
1866
|
+
maxAge: Schema.Number,
|
|
1867
|
+
type: Schema.Literal("Age"),
|
|
1868
|
+
}),
|
|
1869
|
+
Schema.Struct({
|
|
1870
|
+
date: Schema.String,
|
|
1871
|
+
type: Schema.Literal("Date"),
|
|
1872
|
+
}),
|
|
1873
|
+
]),
|
|
1874
|
+
Schema.Null,
|
|
1875
|
+
]),
|
|
1876
|
+
),
|
|
1877
|
+
}),
|
|
1878
|
+
Schema.Null,
|
|
1879
|
+
]),
|
|
1880
|
+
),
|
|
1881
|
+
storageClassTransitions: Schema.optional(
|
|
1882
|
+
Schema.Union([
|
|
1883
|
+
Schema.Array(
|
|
1884
|
+
Schema.Struct({
|
|
1885
|
+
condition: Schema.Union([
|
|
1886
|
+
Schema.Struct({
|
|
1887
|
+
maxAge: Schema.Number,
|
|
1888
|
+
type: Schema.Literal("Age"),
|
|
1889
|
+
}),
|
|
1890
|
+
Schema.Struct({
|
|
1891
|
+
date: Schema.String,
|
|
1892
|
+
type: Schema.Literal("Date"),
|
|
1893
|
+
}),
|
|
1894
|
+
]),
|
|
1895
|
+
storageClass: Schema.Literal("InfrequentAccess"),
|
|
1896
|
+
}),
|
|
1897
|
+
),
|
|
1898
|
+
Schema.Null,
|
|
1899
|
+
]),
|
|
1900
|
+
),
|
|
1901
|
+
}),
|
|
1902
|
+
),
|
|
1903
|
+
Schema.Null,
|
|
1904
|
+
]),
|
|
1905
|
+
),
|
|
1906
|
+
}).pipe(
|
|
1907
|
+
T.ResponsePath("result"),
|
|
1908
|
+
) as unknown as Schema.Schema<GetBucketLifecycleResponse>;
|
|
1185
1909
|
|
|
1186
1910
|
export type GetBucketLifecycleError =
|
|
1187
1911
|
| DefaultErrors
|
|
@@ -1206,51 +1930,101 @@ export interface PutBucketLifecycleRequest {
|
|
|
1206
1930
|
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
1207
1931
|
jurisdiction?: "default" | "eu" | "fedramp";
|
|
1208
1932
|
/** Body param: */
|
|
1209
|
-
rules?:
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
}
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1933
|
+
rules?: {
|
|
1934
|
+
id: string;
|
|
1935
|
+
conditions: { prefix: string };
|
|
1936
|
+
enabled: boolean;
|
|
1937
|
+
abortMultipartUploadsTransition?: {
|
|
1938
|
+
condition?: { maxAge: number; type: "Age" };
|
|
1939
|
+
};
|
|
1940
|
+
deleteObjectsTransition?: {
|
|
1941
|
+
condition?:
|
|
1942
|
+
| { maxAge: number; type: "Age" }
|
|
1943
|
+
| { date: string; type: "Date" };
|
|
1944
|
+
};
|
|
1945
|
+
storageClassTransitions?: {
|
|
1946
|
+
condition:
|
|
1947
|
+
| { maxAge: number; type: "Age" }
|
|
1948
|
+
| { date: string; type: "Date" };
|
|
1949
|
+
storageClass: "InfrequentAccess";
|
|
1950
|
+
}[];
|
|
1951
|
+
}[];
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1954
|
+
export const PutBucketLifecycleRequest =
|
|
1955
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1956
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1957
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1958
|
+
jurisdiction: Schema.optional(
|
|
1959
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
1960
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
1961
|
+
rules: Schema.optional(
|
|
1962
|
+
Schema.Array(
|
|
1963
|
+
Schema.Struct({
|
|
1964
|
+
id: Schema.String,
|
|
1965
|
+
conditions: Schema.Struct({
|
|
1966
|
+
prefix: Schema.String,
|
|
1967
|
+
}),
|
|
1968
|
+
enabled: Schema.Boolean,
|
|
1969
|
+
abortMultipartUploadsTransition: Schema.optional(
|
|
1970
|
+
Schema.Struct({
|
|
1971
|
+
condition: Schema.optional(
|
|
1972
|
+
Schema.Struct({
|
|
1973
|
+
maxAge: Schema.Number,
|
|
1974
|
+
type: Schema.Literal("Age"),
|
|
1975
|
+
}),
|
|
1976
|
+
),
|
|
1977
|
+
}),
|
|
1978
|
+
),
|
|
1979
|
+
deleteObjectsTransition: Schema.optional(
|
|
1980
|
+
Schema.Struct({
|
|
1981
|
+
condition: Schema.optional(
|
|
1982
|
+
Schema.Union([
|
|
1983
|
+
Schema.Struct({
|
|
1984
|
+
maxAge: Schema.Number,
|
|
1985
|
+
type: Schema.Literal("Age"),
|
|
1986
|
+
}),
|
|
1987
|
+
Schema.Struct({
|
|
1988
|
+
date: Schema.String,
|
|
1989
|
+
type: Schema.Literal("Date"),
|
|
1990
|
+
}),
|
|
1991
|
+
]),
|
|
1992
|
+
),
|
|
1993
|
+
}),
|
|
1994
|
+
),
|
|
1995
|
+
storageClassTransitions: Schema.optional(
|
|
1996
|
+
Schema.Array(
|
|
1997
|
+
Schema.Struct({
|
|
1998
|
+
condition: Schema.Union([
|
|
1999
|
+
Schema.Struct({
|
|
2000
|
+
maxAge: Schema.Number,
|
|
2001
|
+
type: Schema.Literal("Age"),
|
|
2002
|
+
}),
|
|
2003
|
+
Schema.Struct({
|
|
2004
|
+
date: Schema.String,
|
|
2005
|
+
type: Schema.Literal("Date"),
|
|
2006
|
+
}),
|
|
2007
|
+
]),
|
|
2008
|
+
storageClass: Schema.Literal("InfrequentAccess"),
|
|
2009
|
+
}),
|
|
2010
|
+
),
|
|
2011
|
+
),
|
|
2012
|
+
}),
|
|
2013
|
+
),
|
|
2014
|
+
),
|
|
2015
|
+
}).pipe(
|
|
2016
|
+
T.Http({
|
|
2017
|
+
method: "PUT",
|
|
2018
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/lifecycle",
|
|
2019
|
+
}),
|
|
2020
|
+
) as unknown as Schema.Schema<PutBucketLifecycleRequest>;
|
|
1250
2021
|
|
|
1251
2022
|
export type PutBucketLifecycleResponse = unknown;
|
|
1252
2023
|
|
|
1253
|
-
export const PutBucketLifecycleResponse =
|
|
2024
|
+
export const PutBucketLifecycleResponse =
|
|
2025
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
|
|
2026
|
+
T.ResponsePath("result"),
|
|
2027
|
+
) as unknown as Schema.Schema<PutBucketLifecycleResponse>;
|
|
1254
2028
|
|
|
1255
2029
|
export type PutBucketLifecycleError =
|
|
1256
2030
|
| DefaultErrors
|
|
@@ -1268,7 +2042,6 @@ export const putBucketLifecycle: API.OperationMethod<
|
|
|
1268
2042
|
errors: [NoSuchBucket, InvalidRoute],
|
|
1269
2043
|
}));
|
|
1270
2044
|
|
|
1271
|
-
|
|
1272
2045
|
// =============================================================================
|
|
1273
2046
|
// BucketLock
|
|
1274
2047
|
// =============================================================================
|
|
@@ -1284,35 +2057,61 @@ export interface GetBucketLockRequest {
|
|
|
1284
2057
|
export const GetBucketLockRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1285
2058
|
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1286
2059
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1287
|
-
jurisdiction: Schema.optional(
|
|
1288
|
-
|
|
1289
|
-
.pipe(T.
|
|
2060
|
+
jurisdiction: Schema.optional(
|
|
2061
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
2062
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
2063
|
+
}).pipe(
|
|
2064
|
+
T.Http({
|
|
2065
|
+
method: "GET",
|
|
2066
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/lock",
|
|
2067
|
+
}),
|
|
2068
|
+
) as unknown as Schema.Schema<GetBucketLockRequest>;
|
|
1290
2069
|
|
|
1291
2070
|
export interface GetBucketLockResponse {
|
|
1292
|
-
rules?:
|
|
2071
|
+
rules?:
|
|
2072
|
+
| {
|
|
2073
|
+
id: string;
|
|
2074
|
+
condition:
|
|
2075
|
+
| { maxAgeSeconds: number; type: "Age" }
|
|
2076
|
+
| { date: string; type: "Date" }
|
|
2077
|
+
| { type: "Indefinite" };
|
|
2078
|
+
enabled: boolean;
|
|
2079
|
+
prefix?: string | null;
|
|
2080
|
+
}[]
|
|
2081
|
+
| null;
|
|
1293
2082
|
}
|
|
1294
2083
|
|
|
1295
2084
|
export const GetBucketLockResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1296
|
-
rules: Schema.optional(
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
})
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
2085
|
+
rules: Schema.optional(
|
|
2086
|
+
Schema.Union([
|
|
2087
|
+
Schema.Array(
|
|
2088
|
+
Schema.Struct({
|
|
2089
|
+
id: Schema.String,
|
|
2090
|
+
condition: Schema.Union([
|
|
2091
|
+
Schema.Struct({
|
|
2092
|
+
maxAgeSeconds: Schema.Number,
|
|
2093
|
+
type: Schema.Literal("Age"),
|
|
2094
|
+
}),
|
|
2095
|
+
Schema.Struct({
|
|
2096
|
+
date: Schema.String,
|
|
2097
|
+
type: Schema.Literal("Date"),
|
|
2098
|
+
}),
|
|
2099
|
+
Schema.Struct({
|
|
2100
|
+
type: Schema.Literal("Indefinite"),
|
|
2101
|
+
}),
|
|
2102
|
+
]),
|
|
2103
|
+
enabled: Schema.Boolean,
|
|
2104
|
+
prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2105
|
+
}),
|
|
2106
|
+
),
|
|
2107
|
+
Schema.Null,
|
|
2108
|
+
]),
|
|
2109
|
+
),
|
|
2110
|
+
}).pipe(
|
|
2111
|
+
T.ResponsePath("result"),
|
|
2112
|
+
) as unknown as Schema.Schema<GetBucketLockResponse>;
|
|
2113
|
+
|
|
2114
|
+
export type GetBucketLockError = DefaultErrors | NoSuchBucket | InvalidRoute;
|
|
1316
2115
|
|
|
1317
2116
|
export const getBucketLock: API.OperationMethod<
|
|
1318
2117
|
GetBucketLockRequest,
|
|
@@ -1332,38 +2131,60 @@ export interface PutBucketLockRequest {
|
|
|
1332
2131
|
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
1333
2132
|
jurisdiction?: "default" | "eu" | "fedramp";
|
|
1334
2133
|
/** Body param: */
|
|
1335
|
-
rules?:
|
|
2134
|
+
rules?: {
|
|
2135
|
+
id: string;
|
|
2136
|
+
condition:
|
|
2137
|
+
| { maxAgeSeconds: number; type: "Age" }
|
|
2138
|
+
| { date: string; type: "Date" }
|
|
2139
|
+
| { type: "Indefinite" };
|
|
2140
|
+
enabled: boolean;
|
|
2141
|
+
prefix?: string;
|
|
2142
|
+
}[];
|
|
1336
2143
|
}
|
|
1337
2144
|
|
|
1338
2145
|
export const PutBucketLockRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1339
2146
|
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1340
2147
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1341
|
-
jurisdiction: Schema.optional(
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
})
|
|
1357
|
-
|
|
2148
|
+
jurisdiction: Schema.optional(
|
|
2149
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
2150
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
2151
|
+
rules: Schema.optional(
|
|
2152
|
+
Schema.Array(
|
|
2153
|
+
Schema.Struct({
|
|
2154
|
+
id: Schema.String,
|
|
2155
|
+
condition: Schema.Union([
|
|
2156
|
+
Schema.Struct({
|
|
2157
|
+
maxAgeSeconds: Schema.Number,
|
|
2158
|
+
type: Schema.Literal("Age"),
|
|
2159
|
+
}),
|
|
2160
|
+
Schema.Struct({
|
|
2161
|
+
date: Schema.String,
|
|
2162
|
+
type: Schema.Literal("Date"),
|
|
2163
|
+
}),
|
|
2164
|
+
Schema.Struct({
|
|
2165
|
+
type: Schema.Literal("Indefinite"),
|
|
2166
|
+
}),
|
|
2167
|
+
]),
|
|
2168
|
+
enabled: Schema.Boolean,
|
|
2169
|
+
prefix: Schema.optional(Schema.String),
|
|
2170
|
+
}),
|
|
2171
|
+
),
|
|
2172
|
+
),
|
|
2173
|
+
}).pipe(
|
|
2174
|
+
T.Http({
|
|
2175
|
+
method: "PUT",
|
|
2176
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/lock",
|
|
2177
|
+
}),
|
|
2178
|
+
) as unknown as Schema.Schema<PutBucketLockRequest>;
|
|
1358
2179
|
|
|
1359
2180
|
export type PutBucketLockResponse = unknown;
|
|
1360
2181
|
|
|
1361
|
-
export const PutBucketLockResponse =
|
|
2182
|
+
export const PutBucketLockResponse =
|
|
2183
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
|
|
2184
|
+
T.ResponsePath("result"),
|
|
2185
|
+
) as unknown as Schema.Schema<PutBucketLockResponse>;
|
|
1362
2186
|
|
|
1363
|
-
export type PutBucketLockError =
|
|
1364
|
-
| DefaultErrors
|
|
1365
|
-
| NoSuchBucket
|
|
1366
|
-
| InvalidRoute;
|
|
2187
|
+
export type PutBucketLockError = DefaultErrors | NoSuchBucket | InvalidRoute;
|
|
1367
2188
|
|
|
1368
2189
|
export const putBucketLock: API.OperationMethod<
|
|
1369
2190
|
PutBucketLockRequest,
|
|
@@ -1376,7 +2197,6 @@ export const putBucketLock: API.OperationMethod<
|
|
|
1376
2197
|
errors: [NoSuchBucket, InvalidRoute],
|
|
1377
2198
|
}));
|
|
1378
2199
|
|
|
1379
|
-
|
|
1380
2200
|
// =============================================================================
|
|
1381
2201
|
// BucketMetric
|
|
1382
2202
|
// =============================================================================
|
|
@@ -1386,48 +2206,127 @@ export interface ListBucketMetricsRequest {
|
|
|
1386
2206
|
accountId: string;
|
|
1387
2207
|
}
|
|
1388
2208
|
|
|
1389
|
-
export const ListBucketMetricsRequest =
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
.pipe(
|
|
2209
|
+
export const ListBucketMetricsRequest =
|
|
2210
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2211
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2212
|
+
}).pipe(
|
|
2213
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/r2/metrics" }),
|
|
2214
|
+
) as unknown as Schema.Schema<ListBucketMetricsRequest>;
|
|
1393
2215
|
|
|
1394
2216
|
export interface ListBucketMetricsResponse {
|
|
1395
2217
|
/** Metrics based on what state they are in(uploaded or published). */
|
|
1396
|
-
infrequentAccess?: {
|
|
2218
|
+
infrequentAccess?: {
|
|
2219
|
+
published?: {
|
|
2220
|
+
metadataSize?: number | null;
|
|
2221
|
+
objects?: number | null;
|
|
2222
|
+
payloadSize?: number | null;
|
|
2223
|
+
} | null;
|
|
2224
|
+
uploaded?: {
|
|
2225
|
+
metadataSize?: number | null;
|
|
2226
|
+
objects?: number | null;
|
|
2227
|
+
payloadSize?: number | null;
|
|
2228
|
+
} | null;
|
|
2229
|
+
} | null;
|
|
1397
2230
|
/** Metrics based on what state they are in(uploaded or published). */
|
|
1398
|
-
standard?: {
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
2231
|
+
standard?: {
|
|
2232
|
+
published?: {
|
|
2233
|
+
metadataSize?: number | null;
|
|
2234
|
+
objects?: number | null;
|
|
2235
|
+
payloadSize?: number | null;
|
|
2236
|
+
} | null;
|
|
2237
|
+
uploaded?: {
|
|
2238
|
+
metadataSize?: number | null;
|
|
2239
|
+
objects?: number | null;
|
|
2240
|
+
payloadSize?: number | null;
|
|
2241
|
+
} | null;
|
|
2242
|
+
} | null;
|
|
2243
|
+
}
|
|
2244
|
+
|
|
2245
|
+
export const ListBucketMetricsResponse =
|
|
2246
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2247
|
+
infrequentAccess: Schema.optional(
|
|
2248
|
+
Schema.Union([
|
|
2249
|
+
Schema.Struct({
|
|
2250
|
+
published: Schema.optional(
|
|
2251
|
+
Schema.Union([
|
|
2252
|
+
Schema.Struct({
|
|
2253
|
+
metadataSize: Schema.optional(
|
|
2254
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2255
|
+
),
|
|
2256
|
+
objects: Schema.optional(
|
|
2257
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2258
|
+
),
|
|
2259
|
+
payloadSize: Schema.optional(
|
|
2260
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2261
|
+
),
|
|
2262
|
+
}),
|
|
2263
|
+
Schema.Null,
|
|
2264
|
+
]),
|
|
2265
|
+
),
|
|
2266
|
+
uploaded: Schema.optional(
|
|
2267
|
+
Schema.Union([
|
|
2268
|
+
Schema.Struct({
|
|
2269
|
+
metadataSize: Schema.optional(
|
|
2270
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2271
|
+
),
|
|
2272
|
+
objects: Schema.optional(
|
|
2273
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2274
|
+
),
|
|
2275
|
+
payloadSize: Schema.optional(
|
|
2276
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2277
|
+
),
|
|
2278
|
+
}),
|
|
2279
|
+
Schema.Null,
|
|
2280
|
+
]),
|
|
2281
|
+
),
|
|
2282
|
+
}),
|
|
2283
|
+
Schema.Null,
|
|
2284
|
+
]),
|
|
2285
|
+
),
|
|
2286
|
+
standard: Schema.optional(
|
|
2287
|
+
Schema.Union([
|
|
2288
|
+
Schema.Struct({
|
|
2289
|
+
published: Schema.optional(
|
|
2290
|
+
Schema.Union([
|
|
2291
|
+
Schema.Struct({
|
|
2292
|
+
metadataSize: Schema.optional(
|
|
2293
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2294
|
+
),
|
|
2295
|
+
objects: Schema.optional(
|
|
2296
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2297
|
+
),
|
|
2298
|
+
payloadSize: Schema.optional(
|
|
2299
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2300
|
+
),
|
|
2301
|
+
}),
|
|
2302
|
+
Schema.Null,
|
|
2303
|
+
]),
|
|
2304
|
+
),
|
|
2305
|
+
uploaded: Schema.optional(
|
|
2306
|
+
Schema.Union([
|
|
2307
|
+
Schema.Struct({
|
|
2308
|
+
metadataSize: Schema.optional(
|
|
2309
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2310
|
+
),
|
|
2311
|
+
objects: Schema.optional(
|
|
2312
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2313
|
+
),
|
|
2314
|
+
payloadSize: Schema.optional(
|
|
2315
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2316
|
+
),
|
|
2317
|
+
}),
|
|
2318
|
+
Schema.Null,
|
|
2319
|
+
]),
|
|
2320
|
+
),
|
|
2321
|
+
}),
|
|
2322
|
+
Schema.Null,
|
|
2323
|
+
]),
|
|
2324
|
+
),
|
|
2325
|
+
}).pipe(
|
|
2326
|
+
T.ResponsePath("result"),
|
|
2327
|
+
) as unknown as Schema.Schema<ListBucketMetricsResponse>;
|
|
2328
|
+
|
|
2329
|
+
export type ListBucketMetricsError = DefaultErrors | InvalidRoute;
|
|
1431
2330
|
|
|
1432
2331
|
export const listBucketMetrics: API.OperationMethod<
|
|
1433
2332
|
ListBucketMetricsRequest,
|
|
@@ -1440,7 +2339,6 @@ export const listBucketMetrics: API.OperationMethod<
|
|
|
1440
2339
|
errors: [InvalidRoute],
|
|
1441
2340
|
}));
|
|
1442
2341
|
|
|
1443
|
-
|
|
1444
2342
|
// =============================================================================
|
|
1445
2343
|
// BucketSippy
|
|
1446
2344
|
// =============================================================================
|
|
@@ -1456,39 +2354,74 @@ export interface GetBucketSippyRequest {
|
|
|
1456
2354
|
export const GetBucketSippyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1457
2355
|
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1458
2356
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1459
|
-
jurisdiction: Schema.optional(
|
|
1460
|
-
|
|
1461
|
-
.pipe(T.
|
|
2357
|
+
jurisdiction: Schema.optional(
|
|
2358
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
2359
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
2360
|
+
}).pipe(
|
|
2361
|
+
T.Http({
|
|
2362
|
+
method: "GET",
|
|
2363
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/sippy",
|
|
2364
|
+
}),
|
|
2365
|
+
) as unknown as Schema.Schema<GetBucketSippyRequest>;
|
|
1462
2366
|
|
|
1463
2367
|
export interface GetBucketSippyResponse {
|
|
1464
2368
|
/** Details about the configured destination bucket. */
|
|
1465
|
-
destination?: {
|
|
2369
|
+
destination?: {
|
|
2370
|
+
accessKeyId?: string | null;
|
|
2371
|
+
account?: string | null;
|
|
2372
|
+
bucket?: string | null;
|
|
2373
|
+
provider?: "r2" | null;
|
|
2374
|
+
} | null;
|
|
1466
2375
|
/** State of Sippy for this bucket. */
|
|
1467
2376
|
enabled?: boolean | null;
|
|
1468
2377
|
/** Details about the configured source bucket. */
|
|
1469
|
-
source?: {
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
2378
|
+
source?: {
|
|
2379
|
+
bucket?: string | null;
|
|
2380
|
+
bucketUrl?: string | null;
|
|
2381
|
+
provider?: "aws" | "gcs" | "s3" | null;
|
|
2382
|
+
region?: string | null;
|
|
2383
|
+
} | null;
|
|
2384
|
+
}
|
|
2385
|
+
|
|
2386
|
+
export const GetBucketSippyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
2387
|
+
{
|
|
2388
|
+
destination: Schema.optional(
|
|
2389
|
+
Schema.Union([
|
|
2390
|
+
Schema.Struct({
|
|
2391
|
+
accessKeyId: Schema.optional(
|
|
2392
|
+
Schema.Union([SensitiveString, Schema.Null]),
|
|
2393
|
+
),
|
|
2394
|
+
account: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2395
|
+
bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2396
|
+
provider: Schema.optional(
|
|
2397
|
+
Schema.Union([Schema.Literal("r2"), Schema.Null]),
|
|
2398
|
+
),
|
|
2399
|
+
}),
|
|
2400
|
+
Schema.Null,
|
|
2401
|
+
]),
|
|
2402
|
+
),
|
|
2403
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2404
|
+
source: Schema.optional(
|
|
2405
|
+
Schema.Union([
|
|
2406
|
+
Schema.Struct({
|
|
2407
|
+
bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2408
|
+
bucketUrl: Schema.optional(
|
|
2409
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2410
|
+
),
|
|
2411
|
+
provider: Schema.optional(
|
|
2412
|
+
Schema.Union([Schema.Literals(["aws", "gcs", "s3"]), Schema.Null]),
|
|
2413
|
+
),
|
|
2414
|
+
region: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2415
|
+
}),
|
|
2416
|
+
Schema.Null,
|
|
2417
|
+
]),
|
|
2418
|
+
),
|
|
2419
|
+
},
|
|
2420
|
+
).pipe(
|
|
2421
|
+
T.ResponsePath("result"),
|
|
2422
|
+
) as unknown as Schema.Schema<GetBucketSippyResponse>;
|
|
2423
|
+
|
|
2424
|
+
export type GetBucketSippyError = DefaultErrors | NoSuchBucket | InvalidRoute;
|
|
1492
2425
|
|
|
1493
2426
|
export const getBucketSippy: API.OperationMethod<
|
|
1494
2427
|
GetBucketSippyRequest,
|
|
@@ -1508,54 +2441,106 @@ export interface PutBucketSippyRequest {
|
|
|
1508
2441
|
/** Header param: Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
1509
2442
|
jurisdiction?: "default" | "eu" | "fedramp";
|
|
1510
2443
|
/** Body param: R2 bucket to copy objects to. */
|
|
1511
|
-
destination?: {
|
|
2444
|
+
destination?: {
|
|
2445
|
+
accessKeyId?: string;
|
|
2446
|
+
provider?: "r2";
|
|
2447
|
+
secretAccessKey?: string;
|
|
2448
|
+
};
|
|
1512
2449
|
/** Body param: AWS S3 bucket to copy objects from. */
|
|
1513
|
-
source?: {
|
|
2450
|
+
source?: {
|
|
2451
|
+
accessKeyId?: string;
|
|
2452
|
+
bucket?: string;
|
|
2453
|
+
provider?: "aws";
|
|
2454
|
+
region?: string;
|
|
2455
|
+
secretAccessKey?: string;
|
|
2456
|
+
};
|
|
1514
2457
|
}
|
|
1515
2458
|
|
|
1516
2459
|
export const PutBucketSippyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1517
2460
|
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1518
2461
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1519
|
-
jurisdiction: Schema.optional(
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
2462
|
+
jurisdiction: Schema.optional(
|
|
2463
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
2464
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
2465
|
+
destination: Schema.optional(
|
|
2466
|
+
Schema.Struct({
|
|
2467
|
+
accessKeyId: Schema.optional(SensitiveString),
|
|
2468
|
+
provider: Schema.optional(Schema.Literal("r2")),
|
|
2469
|
+
secretAccessKey: Schema.optional(SensitiveString),
|
|
2470
|
+
}),
|
|
2471
|
+
),
|
|
2472
|
+
source: Schema.optional(
|
|
2473
|
+
Schema.Struct({
|
|
2474
|
+
accessKeyId: Schema.optional(SensitiveString),
|
|
2475
|
+
bucket: Schema.optional(Schema.String),
|
|
2476
|
+
provider: Schema.optional(Schema.Literal("aws")),
|
|
2477
|
+
region: Schema.optional(Schema.String),
|
|
2478
|
+
secretAccessKey: Schema.optional(SensitiveString),
|
|
2479
|
+
}),
|
|
2480
|
+
),
|
|
2481
|
+
}).pipe(
|
|
2482
|
+
T.Http({
|
|
2483
|
+
method: "PUT",
|
|
2484
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/sippy",
|
|
2485
|
+
}),
|
|
2486
|
+
) as unknown as Schema.Schema<PutBucketSippyRequest>;
|
|
1534
2487
|
|
|
1535
2488
|
export interface PutBucketSippyResponse {
|
|
1536
2489
|
/** Details about the configured destination bucket. */
|
|
1537
|
-
destination?: {
|
|
2490
|
+
destination?: {
|
|
2491
|
+
accessKeyId?: string | null;
|
|
2492
|
+
account?: string | null;
|
|
2493
|
+
bucket?: string | null;
|
|
2494
|
+
provider?: "r2" | null;
|
|
2495
|
+
} | null;
|
|
1538
2496
|
/** State of Sippy for this bucket. */
|
|
1539
2497
|
enabled?: boolean | null;
|
|
1540
2498
|
/** Details about the configured source bucket. */
|
|
1541
|
-
source?: {
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
2499
|
+
source?: {
|
|
2500
|
+
bucket?: string | null;
|
|
2501
|
+
bucketUrl?: string | null;
|
|
2502
|
+
provider?: "aws" | "gcs" | "s3" | null;
|
|
2503
|
+
region?: string | null;
|
|
2504
|
+
} | null;
|
|
2505
|
+
}
|
|
2506
|
+
|
|
2507
|
+
export const PutBucketSippyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
2508
|
+
{
|
|
2509
|
+
destination: Schema.optional(
|
|
2510
|
+
Schema.Union([
|
|
2511
|
+
Schema.Struct({
|
|
2512
|
+
accessKeyId: Schema.optional(
|
|
2513
|
+
Schema.Union([SensitiveString, Schema.Null]),
|
|
2514
|
+
),
|
|
2515
|
+
account: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2516
|
+
bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2517
|
+
provider: Schema.optional(
|
|
2518
|
+
Schema.Union([Schema.Literal("r2"), Schema.Null]),
|
|
2519
|
+
),
|
|
2520
|
+
}),
|
|
2521
|
+
Schema.Null,
|
|
2522
|
+
]),
|
|
2523
|
+
),
|
|
2524
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2525
|
+
source: Schema.optional(
|
|
2526
|
+
Schema.Union([
|
|
2527
|
+
Schema.Struct({
|
|
2528
|
+
bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2529
|
+
bucketUrl: Schema.optional(
|
|
2530
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2531
|
+
),
|
|
2532
|
+
provider: Schema.optional(
|
|
2533
|
+
Schema.Union([Schema.Literals(["aws", "gcs", "s3"]), Schema.Null]),
|
|
2534
|
+
),
|
|
2535
|
+
region: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2536
|
+
}),
|
|
2537
|
+
Schema.Null,
|
|
2538
|
+
]),
|
|
2539
|
+
),
|
|
2540
|
+
},
|
|
2541
|
+
).pipe(
|
|
2542
|
+
T.ResponsePath("result"),
|
|
2543
|
+
) as unknown as Schema.Schema<PutBucketSippyResponse>;
|
|
1559
2544
|
|
|
1560
2545
|
export type PutBucketSippyError =
|
|
1561
2546
|
| DefaultErrors
|
|
@@ -1581,20 +2566,32 @@ export interface DeleteBucketSippyRequest {
|
|
|
1581
2566
|
jurisdiction?: "default" | "eu" | "fedramp";
|
|
1582
2567
|
}
|
|
1583
2568
|
|
|
1584
|
-
export const DeleteBucketSippyRequest =
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
2569
|
+
export const DeleteBucketSippyRequest =
|
|
2570
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2571
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
2572
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2573
|
+
jurisdiction: Schema.optional(
|
|
2574
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
2575
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
2576
|
+
}).pipe(
|
|
2577
|
+
T.Http({
|
|
2578
|
+
method: "DELETE",
|
|
2579
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/sippy",
|
|
2580
|
+
}),
|
|
2581
|
+
) as unknown as Schema.Schema<DeleteBucketSippyRequest>;
|
|
1590
2582
|
|
|
1591
2583
|
export interface DeleteBucketSippyResponse {
|
|
1592
2584
|
enabled?: false | null;
|
|
1593
2585
|
}
|
|
1594
2586
|
|
|
1595
|
-
export const DeleteBucketSippyResponse =
|
|
1596
|
-
|
|
1597
|
-
|
|
2587
|
+
export const DeleteBucketSippyResponse =
|
|
2588
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2589
|
+
enabled: Schema.optional(
|
|
2590
|
+
Schema.Union([Schema.Literal(false), Schema.Null]),
|
|
2591
|
+
),
|
|
2592
|
+
}).pipe(
|
|
2593
|
+
T.ResponsePath("result"),
|
|
2594
|
+
) as unknown as Schema.Schema<DeleteBucketSippyResponse>;
|
|
1598
2595
|
|
|
1599
2596
|
export type DeleteBucketSippyError =
|
|
1600
2597
|
| DefaultErrors
|
|
@@ -1612,7 +2609,6 @@ export const deleteBucketSippy: API.OperationMethod<
|
|
|
1612
2609
|
errors: [NoSuchBucket, InvalidRoute],
|
|
1613
2610
|
}));
|
|
1614
2611
|
|
|
1615
|
-
|
|
1616
2612
|
// =============================================================================
|
|
1617
2613
|
// Object
|
|
1618
2614
|
// =============================================================================
|
|
@@ -1632,13 +2628,22 @@ export const GetObjectRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1632
2628
|
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1633
2629
|
objectName: Schema.String.pipe(T.HttpPath("objectName")),
|
|
1634
2630
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1635
|
-
cfR2Jurisdiction: Schema.optional(
|
|
1636
|
-
|
|
1637
|
-
.pipe(T.
|
|
2631
|
+
cfR2Jurisdiction: Schema.optional(
|
|
2632
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
2633
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
2634
|
+
}).pipe(
|
|
2635
|
+
T.Http({
|
|
2636
|
+
method: "GET",
|
|
2637
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/objects/{objectName}",
|
|
2638
|
+
}),
|
|
2639
|
+
) as unknown as Schema.Schema<GetObjectRequest>;
|
|
1638
2640
|
|
|
1639
2641
|
export type GetObjectResponse = File | Blob;
|
|
1640
2642
|
|
|
1641
|
-
export const GetObjectResponse =
|
|
2643
|
+
export const GetObjectResponse =
|
|
2644
|
+
/*@__PURE__*/ /*#__PURE__*/ UploadableSchema.pipe(T.HttpFormDataFile()).pipe(
|
|
2645
|
+
T.ResponsePath("result"),
|
|
2646
|
+
) as unknown as Schema.Schema<GetObjectResponse>;
|
|
1642
2647
|
|
|
1643
2648
|
export type GetObjectError =
|
|
1644
2649
|
| DefaultErrors
|
|
@@ -1689,22 +2694,46 @@ export const PutObjectRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1689
2694
|
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1690
2695
|
objectName: Schema.String.pipe(T.HttpPath("objectName")),
|
|
1691
2696
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1692
|
-
cfR2Jurisdiction: Schema.optional(
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
2697
|
+
cfR2Jurisdiction: Schema.optional(
|
|
2698
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
2699
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
2700
|
+
contentType: Schema.optional(Schema.String).pipe(
|
|
2701
|
+
T.HttpHeader("content-type"),
|
|
2702
|
+
),
|
|
2703
|
+
contentDisposition: Schema.optional(Schema.String).pipe(
|
|
2704
|
+
T.HttpHeader("content-disposition"),
|
|
2705
|
+
),
|
|
2706
|
+
contentEncoding: Schema.optional(Schema.String).pipe(
|
|
2707
|
+
T.HttpHeader("content-encoding"),
|
|
2708
|
+
),
|
|
2709
|
+
contentLanguage: Schema.optional(Schema.String).pipe(
|
|
2710
|
+
T.HttpHeader("content-language"),
|
|
2711
|
+
),
|
|
2712
|
+
contentLength: Schema.optional(Schema.String).pipe(
|
|
2713
|
+
T.HttpHeader("content-length"),
|
|
2714
|
+
),
|
|
2715
|
+
cacheControl: Schema.optional(Schema.String).pipe(
|
|
2716
|
+
T.HttpHeader("cache-control"),
|
|
2717
|
+
),
|
|
1699
2718
|
expires: Schema.optional(Schema.String).pipe(T.HttpHeader("expires")),
|
|
1700
|
-
cfR2StorageClass: Schema.optional(
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
.pipe(T.
|
|
2719
|
+
cfR2StorageClass: Schema.optional(
|
|
2720
|
+
Schema.Literals(["Standard", "InfrequentAccess"]),
|
|
2721
|
+
).pipe(T.HttpHeader("cf-r2-storage-class")),
|
|
2722
|
+
body: UploadableSchema.pipe(T.HttpFormDataFile()).pipe(T.HttpBody()),
|
|
2723
|
+
}).pipe(
|
|
2724
|
+
T.Http({
|
|
2725
|
+
method: "PUT",
|
|
2726
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/objects/{objectName}",
|
|
2727
|
+
contentType: "multipart",
|
|
2728
|
+
}),
|
|
2729
|
+
) as unknown as Schema.Schema<PutObjectRequest>;
|
|
1704
2730
|
|
|
1705
2731
|
export type PutObjectResponse = unknown;
|
|
1706
2732
|
|
|
1707
|
-
export const PutObjectResponse =
|
|
2733
|
+
export const PutObjectResponse =
|
|
2734
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
|
|
2735
|
+
T.ResponsePath("result"),
|
|
2736
|
+
) as unknown as Schema.Schema<PutObjectResponse>;
|
|
1708
2737
|
|
|
1709
2738
|
export type PutObjectError =
|
|
1710
2739
|
| DefaultErrors
|
|
@@ -1738,13 +2767,22 @@ export const DeleteObjectRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1738
2767
|
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
1739
2768
|
objectName: Schema.String.pipe(T.HttpPath("objectName")),
|
|
1740
2769
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1741
|
-
cfR2Jurisdiction: Schema.optional(
|
|
1742
|
-
|
|
1743
|
-
.pipe(T.
|
|
2770
|
+
cfR2Jurisdiction: Schema.optional(
|
|
2771
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
2772
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
2773
|
+
}).pipe(
|
|
2774
|
+
T.Http({
|
|
2775
|
+
method: "DELETE",
|
|
2776
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/objects/{objectName}",
|
|
2777
|
+
}),
|
|
2778
|
+
) as unknown as Schema.Schema<DeleteObjectRequest>;
|
|
1744
2779
|
|
|
1745
2780
|
export type DeleteObjectResponse = unknown;
|
|
1746
2781
|
|
|
1747
|
-
export const DeleteObjectResponse =
|
|
2782
|
+
export const DeleteObjectResponse =
|
|
2783
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
|
|
2784
|
+
T.ResponsePath("result"),
|
|
2785
|
+
) as unknown as Schema.Schema<DeleteObjectResponse>;
|
|
1748
2786
|
|
|
1749
2787
|
export type DeleteObjectError =
|
|
1750
2788
|
| DefaultErrors
|
|
@@ -1763,7 +2801,6 @@ export const deleteObject: API.OperationMethod<
|
|
|
1763
2801
|
errors: [NoSuchBucket, InvalidRoute, NoRoute],
|
|
1764
2802
|
}));
|
|
1765
2803
|
|
|
1766
|
-
|
|
1767
2804
|
// =============================================================================
|
|
1768
2805
|
// SuperSlurperConnectivityPrecheck
|
|
1769
2806
|
// =============================================================================
|
|
@@ -1785,30 +2822,39 @@ export interface SourceSuperSlurperConnectivityPrecheckRequest {
|
|
|
1785
2822
|
region?: string | null;
|
|
1786
2823
|
}
|
|
1787
2824
|
|
|
1788
|
-
export const SourceSuperSlurperConnectivityPrecheckRequest =
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
.pipe(
|
|
2825
|
+
export const SourceSuperSlurperConnectivityPrecheckRequest =
|
|
2826
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2827
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2828
|
+
bucket: Schema.String,
|
|
2829
|
+
secret: Schema.Struct({
|
|
2830
|
+
accessKeyId: SensitiveString,
|
|
2831
|
+
secretAccessKey: SensitiveString,
|
|
2832
|
+
}),
|
|
2833
|
+
vendor: Schema.Literal("s3"),
|
|
2834
|
+
endpoint: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2835
|
+
pathPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2836
|
+
region: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2837
|
+
}).pipe(
|
|
2838
|
+
T.Http({
|
|
2839
|
+
method: "PUT",
|
|
2840
|
+
path: "/accounts/{account_id}/slurper/source/connectivity-precheck",
|
|
2841
|
+
}),
|
|
2842
|
+
) as unknown as Schema.Schema<SourceSuperSlurperConnectivityPrecheckRequest>;
|
|
1801
2843
|
|
|
1802
2844
|
export interface SourceSuperSlurperConnectivityPrecheckResponse {
|
|
1803
2845
|
connectivityStatus?: "success" | "error" | null;
|
|
1804
2846
|
}
|
|
1805
2847
|
|
|
1806
|
-
export const SourceSuperSlurperConnectivityPrecheckResponse =
|
|
1807
|
-
|
|
1808
|
-
|
|
2848
|
+
export const SourceSuperSlurperConnectivityPrecheckResponse =
|
|
2849
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2850
|
+
connectivityStatus: Schema.optional(
|
|
2851
|
+
Schema.Union([Schema.Literals(["success", "error"]), Schema.Null]),
|
|
2852
|
+
),
|
|
2853
|
+
}).pipe(
|
|
2854
|
+
T.ResponsePath("result"),
|
|
2855
|
+
) as unknown as Schema.Schema<SourceSuperSlurperConnectivityPrecheckResponse>;
|
|
1809
2856
|
|
|
1810
|
-
export type SourceSuperSlurperConnectivityPrecheckError =
|
|
1811
|
-
| DefaultErrors;
|
|
2857
|
+
export type SourceSuperSlurperConnectivityPrecheckError = DefaultErrors;
|
|
1812
2858
|
|
|
1813
2859
|
export const sourceSuperSlurperConnectivityPrecheck: API.OperationMethod<
|
|
1814
2860
|
SourceSuperSlurperConnectivityPrecheckRequest,
|
|
@@ -1834,28 +2880,39 @@ export interface TargetSuperSlurperConnectivityPrecheckRequest {
|
|
|
1834
2880
|
jurisdiction?: "default" | "eu" | "fedramp";
|
|
1835
2881
|
}
|
|
1836
2882
|
|
|
1837
|
-
export const TargetSuperSlurperConnectivityPrecheckRequest =
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
2883
|
+
export const TargetSuperSlurperConnectivityPrecheckRequest =
|
|
2884
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2885
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2886
|
+
bucket: Schema.String,
|
|
2887
|
+
secret: Schema.Struct({
|
|
2888
|
+
accessKeyId: SensitiveString,
|
|
2889
|
+
secretAccessKey: SensitiveString,
|
|
2890
|
+
}),
|
|
2891
|
+
vendor: Schema.Literal("r2"),
|
|
2892
|
+
jurisdiction: Schema.optional(
|
|
2893
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
2894
|
+
),
|
|
2895
|
+
}).pipe(
|
|
2896
|
+
T.Http({
|
|
2897
|
+
method: "PUT",
|
|
2898
|
+
path: "/accounts/{account_id}/slurper/target/connectivity-precheck",
|
|
2899
|
+
}),
|
|
2900
|
+
) as unknown as Schema.Schema<TargetSuperSlurperConnectivityPrecheckRequest>;
|
|
1848
2901
|
|
|
1849
2902
|
export interface TargetSuperSlurperConnectivityPrecheckResponse {
|
|
1850
2903
|
connectivityStatus?: "success" | "error" | null;
|
|
1851
2904
|
}
|
|
1852
2905
|
|
|
1853
|
-
export const TargetSuperSlurperConnectivityPrecheckResponse =
|
|
1854
|
-
|
|
1855
|
-
|
|
2906
|
+
export const TargetSuperSlurperConnectivityPrecheckResponse =
|
|
2907
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2908
|
+
connectivityStatus: Schema.optional(
|
|
2909
|
+
Schema.Union([Schema.Literals(["success", "error"]), Schema.Null]),
|
|
2910
|
+
),
|
|
2911
|
+
}).pipe(
|
|
2912
|
+
T.ResponsePath("result"),
|
|
2913
|
+
) as unknown as Schema.Schema<TargetSuperSlurperConnectivityPrecheckResponse>;
|
|
1856
2914
|
|
|
1857
|
-
export type TargetSuperSlurperConnectivityPrecheckError =
|
|
1858
|
-
| DefaultErrors;
|
|
2915
|
+
export type TargetSuperSlurperConnectivityPrecheckError = DefaultErrors;
|
|
1859
2916
|
|
|
1860
2917
|
export const targetSuperSlurperConnectivityPrecheck: API.OperationMethod<
|
|
1861
2918
|
TargetSuperSlurperConnectivityPrecheckRequest,
|
|
@@ -1868,7 +2925,6 @@ export const targetSuperSlurperConnectivityPrecheck: API.OperationMethod<
|
|
|
1868
2925
|
errors: [],
|
|
1869
2926
|
}));
|
|
1870
2927
|
|
|
1871
|
-
|
|
1872
2928
|
// =============================================================================
|
|
1873
2929
|
// SuperSlurperJob
|
|
1874
2930
|
// =============================================================================
|
|
@@ -1878,55 +2934,138 @@ export interface GetSuperSlurperJobRequest {
|
|
|
1878
2934
|
accountId: string;
|
|
1879
2935
|
}
|
|
1880
2936
|
|
|
1881
|
-
export const GetSuperSlurperJobRequest =
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
.pipe(
|
|
2937
|
+
export const GetSuperSlurperJobRequest =
|
|
2938
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2939
|
+
jobId: Schema.String.pipe(T.HttpPath("jobId")),
|
|
2940
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2941
|
+
}).pipe(
|
|
2942
|
+
T.Http({
|
|
2943
|
+
method: "GET",
|
|
2944
|
+
path: "/accounts/{account_id}/slurper/jobs/{jobId}",
|
|
2945
|
+
}),
|
|
2946
|
+
) as unknown as Schema.Schema<GetSuperSlurperJobRequest>;
|
|
1886
2947
|
|
|
1887
2948
|
export interface GetSuperSlurperJobResponse {
|
|
1888
2949
|
id?: string | null;
|
|
1889
2950
|
createdAt?: string | null;
|
|
1890
2951
|
finishedAt?: string | null;
|
|
1891
2952
|
overwrite?: boolean | null;
|
|
1892
|
-
source?:
|
|
2953
|
+
source?:
|
|
2954
|
+
| {
|
|
2955
|
+
bucket?: string | null;
|
|
2956
|
+
endpoint?: string | null;
|
|
2957
|
+
keys?: string[] | null;
|
|
2958
|
+
pathPrefix?: string | null;
|
|
2959
|
+
vendor?: "s3" | null;
|
|
2960
|
+
}
|
|
2961
|
+
| {
|
|
2962
|
+
bucket?: string | null;
|
|
2963
|
+
keys?: string[] | null;
|
|
2964
|
+
pathPrefix?: string | null;
|
|
2965
|
+
vendor?: "gcs" | null;
|
|
2966
|
+
}
|
|
2967
|
+
| {
|
|
2968
|
+
bucket?: string | null;
|
|
2969
|
+
jurisdiction?: "default" | "eu" | "fedramp" | null;
|
|
2970
|
+
keys?: string[] | null;
|
|
2971
|
+
pathPrefix?: string | null;
|
|
2972
|
+
vendor?: "r2" | null;
|
|
2973
|
+
}
|
|
2974
|
+
| null;
|
|
1893
2975
|
status?: "running" | "paused" | "aborted" | "completed" | null;
|
|
1894
|
-
target?: {
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
2976
|
+
target?: {
|
|
2977
|
+
bucket?: string | null;
|
|
2978
|
+
jurisdiction?: "default" | "eu" | "fedramp" | null;
|
|
2979
|
+
vendor?: "r2" | null;
|
|
2980
|
+
} | null;
|
|
2981
|
+
}
|
|
2982
|
+
|
|
2983
|
+
export const GetSuperSlurperJobResponse =
|
|
2984
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2985
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2986
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2987
|
+
finishedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2988
|
+
overwrite: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2989
|
+
source: Schema.optional(
|
|
2990
|
+
Schema.Union([
|
|
2991
|
+
Schema.Union([
|
|
2992
|
+
Schema.Struct({
|
|
2993
|
+
bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2994
|
+
endpoint: Schema.optional(
|
|
2995
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2996
|
+
),
|
|
2997
|
+
keys: Schema.optional(
|
|
2998
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
2999
|
+
),
|
|
3000
|
+
pathPrefix: Schema.optional(
|
|
3001
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3002
|
+
),
|
|
3003
|
+
vendor: Schema.optional(
|
|
3004
|
+
Schema.Union([Schema.Literal("s3"), Schema.Null]),
|
|
3005
|
+
),
|
|
3006
|
+
}),
|
|
3007
|
+
Schema.Struct({
|
|
3008
|
+
bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3009
|
+
keys: Schema.optional(
|
|
3010
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
3011
|
+
),
|
|
3012
|
+
pathPrefix: Schema.optional(
|
|
3013
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3014
|
+
),
|
|
3015
|
+
vendor: Schema.optional(
|
|
3016
|
+
Schema.Union([Schema.Literal("gcs"), Schema.Null]),
|
|
3017
|
+
),
|
|
3018
|
+
}),
|
|
3019
|
+
Schema.Struct({
|
|
3020
|
+
bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3021
|
+
jurisdiction: Schema.optional(
|
|
3022
|
+
Schema.Union([
|
|
3023
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
3024
|
+
Schema.Null,
|
|
3025
|
+
]),
|
|
3026
|
+
),
|
|
3027
|
+
keys: Schema.optional(
|
|
3028
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
3029
|
+
),
|
|
3030
|
+
pathPrefix: Schema.optional(
|
|
3031
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3032
|
+
),
|
|
3033
|
+
vendor: Schema.optional(
|
|
3034
|
+
Schema.Union([Schema.Literal("r2"), Schema.Null]),
|
|
3035
|
+
),
|
|
3036
|
+
}),
|
|
3037
|
+
]),
|
|
3038
|
+
Schema.Null,
|
|
3039
|
+
]),
|
|
3040
|
+
),
|
|
3041
|
+
status: Schema.optional(
|
|
3042
|
+
Schema.Union([
|
|
3043
|
+
Schema.Literals(["running", "paused", "aborted", "completed"]),
|
|
3044
|
+
Schema.Null,
|
|
3045
|
+
]),
|
|
3046
|
+
),
|
|
3047
|
+
target: Schema.optional(
|
|
3048
|
+
Schema.Union([
|
|
3049
|
+
Schema.Struct({
|
|
3050
|
+
bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3051
|
+
jurisdiction: Schema.optional(
|
|
3052
|
+
Schema.Union([
|
|
3053
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
3054
|
+
Schema.Null,
|
|
3055
|
+
]),
|
|
3056
|
+
),
|
|
3057
|
+
vendor: Schema.optional(
|
|
3058
|
+
Schema.Union([Schema.Literal("r2"), Schema.Null]),
|
|
3059
|
+
),
|
|
3060
|
+
}),
|
|
3061
|
+
Schema.Null,
|
|
3062
|
+
]),
|
|
3063
|
+
),
|
|
3064
|
+
}).pipe(
|
|
3065
|
+
T.ResponsePath("result"),
|
|
3066
|
+
) as unknown as Schema.Schema<GetSuperSlurperJobResponse>;
|
|
3067
|
+
|
|
3068
|
+
export type GetSuperSlurperJobError = DefaultErrors;
|
|
1930
3069
|
|
|
1931
3070
|
export const getSuperSlurperJob: API.OperationMethod<
|
|
1932
3071
|
GetSuperSlurperJobRequest,
|
|
@@ -1948,52 +3087,148 @@ export interface ListSuperSlurperJobsRequest {
|
|
|
1948
3087
|
offset?: number;
|
|
1949
3088
|
}
|
|
1950
3089
|
|
|
1951
|
-
export const ListSuperSlurperJobsRequest =
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
.pipe(
|
|
3090
|
+
export const ListSuperSlurperJobsRequest =
|
|
3091
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3092
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3093
|
+
limit: Schema.optional(Schema.Number).pipe(T.HttpQuery("limit")),
|
|
3094
|
+
offset: Schema.optional(Schema.Number).pipe(T.HttpQuery("offset")),
|
|
3095
|
+
}).pipe(
|
|
3096
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/slurper/jobs" }),
|
|
3097
|
+
) as unknown as Schema.Schema<ListSuperSlurperJobsRequest>;
|
|
1957
3098
|
|
|
1958
3099
|
export interface ListSuperSlurperJobsResponse {
|
|
1959
|
-
result:
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
}
|
|
1993
|
-
}
|
|
1994
|
-
|
|
1995
|
-
export
|
|
1996
|
-
|
|
3100
|
+
result: {
|
|
3101
|
+
id?: string | null;
|
|
3102
|
+
createdAt?: string | null;
|
|
3103
|
+
finishedAt?: string | null;
|
|
3104
|
+
overwrite?: boolean | null;
|
|
3105
|
+
source?:
|
|
3106
|
+
| {
|
|
3107
|
+
bucket?: string | null;
|
|
3108
|
+
endpoint?: string | null;
|
|
3109
|
+
keys?: string[] | null;
|
|
3110
|
+
pathPrefix?: string | null;
|
|
3111
|
+
vendor?: "s3" | null;
|
|
3112
|
+
}
|
|
3113
|
+
| {
|
|
3114
|
+
bucket?: string | null;
|
|
3115
|
+
keys?: string[] | null;
|
|
3116
|
+
pathPrefix?: string | null;
|
|
3117
|
+
vendor?: "gcs" | null;
|
|
3118
|
+
}
|
|
3119
|
+
| {
|
|
3120
|
+
bucket?: string | null;
|
|
3121
|
+
jurisdiction?: "default" | "eu" | "fedramp" | null;
|
|
3122
|
+
keys?: string[] | null;
|
|
3123
|
+
pathPrefix?: string | null;
|
|
3124
|
+
vendor?: "r2" | null;
|
|
3125
|
+
}
|
|
3126
|
+
| null;
|
|
3127
|
+
status?: "running" | "paused" | "aborted" | "completed" | null;
|
|
3128
|
+
target?: {
|
|
3129
|
+
bucket?: string | null;
|
|
3130
|
+
jurisdiction?: "default" | "eu" | "fedramp" | null;
|
|
3131
|
+
vendor?: "r2" | null;
|
|
3132
|
+
} | null;
|
|
3133
|
+
}[];
|
|
3134
|
+
}
|
|
3135
|
+
|
|
3136
|
+
export const ListSuperSlurperJobsResponse =
|
|
3137
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3138
|
+
result: Schema.Array(
|
|
3139
|
+
Schema.Struct({
|
|
3140
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3141
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3142
|
+
finishedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3143
|
+
overwrite: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
3144
|
+
source: Schema.optional(
|
|
3145
|
+
Schema.Union([
|
|
3146
|
+
Schema.Union([
|
|
3147
|
+
Schema.Struct({
|
|
3148
|
+
bucket: Schema.optional(
|
|
3149
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3150
|
+
),
|
|
3151
|
+
endpoint: Schema.optional(
|
|
3152
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3153
|
+
),
|
|
3154
|
+
keys: Schema.optional(
|
|
3155
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
3156
|
+
),
|
|
3157
|
+
pathPrefix: Schema.optional(
|
|
3158
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3159
|
+
),
|
|
3160
|
+
vendor: Schema.optional(
|
|
3161
|
+
Schema.Union([Schema.Literal("s3"), Schema.Null]),
|
|
3162
|
+
),
|
|
3163
|
+
}),
|
|
3164
|
+
Schema.Struct({
|
|
3165
|
+
bucket: Schema.optional(
|
|
3166
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3167
|
+
),
|
|
3168
|
+
keys: Schema.optional(
|
|
3169
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
3170
|
+
),
|
|
3171
|
+
pathPrefix: Schema.optional(
|
|
3172
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3173
|
+
),
|
|
3174
|
+
vendor: Schema.optional(
|
|
3175
|
+
Schema.Union([Schema.Literal("gcs"), Schema.Null]),
|
|
3176
|
+
),
|
|
3177
|
+
}),
|
|
3178
|
+
Schema.Struct({
|
|
3179
|
+
bucket: Schema.optional(
|
|
3180
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3181
|
+
),
|
|
3182
|
+
jurisdiction: Schema.optional(
|
|
3183
|
+
Schema.Union([
|
|
3184
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
3185
|
+
Schema.Null,
|
|
3186
|
+
]),
|
|
3187
|
+
),
|
|
3188
|
+
keys: Schema.optional(
|
|
3189
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
3190
|
+
),
|
|
3191
|
+
pathPrefix: Schema.optional(
|
|
3192
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3193
|
+
),
|
|
3194
|
+
vendor: Schema.optional(
|
|
3195
|
+
Schema.Union([Schema.Literal("r2"), Schema.Null]),
|
|
3196
|
+
),
|
|
3197
|
+
}),
|
|
3198
|
+
]),
|
|
3199
|
+
Schema.Null,
|
|
3200
|
+
]),
|
|
3201
|
+
),
|
|
3202
|
+
status: Schema.optional(
|
|
3203
|
+
Schema.Union([
|
|
3204
|
+
Schema.Literals(["running", "paused", "aborted", "completed"]),
|
|
3205
|
+
Schema.Null,
|
|
3206
|
+
]),
|
|
3207
|
+
),
|
|
3208
|
+
target: Schema.optional(
|
|
3209
|
+
Schema.Union([
|
|
3210
|
+
Schema.Struct({
|
|
3211
|
+
bucket: Schema.optional(
|
|
3212
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3213
|
+
),
|
|
3214
|
+
jurisdiction: Schema.optional(
|
|
3215
|
+
Schema.Union([
|
|
3216
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
3217
|
+
Schema.Null,
|
|
3218
|
+
]),
|
|
3219
|
+
),
|
|
3220
|
+
vendor: Schema.optional(
|
|
3221
|
+
Schema.Union([Schema.Literal("r2"), Schema.Null]),
|
|
3222
|
+
),
|
|
3223
|
+
}),
|
|
3224
|
+
Schema.Null,
|
|
3225
|
+
]),
|
|
3226
|
+
),
|
|
3227
|
+
}),
|
|
3228
|
+
),
|
|
3229
|
+
}) as unknown as Schema.Schema<ListSuperSlurperJobsResponse>;
|
|
3230
|
+
|
|
3231
|
+
export type ListSuperSlurperJobsError = DefaultErrors;
|
|
1997
3232
|
|
|
1998
3233
|
export const listSuperSlurperJobs: API.PaginatedOperationMethod<
|
|
1999
3234
|
ListSuperSlurperJobsRequest,
|
|
@@ -2016,64 +3251,112 @@ export interface CreateSuperSlurperJobRequest {
|
|
|
2016
3251
|
/** Body param: */
|
|
2017
3252
|
overwrite?: boolean;
|
|
2018
3253
|
/** Body param: */
|
|
2019
|
-
source?:
|
|
3254
|
+
source?:
|
|
3255
|
+
| {
|
|
3256
|
+
bucket: string;
|
|
3257
|
+
secret: { accessKeyId: string; secretAccessKey: string };
|
|
3258
|
+
vendor: "s3";
|
|
3259
|
+
endpoint?: string | null;
|
|
3260
|
+
pathPrefix?: string | null;
|
|
3261
|
+
region?: string | null;
|
|
3262
|
+
}
|
|
3263
|
+
| {
|
|
3264
|
+
bucket: string;
|
|
3265
|
+
secret: { clientEmail: string; privateKey: string };
|
|
3266
|
+
vendor: "gcs";
|
|
3267
|
+
pathPrefix?: string | null;
|
|
3268
|
+
}
|
|
3269
|
+
| {
|
|
3270
|
+
bucket: string;
|
|
3271
|
+
secret: { accessKeyId: string; secretAccessKey: string };
|
|
3272
|
+
vendor: "r2";
|
|
3273
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
3274
|
+
pathPrefix?: string | null;
|
|
3275
|
+
};
|
|
2020
3276
|
/** Body param: */
|
|
2021
|
-
target?: {
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
})
|
|
2065
|
-
|
|
3277
|
+
target?: {
|
|
3278
|
+
bucket: string;
|
|
3279
|
+
secret: { accessKeyId: string; secretAccessKey: string };
|
|
3280
|
+
vendor: "r2";
|
|
3281
|
+
jurisdiction?: "default" | "eu" | "fedramp";
|
|
3282
|
+
};
|
|
3283
|
+
}
|
|
3284
|
+
|
|
3285
|
+
export const CreateSuperSlurperJobRequest =
|
|
3286
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3287
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3288
|
+
overwrite: Schema.optional(Schema.Boolean),
|
|
3289
|
+
source: Schema.optional(
|
|
3290
|
+
Schema.Union([
|
|
3291
|
+
Schema.Struct({
|
|
3292
|
+
bucket: Schema.String,
|
|
3293
|
+
secret: Schema.Struct({
|
|
3294
|
+
accessKeyId: SensitiveString,
|
|
3295
|
+
secretAccessKey: SensitiveString,
|
|
3296
|
+
}),
|
|
3297
|
+
vendor: Schema.Literal("s3"),
|
|
3298
|
+
endpoint: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3299
|
+
pathPrefix: Schema.optional(
|
|
3300
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3301
|
+
),
|
|
3302
|
+
region: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3303
|
+
}),
|
|
3304
|
+
Schema.Struct({
|
|
3305
|
+
bucket: Schema.String,
|
|
3306
|
+
secret: Schema.Struct({
|
|
3307
|
+
clientEmail: Schema.String,
|
|
3308
|
+
privateKey: SensitiveString,
|
|
3309
|
+
}),
|
|
3310
|
+
vendor: Schema.Literal("gcs"),
|
|
3311
|
+
pathPrefix: Schema.optional(
|
|
3312
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3313
|
+
),
|
|
3314
|
+
}),
|
|
3315
|
+
Schema.Struct({
|
|
3316
|
+
bucket: Schema.String,
|
|
3317
|
+
secret: Schema.Struct({
|
|
3318
|
+
accessKeyId: SensitiveString,
|
|
3319
|
+
secretAccessKey: SensitiveString,
|
|
3320
|
+
}),
|
|
3321
|
+
vendor: Schema.Literal("r2"),
|
|
3322
|
+
jurisdiction: Schema.optional(
|
|
3323
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
3324
|
+
),
|
|
3325
|
+
pathPrefix: Schema.optional(
|
|
3326
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3327
|
+
),
|
|
3328
|
+
}),
|
|
3329
|
+
]),
|
|
3330
|
+
),
|
|
3331
|
+
target: Schema.optional(
|
|
3332
|
+
Schema.Struct({
|
|
3333
|
+
bucket: Schema.String,
|
|
3334
|
+
secret: Schema.Struct({
|
|
3335
|
+
accessKeyId: SensitiveString,
|
|
3336
|
+
secretAccessKey: SensitiveString,
|
|
3337
|
+
}),
|
|
3338
|
+
vendor: Schema.Literal("r2"),
|
|
3339
|
+
jurisdiction: Schema.optional(
|
|
3340
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
3341
|
+
),
|
|
3342
|
+
}),
|
|
3343
|
+
),
|
|
3344
|
+
}).pipe(
|
|
3345
|
+
T.Http({ method: "POST", path: "/accounts/{account_id}/slurper/jobs" }),
|
|
3346
|
+
) as unknown as Schema.Schema<CreateSuperSlurperJobRequest>;
|
|
2066
3347
|
|
|
2067
3348
|
export interface CreateSuperSlurperJobResponse {
|
|
2068
3349
|
id?: string | null;
|
|
2069
3350
|
}
|
|
2070
3351
|
|
|
2071
|
-
export const CreateSuperSlurperJobResponse =
|
|
2072
|
-
|
|
2073
|
-
|
|
3352
|
+
export const CreateSuperSlurperJobResponse =
|
|
3353
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3354
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3355
|
+
}).pipe(
|
|
3356
|
+
T.ResponsePath("result"),
|
|
3357
|
+
) as unknown as Schema.Schema<CreateSuperSlurperJobResponse>;
|
|
2074
3358
|
|
|
2075
|
-
export type CreateSuperSlurperJobError =
|
|
2076
|
-
| DefaultErrors;
|
|
3359
|
+
export type CreateSuperSlurperJobError = DefaultErrors;
|
|
2077
3360
|
|
|
2078
3361
|
export const createSuperSlurperJob: API.OperationMethod<
|
|
2079
3362
|
CreateSuperSlurperJobRequest,
|
|
@@ -2091,18 +3374,25 @@ export interface AbortSuperSlurperJobRequest {
|
|
|
2091
3374
|
accountId: string;
|
|
2092
3375
|
}
|
|
2093
3376
|
|
|
2094
|
-
export const AbortSuperSlurperJobRequest =
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
.pipe(
|
|
3377
|
+
export const AbortSuperSlurperJobRequest =
|
|
3378
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3379
|
+
jobId: Schema.String.pipe(T.HttpPath("jobId")),
|
|
3380
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3381
|
+
}).pipe(
|
|
3382
|
+
T.Http({
|
|
3383
|
+
method: "PUT",
|
|
3384
|
+
path: "/accounts/{account_id}/slurper/jobs/{jobId}/abort",
|
|
3385
|
+
}),
|
|
3386
|
+
) as unknown as Schema.Schema<AbortSuperSlurperJobRequest>;
|
|
2099
3387
|
|
|
2100
3388
|
export type AbortSuperSlurperJobResponse = string;
|
|
2101
3389
|
|
|
2102
|
-
export const AbortSuperSlurperJobResponse =
|
|
3390
|
+
export const AbortSuperSlurperJobResponse =
|
|
3391
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(
|
|
3392
|
+
T.ResponsePath("result"),
|
|
3393
|
+
) as unknown as Schema.Schema<AbortSuperSlurperJobResponse>;
|
|
2103
3394
|
|
|
2104
|
-
export type AbortSuperSlurperJobError =
|
|
2105
|
-
| DefaultErrors;
|
|
3395
|
+
export type AbortSuperSlurperJobError = DefaultErrors;
|
|
2106
3396
|
|
|
2107
3397
|
export const abortSuperSlurperJob: API.OperationMethod<
|
|
2108
3398
|
AbortSuperSlurperJobRequest,
|
|
@@ -2120,18 +3410,25 @@ export interface PauseSuperSlurperJobRequest {
|
|
|
2120
3410
|
accountId: string;
|
|
2121
3411
|
}
|
|
2122
3412
|
|
|
2123
|
-
export const PauseSuperSlurperJobRequest =
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
.pipe(
|
|
3413
|
+
export const PauseSuperSlurperJobRequest =
|
|
3414
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3415
|
+
jobId: Schema.String.pipe(T.HttpPath("jobId")),
|
|
3416
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3417
|
+
}).pipe(
|
|
3418
|
+
T.Http({
|
|
3419
|
+
method: "PUT",
|
|
3420
|
+
path: "/accounts/{account_id}/slurper/jobs/{jobId}/pause",
|
|
3421
|
+
}),
|
|
3422
|
+
) as unknown as Schema.Schema<PauseSuperSlurperJobRequest>;
|
|
2128
3423
|
|
|
2129
3424
|
export type PauseSuperSlurperJobResponse = string;
|
|
2130
3425
|
|
|
2131
|
-
export const PauseSuperSlurperJobResponse =
|
|
3426
|
+
export const PauseSuperSlurperJobResponse =
|
|
3427
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(
|
|
3428
|
+
T.ResponsePath("result"),
|
|
3429
|
+
) as unknown as Schema.Schema<PauseSuperSlurperJobResponse>;
|
|
2132
3430
|
|
|
2133
|
-
export type PauseSuperSlurperJobError =
|
|
2134
|
-
| DefaultErrors;
|
|
3431
|
+
export type PauseSuperSlurperJobError = DefaultErrors;
|
|
2135
3432
|
|
|
2136
3433
|
export const pauseSuperSlurperJob: API.OperationMethod<
|
|
2137
3434
|
PauseSuperSlurperJobRequest,
|
|
@@ -2149,11 +3446,16 @@ export interface ProgressSuperSlurperJobRequest {
|
|
|
2149
3446
|
accountId: string;
|
|
2150
3447
|
}
|
|
2151
3448
|
|
|
2152
|
-
export const ProgressSuperSlurperJobRequest =
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
.pipe(
|
|
3449
|
+
export const ProgressSuperSlurperJobRequest =
|
|
3450
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3451
|
+
jobId: Schema.String.pipe(T.HttpPath("jobId")),
|
|
3452
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3453
|
+
}).pipe(
|
|
3454
|
+
T.Http({
|
|
3455
|
+
method: "GET",
|
|
3456
|
+
path: "/accounts/{account_id}/slurper/jobs/{jobId}/progress",
|
|
3457
|
+
}),
|
|
3458
|
+
) as unknown as Schema.Schema<ProgressSuperSlurperJobRequest>;
|
|
2157
3459
|
|
|
2158
3460
|
export interface ProgressSuperSlurperJobResponse {
|
|
2159
3461
|
id?: string | null;
|
|
@@ -2165,18 +3467,27 @@ export interface ProgressSuperSlurperJobResponse {
|
|
|
2165
3467
|
transferredObjects?: number | null;
|
|
2166
3468
|
}
|
|
2167
3469
|
|
|
2168
|
-
export const ProgressSuperSlurperJobResponse =
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
3470
|
+
export const ProgressSuperSlurperJobResponse =
|
|
3471
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3472
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3473
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3474
|
+
failedObjects: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3475
|
+
objects: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3476
|
+
skippedObjects: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3477
|
+
status: Schema.optional(
|
|
3478
|
+
Schema.Union([
|
|
3479
|
+
Schema.Literals(["running", "paused", "aborted", "completed"]),
|
|
3480
|
+
Schema.Null,
|
|
3481
|
+
]),
|
|
3482
|
+
),
|
|
3483
|
+
transferredObjects: Schema.optional(
|
|
3484
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
3485
|
+
),
|
|
3486
|
+
}).pipe(
|
|
3487
|
+
T.ResponsePath("result"),
|
|
3488
|
+
) as unknown as Schema.Schema<ProgressSuperSlurperJobResponse>;
|
|
3489
|
+
|
|
3490
|
+
export type ProgressSuperSlurperJobError = DefaultErrors;
|
|
2180
3491
|
|
|
2181
3492
|
export const progressSuperSlurperJob: API.OperationMethod<
|
|
2182
3493
|
ProgressSuperSlurperJobRequest,
|
|
@@ -2194,18 +3505,25 @@ export interface ResumeSuperSlurperJobRequest {
|
|
|
2194
3505
|
accountId: string;
|
|
2195
3506
|
}
|
|
2196
3507
|
|
|
2197
|
-
export const ResumeSuperSlurperJobRequest =
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
.pipe(
|
|
3508
|
+
export const ResumeSuperSlurperJobRequest =
|
|
3509
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3510
|
+
jobId: Schema.String.pipe(T.HttpPath("jobId")),
|
|
3511
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3512
|
+
}).pipe(
|
|
3513
|
+
T.Http({
|
|
3514
|
+
method: "PUT",
|
|
3515
|
+
path: "/accounts/{account_id}/slurper/jobs/{jobId}/resume",
|
|
3516
|
+
}),
|
|
3517
|
+
) as unknown as Schema.Schema<ResumeSuperSlurperJobRequest>;
|
|
2202
3518
|
|
|
2203
3519
|
export type ResumeSuperSlurperJobResponse = string;
|
|
2204
3520
|
|
|
2205
|
-
export const ResumeSuperSlurperJobResponse =
|
|
3521
|
+
export const ResumeSuperSlurperJobResponse =
|
|
3522
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(
|
|
3523
|
+
T.ResponsePath("result"),
|
|
3524
|
+
) as unknown as Schema.Schema<ResumeSuperSlurperJobResponse>;
|
|
2206
3525
|
|
|
2207
|
-
export type ResumeSuperSlurperJobError =
|
|
2208
|
-
| DefaultErrors;
|
|
3526
|
+
export type ResumeSuperSlurperJobError = DefaultErrors;
|
|
2209
3527
|
|
|
2210
3528
|
export const resumeSuperSlurperJob: API.OperationMethod<
|
|
2211
3529
|
ResumeSuperSlurperJobRequest,
|
|
@@ -2218,7 +3536,6 @@ export const resumeSuperSlurperJob: API.OperationMethod<
|
|
|
2218
3536
|
errors: [],
|
|
2219
3537
|
}));
|
|
2220
3538
|
|
|
2221
|
-
|
|
2222
3539
|
// =============================================================================
|
|
2223
3540
|
// SuperSlurperJobLog
|
|
2224
3541
|
// =============================================================================
|
|
@@ -2233,30 +3550,80 @@ export interface ListSuperSlurperJobLogsRequest {
|
|
|
2233
3550
|
offset?: number;
|
|
2234
3551
|
}
|
|
2235
3552
|
|
|
2236
|
-
export const ListSuperSlurperJobLogsRequest =
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
.pipe(
|
|
3553
|
+
export const ListSuperSlurperJobLogsRequest =
|
|
3554
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3555
|
+
jobId: Schema.String.pipe(T.HttpPath("jobId")),
|
|
3556
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3557
|
+
limit: Schema.optional(Schema.Number).pipe(T.HttpQuery("limit")),
|
|
3558
|
+
offset: Schema.optional(Schema.Number).pipe(T.HttpQuery("offset")),
|
|
3559
|
+
}).pipe(
|
|
3560
|
+
T.Http({
|
|
3561
|
+
method: "GET",
|
|
3562
|
+
path: "/accounts/{account_id}/slurper/jobs/{jobId}/logs",
|
|
3563
|
+
}),
|
|
3564
|
+
) as unknown as Schema.Schema<ListSuperSlurperJobLogsRequest>;
|
|
2243
3565
|
|
|
2244
3566
|
export interface ListSuperSlurperJobLogsResponse {
|
|
2245
|
-
result:
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
3567
|
+
result: {
|
|
3568
|
+
createdAt?: string | null;
|
|
3569
|
+
job?: string | null;
|
|
3570
|
+
logType?:
|
|
3571
|
+
| "migrationStart"
|
|
3572
|
+
| "migrationComplete"
|
|
3573
|
+
| "migrationAbort"
|
|
3574
|
+
| "migrationError"
|
|
3575
|
+
| "migrationPause"
|
|
3576
|
+
| "migrationResume"
|
|
3577
|
+
| "migrationErrorFailedContinuation"
|
|
3578
|
+
| "importErrorRetryExhaustion"
|
|
3579
|
+
| "importSkippedStorageClass"
|
|
3580
|
+
| "importSkippedOversized"
|
|
3581
|
+
| "importSkippedEmptyObject"
|
|
3582
|
+
| "importSkippedUnsupportedContentType"
|
|
3583
|
+
| "importSkippedExcludedContentType"
|
|
3584
|
+
| "importSkippedInvalidMedia"
|
|
3585
|
+
| "importSkippedRequiresRetrieval"
|
|
3586
|
+
| null;
|
|
3587
|
+
message?: string | null;
|
|
3588
|
+
objectKey?: string | null;
|
|
3589
|
+
}[];
|
|
3590
|
+
}
|
|
3591
|
+
|
|
3592
|
+
export const ListSuperSlurperJobLogsResponse =
|
|
3593
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3594
|
+
result: Schema.Array(
|
|
3595
|
+
Schema.Struct({
|
|
3596
|
+
createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3597
|
+
job: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3598
|
+
logType: Schema.optional(
|
|
3599
|
+
Schema.Union([
|
|
3600
|
+
Schema.Literals([
|
|
3601
|
+
"migrationStart",
|
|
3602
|
+
"migrationComplete",
|
|
3603
|
+
"migrationAbort",
|
|
3604
|
+
"migrationError",
|
|
3605
|
+
"migrationPause",
|
|
3606
|
+
"migrationResume",
|
|
3607
|
+
"migrationErrorFailedContinuation",
|
|
3608
|
+
"importErrorRetryExhaustion",
|
|
3609
|
+
"importSkippedStorageClass",
|
|
3610
|
+
"importSkippedOversized",
|
|
3611
|
+
"importSkippedEmptyObject",
|
|
3612
|
+
"importSkippedUnsupportedContentType",
|
|
3613
|
+
"importSkippedExcludedContentType",
|
|
3614
|
+
"importSkippedInvalidMedia",
|
|
3615
|
+
"importSkippedRequiresRetrieval",
|
|
3616
|
+
]),
|
|
3617
|
+
Schema.Null,
|
|
3618
|
+
]),
|
|
3619
|
+
),
|
|
3620
|
+
message: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3621
|
+
objectKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3622
|
+
}),
|
|
3623
|
+
),
|
|
3624
|
+
}) as unknown as Schema.Schema<ListSuperSlurperJobLogsResponse>;
|
|
3625
|
+
|
|
3626
|
+
export type ListSuperSlurperJobLogsError = DefaultErrors;
|
|
2260
3627
|
|
|
2261
3628
|
export const listSuperSlurperJobLogs: API.PaginatedOperationMethod<
|
|
2262
3629
|
ListSuperSlurperJobLogsRequest,
|
|
@@ -2273,7 +3640,6 @@ export const listSuperSlurperJobLogs: API.PaginatedOperationMethod<
|
|
|
2273
3640
|
} as const,
|
|
2274
3641
|
}));
|
|
2275
3642
|
|
|
2276
|
-
|
|
2277
3643
|
// =============================================================================
|
|
2278
3644
|
// TemporaryCredential
|
|
2279
3645
|
// =============================================================================
|
|
@@ -2286,7 +3652,11 @@ export interface CreateTemporaryCredentialRequest {
|
|
|
2286
3652
|
/** Body param: The parent access key id to use for signing. */
|
|
2287
3653
|
parentAccessKeyId: string;
|
|
2288
3654
|
/** Body param: Permissions allowed on the credentials. */
|
|
2289
|
-
permission:
|
|
3655
|
+
permission:
|
|
3656
|
+
| "admin-read-write"
|
|
3657
|
+
| "admin-read-only"
|
|
3658
|
+
| "object-read-write"
|
|
3659
|
+
| "object-read-only";
|
|
2290
3660
|
/** Body param: How long the credentials will live for in seconds. */
|
|
2291
3661
|
ttlSeconds: number;
|
|
2292
3662
|
/** Body param: Optional object paths to scope the credentials to. */
|
|
@@ -2295,16 +3665,26 @@ export interface CreateTemporaryCredentialRequest {
|
|
|
2295
3665
|
prefixes?: string[];
|
|
2296
3666
|
}
|
|
2297
3667
|
|
|
2298
|
-
export const CreateTemporaryCredentialRequest =
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
3668
|
+
export const CreateTemporaryCredentialRequest =
|
|
3669
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3670
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3671
|
+
bucket: Schema.String,
|
|
3672
|
+
parentAccessKeyId: Schema.String,
|
|
3673
|
+
permission: Schema.Literals([
|
|
3674
|
+
"admin-read-write",
|
|
3675
|
+
"admin-read-only",
|
|
3676
|
+
"object-read-write",
|
|
3677
|
+
"object-read-only",
|
|
3678
|
+
]),
|
|
3679
|
+
ttlSeconds: Schema.Number,
|
|
3680
|
+
objects: Schema.optional(Schema.Array(Schema.String)),
|
|
3681
|
+
prefixes: Schema.optional(Schema.Array(Schema.String)),
|
|
3682
|
+
}).pipe(
|
|
3683
|
+
T.Http({
|
|
3684
|
+
method: "POST",
|
|
3685
|
+
path: "/accounts/{account_id}/r2/temp-access-credentials",
|
|
3686
|
+
}),
|
|
3687
|
+
) as unknown as Schema.Schema<CreateTemporaryCredentialRequest>;
|
|
2308
3688
|
|
|
2309
3689
|
export interface CreateTemporaryCredentialResponse {
|
|
2310
3690
|
/** ID for new access key. */
|
|
@@ -2315,14 +3695,18 @@ export interface CreateTemporaryCredentialResponse {
|
|
|
2315
3695
|
sessionToken?: string | null;
|
|
2316
3696
|
}
|
|
2317
3697
|
|
|
2318
|
-
export const CreateTemporaryCredentialResponse =
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
3698
|
+
export const CreateTemporaryCredentialResponse =
|
|
3699
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3700
|
+
accessKeyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3701
|
+
secretAccessKey: Schema.optional(
|
|
3702
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3703
|
+
),
|
|
3704
|
+
sessionToken: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3705
|
+
}).pipe(
|
|
3706
|
+
T.ResponsePath("result"),
|
|
3707
|
+
) as unknown as Schema.Schema<CreateTemporaryCredentialResponse>;
|
|
2323
3708
|
|
|
2324
|
-
export type CreateTemporaryCredentialError =
|
|
2325
|
-
| DefaultErrors;
|
|
3709
|
+
export type CreateTemporaryCredentialError = DefaultErrors;
|
|
2326
3710
|
|
|
2327
3711
|
export const createTemporaryCredential: API.OperationMethod<
|
|
2328
3712
|
CreateTemporaryCredentialRequest,
|