@distilled.cloud/cloudflare 0.6.1 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (261) hide show
  1. package/lib/services/accounts.d.ts +901 -36
  2. package/lib/services/accounts.d.ts.map +1 -1
  3. package/lib/services/accounts.js +1386 -32
  4. package/lib/services/accounts.js.map +1 -1
  5. package/lib/services/addressing.d.ts +8 -2
  6. package/lib/services/addressing.d.ts.map +1 -1
  7. package/lib/services/addressing.js +14 -2
  8. package/lib/services/addressing.js.map +1 -1
  9. package/lib/services/ai-gateway.d.ts.map +1 -1
  10. package/lib/services/ai-gateway.js +7 -7
  11. package/lib/services/ai-gateway.js.map +1 -1
  12. package/lib/services/aisearch.d.ts.map +1 -1
  13. package/lib/services/aisearch.js +24 -9
  14. package/lib/services/aisearch.js.map +1 -1
  15. package/lib/services/alerting.js +2 -2
  16. package/lib/services/alerting.js.map +1 -1
  17. package/lib/services/api-gateway.d.ts +114 -16
  18. package/lib/services/api-gateway.d.ts.map +1 -1
  19. package/lib/services/api-gateway.js +187 -15
  20. package/lib/services/api-gateway.js.map +1 -1
  21. package/lib/services/audit-logs.d.ts +63 -3
  22. package/lib/services/audit-logs.d.ts.map +1 -1
  23. package/lib/services/audit-logs.js +62 -3
  24. package/lib/services/audit-logs.js.map +1 -1
  25. package/lib/services/bot-management.d.ts +54 -8
  26. package/lib/services/bot-management.d.ts.map +1 -1
  27. package/lib/services/bot-management.js +128 -16
  28. package/lib/services/bot-management.js.map +1 -1
  29. package/lib/services/brand-protection.d.ts.map +1 -1
  30. package/lib/services/brand-protection.js +26 -8
  31. package/lib/services/brand-protection.js.map +1 -1
  32. package/lib/services/browser-rendering.d.ts.map +1 -1
  33. package/lib/services/browser-rendering.js +13 -10
  34. package/lib/services/browser-rendering.js.map +1 -1
  35. package/lib/services/cloudforce-one.d.ts +61 -6
  36. package/lib/services/cloudforce-one.d.ts.map +1 -1
  37. package/lib/services/cloudforce-one.js +107 -6
  38. package/lib/services/cloudforce-one.js.map +1 -1
  39. package/lib/services/custom-certificates.d.ts +145 -8
  40. package/lib/services/custom-certificates.d.ts.map +1 -1
  41. package/lib/services/custom-certificates.js +226 -7
  42. package/lib/services/custom-certificates.js.map +1 -1
  43. package/lib/services/custom-hostnames.d.ts +8 -8
  44. package/lib/services/custom-hostnames.d.ts.map +1 -1
  45. package/lib/services/custom-hostnames.js +17 -14
  46. package/lib/services/custom-hostnames.js.map +1 -1
  47. package/lib/services/d1.d.ts +68 -8
  48. package/lib/services/d1.d.ts.map +1 -1
  49. package/lib/services/d1.js +96 -8
  50. package/lib/services/d1.js.map +1 -1
  51. package/lib/services/dns-firewall.d.ts +57 -4
  52. package/lib/services/dns-firewall.d.ts.map +1 -1
  53. package/lib/services/dns-firewall.js +86 -5
  54. package/lib/services/dns-firewall.js.map +1 -1
  55. package/lib/services/dns.d.ts +85 -745
  56. package/lib/services/dns.d.ts.map +1 -1
  57. package/lib/services/dns.js +118 -1424
  58. package/lib/services/dns.js.map +1 -1
  59. package/lib/services/email-routing.d.ts +59 -7
  60. package/lib/services/email-routing.d.ts.map +1 -1
  61. package/lib/services/email-routing.js +165 -7
  62. package/lib/services/email-routing.js.map +1 -1
  63. package/lib/services/firewall.d.ts +228 -39
  64. package/lib/services/firewall.d.ts.map +1 -1
  65. package/lib/services/firewall.js +220 -33
  66. package/lib/services/firewall.js.map +1 -1
  67. package/lib/services/healthchecks.d.ts +112 -6
  68. package/lib/services/healthchecks.d.ts.map +1 -1
  69. package/lib/services/healthchecks.js +248 -14
  70. package/lib/services/healthchecks.js.map +1 -1
  71. package/lib/services/hostnames.d.ts +5 -5
  72. package/lib/services/hostnames.d.ts.map +1 -1
  73. package/lib/services/hostnames.js +16 -4
  74. package/lib/services/hostnames.js.map +1 -1
  75. package/lib/services/hyperdrive.d.ts +223 -11
  76. package/lib/services/hyperdrive.d.ts.map +1 -1
  77. package/lib/services/hyperdrive.js +351 -11
  78. package/lib/services/hyperdrive.js.map +1 -1
  79. package/lib/services/iam.d.ts +62 -2
  80. package/lib/services/iam.d.ts.map +1 -1
  81. package/lib/services/iam.js +82 -11
  82. package/lib/services/iam.js.map +1 -1
  83. package/lib/services/images.d.ts +9 -1
  84. package/lib/services/images.d.ts.map +1 -1
  85. package/lib/services/images.js +12 -1
  86. package/lib/services/images.js.map +1 -1
  87. package/lib/services/intel.d.ts +4 -4
  88. package/lib/services/intel.d.ts.map +1 -1
  89. package/lib/services/intel.js +2 -3
  90. package/lib/services/intel.js.map +1 -1
  91. package/lib/services/kv.d.ts.map +1 -1
  92. package/lib/services/kv.js +2 -2
  93. package/lib/services/kv.js.map +1 -1
  94. package/lib/services/load-balancers.d.ts +537 -108
  95. package/lib/services/load-balancers.d.ts.map +1 -1
  96. package/lib/services/load-balancers.js +1266 -161
  97. package/lib/services/load-balancers.js.map +1 -1
  98. package/lib/services/logpush.d.ts +153 -9
  99. package/lib/services/logpush.d.ts.map +1 -1
  100. package/lib/services/logpush.js +246 -9
  101. package/lib/services/logpush.js.map +1 -1
  102. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  103. package/lib/services/magic-cloud-networking.js +54 -30
  104. package/lib/services/magic-cloud-networking.js.map +1 -1
  105. package/lib/services/magic-network-monitoring.d.ts +46 -5
  106. package/lib/services/magic-network-monitoring.d.ts.map +1 -1
  107. package/lib/services/magic-network-monitoring.js +79 -5
  108. package/lib/services/magic-network-monitoring.js.map +1 -1
  109. package/lib/services/magic-transit.d.ts +127 -21
  110. package/lib/services/magic-transit.d.ts.map +1 -1
  111. package/lib/services/magic-transit.js +291 -29
  112. package/lib/services/magic-transit.js.map +1 -1
  113. package/lib/services/memberships.d.ts +248 -52
  114. package/lib/services/memberships.d.ts.map +1 -1
  115. package/lib/services/memberships.js +360 -39
  116. package/lib/services/memberships.js.map +1 -1
  117. package/lib/services/page-rules.d.ts +432 -8
  118. package/lib/services/page-rules.d.ts.map +1 -1
  119. package/lib/services/page-rules.js +877 -33
  120. package/lib/services/page-rules.js.map +1 -1
  121. package/lib/services/pages.d.ts +457 -297
  122. package/lib/services/pages.d.ts.map +1 -1
  123. package/lib/services/pages.js +1366 -491
  124. package/lib/services/pages.js.map +1 -1
  125. package/lib/services/pipelines.d.ts +96 -76
  126. package/lib/services/pipelines.d.ts.map +1 -1
  127. package/lib/services/pipelines.js +145 -197
  128. package/lib/services/pipelines.js.map +1 -1
  129. package/lib/services/queues.d.ts +228 -12
  130. package/lib/services/queues.d.ts.map +1 -1
  131. package/lib/services/queues.js +487 -11
  132. package/lib/services/queues.js.map +1 -1
  133. package/lib/services/radar.d.ts +82 -18
  134. package/lib/services/radar.d.ts.map +1 -1
  135. package/lib/services/radar.js +111 -47
  136. package/lib/services/radar.js.map +1 -1
  137. package/lib/services/realtime-kit.d.ts +650 -334
  138. package/lib/services/realtime-kit.d.ts.map +1 -1
  139. package/lib/services/realtime-kit.js +1472 -693
  140. package/lib/services/realtime-kit.js.map +1 -1
  141. package/lib/services/request-tracers.d.ts +12 -1
  142. package/lib/services/request-tracers.d.ts.map +1 -1
  143. package/lib/services/request-tracers.js +28 -3
  144. package/lib/services/request-tracers.js.map +1 -1
  145. package/lib/services/rules.d.ts +65 -10
  146. package/lib/services/rules.d.ts.map +1 -1
  147. package/lib/services/rules.js +102 -8
  148. package/lib/services/rules.js.map +1 -1
  149. package/lib/services/rulesets.d.ts +7892 -1806
  150. package/lib/services/rulesets.d.ts.map +1 -1
  151. package/lib/services/rulesets.js +18720 -4149
  152. package/lib/services/rulesets.js.map +1 -1
  153. package/lib/services/rum.d.ts +45 -5
  154. package/lib/services/rum.d.ts.map +1 -1
  155. package/lib/services/rum.js +80 -4
  156. package/lib/services/rum.js.map +1 -1
  157. package/lib/services/schema-validation.js +2 -2
  158. package/lib/services/schema-validation.js.map +1 -1
  159. package/lib/services/spectrum.d.ts +139 -33
  160. package/lib/services/spectrum.d.ts.map +1 -1
  161. package/lib/services/spectrum.js +190 -34
  162. package/lib/services/spectrum.js.map +1 -1
  163. package/lib/services/speed.d.ts +345 -24
  164. package/lib/services/speed.d.ts.map +1 -1
  165. package/lib/services/speed.js +785 -19
  166. package/lib/services/speed.js.map +1 -1
  167. package/lib/services/ssl.d.ts +6 -6
  168. package/lib/services/ssl.d.ts.map +1 -1
  169. package/lib/services/ssl.js +5 -5
  170. package/lib/services/ssl.js.map +1 -1
  171. package/lib/services/stream.d.ts +171 -17
  172. package/lib/services/stream.d.ts.map +1 -1
  173. package/lib/services/stream.js +164 -11
  174. package/lib/services/stream.js.map +1 -1
  175. package/lib/services/token-validation.d.ts +16 -2
  176. package/lib/services/token-validation.d.ts.map +1 -1
  177. package/lib/services/token-validation.js +32 -2
  178. package/lib/services/token-validation.js.map +1 -1
  179. package/lib/services/url-scanner.d.ts +43 -11
  180. package/lib/services/url-scanner.d.ts.map +1 -1
  181. package/lib/services/url-scanner.js +46 -11
  182. package/lib/services/url-scanner.js.map +1 -1
  183. package/lib/services/user.d.ts +312 -21
  184. package/lib/services/user.d.ts.map +1 -1
  185. package/lib/services/user.js +442 -19
  186. package/lib/services/user.js.map +1 -1
  187. package/lib/services/workers-for-platforms.d.ts +223 -13
  188. package/lib/services/workers-for-platforms.d.ts.map +1 -1
  189. package/lib/services/workers-for-platforms.js +481 -13
  190. package/lib/services/workers-for-platforms.js.map +1 -1
  191. package/lib/services/workers.d.ts +345 -31
  192. package/lib/services/workers.d.ts.map +1 -1
  193. package/lib/services/workers.js +649 -34
  194. package/lib/services/workers.js.map +1 -1
  195. package/lib/services/zaraz.d.ts +212 -11
  196. package/lib/services/zaraz.d.ts.map +1 -1
  197. package/lib/services/zaraz.js +311 -30
  198. package/lib/services/zaraz.js.map +1 -1
  199. package/lib/services/zero-trust.d.ts +19333 -1905
  200. package/lib/services/zero-trust.d.ts.map +1 -1
  201. package/lib/services/zero-trust.js +30269 -5710
  202. package/lib/services/zero-trust.js.map +1 -1
  203. package/lib/services/zones.d.ts +61 -7
  204. package/lib/services/zones.d.ts.map +1 -1
  205. package/lib/services/zones.js +188 -7
  206. package/lib/services/zones.js.map +1 -1
  207. package/package.json +2 -2
  208. package/src/services/accounts.ts +2897 -63
  209. package/src/services/addressing.ts +28 -4
  210. package/src/services/ai-gateway.ts +9 -7
  211. package/src/services/aisearch.ts +28 -9
  212. package/src/services/alerting.ts +2 -2
  213. package/src/services/api-gateway.ts +410 -27
  214. package/src/services/audit-logs.ts +135 -5
  215. package/src/services/bot-management.ts +282 -24
  216. package/src/services/brand-protection.ts +28 -8
  217. package/src/services/browser-rendering.ts +31 -11
  218. package/src/services/cloudforce-one.ts +201 -9
  219. package/src/services/custom-certificates.ts +405 -14
  220. package/src/services/custom-hostnames.ts +29 -22
  221. package/src/services/d1.ts +180 -12
  222. package/src/services/dns-firewall.ts +163 -7
  223. package/src/services/dns.ts +213 -2389
  224. package/src/services/email-routing.ts +346 -12
  225. package/src/services/firewall.ts +556 -72
  226. package/src/services/healthchecks.ts +463 -18
  227. package/src/services/hostnames.ts +21 -9
  228. package/src/services/hyperdrive.ts +730 -17
  229. package/src/services/iam.ts +228 -24
  230. package/src/services/images.ts +29 -2
  231. package/src/services/intel.ts +6 -5
  232. package/src/services/kv.ts +6 -2
  233. package/src/services/load-balancers.ts +2387 -294
  234. package/src/services/logpush.ts +659 -15
  235. package/src/services/magic-cloud-networking.ts +74 -30
  236. package/src/services/magic-network-monitoring.ts +170 -8
  237. package/src/services/magic-transit.ts +631 -62
  238. package/src/services/memberships.ts +710 -91
  239. package/src/services/page-rules.ts +1592 -88
  240. package/src/services/pages.ts +2011 -1098
  241. package/src/services/pipelines.ts +285 -331
  242. package/src/services/queues.ts +1110 -22
  243. package/src/services/radar.ts +128 -64
  244. package/src/services/realtime-kit.ts +2829 -1603
  245. package/src/services/request-tracers.ts +54 -4
  246. package/src/services/rules.ts +214 -18
  247. package/src/services/rulesets.ts +34524 -6913
  248. package/src/services/rum.ts +187 -9
  249. package/src/services/schema-validation.ts +2 -2
  250. package/src/services/spectrum.ts +357 -67
  251. package/src/services/speed.ts +1845 -42
  252. package/src/services/ssl.ts +11 -11
  253. package/src/services/stream.ts +397 -22
  254. package/src/services/token-validation.ts +64 -4
  255. package/src/services/url-scanner.ts +92 -20
  256. package/src/services/user.ts +973 -34
  257. package/src/services/workers-for-platforms.ts +1012 -39
  258. package/src/services/workers.ts +1472 -120
  259. package/src/services/zaraz.ts +640 -37
  260. package/src/services/zero-trust.ts +55498 -12667
  261. package/src/services/zones.ts +360 -14
