@vercel/sdk 1.6.2 → 1.6.3

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 (188) hide show
  1. package/README.md +0 -10
  2. package/bin/mcp-server.js +1163 -2379
  3. package/bin/mcp-server.js.map +23 -38
  4. package/docs/sdks/integrations/README.md +0 -161
  5. package/docs/sdks/logdrains/README.md +0 -260
  6. package/esm/__tests__/integrations.test.js +5 -40
  7. package/esm/__tests__/integrations.test.js.map +1 -1
  8. package/esm/__tests__/logdrains.test.js +7 -89
  9. package/esm/__tests__/logdrains.test.js.map +1 -1
  10. package/esm/__tests__/security.test.js +1 -14
  11. package/esm/__tests__/security.test.js.map +1 -1
  12. package/esm/funcs/projectsCreateProject.js +2 -2
  13. package/esm/funcs/projectsCreateProject.js.map +1 -1
  14. package/esm/lib/config.d.ts +3 -3
  15. package/esm/lib/config.js +3 -3
  16. package/esm/lib/matchers.d.ts +3 -1
  17. package/esm/lib/matchers.d.ts.map +1 -1
  18. package/esm/lib/matchers.js +10 -0
  19. package/esm/lib/matchers.js.map +1 -1
  20. package/esm/lib/sdks.js +7 -2
  21. package/esm/lib/sdks.js.map +1 -1
  22. package/esm/mcp-server/mcp-server.js +1 -1
  23. package/esm/mcp-server/server.d.ts.map +1 -1
  24. package/esm/mcp-server/server.js +1 -11
  25. package/esm/mcp-server/server.js.map +1 -1
  26. package/esm/models/authuser.d.ts +41 -0
  27. package/esm/models/authuser.d.ts.map +1 -1
  28. package/esm/models/authuser.js +29 -0
  29. package/esm/models/authuser.js.map +1 -1
  30. package/esm/models/canceldeploymentop.d.ts +3 -3
  31. package/esm/models/canceldeploymentop.js +1 -1
  32. package/esm/models/canceldeploymentop.js.map +1 -1
  33. package/esm/models/createlogdrainop.d.ts +51 -51
  34. package/esm/models/createlogdrainop.d.ts.map +1 -1
  35. package/esm/models/createlogdrainop.js +74 -75
  36. package/esm/models/createlogdrainop.js.map +1 -1
  37. package/esm/models/createprojectop.d.ts +46 -16
  38. package/esm/models/createprojectop.d.ts.map +1 -1
  39. package/esm/models/createprojectop.js +17 -5
  40. package/esm/models/createprojectop.js.map +1 -1
  41. package/esm/models/exchangessotokenop.d.ts +34 -0
  42. package/esm/models/exchangessotokenop.d.ts.map +1 -1
  43. package/esm/models/exchangessotokenop.js +25 -0
  44. package/esm/models/exchangessotokenop.js.map +1 -1
  45. package/esm/models/getconfigurationsop.d.ts +19 -16
  46. package/esm/models/getconfigurationsop.d.ts.map +1 -1
  47. package/esm/models/getconfigurationsop.js +25 -27
  48. package/esm/models/getconfigurationsop.js.map +1 -1
  49. package/esm/models/getcustomenvironmentop.d.ts +3 -0
  50. package/esm/models/getcustomenvironmentop.d.ts.map +1 -1
  51. package/esm/models/getcustomenvironmentop.js.map +1 -1
  52. package/esm/models/getintegrationlogdrainsop.d.ts +11 -11
  53. package/esm/models/getintegrationlogdrainsop.d.ts.map +1 -1
  54. package/esm/models/getintegrationlogdrainsop.js +14 -13
  55. package/esm/models/getintegrationlogdrainsop.js.map +1 -1
  56. package/esm/models/getprojectsop.d.ts +46 -16
  57. package/esm/models/getprojectsop.d.ts.map +1 -1
  58. package/esm/models/getprojectsop.js +17 -5
  59. package/esm/models/getprojectsop.js.map +1 -1
  60. package/esm/models/getteammembersop.d.ts +9 -9
  61. package/esm/models/getteammembersop.js +3 -3
  62. package/esm/models/getteammembersop.js.map +1 -1
  63. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts +3 -0
  64. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts.map +1 -1
  65. package/esm/models/getv9projectsidornamecustomenvironmentsop.js.map +1 -1
  66. package/esm/models/updateprojectdatacacheop.d.ts +46 -16
  67. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  68. package/esm/models/updateprojectdatacacheop.js +17 -5
  69. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  70. package/esm/models/updateprojectop.d.ts +46 -16
  71. package/esm/models/updateprojectop.d.ts.map +1 -1
  72. package/esm/models/updateprojectop.js +17 -5
  73. package/esm/models/updateprojectop.js.map +1 -1
  74. package/esm/models/userevent.d.ts +569 -512
  75. package/esm/models/userevent.d.ts.map +1 -1
  76. package/esm/models/userevent.js +703 -645
  77. package/esm/models/userevent.js.map +1 -1
  78. package/esm/sdk/integrations.d.ts +0 -16
  79. package/esm/sdk/integrations.d.ts.map +1 -1
  80. package/esm/sdk/integrations.js +0 -20
  81. package/esm/sdk/integrations.js.map +1 -1
  82. package/esm/sdk/logdrains.d.ts +0 -24
  83. package/esm/sdk/logdrains.d.ts.map +1 -1
  84. package/esm/sdk/logdrains.js +0 -30
  85. package/esm/sdk/logdrains.js.map +1 -1
  86. package/jsr.json +1 -1
  87. package/package.json +1 -1
  88. package/src/__tests__/integrations.test.ts +9 -44
  89. package/src/__tests__/logdrains.test.ts +13 -95
  90. package/src/__tests__/security.test.ts +1 -14
  91. package/src/funcs/projectsCreateProject.ts +2 -2
  92. package/src/lib/config.ts +3 -3
  93. package/src/lib/matchers.ts +20 -0
  94. package/src/lib/sdks.ts +8 -2
  95. package/src/mcp-server/mcp-server.ts +1 -1
  96. package/src/mcp-server/server.ts +1 -11
  97. package/src/models/authuser.ts +74 -0
  98. package/src/models/canceldeploymentop.ts +1 -1
  99. package/src/models/createlogdrainop.ts +95 -112
  100. package/src/models/createprojectop.ts +42 -6
  101. package/src/models/exchangessotokenop.ts +44 -0
  102. package/src/models/getconfigurationsop.ts +34 -39
  103. package/src/models/getcustomenvironmentop.ts +3 -0
  104. package/src/models/getintegrationlogdrainsop.ts +15 -20
  105. package/src/models/getprojectsop.ts +42 -6
  106. package/src/models/getteammembersop.ts +3 -3
  107. package/src/models/getv9projectsidornamecustomenvironmentsop.ts +3 -0
  108. package/src/models/updateprojectdatacacheop.ts +42 -6
  109. package/src/models/updateprojectop.ts +42 -6
  110. package/src/models/userevent.ts +1328 -1193
  111. package/src/sdk/integrations.ts +0 -44
  112. package/src/sdk/logdrains.ts +0 -66
  113. package/vercel-spec.json +341 -1272
  114. package/esm/funcs/integrationsGitNamespaces.d.ts +0 -18
  115. package/esm/funcs/integrationsGitNamespaces.d.ts.map +0 -1
  116. package/esm/funcs/integrationsGitNamespaces.js +0 -86
  117. package/esm/funcs/integrationsGitNamespaces.js.map +0 -1
  118. package/esm/funcs/integrationsSearchRepo.d.ts +0 -17
  119. package/esm/funcs/integrationsSearchRepo.d.ts.map +0 -1
  120. package/esm/funcs/integrationsSearchRepo.js +0 -89
  121. package/esm/funcs/integrationsSearchRepo.js.map +0 -1
  122. package/esm/funcs/logDrainsCreateConfigurableLogDrain.d.ts +0 -18
  123. package/esm/funcs/logDrainsCreateConfigurableLogDrain.d.ts.map +0 -1
  124. package/esm/funcs/logDrainsCreateConfigurableLogDrain.js +0 -86
  125. package/esm/funcs/logDrainsCreateConfigurableLogDrain.js.map +0 -1
  126. package/esm/funcs/logDrainsGetAllLogDrains.d.ts +0 -18
  127. package/esm/funcs/logDrainsGetAllLogDrains.d.ts.map +0 -1
  128. package/esm/funcs/logDrainsGetAllLogDrains.js +0 -88
  129. package/esm/funcs/logDrainsGetAllLogDrains.js.map +0 -1
  130. package/esm/funcs/logDrainsGetConfigurableLogDrain.d.ts +0 -19
  131. package/esm/funcs/logDrainsGetConfigurableLogDrain.d.ts.map +0 -1
  132. package/esm/funcs/logDrainsGetConfigurableLogDrain.js +0 -92
  133. package/esm/funcs/logDrainsGetConfigurableLogDrain.js.map +0 -1
  134. package/esm/mcp-server/tools/integrationsGitNamespaces.d.ts +0 -7
  135. package/esm/mcp-server/tools/integrationsGitNamespaces.d.ts.map +0 -1
  136. package/esm/mcp-server/tools/integrationsGitNamespaces.js +0 -28
  137. package/esm/mcp-server/tools/integrationsGitNamespaces.js.map +0 -1
  138. package/esm/mcp-server/tools/integrationsSearchRepo.d.ts +0 -7
  139. package/esm/mcp-server/tools/integrationsSearchRepo.d.ts.map +0 -1
  140. package/esm/mcp-server/tools/integrationsSearchRepo.js +0 -28
  141. package/esm/mcp-server/tools/integrationsSearchRepo.js.map +0 -1
  142. package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.d.ts +0 -7
  143. package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.d.ts.map +0 -1
  144. package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.js +0 -28
  145. package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.js.map +0 -1
  146. package/esm/mcp-server/tools/logDrainsGetAllLogDrains.d.ts +0 -7
  147. package/esm/mcp-server/tools/logDrainsGetAllLogDrains.d.ts.map +0 -1
  148. package/esm/mcp-server/tools/logDrainsGetAllLogDrains.js +0 -28
  149. package/esm/mcp-server/tools/logDrainsGetAllLogDrains.js.map +0 -1
  150. package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.d.ts +0 -7
  151. package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.d.ts.map +0 -1
  152. package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.js +0 -28
  153. package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.js.map +0 -1
  154. package/esm/models/createconfigurablelogdrainop.d.ts +0 -451
  155. package/esm/models/createconfigurablelogdrainop.d.ts.map +0 -1
  156. package/esm/models/createconfigurablelogdrainop.js +0 -348
  157. package/esm/models/createconfigurablelogdrainop.js.map +0 -1
  158. package/esm/models/getalllogdrainsop.d.ts +0 -294
  159. package/esm/models/getalllogdrainsop.d.ts.map +0 -1
  160. package/esm/models/getalllogdrainsop.js +0 -231
  161. package/esm/models/getalllogdrainsop.js.map +0 -1
  162. package/esm/models/getconfigurablelogdrainop.d.ts +0 -292
  163. package/esm/models/getconfigurablelogdrainop.d.ts.map +0 -1
  164. package/esm/models/getconfigurablelogdrainop.js +0 -230
  165. package/esm/models/getconfigurablelogdrainop.js.map +0 -1
  166. package/esm/models/gitnamespacesop.d.ts +0 -126
  167. package/esm/models/gitnamespacesop.d.ts.map +0 -1
  168. package/esm/models/gitnamespacesop.js +0 -115
  169. package/esm/models/gitnamespacesop.js.map +0 -1
  170. package/esm/models/searchrepoop.d.ts +0 -421
  171. package/esm/models/searchrepoop.d.ts.map +0 -1
  172. package/esm/models/searchrepoop.js +0 -385
  173. package/esm/models/searchrepoop.js.map +0 -1
  174. package/src/funcs/integrationsGitNamespaces.ts +0 -185
  175. package/src/funcs/integrationsSearchRepo.ts +0 -181
  176. package/src/funcs/logDrainsCreateConfigurableLogDrain.ts +0 -185
  177. package/src/funcs/logDrainsGetAllLogDrains.ts +0 -187
  178. package/src/funcs/logDrainsGetConfigurableLogDrain.ts +0 -199
  179. package/src/mcp-server/tools/integrationsGitNamespaces.ts +0 -37
  180. package/src/mcp-server/tools/integrationsSearchRepo.ts +0 -37
  181. package/src/mcp-server/tools/logDrainsCreateConfigurableLogDrain.ts +0 -39
  182. package/src/mcp-server/tools/logDrainsGetAllLogDrains.ts +0 -37
  183. package/src/mcp-server/tools/logDrainsGetConfigurableLogDrain.ts +0 -39
  184. package/src/models/createconfigurablelogdrainop.ts +0 -652
  185. package/src/models/getalllogdrainsop.ts +0 -416
  186. package/src/models/getconfigurablelogdrainop.ts +0 -420
  187. package/src/models/gitnamespacesop.ts +0 -235
  188. package/src/models/searchrepoop.ts +0 -784
