@distilled.cloud/cloudflare 0.7.10 → 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.
|
|
3
|
+
"version": "0.7.11",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/alchemy-run/distilled",
|
|
@@ -63,7 +63,7 @@
|
|
|
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.
|
|
66
|
+
"@distilled.cloud/core": "0.7.11",
|
|
67
67
|
"effect": "4.0.0-beta.43"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
package/src/services/workers.ts
CHANGED
|
@@ -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 =
|
|
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 {
|