@vercel/sdk 1.6.3 → 1.6.4

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 (144) hide show
  1. package/README.md +2 -0
  2. package/bin/mcp-server.js +3504 -1244
  3. package/bin/mcp-server.js.map +28 -25
  4. package/docs/sdks/edgeconfig/README.md +2 -6
  5. package/docs/sdks/marketplace/README.md +2 -6
  6. package/docs/sdks/security/README.md +90 -0
  7. package/docs/sdks/webhooks/README.md +2 -6
  8. package/esm/__tests__/deployments.test.js +16 -1
  9. package/esm/__tests__/deployments.test.js.map +1 -1
  10. package/esm/__tests__/marketplace.test.js +7 -2
  11. package/esm/__tests__/marketplace.test.js.map +1 -1
  12. package/esm/__tests__/projects.test.js +4 -4
  13. package/esm/__tests__/projects.test.js.map +1 -1
  14. package/esm/__tests__/security.test.js +163 -3
  15. package/esm/__tests__/security.test.js.map +1 -1
  16. package/esm/funcs/projectsCreateProject.js +2 -2
  17. package/esm/funcs/projectsCreateProject.js.map +1 -1
  18. package/esm/funcs/securityPutFirewallConfig.d.ts +19 -0
  19. package/esm/funcs/securityPutFirewallConfig.d.ts.map +1 -0
  20. package/esm/funcs/securityPutFirewallConfig.js +88 -0
  21. package/esm/funcs/securityPutFirewallConfig.js.map +1 -0
  22. package/esm/lib/config.d.ts +3 -3
  23. package/esm/lib/config.js +3 -3
  24. package/esm/mcp-server/mcp-server.js +1 -1
  25. package/esm/mcp-server/server.d.ts.map +1 -1
  26. package/esm/mcp-server/server.js +3 -1
  27. package/esm/mcp-server/server.js.map +1 -1
  28. package/esm/mcp-server/tools/securityPutFirewallConfig.d.ts +7 -0
  29. package/esm/mcp-server/tools/securityPutFirewallConfig.d.ts.map +1 -0
  30. package/esm/mcp-server/tools/securityPutFirewallConfig.js +28 -0
  31. package/esm/mcp-server/tools/securityPutFirewallConfig.js.map +1 -0
  32. package/esm/models/authtoken.d.ts +6 -0
  33. package/esm/models/authtoken.d.ts.map +1 -1
  34. package/esm/models/authtoken.js +2 -0
  35. package/esm/models/authtoken.js.map +1 -1
  36. package/esm/models/authuser.d.ts +46 -0
  37. package/esm/models/authuser.d.ts.map +1 -1
  38. package/esm/models/authuser.js +28 -0
  39. package/esm/models/authuser.js.map +1 -1
  40. package/esm/models/canceldeploymentop.d.ts +274 -73
  41. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  42. package/esm/models/canceldeploymentop.js +270 -72
  43. package/esm/models/canceldeploymentop.js.map +1 -1
  44. package/esm/models/createdeploymentop.d.ts +274 -73
  45. package/esm/models/createdeploymentop.d.ts.map +1 -1
  46. package/esm/models/createdeploymentop.js +270 -72
  47. package/esm/models/createdeploymentop.js.map +1 -1
  48. package/esm/models/createprojectenvop.d.ts +12 -18
  49. package/esm/models/createprojectenvop.d.ts.map +1 -1
  50. package/esm/models/createprojectenvop.js +12 -12
  51. package/esm/models/createprojectenvop.js.map +1 -1
  52. package/esm/models/createprojectop.d.ts +175 -13
  53. package/esm/models/createprojectop.d.ts.map +1 -1
  54. package/esm/models/createprojectop.js +157 -6
  55. package/esm/models/createprojectop.js.map +1 -1
  56. package/esm/models/editprojectenvop.d.ts +4 -7
  57. package/esm/models/editprojectenvop.d.ts.map +1 -1
  58. package/esm/models/editprojectenvop.js +4 -4
  59. package/esm/models/editprojectenvop.js.map +1 -1
  60. package/esm/models/filterprojectenvsop.d.ts +18 -27
  61. package/esm/models/filterprojectenvsop.d.ts.map +1 -1
  62. package/esm/models/filterprojectenvsop.js +18 -18
  63. package/esm/models/filterprojectenvsop.js.map +1 -1
  64. package/esm/models/getdeploymentop.d.ts +574 -172
  65. package/esm/models/getdeploymentop.d.ts.map +1 -1
  66. package/esm/models/getdeploymentop.js +567 -171
  67. package/esm/models/getdeploymentop.js.map +1 -1
  68. package/esm/models/getfirewallconfigop.d.ts +214 -214
  69. package/esm/models/getfirewallconfigop.d.ts.map +1 -1
  70. package/esm/models/getfirewallconfigop.js +210 -231
  71. package/esm/models/getfirewallconfigop.js.map +1 -1
  72. package/esm/models/getprojectdomainsop.d.ts +198 -36
  73. package/esm/models/getprojectdomainsop.d.ts.map +1 -1
  74. package/esm/models/getprojectdomainsop.js +193 -32
  75. package/esm/models/getprojectdomainsop.js.map +1 -1
  76. package/esm/models/getprojectenvop.d.ts +10 -16
  77. package/esm/models/getprojectenvop.d.ts.map +1 -1
  78. package/esm/models/getprojectenvop.js +10 -10
  79. package/esm/models/getprojectenvop.js.map +1 -1
  80. package/esm/models/getprojectsop.d.ts +175 -13
  81. package/esm/models/getprojectsop.d.ts.map +1 -1
  82. package/esm/models/getprojectsop.js +156 -6
  83. package/esm/models/getprojectsop.js.map +1 -1
  84. package/esm/models/putfirewallconfigop.d.ts +2901 -0
  85. package/esm/models/putfirewallconfigop.d.ts.map +1 -0
  86. package/esm/models/putfirewallconfigop.js +2383 -0
  87. package/esm/models/putfirewallconfigop.js.map +1 -0
  88. package/esm/models/removeprojectenvop.d.ts +18 -27
  89. package/esm/models/removeprojectenvop.d.ts.map +1 -1
  90. package/esm/models/removeprojectenvop.js +18 -18
  91. package/esm/models/removeprojectenvop.js.map +1 -1
  92. package/esm/models/updatefirewallconfigop.d.ts +323 -323
  93. package/esm/models/updatefirewallconfigop.d.ts.map +1 -1
  94. package/esm/models/updatefirewallconfigop.js +379 -357
  95. package/esm/models/updatefirewallconfigop.js.map +1 -1
  96. package/esm/models/updateprojectdatacacheop.d.ts +183 -21
  97. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  98. package/esm/models/updateprojectdatacacheop.js +172 -18
  99. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  100. package/esm/models/updateprojectop.d.ts +175 -13
  101. package/esm/models/updateprojectop.d.ts.map +1 -1
  102. package/esm/models/updateprojectop.js +157 -6
  103. package/esm/models/updateprojectop.js.map +1 -1
  104. package/esm/models/userevent.d.ts +46 -19
  105. package/esm/models/userevent.d.ts.map +1 -1
  106. package/esm/models/userevent.js +34 -10
  107. package/esm/models/userevent.js.map +1 -1
  108. package/esm/sdk/security.d.ts +8 -0
  109. package/esm/sdk/security.d.ts.map +1 -1
  110. package/esm/sdk/security.js +10 -0
  111. package/esm/sdk/security.js.map +1 -1
  112. package/jsr.json +1 -1
  113. package/package.json +3 -3
  114. package/src/__tests__/deployments.test.ts +16 -1
  115. package/src/__tests__/marketplace.test.ts +7 -2
  116. package/src/__tests__/projects.test.ts +4 -4
  117. package/src/__tests__/security.test.ts +165 -5
  118. package/src/funcs/projectsCreateProject.ts +2 -2
  119. package/src/funcs/securityPutFirewallConfig.ts +194 -0
  120. package/src/lib/config.ts +3 -3
  121. package/src/mcp-server/mcp-server.ts +1 -1
  122. package/src/mcp-server/server.ts +3 -1
  123. package/src/mcp-server/tools/securityPutFirewallConfig.ts +37 -0
  124. package/src/models/authtoken.ts +2 -0
  125. package/src/models/authuser.ts +52 -0
  126. package/src/models/canceldeploymentop.ts +591 -148
  127. package/src/models/createdeploymentop.ts +616 -165
  128. package/src/models/createprojectenvop.ts +24 -30
  129. package/src/models/createprojectop.ts +336 -15
  130. package/src/models/editprojectenvop.ts +8 -11
  131. package/src/models/filterprojectenvsop.ts +36 -45
  132. package/src/models/getdeploymentop.ts +1288 -353
  133. package/src/models/getfirewallconfigop.ts +555 -410
  134. package/src/models/getprojectdomainsop.ts +470 -63
  135. package/src/models/getprojectenvop.ts +20 -26
  136. package/src/models/getprojectsop.ts +338 -16
  137. package/src/models/putfirewallconfigop.ts +4932 -0
  138. package/src/models/removeprojectenvop.ts +36 -45
  139. package/src/models/updatefirewallconfigop.ts +820 -612
  140. package/src/models/updateprojectdatacacheop.ts +353 -34
  141. package/src/models/updateprojectop.ts +336 -15
  142. package/src/models/userevent.ts +54 -29
  143. package/src/sdk/security.ts +22 -0
  144. package/vercel-spec.json +1375 -286