@@ -2,8 +2,6 @@ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
2
  import { DeleteConfigurationRequest } from "../models/deleteconfigurationop.js";
3
3
  import { GetConfigurationRequest, GetConfigurationResponseBody } from "../models/getconfigurationop.js";
4
4
  import { GetConfigurationsRequest, GetConfigurationsResponseBody } from "../models/getconfigurationsop.js";
5
- import { GitNamespacesRequest, GitNamespacesResponseBody } from "../models/gitnamespacesop.js";
6
- import { SearchRepoRequest, SearchRepoResponseBody } from "../models/searchrepoop.js";
7
5
  import { UpdateIntegrationDeploymentActionRequest } from "../models/updateintegrationdeploymentactionop.js";
8
6
  export declare class Integrations extends ClientSDK {
9
7
  /**
@@ -34,19 +32,5 @@ export declare class Integrations extends ClientSDK {
34
32
  * Allows to remove the configuration with the `id` provided in the parameters. The configuration and all of its resources will be removed. This includes Webhooks, LogDrains and Project Env variables.
35
33
  */
36
34
  deleteConfiguration(request: DeleteConfigurationRequest, options?: RequestOptions): Promise<void>;
37
- /**
38
- * List git namespaces by provider
39
- *
40
- * @remarks
41
- * 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.
42
- */
43
- gitNamespaces(request: GitNamespacesRequest, options?: RequestOptions): Promise<Array<GitNamespacesResponseBody>>;
44
- /**
45
- * List git repositories linked to namespace by provider
46
- *
47
- * @remarks
48
- * 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.
49
- */
50
- searchRepo(request: SearchRepoRequest, options?: RequestOptions): Promise<SearchRepoResponseBody>;
51
35
  }
