@distilled.cloud/cloudflare 0.26.0 → 0.26.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.
@@ -56,6 +56,14 @@ export class UnentitledMitigationAction extends T.applyErrorMatchers(
56
56
  [{ code: 11400 }],
57
57
  ) {}
58
58
 
59
+ export class ZonePurged extends T.applyErrorMatchers(
60
+ Schema.TaggedErrorClass<ZonePurged>()("ZonePurged", {
61
+ code: Schema.Number,
62
+ message: Schema.String,
63
+ }),
64
+ [{ message: { includes: "has been purged" } }],
65
+ ) {}
66
+
59
67
  // =============================================================================
60
68
  // Schema
61
69
  // =============================================================================
@@ -232,7 +240,7 @@ export const ListSchemasResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
232
240
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
233
241
  ) as unknown as Schema.Schema<ListSchemasResponse>;
234
242
 
235
- export type ListSchemasError = DefaultErrors;
243
+ export type ListSchemasError = DefaultErrors | ZonePurged | Forbidden;
236
244
 
237
245
  export const listSchemas: API.PaginatedOperationMethod<
238
246
  ListSchemasRequest,
@@ -242,7 +250,7 @@ export const listSchemas: API.PaginatedOperationMethod<
242
250
  > = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
243
251
  input: ListSchemasRequest,
244
252
  output: ListSchemasResponse,
245
- errors: [],
253
+ errors: [ZonePurged, Forbidden],
246
254
  pagination: {
247
255
  mode: "page",
248
256
  inputToken: "page",