@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
@@ -881,7 +881,9 @@ export const GetCatalogSyncResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
881
881
  name: Schema.String,
882
882
  policy: Schema.String,
883
883
  updateMode: Schema.Literals(["AUTO", "MANUAL"]),
884
- errors: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
884
+ errors: Schema.optional(
885
+ Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
886
+ ),
885
887
  includesDiscoveriesUntil: Schema.optional(
886
888
  Schema.Union([Schema.String, Schema.Null]),
887
889
  ),
@@ -969,7 +971,12 @@ export const ListCatalogSyncsResponse =
969
971
  name: Schema.String,
970
972
  policy: Schema.String,
971
973
  updateMode: Schema.Literals(["AUTO", "MANUAL"]),
972
- errors: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
974
+ errors: Schema.optional(
975
+ Schema.Union([
976
+ Schema.Record(Schema.String, Schema.Unknown),
977
+ Schema.Null,
978
+ ]),
979
+ ),
973
980
  includesDiscoveriesUntil: Schema.optional(
974
981
  Schema.Union([Schema.String, Schema.Null]),
975
982
  ),
@@ -1106,7 +1113,9 @@ export const CreateCatalogSyncResponse =
1106
1113
  name: Schema.String,
1107
1114
  policy: Schema.String,
1108
1115
  updateMode: Schema.Literals(["AUTO", "MANUAL"]),
1109
- errors: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1116
+ errors: Schema.optional(
1117
+ Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
1118
+ ),
1110
1119
  includesDiscoveriesUntil: Schema.optional(
1111
1120
  Schema.Union([Schema.String, Schema.Null]),
1112
1121
  ),
@@ -1210,7 +1219,9 @@ export const UpdateCatalogSyncResponse =
1210
1219
  name: Schema.String,
1211
1220
  policy: Schema.String,
1212
1221
  updateMode: Schema.Literals(["AUTO", "MANUAL"]),
1213
- errors: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1222
+ errors: Schema.optional(
1223
+ Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
1224
+ ),
1214
1225
  includesDiscoveriesUntil: Schema.optional(
1215
1226
  Schema.Union([Schema.String, Schema.Null]),
1216
1227
  ),
@@ -1314,7 +1325,9 @@ export const PatchCatalogSyncResponse =
1314
1325
  name: Schema.String,
1315
1326
  policy: Schema.String,
1316
1327
  updateMode: Schema.Literals(["AUTO", "MANUAL"]),
1317
- errors: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
1328
+ errors: Schema.optional(
1329
+ Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
1330
+ ),
1318
1331
  includesDiscoveriesUntil: Schema.optional(
1319
1332
  Schema.Union([Schema.String, Schema.Null]),
1320
1333
  ),
@@ -4081,7 +4094,7 @@ export const GetOnRampResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4081
4094
  ]),
4082
4095
  ),
4083
4096
  postApplyResources: Schema.optional(
4084
- Schema.Union([Schema.Struct({}), Schema.Null]),
4097
+ Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
4085
4098
  ),
4086
4099
  postApplyResourcesUnavailable: Schema.optional(
4087
4100
  Schema.Union([Schema.Boolean, Schema.Null]),
@@ -4115,7 +4128,10 @@ export const GetOnRampResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4115
4128
  routes: Schema.Array(Schema.String),
4116
4129
  tunnels: Schema.Array(Schema.String),
4117
4130
  lifecycleErrors: Schema.optional(
4118
- Schema.Union([Schema.Struct({}), Schema.Null]),
4131
+ Schema.Union([
4132
+ Schema.Record(Schema.String, Schema.Unknown),
4133
+ Schema.Null,
4134
+ ]),
4119
4135
  ),
4120
4136
  }).pipe(
4121
4137
  Schema.encodeKeys({
@@ -4131,7 +4147,9 @@ export const GetOnRampResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4131
4147
  ]),
4132
4148
  ),
4133
4149
  vpc: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4134
- vpcsById: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
4150
+ vpcsById: Schema.optional(
4151
+ Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
4152
+ ),
4135
4153
  vpcsByIdUnavailable: Schema.optional(
4136
4154
  Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4137
4155
  ),
@@ -4557,7 +4575,10 @@ export const ListOnRampsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4557
4575
  ]),
4558
4576
  ),
