@homeflare/distilled-unifi-network 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +125 -0
  3. package/dist/credentials.d.ts +24 -0
  4. package/dist/credentials.d.ts.map +1 -0
  5. package/dist/credentials.js +78 -0
  6. package/dist/credentials.js.map +1 -0
  7. package/dist/errors.d.ts +74 -0
  8. package/dist/errors.d.ts.map +1 -0
  9. package/dist/errors.js +49 -0
  10. package/dist/errors.js.map +1 -0
  11. package/dist/index.d.ts +33 -0
  12. package/dist/index.d.ts.map +1 -0
  13. package/dist/index.js +33 -0
  14. package/dist/index.js.map +1 -0
  15. package/dist/protocol.d.ts +18 -0
  16. package/dist/protocol.d.ts.map +1 -0
  17. package/dist/protocol.js +59 -0
  18. package/dist/protocol.js.map +1 -0
  19. package/dist/retry.d.ts +57 -0
  20. package/dist/retry.d.ts.map +1 -0
  21. package/dist/retry.js +50 -0
  22. package/dist/retry.js.map +1 -0
  23. package/dist/services/access_control_acl_rules.d.ts +222 -0
  24. package/dist/services/access_control_acl_rules.d.ts.map +1 -0
  25. package/dist/services/access_control_acl_rules.js +225 -0
  26. package/dist/services/access_control_acl_rules.js.map +1 -0
  27. package/dist/services/application_info.d.ts +15 -0
  28. package/dist/services/application_info.d.ts.map +1 -0
  29. package/dist/services/application_info.js +22 -0
  30. package/dist/services/application_info.js.map +1 -0
  31. package/dist/services/clients.d.ts +108 -0
  32. package/dist/services/clients.d.ts.map +1 -0
  33. package/dist/services/clients.js +122 -0
  34. package/dist/services/clients.js.map +1 -0
  35. package/dist/services/dns_policies.d.ts +143 -0
  36. package/dist/services/dns_policies.d.ts.map +1 -0
  37. package/dist/services/dns_policies.js +171 -0
  38. package/dist/services/dns_policies.js.map +1 -0
  39. package/dist/services/firewall.d.ts +473 -0
  40. package/dist/services/firewall.d.ts.map +1 -0
  41. package/dist/services/firewall.js +521 -0
  42. package/dist/services/firewall.js.map +1 -0
  43. package/dist/services/hotspot.d.ts +107 -0
  44. package/dist/services/hotspot.d.ts.map +1 -0
  45. package/dist/services/hotspot.js +145 -0
  46. package/dist/services/hotspot.js.map +1 -0
  47. package/dist/services/index.d.ts +14 -0
  48. package/dist/services/index.d.ts.map +1 -0
  49. package/dist/services/index.js +15 -0
  50. package/dist/services/index.js.map +1 -0
  51. package/dist/services/networks.d.ts +251 -0
  52. package/dist/services/networks.d.ts.map +1 -0
  53. package/dist/services/networks.js +256 -0
  54. package/dist/services/networks.js.map +1 -0
  55. package/dist/services/sites.d.ts +31 -0
  56. package/dist/services/sites.d.ts.map +1 -0
  57. package/dist/services/sites.js +38 -0
  58. package/dist/services/sites.js.map +1 -0
  59. package/dist/services/supporting_resources.d.ts +238 -0
  60. package/dist/services/supporting_resources.d.ts.map +1 -0
  61. package/dist/services/supporting_resources.js +298 -0
  62. package/dist/services/supporting_resources.js.map +1 -0
  63. package/dist/services/switching.d.ts +168 -0
  64. package/dist/services/switching.d.ts.map +1 -0
  65. package/dist/services/switching.js +226 -0
  66. package/dist/services/switching.js.map +1 -0
  67. package/dist/services/traffic_matching_lists.d.ts +75 -0
  68. package/dist/services/traffic_matching_lists.d.ts.map +1 -0
  69. package/dist/services/traffic_matching_lists.js +126 -0
  70. package/dist/services/traffic_matching_lists.js.map +1 -0
  71. package/dist/services/unifi_devices.d.ts +280 -0
  72. package/dist/services/unifi_devices.d.ts.map +1 -0
  73. package/dist/services/unifi_devices.js +338 -0
  74. package/dist/services/unifi_devices.js.map +1 -0
  75. package/dist/services/wifi_broadcasts.d.ts +378 -0
  76. package/dist/services/wifi_broadcasts.d.ts.map +1 -0
  77. package/dist/services/wifi_broadcasts.js +396 -0
  78. package/dist/services/wifi_broadcasts.js.map +1 -0
  79. package/dist/traits.d.ts +11 -0
  80. package/dist/traits.d.ts.map +1 -0
  81. package/dist/traits.js +12 -0
  82. package/dist/traits.js.map +1 -0
  83. package/package.json +75 -0
  84. package/src/credentials.ts +112 -0
  85. package/src/errors.ts +103 -0
  86. package/src/index.ts +36 -0
  87. package/src/protocol.ts +86 -0
  88. package/src/retry.ts +83 -0
  89. package/src/services/access_control_acl_rules.ts +537 -0
  90. package/src/services/application_info.ts +44 -0
  91. package/src/services/clients.ts +272 -0
  92. package/src/services/dns_policies.ts +363 -0
  93. package/src/services/firewall.ts +1492 -0
  94. package/src/services/hotspot.ts +305 -0
  95. package/src/services/index.ts +14 -0
  96. package/src/services/networks.ts +613 -0
  97. package/src/services/sites.ts +81 -0
  98. package/src/services/supporting_resources.ts +650 -0
  99. package/src/services/switching.ts +496 -0
  100. package/src/services/traffic_matching_lists.ts +248 -0
  101. package/src/services/unifi_devices.ts +795 -0
  102. package/src/services/wifi_broadcasts.ts +992 -0
  103. package/src/traits.ts +45 -0
