@distilled.cloud/cloudflare 0.19.1 → 0.20.0

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.
@@ -10,7 +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 { type DefaultErrors } from "../errors.ts";
13
+ import { type DefaultErrors, InternalServerError } from "../errors.ts";
14
14
  import { UploadableSchema } from "../schemas.ts";
15
15
 
16
16
  // =============================================================================
@@ -60,6 +60,10 @@ export class HostnameAlreadyInUse extends Schema.TaggedErrorClass<HostnameAlread
60
60
  ) {}
61
61
  T.applyErrorMatchers(HostnameAlreadyInUse, [{ code: 100116 }]);
62
62
 
63
+ T.applyErrorMatchers(InternalServerError, [
64
+ { code: 10002, message: { includes: "An unknown error has occurred" } },
65
+ ]);
66
+
63
67
  export class InvalidRoute extends Schema.TaggedErrorClass<InvalidRoute>()(
64
68
  "InvalidRoute",
65
69
  { code: Schema.Number, message: Schema.String },
@@ -7640,6 +7644,7 @@ export type PutScriptError =
7640
7644
  | DefaultErrors
7641
7645
  | InvalidRoute
7642
7646
  | InvalidWorkerScript
7647
+ | InternalServerError
7643
7648
  | DurableObjectMustBeSqlite
7644
7649
  | DuplicateMigrationTarget
7645
7650
  | ScriptStartupError
@@ -7656,6 +7661,7 @@ export const putScript: API.OperationMethod<
7656
7661
  errors: [
7657
7662
  InvalidRoute,
7658
7663
  InvalidWorkerScript,
7664
+ InternalServerError,
7659
7665
  DurableObjectMustBeSqlite,
7660
7666
  DuplicateMigrationTarget,
7661
7667
  ScriptStartupError,