@distilled.cloud/cloudflare 0.19.0 → 0.19.2

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.
Files changed (51) hide show
  1. package/lib/schemas.d.ts +7 -8
  2. package/lib/schemas.d.ts.map +1 -1
  3. package/lib/schemas.js +9 -12
  4. package/lib/schemas.js.map +1 -1
  5. package/lib/services/custom-pages.d.ts +40 -13
  6. package/lib/services/custom-pages.d.ts.map +1 -1
  7. package/lib/services/custom-pages.js +68 -15
  8. package/lib/services/custom-pages.js.map +1 -1
  9. package/lib/services/firewall.d.ts +66 -23
  10. package/lib/services/firewall.d.ts.map +1 -1
  11. package/lib/services/firewall.js +120 -26
  12. package/lib/services/firewall.js.map +1 -1
  13. package/lib/services/intel.d.ts +2 -0
  14. package/lib/services/intel.d.ts.map +1 -1
  15. package/lib/services/intel.js +2 -0
  16. package/lib/services/intel.js.map +1 -1
  17. package/lib/services/logpush.d.ts +157 -64
  18. package/lib/services/logpush.d.ts.map +1 -1
  19. package/lib/services/logpush.js +292 -63
  20. package/lib/services/logpush.js.map +1 -1
  21. package/lib/services/r2.d.ts +29 -2
  22. package/lib/services/r2.d.ts.map +1 -1
  23. package/lib/services/r2.js +20 -6
  24. package/lib/services/r2.js.map +1 -1
  25. package/lib/services/rulesets.d.ts +204 -69
  26. package/lib/services/rulesets.d.ts.map +1 -1
  27. package/lib/services/rulesets.js +5077 -4705
  28. package/lib/services/rulesets.js.map +1 -1
  29. package/lib/services/security-center.d.ts +66 -19
  30. package/lib/services/security-center.d.ts.map +1 -1
  31. package/lib/services/security-center.js +128 -22
  32. package/lib/services/security-center.js.map +1 -1
  33. package/lib/services/waiting-rooms.d.ts +14 -3
  34. package/lib/services/waiting-rooms.d.ts.map +1 -1
  35. package/lib/services/waiting-rooms.js +25 -7
  36. package/lib/services/waiting-rooms.js.map +1 -1
  37. package/lib/services/zero-trust.d.ts +579 -204
  38. package/lib/services/zero-trust.d.ts.map +1 -1
  39. package/lib/services/zero-trust.js +1159 -268
  40. package/lib/services/zero-trust.js.map +1 -1
  41. package/package.json +2 -2
  42. package/src/schemas.ts +19 -17
  43. package/src/services/custom-pages.ts +170 -66
  44. package/src/services/firewall.ts +300 -121
  45. package/src/services/intel.ts +4 -0
  46. package/src/services/logpush.ts +798 -372
  47. package/src/services/r2.ts +66 -9
  48. package/src/services/rulesets.ts +9882 -9033
  49. package/src/services/security-center.ts +247 -63
  50. package/src/services/waiting-rooms.ts +49 -11
  51. package/src/services/zero-trust.ts +4097 -2417
package/lib/schemas.d.ts CHANGED
@@ -1,21 +1,20 @@
1
1
  /**
2
2
  * Common schemas for Cloudflare API types.
3
3
  *
4
- * Includes file upload schemas for multipart form-data operations.
4
+ * Cloudflare-specific schemas live here. The cloud-agnostic raw-binary HTTP
5
+ * body schemas (`BinaryBodySchema`, `BinaryStreamResponseSchema`,
6
+ * `Uint8ArraySchema`, etc.) live in `@distilled.cloud/core/schemas` and are
7
+ * re-exported below for convenience.
5
8
  */
6
9
  import * as Schema from "effect/Schema";
10
+ export { ArrayBufferSchema, BinaryBodySchema, BinaryStreamResponseSchema, BlobSchema, ReadableStreamSchema, StreamSchema, Uint8ArraySchema, type BinaryBody, } from "@distilled.cloud/core/schemas";
7
11
  /**
8
12
  * Schema for File objects (browser File API).
9
13
  *
10
- * Used for multipart form-data file uploads.
14
+ * Used for multipart form-data file uploads (e.g. Workers script bundles,
15
+ * Pages assets, brand-protection submissions).
11
16
  */
