@vercel/sdk 1.6.2 → 1.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (271) hide show
  1. package/README.md +2 -10
  2. package/bin/mcp-server.js +4541 -3497
  3. package/bin/mcp-server.js.map +36 -48
  4. package/docs/sdks/edgeconfig/README.md +2 -6
  5. package/docs/sdks/integrations/README.md +0 -161
  6. package/docs/sdks/logdrains/README.md +0 -260
  7. package/docs/sdks/marketplace/README.md +2 -6
  8. package/docs/sdks/security/README.md +90 -0
  9. package/docs/sdks/webhooks/README.md +2 -6
  10. package/esm/__tests__/deployments.test.js +16 -1
  11. package/esm/__tests__/deployments.test.js.map +1 -1
  12. package/esm/__tests__/integrations.test.js +5 -40
  13. package/esm/__tests__/integrations.test.js.map +1 -1
  14. package/esm/__tests__/logdrains.test.js +7 -89
  15. package/esm/__tests__/logdrains.test.js.map +1 -1
  16. package/esm/__tests__/marketplace.test.js +7 -2
  17. package/esm/__tests__/marketplace.test.js.map +1 -1
  18. package/esm/__tests__/projects.test.js +4 -4
  19. package/esm/__tests__/projects.test.js.map +1 -1
  20. package/esm/__tests__/security.test.js +164 -17
  21. package/esm/__tests__/security.test.js.map +1 -1
  22. package/esm/funcs/securityPutFirewallConfig.d.ts +19 -0
  23. package/esm/funcs/securityPutFirewallConfig.d.ts.map +1 -0
  24. package/esm/funcs/{logDrainsCreateConfigurableLogDrain.js → securityPutFirewallConfig.js} +13 -11
  25. package/esm/funcs/securityPutFirewallConfig.js.map +1 -0
  26. package/esm/lib/config.d.ts +3 -3
  27. package/esm/lib/config.js +3 -3
  28. package/esm/lib/matchers.d.ts +3 -1
  29. package/esm/lib/matchers.d.ts.map +1 -1
  30. package/esm/lib/matchers.js +10 -0
  31. package/esm/lib/matchers.js.map +1 -1
  32. package/esm/lib/sdks.js +7 -2
  33. package/esm/lib/sdks.js.map +1 -1
  34. package/esm/mcp-server/mcp-server.js +1 -1
  35. package/esm/mcp-server/server.d.ts.map +1 -1
  36. package/esm/mcp-server/server.js +3 -11
  37. package/esm/mcp-server/server.js.map +1 -1
  38. package/esm/mcp-server/tools/securityPutFirewallConfig.d.ts +7 -0
  39. package/esm/mcp-server/tools/securityPutFirewallConfig.d.ts.map +1 -0
  40. package/esm/mcp-server/tools/securityPutFirewallConfig.js +28 -0
  41. package/esm/mcp-server/tools/{integrationsGitNamespaces.js.map → securityPutFirewallConfig.js.map} +1 -1
  42. package/esm/models/authtoken.d.ts +6 -0
  43. package/esm/models/authtoken.d.ts.map +1 -1
  44. package/esm/models/authtoken.js +2 -0
  45. package/esm/models/authtoken.js.map +1 -1
  46. package/esm/models/authuser.d.ts +87 -0
  47. package/esm/models/authuser.d.ts.map +1 -1
  48. package/esm/models/authuser.js +57 -0
  49. package/esm/models/authuser.js.map +1 -1
  50. package/esm/models/canceldeploymentop.d.ts +277 -76
  51. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  52. package/esm/models/canceldeploymentop.js +271 -73
  53. package/esm/models/canceldeploymentop.js.map +1 -1
  54. package/esm/models/createdeploymentop.d.ts +274 -73
  55. package/esm/models/createdeploymentop.d.ts.map +1 -1
  56. package/esm/models/createdeploymentop.js +270 -72
  57. package/esm/models/createdeploymentop.js.map +1 -1
  58. package/esm/models/createlogdrainop.d.ts +51 -51
  59. package/esm/models/createlogdrainop.d.ts.map +1 -1
  60. package/esm/models/createlogdrainop.js +74 -75
  61. package/esm/models/createlogdrainop.js.map +1 -1
  62. package/esm/models/createprojectenvop.d.ts +12 -18
  63. package/esm/models/createprojectenvop.d.ts.map +1 -1
  64. package/esm/models/createprojectenvop.js +12 -12
  65. package/esm/models/createprojectenvop.js.map +1 -1
  66. package/esm/models/createprojectop.d.ts +221 -29
  67. package/esm/models/createprojectop.d.ts.map +1 -1
  68. package/esm/models/createprojectop.js +174 -11
  69. package/esm/models/createprojectop.js.map +1 -1
  70. package/esm/models/editprojectenvop.d.ts +4 -7
  71. package/esm/models/editprojectenvop.d.ts.map +1 -1
  72. package/esm/models/editprojectenvop.js +4 -4
  73. package/esm/models/editprojectenvop.js.map +1 -1
  74. package/esm/models/exchangessotokenop.d.ts +34 -0
  75. package/esm/models/exchangessotokenop.d.ts.map +1 -1
  76. package/esm/models/exchangessotokenop.js +25 -0
  77. package/esm/models/exchangessotokenop.js.map +1 -1
  78. package/esm/models/filterprojectenvsop.d.ts +18 -27
  79. package/esm/models/filterprojectenvsop.d.ts.map +1 -1
  80. package/esm/models/filterprojectenvsop.js +18 -18
  81. package/esm/models/filterprojectenvsop.js.map +1 -1
  82. package/esm/models/getconfigurationsop.d.ts +19 -16
  83. package/esm/models/getconfigurationsop.d.ts.map +1 -1
  84. package/esm/models/getconfigurationsop.js +25 -27
  85. package/esm/models/getconfigurationsop.js.map +1 -1
  86. package/esm/models/getcustomenvironmentop.d.ts +3 -0
  87. package/esm/models/getcustomenvironmentop.d.ts.map +1 -1
  88. package/esm/models/getcustomenvironmentop.js.map +1 -1
  89. package/esm/models/getdeploymentop.d.ts +574 -172
  90. package/esm/models/getdeploymentop.d.ts.map +1 -1
  91. package/esm/models/getdeploymentop.js +567 -171
  92. package/esm/models/getdeploymentop.js.map +1 -1
  93. package/esm/models/getfirewallconfigop.d.ts +214 -214
  94. package/esm/models/getfirewallconfigop.d.ts.map +1 -1
  95. package/esm/models/getfirewallconfigop.js +210 -231
  96. package/esm/models/getfirewallconfigop.js.map +1 -1
  97. package/esm/models/getintegrationlogdrainsop.d.ts +11 -11
  98. package/esm/models/getintegrationlogdrainsop.d.ts.map +1 -1
  99. package/esm/models/getintegrationlogdrainsop.js +14 -13
  100. package/esm/models/getintegrationlogdrainsop.js.map +1 -1
  101. package/esm/models/getprojectdomainsop.d.ts +198 -36
  102. package/esm/models/getprojectdomainsop.d.ts.map +1 -1
  103. package/esm/models/getprojectdomainsop.js +193 -32
  104. package/esm/models/getprojectdomainsop.js.map +1 -1
  105. package/esm/models/getprojectenvop.d.ts +10 -16
  106. package/esm/models/getprojectenvop.d.ts.map +1 -1
  107. package/esm/models/getprojectenvop.js +10 -10
  108. package/esm/models/getprojectenvop.js.map +1 -1
  109. package/esm/models/getprojectsop.d.ts +221 -29
  110. package/esm/models/getprojectsop.d.ts.map +1 -1
  111. package/esm/models/getprojectsop.js +173 -11
  112. package/esm/models/getprojectsop.js.map +1 -1
  113. package/esm/models/getteammembersop.d.ts +9 -9
  114. package/esm/models/getteammembersop.js +3 -3
  115. package/esm/models/getteammembersop.js.map +1 -1
  116. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts +3 -0
  117. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts.map +1 -1
  118. package/esm/models/getv9projectsidornamecustomenvironmentsop.js.map +1 -1
  119. package/esm/models/putfirewallconfigop.d.ts +2901 -0
  120. package/esm/models/putfirewallconfigop.d.ts.map +1 -0
  121. package/esm/models/putfirewallconfigop.js +2383 -0
  122. package/esm/models/putfirewallconfigop.js.map +1 -0
  123. package/esm/models/removeprojectenvop.d.ts +18 -27
  124. package/esm/models/removeprojectenvop.d.ts.map +1 -1
  125. package/esm/models/removeprojectenvop.js +18 -18
  126. package/esm/models/removeprojectenvop.js.map +1 -1
  127. package/esm/models/updatefirewallconfigop.d.ts +323 -323
  128. package/esm/models/updatefirewallconfigop.d.ts.map +1 -1
  129. package/esm/models/updatefirewallconfigop.js +379 -357
  130. package/esm/models/updatefirewallconfigop.js.map +1 -1
  131. package/esm/models/updateprojectdatacacheop.d.ts +229 -37
  132. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  133. package/esm/models/updateprojectdatacacheop.js +189 -23
  134. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  135. package/esm/models/updateprojectop.d.ts +221 -29
  136. package/esm/models/updateprojectop.d.ts.map +1 -1
  137. package/esm/models/updateprojectop.js +174 -11
  138. package/esm/models/updateprojectop.js.map +1 -1
  139. package/esm/models/userevent.d.ts +608 -524
  140. package/esm/models/userevent.d.ts.map +1 -1
  141. package/esm/models/userevent.js +748 -666
  142. package/esm/models/userevent.js.map +1 -1
  143. package/esm/sdk/integrations.d.ts +0 -16
  144. package/esm/sdk/integrations.d.ts.map +1 -1
  145. package/esm/sdk/integrations.js +0 -20
  146. package/esm/sdk/integrations.js.map +1 -1
  147. package/esm/sdk/logdrains.d.ts +0 -24
  148. package/esm/sdk/logdrains.d.ts.map +1 -1
  149. package/esm/sdk/logdrains.js +0 -30
  150. package/esm/sdk/logdrains.js.map +1 -1
  151. package/esm/sdk/security.d.ts +8 -0
  152. package/esm/sdk/security.d.ts.map +1 -1
  153. package/esm/sdk/security.js +10 -0
  154. package/esm/sdk/security.js.map +1 -1
  155. package/jsr.json +1 -1
  156. package/package.json +3 -3
  157. package/src/__tests__/deployments.test.ts +16 -1
  158. package/src/__tests__/integrations.test.ts +9 -44
  159. package/src/__tests__/logdrains.test.ts +13 -95
  160. package/src/__tests__/marketplace.test.ts +7 -2
  161. package/src/__tests__/projects.test.ts +4 -4
  162. package/src/__tests__/security.test.ts +166 -19
  163. package/src/funcs/{logDrainsCreateConfigurableLogDrain.ts → securityPutFirewallConfig.ts} +31 -22
  164. package/src/lib/config.ts +3 -3
  165. package/src/lib/matchers.ts +20 -0
  166. package/src/lib/sdks.ts +8 -2
  167. package/src/mcp-server/mcp-server.ts +1 -1
  168. package/src/mcp-server/server.ts +3 -11
  169. package/src/mcp-server/tools/securityPutFirewallConfig.ts +37 -0
  170. package/src/models/authtoken.ts +2 -0
  171. package/src/models/authuser.ts +126 -0
  172. package/src/models/canceldeploymentop.ts +592 -149
  173. package/src/models/createdeploymentop.ts +616 -165
  174. package/src/models/createlogdrainop.ts +95 -112
  175. package/src/models/createprojectenvop.ts +24 -30
  176. package/src/models/createprojectop.ts +378 -21
  177. package/src/models/editprojectenvop.ts +8 -11
  178. package/src/models/exchangessotokenop.ts +44 -0
  179. package/src/models/filterprojectenvsop.ts +36 -45
  180. package/src/models/getconfigurationsop.ts +34 -39
  181. package/src/models/getcustomenvironmentop.ts +3 -0
  182. package/src/models/getdeploymentop.ts +1288 -353
  183. package/src/models/getfirewallconfigop.ts +555 -410
  184. package/src/models/getintegrationlogdrainsop.ts +15 -20
  185. package/src/models/getprojectdomainsop.ts +470 -63
  186. package/src/models/getprojectenvop.ts +20 -26
  187. package/src/models/getprojectsop.ts +380 -22
  188. package/src/models/getteammembersop.ts +3 -3
  189. package/src/models/getv9projectsidornamecustomenvironmentsop.ts +3 -0
  190. package/src/models/putfirewallconfigop.ts +4932 -0
  191. package/src/models/removeprojectenvop.ts +36 -45
  192. package/src/models/updatefirewallconfigop.ts +820 -612
  193. package/src/models/updateprojectdatacacheop.ts +395 -40
  194. package/src/models/updateprojectop.ts +378 -21
  195. package/src/models/userevent.ts +1363 -1203
  196. package/src/sdk/integrations.ts +0 -44
  197. package/src/sdk/logdrains.ts +0 -66
  198. package/src/sdk/security.ts +22 -0
  199. package/vercel-spec.json +1780 -1622
  200. package/esm/funcs/integrationsGitNamespaces.d.ts +0 -18
  201. package/esm/funcs/integrationsGitNamespaces.d.ts.map +0 -1
  202. package/esm/funcs/integrationsGitNamespaces.js +0 -86
  203. package/esm/funcs/integrationsGitNamespaces.js.map +0 -1
  204. package/esm/funcs/integrationsSearchRepo.d.ts +0 -17
  205. package/esm/funcs/integrationsSearchRepo.d.ts.map +0 -1
  206. package/esm/funcs/integrationsSearchRepo.js +0 -89
  207. package/esm/funcs/integrationsSearchRepo.js.map +0 -1
  208. package/esm/funcs/logDrainsCreateConfigurableLogDrain.d.ts +0 -18
  209. package/esm/funcs/logDrainsCreateConfigurableLogDrain.d.ts.map +0 -1
  210. package/esm/funcs/logDrainsCreateConfigurableLogDrain.js.map +0 -1
  211. package/esm/funcs/logDrainsGetAllLogDrains.d.ts +0 -18
  212. package/esm/funcs/logDrainsGetAllLogDrains.d.ts.map +0 -1
  213. package/esm/funcs/logDrainsGetAllLogDrains.js +0 -88
  214. package/esm/funcs/logDrainsGetAllLogDrains.js.map +0 -1
  215. package/esm/funcs/logDrainsGetConfigurableLogDrain.d.ts +0 -19
  216. package/esm/funcs/logDrainsGetConfigurableLogDrain.d.ts.map +0 -1
  217. package/esm/funcs/logDrainsGetConfigurableLogDrain.js +0 -92
  218. package/esm/funcs/logDrainsGetConfigurableLogDrain.js.map +0 -1
  219. package/esm/mcp-server/tools/integrationsGitNamespaces.d.ts +0 -7
  220. package/esm/mcp-server/tools/integrationsGitNamespaces.d.ts.map +0 -1
  221. package/esm/mcp-server/tools/integrationsGitNamespaces.js +0 -28
  222. package/esm/mcp-server/tools/integrationsSearchRepo.d.ts +0 -7
  223. package/esm/mcp-server/tools/integrationsSearchRepo.d.ts.map +0 -1
  224. package/esm/mcp-server/tools/integrationsSearchRepo.js +0 -28
  225. package/esm/mcp-server/tools/integrationsSearchRepo.js.map +0 -1
  226. package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.d.ts +0 -7
  227. package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.d.ts.map +0 -1
  228. package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.js +0 -28
  229. package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.js.map +0 -1
  230. package/esm/mcp-server/tools/logDrainsGetAllLogDrains.d.ts +0 -7
  231. package/esm/mcp-server/tools/logDrainsGetAllLogDrains.d.ts.map +0 -1
  232. package/esm/mcp-server/tools/logDrainsGetAllLogDrains.js +0 -28
  233. package/esm/mcp-server/tools/logDrainsGetAllLogDrains.js.map +0 -1
  234. package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.d.ts +0 -7
  235. package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.d.ts.map +0 -1
  236. package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.js +0 -28
  237. package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.js.map +0 -1
  238. package/esm/models/createconfigurablelogdrainop.d.ts +0 -451
  239. package/esm/models/createconfigurablelogdrainop.d.ts.map +0 -1
  240. package/esm/models/createconfigurablelogdrainop.js +0 -348
  241. package/esm/models/createconfigurablelogdrainop.js.map +0 -1
  242. package/esm/models/getalllogdrainsop.d.ts +0 -294
  243. package/esm/models/getalllogdrainsop.d.ts.map +0 -1
  244. package/esm/models/getalllogdrainsop.js +0 -231
  245. package/esm/models/getalllogdrainsop.js.map +0 -1
  246. package/esm/models/getconfigurablelogdrainop.d.ts +0 -292
  247. package/esm/models/getconfigurablelogdrainop.d.ts.map +0 -1
  248. package/esm/models/getconfigurablelogdrainop.js +0 -230
  249. package/esm/models/getconfigurablelogdrainop.js.map +0 -1
  250. package/esm/models/gitnamespacesop.d.ts +0 -126
  251. package/esm/models/gitnamespacesop.d.ts.map +0 -1
  252. package/esm/models/gitnamespacesop.js +0 -115
  253. package/esm/models/gitnamespacesop.js.map +0 -1
  254. package/esm/models/searchrepoop.d.ts +0 -421
  255. package/esm/models/searchrepoop.d.ts.map +0 -1
  256. package/esm/models/searchrepoop.js +0 -385
  257. package/esm/models/searchrepoop.js.map +0 -1
  258. package/src/funcs/integrationsGitNamespaces.ts +0 -185
  259. package/src/funcs/integrationsSearchRepo.ts +0 -181
  260. package/src/funcs/logDrainsGetAllLogDrains.ts +0 -187
  261. package/src/funcs/logDrainsGetConfigurableLogDrain.ts +0 -199
  262. package/src/mcp-server/tools/integrationsGitNamespaces.ts +0 -37
  263. package/src/mcp-server/tools/integrationsSearchRepo.ts +0 -37
  264. package/src/mcp-server/tools/logDrainsCreateConfigurableLogDrain.ts +0 -39
  265. package/src/mcp-server/tools/logDrainsGetAllLogDrains.ts +0 -37
  266. package/src/mcp-server/tools/logDrainsGetConfigurableLogDrain.ts +0 -39
  267. package/src/models/createconfigurablelogdrainop.ts +0 -652
  268. package/src/models/getalllogdrainsop.ts +0 -416
  269. package/src/models/getconfigurablelogdrainop.ts +0 -420
  270. package/src/models/gitnamespacesop.ts +0 -235
  271. package/src/models/searchrepoop.ts +0 -784
