cloudflare 3.0.0-beta.10 → 3.0.0-beta.12

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 (520) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/core.d.ts.map +1 -1
  3. package/core.js +1 -1
  4. package/core.js.map +1 -1
  5. package/core.mjs +1 -1
  6. package/core.mjs.map +1 -1
  7. package/index.d.mts +10 -6
  8. package/index.d.ts +10 -6
  9. package/index.d.ts.map +1 -1
  10. package/index.js +4 -4
  11. package/index.js.map +1 -1
  12. package/index.mjs +4 -4
  13. package/index.mjs.map +1 -1
  14. package/package.json +1 -1
  15. package/resources/alerting/alerting.d.ts +27 -5
  16. package/resources/alerting/alerting.d.ts.map +1 -1
  17. package/resources/alerting/alerting.js +13 -3
  18. package/resources/alerting/alerting.js.map +1 -1
  19. package/resources/alerting/alerting.mjs +13 -3
  20. package/resources/alerting/alerting.mjs.map +1 -1
  21. package/resources/alerting/available-alerts.d.ts +21 -0
  22. package/resources/alerting/available-alerts.d.ts.map +1 -0
  23. package/resources/alerting/available-alerts.js +18 -0
  24. package/resources/alerting/available-alerts.js.map +1 -0
  25. package/resources/alerting/available-alerts.mjs +14 -0
  26. package/resources/alerting/available-alerts.mjs.map +1 -0
  27. package/resources/alerting/{v3/destinations → destinations}/destinations.d.ts +3 -3
  28. package/resources/alerting/destinations/destinations.d.ts.map +1 -0
  29. package/resources/alerting/{v3/destinations → destinations}/destinations.js +3 -3
  30. package/resources/alerting/destinations/destinations.js.map +1 -0
  31. package/resources/alerting/{v3/destinations → destinations}/destinations.mjs +3 -3
  32. package/resources/alerting/destinations/destinations.mjs.map +1 -0
  33. package/resources/alerting/{v3/destinations → destinations}/eligible.d.ts +1 -1
  34. package/resources/alerting/destinations/eligible.d.ts.map +1 -0
  35. package/resources/alerting/destinations/eligible.js.map +1 -0
  36. package/resources/alerting/destinations/eligible.mjs.map +1 -0
  37. package/resources/alerting/destinations/index.d.ts.map +1 -0
  38. package/resources/alerting/destinations/index.js.map +1 -0
  39. package/resources/alerting/destinations/index.mjs.map +1 -0
  40. package/resources/alerting/{v3/destinations → destinations}/pagerduty.d.ts +1 -1
  41. package/resources/alerting/destinations/pagerduty.d.ts.map +1 -0
  42. package/resources/alerting/destinations/pagerduty.js.map +1 -0
  43. package/resources/alerting/destinations/pagerduty.mjs.map +1 -0
  44. package/resources/alerting/{v3/destinations → destinations}/webhooks.d.ts +1 -1
  45. package/resources/alerting/destinations/webhooks.d.ts.map +1 -0
  46. package/resources/alerting/destinations/webhooks.js.map +1 -0
  47. package/resources/alerting/destinations/webhooks.mjs.map +1 -0
  48. package/resources/alerting/{v3/histories.d.ts → history.d.ts} +7 -7
  49. package/resources/alerting/history.d.ts.map +1 -0
  50. package/resources/alerting/{v3/histories.js → history.js} +8 -8
  51. package/resources/alerting/history.js.map +1 -0
  52. package/resources/alerting/{v3/histories.mjs → history.mjs} +6 -6
  53. package/resources/alerting/history.mjs.map +1 -0
  54. package/resources/alerting/index.d.ts +4 -1
  55. package/resources/alerting/index.d.ts.map +1 -1
  56. package/resources/alerting/index.js +10 -3
  57. package/resources/alerting/index.js.map +1 -1
  58. package/resources/alerting/index.mjs +4 -1
  59. package/resources/alerting/index.mjs.map +1 -1
  60. package/resources/alerting/{v3/policies.d.ts → policies.d.ts} +1 -1
  61. package/resources/alerting/policies.d.ts.map +1 -0
  62. package/resources/alerting/policies.js.map +1 -0
  63. package/resources/alerting/policies.mjs.map +1 -0
  64. package/resources/email-routing/{routing/addresses.d.ts → addresses.d.ts} +1 -1
  65. package/resources/email-routing/addresses.d.ts.map +1 -0
  66. package/resources/email-routing/{routing/addresses.js → addresses.js} +1 -1
  67. package/resources/email-routing/addresses.js.map +1 -0
  68. package/resources/email-routing/{routing/addresses.mjs → addresses.mjs} +1 -1
  69. package/resources/email-routing/addresses.mjs.map +1 -0
  70. package/resources/email-routing/{routing/dns.d.ts → dns.d.ts} +1 -1
  71. package/resources/email-routing/dns.d.ts.map +1 -0
  72. package/resources/email-routing/dns.js.map +1 -0
  73. package/resources/email-routing/dns.mjs.map +1 -0
  74. package/resources/email-routing/email-routing.d.ts +188 -7
  75. package/resources/email-routing/email-routing.d.ts.map +1 -1
  76. package/resources/email-routing/email-routing.js +30 -3
  77. package/resources/email-routing/email-routing.js.map +1 -1
  78. package/resources/email-routing/email-routing.mjs +30 -3
  79. package/resources/email-routing/email-routing.mjs.map +1 -1
  80. package/resources/email-routing/index.d.ts +4 -2
  81. package/resources/email-routing/index.d.ts.map +1 -1
  82. package/resources/email-routing/index.js +9 -3
  83. package/resources/email-routing/index.js.map +1 -1
  84. package/resources/email-routing/index.mjs +4 -2
  85. package/resources/email-routing/index.mjs.map +1 -1
  86. package/resources/email-routing/{routing/rules → rules}/catch-alls.d.ts +1 -1
  87. package/resources/email-routing/rules/catch-alls.d.ts.map +1 -0
  88. package/resources/email-routing/rules/catch-alls.js.map +1 -0
  89. package/resources/email-routing/rules/catch-alls.mjs.map +1 -0
  90. package/resources/email-routing/rules/index.d.ts.map +1 -0
  91. package/resources/email-routing/rules/index.js.map +1 -0
  92. package/resources/email-routing/rules/index.mjs.map +1 -0
  93. package/resources/email-routing/{routing/rules → rules}/rules.d.ts +2 -2
  94. package/resources/email-routing/rules/rules.d.ts.map +1 -0
  95. package/resources/email-routing/{routing/rules → rules}/rules.js +2 -2
  96. package/resources/email-routing/rules/rules.js.map +1 -0
  97. package/resources/email-routing/{routing/rules → rules}/rules.mjs +2 -2
  98. package/resources/email-routing/rules/rules.mjs.map +1 -0
  99. package/resources/index.d.ts +3 -3
  100. package/resources/index.d.ts.map +1 -1
  101. package/resources/index.js +5 -5
  102. package/resources/index.js.map +1 -1
  103. package/resources/index.mjs +3 -3
  104. package/resources/index.mjs.map +1 -1
  105. package/resources/logs/index.d.ts +1 -1
  106. package/resources/logs/index.js +2 -2
  107. package/resources/logs/index.mjs +1 -1
  108. package/resources/logs/logs.d.ts +5 -5
  109. package/resources/logs/logs.js +3 -3
  110. package/resources/logs/logs.mjs +3 -3
  111. package/resources/logs/rayid.d.ts +9 -9
  112. package/resources/logs/rayid.js +5 -5
  113. package/resources/logs/rayid.mjs +3 -3
  114. package/resources/magic-transit/sites/acls.d.ts +28 -28
  115. package/resources/magic-transit/sites/index.d.ts +2 -2
  116. package/resources/magic-transit/sites/index.js +3 -3
  117. package/resources/magic-transit/sites/index.mjs +2 -2
  118. package/resources/magic-transit/sites/lans.d.ts +77 -77
  119. package/resources/magic-transit/sites/lans.js +5 -5
  120. package/resources/magic-transit/sites/lans.mjs +3 -3
  121. package/resources/magic-transit/sites/sites.d.ts +26 -26
  122. package/resources/magic-transit/sites/sites.js +6 -6
  123. package/resources/magic-transit/sites/sites.mjs +6 -6
  124. package/resources/magic-transit/sites/wans.d.ts +63 -63
  125. package/resources/magic-transit/sites/wans.js +5 -5
  126. package/resources/magic-transit/sites/wans.mjs +3 -3
  127. package/resources/pcaps/{downloads.d.ts → download.d.ts} +5 -5
  128. package/resources/pcaps/download.d.ts.map +1 -0
  129. package/resources/pcaps/{downloads.js → download.js} +6 -6
  130. package/resources/pcaps/download.js.map +1 -0
  131. package/resources/pcaps/{downloads.mjs → download.mjs} +4 -4
  132. package/resources/pcaps/download.mjs.map +1 -0
  133. package/resources/pcaps/index.d.ts +2 -2
  134. package/resources/pcaps/index.d.ts.map +1 -1
  135. package/resources/pcaps/index.js +5 -5
  136. package/resources/pcaps/index.js.map +1 -1
  137. package/resources/pcaps/index.mjs +2 -2
  138. package/resources/pcaps/index.mjs.map +1 -1
  139. package/resources/pcaps/{ownerships.d.ts → ownership.d.ts} +10 -10
  140. package/resources/pcaps/ownership.d.ts.map +1 -0
  141. package/resources/pcaps/{ownerships.js → ownership.js} +6 -6
  142. package/resources/pcaps/ownership.js.map +1 -0
  143. package/resources/pcaps/{ownerships.mjs → ownership.mjs} +4 -4
  144. package/resources/pcaps/ownership.mjs.map +1 -0
  145. package/resources/pcaps/pcaps.d.ts +13 -13
  146. package/resources/pcaps/pcaps.d.ts.map +1 -1
  147. package/resources/pcaps/pcaps.js +6 -6
  148. package/resources/pcaps/pcaps.js.map +1 -1
  149. package/resources/pcaps/pcaps.mjs +6 -6
  150. package/resources/pcaps/pcaps.mjs.map +1 -1
  151. package/resources/{available-plans.d.ts → plans.d.ts} +8 -8
  152. package/resources/plans.d.ts.map +1 -0
  153. package/resources/{available-plans.js → plans.js} +6 -6
  154. package/resources/plans.js.map +1 -0
  155. package/resources/{available-plans.mjs → plans.mjs} +4 -4
  156. package/resources/plans.mjs.map +1 -0
  157. package/resources/{available-rate-plans.d.ts → rate-plans.d.ts} +12 -12
  158. package/resources/rate-plans.d.ts.map +1 -0
  159. package/resources/{available-rate-plans.js → rate-plans.js} +6 -6
  160. package/resources/rate-plans.js.map +1 -0
  161. package/resources/{available-rate-plans.mjs → rate-plans.mjs} +4 -4
  162. package/resources/rate-plans.mjs.map +1 -0
  163. package/resources/rulesets/versions/{by-tags.d.ts → by-tag.d.ts} +5 -5
  164. package/resources/rulesets/versions/by-tag.d.ts.map +1 -0
  165. package/resources/rulesets/versions/{by-tags.js → by-tag.js} +6 -6
  166. package/resources/rulesets/versions/by-tag.js.map +1 -0
  167. package/resources/rulesets/versions/{by-tags.mjs → by-tag.mjs} +4 -4
  168. package/resources/rulesets/versions/by-tag.mjs.map +1 -0
  169. package/resources/rulesets/versions/index.d.ts +1 -1
  170. package/resources/rulesets/versions/index.d.ts.map +1 -1
  171. package/resources/rulesets/versions/index.js +3 -3
  172. package/resources/rulesets/versions/index.js.map +1 -1
  173. package/resources/rulesets/versions/index.mjs +1 -1
  174. package/resources/rulesets/versions/index.mjs.map +1 -1
  175. package/resources/rulesets/versions/versions.d.ts +4 -4
  176. package/resources/rulesets/versions/versions.d.ts.map +1 -1
  177. package/resources/rulesets/versions/versions.js +3 -3
  178. package/resources/rulesets/versions/versions.js.map +1 -1
  179. package/resources/rulesets/versions/versions.mjs +3 -3
  180. package/resources/rulesets/versions/versions.mjs.map +1 -1
  181. package/resources/rum/index.d.ts +1 -1
  182. package/resources/rum/index.d.ts.map +1 -1
  183. package/resources/rum/index.js +4 -4
  184. package/resources/rum/index.js.map +1 -1
  185. package/resources/rum/index.mjs +1 -1
  186. package/resources/rum/index.mjs.map +1 -1
  187. package/resources/rum/rum.d.ts +11 -11
  188. package/resources/rum/rum.d.ts.map +1 -1
  189. package/resources/rum/rum.js +4 -4
  190. package/resources/rum/rum.js.map +1 -1
  191. package/resources/rum/rum.mjs +4 -4
  192. package/resources/rum/rum.mjs.map +1 -1
  193. package/resources/rum/{site-infos.d.ts → site-info.d.ts} +12 -12
  194. package/resources/rum/site-info.d.ts.map +1 -0
  195. package/resources/rum/{site-infos.js → site-info.js} +8 -8
  196. package/resources/rum/site-info.js.map +1 -0
  197. package/resources/rum/{site-infos.mjs → site-info.mjs} +6 -6
  198. package/resources/rum/site-info.mjs.map +1 -0
  199. package/resources/stream/{clips.d.ts → clip.d.ts} +6 -6
  200. package/resources/stream/clip.d.ts.map +1 -0
  201. package/resources/stream/{clips.js → clip.js} +6 -6
  202. package/resources/stream/clip.js.map +1 -0
  203. package/resources/stream/{clips.mjs → clip.mjs} +4 -4
  204. package/resources/stream/clip.mjs.map +1 -0
  205. package/resources/stream/{copies.d.ts → copy.d.ts} +5 -5
  206. package/resources/stream/copy.d.ts.map +1 -0
  207. package/resources/stream/{copies.js → copy.js} +6 -6
  208. package/resources/stream/copy.js.map +1 -0
  209. package/resources/stream/{copies.mjs → copy.mjs} +4 -4
  210. package/resources/stream/copy.mjs.map +1 -0
  211. package/resources/stream/{direct-uploads.d.ts → direct-upload.d.ts} +6 -6
  212. package/resources/stream/direct-upload.d.ts.map +1 -0
  213. package/resources/stream/{direct-uploads.js → direct-upload.js} +6 -6
  214. package/resources/stream/direct-upload.js.map +1 -0
  215. package/resources/stream/{direct-uploads.mjs → direct-upload.mjs} +4 -4
  216. package/resources/stream/direct-upload.mjs.map +1 -0
  217. package/resources/stream/{embeds.d.ts → embed.d.ts} +6 -6
  218. package/resources/stream/embed.d.ts.map +1 -0
  219. package/resources/stream/{embeds.js → embed.js} +6 -6
  220. package/resources/stream/embed.js.map +1 -0
  221. package/resources/stream/{embeds.mjs → embed.mjs} +4 -4
  222. package/resources/stream/embed.mjs.map +1 -0
  223. package/resources/stream/index.d.ts +5 -5
  224. package/resources/stream/index.d.ts.map +1 -1
  225. package/resources/stream/index.js +11 -11
  226. package/resources/stream/index.js.map +1 -1
  227. package/resources/stream/index.mjs +5 -5
  228. package/resources/stream/index.mjs.map +1 -1
  229. package/resources/stream/stream.d.ts +24 -24
  230. package/resources/stream/stream.d.ts.map +1 -1
  231. package/resources/stream/stream.js +15 -15
  232. package/resources/stream/stream.js.map +1 -1
  233. package/resources/stream/stream.mjs +15 -15
  234. package/resources/stream/stream.mjs.map +1 -1
  235. package/resources/stream/{tokens.d.ts → token.d.ts} +6 -6
  236. package/resources/stream/token.d.ts.map +1 -0
  237. package/resources/stream/{tokens.js → token.js} +6 -6
  238. package/resources/stream/token.js.map +1 -0
  239. package/resources/stream/{tokens.mjs → token.mjs} +4 -4
  240. package/resources/stream/token.mjs.map +1 -0
  241. package/resources/workers/ai.d.ts +1 -0
  242. package/resources/workers/ai.d.ts.map +1 -1
  243. package/resources/workers/ai.js.map +1 -1
  244. package/resources/workers/ai.mjs.map +1 -1
  245. package/resources/workers-for-platforms/dispatch/namespaces/scripts/{content/bindings.d.ts → bindings.d.ts} +1 -1
  246. package/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.d.ts.map +1 -0
  247. package/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.js.map +1 -0
  248. package/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.mjs.map +1 -0
  249. package/resources/workers-for-platforms/dispatch/namespaces/scripts/{content/scripts.d.ts → content.d.ts} +12 -12
  250. package/resources/workers-for-platforms/dispatch/namespaces/scripts/content.d.ts.map +1 -0
  251. package/resources/workers-for-platforms/dispatch/namespaces/scripts/{content/scripts.js → content.js} +6 -6
  252. package/resources/workers-for-platforms/dispatch/namespaces/scripts/content.js.map +1 -0
  253. package/resources/workers-for-platforms/dispatch/namespaces/scripts/{content/scripts.mjs → content.mjs} +4 -4
  254. package/resources/workers-for-platforms/dispatch/namespaces/scripts/content.mjs.map +1 -0
  255. package/resources/workers-for-platforms/dispatch/namespaces/scripts/index.d.ts +3 -1
  256. package/resources/workers-for-platforms/dispatch/namespaces/scripts/index.d.ts.map +1 -1
  257. package/resources/workers-for-platforms/dispatch/namespaces/scripts/index.js +7 -3
  258. package/resources/workers-for-platforms/dispatch/namespaces/scripts/index.js.map +1 -1
  259. package/resources/workers-for-platforms/dispatch/namespaces/scripts/index.mjs +3 -1
  260. package/resources/workers-for-platforms/dispatch/namespaces/scripts/index.mjs.map +1 -1
  261. package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.d.ts +15 -1
  262. package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.d.ts.map +1 -1
  263. package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.js +7 -1
  264. package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.js.map +1 -1
  265. package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.mjs +7 -1
  266. package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.mjs.map +1 -1
  267. package/resources/workers-for-platforms/dispatch/namespaces/scripts/{content/settings.d.ts → settings.d.ts} +1 -1
  268. package/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.d.ts.map +1 -0
  269. package/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.js.map +1 -0
  270. package/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.mjs.map +1 -0
  271. package/resources/zero-trust/access/applications/applications.d.ts +24 -0
  272. package/resources/zero-trust/access/applications/applications.d.ts.map +1 -1
  273. package/resources/zero-trust/access/applications/applications.js.map +1 -1
  274. package/resources/zero-trust/access/applications/applications.mjs.map +1 -1
  275. package/resources/zero-trust/devices/devices.d.ts +10 -10
  276. package/resources/zero-trust/devices/devices.d.ts.map +1 -1
  277. package/resources/zero-trust/devices/devices.js +6 -6
  278. package/resources/zero-trust/devices/devices.js.map +1 -1
  279. package/resources/zero-trust/devices/devices.mjs +6 -6
  280. package/resources/zero-trust/devices/devices.mjs.map +1 -1
  281. package/resources/zero-trust/devices/index.d.ts +2 -2
  282. package/resources/zero-trust/devices/index.d.ts.map +1 -1
  283. package/resources/zero-trust/devices/index.js +5 -5
  284. package/resources/zero-trust/devices/index.js.map +1 -1
  285. package/resources/zero-trust/devices/index.mjs +2 -2
  286. package/resources/zero-trust/devices/index.mjs.map +1 -1
  287. package/resources/zero-trust/devices/{revokes.d.ts → revoke.d.ts} +6 -6
  288. package/resources/zero-trust/devices/revoke.d.ts.map +1 -0
  289. package/resources/zero-trust/devices/{revokes.js → revoke.js} +6 -6
  290. package/resources/zero-trust/devices/revoke.js.map +1 -0
  291. package/resources/zero-trust/devices/{revokes.mjs → revoke.mjs} +4 -4
  292. package/resources/zero-trust/devices/revoke.mjs.map +1 -0
  293. package/resources/zero-trust/devices/{unrevokes.d.ts → unrevoke.d.ts} +6 -6
  294. package/resources/zero-trust/devices/unrevoke.d.ts.map +1 -0
  295. package/resources/zero-trust/devices/{unrevokes.js → unrevoke.js} +6 -6
  296. package/resources/zero-trust/devices/unrevoke.js.map +1 -0
  297. package/resources/zero-trust/devices/{unrevokes.mjs → unrevoke.mjs} +4 -4
  298. package/resources/zero-trust/devices/unrevoke.mjs.map +1 -0
  299. package/resources/zones/settings/index.d.ts +1 -1
  300. package/resources/zones/settings/index.js +2 -2
  301. package/resources/zones/settings/index.mjs +1 -1
  302. package/resources/zones/settings/settings.d.ts +9 -9
  303. package/resources/zones/settings/settings.js +3 -3
  304. package/resources/zones/settings/settings.mjs +3 -3
  305. package/resources/zones/settings/webp.d.ts +11 -11
  306. package/resources/zones/settings/webp.js +5 -5
  307. package/resources/zones/settings/webp.mjs +3 -3
  308. package/src/core.ts +2 -1
  309. package/src/index.ts +10 -6
  310. package/src/resources/alerting/alerting.ts +27 -5
  311. package/src/resources/alerting/available-alerts.ts +36 -0
  312. package/src/resources/alerting/{v3/destinations → destinations}/destinations.ts +1 -1
  313. package/src/resources/alerting/{v3/destinations → destinations}/eligible.ts +2 -2
  314. package/src/resources/alerting/{v3/destinations → destinations}/pagerduty.ts +2 -2
  315. package/src/resources/alerting/{v3/destinations → destinations}/webhooks.ts +2 -2
  316. package/src/resources/alerting/{v3/histories.ts → history.ts} +9 -9
  317. package/src/resources/alerting/index.ts +16 -1
  318. package/src/resources/alerting/{v3/policies.ts → policies.ts} +2 -2
  319. package/src/resources/email-routing/{routing/addresses.ts → addresses.ts} +4 -4
  320. package/src/resources/email-routing/{routing/dns.ts → dns.ts} +2 -2
  321. package/src/resources/email-routing/email-routing.ts +244 -7
  322. package/src/resources/email-routing/index.ts +30 -6
  323. package/src/resources/email-routing/{routing/rules → rules}/catch-alls.ts +2 -2
  324. package/src/resources/email-routing/{routing/rules → rules}/rules.ts +4 -4
  325. package/src/resources/index.ts +9 -3
  326. package/src/resources/logs/index.ts +1 -1
  327. package/src/resources/logs/logs.ts +5 -5
  328. package/src/resources/logs/rayid.ts +12 -12
  329. package/src/resources/magic-transit/sites/acls.ts +28 -28
  330. package/src/resources/magic-transit/sites/index.ts +22 -22
  331. package/src/resources/magic-transit/sites/lans.ts +87 -87
  332. package/src/resources/magic-transit/sites/sites.ts +26 -26
  333. package/src/resources/magic-transit/sites/wans.ts +73 -73
  334. package/src/resources/pcaps/{downloads.ts → download.ts} +4 -4
  335. package/src/resources/pcaps/index.ts +3 -3
  336. package/src/resources/pcaps/{ownerships.ts → ownership.ts} +9 -9
  337. package/src/resources/pcaps/pcaps.ts +13 -13
  338. package/src/resources/{available-plans.ts → plans.ts} +8 -11
  339. package/src/resources/{available-rate-plans.ts → rate-plans.ts} +12 -16
  340. package/src/resources/rulesets/versions/{by-tags.ts → by-tag.ts} +4 -4
  341. package/src/resources/rulesets/versions/index.ts +1 -1
  342. package/src/resources/rulesets/versions/versions.ts +4 -4
  343. package/src/resources/rum/index.ts +2 -2
  344. package/src/resources/rum/rum.ts +11 -11
  345. package/src/resources/rum/{site-infos.ts → site-info.ts} +11 -11
  346. package/src/resources/stream/{clips.ts → clip.ts} +5 -5
  347. package/src/resources/stream/{copies.ts → copy.ts} +4 -4
  348. package/src/resources/stream/{direct-uploads.ts → direct-upload.ts} +5 -5
  349. package/src/resources/stream/{embeds.ts → embed.ts} +5 -5
  350. package/src/resources/stream/index.ts +5 -5
  351. package/src/resources/stream/stream.ts +24 -24
  352. package/src/resources/stream/{tokens.ts → token.ts} +5 -5
  353. package/src/resources/workers/ai.ts +2 -0
  354. package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/{content/bindings.ts → bindings.ts} +2 -2
  355. package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/{content/scripts.ts → content.ts} +16 -16
  356. package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/index.ts +9 -1
  357. package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts +15 -1
  358. package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/{content/settings.ts → settings.ts} +2 -2
  359. package/src/resources/zero-trust/access/applications/applications.ts +27 -0
  360. package/src/resources/zero-trust/devices/devices.ts +10 -10
  361. package/src/resources/zero-trust/devices/index.ts +2 -2
  362. package/src/resources/zero-trust/devices/{revokes.ts → revoke.ts} +5 -5
  363. package/src/resources/zero-trust/devices/{unrevokes.ts → unrevoke.ts} +5 -5
  364. package/src/resources/zones/settings/index.ts +1 -1
  365. package/src/resources/zones/settings/settings.ts +9 -9
  366. package/src/resources/zones/settings/webp.ts +13 -13
  367. package/src/version.ts +1 -1
  368. package/version.d.ts +1 -1
  369. package/version.js +1 -1
  370. package/version.mjs +1 -1
  371. package/resources/alerting/v3/destinations/destinations.d.ts.map +0 -1
  372. package/resources/alerting/v3/destinations/destinations.js.map +0 -1
  373. package/resources/alerting/v3/destinations/destinations.mjs.map +0 -1
  374. package/resources/alerting/v3/destinations/eligible.d.ts.map +0 -1
  375. package/resources/alerting/v3/destinations/eligible.js.map +0 -1
  376. package/resources/alerting/v3/destinations/eligible.mjs.map +0 -1
  377. package/resources/alerting/v3/destinations/index.d.ts.map +0 -1
  378. package/resources/alerting/v3/destinations/index.js.map +0 -1
  379. package/resources/alerting/v3/destinations/index.mjs.map +0 -1
  380. package/resources/alerting/v3/destinations/pagerduty.d.ts.map +0 -1
  381. package/resources/alerting/v3/destinations/pagerduty.js.map +0 -1
  382. package/resources/alerting/v3/destinations/pagerduty.mjs.map +0 -1
  383. package/resources/alerting/v3/destinations/webhooks.d.ts.map +0 -1
  384. package/resources/alerting/v3/destinations/webhooks.js.map +0 -1
  385. package/resources/alerting/v3/destinations/webhooks.mjs.map +0 -1
  386. package/resources/alerting/v3/histories.d.ts.map +0 -1
  387. package/resources/alerting/v3/histories.js.map +0 -1
  388. package/resources/alerting/v3/histories.mjs.map +0 -1
  389. package/resources/alerting/v3/index.d.ts +0 -5
  390. package/resources/alerting/v3/index.d.ts.map +0 -1
  391. package/resources/alerting/v3/index.js +0 -14
  392. package/resources/alerting/v3/index.js.map +0 -1
  393. package/resources/alerting/v3/index.mjs +0 -6
  394. package/resources/alerting/v3/index.mjs.map +0 -1
  395. package/resources/alerting/v3/policies.d.ts.map +0 -1
  396. package/resources/alerting/v3/policies.js.map +0 -1
  397. package/resources/alerting/v3/policies.mjs.map +0 -1
  398. package/resources/alerting/v3/v3.d.ts +0 -43
  399. package/resources/alerting/v3/v3.d.ts.map +0 -1
  400. package/resources/alerting/v3/v3.js +0 -54
  401. package/resources/alerting/v3/v3.js.map +0 -1
  402. package/resources/alerting/v3/v3.mjs +0 -27
  403. package/resources/alerting/v3/v3.mjs.map +0 -1
  404. package/resources/available-plans.d.ts.map +0 -1
  405. package/resources/available-plans.js.map +0 -1
  406. package/resources/available-plans.mjs.map +0 -1
  407. package/resources/available-rate-plans.d.ts.map +0 -1
  408. package/resources/available-rate-plans.js.map +0 -1
  409. package/resources/available-rate-plans.mjs.map +0 -1
  410. package/resources/email-routing/routing/addresses.d.ts.map +0 -1
  411. package/resources/email-routing/routing/addresses.js.map +0 -1
  412. package/resources/email-routing/routing/addresses.mjs.map +0 -1
  413. package/resources/email-routing/routing/dns.d.ts.map +0 -1
  414. package/resources/email-routing/routing/dns.js.map +0 -1
  415. package/resources/email-routing/routing/dns.mjs.map +0 -1
  416. package/resources/email-routing/routing/index.d.ts +0 -5
  417. package/resources/email-routing/routing/index.d.ts.map +0 -1
  418. package/resources/email-routing/routing/index.js +0 -15
  419. package/resources/email-routing/routing/index.js.map +0 -1
  420. package/resources/email-routing/routing/index.mjs +0 -6
  421. package/resources/email-routing/routing/index.mjs.map +0 -1
  422. package/resources/email-routing/routing/routing.d.ts +0 -194
  423. package/resources/email-routing/routing/routing.d.ts.map +0 -1
  424. package/resources/email-routing/routing/routing.js +0 -67
  425. package/resources/email-routing/routing/routing.js.map +0 -1
  426. package/resources/email-routing/routing/routing.mjs +0 -40
  427. package/resources/email-routing/routing/routing.mjs.map +0 -1
  428. package/resources/email-routing/routing/rules/catch-alls.d.ts.map +0 -1
  429. package/resources/email-routing/routing/rules/catch-alls.js.map +0 -1
  430. package/resources/email-routing/routing/rules/catch-alls.mjs.map +0 -1
  431. package/resources/email-routing/routing/rules/index.d.ts.map +0 -1
  432. package/resources/email-routing/routing/rules/index.js.map +0 -1
  433. package/resources/email-routing/routing/rules/index.mjs.map +0 -1
  434. package/resources/email-routing/routing/rules/rules.d.ts.map +0 -1
  435. package/resources/email-routing/routing/rules/rules.js.map +0 -1
  436. package/resources/email-routing/routing/rules/rules.mjs.map +0 -1
  437. package/resources/pcaps/downloads.d.ts.map +0 -1
  438. package/resources/pcaps/downloads.js.map +0 -1
  439. package/resources/pcaps/downloads.mjs.map +0 -1
  440. package/resources/pcaps/ownerships.d.ts.map +0 -1
  441. package/resources/pcaps/ownerships.js.map +0 -1
  442. package/resources/pcaps/ownerships.mjs.map +0 -1
  443. package/resources/rulesets/versions/by-tags.d.ts.map +0 -1
  444. package/resources/rulesets/versions/by-tags.js.map +0 -1
  445. package/resources/rulesets/versions/by-tags.mjs.map +0 -1
  446. package/resources/rum/site-infos.d.ts.map +0 -1
  447. package/resources/rum/site-infos.js.map +0 -1
  448. package/resources/rum/site-infos.mjs.map +0 -1
  449. package/resources/stream/clips.d.ts.map +0 -1
  450. package/resources/stream/clips.js.map +0 -1
  451. package/resources/stream/clips.mjs.map +0 -1
  452. package/resources/stream/copies.d.ts.map +0 -1
  453. package/resources/stream/copies.js.map +0 -1
  454. package/resources/stream/copies.mjs.map +0 -1
  455. package/resources/stream/direct-uploads.d.ts.map +0 -1
  456. package/resources/stream/direct-uploads.js.map +0 -1
  457. package/resources/stream/direct-uploads.mjs.map +0 -1
  458. package/resources/stream/embeds.d.ts.map +0 -1
  459. package/resources/stream/embeds.js.map +0 -1
  460. package/resources/stream/embeds.mjs.map +0 -1
  461. package/resources/stream/tokens.d.ts.map +0 -1
  462. package/resources/stream/tokens.js.map +0 -1
  463. package/resources/stream/tokens.mjs.map +0 -1
  464. package/resources/workers-for-platforms/dispatch/namespaces/scripts/content/bindings.d.ts.map +0 -1
  465. package/resources/workers-for-platforms/dispatch/namespaces/scripts/content/bindings.js.map +0 -1
  466. package/resources/workers-for-platforms/dispatch/namespaces/scripts/content/bindings.mjs.map +0 -1
  467. package/resources/workers-for-platforms/dispatch/namespaces/scripts/content/content.d.ts +0 -23
  468. package/resources/workers-for-platforms/dispatch/namespaces/scripts/content/content.d.ts.map +0 -1
  469. package/resources/workers-for-platforms/dispatch/namespaces/scripts/content/content.js +0 -46
  470. package/resources/workers-for-platforms/dispatch/namespaces/scripts/content/content.js.map +0 -1
  471. package/resources/workers-for-platforms/dispatch/namespaces/scripts/content/content.mjs +0 -19
  472. package/resources/workers-for-platforms/dispatch/namespaces/scripts/content/content.mjs.map +0 -1
  473. package/resources/workers-for-platforms/dispatch/namespaces/scripts/content/index.d.ts +0 -5
  474. package/resources/workers-for-platforms/dispatch/namespaces/scripts/content/index.d.ts.map +0 -1
  475. package/resources/workers-for-platforms/dispatch/namespaces/scripts/content/index.js +0 -13
  476. package/resources/workers-for-platforms/dispatch/namespaces/scripts/content/index.js.map +0 -1
  477. package/resources/workers-for-platforms/dispatch/namespaces/scripts/content/index.mjs +0 -6
  478. package/resources/workers-for-platforms/dispatch/namespaces/scripts/content/index.mjs.map +0 -1
  479. package/resources/workers-for-platforms/dispatch/namespaces/scripts/content/scripts.d.ts.map +0 -1
  480. package/resources/workers-for-platforms/dispatch/namespaces/scripts/content/scripts.js.map +0 -1
  481. package/resources/workers-for-platforms/dispatch/namespaces/scripts/content/scripts.mjs.map +0 -1
  482. package/resources/workers-for-platforms/dispatch/namespaces/scripts/content/settings.d.ts.map +0 -1
  483. package/resources/workers-for-platforms/dispatch/namespaces/scripts/content/settings.js.map +0 -1
  484. package/resources/workers-for-platforms/dispatch/namespaces/scripts/content/settings.mjs.map +0 -1
  485. package/resources/zero-trust/devices/revokes.d.ts.map +0 -1
  486. package/resources/zero-trust/devices/revokes.js.map +0 -1
  487. package/resources/zero-trust/devices/revokes.mjs.map +0 -1
  488. package/resources/zero-trust/devices/unrevokes.d.ts.map +0 -1
  489. package/resources/zero-trust/devices/unrevokes.js.map +0 -1
  490. package/resources/zero-trust/devices/unrevokes.mjs.map +0 -1
  491. package/src/resources/alerting/v3/index.ts +0 -18
  492. package/src/resources/alerting/v3/v3.ts +0 -56
  493. package/src/resources/email-routing/routing/index.ts +0 -34
  494. package/src/resources/email-routing/routing/routing.ts +0 -250
  495. package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/content/content.ts +0 -26
  496. package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/content/index.ts +0 -12
  497. /package/resources/alerting/{v3/destinations → destinations}/eligible.js +0 -0
  498. /package/resources/alerting/{v3/destinations → destinations}/eligible.mjs +0 -0
  499. /package/resources/alerting/{v3/destinations → destinations}/index.d.ts +0 -0
  500. /package/resources/alerting/{v3/destinations → destinations}/index.js +0 -0
  501. /package/resources/alerting/{v3/destinations → destinations}/index.mjs +0 -0
  502. /package/resources/alerting/{v3/destinations → destinations}/pagerduty.js +0 -0
  503. /package/resources/alerting/{v3/destinations → destinations}/pagerduty.mjs +0 -0
  504. /package/resources/alerting/{v3/destinations → destinations}/webhooks.js +0 -0
  505. /package/resources/alerting/{v3/destinations → destinations}/webhooks.mjs +0 -0
  506. /package/resources/alerting/{v3/policies.js → policies.js} +0 -0
  507. /package/resources/alerting/{v3/policies.mjs → policies.mjs} +0 -0
  508. /package/resources/email-routing/{routing/dns.js → dns.js} +0 -0
  509. /package/resources/email-routing/{routing/dns.mjs → dns.mjs} +0 -0
  510. /package/resources/email-routing/{routing/rules → rules}/catch-alls.js +0 -0
  511. /package/resources/email-routing/{routing/rules → rules}/catch-alls.mjs +0 -0
  512. /package/resources/email-routing/{routing/rules → rules}/index.d.ts +0 -0
  513. /package/resources/email-routing/{routing/rules → rules}/index.js +0 -0
  514. /package/resources/email-routing/{routing/rules → rules}/index.mjs +0 -0
  515. /package/resources/workers-for-platforms/dispatch/namespaces/scripts/{content/bindings.js → bindings.js} +0 -0
  516. /package/resources/workers-for-platforms/dispatch/namespaces/scripts/{content/bindings.mjs → bindings.mjs} +0 -0
  517. /package/resources/workers-for-platforms/dispatch/namespaces/scripts/{content/settings.js → settings.js} +0 -0
  518. /package/resources/workers-for-platforms/dispatch/namespaces/scripts/{content/settings.mjs → settings.mjs} +0 -0
  519. /package/src/resources/alerting/{v3/destinations → destinations}/index.ts +0 -0
  520. /package/src/resources/email-routing/{routing/rules → rules}/index.ts +0 -0