12
17
  export declare const FileSchema: Schema.declare<File, File>;
13
- /**
14
- * Schema for Blob objects.
15
- *
16
- * Used for binary data uploads.
17
- */
18
- export declare const BlobSchema: Schema.declare<Blob, Blob>;
19
18
  /**
20
19
  * Schema for uploadable content (File or Blob).
21
20
  *
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAMxC;;;;GAIG;AACH,eAAO,MAAM,UAAU,4BAOtB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,4BAOtB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,iFAAyC,CAAC;AAEvE;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,CAAC"}
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,0BAA0B,EAC1B,UAAU,EACV,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,KAAK,UAAU,GAChB,MAAM,+BAA+B,CAAC;AAMvC;;;;;GAKG;AACH,eAAO,MAAM,UAAU,4BAOtB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,iFAAyC,CAAC;AAEvE;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,CAAC"}
package/lib/schemas.js CHANGED
@@ -1,30 +1,27 @@
1
1
  /**
2
2
  * Common schemas for Cloudflare API types.
3
3
  *
4
- * Includes file upload schemas for multipart form-data operations.
4
+ * Cloudflare-specific schemas live here. The cloud-agnostic raw-binary HTTP
5
+ * body schemas (`BinaryBodySchema`, `BinaryStreamResponseSchema`,
6
+ * `Uint8ArraySchema`, etc.) live in `@distilled.cloud/core/schemas` and are
7
+ * re-exported below for convenience.
5
8
  */
6
9
  import * as Schema from "effect/Schema";
10
+ import { BlobSchema } from "@distilled.cloud/core/schemas";
11
+ export { ArrayBufferSchema, BinaryBodySchema, BinaryStreamResponseSchema, BlobSchema, ReadableStreamSchema, StreamSchema, Uint8ArraySchema, } from "@distilled.cloud/core/schemas";
7
12
  // =============================================================================
8
- // File Upload Schemas
13
+ // File Upload Schemas (multipart form-data)
9
14
  // =============================================================================
10
15
  /**
11
16
  * Schema for File objects (browser File API).
12
17
  *
13
- * Used for multipart form-data file uploads.
18
+ * Used for multipart form-data file uploads (e.g. Workers script bundles,
19
+ * Pages assets, brand-protection submissions).
14
20
  */
15
21
  export const FileSchema = Schema.declare((input) => typeof File !== "undefined" && input instanceof File, {
16
22
  identifier: "File",
17
23
  description: "A File object for upload",
18
24
  });