@@ -0,0 +1,1492 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-unifi-network/specs/openapi.json). Do not edit.
2
+ import * as S from "@distilled.cloud/core/schema";
3
+ import * as API from "@distilled.cloud/core/api";
4
+ import * as T from "../traits.ts";
5
+ import {
6
+ UnifiNetworkProtocol,
7
+ type UnifiNetworkOpError,
8
+ type UnifiNetworkOpContext,
9
+ } from "../protocol.ts";
10
+ import { UnknownUnifiNetworkError } from "../errors.ts";
11
+ import * as Retry from "../retry.ts";
12
+
13
+ export type { UnifiNetworkOpError, UnifiNetworkOpContext };
14
+
15
+ /** Defines action for matched traffic. */
16
+ export interface FirewallPolicyAction {
17
+ type: string;
18
+ /** Creates a derived policy for the mirrored firewall zone pair to automatically allow the return traffic. */
19
+ allowReturnTraffic?: boolean;
20
+ }
21
+ export const FirewallPolicyAction = /*@__PURE__*/ S.suspend(() =>
22
+ S.Struct({
23
+ type: S.String,
24
+ allowReturnTraffic: S.optional(S.Boolean),
25
+ }),
26
+ ).annotate({
27
+ identifier: "FirewallPolicyAction",
28
+ }) as any as S.Schema<FirewallPolicyAction>;
29
+
30
+ export type CreateFirewallPolicyRequestConnectionStateFilterItem =
31
+ | "NEW"
32
+ | "INVALID"
33
+ | "ESTABLISHED"
34
+ | "RELATED";
35
+ export const CreateFirewallPolicyRequestConnectionStateFilterItem = S.String;
36
+
37
+ /** Match on firewall connection state. If null, matches all connection states. */
38
+ export type CreateFirewallPolicyRequestConnectionStateFilterList = Array<
39
+ CreateFirewallPolicyRequestConnectionStateFilterItem | (string & {})
40
+ >;
41
+ export const CreateFirewallPolicyRequestConnectionStateFilterList =
42
+ /*@__PURE__*/ S.Array(
43
+ CreateFirewallPolicyRequestConnectionStateFilterItem,
44
+ ) as any as S.Schema<CreateFirewallPolicyRequestConnectionStateFilterList>;
45
+
46
+ /** Array of DPI Application IDs to match. */
47
+ export type FirewallPolicyApplicationFilterApplicationIdsList = Array<number>;
48
+ export const FirewallPolicyApplicationFilterApplicationIdsList =
49
+ /*@__PURE__*/ S.Array(
50
+ S.Number,
51
+ ) as any as S.Schema<FirewallPolicyApplicationFilterApplicationIdsList>;
52
+
53
+ export interface FirewallPolicyApplicationFilter {
54
+ /** Array of DPI Application IDs to match. */
55
+ applicationIds: FirewallPolicyApplicationFilterApplicationIdsList;
56
+ }
57
+ export const FirewallPolicyApplicationFilter = /*@__PURE__*/ S.suspend(() =>
58
+ S.Struct({
59
+ applicationIds: FirewallPolicyApplicationFilterApplicationIdsList,
60
+ }),
61
+ ).annotate({
62
+ identifier: "FirewallPolicyApplicationFilter",
63
+ }) as any as S.Schema<FirewallPolicyApplicationFilter>;
64
+
65
+ export interface PortMatching {
66
+ type: string;
67
+ /** Port number */
68
+ value?: number;
69
+ /** Start port number */
70
+ start?: number;
71
+ /** Stop port number */
72
+ stop?: number;
73
+ }
74
+ export const PortMatching = /*@__PURE__*/ S.suspend(() =>
75
+ S.Struct({
76
+ type: S.String,
77
+ value: S.optional(S.Number),
78
+ start: S.optional(S.Number),
79
+ stop: S.optional(S.Number),
80
+ }),
81
+ ).annotate({ identifier: "PortMatching" }) as any as S.Schema<PortMatching>;
82
+
83
+ /** List of ports or port ranges to match. */
84
+ export type FirewallPolicyPortFilterItemsList = Array<PortMatching>;
85
+ export const FirewallPolicyPortFilterItemsList = /*@__PURE__*/ S.Array(
86
+ PortMatching,
87
+ ) as any as S.Schema<FirewallPolicyPortFilterItemsList>;
88
+
89
+ /** Defines rules for matching traffic by port. */
90
+ export interface FirewallPolicyPortFilter {
91
+ /** Match on all ports except the specified ones. */
92
+ matchOpposite: boolean;
93
+ type: string;
94
+ /** List of ports or port ranges to match. */
95
+ items?: FirewallPolicyPortFilterItemsList;
96
+ /** ID of Traffic Matching List containing ports to match. */
97
+ trafficMatchingListId?: string;
98
+ }
99
+ export const FirewallPolicyPortFilter = /*@__PURE__*/ S.suspend(() =>
100
+ S.Struct({
101
+ matchOpposite: S.Boolean,
102
+ type: S.String,
103
+ items: S.optional(FirewallPolicyPortFilterItemsList),
104
+ trafficMatchingListId: S.optional(S.String),
105
+ }),
106
+ ).annotate({
107
+ identifier: "FirewallPolicyPortFilter",
108
+ }) as any as S.Schema<FirewallPolicyPortFilter>;
109
+
110
+ /** Array of DPI Category IDs to match. */
111
+ export type FirewallPolicyApplicationCategoryFilterApplicationCategoryIdsList =
112
+ Array<number>;
113
+ export const FirewallPolicyApplicationCategoryFilterApplicationCategoryIdsList =
114
+ /*@__PURE__*/ S.Array(
115
+ S.Number,
116
+ ) as any as S.Schema<FirewallPolicyApplicationCategoryFilterApplicationCategoryIdsList>;
117
+
118
+ export interface FirewallPolicyApplicationCategoryFilter {
119
+ /** Array of DPI Category IDs to match. */
120
+ applicationCategoryIds: FirewallPolicyApplicationCategoryFilterApplicationCategoryIdsList;
121
+ }
122
+ export const FirewallPolicyApplicationCategoryFilter = /*@__PURE__*/ S.suspend(
123
+ () =>
124
+ S.Struct({
125
+ applicationCategoryIds:
126
+ FirewallPolicyApplicationCategoryFilterApplicationCategoryIdsList,
127
+ }),
128
+ ).annotate({
129
+ identifier: "FirewallPolicyApplicationCategoryFilter",
130
+ }) as any as S.Schema<FirewallPolicyApplicationCategoryFilter>;
131
+
132
+ /** List of domains to match. */
133
+ export type FirewallPolicyDomainFilterDomainsList = Array<string>;
134
+ export const FirewallPolicyDomainFilterDomainsList = /*@__PURE__*/ S.Array(
135
+ S.String,
136
+ ) as any as S.Schema<FirewallPolicyDomainFilterDomainsList>;
137
+
138
+ export interface FirewallPolicyDomainFilter {
139
+ type: string;
140
+ /** List of domains to match. */
141
+ domains?: FirewallPolicyDomainFilterDomainsList;
142
+ }
143
+ export const FirewallPolicyDomainFilter = /*@__PURE__*/ S.suspend(() =>
144
+ S.Struct({
145
+ type: S.String,
146
+ domains: S.optional(FirewallPolicyDomainFilterDomainsList),
147
+ }),
148
+ ).annotate({
149
+ identifier: "FirewallPolicyDomainFilter",
150
+ }) as any as S.Schema<FirewallPolicyDomainFilter>;
151
+
152
+ export interface FirewallPolicyIPv6InterfaceIdentifierFilter {
153
+ /** IPv6 Interface Identifier. */
154
+ ipv6Iid: string;
155
+ /** Match on all IPv6 IIDs except the specified one. */
156
+ matchOpposite: boolean;
157
+ }
158
+ export const FirewallPolicyIPv6InterfaceIdentifierFilter =
159
+ /*@__PURE__*/ S.suspend(() =>
160
+ S.Struct({
161
+ ipv6Iid: S.String,
162
+ matchOpposite: S.Boolean,
163
+ }),
164
+ ).annotate({
165
+ identifier: "FirewallPolicyIPv6InterfaceIdentifierFilter",
166
+ }) as any as S.Schema<FirewallPolicyIPv6InterfaceIdentifierFilter>;
167
+
168
+ export interface IPMatching {
169
+ type: string;
170
+ /** IP address to match. */
171
+ value?: string;
172
+ /** First IP address from range to match. */
173
+ start?: string;
174
+ /** Last IP address from range to match. */
175
+ stop?: string;
176
+ }
177
+ export const IPMatching = /*@__PURE__*/ S.suspend(() =>
178
+ S.Struct({
179
+ type: S.String,
180
+ value: S.optional(S.String),
181
+ start: S.optional(S.String),
182
+ stop: S.optional(S.String),
183
+ }),
184
+ ).annotate({ identifier: "IPMatching" }) as any as S.Schema<IPMatching>;
185
+
186
+ /** List of IP addresses, IP address ranges, or IP subnets to match. */
187
+ export type FirewallPolicyIPAddressFilterItemsList = Array<IPMatching>;
188
+ export const FirewallPolicyIPAddressFilterItemsList = /*@__PURE__*/ S.Array(
189
+ IPMatching,
190
+ ) as any as S.Schema<FirewallPolicyIPAddressFilterItemsList>;
191
+
192
+ /** Match traffic originating from, or destined to selected IP addresses. */
193
+ export interface FirewallPolicyIPAddressFilter {
194
+ /** Match on all IP addresses except the specified ones. */
195
+ matchOpposite: boolean;
196
+ type: string;
197
+ /** List of IP addresses, IP address ranges, or IP subnets to match. */
198
+ items?: FirewallPolicyIPAddressFilterItemsList;
199
+ /** ID of Traffic Matching List containing IP addresses to match. */
200
+ trafficMatchingListId?: string;
201
+ }
202
+ export const FirewallPolicyIPAddressFilter = /*@__PURE__*/ S.suspend(() =>
203
+ S.Struct({
204
+ matchOpposite: S.Boolean,
205
+ type: S.String,
206
+ items: S.optional(FirewallPolicyIPAddressFilterItemsList),
207
+ trafficMatchingListId: S.optional(S.String),
208
+ }),
209
+ ).annotate({
210
+ identifier: "FirewallPolicyIPAddressFilter",
211
+ }) as any as S.Schema<FirewallPolicyIPAddressFilter>;
212
+
213
+ /** Array of Network IDs to match. */
214
+ export type FirewallPolicyNetworkFilterNetworkIdsList = Array<string>;
215
+ export const FirewallPolicyNetworkFilterNetworkIdsList = /*@__PURE__*/ S.Array(
216
+ S.String,
217
+ ) as any as S.Schema<FirewallPolicyNetworkFilterNetworkIdsList>;
218
+
219
+ export interface FirewallPolicyNetworkFilter {
220
+ /** Match on all Networks except the selected. */
221
+ matchOpposite: boolean;
222
+ /** Array of Network IDs to match. */
223
+ networkIds: FirewallPolicyNetworkFilterNetworkIdsList;
224
+ }
225
+ export const FirewallPolicyNetworkFilter = /*@__PURE__*/ S.suspend(() =>
226
+ S.Struct({
227
+ matchOpposite: S.Boolean,
228
+ networkIds: FirewallPolicyNetworkFilterNetworkIdsList,
229
+ }),
230
+ ).annotate({
231
+ identifier: "FirewallPolicyNetworkFilter",
232
+ }) as any as S.Schema<FirewallPolicyNetworkFilter>;
233
+
234
+ export type FirewallPolicyRegionFilterRegionsItem =
235
+ | "AD"
236
+ | "AE"
237
+ | "AF"
238
+ | "AG"
239
+ | "AI"
240
+ | "AL"
241
+ | "AM"
242
+ | "AO"
243
+ | "AQ"
244
+ | "AR"
245
+ | "AS"
246
+ | "AT"
247
+ | "AU"
248
+ | "AW"
249
+ | "AX"
250
+ | "AZ"
251
+ | "BA"
252
+ | "BB"
253
+ | "BD"
254
+ | "BE"
255
+ | "BF"
256
+ | "BG"
257
+ | "BH"
258
+ | "BI"
259
+ | "BJ"
260
+ | "BL"
261
+ | "BM"
262
+ | "BN"
263
+ | "BO"
264
+ | "BQ"
265
+ | "BR"
266
+ | "BS"
267
+ | "BT"
268
+ | "BW"
269
+ | "BY"
270
+ | "BZ"
271
+ | "CA"
272
+ | "CC"
273
+ | "CD"
274
+ | "CF"
275
+ | "CG"
276
+ | "CH"
277
+ | "CI"
278
+ | "CK"
279
+ | "CL"
280
+ | "CM"
281
+ | "CN"
282
+ | "CO"
283
+ | "CR"
284
+ | "CU"
285
+ | "CV"
286
+ | "CW"
287
+ | "CX"
288
+ | "CY"
289
+ | "CZ"
290
+ | "DE"
291
+ | "DJ"
292
+ | "DK"
293
+ | "DM"
294
+ | "DO"
295
+ | "DZ"
296
+ | "EC"
297
+ | "EE"
298
+ | "EG"
299
+ | "EH"
300
+ | "ER"
301
+ | "ES"
302
+ | "ET"
303
+ | "FI"
304
+ | "FJ"
305
+ | "FK"
306
+ | "FM"
307
+ | "FO"
308
+ | "FR"
309
+ | "GA"
310
+ | "GB"
311
+ | "GD"
312
+ | "GE"
313
+ | "GF"
314
+ | "GG"
315
+ | "GH"
316
+ | "GI"
317
+ | "GL"
318
+ | "GM"
319
+ | "GN"
320
+ | "GP"
321
+ | "GQ"
322
+ | "GR"
323
+ | "GS"
324
+ | "GT"
325
+ | "GU"
326
+ | "GW"
327
+ | "GY"
328
+ | "HK"
329
+ | "HN"
330
+ | "HR"
331
+ | "HT"
332
+ | "HU"
333
+ | "ID"
334
+ | "IE"
335
+ | "IL"
336
+ | "IM"
337
+ | "IN"
338
+ | "IO"
339
+ | "IQ"
340
+ | "IR"
341
+ | "IS"
342
+ | "IT"
343
+ | "JE"
344
+ | "JM"
345
+ | "JO"
346
+ | "JP"
347
+ | "KE"
348
+ | "KG"
349
+ | "KH"
350
+ | "KI"
351
+ | "KM"
352
+ | "KN"
353
+ | "KP"
354
+ | "KR"
355
+ | "KW"
356
+ | "KY"
357
+ | "KZ"
358
+ | "LA"
359
+ | "LB"
360
+ | "LC"
361
+ | "LI"
362
+ | "LK"
363
+ | "LR"
364
+ | "LS"
365
+ | "LT"
366
+ | "LU"
367
+ | "LV"
368
+ | "LY"
369
+ | "MA"
370
+ | "MC"
371
+ | "MD"
372
+ | "ME"
373
+ | "MF"
374
+ | "MG"
375
+ | "MH"
376
+ | "MK"
377
+ | "ML"
378
+ | "MM"
379
+ | "MN"
380
+ | "MO"
381
+ | "MP"
382
+ | "MQ"
383
+ | "MR"
384
+ | "MS"
385
+ | "MT"
386
+ | "MU"
387
+ | "MV"
388
+ | "MW"
389
+ | "MX"
390
+ | "MY"
391
+ | "MZ"
392
+ | "NA"
393
+ | "NC"
394
+ | "NE"
395
+ | "NF"
396
+ | "NG"
397
+ | "NI"
398
+ | "NL"
399
+ | "NO"
400
+ | "NP"
401
+ | "NR"
402
+ | "NU"
403
+ | "NZ"
404
+ | "OM"
405
+ | "PA"
406
+ | "PE"
407
+ | "PF"
408
+ | "PG"
409
+ | "PH"
410
+ | "PK"
411
+ | "PL"
412
+ | "PM"
413
+ | "PN"
414
+ | "PR"
415
+ | "PS"
416
+ | "PT"
417
+ | "PW"
418
+ | "PY"
419
+ | "QA"
420
+ | "RE"
421
+ | "RO"
422
+ | "RS"
423
+ | "RU"
424
+ | "RW"
425
+ | "SA"
426
+ | "SB"
427
+ | "SC"
428
+ | "SD"
429
+ | "SE"
430
+ | "SG"
431
+ | "SH"
432
+ | "SI"
433
+ | "SJ"
434
+ | "SK"
435
+ | "SL"
436
+ | "SM"
437
+ | "SN"
438
+ | "SO"
439
+ | "SR"
440
+ | "SS"
441
+ | "ST"
442
+ | "SV"
443
+ | "SX"
444
+ | "SY"
445
+ | "SZ"
446
+ | "TC"
447
+ | "TD"
448
+ | "TF"
449
+ | "TG"
450
+ | "TH"
451
+ | "TJ"
452
+ | "TK"
453
+ | "TL"
454
+ | "TM"
455
+ | "TN"
456
+ | "TO"
457
+ | "TR"
458
+ | "TT"
459
+ | "TV"
460
+ | "TW"
461
+ | "TZ"
462
+ | "UA"
463
+ | "UG"
464
+ | "UM"
465
+ | "US"
466
+ | "UY"
467
+ | "UZ"
468
+ | "VA"
469
+ | "VC"
470
+ | "VE"
471
+ | "VG"
472
+ | "VI"
473
+ | "VN"
474
+ | "VU"
475
+ | "WF"
476
+ | "WS"
477
+ | "XK"
478
+ | "YE"
479
+ | "YT"
480
+ | "ZA"
481
+ | "ZM"
482
+ | "ZW";
483
+ export const FirewallPolicyRegionFilterRegionsItem = S.String;
484
+
485
+ /** Match traffic originating from selected regions. Regions are identified by their ISO 3166-1 alpha-2 country codes. */
486
+ export type FirewallPolicyRegionFilterRegionsList = Array<
487
+ FirewallPolicyRegionFilterRegionsItem | (string & {})
488
+ >;
489
+ export const FirewallPolicyRegionFilterRegionsList = /*@__PURE__*/ S.Array(
490
+ FirewallPolicyRegionFilterRegionsItem,
491
+ ) as any as S.Schema<FirewallPolicyRegionFilterRegionsList>;
492
+
493
+ export interface FirewallPolicyRegionFilter {
494
+ /** Match traffic originating from selected regions. Regions are identified by their ISO 3166-1 alpha-2 country codes. */
495
+ regions: FirewallPolicyRegionFilterRegionsList;
496
+ }
497
+ export const FirewallPolicyRegionFilter = /*@__PURE__*/ S.suspend(() =>
498
+ S.Struct({
499
+ regions: FirewallPolicyRegionFilterRegionsList,
500
+ }),
501
+ ).annotate({
502
+ identifier: "FirewallPolicyRegionFilter",
503
+ }) as any as S.Schema<FirewallPolicyRegionFilter>;
504
+
505
+ export interface FirewallPolicySiteToSiteVPNTunnelFilter {
506
+ siteToSiteVpnTunnelId: string;
507
+ }
508
+ export const FirewallPolicySiteToSiteVPNTunnelFilter = /*@__PURE__*/ S.suspend(
509
+ () =>
510
+ S.Struct({
511
+ siteToSiteVpnTunnelId: S.String,
512
+ }),
513
+ ).annotate({
514
+ identifier: "FirewallPolicySiteToSiteVPNTunnelFilter",
515
+ }) as any as S.Schema<FirewallPolicySiteToSiteVPNTunnelFilter>;
516
+
517
+ export type FirewallPolicyVPNServerFilterVpnServerIdsList = Array<string>;
518
+ export const FirewallPolicyVPNServerFilterVpnServerIdsList =
519
+ /*@__PURE__*/ S.Array(
520
+ S.String,
521
+ ) as any as S.Schema<FirewallPolicyVPNServerFilterVpnServerIdsList>;
522
+
523
+ export interface FirewallPolicyVPNServerFilter {
524
+ matchOpposite: boolean;
525
+ vpnServerIds: FirewallPolicyVPNServerFilterVpnServerIdsList;
526
+ }
527
+ export const FirewallPolicyVPNServerFilter = /*@__PURE__*/ S.suspend(() =>
528
+ S.Struct({
529
+ matchOpposite: S.Boolean,
530
+ vpnServerIds: FirewallPolicyVPNServerFilterVpnServerIdsList,
531
+ }),
532
+ ).annotate({
533
+ identifier: "FirewallPolicyVPNServerFilter",
534
+ }) as any as S.Schema<FirewallPolicyVPNServerFilter>;
535
+
536
+ export interface FirewallPolicyDestinationTrafficFilter {
537
+ type: string;
538
+ /** Match destination traffic by DPI applications. */
539
+ applicationFilter?: FirewallPolicyApplicationFilter;
540
+ /** Match destination traffic additionally by ports. If null, match all ports. */
541
+ portFilter?: FirewallPolicyPortFilter;
542
+ /** Match destination traffic by DPI application categories. */
543
+ applicationCategoryFilter?: FirewallPolicyApplicationCategoryFilter;
544
+ /** Match destination traffic by domains. */
545
+ domainFilter?: FirewallPolicyDomainFilter;
546
+ /** Match destination traffic by IPv6 interface identifier. */
547
+ ipv6IidFilter?: FirewallPolicyIPv6InterfaceIdentifierFilter;
548
+ /** Match destination traffic by IP addresses. */
549
+ ipAddressFilter?: FirewallPolicyIPAddressFilter;
550
+ /** Match destination traffic by networks. */
551
+ networkFilter?: FirewallPolicyNetworkFilter;
552
+ /** Match destination traffic by regions. */
553
+ regionFilter?: FirewallPolicyRegionFilter;
554
+ /** Match destination traffic by site-to-site VPN tunnel. */
555
+ siteToSiteVpnTunnelFilter?: FirewallPolicySiteToSiteVPNTunnelFilter;
556
+ /** Match destination traffic by VPN servers. */
557
+ vpnServerFilter?: FirewallPolicyVPNServerFilter;
558
+ }
559
+ export const FirewallPolicyDestinationTrafficFilter = /*@__PURE__*/ S.suspend(
560
+ () =>
561
+ S.Struct({
562
+ type: S.String,
563
+ applicationFilter: S.optional(FirewallPolicyApplicationFilter),
564
+ portFilter: S.optional(FirewallPolicyPortFilter),
565
+ applicationCategoryFilter: S.optional(
566
+ FirewallPolicyApplicationCategoryFilter,
567
+ ),
568
+ domainFilter: S.optional(FirewallPolicyDomainFilter),
569
+ ipv6IidFilter: S.optional(FirewallPolicyIPv6InterfaceIdentifierFilter),
570
+ ipAddressFilter: S.optional(FirewallPolicyIPAddressFilter),
571
+ networkFilter: S.optional(FirewallPolicyNetworkFilter),
572
+ regionFilter: S.optional(FirewallPolicyRegionFilter),
573
+ siteToSiteVpnTunnelFilter: S.optional(
574
+ FirewallPolicySiteToSiteVPNTunnelFilter,
575
+ ),
576
+ vpnServerFilter: S.optional(FirewallPolicyVPNServerFilter),
577
+ }),
578
+ ).annotate({
579
+ identifier: "FirewallPolicyDestinationTrafficFilter",
580
+ }) as any as S.Schema<FirewallPolicyDestinationTrafficFilter>;
581
+
582
+ export interface FirewallPolicyDestination {
583
+ trafficFilter?: FirewallPolicyDestinationTrafficFilter;
584
+ /** ID of the firewall zone to which the matched traffic is destined. */
585
+ zoneId: string;
586
+ }
587
+ export const FirewallPolicyDestination = /*@__PURE__*/ S.suspend(() =>
588
+ S.Struct({
589
+ trafficFilter: S.optional(FirewallPolicyDestinationTrafficFilter),
590
+ zoneId: S.String,
591
+ }),
592
+ ).annotate({
593
+ identifier: "FirewallPolicyDestination",
594
+ }) as any as S.Schema<FirewallPolicyDestination>;
595
+
596
+ /** Defines rules for matching by IP version and protocol. */
597
+ export interface FirewallPolicyIPProtocolScope {
598
+ ipVersion: string;
599
+ /** Shape varies by variant — widened by scripts/convert.ts; see README. */
600
+ protocolFilter?: unknown;
601
+ }
602
+ export const FirewallPolicyIPProtocolScope = /*@__PURE__*/ S.suspend(() =>
603
+ S.Struct({
604
+ ipVersion: S.String,
605
+ protocolFilter: S.optional(S.Unknown),
606
+ }),
607
+ ).annotate({
608
+ identifier: "FirewallPolicyIPProtocolScope",
609
+ }) as any as S.Schema<FirewallPolicyIPProtocolScope>;
610
+
611
+ /** Match on traffic encrypted, or not encrypted by IPsec. If null, matches all traffic. */
612
+ export type CreateFirewallPolicyRequestIpsecFilter =
613
+ | "MATCH_ENCRYPTED"
614
+ | "MATCH_NOT_ENCRYPTED";
615
+ export const CreateFirewallPolicyRequestIpsecFilter = S.String;
616
+
617
+ export type FirewallScheduleRepeatOnDaysItem =
618
+ | "MONDAY"
619
+ | "TUESDAY"
620
+ | "WEDNESDAY"
621
+ | "THURSDAY"
622
+ | "FRIDAY"
623
+ | "SATURDAY"
624
+ | "SUNDAY";
625
+ export const FirewallScheduleRepeatOnDaysItem = S.String;
626
+
627
+ export type FirewallScheduleRepeatOnDaysList = Array<
628
+ FirewallScheduleRepeatOnDaysItem | (string & {})
629
+ >;
630
+ export const FirewallScheduleRepeatOnDaysList = /*@__PURE__*/ S.Array(
631
+ FirewallScheduleRepeatOnDaysItem,
632
+ ) as any as S.Schema<FirewallScheduleRepeatOnDaysList>;
633
+
634
+ /** Defines the time range when the entity is active. If null, the entity is active all day. */
635
+ export interface FirewallScheduleTime {
636
+ /** Time in HH:MM format. Uses 24-hour clock system. ISO 8601 compliant. */
637
+ startTime: string;
638
+ /** Time in HH:MM format. Uses 24-hour clock system. ISO 8601 compliant. */
639
+ stopTime: string;
640
+ }
641
+ export const FirewallScheduleTime = /*@__PURE__*/ S.suspend(() =>
642
+ S.Struct({
643
+ startTime: S.String,
644
+ stopTime: S.String,
645
+ }),
646
+ ).annotate({
647
+ identifier: "FirewallScheduleTime",
648
+ }) as any as S.Schema<FirewallScheduleTime>;
649
+
650
+ /** Defines date and time when the entity is active. If null, the entity is always active. */
651
+ export interface FirewallSchedule {
652
+ mode: string;
653
+ repeatOnDays?: FirewallScheduleRepeatOnDaysList;
654
+ /** Date in YYYY-MM-DD format. ISO 8601 compliant. */
655
+ startDate?: string;
656
+ /** Date in YYYY-MM-DD format. ISO 8601 compliant. */
657
+ stopDate?: string;
658
+ timeFilter?: FirewallScheduleTime;
659
+ /** Date in YYYY-MM-DD format. ISO 8601 compliant. */
660
+ date?: string;
661
+ }
662
+ export const FirewallSchedule = /*@__PURE__*/ S.suspend(() =>
663
+ S.Struct({
664
+ mode: S.String,
665
+ repeatOnDays: S.optional(FirewallScheduleRepeatOnDaysList),
666
+ startDate: S.optional(S.String),
667
+ stopDate: S.optional(S.String),
668
+ timeFilter: S.optional(FirewallScheduleTime),
669
+ date: S.optional(S.String),
670
+ }),
671
+ ).annotate({
672
+ identifier: "FirewallSchedule",
673
+ }) as any as S.Schema<FirewallSchedule>;
674
+
675
+ export interface FirewallPolicySourceTrafficFilter {
676
+ type: string;
677
+ /** Match source traffic by IPv6 interface identifier */
678
+ ipv6IidFilter?: FirewallPolicyIPv6InterfaceIdentifierFilter;
679
+ /** Shape varies by variant — widened by scripts/convert.ts; see README. */
680
+ macAddressFilter?: unknown;
681
+ /** Match source traffic additionally by ports. If null, match all ports. */
682
+ portFilter?: FirewallPolicyPortFilter;
683
+ /** Match source traffic by IP addresses */
684
+ ipAddressFilter?: FirewallPolicyIPAddressFilter;
685
+ /** Match source traffic by networks. */
686
+ networkFilter?: FirewallPolicyNetworkFilter;
687
+ /** Match source traffic by regions. */
688
+ regionFilter?: FirewallPolicyRegionFilter;
689
+ /** Match source traffic by site-to-site VPN tunnel. */
690
+ siteToSiteVpnTunnelFilter?: FirewallPolicySiteToSiteVPNTunnelFilter;
691
+ /** Match source traffic by VPN servers. */
692
+ vpnServerFilter?: FirewallPolicyVPNServerFilter;
693
+ }
694
+ export const FirewallPolicySourceTrafficFilter = /*@__PURE__*/ S.suspend(() =>
695
+ S.Struct({
696
+ type: S.String,
697
+ ipv6IidFilter: S.optional(FirewallPolicyIPv6InterfaceIdentifierFilter),
698
+ macAddressFilter: S.optional(S.Unknown),
699
+ portFilter: S.optional(FirewallPolicyPortFilter),
700
+ ipAddressFilter: S.optional(FirewallPolicyIPAddressFilter),
701
+ networkFilter: S.optional(FirewallPolicyNetworkFilter),
702
+ regionFilter: S.optional(FirewallPolicyRegionFilter),
703
+ siteToSiteVpnTunnelFilter: S.optional(
704
+ FirewallPolicySiteToSiteVPNTunnelFilter,
705
+ ),
706
+ vpnServerFilter: S.optional(FirewallPolicyVPNServerFilter),
707
+ }),
708
+ ).annotate({
709
+ identifier: "FirewallPolicySourceTrafficFilter",
710
+ }) as any as S.Schema<FirewallPolicySourceTrafficFilter>;
711
+
712
+ export interface FirewallPolicySource {
713
+ trafficFilter?: FirewallPolicySourceTrafficFilter;
714
+ /** ID of the firewall zone from which the matched traffic originates. */
715
+ zoneId: string;
716
+ }
717
+ export const FirewallPolicySource = /*@__PURE__*/ S.suspend(() =>
718
+ S.Struct({
719
+ trafficFilter: S.optional(FirewallPolicySourceTrafficFilter),
720
+ zoneId: S.String,
721
+ }),
722
+ ).annotate({
723
+ identifier: "FirewallPolicySource",
724
+ }) as any as S.Schema<FirewallPolicySource>;
725
+
726
+ export interface CreateFirewallPolicyRequest {
727
+ siteId: string;
728
+ action: FirewallPolicyAction;
729
+ /** Match on firewall connection state. If null, matches all connection states. */
730
+ connectionStateFilter?: CreateFirewallPolicyRequestConnectionStateFilterList;
731
+ description?: string;
732
+ destination: FirewallPolicyDestination;
733
+ enabled: boolean;
734
+ ipProtocolScope: FirewallPolicyIPProtocolScope;
735
+ /** Match on traffic encrypted, or not encrypted by IPsec. If null, matches all traffic. */
736
+ ipsecFilter?: CreateFirewallPolicyRequestIpsecFilter | (string & {});
737
+ /** Generate syslog entries when traffic is matched. Such entries are sent to a remote syslog server. */
738
+ loggingEnabled: boolean;
739
+ name: string;
740
+ schedule?: FirewallSchedule;
741
+ source: FirewallPolicySource;
742
+ }
743
+ export const CreateFirewallPolicyRequest = /*@__PURE__*/ S.suspend(() =>
744
+ S.Struct({
745
+ siteId: S.String.pipe(T.Label()),
746
+ action: FirewallPolicyAction,
747
+ connectionStateFilter: S.optional(
748
+ CreateFirewallPolicyRequestConnectionStateFilterList,
749
+ ),
750
+ description: S.optional(S.String),
751
+ destination: FirewallPolicyDestination,
752
+ enabled: S.Boolean,
753
+ ipProtocolScope: FirewallPolicyIPProtocolScope,
754
+ ipsecFilter: S.optional(CreateFirewallPolicyRequestIpsecFilter),
755
+ loggingEnabled: S.Boolean,
756
+ name: S.String,
757
+ schedule: S.optional(FirewallSchedule),
758
+ source: FirewallPolicySource,
759
+ }).pipe(
760
+ T.Http({
761
+ method: "POST",
762
+ uri: "/v1/sites/{siteId}/firewall/policies",
763
+ code: 200,
764
+ }),
765
+ ),
766
+ ).annotate({
767
+ identifier: "CreateFirewallPolicyRequest",
768
+ }) as any as S.Schema<CreateFirewallPolicyRequest>;
769
+
770
+ export type FirewallPolicyConnectionStateFilterItem =
771
+ | "NEW"
772
+ | "INVALID"
773
+ | "ESTABLISHED"
774
+ | "RELATED";
775
+ export const FirewallPolicyConnectionStateFilterItem = S.String;
776
+
777
+ /** Match on firewall connection state. If null, matches all connection states. */
778
+ export type FirewallPolicyConnectionStateFilterList =
779
+ Array<FirewallPolicyConnectionStateFilterItem>;
780
+ export const FirewallPolicyConnectionStateFilterList = /*@__PURE__*/ S.Array(
781
+ FirewallPolicyConnectionStateFilterItem,
782
+ ) as any as S.Schema<FirewallPolicyConnectionStateFilterList>;
783
+
784
+ /** Match on traffic encrypted, or not encrypted by IPsec. If null, matches all traffic. */
785
+ export type FirewallPolicyIpsecFilter =
786
+ | "MATCH_ENCRYPTED"
787
+ | "MATCH_NOT_ENCRYPTED";
788
+ export const FirewallPolicyIpsecFilter = S.String;
789
+
790
+ export type UserOrSystemDefinedOrDerivedEntityMetadataSource = "SDWAN";
791
+ export const UserOrSystemDefinedOrDerivedEntityMetadataSource = S.String;
792
+
793
+ export interface UserOrSystemDefinedOrDerivedEntityMetadata {
794
+ origin: string;
795
+ source?: UserOrSystemDefinedOrDerivedEntityMetadataSource;
796
+ }
797
+ export const UserOrSystemDefinedOrDerivedEntityMetadata =
798
+ /*@__PURE__*/ S.suspend(() =>
799
+ S.Struct({
800
+ origin: S.String,
801
+ source: S.optional(UserOrSystemDefinedOrDerivedEntityMetadataSource),
802
+ }),
803
+ ).annotate({
804
+ identifier: "UserOrSystemDefinedOrDerivedEntityMetadata",
805
+ }) as any as S.Schema<UserOrSystemDefinedOrDerivedEntityMetadata>;
806
+
807
+ export interface FirewallPolicy {
808
+ action: FirewallPolicyAction;
809
+ /** Match on firewall connection state. If null, matches all connection states. */
810
+ connectionStateFilter?: FirewallPolicyConnectionStateFilterList;
811
+ description?: string;
812
+ destination: FirewallPolicyDestination;
813
+ enabled: boolean;
814
+ id: string;
815
+ index: number;
816
+ ipProtocolScope: FirewallPolicyIPProtocolScope;
817
+ /** Match on traffic encrypted, or not encrypted by IPsec. If null, matches all traffic. */
818
+ ipsecFilter?: FirewallPolicyIpsecFilter;
819
+ /** Generate syslog entries when traffic is matched. Such entries are sent to a remote syslog server. */
820
+ loggingEnabled: boolean;
821
+ metadata: UserOrSystemDefinedOrDerivedEntityMetadata;
822
+ name: string;
823
+ schedule?: FirewallSchedule;
824
+ source: FirewallPolicySource;
825
+ }
826
+ export const FirewallPolicy = /*@__PURE__*/ S.suspend(() =>
827
+ S.Struct({
828
+ action: FirewallPolicyAction,
829
+ connectionStateFilter: S.optional(FirewallPolicyConnectionStateFilterList),
830
+ description: S.optional(S.String),
831
+ destination: FirewallPolicyDestination,
832
+ enabled: S.Boolean,
833
+ id: S.String,
834
+ index: S.Number,
835
+ ipProtocolScope: FirewallPolicyIPProtocolScope,
836
+ ipsecFilter: S.optional(FirewallPolicyIpsecFilter),
837
+ loggingEnabled: S.Boolean,
838
+ metadata: UserOrSystemDefinedOrDerivedEntityMetadata,
839
+ name: S.String,
840
+ schedule: S.optional(FirewallSchedule),
841
+ source: FirewallPolicySource,
842
+ }),
843
+ ).annotate({ identifier: "FirewallPolicy" }) as any as S.Schema<FirewallPolicy>;
844
+
845
+ /** List of Network IDs */
846
+ export type CreateFirewallZoneRequestNetworkIdsList = Array<string>;
847
+ export const CreateFirewallZoneRequestNetworkIdsList = /*@__PURE__*/ S.Array(
848
+ S.String,
849
+ ) as any as S.Schema<CreateFirewallZoneRequestNetworkIdsList>;
850
+
851
+ export interface CreateFirewallZoneRequest {
852
+ siteId: string;
853
+ /** Name of a firewall zone */
854
+ name: string;
855
+ /** List of Network IDs */
856
+ networkIds: CreateFirewallZoneRequestNetworkIdsList;
857
+ }
858
+ export const CreateFirewallZoneRequest = /*@__PURE__*/ S.suspend(() =>
859
+ S.Struct({
860
+ siteId: S.String.pipe(T.Label()),
861
+ name: S.String,
862
+ networkIds: CreateFirewallZoneRequestNetworkIdsList,
863
+ }).pipe(
864
+ T.Http({
865
+ method: "POST",
866
+ uri: "/v1/sites/{siteId}/firewall/zones",
867
+ code: 200,
868
+ }),
869
+ ),
870
+ ).annotate({
871
+ identifier: "CreateFirewallZoneRequest",
872
+ }) as any as S.Schema<CreateFirewallZoneRequest>;
873
+
874
+ export type UserOrSystemDefinedEntityMetadataSource = "SDWAN";
875
+ export const UserOrSystemDefinedEntityMetadataSource = S.String;
876
+
877
+ export interface UserOrSystemDefinedEntityMetadata {
878
+ origin: string;
879
+ source?: UserOrSystemDefinedEntityMetadataSource;
880
+ }
881
+ export const UserOrSystemDefinedEntityMetadata = /*@__PURE__*/ S.suspend(() =>
882
+ S.Struct({
883
+ origin: S.String,
884
+ source: S.optional(UserOrSystemDefinedEntityMetadataSource),
885
+ }),
886
+ ).annotate({
887
+ identifier: "UserOrSystemDefinedEntityMetadata",
888
+ }) as any as S.Schema<UserOrSystemDefinedEntityMetadata>;
889
+
890
+ /** List of Network IDs */
891
+ export type FirewallZoneNetworkIdsList = Array<string>;
892
+ export const FirewallZoneNetworkIdsList = /*@__PURE__*/ S.Array(
893
+ S.String,
894
+ ) as any as S.Schema<FirewallZoneNetworkIdsList>;
895
+
896
+ export interface FirewallZone {
897
+ id: string;
898
+ /** System-defined configurable zones support configuring only attached networks */
899
+ metadata: UserOrSystemDefinedEntityMetadata;
900
+ /** Name of a firewall zone */
901
+ name: string;
902
+ /** List of Network IDs */
903
+ networkIds: FirewallZoneNetworkIdsList;
904
+ }
905
+ export const FirewallZone = /*@__PURE__*/ S.suspend(() =>
906
+ S.Struct({
907
+ id: S.String,
908
+ metadata: UserOrSystemDefinedEntityMetadata,
909
+ name: S.String,
910
+ networkIds: FirewallZoneNetworkIdsList,
911
+ }),
912
+ ).annotate({ identifier: "FirewallZone" }) as any as S.Schema<FirewallZone>;
913
+
914
+ export interface DeleteFirewallPolicyRequest {
915
+ siteId: string;
916
+ firewallPolicyId: string;
917
+ }
918
+ export const DeleteFirewallPolicyRequest = /*@__PURE__*/ S.suspend(() =>
919
+ S.Struct({
920
+ siteId: S.String.pipe(T.Label()),
921
+ firewallPolicyId: S.String.pipe(T.Label()),
922
+ }).pipe(
923
+ T.Http({
924
+ method: "DELETE",
925
+ uri: "/v1/sites/{siteId}/firewall/policies/{firewallPolicyId}",
926
+ code: 200,
927
+ }),
928
+ ),
929
+ ).annotate({
930
+ identifier: "DeleteFirewallPolicyRequest",
931
+ }) as any as S.Schema<DeleteFirewallPolicyRequest>;
932
+
933
+ export interface DeleteFirewallPolicyResponse {}
934
+ export const DeleteFirewallPolicyResponse = /*@__PURE__*/ S.suspend(() =>
935
+ S.Struct({}),
936
+ ).annotate({
937
+ identifier: "DeleteFirewallPolicyResponse",
938
+ }) as any as S.Schema<DeleteFirewallPolicyResponse>;
939
+
940
+ export interface DeleteFirewallZoneRequest {
941
+ siteId: string;
942
+ firewallZoneId: string;
943
+ }
944
+ export const DeleteFirewallZoneRequest = /*@__PURE__*/ S.suspend(() =>
945
+ S.Struct({
946
+ siteId: S.String.pipe(T.Label()),
947
+ firewallZoneId: S.String.pipe(T.Label()),
948
+ }).pipe(
949
+ T.Http({
950
+ method: "DELETE",
951
+ uri: "/v1/sites/{siteId}/firewall/zones/{firewallZoneId}",
952
+ code: 200,
953
+ }),
954
+ ),
955
+ ).annotate({
956
+ identifier: "DeleteFirewallZoneRequest",
957
+ }) as any as S.Schema<DeleteFirewallZoneRequest>;
958
+
959
+ export interface DeleteFirewallZoneResponse {}
960
+ export const DeleteFirewallZoneResponse = /*@__PURE__*/ S.suspend(() =>
961
+ S.Struct({}),
962
+ ).annotate({
963
+ identifier: "DeleteFirewallZoneResponse",
964
+ }) as any as S.Schema<DeleteFirewallZoneResponse>;
965
+
966
+ export interface GetFirewallPoliciesRequest {
967
+ siteId: string;
968
+ offset?: number;
969
+ limit?: number;
970
+ filter?: string;
971
+ }
972
+ export const GetFirewallPoliciesRequest = /*@__PURE__*/ S.suspend(() =>
973
+ S.Struct({
974
+ siteId: S.String.pipe(T.Label()),
975
+ offset: S.optional(S.Number.pipe(T.Query())),
976
+ limit: S.optional(S.Number.pipe(T.Query())),
977
+ filter: S.optional(S.String.pipe(T.Query())),
978
+ }).pipe(
979
+ T.Http({
980
+ method: "GET",
981
+ uri: "/v1/sites/{siteId}/firewall/policies",
982
+ code: 200,
983
+ }),
984
+ ),
985
+ ).annotate({
986
+ identifier: "GetFirewallPoliciesRequest",
987
+ }) as any as S.Schema<GetFirewallPoliciesRequest>;
988
+
989
+ export type FirewallPolicyPageDataList = Array<FirewallPolicy>;
990
+ export const FirewallPolicyPageDataList = /*@__PURE__*/ S.Array(
991
+ FirewallPolicy,
992
+ ) as any as S.Schema<FirewallPolicyPageDataList>;
993
+
994
+ export interface FirewallPolicyPage {
995
+ count: number;
996
+ data: FirewallPolicyPageDataList;
997
+ limit: number;
998
+ offset: number;
999
+ totalCount: number;
1000
+ }
1001
+ export const FirewallPolicyPage = /*@__PURE__*/ S.suspend(() =>
1002
+ S.Struct({
1003
+ count: S.Number,
1004
+ data: FirewallPolicyPageDataList,
1005
+ limit: S.Number,
1006
+ offset: S.Number,
1007
+ totalCount: S.Number,
1008
+ }),
1009
+ ).annotate({
1010
+ identifier: "FirewallPolicyPage",
1011
+ }) as any as S.Schema<FirewallPolicyPage>;
1012
+
1013
+ export interface GetFirewallPolicyRequest {
1014
+ siteId: string;
1015
+ firewallPolicyId: string;
1016
+ }
1017
+ export const GetFirewallPolicyRequest = /*@__PURE__*/ S.suspend(() =>
1018
+ S.Struct({
1019
+ siteId: S.String.pipe(T.Label()),
1020
+ firewallPolicyId: S.String.pipe(T.Label()),
1021
+ }).pipe(
1022
+ T.Http({
1023
+ method: "GET",
1024
+ uri: "/v1/sites/{siteId}/firewall/policies/{firewallPolicyId}",
1025
+ code: 200,
1026
+ }),
1027
+ ),
1028
+ ).annotate({
1029
+ identifier: "GetFirewallPolicyRequest",
1030
+ }) as any as S.Schema<GetFirewallPolicyRequest>;
1031
+
1032
+ export interface GetFirewallPolicyOrderingRequest {
1033
+ siteId: string;
1034
+ sourceFirewallZoneId: string;
1035
+ destinationFirewallZoneId: string;
1036
+ }
1037
+ export const GetFirewallPolicyOrderingRequest = /*@__PURE__*/ S.suspend(() =>
1038
+ S.Struct({
1039
+ siteId: S.String.pipe(T.Label()),
1040
+ sourceFirewallZoneId: S.String.pipe(T.Query()),
1041
+ destinationFirewallZoneId: S.String.pipe(T.Query()),
1042
+ }).pipe(
1043
+ T.Http({
1044
+ method: "GET",
1045
+ uri: "/v1/sites/{siteId}/firewall/policies/ordering",
1046
+ code: 200,
1047
+ }),
1048
+ ),
1049
+ ).annotate({
1050
+ identifier: "GetFirewallPolicyOrderingRequest",
1051
+ }) as any as S.Schema<GetFirewallPolicyOrderingRequest>;
1052
+
1053
+ export type OrderedFirewallPolicyIDsAfterSystemDefinedList = Array<string>;
1054
+ export const OrderedFirewallPolicyIDsAfterSystemDefinedList =
1055
+ /*@__PURE__*/ S.Array(
1056
+ S.String,
1057
+ ) as any as S.Schema<OrderedFirewallPolicyIDsAfterSystemDefinedList>;
1058
+
1059
+ export type OrderedFirewallPolicyIDsBeforeSystemDefinedList = Array<string>;
1060
+ export const OrderedFirewallPolicyIDsBeforeSystemDefinedList =
1061
+ /*@__PURE__*/ S.Array(
1062
+ S.String,
1063
+ ) as any as S.Schema<OrderedFirewallPolicyIDsBeforeSystemDefinedList>;
1064
+
1065
+ export interface OrderedFirewallPolicyIDs {
1066
+ afterSystemDefined: OrderedFirewallPolicyIDsAfterSystemDefinedList;
1067
+ beforeSystemDefined: OrderedFirewallPolicyIDsBeforeSystemDefinedList;
1068
+ }
1069
+ export const OrderedFirewallPolicyIDs = /*@__PURE__*/ S.suspend(() =>
1070
+ S.Struct({
1071
+ afterSystemDefined: OrderedFirewallPolicyIDsAfterSystemDefinedList,
1072
+ beforeSystemDefined: OrderedFirewallPolicyIDsBeforeSystemDefinedList,
1073
+ }),
1074
+ ).annotate({
1075
+ identifier: "OrderedFirewallPolicyIDs",
1076
+ }) as any as S.Schema<OrderedFirewallPolicyIDs>;
1077
+
1078
+ export interface IntegrationFirewallPolicyOrderingDto {
1079
+ orderedFirewallPolicyIds: OrderedFirewallPolicyIDs;
1080
+ }
1081
+ export const IntegrationFirewallPolicyOrderingDto = /*@__PURE__*/ S.suspend(
1082
+ () =>
1083
+ S.Struct({
1084
+ orderedFirewallPolicyIds: OrderedFirewallPolicyIDs,
1085
+ }),
1086
+ ).annotate({
1087
+ identifier: "IntegrationFirewallPolicyOrderingDto",
1088
+ }) as any as S.Schema<IntegrationFirewallPolicyOrderingDto>;
1089
+
1090
+ export interface GetFirewallZoneRequest {
1091
+ siteId: string;
1092
+ firewallZoneId: string;
1093
+ }
1094
+ export const GetFirewallZoneRequest = /*@__PURE__*/ S.suspend(() =>
1095
+ S.Struct({
1096
+ siteId: S.String.pipe(T.Label()),
1097
+ firewallZoneId: S.String.pipe(T.Label()),
1098
+ }).pipe(
1099
+ T.Http({
1100
+ method: "GET",
1101
+ uri: "/v1/sites/{siteId}/firewall/zones/{firewallZoneId}",
1102
+ code: 200,
1103
+ }),
1104
+ ),
1105
+ ).annotate({
1106
+ identifier: "GetFirewallZoneRequest",
1107
+ }) as any as S.Schema<GetFirewallZoneRequest>;
1108
+
1109
+ export interface GetFirewallZonesRequest {
1110
+ siteId: string;
1111
+ offset?: number;
1112
+ limit?: number;
1113
+ filter?: string;
1114
+ }
1115
+ export const GetFirewallZonesRequest = /*@__PURE__*/ S.suspend(() =>
1116
+ S.Struct({
1117
+ siteId: S.String.pipe(T.Label()),
1118
+ offset: S.optional(S.Number.pipe(T.Query())),
1119
+ limit: S.optional(S.Number.pipe(T.Query())),
1120
+ filter: S.optional(S.String.pipe(T.Query())),
1121
+ }).pipe(
1122
+ T.Http({
1123
+ method: "GET",
1124
+ uri: "/v1/sites/{siteId}/firewall/zones",
1125
+ code: 200,
1126
+ }),
1127
+ ),
1128
+ ).annotate({
1129
+ identifier: "GetFirewallZonesRequest",
1130
+ }) as any as S.Schema<GetFirewallZonesRequest>;
1131
+
1132
+ export type FirewallZonesPageDataList = Array<FirewallZone>;
1133
+ export const FirewallZonesPageDataList = /*@__PURE__*/ S.Array(
1134
+ FirewallZone,
1135
+ ) as any as S.Schema<FirewallZonesPageDataList>;
1136
+
1137
+ export interface FirewallZonesPage {
1138
+ count: number;
1139
+ data: FirewallZonesPageDataList;
1140
+ limit: number;
1141
+ offset: number;
1142
+ totalCount: number;
1143
+ }
1144
+ export const FirewallZonesPage = /*@__PURE__*/ S.suspend(() =>
1145
+ S.Struct({
1146
+ count: S.Number,
1147
+ data: FirewallZonesPageDataList,
1148
+ limit: S.Number,
1149
+ offset: S.Number,
1150
+ totalCount: S.Number,
1151
+ }),
1152
+ ).annotate({
1153
+ identifier: "FirewallZonesPage",
1154
+ }) as any as S.Schema<FirewallZonesPage>;
1155
+
1156
+ export interface PatchFirewallPolicyRequest {
1157
+ siteId: string;
1158
+ firewallPolicyId: string;
1159
+ loggingEnabled?: boolean;
1160
+ }
1161
+ export const PatchFirewallPolicyRequest = /*@__PURE__*/ S.suspend(() =>
1162
+ S.Struct({
1163
+ siteId: S.String.pipe(T.Label()),
1164
+ firewallPolicyId: S.String.pipe(T.Label()),
1165
+ loggingEnabled: S.optional(S.Boolean),
1166
+ }).pipe(
1167
+ T.Http({
1168
+ method: "PATCH",
1169
+ uri: "/v1/sites/{siteId}/firewall/policies/{firewallPolicyId}",
1170
+ code: 200,
1171
+ }),
1172
+ ),
1173
+ ).annotate({
1174
+ identifier: "PatchFirewallPolicyRequest",
1175
+ }) as any as S.Schema<PatchFirewallPolicyRequest>;
1176
+
1177
+ export type UpdateFirewallPolicyRequestConnectionStateFilterItem =
1178
+ | "NEW"
1179
+ | "INVALID"
1180
+ | "ESTABLISHED"
1181
+ | "RELATED";
1182
+ export const UpdateFirewallPolicyRequestConnectionStateFilterItem = S.String;
1183
+
1184
+ /** Match on firewall connection state. If null, matches all connection states. */
1185
+ export type UpdateFirewallPolicyRequestConnectionStateFilterList = Array<
1186
+ UpdateFirewallPolicyRequestConnectionStateFilterItem | (string & {})
1187
+ >;
1188
+ export const UpdateFirewallPolicyRequestConnectionStateFilterList =
1189
+ /*@__PURE__*/ S.Array(
1190
+ UpdateFirewallPolicyRequestConnectionStateFilterItem,
1191
+ ) as any as S.Schema<UpdateFirewallPolicyRequestConnectionStateFilterList>;
1192
+
1193
+ /** Match on traffic encrypted, or not encrypted by IPsec. If null, matches all traffic. */
1194
+ export type UpdateFirewallPolicyRequestIpsecFilter =
1195
+ | "MATCH_ENCRYPTED"
1196
+ | "MATCH_NOT_ENCRYPTED";
1197
+ export const UpdateFirewallPolicyRequestIpsecFilter = S.String;
1198
+
1199
+ export interface UpdateFirewallPolicyRequest {
1200
+ siteId: string;
1201
+ firewallPolicyId: string;
1202
+ action: FirewallPolicyAction;
1203
+ /** Match on firewall connection state. If null, matches all connection states. */
1204
+ connectionStateFilter?: UpdateFirewallPolicyRequestConnectionStateFilterList;
1205
+ description?: string;
1206
+ destination: FirewallPolicyDestination;
1207
+ enabled: boolean;
1208
+ ipProtocolScope: FirewallPolicyIPProtocolScope;
1209
+ /** Match on traffic encrypted, or not encrypted by IPsec. If null, matches all traffic. */
1210
+ ipsecFilter?: UpdateFirewallPolicyRequestIpsecFilter | (string & {});
1211
+ /** Generate syslog entries when traffic is matched. Such entries are sent to a remote syslog server. */
1212
+ loggingEnabled: boolean;
1213
+ name: string;
1214
+ schedule?: FirewallSchedule;
1215
+ source: FirewallPolicySource;
1216
+ }
1217
+ export const UpdateFirewallPolicyRequest = /*@__PURE__*/ S.suspend(() =>
1218
+ S.Struct({
1219
+ siteId: S.String.pipe(T.Label()),
1220
+ firewallPolicyId: S.String.pipe(T.Label()),
1221
+ action: FirewallPolicyAction,
1222
+ connectionStateFilter: S.optional(
1223
+ UpdateFirewallPolicyRequestConnectionStateFilterList,
1224
+ ),
1225
+ description: S.optional(S.String),
1226
+ destination: FirewallPolicyDestination,
1227
+ enabled: S.Boolean,
1228
+ ipProtocolScope: FirewallPolicyIPProtocolScope,
1229
+ ipsecFilter: S.optional(UpdateFirewallPolicyRequestIpsecFilter),
1230
+ loggingEnabled: S.Boolean,
1231
+ name: S.String,
1232
+ schedule: S.optional(FirewallSchedule),
1233
+ source: FirewallPolicySource,
1234
+ }).pipe(
1235
+ T.Http({
1236
+ method: "PUT",
1237
+ uri: "/v1/sites/{siteId}/firewall/policies/{firewallPolicyId}",
1238
+ code: 200,
1239
+ }),
1240
+ ),
1241
+ ).annotate({
1242
+ identifier: "UpdateFirewallPolicyRequest",
1243
+ }) as any as S.Schema<UpdateFirewallPolicyRequest>;
1244
+
1245
+ export interface UpdateFirewallPolicyOrderingRequest {
1246
+ siteId: string;
1247
+ sourceFirewallZoneId: string;
1248
+ destinationFirewallZoneId: string;
1249
+ orderedFirewallPolicyIds: OrderedFirewallPolicyIDs;
1250
+ }
1251
+ export const UpdateFirewallPolicyOrderingRequest = /*@__PURE__*/ S.suspend(() =>
1252
+ S.Struct({
1253
+ siteId: S.String.pipe(T.Label()),
1254
+ sourceFirewallZoneId: S.String.pipe(T.Query()),
1255
+ destinationFirewallZoneId: S.String.pipe(T.Query()),
1256
+ orderedFirewallPolicyIds: OrderedFirewallPolicyIDs,
1257
+ }).pipe(
1258
+ T.Http({
1259
+ method: "PUT",
1260
+ uri: "/v1/sites/{siteId}/firewall/policies/ordering",
1261
+ code: 200,
1262
+ }),
1263
+ ),
1264
+ ).annotate({
1265
+ identifier: "UpdateFirewallPolicyOrderingRequest",
1266
+ }) as any as S.Schema<UpdateFirewallPolicyOrderingRequest>;
1267
+
1268
+ /** List of Network IDs */
1269
+ export type UpdateFirewallZoneRequestNetworkIdsList = Array<string>;
1270
+ export const UpdateFirewallZoneRequestNetworkIdsList = /*@__PURE__*/ S.Array(
1271
+ S.String,
1272
+ ) as any as S.Schema<UpdateFirewallZoneRequestNetworkIdsList>;
1273
+
1274
+ export interface UpdateFirewallZoneRequest {
1275
+ siteId: string;
1276
+ firewallZoneId: string;
1277
+ /** Name of a firewall zone */
1278
+ name: string;
1279
+ /** List of Network IDs */
1280
+ networkIds: UpdateFirewallZoneRequestNetworkIdsList;
1281
+ }
1282
+ export const UpdateFirewallZoneRequest = /*@__PURE__*/ S.suspend(() =>
1283
+ S.Struct({
1284
+ siteId: S.String.pipe(T.Label()),
1285
+ firewallZoneId: S.String.pipe(T.Label()),
1286
+ name: S.String,
1287
+ networkIds: UpdateFirewallZoneRequestNetworkIdsList,
1288
+ }).pipe(
1289
+ T.Http({
1290
+ method: "PUT",
1291
+ uri: "/v1/sites/{siteId}/firewall/zones/{firewallZoneId}",
1292
+ code: 200,
1293
+ }),
1294
+ ),
1295
+ ).annotate({
1296
+ identifier: "UpdateFirewallZoneRequest",
1297
+ }) as any as S.Schema<UpdateFirewallZoneRequest>;
1298
+
1299
+ export type CreateFirewallPolicyError = UnifiNetworkOpError;
1300
+ /** Create Firewall Policy Create a new firewall policy on a site. */
1301
+ export const createFirewallPolicy: API.OperationMethod<
1302
+ CreateFirewallPolicyRequest,
1303
+ FirewallPolicy,
1304
+ CreateFirewallPolicyError,
1305
+ UnifiNetworkOpContext
1306
+ > = /*@__PURE__*/ API.make(() => ({
1307
+ input: CreateFirewallPolicyRequest,
1308
+ output: FirewallPolicy,
1309
+ errors: [UnknownUnifiNetworkError],
1310
+ protocol: UnifiNetworkProtocol,
1311
+ retry: Retry.Retry,
1312
+ }));
1313
+
1314
+ export type CreateFirewallZoneError = UnifiNetworkOpError;
1315
+ /** Create Custom Firewall Zone Create a new custom firewall zone on a site. */
1316
+ export const createFirewallZone: API.OperationMethod<
1317
+ CreateFirewallZoneRequest,
1318
+ FirewallZone,
1319
+ CreateFirewallZoneError,
1320
+ UnifiNetworkOpContext
1321
+ > = /*@__PURE__*/ API.make(() => ({
1322
+ input: CreateFirewallZoneRequest,
1323
+ output: FirewallZone,
1324
+ errors: [UnknownUnifiNetworkError],
1325
+ protocol: UnifiNetworkProtocol,
1326
+ retry: Retry.Retry,
1327
+ }));
1328
+
1329
+ export type DeleteFirewallPolicyError = UnifiNetworkOpError;
1330
+ /** Delete Firewall Policy Delete an existing firewall policy on a site. */
1331
+ export const deleteFirewallPolicy: API.OperationMethod<
1332
+ DeleteFirewallPolicyRequest,
1333
+ DeleteFirewallPolicyResponse,
1334
+ DeleteFirewallPolicyError,
1335
+ UnifiNetworkOpContext
1336
+ > = /*@__PURE__*/ API.make(() => ({
1337
+ input: DeleteFirewallPolicyRequest,
1338
+ output: DeleteFirewallPolicyResponse,
1339
+ errors: [UnknownUnifiNetworkError],
1340
+ protocol: UnifiNetworkProtocol,
1341
+ retry: Retry.Retry,
1342
+ }));
1343
+
1344
+ export type DeleteFirewallZoneError = UnifiNetworkOpError;
1345
+ /** Delete Custom Firewall Zone Delete a custom firewall zone from a site. */
1346
+ export const deleteFirewallZone: API.OperationMethod<
1347
+ DeleteFirewallZoneRequest,
1348
+ DeleteFirewallZoneResponse,
1349
+ DeleteFirewallZoneError,
1350
+ UnifiNetworkOpContext
1351
+ > = /*@__PURE__*/ API.make(() => ({
1352
+ input: DeleteFirewallZoneRequest,
1353
+ output: DeleteFirewallZoneResponse,
1354
+ errors: [UnknownUnifiNetworkError],
1355
+ protocol: UnifiNetworkProtocol,
1356
+ retry: Retry.Retry,
1357
+ }));
1358
+
1359
+ export type GetFirewallPoliciesError = UnifiNetworkOpError;
1360
+ /** List Firewall Policies Retrieve a list of all firewall policies on a site. <details> <summary>Filterable properties (click to expand)</summary> </details> */
1361
+ export const getFirewallPolicies: API.OperationMethod<
1362
+ GetFirewallPoliciesRequest,
1363
+ FirewallPolicyPage,
1364
+ GetFirewallPoliciesError,
1365
+ UnifiNetworkOpContext
1366
+ > = /*@__PURE__*/ API.make(() => ({
1367
+ input: GetFirewallPoliciesRequest,
1368
+ output: FirewallPolicyPage,
1369
+ errors: [UnknownUnifiNetworkError],
1370
+ protocol: UnifiNetworkProtocol,
1371
+ retry: Retry.Retry,
1372
+ }));
1373
+
1374
+ export type GetFirewallPolicyError = UnifiNetworkOpError;
1375
+ /** Get Firewall Policy Retrieve specific firewall policy. */
1376
+ export const getFirewallPolicy: API.OperationMethod<
1377
+ GetFirewallPolicyRequest,
1378
+ FirewallPolicy,
1379
+ GetFirewallPolicyError,
1380
+ UnifiNetworkOpContext
1381
+ > = /*@__PURE__*/ API.make(() => ({
1382
+ input: GetFirewallPolicyRequest,
1383
+ output: FirewallPolicy,
1384
+ errors: [UnknownUnifiNetworkError],
1385
+ protocol: UnifiNetworkProtocol,
1386
+ retry: Retry.Retry,
1387
+ }));
1388
+
1389
+ export type GetFirewallPolicyOrderingError = UnifiNetworkOpError;
1390
+ /** Get User-Defined Firewall Policy Ordering Retrieve user-defined firewall policy ordering for a specific source/destination zone pair. */
1391
+ export const getFirewallPolicyOrdering: API.OperationMethod<
1392
+ GetFirewallPolicyOrderingRequest,
1393
+ IntegrationFirewallPolicyOrderingDto,
1394
+ GetFirewallPolicyOrderingError,
1395
+ UnifiNetworkOpContext
1396
+ > = /*@__PURE__*/ API.make(() => ({
1397
+ input: GetFirewallPolicyOrderingRequest,
1398
+ output: IntegrationFirewallPolicyOrderingDto,
1399
+ errors: [UnknownUnifiNetworkError],
1400
+ protocol: UnifiNetworkProtocol,
1401
+ retry: Retry.Retry,
1402
+ }));
1403
+
1404
+ export type GetFirewallZoneError = UnifiNetworkOpError;
1405
+ /** Get Firewall Zone Get a firewall zone on a site. */
1406
+ export const getFirewallZone: API.OperationMethod<
1407
+ GetFirewallZoneRequest,
1408
+ FirewallZone,
1409
+ GetFirewallZoneError,
1410
+ UnifiNetworkOpContext
1411
+ > = /*@__PURE__*/ API.make(() => ({
1412
+ input: GetFirewallZoneRequest,
1413
+ output: FirewallZone,
1414
+ errors: [UnknownUnifiNetworkError],
1415
+ protocol: UnifiNetworkProtocol,
1416
+ retry: Retry.Retry,
1417
+ }));
1418
+
1419
+ export type GetFirewallZonesError = UnifiNetworkOpError;
1420
+ /** List Firewall Zones Retrieve a list of all firewall zones on a site. <details> <summary>Filterable properties (click to expand)</summary> </details> */
1421
+ export const getFirewallZones: API.OperationMethod<
1422
+ GetFirewallZonesRequest,
1423
+ FirewallZonesPage,
1424
+ GetFirewallZonesError,
1425
+ UnifiNetworkOpContext
1426
+ > = /*@__PURE__*/ API.make(() => ({
1427
+ input: GetFirewallZonesRequest,
1428
+ output: FirewallZonesPage,
1429
+ errors: [UnknownUnifiNetworkError],
1430
+ protocol: UnifiNetworkProtocol,
1431
+ retry: Retry.Retry,
1432
+ }));
1433
+
1434
+ export type PatchFirewallPolicyError = UnifiNetworkOpError;
1435
+ /** Patch Firewall Policy Patch an existing firewall policy on a site. */
1436
+ export const patchFirewallPolicy: API.OperationMethod<
1437
+ PatchFirewallPolicyRequest,
1438
+ FirewallPolicy,
1439
+ PatchFirewallPolicyError,
1440
+ UnifiNetworkOpContext
1441
+ > = /*@__PURE__*/ API.make(() => ({
1442
+ input: PatchFirewallPolicyRequest,
1443
+ output: FirewallPolicy,
1444
+ errors: [UnknownUnifiNetworkError],
1445
+ protocol: UnifiNetworkProtocol,
1446
+ retry: Retry.Retry,
1447
+ }));
1448
+
1449
+ export type UpdateFirewallPolicyError = UnifiNetworkOpError;
1450
+ /** Update Firewall Policy Update an existing firewall policy on a site. */
1451
+ export const updateFirewallPolicy: API.OperationMethod<
1452
+ UpdateFirewallPolicyRequest,
1453
+ FirewallPolicy,
1454
+ UpdateFirewallPolicyError,
1455
+ UnifiNetworkOpContext
1456
+ > = /*@__PURE__*/ API.make(() => ({
1457
+ input: UpdateFirewallPolicyRequest,
1458
+ output: FirewallPolicy,
1459
+ errors: [UnknownUnifiNetworkError],
1460
+ protocol: UnifiNetworkProtocol,
1461
+ retry: Retry.Retry,
1462
+ }));
1463
+
1464
+ export type UpdateFirewallPolicyOrderingError = UnifiNetworkOpError;
1465
+ /** Reorder User-Defined Firewall Policies Reorder user-defined firewall policies for a specific source/destination zone pair. */
1466
+ export const updateFirewallPolicyOrdering: API.OperationMethod<
1467
+ UpdateFirewallPolicyOrderingRequest,
1468
+ IntegrationFirewallPolicyOrderingDto,
1469
+ UpdateFirewallPolicyOrderingError,
1470
+ UnifiNetworkOpContext
1471
+ > = /*@__PURE__*/ API.make(() => ({
1472
+ input: UpdateFirewallPolicyOrderingRequest,
1473
+ output: IntegrationFirewallPolicyOrderingDto,
1474
+ errors: [UnknownUnifiNetworkError],
1475
+ protocol: UnifiNetworkProtocol,
1476
+ retry: Retry.Retry,
1477
+ }));
1478
+
1479
+ export type UpdateFirewallZoneError = UnifiNetworkOpError;
1480
+ /** Update Firewall Zone Update a firewall zone on a site. */
1481
+ export const updateFirewallZone: API.OperationMethod<
1482
+ UpdateFirewallZoneRequest,
1483
+ FirewallZone,
1484
+ UpdateFirewallZoneError,
1485
+ UnifiNetworkOpContext
1486
+ > = /*@__PURE__*/ API.make(() => ({
1487
+ input: UpdateFirewallZoneRequest,
1488
+ output: FirewallZone,
1489
+ errors: [UnknownUnifiNetworkError],
1490
+ protocol: UnifiNetworkProtocol,
1491
+ retry: Retry.Retry,
1492
+ }));