@@ -2,23 +2,23 @@
2
2
 
3
3
  import * as Core from "../../../core";
4
4
  import { APIResource } from "../../../resource";
5
- import * as WansAPI from "./wans";
5
+ import * as WANsAPI from "./wans";
6
6
 
7
- export class Wans extends APIResource {
7
+ export class WANs extends APIResource {
8
8
  /**
9
9
  * Creates a new WAN.
10
10
  */
11
11
  create(
12
12
  siteId: string,
13
- params: WanCreateParams,
13
+ params: WANCreateParams,
14
14
  options?: Core.RequestOptions,
15
- ): Core.APIPromise<WanCreateResponse> {
15
+ ): Core.APIPromise<WANCreateResponse> {
16
16
  const { account_id, ...body } = params;
17
17
  return (
18
18
  this._client.post(`/accounts/${account_id}/magic/sites/${siteId}/wans`, {
19
19
  body,
20
20
  ...options,
21
- }) as Core.APIPromise<{ result: WanCreateResponse }>
21
+ }) as Core.APIPromise<{ result: WANCreateResponse }>
22
22
  )._thenUnwrap((obj) => obj.result);
23
23
  }
24
24
 
@@ -28,15 +28,15 @@ export class Wans extends APIResource {
28
28
  update(
29
29
  siteId: string,
30
30
  wanId: string,
31
- params: WanUpdateParams,
31
+ params: WANUpdateParams,
32
32
  options?: Core.RequestOptions,
33
- ): Core.APIPromise<WanUpdateResponse> {
33
+ ): Core.APIPromise<WANUpdateResponse> {
34
34
  const { account_id, ...body } = params;
35
35
  return (
36
36
  this._client.put(`/accounts/${account_id}/magic/sites/${siteId}/wans/${wanId}`, {
37
37
  body,
38
38
  ...options,
39
- }) as Core.APIPromise<{ result: WanUpdateResponse }>
39
+ }) as Core.APIPromise<{ result: WANUpdateResponse }>
40
40
  )._thenUnwrap((obj) => obj.result);