19
- /**
20
- * Schema for Blob objects.
21
- *
22
- * Used for binary data uploads.
23
- */
24
- export const BlobSchema = Schema.declare((input) => typeof Blob !== "undefined" && input instanceof Blob, {
25
- identifier: "Blob",
26
- description: "A Blob object for upload",
27
- });
28
25
  /**
29
26
  * Schema for uploadable content (File or Blob).
30
27
  *
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,gFAAgF;AAChF,sBAAsB;AACtB,gFAAgF;AAEhF;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,CACtC,CAAC,KAAK,EAAiB,EAAE,CACvB,OAAO,IAAI,KAAK,WAAW,IAAI,KAAK,YAAY,IAAI,EACtD;IACE,UAAU,EAAE,MAAM;IAClB,WAAW,EAAE,0BAA0B;CACxC,CACF,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,CACtC,CAAC,KAAK,EAAiB,EAAE,CACvB,OAAO,IAAI,KAAK,WAAW,IAAI,KAAK,YAAY,IAAI,EACtD;IACE,UAAU,EAAE,MAAM;IAClB,WAAW,EAAE,0BAA0B;CACxC,CACF,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,0BAA0B,EAC1B,UAAU,EACV,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,GAEjB,MAAM,+BAA+B,CAAC;AAEvC,gFAAgF;AAChF,4CAA4C;AAC5C,gFAAgF;AAEhF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,CACtC,CAAC,KAAK,EAAiB,EAAE,CACvB,OAAO,IAAI,KAAK,WAAW,IAAI,KAAK,YAAY,IAAI,EACtD;IACE,UAAU,EAAE,MAAM;IAClB,WAAW,EAAE,0BAA0B;CACxC,CACF,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC"}
@@ -9,10 +9,19 @@ import type * as HttpClient from "effect/unstable/http/HttpClient";
9
9
  import * as API from "../client/api.ts";
10
10
  import type { Credentials } from "../credentials.ts";
11
11
  import { type DefaultErrors } from "../errors.ts";
12
- export interface GetCustomPageRequest {
12
+ interface GetCustomPageBaseRequest {
13
13
  identifier: "1000_errors" | "500_errors" | "basic_challenge" | "country_challenge" | "ip_block" | "managed_challenge" | "ratelimit_block" | "under_attack" | "waf_block" | "waf_challenge";
14
14
  }
15
- export declare const GetCustomPageRequest: Schema.Schema<GetCustomPageRequest>;
15
+ export interface GetCustomPageForAccountRequest extends GetCustomPageBaseRequest {
16
+ /** Path param: The Account ID to use for this endpoint. */
17
+ accountId: string;
18
+ }
19
+ export interface GetCustomPageForZoneRequest extends GetCustomPageBaseRequest {
20
+ /** Path param: The Zone ID to use for this endpoint. */
21
+ zoneId: string;
22
+ }
23
+ export declare const GetCustomPageForAccountRequest: Schema.Schema<GetCustomPageForAccountRequest>;
24
+ export declare const GetCustomPageForZoneRequest: Schema.Schema<GetCustomPageForZoneRequest>;
16
25
  export interface GetCustomPageResponse {
17
26
  id?: string | null;
18
27
  createdOn?: string | null;
@@ -27,10 +36,20 @@ export interface GetCustomPageResponse {
27
36
  }
28
37
  export declare const GetCustomPageResponse: Schema.Schema<GetCustomPageResponse>;
29
38
  export type GetCustomPageError = DefaultErrors;
30
- export declare const getCustomPage: API.OperationMethod<GetCustomPageRequest, GetCustomPageResponse, GetCustomPageError, Credentials | HttpClient.HttpClient>;
31
- export interface ListCustomPagesRequest {
39
+ export declare const getCustomPageForAccount: API.OperationMethod<GetCustomPageForAccountRequest, GetCustomPageResponse, GetCustomPageError, Credentials | HttpClient.HttpClient>;
40
+ export declare const getCustomPageForZone: API.OperationMethod<GetCustomPageForZoneRequest, GetCustomPageResponse, GetCustomPageError, Credentials | HttpClient.HttpClient>;
41
+ interface ListCustomPagesBaseRequest {
42
+ }
43
+ export interface ListCustomPagesForAccountRequest extends ListCustomPagesBaseRequest {
44
+ /** Path param: The Account ID to use for this endpoint. */
45
+ accountId: string;
32
46
  }
33
- export declare const ListCustomPagesRequest: Schema.Schema<ListCustomPagesRequest>;
47
+ export interface ListCustomPagesForZoneRequest extends ListCustomPagesBaseRequest {
48
+ /** Path param: The Zone ID to use for this endpoint. */
49
+ zoneId: string;
50
+ }
51
+ export declare const ListCustomPagesForAccountRequest: Schema.Schema<ListCustomPagesForAccountRequest>;
52
+ export declare const ListCustomPagesForZoneRequest: Schema.Schema<ListCustomPagesForZoneRequest>;
34
53
  export interface ListCustomPagesResponse {
35
54
  result: {
36
55
  id?: string | null;
@@ -45,19 +64,25 @@ export interface ListCustomPagesResponse {
45
64
  }
46
65
  export declare const ListCustomPagesResponse: Schema.Schema<ListCustomPagesResponse>;
47
66
  export type ListCustomPagesError = DefaultErrors;
48
- export declare const listCustomPages: API.PaginatedOperationMethod<ListCustomPagesRequest, ListCustomPagesResponse, ListCustomPagesError, Credentials | HttpClient.HttpClient>;
49
- export interface PutCustomPageRequest {
67
+ export declare const listCustomPagesForAccount: API.PaginatedOperationMethod<ListCustomPagesForAccountRequest, ListCustomPagesResponse, ListCustomPagesError, Credentials | HttpClient.HttpClient>;
68
+ export declare const listCustomPagesForZone: API.PaginatedOperationMethod<ListCustomPagesForZoneRequest, ListCustomPagesResponse, ListCustomPagesError, Credentials | HttpClient.HttpClient>;
69
+ interface PutCustomPageBaseRequest {
50
70
  identifier: "1000_errors" | "500_errors" | "basic_challenge" | "country_challenge" | "ip_block" | "managed_challenge" | "ratelimit_block" | "under_attack" | "waf_block" | "waf_challenge";
51
- /** Path param: The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */
52
- accountId?: string;
53
- /** Path param: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */
54
- zoneId?: string;
55
71
  /** Body param: The custom page state. */
56
72
  state: "default" | "customized";
57
73
  /** Body param: The URL associated with the custom page. */
58
74
  url: string;
59
75
  }
60
- export declare const PutCustomPageRequest: Schema.Schema<PutCustomPageRequest>;
76
+ export interface PutCustomPageForAccountRequest extends PutCustomPageBaseRequest {
77
+ /** Path param: The Account ID to use for this endpoint. */
78
+ accountId: string;
79
+ }
80
+ export interface PutCustomPageForZoneRequest extends PutCustomPageBaseRequest {
81
+ /** Path param: The Zone ID to use for this endpoint. */
82
+ zoneId: string;
83
+ }
84
+ export declare const PutCustomPageForAccountRequest: Schema.Schema<PutCustomPageForAccountRequest>;
85
+ export declare const PutCustomPageForZoneRequest: Schema.Schema<PutCustomPageForZoneRequest>;
61
86
  export interface PutCustomPageResponse {
62
87
  id?: string | null;
63
88
  createdOn?: string | null;
@@ -72,5 +97,7 @@ export interface PutCustomPageResponse {
72
97
  }
73
98
  export declare const PutCustomPageResponse: Schema.Schema<PutCustomPageResponse>;
74
99
  export type PutCustomPageError = DefaultErrors;
75
- export declare const putCustomPage: API.OperationMethod<PutCustomPageRequest, PutCustomPageResponse, PutCustomPageError, Credentials | HttpClient.HttpClient>;
100
+ export declare const putCustomPageForAccount: API.OperationMethod<PutCustomPageForAccountRequest, PutCustomPageResponse, PutCustomPageError, Credentials | HttpClient.HttpClient>;
101
+ export declare const putCustomPageForZone: API.OperationMethod<PutCustomPageForZoneRequest, PutCustomPageResponse, PutCustomPageError, Credentials | HttpClient.HttpClient>;
102
+ export {};
76
103
  //# sourceMappingURL=custom-pages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"custom-pages.d.ts","sourceRoot":"","sources":["../../src/services/custom-pages.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,UAAU,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,GAAG,MAAM,kBAAkB,CAAC;AAExC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAMlD,MAAM,WAAW,oBAAoB;IACnC,UAAU,EACN,aAAa,GACb,YAAY,GACZ,iBAAiB,GACjB,mBAAmB,GACnB,UAAU,GACV,mBAAmB,GACnB,iBAAiB,GACjB,cAAc,GACd,WAAW,GACX,eAAe,CAAC;CACrB;AAED,eAAO,MAAM,oBAAoB,EAkBjB,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;AAEpD,MAAM,WAAW,qBAAqB;IACpC,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACjC,6BAA6B;IAC7B,KAAK,CA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GAAG,IAAI,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACjC,6BAA6B;IAC7B,KAAK,CAAC,EAAE,SAAS,GAAG,YAAY,GAAG,IAAI,CAAC;IACxC,+CAA+C;IAC/C,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,qBAAqB,EA4BhB,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAEvD,MAAM,MAAM,kBAAkB,GAAG,aAAa,CAAC;AAE/C,eAAO,MAAM,uBAAuB,EAAE,GAAG,CAAC,eAAe,CACvD,8BAA8B,EAC9B,qBAAqB,EACrB,kBAAkB,EAClB,WAAW,GAAG,UAAU,CAAC,UAAU,CAKlC,CAAC;AAEJ,eAAO,MAAM,oBAAoB,EAAE,GAAG,CAAC,eAAe,CACpD,2BAA2B,EAC3B,qBAAqB,EACrB,kBAAkB,EAClB,WAAW,GAAG,UAAU,CAAC,UAAU,CAKlC,CAAC"}
@@ -8,7 +8,10 @@ import * as Schema from "effect/Schema";
8
8
  import * as API from "../client/api.js";
9
9
  import * as T from "../traits.js";
10
10
  import {} from "../errors.js";
11
- export const GetCustomPageRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
11
+ // =============================================================================
12
+ // CustomPage
13
+ // =============================================================================
14
+ const GetCustomPageBaseFields = {
12
15
  identifier: Schema.Literals([
13
16
  "1000_errors",
14
17
  "500_errors",
@@ -21,9 +24,22 @@ export const GetCustomPageRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
21
24
  "waf_block",
22
25
  "waf_challenge",
23
26
  ]).pipe(T.HttpPath("identifier")),
27
+ };
28
+ export const GetCustomPageForAccountRequest =
29
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
30
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
31
+ ...GetCustomPageBaseFields,
24
32
  }).pipe(T.Http({
25
33
  method: "GET",
26
- path: "/{accountOrZone}/{accountOrZoneId}/custom_pages/{identifier}",
34
+ path: "/accounts/{account_id}/custom_pages/{identifier}",
35
+ }));
36
+ export const GetCustomPageForZoneRequest =
37
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
38
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
39
+ ...GetCustomPageBaseFields,
40
+ }).pipe(T.Http({
41
+ method: "GET",
42
+ path: "/zones/{zone_id}/custom_pages/{identifier}",
27
43
  }));
28
44
  export const GetCustomPageResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
29
45
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -46,15 +62,27 @@ export const GetCustomPageResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
46
62
  url: "url",
47
63
  }))