@@ -0,0 +1,4932 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import { ClosedEnum } from "../types/enums.js";
9
+ import { Result as SafeParseResult } from "../types/fp.js";
10
+ import { SDKValidationError } from "./sdkvalidationerror.js";
11
+
12
+ export const ManagedRulesAction = {
13
+ Log: "log",
14
+ Challenge: "challenge",
15
+ Deny: "deny",
16
+ } as const;
17
+ export type ManagedRulesAction = ClosedEnum<typeof ManagedRulesAction>;
18
+
19
+ export const PutFirewallConfigManagedRulesAction = {
20
+ Log: "log",
21
+ Challenge: "challenge",
22
+ Deny: "deny",
23
+ } as const;
24
+ export type PutFirewallConfigManagedRulesAction = ClosedEnum<
25
+ typeof PutFirewallConfigManagedRulesAction
26
+ >;
27
+
28
+ export type RuleGroups = {
29
+ active?: boolean | undefined;
30
+ action?: PutFirewallConfigManagedRulesAction | undefined;
31
+ };
32
+
33
+ export type ManagedRules1 = {
34
+ active: boolean;
35
+ action?: ManagedRulesAction | undefined;
36
+ ruleGroups?: { [k: string]: RuleGroups } | undefined;
37
+ };
38
+
39
+ export type ManagedRules = ManagedRules1;
40
+
41
+ export const PutFirewallConfigAction = {
42
+ Deny: "deny",
43
+ Log: "log",
44
+ } as const;
45
+ export type PutFirewallConfigAction = ClosedEnum<
46
+ typeof PutFirewallConfigAction
47
+ >;
48
+
49
+ /**
50
+ * Scanner Detection - Detect and prevent reconnaissance activities from network scanning tools.
51
+ */
52
+ export type Sd = {
53
+ active: boolean;
54
+ action: PutFirewallConfigAction;
55
+ };
56
+
57
+ export const PutFirewallConfigSecurityAction = {
58
+ Deny: "deny",
59
+ Log: "log",
60
+ } as const;
61
+ export type PutFirewallConfigSecurityAction = ClosedEnum<
62
+ typeof PutFirewallConfigSecurityAction
63
+ >;
64
+
65
+ /**
66
+ * Multipart Attack - Block attempts to bypass security controls using multipart/form-data encoding.
67
+ */
68
+ export type Ma = {
69
+ active: boolean;
70
+ action: PutFirewallConfigSecurityAction;
71
+ };
72
+
73
+ export const PutFirewallConfigSecurityRequestAction = {
74
+ Deny: "deny",
75
+ Log: "log",
76
+ } as const;
77
+ export type PutFirewallConfigSecurityRequestAction = ClosedEnum<
78
+ typeof PutFirewallConfigSecurityRequestAction
79
+ >;
80
+
81
+ /**
82
+ * Local File Inclusion Attack - Prevent unauthorized access to local files through web applications.
83
+ */
84
+ export type Lfi = {
85
+ active: boolean;
86
+ action: PutFirewallConfigSecurityRequestAction;
87
+ };
88
+
89
+ export const PutFirewallConfigSecurityRequestRequestBodyAction = {
90
+ Deny: "deny",
91
+ Log: "log",
92
+ } as const;
93
+ export type PutFirewallConfigSecurityRequestRequestBodyAction = ClosedEnum<
94
+ typeof PutFirewallConfigSecurityRequestRequestBodyAction
95
+ >;
96
+
97
+ /**
98
+ * Remote File Inclusion Attack - Prohibit unauthorized upload or execution of remote files.
99
+ */
100
+ export type Rfi = {
101
+ active: boolean;
102
+ action: PutFirewallConfigSecurityRequestRequestBodyAction;
103
+ };
104
+
105
+ export const PutFirewallConfigSecurityRequestRequestBodyCrsAction = {
106
+ Deny: "deny",
107
+ Log: "log",
108
+ } as const;
109
+ export type PutFirewallConfigSecurityRequestRequestBodyCrsAction = ClosedEnum<
110
+ typeof PutFirewallConfigSecurityRequestRequestBodyCrsAction
111
+ >;
112
+
113
+ /**
114
+ * Remote Execution Attack - Prevent unauthorized execution of remote scripts or commands.
115
+ */
116
+ export type Rce = {
117
+ active: boolean;
118
+ action: PutFirewallConfigSecurityRequestRequestBodyCrsAction;
119
+ };
120
+
121
+ export const PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction = {
122
+ Deny: "deny",
123
+ Log: "log",
124
+ } as const;
125
+ export type PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction =
126
+ ClosedEnum<typeof PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction>;
127
+
128
+ /**
129
+ * PHP Attack - Safeguard against vulnerability exploits in PHP-based applications.
130
+ */
131
+ export type Php = {
132
+ active: boolean;
133
+ action: PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction;
134
+ };
135
+
136
+ export const PutFirewallConfigSecurityRequestRequestBodyCrsGenAction = {
137
+ Deny: "deny",
138
+ Log: "log",
139
+ } as const;
140
+ export type PutFirewallConfigSecurityRequestRequestBodyCrsGenAction =
141
+ ClosedEnum<typeof PutFirewallConfigSecurityRequestRequestBodyCrsGenAction>;
142
+
143
+ /**
144
+ * Generic Attack - Provide broad protection from various undefined or novel attack vectors.
145
+ */
146
+ export type Gen = {
147
+ active: boolean;
148
+ action: PutFirewallConfigSecurityRequestRequestBodyCrsGenAction;
149
+ };
150
+
151
+ export const PutFirewallConfigSecurityRequestRequestBodyCrsXssAction = {
152
+ Deny: "deny",
153
+ Log: "log",
154
+ } as const;
155
+ export type PutFirewallConfigSecurityRequestRequestBodyCrsXssAction =
156
+ ClosedEnum<typeof PutFirewallConfigSecurityRequestRequestBodyCrsXssAction>;
157
+
158
+ /**
159
+ * XSS Attack - Prevent injection of malicious scripts into trusted webpages.
160
+ */
161
+ export type Xss = {
162
+ active: boolean;
163
+ action: PutFirewallConfigSecurityRequestRequestBodyCrsXssAction;
164
+ };
165
+
166
+ export const PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction = {
167
+ Deny: "deny",
168
+ Log: "log",
169
+ } as const;
170
+ export type PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction =
171
+ ClosedEnum<typeof PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction>;
172
+
173
+ /**
174
+ * SQL Injection Attack - Prohibit unauthorized use of SQL commands to manipulate databases.
175
+ */
176
+ export type Sqli = {
177
+ active: boolean;
178
+ action: PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction;
179
+ };
180
+
181
+ export const PutFirewallConfigSecurityRequestRequestBodyCrsSfAction = {
182
+ Deny: "deny",
183
+ Log: "log",
184
+ } as const;
185
+ export type PutFirewallConfigSecurityRequestRequestBodyCrsSfAction = ClosedEnum<
186
+ typeof PutFirewallConfigSecurityRequestRequestBodyCrsSfAction
187
+ >;
188
+
189
+ /**
190
+ * Session Fixation Attack - Prevent unauthorized takeover of user sessions by enforcing unique session IDs.
191
+ */
192
+ export type Sf = {
193
+ active: boolean;
194
+ action: PutFirewallConfigSecurityRequestRequestBodyCrsSfAction;
195
+ };
196
+
197
+ export const PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction = {
198
+ Deny: "deny",
199
+ Log: "log",
200
+ } as const;
201
+ export type PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction =
202
+ ClosedEnum<typeof PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction>;
203
+
204
+ /**
205
+ * Java Attack - Mitigate risks of exploitation targeting Java-based applications or components.
206
+ */
207
+ export type Java = {
208
+ active: boolean;
209
+ action: PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction;
210
+ };
211
+
212
+ /**
213
+ * Custom Ruleset
214
+ */
215
+ export type Crs = {
216
+ /**
217
+ * Scanner Detection - Detect and prevent reconnaissance activities from network scanning tools.
218
+ */
219
+ sd?: Sd | undefined;
220
+ /**
221
+ * Multipart Attack - Block attempts to bypass security controls using multipart/form-data encoding.
222
+ */
223
+ ma?: Ma | undefined;
224
+ /**
225
+ * Local File Inclusion Attack - Prevent unauthorized access to local files through web applications.
226
+ */
227
+ lfi?: Lfi | undefined;
228
+ /**
229
+ * Remote File Inclusion Attack - Prohibit unauthorized upload or execution of remote files.
230
+ */
231
+ rfi?: Rfi | undefined;
232
+ /**
233
+ * Remote Execution Attack - Prevent unauthorized execution of remote scripts or commands.
234
+ */
235
+ rce?: Rce | undefined;
236
+ /**
237
+ * PHP Attack - Safeguard against vulnerability exploits in PHP-based applications.
238
+ */
239
+ php?: Php | undefined;
240
+ /**
241
+ * Generic Attack - Provide broad protection from various undefined or novel attack vectors.
242
+ */
243
+ gen?: Gen | undefined;
244
+ /**
245
+ * XSS Attack - Prevent injection of malicious scripts into trusted webpages.
246
+ */
247
+ xss?: Xss | undefined;
248
+ /**
249
+ * SQL Injection Attack - Prohibit unauthorized use of SQL commands to manipulate databases.
250
+ */
251
+ sqli?: Sqli | undefined;
252
+ /**
253
+ * Session Fixation Attack - Prevent unauthorized takeover of user sessions by enforcing unique session IDs.
254
+ */
255
+ sf?: Sf | undefined;
256
+ /**
257
+ * Java Attack - Mitigate risks of exploitation targeting Java-based applications or components.
258
+ */
259
+ java?: Java | undefined;
260
+ };
261
+
262
+ /**
263
+ * [Parameter](https://vercel.com/docs/security/vercel-waf/rule-configuration#parameters) from the incoming traffic.
264
+ */
265
+ export const PutFirewallConfigType = {
266
+ Host: "host",
267
+ Path: "path",
268
+ Method: "method",
269
+ Header: "header",
270
+ Query: "query",
271
+ Cookie: "cookie",
272
+ TargetPath: "target_path",
273
+ RawPath: "raw_path",
274
+ IpAddress: "ip_address",
275
+ Region: "region",
276
+ Protocol: "protocol",
277
+ Scheme: "scheme",
278
+ Environment: "environment",
279
+ UserAgent: "user_agent",
280
+ GeoContinent: "geo_continent",
281
+ GeoCountry: "geo_country",
282
+ GeoCountryRegion: "geo_country_region",
283
+ GeoCity: "geo_city",
284
+ GeoAsNumber: "geo_as_number",
285
+ Ja4Digest: "ja4_digest",
286
+ Ja3Digest: "ja3_digest",
287
+ RateLimitApiId: "rate_limit_api_id",
288
+ } as const;
289
+ /**
290
+ * [Parameter](https://vercel.com/docs/security/vercel-waf/rule-configuration#parameters) from the incoming traffic.
291
+ */
292
+ export type PutFirewallConfigType = ClosedEnum<typeof PutFirewallConfigType>;
293
+
294
+ /**
295
+ * [Operator](https://vercel.com/docs/security/vercel-waf/rule-configuration#operators) used to compare the parameter with a value.
296
+ */
297
+ export const Op = {
298
+ Re: "re",
299
+ Eq: "eq",
300
+ Neq: "neq",
301
+ Ex: "ex",
302
+ Nex: "nex",
303
+ Inc: "inc",
304
+ Ninc: "ninc",
305
+ Pre: "pre",
306
+ Suf: "suf",
307
+ Sub: "sub",
308
+ Gt: "gt",
309
+ Gte: "gte",
310
+ Lt: "lt",
311
+ Lte: "lte",
312
+ } as const;
313
+ /**
314
+ * [Operator](https://vercel.com/docs/security/vercel-waf/rule-configuration#operators) used to compare the parameter with a value.
315
+ */
316
+ export type Op = ClosedEnum<typeof Op>;
317
+
318
+ export type Value = string | Array<string> | number;
319
+
320
+ export type Conditions = {
321
+ /**
322
+ * [Parameter](https://vercel.com/docs/security/vercel-waf/rule-configuration#parameters) from the incoming traffic.
323
+ */
324
+ type: PutFirewallConfigType;
325
+ /**
326
+ * [Operator](https://vercel.com/docs/security/vercel-waf/rule-configuration#operators) used to compare the parameter with a value.
327
+ */
328
+ op: Op;
329
+ neg?: boolean | undefined;
330
+ key?: string | undefined;
331
+ value?: string | Array<string> | number | undefined;
332
+ };
333
+
334
+ export type ConditionGroup = {
335
+ conditions: Array<Conditions>;
336
+ };
337
+
338
+ export const PutFirewallConfigSecurityRequestRequestBodyRulesActionAction = {
339
+ Log: "log",
340
+ Challenge: "challenge",
341
+ Deny: "deny",
342
+ Bypass: "bypass",
343
+ RateLimit: "rate_limit",
344
+ Redirect: "redirect",
345
+ } as const;
346
+ export type PutFirewallConfigSecurityRequestRequestBodyRulesActionAction =
347
+ ClosedEnum<
348
+ typeof PutFirewallConfigSecurityRequestRequestBodyRulesActionAction
349
+ >;
350
+
351
+ export const Algo = {
352
+ FixedWindow: "fixed_window",
353
+ TokenBucket: "token_bucket",
354
+ } as const;
355
+ export type Algo = ClosedEnum<typeof Algo>;
356
+
357
+ export const Action1 = {
358
+ Log: "log",
359
+ Challenge: "challenge",
360
+ Deny: "deny",
361
+ RateLimit: "rate_limit",
362
+ } as const;
363
+ export type Action1 = ClosedEnum<typeof Action1>;
364
+
365
+ export type RateLimitAction = Action1 | any;
366
+
367
+ export type RateLimit1 = {
368
+ algo: Algo;
369
+ window: number;
370
+ limit: number;
371
+ keys: Array<string>;
372
+ action?: Action1 | any | null | undefined;
373
+ };
374
+
375
+ export type RateLimit = RateLimit1 | any;
376
+
377
+ export type Redirect1 = {
378
+ location: string;
379
+ permanent: boolean;
380
+ };
381
+
382
+ export type Redirect = Redirect1 | any;
383
+
384
+ export type Mitigate = {
385
+ action: PutFirewallConfigSecurityRequestRequestBodyRulesActionAction;
386
+ rateLimit?: RateLimit1 | any | null | undefined;
387
+ redirect?: Redirect1 | any | null | undefined;
388
+ actionDuration?: string | null | undefined;
389
+ bypassSystem?: boolean | null | undefined;
390
+ };
391
+
392
+ export type PutFirewallConfigSecurityRequestRequestBodyRulesAction = {
393
+ mitigate?: Mitigate | undefined;
394
+ };
395
+
396
+ export type PutFirewallConfigRules = {
397
+ id?: string | undefined;
398
+ name: string;
399
+ description?: string | undefined;
400
+ active: boolean;
401
+ conditionGroup: Array<ConditionGroup>;
402
+ action: PutFirewallConfigSecurityRequestRequestBodyRulesAction;
403
+ };
404
+
405
+ export const PutFirewallConfigSecurityRequestRequestBodyIpsAction = {
406
+ Deny: "deny",
407
+ Challenge: "challenge",
408
+ Log: "log",
409
+ Bypass: "bypass",
410
+ } as const;
411
+ export type PutFirewallConfigSecurityRequestRequestBodyIpsAction = ClosedEnum<
412
+ typeof PutFirewallConfigSecurityRequestRequestBodyIpsAction
413
+ >;
414
+
415
+ export type Ips = {
416
+ id?: string | undefined;
417
+ hostname: string;
418
+ ip: string;
419
+ notes?: string | undefined;
420
+ action: PutFirewallConfigSecurityRequestRequestBodyIpsAction;
421
+ };
422
+
423
+ export type PutFirewallConfigRequestBody = {
424
+ firewallEnabled: boolean;
425
+ managedRules?: { [k: string]: ManagedRules1 } | undefined;
426
+ /**
427
+ * Custom Ruleset
428
+ */
429
+ crs?: Crs | undefined;
430
+ rules?: Array<PutFirewallConfigRules> | undefined;
431
+ ips?: Array<Ips> | undefined;
432
+ };
433
+
434
+ export type PutFirewallConfigRequest = {
435
+ projectId: string;
436
+ /**
437
+ * The Team identifier to perform the request on behalf of.
438
+ */
439
+ teamId?: string | undefined;
440
+ /**
441
+ * The Team slug to perform the request on behalf of.
442
+ */
443
+ slug?: string | undefined;
444
+ requestBody: PutFirewallConfigRequestBody;
445
+ };
446
+
447
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction =
448
+ {
449
+ Deny: "deny",
450
+ Log: "log",
451
+ } as const;
452
+ export type PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction =
453
+ ClosedEnum<
454
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction
455
+ >;
456
+
457
+ /**
458
+ * Scanner Detection - Detect and prevent reconnaissance activities from network scanning tools.
459
+ */
460
+ export type PutFirewallConfigSd = {
461
+ active: boolean;
462
+ action:
463
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction;
464
+ };
465
+
466
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction =
467
+ {
468
+ Deny: "deny",
469
+ Log: "log",
470
+ } as const;
471
+ export type PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction =
472
+ ClosedEnum<
473
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction
474
+ >;
475
+
476
+ /**
477
+ * Multipart Attack - Block attempts to bypass security controls using multipart/form-data encoding.
478
+ */
479
+ export type PutFirewallConfigMa = {
480
+ active: boolean;
481
+ action:
482
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction;
483
+ };
484
+
485
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction =
486
+ {
487
+ Deny: "deny",
488
+ Log: "log",
489
+ } as const;
490
+ export type PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction =
491
+ ClosedEnum<
492
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction
493
+ >;
494
+
495
+ /**
496
+ * Local File Inclusion Attack - Prevent unauthorized access to local files through web applications.
497
+ */
498
+ export type PutFirewallConfigLfi = {
499
+ active: boolean;
500
+ action:
501
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction;
502
+ };
503
+
504
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction =
505
+ {
506
+ Deny: "deny",
507
+ Log: "log",
508
+ } as const;
509
+ export type PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction =
510
+ ClosedEnum<
511
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction
512
+ >;
513
+
514
+ /**
515
+ * Remote File Inclusion Attack - Prohibit unauthorized upload or execution of remote files.
516
+ */
517
+ export type PutFirewallConfigRfi = {
518
+ active: boolean;
519
+ action: PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction;
520
+ };
521
+
522
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction =
523
+ {
524
+ Deny: "deny",
525
+ Log: "log",
526
+ } as const;
527
+ export type PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction =
528
+ ClosedEnum<
529
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction
530
+ >;
531
+
532
+ /**
533
+ * Remote Execution Attack - Prevent unauthorized execution of remote scripts or commands.
534
+ */
535
+ export type PutFirewallConfigRce = {
536
+ active: boolean;
537
+ action:
538
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction;
539
+ };
540
+
541
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction =
542
+ {
543
+ Deny: "deny",
544
+ Log: "log",
545
+ } as const;
546
+ export type PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction =
547
+ ClosedEnum<
548
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction
549
+ >;
550
+
551
+ /**
552
+ * PHP Attack - Safeguard against vulnerability exploits in PHP-based applications.
553
+ */
554
+ export type PutFirewallConfigPhp = {
555
+ active: boolean;
556
+ action:
557
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction;
558
+ };
559
+
560
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction =
561
+ {
562
+ Deny: "deny",
563
+ Log: "log",
564
+ } as const;
565
+ export type PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction =
566
+ ClosedEnum<
567
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction
568
+ >;
569
+
570
+ /**
571
+ * Generic Attack - Provide broad protection from various undefined or novel attack vectors.
572
+ */
573
+ export type PutFirewallConfigGen = {
574
+ active: boolean;
575
+ action:
576
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction;
577
+ };
578
+
579
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction =
580
+ {
581
+ Deny: "deny",
582
+ Log: "log",
583
+ } as const;
584
+ export type PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction =
585
+ ClosedEnum<
586
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction
587
+ >;
588
+
589
+ /**
590
+ * XSS Attack - Prevent injection of malicious scripts into trusted webpages.
591
+ */
592
+ export type PutFirewallConfigXss = {
593
+ active: boolean;
594
+ action:
595
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction;
596
+ };
597
+
598
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction =
599
+ {
600
+ Deny: "deny",
601
+ Log: "log",
602
+ } as const;
603
+ export type PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction =
604
+ ClosedEnum<
605
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction
606
+ >;
607
+
608
+ /**
609
+ * SQL Injection Attack - Prohibit unauthorized use of SQL commands to manipulate databases.
610
+ */
611
+ export type PutFirewallConfigSqli = {
612
+ active: boolean;
613
+ action:
614
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction;
615
+ };
616
+
617
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction =
618
+ {
619
+ Deny: "deny",
620
+ Log: "log",
621
+ } as const;
622
+ export type PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction =
623
+ ClosedEnum<
624
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction
625
+ >;
626
+
627
+ /**
628
+ * Session Fixation Attack - Prevent unauthorized takeover of user sessions by enforcing unique session IDs.
629
+ */
630
+ export type PutFirewallConfigSf = {
631
+ active: boolean;
632
+ action:
633
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction;
634
+ };
635
+
636
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction =
637
+ {
638
+ Deny: "deny",
639
+ Log: "log",
640
+ } as const;
641
+ export type PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction =
642
+ ClosedEnum<
643
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction
644
+ >;
645
+
646
+ /**
647
+ * Java Attack - Mitigate risks of exploitation targeting Java-based applications or components.
648
+ */
649
+ export type PutFirewallConfigJava = {
650
+ active: boolean;
651
+ action:
652
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction;
653
+ };
654
+
655
+ /**
656
+ * Custom Ruleset
657
+ */
658
+ export type PutFirewallConfigCrs = {
659
+ /**
660
+ * Scanner Detection - Detect and prevent reconnaissance activities from network scanning tools.
661
+ */
662
+ sd: PutFirewallConfigSd;
663
+ /**
664
+ * Multipart Attack - Block attempts to bypass security controls using multipart/form-data encoding.
665
+ */
666
+ ma: PutFirewallConfigMa;
667
+ /**
668
+ * Local File Inclusion Attack - Prevent unauthorized access to local files through web applications.
669
+ */
670
+ lfi: PutFirewallConfigLfi;
671
+ /**
672
+ * Remote File Inclusion Attack - Prohibit unauthorized upload or execution of remote files.
673
+ */
674
+ rfi: PutFirewallConfigRfi;
675
+ /**
676
+ * Remote Execution Attack - Prevent unauthorized execution of remote scripts or commands.
677
+ */
678
+ rce: PutFirewallConfigRce;
679
+ /**
680
+ * PHP Attack - Safeguard against vulnerability exploits in PHP-based applications.
681
+ */
682
+ php: PutFirewallConfigPhp;
683
+ /**
684
+ * Generic Attack - Provide broad protection from various undefined or novel attack vectors.
685
+ */
686
+ gen: PutFirewallConfigGen;
687
+ /**
688
+ * XSS Attack - Prevent injection of malicious scripts into trusted webpages.
689
+ */
690
+ xss: PutFirewallConfigXss;
691
+ /**
692
+ * SQL Injection Attack - Prohibit unauthorized use of SQL commands to manipulate databases.
693
+ */
694
+ sqli: PutFirewallConfigSqli;
695
+ /**
696
+ * Session Fixation Attack - Prevent unauthorized takeover of user sessions by enforcing unique session IDs.
697
+ */
698
+ sf: PutFirewallConfigSf;
699
+ /**
700
+ * Java Attack - Mitigate risks of exploitation targeting Java-based applications or components.
701
+ */
702
+ java: PutFirewallConfigJava;
703
+ };
704
+
705
+ export const PutFirewallConfigSecurityType = {
706
+ Host: "host",
707
+ Path: "path",
708
+ Method: "method",
709
+ Header: "header",
710
+ Query: "query",
711
+ Cookie: "cookie",
712
+ TargetPath: "target_path",
713
+ RawPath: "raw_path",
714
+ IpAddress: "ip_address",
715
+ Protocol: "protocol",
716
+ Region: "region",
717
+ Scheme: "scheme",
718
+ Environment: "environment",
719
+ UserAgent: "user_agent",
720
+ GeoContinent: "geo_continent",
721
+ GeoCountry: "geo_country",
722
+ GeoCountryRegion: "geo_country_region",
723
+ GeoCity: "geo_city",
724
+ GeoAsNumber: "geo_as_number",
725
+ Ja4Digest: "ja4_digest",
726
+ Ja3Digest: "ja3_digest",
727
+ RateLimitApiId: "rate_limit_api_id",
728
+ } as const;
729
+ export type PutFirewallConfigSecurityType = ClosedEnum<
730
+ typeof PutFirewallConfigSecurityType
731
+ >;
732
+
733
+ export const PutFirewallConfigOp = {
734
+ Re: "re",
735
+ Eq: "eq",
736
+ Ex: "ex",
737
+ Inc: "inc",
738
+ Pre: "pre",
739
+ Suf: "suf",
740
+ Sub: "sub",
741
+ Gt: "gt",
742
+ Gte: "gte",
743
+ Lt: "lt",
744
+ Lte: "lte",
745
+ Nex: "nex",
746
+ Ninc: "ninc",
747
+ Neq: "neq",
748
+ } as const;
749
+ export type PutFirewallConfigOp = ClosedEnum<typeof PutFirewallConfigOp>;
750
+
751
+ export type PutFirewallConfigValue = string | number | Array<string>;
752
+
753
+ export type PutFirewallConfigConditions = {
754
+ type: PutFirewallConfigSecurityType;
755
+ op: PutFirewallConfigOp;
756
+ neg?: boolean | undefined;
757
+ key?: string | undefined;
758
+ value?: string | number | Array<string> | undefined;
759
+ };
760
+
761
+ export type PutFirewallConfigConditionGroup = {
762
+ conditions: Array<PutFirewallConfigConditions>;
763
+ };
764
+
765
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction =
766
+ {
767
+ Deny: "deny",
768
+ Log: "log",
769
+ Challenge: "challenge",
770
+ Bypass: "bypass",
771
+ RateLimit: "rate_limit",
772
+ Redirect: "redirect",
773
+ } as const;
774
+ export type PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction =
775
+ ClosedEnum<
776
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction
777
+ >;
778
+
779
+ export const PutFirewallConfigAlgo = {
780
+ FixedWindow: "fixed_window",
781
+ TokenBucket: "token_bucket",
782
+ } as const;
783
+ export type PutFirewallConfigAlgo = ClosedEnum<typeof PutFirewallConfigAlgo>;
784
+
785
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction =
786
+ {
787
+ Deny: "deny",
788
+ Log: "log",
789
+ Challenge: "challenge",
790
+ RateLimit: "rate_limit",
791
+ } as const;
792
+ export type PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction =
793
+ ClosedEnum<
794
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction
795
+ >;
796
+
797
+ export type PutFirewallConfigRateLimit = {
798
+ algo: PutFirewallConfigAlgo;
799
+ window: number;
800
+ limit: number;
801
+ keys: Array<string>;
802
+ action?:
803
+ | PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction
804
+ | null
805
+ | undefined;
806
+ };
807
+
808
+ export type PutFirewallConfigRedirect = {
809
+ location: string;
810
+ permanent: boolean;
811
+ };
812
+
813
+ export type PutFirewallConfigMitigate = {
814
+ action:
815
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction;
816
+ rateLimit?: PutFirewallConfigRateLimit | null | undefined;
817
+ redirect?: PutFirewallConfigRedirect | null | undefined;
818
+ actionDuration?: string | null | undefined;
819
+ bypassSystem?: boolean | null | undefined;
820
+ };
821
+
822
+ export type PutFirewallConfigSecurityResponseAction = {
823
+ mitigate?: PutFirewallConfigMitigate | undefined;
824
+ };
825
+
826
+ export type PutFirewallConfigSecurityRules = {
827
+ id: string;
828
+ name: string;
829
+ description?: string | undefined;
830
+ active: boolean;
831
+ conditionGroup: Array<PutFirewallConfigConditionGroup>;
832
+ action: PutFirewallConfigSecurityResponseAction;
833
+ };
834
+
835
+ export const PutFirewallConfigSecurityResponse200Action = {
836
+ Deny: "deny",
837
+ Log: "log",
838
+ Challenge: "challenge",
839
+ Bypass: "bypass",
840
+ } as const;
841
+ export type PutFirewallConfigSecurityResponse200Action = ClosedEnum<
842
+ typeof PutFirewallConfigSecurityResponse200Action
843
+ >;
844
+
845
+ export type PutFirewallConfigIps = {
846
+ id: string;
847
+ hostname: string;
848
+ ip: string;
849
+ notes?: string | undefined;
850
+ action: PutFirewallConfigSecurityResponse200Action;
851
+ };
852
+
853
+ export type PutFirewallConfigChanges = {};
854
+
855
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONAction = {
856
+ Deny: "deny",
857
+ Log: "log",
858
+ Challenge: "challenge",
859
+ } as const;
860
+ export type PutFirewallConfigSecurityResponse200ApplicationJSONAction =
861
+ ClosedEnum<typeof PutFirewallConfigSecurityResponse200ApplicationJSONAction>;
862
+
863
+ export type PutFirewallConfigManagedRules = {
864
+ active: boolean;
865
+ action?:
866
+ | PutFirewallConfigSecurityResponse200ApplicationJSONAction
867
+ | undefined;
868
+ updatedAt?: string | undefined;
869
+ userId?: string | undefined;
870
+ username?: string | undefined;
871
+ };
872
+
873
+ export type Active = {
874
+ ownerId: string;
875
+ projectKey: string;
876
+ id: string;
877
+ version: number;
878
+ updatedAt: string;
879
+ firewallEnabled: boolean;
880
+ /**
881
+ * Custom Ruleset
882
+ */
883
+ crs: PutFirewallConfigCrs;
884
+ rules: Array<PutFirewallConfigSecurityRules>;
885
+ ips: Array<PutFirewallConfigIps>;
886
+ changes: Array<PutFirewallConfigChanges>;
887
+ managedRules?: { [k: string]: PutFirewallConfigManagedRules } | undefined;
888
+ };
889
+
890
+ export type PutFirewallConfigResponseBody = {
891
+ active: Active;
892
+ };
893
+
894
+ /** @internal */
895
+ export const ManagedRulesAction$inboundSchema: z.ZodNativeEnum<
896
+ typeof ManagedRulesAction
897
+ > = z.nativeEnum(ManagedRulesAction);
898
+
899
+ /** @internal */
900
+ export const ManagedRulesAction$outboundSchema: z.ZodNativeEnum<
901
+ typeof ManagedRulesAction
902
+ > = ManagedRulesAction$inboundSchema;
903
+
904
+ /**
905
+ * @internal
906
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
907
+ */
908
+ export namespace ManagedRulesAction$ {
909
+ /** @deprecated use `ManagedRulesAction$inboundSchema` instead. */
910
+ export const inboundSchema = ManagedRulesAction$inboundSchema;
911
+ /** @deprecated use `ManagedRulesAction$outboundSchema` instead. */
912
+ export const outboundSchema = ManagedRulesAction$outboundSchema;
913
+ }
914
+
915
+ /** @internal */
916
+ export const PutFirewallConfigManagedRulesAction$inboundSchema: z.ZodNativeEnum<
917
+ typeof PutFirewallConfigManagedRulesAction
918
+ > = z.nativeEnum(PutFirewallConfigManagedRulesAction);
919
+
920
+ /** @internal */
921
+ export const PutFirewallConfigManagedRulesAction$outboundSchema:
922
+ z.ZodNativeEnum<typeof PutFirewallConfigManagedRulesAction> =
923
+ PutFirewallConfigManagedRulesAction$inboundSchema;
924
+
925
+ /**
926
+ * @internal
927
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
928
+ */
929
+ export namespace PutFirewallConfigManagedRulesAction$ {
930
+ /** @deprecated use `PutFirewallConfigManagedRulesAction$inboundSchema` instead. */
931
+ export const inboundSchema =
932
+ PutFirewallConfigManagedRulesAction$inboundSchema;
933
+ /** @deprecated use `PutFirewallConfigManagedRulesAction$outboundSchema` instead. */
934
+ export const outboundSchema =
935
+ PutFirewallConfigManagedRulesAction$outboundSchema;
936
+ }
937
+
938
+ /** @internal */
939
+ export const RuleGroups$inboundSchema: z.ZodType<
940
+ RuleGroups,
941
+ z.ZodTypeDef,
942
+ unknown
943
+ > = z.object({
944
+ active: z.boolean().optional(),
945
+ action: PutFirewallConfigManagedRulesAction$inboundSchema.optional(),
946
+ });
947
+
948
+ /** @internal */
949
+ export type RuleGroups$Outbound = {
950
+ active?: boolean | undefined;
951
+ action?: string | undefined;
952
+ };
953
+
954
+ /** @internal */
955
+ export const RuleGroups$outboundSchema: z.ZodType<
956
+ RuleGroups$Outbound,
957
+ z.ZodTypeDef,
958
+ RuleGroups
959
+ > = z.object({
960
+ active: z.boolean().optional(),
961
+ action: PutFirewallConfigManagedRulesAction$outboundSchema.optional(),
962
+ });
963
+
964
+ /**
965
+ * @internal
966
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
967
+ */
968
+ export namespace RuleGroups$ {
969
+ /** @deprecated use `RuleGroups$inboundSchema` instead. */
970
+ export const inboundSchema = RuleGroups$inboundSchema;
971
+ /** @deprecated use `RuleGroups$outboundSchema` instead. */
972
+ export const outboundSchema = RuleGroups$outboundSchema;
973
+ /** @deprecated use `RuleGroups$Outbound` instead. */
974
+ export type Outbound = RuleGroups$Outbound;
975
+ }
976
+
977
+ export function ruleGroupsToJSON(ruleGroups: RuleGroups): string {
978
+ return JSON.stringify(RuleGroups$outboundSchema.parse(ruleGroups));
979
+ }
980
+
981
+ export function ruleGroupsFromJSON(
982
+ jsonString: string,
983
+ ): SafeParseResult<RuleGroups, SDKValidationError> {
984
+ return safeParse(
985
+ jsonString,
986
+ (x) => RuleGroups$inboundSchema.parse(JSON.parse(x)),
987
+ `Failed to parse 'RuleGroups' from JSON`,
988
+ );
989
+ }
990
+
991
+ /** @internal */
992
+ export const ManagedRules1$inboundSchema: z.ZodType<
993
+ ManagedRules1,
994
+ z.ZodTypeDef,
995
+ unknown
996
+ > = z.object({
997
+ active: z.boolean(),
998
+ action: ManagedRulesAction$inboundSchema.optional(),
999
+ ruleGroups: z.record(z.lazy(() => RuleGroups$inboundSchema)).optional(),
1000
+ });
1001
+
1002
+ /** @internal */
1003
+ export type ManagedRules1$Outbound = {
1004
+ active: boolean;
1005
+ action?: string | undefined;
1006
+ ruleGroups?: { [k: string]: RuleGroups$Outbound } | undefined;
1007
+ };
1008
+
1009
+ /** @internal */
1010
+ export const ManagedRules1$outboundSchema: z.ZodType<
1011
+ ManagedRules1$Outbound,
1012
+ z.ZodTypeDef,
1013
+ ManagedRules1
1014
+ > = z.object({
1015
+ active: z.boolean(),
1016
+ action: ManagedRulesAction$outboundSchema.optional(),
1017
+ ruleGroups: z.record(z.lazy(() => RuleGroups$outboundSchema)).optional(),
1018
+ });
1019
+
1020
+ /**
1021
+ * @internal
1022
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1023
+ */
1024
+ export namespace ManagedRules1$ {
1025
+ /** @deprecated use `ManagedRules1$inboundSchema` instead. */
1026
+ export const inboundSchema = ManagedRules1$inboundSchema;
1027
+ /** @deprecated use `ManagedRules1$outboundSchema` instead. */
1028
+ export const outboundSchema = ManagedRules1$outboundSchema;
1029
+ /** @deprecated use `ManagedRules1$Outbound` instead. */
1030
+ export type Outbound = ManagedRules1$Outbound;
1031
+ }
1032
+
1033
+ export function managedRules1ToJSON(managedRules1: ManagedRules1): string {
1034
+ return JSON.stringify(ManagedRules1$outboundSchema.parse(managedRules1));
1035
+ }
1036
+
1037
+ export function managedRules1FromJSON(
1038
+ jsonString: string,
1039
+ ): SafeParseResult<ManagedRules1, SDKValidationError> {
1040
+ return safeParse(
1041
+ jsonString,
1042
+ (x) => ManagedRules1$inboundSchema.parse(JSON.parse(x)),
1043
+ `Failed to parse 'ManagedRules1' from JSON`,
1044
+ );
1045
+ }
1046
+
1047
+ /** @internal */
1048
+ export const ManagedRules$inboundSchema: z.ZodType<
1049
+ ManagedRules,
1050
+ z.ZodTypeDef,
1051
+ unknown
1052
+ > = z.lazy(() => ManagedRules1$inboundSchema);
1053
+
1054
+ /** @internal */
1055
+ export type ManagedRules$Outbound = ManagedRules1$Outbound;
1056
+
1057
+ /** @internal */
1058
+ export const ManagedRules$outboundSchema: z.ZodType<
1059
+ ManagedRules$Outbound,
1060
+ z.ZodTypeDef,
1061
+ ManagedRules
1062
+ > = z.lazy(() => ManagedRules1$outboundSchema);
1063
+
1064
+ /**
1065
+ * @internal
1066
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1067
+ */
1068
+ export namespace ManagedRules$ {
1069
+ /** @deprecated use `ManagedRules$inboundSchema` instead. */
1070
+ export const inboundSchema = ManagedRules$inboundSchema;
1071
+ /** @deprecated use `ManagedRules$outboundSchema` instead. */
1072
+ export const outboundSchema = ManagedRules$outboundSchema;
1073
+ /** @deprecated use `ManagedRules$Outbound` instead. */
1074
+ export type Outbound = ManagedRules$Outbound;
1075
+ }
1076
+
1077
+ export function managedRulesToJSON(managedRules: ManagedRules): string {
1078
+ return JSON.stringify(ManagedRules$outboundSchema.parse(managedRules));
1079
+ }
1080
+
1081
+ export function managedRulesFromJSON(
1082
+ jsonString: string,
1083
+ ): SafeParseResult<ManagedRules, SDKValidationError> {
1084
+ return safeParse(
1085
+ jsonString,
1086
+ (x) => ManagedRules$inboundSchema.parse(JSON.parse(x)),
1087
+ `Failed to parse 'ManagedRules' from JSON`,
1088
+ );
1089
+ }
1090
+
1091
+ /** @internal */
1092
+ export const PutFirewallConfigAction$inboundSchema: z.ZodNativeEnum<
1093
+ typeof PutFirewallConfigAction
1094
+ > = z.nativeEnum(PutFirewallConfigAction);
1095
+
1096
+ /** @internal */
1097
+ export const PutFirewallConfigAction$outboundSchema: z.ZodNativeEnum<
1098
+ typeof PutFirewallConfigAction
1099
+ > = PutFirewallConfigAction$inboundSchema;
1100
+
1101
+ /**
1102
+ * @internal
1103
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1104
+ */
1105
+ export namespace PutFirewallConfigAction$ {
1106
+ /** @deprecated use `PutFirewallConfigAction$inboundSchema` instead. */
1107
+ export const inboundSchema = PutFirewallConfigAction$inboundSchema;
1108
+ /** @deprecated use `PutFirewallConfigAction$outboundSchema` instead. */
1109
+ export const outboundSchema = PutFirewallConfigAction$outboundSchema;
1110
+ }
1111
+
1112
+ /** @internal */
1113
+ export const Sd$inboundSchema: z.ZodType<Sd, z.ZodTypeDef, unknown> = z.object({
1114
+ active: z.boolean(),
1115
+ action: PutFirewallConfigAction$inboundSchema,
1116
+ });
1117
+
1118
+ /** @internal */
1119
+ export type Sd$Outbound = {
1120
+ active: boolean;
1121
+ action: string;
1122
+ };
1123
+
1124
+ /** @internal */
1125
+ export const Sd$outboundSchema: z.ZodType<Sd$Outbound, z.ZodTypeDef, Sd> = z
1126
+ .object({
1127
+ active: z.boolean(),
1128
+ action: PutFirewallConfigAction$outboundSchema,
1129
+ });
1130
+
1131
+ /**
1132
+ * @internal
1133
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1134
+ */
1135
+ export namespace Sd$ {
1136
+ /** @deprecated use `Sd$inboundSchema` instead. */
1137
+ export const inboundSchema = Sd$inboundSchema;
1138
+ /** @deprecated use `Sd$outboundSchema` instead. */
1139
+ export const outboundSchema = Sd$outboundSchema;
1140
+ /** @deprecated use `Sd$Outbound` instead. */
1141
+ export type Outbound = Sd$Outbound;
1142
+ }
1143
+
1144
+ export function sdToJSON(sd: Sd): string {
1145
+ return JSON.stringify(Sd$outboundSchema.parse(sd));
1146
+ }
1147
+
1148
+ export function sdFromJSON(
1149
+ jsonString: string,
1150
+ ): SafeParseResult<Sd, SDKValidationError> {
1151
+ return safeParse(
1152
+ jsonString,
1153
+ (x) => Sd$inboundSchema.parse(JSON.parse(x)),
1154
+ `Failed to parse 'Sd' from JSON`,
1155
+ );
1156
+ }
1157
+
1158
+ /** @internal */
1159
+ export const PutFirewallConfigSecurityAction$inboundSchema: z.ZodNativeEnum<
1160
+ typeof PutFirewallConfigSecurityAction
1161
+ > = z.nativeEnum(PutFirewallConfigSecurityAction);
1162
+
1163
+ /** @internal */
1164
+ export const PutFirewallConfigSecurityAction$outboundSchema: z.ZodNativeEnum<
1165
+ typeof PutFirewallConfigSecurityAction
1166
+ > = PutFirewallConfigSecurityAction$inboundSchema;
1167
+
1168
+ /**
1169
+ * @internal
1170
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1171
+ */
1172
+ export namespace PutFirewallConfigSecurityAction$ {
1173
+ /** @deprecated use `PutFirewallConfigSecurityAction$inboundSchema` instead. */
1174
+ export const inboundSchema = PutFirewallConfigSecurityAction$inboundSchema;
1175
+ /** @deprecated use `PutFirewallConfigSecurityAction$outboundSchema` instead. */
1176
+ export const outboundSchema = PutFirewallConfigSecurityAction$outboundSchema;
1177
+ }
1178
+
1179
+ /** @internal */
1180
+ export const Ma$inboundSchema: z.ZodType<Ma, z.ZodTypeDef, unknown> = z.object({
1181
+ active: z.boolean(),
1182
+ action: PutFirewallConfigSecurityAction$inboundSchema,
1183
+ });
1184
+
1185
+ /** @internal */
1186
+ export type Ma$Outbound = {
1187
+ active: boolean;
1188
+ action: string;
1189
+ };
1190
+
1191
+ /** @internal */
1192
+ export const Ma$outboundSchema: z.ZodType<Ma$Outbound, z.ZodTypeDef, Ma> = z
1193
+ .object({
1194
+ active: z.boolean(),
1195
+ action: PutFirewallConfigSecurityAction$outboundSchema,
1196
+ });
1197
+
1198
+ /**
1199
+ * @internal
1200
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1201
+ */
1202
+ export namespace Ma$ {
1203
+ /** @deprecated use `Ma$inboundSchema` instead. */
1204
+ export const inboundSchema = Ma$inboundSchema;
1205
+ /** @deprecated use `Ma$outboundSchema` instead. */
1206
+ export const outboundSchema = Ma$outboundSchema;
1207
+ /** @deprecated use `Ma$Outbound` instead. */
1208
+ export type Outbound = Ma$Outbound;
1209
+ }
1210
+
1211
+ export function maToJSON(ma: Ma): string {
1212
+ return JSON.stringify(Ma$outboundSchema.parse(ma));
1213
+ }
1214
+
1215
+ export function maFromJSON(
1216
+ jsonString: string,
1217
+ ): SafeParseResult<Ma, SDKValidationError> {
1218
+ return safeParse(
1219
+ jsonString,
1220
+ (x) => Ma$inboundSchema.parse(JSON.parse(x)),
1221
+ `Failed to parse 'Ma' from JSON`,
1222
+ );
1223
+ }
1224
+
1225
+ /** @internal */
1226
+ export const PutFirewallConfigSecurityRequestAction$inboundSchema:
1227
+ z.ZodNativeEnum<typeof PutFirewallConfigSecurityRequestAction> = z.nativeEnum(
1228
+ PutFirewallConfigSecurityRequestAction,
1229
+ );
1230
+
1231
+ /** @internal */
1232
+ export const PutFirewallConfigSecurityRequestAction$outboundSchema:
1233
+ z.ZodNativeEnum<typeof PutFirewallConfigSecurityRequestAction> =
1234
+ PutFirewallConfigSecurityRequestAction$inboundSchema;
1235
+
1236
+ /**
1237
+ * @internal
1238
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1239
+ */
1240
+ export namespace PutFirewallConfigSecurityRequestAction$ {
1241
+ /** @deprecated use `PutFirewallConfigSecurityRequestAction$inboundSchema` instead. */
1242
+ export const inboundSchema =
1243
+ PutFirewallConfigSecurityRequestAction$inboundSchema;
1244
+ /** @deprecated use `PutFirewallConfigSecurityRequestAction$outboundSchema` instead. */
1245
+ export const outboundSchema =
1246
+ PutFirewallConfigSecurityRequestAction$outboundSchema;
1247
+ }
1248
+
1249
+ /** @internal */
1250
+ export const Lfi$inboundSchema: z.ZodType<Lfi, z.ZodTypeDef, unknown> = z
1251
+ .object({
1252
+ active: z.boolean(),
1253
+ action: PutFirewallConfigSecurityRequestAction$inboundSchema,
1254
+ });
1255
+
1256
+ /** @internal */
1257
+ export type Lfi$Outbound = {
1258
+ active: boolean;
1259
+ action: string;
1260
+ };
1261
+
1262
+ /** @internal */
1263
+ export const Lfi$outboundSchema: z.ZodType<Lfi$Outbound, z.ZodTypeDef, Lfi> = z
1264
+ .object({
1265
+ active: z.boolean(),
1266
+ action: PutFirewallConfigSecurityRequestAction$outboundSchema,
1267
+ });
1268
+
1269
+ /**
1270
+ * @internal
1271
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1272
+ */
1273
+ export namespace Lfi$ {
1274
+ /** @deprecated use `Lfi$inboundSchema` instead. */
1275
+ export const inboundSchema = Lfi$inboundSchema;
1276
+ /** @deprecated use `Lfi$outboundSchema` instead. */
1277
+ export const outboundSchema = Lfi$outboundSchema;
1278
+ /** @deprecated use `Lfi$Outbound` instead. */
1279
+ export type Outbound = Lfi$Outbound;
1280
+ }
1281
+
1282
+ export function lfiToJSON(lfi: Lfi): string {
1283
+ return JSON.stringify(Lfi$outboundSchema.parse(lfi));
1284
+ }
1285
+
1286
+ export function lfiFromJSON(
1287
+ jsonString: string,
1288
+ ): SafeParseResult<Lfi, SDKValidationError> {
1289
+ return safeParse(
1290
+ jsonString,
1291
+ (x) => Lfi$inboundSchema.parse(JSON.parse(x)),
1292
+ `Failed to parse 'Lfi' from JSON`,
1293
+ );
1294
+ }
1295
+
1296
+ /** @internal */
1297
+ export const PutFirewallConfigSecurityRequestRequestBodyAction$inboundSchema:
1298
+ z.ZodNativeEnum<typeof PutFirewallConfigSecurityRequestRequestBodyAction> = z
1299
+ .nativeEnum(PutFirewallConfigSecurityRequestRequestBodyAction);
1300
+
1301
+ /** @internal */
1302
+ export const PutFirewallConfigSecurityRequestRequestBodyAction$outboundSchema:
1303
+ z.ZodNativeEnum<typeof PutFirewallConfigSecurityRequestRequestBodyAction> =
1304
+ PutFirewallConfigSecurityRequestRequestBodyAction$inboundSchema;
1305
+
1306
+ /**
1307
+ * @internal
1308
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1309
+ */
1310
+ export namespace PutFirewallConfigSecurityRequestRequestBodyAction$ {
1311
+ /** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyAction$inboundSchema` instead. */
1312
+ export const inboundSchema =
1313
+ PutFirewallConfigSecurityRequestRequestBodyAction$inboundSchema;
1314
+ /** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyAction$outboundSchema` instead. */
1315
+ export const outboundSchema =
1316
+ PutFirewallConfigSecurityRequestRequestBodyAction$outboundSchema;
1317
+ }
1318
+
1319
+ /** @internal */
1320
+ export const Rfi$inboundSchema: z.ZodType<Rfi, z.ZodTypeDef, unknown> = z
1321
+ .object({
1322
+ active: z.boolean(),
1323
+ action: PutFirewallConfigSecurityRequestRequestBodyAction$inboundSchema,
1324
+ });
1325
+
1326
+ /** @internal */
1327
+ export type Rfi$Outbound = {
1328
+ active: boolean;
1329
+ action: string;
1330
+ };
1331
+
1332
+ /** @internal */
1333
+ export const Rfi$outboundSchema: z.ZodType<Rfi$Outbound, z.ZodTypeDef, Rfi> = z
1334
+ .object({
1335
+ active: z.boolean(),
1336
+ action: PutFirewallConfigSecurityRequestRequestBodyAction$outboundSchema,
1337
+ });
1338
+
1339
+ /**
1340
+ * @internal
1341
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1342
+ */
1343
+ export namespace Rfi$ {
1344
+ /** @deprecated use `Rfi$inboundSchema` instead. */
1345
+ export const inboundSchema = Rfi$inboundSchema;
1346
+ /** @deprecated use `Rfi$outboundSchema` instead. */
1347
+ export const outboundSchema = Rfi$outboundSchema;
1348
+ /** @deprecated use `Rfi$Outbound` instead. */
1349
+ export type Outbound = Rfi$Outbound;
1350
+ }
1351
+
1352
+ export function rfiToJSON(rfi: Rfi): string {
1353
+ return JSON.stringify(Rfi$outboundSchema.parse(rfi));
1354
+ }
1355
+
1356
+ export function rfiFromJSON(
1357
+ jsonString: string,
1358
+ ): SafeParseResult<Rfi, SDKValidationError> {
1359
+ return safeParse(
1360
+ jsonString,
1361
+ (x) => Rfi$inboundSchema.parse(JSON.parse(x)),
1362
+ `Failed to parse 'Rfi' from JSON`,
1363
+ );
1364
+ }
1365
+
1366
+ /** @internal */
1367
+ export const PutFirewallConfigSecurityRequestRequestBodyCrsAction$inboundSchema:
1368
+ z.ZodNativeEnum<typeof PutFirewallConfigSecurityRequestRequestBodyCrsAction> =
1369
+ z.nativeEnum(PutFirewallConfigSecurityRequestRequestBodyCrsAction);
1370
+
1371
+ /** @internal */
1372
+ export const PutFirewallConfigSecurityRequestRequestBodyCrsAction$outboundSchema:
1373
+ z.ZodNativeEnum<typeof PutFirewallConfigSecurityRequestRequestBodyCrsAction> =
1374
+ PutFirewallConfigSecurityRequestRequestBodyCrsAction$inboundSchema;
1375
+
1376
+ /**
1377
+ * @internal
1378
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1379
+ */
1380
+ export namespace PutFirewallConfigSecurityRequestRequestBodyCrsAction$ {
1381
+ /** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsAction$inboundSchema` instead. */
1382
+ export const inboundSchema =
1383
+ PutFirewallConfigSecurityRequestRequestBodyCrsAction$inboundSchema;
1384
+ /** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsAction$outboundSchema` instead. */
1385
+ export const outboundSchema =
1386
+ PutFirewallConfigSecurityRequestRequestBodyCrsAction$outboundSchema;
1387
+ }
1388
+
1389
+ /** @internal */
1390
+ export const Rce$inboundSchema: z.ZodType<Rce, z.ZodTypeDef, unknown> = z
1391
+ .object({
1392
+ active: z.boolean(),
1393
+ action: PutFirewallConfigSecurityRequestRequestBodyCrsAction$inboundSchema,
1394
+ });
1395
+
1396
+ /** @internal */
1397
+ export type Rce$Outbound = {
1398
+ active: boolean;
1399
+ action: string;
1400
+ };
1401
+
1402
+ /** @internal */
1403
+ export const Rce$outboundSchema: z.ZodType<Rce$Outbound, z.ZodTypeDef, Rce> = z
1404
+ .object({
1405
+ active: z.boolean(),
1406
+ action: PutFirewallConfigSecurityRequestRequestBodyCrsAction$outboundSchema,
1407
+ });
1408
+
1409
+ /**
1410
+ * @internal
1411
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1412
+ */
1413
+ export namespace Rce$ {
1414
+ /** @deprecated use `Rce$inboundSchema` instead. */
1415
+ export const inboundSchema = Rce$inboundSchema;
1416
+ /** @deprecated use `Rce$outboundSchema` instead. */
1417
+ export const outboundSchema = Rce$outboundSchema;
1418
+ /** @deprecated use `Rce$Outbound` instead. */
1419
+ export type Outbound = Rce$Outbound;
1420
+ }
1421
+
1422
+ export function rceToJSON(rce: Rce): string {
1423
+ return JSON.stringify(Rce$outboundSchema.parse(rce));
1424
+ }
1425
+
1426
+ export function rceFromJSON(
1427
+ jsonString: string,
1428
+ ): SafeParseResult<Rce, SDKValidationError> {
1429
+ return safeParse(
1430
+ jsonString,
1431
+ (x) => Rce$inboundSchema.parse(JSON.parse(x)),
1432
+ `Failed to parse 'Rce' from JSON`,
1433
+ );
1434
+ }
1435
+
1436
+ /** @internal */
1437
+ export const PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction$inboundSchema:
1438
+ z.ZodNativeEnum<
1439
+ typeof PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction
1440
+ > = z.nativeEnum(PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction);
1441
+
1442
+ /** @internal */
1443
+ export const PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction$outboundSchema:
1444
+ z.ZodNativeEnum<
1445
+ typeof PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction
1446
+ > = PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction$inboundSchema;
1447
+
1448
+ /**
1449
+ * @internal
1450
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1451
+ */
1452
+ export namespace PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction$ {
1453
+ /** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction$inboundSchema` instead. */
1454
+ export const inboundSchema =
1455
+ PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction$inboundSchema;
1456
+ /** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction$outboundSchema` instead. */
1457
+ export const outboundSchema =
1458
+ PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction$outboundSchema;
1459
+ }
1460
+
1461
+ /** @internal */
1462
+ export const Php$inboundSchema: z.ZodType<Php, z.ZodTypeDef, unknown> = z
1463
+ .object({
1464
+ active: z.boolean(),
1465
+ action:
1466
+ PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction$inboundSchema,
1467
+ });
1468
+
1469
+ /** @internal */
1470
+ export type Php$Outbound = {
1471
+ active: boolean;
1472
+ action: string;
1473
+ };
1474
+
1475
+ /** @internal */
1476
+ export const Php$outboundSchema: z.ZodType<Php$Outbound, z.ZodTypeDef, Php> = z
1477
+ .object({
1478
+ active: z.boolean(),
1479
+ action:
1480
+ PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction$outboundSchema,
1481
+ });
1482
+
1483
+ /**
1484
+ * @internal
1485
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1486
+ */
1487
+ export namespace Php$ {
1488
+ /** @deprecated use `Php$inboundSchema` instead. */
1489
+ export const inboundSchema = Php$inboundSchema;
1490
+ /** @deprecated use `Php$outboundSchema` instead. */
1491
+ export const outboundSchema = Php$outboundSchema;
1492
+ /** @deprecated use `Php$Outbound` instead. */
1493
+ export type Outbound = Php$Outbound;
1494
+ }
1495
+
1496
+ export function phpToJSON(php: Php): string {
1497
+ return JSON.stringify(Php$outboundSchema.parse(php));
1498
+ }
1499
+
1500
+ export function phpFromJSON(
1501
+ jsonString: string,
1502
+ ): SafeParseResult<Php, SDKValidationError> {
1503
+ return safeParse(
1504
+ jsonString,
1505
+ (x) => Php$inboundSchema.parse(JSON.parse(x)),
1506
+ `Failed to parse 'Php' from JSON`,
1507
+ );
1508
+ }
1509
+
1510
+ /** @internal */
1511
+ export const PutFirewallConfigSecurityRequestRequestBodyCrsGenAction$inboundSchema:
1512
+ z.ZodNativeEnum<
1513
+ typeof PutFirewallConfigSecurityRequestRequestBodyCrsGenAction
1514
+ > = z.nativeEnum(PutFirewallConfigSecurityRequestRequestBodyCrsGenAction);
1515
+
1516
+ /** @internal */
1517
+ export const PutFirewallConfigSecurityRequestRequestBodyCrsGenAction$outboundSchema:
1518
+ z.ZodNativeEnum<
1519
+ typeof PutFirewallConfigSecurityRequestRequestBodyCrsGenAction
1520
+ > = PutFirewallConfigSecurityRequestRequestBodyCrsGenAction$inboundSchema;
1521
+
1522
+ /**
1523
+ * @internal
1524
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1525
+ */
1526
+ export namespace PutFirewallConfigSecurityRequestRequestBodyCrsGenAction$ {
1527
+ /** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsGenAction$inboundSchema` instead. */
1528
+ export const inboundSchema =
1529
+ PutFirewallConfigSecurityRequestRequestBodyCrsGenAction$inboundSchema;
1530
+ /** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsGenAction$outboundSchema` instead. */
1531
+ export const outboundSchema =
1532
+ PutFirewallConfigSecurityRequestRequestBodyCrsGenAction$outboundSchema;
1533
+ }
1534
+
1535
+ /** @internal */
1536
+ export const Gen$inboundSchema: z.ZodType<Gen, z.ZodTypeDef, unknown> = z
1537
+ .object({
1538
+ active: z.boolean(),
1539
+ action:
1540
+ PutFirewallConfigSecurityRequestRequestBodyCrsGenAction$inboundSchema,
1541
+ });
1542
+
1543
+ /** @internal */
1544
+ export type Gen$Outbound = {
1545
+ active: boolean;
1546
+ action: string;
1547
+ };
1548
+
1549
+ /** @internal */
1550
+ export const Gen$outboundSchema: z.ZodType<Gen$Outbound, z.ZodTypeDef, Gen> = z
1551
+ .object({
1552
+ active: z.boolean(),
1553
+ action:
1554
+ PutFirewallConfigSecurityRequestRequestBodyCrsGenAction$outboundSchema,
1555
+ });
1556
+
1557
+ /**
1558
+ * @internal
1559
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1560
+ */
1561
+ export namespace Gen$ {
1562
+ /** @deprecated use `Gen$inboundSchema` instead. */
1563
+ export const inboundSchema = Gen$inboundSchema;
1564
+ /** @deprecated use `Gen$outboundSchema` instead. */
1565
+ export const outboundSchema = Gen$outboundSchema;
1566
+ /** @deprecated use `Gen$Outbound` instead. */
1567
+ export type Outbound = Gen$Outbound;
1568
+ }
1569
+
1570
+ export function genToJSON(gen: Gen): string {
1571
+ return JSON.stringify(Gen$outboundSchema.parse(gen));
1572
+ }
1573
+
1574
+ export function genFromJSON(
1575
+ jsonString: string,
1576
+ ): SafeParseResult<Gen, SDKValidationError> {
1577
+ return safeParse(
1578
+ jsonString,
1579
+ (x) => Gen$inboundSchema.parse(JSON.parse(x)),
1580
+ `Failed to parse 'Gen' from JSON`,
1581
+ );
1582
+ }
1583
+
1584
+ /** @internal */
1585
+ export const PutFirewallConfigSecurityRequestRequestBodyCrsXssAction$inboundSchema:
1586
+ z.ZodNativeEnum<
1587
+ typeof PutFirewallConfigSecurityRequestRequestBodyCrsXssAction
1588
+ > = z.nativeEnum(PutFirewallConfigSecurityRequestRequestBodyCrsXssAction);
1589
+
1590
+ /** @internal */
1591
+ export const PutFirewallConfigSecurityRequestRequestBodyCrsXssAction$outboundSchema:
1592
+ z.ZodNativeEnum<
1593
+ typeof PutFirewallConfigSecurityRequestRequestBodyCrsXssAction
1594
+ > = PutFirewallConfigSecurityRequestRequestBodyCrsXssAction$inboundSchema;
1595
+
1596
+ /**
1597
+ * @internal
1598
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1599
+ */
1600
+ export namespace PutFirewallConfigSecurityRequestRequestBodyCrsXssAction$ {
1601
+ /** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsXssAction$inboundSchema` instead. */
1602
+ export const inboundSchema =
1603
+ PutFirewallConfigSecurityRequestRequestBodyCrsXssAction$inboundSchema;
1604
+ /** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsXssAction$outboundSchema` instead. */
1605
+ export const outboundSchema =
1606
+ PutFirewallConfigSecurityRequestRequestBodyCrsXssAction$outboundSchema;
1607
+ }
1608
+
1609
+ /** @internal */
1610
+ export const Xss$inboundSchema: z.ZodType<Xss, z.ZodTypeDef, unknown> = z
1611
+ .object({
1612
+ active: z.boolean(),
1613
+ action:
1614
+ PutFirewallConfigSecurityRequestRequestBodyCrsXssAction$inboundSchema,
1615
+ });
1616
+
1617
+ /** @internal */
1618
+ export type Xss$Outbound = {
1619
+ active: boolean;
1620
+ action: string;
1621
+ };
1622
+
1623
+ /** @internal */
1624
+ export const Xss$outboundSchema: z.ZodType<Xss$Outbound, z.ZodTypeDef, Xss> = z
1625
+ .object({
1626
+ active: z.boolean(),
1627
+ action:
1628
+ PutFirewallConfigSecurityRequestRequestBodyCrsXssAction$outboundSchema,
1629
+ });
1630
+
1631
+ /**
1632
+ * @internal
1633
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1634
+ */
1635
+ export namespace Xss$ {
1636
+ /** @deprecated use `Xss$inboundSchema` instead. */
1637
+ export const inboundSchema = Xss$inboundSchema;
1638
+ /** @deprecated use `Xss$outboundSchema` instead. */
1639
+ export const outboundSchema = Xss$outboundSchema;
1640
+ /** @deprecated use `Xss$Outbound` instead. */
1641
+ export type Outbound = Xss$Outbound;
1642
+ }
1643
+
1644
+ export function xssToJSON(xss: Xss): string {
1645
+ return JSON.stringify(Xss$outboundSchema.parse(xss));
1646
+ }
1647
+
1648
+ export function xssFromJSON(
1649
+ jsonString: string,
1650
+ ): SafeParseResult<Xss, SDKValidationError> {
1651
+ return safeParse(
1652
+ jsonString,
1653
+ (x) => Xss$inboundSchema.parse(JSON.parse(x)),
1654
+ `Failed to parse 'Xss' from JSON`,
1655
+ );
1656
+ }
1657
+
1658
+ /** @internal */
1659
+ export const PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction$inboundSchema:
1660
+ z.ZodNativeEnum<
1661
+ typeof PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction
1662
+ > = z.nativeEnum(PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction);
1663
+
1664
+ /** @internal */
1665
+ export const PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction$outboundSchema:
1666
+ z.ZodNativeEnum<
1667
+ typeof PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction
1668
+ > = PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction$inboundSchema;
1669
+
1670
+ /**
1671
+ * @internal
1672
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1673
+ */
1674
+ export namespace PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction$ {
1675
+ /** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction$inboundSchema` instead. */
1676
+ export const inboundSchema =
1677
+ PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction$inboundSchema;
1678
+ /** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction$outboundSchema` instead. */
1679
+ export const outboundSchema =
1680
+ PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction$outboundSchema;
1681
+ }
1682
+
1683
+ /** @internal */
1684
+ export const Sqli$inboundSchema: z.ZodType<Sqli, z.ZodTypeDef, unknown> = z
1685
+ .object({
1686
+ active: z.boolean(),
1687
+ action:
1688
+ PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction$inboundSchema,
1689
+ });
1690
+
1691
+ /** @internal */
1692
+ export type Sqli$Outbound = {
1693
+ active: boolean;
1694
+ action: string;
1695
+ };
1696
+
1697
+ /** @internal */
1698
+ export const Sqli$outboundSchema: z.ZodType<Sqli$Outbound, z.ZodTypeDef, Sqli> =
1699
+ z.object({
1700
+ active: z.boolean(),
1701
+ action:
1702
+ PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction$outboundSchema,
1703
+ });
1704
+
1705
+ /**
1706
+ * @internal
1707
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1708
+ */
1709
+ export namespace Sqli$ {
1710
+ /** @deprecated use `Sqli$inboundSchema` instead. */
1711
+ export const inboundSchema = Sqli$inboundSchema;
1712
+ /** @deprecated use `Sqli$outboundSchema` instead. */
1713
+ export const outboundSchema = Sqli$outboundSchema;
1714
+ /** @deprecated use `Sqli$Outbound` instead. */
1715
+ export type Outbound = Sqli$Outbound;
1716
+ }
1717
+
1718
+ export function sqliToJSON(sqli: Sqli): string {
1719
+ return JSON.stringify(Sqli$outboundSchema.parse(sqli));
1720
+ }
1721
+
1722
+ export function sqliFromJSON(
1723
+ jsonString: string,
1724
+ ): SafeParseResult<Sqli, SDKValidationError> {
1725
+ return safeParse(
1726
+ jsonString,
1727
+ (x) => Sqli$inboundSchema.parse(JSON.parse(x)),
1728
+ `Failed to parse 'Sqli' from JSON`,
1729
+ );
1730
+ }
1731
+
1732
+ /** @internal */
1733
+ export const PutFirewallConfigSecurityRequestRequestBodyCrsSfAction$inboundSchema:
1734
+ z.ZodNativeEnum<
1735
+ typeof PutFirewallConfigSecurityRequestRequestBodyCrsSfAction
1736
+ > = z.nativeEnum(PutFirewallConfigSecurityRequestRequestBodyCrsSfAction);
1737
+
1738
+ /** @internal */
1739
+ export const PutFirewallConfigSecurityRequestRequestBodyCrsSfAction$outboundSchema:
1740
+ z.ZodNativeEnum<
1741
+ typeof PutFirewallConfigSecurityRequestRequestBodyCrsSfAction
1742
+ > = PutFirewallConfigSecurityRequestRequestBodyCrsSfAction$inboundSchema;
1743
+
1744
+ /**
1745
+ * @internal
1746
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1747
+ */
1748
+ export namespace PutFirewallConfigSecurityRequestRequestBodyCrsSfAction$ {
1749
+ /** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsSfAction$inboundSchema` instead. */
1750
+ export const inboundSchema =
1751
+ PutFirewallConfigSecurityRequestRequestBodyCrsSfAction$inboundSchema;
1752
+ /** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsSfAction$outboundSchema` instead. */
1753
+ export const outboundSchema =
1754
+ PutFirewallConfigSecurityRequestRequestBodyCrsSfAction$outboundSchema;
1755
+ }
1756
+
1757
+ /** @internal */
1758
+ export const Sf$inboundSchema: z.ZodType<Sf, z.ZodTypeDef, unknown> = z.object({
1759
+ active: z.boolean(),
1760
+ action: PutFirewallConfigSecurityRequestRequestBodyCrsSfAction$inboundSchema,
1761
+ });
1762
+
1763
+ /** @internal */
1764
+ export type Sf$Outbound = {
1765
+ active: boolean;
1766
+ action: string;
1767
+ };
1768
+
1769
+ /** @internal */
1770
+ export const Sf$outboundSchema: z.ZodType<Sf$Outbound, z.ZodTypeDef, Sf> = z
1771
+ .object({
1772
+ active: z.boolean(),
1773
+ action:
1774
+ PutFirewallConfigSecurityRequestRequestBodyCrsSfAction$outboundSchema,
1775
+ });
1776
+
1777
+ /**
1778
+ * @internal
1779
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1780
+ */
1781
+ export namespace Sf$ {
1782
+ /** @deprecated use `Sf$inboundSchema` instead. */
1783
+ export const inboundSchema = Sf$inboundSchema;
1784
+ /** @deprecated use `Sf$outboundSchema` instead. */
1785
+ export const outboundSchema = Sf$outboundSchema;
1786
+ /** @deprecated use `Sf$Outbound` instead. */
1787
+ export type Outbound = Sf$Outbound;
1788
+ }
1789
+
1790
+ export function sfToJSON(sf: Sf): string {
1791
+ return JSON.stringify(Sf$outboundSchema.parse(sf));
1792
+ }
1793
+
1794
+ export function sfFromJSON(
1795
+ jsonString: string,
1796
+ ): SafeParseResult<Sf, SDKValidationError> {
1797
+ return safeParse(
1798
+ jsonString,
1799
+ (x) => Sf$inboundSchema.parse(JSON.parse(x)),
1800
+ `Failed to parse 'Sf' from JSON`,
1801
+ );
1802
+ }
1803
+
1804
+ /** @internal */
1805
+ export const PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction$inboundSchema:
1806
+ z.ZodNativeEnum<
1807
+ typeof PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction
1808
+ > = z.nativeEnum(PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction);
1809
+
1810
+ /** @internal */
1811
+ export const PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction$outboundSchema:
1812
+ z.ZodNativeEnum<
1813
+ typeof PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction
1814
+ > = PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction$inboundSchema;
1815
+
1816
+ /**
1817
+ * @internal
1818
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1819
+ */
1820
+ export namespace PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction$ {
1821
+ /** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction$inboundSchema` instead. */
1822
+ export const inboundSchema =
1823
+ PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction$inboundSchema;
1824
+ /** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction$outboundSchema` instead. */
1825
+ export const outboundSchema =
1826
+ PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction$outboundSchema;
1827
+ }
1828
+
1829
+ /** @internal */
1830
+ export const Java$inboundSchema: z.ZodType<Java, z.ZodTypeDef, unknown> = z
1831
+ .object({
1832
+ active: z.boolean(),
1833
+ action:
1834
+ PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction$inboundSchema,
1835
+ });
1836
+
1837
+ /** @internal */
1838
+ export type Java$Outbound = {
1839
+ active: boolean;
1840
+ action: string;
1841
+ };
1842
+
1843
+ /** @internal */
1844
+ export const Java$outboundSchema: z.ZodType<Java$Outbound, z.ZodTypeDef, Java> =
1845
+ z.object({
1846
+ active: z.boolean(),
1847
+ action:
1848
+ PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction$outboundSchema,
1849
+ });
1850
+
1851
+ /**
1852
+ * @internal
1853
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1854
+ */
1855
+ export namespace Java$ {
1856
+ /** @deprecated use `Java$inboundSchema` instead. */
1857
+ export const inboundSchema = Java$inboundSchema;
1858
+ /** @deprecated use `Java$outboundSchema` instead. */
1859
+ export const outboundSchema = Java$outboundSchema;
1860
+ /** @deprecated use `Java$Outbound` instead. */
1861
+ export type Outbound = Java$Outbound;
1862
+ }
1863
+
1864
+ export function javaToJSON(java: Java): string {
1865
+ return JSON.stringify(Java$outboundSchema.parse(java));
1866
+ }
1867
+
1868
+ export function javaFromJSON(
1869
+ jsonString: string,
1870
+ ): SafeParseResult<Java, SDKValidationError> {
1871
+ return safeParse(
1872
+ jsonString,
1873
+ (x) => Java$inboundSchema.parse(JSON.parse(x)),
1874
+ `Failed to parse 'Java' from JSON`,
1875
+ );
1876
+ }
1877
+
1878
+ /** @internal */
1879
+ export const Crs$inboundSchema: z.ZodType<Crs, z.ZodTypeDef, unknown> = z
1880
+ .object({
1881
+ sd: z.lazy(() => Sd$inboundSchema).optional(),
1882
+ ma: z.lazy(() => Ma$inboundSchema).optional(),
1883
+ lfi: z.lazy(() => Lfi$inboundSchema).optional(),
1884
+ rfi: z.lazy(() => Rfi$inboundSchema).optional(),
1885
+ rce: z.lazy(() => Rce$inboundSchema).optional(),
1886
+ php: z.lazy(() => Php$inboundSchema).optional(),
1887
+ gen: z.lazy(() => Gen$inboundSchema).optional(),
1888
+ xss: z.lazy(() => Xss$inboundSchema).optional(),
1889
+ sqli: z.lazy(() => Sqli$inboundSchema).optional(),
1890
+ sf: z.lazy(() => Sf$inboundSchema).optional(),
1891
+ java: z.lazy(() => Java$inboundSchema).optional(),
1892
+ });
1893
+
1894
+ /** @internal */
1895
+ export type Crs$Outbound = {
1896
+ sd?: Sd$Outbound | undefined;
1897
+ ma?: Ma$Outbound | undefined;
1898
+ lfi?: Lfi$Outbound | undefined;
1899
+ rfi?: Rfi$Outbound | undefined;
1900
+ rce?: Rce$Outbound | undefined;
1901
+ php?: Php$Outbound | undefined;
1902
+ gen?: Gen$Outbound | undefined;
1903
+ xss?: Xss$Outbound | undefined;
1904
+ sqli?: Sqli$Outbound | undefined;
1905
+ sf?: Sf$Outbound | undefined;
1906
+ java?: Java$Outbound | undefined;
1907
+ };
1908
+
1909
+ /** @internal */
1910
+ export const Crs$outboundSchema: z.ZodType<Crs$Outbound, z.ZodTypeDef, Crs> = z
1911
+ .object({
1912
+ sd: z.lazy(() => Sd$outboundSchema).optional(),
1913
+ ma: z.lazy(() => Ma$outboundSchema).optional(),
1914
+ lfi: z.lazy(() => Lfi$outboundSchema).optional(),
1915
+ rfi: z.lazy(() => Rfi$outboundSchema).optional(),
1916
+ rce: z.lazy(() => Rce$outboundSchema).optional(),
1917
+ php: z.lazy(() => Php$outboundSchema).optional(),
1918
+ gen: z.lazy(() => Gen$outboundSchema).optional(),
1919
+ xss: z.lazy(() => Xss$outboundSchema).optional(),
1920
+ sqli: z.lazy(() => Sqli$outboundSchema).optional(),
1921
+ sf: z.lazy(() => Sf$outboundSchema).optional(),
1922
+ java: z.lazy(() => Java$outboundSchema).optional(),
1923
+ });
1924
+
1925
+ /**
1926
+ * @internal
1927
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1928
+ */
1929
+ export namespace Crs$ {
1930
+ /** @deprecated use `Crs$inboundSchema` instead. */
1931
+ export const inboundSchema = Crs$inboundSchema;
1932
+ /** @deprecated use `Crs$outboundSchema` instead. */
1933
+ export const outboundSchema = Crs$outboundSchema;
1934
+ /** @deprecated use `Crs$Outbound` instead. */
1935
+ export type Outbound = Crs$Outbound;
1936
+ }
1937
+
1938
+ export function crsToJSON(crs: Crs): string {
1939
+ return JSON.stringify(Crs$outboundSchema.parse(crs));
1940
+ }
1941
+
1942
+ export function crsFromJSON(
1943
+ jsonString: string,
1944
+ ): SafeParseResult<Crs, SDKValidationError> {
1945
+ return safeParse(
1946
+ jsonString,
1947
+ (x) => Crs$inboundSchema.parse(JSON.parse(x)),
1948
+ `Failed to parse 'Crs' from JSON`,
1949
+ );
1950
+ }
1951
+
1952
+ /** @internal */
1953
+ export const PutFirewallConfigType$inboundSchema: z.ZodNativeEnum<
1954
+ typeof PutFirewallConfigType
1955
+ > = z.nativeEnum(PutFirewallConfigType);
1956
+
1957
+ /** @internal */
1958
+ export const PutFirewallConfigType$outboundSchema: z.ZodNativeEnum<
1959
+ typeof PutFirewallConfigType
1960
+ > = PutFirewallConfigType$inboundSchema;
1961
+
1962
+ /**
1963
+ * @internal
1964
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1965
+ */
1966
+ export namespace PutFirewallConfigType$ {
1967
+ /** @deprecated use `PutFirewallConfigType$inboundSchema` instead. */
1968
+ export const inboundSchema = PutFirewallConfigType$inboundSchema;
1969
+ /** @deprecated use `PutFirewallConfigType$outboundSchema` instead. */
1970
+ export const outboundSchema = PutFirewallConfigType$outboundSchema;
1971
+ }
1972
+
1973
+ /** @internal */
1974
+ export const Op$inboundSchema: z.ZodNativeEnum<typeof Op> = z.nativeEnum(Op);
1975
+
1976
+ /** @internal */
1977
+ export const Op$outboundSchema: z.ZodNativeEnum<typeof Op> = Op$inboundSchema;
1978
+
1979
+ /**
1980
+ * @internal
1981
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1982
+ */
1983
+ export namespace Op$ {
1984
+ /** @deprecated use `Op$inboundSchema` instead. */
1985
+ export const inboundSchema = Op$inboundSchema;
1986
+ /** @deprecated use `Op$outboundSchema` instead. */
1987
+ export const outboundSchema = Op$outboundSchema;
1988
+ }
1989
+
1990
+ /** @internal */
1991
+ export const Value$inboundSchema: z.ZodType<Value, z.ZodTypeDef, unknown> = z
1992
+ .union([z.string(), z.array(z.string()), z.number()]);
1993
+
1994
+ /** @internal */
1995
+ export type Value$Outbound = string | Array<string> | number;
1996
+
1997
+ /** @internal */
1998
+ export const Value$outboundSchema: z.ZodType<
1999
+ Value$Outbound,
2000
+ z.ZodTypeDef,
2001
+ Value
2002
+ > = z.union([z.string(), z.array(z.string()), z.number()]);
2003
+
2004
+ /**
2005
+ * @internal
2006
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2007
+ */
2008
+ export namespace Value$ {
2009
+ /** @deprecated use `Value$inboundSchema` instead. */
2010
+ export const inboundSchema = Value$inboundSchema;
2011
+ /** @deprecated use `Value$outboundSchema` instead. */
2012
+ export const outboundSchema = Value$outboundSchema;
2013
+ /** @deprecated use `Value$Outbound` instead. */
2014
+ export type Outbound = Value$Outbound;
2015
+ }
2016
+
2017
+ export function valueToJSON(value: Value): string {
2018
+ return JSON.stringify(Value$outboundSchema.parse(value));
2019
+ }
2020
+
2021
+ export function valueFromJSON(
2022
+ jsonString: string,
2023
+ ): SafeParseResult<Value, SDKValidationError> {
2024
+ return safeParse(
2025
+ jsonString,
2026
+ (x) => Value$inboundSchema.parse(JSON.parse(x)),
2027
+ `Failed to parse 'Value' from JSON`,
2028
+ );
2029
+ }
2030
+
2031
+ /** @internal */
2032
+ export const Conditions$inboundSchema: z.ZodType<
2033
+ Conditions,
2034
+ z.ZodTypeDef,
2035
+ unknown
2036
+ > = z.object({
2037
+ type: PutFirewallConfigType$inboundSchema,
2038
+ op: Op$inboundSchema,
2039
+ neg: z.boolean().optional(),
2040
+ key: z.string().optional(),
2041
+ value: z.union([z.string(), z.array(z.string()), z.number()]).optional(),
2042
+ });
2043
+
2044
+ /** @internal */
2045
+ export type Conditions$Outbound = {
2046
+ type: string;
2047
+ op: string;
2048
+ neg?: boolean | undefined;
2049
+ key?: string | undefined;
2050
+ value?: string | Array<string> | number | undefined;
2051
+ };
2052
+
2053
+ /** @internal */
2054
+ export const Conditions$outboundSchema: z.ZodType<
2055
+ Conditions$Outbound,
2056
+ z.ZodTypeDef,
2057
+ Conditions
2058
+ > = z.object({
2059
+ type: PutFirewallConfigType$outboundSchema,
2060
+ op: Op$outboundSchema,
2061
+ neg: z.boolean().optional(),
2062
+ key: z.string().optional(),
2063
+ value: z.union([z.string(), z.array(z.string()), z.number()]).optional(),
2064
+ });
2065
+
2066
+ /**
2067
+ * @internal
2068
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2069
+ */
2070
+ export namespace Conditions$ {
2071
+ /** @deprecated use `Conditions$inboundSchema` instead. */
2072
+ export const inboundSchema = Conditions$inboundSchema;
2073
+ /** @deprecated use `Conditions$outboundSchema` instead. */
2074
+ export const outboundSchema = Conditions$outboundSchema;
2075
+ /** @deprecated use `Conditions$Outbound` instead. */
2076
+ export type Outbound = Conditions$Outbound;
2077
+ }
2078
+
2079
+ export function conditionsToJSON(conditions: Conditions): string {
2080
+ return JSON.stringify(Conditions$outboundSchema.parse(conditions));
2081
+ }
2082
+
2083
+ export function conditionsFromJSON(
2084
+ jsonString: string,
2085
+ ): SafeParseResult<Conditions, SDKValidationError> {
2086
+ return safeParse(
2087
+ jsonString,
2088
+ (x) => Conditions$inboundSchema.parse(JSON.parse(x)),
2089
+ `Failed to parse 'Conditions' from JSON`,
2090
+ );
2091
+ }
2092
+
2093
+ /** @internal */
2094
+ export const ConditionGroup$inboundSchema: z.ZodType<
2095
+ ConditionGroup,
2096
+ z.ZodTypeDef,
2097
+ unknown
2098
+ > = z.object({
2099
+ conditions: z.array(z.lazy(() => Conditions$inboundSchema)),
2100
+ });
2101
+
2102
+ /** @internal */
2103
+ export type ConditionGroup$Outbound = {
2104
+ conditions: Array<Conditions$Outbound>;
2105
+ };
2106
+
2107
+ /** @internal */
2108
+ export const ConditionGroup$outboundSchema: z.ZodType<
2109
+ ConditionGroup$Outbound,
2110
+ z.ZodTypeDef,
2111
+ ConditionGroup
2112
+ > = z.object({
2113
+ conditions: z.array(z.lazy(() => Conditions$outboundSchema)),
2114
+ });
2115
+
2116
+ /**
2117
+ * @internal
2118
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2119
+ */
2120
+ export namespace ConditionGroup$ {
2121
+ /** @deprecated use `ConditionGroup$inboundSchema` instead. */
2122
+ export const inboundSchema = ConditionGroup$inboundSchema;
2123
+ /** @deprecated use `ConditionGroup$outboundSchema` instead. */
2124
+ export const outboundSchema = ConditionGroup$outboundSchema;
2125
+ /** @deprecated use `ConditionGroup$Outbound` instead. */
2126
+ export type Outbound = ConditionGroup$Outbound;
2127
+ }
2128
+
2129
+ export function conditionGroupToJSON(conditionGroup: ConditionGroup): string {
2130
+ return JSON.stringify(ConditionGroup$outboundSchema.parse(conditionGroup));
2131
+ }
2132
+
2133
+ export function conditionGroupFromJSON(
2134
+ jsonString: string,
2135
+ ): SafeParseResult<ConditionGroup, SDKValidationError> {
2136
+ return safeParse(
2137
+ jsonString,
2138
+ (x) => ConditionGroup$inboundSchema.parse(JSON.parse(x)),
2139
+ `Failed to parse 'ConditionGroup' from JSON`,
2140
+ );
2141
+ }
2142
+
2143
+ /** @internal */
2144
+ export const PutFirewallConfigSecurityRequestRequestBodyRulesActionAction$inboundSchema:
2145
+ z.ZodNativeEnum<
2146
+ typeof PutFirewallConfigSecurityRequestRequestBodyRulesActionAction
2147
+ > = z.nativeEnum(
2148
+ PutFirewallConfigSecurityRequestRequestBodyRulesActionAction,
2149
+ );
2150
+
2151
+ /** @internal */
2152
+ export const PutFirewallConfigSecurityRequestRequestBodyRulesActionAction$outboundSchema:
2153
+ z.ZodNativeEnum<
2154
+ typeof PutFirewallConfigSecurityRequestRequestBodyRulesActionAction
2155
+ > =
2156
+ PutFirewallConfigSecurityRequestRequestBodyRulesActionAction$inboundSchema;
2157
+
2158
+ /**
2159
+ * @internal
2160
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2161
+ */
2162
+ export namespace PutFirewallConfigSecurityRequestRequestBodyRulesActionAction$ {
2163
+ /** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyRulesActionAction$inboundSchema` instead. */
2164
+ export const inboundSchema =
2165
+ PutFirewallConfigSecurityRequestRequestBodyRulesActionAction$inboundSchema;
2166
+ /** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyRulesActionAction$outboundSchema` instead. */
2167
+ export const outboundSchema =
2168
+ PutFirewallConfigSecurityRequestRequestBodyRulesActionAction$outboundSchema;
2169
+ }
2170
+
2171
+ /** @internal */
2172
+ export const Algo$inboundSchema: z.ZodNativeEnum<typeof Algo> = z.nativeEnum(
2173
+ Algo,
2174
+ );
2175
+
2176
+ /** @internal */
2177
+ export const Algo$outboundSchema: z.ZodNativeEnum<typeof Algo> =
2178
+ Algo$inboundSchema;
2179
+
2180
+ /**
2181
+ * @internal
2182
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2183
+ */
2184
+ export namespace Algo$ {
2185
+ /** @deprecated use `Algo$inboundSchema` instead. */
2186
+ export const inboundSchema = Algo$inboundSchema;
2187
+ /** @deprecated use `Algo$outboundSchema` instead. */
2188
+ export const outboundSchema = Algo$outboundSchema;
2189
+ }
2190
+
2191
+ /** @internal */
2192
+ export const Action1$inboundSchema: z.ZodNativeEnum<typeof Action1> = z
2193
+ .nativeEnum(Action1);
2194
+
2195
+ /** @internal */
2196
+ export const Action1$outboundSchema: z.ZodNativeEnum<typeof Action1> =
2197
+ Action1$inboundSchema;
2198
+
2199
+ /**
2200
+ * @internal
2201
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2202
+ */
2203
+ export namespace Action1$ {
2204
+ /** @deprecated use `Action1$inboundSchema` instead. */
2205
+ export const inboundSchema = Action1$inboundSchema;
2206
+ /** @deprecated use `Action1$outboundSchema` instead. */
2207
+ export const outboundSchema = Action1$outboundSchema;
2208
+ }
2209
+
2210
+ /** @internal */
2211
+ export const RateLimitAction$inboundSchema: z.ZodType<
2212
+ RateLimitAction,
2213
+ z.ZodTypeDef,
2214
+ unknown
2215
+ > = z.union([Action1$inboundSchema, z.any()]);
2216
+
2217
+ /** @internal */
2218
+ export type RateLimitAction$Outbound = string | any;
2219
+
2220
+ /** @internal */
2221
+ export const RateLimitAction$outboundSchema: z.ZodType<
2222
+ RateLimitAction$Outbound,
2223
+ z.ZodTypeDef,
2224
+ RateLimitAction
2225
+ > = z.union([Action1$outboundSchema, z.any()]);
2226
+
2227
+ /**
2228
+ * @internal
2229
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2230
+ */
2231
+ export namespace RateLimitAction$ {
2232
+ /** @deprecated use `RateLimitAction$inboundSchema` instead. */
2233
+ export const inboundSchema = RateLimitAction$inboundSchema;
2234
+ /** @deprecated use `RateLimitAction$outboundSchema` instead. */
2235
+ export const outboundSchema = RateLimitAction$outboundSchema;
2236
+ /** @deprecated use `RateLimitAction$Outbound` instead. */
2237
+ export type Outbound = RateLimitAction$Outbound;
2238
+ }
2239
+
2240
+ export function rateLimitActionToJSON(
2241
+ rateLimitAction: RateLimitAction,
2242
+ ): string {
2243
+ return JSON.stringify(RateLimitAction$outboundSchema.parse(rateLimitAction));
2244
+ }
2245
+
2246
+ export function rateLimitActionFromJSON(
2247
+ jsonString: string,
2248
+ ): SafeParseResult<RateLimitAction, SDKValidationError> {
2249
+ return safeParse(
2250
+ jsonString,
2251
+ (x) => RateLimitAction$inboundSchema.parse(JSON.parse(x)),
2252
+ `Failed to parse 'RateLimitAction' from JSON`,
2253
+ );
2254
+ }
2255
+
2256
+ /** @internal */
2257
+ export const RateLimit1$inboundSchema: z.ZodType<
2258
+ RateLimit1,
2259
+ z.ZodTypeDef,
2260
+ unknown
2261
+ > = z.object({
2262
+ algo: Algo$inboundSchema,
2263
+ window: z.number(),
2264
+ limit: z.number(),
2265
+ keys: z.array(z.string()),
2266
+ action: z.nullable(z.union([Action1$inboundSchema, z.any()])).optional(),
2267
+ });
2268
+
2269
+ /** @internal */
2270
+ export type RateLimit1$Outbound = {
2271
+ algo: string;
2272
+ window: number;
2273
+ limit: number;
2274
+ keys: Array<string>;
2275
+ action?: string | any | null | undefined;
2276
+ };
2277
+
2278
+ /** @internal */
2279
+ export const RateLimit1$outboundSchema: z.ZodType<
2280
+ RateLimit1$Outbound,
2281
+ z.ZodTypeDef,
2282
+ RateLimit1
2283
+ > = z.object({
2284
+ algo: Algo$outboundSchema,
2285
+ window: z.number(),
2286
+ limit: z.number(),
2287
+ keys: z.array(z.string()),
2288
+ action: z.nullable(z.union([Action1$outboundSchema, z.any()])).optional(),
2289
+ });
2290
+
2291
+ /**
2292
+ * @internal
2293
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2294
+ */
2295
+ export namespace RateLimit1$ {
2296
+ /** @deprecated use `RateLimit1$inboundSchema` instead. */
2297
+ export const inboundSchema = RateLimit1$inboundSchema;
2298
+ /** @deprecated use `RateLimit1$outboundSchema` instead. */
2299
+ export const outboundSchema = RateLimit1$outboundSchema;
2300
+ /** @deprecated use `RateLimit1$Outbound` instead. */
2301
+ export type Outbound = RateLimit1$Outbound;
2302
+ }
2303
+
2304
+ export function rateLimit1ToJSON(rateLimit1: RateLimit1): string {
2305
+ return JSON.stringify(RateLimit1$outboundSchema.parse(rateLimit1));
2306
+ }
2307
+
2308
+ export function rateLimit1FromJSON(
2309
+ jsonString: string,
2310
+ ): SafeParseResult<RateLimit1, SDKValidationError> {
2311
+ return safeParse(
2312
+ jsonString,
2313
+ (x) => RateLimit1$inboundSchema.parse(JSON.parse(x)),
2314
+ `Failed to parse 'RateLimit1' from JSON`,
2315
+ );
2316
+ }
2317
+
2318
+ /** @internal */
2319
+ export const RateLimit$inboundSchema: z.ZodType<
2320
+ RateLimit,
2321
+ z.ZodTypeDef,
2322
+ unknown
2323
+ > = z.union([z.lazy(() => RateLimit1$inboundSchema), z.any()]);
2324
+
2325
+ /** @internal */
2326
+ export type RateLimit$Outbound = RateLimit1$Outbound | any;
2327
+
2328
+ /** @internal */
2329
+ export const RateLimit$outboundSchema: z.ZodType<
2330
+ RateLimit$Outbound,
2331
+ z.ZodTypeDef,
2332
+ RateLimit
2333
+ > = z.union([z.lazy(() => RateLimit1$outboundSchema), z.any()]);
2334
+
2335
+ /**
2336
+ * @internal
2337
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2338
+ */
2339
+ export namespace RateLimit$ {
2340
+ /** @deprecated use `RateLimit$inboundSchema` instead. */
2341
+ export const inboundSchema = RateLimit$inboundSchema;
2342
+ /** @deprecated use `RateLimit$outboundSchema` instead. */
2343
+ export const outboundSchema = RateLimit$outboundSchema;
2344
+ /** @deprecated use `RateLimit$Outbound` instead. */
2345
+ export type Outbound = RateLimit$Outbound;
2346
+ }
2347
+
2348
+ export function rateLimitToJSON(rateLimit: RateLimit): string {
2349
+ return JSON.stringify(RateLimit$outboundSchema.parse(rateLimit));
2350
+ }
2351
+
2352
+ export function rateLimitFromJSON(
2353
+ jsonString: string,
2354
+ ): SafeParseResult<RateLimit, SDKValidationError> {
2355
+ return safeParse(
2356
+ jsonString,
2357
+ (x) => RateLimit$inboundSchema.parse(JSON.parse(x)),
2358
+ `Failed to parse 'RateLimit' from JSON`,
2359
+ );
2360
+ }
2361
+
2362
+ /** @internal */
2363
+ export const Redirect1$inboundSchema: z.ZodType<
2364
+ Redirect1,
2365
+ z.ZodTypeDef,
2366
+ unknown
2367
+ > = z.object({
2368
+ location: z.string(),
2369
+ permanent: z.boolean(),
2370
+ });
2371
+
2372
+ /** @internal */
2373
+ export type Redirect1$Outbound = {
2374
+ location: string;
2375
+ permanent: boolean;
2376
+ };
2377
+
2378
+ /** @internal */
2379
+ export const Redirect1$outboundSchema: z.ZodType<
2380
+ Redirect1$Outbound,
2381
+ z.ZodTypeDef,
2382
+ Redirect1
2383
+ > = z.object({
2384
+ location: z.string(),
2385
+ permanent: z.boolean(),
2386
+ });
2387
+
2388
+ /**
2389
+ * @internal
2390
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2391
+ */
2392
+ export namespace Redirect1$ {
2393
+ /** @deprecated use `Redirect1$inboundSchema` instead. */
2394
+ export const inboundSchema = Redirect1$inboundSchema;
2395
+ /** @deprecated use `Redirect1$outboundSchema` instead. */
2396
+ export const outboundSchema = Redirect1$outboundSchema;
2397
+ /** @deprecated use `Redirect1$Outbound` instead. */
2398
+ export type Outbound = Redirect1$Outbound;
2399
+ }
2400
+
2401
+ export function redirect1ToJSON(redirect1: Redirect1): string {
2402
+ return JSON.stringify(Redirect1$outboundSchema.parse(redirect1));
2403
+ }
2404
+
2405
+ export function redirect1FromJSON(
2406
+ jsonString: string,
2407
+ ): SafeParseResult<Redirect1, SDKValidationError> {
2408
+ return safeParse(
2409
+ jsonString,
2410
+ (x) => Redirect1$inboundSchema.parse(JSON.parse(x)),
2411
+ `Failed to parse 'Redirect1' from JSON`,
2412
+ );
2413
+ }
2414
+
2415
+ /** @internal */
2416
+ export const Redirect$inboundSchema: z.ZodType<
2417
+ Redirect,
2418
+ z.ZodTypeDef,
2419
+ unknown
2420
+ > = z.union([z.lazy(() => Redirect1$inboundSchema), z.any()]);
2421
+
2422
+ /** @internal */
2423
+ export type Redirect$Outbound = Redirect1$Outbound | any;
2424
+
2425
+ /** @internal */
2426
+ export const Redirect$outboundSchema: z.ZodType<
2427
+ Redirect$Outbound,
2428
+ z.ZodTypeDef,
2429
+ Redirect
2430
+ > = z.union([z.lazy(() => Redirect1$outboundSchema), z.any()]);
2431
+
2432
+ /**
2433
+ * @internal
2434
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2435
+ */
2436
+ export namespace Redirect$ {
2437
+ /** @deprecated use `Redirect$inboundSchema` instead. */
2438
+ export const inboundSchema = Redirect$inboundSchema;
2439
+ /** @deprecated use `Redirect$outboundSchema` instead. */
2440
+ export const outboundSchema = Redirect$outboundSchema;
2441
+ /** @deprecated use `Redirect$Outbound` instead. */
2442
+ export type Outbound = Redirect$Outbound;
2443
+ }
2444
+
2445
+ export function redirectToJSON(redirect: Redirect): string {
2446
+ return JSON.stringify(Redirect$outboundSchema.parse(redirect));
2447
+ }
2448
+
2449
+ export function redirectFromJSON(
2450
+ jsonString: string,
2451
+ ): SafeParseResult<Redirect, SDKValidationError> {
2452
+ return safeParse(
2453
+ jsonString,
2454
+ (x) => Redirect$inboundSchema.parse(JSON.parse(x)),
2455
+ `Failed to parse 'Redirect' from JSON`,
2456
+ );
2457
+ }
2458
+
2459
+ /** @internal */
2460
+ export const Mitigate$inboundSchema: z.ZodType<
2461
+ Mitigate,
2462
+ z.ZodTypeDef,
2463
+ unknown
2464
+ > = z.object({
2465
+ action:
2466
+ PutFirewallConfigSecurityRequestRequestBodyRulesActionAction$inboundSchema,
2467
+ rateLimit: z.nullable(
2468
+ z.union([z.lazy(() => RateLimit1$inboundSchema), z.any()]),
2469
+ ).optional(),
2470
+ redirect: z.nullable(
2471
+ z.union([z.lazy(() => Redirect1$inboundSchema), z.any()]),
2472
+ ).optional(),
2473
+ actionDuration: z.nullable(z.string()).optional(),
2474
+ bypassSystem: z.nullable(z.boolean()).optional(),
2475
+ });
2476
+
2477
+ /** @internal */
2478
+ export type Mitigate$Outbound = {
2479
+ action: string;
2480
+ rateLimit?: RateLimit1$Outbound | any | null | undefined;
2481
+ redirect?: Redirect1$Outbound | any | null | undefined;
2482
+ actionDuration?: string | null | undefined;
2483
+ bypassSystem?: boolean | null | undefined;
2484
+ };
2485
+
2486
+ /** @internal */
2487
+ export const Mitigate$outboundSchema: z.ZodType<
2488
+ Mitigate$Outbound,
2489
+ z.ZodTypeDef,
2490
+ Mitigate
2491
+ > = z.object({
2492
+ action:
2493
+ PutFirewallConfigSecurityRequestRequestBodyRulesActionAction$outboundSchema,
2494
+ rateLimit: z.nullable(
2495
+ z.union([z.lazy(() => RateLimit1$outboundSchema), z.any()]),
2496
+ ).optional(),
2497
+ redirect: z.nullable(
2498
+ z.union([z.lazy(() => Redirect1$outboundSchema), z.any()]),
2499
+ ).optional(),
2500
+ actionDuration: z.nullable(z.string()).optional(),
2501
+ bypassSystem: z.nullable(z.boolean()).optional(),
2502
+ });
2503
+
2504
+ /**
2505
+ * @internal
2506
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2507
+ */
2508
+ export namespace Mitigate$ {
2509
+ /** @deprecated use `Mitigate$inboundSchema` instead. */
2510
+ export const inboundSchema = Mitigate$inboundSchema;
2511
+ /** @deprecated use `Mitigate$outboundSchema` instead. */
2512
+ export const outboundSchema = Mitigate$outboundSchema;
2513
+ /** @deprecated use `Mitigate$Outbound` instead. */
2514
+ export type Outbound = Mitigate$Outbound;
2515
+ }
2516
+
2517
+ export function mitigateToJSON(mitigate: Mitigate): string {
2518
+ return JSON.stringify(Mitigate$outboundSchema.parse(mitigate));
2519
+ }
2520
+
2521
+ export function mitigateFromJSON(
2522
+ jsonString: string,
2523
+ ): SafeParseResult<Mitigate, SDKValidationError> {
2524
+ return safeParse(
2525
+ jsonString,
2526
+ (x) => Mitigate$inboundSchema.parse(JSON.parse(x)),
2527
+ `Failed to parse 'Mitigate' from JSON`,
2528
+ );
2529
+ }
2530
+
2531
+ /** @internal */
2532
+ export const PutFirewallConfigSecurityRequestRequestBodyRulesAction$inboundSchema:
2533
+ z.ZodType<
2534
+ PutFirewallConfigSecurityRequestRequestBodyRulesAction,
2535
+ z.ZodTypeDef,
2536
+ unknown
2537
+ > = z.object({
2538
+ mitigate: z.lazy(() => Mitigate$inboundSchema).optional(),
2539
+ });
2540
+
2541
+ /** @internal */
2542
+ export type PutFirewallConfigSecurityRequestRequestBodyRulesAction$Outbound = {
2543
+ mitigate?: Mitigate$Outbound | undefined;
2544
+ };
2545
+
2546
+ /** @internal */
2547
+ export const PutFirewallConfigSecurityRequestRequestBodyRulesAction$outboundSchema:
2548
+ z.ZodType<
2549
+ PutFirewallConfigSecurityRequestRequestBodyRulesAction$Outbound,
2550
+ z.ZodTypeDef,
2551
+ PutFirewallConfigSecurityRequestRequestBodyRulesAction
2552
+ > = z.object({
2553
+ mitigate: z.lazy(() => Mitigate$outboundSchema).optional(),
2554
+ });
2555
+
2556
+ /**
2557
+ * @internal
2558
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2559
+ */
2560
+ export namespace PutFirewallConfigSecurityRequestRequestBodyRulesAction$ {
2561
+ /** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyRulesAction$inboundSchema` instead. */
2562
+ export const inboundSchema =
2563
+ PutFirewallConfigSecurityRequestRequestBodyRulesAction$inboundSchema;
2564
+ /** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyRulesAction$outboundSchema` instead. */
2565
+ export const outboundSchema =
2566
+ PutFirewallConfigSecurityRequestRequestBodyRulesAction$outboundSchema;
2567
+ /** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyRulesAction$Outbound` instead. */
2568
+ export type Outbound =
2569
+ PutFirewallConfigSecurityRequestRequestBodyRulesAction$Outbound;
2570
+ }
2571
+
2572
+ export function putFirewallConfigSecurityRequestRequestBodyRulesActionToJSON(
2573
+ putFirewallConfigSecurityRequestRequestBodyRulesAction:
2574
+ PutFirewallConfigSecurityRequestRequestBodyRulesAction,
2575
+ ): string {
2576
+ return JSON.stringify(
2577
+ PutFirewallConfigSecurityRequestRequestBodyRulesAction$outboundSchema.parse(
2578
+ putFirewallConfigSecurityRequestRequestBodyRulesAction,
2579
+ ),
2580
+ );
2581
+ }
2582
+
2583
+ export function putFirewallConfigSecurityRequestRequestBodyRulesActionFromJSON(
2584
+ jsonString: string,
2585
+ ): SafeParseResult<
2586
+ PutFirewallConfigSecurityRequestRequestBodyRulesAction,
2587
+ SDKValidationError
2588
+ > {
2589
+ return safeParse(
2590
+ jsonString,
2591
+ (x) =>
2592
+ PutFirewallConfigSecurityRequestRequestBodyRulesAction$inboundSchema
2593
+ .parse(JSON.parse(x)),
2594
+ `Failed to parse 'PutFirewallConfigSecurityRequestRequestBodyRulesAction' from JSON`,
2595
+ );
2596
+ }
2597
+
2598
+ /** @internal */
2599
+ export const PutFirewallConfigRules$inboundSchema: z.ZodType<
2600
+ PutFirewallConfigRules,
2601
+ z.ZodTypeDef,
2602
+ unknown
2603
+ > = z.object({
2604
+ id: z.string().optional(),
2605
+ name: z.string(),
2606
+ description: z.string().optional(),
2607
+ active: z.boolean(),
2608
+ conditionGroup: z.array(z.lazy(() => ConditionGroup$inboundSchema)),
2609
+ action: z.lazy(() =>
2610
+ PutFirewallConfigSecurityRequestRequestBodyRulesAction$inboundSchema
2611
+ ),
2612
+ });
2613
+
2614
+ /** @internal */
2615
+ export type PutFirewallConfigRules$Outbound = {
2616
+ id?: string | undefined;
2617
+ name: string;
2618
+ description?: string | undefined;
2619
+ active: boolean;
2620
+ conditionGroup: Array<ConditionGroup$Outbound>;
2621
+ action: PutFirewallConfigSecurityRequestRequestBodyRulesAction$Outbound;
2622
+ };
2623
+
2624
+ /** @internal */
2625
+ export const PutFirewallConfigRules$outboundSchema: z.ZodType<
2626
+ PutFirewallConfigRules$Outbound,
2627
+ z.ZodTypeDef,
2628
+ PutFirewallConfigRules
2629
+ > = z.object({
2630
+ id: z.string().optional(),
2631
+ name: z.string(),
2632
+ description: z.string().optional(),
2633
+ active: z.boolean(),
2634
+ conditionGroup: z.array(z.lazy(() => ConditionGroup$outboundSchema)),
2635
+ action: z.lazy(() =>
2636
+ PutFirewallConfigSecurityRequestRequestBodyRulesAction$outboundSchema
2637
+ ),
2638
+ });
2639
+
2640
+ /**
2641
+ * @internal
2642
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2643
+ */
2644
+ export namespace PutFirewallConfigRules$ {
2645
+ /** @deprecated use `PutFirewallConfigRules$inboundSchema` instead. */
2646
+ export const inboundSchema = PutFirewallConfigRules$inboundSchema;
2647
+ /** @deprecated use `PutFirewallConfigRules$outboundSchema` instead. */
2648
+ export const outboundSchema = PutFirewallConfigRules$outboundSchema;
2649
+ /** @deprecated use `PutFirewallConfigRules$Outbound` instead. */
2650
+ export type Outbound = PutFirewallConfigRules$Outbound;
2651
+ }
2652
+
2653
+ export function putFirewallConfigRulesToJSON(
2654
+ putFirewallConfigRules: PutFirewallConfigRules,
2655
+ ): string {
2656
+ return JSON.stringify(
2657
+ PutFirewallConfigRules$outboundSchema.parse(putFirewallConfigRules),
2658
+ );
2659
+ }
2660
+
2661
+ export function putFirewallConfigRulesFromJSON(
2662
+ jsonString: string,
2663
+ ): SafeParseResult<PutFirewallConfigRules, SDKValidationError> {
2664
+ return safeParse(
2665
+ jsonString,
2666
+ (x) => PutFirewallConfigRules$inboundSchema.parse(JSON.parse(x)),
2667
+ `Failed to parse 'PutFirewallConfigRules' from JSON`,
2668
+ );
2669
+ }
2670
+
2671
+ /** @internal */
2672
+ export const PutFirewallConfigSecurityRequestRequestBodyIpsAction$inboundSchema:
2673
+ z.ZodNativeEnum<typeof PutFirewallConfigSecurityRequestRequestBodyIpsAction> =
2674
+ z.nativeEnum(PutFirewallConfigSecurityRequestRequestBodyIpsAction);
2675
+
2676
+ /** @internal */
2677
+ export const PutFirewallConfigSecurityRequestRequestBodyIpsAction$outboundSchema:
2678
+ z.ZodNativeEnum<typeof PutFirewallConfigSecurityRequestRequestBodyIpsAction> =
2679
+ PutFirewallConfigSecurityRequestRequestBodyIpsAction$inboundSchema;
2680
+
2681
+ /**
2682
+ * @internal
2683
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2684
+ */
2685
+ export namespace PutFirewallConfigSecurityRequestRequestBodyIpsAction$ {
2686
+ /** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyIpsAction$inboundSchema` instead. */
2687
+ export const inboundSchema =
2688
+ PutFirewallConfigSecurityRequestRequestBodyIpsAction$inboundSchema;
2689
+ /** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyIpsAction$outboundSchema` instead. */
2690
+ export const outboundSchema =
2691
+ PutFirewallConfigSecurityRequestRequestBodyIpsAction$outboundSchema;
2692
+ }
2693
+
2694
+ /** @internal */
2695
+ export const Ips$inboundSchema: z.ZodType<Ips, z.ZodTypeDef, unknown> = z
2696
+ .object({
2697
+ id: z.string().optional(),
2698
+ hostname: z.string(),
2699
+ ip: z.string(),
2700
+ notes: z.string().optional(),
2701
+ action: PutFirewallConfigSecurityRequestRequestBodyIpsAction$inboundSchema,
2702
+ });
2703
+
2704
+ /** @internal */
2705
+ export type Ips$Outbound = {
2706
+ id?: string | undefined;
2707
+ hostname: string;
2708
+ ip: string;
2709
+ notes?: string | undefined;
2710
+ action: string;
2711
+ };
2712
+
2713
+ /** @internal */
2714
+ export const Ips$outboundSchema: z.ZodType<Ips$Outbound, z.ZodTypeDef, Ips> = z
2715
+ .object({
2716
+ id: z.string().optional(),
2717
+ hostname: z.string(),
2718
+ ip: z.string(),
2719
+ notes: z.string().optional(),
2720
+ action: PutFirewallConfigSecurityRequestRequestBodyIpsAction$outboundSchema,
2721
+ });
2722
+
2723
+ /**
2724
+ * @internal
2725
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2726
+ */
2727
+ export namespace Ips$ {
2728
+ /** @deprecated use `Ips$inboundSchema` instead. */
2729
+ export const inboundSchema = Ips$inboundSchema;
2730
+ /** @deprecated use `Ips$outboundSchema` instead. */
2731
+ export const outboundSchema = Ips$outboundSchema;
2732
+ /** @deprecated use `Ips$Outbound` instead. */
2733
+ export type Outbound = Ips$Outbound;
2734
+ }
2735
+
2736
+ export function ipsToJSON(ips: Ips): string {
2737
+ return JSON.stringify(Ips$outboundSchema.parse(ips));
2738
+ }
2739
+
2740
+ export function ipsFromJSON(
2741
+ jsonString: string,
2742
+ ): SafeParseResult<Ips, SDKValidationError> {
2743
+ return safeParse(
2744
+ jsonString,
2745
+ (x) => Ips$inboundSchema.parse(JSON.parse(x)),
2746
+ `Failed to parse 'Ips' from JSON`,
2747
+ );
2748
+ }
2749
+
2750
+ /** @internal */
2751
+ export const PutFirewallConfigRequestBody$inboundSchema: z.ZodType<
2752
+ PutFirewallConfigRequestBody,
2753
+ z.ZodTypeDef,
2754
+ unknown
2755
+ > = z.object({
2756
+ firewallEnabled: z.boolean(),
2757
+ managedRules: z.record(z.lazy(() => ManagedRules1$inboundSchema)).optional(),
2758
+ crs: z.lazy(() => Crs$inboundSchema).optional(),
2759
+ rules: z.array(z.lazy(() => PutFirewallConfigRules$inboundSchema)).optional(),
2760
+ ips: z.array(z.lazy(() => Ips$inboundSchema)).optional(),
2761
+ });
2762
+
2763
+ /** @internal */
2764
+ export type PutFirewallConfigRequestBody$Outbound = {
2765
+ firewallEnabled: boolean;
2766
+ managedRules?: { [k: string]: ManagedRules1$Outbound } | undefined;
2767
+ crs?: Crs$Outbound | undefined;
2768
+ rules?: Array<PutFirewallConfigRules$Outbound> | undefined;
2769
+ ips?: Array<Ips$Outbound> | undefined;
2770
+ };
2771
+
2772
+ /** @internal */
2773
+ export const PutFirewallConfigRequestBody$outboundSchema: z.ZodType<
2774
+ PutFirewallConfigRequestBody$Outbound,
2775
+ z.ZodTypeDef,
2776
+ PutFirewallConfigRequestBody
2777
+ > = z.object({
2778
+ firewallEnabled: z.boolean(),
2779
+ managedRules: z.record(z.lazy(() => ManagedRules1$outboundSchema)).optional(),
2780
+ crs: z.lazy(() => Crs$outboundSchema).optional(),
2781
+ rules: z.array(z.lazy(() => PutFirewallConfigRules$outboundSchema))
2782
+ .optional(),
2783
+ ips: z.array(z.lazy(() => Ips$outboundSchema)).optional(),
2784
+ });
2785
+
2786
+ /**
2787
+ * @internal
2788
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2789
+ */
2790
+ export namespace PutFirewallConfigRequestBody$ {
2791
+ /** @deprecated use `PutFirewallConfigRequestBody$inboundSchema` instead. */
2792
+ export const inboundSchema = PutFirewallConfigRequestBody$inboundSchema;
2793
+ /** @deprecated use `PutFirewallConfigRequestBody$outboundSchema` instead. */
2794
+ export const outboundSchema = PutFirewallConfigRequestBody$outboundSchema;
2795
+ /** @deprecated use `PutFirewallConfigRequestBody$Outbound` instead. */
2796
+ export type Outbound = PutFirewallConfigRequestBody$Outbound;
2797
+ }
2798
+
2799
+ export function putFirewallConfigRequestBodyToJSON(
2800
+ putFirewallConfigRequestBody: PutFirewallConfigRequestBody,
2801
+ ): string {
2802
+ return JSON.stringify(
2803
+ PutFirewallConfigRequestBody$outboundSchema.parse(
2804
+ putFirewallConfigRequestBody,
2805
+ ),
2806
+ );
2807
+ }
2808
+
2809
+ export function putFirewallConfigRequestBodyFromJSON(
2810
+ jsonString: string,
2811
+ ): SafeParseResult<PutFirewallConfigRequestBody, SDKValidationError> {
2812
+ return safeParse(
2813
+ jsonString,
2814
+ (x) => PutFirewallConfigRequestBody$inboundSchema.parse(JSON.parse(x)),
2815
+ `Failed to parse 'PutFirewallConfigRequestBody' from JSON`,
2816
+ );
2817
+ }
2818
+
2819
+ /** @internal */
2820
+ export const PutFirewallConfigRequest$inboundSchema: z.ZodType<
2821
+ PutFirewallConfigRequest,
2822
+ z.ZodTypeDef,
2823
+ unknown
2824
+ > = z.object({
2825
+ projectId: z.string(),
2826
+ teamId: z.string().optional(),
2827
+ slug: z.string().optional(),
2828
+ RequestBody: z.lazy(() => PutFirewallConfigRequestBody$inboundSchema),
2829
+ }).transform((v) => {
2830
+ return remap$(v, {
2831
+ "RequestBody": "requestBody",
2832
+ });
2833
+ });
2834
+
2835
+ /** @internal */
2836
+ export type PutFirewallConfigRequest$Outbound = {
2837
+ projectId: string;
2838
+ teamId?: string | undefined;
2839
+ slug?: string | undefined;
2840
+ RequestBody: PutFirewallConfigRequestBody$Outbound;
2841
+ };
2842
+
2843
+ /** @internal */
2844
+ export const PutFirewallConfigRequest$outboundSchema: z.ZodType<
2845
+ PutFirewallConfigRequest$Outbound,
2846
+ z.ZodTypeDef,
2847
+ PutFirewallConfigRequest
2848
+ > = z.object({
2849
+ projectId: z.string(),
2850
+ teamId: z.string().optional(),
2851
+ slug: z.string().optional(),
2852
+ requestBody: z.lazy(() => PutFirewallConfigRequestBody$outboundSchema),
2853
+ }).transform((v) => {
2854
+ return remap$(v, {
2855
+ requestBody: "RequestBody",
2856
+ });
2857
+ });
2858
+
2859
+ /**
2860
+ * @internal
2861
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2862
+ */
2863
+ export namespace PutFirewallConfigRequest$ {
2864
+ /** @deprecated use `PutFirewallConfigRequest$inboundSchema` instead. */
2865
+ export const inboundSchema = PutFirewallConfigRequest$inboundSchema;
2866
+ /** @deprecated use `PutFirewallConfigRequest$outboundSchema` instead. */
2867
+ export const outboundSchema = PutFirewallConfigRequest$outboundSchema;
2868
+ /** @deprecated use `PutFirewallConfigRequest$Outbound` instead. */
2869
+ export type Outbound = PutFirewallConfigRequest$Outbound;
2870
+ }
2871
+
2872
+ export function putFirewallConfigRequestToJSON(
2873
+ putFirewallConfigRequest: PutFirewallConfigRequest,
2874
+ ): string {
2875
+ return JSON.stringify(
2876
+ PutFirewallConfigRequest$outboundSchema.parse(putFirewallConfigRequest),
2877
+ );
2878
+ }
2879
+
2880
+ export function putFirewallConfigRequestFromJSON(
2881
+ jsonString: string,
2882
+ ): SafeParseResult<PutFirewallConfigRequest, SDKValidationError> {
2883
+ return safeParse(
2884
+ jsonString,
2885
+ (x) => PutFirewallConfigRequest$inboundSchema.parse(JSON.parse(x)),
2886
+ `Failed to parse 'PutFirewallConfigRequest' from JSON`,
2887
+ );
2888
+ }
2889
+
2890
+ /** @internal */
2891
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction$inboundSchema:
2892
+ z.ZodNativeEnum<
2893
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction
2894
+ > = z.nativeEnum(
2895
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction,
2896
+ );
2897
+
2898
+ /** @internal */
2899
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction$outboundSchema:
2900
+ z.ZodNativeEnum<
2901
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction
2902
+ > =
2903
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction$inboundSchema;
2904
+
2905
+ /**
2906
+ * @internal
2907
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2908
+ */
2909
+ export namespace PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction$ {
2910
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction$inboundSchema` instead. */
2911
+ export const inboundSchema =
2912
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction$inboundSchema;
2913
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction$outboundSchema` instead. */
2914
+ export const outboundSchema =
2915
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction$outboundSchema;
2916
+ }
2917
+
2918
+ /** @internal */
2919
+ export const PutFirewallConfigSd$inboundSchema: z.ZodType<
2920
+ PutFirewallConfigSd,
2921
+ z.ZodTypeDef,
2922
+ unknown
2923
+ > = z.object({
2924
+ active: z.boolean(),
2925
+ action:
2926
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction$inboundSchema,
2927
+ });
2928
+
2929
+ /** @internal */
2930
+ export type PutFirewallConfigSd$Outbound = {
2931
+ active: boolean;
2932
+ action: string;
2933
+ };
2934
+
2935
+ /** @internal */
2936
+ export const PutFirewallConfigSd$outboundSchema: z.ZodType<
2937
+ PutFirewallConfigSd$Outbound,
2938
+ z.ZodTypeDef,
2939
+ PutFirewallConfigSd
2940
+ > = z.object({
2941
+ active: z.boolean(),
2942
+ action:
2943
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction$outboundSchema,
2944
+ });
2945
+
2946
+ /**
2947
+ * @internal
2948
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2949
+ */
2950
+ export namespace PutFirewallConfigSd$ {
2951
+ /** @deprecated use `PutFirewallConfigSd$inboundSchema` instead. */
2952
+ export const inboundSchema = PutFirewallConfigSd$inboundSchema;
2953
+ /** @deprecated use `PutFirewallConfigSd$outboundSchema` instead. */
2954
+ export const outboundSchema = PutFirewallConfigSd$outboundSchema;
2955
+ /** @deprecated use `PutFirewallConfigSd$Outbound` instead. */
2956
+ export type Outbound = PutFirewallConfigSd$Outbound;
2957
+ }
2958
+
2959
+ export function putFirewallConfigSdToJSON(
2960
+ putFirewallConfigSd: PutFirewallConfigSd,
2961
+ ): string {
2962
+ return JSON.stringify(
2963
+ PutFirewallConfigSd$outboundSchema.parse(putFirewallConfigSd),
2964
+ );
2965
+ }
2966
+
2967
+ export function putFirewallConfigSdFromJSON(
2968
+ jsonString: string,
2969
+ ): SafeParseResult<PutFirewallConfigSd, SDKValidationError> {
2970
+ return safeParse(
2971
+ jsonString,
2972
+ (x) => PutFirewallConfigSd$inboundSchema.parse(JSON.parse(x)),
2973
+ `Failed to parse 'PutFirewallConfigSd' from JSON`,
2974
+ );
2975
+ }
2976
+
2977
+ /** @internal */
2978
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$inboundSchema:
2979
+ z.ZodNativeEnum<
2980
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction
2981
+ > = z.nativeEnum(
2982
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction,
2983
+ );
2984
+
2985
+ /** @internal */
2986
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$outboundSchema:
2987
+ z.ZodNativeEnum<
2988
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction
2989
+ > =
2990
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$inboundSchema;
2991
+
2992
+ /**
2993
+ * @internal
2994
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2995
+ */
2996
+ export namespace PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$ {
2997
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$inboundSchema` instead. */
2998
+ export const inboundSchema =
2999
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$inboundSchema;
3000
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$outboundSchema` instead. */
3001
+ export const outboundSchema =
3002
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$outboundSchema;
3003
+ }
3004
+
3005
+ /** @internal */
3006
+ export const PutFirewallConfigMa$inboundSchema: z.ZodType<
3007
+ PutFirewallConfigMa,
3008
+ z.ZodTypeDef,
3009
+ unknown
3010
+ > = z.object({
3011
+ active: z.boolean(),
3012
+ action:
3013
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$inboundSchema,
3014
+ });
3015
+
3016
+ /** @internal */
3017
+ export type PutFirewallConfigMa$Outbound = {
3018
+ active: boolean;
3019
+ action: string;
3020
+ };
3021
+
3022
+ /** @internal */
3023
+ export const PutFirewallConfigMa$outboundSchema: z.ZodType<
3024
+ PutFirewallConfigMa$Outbound,
3025
+ z.ZodTypeDef,
3026
+ PutFirewallConfigMa
3027
+ > = z.object({
3028
+ active: z.boolean(),
3029
+ action:
3030
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$outboundSchema,
3031
+ });
3032
+
3033
+ /**
3034
+ * @internal
3035
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3036
+ */
3037
+ export namespace PutFirewallConfigMa$ {
3038
+ /** @deprecated use `PutFirewallConfigMa$inboundSchema` instead. */
3039
+ export const inboundSchema = PutFirewallConfigMa$inboundSchema;
3040
+ /** @deprecated use `PutFirewallConfigMa$outboundSchema` instead. */
3041
+ export const outboundSchema = PutFirewallConfigMa$outboundSchema;
3042
+ /** @deprecated use `PutFirewallConfigMa$Outbound` instead. */
3043
+ export type Outbound = PutFirewallConfigMa$Outbound;
3044
+ }
3045
+
3046
+ export function putFirewallConfigMaToJSON(
3047
+ putFirewallConfigMa: PutFirewallConfigMa,
3048
+ ): string {
3049
+ return JSON.stringify(
3050
+ PutFirewallConfigMa$outboundSchema.parse(putFirewallConfigMa),
3051
+ );
3052
+ }
3053
+
3054
+ export function putFirewallConfigMaFromJSON(
3055
+ jsonString: string,
3056
+ ): SafeParseResult<PutFirewallConfigMa, SDKValidationError> {
3057
+ return safeParse(
3058
+ jsonString,
3059
+ (x) => PutFirewallConfigMa$inboundSchema.parse(JSON.parse(x)),
3060
+ `Failed to parse 'PutFirewallConfigMa' from JSON`,
3061
+ );
3062
+ }
3063
+
3064
+ /** @internal */
3065
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction$inboundSchema:
3066
+ z.ZodNativeEnum<
3067
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction
3068
+ > = z.nativeEnum(
3069
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction,
3070
+ );
3071
+
3072
+ /** @internal */
3073
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction$outboundSchema:
3074
+ z.ZodNativeEnum<
3075
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction
3076
+ > =
3077
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction$inboundSchema;
3078
+
3079
+ /**
3080
+ * @internal
3081
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3082
+ */
3083
+ export namespace PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction$ {
3084
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction$inboundSchema` instead. */
3085
+ export const inboundSchema =
3086
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction$inboundSchema;
3087
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction$outboundSchema` instead. */
3088
+ export const outboundSchema =
3089
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction$outboundSchema;
3090
+ }
3091
+
3092
+ /** @internal */
3093
+ export const PutFirewallConfigLfi$inboundSchema: z.ZodType<
3094
+ PutFirewallConfigLfi,
3095
+ z.ZodTypeDef,
3096
+ unknown
3097
+ > = z.object({
3098
+ active: z.boolean(),
3099
+ action:
3100
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction$inboundSchema,
3101
+ });
3102
+
3103
+ /** @internal */
3104
+ export type PutFirewallConfigLfi$Outbound = {
3105
+ active: boolean;
3106
+ action: string;
3107
+ };
3108
+
3109
+ /** @internal */
3110
+ export const PutFirewallConfigLfi$outboundSchema: z.ZodType<
3111
+ PutFirewallConfigLfi$Outbound,
3112
+ z.ZodTypeDef,
3113
+ PutFirewallConfigLfi
3114
+ > = z.object({
3115
+ active: z.boolean(),
3116
+ action:
3117
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction$outboundSchema,
3118
+ });
3119
+
3120
+ /**
3121
+ * @internal
3122
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3123
+ */
3124
+ export namespace PutFirewallConfigLfi$ {
3125
+ /** @deprecated use `PutFirewallConfigLfi$inboundSchema` instead. */
3126
+ export const inboundSchema = PutFirewallConfigLfi$inboundSchema;
3127
+ /** @deprecated use `PutFirewallConfigLfi$outboundSchema` instead. */
3128
+ export const outboundSchema = PutFirewallConfigLfi$outboundSchema;
3129
+ /** @deprecated use `PutFirewallConfigLfi$Outbound` instead. */
3130
+ export type Outbound = PutFirewallConfigLfi$Outbound;
3131
+ }
3132
+
3133
+ export function putFirewallConfigLfiToJSON(
3134
+ putFirewallConfigLfi: PutFirewallConfigLfi,
3135
+ ): string {
3136
+ return JSON.stringify(
3137
+ PutFirewallConfigLfi$outboundSchema.parse(putFirewallConfigLfi),
3138
+ );
3139
+ }
3140
+
3141
+ export function putFirewallConfigLfiFromJSON(
3142
+ jsonString: string,
3143
+ ): SafeParseResult<PutFirewallConfigLfi, SDKValidationError> {
3144
+ return safeParse(
3145
+ jsonString,
3146
+ (x) => PutFirewallConfigLfi$inboundSchema.parse(JSON.parse(x)),
3147
+ `Failed to parse 'PutFirewallConfigLfi' from JSON`,
3148
+ );
3149
+ }
3150
+
3151
+ /** @internal */
3152
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction$inboundSchema:
3153
+ z.ZodNativeEnum<
3154
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction
3155
+ > = z.nativeEnum(
3156
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction,
3157
+ );
3158
+
3159
+ /** @internal */
3160
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction$outboundSchema:
3161
+ z.ZodNativeEnum<
3162
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction
3163
+ > =
3164
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction$inboundSchema;
3165
+
3166
+ /**
3167
+ * @internal
3168
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3169
+ */
3170
+ export namespace PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction$ {
3171
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction$inboundSchema` instead. */
3172
+ export const inboundSchema =
3173
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction$inboundSchema;
3174
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction$outboundSchema` instead. */
3175
+ export const outboundSchema =
3176
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction$outboundSchema;
3177
+ }
3178
+
3179
+ /** @internal */
3180
+ export const PutFirewallConfigRfi$inboundSchema: z.ZodType<
3181
+ PutFirewallConfigRfi,
3182
+ z.ZodTypeDef,
3183
+ unknown
3184
+ > = z.object({
3185
+ active: z.boolean(),
3186
+ action:
3187
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction$inboundSchema,
3188
+ });
3189
+
3190
+ /** @internal */
3191
+ export type PutFirewallConfigRfi$Outbound = {
3192
+ active: boolean;
3193
+ action: string;
3194
+ };
3195
+
3196
+ /** @internal */
3197
+ export const PutFirewallConfigRfi$outboundSchema: z.ZodType<
3198
+ PutFirewallConfigRfi$Outbound,
3199
+ z.ZodTypeDef,
3200
+ PutFirewallConfigRfi
3201
+ > = z.object({
3202
+ active: z.boolean(),
3203
+ action:
3204
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction$outboundSchema,
3205
+ });
3206
+
3207
+ /**
3208
+ * @internal
3209
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3210
+ */
3211
+ export namespace PutFirewallConfigRfi$ {
3212
+ /** @deprecated use `PutFirewallConfigRfi$inboundSchema` instead. */
3213
+ export const inboundSchema = PutFirewallConfigRfi$inboundSchema;
3214
+ /** @deprecated use `PutFirewallConfigRfi$outboundSchema` instead. */
3215
+ export const outboundSchema = PutFirewallConfigRfi$outboundSchema;
3216
+ /** @deprecated use `PutFirewallConfigRfi$Outbound` instead. */
3217
+ export type Outbound = PutFirewallConfigRfi$Outbound;
3218
+ }
3219
+
3220
+ export function putFirewallConfigRfiToJSON(
3221
+ putFirewallConfigRfi: PutFirewallConfigRfi,
3222
+ ): string {
3223
+ return JSON.stringify(
3224
+ PutFirewallConfigRfi$outboundSchema.parse(putFirewallConfigRfi),
3225
+ );
3226
+ }
3227
+
3228
+ export function putFirewallConfigRfiFromJSON(
3229
+ jsonString: string,
3230
+ ): SafeParseResult<PutFirewallConfigRfi, SDKValidationError> {
3231
+ return safeParse(
3232
+ jsonString,
3233
+ (x) => PutFirewallConfigRfi$inboundSchema.parse(JSON.parse(x)),
3234
+ `Failed to parse 'PutFirewallConfigRfi' from JSON`,
3235
+ );
3236
+ }
3237
+
3238
+ /** @internal */
3239
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction$inboundSchema:
3240
+ z.ZodNativeEnum<
3241
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction
3242
+ > = z.nativeEnum(
3243
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction,
3244
+ );
3245
+
3246
+ /** @internal */
3247
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction$outboundSchema:
3248
+ z.ZodNativeEnum<
3249
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction
3250
+ > =
3251
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction$inboundSchema;
3252
+
3253
+ /**
3254
+ * @internal
3255
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3256
+ */
3257
+ export namespace PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction$ {
3258
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction$inboundSchema` instead. */
3259
+ export const inboundSchema =
3260
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction$inboundSchema;
3261
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction$outboundSchema` instead. */
3262
+ export const outboundSchema =
3263
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction$outboundSchema;
3264
+ }
3265
+
3266
+ /** @internal */
3267
+ export const PutFirewallConfigRce$inboundSchema: z.ZodType<
3268
+ PutFirewallConfigRce,
3269
+ z.ZodTypeDef,
3270
+ unknown
3271
+ > = z.object({
3272
+ active: z.boolean(),
3273
+ action:
3274
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction$inboundSchema,
3275
+ });
3276
+
3277
+ /** @internal */
3278
+ export type PutFirewallConfigRce$Outbound = {
3279
+ active: boolean;
3280
+ action: string;
3281
+ };
3282
+
3283
+ /** @internal */
3284
+ export const PutFirewallConfigRce$outboundSchema: z.ZodType<
3285
+ PutFirewallConfigRce$Outbound,
3286
+ z.ZodTypeDef,
3287
+ PutFirewallConfigRce
3288
+ > = z.object({
3289
+ active: z.boolean(),
3290
+ action:
3291
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction$outboundSchema,
3292
+ });
3293
+
3294
+ /**
3295
+ * @internal
3296
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3297
+ */
3298
+ export namespace PutFirewallConfigRce$ {
3299
+ /** @deprecated use `PutFirewallConfigRce$inboundSchema` instead. */
3300
+ export const inboundSchema = PutFirewallConfigRce$inboundSchema;
3301
+ /** @deprecated use `PutFirewallConfigRce$outboundSchema` instead. */
3302
+ export const outboundSchema = PutFirewallConfigRce$outboundSchema;
3303
+ /** @deprecated use `PutFirewallConfigRce$Outbound` instead. */
3304
+ export type Outbound = PutFirewallConfigRce$Outbound;
3305
+ }
3306
+
3307
+ export function putFirewallConfigRceToJSON(
3308
+ putFirewallConfigRce: PutFirewallConfigRce,
3309
+ ): string {
3310
+ return JSON.stringify(
3311
+ PutFirewallConfigRce$outboundSchema.parse(putFirewallConfigRce),
3312
+ );
3313
+ }
3314
+
3315
+ export function putFirewallConfigRceFromJSON(
3316
+ jsonString: string,
3317
+ ): SafeParseResult<PutFirewallConfigRce, SDKValidationError> {
3318
+ return safeParse(
3319
+ jsonString,
3320
+ (x) => PutFirewallConfigRce$inboundSchema.parse(JSON.parse(x)),
3321
+ `Failed to parse 'PutFirewallConfigRce' from JSON`,
3322
+ );
3323
+ }
3324
+
3325
+ /** @internal */
3326
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction$inboundSchema:
3327
+ z.ZodNativeEnum<
3328
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction
3329
+ > = z.nativeEnum(
3330
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction,
3331
+ );
3332
+
3333
+ /** @internal */
3334
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction$outboundSchema:
3335
+ z.ZodNativeEnum<
3336
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction
3337
+ > =
3338
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction$inboundSchema;
3339
+
3340
+ /**
3341
+ * @internal
3342
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3343
+ */
3344
+ export namespace PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction$ {
3345
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction$inboundSchema` instead. */
3346
+ export const inboundSchema =
3347
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction$inboundSchema;
3348
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction$outboundSchema` instead. */
3349
+ export const outboundSchema =
3350
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction$outboundSchema;
3351
+ }
3352
+
3353
+ /** @internal */
3354
+ export const PutFirewallConfigPhp$inboundSchema: z.ZodType<
3355
+ PutFirewallConfigPhp,
3356
+ z.ZodTypeDef,
3357
+ unknown
3358
+ > = z.object({
3359
+ active: z.boolean(),
3360
+ action:
3361
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction$inboundSchema,
3362
+ });
3363
+
3364
+ /** @internal */
3365
+ export type PutFirewallConfigPhp$Outbound = {
3366
+ active: boolean;
3367
+ action: string;
3368
+ };
3369
+
3370
+ /** @internal */
3371
+ export const PutFirewallConfigPhp$outboundSchema: z.ZodType<
3372
+ PutFirewallConfigPhp$Outbound,
3373
+ z.ZodTypeDef,
3374
+ PutFirewallConfigPhp
3375
+ > = z.object({
3376
+ active: z.boolean(),
3377
+ action:
3378
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction$outboundSchema,
3379
+ });
3380
+
3381
+ /**
3382
+ * @internal
3383
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3384
+ */
3385
+ export namespace PutFirewallConfigPhp$ {
3386
+ /** @deprecated use `PutFirewallConfigPhp$inboundSchema` instead. */
3387
+ export const inboundSchema = PutFirewallConfigPhp$inboundSchema;
3388
+ /** @deprecated use `PutFirewallConfigPhp$outboundSchema` instead. */
3389
+ export const outboundSchema = PutFirewallConfigPhp$outboundSchema;
3390
+ /** @deprecated use `PutFirewallConfigPhp$Outbound` instead. */
3391
+ export type Outbound = PutFirewallConfigPhp$Outbound;
3392
+ }
3393
+
3394
+ export function putFirewallConfigPhpToJSON(
3395
+ putFirewallConfigPhp: PutFirewallConfigPhp,
3396
+ ): string {
3397
+ return JSON.stringify(
3398
+ PutFirewallConfigPhp$outboundSchema.parse(putFirewallConfigPhp),
3399
+ );
3400
+ }
3401
+
3402
+ export function putFirewallConfigPhpFromJSON(
3403
+ jsonString: string,
3404
+ ): SafeParseResult<PutFirewallConfigPhp, SDKValidationError> {
3405
+ return safeParse(
3406
+ jsonString,
3407
+ (x) => PutFirewallConfigPhp$inboundSchema.parse(JSON.parse(x)),
3408
+ `Failed to parse 'PutFirewallConfigPhp' from JSON`,
3409
+ );
3410
+ }
3411
+
3412
+ /** @internal */
3413
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction$inboundSchema:
3414
+ z.ZodNativeEnum<
3415
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction
3416
+ > = z.nativeEnum(
3417
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction,
3418
+ );
3419
+
3420
+ /** @internal */
3421
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction$outboundSchema:
3422
+ z.ZodNativeEnum<
3423
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction
3424
+ > =
3425
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction$inboundSchema;
3426
+
3427
+ /**
3428
+ * @internal
3429
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3430
+ */
3431
+ export namespace PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction$ {
3432
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction$inboundSchema` instead. */
3433
+ export const inboundSchema =
3434
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction$inboundSchema;
3435
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction$outboundSchema` instead. */
3436
+ export const outboundSchema =
3437
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction$outboundSchema;
3438
+ }
3439
+
3440
+ /** @internal */
3441
+ export const PutFirewallConfigGen$inboundSchema: z.ZodType<
3442
+ PutFirewallConfigGen,
3443
+ z.ZodTypeDef,
3444
+ unknown
3445
+ > = z.object({
3446
+ active: z.boolean(),
3447
+ action:
3448
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction$inboundSchema,
3449
+ });
3450
+
3451
+ /** @internal */
3452
+ export type PutFirewallConfigGen$Outbound = {
3453
+ active: boolean;
3454
+ action: string;
3455
+ };
3456
+
3457
+ /** @internal */
3458
+ export const PutFirewallConfigGen$outboundSchema: z.ZodType<
3459
+ PutFirewallConfigGen$Outbound,
3460
+ z.ZodTypeDef,
3461
+ PutFirewallConfigGen
3462
+ > = z.object({
3463
+ active: z.boolean(),
3464
+ action:
3465
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction$outboundSchema,
3466
+ });
3467
+
3468
+ /**
3469
+ * @internal
3470
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3471
+ */
3472
+ export namespace PutFirewallConfigGen$ {
3473
+ /** @deprecated use `PutFirewallConfigGen$inboundSchema` instead. */
3474
+ export const inboundSchema = PutFirewallConfigGen$inboundSchema;
3475
+ /** @deprecated use `PutFirewallConfigGen$outboundSchema` instead. */
3476
+ export const outboundSchema = PutFirewallConfigGen$outboundSchema;
3477
+ /** @deprecated use `PutFirewallConfigGen$Outbound` instead. */
3478
+ export type Outbound = PutFirewallConfigGen$Outbound;
3479
+ }
3480
+
3481
+ export function putFirewallConfigGenToJSON(
3482
+ putFirewallConfigGen: PutFirewallConfigGen,
3483
+ ): string {
3484
+ return JSON.stringify(
3485
+ PutFirewallConfigGen$outboundSchema.parse(putFirewallConfigGen),
3486
+ );
3487
+ }
3488
+
3489
+ export function putFirewallConfigGenFromJSON(
3490
+ jsonString: string,
3491
+ ): SafeParseResult<PutFirewallConfigGen, SDKValidationError> {
3492
+ return safeParse(
3493
+ jsonString,
3494
+ (x) => PutFirewallConfigGen$inboundSchema.parse(JSON.parse(x)),
3495
+ `Failed to parse 'PutFirewallConfigGen' from JSON`,
3496
+ );
3497
+ }
3498
+
3499
+ /** @internal */
3500
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction$inboundSchema:
3501
+ z.ZodNativeEnum<
3502
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction
3503
+ > = z.nativeEnum(
3504
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction,
3505
+ );
3506
+
3507
+ /** @internal */
3508
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction$outboundSchema:
3509
+ z.ZodNativeEnum<
3510
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction
3511
+ > =
3512
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction$inboundSchema;
3513
+
3514
+ /**
3515
+ * @internal
3516
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3517
+ */
3518
+ export namespace PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction$ {
3519
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction$inboundSchema` instead. */
3520
+ export const inboundSchema =
3521
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction$inboundSchema;
3522
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction$outboundSchema` instead. */
3523
+ export const outboundSchema =
3524
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction$outboundSchema;
3525
+ }
3526
+
3527
+ /** @internal */
3528
+ export const PutFirewallConfigXss$inboundSchema: z.ZodType<
3529
+ PutFirewallConfigXss,
3530
+ z.ZodTypeDef,
3531
+ unknown
3532
+ > = z.object({
3533
+ active: z.boolean(),
3534
+ action:
3535
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction$inboundSchema,
3536
+ });
3537
+
3538
+ /** @internal */
3539
+ export type PutFirewallConfigXss$Outbound = {
3540
+ active: boolean;
3541
+ action: string;
3542
+ };
3543
+
3544
+ /** @internal */
3545
+ export const PutFirewallConfigXss$outboundSchema: z.ZodType<
3546
+ PutFirewallConfigXss$Outbound,
3547
+ z.ZodTypeDef,
3548
+ PutFirewallConfigXss
3549
+ > = z.object({
3550
+ active: z.boolean(),
3551
+ action:
3552
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction$outboundSchema,
3553
+ });
3554
+
3555
+ /**
3556
+ * @internal
3557
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3558
+ */
3559
+ export namespace PutFirewallConfigXss$ {
3560
+ /** @deprecated use `PutFirewallConfigXss$inboundSchema` instead. */
3561
+ export const inboundSchema = PutFirewallConfigXss$inboundSchema;
3562
+ /** @deprecated use `PutFirewallConfigXss$outboundSchema` instead. */
3563
+ export const outboundSchema = PutFirewallConfigXss$outboundSchema;
3564
+ /** @deprecated use `PutFirewallConfigXss$Outbound` instead. */
3565
+ export type Outbound = PutFirewallConfigXss$Outbound;
3566
+ }
3567
+
3568
+ export function putFirewallConfigXssToJSON(
3569
+ putFirewallConfigXss: PutFirewallConfigXss,
3570
+ ): string {
3571
+ return JSON.stringify(
3572
+ PutFirewallConfigXss$outboundSchema.parse(putFirewallConfigXss),
3573
+ );
3574
+ }
3575
+
3576
+ export function putFirewallConfigXssFromJSON(
3577
+ jsonString: string,
3578
+ ): SafeParseResult<PutFirewallConfigXss, SDKValidationError> {
3579
+ return safeParse(
3580
+ jsonString,
3581
+ (x) => PutFirewallConfigXss$inboundSchema.parse(JSON.parse(x)),
3582
+ `Failed to parse 'PutFirewallConfigXss' from JSON`,
3583
+ );
3584
+ }
3585
+
3586
+ /** @internal */
3587
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction$inboundSchema:
3588
+ z.ZodNativeEnum<
3589
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction
3590
+ > = z.nativeEnum(
3591
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction,
3592
+ );
3593
+
3594
+ /** @internal */
3595
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction$outboundSchema:
3596
+ z.ZodNativeEnum<
3597
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction
3598
+ > =
3599
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction$inboundSchema;
3600
+
3601
+ /**
3602
+ * @internal
3603
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3604
+ */
3605
+ export namespace PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction$ {
3606
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction$inboundSchema` instead. */
3607
+ export const inboundSchema =
3608
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction$inboundSchema;
3609
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction$outboundSchema` instead. */
3610
+ export const outboundSchema =
3611
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction$outboundSchema;
3612
+ }
3613
+
3614
+ /** @internal */
3615
+ export const PutFirewallConfigSqli$inboundSchema: z.ZodType<
3616
+ PutFirewallConfigSqli,
3617
+ z.ZodTypeDef,
3618
+ unknown
3619
+ > = z.object({
3620
+ active: z.boolean(),
3621
+ action:
3622
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction$inboundSchema,
3623
+ });
3624
+
3625
+ /** @internal */
3626
+ export type PutFirewallConfigSqli$Outbound = {
3627
+ active: boolean;
3628
+ action: string;
3629
+ };
3630
+
3631
+ /** @internal */
3632
+ export const PutFirewallConfigSqli$outboundSchema: z.ZodType<
3633
+ PutFirewallConfigSqli$Outbound,
3634
+ z.ZodTypeDef,
3635
+ PutFirewallConfigSqli
3636
+ > = z.object({
3637
+ active: z.boolean(),
3638
+ action:
3639
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction$outboundSchema,
3640
+ });
3641
+
3642
+ /**
3643
+ * @internal
3644
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3645
+ */
3646
+ export namespace PutFirewallConfigSqli$ {
3647
+ /** @deprecated use `PutFirewallConfigSqli$inboundSchema` instead. */
3648
+ export const inboundSchema = PutFirewallConfigSqli$inboundSchema;
3649
+ /** @deprecated use `PutFirewallConfigSqli$outboundSchema` instead. */
3650
+ export const outboundSchema = PutFirewallConfigSqli$outboundSchema;
3651
+ /** @deprecated use `PutFirewallConfigSqli$Outbound` instead. */
3652
+ export type Outbound = PutFirewallConfigSqli$Outbound;
3653
+ }
3654
+
3655
+ export function putFirewallConfigSqliToJSON(
3656
+ putFirewallConfigSqli: PutFirewallConfigSqli,
3657
+ ): string {
3658
+ return JSON.stringify(
3659
+ PutFirewallConfigSqli$outboundSchema.parse(putFirewallConfigSqli),
3660
+ );
3661
+ }
3662
+
3663
+ export function putFirewallConfigSqliFromJSON(
3664
+ jsonString: string,
3665
+ ): SafeParseResult<PutFirewallConfigSqli, SDKValidationError> {
3666
+ return safeParse(
3667
+ jsonString,
3668
+ (x) => PutFirewallConfigSqli$inboundSchema.parse(JSON.parse(x)),
3669
+ `Failed to parse 'PutFirewallConfigSqli' from JSON`,
3670
+ );
3671
+ }
3672
+
3673
+ /** @internal */
3674
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction$inboundSchema:
3675
+ z.ZodNativeEnum<
3676
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction
3677
+ > = z.nativeEnum(
3678
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction,
3679
+ );
3680
+
3681
+ /** @internal */
3682
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction$outboundSchema:
3683
+ z.ZodNativeEnum<
3684
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction
3685
+ > =
3686
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction$inboundSchema;
3687
+
3688
+ /**
3689
+ * @internal
3690
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3691
+ */
3692
+ export namespace PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction$ {
3693
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction$inboundSchema` instead. */
3694
+ export const inboundSchema =
3695
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction$inboundSchema;
3696
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction$outboundSchema` instead. */
3697
+ export const outboundSchema =
3698
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction$outboundSchema;
3699
+ }
3700
+
3701
+ /** @internal */
3702
+ export const PutFirewallConfigSf$inboundSchema: z.ZodType<
3703
+ PutFirewallConfigSf,
3704
+ z.ZodTypeDef,
3705
+ unknown
3706
+ > = z.object({
3707
+ active: z.boolean(),
3708
+ action:
3709
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction$inboundSchema,
3710
+ });
3711
+
3712
+ /** @internal */
3713
+ export type PutFirewallConfigSf$Outbound = {
3714
+ active: boolean;
3715
+ action: string;
3716
+ };
3717
+
3718
+ /** @internal */
3719
+ export const PutFirewallConfigSf$outboundSchema: z.ZodType<
3720
+ PutFirewallConfigSf$Outbound,
3721
+ z.ZodTypeDef,
3722
+ PutFirewallConfigSf
3723
+ > = z.object({
3724
+ active: z.boolean(),
3725
+ action:
3726
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction$outboundSchema,
3727
+ });
3728
+
3729
+ /**
3730
+ * @internal
3731
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3732
+ */
3733
+ export namespace PutFirewallConfigSf$ {
3734
+ /** @deprecated use `PutFirewallConfigSf$inboundSchema` instead. */
3735
+ export const inboundSchema = PutFirewallConfigSf$inboundSchema;
3736
+ /** @deprecated use `PutFirewallConfigSf$outboundSchema` instead. */
3737
+ export const outboundSchema = PutFirewallConfigSf$outboundSchema;
3738
+ /** @deprecated use `PutFirewallConfigSf$Outbound` instead. */
3739
+ export type Outbound = PutFirewallConfigSf$Outbound;
3740
+ }
3741
+
3742
+ export function putFirewallConfigSfToJSON(
3743
+ putFirewallConfigSf: PutFirewallConfigSf,
3744
+ ): string {
3745
+ return JSON.stringify(
3746
+ PutFirewallConfigSf$outboundSchema.parse(putFirewallConfigSf),
3747
+ );
3748
+ }
3749
+
3750
+ export function putFirewallConfigSfFromJSON(
3751
+ jsonString: string,
3752
+ ): SafeParseResult<PutFirewallConfigSf, SDKValidationError> {
3753
+ return safeParse(
3754
+ jsonString,
3755
+ (x) => PutFirewallConfigSf$inboundSchema.parse(JSON.parse(x)),
3756
+ `Failed to parse 'PutFirewallConfigSf' from JSON`,
3757
+ );
3758
+ }
3759
+
3760
+ /** @internal */
3761
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction$inboundSchema:
3762
+ z.ZodNativeEnum<
3763
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction
3764
+ > = z.nativeEnum(
3765
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction,
3766
+ );
3767
+
3768
+ /** @internal */
3769
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction$outboundSchema:
3770
+ z.ZodNativeEnum<
3771
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction
3772
+ > =
3773
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction$inboundSchema;
3774
+
3775
+ /**
3776
+ * @internal
3777
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3778
+ */
3779
+ export namespace PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction$ {
3780
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction$inboundSchema` instead. */
3781
+ export const inboundSchema =
3782
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction$inboundSchema;
3783
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction$outboundSchema` instead. */
3784
+ export const outboundSchema =
3785
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction$outboundSchema;
3786
+ }
3787
+
3788
+ /** @internal */
3789
+ export const PutFirewallConfigJava$inboundSchema: z.ZodType<
3790
+ PutFirewallConfigJava,
3791
+ z.ZodTypeDef,
3792
+ unknown
3793
+ > = z.object({
3794
+ active: z.boolean(),
3795
+ action:
3796
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction$inboundSchema,
3797
+ });
3798
+
3799
+ /** @internal */
3800
+ export type PutFirewallConfigJava$Outbound = {
3801
+ active: boolean;
3802
+ action: string;
3803
+ };
3804
+
3805
+ /** @internal */
3806
+ export const PutFirewallConfigJava$outboundSchema: z.ZodType<
3807
+ PutFirewallConfigJava$Outbound,
3808
+ z.ZodTypeDef,
3809
+ PutFirewallConfigJava
3810
+ > = z.object({
3811
+ active: z.boolean(),
3812
+ action:
3813
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction$outboundSchema,
3814
+ });
3815
+
3816
+ /**
3817
+ * @internal
3818
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3819
+ */
3820
+ export namespace PutFirewallConfigJava$ {
3821
+ /** @deprecated use `PutFirewallConfigJava$inboundSchema` instead. */
3822
+ export const inboundSchema = PutFirewallConfigJava$inboundSchema;
3823
+ /** @deprecated use `PutFirewallConfigJava$outboundSchema` instead. */
3824
+ export const outboundSchema = PutFirewallConfigJava$outboundSchema;
3825
+ /** @deprecated use `PutFirewallConfigJava$Outbound` instead. */
3826
+ export type Outbound = PutFirewallConfigJava$Outbound;
3827
+ }
3828
+
3829
+ export function putFirewallConfigJavaToJSON(
3830
+ putFirewallConfigJava: PutFirewallConfigJava,
3831
+ ): string {
3832
+ return JSON.stringify(
3833
+ PutFirewallConfigJava$outboundSchema.parse(putFirewallConfigJava),
3834
+ );
3835
+ }
3836
+
3837
+ export function putFirewallConfigJavaFromJSON(
3838
+ jsonString: string,
3839
+ ): SafeParseResult<PutFirewallConfigJava, SDKValidationError> {
3840
+ return safeParse(
3841
+ jsonString,
3842
+ (x) => PutFirewallConfigJava$inboundSchema.parse(JSON.parse(x)),
3843
+ `Failed to parse 'PutFirewallConfigJava' from JSON`,
3844
+ );
3845
+ }
3846
+
3847
+ /** @internal */
3848
+ export const PutFirewallConfigCrs$inboundSchema: z.ZodType<
3849
+ PutFirewallConfigCrs,
3850
+ z.ZodTypeDef,
3851
+ unknown
3852
+ > = z.object({
3853
+ sd: z.lazy(() => PutFirewallConfigSd$inboundSchema),
3854
+ ma: z.lazy(() => PutFirewallConfigMa$inboundSchema),
3855
+ lfi: z.lazy(() => PutFirewallConfigLfi$inboundSchema),
3856
+ rfi: z.lazy(() => PutFirewallConfigRfi$inboundSchema),
3857
+ rce: z.lazy(() => PutFirewallConfigRce$inboundSchema),
3858
+ php: z.lazy(() => PutFirewallConfigPhp$inboundSchema),
3859
+ gen: z.lazy(() => PutFirewallConfigGen$inboundSchema),
3860
+ xss: z.lazy(() => PutFirewallConfigXss$inboundSchema),
3861
+ sqli: z.lazy(() => PutFirewallConfigSqli$inboundSchema),
3862
+ sf: z.lazy(() => PutFirewallConfigSf$inboundSchema),
3863
+ java: z.lazy(() => PutFirewallConfigJava$inboundSchema),
3864
+ });
3865
+
3866
+ /** @internal */
3867
+ export type PutFirewallConfigCrs$Outbound = {
3868
+ sd: PutFirewallConfigSd$Outbound;
3869
+ ma: PutFirewallConfigMa$Outbound;
3870
+ lfi: PutFirewallConfigLfi$Outbound;
3871
+ rfi: PutFirewallConfigRfi$Outbound;
3872
+ rce: PutFirewallConfigRce$Outbound;
3873
+ php: PutFirewallConfigPhp$Outbound;
3874
+ gen: PutFirewallConfigGen$Outbound;
3875
+ xss: PutFirewallConfigXss$Outbound;
3876
+ sqli: PutFirewallConfigSqli$Outbound;
3877
+ sf: PutFirewallConfigSf$Outbound;
3878
+ java: PutFirewallConfigJava$Outbound;
3879
+ };
3880
+
3881
+ /** @internal */
3882
+ export const PutFirewallConfigCrs$outboundSchema: z.ZodType<
3883
+ PutFirewallConfigCrs$Outbound,
3884
+ z.ZodTypeDef,
3885
+ PutFirewallConfigCrs
3886
+ > = z.object({
3887
+ sd: z.lazy(() => PutFirewallConfigSd$outboundSchema),
3888
+ ma: z.lazy(() => PutFirewallConfigMa$outboundSchema),
3889
+ lfi: z.lazy(() => PutFirewallConfigLfi$outboundSchema),
3890
+ rfi: z.lazy(() => PutFirewallConfigRfi$outboundSchema),
3891
+ rce: z.lazy(() => PutFirewallConfigRce$outboundSchema),
3892
+ php: z.lazy(() => PutFirewallConfigPhp$outboundSchema),
3893
+ gen: z.lazy(() => PutFirewallConfigGen$outboundSchema),
3894
+ xss: z.lazy(() => PutFirewallConfigXss$outboundSchema),
3895
+ sqli: z.lazy(() => PutFirewallConfigSqli$outboundSchema),
3896
+ sf: z.lazy(() => PutFirewallConfigSf$outboundSchema),
3897
+ java: z.lazy(() => PutFirewallConfigJava$outboundSchema),
3898
+ });
3899
+
3900
+ /**
3901
+ * @internal
3902
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3903
+ */
3904
+ export namespace PutFirewallConfigCrs$ {
3905
+ /** @deprecated use `PutFirewallConfigCrs$inboundSchema` instead. */
3906
+ export const inboundSchema = PutFirewallConfigCrs$inboundSchema;
3907
+ /** @deprecated use `PutFirewallConfigCrs$outboundSchema` instead. */
3908
+ export const outboundSchema = PutFirewallConfigCrs$outboundSchema;
3909
+ /** @deprecated use `PutFirewallConfigCrs$Outbound` instead. */
3910
+ export type Outbound = PutFirewallConfigCrs$Outbound;
3911
+ }
3912
+
3913
+ export function putFirewallConfigCrsToJSON(
3914
+ putFirewallConfigCrs: PutFirewallConfigCrs,
3915
+ ): string {
3916
+ return JSON.stringify(
3917
+ PutFirewallConfigCrs$outboundSchema.parse(putFirewallConfigCrs),
3918
+ );
3919
+ }
3920
+
3921
+ export function putFirewallConfigCrsFromJSON(
3922
+ jsonString: string,
3923
+ ): SafeParseResult<PutFirewallConfigCrs, SDKValidationError> {
3924
+ return safeParse(
3925
+ jsonString,
3926
+ (x) => PutFirewallConfigCrs$inboundSchema.parse(JSON.parse(x)),
3927
+ `Failed to parse 'PutFirewallConfigCrs' from JSON`,
3928
+ );
3929
+ }
3930
+
3931
+ /** @internal */
3932
+ export const PutFirewallConfigSecurityType$inboundSchema: z.ZodNativeEnum<
3933
+ typeof PutFirewallConfigSecurityType
3934
+ > = z.nativeEnum(PutFirewallConfigSecurityType);
3935
+
3936
+ /** @internal */
3937
+ export const PutFirewallConfigSecurityType$outboundSchema: z.ZodNativeEnum<
3938
+ typeof PutFirewallConfigSecurityType
3939
+ > = PutFirewallConfigSecurityType$inboundSchema;
3940
+
3941
+ /**
3942
+ * @internal
3943
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3944
+ */
3945
+ export namespace PutFirewallConfigSecurityType$ {
3946
+ /** @deprecated use `PutFirewallConfigSecurityType$inboundSchema` instead. */
3947
+ export const inboundSchema = PutFirewallConfigSecurityType$inboundSchema;
3948
+ /** @deprecated use `PutFirewallConfigSecurityType$outboundSchema` instead. */
3949
+ export const outboundSchema = PutFirewallConfigSecurityType$outboundSchema;
3950
+ }
3951
+
3952
+ /** @internal */
3953
+ export const PutFirewallConfigOp$inboundSchema: z.ZodNativeEnum<
3954
+ typeof PutFirewallConfigOp
3955
+ > = z.nativeEnum(PutFirewallConfigOp);
3956
+
3957
+ /** @internal */
3958
+ export const PutFirewallConfigOp$outboundSchema: z.ZodNativeEnum<
3959
+ typeof PutFirewallConfigOp
3960
+ > = PutFirewallConfigOp$inboundSchema;
3961
+
3962
+ /**
3963
+ * @internal
3964
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3965
+ */
3966
+ export namespace PutFirewallConfigOp$ {
3967
+ /** @deprecated use `PutFirewallConfigOp$inboundSchema` instead. */
3968
+ export const inboundSchema = PutFirewallConfigOp$inboundSchema;
3969
+ /** @deprecated use `PutFirewallConfigOp$outboundSchema` instead. */
3970
+ export const outboundSchema = PutFirewallConfigOp$outboundSchema;
3971
+ }
3972
+
3973
+ /** @internal */
3974
+ export const PutFirewallConfigValue$inboundSchema: z.ZodType<
3975
+ PutFirewallConfigValue,
3976
+ z.ZodTypeDef,
3977
+ unknown
3978
+ > = z.union([z.string(), z.number(), z.array(z.string())]);
3979
+
3980
+ /** @internal */
3981
+ export type PutFirewallConfigValue$Outbound = string | number | Array<string>;
3982
+
3983
+ /** @internal */
3984
+ export const PutFirewallConfigValue$outboundSchema: z.ZodType<
3985
+ PutFirewallConfigValue$Outbound,
3986
+ z.ZodTypeDef,
3987
+ PutFirewallConfigValue
3988
+ > = z.union([z.string(), z.number(), z.array(z.string())]);
3989
+
3990
+ /**
3991
+ * @internal
3992
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3993
+ */
3994
+ export namespace PutFirewallConfigValue$ {
3995
+ /** @deprecated use `PutFirewallConfigValue$inboundSchema` instead. */
3996
+ export const inboundSchema = PutFirewallConfigValue$inboundSchema;
3997
+ /** @deprecated use `PutFirewallConfigValue$outboundSchema` instead. */
3998
+ export const outboundSchema = PutFirewallConfigValue$outboundSchema;
3999
+ /** @deprecated use `PutFirewallConfigValue$Outbound` instead. */
4000
+ export type Outbound = PutFirewallConfigValue$Outbound;
4001
+ }
4002
+
4003
+ export function putFirewallConfigValueToJSON(
4004
+ putFirewallConfigValue: PutFirewallConfigValue,
4005
+ ): string {
4006
+ return JSON.stringify(
4007
+ PutFirewallConfigValue$outboundSchema.parse(putFirewallConfigValue),
4008
+ );
4009
+ }
4010
+
4011
+ export function putFirewallConfigValueFromJSON(
4012
+ jsonString: string,
4013
+ ): SafeParseResult<PutFirewallConfigValue, SDKValidationError> {
4014
+ return safeParse(
4015
+ jsonString,
4016
+ (x) => PutFirewallConfigValue$inboundSchema.parse(JSON.parse(x)),
4017
+ `Failed to parse 'PutFirewallConfigValue' from JSON`,
4018
+ );
4019
+ }
4020
+
4021
+ /** @internal */
4022
+ export const PutFirewallConfigConditions$inboundSchema: z.ZodType<
4023
+ PutFirewallConfigConditions,
4024
+ z.ZodTypeDef,
4025
+ unknown
4026
+ > = z.object({
4027
+ type: PutFirewallConfigSecurityType$inboundSchema,
4028
+ op: PutFirewallConfigOp$inboundSchema,
4029
+ neg: z.boolean().optional(),
4030
+ key: z.string().optional(),
4031
+ value: z.union([z.string(), z.number(), z.array(z.string())]).optional(),
4032
+ });
4033
+
4034
+ /** @internal */
4035
+ export type PutFirewallConfigConditions$Outbound = {
4036
+ type: string;
4037
+ op: string;
4038
+ neg?: boolean | undefined;
4039
+ key?: string | undefined;
4040
+ value?: string | number | Array<string> | undefined;
4041
+ };
4042
+
4043
+ /** @internal */
4044
+ export const PutFirewallConfigConditions$outboundSchema: z.ZodType<
4045
+ PutFirewallConfigConditions$Outbound,
4046
+ z.ZodTypeDef,
4047
+ PutFirewallConfigConditions
4048
+ > = z.object({
4049
+ type: PutFirewallConfigSecurityType$outboundSchema,
4050
+ op: PutFirewallConfigOp$outboundSchema,
4051
+ neg: z.boolean().optional(),
4052
+ key: z.string().optional(),
4053
+ value: z.union([z.string(), z.number(), z.array(z.string())]).optional(),
4054
+ });
4055
+
4056
+ /**
4057
+ * @internal
4058
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4059
+ */
4060
+ export namespace PutFirewallConfigConditions$ {
4061
+ /** @deprecated use `PutFirewallConfigConditions$inboundSchema` instead. */
4062
+ export const inboundSchema = PutFirewallConfigConditions$inboundSchema;
4063
+ /** @deprecated use `PutFirewallConfigConditions$outboundSchema` instead. */
4064
+ export const outboundSchema = PutFirewallConfigConditions$outboundSchema;
4065
+ /** @deprecated use `PutFirewallConfigConditions$Outbound` instead. */
4066
+ export type Outbound = PutFirewallConfigConditions$Outbound;
4067
+ }
4068
+
4069
+ export function putFirewallConfigConditionsToJSON(
4070
+ putFirewallConfigConditions: PutFirewallConfigConditions,
4071
+ ): string {
4072
+ return JSON.stringify(
4073
+ PutFirewallConfigConditions$outboundSchema.parse(
4074
+ putFirewallConfigConditions,
4075
+ ),
4076
+ );
4077
+ }
4078
+
4079
+ export function putFirewallConfigConditionsFromJSON(
4080
+ jsonString: string,
4081
+ ): SafeParseResult<PutFirewallConfigConditions, SDKValidationError> {
4082
+ return safeParse(
4083
+ jsonString,
4084
+ (x) => PutFirewallConfigConditions$inboundSchema.parse(JSON.parse(x)),
4085
+ `Failed to parse 'PutFirewallConfigConditions' from JSON`,
4086
+ );
4087
+ }
4088
+
4089
+ /** @internal */
4090
+ export const PutFirewallConfigConditionGroup$inboundSchema: z.ZodType<
4091
+ PutFirewallConfigConditionGroup,
4092
+ z.ZodTypeDef,
4093
+ unknown
4094
+ > = z.object({
4095
+ conditions: z.array(z.lazy(() => PutFirewallConfigConditions$inboundSchema)),
4096
+ });
4097
+
4098
+ /** @internal */
4099
+ export type PutFirewallConfigConditionGroup$Outbound = {
4100
+ conditions: Array<PutFirewallConfigConditions$Outbound>;
4101
+ };
4102
+
4103
+ /** @internal */
4104
+ export const PutFirewallConfigConditionGroup$outboundSchema: z.ZodType<
4105
+ PutFirewallConfigConditionGroup$Outbound,
4106
+ z.ZodTypeDef,
4107
+ PutFirewallConfigConditionGroup
4108
+ > = z.object({
4109
+ conditions: z.array(z.lazy(() => PutFirewallConfigConditions$outboundSchema)),
4110
+ });
4111
+
4112
+ /**
4113
+ * @internal
4114
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4115
+ */
4116
+ export namespace PutFirewallConfigConditionGroup$ {
4117
+ /** @deprecated use `PutFirewallConfigConditionGroup$inboundSchema` instead. */
4118
+ export const inboundSchema = PutFirewallConfigConditionGroup$inboundSchema;
4119
+ /** @deprecated use `PutFirewallConfigConditionGroup$outboundSchema` instead. */
4120
+ export const outboundSchema = PutFirewallConfigConditionGroup$outboundSchema;
4121
+ /** @deprecated use `PutFirewallConfigConditionGroup$Outbound` instead. */
4122
+ export type Outbound = PutFirewallConfigConditionGroup$Outbound;
4123
+ }
4124
+
4125
+ export function putFirewallConfigConditionGroupToJSON(
4126
+ putFirewallConfigConditionGroup: PutFirewallConfigConditionGroup,
4127
+ ): string {
4128
+ return JSON.stringify(
4129
+ PutFirewallConfigConditionGroup$outboundSchema.parse(
4130
+ putFirewallConfigConditionGroup,
4131
+ ),
4132
+ );
4133
+ }
4134
+
4135
+ export function putFirewallConfigConditionGroupFromJSON(
4136
+ jsonString: string,
4137
+ ): SafeParseResult<PutFirewallConfigConditionGroup, SDKValidationError> {
4138
+ return safeParse(
4139
+ jsonString,
4140
+ (x) => PutFirewallConfigConditionGroup$inboundSchema.parse(JSON.parse(x)),
4141
+ `Failed to parse 'PutFirewallConfigConditionGroup' from JSON`,
4142
+ );
4143
+ }
4144
+
4145
+ /** @internal */
4146
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction$inboundSchema:
4147
+ z.ZodNativeEnum<
4148
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction
4149
+ > = z.nativeEnum(
4150
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction,
4151
+ );
4152
+
4153
+ /** @internal */
4154
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction$outboundSchema:
4155
+ z.ZodNativeEnum<
4156
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction
4157
+ > =
4158
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction$inboundSchema;
4159
+
4160
+ /**
4161
+ * @internal
4162
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4163
+ */
4164
+ export namespace PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction$ {
4165
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction$inboundSchema` instead. */
4166
+ export const inboundSchema =
4167
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction$inboundSchema;
4168
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction$outboundSchema` instead. */
4169
+ export const outboundSchema =
4170
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction$outboundSchema;
4171
+ }
4172
+
4173
+ /** @internal */
4174
+ export const PutFirewallConfigAlgo$inboundSchema: z.ZodNativeEnum<
4175
+ typeof PutFirewallConfigAlgo
4176
+ > = z.nativeEnum(PutFirewallConfigAlgo);
4177
+
4178
+ /** @internal */
4179
+ export const PutFirewallConfigAlgo$outboundSchema: z.ZodNativeEnum<
4180
+ typeof PutFirewallConfigAlgo
4181
+ > = PutFirewallConfigAlgo$inboundSchema;
4182
+
4183
+ /**
4184
+ * @internal
4185
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4186
+ */
4187
+ export namespace PutFirewallConfigAlgo$ {
4188
+ /** @deprecated use `PutFirewallConfigAlgo$inboundSchema` instead. */
4189
+ export const inboundSchema = PutFirewallConfigAlgo$inboundSchema;
4190
+ /** @deprecated use `PutFirewallConfigAlgo$outboundSchema` instead. */
4191
+ export const outboundSchema = PutFirewallConfigAlgo$outboundSchema;
4192
+ }
4193
+
4194
+ /** @internal */
4195
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction$inboundSchema:
4196
+ z.ZodNativeEnum<
4197
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction
4198
+ > = z.nativeEnum(
4199
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction,
4200
+ );
4201
+
4202
+ /** @internal */
4203
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction$outboundSchema:
4204
+ z.ZodNativeEnum<
4205
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction
4206
+ > =
4207
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction$inboundSchema;
4208
+
4209
+ /**
4210
+ * @internal
4211
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4212
+ */
4213
+ export namespace PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction$ {
4214
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction$inboundSchema` instead. */
4215
+ export const inboundSchema =
4216
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction$inboundSchema;
4217
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction$outboundSchema` instead. */
4218
+ export const outboundSchema =
4219
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction$outboundSchema;
4220
+ }
4221
+
4222
+ /** @internal */
4223
+ export const PutFirewallConfigRateLimit$inboundSchema: z.ZodType<
4224
+ PutFirewallConfigRateLimit,
4225
+ z.ZodTypeDef,
4226
+ unknown
4227
+ > = z.object({
4228
+ algo: PutFirewallConfigAlgo$inboundSchema,
4229
+ window: z.number(),
4230
+ limit: z.number(),
4231
+ keys: z.array(z.string()),
4232
+ action: z.nullable(
4233
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction$inboundSchema,
4234
+ ).optional(),
4235
+ });
4236
+
4237
+ /** @internal */
4238
+ export type PutFirewallConfigRateLimit$Outbound = {
4239
+ algo: string;
4240
+ window: number;
4241
+ limit: number;
4242
+ keys: Array<string>;
4243
+ action?: string | null | undefined;
4244
+ };
4245
+
4246
+ /** @internal */
4247
+ export const PutFirewallConfigRateLimit$outboundSchema: z.ZodType<
4248
+ PutFirewallConfigRateLimit$Outbound,
4249
+ z.ZodTypeDef,
4250
+ PutFirewallConfigRateLimit
4251
+ > = z.object({
4252
+ algo: PutFirewallConfigAlgo$outboundSchema,
4253
+ window: z.number(),
4254
+ limit: z.number(),
4255
+ keys: z.array(z.string()),
4256
+ action: z.nullable(
4257
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction$outboundSchema,
4258
+ ).optional(),
4259
+ });
4260
+
4261
+ /**
4262
+ * @internal
4263
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4264
+ */
4265
+ export namespace PutFirewallConfigRateLimit$ {
4266
+ /** @deprecated use `PutFirewallConfigRateLimit$inboundSchema` instead. */
4267
+ export const inboundSchema = PutFirewallConfigRateLimit$inboundSchema;
4268
+ /** @deprecated use `PutFirewallConfigRateLimit$outboundSchema` instead. */
4269
+ export const outboundSchema = PutFirewallConfigRateLimit$outboundSchema;
4270
+ /** @deprecated use `PutFirewallConfigRateLimit$Outbound` instead. */
4271
+ export type Outbound = PutFirewallConfigRateLimit$Outbound;
4272
+ }
4273
+
4274
+ export function putFirewallConfigRateLimitToJSON(
4275
+ putFirewallConfigRateLimit: PutFirewallConfigRateLimit,
4276
+ ): string {
4277
+ return JSON.stringify(
4278
+ PutFirewallConfigRateLimit$outboundSchema.parse(putFirewallConfigRateLimit),
4279
+ );
4280
+ }
4281
+
4282
+ export function putFirewallConfigRateLimitFromJSON(
4283
+ jsonString: string,
4284
+ ): SafeParseResult<PutFirewallConfigRateLimit, SDKValidationError> {
4285
+ return safeParse(
4286
+ jsonString,
4287
+ (x) => PutFirewallConfigRateLimit$inboundSchema.parse(JSON.parse(x)),
4288
+ `Failed to parse 'PutFirewallConfigRateLimit' from JSON`,
4289
+ );
4290
+ }
4291
+
4292
+ /** @internal */
4293
+ export const PutFirewallConfigRedirect$inboundSchema: z.ZodType<
4294
+ PutFirewallConfigRedirect,
4295
+ z.ZodTypeDef,
4296
+ unknown
4297
+ > = z.object({
4298
+ location: z.string(),
4299
+ permanent: z.boolean(),
4300
+ });
4301
+
4302
+ /** @internal */
4303
+ export type PutFirewallConfigRedirect$Outbound = {
4304
+ location: string;
4305
+ permanent: boolean;
4306
+ };
4307
+
4308
+ /** @internal */
4309
+ export const PutFirewallConfigRedirect$outboundSchema: z.ZodType<
4310
+ PutFirewallConfigRedirect$Outbound,
4311
+ z.ZodTypeDef,
4312
+ PutFirewallConfigRedirect
4313
+ > = z.object({
4314
+ location: z.string(),
4315
+ permanent: z.boolean(),
4316
+ });
4317
+
4318
+ /**
4319
+ * @internal
4320
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4321
+ */
4322
+ export namespace PutFirewallConfigRedirect$ {
4323
+ /** @deprecated use `PutFirewallConfigRedirect$inboundSchema` instead. */
4324
+ export const inboundSchema = PutFirewallConfigRedirect$inboundSchema;
4325
+ /** @deprecated use `PutFirewallConfigRedirect$outboundSchema` instead. */
4326
+ export const outboundSchema = PutFirewallConfigRedirect$outboundSchema;
4327
+ /** @deprecated use `PutFirewallConfigRedirect$Outbound` instead. */
4328
+ export type Outbound = PutFirewallConfigRedirect$Outbound;
4329
+ }
4330
+
4331
+ export function putFirewallConfigRedirectToJSON(
4332
+ putFirewallConfigRedirect: PutFirewallConfigRedirect,
4333
+ ): string {
4334
+ return JSON.stringify(
4335
+ PutFirewallConfigRedirect$outboundSchema.parse(putFirewallConfigRedirect),
4336
+ );
4337
+ }
4338
+
4339
+ export function putFirewallConfigRedirectFromJSON(
4340
+ jsonString: string,
4341
+ ): SafeParseResult<PutFirewallConfigRedirect, SDKValidationError> {
4342
+ return safeParse(
4343
+ jsonString,
4344
+ (x) => PutFirewallConfigRedirect$inboundSchema.parse(JSON.parse(x)),
4345
+ `Failed to parse 'PutFirewallConfigRedirect' from JSON`,
4346
+ );
4347
+ }
4348
+
4349
+ /** @internal */
4350
+ export const PutFirewallConfigMitigate$inboundSchema: z.ZodType<
4351
+ PutFirewallConfigMitigate,
4352
+ z.ZodTypeDef,
4353
+ unknown
4354
+ > = z.object({
4355
+ action:
4356
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction$inboundSchema,
4357
+ rateLimit: z.nullable(z.lazy(() => PutFirewallConfigRateLimit$inboundSchema))
4358
+ .optional(),
4359
+ redirect: z.nullable(z.lazy(() => PutFirewallConfigRedirect$inboundSchema))
4360
+ .optional(),
4361
+ actionDuration: z.nullable(z.string()).optional(),
4362
+ bypassSystem: z.nullable(z.boolean()).optional(),
4363
+ });
4364
+
4365
+ /** @internal */
4366
+ export type PutFirewallConfigMitigate$Outbound = {
4367
+ action: string;
4368
+ rateLimit?: PutFirewallConfigRateLimit$Outbound | null | undefined;
4369
+ redirect?: PutFirewallConfigRedirect$Outbound | null | undefined;
4370
+ actionDuration?: string | null | undefined;
4371
+ bypassSystem?: boolean | null | undefined;
4372
+ };
4373
+
4374
+ /** @internal */
4375
+ export const PutFirewallConfigMitigate$outboundSchema: z.ZodType<
4376
+ PutFirewallConfigMitigate$Outbound,
4377
+ z.ZodTypeDef,
4378
+ PutFirewallConfigMitigate
4379
+ > = z.object({
4380
+ action:
4381
+ PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction$outboundSchema,
4382
+ rateLimit: z.nullable(z.lazy(() => PutFirewallConfigRateLimit$outboundSchema))
4383
+ .optional(),
4384
+ redirect: z.nullable(z.lazy(() => PutFirewallConfigRedirect$outboundSchema))
4385
+ .optional(),
4386
+ actionDuration: z.nullable(z.string()).optional(),
4387
+ bypassSystem: z.nullable(z.boolean()).optional(),
4388
+ });
4389
+
4390
+ /**
4391
+ * @internal
4392
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4393
+ */
4394
+ export namespace PutFirewallConfigMitigate$ {
4395
+ /** @deprecated use `PutFirewallConfigMitigate$inboundSchema` instead. */
4396
+ export const inboundSchema = PutFirewallConfigMitigate$inboundSchema;
4397
+ /** @deprecated use `PutFirewallConfigMitigate$outboundSchema` instead. */
4398
+ export const outboundSchema = PutFirewallConfigMitigate$outboundSchema;
4399
+ /** @deprecated use `PutFirewallConfigMitigate$Outbound` instead. */
4400
+ export type Outbound = PutFirewallConfigMitigate$Outbound;
4401
+ }
4402
+
4403
+ export function putFirewallConfigMitigateToJSON(
4404
+ putFirewallConfigMitigate: PutFirewallConfigMitigate,
4405
+ ): string {
4406
+ return JSON.stringify(
4407
+ PutFirewallConfigMitigate$outboundSchema.parse(putFirewallConfigMitigate),
4408
+ );
4409
+ }
4410
+
4411
+ export function putFirewallConfigMitigateFromJSON(
4412
+ jsonString: string,
4413
+ ): SafeParseResult<PutFirewallConfigMitigate, SDKValidationError> {
4414
+ return safeParse(
4415
+ jsonString,
4416
+ (x) => PutFirewallConfigMitigate$inboundSchema.parse(JSON.parse(x)),
4417
+ `Failed to parse 'PutFirewallConfigMitigate' from JSON`,
4418
+ );
4419
+ }
4420
+
4421
+ /** @internal */
4422
+ export const PutFirewallConfigSecurityResponseAction$inboundSchema: z.ZodType<
4423
+ PutFirewallConfigSecurityResponseAction,
4424
+ z.ZodTypeDef,
4425
+ unknown
4426
+ > = z.object({
4427
+ mitigate: z.lazy(() => PutFirewallConfigMitigate$inboundSchema).optional(),
4428
+ });
4429
+
4430
+ /** @internal */
4431
+ export type PutFirewallConfigSecurityResponseAction$Outbound = {
4432
+ mitigate?: PutFirewallConfigMitigate$Outbound | undefined;
4433
+ };
4434
+
4435
+ /** @internal */
4436
+ export const PutFirewallConfigSecurityResponseAction$outboundSchema: z.ZodType<
4437
+ PutFirewallConfigSecurityResponseAction$Outbound,
4438
+ z.ZodTypeDef,
4439
+ PutFirewallConfigSecurityResponseAction
4440
+ > = z.object({
4441
+ mitigate: z.lazy(() => PutFirewallConfigMitigate$outboundSchema).optional(),
4442
+ });
4443
+
4444
+ /**
4445
+ * @internal
4446
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4447
+ */
4448
+ export namespace PutFirewallConfigSecurityResponseAction$ {
4449
+ /** @deprecated use `PutFirewallConfigSecurityResponseAction$inboundSchema` instead. */
4450
+ export const inboundSchema =
4451
+ PutFirewallConfigSecurityResponseAction$inboundSchema;
4452
+ /** @deprecated use `PutFirewallConfigSecurityResponseAction$outboundSchema` instead. */
4453
+ export const outboundSchema =
4454
+ PutFirewallConfigSecurityResponseAction$outboundSchema;
4455
+ /** @deprecated use `PutFirewallConfigSecurityResponseAction$Outbound` instead. */
4456
+ export type Outbound = PutFirewallConfigSecurityResponseAction$Outbound;
4457
+ }
4458
+
4459
+ export function putFirewallConfigSecurityResponseActionToJSON(
4460
+ putFirewallConfigSecurityResponseAction:
4461
+ PutFirewallConfigSecurityResponseAction,
4462
+ ): string {
4463
+ return JSON.stringify(
4464
+ PutFirewallConfigSecurityResponseAction$outboundSchema.parse(
4465
+ putFirewallConfigSecurityResponseAction,
4466
+ ),
4467
+ );
4468
+ }
4469
+
4470
+ export function putFirewallConfigSecurityResponseActionFromJSON(
4471
+ jsonString: string,
4472
+ ): SafeParseResult<
4473
+ PutFirewallConfigSecurityResponseAction,
4474
+ SDKValidationError
4475
+ > {
4476
+ return safeParse(
4477
+ jsonString,
4478
+ (x) =>
4479
+ PutFirewallConfigSecurityResponseAction$inboundSchema.parse(
4480
+ JSON.parse(x),
4481
+ ),
4482
+ `Failed to parse 'PutFirewallConfigSecurityResponseAction' from JSON`,
4483
+ );
4484
+ }
4485
+
4486
+ /** @internal */
4487
+ export const PutFirewallConfigSecurityRules$inboundSchema: z.ZodType<
4488
+ PutFirewallConfigSecurityRules,
4489
+ z.ZodTypeDef,
4490
+ unknown
4491
+ > = z.object({
4492
+ id: z.string(),
4493
+ name: z.string(),
4494
+ description: z.string().optional(),
4495
+ active: z.boolean(),
4496
+ conditionGroup: z.array(
4497
+ z.lazy(() => PutFirewallConfigConditionGroup$inboundSchema),
4498
+ ),
4499
+ action: z.lazy(() => PutFirewallConfigSecurityResponseAction$inboundSchema),
4500
+ });
4501
+
4502
+ /** @internal */
4503
+ export type PutFirewallConfigSecurityRules$Outbound = {
4504
+ id: string;
4505
+ name: string;
4506
+ description?: string | undefined;
4507
+ active: boolean;
4508
+ conditionGroup: Array<PutFirewallConfigConditionGroup$Outbound>;
4509
+ action: PutFirewallConfigSecurityResponseAction$Outbound;
4510
+ };
4511
+
4512
+ /** @internal */
4513
+ export const PutFirewallConfigSecurityRules$outboundSchema: z.ZodType<
4514
+ PutFirewallConfigSecurityRules$Outbound,
4515
+ z.ZodTypeDef,
4516
+ PutFirewallConfigSecurityRules
4517
+ > = z.object({
4518
+ id: z.string(),
4519
+ name: z.string(),
4520
+ description: z.string().optional(),
4521
+ active: z.boolean(),
4522
+ conditionGroup: z.array(
4523
+ z.lazy(() => PutFirewallConfigConditionGroup$outboundSchema),
4524
+ ),
4525
+ action: z.lazy(() => PutFirewallConfigSecurityResponseAction$outboundSchema),
4526
+ });
4527
+
4528
+ /**
4529
+ * @internal
4530
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4531
+ */
4532
+ export namespace PutFirewallConfigSecurityRules$ {
4533
+ /** @deprecated use `PutFirewallConfigSecurityRules$inboundSchema` instead. */
4534
+ export const inboundSchema = PutFirewallConfigSecurityRules$inboundSchema;
4535
+ /** @deprecated use `PutFirewallConfigSecurityRules$outboundSchema` instead. */
4536
+ export const outboundSchema = PutFirewallConfigSecurityRules$outboundSchema;
4537
+ /** @deprecated use `PutFirewallConfigSecurityRules$Outbound` instead. */
4538
+ export type Outbound = PutFirewallConfigSecurityRules$Outbound;
4539
+ }
4540
+
4541
+ export function putFirewallConfigSecurityRulesToJSON(
4542
+ putFirewallConfigSecurityRules: PutFirewallConfigSecurityRules,
4543
+ ): string {
4544
+ return JSON.stringify(
4545
+ PutFirewallConfigSecurityRules$outboundSchema.parse(
4546
+ putFirewallConfigSecurityRules,
4547
+ ),
4548
+ );
4549
+ }
4550
+
4551
+ export function putFirewallConfigSecurityRulesFromJSON(
4552
+ jsonString: string,
4553
+ ): SafeParseResult<PutFirewallConfigSecurityRules, SDKValidationError> {
4554
+ return safeParse(
4555
+ jsonString,
4556
+ (x) => PutFirewallConfigSecurityRules$inboundSchema.parse(JSON.parse(x)),
4557
+ `Failed to parse 'PutFirewallConfigSecurityRules' from JSON`,
4558
+ );
4559
+ }
4560
+
4561
+ /** @internal */
4562
+ export const PutFirewallConfigSecurityResponse200Action$inboundSchema:
4563
+ z.ZodNativeEnum<typeof PutFirewallConfigSecurityResponse200Action> = z
4564
+ .nativeEnum(PutFirewallConfigSecurityResponse200Action);
4565
+
4566
+ /** @internal */
4567
+ export const PutFirewallConfigSecurityResponse200Action$outboundSchema:
4568
+ z.ZodNativeEnum<typeof PutFirewallConfigSecurityResponse200Action> =
4569
+ PutFirewallConfigSecurityResponse200Action$inboundSchema;
4570
+
4571
+ /**
4572
+ * @internal
4573
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4574
+ */
4575
+ export namespace PutFirewallConfigSecurityResponse200Action$ {
4576
+ /** @deprecated use `PutFirewallConfigSecurityResponse200Action$inboundSchema` instead. */
4577
+ export const inboundSchema =
4578
+ PutFirewallConfigSecurityResponse200Action$inboundSchema;
4579
+ /** @deprecated use `PutFirewallConfigSecurityResponse200Action$outboundSchema` instead. */
4580
+ export const outboundSchema =
4581
+ PutFirewallConfigSecurityResponse200Action$outboundSchema;
4582
+ }
4583
+
4584
+ /** @internal */
4585
+ export const PutFirewallConfigIps$inboundSchema: z.ZodType<
4586
+ PutFirewallConfigIps,
4587
+ z.ZodTypeDef,
4588
+ unknown
4589
+ > = z.object({
4590
+ id: z.string(),
4591
+ hostname: z.string(),
4592
+ ip: z.string(),
4593
+ notes: z.string().optional(),
4594
+ action: PutFirewallConfigSecurityResponse200Action$inboundSchema,
4595
+ });
4596
+
4597
+ /** @internal */
4598
+ export type PutFirewallConfigIps$Outbound = {
4599
+ id: string;
4600
+ hostname: string;
4601
+ ip: string;
4602
+ notes?: string | undefined;
4603
+ action: string;
4604
+ };
4605
+
4606
+ /** @internal */
4607
+ export const PutFirewallConfigIps$outboundSchema: z.ZodType<
4608
+ PutFirewallConfigIps$Outbound,
4609
+ z.ZodTypeDef,
4610
+ PutFirewallConfigIps
4611
+ > = z.object({
4612
+ id: z.string(),
4613
+ hostname: z.string(),
4614
+ ip: z.string(),
4615
+ notes: z.string().optional(),
4616
+ action: PutFirewallConfigSecurityResponse200Action$outboundSchema,
4617
+ });
4618
+
4619
+ /**
4620
+ * @internal
4621
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4622
+ */
4623
+ export namespace PutFirewallConfigIps$ {
4624
+ /** @deprecated use `PutFirewallConfigIps$inboundSchema` instead. */
4625
+ export const inboundSchema = PutFirewallConfigIps$inboundSchema;
4626
+ /** @deprecated use `PutFirewallConfigIps$outboundSchema` instead. */
4627
+ export const outboundSchema = PutFirewallConfigIps$outboundSchema;
4628
+ /** @deprecated use `PutFirewallConfigIps$Outbound` instead. */
4629
+ export type Outbound = PutFirewallConfigIps$Outbound;
4630
+ }
4631
+
4632
+ export function putFirewallConfigIpsToJSON(
4633
+ putFirewallConfigIps: PutFirewallConfigIps,
4634
+ ): string {
4635
+ return JSON.stringify(
4636
+ PutFirewallConfigIps$outboundSchema.parse(putFirewallConfigIps),
4637
+ );
4638
+ }
4639
+
4640
+ export function putFirewallConfigIpsFromJSON(
4641
+ jsonString: string,
4642
+ ): SafeParseResult<PutFirewallConfigIps, SDKValidationError> {
4643
+ return safeParse(
4644
+ jsonString,
4645
+ (x) => PutFirewallConfigIps$inboundSchema.parse(JSON.parse(x)),
4646
+ `Failed to parse 'PutFirewallConfigIps' from JSON`,
4647
+ );
4648
+ }
4649
+
4650
+ /** @internal */
4651
+ export const PutFirewallConfigChanges$inboundSchema: z.ZodType<
4652
+ PutFirewallConfigChanges,
4653
+ z.ZodTypeDef,
4654
+ unknown
4655
+ > = z.object({});
4656
+
4657
+ /** @internal */
4658
+ export type PutFirewallConfigChanges$Outbound = {};
4659
+
4660
+ /** @internal */
4661
+ export const PutFirewallConfigChanges$outboundSchema: z.ZodType<
4662
+ PutFirewallConfigChanges$Outbound,
4663
+ z.ZodTypeDef,
4664
+ PutFirewallConfigChanges
4665
+ > = z.object({});
4666
+
4667
+ /**
4668
+ * @internal
4669
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4670
+ */
4671
+ export namespace PutFirewallConfigChanges$ {
4672
+ /** @deprecated use `PutFirewallConfigChanges$inboundSchema` instead. */
4673
+ export const inboundSchema = PutFirewallConfigChanges$inboundSchema;
4674
+ /** @deprecated use `PutFirewallConfigChanges$outboundSchema` instead. */
4675
+ export const outboundSchema = PutFirewallConfigChanges$outboundSchema;
4676
+ /** @deprecated use `PutFirewallConfigChanges$Outbound` instead. */
4677
+ export type Outbound = PutFirewallConfigChanges$Outbound;
4678
+ }
4679
+
4680
+ export function putFirewallConfigChangesToJSON(
4681
+ putFirewallConfigChanges: PutFirewallConfigChanges,
4682
+ ): string {
4683
+ return JSON.stringify(
4684
+ PutFirewallConfigChanges$outboundSchema.parse(putFirewallConfigChanges),
4685
+ );
4686
+ }
4687
+
4688
+ export function putFirewallConfigChangesFromJSON(
4689
+ jsonString: string,
4690
+ ): SafeParseResult<PutFirewallConfigChanges, SDKValidationError> {
4691
+ return safeParse(
4692
+ jsonString,
4693
+ (x) => PutFirewallConfigChanges$inboundSchema.parse(JSON.parse(x)),
4694
+ `Failed to parse 'PutFirewallConfigChanges' from JSON`,
4695
+ );
4696
+ }
4697
+
4698
+ /** @internal */
4699
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONAction$inboundSchema:
4700
+ z.ZodNativeEnum<
4701
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONAction
4702
+ > = z.nativeEnum(PutFirewallConfigSecurityResponse200ApplicationJSONAction);
4703
+
4704
+ /** @internal */
4705
+ export const PutFirewallConfigSecurityResponse200ApplicationJSONAction$outboundSchema:
4706
+ z.ZodNativeEnum<
4707
+ typeof PutFirewallConfigSecurityResponse200ApplicationJSONAction
4708
+ > = PutFirewallConfigSecurityResponse200ApplicationJSONAction$inboundSchema;
4709
+
4710
+ /**
4711
+ * @internal
4712
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4713
+ */
4714
+ export namespace PutFirewallConfigSecurityResponse200ApplicationJSONAction$ {
4715
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONAction$inboundSchema` instead. */
4716
+ export const inboundSchema =
4717
+ PutFirewallConfigSecurityResponse200ApplicationJSONAction$inboundSchema;
4718
+ /** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONAction$outboundSchema` instead. */
4719
+ export const outboundSchema =
4720
+ PutFirewallConfigSecurityResponse200ApplicationJSONAction$outboundSchema;
4721
+ }
4722
+
4723
+ /** @internal */
4724
+ export const PutFirewallConfigManagedRules$inboundSchema: z.ZodType<
4725
+ PutFirewallConfigManagedRules,
4726
+ z.ZodTypeDef,
4727
+ unknown
4728
+ > = z.object({
4729
+ active: z.boolean(),
4730
+ action:
4731
+ PutFirewallConfigSecurityResponse200ApplicationJSONAction$inboundSchema
4732
+ .optional(),
4733
+ updatedAt: z.string().optional(),
4734
+ userId: z.string().optional(),
4735
+ username: z.string().optional(),
4736
+ });
4737
+
4738
+ /** @internal */
4739
+ export type PutFirewallConfigManagedRules$Outbound = {
4740
+ active: boolean;
4741
+ action?: string | undefined;
4742
+ updatedAt?: string | undefined;
4743
+ userId?: string | undefined;
4744
+ username?: string | undefined;
4745
+ };
4746
+
4747
+ /** @internal */
4748
+ export const PutFirewallConfigManagedRules$outboundSchema: z.ZodType<
4749
+ PutFirewallConfigManagedRules$Outbound,
4750
+ z.ZodTypeDef,
4751
+ PutFirewallConfigManagedRules
4752
+ > = z.object({
4753
+ active: z.boolean(),
4754
+ action:
4755
+ PutFirewallConfigSecurityResponse200ApplicationJSONAction$outboundSchema
4756
+ .optional(),
4757
+ updatedAt: z.string().optional(),
4758
+ userId: z.string().optional(),
4759
+ username: z.string().optional(),
4760
+ });
4761
+
4762
+ /**
4763
+ * @internal
4764
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4765
+ */
4766
+ export namespace PutFirewallConfigManagedRules$ {
4767
+ /** @deprecated use `PutFirewallConfigManagedRules$inboundSchema` instead. */
4768
+ export const inboundSchema = PutFirewallConfigManagedRules$inboundSchema;
4769
+ /** @deprecated use `PutFirewallConfigManagedRules$outboundSchema` instead. */
4770
+ export const outboundSchema = PutFirewallConfigManagedRules$outboundSchema;
4771
+ /** @deprecated use `PutFirewallConfigManagedRules$Outbound` instead. */
4772
+ export type Outbound = PutFirewallConfigManagedRules$Outbound;
4773
+ }
4774
+
4775
+ export function putFirewallConfigManagedRulesToJSON(
4776
+ putFirewallConfigManagedRules: PutFirewallConfigManagedRules,
4777
+ ): string {
4778
+ return JSON.stringify(
4779
+ PutFirewallConfigManagedRules$outboundSchema.parse(
4780
+ putFirewallConfigManagedRules,
4781
+ ),
4782
+ );
4783
+ }
4784
+
4785
+ export function putFirewallConfigManagedRulesFromJSON(
4786
+ jsonString: string,
4787
+ ): SafeParseResult<PutFirewallConfigManagedRules, SDKValidationError> {
4788
+ return safeParse(
4789
+ jsonString,
4790
+ (x) => PutFirewallConfigManagedRules$inboundSchema.parse(JSON.parse(x)),
4791
+ `Failed to parse 'PutFirewallConfigManagedRules' from JSON`,
4792
+ );
4793
+ }
4794
+
4795
+ /** @internal */
4796
+ export const Active$inboundSchema: z.ZodType<Active, z.ZodTypeDef, unknown> = z
4797
+ .object({
4798
+ ownerId: z.string(),
4799
+ projectKey: z.string(),
4800
+ id: z.string(),
4801
+ version: z.number(),
4802
+ updatedAt: z.string(),
4803
+ firewallEnabled: z.boolean(),
4804
+ crs: z.lazy(() => PutFirewallConfigCrs$inboundSchema),
4805
+ rules: z.array(z.lazy(() => PutFirewallConfigSecurityRules$inboundSchema)),
4806
+ ips: z.array(z.lazy(() => PutFirewallConfigIps$inboundSchema)),
4807
+ changes: z.array(z.lazy(() => PutFirewallConfigChanges$inboundSchema)),
4808
+ managedRules: z.record(
4809
+ z.lazy(() => PutFirewallConfigManagedRules$inboundSchema),
4810
+ ).optional(),
4811
+ });
4812
+
4813
+ /** @internal */
4814
+ export type Active$Outbound = {
4815
+ ownerId: string;
4816
+ projectKey: string;
4817
+ id: string;
4818
+ version: number;
4819
+ updatedAt: string;
4820
+ firewallEnabled: boolean;
4821
+ crs: PutFirewallConfigCrs$Outbound;
4822
+ rules: Array<PutFirewallConfigSecurityRules$Outbound>;
4823
+ ips: Array<PutFirewallConfigIps$Outbound>;
4824
+ changes: Array<PutFirewallConfigChanges$Outbound>;
4825
+ managedRules?:
4826
+ | { [k: string]: PutFirewallConfigManagedRules$Outbound }
4827
+ | undefined;
4828
+ };
4829
+
4830
+ /** @internal */
4831
+ export const Active$outboundSchema: z.ZodType<
4832
+ Active$Outbound,
4833
+ z.ZodTypeDef,
4834
+ Active
4835
+ > = z.object({
4836
+ ownerId: z.string(),
4837
+ projectKey: z.string(),
4838
+ id: z.string(),
4839
+ version: z.number(),
4840
+ updatedAt: z.string(),
4841
+ firewallEnabled: z.boolean(),
4842
+ crs: z.lazy(() => PutFirewallConfigCrs$outboundSchema),
4843
+ rules: z.array(z.lazy(() => PutFirewallConfigSecurityRules$outboundSchema)),
4844
+ ips: z.array(z.lazy(() => PutFirewallConfigIps$outboundSchema)),
4845
+ changes: z.array(z.lazy(() => PutFirewallConfigChanges$outboundSchema)),
4846
+ managedRules: z.record(
4847
+ z.lazy(() => PutFirewallConfigManagedRules$outboundSchema),
4848
+ ).optional(),
4849
+ });
4850
+
4851
+ /**
4852
+ * @internal
4853
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4854
+ */
4855
+ export namespace Active$ {
4856
+ /** @deprecated use `Active$inboundSchema` instead. */
4857
+ export const inboundSchema = Active$inboundSchema;
4858
+ /** @deprecated use `Active$outboundSchema` instead. */
4859
+ export const outboundSchema = Active$outboundSchema;
4860
+ /** @deprecated use `Active$Outbound` instead. */
4861
+ export type Outbound = Active$Outbound;
4862
+ }
4863
+
4864
+ export function activeToJSON(active: Active): string {
4865
+ return JSON.stringify(Active$outboundSchema.parse(active));
4866
+ }
4867
+
4868
+ export function activeFromJSON(
4869
+ jsonString: string,
4870
+ ): SafeParseResult<Active, SDKValidationError> {
4871
+ return safeParse(
4872
+ jsonString,
4873
+ (x) => Active$inboundSchema.parse(JSON.parse(x)),
4874
+ `Failed to parse 'Active' from JSON`,
4875
+ );
4876
+ }
4877
+
4878
+ /** @internal */
4879
+ export const PutFirewallConfigResponseBody$inboundSchema: z.ZodType<
4880
+ PutFirewallConfigResponseBody,
4881
+ z.ZodTypeDef,
4882
+ unknown
4883
+ > = z.object({
4884
+ active: z.lazy(() => Active$inboundSchema),
4885
+ });
4886
+
4887
+ /** @internal */
4888
+ export type PutFirewallConfigResponseBody$Outbound = {
4889
+ active: Active$Outbound;
4890
+ };
4891
+
4892
+ /** @internal */
4893
+ export const PutFirewallConfigResponseBody$outboundSchema: z.ZodType<
4894
+ PutFirewallConfigResponseBody$Outbound,
4895
+ z.ZodTypeDef,
4896
+ PutFirewallConfigResponseBody
4897
+ > = z.object({
4898
+ active: z.lazy(() => Active$outboundSchema),
4899
+ });
4900
+
4901
+ /**
4902
+ * @internal
4903
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4904
+ */
4905
+ export namespace PutFirewallConfigResponseBody$ {
4906
+ /** @deprecated use `PutFirewallConfigResponseBody$inboundSchema` instead. */
4907
+ export const inboundSchema = PutFirewallConfigResponseBody$inboundSchema;
4908
+ /** @deprecated use `PutFirewallConfigResponseBody$outboundSchema` instead. */
4909
+ export const outboundSchema = PutFirewallConfigResponseBody$outboundSchema;
4910
+ /** @deprecated use `PutFirewallConfigResponseBody$Outbound` instead. */
4911
+ export type Outbound = PutFirewallConfigResponseBody$Outbound;
4912
+ }
4913
+
4914
+ export function putFirewallConfigResponseBodyToJSON(
4915
+ putFirewallConfigResponseBody: PutFirewallConfigResponseBody,
4916
+ ): string {
4917
+ return JSON.stringify(
4918
+ PutFirewallConfigResponseBody$outboundSchema.parse(
4919
+ putFirewallConfigResponseBody,
4920
+ ),
4921
+ );
4922
+ }
4923
+
4924
+ export function putFirewallConfigResponseBodyFromJSON(
4925
+ jsonString: string,
4926
+ ): SafeParseResult<PutFirewallConfigResponseBody, SDKValidationError> {
4927
+ return safeParse(
4928
+ jsonString,
4929
+ (x) => PutFirewallConfigResponseBody$inboundSchema.parse(JSON.parse(x)),
4930
+ `Failed to parse 'PutFirewallConfigResponseBody' from JSON`,
4931
+ );
4932
+ }