4559
4577
  postApplyResources: Schema.optional(
4560
- Schema.Union([Schema.Struct({}), Schema.Null]),
4578
+ Schema.Union([
4579
+ Schema.Record(Schema.String, Schema.Unknown),
4580
+ Schema.Null,
4581
+ ]),
4561
4582
  ),
4562
4583
  postApplyResourcesUnavailable: Schema.optional(
4563
4584
  Schema.Union([Schema.Boolean, Schema.Null]),
@@ -4591,7 +4612,10 @@ export const ListOnRampsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4591
4612
  routes: Schema.Array(Schema.String),
4592
4613
  tunnels: Schema.Array(Schema.String),
4593
4614
  lifecycleErrors: Schema.optional(
4594
- Schema.Union([Schema.Struct({}), Schema.Null]),
4615
+ Schema.Union([
4616
+ Schema.Record(Schema.String, Schema.Unknown),
4617
+ Schema.Null,
4618
+ ]),
4595
4619
  ),
4596
4620
  }).pipe(
4597
4621
  Schema.encodeKeys({
@@ -4607,7 +4631,12 @@ export const ListOnRampsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4607
4631
  ]),
4608
4632
  ),
4609
4633
  vpc: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4610
- vpcsById: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
4634
+ vpcsById: Schema.optional(
4635
+ Schema.Union([
4636
+ Schema.Record(Schema.String, Schema.Unknown),
4637
+ Schema.Null,
4638
+ ]),
4639
+ ),
4611
4640
  vpcsByIdUnavailable: Schema.optional(
4612
4641
  Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4613
4642
  ),
@@ -5244,7 +5273,7 @@ export const CreateOnRampResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5244
5273
  ]),
5245
5274
  ),
5246
5275
  postApplyResources: Schema.optional(
5247
- Schema.Union([Schema.Struct({}), Schema.Null]),
5276
+ Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
5248
5277
  ),
5249
5278
  postApplyResourcesUnavailable: Schema.optional(
5250
5279
  Schema.Union([Schema.Boolean, Schema.Null]),
@@ -5278,7 +5307,10 @@ export const CreateOnRampResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5278
5307
  routes: Schema.Array(Schema.String),
5279
5308
  tunnels: Schema.Array(Schema.String),
5280
5309
  lifecycleErrors: Schema.optional(
5281
- Schema.Union([Schema.Struct({}), Schema.Null]),
5310
+ Schema.Union([
5311
+ Schema.Record(Schema.String, Schema.Unknown),
5312
+ Schema.Null,
5313
+ ]),
5282
5314
  ),
5283
5315
  }).pipe(
5284
5316
  Schema.encodeKeys({
@@ -5294,7 +5326,9 @@ export const CreateOnRampResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5294
5326
  ]),
5295
5327
  ),
5296
5328
  vpc: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5297
- vpcsById: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
5329
+ vpcsById: Schema.optional(
5330
+ Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
5331
+ ),
5298
5332
  vpcsByIdUnavailable: Schema.optional(
5299
5333
  Schema.Union([Schema.Array(Schema.String), Schema.Null]),
5300
5334
  ),
@@ -5742,7 +5776,7 @@ export const UpdateOnRampResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5742
5776
  ]),
5743
5777
  ),
5744
5778
  postApplyResources: Schema.optional(
5745
- Schema.Union([Schema.Struct({}), Schema.Null]),
5779
+ Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
5746
5780
  ),
5747
5781
  postApplyResourcesUnavailable: Schema.optional(
5748
5782
  Schema.Union([Schema.Boolean, Schema.Null]),
@@ -5776,7 +5810,10 @@ export const UpdateOnRampResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5776
5810
  routes: Schema.Array(Schema.String),
5777
5811
  tunnels: Schema.Array(Schema.String),
5778
5812
  lifecycleErrors: Schema.optional(
5779
- Schema.Union([Schema.Struct({}), Schema.Null]),
5813
+ Schema.Union([
5814
+ Schema.Record(Schema.String, Schema.Unknown),
5815
+ Schema.Null,
5816
+ ]),
5780
5817
  ),
5781
5818
  }).pipe(
5782
5819
  Schema.encodeKeys({
@@ -5792,7 +5829,9 @@ export const UpdateOnRampResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5792
5829
  ]),
5793
5830
  ),
5794
5831
  vpc: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5795
