@distilled.cloud/cloudflare 1.0.0-rc.12 → 1.0.0-rc.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/protocol.d.ts +2 -2
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +13 -6
- package/lib/protocol.js.map +1 -1
- package/lib/response-validation.test.d.ts +6 -0
- package/lib/response-validation.test.d.ts.map +1 -0
- package/lib/response-validation.test.js +45 -0
- package/lib/response-validation.test.js.map +1 -0
- package/lib/services/dns.d.ts +8 -2
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +8 -2
- package/lib/services/dns.js.map +1 -1
- package/lib/services/queues.d.ts +7 -1
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +12 -0
- package/lib/services/queues.js.map +1 -1
- package/lib/services/r2.d.ts +17 -5
- package/lib/services/r2.d.ts.map +1 -1
- package/lib/services/r2.js +42 -5
- package/lib/services/r2.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 +12 -1
- package/lib/services/workers.js.map +1 -1
- package/lib/services/workers_for_platforms.d.ts +533 -12
- package/lib/services/workers_for_platforms.d.ts.map +1 -1
- package/lib/services/workers_for_platforms.js +708 -1029
- package/lib/services/workers_for_platforms.js.map +1 -1
- package/lib/services/zero_trust.d.ts +26 -6
- package/lib/services/zero_trust.d.ts.map +1 -1
- package/lib/services/zero_trust.js +53 -6
- package/lib/services/zero_trust.js.map +1 -1
- package/lib/traits.d.ts +1 -1
- package/lib/traits.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +1 -1
- package/src/protocol.ts +28 -9
- package/src/response-validation.test.ts +67 -0
- package/src/services/dns.ts +13 -4
- package/src/services/queues.ts +19 -0
- package/src/services/r2.ts +69 -10
- package/src/services/workers.ts +22 -2
- package/src/services/workers_for_platforms.ts +1625 -1072
- package/src/services/zero_trust.ts +85 -12
- package/src/traits.ts +1 -1
package/lib/services/workers.js
CHANGED
|
@@ -239,6 +239,12 @@ export class ObservabilityDestinationPreflightFailed extends /*@__PURE__*/ /*@__
|
|
|
239
239
|
message: S.String,
|
|
240
240
|
}), [{ status: 400, message: "Bad Request" }]) {
|
|
241
241
|
}
|
|
242
|
+
export class PreviewAlreadyExists extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
243
|
+
/*@__PURE__*/ S.TaggedError()("PreviewAlreadyExists", {
|
|
244
|
+
code: S.Number,
|
|
245
|
+
message: S.String,
|
|
246
|
+
}), [{ status: 409, message: { includes: "already exists" } }]) {
|
|
247
|
+
}
|
|
242
248
|
export class PreviewDeploymentNotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
243
249
|
/*@__PURE__*/ S.TaggedError()("PreviewDeploymentNotFound", {
|
|
244
250
|
code: S.Number,
|
|
@@ -12829,7 +12835,12 @@ export const createObservabilitySharedQuery = /*@__PURE__*/ API.make(() => ({
|
|
|
12829
12835
|
export const createPreview = /*@__PURE__*/ API.make(() => ({
|
|
12830
12836
|
input: CreatePreviewRequest,
|
|
12831
12837
|
output: PreviewResource,
|
|
12832
|
-
errors: [
|
|
12838
|
+
errors: [
|
|
12839
|
+
WorkerNotFound,
|
|
12840
|
+
PreviewAlreadyExists,
|
|
12841
|
+
CloudflareRateLimited,
|
|
12842
|
+
CloudflareError,
|
|
12843
|
+
],
|
|
12833
12844
|
protocol: CloudflareProtocol,
|
|
12834
12845
|
retry: Retry.Retry,
|
|
12835
12846
|
}));
|