41
41
  }
42
42
 
@@ -45,13 +45,13 @@ export class Wans extends APIResource {
45
45
  */
46
46
  list(
47
47
  siteId: string,
48
- params: WanListParams,
48
+ params: WANListParams,
49
49
  options?: Core.RequestOptions,
50
- ): Core.APIPromise<WanListResponse> {
50
+ ): Core.APIPromise<WANListResponse> {
51
51
  const { account_id } = params;
52
52
  return (
53
53
  this._client.get(`/accounts/${account_id}/magic/sites/${siteId}/wans`, options) as Core.APIPromise<{
54
- result: WanListResponse;
54
+ result: WANListResponse;
55
55
  }>
56
56
  )._thenUnwrap((obj) => obj.result);
57
57
  }
@@ -62,15 +62,15 @@ export class Wans extends APIResource {
62
62
  delete(
63
63
  siteId: string,
64
64
  wanId: string,
65
- params: WanDeleteParams,
65
+ params: WANDeleteParams,
66
66
  options?: Core.RequestOptions,
67
- ): Core.APIPromise<WanDeleteResponse> {
67
+ ): Core.APIPromise<WANDeleteResponse> {
68
68
  const { account_id } = params;
69
69
  return (
70
70
  this._client.delete(
71
71
  `/accounts/${account_id}/magic/sites/${siteId}/wans/${wanId}`,
72
72
  options,
73
- ) as Core.APIPromise<{ result: WanDeleteResponse }>
73
+ ) as Core.APIPromise<{ result: WANDeleteResponse }>
74
74
  )._thenUnwrap((obj) => obj.result);
75
75
  }
76
76
 
@@ -80,25 +80,25 @@ export class Wans extends APIResource {
80
80
  get(
81
81
  siteId: string,
82
82
  wanId: string,
83
- params: WanGetParams,
83
+ params: WANGetParams,
84
84
  options?: Core.RequestOptions,
85
- ): Core.APIPromise<WanGetResponse> {
85
+ ): Core.APIPromise<WANGetResponse> {
86
86
  const { account_id } = params;
87
87
  return (
88
88
  this._client.get(
89
89
  `/accounts/${account_id}/magic/sites/${siteId}/wans/${wanId}`,
90
90
  options,
91
- ) as Core.APIPromise<{ result: WanGetResponse }>
91
+ ) as Core.APIPromise<{ result: WANGetResponse }>
92
92
  )._thenUnwrap((obj) => obj.result);
93
93
  }
94
94
  }