52
36
  //# sourceMappingURL=integrations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../../src/sdk/integrations.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EACL,uBAAuB,EACvB,4BAA4B,EAC7B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,wBAAwB,EACxB,6BAA6B,EAC9B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EAC1B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,wCAAwC,EAAE,MAAM,kDAAkD,CAAC;AAG5G,qBAAa,YAAa,SAAQ,SAAS;IACzC;;;;;OAKG;IACG,iCAAiC,CACrC,OAAO,EAAE,wCA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;OAKG;IACG,iBAAiB,CACrB,OAAO,EAAE,wBAAwB,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,6BAA6B,CAAC;IAQzC;;;;;OAKG;IACG,gBAAgB,CACpB,OAAO,EAAE,uBAAuB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,4BAA4B,CAAC;IAQxC;;;;;OAKG;IACG,mBAAmB,CACvB,OAAO,EAAE,0BAA0B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;CAOjB"}
@@ -4,8 +4,6 @@
4
4
  import { integrationsDeleteConfiguration } from "../funcs/integrationsDeleteConfiguration.js";
5
5
  import { integrationsGetConfiguration } from "../funcs/integrationsGetConfiguration.js";
6
6
  import { integrationsGetConfigurations } from "../funcs/integrationsGetConfigurations.js";
7
- import { integrationsGitNamespaces } from "../funcs/integrationsGitNamespaces.js";
8
- import { integrationsSearchRepo } from "../funcs/integrationsSearchRepo.js";
9
7
  import { integrationsUpdateIntegrationDeploymentAction } from "../funcs/integrationsUpdateIntegrationDeploymentAction.js";