48
64
  .pipe(T.ResponsePath("result"));
49
- export const getCustomPage = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
50
- input: GetCustomPageRequest,
65
+ export const getCustomPageForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
66
+ input: GetCustomPageForAccountRequest,
51
67
  output: GetCustomPageResponse,
52
68
  errors: [],
53
69
  }));
54
- export const ListCustomPagesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
55
- method: "GET",
56
- path: "/{accountOrZone}/{accountOrZoneId}/custom_pages",
70
+ export const getCustomPageForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
71
+ input: GetCustomPageForZoneRequest,
72
+ output: GetCustomPageResponse,
73
+ errors: [],
57
74
  }));
75
+ const ListCustomPagesBaseFields = {};
76
+ export const ListCustomPagesForAccountRequest =
77
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
78
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
79
+ ...ListCustomPagesBaseFields,
80
+ }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/custom_pages" }));
81
+ export const ListCustomPagesForZoneRequest =
82
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
83
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
84
+ ...ListCustomPagesBaseFields,
85
+ }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/custom_pages" }));
58
86
  export const ListCustomPagesResponse =
59
87
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
60
88
  result: Schema.Array(Schema.Struct({
@@ -80,8 +108,8 @@ export const ListCustomPagesResponse =
80
108
  url: "url",
81
109
  }))),