95
95
 
96
- export interface WanCreateResponse {
97
- wans?: Array<WanCreateResponse.Wan>;
96
+ export interface WANCreateResponse {
97
+ wans?: Array<WANCreateResponse.WAN>;
98
98
  }
99
99
 
100
- export namespace WanCreateResponse {
101
- export interface Wan {
100
+ export namespace WANCreateResponse {
101
+ export interface WAN {
102
102
  /**
103
103
  * Identifier
104
104
  */
@@ -122,7 +122,7 @@ export namespace WanCreateResponse {
122
122
  * (optional) if omitted, use DHCP. Submit secondary_address when site is in high
123
123
  * availability mode.
124
124
  */
125
- static_addressing?: Wan.StaticAddressing;
125
+ static_addressing?: WAN.StaticAddressing;
126
126
 
127
127
  /**
128
128
  * VLAN port number.
@@ -130,7 +130,7 @@ export namespace WanCreateResponse {
130
130
  vlan_tag?: number;
131
131
  }
132
132
 
133
- export namespace Wan {
133
+ export namespace WAN {
134
134
  /**
135
135
  * (optional) if omitted, use DHCP. Submit secondary_address when site is in high
136
136
  * availability mode.
@@ -154,12 +154,12 @@ export namespace WanCreateResponse {
154
154
  }
155
155
  }
156
156
 
157
- export interface WanUpdateResponse {
158
- wan?: WanUpdateResponse.Wan;
157
+ export interface WANUpdateResponse {
158
+ wan?: WANUpdateResponse.WAN;
159
159
  }
160
160
 
161
- export namespace WanUpdateResponse {
162
- export interface Wan {
161
+ export namespace WANUpdateResponse {
162
+ export interface WAN {
163
163
  /**
164
164
  * Identifier
165
165
  */
@@ -183,7 +183,7 @@ export namespace WanUpdateResponse {
183
183
  * (optional) if omitted, use DHCP. Submit secondary_address when site is in high
184
184
  * availability mode.
185
185
  */
186
- static_addressing?: Wan.StaticAddressing;
186
+ static_addressing?: WAN.StaticAddressing;
187
187
 
188
188
  /**
189
189
  * VLAN port number.
@@ -191,7 +191,7 @@ export namespace WanUpdateResponse {
191
191
  vlan_tag?: number;
192
192
  }
193
193
 
194
- export namespace Wan {
194
+ export namespace WAN {
195
195
  /**
196
196
  * (optional) if omitted, use DHCP. Submit secondary_address when site is in high
197
197
  * availability mode.
@@ -215,12 +215,12 @@ export namespace WanUpdateResponse {
215
215
  }
216
216
  }
217
217
 
218
- export interface WanListResponse {
219
- wans?: Array<WanListResponse.Wan>;
218
+ export interface WANListResponse {
219
+ wans?: Array<WANListResponse.WAN>;
220
220
  }
221
221
 
222
- export namespace WanListResponse {
223
- export interface Wan {
222
+ export namespace WANListResponse {
223
+ export interface WAN {
224
224
  /**
225
225
  * Identifier
226
226
  */
@@ -244,7 +244,7 @@ export namespace WanListResponse {
244
244
  * (optional) if omitted, use DHCP. Submit secondary_address when site is in high
245
245
  * availability mode.
246
246
  */
247
- static_addressing?: Wan.StaticAddressing;
247
+ static_addressing?: WAN.StaticAddressing;
248
248
 
249
249
  /**
250
250
  * VLAN port number.
@@ -252,7 +252,7 @@ export namespace WanListResponse {
252
252
  vlan_tag?: number;
253
253
  }
254
254
 
255
- export namespace Wan {
255
+ export namespace WAN {
256
256
  /**
257
257
  * (optional) if omitted, use DHCP. Submit secondary_address when site is in high
258
258
  * availability mode.
@@ -276,14 +276,14 @@ export namespace WanListResponse {
276
276
  }
277
277
  }
278
278
 
279
- export interface WanDeleteResponse {
279
+ export interface WANDeleteResponse {
280
280
  deleted?: boolean;
281
281
 
282
- deleted_wan?: WanDeleteResponse.DeletedWan;
282
+ deleted_wan?: WANDeleteResponse.DeletedWAN;
283
283
  }
284
284
 
285
- export namespace WanDeleteResponse {
286
- export interface DeletedWan {
285
+ export namespace WANDeleteResponse {
286
+ export interface DeletedWAN {
287
287
  /**
288
288
  * Identifier
289
289
  */
@@ -307,7 +307,7 @@ export namespace WanDeleteResponse {
307
307
  * (optional) if omitted, use DHCP. Submit secondary_address when site is in high
308
308
  * availability mode.
309
309
  */
310
- static_addressing?: DeletedWan.StaticAddressing;
310
+ static_addressing?: DeletedWAN.StaticAddressing;
311
311
 
312
312
  /**
313
313
  * VLAN port number.
@@ -315,7 +315,7 @@ export namespace WanDeleteResponse {
315
315
  vlan_tag?: number;
316
316
  }
317
317
 
318
- export namespace DeletedWan {
318
+ export namespace DeletedWAN {
319
319
  /**
320
320
  * (optional) if omitted, use DHCP. Submit secondary_address when site is in high
321
321
  * availability mode.
@@ -339,12 +339,12 @@ export namespace WanDeleteResponse {
339
339
  }
340
340
  }
341
341
 
342
- export interface WanGetResponse {
343
- wan?: WanGetResponse.Wan;
342
+ export interface WANGetResponse {
343
+ wan?: WANGetResponse.WAN;
344
344
  }
345
345
 
346
- export namespace WanGetResponse {
347
- export interface Wan {
346
+ export namespace WANGetResponse {
347
+ export interface WAN {
348
348
  /**
349
349
  * Identifier
350
350
  */
@@ -368,7 +368,7 @@ export namespace WanGetResponse {
368
368
  * (optional) if omitted, use DHCP. Submit secondary_address when site is in high
369
369
  * availability mode.
370
370
  */
371
- static_addressing?: Wan.StaticAddressing;
371
+ static_addressing?: WAN.StaticAddressing;
372
372
 
373
373
  /**
374
374
  * VLAN port number.
@@ -376,7 +376,7 @@ export namespace WanGetResponse {
376
376
  vlan_tag?: number;
377
377
  }
378
378
 
379
- export namespace Wan {
379
+ export namespace WAN {
380
380
  /**
381
381
  * (optional) if omitted, use DHCP. Submit secondary_address when site is in high
382
382
  * availability mode.
@@ -400,7 +400,7 @@ export namespace WanGetResponse {
400
400
  }
401
401
  }
402
402
 
403
- export interface WanCreateParams {
403
+ export interface WANCreateParams {
404
404
  /**
405
405
  * Path param: Identifier
406
406
  */
@@ -409,11 +409,11 @@ export interface WanCreateParams {
409
409
  /**
410
410
  * Body param:
411
411
  */
412
- wan?: WanCreateParams.Wan;
412
+ wan?: WANCreateParams.WAN;
413
413
  }
414
414
 
415
- export namespace WanCreateParams {
416
- export interface Wan {
415
+ export namespace WANCreateParams {
416
+ export interface WAN {
417
417
  physport: number;
418
418
 
419
419
  /**
@@ -429,10 +429,10 @@ export namespace WanCreateParams {
429
429
  * (optional) if omitted, use DHCP. Submit secondary_address when site is in high
430
430
  * availability mode.
431
431
  */
432
- static_addressing?: Wan.StaticAddressing;
432
+ static_addressing?: WAN.StaticAddressing;
433
433
  }
434
434
 
435
- export namespace Wan {
435
+ export namespace WAN {
436
436
  /**
437
437
  * (optional) if omitted, use DHCP. Submit secondary_address when site is in high
438
438
  * availability mode.
@@ -456,7 +456,7 @@ export namespace WanCreateParams {
456
456
  }
457
457
  }
458
458
 
459
- export interface WanUpdateParams {
459
+ export interface WANUpdateParams {
460
460
  /**
461
461
  * Path param: Identifier
462
462
  */
@@ -465,11 +465,11 @@ export interface WanUpdateParams {
465
465
  /**
466
466
  * Body param:
467
467
  */
468
- wan?: WanUpdateParams.Wan;
468
+ wan?: WANUpdateParams.WAN;
469
469
  }
470
470
 
471
- export namespace WanUpdateParams {
472
- export interface Wan {
471
+ export namespace WANUpdateParams {
472
+ export interface WAN {
473
473
  description?: string;
474
474
 
475
475
  physport?: number;
@@ -480,7 +480,7 @@ export namespace WanUpdateParams {
480
480
  * (optional) if omitted, use DHCP. Submit secondary_address when site is in high
481
481
  * availability mode.
482
482
  */
483
- static_addressing?: Wan.StaticAddressing;
483
+ static_addressing?: WAN.StaticAddressing;
484
484
 
485
485
  /**
486
486
  * VLAN port number.
@@ -488,7 +488,7 @@ export namespace WanUpdateParams {
488
488
  vlan_tag?: number;
489
489
  }
490
490
 
491
- export namespace Wan {
491
+ export namespace WAN {
492
492
  /**
493
493
  * (optional) if omitted, use DHCP. Submit secondary_address when site is in high
494
494
  * availability mode.
@@ -512,36 +512,36 @@ export namespace WanUpdateParams {
512
512
  }
513
513
  }
514
514
 
515
- export interface WanListParams {
515
+ export interface WANListParams {
516
516
  /**
517
517
  * Identifier
518
518
  */
519
519
  account_id: string;
520
520
  }
521
521
 
522
- export interface WanDeleteParams {
522
+ export interface WANDeleteParams {
523
523
  /**
524
524
  * Identifier
525
525
  */
526
526
  account_id: string;
527
527
  }
528
528
 
529
- export interface WanGetParams {
529
+ export interface WANGetParams {
530
530
  /**
531
531
  * Identifier
532
532
  */
533
533
  account_id: string;
534
534
  }
535
535
 
536
- export namespace Wans {
537
- export import WanCreateResponse = WansAPI.WanCreateResponse;
538
- export import WanUpdateResponse = WansAPI.WanUpdateResponse;
539
- export import WanListResponse = WansAPI.WanListResponse;
540
- export import WanDeleteResponse = WansAPI.WanDeleteResponse;
541
- export import WanGetResponse = WansAPI.WanGetResponse;
542
- export import WanCreateParams = WansAPI.WanCreateParams;
543
- export import WanUpdateParams = WansAPI.WanUpdateParams;
544
- export import WanListParams = WansAPI.WanListParams;
545
- export import WanDeleteParams = WansAPI.WanDeleteParams;
546
- export import WanGetParams = WansAPI.WanGetParams;
536
+ export namespace WANs {
537
+ export import WANCreateResponse = WANsAPI.WANCreateResponse;
538
+ export import WANUpdateResponse = WANsAPI.WANUpdateResponse;
539
+ export import WANListResponse = WANsAPI.WANListResponse;
540
+ export import WANDeleteResponse = WANsAPI.WANDeleteResponse;
541
+ export import WANGetResponse = WANsAPI.WANGetResponse;
542
+ export import WANCreateParams = WANsAPI.WANCreateParams;
543
+ export import WANUpdateParams = WANsAPI.WANUpdateParams;
544
+ export import WANListParams = WANsAPI.WANListParams;
545
+ export import WANDeleteParams = WANsAPI.WANDeleteParams;
546
+ export import WANGetParams = WANsAPI.WANGetParams;
547
547
  }
@@ -3,9 +3,9 @@
3
3
  import * as Core from "../../core";
4
4
  import { APIResource } from "../../resource";
5
5
  import { type Response } from "../../_shims/index";
6
- import * as DownloadsAPI from "./downloads";
6
+ import * as DownloadAPI from "./download";
7
7
 
8
- export class Downloads extends APIResource {
8
+ export class Download extends APIResource {
9
9
  /**
10
10
  * Download PCAP information into a file. Response is a binary PCAP file.
11
11
  */
@@ -25,6 +25,6 @@ export interface DownloadGetParams {
25
25
  account_id: string;
26
26
  }
27
27
 
28
- export namespace Downloads {
29
- export import DownloadGetParams = DownloadsAPI.DownloadGetParams;
28
+ export namespace Download {
29
+ export import DownloadGetParams = DownloadAPI.DownloadGetParams;
30
30
  }
@@ -1,6 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export { DownloadGetParams, Downloads } from './downloads';
3
+ export { DownloadGetParams, Download } from './download';
4
4
  export {
5
5
  MagicVisibilityPCAPsOwnership,
6
6
  OwnershipGetResponse,
@@ -8,8 +8,8 @@ export {
8
8
  OwnershipDeleteParams,
9
9
  OwnershipGetParams,
10
10
  OwnershipValidateParams,
11
- Ownerships,
12
- } from './ownerships';
11
+ Ownership,
12
+ } from './ownership';
13
13
  export {
14
14
  PCAPCreateResponse,
15
15
  PCAPListResponse,
@@ -2,9 +2,9 @@
2
2
 
3
3
  import * as Core from "../../core";
4
4
  import { APIResource } from "../../resource";
5
- import * as OwnershipsAPI from "./ownerships";
5
+ import * as OwnershipAPI from "./ownership";
6
6
 
7
- export class Ownerships extends APIResource {
7
+ export class Ownership extends APIResource {
8
8
  /**
9
9
  * Adds an AWS or GCP bucket to use with full packet captures.
10
10
  */
@@ -146,11 +146,11 @@ export interface OwnershipValidateParams {
146
146
  ownership_challenge: string;
147
147
  }
148
148
 
149
- export namespace Ownerships {
150
- export import MagicVisibilityPCAPsOwnership = OwnershipsAPI.MagicVisibilityPCAPsOwnership;
151
- export import OwnershipGetResponse = OwnershipsAPI.OwnershipGetResponse;
152
- export import OwnershipCreateParams = OwnershipsAPI.OwnershipCreateParams;
153
- export import OwnershipDeleteParams = OwnershipsAPI.OwnershipDeleteParams;
154
- export import OwnershipGetParams = OwnershipsAPI.OwnershipGetParams;
155
- export import OwnershipValidateParams = OwnershipsAPI.OwnershipValidateParams;
149
+ export namespace Ownership {
150
+ export import MagicVisibilityPCAPsOwnership = OwnershipAPI.MagicVisibilityPCAPsOwnership;
151
+ export import OwnershipGetResponse = OwnershipAPI.OwnershipGetResponse;
152
+ export import OwnershipCreateParams = OwnershipAPI.OwnershipCreateParams;
153
+ export import OwnershipDeleteParams = OwnershipAPI.OwnershipDeleteParams;
154
+ export import OwnershipGetParams = OwnershipAPI.OwnershipGetParams;
155
+ export import OwnershipValidateParams = OwnershipAPI.OwnershipValidateParams;
156
156
  }
@@ -3,12 +3,12 @@
3
3
  import * as Core from "../../core";
4
4
  import { APIResource } from "../../resource";
5
5
  import * as PCAPsAPI from "./pcaps";
6
- import * as DownloadsAPI from "./downloads";
7
- import * as OwnershipsAPI from "./ownerships";
6
+ import * as DownloadAPI from "./download";
7
+ import * as OwnershipAPI from "./ownership";
8
8
 
9
9
  export class PCAPs extends APIResource {
10
- ownerships: OwnershipsAPI.Ownerships = new OwnershipsAPI.Ownerships(this._client);
11
- downloads: DownloadsAPI.Downloads = new DownloadsAPI.Downloads(this._client);
10
+ ownership: OwnershipAPI.Ownership = new OwnershipAPI.Ownership(this._client);
11
+ download: DownloadAPI.Download = new DownloadAPI.Download(this._client);
12
12
 
13
13
  /**
14
14
  * Create new PCAP request for account.
@@ -787,13 +787,13 @@ export namespace PCAPs {
787
787
  export import PCAPCreateParams = PCAPsAPI.PCAPCreateParams;
788
788
  export import PCAPListParams = PCAPsAPI.PCAPListParams;
789
789
  export import PCAPGetParams = PCAPsAPI.PCAPGetParams;
790
- export import Ownerships = OwnershipsAPI.Ownerships;
791
- export import MagicVisibilityPCAPsOwnership = OwnershipsAPI.MagicVisibilityPCAPsOwnership;
792
- export import OwnershipGetResponse = OwnershipsAPI.OwnershipGetResponse;
793
- export import OwnershipCreateParams = OwnershipsAPI.OwnershipCreateParams;
794
- export import OwnershipDeleteParams = OwnershipsAPI.OwnershipDeleteParams;
795
- export import OwnershipGetParams = OwnershipsAPI.OwnershipGetParams;
796
- export import OwnershipValidateParams = OwnershipsAPI.OwnershipValidateParams;
797
- export import Downloads = DownloadsAPI.Downloads;
798
- export import DownloadGetParams = DownloadsAPI.DownloadGetParams;
790
+ export import Ownership = OwnershipAPI.Ownership;
791
+ export import MagicVisibilityPCAPsOwnership = OwnershipAPI.MagicVisibilityPCAPsOwnership;
792
+ export import OwnershipGetResponse = OwnershipAPI.OwnershipGetResponse;
793
+ export import OwnershipCreateParams = OwnershipAPI.OwnershipCreateParams;
794
+ export import OwnershipDeleteParams = OwnershipAPI.OwnershipDeleteParams;
795
+ export import OwnershipGetParams = OwnershipAPI.OwnershipGetParams;
796
+ export import OwnershipValidateParams = OwnershipAPI.OwnershipValidateParams;
797
+ export import Download = DownloadAPI.Download;
798
+ export import DownloadGetParams = DownloadAPI.DownloadGetParams;
799
799
  }
@@ -2,19 +2,16 @@
2
2
 
3
3
  import * as Core from "../core";
4
4
  import { APIResource } from "../resource";
5
- import * as AvailablePlansAPI from "./available-plans";
5
+ import * as PlansAPI from "./plans";
6
6
 
7
- export class AvailablePlans extends APIResource {
7
+ export class Plans extends APIResource {
8
8
  /**
9
9
  * Lists available plans the zone can subscribe to.
10
10
  */
11
- list(
12
- zoneIdentifier: string,
13
- options?: Core.RequestOptions,
14
- ): Core.APIPromise<AvailablePlanListResponse | null> {
11
+ list(zoneIdentifier: string, options?: Core.RequestOptions): Core.APIPromise<PlanListResponse | null> {
15
12
  return (
16
13
  this._client.get(`/zones/${zoneIdentifier}/available_plans`, options) as Core.APIPromise<{
17
- result: AvailablePlanListResponse | null;
14
+ result: PlanListResponse | null;
18
15
  }>
19
16
  )._thenUnwrap((obj) => obj.result);
20
17
  }
@@ -88,9 +85,9 @@ export interface BillSubsAPIAvailableRatePlan {
88
85
  price?: number;
89
86
  }
90
87
 
91
- export type AvailablePlanListResponse = Array<BillSubsAPIAvailableRatePlan>;
88
+ export type PlanListResponse = Array<BillSubsAPIAvailableRatePlan>;
92
89
 
93
- export namespace AvailablePlans {
94
- export import BillSubsAPIAvailableRatePlan = AvailablePlansAPI.BillSubsAPIAvailableRatePlan;
95
- export import AvailablePlanListResponse = AvailablePlansAPI.AvailablePlanListResponse;
90
+ export namespace Plans {
91
+ export import BillSubsAPIAvailableRatePlan = PlansAPI.BillSubsAPIAvailableRatePlan;
92
+ export import PlanListResponse = PlansAPI.PlanListResponse;
96
93
  }
@@ -2,19 +2,16 @@
2
2
 
3
3
  import * as Core from "../core";
4
4
  import { APIResource } from "../resource";
5
- import * as AvailableRatePlansAPI from "./available-rate-plans";
5
+ import * as RatePlansAPI from "./rate-plans";
6
6
 
7
- export class AvailableRatePlans extends APIResource {
7
+ export class RatePlans extends APIResource {
8
8
  /**
9
9
  * Lists all rate plans the zone can subscribe to.
10
10
  */
11
- get(
12
- zoneIdentifier: string,
13
- options?: Core.RequestOptions,
14
- ): Core.APIPromise<AvailableRatePlanGetResponse | null> {
11
+ get(zoneIdentifier: string, options?: Core.RequestOptions): Core.APIPromise<RatePlanGetResponse | null> {
15
12
  return (
16
13
  this._client.get(`/zones/${zoneIdentifier}/available_rate_plans`, options) as Core.APIPromise<{
17
- result: AvailableRatePlanGetResponse | null;
14
+ result: RatePlanGetResponse | null;
18
15
  }>
19
16
  )._thenUnwrap((obj) => obj.result);
20
17
  }
@@ -71,11 +68,10 @@ export namespace BillSubsRatePlan {
71
68
  }
72
69
  }
73
70
 
74
- export type AvailableRatePlanGetResponse =
75
- Array<AvailableRatePlanGetResponse.AvailableRatePlanGetResponseItem>;
71
+ export type RatePlanGetResponse = Array<RatePlanGetResponse.RatePlanGetResponseItem>;
76
72
 
77
- export namespace AvailableRatePlanGetResponse {
78
- export interface AvailableRatePlanGetResponseItem {
73
+ export namespace RatePlanGetResponse {
74
+ export interface RatePlanGetResponseItem {
79
75
  /**
80
76
  * Plan identifier tag.
81
77
  */
@@ -84,7 +80,7 @@ export namespace AvailableRatePlanGetResponse {
84
80
  /**
85
81
  * Array of available components values for the plan.
86
82
  */
87
- components?: Array<AvailableRatePlanGetResponseItem.Component>;
83
+ components?: Array<RatePlanGetResponseItem.Component>;
88
84
 
89
85
  /**
90
86
  * The monetary unit in which pricing information is displayed.
@@ -107,7 +103,7 @@ export namespace AvailableRatePlanGetResponse {
107
103
  name?: string;
108
104
  }
109
105
 
110
- export namespace AvailableRatePlanGetResponseItem {
106
+ export namespace RatePlanGetResponseItem {
111
107
  export interface Component {
112
108
  /**
113
109
  * The default amount allocated.
@@ -127,7 +123,7 @@ export namespace AvailableRatePlanGetResponse {
127
123
  }
128
124
  }
129
125
 
130
- export namespace AvailableRatePlans {
131
- export import BillSubsRatePlan = AvailableRatePlansAPI.BillSubsRatePlan;
132
- export import AvailableRatePlanGetResponse = AvailableRatePlansAPI.AvailableRatePlanGetResponse;
126
+ export namespace RatePlans {
127
+ export import BillSubsRatePlan = RatePlansAPI.BillSubsRatePlan;
128
+ export import RatePlanGetResponse = RatePlansAPI.RatePlanGetResponse;
133
129
  }
@@ -2,10 +2,10 @@
2
2
 
3
3
  import * as Core from "../../../core";
4
4
  import { APIResource } from "../../../resource";
5
- import * as ByTagsAPI from "./by-tags";
5
+ import * as ByTagAPI from "./by-tag";
6
6
  import * as RulesetsAPI from "../rulesets";
7
7
 
8
- export class ByTags extends APIResource {
8
+ export class ByTag extends APIResource {
9
9
  /**
10
10
  * Fetches the rules of a managed account ruleset version for a given tag.
11
11
  */
@@ -33,6 +33,6 @@ export interface ByTagGetParams {
33
33
  account_id: string;
34
34
  }
35
35
 
36
- export namespace ByTags {
37
- export import ByTagGetParams = ByTagsAPI.ByTagGetParams;
36
+ export namespace ByTag {
37
+ export import ByTagGetParams = ByTagAPI.ByTagGetParams;
38
38
  }
@@ -1,4 +1,4 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export { ByTagGetParams, ByTags } from './by-tags';
3
+ export { ByTagGetParams, ByTag } from './by-tag';
4
4
  export { VersionListParams, VersionDeleteParams, VersionGetParams, Versions } from './versions';
@@ -6,10 +6,10 @@ import { isRequestOptions } from "../../../core";
6
6
  import { CloudflareError } from "../../../error";
7
7
  import * as VersionsAPI from "./versions";
8
8
  import * as RulesetsAPI from "../rulesets";
9
- import * as ByTagsAPI from "./by-tags";
9
+ import * as ByTagAPI from "./by-tag";
10
10
 
11
11
  export class Versions extends APIResource {
12
- byTags: ByTagsAPI.ByTags = new ByTagsAPI.ByTags(this._client);
12
+ byTag: ByTagAPI.ByTag = new ByTagAPI.ByTag(this._client);
13
13
 
14
14
  /**
15
15
  * Fetches the versions of an account or zone ruleset.
@@ -187,6 +187,6 @@ export namespace Versions {
187
187
  export import VersionListParams = VersionsAPI.VersionListParams;
188
188
  export import VersionDeleteParams = VersionsAPI.VersionDeleteParams;
189
189
  export import VersionGetParams = VersionsAPI.VersionGetParams;
190
- export import ByTags = ByTagsAPI.ByTags;
191
- export import ByTagGetParams = ByTagsAPI.ByTagGetParams;
190
+ export import ByTag = ByTagAPI.ByTag;
191
+ export import ByTagGetParams = ByTagAPI.ByTagGetParams;
192
192
  }