10
8
  import { ClientSDK } from "../lib/sdks.js";
11
9
  import { unwrapAsync } from "../types/fp.js";
@@ -46,23 +44,5 @@ export class Integrations extends ClientSDK {
46
44
  async deleteConfiguration(request, options) {
47
45
  return unwrapAsync(integrationsDeleteConfiguration(this, request, options));
48
46
  }
49
- /**
50
- * List git namespaces by provider
51
- *
52
- * @remarks
53
- * 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.
54
- */
55
- async gitNamespaces(request, options) {
56
- return unwrapAsync(integrationsGitNamespaces(this, request, options));
57
- }
58
- /**
59
- * List git repositories linked to namespace by provider
60
- *
61
- * @remarks
62
- * 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.
63
- */
64
- async searchRepo(request, options) {
65
- return unwrapAsync(integrationsSearchRepo(this, request, options));
66
- }
67
47
  }
68
48
  //# sourceMappingURL=integrations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"integrations.js","sourceRoot":"","sources":["../../src/sdk/integrations.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,+BAA+B,EAAE,MAAM,6CAA6C,CAAC;AAC9F,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,6CAA6C,EAAE,MAAM,2DAA2D,CAAC;AAC1H,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAmB3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,YAAa,SAAQ,SAAS;IACzC;;;;;OAKG;IACH,KAAK,CAAC,iCAAiC,CACrC,OAAiD,EACjD,OAAwB;QAExB,OAAO,WAAW,CAAC,6CAA6C,CAC9D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAAiC,EACjC,OAAwB;QAExB,OAAO,WAAW,CAAC,6BAA6B,CAC9C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,gBAAgB,CACpB,OAAgC,EAChC,OAAwB;QAExB,OAAO,WAAW,CAAC,4BAA4B,CAC7C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,mBAAmB,CACvB,OAAmC,EACnC,OAAwB;QAExB,OAAO,WAAW,CAAC,+BAA+B,CAChD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,aAAa,CACjB,OAA6B,EAC7B,OAAwB;QAExB,OAAO,WAAW,CAAC,yBAAyB,CAC1C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,UAAU,CACd,OAA0B,EAC1B,OAAwB;QAExB,OAAO,WAAW,CAAC,sBAAsB,CACvC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"integrations.js","sourceRoot":"","sources":["../../src/sdk/integrations.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,+BAA+B,EAAE,MAAM,6CAA6C,CAAC;AAC9F,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,6CAA6C,EAAE,MAAM,2DAA2D,CAAC;AAC1H,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAW3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,YAAa,SAAQ,SAAS;IACzC;;;;;OAKG;IACH,KAAK,CAAC,iCAAiC,CACrC,OAAiD,EACjD,OAAwB;QAExB,OAAO,WAAW,CAAC,6CAA6C,CAC9D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAAiC,EACjC,OAAwB;QAExB,OAAO,WAAW,CAAC,6BAA6B,CAC9C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,gBAAgB,CACpB,OAAgC,EAChC,OAAwB;QAExB,OAAO,WAAW,CAAC,4BAA4B,CAC7C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,mBAAmB,CACvB,OAAmC,EACnC,OAAwB;QAExB,OAAO,WAAW,CAAC,+BAA+B,CAChD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,19 +1,9 @@
1
1
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
- import { CreateConfigurableLogDrainRequest, CreateConfigurableLogDrainResponseBody } from "../models/createconfigurablelogdrainop.js";
3
2
  import { CreateLogDrainRequest, CreateLogDrainResponseBody } from "../models/createlogdrainop.js";
4
3
  import { DeleteConfigurableLogDrainRequest } from "../models/deleteconfigurablelogdrainop.js";
5
4
  import { DeleteIntegrationLogDrainRequest } from "../models/deleteintegrationlogdrainop.js";
6
- import { GetAllLogDrainsRequest, GetAllLogDrainsResponseBody } from "../models/getalllogdrainsop.js";
7
- import { GetConfigurableLogDrainRequest, GetConfigurableLogDrainResponseBody } from "../models/getconfigurablelogdrainop.js";
8
5
  import { GetIntegrationLogDrainsRequest, GetIntegrationLogDrainsResponseBody } from "../models/getintegrationlogdrainsop.js";
