@distilled.cloud/cloudflare 0.24.5 → 0.24.6
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.24.
|
|
3
|
+
"version": "0.24.6",
|
|
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.24.
|
|
66
|
+
"@distilled.cloud/core": "0.24.6"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@effect/platform-node": ">=4.0.0-beta.66 || >=4.0.0",
|
|
@@ -28,6 +28,14 @@ export class GatewayNotFound extends Schema.TaggedErrorClass<GatewayNotFound>()(
|
|
|
28
28
|
) {}
|
|
29
29
|
T.applyErrorMatchers(GatewayNotFound, [{ code: 7002 }]);
|
|
30
30
|
|
|
31
|
+
export class NoManualTopup extends Schema.TaggedErrorClass<NoManualTopup>()(
|
|
32
|
+
"NoManualTopup",
|
|
33
|
+
{ code: Schema.Number, message: Schema.String },
|
|
34
|
+
) {}
|
|
35
|
+
T.applyErrorMatchers(NoManualTopup, [
|
|
36
|
+
{ code: 1000, message: { includes: "NO_MANUAL_TOPUP" } },
|
|
37
|
+
]);
|
|
38
|
+
|
|
31
39
|
// =============================================================================
|
|
32
40
|
// AiGateway
|
|
33
41
|
// =============================================================================
|
|
@@ -3511,7 +3519,7 @@ export const CreateBillingSpendingLimitResponse =
|
|
|
3511
3519
|
T.ResponsePath("result"),
|
|
3512
3520
|
) as unknown as Schema.Schema<CreateBillingSpendingLimitResponse>;
|
|
3513
3521
|
|
|
3514
|
-
export type CreateBillingSpendingLimitError = DefaultErrors;
|
|
3522
|
+
export type CreateBillingSpendingLimitError = DefaultErrors | NoManualTopup;
|
|
3515
3523
|
|
|
3516
3524
|
export const createBillingSpendingLimit: API.OperationMethod<
|
|
3517
3525
|
CreateBillingSpendingLimitRequest,
|
|
@@ -3521,7 +3529,7 @@ export const createBillingSpendingLimit: API.OperationMethod<
|
|
|
3521
3529
|
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3522
3530
|
input: CreateBillingSpendingLimitRequest,
|
|
3523
3531
|
output: CreateBillingSpendingLimitResponse,
|
|
3524
|
-
errors: [],
|
|
3532
|
+
errors: [NoManualTopup],
|
|
3525
3533
|
}));
|
|
3526
3534
|
|
|
3527
3535
|
export interface DeleteBillingSpendingLimitRequest {
|