@distilled.cloud/cloudflare 0.19.0 → 0.19.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.
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 +200 -65
  26. package/lib/services/rulesets.d.ts.map +1 -1
  27. package/lib/services/rulesets.js +371 -75
  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 +3991 -3426
  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
@@ -9,9 +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 GetPhasRequest {
12
+ interface GetPhasBaseRequest {
13
+ rulesetPhase: string;
13
14
  }
14
- export declare const GetPhasRequest: Schema.Schema<GetPhasRequest>;
15
+ export interface GetPhasForAccountRequest extends GetPhasBaseRequest {
16
+ /** Path param: The Account ID to use for this endpoint. */
17
+ accountId: string;
18
+ }
19
+ export interface GetPhasForZoneRequest extends GetPhasBaseRequest {
20
+ /** Path param: The Zone ID to use for this endpoint. */
21
+ zoneId: string;
22
+ }
23
+ export declare const GetPhasForAccountRequest: Schema.Schema<GetPhasForAccountRequest>;
24
+ export declare const GetPhasForZoneRequest: Schema.Schema<GetPhasForZoneRequest>;
15
25
  export interface GetPhasResponse {
16
26
  /** The unique ID of the ruleset. */
17
27
  id: string;
@@ -731,12 +741,10 @@ export interface GetPhasResponse {
731
741
  }
732
742
  export declare const GetPhasResponse: Schema.Schema<GetPhasResponse>;
733
743
  export type GetPhasError = DefaultErrors;
734
- export declare const getPhas: API.OperationMethod<GetPhasRequest, GetPhasResponse, GetPhasError, Credentials | HttpClient.HttpClient>;
735
- export interface PutPhasRequest {
736
- /** Path param: The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */
737
- accountId?: string;
738
- /** Path param: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */
739
- zoneId?: string;
744
+ export declare const getPhasForAccount: API.OperationMethod<GetPhasForAccountRequest, GetPhasResponse, GetPhasError, Credentials | HttpClient.HttpClient>;
745
+ export declare const getPhasForZone: API.OperationMethod<GetPhasForZoneRequest, GetPhasResponse, GetPhasError, Credentials | HttpClient.HttpClient>;
746
+ interface PutPhasBaseRequest {
747
+ rulesetPhase: string;
740
748
  /** Body param: An informative description of the ruleset. */
741
749
  description?: string;
742
750
  /** Body param: The human-readable name of the ruleset. */
@@ -1387,7 +1395,16 @@ export interface PutPhasRequest {
1387
1395
  ref?: string;
1388
1396
  })[];
1389
1397
  }
1390
- export declare const PutPhasRequest: Schema.Schema<PutPhasRequest>;
1398
+ export interface PutPhasForAccountRequest extends PutPhasBaseRequest {
1399
+ /** Path param: The Account ID to use for this endpoint. */
1400
+ accountId: string;
1401
+ }
1402
+ export interface PutPhasForZoneRequest extends PutPhasBaseRequest {
1403
+ /** Path param: The Zone ID to use for this endpoint. */
1404
+ zoneId: string;
1405
+ }
1406
+ export declare const PutPhasForAccountRequest: Schema.Schema<PutPhasForAccountRequest>;
1407
+ export declare const PutPhasForZoneRequest: Schema.Schema<PutPhasForZoneRequest>;
1391
1408
  export interface PutPhasResponse {
1392
1409
  /** The unique ID of the ruleset. */
1393
1410
  id: string;
@@ -2107,11 +2124,22 @@ export interface PutPhasResponse {
2107
2124
  }
2108
2125
  export declare const PutPhasResponse: Schema.Schema<PutPhasResponse>;
2109
2126
  export type PutPhasError = DefaultErrors;
2110
- export declare const putPhas: API.OperationMethod<PutPhasRequest, PutPhasResponse, PutPhasError, Credentials | HttpClient.HttpClient>;
2111
- export interface GetPhasVersionRequest {
2127
+ export declare const putPhasForAccount: API.OperationMethod<PutPhasForAccountRequest, PutPhasResponse, PutPhasError, Credentials | HttpClient.HttpClient>;
2128
+ export declare const putPhasForZone: API.OperationMethod<PutPhasForZoneRequest, PutPhasResponse, PutPhasError, Credentials | HttpClient.HttpClient>;
2129
+ interface GetPhasVersionBaseRequest {
2112
2130
  rulesetVersion: string;
2131
+ rulesetPhase: string;
2113
2132
  }
2114
- export declare const GetPhasVersionRequest: Schema.Schema<GetPhasVersionRequest>;
2133
+ export interface GetPhasVersionForAccountRequest extends GetPhasVersionBaseRequest {
2134
+ /** Path param: The Account ID to use for this endpoint. */
2135
+ accountId: string;
2136
+ }
2137
+ export interface GetPhasVersionForZoneRequest extends GetPhasVersionBaseRequest {
2138
+ /** Path param: The Zone ID to use for this endpoint. */
2139
+ zoneId: string;
2140
+ }
2141
+ export declare const GetPhasVersionForAccountRequest: Schema.Schema<GetPhasVersionForAccountRequest>;
2142
+ export declare const GetPhasVersionForZoneRequest: Schema.Schema<GetPhasVersionForZoneRequest>;
2115
2143
  export interface GetPhasVersionResponse {
2116
2144
  /** The unique ID of the ruleset. */
2117
2145
  id: string;
@@ -2831,10 +2859,21 @@ export interface GetPhasVersionResponse {
2831
2859
  }
2832
2860
  export declare const GetPhasVersionResponse: Schema.Schema<GetPhasVersionResponse>;
2833
2861
  export type GetPhasVersionError = DefaultErrors;
2834
- export declare const getPhasVersion: API.OperationMethod<GetPhasVersionRequest, GetPhasVersionResponse, GetPhasVersionError, Credentials | HttpClient.HttpClient>;
2835
- export interface ListPhasVersionsRequest {
2862
+ export declare const getPhasVersionForAccount: API.OperationMethod<GetPhasVersionForAccountRequest, GetPhasVersionResponse, GetPhasVersionError, Credentials | HttpClient.HttpClient>;
2863
+ export declare const getPhasVersionForZone: API.OperationMethod<GetPhasVersionForZoneRequest, GetPhasVersionResponse, GetPhasVersionError, Credentials | HttpClient.HttpClient>;
2864
+ interface ListPhasVersionsBaseRequest {
2865
+ rulesetPhase: string;
2866
+ }
2867
+ export interface ListPhasVersionsForAccountRequest extends ListPhasVersionsBaseRequest {
2868
+ /** Path param: The Account ID to use for this endpoint. */
2869
+ accountId: string;
2870
+ }
2871
+ export interface ListPhasVersionsForZoneRequest extends ListPhasVersionsBaseRequest {
2872
+ /** Path param: The Zone ID to use for this endpoint. */
2873
+ zoneId: string;
2836
2874
  }
2837
- export declare const ListPhasVersionsRequest: Schema.Schema<ListPhasVersionsRequest>;
2875
+ export declare const ListPhasVersionsForAccountRequest: Schema.Schema<ListPhasVersionsForAccountRequest>;
2876
+ export declare const ListPhasVersionsForZoneRequest: Schema.Schema<ListPhasVersionsForZoneRequest>;
2838
2877
  export interface ListPhasVersionsResponse {
2839
2878
  result: {
2840
2879
  id: string;
@@ -2848,13 +2887,10 @@ export interface ListPhasVersionsResponse {
2848
2887
  }
2849
2888
  export declare const ListPhasVersionsResponse: Schema.Schema<ListPhasVersionsResponse>;
2850
2889
  export type ListPhasVersionsError = DefaultErrors;
2851
- export declare const listPhasVersions: API.PaginatedOperationMethod<ListPhasVersionsRequest, ListPhasVersionsResponse, ListPhasVersionsError, Credentials | HttpClient.HttpClient>;
2852
- export interface CreateRuleRequest {
2890
+ export declare const listPhasVersionsForAccount: API.PaginatedOperationMethod<ListPhasVersionsForAccountRequest, ListPhasVersionsResponse, ListPhasVersionsError, Credentials | HttpClient.HttpClient>;
2891
+ export declare const listPhasVersionsForZone: API.PaginatedOperationMethod<ListPhasVersionsForZoneRequest, ListPhasVersionsResponse, ListPhasVersionsError, Credentials | HttpClient.HttpClient>;
2892
+ interface CreateRuleBaseRequest {
2853
2893
  rulesetId: string;
2854
- /** Path param: The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */
2855
- accountId?: string;
2856
- /** Path param: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */
2857
- zoneId?: string;
2858
2894
  /** Body param: The unique ID of the rule. */
2859
2895
  id?: string;
2860
2896
  /** Body param: The action to perform when the rule matches. */
@@ -2904,7 +2940,16 @@ export interface CreateRuleRequest {
2904
2940
  /** Body param: The reference of the rule (the rule's ID by default). */
2905
2941
  ref?: string;
2906
2942
  }
2907
- export declare const CreateRuleRequest: Schema.Schema<CreateRuleRequest>;
2943
+ export interface CreateRuleForAccountRequest extends CreateRuleBaseRequest {
2944
+ /** Path param: The Account ID to use for this endpoint. */
2945
+ accountId: string;
2946
+ }
2947
+ export interface CreateRuleForZoneRequest extends CreateRuleBaseRequest {
2948
+ /** Path param: The Zone ID to use for this endpoint. */
2949
+ zoneId: string;
2950
+ }
2951
+ export declare const CreateRuleForAccountRequest: Schema.Schema<CreateRuleForAccountRequest>;
2952
+ export declare const CreateRuleForZoneRequest: Schema.Schema<CreateRuleForZoneRequest>;
2908
2953
  export interface CreateRuleResponse {
2909
2954
  /** The unique ID of the ruleset. */
2910
2955
  id: string;
@@ -3624,14 +3669,11 @@ export interface CreateRuleResponse {
3624
3669
  }
3625
3670
  export declare const CreateRuleResponse: Schema.Schema<CreateRuleResponse>;
3626
3671
  export type CreateRuleError = DefaultErrors;
3627
- export declare const createRule: API.OperationMethod<CreateRuleRequest, CreateRuleResponse, CreateRuleError, Credentials | HttpClient.HttpClient>;
3628
- export interface PatchRuleRequest {
3672
+ export declare const createRuleForAccount: API.OperationMethod<CreateRuleForAccountRequest, CreateRuleResponse, CreateRuleError, Credentials | HttpClient.HttpClient>;
3673
+ export declare const createRuleForZone: API.OperationMethod<CreateRuleForZoneRequest, CreateRuleResponse, CreateRuleError, Credentials | HttpClient.HttpClient>;
3674
+ interface PatchRuleBaseRequest {
3629
3675
  rulesetId: string;
3630
3676
  ruleId: string;
3631
- /** Path param: The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */
3632
- accountId?: string;
3633
- /** Path param: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */
3634
- zoneId?: string;
3635
3677
  /** Body param: The unique ID of the rule. */
3636
3678
  id?: string;
3637
3679
  /** Body param: The action to perform when the rule matches. */
@@ -3681,7 +3723,16 @@ export interface PatchRuleRequest {
3681
3723
  /** Body param: The reference of the rule (the rule's ID by default). */
3682
3724
  ref?: string;
3683
3725
  }
3684
- export declare const PatchRuleRequest: Schema.Schema<PatchRuleRequest>;
3726
+ export interface PatchRuleForAccountRequest extends PatchRuleBaseRequest {
3727
+ /** Path param: The Account ID to use for this endpoint. */
3728
+ accountId: string;
3729
+ }
3730
+ export interface PatchRuleForZoneRequest extends PatchRuleBaseRequest {
3731
+ /** Path param: The Zone ID to use for this endpoint. */
3732
+ zoneId: string;
3733
+ }
3734
+ export declare const PatchRuleForAccountRequest: Schema.Schema<PatchRuleForAccountRequest>;
3735
+ export declare const PatchRuleForZoneRequest: Schema.Schema<PatchRuleForZoneRequest>;
3685
3736
  export interface PatchRuleResponse {
3686
3737
  /** The unique ID of the ruleset. */
3687
3738
  id: string;
@@ -4401,12 +4452,22 @@ export interface PatchRuleResponse {
4401
4452
  }
4402
4453
  export declare const PatchRuleResponse: Schema.Schema<PatchRuleResponse>;
4403
4454
  export type PatchRuleError = DefaultErrors;
4404
- export declare const patchRule: API.OperationMethod<PatchRuleRequest, PatchRuleResponse, PatchRuleError, Credentials | HttpClient.HttpClient>;
4405
- export interface DeleteRuleRequest {
4455
+ export declare const patchRuleForAccount: API.OperationMethod<PatchRuleForAccountRequest, PatchRuleResponse, PatchRuleError, Credentials | HttpClient.HttpClient>;
4456
+ export declare const patchRuleForZone: API.OperationMethod<PatchRuleForZoneRequest, PatchRuleResponse, PatchRuleError, Credentials | HttpClient.HttpClient>;
4457
+ interface DeleteRuleBaseRequest {
4406
4458
  rulesetId: string;
4407
4459
  ruleId: string;
4408
4460
  }
4409
- export declare const DeleteRuleRequest: Schema.Schema<DeleteRuleRequest>;
4461
+ export interface DeleteRuleForAccountRequest extends DeleteRuleBaseRequest {
4462
+ /** Path param: The Account ID to use for this endpoint. */
4463
+ accountId: string;
4464
+ }
4465
+ export interface DeleteRuleForZoneRequest extends DeleteRuleBaseRequest {
4466
+ /** Path param: The Zone ID to use for this endpoint. */
4467
+ zoneId: string;
4468
+ }
4469
+ export declare const DeleteRuleForAccountRequest: Schema.Schema<DeleteRuleForAccountRequest>;
4470
+ export declare const DeleteRuleForZoneRequest: Schema.Schema<DeleteRuleForZoneRequest>;
4410
4471
  export interface DeleteRuleResponse {
4411
4472
  /** The unique ID of the ruleset. */
4412
4473
  id: string;
@@ -5126,11 +5187,21 @@ export interface DeleteRuleResponse {
5126
5187
  }
5127
5188
  export declare const DeleteRuleResponse: Schema.Schema<DeleteRuleResponse>;
5128
5189
  export type DeleteRuleError = DefaultErrors;
5129
- export declare const deleteRule: API.OperationMethod<DeleteRuleRequest, DeleteRuleResponse, DeleteRuleError, Credentials | HttpClient.HttpClient>;
5130
- export interface GetRulesetRequest {
5190
+ export declare const deleteRuleForAccount: API.OperationMethod<DeleteRuleForAccountRequest, DeleteRuleResponse, DeleteRuleError, Credentials | HttpClient.HttpClient>;
5191
+ export declare const deleteRuleForZone: API.OperationMethod<DeleteRuleForZoneRequest, DeleteRuleResponse, DeleteRuleError, Credentials | HttpClient.HttpClient>;
5192
+ interface GetRulesetBaseRequest {
5131
5193
  rulesetId: string;
5132
5194
  }
5133
- export declare const GetRulesetRequest: Schema.Schema<GetRulesetRequest>;
5195
+ export interface GetRulesetForAccountRequest extends GetRulesetBaseRequest {
5196
+ /** Path param: The Account ID to use for this endpoint. */
5197
+ accountId: string;
5198
+ }
5199
+ export interface GetRulesetForZoneRequest extends GetRulesetBaseRequest {
5200
+ /** Path param: The Zone ID to use for this endpoint. */
5201
+ zoneId: string;
5202
+ }
5203
+ export declare const GetRulesetForAccountRequest: Schema.Schema<GetRulesetForAccountRequest>;
5204
+ export declare const GetRulesetForZoneRequest: Schema.Schema<GetRulesetForZoneRequest>;
5134
5205
  export interface GetRulesetResponse {
5135
5206
  /** The unique ID of the ruleset. */
5136
5207
  id: string;
@@ -5850,10 +5921,20 @@ export interface GetRulesetResponse {
5850
5921
  }
5851
5922
  export declare const GetRulesetResponse: Schema.Schema<GetRulesetResponse>;
5852
5923
  export type GetRulesetError = DefaultErrors;
5853
- export declare const getRuleset: API.OperationMethod<GetRulesetRequest, GetRulesetResponse, GetRulesetError, Credentials | HttpClient.HttpClient>;
5854
- export interface ListRulesetsRequest {
5924
+ export declare const getRulesetForAccount: API.OperationMethod<GetRulesetForAccountRequest, GetRulesetResponse, GetRulesetError, Credentials | HttpClient.HttpClient>;
5925
+ export declare const getRulesetForZone: API.OperationMethod<GetRulesetForZoneRequest, GetRulesetResponse, GetRulesetError, Credentials | HttpClient.HttpClient>;
5926
+ interface ListRulesetsBaseRequest {
5927
+ }
5928
+ export interface ListRulesetsForAccountRequest extends ListRulesetsBaseRequest {
5929
+ /** Path param: The Account ID to use for this endpoint. */
5930
+ accountId: string;
5855
5931
  }
5856
- export declare const ListRulesetsRequest: Schema.Schema<ListRulesetsRequest>;
5932
+ export interface ListRulesetsForZoneRequest extends ListRulesetsBaseRequest {
5933
+ /** Path param: The Zone ID to use for this endpoint. */
5934
+ zoneId: string;
5935
+ }
5936
+ export declare const ListRulesetsForAccountRequest: Schema.Schema<ListRulesetsForAccountRequest>;
5937
+ export declare const ListRulesetsForZoneRequest: Schema.Schema<ListRulesetsForZoneRequest>;
5857
5938
  export interface ListRulesetsResponse {
5858
5939
  result: {
5859
5940
  id: string;
@@ -5872,12 +5953,9 @@ export interface ListRulesetsResponse {
5872
5953
  }
5873
5954
  export declare const ListRulesetsResponse: Schema.Schema<ListRulesetsResponse>;
5874
5955
  export type ListRulesetsError = DefaultErrors;
5875
- export declare const listRulesets: API.PaginatedOperationMethod<ListRulesetsRequest, ListRulesetsResponse, ListRulesetsError, Credentials | HttpClient.HttpClient>;
5876
- export interface CreateRulesetRequest {
5877
- /** Path param: The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */
5878
- accountId?: string;
5879
- /** Path param: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */
5880
- zoneId?: string;
5956
+ export declare const listRulesetsForAccount: API.PaginatedOperationMethod<ListRulesetsForAccountRequest, ListRulesetsResponse, ListRulesetsError, Credentials | HttpClient.HttpClient>;
5957
+ export declare const listRulesetsForZone: API.PaginatedOperationMethod<ListRulesetsForZoneRequest, ListRulesetsResponse, ListRulesetsError, Credentials | HttpClient.HttpClient>;
5958
+ interface CreateRulesetBaseRequest {
5881
5959
  /** Body param: The kind of the ruleset. */
5882
5960
  kind: "managed" | "custom" | "root" | "zone";
5883
5961
  /** Body param: The human-readable name of the ruleset. */
@@ -6532,7 +6610,16 @@ export interface CreateRulesetRequest {
6532
6610
  ref?: string;
6533
6611
  })[];
6534
6612
  }
6535
- export declare const CreateRulesetRequest: Schema.Schema<CreateRulesetRequest>;
6613
+ export interface CreateRulesetForAccountRequest extends CreateRulesetBaseRequest {
6614
+ /** Path param: The Account ID to use for this endpoint. */
6615
+ accountId: string;
6616
+ }
6617
+ export interface CreateRulesetForZoneRequest extends CreateRulesetBaseRequest {
6618
+ /** Path param: The Zone ID to use for this endpoint. */
6619
+ zoneId: string;
6620
+ }
6621
+ export declare const CreateRulesetForAccountRequest: Schema.Schema<CreateRulesetForAccountRequest>;
6622
+ export declare const CreateRulesetForZoneRequest: Schema.Schema<CreateRulesetForZoneRequest>;
6536
6623
  export interface CreateRulesetResponse {
6537
6624
  /** The unique ID of the ruleset. */
6538
6625
  id: string;
@@ -7252,13 +7339,10 @@ export interface CreateRulesetResponse {
7252
7339
  }
7253
7340
  export declare const CreateRulesetResponse: Schema.Schema<CreateRulesetResponse>;
7254
7341
  export type CreateRulesetError = DefaultErrors;
7255
- export declare const createRuleset: API.OperationMethod<CreateRulesetRequest, CreateRulesetResponse, CreateRulesetError, Credentials | HttpClient.HttpClient>;
7256
- export interface UpdateRulesetRequest {
7342
+ export declare const createRulesetForAccount: API.OperationMethod<CreateRulesetForAccountRequest, CreateRulesetResponse, CreateRulesetError, Credentials | HttpClient.HttpClient>;
7343
+ export declare const createRulesetForZone: API.OperationMethod<CreateRulesetForZoneRequest, CreateRulesetResponse, CreateRulesetError, Credentials | HttpClient.HttpClient>;
7344
+ interface UpdateRulesetBaseRequest {
7257
7345
  rulesetId: string;
7258
- /** Path param: The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */
7259
- accountId?: string;
7260
- /** Path param: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */
7261
- zoneId?: string;
7262
7346
  /** Body param: An informative description of the ruleset. */
7263
7347
  description?: string;
7264
7348
  /** Body param: The kind of the ruleset. */
@@ -7913,7 +7997,16 @@ export interface UpdateRulesetRequest {
7913
7997
  ref?: string;
7914
7998
  })[];
7915
7999
  }
7916
- export declare const UpdateRulesetRequest: Schema.Schema<UpdateRulesetRequest>;
8000
+ export interface UpdateRulesetForAccountRequest extends UpdateRulesetBaseRequest {
8001
+ /** Path param: The Account ID to use for this endpoint. */
8002
+ accountId: string;
8003
+ }
8004
+ export interface UpdateRulesetForZoneRequest extends UpdateRulesetBaseRequest {
8005
+ /** Path param: The Zone ID to use for this endpoint. */
8006
+ zoneId: string;
8007
+ }
8008
+ export declare const UpdateRulesetForAccountRequest: Schema.Schema<UpdateRulesetForAccountRequest>;
8009
+ export declare const UpdateRulesetForZoneRequest: Schema.Schema<UpdateRulesetForZoneRequest>;
7917
8010
  export interface UpdateRulesetResponse {
7918
8011
  /** The unique ID of the ruleset. */
7919
8012
  id: string;
@@ -8633,20 +8726,40 @@ export interface UpdateRulesetResponse {
8633
8726
  }
8634
8727
  export declare const UpdateRulesetResponse: Schema.Schema<UpdateRulesetResponse>;
8635
8728
  export type UpdateRulesetError = DefaultErrors;
8636
- export declare const updateRuleset: API.OperationMethod<UpdateRulesetRequest, UpdateRulesetResponse, UpdateRulesetError, Credentials | HttpClient.HttpClient>;
8637
- export interface DeleteRulesetRequest {
8729
+ export declare const updateRulesetForAccount: API.OperationMethod<UpdateRulesetForAccountRequest, UpdateRulesetResponse, UpdateRulesetError, Credentials | HttpClient.HttpClient>;
8730
+ export declare const updateRulesetForZone: API.OperationMethod<UpdateRulesetForZoneRequest, UpdateRulesetResponse, UpdateRulesetError, Credentials | HttpClient.HttpClient>;
8731
+ interface DeleteRulesetBaseRequest {
8638
8732
  rulesetId: string;
8639
8733
  }
8640
- export declare const DeleteRulesetRequest: Schema.Schema<DeleteRulesetRequest>;
8734
+ export interface DeleteRulesetForAccountRequest extends DeleteRulesetBaseRequest {
8735
+ /** Path param: The Account ID to use for this endpoint. */
8736
+ accountId: string;
8737
+ }
8738
+ export interface DeleteRulesetForZoneRequest extends DeleteRulesetBaseRequest {
8739
+ /** Path param: The Zone ID to use for this endpoint. */
8740
+ zoneId: string;
8741
+ }
8742
+ export declare const DeleteRulesetForAccountRequest: Schema.Schema<DeleteRulesetForAccountRequest>;
8743
+ export declare const DeleteRulesetForZoneRequest: Schema.Schema<DeleteRulesetForZoneRequest>;
8641
8744
  export type DeleteRulesetResponse = unknown;
8642
8745
  export declare const DeleteRulesetResponse: Schema.Schema<DeleteRulesetResponse>;
8643
8746
  export type DeleteRulesetError = DefaultErrors;
8644
- export declare const deleteRuleset: API.OperationMethod<DeleteRulesetRequest, DeleteRulesetResponse, DeleteRulesetError, Credentials | HttpClient.HttpClient>;
8645
- export interface GetVersionRequest {
8747
+ export declare const deleteRulesetForAccount: API.OperationMethod<DeleteRulesetForAccountRequest, DeleteRulesetResponse, DeleteRulesetError, Credentials | HttpClient.HttpClient>;
8748
+ export declare const deleteRulesetForZone: API.OperationMethod<DeleteRulesetForZoneRequest, DeleteRulesetResponse, DeleteRulesetError, Credentials | HttpClient.HttpClient>;
8749
+ interface GetVersionBaseRequest {
8646
8750
  rulesetId: string;
8647
8751
  rulesetVersion: string;
8648
8752
  }
8649
- export declare const GetVersionRequest: Schema.Schema<GetVersionRequest>;
8753
+ export interface GetVersionForAccountRequest extends GetVersionBaseRequest {
8754
+ /** Path param: The Account ID to use for this endpoint. */
8755
+ accountId: string;
8756
+ }
8757
+ export interface GetVersionForZoneRequest extends GetVersionBaseRequest {
8758
+ /** Path param: The Zone ID to use for this endpoint. */
8759
+ zoneId: string;
8760
+ }
8761
+ export declare const GetVersionForAccountRequest: Schema.Schema<GetVersionForAccountRequest>;
8762
+ export declare const GetVersionForZoneRequest: Schema.Schema<GetVersionForZoneRequest>;
8650
8763
  export interface GetVersionResponse {
8651
8764
  /** The unique ID of the ruleset. */
8652
8765
  id: string;
@@ -9366,11 +9479,21 @@ export interface GetVersionResponse {
9366
9479
  }
9367
9480
  export declare const GetVersionResponse: Schema.Schema<GetVersionResponse>;
9368
9481
  export type GetVersionError = DefaultErrors;
9369
- export declare const getVersion: API.OperationMethod<GetVersionRequest, GetVersionResponse, GetVersionError, Credentials | HttpClient.HttpClient>;
9370
- export interface ListVersionsRequest {
9482
+ export declare const getVersionForAccount: API.OperationMethod<GetVersionForAccountRequest, GetVersionResponse, GetVersionError, Credentials | HttpClient.HttpClient>;
9483
+ export declare const getVersionForZone: API.OperationMethod<GetVersionForZoneRequest, GetVersionResponse, GetVersionError, Credentials | HttpClient.HttpClient>;
9484
+ interface ListVersionsBaseRequest {
9371
9485
  rulesetId: string;
9372
9486
  }
9373
- export declare const ListVersionsRequest: Schema.Schema<ListVersionsRequest>;
9487
+ export interface ListVersionsForAccountRequest extends ListVersionsBaseRequest {
9488
+ /** Path param: The Account ID to use for this endpoint. */
9489
+ accountId: string;
9490
+ }
9491
+ export interface ListVersionsForZoneRequest extends ListVersionsBaseRequest {
9492
+ /** Path param: The Zone ID to use for this endpoint. */
9493
+ zoneId: string;
9494
+ }
9495
+ export declare const ListVersionsForAccountRequest: Schema.Schema<ListVersionsForAccountRequest>;
9496
+ export declare const ListVersionsForZoneRequest: Schema.Schema<ListVersionsForZoneRequest>;
9374
9497
  export interface ListVersionsResponse {
9375
9498
  result: {
9376
9499
  id: string;
@@ -9384,14 +9507,26 @@ export interface ListVersionsResponse {
9384
9507
  }
9385
9508
  export declare const ListVersionsResponse: Schema.Schema<ListVersionsResponse>;
9386
9509
  export type ListVersionsError = DefaultErrors;
9387
- export declare const listVersions: API.PaginatedOperationMethod<ListVersionsRequest, ListVersionsResponse, ListVersionsError, Credentials | HttpClient.HttpClient>;
9388
- export interface DeleteVersionRequest {
9510
+ export declare const listVersionsForAccount: API.PaginatedOperationMethod<ListVersionsForAccountRequest, ListVersionsResponse, ListVersionsError, Credentials | HttpClient.HttpClient>;
9511
+ export declare const listVersionsForZone: API.PaginatedOperationMethod<ListVersionsForZoneRequest, ListVersionsResponse, ListVersionsError, Credentials | HttpClient.HttpClient>;
9512
+ interface DeleteVersionBaseRequest {
9389
9513
  rulesetId: string;
9390
9514
  rulesetVersion: string;
9391
9515
  }
9392
- export declare const DeleteVersionRequest: Schema.Schema<DeleteVersionRequest>;
9516
+ export interface DeleteVersionForAccountRequest extends DeleteVersionBaseRequest {
9517
+ /** Path param: The Account ID to use for this endpoint. */
9518
+ accountId: string;
9519
+ }
9520
+ export interface DeleteVersionForZoneRequest extends DeleteVersionBaseRequest {
9521
+ /** Path param: The Zone ID to use for this endpoint. */
9522
+ zoneId: string;
9523
+ }
9524
+ export declare const DeleteVersionForAccountRequest: Schema.Schema<DeleteVersionForAccountRequest>;
9525
+ export declare const DeleteVersionForZoneRequest: Schema.Schema<DeleteVersionForZoneRequest>;
9393
9526
  export type DeleteVersionResponse = unknown;
9394
9527
  export declare const DeleteVersionResponse: Schema.Schema<DeleteVersionResponse>;
9395
9528
  export type DeleteVersionError = DefaultErrors;
9396
- export declare const deleteVersion: API.OperationMethod<DeleteVersionRequest, DeleteVersionResponse, DeleteVersionError, Credentials | HttpClient.HttpClient>;
9529
+ export declare const deleteVersionForAccount: API.OperationMethod<DeleteVersionForAccountRequest, DeleteVersionResponse, DeleteVersionError, Credentials | HttpClient.HttpClient>;
9530
+ export declare const deleteVersionForZone: API.OperationMethod<DeleteVersionForZoneRequest, DeleteVersionResponse, DeleteVersionError, Credentials | HttpClient.HttpClient>;
9531
+ export {};
9397
9532
  //# sourceMappingURL=rulesets.d.ts.map