@@ -964,9 +964,7 @@ async function run() {
964
964
  teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
965
965
  slug: "my-team-url-slug",
966
966
  requestBody: {
967
- tokens: [
968
-
969
- ],
967
+ tokens: [],
970
968
  },
971
969
  });
972
970
 
@@ -996,9 +994,7 @@ async function run() {
996
994
  teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
997
995
  slug: "my-team-url-slug",
998
996
  requestBody: {
999
- tokens: [
1000
-
1001
- ],
997
+ tokens: [],
1002
998
  },
1003
999
  });
1004
1000
 
@@ -9,8 +9,6 @@
9
9
  * [getConfigurations](#getconfigurations) - Get configurations for the authenticated user or team
10
10
  * [getConfiguration](#getconfiguration) - Retrieve an integration configuration
11
11
  * [deleteConfiguration](#deleteconfiguration) - Delete an integration configuration
12
- * [gitNamespaces](#gitnamespaces) - List git namespaces by provider
13
- * [searchRepo](#searchrepo) - List git repositories linked to namespace by provider
14
12
 
15
13
  ## updateIntegrationDeploymentAction
16
14
 
@@ -338,163 +336,4 @@ run();
338
336
  | models.VercelBadRequestError | 400 | application/json |
339
337
  | models.VercelForbiddenError | 401 | application/json |
340
338
  | models.VercelNotFoundError | 404 | application/json |
341
- | models.SDKError | 4XX, 5XX | \*/\* |
342
-
343
- ## gitNamespaces
344
-
345
- Lists git namespaces for a supported provider. Supported providers are `github`, `gitlab` and `bitbucket`. If the provider is not provided, it will try to obtain it from the user that authenticated the request.
346
-
347
- ### Example Usage
348
-
349
- ```typescript
350
- import { Vercel } from "@vercel/sdk";
351
-
352
- const vercel = new Vercel({
353
- bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
354
- });
355
-
356
- async function run() {
357
- const result = await vercel.integrations.gitNamespaces({
358
- host: "ghes-test.now.systems",
359
- });
360
-
361
- // Handle the result
362
- console.log(result);
363
- }
364
-
365
- run();
366
- ```
367
-
368
- ### Standalone function
369
-
370
- The standalone function version of this method:
371
-
372
- ```typescript
373
- import { VercelCore } from "@vercel/sdk/core.js";
374
- import { integrationsGitNamespaces } from "@vercel/sdk/funcs/integrationsGitNamespaces.js";
375
-
376
- // Use `VercelCore` for best tree-shaking performance.
377
- // You can create one instance of it to use across an application.
378
- const vercel = new VercelCore({
379
- bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
380
- });
381
-
382
- async function run() {
383
- const res = await integrationsGitNamespaces(vercel, {
384
- host: "ghes-test.now.systems",
385
- });
386
-
387
- if (!res.ok) {
388
- throw res.error;
389
- }
390
-
391
- const { value: result } = res;
392
-
393
- // Handle the result
394
- console.log(result);
395
- }
396
-
397
- run();
398
- ```
399
-
400
- ### Parameters
401
-
402
- | Parameter | Type | Required | Description |
403
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
404
- | `request` | [models.GitNamespacesRequest](../../models/gitnamespacesrequest.md) | :heavy_check_mark: | The request object to use for the request. |
405
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
406
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
407
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
408
-
409
- ### Response
410
-
411
- **Promise\<[models.GitNamespacesResponseBody[]](../../models/.md)\>**
412
-
413
- ### Errors
414
-
415
- | Error Type | Status Code | Content Type |
416
- | ---------------------------- | ---------------------------- | ---------------------------- |
417
- | models.VercelBadRequestError | 400 | application/json |
418
- | models.VercelForbiddenError | 401 | application/json |
419
- | models.SDKError | 4XX, 5XX | \*/\* |
420
-
421
- ## searchRepo
422
-
423
- Lists git repositories linked to a namespace `id` for a supported provider. A specific namespace `id` can be obtained via the `git-namespaces` endpoint. Supported providers are `github`, `gitlab` and `bitbucket`. If the provider or namespace is not provided, it will try to obtain it from the user that authenticated the request.
424
-
425
- ### Example Usage
426
-
427
- ```typescript
428
- import { Vercel } from "@vercel/sdk";
429
-
430
- const vercel = new Vercel({
431
- bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
432
- });
433
-
434
- async function run() {
435
- const result = await vercel.integrations.searchRepo({
436
- host: "ghes-test.now.systems",
437
- teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
438
- slug: "my-team-url-slug",
439
- });
440
-
441
- // Handle the result
442
- console.log(result);
443
- }
444
-
445
- run();
446
- ```
447
-
448
- ### Standalone function
449
-
450
- The standalone function version of this method:
451
-
452
- ```typescript
453
- import { VercelCore } from "@vercel/sdk/core.js";
454
- import { integrationsSearchRepo } from "@vercel/sdk/funcs/integrationsSearchRepo.js";
455
-
456
- // Use `VercelCore` for best tree-shaking performance.
457
- // You can create one instance of it to use across an application.
458
- const vercel = new VercelCore({
459
- bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
460
- });
461
-
462
- async function run() {
463
- const res = await integrationsSearchRepo(vercel, {
464
- host: "ghes-test.now.systems",
465
- teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
466
- slug: "my-team-url-slug",
467
- });
468
-
469
- if (!res.ok) {
470
- throw res.error;
471
- }
472
-
473
- const { value: result } = res;
474
-
475
- // Handle the result
476
- console.log(result);
477
- }
478
-
479
- run();
480
- ```
481
-
482
- ### Parameters
483
-
484
- | Parameter | Type | Required | Description |
485
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
486
- | `request` | [models.SearchRepoRequest](../../models/searchreporequest.md) | :heavy_check_mark: | The request object to use for the request. |
487
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
488
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
489
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
490
-
491
- ### Response
492
-
493
- **Promise\<[models.SearchRepoResponseBody](../../models/searchreporesponsebody.md)\>**
494
-
495
- ### Errors
496
-
497
- | Error Type | Status Code | Content Type |
498
- | ---------------------------- | ---------------------------- | ---------------------------- |
499
- | models.VercelBadRequestError | 400 | application/json |
500
339
  | models.SDKError | 4XX, 5XX | \*/\* |
@@ -5,97 +5,11 @@
5
5
 
6
6
  ### Available Operations
7
7
 
8
- * [getConfigurableLogDrain](#getconfigurablelogdrain) - Retrieves a Configurable Log Drain
9
8
  * [deleteConfigurableLogDrain](#deleteconfigurablelogdrain) - Deletes a Configurable Log Drain
10
- * [getAllLogDrains](#getalllogdrains) - Retrieves a list of all the Log Drains
11
- * [createConfigurableLogDrain](#createconfigurablelogdrain) - Creates a Configurable Log Drain
12
9
  * [getIntegrationLogDrains](#getintegrationlogdrains) - Retrieves a list of Integration log drains
13
10
  * [createLogDrain](#createlogdrain) - Creates a new Integration Log Drain
14
11
  * [deleteIntegrationLogDrain](#deleteintegrationlogdrain) - Deletes the Integration log drain with the provided `id`
15
12
 
16
- ## getConfigurableLogDrain
17
-
18
- Retrieves a Configurable Log Drain. This endpoint must be called with a team AccessToken (integration OAuth2 clients are not allowed). Only log drains owned by the authenticated team can be accessed.
19
-
20
- ### Example Usage
21
-
22
- ```typescript
23
- import { Vercel } from "@vercel/sdk";
24
-
25
- const vercel = new Vercel({
26
- bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
27
- });
28
-
29
- async function run() {
30
- const result = await vercel.logDrains.getConfigurableLogDrain({
31
- id: "<id>",
32
- teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
33
- slug: "my-team-url-slug",
34
- });
35
-
36
- // Handle the result
37
- console.log(result);
38
- }
39
-
40
- run();
41
- ```
42
-
43
- ### Standalone function
44
-
45
- The standalone function version of this method:
46
-
47
- ```typescript
48
- import { VercelCore } from "@vercel/sdk/core.js";
49
- import { logDrainsGetConfigurableLogDrain } from "@vercel/sdk/funcs/logDrainsGetConfigurableLogDrain.js";
50
-
51
- // Use `VercelCore` for best tree-shaking performance.
52
- // You can create one instance of it to use across an application.
53
- const vercel = new VercelCore({
54
- bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
55
- });
56
-
57
- async function run() {
58
- const res = await logDrainsGetConfigurableLogDrain(vercel, {
59
- id: "<id>",
60
- teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
61
- slug: "my-team-url-slug",
62
- });
63
-
64
- if (!res.ok) {
65
- throw res.error;
66
- }
67
-
68
- const { value: result } = res;
69
-
70
- // Handle the result
71
- console.log(result);
72
- }
73
-
74
- run();
75
- ```
76
-
77
- ### Parameters
78
-
79
- | Parameter | Type | Required | Description |
80
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
81
- | `request` | [models.GetConfigurableLogDrainRequest](../../models/getconfigurablelogdrainrequest.md) | :heavy_check_mark: | The request object to use for the request. |
82
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
83
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
84
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
85
-
86
- ### Response
87
-
88
- **Promise\<[models.GetConfigurableLogDrainResponseBody](../../models/getconfigurablelogdrainresponsebody.md)\>**
89
-
90
- ### Errors
91
-
92
- | Error Type | Status Code | Content Type |
93
- | ---------------------------- | ---------------------------- | ---------------------------- |
94
- | models.VercelBadRequestError | 400 | application/json |
95
- | models.VercelForbiddenError | 401 | application/json |
96
- | models.VercelNotFoundError | 404 | application/json |
97
- | models.SDKError | 4XX, 5XX | \*/\* |
98
-
99
13
  ## deleteConfigurableLogDrain
100
14
 
101
15
  Deletes a Configurable Log Drain. This endpoint must be called with a team AccessToken (integration OAuth2 clients are not allowed). Only log drains owned by the authenticated team can be deleted.
@@ -177,180 +91,6 @@ run();
177
91
  | models.VercelNotFoundError | 404 | application/json |
178
92
  | models.SDKError | 4XX, 5XX | \*/\* |
179
93
 
180
- ## getAllLogDrains
181
-
182
- Retrieves a list of all the Log Drains owned by the account. This endpoint must be called with an account AccessToken (integration OAuth2 clients are not allowed). Only log drains owned by the authenticated account can be accessed.
183
-
184
- ### Example Usage
185
-
186
- ```typescript
187
- import { Vercel } from "@vercel/sdk";
188
-
189
- const vercel = new Vercel({
190
- bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
191
- });
192
-
193
- async function run() {
194
- const result = await vercel.logDrains.getAllLogDrains({
195
- teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
196
- slug: "my-team-url-slug",
197
- });
198
-
199
- // Handle the result
200
- console.log(result);
201
- }
202
-
203
- run();
204
- ```
205
-
206
- ### Standalone function
207
-
208
- The standalone function version of this method:
209
-
210
- ```typescript
211
- import { VercelCore } from "@vercel/sdk/core.js";
212
- import { logDrainsGetAllLogDrains } from "@vercel/sdk/funcs/logDrainsGetAllLogDrains.js";
213
-
214
- // Use `VercelCore` for best tree-shaking performance.
215
- // You can create one instance of it to use across an application.
216
- const vercel = new VercelCore({
217
- bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
218
- });
219
-
220
- async function run() {
221
- const res = await logDrainsGetAllLogDrains(vercel, {
222
- teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
223
- slug: "my-team-url-slug",
224
- });
225
-
226
- if (!res.ok) {
227
- throw res.error;
228
- }
229
-
230
- const { value: result } = res;
231
-
232
- // Handle the result
233
- console.log(result);
234
- }
235
-
236
- run();
237
- ```
238
-
239
- ### Parameters
240
-
241
- | Parameter | Type | Required | Description |
242
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
243
- | `request` | [models.GetAllLogDrainsRequest](../../models/getalllogdrainsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
244
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
245
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
246
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
247
-
248
- ### Response
249
-
250
- **Promise\<[models.GetAllLogDrainsResponseBody[]](../../models/.md)\>**
251
-
252
- ### Errors
253
-
254
- | Error Type | Status Code | Content Type |
255
- | ---------------------------- | ---------------------------- | ---------------------------- |
256
- | models.VercelBadRequestError | 400 | application/json |
257
- | models.VercelForbiddenError | 401 | application/json |
258
- | models.SDKError | 4XX, 5XX | \*/\* |
259
-
260
- ## createConfigurableLogDrain
261
-
262
- Creates a configurable log drain. This endpoint must be called with a team AccessToken (integration OAuth2 clients are not allowed)
263
-
264
- ### Example Usage
265
-
266
- ```typescript
267
- import { Vercel } from "@vercel/sdk";
268
-
269
- const vercel = new Vercel({
270
- bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
271
- });
272
-
273
- async function run() {
274
- const result = await vercel.logDrains.createConfigurableLogDrain({
275
- teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
276
- slug: "my-team-url-slug",
277
- requestBody: {
278
- deliveryFormat: "json",
279
- url: "https://sugary-technician.name",
280
- sources: [
281
- "external",
282
- ],
283
- },
284
- });
285
-
286
- // Handle the result
287
- console.log(result);
288
- }
289
-
290
- run();
291
- ```
292
-
293
- ### Standalone function
294
-
295
- The standalone function version of this method:
296
-
297
- ```typescript
298
- import { VercelCore } from "@vercel/sdk/core.js";
299
- import { logDrainsCreateConfigurableLogDrain } from "@vercel/sdk/funcs/logDrainsCreateConfigurableLogDrain.js";
300
-
301
- // Use `VercelCore` for best tree-shaking performance.
302
- // You can create one instance of it to use across an application.
303
- const vercel = new VercelCore({
304
- bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
305
- });
306
-
307
- async function run() {
308
- const res = await logDrainsCreateConfigurableLogDrain(vercel, {
309
- teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
310
- slug: "my-team-url-slug",
311
- requestBody: {
312
- deliveryFormat: "json",
313
- url: "https://sugary-technician.name",
314
- sources: [
315
- "external",
316
- ],
317
- },
318
- });
319
-
320
- if (!res.ok) {
321
- throw res.error;
322
- }
323
-
324
- const { value: result } = res;
325
-
326
- // Handle the result
327
- console.log(result);
328
- }
329
-
330
- run();
331
- ```
332
-
333
- ### Parameters
334
-
335
- | Parameter | Type | Required | Description |
336
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
337
- | `request` | [models.CreateConfigurableLogDrainRequest](../../models/createconfigurablelogdrainrequest.md) | :heavy_check_mark: | The request object to use for the request. |
338
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
339
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
340
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
341
-
342
- ### Response
343
-
344
- **Promise\<[models.CreateConfigurableLogDrainResponseBody](../../models/createconfigurablelogdrainresponsebody.md)\>**
345
-
346
- ### Errors
347
-
348
- | Error Type | Status Code | Content Type |
349
- | ---------------------------- | ---------------------------- | ---------------------------- |
350
- | models.VercelBadRequestError | 400 | application/json |
351
- | models.VercelForbiddenError | 401 | application/json |
352
- | models.SDKError | 4XX, 5XX | \*/\* |
353
-
354
94
  ## getIntegrationLogDrains
355
95
 
356
96
  Retrieves a list of all Integration log drains that are defined for the authenticated user or team. When using an OAuth2 token, the list is limited to log drains created by the authenticated integration.
@@ -855,9 +855,7 @@ async function run() {
855
855
  integrationProductIdOrSlug: "<value>",
856
856
  resourceId: "<id>",
857
857
  requestBody: {
858
- secrets: [
859
-
860
- ],
858
+ secrets: [],
861
859
  },
862
860
  });
863
861
 
@@ -887,9 +885,7 @@ async function run() {
887
885
  integrationProductIdOrSlug: "<value>",
888
886
  resourceId: "<id>",
889
887
  requestBody: {
890
- secrets: [
891
-
892
- ],
888
+ secrets: [],
893
889
  },
894
890
  });
895
891
 
@@ -6,6 +6,7 @@
6
6
  ### Available Operations
7
7
 
8
8
  * [updateAttackChallengeMode](#updateattackchallengemode) - Update Attack Challenge mode
9
+ * [putFirewallConfig](#putfirewallconfig) - Put Firewall Configuration
9
10
  * [updateFirewallConfig](#updatefirewallconfig) - Update Firewall Configuration
10
11
  * [getFirewallConfig](#getfirewallconfig) - Read Firewall Configuration
11
12
  * [getActiveAttackStatus](#getactiveattackstatus) - Read active attack data
@@ -102,6 +103,95 @@ run();
102
103
  | models.VercelNotFoundError | 404 | application/json |
103
104
  | models.SDKError | 4XX, 5XX | \*/\* |
104
105
 
106
+ ## putFirewallConfig
107
+
108
+ Set the firewall configuration to provided rules and settings. Creates or overwrite the existing firewall configuration.
109
+
110
+ ### Example Usage
111
+
112
+ ```typescript
113
+ import { Vercel } from "@vercel/sdk";
114
+
115
+ const vercel = new Vercel({
116
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
117
+ });
118
+
119
+ async function run() {
120
+ const result = await vercel.security.putFirewallConfig({
121
+ projectId: "<id>",
122
+ teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
123
+ slug: "my-team-url-slug",
124
+ requestBody: {
125
+ firewallEnabled: true,
126
+ },
127
+ });
128
+
129
+ // Handle the result
130
+ console.log(result);
131
+ }
132
+
133
+ run();
134
+ ```
135
+
136
+ ### Standalone function
137
+
138
+ The standalone function version of this method:
139
+
140
+ ```typescript
141
+ import { VercelCore } from "@vercel/sdk/core.js";
142
+ import { securityPutFirewallConfig } from "@vercel/sdk/funcs/securityPutFirewallConfig.js";
143
+
144
+ // Use `VercelCore` for best tree-shaking performance.
145
+ // You can create one instance of it to use across an application.
146
+ const vercel = new VercelCore({
147
+ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
148
+ });
149
+
150
+ async function run() {
151
+ const res = await securityPutFirewallConfig(vercel, {
152
+ projectId: "<id>",
153
+ teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
154
+ slug: "my-team-url-slug",
155
+ requestBody: {
156
+ firewallEnabled: true,
157
+ },
158
+ });
159
+
160
+ if (!res.ok) {
161
+ throw res.error;
162
+ }
163
+
164
+ const { value: result } = res;
165
+
166
+ // Handle the result
167
+ console.log(result);
168
+ }
169
+
170
+ run();
171
+ ```
172
+
173
+ ### Parameters
174
+
175
+ | Parameter | Type | Required | Description |
176
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
177
+ | `request` | [models.PutFirewallConfigRequest](../../models/putfirewallconfigrequest.md) | :heavy_check_mark: | The request object to use for the request. |
178
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
179
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
180
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
181
+
182
+ ### Response
183
+
184
+ **Promise\<[models.PutFirewallConfigResponseBody](../../models/putfirewallconfigresponsebody.md)\>**
185
+
186
+ ### Errors
187
+
188
+ | Error Type | Status Code | Content Type |
189
+ | ---------------------------- | ---------------------------- | ---------------------------- |
190
+ | models.VercelBadRequestError | 400 | application/json |
191
+ | models.VercelForbiddenError | 401 | application/json |
192
+ | models.VercelNotFoundError | 404 | application/json |
193
+ | models.SDKError | 4XX, 5XX | \*/\* |
194
+
105
195
  ## updateFirewallConfig
106
196
 
107
197
  Process updates to modify the existing firewall config for a project
@@ -29,9 +29,7 @@ async function run() {
29
29
  slug: "my-team-url-slug",
30
30
  requestBody: {
31
31
  url: "https://woeful-yin.biz",
32
- events: [
33
-
34
- ],
32
+ events: [],
35
33
  },
36
34
  });
37
35
 
@@ -62,9 +60,7 @@ async function run() {
62
60
  slug: "my-team-url-slug",
63
61
  requestBody: {
64
62
  url: "https://woeful-yin.biz",
65
- events: [
66
-
67
- ],
63
+ events: [],
68
64
  },
69
65
  });
70
66