@distilled.cloud/cloudflare 0.18.2 → 0.19.1
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/schemas.d.ts +7 -8
- package/lib/schemas.d.ts.map +1 -1
- package/lib/schemas.js +9 -12
- package/lib/schemas.js.map +1 -1
- package/lib/services/abuse-reports.d.ts +4 -4
- package/lib/services/abuse-reports.d.ts.map +1 -1
- package/lib/services/abuse-reports.js +28 -22
- package/lib/services/abuse-reports.js.map +1 -1
- package/lib/services/accounts.d.ts +10 -10
- package/lib/services/accounts.d.ts.map +1 -1
- package/lib/services/accounts.js +67 -52
- package/lib/services/accounts.js.map +1 -1
- package/lib/services/ai-gateway.d.ts +10 -10
- package/lib/services/ai-gateway.d.ts.map +1 -1
- package/lib/services/ai-gateway.js +70 -55
- package/lib/services/ai-gateway.js.map +1 -1
- package/lib/services/ai.d.ts +2 -2
- package/lib/services/ai.d.ts.map +1 -1
- package/lib/services/ai.js +14 -11
- package/lib/services/ai.js.map +1 -1
- package/lib/services/alerting.d.ts +2 -2
- package/lib/services/alerting.d.ts.map +1 -1
- package/lib/services/alerting.js +14 -11
- package/lib/services/alerting.js.map +1 -1
- package/lib/services/api-gateway.d.ts +10 -10
- package/lib/services/api-gateway.d.ts.map +1 -1
- package/lib/services/api-gateway.js +70 -55
- package/lib/services/api-gateway.js.map +1 -1
- package/lib/services/audit-logs.d.ts +2 -2
- package/lib/services/audit-logs.d.ts.map +1 -1
- package/lib/services/audit-logs.js +14 -11
- package/lib/services/audit-logs.js.map +1 -1
- package/lib/services/client-certificates.d.ts +2 -2
- package/lib/services/client-certificates.d.ts.map +1 -1
- package/lib/services/client-certificates.js +14 -11
- package/lib/services/client-certificates.js.map +1 -1
- package/lib/services/custom-certificates.d.ts +2 -2
- package/lib/services/custom-certificates.d.ts.map +1 -1
- package/lib/services/custom-certificates.js +14 -11
- package/lib/services/custom-certificates.js.map +1 -1
- package/lib/services/custom-hostnames.d.ts +2 -2
- package/lib/services/custom-hostnames.d.ts.map +1 -1
- package/lib/services/custom-hostnames.js +14 -11
- package/lib/services/custom-hostnames.js.map +1 -1
- package/lib/services/custom-pages.d.ts +40 -13
- package/lib/services/custom-pages.d.ts.map +1 -1
- package/lib/services/custom-pages.js +68 -15
- package/lib/services/custom-pages.js.map +1 -1
- package/lib/services/d1.d.ts +2 -2
- package/lib/services/d1.d.ts.map +1 -1
- package/lib/services/d1.js +14 -11
- package/lib/services/d1.js.map +1 -1
- package/lib/services/dns-firewall.d.ts +2 -2
- package/lib/services/dns-firewall.d.ts.map +1 -1
- package/lib/services/dns-firewall.js +14 -11
- package/lib/services/dns-firewall.js.map +1 -1
- package/lib/services/dns.d.ts +4 -4
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +28 -22
- package/lib/services/dns.js.map +1 -1
- package/lib/services/durable-objects.d.ts +4 -4
- package/lib/services/durable-objects.d.ts.map +1 -1
- package/lib/services/durable-objects.js +25 -19
- package/lib/services/durable-objects.js.map +1 -1
- package/lib/services/email-routing.d.ts +4 -4
- package/lib/services/email-routing.d.ts.map +1 -1
- package/lib/services/email-routing.js +28 -22
- package/lib/services/email-routing.js.map +1 -1
- package/lib/services/email-security.d.ts +14 -14
- package/lib/services/email-security.d.ts.map +1 -1
- package/lib/services/email-security.js +98 -77
- package/lib/services/email-security.js.map +1 -1
- package/lib/services/filters.d.ts +2 -2
- package/lib/services/filters.d.ts.map +1 -1
- package/lib/services/filters.js +14 -11
- package/lib/services/filters.js.map +1 -1
- package/lib/services/firewall.d.ts +82 -39
- package/lib/services/firewall.d.ts.map +1 -1
- package/lib/services/firewall.js +232 -114
- package/lib/services/firewall.js.map +1 -1
- package/lib/services/healthchecks.d.ts +2 -2
- package/lib/services/healthchecks.d.ts.map +1 -1
- package/lib/services/healthchecks.js +14 -11
- package/lib/services/healthchecks.js.map +1 -1
- package/lib/services/images.d.ts +2 -2
- package/lib/services/images.d.ts.map +1 -1
- package/lib/services/images.js +14 -11
- package/lib/services/images.js.map +1 -1
- package/lib/services/intel.d.ts +6 -4
- package/lib/services/intel.d.ts.map +1 -1
- package/lib/services/intel.js +30 -22
- package/lib/services/intel.js.map +1 -1
- package/lib/services/kv.d.ts +4 -4
- package/lib/services/kv.d.ts.map +1 -1
- package/lib/services/kv.js +25 -19
- package/lib/services/kv.js.map +1 -1
- package/lib/services/load-balancers.d.ts +2 -2
- package/lib/services/load-balancers.d.ts.map +1 -1
- package/lib/services/load-balancers.js +14 -11
- package/lib/services/load-balancers.js.map +1 -1
- package/lib/services/logpush.d.ts +157 -64
- package/lib/services/logpush.d.ts.map +1 -1
- package/lib/services/logpush.js +292 -63
- package/lib/services/logpush.js.map +1 -1
- package/lib/services/magic-cloud-networking.d.ts +2 -2
- package/lib/services/magic-cloud-networking.d.ts.map +1 -1
- package/lib/services/magic-cloud-networking.js +14 -11
- package/lib/services/magic-cloud-networking.js.map +1 -1
- package/lib/services/memberships.d.ts +2 -2
- package/lib/services/memberships.d.ts.map +1 -1
- package/lib/services/memberships.js +14 -11
- package/lib/services/memberships.js.map +1 -1
- package/lib/services/origin-ca-certificates.d.ts +2 -2
- package/lib/services/origin-ca-certificates.d.ts.map +1 -1
- package/lib/services/origin-ca-certificates.js +14 -11
- package/lib/services/origin-ca-certificates.js.map +1 -1
- package/lib/services/pages.d.ts +4 -4
- package/lib/services/pages.d.ts.map +1 -1
- package/lib/services/pages.js +28 -22
- package/lib/services/pages.js.map +1 -1
- package/lib/services/queues.d.ts +2 -2
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +14 -11
- package/lib/services/queues.js.map +1 -1
- package/lib/services/r2.d.ts +97 -2
- package/lib/services/r2.d.ts.map +1 -1
- package/lib/services/r2.js +125 -6
- package/lib/services/r2.js.map +1 -1
- package/lib/services/radar.d.ts +4 -4
- package/lib/services/radar.d.ts.map +1 -1
- package/lib/services/radar.js +28 -22
- package/lib/services/radar.js.map +1 -1
- package/lib/services/rate-limits.d.ts +2 -2
- package/lib/services/rate-limits.d.ts.map +1 -1
- package/lib/services/rate-limits.js +14 -11
- package/lib/services/rate-limits.js.map +1 -1
- package/lib/services/resource-sharing.d.ts +6 -6
- package/lib/services/resource-sharing.d.ts.map +1 -1
- package/lib/services/resource-sharing.js +42 -33
- package/lib/services/resource-sharing.js.map +1 -1
- package/lib/services/rules.d.ts +2 -2
- package/lib/services/rules.d.ts.map +1 -1
- package/lib/services/rules.js +11 -8
- package/lib/services/rules.js.map +1 -1
- package/lib/services/rulesets.d.ts +202 -67
- package/lib/services/rulesets.d.ts.map +1 -1
- package/lib/services/rulesets.js +383 -84
- package/lib/services/rulesets.js.map +1 -1
- package/lib/services/rum.d.ts +2 -2
- package/lib/services/rum.d.ts.map +1 -1
- package/lib/services/rum.js +14 -11
- package/lib/services/rum.js.map +1 -1
- package/lib/services/schema-validation.d.ts +4 -4
- package/lib/services/schema-validation.d.ts.map +1 -1
- package/lib/services/schema-validation.js +28 -22
- package/lib/services/schema-validation.js.map +1 -1
- package/lib/services/secrets-store.d.ts +4 -4
- package/lib/services/secrets-store.d.ts.map +1 -1
- package/lib/services/secrets-store.js +28 -22
- package/lib/services/secrets-store.js.map +1 -1
- package/lib/services/security-center.d.ts +68 -21
- package/lib/services/security-center.d.ts.map +1 -1
- package/lib/services/security-center.js +142 -33
- package/lib/services/security-center.js.map +1 -1
- package/lib/services/snippets.d.ts +2 -2
- package/lib/services/snippets.d.ts.map +1 -1
- package/lib/services/snippets.js +14 -11
- package/lib/services/snippets.js.map +1 -1
- package/lib/services/spectrum.d.ts +2 -2
- package/lib/services/spectrum.d.ts.map +1 -1
- package/lib/services/spectrum.js +14 -11
- package/lib/services/spectrum.js.map +1 -1
- package/lib/services/speed.d.ts +2 -2
- package/lib/services/speed.d.ts.map +1 -1
- package/lib/services/speed.js +14 -11
- package/lib/services/speed.js.map +1 -1
- package/lib/services/token-validation.d.ts +4 -4
- package/lib/services/token-validation.d.ts.map +1 -1
- package/lib/services/token-validation.js +28 -22
- package/lib/services/token-validation.js.map +1 -1
- package/lib/services/turnstile.d.ts +2 -2
- package/lib/services/turnstile.d.ts.map +1 -1
- package/lib/services/turnstile.js +14 -11
- package/lib/services/turnstile.js.map +1 -1
- package/lib/services/user.d.ts +8 -8
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +56 -44
- package/lib/services/user.js.map +1 -1
- package/lib/services/waiting-rooms.d.ts +18 -7
- package/lib/services/waiting-rooms.d.ts.map +1 -1
- package/lib/services/waiting-rooms.js +53 -29
- package/lib/services/waiting-rooms.js.map +1 -1
- package/lib/services/workers.d.ts +17 -17
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +53 -44
- package/lib/services/workers.js.map +1 -1
- package/lib/services/workflows.d.ts +6 -6
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +42 -33
- package/lib/services/workflows.js.map +1 -1
- package/lib/services/zero-trust.d.ts +639 -264
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +1575 -594
- package/lib/services/zero-trust.js.map +1 -1
- package/lib/services/zones.d.ts +2 -2
- package/lib/services/zones.d.ts.map +1 -1
- package/lib/services/zones.js +14 -11
- package/lib/services/zones.js.map +1 -1
- package/package.json +2 -2
- package/src/schemas.ts +19 -17
- package/src/services/abuse-reports.ts +42 -28
- package/src/services/accounts.ts +94 -67
- package/src/services/ai-gateway.ts +101 -70
- package/src/services/ai.ts +19 -14
- package/src/services/alerting.ts +19 -14
- package/src/services/api-gateway.ts +105 -70
- package/src/services/audit-logs.ts +19 -14
- package/src/services/client-certificates.ts +21 -14
- package/src/services/custom-certificates.ts +21 -14
- package/src/services/custom-hostnames.ts +21 -14
- package/src/services/custom-pages.ts +170 -66
- package/src/services/d1.ts +19 -14
- package/src/services/dns-firewall.ts +21 -14
- package/src/services/dns.ts +40 -28
- package/src/services/durable-objects.ts +39 -25
- package/src/services/email-routing.ts +38 -28
- package/src/services/email-security.ts +147 -98
- package/src/services/filters.ts +19 -14
- package/src/services/firewall.ts +462 -233
- package/src/services/healthchecks.ts +21 -14
- package/src/services/images.ts +19 -14
- package/src/services/intel.ts +44 -28
- package/src/services/kv.ts +39 -25
- package/src/services/load-balancers.ts +19 -14
- package/src/services/logpush.ts +798 -372
- package/src/services/magic-cloud-networking.ts +19 -14
- package/src/services/memberships.ts +21 -14
- package/src/services/origin-ca-certificates.ts +21 -14
- package/src/services/pages.ts +40 -28
- package/src/services/queues.ts +21 -14
- package/src/services/r2.ts +307 -9
- package/src/services/radar.ts +42 -28
- package/src/services/rate-limits.ts +21 -14
- package/src/services/resource-sharing.ts +61 -42
- package/src/services/rules.ts +18 -11
- package/src/services/rulesets.ts +3990 -3420
- package/src/services/rum.ts +19 -14
- package/src/services/schema-validation.ts +40 -28
- package/src/services/secrets-store.ts +40 -28
- package/src/services/security-center.ts +266 -77
- package/src/services/snippets.ts +19 -14
- package/src/services/spectrum.ts +19 -14
- package/src/services/speed.ts +19 -14
- package/src/services/token-validation.ts +40 -28
- package/src/services/turnstile.ts +19 -14
- package/src/services/user.ts +80 -56
- package/src/services/waiting-rooms.ts +89 -39
- package/src/services/workers.ts +85 -64
- package/src/services/workflows.ts +57 -42
- package/src/services/zero-trust.ts +4536 -2654
- package/src/services/zones.ts +19 -14
|
@@ -9421,12 +9421,12 @@ export interface ListResourcesResponse {
|
|
|
9421
9421
|
| { id: string; clientType: "MAGIC_WAN_CLOUD_ONRAMP"; name: string }[]
|
|
9422
9422
|
| null;
|
|
9423
9423
|
}[];
|
|
9424
|
-
resultInfo
|
|
9424
|
+
resultInfo?: {
|
|
9425
9425
|
count?: number | null;
|
|
9426
9426
|
page?: number | null;
|
|
9427
9427
|
perPage?: number | null;
|
|
9428
9428
|
totalCount?: number | null;
|
|
9429
|
-
};
|
|
9429
|
+
} | null;
|
|
9430
9430
|
}
|
|
9431
9431
|
|
|
9432
9432
|
export const ListResourcesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -9922,18 +9922,23 @@ export const ListResourcesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
9922
9922
|
}),
|
|
9923
9923
|
),
|
|
9924
9924
|
),
|
|
9925
|
-
resultInfo: Schema.
|
|
9926
|
-
|
|
9927
|
-
|
|
9928
|
-
|
|
9929
|
-
|
|
9930
|
-
|
|
9931
|
-
|
|
9932
|
-
|
|
9933
|
-
|
|
9934
|
-
|
|
9935
|
-
|
|
9936
|
-
|
|
9925
|
+
resultInfo: Schema.optional(
|
|
9926
|
+
Schema.Union([
|
|
9927
|
+
Schema.Struct({
|
|
9928
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
9929
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
9930
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
9931
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
9932
|
+
}).pipe(
|
|
9933
|
+
Schema.encodeKeys({
|
|
9934
|
+
count: "count",
|
|
9935
|
+
page: "page",
|
|
9936
|
+
perPage: "per_page",
|
|
9937
|
+
totalCount: "total_count",
|
|
9938
|
+
}),
|
|
9939
|
+
),
|
|
9940
|
+
Schema.Null,
|
|
9941
|
+
]),
|
|
9937
9942
|
),
|
|
9938
9943
|
}).pipe(
|
|
9939
9944
|
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
@@ -490,12 +490,12 @@ export interface ListMembershipsResponse {
|
|
|
490
490
|
roles?: string[] | null;
|
|
491
491
|
status?: "accepted" | "pending" | "rejected" | null;
|
|
492
492
|
}[];
|
|
493
|
-
resultInfo
|
|
493
|
+
resultInfo?: {
|
|
494
494
|
count?: number | null;
|
|
495
495
|
page?: number | null;
|
|
496
496
|
perPage?: number | null;
|
|
497
497
|
totalCount?: number | null;
|
|
498
|
-
};
|
|
498
|
+
} | null;
|
|
499
499
|
}
|
|
500
500
|
|
|
501
501
|
export const ListMembershipsResponse =
|
|
@@ -762,18 +762,25 @@ export const ListMembershipsResponse =
|
|
|
762
762
|
}),
|
|
763
763
|
),
|
|
764
764
|
),
|
|
765
|
-
resultInfo: Schema.
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
765
|
+
resultInfo: Schema.optional(
|
|
766
|
+
Schema.Union([
|
|
767
|
+
Schema.Struct({
|
|
768
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
769
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
770
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
771
|
+
totalCount: Schema.optional(
|
|
772
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
773
|
+
),
|
|
774
|
+
}).pipe(
|
|
775
|
+
Schema.encodeKeys({
|
|
776
|
+
count: "count",
|
|
777
|
+
page: "page",
|
|
778
|
+
perPage: "per_page",
|
|
779
|
+
totalCount: "total_count",
|
|
780
|
+
}),
|
|
781
|
+
),
|
|
782
|
+
Schema.Null,
|
|
783
|
+
]),
|
|
777
784
|
),
|
|
778
785
|
}).pipe(
|
|
779
786
|
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
@@ -126,12 +126,12 @@ export interface ListOriginCACertificatesResponse {
|
|
|
126
126
|
certificate?: string | null;
|
|
127
127
|
expiresOn?: string | null;
|
|
128
128
|
}[];
|
|
129
|
-
resultInfo
|
|
129
|
+
resultInfo?: {
|
|
130
130
|
count?: number | null;
|
|
131
131
|
page?: number | null;
|
|
132
132
|
perPage?: number | null;
|
|
133
133
|
totalCount?: number | null;
|
|
134
|
-
};
|
|
134
|
+
} | null;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
export const ListOriginCACertificatesResponse =
|
|
@@ -171,18 +171,25 @@ export const ListOriginCACertificatesResponse =
|
|
|
171
171
|
}),
|
|
172
172
|
),
|
|
173
173
|
),
|
|
174
|
-
resultInfo: Schema.
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
174
|
+
resultInfo: Schema.optional(
|
|
175
|
+
Schema.Union([
|
|
176
|
+
Schema.Struct({
|
|
177
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
178
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
179
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
180
|
+
totalCount: Schema.optional(
|
|
181
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
182
|
+
),
|
|
183
|
+
}).pipe(
|
|
184
|
+
Schema.encodeKeys({
|
|
185
|
+
count: "count",
|
|
186
|
+
page: "page",
|
|
187
|
+
perPage: "per_page",
|
|
188
|
+
totalCount: "total_count",
|
|
189
|
+
}),
|
|
190
|
+
),
|
|
191
|
+
Schema.Null,
|
|
192
|
+
]),
|
|
186
193
|
),
|
|
187
194
|
}).pipe(
|
|
188
195
|
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
package/src/services/pages.ts
CHANGED
|
@@ -1242,12 +1242,12 @@ export interface ListProjectsResponse {
|
|
|
1242
1242
|
} | null;
|
|
1243
1243
|
subdomain?: string | null;
|
|
1244
1244
|
}[];
|
|
1245
|
-
resultInfo
|
|
1245
|
+
resultInfo?: {
|
|
1246
1246
|
count?: number | null;
|
|
1247
1247
|
page?: number | null;
|
|
1248
1248
|
perPage?: number | null;
|
|
1249
1249
|
totalCount?: number | null;
|
|
1250
|
-
};
|
|
1250
|
+
} | null;
|
|
1251
1251
|
}
|
|
1252
1252
|
|
|
1253
1253
|
export const ListProjectsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -1966,18 +1966,23 @@ export const ListProjectsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1966
1966
|
}),
|
|
1967
1967
|
),
|
|
1968
1968
|
),
|
|
1969
|
-
resultInfo: Schema.
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1969
|
+
resultInfo: Schema.optional(
|
|
1970
|
+
Schema.Union([
|
|
1971
|
+
Schema.Struct({
|
|
1972
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1973
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1974
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1975
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1976
|
+
}).pipe(
|
|
1977
|
+
Schema.encodeKeys({
|
|
1978
|
+
count: "count",
|
|
1979
|
+
page: "page",
|
|
1980
|
+
perPage: "per_page",
|
|
1981
|
+
totalCount: "total_count",
|
|
1982
|
+
}),
|
|
1983
|
+
),
|
|
1984
|
+
Schema.Null,
|
|
1985
|
+
]),
|
|
1981
1986
|
),
|
|
1982
1987
|
}).pipe(
|
|
1983
1988
|
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
@@ -4983,12 +4988,12 @@ export interface ListProjectDeploymentsResponse {
|
|
|
4983
4988
|
url: string;
|
|
4984
4989
|
usesFunctions?: boolean | null;
|
|
4985
4990
|
}[];
|
|
4986
|
-
resultInfo
|
|
4991
|
+
resultInfo?: {
|
|
4987
4992
|
count?: number | null;
|
|
4988
4993
|
page?: number | null;
|
|
4989
4994
|
perPage?: number | null;
|
|
4990
4995
|
totalCount?: number | null;
|
|
4991
|
-
};
|
|
4996
|
+
} | null;
|
|
4992
4997
|
}
|
|
4993
4998
|
|
|
4994
4999
|
export const ListProjectDeploymentsResponse =
|
|
@@ -5163,18 +5168,25 @@ export const ListProjectDeploymentsResponse =
|
|
|
5163
5168
|
}),
|
|
5164
5169
|
),
|
|
5165
5170
|
),
|
|
5166
|
-
resultInfo: Schema.
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5171
|
+
resultInfo: Schema.optional(
|
|
5172
|
+
Schema.Union([
|
|
5173
|
+
Schema.Struct({
|
|
5174
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5175
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5176
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5177
|
+
totalCount: Schema.optional(
|
|
5178
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
5179
|
+
),
|
|
5180
|
+
}).pipe(
|
|
5181
|
+
Schema.encodeKeys({
|
|
5182
|
+
count: "count",
|
|
5183
|
+
page: "page",
|
|
5184
|
+
perPage: "per_page",
|
|
5185
|
+
totalCount: "total_count",
|
|
5186
|
+
}),
|
|
5187
|
+
),
|
|
5188
|
+
Schema.Null,
|
|
5189
|
+
]),
|
|
5178
5190
|
),
|
|
5179
5191
|
}).pipe(
|
|
5180
5192
|
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
package/src/services/queues.ts
CHANGED
|
@@ -3305,12 +3305,12 @@ export interface ListSubscriptionsResponse {
|
|
|
3305
3305
|
| { type?: "workersBuilds.worker" | null; workerName?: string | null }
|
|
3306
3306
|
| { type?: "workflows.workflow" | null; workflowName?: string | null };
|
|
3307
3307
|
}[];
|
|
3308
|
-
resultInfo
|
|
3308
|
+
resultInfo?: {
|
|
3309
3309
|
count?: number | null;
|
|
3310
3310
|
page?: number | null;
|
|
3311
3311
|
perPage?: number | null;
|
|
3312
3312
|
totalCount?: number | null;
|
|
3313
|
-
};
|
|
3313
|
+
} | null;
|
|
3314
3314
|
}
|
|
3315
3315
|
|
|
3316
3316
|
export const ListSubscriptionsResponse =
|
|
@@ -3398,18 +3398,25 @@ export const ListSubscriptionsResponse =
|
|
|
3398
3398
|
}),
|
|
3399
3399
|
),
|
|
3400
3400
|
),
|
|
3401
|
-
resultInfo: Schema.
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3401
|
+
resultInfo: Schema.optional(
|
|
3402
|
+
Schema.Union([
|
|
3403
|
+
Schema.Struct({
|
|
3404
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3405
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3406
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3407
|
+
totalCount: Schema.optional(
|
|
3408
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
3409
|
+
),
|
|
3410
|
+
}).pipe(
|
|
3411
|
+
Schema.encodeKeys({
|
|
3412
|
+
count: "count",
|
|
3413
|
+
page: "page",
|
|
3414
|
+
perPage: "per_page",
|
|
3415
|
+
totalCount: "total_count",
|
|
3416
|
+
}),
|
|
3417
|
+
),
|
|
3418
|
+
Schema.Null,
|
|
3419
|
+
]),
|
|
3413
3420
|
),
|
|
3414
3421
|
}).pipe(
|
|
3415
3422
|
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
package/src/services/r2.ts
CHANGED
|
@@ -11,7 +11,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
13
|
import { type DefaultErrors } from "../errors.ts";
|
|
14
|
-
import {
|
|
14
|
+
import { BinaryBodySchema } from "../schemas.ts";
|
|
15
|
+
import { BinaryStreamResponseSchema } from "../schemas.ts";
|
|
16
|
+
import type * as Stream from "effect/Stream";
|
|
17
|
+
import type * as HttpClientError from "effect/unstable/http/HttpClientError";
|
|
15
18
|
import { SensitiveString } from "../sensitive.ts";
|
|
16
19
|
|
|
17
20
|
// =============================================================================
|
|
@@ -2635,15 +2638,69 @@ export const GetObjectRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2635
2638
|
T.Http({
|
|
2636
2639
|
method: "GET",
|
|
2637
2640
|
path: "/accounts/{account_id}/r2/buckets/{bucketName}/objects/{objectName}",
|
|
2641
|
+
responseContentType: "binary",
|
|
2638
2642
|
}),
|
|
2639
2643
|
) as unknown as Schema.Schema<GetObjectRequest>;
|
|
2640
2644
|
|
|
2641
|
-
export
|
|
2645
|
+
export interface GetObjectResponse {
|
|
2646
|
+
/** Raw object body as an Effect Stream. */
|
|
2647
|
+
body: Stream.Stream<Uint8Array, HttpClientError.HttpClientError>;
|
|
2648
|
+
/** Entity tag of the object (raw hex digest). */
|
|
2649
|
+
etag?: string;
|
|
2650
|
+
/** MIME type of the object. */
|
|
2651
|
+
contentType?: string;
|
|
2652
|
+
/** Object size in bytes. */
|
|
2653
|
+
contentLength?: number;
|
|
2654
|
+
/** Content encoding of the object (e.g. `gzip`). */
|
|
2655
|
+
contentEncoding?: string;
|
|
2656
|
+
/** Content disposition header for the object. */
|
|
2657
|
+
contentDisposition?: string;
|
|
2658
|
+
/** Content language of the object. */
|
|
2659
|
+
contentLanguage?: string;
|
|
2660
|
+
/** Byte range returned (set when the request used `Range`). */
|
|
2661
|
+
contentRange?: string;
|
|
2662
|
+
/** Cache-Control directives associated with the object. */
|
|
2663
|
+
cacheControl?: string;
|
|
2664
|
+
/** Expiration date of the object. */
|
|
2665
|
+
expires?: string;
|
|
2666
|
+
/** When the object was last modified (RFC 7231 date). */
|
|
2667
|
+
lastModified?: string;
|
|
2668
|
+
/** Storage class of the object (`Standard` or `InfrequentAccess`). */
|
|
2669
|
+
cfR2StorageClass?: "Standard" | "InfrequentAccess";
|
|
2670
|
+
}
|
|
2642
2671
|
|
|
2643
|
-
export const GetObjectResponse =
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2672
|
+
export const GetObjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2673
|
+
body: BinaryStreamResponseSchema.pipe(T.BinaryResponseBody()),
|
|
2674
|
+
etag: Schema.optional(Schema.String).pipe(T.HttpResponseHeader("etag")),
|
|
2675
|
+
contentType: Schema.optional(Schema.String).pipe(
|
|
2676
|
+
T.HttpResponseHeader("content-type"),
|
|
2677
|
+
),
|
|
2678
|
+
contentLength: Schema.optional(Schema.Number).pipe(
|
|
2679
|
+
T.HttpResponseHeader("content-length"),
|
|
2680
|
+
),
|
|
2681
|
+
contentEncoding: Schema.optional(Schema.String).pipe(
|
|
2682
|
+
T.HttpResponseHeader("content-encoding"),
|
|
2683
|
+
),
|
|
2684
|
+
contentDisposition: Schema.optional(Schema.String).pipe(
|
|
2685
|
+
T.HttpResponseHeader("content-disposition"),
|
|
2686
|
+
),
|
|
2687
|
+
contentLanguage: Schema.optional(Schema.String).pipe(
|
|
2688
|
+
T.HttpResponseHeader("content-language"),
|
|
2689
|
+
),
|
|
2690
|
+
contentRange: Schema.optional(Schema.String).pipe(
|
|
2691
|
+
T.HttpResponseHeader("content-range"),
|
|
2692
|
+
),
|
|
2693
|
+
cacheControl: Schema.optional(Schema.String).pipe(
|
|
2694
|
+
T.HttpResponseHeader("cache-control"),
|
|
2695
|
+
),
|
|
2696
|
+
expires: Schema.optional(Schema.String).pipe(T.HttpResponseHeader("expires")),
|
|
2697
|
+
lastModified: Schema.optional(Schema.String).pipe(
|
|
2698
|
+
T.HttpResponseHeader("last-modified"),
|
|
2699
|
+
),
|
|
2700
|
+
cfR2StorageClass: Schema.optional(
|
|
2701
|
+
Schema.Literals(["Standard", "InfrequentAccess"]),
|
|
2702
|
+
).pipe(T.HttpResponseHeader("cf-r2-storage-class")),
|
|
2703
|
+
}) as unknown as Schema.Schema<GetObjectResponse>;
|
|
2647
2704
|
|
|
2648
2705
|
export type GetObjectError =
|
|
2649
2706
|
| DefaultErrors
|
|
@@ -2662,6 +2719,138 @@ export const getObject: API.OperationMethod<
|
|
|
2662
2719
|
errors: [NoSuchBucket, InvalidRoute, NoRoute],
|
|
2663
2720
|
}));
|
|
2664
2721
|
|
|
2722
|
+
export interface ListObjectsRequest {
|
|
2723
|
+
/** Name of the R2 bucket. */
|
|
2724
|
+
bucketName: string;
|
|
2725
|
+
/** Account ID. */
|
|
2726
|
+
accountId: string;
|
|
2727
|
+
/** Maximum number of objects to return per page (1-1000). */
|
|
2728
|
+
perPage?: number;
|
|
2729
|
+
/** Restrict results to keys beginning with this prefix. */
|
|
2730
|
+
prefix?: string;
|
|
2731
|
+
/** Single character used to group keys. */
|
|
2732
|
+
delimiter?: string;
|
|
2733
|
+
/** Pagination cursor returned by a previous List Objects call. */
|
|
2734
|
+
cursor?: string;
|
|
2735
|
+
/** Returns keys lexicographically after this key. */
|
|
2736
|
+
startAfter?: string;
|
|
2737
|
+
/** Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
2738
|
+
cfR2Jurisdiction?: "default" | "eu" | "fedramp";
|
|
2739
|
+
}
|
|
2740
|
+
|
|
2741
|
+
export const ListObjectsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2742
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
2743
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2744
|
+
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
2745
|
+
prefix: Schema.optional(Schema.String).pipe(T.HttpQuery("prefix")),
|
|
2746
|
+
delimiter: Schema.optional(Schema.String).pipe(T.HttpQuery("delimiter")),
|
|
2747
|
+
cursor: Schema.optional(Schema.String).pipe(T.HttpQuery("cursor")),
|
|
2748
|
+
startAfter: Schema.optional(Schema.String).pipe(T.HttpQuery("start_after")),
|
|
2749
|
+
cfR2Jurisdiction: Schema.optional(
|
|
2750
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
2751
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
2752
|
+
}).pipe(
|
|
2753
|
+
T.Http({
|
|
2754
|
+
method: "GET",
|
|
2755
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/objects",
|
|
2756
|
+
}),
|
|
2757
|
+
) as unknown as Schema.Schema<ListObjectsRequest>;
|
|
2758
|
+
|
|
2759
|
+
export interface ListObjectsResponse {
|
|
2760
|
+
result: {
|
|
2761
|
+
key?: string | null;
|
|
2762
|
+
size?: number | null;
|
|
2763
|
+
etag?: string | null;
|
|
2764
|
+
lastModified?: string | null;
|
|
2765
|
+
storageClass?: "Standard" | "InfrequentAccess" | null;
|
|
2766
|
+
ssec?: boolean | null;
|
|
2767
|
+
customMetadata?: unknown | null;
|
|
2768
|
+
httpMetadata?: unknown | null;
|
|
2769
|
+
}[];
|
|
2770
|
+
resultInfo?: {
|
|
2771
|
+
count?: number | null;
|
|
2772
|
+
cursor?: string | null;
|
|
2773
|
+
perPage?: number | null;
|
|
2774
|
+
} | null;
|
|
2775
|
+
}
|
|
2776
|
+
|
|
2777
|
+
export const ListObjectsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2778
|
+
result: Schema.Array(
|
|
2779
|
+
Schema.Struct({
|
|
2780
|
+
key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2781
|
+
size: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2782
|
+
etag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2783
|
+
lastModified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2784
|
+
storageClass: Schema.optional(
|
|
2785
|
+
Schema.Union([
|
|
2786
|
+
Schema.Literals(["Standard", "InfrequentAccess"]),
|
|
2787
|
+
Schema.Null,
|
|
2788
|
+
]),
|
|
2789
|
+
),
|
|
2790
|
+
ssec: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2791
|
+
customMetadata: Schema.optional(
|
|
2792
|
+
Schema.Union([Schema.Unknown, Schema.Null]),
|
|
2793
|
+
),
|
|
2794
|
+
httpMetadata: Schema.optional(
|
|
2795
|
+
Schema.Union([Schema.Unknown, Schema.Null]),
|
|
2796
|
+
),
|
|
2797
|
+
}).pipe(
|
|
2798
|
+
Schema.encodeKeys({
|
|
2799
|
+
key: "key",
|
|
2800
|
+
size: "size",
|
|
2801
|
+
etag: "etag",
|
|
2802
|
+
lastModified: "last_modified",
|
|
2803
|
+
storageClass: "storage_class",
|
|
2804
|
+
ssec: "ssec",
|
|
2805
|
+
customMetadata: "custom_metadata",
|
|
2806
|
+
httpMetadata: "http_metadata",
|
|
2807
|
+
}),
|
|
2808
|
+
),
|
|
2809
|
+
),
|
|
2810
|
+
resultInfo: Schema.optional(
|
|
2811
|
+
Schema.Union([
|
|
2812
|
+
Schema.Struct({
|
|
2813
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2814
|
+
cursor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2815
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2816
|
+
}).pipe(
|
|
2817
|
+
Schema.encodeKeys({
|
|
2818
|
+
count: "count",
|
|
2819
|
+
cursor: "cursor",
|
|
2820
|
+
perPage: "per_page",
|
|
2821
|
+
}),
|
|
2822
|
+
),
|
|
2823
|
+
Schema.Null,
|
|
2824
|
+
]),
|
|
2825
|
+
),
|
|
2826
|
+
}).pipe(
|
|
2827
|
+
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
2828
|
+
) as unknown as Schema.Schema<ListObjectsResponse>;
|
|
2829
|
+
|
|
2830
|
+
export type ListObjectsError =
|
|
2831
|
+
| DefaultErrors
|
|
2832
|
+
| NoSuchBucket
|
|
2833
|
+
| InvalidRoute
|
|
2834
|
+
| NoRoute;
|
|
2835
|
+
|
|
2836
|
+
export const listObjects: API.PaginatedOperationMethod<
|
|
2837
|
+
ListObjectsRequest,
|
|
2838
|
+
ListObjectsResponse,
|
|
2839
|
+
ListObjectsError,
|
|
2840
|
+
Credentials | HttpClient.HttpClient
|
|
2841
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
2842
|
+
input: ListObjectsRequest,
|
|
2843
|
+
output: ListObjectsResponse,
|
|
2844
|
+
errors: [NoSuchBucket, InvalidRoute, NoRoute],
|
|
2845
|
+
pagination: {
|
|
2846
|
+
mode: "cursor",
|
|
2847
|
+
inputToken: "cursor",
|
|
2848
|
+
outputToken: "resultInfo.cursor",
|
|
2849
|
+
items: "result",
|
|
2850
|
+
pageSize: "perPage",
|
|
2851
|
+
} as const,
|
|
2852
|
+
}));
|
|
2853
|
+
|
|
2665
2854
|
export interface PutObjectRequest {
|
|
2666
2855
|
/** Name of the R2 bucket. */
|
|
2667
2856
|
bucketName: string;
|
|
@@ -2687,7 +2876,7 @@ export interface PutObjectRequest {
|
|
|
2687
2876
|
expires?: string;
|
|
2688
2877
|
/** Storage class for the object. */
|
|
2689
2878
|
cfR2StorageClass?: "Standard" | "InfrequentAccess";
|
|
2690
|
-
body:
|
|
2879
|
+
body: Blob | Uint8Array | ArrayBuffer | string;
|
|
2691
2880
|
}
|
|
2692
2881
|
|
|
2693
2882
|
export const PutObjectRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -2719,12 +2908,12 @@ export const PutObjectRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2719
2908
|
cfR2StorageClass: Schema.optional(
|
|
2720
2909
|
Schema.Literals(["Standard", "InfrequentAccess"]),
|
|
2721
2910
|
).pipe(T.HttpHeader("cf-r2-storage-class")),
|
|
2722
|
-
body:
|
|
2911
|
+
body: BinaryBodySchema.pipe(T.HttpBody()),
|
|
2723
2912
|
}).pipe(
|
|
2724
2913
|
T.Http({
|
|
2725
2914
|
method: "PUT",
|
|
2726
2915
|
path: "/accounts/{account_id}/r2/buckets/{bucketName}/objects/{objectName}",
|
|
2727
|
-
contentType: "
|
|
2916
|
+
contentType: "binary",
|
|
2728
2917
|
}),
|
|
2729
2918
|
) as unknown as Schema.Schema<PutObjectRequest>;
|
|
2730
2919
|
|
|
@@ -2752,6 +2941,115 @@ export const putObject: API.OperationMethod<
|
|
|
2752
2941
|
errors: [NoSuchBucket, InvalidRoute, NoRoute],
|
|
2753
2942
|
}));
|
|
2754
2943
|
|
|
2944
|
+
export interface DeleteObjectsRequest {
|
|
2945
|
+
/** Name of the R2 bucket. */
|
|
2946
|
+
bucketName: string;
|
|
2947
|
+
/** Account ID. */
|
|
2948
|
+
accountId: string;
|
|
2949
|
+
/** When set, switches to "delete by prefix" mode and asynchronously deletes every object whose key begins with the given prefix. The response is a prefix-delete job descriptor instead of a per-key list. */
|
|
2950
|
+
prefix?: string;
|
|
2951
|
+
/** Jurisdiction where objects in this bucket are guaranteed to be stored. */
|
|
2952
|
+
cfR2Jurisdiction?: "default" | "eu" | "fedramp";
|
|
2953
|
+
body?: string[];
|
|
2954
|
+
}
|
|
2955
|
+
|
|
2956
|
+
export const DeleteObjectsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2957
|
+
bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
|
|
2958
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2959
|
+
prefix: Schema.optional(Schema.String).pipe(T.HttpQuery("prefix")),
|
|
2960
|
+
cfR2Jurisdiction: Schema.optional(
|
|
2961
|
+
Schema.Literals(["default", "eu", "fedramp"]),
|
|
2962
|
+
).pipe(T.HttpHeader("cf-r2-jurisdiction")),
|
|
2963
|
+
body: Schema.optional(Schema.Array(Schema.String)).pipe(T.HttpBody()),
|
|
2964
|
+
}).pipe(
|
|
2965
|
+
T.Http({
|
|
2966
|
+
method: "DELETE",
|
|
2967
|
+
path: "/accounts/{account_id}/r2/buckets/{bucketName}/objects",
|
|
2968
|
+
}),
|
|
2969
|
+
) as unknown as Schema.Schema<DeleteObjectsRequest>;
|
|
2970
|
+
|
|
2971
|
+
export type DeleteObjectsResponse =
|
|
2972
|
+
| { key?: string | null }[]
|
|
2973
|
+
| {
|
|
2974
|
+
id?: string | null;
|
|
2975
|
+
jobType?: "prefixDelete" | null;
|
|
2976
|
+
status?:
|
|
2977
|
+
| "ENQUEUED"
|
|
2978
|
+
| "RUNNING"
|
|
2979
|
+
| "COMPLETED"
|
|
2980
|
+
| "FAILED"
|
|
2981
|
+
| "CANCELLED"
|
|
2982
|
+
| null;
|
|
2983
|
+
startTime?: string | null;
|
|
2984
|
+
endTime?: string | null;
|
|
2985
|
+
prefixDelete?: {
|
|
2986
|
+
prefix?: string | null;
|
|
2987
|
+
deletedObjects?: number | null;
|
|
2988
|
+
isBucketClear?: boolean | null;
|
|
2989
|
+
} | null;
|
|
2990
|
+
};
|
|
2991
|
+
|
|
2992
|
+
export const DeleteObjectsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
|
|
2993
|
+
Schema.Array(
|
|
2994
|
+
Schema.Struct({
|
|
2995
|
+
key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2996
|
+
}),
|
|
2997
|
+
),
|
|
2998
|
+
Schema.Struct({
|
|
2999
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3000
|
+
jobType: Schema.optional(
|
|
3001
|
+
Schema.Union([Schema.Literal("prefixDelete"), Schema.Null]),
|
|
3002
|
+
),
|
|
3003
|
+
status: Schema.optional(
|
|
3004
|
+
Schema.Union([
|
|
3005
|
+
Schema.Literals([
|
|
3006
|
+
"ENQUEUED",
|
|
3007
|
+
"RUNNING",
|
|
3008
|
+
"COMPLETED",
|
|
3009
|
+
"FAILED",
|
|
3010
|
+
"CANCELLED",
|
|
3011
|
+
]),
|
|
3012
|
+
Schema.Null,
|
|
3013
|
+
]),
|
|
3014
|
+
),
|
|
3015
|
+
startTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3016
|
+
endTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3017
|
+
prefixDelete: Schema.optional(
|
|
3018
|
+
Schema.Union([
|
|
3019
|
+
Schema.Struct({
|
|
3020
|
+
prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3021
|
+
deletedObjects: Schema.optional(
|
|
3022
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
3023
|
+
),
|
|
3024
|
+
isBucketClear: Schema.optional(
|
|
3025
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
3026
|
+
),
|
|
3027
|
+
}),
|
|
3028
|
+
Schema.Null,
|
|
3029
|
+
]),
|
|
3030
|
+
),
|
|
3031
|
+
}),
|
|
3032
|
+
]).pipe(
|
|
3033
|
+
T.ResponsePath("result"),
|
|
3034
|
+
) as unknown as Schema.Schema<DeleteObjectsResponse>;
|
|
3035
|
+
|
|
3036
|
+
export type DeleteObjectsError =
|
|
3037
|
+
| DefaultErrors
|
|
3038
|
+
| NoSuchBucket
|
|
3039
|
+
| InvalidRoute
|
|
3040
|
+
| NoRoute;
|
|
3041
|
+
|
|
3042
|
+
export const deleteObjects: API.OperationMethod<
|
|
3043
|
+
DeleteObjectsRequest,
|
|
3044
|
+
DeleteObjectsResponse,
|
|
3045
|
+
DeleteObjectsError,
|
|
3046
|
+
Credentials | HttpClient.HttpClient
|
|
3047
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3048
|
+
input: DeleteObjectsRequest,
|
|
3049
|
+
output: DeleteObjectsResponse,
|
|
3050
|
+
errors: [NoSuchBucket, InvalidRoute, NoRoute],
|
|
3051
|
+
}));
|
|
3052
|
+
|
|
2755
3053
|
export interface DeleteObjectRequest {
|
|
2756
3054
|
/** Name of the R2 bucket. */
|
|
2757
3055
|
bucketName: string;
|