@@ -25,7 +25,7 @@ export const GetLoadBalancerResponse =
25
25
  }).pipe(Schema.encodeKeys({ failoverAcrossPools: "failover_across_pools" })),
26
26
  Schema.Null,
27
27
  ])),
28
- countryPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
28
+ countryPools: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
29
29
  createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
30
30
  defaultPools: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
31
31
  description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -47,19 +47,22 @@ export const GetLoadBalancerResponse =
47
47
  modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
48
48
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
49
49
  networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
50
- popPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
50
+ popPools: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
51
51
  proxied: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
52
52
  randomSteering: Schema.optional(Schema.Union([
53
53
  Schema.Struct({
54
54
  defaultWeight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
55
- poolWeights: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
55
+ poolWeights: Schema.optional(Schema.Union([
56
+ Schema.Record(Schema.String, Schema.Unknown),
57
+ Schema.Null,
58
+ ])),
56
59
  }).pipe(Schema.encodeKeys({
57
60
  defaultWeight: "default_weight",
58
61
  poolWeights: "pool_weights",
59
62
  })),
60
63
  Schema.Null,
61
64
  ])),
62
- regionPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
65
+ regionPools: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
63
66
  rules: Schema.optional(Schema.Union([
64
67
  Schema.Array(Schema.Struct({
65
68
  condition: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -81,14 +84,62 @@ export const GetLoadBalancerResponse =
81
84
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
82
85
  overrides: Schema.optional(Schema.Union([
83
86
  Schema.Struct({
84
- adaptiveRouting: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
85
- countryPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
87
+ adaptiveRouting: Schema.optional(Schema.Union([
88
+ Schema.Struct({
89
+ failoverAcrossPools: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
90
+ }).pipe(Schema.encodeKeys({
91
+ failoverAcrossPools: "failover_across_pools",
92
+ })),
93
+ Schema.Null,
94
+ ])),
95
+ countryPools: Schema.optional(Schema.Union([
96
+ Schema.Record(Schema.String, Schema.Unknown),
97
+ Schema.Null,
98
+ ])),
86
99
  defaultPools: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
87
100
  fallbackPool: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
88
- locationStrategy: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
89
- popPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
90
- randomSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
91
- regionPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
101
+ locationStrategy: Schema.optional(Schema.Union([
102
+ Schema.Struct({
103
+ mode: Schema.optional(Schema.Union([
104
+ Schema.Literals(["pop", "resolver_ip"]),
105
+ Schema.Null,
106
+ ])),
107
+ preferEcs: Schema.optional(Schema.Union([
108
+ Schema.Literals([
109
+ "always",
110
+ "never",
111
+ "proximity",
112
+ "geo",
113
+ ]),
114
+ Schema.Null,
115
+ ])),
116
+ }).pipe(Schema.encodeKeys({
117
+ mode: "mode",
118
+ preferEcs: "prefer_ecs",
119
+ })),
120
+ Schema.Null,
121
+ ])),
122
+ popPools: Schema.optional(Schema.Union([
123
+ Schema.Record(Schema.String, Schema.Unknown),
124
+ Schema.Null,
125
+ ])),
126
+ randomSteering: Schema.optional(Schema.Union([
127
+ Schema.Struct({
128
+ defaultWeight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
129
+ poolWeights: Schema.optional(Schema.Union([
130
+ Schema.Record(Schema.String, Schema.Unknown),
131
+ Schema.Null,
132
+ ])),
133
+ }).pipe(Schema.encodeKeys({
134
+ defaultWeight: "default_weight",
135
+ poolWeights: "pool_weights",
136
+ })),
137
+ Schema.Null,
138
+ ])),
139
+ regionPools: Schema.optional(Schema.Union([
140
+ Schema.Record(Schema.String, Schema.Unknown),
141
+ Schema.Null,
142
+ ])),
92
143
  sessionAffinity: Schema.optional(Schema.Union([
93
144
  Schema.Literals([
94
145
  "none",
@@ -98,11 +149,39 @@ export const GetLoadBalancerResponse =
98
149
  ]),
99
150
  Schema.Null,
100
151
  ])),
101
- sessionAffinityAttributes: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
152
+ sessionAffinityAttributes: Schema.optional(Schema.Union([
153
+ Schema.Struct({
154
+ drainDuration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
155
+ headers: Schema.optional(Schema.Union([
156
+ Schema.Array(Schema.String),
157
+ Schema.Null,
158
+ ])),
159
+ requireAllHeaders: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
160
+ samesite: Schema.optional(Schema.Union([
161
+ Schema.Literals(["Auto", "Lax", "None", "Strict"]),
162
+ Schema.Null,
163
+ ])),
164
+ secure: Schema.optional(Schema.Union([
165
+ Schema.Literals(["Auto", "Always", "Never"]),
166
+ Schema.Null,
167
+ ])),
168
+ zeroDowntimeFailover: Schema.optional(Schema.Union([
169
+ Schema.Literals(["none", "temporary", "sticky"]),
170
+ Schema.Null,
171
+ ])),
172
+ }).pipe(Schema.encodeKeys({
173
+ drainDuration: "drain_duration",
174
+ headers: "headers",
175
+ requireAllHeaders: "require_all_headers",
176
+ samesite: "samesite",
177
+ secure: "secure",
178
+ zeroDowntimeFailover: "zero_downtime_failover",
179
+ })),
180
+ Schema.Null,
181
+ ])),
102
182
  sessionAffinityTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
103
183
  steeringPolicy: Schema.optional(Schema.Union([
104
184
  Schema.Literals([
105
- "",
106
185
  "off",
107
186
  "geo",
108
187
  "random",
@@ -110,6 +189,7 @@ export const GetLoadBalancerResponse =
110
189
  "proximity",
111
190
  "least_outstanding_requests",
112
191
  "least_connections",
192
+ "",
113
193
  ]),
114
194
  Schema.Null,
115
195
  ])),
@@ -178,7 +258,6 @@ export const GetLoadBalancerResponse =
178
258
  sessionAffinityTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
179
259
  steeringPolicy: Schema.optional(Schema.Union([
180
260
  Schema.Literals([
181
- "",
182
261
  "off",
183
262
  "geo",
184
263
  "random",
@@ -186,6 +265,7 @@ export const GetLoadBalancerResponse =
186
265
  "proximity",
187
266
  "least_outstanding_requests",
188
267
  "least_connections",
268
+ "",
189
269
  ]),
190
270
  Schema.Null,
191
271
  ])),
@@ -239,7 +319,10 @@ export const ListLoadBalancersResponse =
239
319
  })),
240
320
  Schema.Null,
241
321
  ])),
242
- countryPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
322
+ countryPools: Schema.optional(Schema.Union([
323
+ Schema.Record(Schema.String, Schema.Unknown),
324
+ Schema.Null,
325
+ ])),
243
326
  createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
244
327
  defaultPools: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
245
328
  description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -261,19 +344,28 @@ export const ListLoadBalancersResponse =
261
344
  modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
262
345
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
263
346
  networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
264
- popPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
347
+ popPools: Schema.optional(Schema.Union([
348
+ Schema.Record(Schema.String, Schema.Unknown),
349
+ Schema.Null,
350
+ ])),
265
351
  proxied: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
266
352
  randomSteering: Schema.optional(Schema.Union([
267
353
  Schema.Struct({
268
354
  defaultWeight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
269
- poolWeights: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
355
+ poolWeights: Schema.optional(Schema.Union([
356
+ Schema.Record(Schema.String, Schema.Unknown),
357
+ Schema.Null,
358
+ ])),
270
359
  }).pipe(Schema.encodeKeys({
271
360
  defaultWeight: "default_weight",
272
361
  poolWeights: "pool_weights",
273
362
  })),
274
363
  Schema.Null,
275
364
  ])),
276
- regionPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
365
+ regionPools: Schema.optional(Schema.Union([
366
+ Schema.Record(Schema.String, Schema.Unknown),
367
+ Schema.Null,
368
+ ])),
277
369
  rules: Schema.optional(Schema.Union([
278
370
  Schema.Array(Schema.Struct({
279
371
  condition: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -295,17 +387,65 @@ export const ListLoadBalancersResponse =
295
387
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
296
388
  overrides: Schema.optional(Schema.Union([
297
389
  Schema.Struct({
298
- adaptiveRouting: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
299
- countryPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
390
+ adaptiveRouting: Schema.optional(Schema.Union([
391
+ Schema.Struct({
392
+ failoverAcrossPools: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
393
+ }).pipe(Schema.encodeKeys({
394
+ failoverAcrossPools: "failover_across_pools",
395
+ })),
396
+ Schema.Null,
397
+ ])),
398
+ countryPools: Schema.optional(Schema.Union([
399
+ Schema.Record(Schema.String, Schema.Unknown),
400
+ Schema.Null,
401
+ ])),
300
402
  defaultPools: Schema.optional(Schema.Union([
301
403
  Schema.Array(Schema.String),
302
404
  Schema.Null,
303
405
  ])),
304
406
  fallbackPool: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
305
- locationStrategy: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
306
- popPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
307
- randomSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
308
- regionPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
407
+ locationStrategy: Schema.optional(Schema.Union([
408
+ Schema.Struct({
409
+ mode: Schema.optional(Schema.Union([
410
+ Schema.Literals(["pop", "resolver_ip"]),
411
+ Schema.Null,
412
+ ])),
413
+ preferEcs: Schema.optional(Schema.Union([
414
+ Schema.Literals([
415
+ "always",
416
+ "never",
417
+ "proximity",
418
+ "geo",
419
+ ]),
420
+ Schema.Null,
421
+ ])),
422
+ }).pipe(Schema.encodeKeys({
423
+ mode: "mode",
424
+ preferEcs: "prefer_ecs",
425
+ })),
426
+ Schema.Null,
427
+ ])),
428
+ popPools: Schema.optional(Schema.Union([
429
+ Schema.Record(Schema.String, Schema.Unknown),
430
+ Schema.Null,
431
+ ])),
432
+ randomSteering: Schema.optional(Schema.Union([
433
+ Schema.Struct({
434
+ defaultWeight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
435
+ poolWeights: Schema.optional(Schema.Union([
436
+ Schema.Record(Schema.String, Schema.Unknown),
437
+ Schema.Null,
438
+ ])),
439
+ }).pipe(Schema.encodeKeys({
440
+ defaultWeight: "default_weight",
441
+ poolWeights: "pool_weights",
442
+ })),
443
+ Schema.Null,
444
+ ])),
445
+ regionPools: Schema.optional(Schema.Union([
446
+ Schema.Record(Schema.String, Schema.Unknown),
447
+ Schema.Null,
448
+ ])),
309
449
  sessionAffinity: Schema.optional(Schema.Union([
310
450
  Schema.Literals([
311
451
  "none",
@@ -315,11 +455,48 @@ export const ListLoadBalancersResponse =
315
455
  ]),
316
456
  Schema.Null,
317
457
  ])),
318
- sessionAffinityAttributes: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
458
+ sessionAffinityAttributes: Schema.optional(Schema.Union([
459
+ Schema.Struct({
460
+ drainDuration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
461
+ headers: Schema.optional(Schema.Union([
462
+ Schema.Array(Schema.String),
463
+ Schema.Null,
464
+ ])),
465
+ requireAllHeaders: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
466
+ samesite: Schema.optional(Schema.Union([
467
+ Schema.Literals([
468
+ "Auto",
469
+ "Lax",
470
+ "None",
471
+ "Strict",
472
+ ]),
473
+ Schema.Null,
474
+ ])),
475
+ secure: Schema.optional(Schema.Union([
476
+ Schema.Literals(["Auto", "Always", "Never"]),
477
+ Schema.Null,
478
+ ])),
479
+ zeroDowntimeFailover: Schema.optional(Schema.Union([
480
+ Schema.Literals([
481
+ "none",
482
+ "temporary",
483
+ "sticky",
484
+ ]),
485
+ Schema.Null,
486
+ ])),
487
+ }).pipe(Schema.encodeKeys({
488
+ drainDuration: "drain_duration",
489
+ headers: "headers",
490
+ requireAllHeaders: "require_all_headers",
491
+ samesite: "samesite",
492
+ secure: "secure",
493
+ zeroDowntimeFailover: "zero_downtime_failover",
494
+ })),
495
+ Schema.Null,
496
+ ])),
319
497
  sessionAffinityTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
320
498
  steeringPolicy: Schema.optional(Schema.Union([
321
499
  Schema.Literals([
322
- "",
323
500
  "off",
324
501
  "geo",
325
502
  "random",
@@ -327,6 +504,7 @@ export const ListLoadBalancersResponse =
327
504
  "proximity",
328
505
  "least_outstanding_requests",
329
506
  "least_connections",
507
+ "",
330
508
  ]),
331
509
  Schema.Null,
332
510
  ])),
@@ -395,7 +573,6 @@ export const ListLoadBalancersResponse =
395
573
  sessionAffinityTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
396
574
  steeringPolicy: Schema.optional(Schema.Union([
397
575
  Schema.Literals([
398
- "",
399
576
  "off",
400
577
  "geo",
401
578
  "random",
@@ -403,6 +580,7 @@ export const ListLoadBalancersResponse =
403
580
  "proximity",
404
581
  "least_outstanding_requests",
405
582
  "least_connections",
583
+ "",
406
584
  ]),
407
585
  Schema.Null,
408
586
  ])),
@@ -452,23 +630,23 @@ export const CreateLoadBalancerRequest =
452
630
  adaptiveRouting: Schema.optional(Schema.Struct({
453
631
  failoverAcrossPools: Schema.optional(Schema.Boolean),
454
632
  }).pipe(Schema.encodeKeys({ failoverAcrossPools: "failover_across_pools" }))),
455
- countryPools: Schema.optional(Schema.Struct({})),
633
+ countryPools: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
456
634
  description: Schema.optional(Schema.String),
457
635
  locationStrategy: Schema.optional(Schema.Struct({
458
636
  mode: Schema.optional(Schema.Literals(["pop", "resolver_ip"])),
459
637
  preferEcs: Schema.optional(Schema.Literals(["always", "never", "proximity", "geo"])),
460
638
  }).pipe(Schema.encodeKeys({ mode: "mode", preferEcs: "prefer_ecs" }))),
461
639
  networks: Schema.optional(Schema.Array(Schema.String)),
462
- popPools: Schema.optional(Schema.Struct({})),
640
+ popPools: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
463
641
  proxied: Schema.optional(Schema.Boolean),
464
642
  randomSteering: Schema.optional(Schema.Struct({
465
643
  defaultWeight: Schema.optional(Schema.Number),
466
- poolWeights: Schema.optional(Schema.Struct({})),
644
+ poolWeights: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
467
645
  }).pipe(Schema.encodeKeys({
468
646
  defaultWeight: "default_weight",
469
647
  poolWeights: "pool_weights",
470
648
  }))),
471
- regionPools: Schema.optional(Schema.Struct({})),
649
+ regionPools: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
472
650
  rules: Schema.optional(Schema.Array(Schema.Struct({
473
651
  condition: Schema.optional(Schema.String),
474
652
  disabled: Schema.optional(Schema.Boolean),
@@ -485,19 +663,45 @@ export const CreateLoadBalancerRequest =
485
663
  }))),
486
664
  name: Schema.optional(Schema.String),
487
665
  overrides: Schema.optional(Schema.Struct({
488
- adaptiveRouting: Schema.optional(Schema.Unknown),
489
- countryPools: Schema.optional(Schema.Struct({})),
666
+ adaptiveRouting: Schema.optional(Schema.Struct({
667
+ failoverAcrossPools: Schema.optional(Schema.Boolean),
668
+ }).pipe(Schema.encodeKeys({
669
+ failoverAcrossPools: "failover_across_pools",
670
+ }))),
671
+ countryPools: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
490
672
  defaultPools: Schema.optional(Schema.Array(Schema.String)),
491
673
  fallbackPool: Schema.optional(Schema.String),
492
- locationStrategy: Schema.optional(Schema.Unknown),
493
- popPools: Schema.optional(Schema.Struct({})),
494
- randomSteering: Schema.optional(Schema.Unknown),
495
- regionPools: Schema.optional(Schema.Struct({})),
674
+ locationStrategy: Schema.optional(Schema.Struct({
675
+ mode: Schema.optional(Schema.Literals(["pop", "resolver_ip"])),
676
+ preferEcs: Schema.optional(Schema.Literals(["always", "never", "proximity", "geo"])),
677
+ }).pipe(Schema.encodeKeys({ mode: "mode", preferEcs: "prefer_ecs" }))),
678
+ popPools: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
679
+ randomSteering: Schema.optional(Schema.Struct({
680
+ defaultWeight: Schema.optional(Schema.Number),
681
+ poolWeights: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
682
+ }).pipe(Schema.encodeKeys({
683
+ defaultWeight: "default_weight",
684
+ poolWeights: "pool_weights",
685
+ }))),
686
+ regionPools: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
496
687
  sessionAffinity: Schema.optional(Schema.Literals(["none", "cookie", "ip_cookie", "header"])),
497
- sessionAffinityAttributes: Schema.optional(Schema.Unknown),
688
+ sessionAffinityAttributes: Schema.optional(Schema.Struct({
689
+ drainDuration: Schema.optional(Schema.Number),
690
+ headers: Schema.optional(Schema.Array(Schema.String)),
691
+ requireAllHeaders: Schema.optional(Schema.Boolean),
692
+ samesite: Schema.optional(Schema.Literals(["Auto", "Lax", "None", "Strict"])),
693
+ secure: Schema.optional(Schema.Literals(["Auto", "Always", "Never"])),
694
+ zeroDowntimeFailover: Schema.optional(Schema.Literals(["none", "temporary", "sticky"])),
695
+ }).pipe(Schema.encodeKeys({
696
+ drainDuration: "drain_duration",
697
+ headers: "headers",
698
+ requireAllHeaders: "require_all_headers",
699
+ samesite: "samesite",
700
+ secure: "secure",
701
+ zeroDowntimeFailover: "zero_downtime_failover",
702
+ }))),
498
703
  sessionAffinityTtl: Schema.optional(Schema.Number),
499
704
  steeringPolicy: Schema.optional(Schema.Literals([
500
- "",
501
705
  "off",
502
706
  "geo",
503
707
  "random",
@@ -505,6 +709,7 @@ export const CreateLoadBalancerRequest =
505
709
  "proximity",
506
710
  "least_outstanding_requests",
507
711
  "least_connections",
712
+ "",
508
713
  ])),
509
714
  ttl: Schema.optional(Schema.Number),
510
715
  }).pipe(Schema.encodeKeys({
@@ -551,7 +756,6 @@ export const CreateLoadBalancerRequest =
551
756
  }))),
552
757
  sessionAffinityTtl: Schema.optional(Schema.Number),
553
758
  steeringPolicy: Schema.optional(Schema.Literals([
554
- "",
555
759
  "off",
556
760
  "geo",
557
761
  "random",
@@ -559,6 +763,7 @@ export const CreateLoadBalancerRequest =
559
763
  "proximity",
560
764
  "least_outstanding_requests",
561
765
  "least_connections",
766
+ "",
562
767
  ])),
563
768
  ttl: Schema.optional(Schema.Number),
564
769
  }).pipe(Schema.encodeKeys({
@@ -590,7 +795,7 @@ export const CreateLoadBalancerResponse =
590
795
  }).pipe(Schema.encodeKeys({ failoverAcrossPools: "failover_across_pools" })),
591
796
  Schema.Null,
592
797
  ])),
593
- countryPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
798
+ countryPools: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
594
799
  createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
595
800
  defaultPools: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
596
801
  description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -612,19 +817,22 @@ export const CreateLoadBalancerResponse =
612
817
  modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
613
818
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
614
819
  networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
615
- popPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
820
+ popPools: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
616
821
  proxied: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
617
822
  randomSteering: Schema.optional(Schema.Union([
618
823
  Schema.Struct({
619
824
  defaultWeight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
620
- poolWeights: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
825
+ poolWeights: Schema.optional(Schema.Union([
826
+ Schema.Record(Schema.String, Schema.Unknown),
827
+ Schema.Null,
828
+ ])),
621
829
  }).pipe(Schema.encodeKeys({
622
830
  defaultWeight: "default_weight",
623
831
  poolWeights: "pool_weights",
624
832
  })),
625
833
  Schema.Null,
626
834
  ])),
627
- regionPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
835
+ regionPools: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
628
836
  rules: Schema.optional(Schema.Union([
629
837
  Schema.Array(Schema.Struct({
630
838
  condition: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -646,14 +854,62 @@ export const CreateLoadBalancerResponse =
646
854
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
647
855
  overrides: Schema.optional(Schema.Union([
648
856
  Schema.Struct({
649
- adaptiveRouting: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
650
- countryPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
857
+ adaptiveRouting: Schema.optional(Schema.Union([
858
+ Schema.Struct({
859
+ failoverAcrossPools: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
860
+ }).pipe(Schema.encodeKeys({
861
+ failoverAcrossPools: "failover_across_pools",
862
+ })),
863
+ Schema.Null,
864
+ ])),
865
+ countryPools: Schema.optional(Schema.Union([
866
+ Schema.Record(Schema.String, Schema.Unknown),
867
+ Schema.Null,
868
+ ])),
651
869
  defaultPools: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
652
870
  fallbackPool: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
653
- locationStrategy: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
654
- popPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
655
- randomSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
656
- regionPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
871
+ locationStrategy: Schema.optional(Schema.Union([
872
+ Schema.Struct({
873
+ mode: Schema.optional(Schema.Union([
874
+ Schema.Literals(["pop", "resolver_ip"]),
875
+ Schema.Null,
876
+ ])),
877
+ preferEcs: Schema.optional(Schema.Union([
878
+ Schema.Literals([
879
+ "always",
880
+ "never",
881
+ "proximity",
882
+ "geo",
883
+ ]),
884
+ Schema.Null,
885
+ ])),
886
+ }).pipe(Schema.encodeKeys({
887
+ mode: "mode",
888
+ preferEcs: "prefer_ecs",
889
+ })),
890
+ Schema.Null,
891
+ ])),
892
+ popPools: Schema.optional(Schema.Union([
893
+ Schema.Record(Schema.String, Schema.Unknown),
894
+ Schema.Null,
895
+ ])),
896
+ randomSteering: Schema.optional(Schema.Union([
897
+ Schema.Struct({
898
+ defaultWeight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
899
+ poolWeights: Schema.optional(Schema.Union([
900
+ Schema.Record(Schema.String, Schema.Unknown),
901
+ Schema.Null,
902
+ ])),
903
+ }).pipe(Schema.encodeKeys({
904
+ defaultWeight: "default_weight",
905
+ poolWeights: "pool_weights",
906
+ })),
907
+ Schema.Null,
908
+ ])),
909
+ regionPools: Schema.optional(Schema.Union([
910
+ Schema.Record(Schema.String, Schema.Unknown),
911
+ Schema.Null,
912
+ ])),
657
913
  sessionAffinity: Schema.optional(Schema.Union([
658
914
  Schema.Literals([
659
915
  "none",
@@ -663,11 +919,39 @@ export const CreateLoadBalancerResponse =
663
919
  ]),
664
920
  Schema.Null,
665
921
  ])),
666
- sessionAffinityAttributes: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
922
+ sessionAffinityAttributes: Schema.optional(Schema.Union([
923
+ Schema.Struct({
924
+ drainDuration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
925
+ headers: Schema.optional(Schema.Union([
926
+ Schema.Array(Schema.String),
927
+ Schema.Null,
928
+ ])),
929
+ requireAllHeaders: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
930
+ samesite: Schema.optional(Schema.Union([
931
+ Schema.Literals(["Auto", "Lax", "None", "Strict"]),
932
+ Schema.Null,
933
+ ])),
934
+ secure: Schema.optional(Schema.Union([
935
+ Schema.Literals(["Auto", "Always", "Never"]),
936
+ Schema.Null,
937
+ ])),
938
+ zeroDowntimeFailover: Schema.optional(Schema.Union([
939
+ Schema.Literals(["none", "temporary", "sticky"]),
940
+ Schema.Null,
941
+ ])),
942
+ }).pipe(Schema.encodeKeys({
943
+ drainDuration: "drain_duration",
944
+ headers: "headers",
945
+ requireAllHeaders: "require_all_headers",
946
+ samesite: "samesite",
947
+ secure: "secure",
948
+ zeroDowntimeFailover: "zero_downtime_failover",
949
+ })),
950
+ Schema.Null,
951
+ ])),
667
952
  sessionAffinityTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
668
953
  steeringPolicy: Schema.optional(Schema.Union([
669
954
  Schema.Literals([
670
- "",
671
955
  "off",
672
956
  "geo",
673
957
  "random",
@@ -675,6 +959,7 @@ export const CreateLoadBalancerResponse =
675
959
  "proximity",
676
960
  "least_outstanding_requests",
677
961
  "least_connections",
962
+ "",
678
963
  ]),
679
964
  Schema.Null,
680
965
  ])),
@@ -743,7 +1028,6 @@ export const CreateLoadBalancerResponse =
743
1028
  sessionAffinityTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
744
1029
  steeringPolicy: Schema.optional(Schema.Union([
745
1030
  Schema.Literals([
746
- "",
747
1031
  "off",
748
1032
  "geo",
749
1033
  "random",
@@ -751,6 +1035,7 @@ export const CreateLoadBalancerResponse =
751
1035
  "proximity",
752
1036
  "least_outstanding_requests",
753
1037
  "least_connections",
1038
+ "",
754
1039
  ]),
755
1040
  Schema.Null,
756
1041
  ])),
@@ -798,7 +1083,7 @@ export const UpdateLoadBalancerRequest =
798
1083
  adaptiveRouting: Schema.optional(Schema.Struct({
799
1084
  failoverAcrossPools: Schema.optional(Schema.Boolean),
800
1085
  }).pipe(Schema.encodeKeys({ failoverAcrossPools: "failover_across_pools" }))),
801
- countryPools: Schema.optional(Schema.Struct({})),
1086
+ countryPools: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
802
1087
  description: Schema.optional(Schema.String),
803
1088
  enabled: Schema.optional(Schema.Boolean),
804
1089
  locationStrategy: Schema.optional(Schema.Struct({
@@ -806,16 +1091,16 @@ export const UpdateLoadBalancerRequest =
806
1091
  preferEcs: Schema.optional(Schema.Literals(["always", "never", "proximity", "geo"])),
807
1092
  }).pipe(Schema.encodeKeys({ mode: "mode", preferEcs: "prefer_ecs" }))),
808
1093
  networks: Schema.optional(Schema.Array(Schema.String)),
809
- popPools: Schema.optional(Schema.Struct({})),
1094
+ popPools: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
810
1095
  proxied: Schema.optional(Schema.Boolean),
811
1096
  randomSteering: Schema.optional(Schema.Struct({
812
1097
  defaultWeight: Schema.optional(Schema.Number),
813
- poolWeights: Schema.optional(Schema.Struct({})),
1098
+ poolWeights: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
814
1099
  }).pipe(Schema.encodeKeys({
815
1100
  defaultWeight: "default_weight",
816
1101
  poolWeights: "pool_weights",
817
1102
  }))),
818
- regionPools: Schema.optional(Schema.Struct({})),
1103
+ regionPools: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
819
1104
  rules: Schema.optional(Schema.Array(Schema.Struct({
820
1105
  condition: Schema.optional(Schema.String),
821
1106
  disabled: Schema.optional(Schema.Boolean),
@@ -832,19 +1117,45 @@ export const UpdateLoadBalancerRequest =
832
1117
  }))),
833
1118
  name: Schema.optional(Schema.String),
834
1119
  overrides: Schema.optional(Schema.Struct({
835
- adaptiveRouting: Schema.optional(Schema.Unknown),
836
- countryPools: Schema.optional(Schema.Struct({})),
1120
+ adaptiveRouting: Schema.optional(Schema.Struct({
1121
+ failoverAcrossPools: Schema.optional(Schema.Boolean),
1122
+ }).pipe(Schema.encodeKeys({
1123
+ failoverAcrossPools: "failover_across_pools",
1124
+ }))),
1125
+ countryPools: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
837
1126
  defaultPools: Schema.optional(Schema.Array(Schema.String)),
838
1127
  fallbackPool: Schema.optional(Schema.String),
839
- locationStrategy: Schema.optional(Schema.Unknown),
840
- popPools: Schema.optional(Schema.Struct({})),
841
- randomSteering: Schema.optional(Schema.Unknown),
842
- regionPools: Schema.optional(Schema.Struct({})),
1128
+ locationStrategy: Schema.optional(Schema.Struct({
1129
+ mode: Schema.optional(Schema.Literals(["pop", "resolver_ip"])),
1130
+ preferEcs: Schema.optional(Schema.Literals(["always", "never", "proximity", "geo"])),
1131
+ }).pipe(Schema.encodeKeys({ mode: "mode", preferEcs: "prefer_ecs" }))),
1132
+ popPools: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
1133
+ randomSteering: Schema.optional(Schema.Struct({
1134
+ defaultWeight: Schema.optional(Schema.Number),
1135
+ poolWeights: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
1136
+ }).pipe(Schema.encodeKeys({
1137
+ defaultWeight: "default_weight",
1138
+ poolWeights: "pool_weights",
1139
+ }))),
1140
+ regionPools: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
843
1141
  sessionAffinity: Schema.optional(Schema.Literals(["none", "cookie", "ip_cookie", "header"])),
844
- sessionAffinityAttributes: Schema.optional(Schema.Unknown),
1142
+ sessionAffinityAttributes: Schema.optional(Schema.Struct({
1143
+ drainDuration: Schema.optional(Schema.Number),
1144
+ headers: Schema.optional(Schema.Array(Schema.String)),
1145
+ requireAllHeaders: Schema.optional(Schema.Boolean),
1146
+ samesite: Schema.optional(Schema.Literals(["Auto", "Lax", "None", "Strict"])),
1147
+ secure: Schema.optional(Schema.Literals(["Auto", "Always", "Never"])),
1148
+ zeroDowntimeFailover: Schema.optional(Schema.Literals(["none", "temporary", "sticky"])),
1149
+ }).pipe(Schema.encodeKeys({
1150
+ drainDuration: "drain_duration",
1151
+ headers: "headers",
1152
+ requireAllHeaders: "require_all_headers",
1153
+ samesite: "samesite",
1154
+ secure: "secure",
1155
+ zeroDowntimeFailover: "zero_downtime_failover",
1156
+ }))),
845
1157
  sessionAffinityTtl: Schema.optional(Schema.Number),
846
1158
  steeringPolicy: Schema.optional(Schema.Literals([
847
- "",
848
1159
  "off",
849
1160
  "geo",
850
1161
  "random",
@@ -852,6 +1163,7 @@ export const UpdateLoadBalancerRequest =
852
1163
  "proximity",
853
1164
  "least_outstanding_requests",
854
1165
  "least_connections",
1166
+ "",
855
1167
  ])),
856
1168
  ttl: Schema.optional(Schema.Number),
857
1169
  }).pipe(Schema.encodeKeys({
@@ -898,7 +1210,6 @@ export const UpdateLoadBalancerRequest =
898
1210
  }))),
899
1211
  sessionAffinityTtl: Schema.optional(Schema.Number),
900
1212
  steeringPolicy: Schema.optional(Schema.Literals([
901
- "",
902
1213
  "off",
903
1214
  "geo",
904
1215
  "random",
@@ -906,6 +1217,7 @@ export const UpdateLoadBalancerRequest =
906
1217
  "proximity",
907
1218
  "least_outstanding_requests",
908
1219
  "least_connections",
1220
+ "",
909
1221
  ])),
910
1222
  ttl: Schema.optional(Schema.Number),
911
1223
  }).pipe(Schema.encodeKeys({
@@ -941,7 +1253,7 @@ export const UpdateLoadBalancerResponse =
941
1253
  }).pipe(Schema.encodeKeys({ failoverAcrossPools: "failover_across_pools" })),
942
1254
  Schema.Null,
943
1255
  ])),
944
- countryPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1256
+ countryPools: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
945
1257
  createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
946
1258
  defaultPools: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
947
1259
  description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -963,19 +1275,22 @@ export const UpdateLoadBalancerResponse =
963
1275
  modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
964
1276
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
965
1277
  networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
966
- popPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1278
+ popPools: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
967
1279
  proxied: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
968
1280
  randomSteering: Schema.optional(Schema.Union([
969
1281
  Schema.Struct({
970
1282
  defaultWeight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
971
- poolWeights: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1283
+ poolWeights: Schema.optional(Schema.Union([
1284
+ Schema.Record(Schema.String, Schema.Unknown),
1285
+ Schema.Null,
1286
+ ])),
972
1287
  }).pipe(Schema.encodeKeys({
973
1288
  defaultWeight: "default_weight",
974
1289
  poolWeights: "pool_weights",
975
1290
  })),
976
1291
  Schema.Null,
977
1292
  ])),
978
- regionPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1293
+ regionPools: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
979
1294
  rules: Schema.optional(Schema.Union([
980
1295
  Schema.Array(Schema.Struct({
981
1296
  condition: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -997,14 +1312,62 @@ export const UpdateLoadBalancerResponse =
997
1312
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
998
1313
  overrides: Schema.optional(Schema.Union([
999
1314
  Schema.Struct({
1000
- adaptiveRouting: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1001
- countryPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1315
+ adaptiveRouting: Schema.optional(Schema.Union([
1316
+ Schema.Struct({
1317
+ failoverAcrossPools: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1318
+ }).pipe(Schema.encodeKeys({
1319
+ failoverAcrossPools: "failover_across_pools",
1320
+ })),
1321
+ Schema.Null,
1322
+ ])),
1323
+ countryPools: Schema.optional(Schema.Union([
1324
+ Schema.Record(Schema.String, Schema.Unknown),
1325
+ Schema.Null,
1326
+ ])),
1002
1327
  defaultPools: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1003
1328
  fallbackPool: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1004
- locationStrategy: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1005
- popPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1006
- randomSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1007
- regionPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1329
+ locationStrategy: Schema.optional(Schema.Union([
1330
+ Schema.Struct({
1331
+ mode: Schema.optional(Schema.Union([
1332
+ Schema.Literals(["pop", "resolver_ip"]),
1333
+ Schema.Null,
1334
+ ])),
1335
+ preferEcs: Schema.optional(Schema.Union([
1336
+ Schema.Literals([
1337
+ "always",
1338
+ "never",
1339
+ "proximity",
1340
+ "geo",
1341
+ ]),
1342
+ Schema.Null,
1343
+ ])),
1344
+ }).pipe(Schema.encodeKeys({
1345
+ mode: "mode",
1346
+ preferEcs: "prefer_ecs",
1347
+ })),
1348
+ Schema.Null,
1349
+ ])),
1350
+ popPools: Schema.optional(Schema.Union([
1351
+ Schema.Record(Schema.String, Schema.Unknown),
1352
+ Schema.Null,
1353
+ ])),
1354
+ randomSteering: Schema.optional(Schema.Union([
1355
+ Schema.Struct({
1356
+ defaultWeight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1357
+ poolWeights: Schema.optional(Schema.Union([
1358
+ Schema.Record(Schema.String, Schema.Unknown),
1359
+ Schema.Null,
1360
+ ])),
1361
+ }).pipe(Schema.encodeKeys({
1362
+ defaultWeight: "default_weight",
1363
+ poolWeights: "pool_weights",
1364
+ })),
1365
+ Schema.Null,
1366
+ ])),
1367
+ regionPools: Schema.optional(Schema.Union([
1368
+ Schema.Record(Schema.String, Schema.Unknown),
1369
+ Schema.Null,
1370
+ ])),
1008
1371
  sessionAffinity: Schema.optional(Schema.Union([
1009
1372
  Schema.Literals([
1010
1373
  "none",
@@ -1014,11 +1377,39 @@ export const UpdateLoadBalancerResponse =
1014
1377
  ]),
1015
1378
  Schema.Null,
1016
1379
  ])),
1017
- sessionAffinityAttributes: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1380
+ sessionAffinityAttributes: Schema.optional(Schema.Union([
1381
+ Schema.Struct({
1382
+ drainDuration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1383
+ headers: Schema.optional(Schema.Union([
1384
+ Schema.Array(Schema.String),
1385
+ Schema.Null,
1386
+ ])),
1387
+ requireAllHeaders: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1388
+ samesite: Schema.optional(Schema.Union([
1389
+ Schema.Literals(["Auto", "Lax", "None", "Strict"]),
1390
+ Schema.Null,
1391
+ ])),
1392
+ secure: Schema.optional(Schema.Union([
1393
+ Schema.Literals(["Auto", "Always", "Never"]),
1394
+ Schema.Null,
1395
+ ])),
1396
+ zeroDowntimeFailover: Schema.optional(Schema.Union([
1397
+ Schema.Literals(["none", "temporary", "sticky"]),
1398
+ Schema.Null,
1399
+ ])),
1400
+ }).pipe(Schema.encodeKeys({
1401
+ drainDuration: "drain_duration",
1402
+ headers: "headers",
1403
+ requireAllHeaders: "require_all_headers",
1404
+ samesite: "samesite",
1405
+ secure: "secure",
1406
+ zeroDowntimeFailover: "zero_downtime_failover",
1407
+ })),
1408
+ Schema.Null,
1409
+ ])),
1018
1410
  sessionAffinityTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1019
1411
  steeringPolicy: Schema.optional(Schema.Union([
1020
1412
  Schema.Literals([
1021
- "",
1022
1413
  "off",
1023
1414
  "geo",
1024
1415
  "random",
@@ -1026,6 +1417,7 @@ export const UpdateLoadBalancerResponse =
1026
1417
  "proximity",
1027
1418
  "least_outstanding_requests",
1028
1419
  "least_connections",
1420
+ "",
1029
1421
  ]),
1030
1422
  Schema.Null,
1031
1423
  ])),
@@ -1094,7 +1486,6 @@ export const UpdateLoadBalancerResponse =
1094
1486
  sessionAffinityTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1095
1487
  steeringPolicy: Schema.optional(Schema.Union([
1096
1488
  Schema.Literals([
1097
- "",
1098
1489
  "off",
1099
1490
  "geo",
1100
1491
  "random",
@@ -1102,6 +1493,7 @@ export const UpdateLoadBalancerResponse =
1102
1493
  "proximity",
1103
1494
  "least_outstanding_requests",
1104
1495
  "least_connections",
1496
+ "",
1105
1497
  ]),
1106
1498
  Schema.Null,
1107
1499
  ])),
@@ -1146,7 +1538,7 @@ export const PatchLoadBalancerRequest =
1146
1538
  adaptiveRouting: Schema.optional(Schema.Struct({
1147
1539
  failoverAcrossPools: Schema.optional(Schema.Boolean),
1148
1540
  }).pipe(Schema.encodeKeys({ failoverAcrossPools: "failover_across_pools" }))),
1149
- countryPools: Schema.optional(Schema.Struct({})),
1541
+ countryPools: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
1150
1542
  defaultPools: Schema.optional(Schema.Array(Schema.String)),
1151
1543
  description: Schema.optional(Schema.String),
1152
1544
  enabled: Schema.optional(Schema.Boolean),
@@ -1156,16 +1548,16 @@ export const PatchLoadBalancerRequest =
1156
1548
  preferEcs: Schema.optional(Schema.Literals(["always", "never", "proximity", "geo"])),
1157
1549
  }).pipe(Schema.encodeKeys({ mode: "mode", preferEcs: "prefer_ecs" }))),
1158
1550
  name: Schema.optional(Schema.String),
1159
- popPools: Schema.optional(Schema.Struct({})),
1551
+ popPools: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
1160
1552
  proxied: Schema.optional(Schema.Boolean),
1161
1553
  randomSteering: Schema.optional(Schema.Struct({
1162
1554
  defaultWeight: Schema.optional(Schema.Number),
1163
- poolWeights: Schema.optional(Schema.Struct({})),
1555
+ poolWeights: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
1164
1556
  }).pipe(Schema.encodeKeys({
1165
1557
  defaultWeight: "default_weight",
1166
1558
  poolWeights: "pool_weights",
1167
1559
  }))),
1168
- regionPools: Schema.optional(Schema.Struct({})),
1560
+ regionPools: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
1169
1561
  rules: Schema.optional(Schema.Array(Schema.Struct({
1170
1562
  condition: Schema.optional(Schema.String),
1171
1563
  disabled: Schema.optional(Schema.Boolean),
@@ -1182,19 +1574,45 @@ export const PatchLoadBalancerRequest =
1182
1574
  }))),
1183
1575
  name: Schema.optional(Schema.String),
1184
1576
  overrides: Schema.optional(Schema.Struct({
1185
- adaptiveRouting: Schema.optional(Schema.Unknown),
1186
- countryPools: Schema.optional(Schema.Struct({})),
1577
+ adaptiveRouting: Schema.optional(Schema.Struct({
1578
+ failoverAcrossPools: Schema.optional(Schema.Boolean),
1579
+ }).pipe(Schema.encodeKeys({
1580
+ failoverAcrossPools: "failover_across_pools",
1581
+ }))),
1582
+ countryPools: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
1187
1583
  defaultPools: Schema.optional(Schema.Array(Schema.String)),
1188
1584
  fallbackPool: Schema.optional(Schema.String),
1189
- locationStrategy: Schema.optional(Schema.Unknown),
1190
- popPools: Schema.optional(Schema.Struct({})),
1191
- randomSteering: Schema.optional(Schema.Unknown),
1192
- regionPools: Schema.optional(Schema.Struct({})),
1585
+ locationStrategy: Schema.optional(Schema.Struct({
1586
+ mode: Schema.optional(Schema.Literals(["pop", "resolver_ip"])),
1587
+ preferEcs: Schema.optional(Schema.Literals(["always", "never", "proximity", "geo"])),
1588
+ }).pipe(Schema.encodeKeys({ mode: "mode", preferEcs: "prefer_ecs" }))),
1589
+ popPools: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
1590
+ randomSteering: Schema.optional(Schema.Struct({
1591
+ defaultWeight: Schema.optional(Schema.Number),
1592
+ poolWeights: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
1593
+ }).pipe(Schema.encodeKeys({
1594
+ defaultWeight: "default_weight",
1595
+ poolWeights: "pool_weights",
1596
+ }))),
1597
+ regionPools: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
1193
1598
  sessionAffinity: Schema.optional(Schema.Literals(["none", "cookie", "ip_cookie", "header"])),
1194
- sessionAffinityAttributes: Schema.optional(Schema.Unknown),
1599
+ sessionAffinityAttributes: Schema.optional(Schema.Struct({
1600
+ drainDuration: Schema.optional(Schema.Number),
1601
+ headers: Schema.optional(Schema.Array(Schema.String)),
1602
+ requireAllHeaders: Schema.optional(Schema.Boolean),
1603
+ samesite: Schema.optional(Schema.Literals(["Auto", "Lax", "None", "Strict"])),
1604
+ secure: Schema.optional(Schema.Literals(["Auto", "Always", "Never"])),
1605
+ zeroDowntimeFailover: Schema.optional(Schema.Literals(["none", "temporary", "sticky"])),
1606
+ }).pipe(Schema.encodeKeys({
1607
+ drainDuration: "drain_duration",
1608
+ headers: "headers",
1609
+ requireAllHeaders: "require_all_headers",
1610
+ samesite: "samesite",
1611
+ secure: "secure",
1612
+ zeroDowntimeFailover: "zero_downtime_failover",
1613
+ }))),
1195
1614
  sessionAffinityTtl: Schema.optional(Schema.Number),
1196
1615
  steeringPolicy: Schema.optional(Schema.Literals([
1197
- "",
1198
1616
  "off",
1199
1617
  "geo",
1200
1618
  "random",
@@ -1202,6 +1620,7 @@ export const PatchLoadBalancerRequest =
1202
1620
  "proximity",
1203
1621
  "least_outstanding_requests",
1204
1622
  "least_connections",
1623
+ "",
1205
1624
  ])),
1206
1625
  ttl: Schema.optional(Schema.Number),
1207
1626
  }).pipe(Schema.encodeKeys({
@@ -1248,7 +1667,6 @@ export const PatchLoadBalancerRequest =
1248
1667
  }))),
1249
1668
  sessionAffinityTtl: Schema.optional(Schema.Number),
1250
1669
  steeringPolicy: Schema.optional(Schema.Literals([
1251
- "",
1252
1670
  "off",
1253
1671
  "geo",
1254
1672
  "random",
@@ -1256,6 +1674,7 @@ export const PatchLoadBalancerRequest =
1256
1674
  "proximity",
1257
1675
  "least_outstanding_requests",
1258
1676
  "least_connections",
1677
+ "",
1259
1678
  ])),
1260
1679
  ttl: Schema.optional(Schema.Number),
1261
1680
  }).pipe(Schema.encodeKeys({
@@ -1290,7 +1709,7 @@ export const PatchLoadBalancerResponse =
1290
1709
  }).pipe(Schema.encodeKeys({ failoverAcrossPools: "failover_across_pools" })),
1291
1710
  Schema.Null,
1292
1711
  ])),
1293
- countryPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1712
+ countryPools: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
1294
1713
  createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1295
1714
  defaultPools: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1296
1715
  description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -1312,19 +1731,22 @@ export const PatchLoadBalancerResponse =
1312
1731
  modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1313
1732
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1314
1733
  networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1315
- popPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1734
+ popPools: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
1316
1735
  proxied: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1317
1736
  randomSteering: Schema.optional(Schema.Union([
1318
1737
  Schema.Struct({
1319
1738
  defaultWeight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1320
- poolWeights: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1739
+ poolWeights: Schema.optional(Schema.Union([
1740
+ Schema.Record(Schema.String, Schema.Unknown),
1741
+ Schema.Null,
1742
+ ])),
1321
1743
  }).pipe(Schema.encodeKeys({
1322
1744
  defaultWeight: "default_weight",
1323
1745
  poolWeights: "pool_weights",
1324
1746
  })),
1325
1747
  Schema.Null,
1326
1748
  ])),
1327
- regionPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1749
+ regionPools: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
1328
1750
  rules: Schema.optional(Schema.Union([
1329
1751
  Schema.Array(Schema.Struct({
1330
1752
  condition: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -1346,14 +1768,62 @@ export const PatchLoadBalancerResponse =
1346
1768
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1347
1769
  overrides: Schema.optional(Schema.Union([
1348
1770
  Schema.Struct({
1349
- adaptiveRouting: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1350
- countryPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1771
+ adaptiveRouting: Schema.optional(Schema.Union([
1772
+ Schema.Struct({
1773
+ failoverAcrossPools: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1774
+ }).pipe(Schema.encodeKeys({
1775
+ failoverAcrossPools: "failover_across_pools",
1776
+ })),
1777
+ Schema.Null,
1778
+ ])),
1779
+ countryPools: Schema.optional(Schema.Union([
1780
+ Schema.Record(Schema.String, Schema.Unknown),
1781
+ Schema.Null,
1782
+ ])),
1351
1783
  defaultPools: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1352
1784
  fallbackPool: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1353
- locationStrategy: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1354
- popPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1355
- randomSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1356
- regionPools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1785
+ locationStrategy: Schema.optional(Schema.Union([
1786
+ Schema.Struct({
1787
+ mode: Schema.optional(Schema.Union([
1788
+ Schema.Literals(["pop", "resolver_ip"]),
1789
+ Schema.Null,
1790
+ ])),
1791
+ preferEcs: Schema.optional(Schema.Union([
1792
+ Schema.Literals([
1793
+ "always",
1794
+ "never",
1795
+ "proximity",
1796
+ "geo",
1797
+ ]),
1798
+ Schema.Null,
1799
+ ])),
1800
+ }).pipe(Schema.encodeKeys({
1801
+ mode: "mode",
1802
+ preferEcs: "prefer_ecs",
1803
+ })),
1804
+ Schema.Null,
1805
+ ])),
1806
+ popPools: Schema.optional(Schema.Union([
1807
+ Schema.Record(Schema.String, Schema.Unknown),
1808
+ Schema.Null,
1809
+ ])),
1810
+ randomSteering: Schema.optional(Schema.Union([
1811
+ Schema.Struct({
1812
+ defaultWeight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1813
+ poolWeights: Schema.optional(Schema.Union([
1814
+ Schema.Record(Schema.String, Schema.Unknown),
1815
+ Schema.Null,
1816
+ ])),
1817
+ }).pipe(Schema.encodeKeys({
1818
+ defaultWeight: "default_weight",
1819
+ poolWeights: "pool_weights",
1820
+ })),
1821
+ Schema.Null,
1822
+ ])),
1823
+ regionPools: Schema.optional(Schema.Union([
1824
+ Schema.Record(Schema.String, Schema.Unknown),
1825
+ Schema.Null,
1826
+ ])),
1357
1827
  sessionAffinity: Schema.optional(Schema.Union([
1358
1828
  Schema.Literals([
1359
1829
  "none",
@@ -1363,11 +1833,39 @@ export const PatchLoadBalancerResponse =
1363
1833
  ]),
1364
1834
  Schema.Null,
1365
1835
  ])),
1366
- sessionAffinityAttributes: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1836
+ sessionAffinityAttributes: Schema.optional(Schema.Union([
1837
+ Schema.Struct({
1838
+ drainDuration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1839
+ headers: Schema.optional(Schema.Union([
1840
+ Schema.Array(Schema.String),
1841
+ Schema.Null,
1842
+ ])),
1843
+ requireAllHeaders: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1844
+ samesite: Schema.optional(Schema.Union([
1845
+ Schema.Literals(["Auto", "Lax", "None", "Strict"]),
1846
+ Schema.Null,
1847
+ ])),
1848
+ secure: Schema.optional(Schema.Union([
1849
+ Schema.Literals(["Auto", "Always", "Never"]),
1850
+ Schema.Null,
1851
+ ])),
1852
+ zeroDowntimeFailover: Schema.optional(Schema.Union([
1853
+ Schema.Literals(["none", "temporary", "sticky"]),
1854
+ Schema.Null,
1855
+ ])),
1856
+ }).pipe(Schema.encodeKeys({
1857
+ drainDuration: "drain_duration",
1858
+ headers: "headers",
1859
+ requireAllHeaders: "require_all_headers",
1860
+ samesite: "samesite",
1861
+ secure: "secure",
1862
+ zeroDowntimeFailover: "zero_downtime_failover",
1863
+ })),
1864
+ Schema.Null,
1865
+ ])),
1367
1866
  sessionAffinityTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1368
1867
  steeringPolicy: Schema.optional(Schema.Union([
1369
1868
  Schema.Literals([
1370
- "",
1371
1869
  "off",
1372
1870
  "geo",
1373
1871
  "random",
@@ -1375,6 +1873,7 @@ export const PatchLoadBalancerResponse =
1375
1873
  "proximity",
1376
1874
  "least_outstanding_requests",
1377
1875
  "least_connections",
1876
+ "",
1378
1877
  ]),
1379
1878
  Schema.Null,
1380
1879
  ])),
@@ -1443,7 +1942,6 @@ export const PatchLoadBalancerResponse =
1443
1942
  sessionAffinityTtl: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1444
1943
  steeringPolicy: Schema.optional(Schema.Union([
1445
1944
  Schema.Literals([
1446
- "",
1447
1945
  "off",
1448
1946
  "geo",
1449
1947
  "random",
@@ -1451,6 +1949,7 @@ export const PatchLoadBalancerResponse =
1451
1949
  "proximity",
1452
1950
  "least_outstanding_requests",
1453
1951
  "least_connections",
1952
+ "",
1454
1953
  ]),
1455
1954
  Schema.Null,
1456
1955
  ])),
@@ -1522,7 +2021,7 @@ export const GetMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1522
2021
  expectedBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1523
2022
  expectedCodes: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1524
2023
  followRedirects: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1525
- header: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
2024
+ header: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
1526
2025
  interval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1527
2026
  method: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1528
2027
  modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -1587,7 +2086,10 @@ export const ListMonitorsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1587
2086
  expectedBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1588
2087
  expectedCodes: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1589
2088
  followRedirects: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1590
- header: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
2089
+ header: Schema.optional(Schema.Union([
2090
+ Schema.Record(Schema.String, Schema.Unknown),
2091
+ Schema.Null,
2092
+ ])),
1591
2093
  interval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1592
2094
  method: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1593
2095
  modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -1647,7 +2149,7 @@ export const CreateMonitorRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1647
2149
  expectedBody: Schema.optional(Schema.String),
1648
2150
  expectedCodes: Schema.optional(Schema.String),
1649
2151
  followRedirects: Schema.optional(Schema.Boolean),
1650
- header: Schema.optional(Schema.Struct({})),
2152
+ header: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
1651
2153
  interval: Schema.optional(Schema.Number),
1652
2154
  method: Schema.optional(Schema.String),
1653
2155
  path: Schema.optional(Schema.String),
@@ -1687,7 +2189,7 @@ export const CreateMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1687
2189
  expectedBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1688
2190
  expectedCodes: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1689
2191
  followRedirects: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1690
- header: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
2192
+ header: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
1691
2193
  interval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1692
2194
  method: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1693
2195
  modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -1745,7 +2247,7 @@ export const UpdateMonitorRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1745
2247
  expectedBody: Schema.optional(Schema.String),
1746
2248
  expectedCodes: Schema.optional(Schema.String),
1747
2249
  followRedirects: Schema.optional(Schema.Boolean),
1748
- header: Schema.optional(Schema.Struct({})),
2250
+ header: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
1749
2251
  interval: Schema.optional(Schema.Number),
1750
2252
  method: Schema.optional(Schema.String),
1751
2253
  path: Schema.optional(Schema.String),
@@ -1785,7 +2287,7 @@ export const UpdateMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1785
2287
  expectedBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1786
2288
  expectedCodes: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1787
2289
  followRedirects: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1788
- header: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
2290
+ header: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
1789
2291
  interval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1790
2292
  method: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1791
2293
  modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -1843,7 +2345,7 @@ export const PatchMonitorRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1843
2345
  expectedBody: Schema.optional(Schema.String),
1844
2346
  expectedCodes: Schema.optional(Schema.String),
1845
2347
  followRedirects: Schema.optional(Schema.Boolean),
1846
- header: Schema.optional(Schema.Struct({})),
2348
+ header: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
1847
2349
  interval: Schema.optional(Schema.Number),
1848
2350
  method: Schema.optional(Schema.String),
1849
2351
  path: Schema.optional(Schema.String),
@@ -1883,7 +2385,7 @@ export const PatchMonitorResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1883
2385
  expectedBody: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1884
2386
  expectedCodes: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1885
2387
  followRedirects: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1886
- header: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
2388
+ header: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
1887
2389
  interval: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1888
2390
  method: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1889
2391
  modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -2255,7 +2757,7 @@ export const CreateMonitorPreviewRequest =
2255
2757
  expectedBody: Schema.optional(Schema.String),
2256
2758
  expectedCodes: Schema.optional(Schema.String),
2257
2759
  followRedirects: Schema.optional(Schema.Boolean),
2258
- header: Schema.optional(Schema.Struct({})),
2760
+ header: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
2259
2761
  interval: Schema.optional(Schema.Number),
2260
2762
  method: Schema.optional(Schema.String),
2261
2763
  path: Schema.optional(Schema.String),
@@ -2294,7 +2796,7 @@ export const CreateMonitorPreviewRequest =
2294
2796
  }));
2295
2797
  export const CreateMonitorPreviewResponse =
2296
2798
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2297
- pools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
2799
+ pools: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
2298
2800
  previewId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2299
2801
  })
2300
2802
  .pipe(Schema.encodeKeys({ pools: "pools", previewId: "preview_id" }))
@@ -2359,10 +2861,10 @@ export const GetPoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2359
2861
  "ME",
2360
2862
  "NAF",
2361
2863
  "SAF",
2864
+ "SAS",
2362
2865
  "SEAS",
2363
2866
  "NEAS",
2364
2867
  "ALL_REGIONS",
2365
- "SAS",
2366
2868
  ])),
2367
2869
  Schema.Null,
2368
2870
  ])),
@@ -2371,7 +2873,20 @@ export const GetPoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2371
2873
  disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2372
2874
  enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2373
2875
  latitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2374
- loadShedding: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2876
+ loadShedding: Schema.optional(Schema.Union([
2877
+ Schema.Struct({
2878
+ defaultPercent: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2879
+ defaultPolicy: Schema.optional(Schema.Union([Schema.Literals(["random", "hash"]), Schema.Null])),
2880
+ sessionPercent: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2881
+ sessionPolicy: Schema.optional(Schema.Union([Schema.Literal("hash"), Schema.Null])),
2882
+ }).pipe(Schema.encodeKeys({
2883
+ defaultPercent: "default_percent",
2884
+ defaultPolicy: "default_policy",
2885
+ sessionPercent: "session_percent",
2886
+ sessionPolicy: "session_policy",
2887
+ })),
2888
+ Schema.Null,
2889
+ ])),
2375
2890
  longitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2376
2891
  minimumOrigins: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2377
2892
  modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -2380,9 +2895,66 @@ export const GetPoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2380
2895
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2381
2896
  networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
2382
2897
  notificationEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2383
- notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2384
- originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2385
- origins: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
2898
+ notificationFilter: Schema.optional(Schema.Union([
2899
+ Schema.Struct({
2900
+ origin: Schema.optional(Schema.Union([
2901
+ Schema.Struct({
2902
+ disable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2903
+ healthy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2904
+ }),
2905
+ Schema.Null,
2906
+ ])),
2907
+ pool: Schema.optional(Schema.Union([
2908
+ Schema.Struct({
2909
+ disable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2910
+ healthy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2911
+ }),
2912
+ Schema.Null,
2913
+ ])),
2914
+ }),
2915
+ Schema.Null,
2916
+ ])),
2917
+ originSteering: Schema.optional(Schema.Union([
2918
+ Schema.Struct({
2919
+ policy: Schema.optional(Schema.Union([
2920
+ Schema.Literals([
2921
+ "random",
2922
+ "hash",
2923
+ "least_outstanding_requests",
2924
+ "least_connections",
2925
+ ]),
2926
+ Schema.Null,
2927
+ ])),
2928
+ }),
2929
+ Schema.Null,
2930
+ ])),
2931
+ origins: Schema.optional(Schema.Union([
2932
+ Schema.Array(Schema.Struct({
2933
+ address: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2934
+ disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2935
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2936
+ header: Schema.optional(Schema.Union([
2937
+ Schema.Struct({
2938
+ host: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
2939
+ }).pipe(Schema.encodeKeys({ host: "Host" })),
2940
+ Schema.Null,
2941
+ ])),
2942
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2943
+ port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2944
+ virtualNetworkId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2945
+ weight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2946
+ }).pipe(Schema.encodeKeys({
2947
+ address: "address",
2948
+ disabledAt: "disabled_at",
2949
+ enabled: "enabled",
2950
+ header: "header",
2951
+ name: "name",
2952
+ port: "port",
2953
+ virtualNetworkId: "virtual_network_id",
2954
+ weight: "weight",
2955
+ }))),
2956
+ Schema.Null,
2957
+ ])),
2386
2958
  })
2387
2959
  .pipe(Schema.encodeKeys({
2388
2960
  id: "id",
@@ -2433,10 +3005,10 @@ export const ListPoolsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2433
3005
  "ME",
2434
3006
  "NAF",
2435
3007
  "SAF",
3008
+ "SAS",
2436
3009
  "SEAS",
2437
3010
  "NEAS",
2438
3011
  "ALL_REGIONS",
2439
- "SAS",
2440
3012
  ])),
2441
3013
  Schema.Null,
2442
3014
  ])),
@@ -2445,7 +3017,20 @@ export const ListPoolsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2445
3017
  disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2446
3018
  enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2447
3019
  latitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2448
- loadShedding: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
3020
+ loadShedding: Schema.optional(Schema.Union([
3021
+ Schema.Struct({
3022
+ defaultPercent: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3023
+ defaultPolicy: Schema.optional(Schema.Union([Schema.Literals(["random", "hash"]), Schema.Null])),
3024
+ sessionPercent: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3025
+ sessionPolicy: Schema.optional(Schema.Union([Schema.Literal("hash"), Schema.Null])),
3026
+ }).pipe(Schema.encodeKeys({
3027
+ defaultPercent: "default_percent",
3028
+ defaultPolicy: "default_policy",
3029
+ sessionPercent: "session_percent",
3030
+ sessionPolicy: "session_policy",
3031
+ })),
3032
+ Schema.Null,
3033
+ ])),
2449
3034
  longitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2450
3035
  minimumOrigins: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2451
3036
  modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -2454,9 +3039,66 @@ export const ListPoolsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2454
3039
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2455
3040
  networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
2456
3041
  notificationEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2457
- notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2458
- originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2459
- origins: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
3042
+ notificationFilter: Schema.optional(Schema.Union([
3043
+ Schema.Struct({
3044
+ origin: Schema.optional(Schema.Union([
3045
+ Schema.Struct({
3046
+ disable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3047
+ healthy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3048
+ }),
3049
+ Schema.Null,
3050
+ ])),
3051
+ pool: Schema.optional(Schema.Union([
3052
+ Schema.Struct({
3053
+ disable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3054
+ healthy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3055
+ }),
3056
+ Schema.Null,
3057
+ ])),
3058
+ }),
3059
+ Schema.Null,
3060
+ ])),
3061
+ originSteering: Schema.optional(Schema.Union([
3062
+ Schema.Struct({
3063
+ policy: Schema.optional(Schema.Union([
3064
+ Schema.Literals([
3065
+ "random",
3066
+ "hash",
3067
+ "least_outstanding_requests",
3068
+ "least_connections",
3069
+ ]),
3070
+ Schema.Null,
3071
+ ])),
3072
+ }),
3073
+ Schema.Null,
3074
+ ])),
3075
+ origins: Schema.optional(Schema.Union([
3076
+ Schema.Array(Schema.Struct({
3077
+ address: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3078
+ disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3079
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3080
+ header: Schema.optional(Schema.Union([
3081
+ Schema.Struct({
3082
+ host: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
3083
+ }).pipe(Schema.encodeKeys({ host: "Host" })),
3084
+ Schema.Null,
3085
+ ])),
3086
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3087
+ port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3088
+ virtualNetworkId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3089
+ weight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3090
+ }).pipe(Schema.encodeKeys({
3091
+ address: "address",
3092
+ disabledAt: "disabled_at",
3093
+ enabled: "enabled",
3094
+ header: "header",
3095
+ name: "name",
3096
+ port: "port",
3097
+ virtualNetworkId: "virtual_network_id",
3098
+ weight: "weight",
3099
+ }))),
3100
+ Schema.Null,
3101
+ ])),
2460
3102
  }).pipe(Schema.encodeKeys({
2461
3103
  id: "id",
2462
3104
  checkRegions: "check_regions",
@@ -2491,18 +3133,77 @@ export const listPools = API.makePaginated(() => ({
2491
3133
  export const CreatePoolRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2492
3134
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
2493
3135
  name: Schema.String,
2494
- origins: Schema.Array(Schema.Unknown),
3136
+ origins: Schema.Array(Schema.Struct({
3137
+ address: Schema.optional(Schema.String),
3138
+ enabled: Schema.optional(Schema.Boolean),
3139
+ header: Schema.optional(Schema.Struct({
3140
+ host: Schema.optional(Schema.Array(Schema.String)),
3141
+ }).pipe(Schema.encodeKeys({ host: "Host" }))),
3142
+ name: Schema.optional(Schema.String),
3143
+ port: Schema.optional(Schema.Number),
3144
+ virtualNetworkId: Schema.optional(Schema.String),
3145
+ weight: Schema.optional(Schema.Number),
3146
+ }).pipe(Schema.encodeKeys({
3147
+ address: "address",
3148
+ enabled: "enabled",
3149
+ header: "header",
3150
+ name: "name",
3151
+ port: "port",
3152
+ virtualNetworkId: "virtual_network_id",
3153
+ weight: "weight",
3154
+ }))),
2495
3155
  description: Schema.optional(Schema.String),
2496
3156
  enabled: Schema.optional(Schema.Boolean),
2497
3157
  latitude: Schema.optional(Schema.Number),
2498
- loadShedding: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
3158
+ loadShedding: Schema.optional(Schema.Union([
3159
+ Schema.Struct({
3160
+ defaultPercent: Schema.optional(Schema.Number),
3161
+ defaultPolicy: Schema.optional(Schema.Literals(["random", "hash"])),
3162
+ sessionPercent: Schema.optional(Schema.Number),
3163
+ sessionPolicy: Schema.optional(Schema.Literal("hash")),
3164
+ }).pipe(Schema.encodeKeys({
3165
+ defaultPercent: "default_percent",
3166
+ defaultPolicy: "default_policy",
3167
+ sessionPercent: "session_percent",
3168
+ sessionPolicy: "session_policy",
3169
+ })),
3170
+ Schema.Null,
3171
+ ])),
2499
3172
  longitude: Schema.optional(Schema.Number),
2500
3173
  minimumOrigins: Schema.optional(Schema.Number),
2501
3174
  monitor: Schema.optional(Schema.String),
2502
3175
  monitorGroup: Schema.optional(Schema.String),
2503
3176
  notificationEmail: Schema.optional(Schema.String),
2504
- notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2505
- originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
3177
+ notificationFilter: Schema.optional(Schema.Union([
3178
+ Schema.Struct({
3179
+ origin: Schema.optional(Schema.Union([
3180
+ Schema.Struct({
3181
+ disable: Schema.optional(Schema.Boolean),
3182
+ healthy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3183
+ }),
3184
+ Schema.Null,
3185
+ ])),
3186
+ pool: Schema.optional(Schema.Union([
3187
+ Schema.Struct({
3188
+ disable: Schema.optional(Schema.Boolean),
3189
+ healthy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3190
+ }),
3191
+ Schema.Null,
3192
+ ])),
3193
+ }),
3194
+ Schema.Null,
3195
+ ])),
3196
+ originSteering: Schema.optional(Schema.Union([
3197
+ Schema.Struct({
3198
+ policy: Schema.optional(Schema.Literals([
3199
+ "random",
3200
+ "hash",
3201
+ "least_outstanding_requests",
3202
+ "least_connections",
3203
+ ])),
3204
+ }),
3205
+ Schema.Null,
3206
+ ])),
2506
3207
  }).pipe(Schema.encodeKeys({
2507
3208
  name: "name",
2508
3209
  origins: "origins",
@@ -2535,10 +3236,10 @@ export const CreatePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2535
3236
  "ME",
2536
3237
  "NAF",
2537
3238
  "SAF",
3239
+ "SAS",
2538
3240
  "SEAS",
2539
3241
  "NEAS",
2540
3242
  "ALL_REGIONS",
2541
- "SAS",
2542
3243
  ])),
2543
3244
  Schema.Null,
2544
3245
  ])),
@@ -2547,7 +3248,20 @@ export const CreatePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2547
3248
  disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2548
3249
  enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2549
3250
  latitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2550
- loadShedding: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
3251
+ loadShedding: Schema.optional(Schema.Union([
3252
+ Schema.Struct({
3253
+ defaultPercent: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3254
+ defaultPolicy: Schema.optional(Schema.Union([Schema.Literals(["random", "hash"]), Schema.Null])),
3255
+ sessionPercent: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3256
+ sessionPolicy: Schema.optional(Schema.Union([Schema.Literal("hash"), Schema.Null])),
3257
+ }).pipe(Schema.encodeKeys({
3258
+ defaultPercent: "default_percent",
3259
+ defaultPolicy: "default_policy",
3260
+ sessionPercent: "session_percent",
3261
+ sessionPolicy: "session_policy",
3262
+ })),
3263
+ Schema.Null,
3264
+ ])),
2551
3265
  longitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2552
3266
  minimumOrigins: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2553
3267
  modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -2556,9 +3270,66 @@ export const CreatePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2556
3270
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2557
3271
  networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
2558
3272
  notificationEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2559
- notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2560
- originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2561
- origins: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
3273
+ notificationFilter: Schema.optional(Schema.Union([
3274
+ Schema.Struct({
3275
+ origin: Schema.optional(Schema.Union([
3276
+ Schema.Struct({
3277
+ disable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3278
+ healthy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3279
+ }),
3280
+ Schema.Null,
3281
+ ])),
3282
+ pool: Schema.optional(Schema.Union([
3283
+ Schema.Struct({
3284
+ disable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3285
+ healthy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3286
+ }),
3287
+ Schema.Null,
3288
+ ])),
3289
+ }),
3290
+ Schema.Null,
3291
+ ])),
3292
+ originSteering: Schema.optional(Schema.Union([
3293
+ Schema.Struct({
3294
+ policy: Schema.optional(Schema.Union([
3295
+ Schema.Literals([
3296
+ "random",
3297
+ "hash",
3298
+ "least_outstanding_requests",
3299
+ "least_connections",
3300
+ ]),
3301
+ Schema.Null,
3302
+ ])),
3303
+ }),
3304
+ Schema.Null,
3305
+ ])),
3306
+ origins: Schema.optional(Schema.Union([
3307
+ Schema.Array(Schema.Struct({
3308
+ address: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3309
+ disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3310
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3311
+ header: Schema.optional(Schema.Union([
3312
+ Schema.Struct({
3313
+ host: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
3314
+ }).pipe(Schema.encodeKeys({ host: "Host" })),
3315
+ Schema.Null,
3316
+ ])),
3317
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3318
+ port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3319
+ virtualNetworkId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3320
+ weight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3321
+ }).pipe(Schema.encodeKeys({
3322
+ address: "address",
3323
+ disabledAt: "disabled_at",
3324
+ enabled: "enabled",
3325
+ header: "header",
3326
+ name: "name",
3327
+ port: "port",
3328
+ virtualNetworkId: "virtual_network_id",
3329
+ weight: "weight",
3330
+ }))),
3331
+ Schema.Null,
3332
+ ])),
2562
3333
  })
2563
3334
  .pipe(Schema.encodeKeys({
2564
3335
  id: "id",
@@ -2591,7 +3362,25 @@ export const UpdatePoolRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2591
3362
  poolId: Schema.String.pipe(T.HttpPath("poolId")),
2592
3363
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
2593
3364
  name: Schema.String,
2594
- origins: Schema.Array(Schema.Unknown),
3365
+ origins: Schema.Array(Schema.Struct({
3366
+ address: Schema.optional(Schema.String),
3367
+ enabled: Schema.optional(Schema.Boolean),
3368
+ header: Schema.optional(Schema.Struct({
3369
+ host: Schema.optional(Schema.Array(Schema.String)),
3370
+ }).pipe(Schema.encodeKeys({ host: "Host" }))),
3371
+ name: Schema.optional(Schema.String),
3372
+ port: Schema.optional(Schema.Number),
3373
+ virtualNetworkId: Schema.optional(Schema.String),
3374
+ weight: Schema.optional(Schema.Number),
3375
+ }).pipe(Schema.encodeKeys({
3376
+ address: "address",
3377
+ enabled: "enabled",
3378
+ header: "header",
3379
+ name: "name",
3380
+ port: "port",
3381
+ virtualNetworkId: "virtual_network_id",
3382
+ weight: "weight",
3383
+ }))),
2595
3384
  checkRegions: Schema.optional(Schema.Union([
2596
3385
  Schema.Array(Schema.Literals([
2597
3386
  "WNAM",
@@ -2604,24 +3393,65 @@ export const UpdatePoolRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2604
3393
  "ME",
2605
3394
  "NAF",
2606
3395
  "SAF",
3396
+ "SAS",
2607
3397
  "SEAS",
2608
3398
  "NEAS",
2609
3399
  "ALL_REGIONS",
2610
- "SAS",
2611
3400
  ])),
2612
3401
  Schema.Null,
2613
3402
  ])),
2614
3403
  description: Schema.optional(Schema.String),
2615
3404
  enabled: Schema.optional(Schema.Boolean),
2616
3405
  latitude: Schema.optional(Schema.Number),
2617
- loadShedding: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
3406
+ loadShedding: Schema.optional(Schema.Union([
3407
+ Schema.Struct({
3408
+ defaultPercent: Schema.optional(Schema.Number),
3409
+ defaultPolicy: Schema.optional(Schema.Literals(["random", "hash"])),
3410
+ sessionPercent: Schema.optional(Schema.Number),
3411
+ sessionPolicy: Schema.optional(Schema.Literal("hash")),
3412
+ }).pipe(Schema.encodeKeys({
3413
+ defaultPercent: "default_percent",
3414
+ defaultPolicy: "default_policy",
3415
+ sessionPercent: "session_percent",
3416
+ sessionPolicy: "session_policy",
3417
+ })),
3418
+ Schema.Null,
3419
+ ])),
2618
3420
  longitude: Schema.optional(Schema.Number),
2619
3421
  minimumOrigins: Schema.optional(Schema.Number),
2620
3422
  monitor: Schema.optional(Schema.String),
2621
3423
  monitorGroup: Schema.optional(Schema.String),
2622
3424
  notificationEmail: Schema.optional(Schema.String),
2623
- notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2624
- originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
3425
+ notificationFilter: Schema.optional(Schema.Union([
3426
+ Schema.Struct({
3427
+ origin: Schema.optional(Schema.Union([
3428
+ Schema.Struct({
3429
+ disable: Schema.optional(Schema.Boolean),
3430
+ healthy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3431
+ }),
3432
+ Schema.Null,
3433
+ ])),
3434
+ pool: Schema.optional(Schema.Union([
3435
+ Schema.Struct({
3436
+ disable: Schema.optional(Schema.Boolean),
3437
+ healthy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3438
+ }),
3439
+ Schema.Null,
3440
+ ])),
3441
+ }),
3442
+ Schema.Null,
3443
+ ])),
3444
+ originSteering: Schema.optional(Schema.Union([
3445
+ Schema.Struct({
3446
+ policy: Schema.optional(Schema.Literals([
3447
+ "random",
3448
+ "hash",
3449
+ "least_outstanding_requests",
3450
+ "least_connections",
3451
+ ])),
3452
+ }),
3453
+ Schema.Null,
3454
+ ])),
2625
3455
  }).pipe(Schema.encodeKeys({
2626
3456
  name: "name",
2627
3457
  origins: "origins",
@@ -2655,10 +3485,10 @@ export const UpdatePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2655
3485
  "ME",
2656
3486
  "NAF",
2657
3487
  "SAF",
3488
+ "SAS",
2658
3489
  "SEAS",
2659
3490
  "NEAS",
2660
3491
  "ALL_REGIONS",
2661
- "SAS",
2662
3492
  ])),
2663
3493
  Schema.Null,
2664
3494
  ])),
@@ -2667,7 +3497,20 @@ export const UpdatePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2667
3497
  disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2668
3498
  enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2669
3499
  latitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2670
- loadShedding: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
3500
+ loadShedding: Schema.optional(Schema.Union([
3501
+ Schema.Struct({
3502
+ defaultPercent: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3503
+ defaultPolicy: Schema.optional(Schema.Union([Schema.Literals(["random", "hash"]), Schema.Null])),
3504
+ sessionPercent: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3505
+ sessionPolicy: Schema.optional(Schema.Union([Schema.Literal("hash"), Schema.Null])),
3506
+ }).pipe(Schema.encodeKeys({
3507
+ defaultPercent: "default_percent",
3508
+ defaultPolicy: "default_policy",
3509
+ sessionPercent: "session_percent",
3510
+ sessionPolicy: "session_policy",
3511
+ })),
3512
+ Schema.Null,
3513
+ ])),
2671
3514
  longitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2672
3515
  minimumOrigins: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2673
3516
  modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -2676,9 +3519,66 @@ export const UpdatePoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2676
3519
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2677
3520
  networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
2678
3521
  notificationEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2679
- notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2680
- originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2681
- origins: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
3522
+ notificationFilter: Schema.optional(Schema.Union([
3523
+ Schema.Struct({
3524
+ origin: Schema.optional(Schema.Union([
3525
+ Schema.Struct({
3526
+ disable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3527
+ healthy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3528
+ }),
3529
+ Schema.Null,
3530
+ ])),
3531
+ pool: Schema.optional(Schema.Union([
3532
+ Schema.Struct({
3533
+ disable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3534
+ healthy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3535
+ }),
3536
+ Schema.Null,
3537
+ ])),
3538
+ }),
3539
+ Schema.Null,
3540
+ ])),
3541
+ originSteering: Schema.optional(Schema.Union([
3542
+ Schema.Struct({
3543
+ policy: Schema.optional(Schema.Union([
3544
+ Schema.Literals([
3545
+ "random",
3546
+ "hash",
3547
+ "least_outstanding_requests",
3548
+ "least_connections",
3549
+ ]),
3550
+ Schema.Null,
3551
+ ])),
3552
+ }),
3553
+ Schema.Null,
3554
+ ])),
3555
+ origins: Schema.optional(Schema.Union([
3556
+ Schema.Array(Schema.Struct({
3557
+ address: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3558
+ disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3559
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3560
+ header: Schema.optional(Schema.Union([
3561
+ Schema.Struct({
3562
+ host: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
3563
+ }).pipe(Schema.encodeKeys({ host: "Host" })),
3564
+ Schema.Null,
3565
+ ])),
3566
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3567
+ port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3568
+ virtualNetworkId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3569
+ weight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3570
+ }).pipe(Schema.encodeKeys({
3571
+ address: "address",
3572
+ disabledAt: "disabled_at",
3573
+ enabled: "enabled",
3574
+ header: "header",
3575
+ name: "name",
3576
+ port: "port",
3577
+ virtualNetworkId: "virtual_network_id",
3578
+ weight: "weight",
3579
+ }))),
3580
+ Schema.Null,
3581
+ ])),
2682
3582
  })
2683
3583
  .pipe(Schema.encodeKeys({
2684
3584
  id: "id",
@@ -2722,26 +3622,85 @@ export const PatchPoolRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2722
3622
  "ME",
2723
3623
  "NAF",
2724
3624
  "SAF",
3625
+ "SAS",
2725
3626
  "SEAS",
2726
3627
  "NEAS",
2727
3628
  "ALL_REGIONS",
2728
- "SAS",
2729
3629
  ])),
2730
3630
  Schema.Null,
2731
3631
  ])),
2732
3632
  description: Schema.optional(Schema.String),
2733
3633
  enabled: Schema.optional(Schema.Boolean),
2734
3634
  latitude: Schema.optional(Schema.Number),
2735
- loadShedding: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
3635
+ loadShedding: Schema.optional(Schema.Union([
3636
+ Schema.Struct({
3637
+ defaultPercent: Schema.optional(Schema.Number),
3638
+ defaultPolicy: Schema.optional(Schema.Literals(["random", "hash"])),
3639
+ sessionPercent: Schema.optional(Schema.Number),
3640
+ sessionPolicy: Schema.optional(Schema.Literal("hash")),
3641
+ }).pipe(Schema.encodeKeys({
3642
+ defaultPercent: "default_percent",
3643
+ defaultPolicy: "default_policy",
3644
+ sessionPercent: "session_percent",
3645
+ sessionPolicy: "session_policy",
3646
+ })),
3647
+ Schema.Null,
3648
+ ])),
2736
3649
  longitude: Schema.optional(Schema.Number),
2737
3650
  minimumOrigins: Schema.optional(Schema.Number),
2738
3651
  monitor: Schema.optional(Schema.String),
2739
3652
  monitorGroup: Schema.optional(Schema.String),
2740
3653
  name: Schema.optional(Schema.String),
2741
3654
  notificationEmail: Schema.optional(Schema.String),
2742
- notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2743
- originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2744
- origins: Schema.optional(Schema.Array(Schema.Unknown)),
3655
+ notificationFilter: Schema.optional(Schema.Union([
3656
+ Schema.Struct({
3657
+ origin: Schema.optional(Schema.Union([
3658
+ Schema.Struct({
3659
+ disable: Schema.optional(Schema.Boolean),
3660
+ healthy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3661
+ }),
3662
+ Schema.Null,
3663
+ ])),
3664
+ pool: Schema.optional(Schema.Union([
3665
+ Schema.Struct({
3666
+ disable: Schema.optional(Schema.Boolean),
3667
+ healthy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3668
+ }),
3669
+ Schema.Null,
3670
+ ])),
3671
+ }),
3672
+ Schema.Null,
3673
+ ])),
3674
+ originSteering: Schema.optional(Schema.Union([
3675
+ Schema.Struct({
3676
+ policy: Schema.optional(Schema.Literals([
3677
+ "random",
3678
+ "hash",
3679
+ "least_outstanding_requests",
3680
+ "least_connections",
3681
+ ])),
3682
+ }),
3683
+ Schema.Null,
3684
+ ])),
3685
+ origins: Schema.optional(Schema.Array(Schema.Struct({
3686
+ address: Schema.optional(Schema.String),
3687
+ enabled: Schema.optional(Schema.Boolean),
3688
+ header: Schema.optional(Schema.Struct({
3689
+ host: Schema.optional(Schema.Array(Schema.String)),
3690
+ }).pipe(Schema.encodeKeys({ host: "Host" }))),
3691
+ name: Schema.optional(Schema.String),
3692
+ port: Schema.optional(Schema.Number),
3693
+ virtualNetworkId: Schema.optional(Schema.String),
3694
+ weight: Schema.optional(Schema.Number),
3695
+ }).pipe(Schema.encodeKeys({
3696
+ address: "address",
3697
+ enabled: "enabled",
3698
+ header: "header",
3699
+ name: "name",
3700
+ port: "port",
3701
+ virtualNetworkId: "virtual_network_id",
3702
+ weight: "weight",
3703
+ })))),
2745
3704
  }).pipe(Schema.encodeKeys({
2746
3705
  checkRegions: "check_regions",
2747
3706
  description: "description",
@@ -2775,10 +3734,10 @@ export const PatchPoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2775
3734
  "ME",
2776
3735
  "NAF",
2777
3736
  "SAF",
3737
+ "SAS",
2778
3738
  "SEAS",
2779
3739
  "NEAS",
2780
3740
  "ALL_REGIONS",
2781
- "SAS",
2782
3741
  ])),
2783
3742
  Schema.Null,
2784
3743
  ])),
@@ -2787,7 +3746,20 @@ export const PatchPoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2787
3746
  disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2788
3747
  enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2789
3748
  latitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2790
- loadShedding: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
3749
+ loadShedding: Schema.optional(Schema.Union([
3750
+ Schema.Struct({
3751
+ defaultPercent: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3752
+ defaultPolicy: Schema.optional(Schema.Union([Schema.Literals(["random", "hash"]), Schema.Null])),
3753
+ sessionPercent: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3754
+ sessionPolicy: Schema.optional(Schema.Union([Schema.Literal("hash"), Schema.Null])),
3755
+ }).pipe(Schema.encodeKeys({
3756
+ defaultPercent: "default_percent",
3757
+ defaultPolicy: "default_policy",
3758
+ sessionPercent: "session_percent",
3759
+ sessionPolicy: "session_policy",
3760
+ })),
3761
+ Schema.Null,
3762
+ ])),
2791
3763
  longitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2792
3764
  minimumOrigins: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2793
3765
  modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -2796,9 +3768,66 @@ export const PatchPoolResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2796
3768
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2797
3769
  networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
2798
3770
  notificationEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2799
- notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2800
- originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2801
- origins: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
3771
+ notificationFilter: Schema.optional(Schema.Union([
3772
+ Schema.Struct({
3773
+ origin: Schema.optional(Schema.Union([
3774
+ Schema.Struct({
3775
+ disable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3776
+ healthy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3777
+ }),
3778
+ Schema.Null,
3779
+ ])),
3780
+ pool: Schema.optional(Schema.Union([
3781
+ Schema.Struct({
3782
+ disable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3783
+ healthy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3784
+ }),
3785
+ Schema.Null,
3786
+ ])),
3787
+ }),
3788
+ Schema.Null,
3789
+ ])),
3790
+ originSteering: Schema.optional(Schema.Union([
3791
+ Schema.Struct({
3792
+ policy: Schema.optional(Schema.Union([
3793
+ Schema.Literals([
3794
+ "random",
3795
+ "hash",
3796
+ "least_outstanding_requests",
3797
+ "least_connections",
3798
+ ]),
3799
+ Schema.Null,
3800
+ ])),
3801
+ }),
3802
+ Schema.Null,
3803
+ ])),
3804
+ origins: Schema.optional(Schema.Union([
3805
+ Schema.Array(Schema.Struct({
3806
+ address: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3807
+ disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3808
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3809
+ header: Schema.optional(Schema.Union([
3810
+ Schema.Struct({
3811
+ host: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
3812
+ }).pipe(Schema.encodeKeys({ host: "Host" })),
3813
+ Schema.Null,
3814
+ ])),
3815
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3816
+ port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3817
+ virtualNetworkId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3818
+ weight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3819
+ }).pipe(Schema.encodeKeys({
3820
+ address: "address",
3821
+ disabledAt: "disabled_at",
3822
+ enabled: "enabled",
3823
+ header: "header",
3824
+ name: "name",
3825
+ port: "port",
3826
+ virtualNetworkId: "virtual_network_id",
3827
+ weight: "weight",
3828
+ }))),
3829
+ Schema.Null,
3830
+ ])),
2802
3831
  })
2803
3832
  .pipe(Schema.encodeKeys({
2804
3833
  id: "id",
@@ -2864,10 +3893,10 @@ export const BulkPatchPoolsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
2864
3893
  "ME",
2865
3894
  "NAF",
2866
3895
  "SAF",
3896
+ "SAS",
2867
3897
  "SEAS",
2868
3898
  "NEAS",
2869
3899
  "ALL_REGIONS",
2870
- "SAS",
2871
3900
  ])),
2872
3901
  Schema.Null,
2873
3902
  ])),