- vpcsById: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
5832
+ vpcsById: Schema.optional(
5833
+ Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
5834
+ ),
5796
5835
  vpcsByIdUnavailable: Schema.optional(
5797
5836
  Schema.Union([Schema.Array(Schema.String), Schema.Null]),
5798
5837
  ),
@@ -6240,7 +6279,7 @@ export const PatchOnRampResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6240
6279
  ]),
6241
6280
  ),
6242
6281
  postApplyResources: Schema.optional(
6243
- Schema.Union([Schema.Struct({}), Schema.Null]),
6282
+ Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
6244
6283
  ),
6245
6284
  postApplyResourcesUnavailable: Schema.optional(
6246
6285
  Schema.Union([Schema.Boolean, Schema.Null]),
@@ -6274,7 +6313,10 @@ export const PatchOnRampResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6274
6313
  routes: Schema.Array(Schema.String),
6275
6314
  tunnels: Schema.Array(Schema.String),
6276
6315
  lifecycleErrors: Schema.optional(
6277
- Schema.Union([Schema.Struct({}), Schema.Null]),
6316
+ Schema.Union([
6317
+ Schema.Record(Schema.String, Schema.Unknown),
6318
+ Schema.Null,
6319
+ ]),
6278
6320
  ),
6279
6321
  }).pipe(
6280
6322
  Schema.encodeKeys({
@@ -6290,7 +6332,9 @@ export const PatchOnRampResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6290
6332
  ]),
6291
6333
  ),
6292
6334
  vpc: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
6293
- vpcsById: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
6335
+ vpcsById: Schema.optional(
6336
+ Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
6337
+ ),
6294
6338
  vpcsByIdUnavailable: Schema.optional(
6295
6339
  Schema.Union([Schema.Array(Schema.String), Schema.Null]),
6296
6340
  ),
@@ -8550,7 +8594,7 @@ export const GetResourceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
8550
8594
  id: Schema.String,
8551
8595
  accountId: Schema.String,
8552
8596
  cloudType: Schema.Literals(["AWS", "AZURE", "GOOGLE", "CLOUDFLARE"]),
8553
- config: Schema.Struct({}),
8597
+ config: Schema.Record(Schema.String, Schema.Unknown),
8554
8598
  deploymentProvider: Schema.String,
8555
8599
  managed: Schema.Boolean,
8556
8600
  monthlyCostEstimate: Schema.Struct({
@@ -8561,9 +8605,9 @@ export const GetResourceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
8561
8605
  ),
8562
8606
  name: Schema.String,
8563
8607
  nativeId: Schema.String,
8564
- observations: Schema.Struct({}),
8608
+ observations: Schema.Record(Schema.String, Schema.Unknown),
8565
8609
  providerIds: Schema.Array(Schema.String),
8566
- providerNamesById: Schema.Struct({}),
8610
+ providerNamesById: Schema.Record(Schema.String, Schema.Unknown),
8567
8611
  region: Schema.String,
8568
8612
  resourceGroup: Schema.String,
8569
8613
  resourceType: Schema.Literals([
@@ -9128,8 +9172,8 @@ export const GetResourceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
9128
9172
  }),
9129
9173
  ),
9130
9174
  ),
9131
- state: Schema.Struct({}),
9132
- tags: Schema.Struct({}),
9175
+ state: Schema.Record(Schema.String, Schema.Unknown),
9176
+ tags: Schema.Record(Schema.String, Schema.Unknown),
9133
9177
  updatedAt: Schema.String,
9134
9178
  url: Schema.String,
9135
9179
  managedBy: Schema.optional(
@@ -9652,7 +9696,7 @@ export const ListResourcesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
9652
9696
  id: Schema.String,
9653
9697
  accountId: Schema.String,
9654
9698
  cloudType: Schema.Literals(["AWS", "AZURE", "GOOGLE", "CLOUDFLARE"]),
9655
- config: Schema.Struct({}),
9699
+ config: Schema.Record(Schema.String, Schema.Unknown),
9656
9700
  deploymentProvider: Schema.String,
9657
9701
  managed: Schema.Boolean,
9658
9702
  monthlyCostEstimate: Schema.Struct({
@@ -9666,9 +9710,9 @@ export const ListResourcesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
9666
9710
  ),
9667
9711
  name: Schema.String,
9668
9712
  nativeId: Schema.String,
9669
- observations: Schema.Struct({}),
9713
+ observations: Schema.Record(Schema.String, Schema.Unknown),
9670
9714
  providerIds: Schema.Array(Schema.String),
9671
- providerNamesById: Schema.Struct({}),
9715
+ providerNamesById: Schema.Record(Schema.String, Schema.Unknown),
9672
9716
  region: Schema.String,
9673
9717
  resourceGroup: Schema.String,
9674
9718
  resourceType: Schema.Literals([
@@ -10091,8 +10135,8 @@ export const ListResourcesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
10091
10135
  }),
10092
10136
  ),
10093
10137
  ),