9
6
  export declare class LogDrains extends ClientSDK {
10
- /**
11
- * Retrieves a Configurable Log Drain
12
- *
13
- * @remarks
14
- * 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.
15
- */
16
- getConfigurableLogDrain(request: GetConfigurableLogDrainRequest, options?: RequestOptions): Promise<GetConfigurableLogDrainResponseBody>;
17
7
  /**
18
8
  * Deletes a Configurable Log Drain
19
9
  *
@@ -21,20 +11,6 @@ export declare class LogDrains extends ClientSDK {
21
11
  * 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.
22
12
  */
23
13
  deleteConfigurableLogDrain(request: DeleteConfigurableLogDrainRequest, options?: RequestOptions): Promise<void>;
24
- /**
25
- * Retrieves a list of all the Log Drains
26
- *
27
- * @remarks
28
- * 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.
29
- */
30
- getAllLogDrains(request: GetAllLogDrainsRequest, options?: RequestOptions): Promise<Array<GetAllLogDrainsResponseBody>>;
31
- /**
32
- * Creates a Configurable Log Drain
33
- *
34
- * @remarks
35
- * Creates a configurable log drain. This endpoint must be called with a team AccessToken (integration OAuth2 clients are not allowed)
36
- */
37
- createConfigurableLogDrain(request: CreateConfigurableLogDrainRequest, options?: RequestOptions): Promise<CreateConfigurableLogDrainResponseBody>;
38
14
  /**
39
15
  * Retrieves a list of Integration log drains
40
16
  *
@@ -1 +1 @@
1
- {"version":3,"file":"logdrains.d.ts","sourceRoot":"","sources":["../../src/sdk/logdrains.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EACL,iCAAiC,EACjC,sCAAsC,EACvC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,qBAAqB,EACrB,0BAA0B,EAC3B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,2CAA2C,CAAC;AAC9F,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAC5F,OAAO,EACL,sBAAsB,EACtB,2BAA2B,EAC5B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,8BAA8B,EAC9B,mCAAmC,EACpC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,8BAA8B,EAC9B,mCAAmC,EACpC,MAAM,wCAAwC,CAAC;AAGhD,qBAAa,SAAU,SAAQ,SAAS;IACtC;;;;;OAKG;IACG,uBA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AM,wCAAwC,CAAC;AAGhD,qBAAa,SAAU,SAAQ,SAAS;IACtC;;;;;OAKG;IACG,0BAA0B,CAC9B,OAAO,EAAE,iCAAiC,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;IAQhB;;;;;OAKG;IACG,uBAAuB,CAC3B,OAAO,EAAE,8BAA8B,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAAC;IAQtD;;;;;OAKG;IACG,cAAc,CAClB,OAAO,EAAE,qBAAqB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,0BAA0B,CAAC;IAQtC;;;;;OAKG;IACG,yBAAyB,CAC7B,OAAO,EAAE,gCAAgC,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;CAOjB"}
@@ -1,25 +1,13 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
- import { logDrainsCreateConfigurableLogDrain } from "../funcs/logDrainsCreateConfigurableLogDrain.js";
5
4
  import { logDrainsCreateLogDrain } from "../funcs/logDrainsCreateLogDrain.js";
6
5
  import { logDrainsDeleteConfigurableLogDrain } from "../funcs/logDrainsDeleteConfigurableLogDrain.js";
7
6
  import { logDrainsDeleteIntegrationLogDrain } from "../funcs/logDrainsDeleteIntegrationLogDrain.js";
8
- import { logDrainsGetAllLogDrains } from "../funcs/logDrainsGetAllLogDrains.js";
9
- import { logDrainsGetConfigurableLogDrain } from "../funcs/logDrainsGetConfigurableLogDrain.js";
10
7
  import { logDrainsGetIntegrationLogDrains } from "../funcs/logDrainsGetIntegrationLogDrains.js";
11
8
  import { ClientSDK } from "../lib/sdks.js";
12
9
  import { unwrapAsync } from "../types/fp.js";
13
10
  export class LogDrains extends ClientSDK {
14
- /**
15
- * Retrieves a Configurable Log Drain
16
- *
17
- * @remarks
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
- async getConfigurableLogDrain(request, options) {
21
- return unwrapAsync(logDrainsGetConfigurableLogDrain(this, request, options));
22
- }
23
11
  /**
24
12
  * Deletes a Configurable Log Drain
25
13
  *
@@ -29,24 +17,6 @@ export class LogDrains extends ClientSDK {
29
17
  async deleteConfigurableLogDrain(request, options) {
30
18
  return unwrapAsync(logDrainsDeleteConfigurableLogDrain(this, request, options));
31
19
  }
32
- /**
33
- * Retrieves a list of all the Log Drains
34
- *
35
- * @remarks
36
- * 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.
37
- */
38
- async getAllLogDrains(request, options) {
39
- return unwrapAsync(logDrainsGetAllLogDrains(this, request, options));
40
- }
41
- /**
42
- * Creates a Configurable Log Drain
43
- *
44
- * @remarks
45
- * Creates a configurable log drain. This endpoint must be called with a team AccessToken (integration OAuth2 clients are not allowed)
46
- */
47
- async createConfigurableLogDrain(request, options) {
48
- return unwrapAsync(logDrainsCreateConfigurableLogDrain(this, request, options));
49
- }
50
20
  /**
51
21
  * Retrieves a list of Integration log drains
52
22
  *
@@ -1 +1 @@
1
- {"version":3,"file":"logdrains.js","sourceRoot":"","sources":["../../src/sdk/logdrains.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mCAAmC,EAAE,MAAM,iDAAiD,CAAC;AACtG,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,mCAAmC,EAAE,MAAM,iDAAiD,CAAC;AACtG,OAAO,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;AACpG,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,gCAAgC,EAAE,MAAM,8CAA8C,CAAC;AAChG,OAAO,EAAE,gCAAgC,EAAE,M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AC,kCAAkC,CACnD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"logdrains.js","sourceRoot":"","sources":["../../src/sdk/logdrains.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,mCAAmC,EAAE,MAAM,iDAAiD,CAAC;AACtG,OAAO,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;AACpG,OAAO,EAAE,gCAAgC,EAAE,MAAM,8CAA8C,CAAC;AAChG,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAW3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,SAAU,SAAQ,SAAS;IACtC;;;;;OAKG;IACH,KAAK,CAAC,0BAA0B,CAC9B,OAA0C,EAC1C,OAAwB;QAExB,OAAO,WAAW,CAAC,mCAAmC,CACpD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,uBAAuB,CAC3B,OAAuC,EACvC,OAAwB;QAExB,OAAO,WAAW,CAAC,gCAAgC,CACjD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAClB,OAA8B,EAC9B,OAAwB;QAExB,OAAO,WAAW,CAAC,uBAAuB,CACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,yBAAyB,CAC7B,OAAyC,EACzC,OAAwB;QAExB,OAAO,WAAW,CAAC,kCAAkC,CACnD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@vercel/sdk",
5
- "version": "1.6.2",
5
+ "version": "1.6.3",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models": "./src/models/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/sdk",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "author": "Speakeasy",
5
5
  "type": "module",
6
6
  "bin": {
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { expect, test } from "vitest";
5
+ import { assert, expect, it, test } from "vitest";
6
6
  import { Vercel } from "../index.js";
7
7
  import { createTestHTTPClient } from "./testclient.js";
8
8
 
@@ -62,49 +62,14 @@ test("Integrations Delete Configuration", async () => {
62
62
  });
63
63
  });
64
64
 
65
- test("Integrations Git Namespaces", async () => {
66
- const testHttpClient = createTestHTTPClient("gitNamespaces");
67
-
68
- const vercel = new Vercel({
69
- serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
70
- httpClient: testHttpClient,
71
- bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
72
- });
73
-
74
- const result = await vercel.integrations.gitNamespaces({
75
- host: "ghes-test.now.systems",
76
- });
77
- expect(result).toBeDefined();
78
- expect(result).toEqual([
79
- {
80
- provider: "<value>",
81
- slug: "<value>",
82
- id: "8350.19",
83
- ownerType: "<value>",
84
- },
85
- {
86
- provider: "<value>",
87
- slug: "<value>",
88
- id: "4647.99",
89
- ownerType: "<value>",
90
- },
91
- ]);
65
+ it.skip("Integrations Git Namespaces", async () => {
66
+ assert.fail(
67
+ "incomplete test found please make sure to address the following errors: [`workflow step gitNamespaces.test referencing operation gitNamespaces not found in document`]",
68
+ );
92
69
  });
93
70
 
94
- test("Integrations Search Repo", async () => {
95
- const testHttpClient = createTestHTTPClient("searchRepo");
96
-
97
- const vercel = new Vercel({
98
- serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
99
- httpClient: testHttpClient,
100
- bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
101
- });
102
-
103
- const result = await vercel.integrations.searchRepo({
104
- host: "ghes-test.now.systems",
105
- teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
106
- slug: "my-team-url-slug",
107
- });
108
- expect(result).toBeDefined();
109
- expect(result).toEqual({});
71
+ it.skip("Integrations Search Repo", async () => {
72
+ assert.fail(
73
+ "incomplete test found please make sure to address the following errors: [`workflow step searchRepo.test referencing operation searchRepo not found in document`]",
74
+ );
110
75
  });
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { expect, test } from "vitest";
5
+ import { assert, expect, it, test } from "vitest";
6
6
  import { Vercel } from "../index.js";
7
7
  import { createTestHTTPClient } from "./testclient.js";
8
8
 
@@ -117,36 +117,10 @@ test("Logdrains Delete Integration Log Drain", async () => {
117
117
  });
118
118
  });
119
119
 
120
- test("Logdrains Get Configurable Log Drain", async () => {
121
- const testHttpClient = createTestHTTPClient("getConfigurableLogDrain");
122
-
123
- const vercel = new Vercel({
124
- serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
125
- httpClient: testHttpClient,
126
- bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
127
- });
128
-
129
- const result = await vercel.logDrains.getConfigurableLogDrain({
130
- id: "<id>",
131
- teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
132
- slug: "my-team-url-slug",
133
- });
134
- expect(result).toBeDefined();
135
- expect(result).toEqual({
136
- environments: [
137
- "production",
138
- "production",
139
- ],
140
- id: "<id>",
141
- createdAt: 9979.70,
142
- deletedAt: 2589.89,
143
- updatedAt: 1929.64,
144
- url: "https://pleasant-beret.com/",
145
- name: "<value>",
146
- ownerId: "<id>",
147
- deliveryFormat: "json",
148
- secret: "<value>",
149
- });
120
+ it.skip("Logdrains Get Configurable Log Drain", async () => {
121
+ assert.fail(
122
+ "incomplete test found please make sure to address the following errors: [`workflow step getConfigurableLogDrain.test referencing operation getConfigurableLogDrain not found in document`]",
123
+ );
150
124
  });
151
125
 
152
126
  test("Logdrains Delete Configurable Log Drain", async () => {
@@ -165,70 +139,14 @@ test("Logdrains Delete Configurable Log Drain", async () => {
165
139
  });
166
140
  });
167
141
 
168
- test("Logdrains Get All Log Drains", async () => {
169
- const testHttpClient = createTestHTTPClient("getAllLogDrains");
170
-
171
- const vercel = new Vercel({
172
- serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
173
- httpClient: testHttpClient,
174
- bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
175
- });
176
-
177
- const result = await vercel.logDrains.getAllLogDrains({
178
- teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
179
- slug: "my-team-url-slug",
180
- });
181
- expect(result).toBeDefined();
182
- expect(result).toEqual([
183
- {
184
- environments: [
185
- "production",
186
- ],
187
- id: "<id>",
188
- createdAt: 5878.41,
189
- deletedAt: 1366.34,
190
- updatedAt: 8559.11,
191
- url: "https://perfumed-director.net/",
192
- name: "<value>",
193
- ownerId: "<id>",
194
- deliveryFormat: "json",
195
- },
196
- ]);
142
+ it.skip("Logdrains Get All Log Drains", async () => {
143
+ assert.fail(
144
+ "incomplete test found please make sure to address the following errors: [`workflow step getAllLogDrains.test referencing operation getAllLogDrains not found in document`]",
145
+ );
197
146
  });
198
147
 
199
- test("Logdrains Create Configurable Log Drain", async () => {
200
- const testHttpClient = createTestHTTPClient("createConfigurableLogDrain");
201
-
202
- const vercel = new Vercel({
203
- serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
204
- httpClient: testHttpClient,
205
- bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
206
- });
207
-
208
- const result = await vercel.logDrains.createConfigurableLogDrain({
209
- teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
210
- slug: "my-team-url-slug",
211
- requestBody: {
212
- deliveryFormat: "json",
213
- url: "https://sugary-technician.name",
214
- sources: [
215
- "external",
216
- ],
217
- },
218
- });
219
- expect(result).toBeDefined();
220
- expect(result).toEqual({
221
- environments: [
222
- "preview",
223
- "production",
224
- ],
225
- id: "<id>",
226
- createdAt: 911.21,
227
- deletedAt: 5254.68,
228
- updatedAt: 3248.86,
229
- url: "https://close-dividend.biz",
230
- name: "<value>",
231
- ownerId: "<id>",
232
- deliveryFormat: "json",
233
- });
148
+ it.skip("Logdrains Create Configurable Log Drain", async () => {
149
+ assert.fail(
150
+ "incomplete test found please make sure to address the following errors: [`workflow step createConfigurableLogDrain.test referencing operation createConfigurableLogDrain not found in document`]",
151
+ );
234
152
  });
@@ -189,20 +189,7 @@ test("Security Get Bypass Ip", async () => {
189
189
  slug: "my-team-url-slug",
190
190
  });
191
191
  expect(result).toBeDefined();
192
- expect(result).toEqual({
193
- result: [
194
- {
195
- ownerId: "<id>",
196
- id: "<id>",
197
- domain: "unfinished-lender.info",
198
- ip: "cae5:14bd:ddd0:3cea:5afd:1bfe:276c:9c15",
199
- createdAt: "1718184278808",
200
- updatedAt: "1744577466408",
201
- updatedAtHour: "<value>",
202
- },
203
- ],
204
- pagination: "<value>",
205
- });
192
+ expect(result).toEqual({});
206
193
  });
207
194
 
208
195
  test("Security Add Bypass Ip", async () => {
@@ -146,7 +146,7 @@ async function $do(
146
146
 
147
147
  const doResult = await client._do(req, {
148
148
  context,
149
- errorCodes: ["400", "401", "402", "403", "409", "4XX", "5XX"],
149
+ errorCodes: ["400", "401", "402", "403", "409", "4XX", "501", "5XX"],
150
150
  retryConfig: context.retryConfig,
151
151
  retryCodes: context.retryCodes,
152
152
  });
@@ -175,7 +175,7 @@ async function $do(
175
175
  M.jsonErr(400, VercelBadRequestError$inboundSchema),
176
176
  M.jsonErr(401, VercelForbiddenError$inboundSchema),
177
177
  M.fail([402, 403, 409, "4XX"]),
178
- M.fail("5XX"),
178
+ M.fail([501, "5XX"]),
179
179
  )(response, { extraFields: responseFields });
180
180
  if (!result.ok) {
181
181
  return [result, { status: "complete", request: req, response }];
package/src/lib/config.ts CHANGED
@@ -57,7 +57,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
57
57
  export const SDK_METADATA = {
58
58
  language: "typescript",
59
59
  openapiDocVersion: "0.0.1",
60
- sdkVersion: "1.6.2",
61
- genVersion: "2.570.4",
62
- userAgent: "speakeasy-sdk/typescript 1.6.2 2.570.4 0.0.1 @vercel/sdk",
60
+ sdkVersion: "1.6.3",
61
+ genVersion: "2.578.0",
62
+ userAgent: "speakeasy-sdk/typescript 1.6.3 2.578.0 0.0.1 @vercel/sdk",
63
63
  } as const;
@@ -10,6 +10,7 @@ import { isPlainObject } from "./is-plain-object.js";
10
10
  import { safeParse } from "./schemas.js";
11
11
 
12
12
  export type Encoding =
13
+ | "jsonl"
13
14
  | "json"
14
15
  | "text"
15
16
  | "bytes"
@@ -19,6 +20,7 @@ export type Encoding =
19
20
  | "fail";
20
21
 
21
22
  const DEFAULT_CONTENT_TYPES: Record<Encoding, string> = {
23
+ jsonl: "application/jsonl",
22
24
  json: "application/json",
23
25
  text: "text/plain",
24
26
  bytes: "application/octet-stream",
@@ -72,6 +74,21 @@ export function json<T>(
72
74
  return { ...options, enc: "json", codes, schema };
73
75
  }
74
76
 
77
+ export function jsonl<T>(
78
+ codes: StatusCodePredicate,
79
+ schema: Schema<T>,
80
+ options?: MatchOptions,
81
+ ): ValueMatcher<T> {
82
+ return { ...options, enc: "jsonl", codes, schema };
83
+ }
84
+
85
+ export function jsonlErr<E>(
86
+ codes: StatusCodePredicate,
87
+ schema: Schema<E>,
88
+ options?: MatchOptions,
89
+ ): ErrorMatcher<E> {
90
+ return { ...options, err: true, enc: "jsonl", codes, schema };
91
+ }
75
92
  export function textErr<E>(
76
93
  codes: StatusCodePredicate,
77
94
  schema: Schema<E>,
@@ -204,6 +221,9 @@ export function match<T, E>(
204
221
  case "json":
205
222
  raw = await response.json();
206
223
  break;
224
+ case "jsonl":
225
+ raw = response.body;
226
+ break;
207
227
  case "bytes":
208
228
  raw = new Uint8Array(await response.arrayBuffer());
209
229
  break;
package/src/lib/sdks.ts CHANGED
@@ -298,7 +298,9 @@ export class ClientSDK {
298
298
  }
299
299
  }
300
300
 
301
- const jsonLikeContentTypeRE = /^application\/(?:.{0,100}\+)?json/;
301
+ const jsonLikeContentTypeRE = /(application|text)\/.*?\+*json.*/;
302
+ const jsonlLikeContentTypeRE =
303
+ /(application|text)\/(.*?\+*\bjsonl\b.*|.*?\+*\bx-ndjson\b.*)/;
302
304
  async function logRequest(logger: Logger | undefined, req: Request) {
303
305
  if (!logger) {
304
306
  return;
@@ -364,9 +366,13 @@ async function logResponse(
364
366
  logger.group("Body:");
365
367
  switch (true) {
366
368
  case matchContentType(res, "application/json")
367
- || jsonLikeContentTypeRE.test(ct):
369
+ || jsonLikeContentTypeRE.test(ct) && !jsonlLikeContentTypeRE.test(ct):
368
370
  logger.log(await res.clone().json());
369
371
  break;
372
+ case matchContentType(res, "application/jsonl")
373
+ || jsonlLikeContentTypeRE.test(ct):
374
+ logger.log(await res.clone().text());
375
+ break;
370
376
  case matchContentType(res, "text/event-stream"):
371
377
  logger.log(`<${contentType}>`);
372
378
  break;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "1.6.2",
22
+ currentVersion: "1.6.3",
23
23
  },
24
24
  });
25
25
 
@@ -97,15 +97,10 @@ import { tool$environmentUpdateCustomEnvironment } from "./tools/environmentUpda
97
97
  import { tool$integrationsDeleteConfiguration } from "./tools/integrationsDeleteConfiguration.js";
98
98
  import { tool$integrationsGetConfiguration } from "./tools/integrationsGetConfiguration.js";
99
99
  import { tool$integrationsGetConfigurations } from "./tools/integrationsGetConfigurations.js";
100
- import { tool$integrationsGitNamespaces } from "./tools/integrationsGitNamespaces.js";
101
- import { tool$integrationsSearchRepo } from "./tools/integrationsSearchRepo.js";
102
100
  import { tool$integrationsUpdateIntegrationDeploymentAction } from "./tools/integrationsUpdateIntegrationDeploymentAction.js";
103
- import { tool$logDrainsCreateConfigurableLogDrain } from "./tools/logDrainsCreateConfigurableLogDrain.js";
104
101
  import { tool$logDrainsCreateLogDrain } from "./tools/logDrainsCreateLogDrain.js";
105
102
  import { tool$logDrainsDeleteConfigurableLogDrain } from "./tools/logDrainsDeleteConfigurableLogDrain.js";
106
103
  import { tool$logDrainsDeleteIntegrationLogDrain } from "./tools/logDrainsDeleteIntegrationLogDrain.js";
107
- import { tool$logDrainsGetAllLogDrains } from "./tools/logDrainsGetAllLogDrains.js";
108
- import { tool$logDrainsGetConfigurableLogDrain } from "./tools/logDrainsGetConfigurableLogDrain.js";
109
104
  import { tool$logDrainsGetIntegrationLogDrains } from "./tools/logDrainsGetIntegrationLogDrains.js";
110
105
  import { tool$marketplaceCreateEvent } from "./tools/marketplaceCreateEvent.js";
111
106
  import { tool$marketplaceCreateInstallationIntegrationConfiguration } from "./tools/marketplaceCreateInstallationIntegrationConfiguration.js";
@@ -188,7 +183,7 @@ export function createMCPServer(deps: {
188
183
  }) {
189
184
  const server = new McpServer({
190
185
  name: "Vercel",
191
- version: "1.6.2",
186
+ version: "1.6.3",
192
187
  });
193
188
 
194
189
  const client = new VercelCore({
@@ -277,8 +272,6 @@ export function createMCPServer(deps: {
277
272
  tool(tool$integrationsGetConfigurations);
278
273
  tool(tool$integrationsGetConfiguration);
279
274
  tool(tool$integrationsDeleteConfiguration);
280
- tool(tool$integrationsGitNamespaces);
281
- tool(tool$integrationsSearchRepo);
282
275
  tool(tool$domainsBuyDomain);
283
276
  tool(tool$domainsCheckDomainPrice);
284
277
  tool(tool$domainsCheckDomainStatus);
@@ -293,10 +286,7 @@ export function createMCPServer(deps: {
293
286
  tool(tool$dnsCreateRecord);
294
287
  tool(tool$dnsUpdateRecord);
295
288
  tool(tool$dnsRemoveRecord);
296
- tool(tool$logDrainsGetConfigurableLogDrain);
297
289
  tool(tool$logDrainsDeleteConfigurableLogDrain);
298
- tool(tool$logDrainsGetAllLogDrains);
299
- tool(tool$logDrainsCreateConfigurableLogDrain);
300
290
  tool(tool$logDrainsGetIntegrationLogDrains);
301
291
  tool(tool$logDrainsCreateLogDrain);
302
292
  tool(tool$logDrainsDeleteIntegrationLogDrain);