@distilled.cloud/cloudflare 0.5.5 → 0.6.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.
@@ -78,6 +78,12 @@ export class WorkerNotFound extends Schema.TaggedErrorClass<WorkerNotFound>()(
78
78
  ) {}
79
79
  T.applyErrorMatchers(WorkerNotFound, [{ code: 10007 }, { code: 10013 }]);
80
80
 
81
+ export class WorkerVersionNotFound extends Schema.TaggedErrorClass<WorkerVersionNotFound>()(
82
+ "WorkerVersionNotFound",
83
+ { code: Schema.Number, message: Schema.String },
84
+ ) {}
85
+ T.applyErrorMatchers(WorkerVersionNotFound, [{ code: 10071 }]);
86
+
81
87
  // =============================================================================
82
88
  // AccountSetting
83
89
  // =============================================================================
@@ -1444,7 +1450,10 @@ export const GetBetaWorkerVersionResponse =
1444
1450
  T.ResponsePath("result"),
1445
1451
  ) as unknown as Schema.Schema<GetBetaWorkerVersionResponse>;
1446
1452
 
1447
- export type GetBetaWorkerVersionError = DefaultErrors | WorkerNotFound;
1453
+ export type GetBetaWorkerVersionError =
1454
+ | DefaultErrors
1455
+ | WorkerNotFound
1456
+ | WorkerVersionNotFound;
1448
1457
 
1449
1458
  export const getBetaWorkerVersion: API.OperationMethod<
1450
1459
  GetBetaWorkerVersionRequest,
@@ -1454,7 +1463,7 @@ export const getBetaWorkerVersion: API.OperationMethod<
1454
1463
  > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1455
1464
  input: GetBetaWorkerVersionRequest,
1456
1465
  output: GetBetaWorkerVersionResponse,
1457
- errors: [WorkerNotFound],
1466
+ errors: [WorkerNotFound, WorkerVersionNotFound],
1458
1467
  }));
1459
1468
 
1460
1469
  export interface ListBetaWorkerVersionsRequest {
@@ -3447,7 +3456,10 @@ export const DeleteBetaWorkerVersionResponse =
3447
3456
  success: Schema.Literal(true),
3448
3457
  }) as unknown as Schema.Schema<DeleteBetaWorkerVersionResponse>;
3449
3458
 
3450
- export type DeleteBetaWorkerVersionError = DefaultErrors | WorkerNotFound;
3459
+ export type DeleteBetaWorkerVersionError =
3460
+ | DefaultErrors
3461
+ | WorkerNotFound
3462
+ | WorkerVersionNotFound;
3451
3463
 
3452
3464
  export const deleteBetaWorkerVersion: API.OperationMethod<
3453
3465
  DeleteBetaWorkerVersionRequest,
@@ -3457,7 +3469,7 @@ export const deleteBetaWorkerVersion: API.OperationMethod<
3457
3469
  > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3458
3470
  input: DeleteBetaWorkerVersionRequest,
3459
3471
  output: DeleteBetaWorkerVersionResponse,
3460
- errors: [WorkerNotFound],
3472
+ errors: [WorkerNotFound, WorkerVersionNotFound],
3461
3473
  }));
3462
3474
 
3463
3475
  // =============================================================================
@@ -7810,7 +7822,10 @@ export const DeleteScriptDeploymentResponse =
7810
7822
  success: Schema.Literal(true),
7811
7823
  }) as unknown as Schema.Schema<DeleteScriptDeploymentResponse>;
7812
7824
 
7813
- export type DeleteScriptDeploymentError = DefaultErrors | WorkerNotFound;
7825
+ export type DeleteScriptDeploymentError =
7826
+ | DefaultErrors
7827
+ | WorkerNotFound
7828
+ | DeploymentNotFound;
7814
7829
 
7815
7830
  export const deleteScriptDeployment: API.OperationMethod<
7816
7831
  DeleteScriptDeploymentRequest,
@@ -7820,7 +7835,7 @@ export const deleteScriptDeployment: API.OperationMethod<
7820
7835
  > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
7821
7836
  input: DeleteScriptDeploymentRequest,
7822
7837
  output: DeleteScriptDeploymentResponse,
7823
- errors: [WorkerNotFound],
7838
+ errors: [WorkerNotFound, DeploymentNotFound],
7824
7839
  }));
7825
7840
 
7826
7841
  // =============================================================================