10094
- state: Schema.Struct({}),
10095
- tags: Schema.Struct({}),
10138
+ state: Schema.Record(Schema.String, Schema.Unknown),
10139
+ tags: Schema.Record(Schema.String, Schema.Unknown),
10096
10140
  updatedAt: Schema.String,
10097
10141
  url: Schema.String,
10098
10142
  managedBy: Schema.optional(
@@ -5,6 +5,7 @@
5
5
  * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service magic-network-monitoring
6
6
  */
7
7
 
8
+ import * as stream from "effect/Stream";
8
9
  import * as Schema from "effect/Schema";
9
10
  import type * as HttpClient from "effect/unstable/http/HttpClient";
10
11
  import * as API from "../client/api.ts";
@@ -407,10 +408,40 @@ export const GetConfigFullRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
407
408
  T.Http({ method: "GET", path: "/accounts/{account_id}/mnm/config/full" }),
408
409
  ) as unknown as Schema.Schema<GetConfigFullRequest>;
409
410
 
410
- export type GetConfigFullResponse = unknown;
411
+ export interface GetConfigFullResponse {
412
+ /** Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router. */
413
+ defaultSampling: number;
414
+ /** The account name. */
415
+ name: string;
416
+ routerIps: string[];
417
+ warpDevices: { id: string; name: string; routerIp: string }[];
418
+ }
411
419
 
412
- export const GetConfigFullResponse =
413
- /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<GetConfigFullResponse>;
420
+ export const GetConfigFullResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
421
+ defaultSampling: Schema.Number,
422
+ name: Schema.String,
423
+ routerIps: Schema.Array(Schema.String),
424
+ warpDevices: Schema.Array(
425
+ Schema.Struct({
426
+ id: Schema.String,
427
+ name: Schema.String,
428
+ routerIp: Schema.String,
429
+ }).pipe(
430
+ Schema.encodeKeys({ id: "id", name: "name", routerIp: "router_ip" }),
431
+ ),
432
+ ),
433
+ })
434
+ .pipe(
435
+ Schema.encodeKeys({
436
+ defaultSampling: "default_sampling",
437
+ name: "name",
438
+ routerIps: "router_ips",
439
+ warpDevices: "warp_devices",
440
+ }),
441
+ )
442
+ .pipe(
443
+ T.ResponsePath("result"),
444
+ ) as unknown as Schema.Schema<GetConfigFullResponse>;
414
445
 
415
446
  export type GetConfigFullError = DefaultErrors;
416
447
 
@@ -545,22 +576,153 @@ export const ListRulesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
545
576
  T.Http({ method: "GET", path: "/accounts/{account_id}/mnm/rules" }),
546
577
  ) as unknown as Schema.Schema<ListRulesRequest>;
547
578
 
548
- export type ListRulesResponse = unknown;
579
+ export interface ListRulesResponse {
580
+ result: ({
581
+ automaticAdvertisement: boolean | null;
582
+ name: string;
583
+ prefixes: string[];
584
+ type: "threshold" | "zscore" | "advanced_ddos";
585
+ id?: string | null;
586
+ bandwidthThreshold?: number | null;
587
+ duration?:
588
+ | "1m"
589
+ | "5m"
590
+ | "10m"
591
+ | "15m"
592
+ | "20m"
593
+ | "30m"
594
+ | "45m"
595
+ | "60m"
596
+ | null;
597
+ packetThreshold?: number | null;
598
+ prefixMatch?: "exact" | "subnet" | "supernet" | null;
599
+ zscoreSensitivity?: "low" | "medium" | "high" | null;
600
+ zscoreTarget?: "bits" | "packets" | null;
601
+ } | null)[];
602
+ }
549
603
 
