@distilled.cloud/cloudflare 0.7.9 → 0.7.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@distilled.cloud/cloudflare",
3
- "version": "0.7.9",
3
+ "version": "0.7.11",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/alchemy-run/distilled",
@@ -63,12 +63,12 @@
63
63
  "specs:update": "git -C specs/cloudflare-typescript fetch && git -C specs/cloudflare-typescript checkout main && git -C specs/cloudflare-typescript pull"
64
64
  },
65
65
  "dependencies": {
66
- "@distilled.cloud/core": "0.7.9",
67
- "effect": "4.0.0-beta.38"
66
+ "@distilled.cloud/core": "0.7.11",
67
+ "effect": "4.0.0-beta.43"
68
68
  },
69
69
  "devDependencies": {
70
- "@effect/platform-node": "4.0.0-beta.38",
71
- "@effect/vitest": "4.0.0-beta.38",
70
+ "@effect/platform-node": "4.0.0-beta.43",
71
+ "@effect/vitest": "4.0.0-beta.43",
72
72
  "@types/bun": "^1.3.0",
73
73
  "@types/node": "^25.3.5",
74
74
  "dotenv": "^16.5.0",
@@ -77,6 +77,6 @@
77
77
  "vitest": "^3.2.3"
78
78
  },
79
79
  "peerDependencies": {
80
- "effect": "4.0.0-beta.38"
80
+ "effect": "4.0.0-beta.43"
81
81
  }
82
82
  }
@@ -62,6 +62,12 @@ export class InvalidWorkerScript extends Schema.TaggedErrorClass<InvalidWorkerSc
62
62
  ) {}
63
63
  T.applyErrorMatchers(InvalidWorkerScript, [{ code: 10068 }]);
64
64
 
65
+ export class QueueConsumerConflict extends Schema.TaggedErrorClass<QueueConsumerConflict>()(
66
+ "QueueConsumerConflict",
67
+ { code: Schema.Number, message: Schema.String },
68
+ ) {}
69
+ T.applyErrorMatchers(QueueConsumerConflict, [{ code: 10064 }]);
70
+
65
71
  export class RouteNotFound extends Schema.TaggedErrorClass<RouteNotFound>()(
66
72
  "RouteNotFound",
67
73
  { code: Schema.Number, message: Schema.String },
@@ -74,6 +80,12 @@ export class SecretNotFound extends Schema.TaggedErrorClass<SecretNotFound>()(
74
80
  ) {}
75
81
  T.applyErrorMatchers(SecretNotFound, [{ code: 10056 }]);
76
82
 
83
+ export class ServiceBindingConflict extends Schema.TaggedErrorClass<ServiceBindingConflict>()(
84
+ "ServiceBindingConflict",
85
+ { code: Schema.Number, message: Schema.String },
86
+ ) {}
87
+ T.applyErrorMatchers(ServiceBindingConflict, [{ code: 10142 }]);
88
+
77
89
  export class VersionNotFound extends Schema.TaggedErrorClass<VersionNotFound>()(
78
90
  "VersionNotFound",
79
91
  { code: Schema.Number, message: Schema.String },
@@ -7846,7 +7858,11 @@ export const DeleteScriptResponse =
7846
7858
  T.ResponsePath("result"),
7847
7859
  ) as unknown as Schema.Schema<DeleteScriptResponse>;
7848
7860
 
7849
- export type DeleteScriptError = DefaultErrors | WorkerNotFound;
7861
+ export type DeleteScriptError =
7862
+ | DefaultErrors
7863
+ | WorkerNotFound
7864
+ | QueueConsumerConflict
7865
+ | ServiceBindingConflict;
7850
7866
 
7851
7867
  export const deleteScript: API.OperationMethod<
7852
7868
  DeleteScriptRequest,
@@ -7856,7 +7872,7 @@ export const deleteScript: API.OperationMethod<
7856
7872
  > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
7857
7873
  input: DeleteScriptRequest,
7858
7874
  output: DeleteScriptResponse,
7859
- errors: [WorkerNotFound],
7875
+ errors: [WorkerNotFound, QueueConsumerConflict, ServiceBindingConflict],
7860
7876
  }));
7861
7877
 
7862
7878
  export interface SearchScriptRequest {