@@ -2876,7 +3905,23 @@ export const BulkPatchPoolsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
2876
3905
  disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2877
3906
  enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2878
3907
  latitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2879
- loadShedding: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
3908
+ loadShedding: Schema.optional(Schema.Union([
3909
+ Schema.Struct({
3910
+ defaultPercent: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3911
+ defaultPolicy: Schema.optional(Schema.Union([
3912
+ Schema.Literals(["random", "hash"]),
3913
+ Schema.Null,
3914
+ ])),
3915
+ sessionPercent: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3916
+ sessionPolicy: Schema.optional(Schema.Union([Schema.Literal("hash"), Schema.Null])),
3917
+ }).pipe(Schema.encodeKeys({
3918
+ defaultPercent: "default_percent",
3919
+ defaultPolicy: "default_policy",
3920
+ sessionPercent: "session_percent",
3921
+ sessionPolicy: "session_policy",
3922
+ })),
3923
+ Schema.Null,
3924
+ ])),
2880
3925
  longitude: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2881
3926
  minimumOrigins: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2882
3927
  modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -2885,9 +3930,69 @@ export const BulkPatchPoolsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
2885
3930
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2886
3931
  networks: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
2887
3932
  notificationEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2888
- notificationFilter: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2889
- originSteering: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2890
- origins: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
3933
+ notificationFilter: Schema.optional(Schema.Union([
3934
+ Schema.Struct({
3935
+ origin: Schema.optional(Schema.Union([
3936
+ Schema.Struct({
3937
+ disable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3938
+ healthy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3939
+ }),
3940
+ Schema.Null,
3941
+ ])),
3942
+ pool: Schema.optional(Schema.Union([
3943
+ Schema.Struct({
3944
+ disable: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3945
+ healthy: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3946
+ }),
3947
+ Schema.Null,
3948
+ ])),
3949
+ }),
3950
+ Schema.Null,
3951
+ ])),
3952
+ originSteering: Schema.optional(Schema.Union([
3953
+ Schema.Struct({
3954
+ policy: Schema.optional(Schema.Union([
3955
+ Schema.Literals([
3956
+ "random",
3957
+ "hash",
3958
+ "least_outstanding_requests",
3959
+ "least_connections",
3960
+ ]),
3961
+ Schema.Null,
3962
+ ])),
3963
+ }),
3964
+ Schema.Null,
3965
+ ])),
3966
+ origins: Schema.optional(Schema.Union([
3967
+ Schema.Array(Schema.Struct({
3968
+ address: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3969
+ disabledAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3970
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3971
+ header: Schema.optional(Schema.Union([
3972
+ Schema.Struct({
3973
+ host: Schema.optional(Schema.Union([
3974
+ Schema.Array(Schema.String),
3975
+ Schema.Null,
3976
+ ])),
3977
+ }).pipe(Schema.encodeKeys({ host: "Host" })),
3978
+ Schema.Null,
3979
+ ])),
3980
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3981
+ port: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3982
+ virtualNetworkId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3983
+ weight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3984
+ }).pipe(Schema.encodeKeys({
3985
+ address: "address",
3986
+ disabledAt: "disabled_at",
3987
+ enabled: "enabled",
3988
+ header: "header",
3989
+ name: "name",
3990
+ port: "port",
3991
+ virtualNetworkId: "virtual_network_id",
3992
+ weight: "weight",
3993
+ }))),
3994
+ Schema.Null,
3995
+ ])),
2891
3996
  }).pipe(Schema.encodeKeys({
2892
3997
  id: "id",
2893
3998
  checkRegions: "check_regions",
@@ -2972,7 +4077,7 @@ export const CreatePoolHealthRequest =
2972
4077
  expectedBody: Schema.optional(Schema.String),
2973
4078
  expectedCodes: Schema.optional(Schema.String),
2974
4079
  followRedirects: Schema.optional(Schema.Boolean),
2975
- header: Schema.optional(Schema.Struct({})),
4080
+ header: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
2976
4081
  interval: Schema.optional(Schema.Number),
2977
4082
  method: Schema.optional(Schema.String),
2978
4083
  path: Schema.optional(Schema.String),
@@ -3011,7 +4116,7 @@ export const CreatePoolHealthRequest =
3011
4116
  }));
3012
4117
  export const CreatePoolHealthResponse =
3013
4118
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3014
- pools: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
4119
+ pools: Schema.optional(Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null])),
3015
4120
  previewId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3016
4121
  })
3017
4122
  .pipe(Schema.encodeKeys({ pools: "pools", previewId: "preview_id" }))
@@ -3062,7 +4167,7 @@ export const GetPreviewRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3062
4167
  method: "GET",
3063
4168
  path: "/accounts/{account_id}/load_balancers/preview/{previewId}",
3064
4169
  }));
3065
- export const GetPreviewResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.ResponsePath("result"));
4170
+ export const GetPreviewResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Record(Schema.String, Schema.Unknown).pipe(T.ResponsePath("result"));
3066
4171
  export const getPreview = API.make(() => ({
3067
4172
  input: GetPreviewRequest,
3068
4173
  output: GetPreviewResponse,