550
- export const ListRulesResponse =
551
- /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<ListRulesResponse>;
604
+ export const ListRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
605
+ result: Schema.Array(
606
+ Schema.Union([
607
+ Schema.Struct({
608
+ automaticAdvertisement: Schema.Union([Schema.Boolean, Schema.Null]),
609
+ name: Schema.String,
610
+ prefixes: Schema.Array(Schema.String),
611
+ type: Schema.Literals(["threshold", "zscore", "advanced_ddos"]),
612
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
613
+ bandwidthThreshold: Schema.optional(
614
+ Schema.Union([Schema.Number, Schema.Null]),
615
+ ),
616
+ duration: Schema.optional(
617
+ Schema.Union([
618
+ Schema.Literals([
619
+ "1m",
620
+ "5m",
621
+ "10m",
622
+ "15m",
623
+ "20m",
624
+ "30m",
625
+ "45m",
626
+ "60m",
627
+ ]),
628
+ Schema.Null,
629
+ ]),
630
+ ),
631
+ packetThreshold: Schema.optional(
632
+ Schema.Union([Schema.Number, Schema.Null]),
633
+ ),
634
+ prefixMatch: Schema.optional(
635
+ Schema.Union([
636
+ Schema.Literal("exact"),
637
+ Schema.Literal("subnet"),
638
+ Schema.Literal("supernet"),
639
+ Schema.Null,
640
+ ]),
641
+ ),
642
+ zscoreSensitivity: Schema.optional(
643
+ Schema.Union([
644
+ Schema.Literal("low"),
645
+ Schema.Literal("medium"),
646
+ Schema.Literal("high"),
647
+ Schema.Null,
648
+ ]),
649
+ ),
650
+ zscoreTarget: Schema.optional(
651
+ Schema.Union([
652
+ Schema.Literal("bits"),
653
+ Schema.Literal("packets"),
654
+ Schema.Null,
655
+ ]),
656
+ ),
657
+ }).pipe(
658
+ Schema.encodeKeys({
659
+ automaticAdvertisement: "automatic_advertisement",
660
+ name: "name",
661
+ prefixes: "prefixes",
662
+ type: "type",
663
+ id: "id",
664
+ bandwidthThreshold: "bandwidth_threshold",
665
+ duration: "duration",
666
+ packetThreshold: "packet_threshold",
667
+ prefixMatch: "prefix_match",
668
+ zscoreSensitivity: "zscore_sensitivity",
669
+ zscoreTarget: "zscore_target",
670
+ }),
671
+ ),
672
+ Schema.Null,
673
+ ]),
674
+ ),
675
+ }) as unknown as Schema.Schema<ListRulesResponse>;
552
676
 
553
677
  export type ListRulesError = DefaultErrors;
554
678
 
555
- export const listRules: API.OperationMethod<
679
+ export const listRules: API.PaginatedOperationMethod<
556
680
  ListRulesRequest,
557
681
  ListRulesResponse,
558
682
  ListRulesError,
559
683
  Credentials | HttpClient.HttpClient
560
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
684
+ > & {
685
+ pages: (
686
+ input: ListRulesRequest,
687
+ ) => stream.Stream<
688
+ ListRulesResponse,
689
+ ListRulesError,
690
+ Credentials | HttpClient.HttpClient
691
+ >;
692
+ items: (input: ListRulesRequest) => stream.Stream<
693
+ {
694
+ automaticAdvertisement: boolean | null;
695
+ name: string;
696
+ prefixes: string[];
697
+ type: "threshold" | "zscore" | "advanced_ddos";
698
+ id?: string | null;
699
+ bandwidthThreshold?: number | null;
700
+ duration?:
701
+ | "1m"
702
+ | "5m"
703
+ | "10m"
704
+ | "15m"
705
+ | "20m"
706
+ | "30m"
707
+ | "45m"
708
+ | "60m"
709
+ | null;
710
+ packetThreshold?: number | null;
711
+ prefixMatch?: "exact" | "subnet" | "supernet" | null;
712
+ zscoreSensitivity?: "low" | "medium" | "high" | null;
713
+ zscoreTarget?: "bits" | "packets" | null;
714
+ } | null,
715
+ ListRulesError,
716
+ Credentials | HttpClient.HttpClient
717
+ >;
718
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
561
719
  input: ListRulesRequest,
562
720
  output: ListRulesResponse,
563
721
  errors: [],
722
+ pagination: {
723
+ mode: "single",
724
+ items: "result",
725
+ } as const,
564
726
  }));
565
727
 
566
728
  export interface CreateRuleRequest {