@distilled.cloud/cloudflare 0.10.0 → 0.10.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.
@@ -21,6 +21,14 @@ T.applyErrorMatchers(DeploymentNotFound, [{ code: 10336 }]);
21
21
  export class DomainNotFound extends Schema.TaggedErrorClass()("DomainNotFound", { code: Schema.Number, message: Schema.String }) {
22
22
  }
23
23
  T.applyErrorMatchers(DomainNotFound, [{ code: 100114 }]);
24
+ export class DuplicateMigrationTarget extends Schema.TaggedErrorClass()("DuplicateMigrationTarget", { code: Schema.Number, message: Schema.String }) {
25
+ }
26
+ T.applyErrorMatchers(DuplicateMigrationTarget, [
27
+ {
28
+ code: 10074,
29
+ message: { includes: "cannot be the target of more than one migration" },
30
+ },
31
+ ]);
24
32
  export class DurableObjectMustBeSqlite extends Schema.TaggedErrorClass()("DurableObjectMustBeSqlite", { code: Schema.Number, message: Schema.String }) {
25
33
  }
26
34
  T.applyErrorMatchers(DurableObjectMustBeSqlite, [
@@ -3771,7 +3779,12 @@ export const PutScriptResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3771
3779
  export const putScript = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3772
3780
  input: PutScriptRequest,
3773
3781
  output: PutScriptResponse,
3774
- errors: [InvalidRoute, InvalidWorkerScript, DurableObjectMustBeSqlite],
3782
+ errors: [
3783
+ DuplicateMigrationTarget,
3784
+ InvalidRoute,
3785
+ InvalidWorkerScript,
3786
+ DurableObjectMustBeSqlite,
3787
+ ],
3775
3788
  }));
3776
3789
  export const DeleteScriptRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3777
3790
  scriptName: Schema.String.pipe(T.HttpPath("scriptName")),