82
110
  });
83
- export const listCustomPages = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
84
- input: ListCustomPagesRequest,
111
+ export const listCustomPagesForAccount = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
112
+ input: ListCustomPagesForAccountRequest,
85
113
  output: ListCustomPagesResponse,
86
114
  errors: [],
87
115
  pagination: {
@@ -89,7 +117,16 @@ export const listCustomPages = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(()
89
117
  items: "result",
90
118
  },
91
119
  }));
92
- export const PutCustomPageRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
120
+ export const listCustomPagesForZone = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
121
+ input: ListCustomPagesForZoneRequest,
122
+ output: ListCustomPagesResponse,
123
+ errors: [],
124
+ pagination: {
125
+ mode: "single",
126
+ items: "result",
127
+ },
128
+ }));
129
+ const PutCustomPageBaseFields = {
93
130
  identifier: Schema.Literals([
94
131
  "1000_errors",
95
132
  "500_errors",
@@ -102,13 +139,24 @@ export const PutCustomPageRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
102
139
  "waf_block",
103
140
  "waf_challenge",
104
141
  ]).pipe(T.HttpPath("identifier")),
105
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
106
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
107
142
  state: Schema.Literals(["default", "customized"]),
108
143
  url: Schema.String,
144
+ };
145
+ export const PutCustomPageForAccountRequest =
146
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
147
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
148
+ ...PutCustomPageBaseFields,
109
149
  }).pipe(T.Http({
110
150
  method: "PUT",
111
- path: "/{accountOrZone}/{accountOrZoneId}/custom_pages/{identifier}",
151
+ path: "/accounts/{account_id}/custom_pages/{identifier}",
152
+ }));
153
+ export const PutCustomPageForZoneRequest =
154
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
155
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
156
+ ...PutCustomPageBaseFields,
157
+ }).pipe(T.Http({
158
+ method: "PUT",
159
+ path: "/zones/{zone_id}/custom_pages/{identifier}",
112
160
  }));
113
161
  export const PutCustomPageResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
114
162
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -131,8 +179,13 @@ export const PutCustomPageResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
131
179
  url: "url",
132
180
  }))
133
181
  .pipe(T.ResponsePath("result"));
134
- export const putCustomPage = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
135
- input: PutCustomPageRequest,
182
+ export const putCustomPageForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
183
+ input: PutCustomPageForAccountRequest,
184
+ output: PutCustomPageResponse,
185
+ errors: [],
186
+ }));
187
+ export const putCustomPageForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
188
+ input: PutCustomPageForZoneRequest,
136
189
  output: PutCustomPageResponse,
137
190
  errors: [],
138
191
  }));
@@ -1 +1 @@
1
- {"version":3,"file":"custom-pages.js","sourceRoot":"","sources":["../../src/services/custom-pages.ts"],"names":[],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AM,oBAAoB,GAK7B,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC9C,KAAK,EAAE,2BAA2B;IAClC,MAAM,EAAE,qBAAqB;IAC7B,MAAM,EAAE,EAAE;CACX,CAAC,CAAC,CAAC"}
@@ -9,10 +9,19 @@ import type * as HttpClient from "effect/unstable/http/HttpClient";
9
9
  import * as API from "../client/api.ts";
10
10
  import type { Credentials } from "../credentials.ts";
11
11
  import { type DefaultErrors } from "../errors.ts";
12
- export interface GetAccessRuleRequest {
12
+ interface GetAccessRuleBaseRequest {
13
13
  ruleId: string;
14
14
  }
15
- export declare const GetAccessRuleRequest: Schema.Schema<GetAccessRuleRequest>;
15
+ export interface GetAccessRuleForAccountRequest extends GetAccessRuleBaseRequest {
16
+ /** Path param: The Account ID to use for this endpoint. */
17
+ accountId: string;
18
+ }
19
+ export interface GetAccessRuleForZoneRequest extends GetAccessRuleBaseRequest {
20
+ /** Path param: The Zone ID to use for this endpoint. */
21
+ zoneId: string;
22
+ }
23
+ export declare const GetAccessRuleForAccountRequest: Schema.Schema<GetAccessRuleForAccountRequest>;
24
+ export declare const GetAccessRuleForZoneRequest: Schema.Schema<GetAccessRuleForZoneRequest>;
16
25
  export interface GetAccessRuleResponse {
17
26
  /** The unique identifier of the IP Access rule. */
18
27
  id: string;
@@ -52,10 +61,20 @@ export interface GetAccessRuleResponse {
52
61
  }
53
62
  export declare const GetAccessRuleResponse: Schema.Schema<GetAccessRuleResponse>;
54
63
  export type GetAccessRuleError = DefaultErrors;
55
- export declare const getAccessRule: API.OperationMethod<GetAccessRuleRequest, GetAccessRuleResponse, GetAccessRuleError, Credentials | HttpClient.HttpClient>;
56
- export interface ListAccessRulesRequest {
64
+ export declare const getAccessRuleForAccount: API.OperationMethod<GetAccessRuleForAccountRequest, GetAccessRuleResponse, GetAccessRuleError, Credentials | HttpClient.HttpClient>;
65
+ export declare const getAccessRuleForZone: API.OperationMethod<GetAccessRuleForZoneRequest, GetAccessRuleResponse, GetAccessRuleError, Credentials | HttpClient.HttpClient>;
66
+ interface ListAccessRulesBaseRequest {
67
+ }
68
+ export interface ListAccessRulesForAccountRequest extends ListAccessRulesBaseRequest {
69
+ /** Path param: The Account ID to use for this endpoint. */
70
+ accountId: string;
57
71
  }
58
- export declare const ListAccessRulesRequest: Schema.Schema<ListAccessRulesRequest>;
72
+ export interface ListAccessRulesForZoneRequest extends ListAccessRulesBaseRequest {
73
+ /** Path param: The Zone ID to use for this endpoint. */
74
+ zoneId: string;
75
+ }
76
+ export declare const ListAccessRulesForAccountRequest: Schema.Schema<ListAccessRulesForAccountRequest>;
77
+ export declare const ListAccessRulesForZoneRequest: Schema.Schema<ListAccessRulesForZoneRequest>;
59
78
  export interface ListAccessRulesResponse {
60
79
  result: {
61
80
  id: string;
@@ -95,12 +114,9 @@ export interface ListAccessRulesResponse {
95
114
  }
96
115
  export declare const ListAccessRulesResponse: Schema.Schema<ListAccessRulesResponse>;
97
116
  export type ListAccessRulesError = DefaultErrors;
98
- export declare const listAccessRules: API.PaginatedOperationMethod<ListAccessRulesRequest, ListAccessRulesResponse, ListAccessRulesError, Credentials | HttpClient.HttpClient>;
99
- export interface CreateAccessRuleRequest {
100
- /** Path param: The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */
101
- accountId?: string;
102
- /** Path param: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */
103
- zoneId?: string;
117
+ export declare const listAccessRulesForAccount: API.PaginatedOperationMethod<ListAccessRulesForAccountRequest, ListAccessRulesResponse, ListAccessRulesError, Credentials | HttpClient.HttpClient>;
118
+ export declare const listAccessRulesForZone: API.PaginatedOperationMethod<ListAccessRulesForZoneRequest, ListAccessRulesResponse, ListAccessRulesError, Credentials | HttpClient.HttpClient>;
119
+ interface CreateAccessRuleBaseRequest {
104
120
  /** Body param: The rule configuration. */
105
121
  configuration: {
106
122
  target?: "ip";
@@ -123,7 +139,16 @@ export interface CreateAccessRuleRequest {
123
139
  /** Body param: An informative summary of the rule, typically used as a reminder or explanation. */
124
140
  notes?: string;
125
141
  }
126
- export declare const CreateAccessRuleRequest: Schema.Schema<CreateAccessRuleRequest>;
142
+ export interface CreateAccessRuleForAccountRequest extends CreateAccessRuleBaseRequest {
143
+ /** Path param: The Account ID to use for this endpoint. */
144
+ accountId: string;
145
+ }
146
+ export interface CreateAccessRuleForZoneRequest extends CreateAccessRuleBaseRequest {
147
+ /** Path param: The Zone ID to use for this endpoint. */
148
+ zoneId: string;
149
+ }
150
+ export declare const CreateAccessRuleForAccountRequest: Schema.Schema<CreateAccessRuleForAccountRequest>;
151
+ export declare const CreateAccessRuleForZoneRequest: Schema.Schema<CreateAccessRuleForZoneRequest>;
127
152
  export interface CreateAccessRuleResponse {
128
153
  /** The unique identifier of the IP Access rule. */
129
154
  id: string;
@@ -163,13 +188,10 @@ export interface CreateAccessRuleResponse {
163
188
  }
164
189
  export declare const CreateAccessRuleResponse: Schema.Schema<CreateAccessRuleResponse>;
165
190
  export type CreateAccessRuleError = DefaultErrors;
166
- export declare const createAccessRule: API.OperationMethod<CreateAccessRuleRequest, CreateAccessRuleResponse, CreateAccessRuleError, Credentials | HttpClient.HttpClient>;
167
- export interface PatchAccessRuleRequest {
191
+ export declare const createAccessRuleForAccount: API.OperationMethod<CreateAccessRuleForAccountRequest, CreateAccessRuleResponse, CreateAccessRuleError, Credentials | HttpClient.HttpClient>;
192
+ export declare const createAccessRuleForZone: API.OperationMethod<CreateAccessRuleForZoneRequest, CreateAccessRuleResponse, CreateAccessRuleError, Credentials | HttpClient.HttpClient>;
193
+ interface PatchAccessRuleBaseRequest {
168
194
  ruleId: string;
169
- /** Path param: The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */
170
- accountId?: string;
171
- /** Path param: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */
172
- zoneId?: string;
173
195
  /** Body param: The rule configuration. */
174
196
  configuration: {
175
197
  target?: "ip";
@@ -192,7 +214,16 @@ export interface PatchAccessRuleRequest {
192
214
  /** Body param: An informative summary of the rule, typically used as a reminder or explanation. */
193
215
  notes?: string;
194
216
  }
195
- export declare const PatchAccessRuleRequest: Schema.Schema<PatchAccessRuleRequest>;
217
+ export interface PatchAccessRuleForAccountRequest extends PatchAccessRuleBaseRequest {
218
+ /** Path param: The Account ID to use for this endpoint. */
219
+ accountId: string;
220
+ }
221
+ export interface PatchAccessRuleForZoneRequest extends PatchAccessRuleBaseRequest {
222
+ /** Path param: The Zone ID to use for this endpoint. */
223
+ zoneId: string;
224
+ }
225
+ export declare const PatchAccessRuleForAccountRequest: Schema.Schema<PatchAccessRuleForAccountRequest>;
226
+ export declare const PatchAccessRuleForZoneRequest: Schema.Schema<PatchAccessRuleForZoneRequest>;
196
227
  export interface PatchAccessRuleResponse {
197
228
  /** The unique identifier of the IP Access rule. */
198
229
  id: string;
@@ -232,18 +263,29 @@ export interface PatchAccessRuleResponse {
232
263
  }
233
264
  export declare const PatchAccessRuleResponse: Schema.Schema<PatchAccessRuleResponse>;
234
265
  export type PatchAccessRuleError = DefaultErrors;
235
- export declare const patchAccessRule: API.OperationMethod<PatchAccessRuleRequest, PatchAccessRuleResponse, PatchAccessRuleError, Credentials | HttpClient.HttpClient>;
236
- export interface DeleteAccessRuleRequest {
266
+ export declare const patchAccessRuleForAccount: API.OperationMethod<PatchAccessRuleForAccountRequest, PatchAccessRuleResponse, PatchAccessRuleError, Credentials | HttpClient.HttpClient>;
267
+ export declare const patchAccessRuleForZone: API.OperationMethod<PatchAccessRuleForZoneRequest, PatchAccessRuleResponse, PatchAccessRuleError, Credentials | HttpClient.HttpClient>;
268
+ interface DeleteAccessRuleBaseRequest {
237
269
  ruleId: string;
238
270
  }
239
- export declare const DeleteAccessRuleRequest: Schema.Schema<DeleteAccessRuleRequest>;
271
+ export interface DeleteAccessRuleForAccountRequest extends DeleteAccessRuleBaseRequest {
272
+ /** Path param: The Account ID to use for this endpoint. */
273
+ accountId: string;
274
+ }
275
+ export interface DeleteAccessRuleForZoneRequest extends DeleteAccessRuleBaseRequest {
276
+ /** Path param: The Zone ID to use for this endpoint. */
277
+ zoneId: string;
278
+ }
279
+ export declare const DeleteAccessRuleForAccountRequest: Schema.Schema<DeleteAccessRuleForAccountRequest>;
280
+ export declare const DeleteAccessRuleForZoneRequest: Schema.Schema<DeleteAccessRuleForZoneRequest>;
240
281
  export interface DeleteAccessRuleResponse {
241
282
  /** Defines an identifier. */
242
283
  id: string;
243
284
  }
244
285
  export declare const DeleteAccessRuleResponse: Schema.Schema<DeleteAccessRuleResponse>;
245
286
  export type DeleteAccessRuleError = DefaultErrors;
246
- export declare const deleteAccessRule: API.OperationMethod<DeleteAccessRuleRequest, DeleteAccessRuleResponse, DeleteAccessRuleError, Credentials | HttpClient.HttpClient>;
287
+ export declare const deleteAccessRuleForAccount: API.OperationMethod<DeleteAccessRuleForAccountRequest, DeleteAccessRuleResponse, DeleteAccessRuleError, Credentials | HttpClient.HttpClient>;
288
+ export declare const deleteAccessRuleForZone: API.OperationMethod<DeleteAccessRuleForZoneRequest, DeleteAccessRuleResponse, DeleteAccessRuleError, Credentials | HttpClient.HttpClient>;
247
289
  export interface GetLockdownRequest {
248
290
  lockDownsId: string;
249
291
  /** Defines an identifier. */
@@ -1306,4 +1348,5 @@ export type PatchWafPackageRuleResponse = {
1306
1348
  export declare const PatchWafPackageRuleResponse: Schema.Schema<PatchWafPackageRuleResponse>;
1307
1349
  export type PatchWafPackageRuleError = DefaultErrors;
1308
1350
  export declare const patchWafPackageRule: API.OperationMethod<PatchWafPackageRuleRequest, PatchWafPackageRuleResponse, PatchWafPackageRuleError, Credentials | HttpClient.HttpClient>;
1351
+ export {};
1309
1352
  //# sourceMappingURL=firewall.d.ts.map