@vercel/sdk 1.5.0 → 1.6.0

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 +42 -12
  2. package/bin/mcp-server.js +9063 -1886
  3. package/bin/mcp-server.js.map +54 -53
  4. package/docs/sdks/marketplace/README.md +75 -0
  5. package/docs/sdks/teams/README.md +0 -2
  6. package/esm/__tests__/apiexperimentation.test.js +3 -15
  7. package/esm/__tests__/apiexperimentation.test.js.map +1 -1
  8. package/esm/__tests__/marketplace.test.js +15 -2
  9. package/esm/__tests__/marketplace.test.js.map +1 -1
  10. package/esm/__tests__/security.test.js +0 -10
  11. package/esm/__tests__/security.test.js.map +1 -1
  12. package/esm/__tests__/teams.test.js +3 -48
  13. package/esm/__tests__/teams.test.js.map +1 -1
  14. package/esm/funcs/deploymentsGetDeployments.js +2 -0
  15. package/esm/funcs/deploymentsGetDeployments.js.map +1 -1
  16. package/esm/funcs/marketplaceQueryExperimentationItems.d.ts +18 -0
  17. package/esm/funcs/marketplaceQueryExperimentationItems.d.ts.map +1 -0
  18. package/esm/funcs/{apiExperimentationGetV1ExperimentationItems.js → marketplaceQueryExperimentationItems.js} +9 -6
  19. package/esm/funcs/marketplaceQueryExperimentationItems.js.map +1 -0
  20. package/esm/funcs/projectsCreateProjectTransferRequest.js +3 -2
  21. package/esm/funcs/projectsCreateProjectTransferRequest.js.map +1 -1
  22. package/esm/funcs/teamsGetTeamMembers.js +2 -8
  23. package/esm/funcs/teamsGetTeamMembers.js.map +1 -1
  24. package/esm/hooks/types.d.ts +1 -1
  25. package/esm/hooks/types.d.ts.map +1 -1
  26. package/esm/lib/config.d.ts +3 -3
  27. package/esm/lib/config.js +3 -3
  28. package/esm/lib/security.d.ts +4 -3
  29. package/esm/lib/security.d.ts.map +1 -1
  30. package/esm/lib/security.js +6 -1
  31. package/esm/lib/security.js.map +1 -1
  32. package/esm/mcp-server/extensions.d.ts +2 -0
  33. package/esm/mcp-server/extensions.d.ts.map +1 -1
  34. package/esm/mcp-server/mcp-server.js +1 -1
  35. package/esm/mcp-server/prompts.d.ts +26 -0
  36. package/esm/mcp-server/prompts.d.ts.map +1 -0
  37. package/esm/mcp-server/prompts.js +43 -0
  38. package/esm/mcp-server/prompts.js.map +1 -0
  39. package/esm/mcp-server/resources.d.ts.map +1 -1
  40. package/esm/mcp-server/resources.js +1 -0
  41. package/esm/mcp-server/resources.js.map +1 -1
  42. package/esm/mcp-server/server.d.ts.map +1 -1
  43. package/esm/mcp-server/server.js +6 -4
  44. package/esm/mcp-server/server.js.map +1 -1
  45. package/esm/mcp-server/tools/marketplaceQueryExperimentationItems.d.ts +7 -0
  46. package/esm/mcp-server/tools/marketplaceQueryExperimentationItems.d.ts.map +1 -0
  47. package/esm/mcp-server/tools/marketplaceQueryExperimentationItems.js +28 -0
  48. package/esm/mcp-server/tools/marketplaceQueryExperimentationItems.js.map +1 -0
  49. package/esm/mcp-server/tools.d.ts.map +1 -1
  50. package/esm/mcp-server/tools.js +1 -0
  51. package/esm/mcp-server/tools.js.map +1 -1
  52. package/esm/models/addbypassipop.d.ts +2 -0
  53. package/esm/models/addbypassipop.d.ts.map +1 -1
  54. package/esm/models/addbypassipop.js +4 -0
  55. package/esm/models/addbypassipop.js.map +1 -1
  56. package/esm/models/authtoken.d.ts +46 -46
  57. package/esm/models/authtoken.d.ts.map +1 -1
  58. package/esm/models/authtoken.js +63 -61
  59. package/esm/models/authtoken.js.map +1 -1
  60. package/esm/models/authuser.d.ts +5 -0
  61. package/esm/models/authuser.d.ts.map +1 -1
  62. package/esm/models/authuser.js +2 -0
  63. package/esm/models/authuser.js.map +1 -1
  64. package/esm/models/canceldeploymentop.d.ts +20 -5
  65. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  66. package/esm/models/canceldeploymentop.js +12 -3
  67. package/esm/models/canceldeploymentop.js.map +1 -1
  68. package/esm/models/createconfigurablelogdrainop.d.ts +62 -59
  69. package/esm/models/createconfigurablelogdrainop.d.ts.map +1 -1
  70. package/esm/models/createconfigurablelogdrainop.js +49 -48
  71. package/esm/models/createconfigurablelogdrainop.js.map +1 -1
  72. package/esm/models/createdeploymentop.d.ts +169 -154
  73. package/esm/models/createdeploymentop.d.ts.map +1 -1
  74. package/esm/models/createdeploymentop.js +167 -162
  75. package/esm/models/createdeploymentop.js.map +1 -1
  76. package/esm/models/createlogdrainop.d.ts +3 -0
  77. package/esm/models/createlogdrainop.d.ts.map +1 -1
  78. package/esm/models/createlogdrainop.js +1 -0
  79. package/esm/models/createlogdrainop.js.map +1 -1
  80. package/esm/models/createprojectop.d.ts +101 -95
  81. package/esm/models/createprojectop.d.ts.map +1 -1
  82. package/esm/models/createprojectop.js +113 -112
  83. package/esm/models/createprojectop.js.map +1 -1
  84. package/esm/models/createprojecttransferrequestop.d.ts +35 -0
  85. package/esm/models/createprojecttransferrequestop.d.ts.map +1 -1
  86. package/esm/models/createprojecttransferrequestop.js +38 -0
  87. package/esm/models/createprojecttransferrequestop.js.map +1 -1
  88. package/esm/models/createrecordop.d.ts +69 -69
  89. package/esm/models/createrecordop.d.ts.map +1 -1
  90. package/esm/models/createrecordop.js +85 -92
  91. package/esm/models/createrecordop.js.map +1 -1
  92. package/esm/models/deleteteamop.d.ts +15 -15
  93. package/esm/models/deleteteamop.d.ts.map +1 -1
  94. package/esm/models/deleteteamop.js +15 -15
  95. package/esm/models/deleteteamop.js.map +1 -1
  96. package/esm/models/getaliasop.d.ts +15 -15
  97. package/esm/models/getaliasop.d.ts.map +1 -1
  98. package/esm/models/getaliasop.js +15 -15
  99. package/esm/models/getaliasop.js.map +1 -1
  100. package/esm/models/getalllogdrainsop.d.ts +62 -59
  101. package/esm/models/getalllogdrainsop.d.ts.map +1 -1
  102. package/esm/models/getalllogdrainsop.js +46 -45
  103. package/esm/models/getalllogdrainsop.js.map +1 -1
  104. package/esm/models/getauthuserop.d.ts +13 -13
  105. package/esm/models/getauthuserop.d.ts.map +1 -1
  106. package/esm/models/getauthuserop.js +13 -14
  107. package/esm/models/getauthuserop.js.map +1 -1
  108. package/esm/models/getconfigurablelogdrainop.d.ts +62 -59
  109. package/esm/models/getconfigurablelogdrainop.d.ts.map +1 -1
  110. package/esm/models/getconfigurablelogdrainop.js +46 -45
  111. package/esm/models/getconfigurablelogdrainop.js.map +1 -1
  112. package/esm/models/getconfigurationop.d.ts +6 -0
  113. package/esm/models/getconfigurationop.d.ts.map +1 -1
  114. package/esm/models/getconfigurationop.js +2 -0
  115. package/esm/models/getconfigurationop.js.map +1 -1
  116. package/esm/models/getconfigurationsop.d.ts +6 -0
  117. package/esm/models/getconfigurationsop.d.ts.map +1 -1
  118. package/esm/models/getconfigurationsop.js +2 -0
  119. package/esm/models/getconfigurationsop.js.map +1 -1
  120. package/esm/models/getdeploymentop.d.ts +26 -8
  121. package/esm/models/getdeploymentop.d.ts.map +1 -1
  122. package/esm/models/getdeploymentop.js +14 -4
  123. package/esm/models/getdeploymentop.js.map +1 -1
  124. package/esm/models/getdeploymentsop.d.ts +16 -3
  125. package/esm/models/getdeploymentsop.d.ts.map +1 -1
  126. package/esm/models/getdeploymentsop.js +6 -1
  127. package/esm/models/getdeploymentsop.js.map +1 -1
  128. package/esm/models/getdomainconfigop.d.ts +7 -0
  129. package/esm/models/getdomainconfigop.d.ts.map +1 -1
  130. package/esm/models/getdomainconfigop.js +4 -0
  131. package/esm/models/getdomainconfigop.js.map +1 -1
  132. package/esm/models/getfirewallconfigop.d.ts +15 -15
  133. package/esm/models/getfirewallconfigop.d.ts.map +1 -1
  134. package/esm/models/getfirewallconfigop.js +15 -16
  135. package/esm/models/getfirewallconfigop.js.map +1 -1
  136. package/esm/models/getintegrationlogdrainsop.d.ts +3 -0
  137. package/esm/models/getintegrationlogdrainsop.d.ts.map +1 -1
  138. package/esm/models/getintegrationlogdrainsop.js +1 -0
  139. package/esm/models/getintegrationlogdrainsop.js.map +1 -1
  140. package/esm/models/getinvoiceop.d.ts +159 -48
  141. package/esm/models/getinvoiceop.d.ts.map +1 -1
  142. package/esm/models/getinvoiceop.js +26 -23
  143. package/esm/models/getinvoiceop.js.map +1 -1
  144. package/esm/models/getprojectenvop.d.ts +0 -2
  145. package/esm/models/getprojectenvop.d.ts.map +1 -1
  146. package/esm/models/getprojectenvop.js +0 -2
  147. package/esm/models/getprojectenvop.js.map +1 -1
  148. package/esm/models/getprojectsop.d.ts +6 -0
  149. package/esm/models/getprojectsop.d.ts.map +1 -1
  150. package/esm/models/getprojectsop.js +2 -0
  151. package/esm/models/getprojectsop.js.map +1 -1
  152. package/esm/models/getteammembersop.d.ts +0 -5
  153. package/esm/models/getteammembersop.d.ts.map +1 -1
  154. package/esm/models/getteammembersop.js +0 -2
  155. package/esm/models/getteammembersop.js.map +1 -1
  156. package/esm/models/getteamsop.d.ts +13 -13
  157. package/esm/models/getteamsop.d.ts.map +1 -1
  158. package/esm/models/getteamsop.js +13 -14
  159. package/esm/models/getteamsop.js.map +1 -1
  160. package/esm/models/inviteusertoteamop.d.ts +32 -32
  161. package/esm/models/inviteusertoteamop.d.ts.map +1 -1
  162. package/esm/models/inviteusertoteamop.js +49 -49
  163. package/esm/models/inviteusertoteamop.js.map +1 -1
  164. package/esm/models/{getv1experimentationitemsop.d.ts → queryexperimentationitemsop.d.ts} +50 -50
  165. package/esm/models/{getv1experimentationitemsop.d.ts.map → queryexperimentationitemsop.d.ts.map} +1 -1
  166. package/esm/models/queryexperimentationitemsop.js +125 -0
  167. package/esm/models/{getv1experimentationitemsop.js.map → queryexperimentationitemsop.js.map} +1 -1
  168. package/esm/models/submitinvoiceop.d.ts +9 -0
  169. package/esm/models/submitinvoiceop.d.ts.map +1 -1
  170. package/esm/models/submitinvoiceop.js.map +1 -1
  171. package/esm/models/updatefirewallconfigop.d.ts +95 -95
  172. package/esm/models/updatefirewallconfigop.d.ts.map +1 -1
  173. package/esm/models/updatefirewallconfigop.js +119 -121
  174. package/esm/models/updatefirewallconfigop.js.map +1 -1
  175. package/esm/models/updateinvoiceop.d.ts +8 -8
  176. package/esm/models/updateinvoiceop.d.ts.map +1 -1
  177. package/esm/models/updateinvoiceop.js +12 -13
  178. package/esm/models/updateinvoiceop.js.map +1 -1
  179. package/esm/models/updateprojectdatacacheop.d.ts +124 -118
  180. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  181. package/esm/models/updateprojectdatacacheop.js +146 -144
  182. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  183. package/esm/models/updateprojectop.d.ts +178 -172
  184. package/esm/models/updateprojectop.d.ts.map +1 -1
  185. package/esm/models/updateprojectop.js +187 -188
  186. package/esm/models/updateprojectop.js.map +1 -1
  187. package/esm/models/userevent.d.ts +14460 -2
  188. package/esm/models/userevent.d.ts.map +1 -1
  189. package/esm/models/userevent.js +13311 -2
  190. package/esm/models/userevent.js.map +1 -1
  191. package/esm/sdk/marketplace.d.ts +8 -0
  192. package/esm/sdk/marketplace.d.ts.map +1 -1
  193. package/esm/sdk/marketplace.js +10 -0
  194. package/esm/sdk/marketplace.js.map +1 -1
  195. package/esm/sdk/sdk.d.ts +0 -3
  196. package/esm/sdk/sdk.d.ts.map +1 -1
  197. package/esm/sdk/sdk.js +0 -4
  198. package/esm/sdk/sdk.js.map +1 -1
  199. package/jsr.json +1 -1
  200. package/package.json +1 -1
  201. package/src/__tests__/apiexperimentation.test.ts +5 -17
  202. package/src/__tests__/marketplace.test.ts +18 -2
  203. package/src/__tests__/security.test.ts +0 -10
  204. package/src/__tests__/teams.test.ts +5 -50
  205. package/src/funcs/deploymentsGetDeployments.ts +2 -0
  206. package/src/funcs/{apiExperimentationGetV1ExperimentationItems.ts → marketplaceQueryExperimentationItems.ts} +18 -15
  207. package/src/funcs/projectsCreateProjectTransferRequest.ts +3 -2
  208. package/src/funcs/teamsGetTeamMembers.ts +2 -9
  209. package/src/hooks/types.ts +1 -1
  210. package/src/lib/config.ts +3 -3
  211. package/src/lib/security.ts +11 -3
  212. package/src/mcp-server/extensions.ts +4 -0
  213. package/src/mcp-server/mcp-server.ts +1 -1
  214. package/src/mcp-server/prompts.ts +110 -0
  215. package/src/mcp-server/resources.ts +1 -0
  216. package/src/mcp-server/server.ts +6 -4
  217. package/src/mcp-server/tools/marketplaceQueryExperimentationItems.ts +39 -0
  218. package/src/mcp-server/tools.ts +1 -0
  219. package/src/models/addbypassipop.ts +6 -0
  220. package/src/models/authtoken.ts +100 -88
  221. package/src/models/authuser.ts +7 -0
  222. package/src/models/canceldeploymentop.ts +24 -7
  223. package/src/models/createconfigurablelogdrainop.ts +76 -75
  224. package/src/models/createdeploymentop.ts +362 -289
  225. package/src/models/createlogdrainop.ts +1 -0
  226. package/src/models/createprojectop.ts +212 -181
  227. package/src/models/createprojecttransferrequestop.ts +96 -0
  228. package/src/models/createrecordop.ts +207 -183
  229. package/src/models/deleteteamop.ts +34 -27
  230. package/src/models/getaliasop.ts +28 -24
  231. package/src/models/getalllogdrainsop.ts +72 -71
  232. package/src/models/getauthuserop.ts +29 -19
  233. package/src/models/getconfigurablelogdrainop.ts +70 -69
  234. package/src/models/getconfigurationop.ts +2 -0
  235. package/src/models/getconfigurationsop.ts +2 -0
  236. package/src/models/getdeploymentop.ts +28 -10
  237. package/src/models/getdeploymentsop.ts +18 -3
  238. package/src/models/getdomainconfigop.ts +11 -0
  239. package/src/models/getfirewallconfigop.ts +40 -33
  240. package/src/models/getintegrationlogdrainsop.ts +1 -0
  241. package/src/models/getinvoiceop.ts +158 -47
  242. package/src/models/getprojectenvop.ts +0 -4
  243. package/src/models/getprojectsop.ts +2 -0
  244. package/src/models/getteammembersop.ts +0 -7
  245. package/src/models/getteamsop.ts +25 -20
  246. package/src/models/inviteusertoteamop.ts +79 -79
  247. package/src/models/{getv1experimentationitemsop.ts → queryexperimentationitemsop.ts} +87 -87
  248. package/src/models/submitinvoiceop.ts +9 -0
  249. package/src/models/updatefirewallconfigop.ts +246 -210
  250. package/src/models/updateinvoiceop.ts +16 -14
  251. package/src/models/updateprojectdatacacheop.ts +270 -252
  252. package/src/models/updateprojectop.ts +366 -300
  253. package/src/models/userevent.ts +28396 -4
  254. package/src/sdk/marketplace.ts +22 -0
  255. package/src/sdk/sdk.ts +0 -6
  256. package/vercel-spec.json +8352 -733
  257. package/docs/sdks/apiexperimentation/README.md +0 -82
  258. package/esm/funcs/apiExperimentationGetV1ExperimentationItems.d.ts +0 -15
  259. package/esm/funcs/apiExperimentationGetV1ExperimentationItems.d.ts.map +0 -1
  260. package/esm/funcs/apiExperimentationGetV1ExperimentationItems.js.map +0 -1
  261. package/esm/mcp-server/tools/apiExperimentationGetV1ExperimentationItems.d.ts +0 -7
  262. package/esm/mcp-server/tools/apiExperimentationGetV1ExperimentationItems.d.ts.map +0 -1
  263. package/esm/mcp-server/tools/apiExperimentationGetV1ExperimentationItems.js +0 -26
  264. package/esm/mcp-server/tools/apiExperimentationGetV1ExperimentationItems.js.map +0 -1
  265. package/esm/models/getv1experimentationitemsop.js +0 -125
  266. package/esm/sdk/apiexperimentation.d.ts +0 -9
  267. package/esm/sdk/apiexperimentation.d.ts.map +0 -1
  268. package/esm/sdk/apiexperimentation.js +0 -15
  269. package/esm/sdk/apiexperimentation.js.map +0 -1
  270. package/src/mcp-server/tools/apiExperimentationGetV1ExperimentationItems.ts +0 -37
  271. package/src/sdk/apiexperimentation.ts +0 -27
@@ -11,7 +11,7 @@ import { SDKValidationError } from "./sdkvalidationerror.js";
11
11
  /**
12
12
  * An object describing the reason why the team is being deleted.
13
13
  */
14
- export type Reasons = {
14
+ export type DeleteTeamReasons = {
15
15
  /**
16
16
  * Idenitifier slug of the reason why the team is being deleted.
17
17
  */
@@ -26,7 +26,7 @@ export type DeleteTeamRequestBody = {
26
26
  /**
27
27
  * Optional array of objects that describe the reason why the team is being deleted.
28
28
  */
29
- reasons?: Array<Reasons> | undefined;
29
+ reasons?: Array<DeleteTeamReasons> | undefined;
30
30
  };
31
31
 
32
32
  export type DeleteTeamRequest = {
@@ -60,23 +60,26 @@ export type DeleteTeamResponseBody = {
60
60
  };
61
61
 
62
62
  /** @internal */
63
- export const Reasons$inboundSchema: z.ZodType<Reasons, z.ZodTypeDef, unknown> =
64
- z.object({
65
- slug: z.string(),
66
- description: z.string(),
67
- });
63
+ export const DeleteTeamReasons$inboundSchema: z.ZodType<
64
+ DeleteTeamReasons,
65
+ z.ZodTypeDef,
66
+ unknown
67
+ > = z.object({
68
+ slug: z.string(),
69
+ description: z.string(),
70
+ });
68
71
 
69
72
  /** @internal */
70
- export type Reasons$Outbound = {
73
+ export type DeleteTeamReasons$Outbound = {
71
74
  slug: string;
72
75
  description: string;
73
76
  };
74
77
 
75
78
  /** @internal */
76
- export const Reasons$outboundSchema: z.ZodType<
77
- Reasons$Outbound,
79
+ export const DeleteTeamReasons$outboundSchema: z.ZodType<
80
+ DeleteTeamReasons$Outbound,
78
81
  z.ZodTypeDef,
79
- Reasons
82
+ DeleteTeamReasons
80
83
  > = z.object({
81
84
  slug: z.string(),
82
85
  description: z.string(),
@@ -86,26 +89,30 @@ export const Reasons$outboundSchema: z.ZodType<
86
89
  * @internal
87
90
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
88
91
  */
89
- export namespace Reasons$ {
90
- /** @deprecated use `Reasons$inboundSchema` instead. */
91
- export const inboundSchema = Reasons$inboundSchema;
92
- /** @deprecated use `Reasons$outboundSchema` instead. */
93
- export const outboundSchema = Reasons$outboundSchema;
94
- /** @deprecated use `Reasons$Outbound` instead. */
95
- export type Outbound = Reasons$Outbound;
92
+ export namespace DeleteTeamReasons$ {
93
+ /** @deprecated use `DeleteTeamReasons$inboundSchema` instead. */
94
+ export const inboundSchema = DeleteTeamReasons$inboundSchema;
95
+ /** @deprecated use `DeleteTeamReasons$outboundSchema` instead. */
96
+ export const outboundSchema = DeleteTeamReasons$outboundSchema;
97
+ /** @deprecated use `DeleteTeamReasons$Outbound` instead. */
98
+ export type Outbound = DeleteTeamReasons$Outbound;
96
99
  }
97
100
 
98
- export function reasonsToJSON(reasons: Reasons): string {
99
- return JSON.stringify(Reasons$outboundSchema.parse(reasons));
101
+ export function deleteTeamReasonsToJSON(
102
+ deleteTeamReasons: DeleteTeamReasons,
103
+ ): string {
104
+ return JSON.stringify(
105
+ DeleteTeamReasons$outboundSchema.parse(deleteTeamReasons),
106
+ );
100
107
  }
101
108
 
102
- export function reasonsFromJSON(
109
+ export function deleteTeamReasonsFromJSON(
103
110
  jsonString: string,
104
- ): SafeParseResult<Reasons, SDKValidationError> {
111
+ ): SafeParseResult<DeleteTeamReasons, SDKValidationError> {
105
112
  return safeParse(
106
113
  jsonString,
107
- (x) => Reasons$inboundSchema.parse(JSON.parse(x)),
108
- `Failed to parse 'Reasons' from JSON`,
114
+ (x) => DeleteTeamReasons$inboundSchema.parse(JSON.parse(x)),
115
+ `Failed to parse 'DeleteTeamReasons' from JSON`,
109
116
  );
110
117
  }
111
118
 
@@ -115,12 +122,12 @@ export const DeleteTeamRequestBody$inboundSchema: z.ZodType<
115
122
  z.ZodTypeDef,
116
123
  unknown
117
124
  > = z.object({
118
- reasons: z.array(z.lazy(() => Reasons$inboundSchema)).optional(),
125
+ reasons: z.array(z.lazy(() => DeleteTeamReasons$inboundSchema)).optional(),
119
126
  });
120
127
 
121
128
  /** @internal */
122
129
  export type DeleteTeamRequestBody$Outbound = {
123
- reasons?: Array<Reasons$Outbound> | undefined;
130
+ reasons?: Array<DeleteTeamReasons$Outbound> | undefined;
124
131
  };
125
132
 
126
133
  /** @internal */
@@ -129,7 +136,7 @@ export const DeleteTeamRequestBody$outboundSchema: z.ZodType<
129
136
  z.ZodTypeDef,
130
137
  DeleteTeamRequestBody
131
138
  > = z.object({
132
- reasons: z.array(z.lazy(() => Reasons$outboundSchema)).optional(),
139
+ reasons: z.array(z.lazy(() => DeleteTeamReasons$outboundSchema)).optional(),
133
140
  });
134
141
 
135
142
  /**
@@ -60,7 +60,7 @@ export type GetAliasCreator = {
60
60
  /**
61
61
  * A map with the deployment ID, URL and metadata
62
62
  */
63
- export type Deployment = {
63
+ export type GetAliasDeployment = {
64
64
  /**
65
65
  * The deployment unique identifier
66
66
  */
@@ -179,7 +179,7 @@ export type GetAliasResponseBody = {
179
179
  /**
180
180
  * A map with the deployment ID, URL and metadata
181
181
  */
182
- deployment?: Deployment | undefined;
182
+ deployment?: GetAliasDeployment | undefined;
183
183
  /**
184
184
  * The deployment ID
185
185
  */
@@ -345,8 +345,8 @@ export function getAliasCreatorFromJSON(
345
345
  }
346
346
 
347
347
  /** @internal */
348
- export const Deployment$inboundSchema: z.ZodType<
349
- Deployment,
348
+ export const GetAliasDeployment$inboundSchema: z.ZodType<
349
+ GetAliasDeployment,
350
350
  z.ZodTypeDef,
351
351
  unknown
352
352
  > = z.object({
@@ -356,17 +356,17 @@ export const Deployment$inboundSchema: z.ZodType<
356
356
  });
357
357
 
358
358
  /** @internal */
359
- export type Deployment$Outbound = {
359
+ export type GetAliasDeployment$Outbound = {
360
360
  id: string;
361
361
  url: string;
362
362
  meta?: string | undefined;
363
363
  };
364
364
 
365
365
  /** @internal */
366
- export const Deployment$outboundSchema: z.ZodType<
367
- Deployment$Outbound,
366
+ export const GetAliasDeployment$outboundSchema: z.ZodType<
367
+ GetAliasDeployment$Outbound,
368
368
  z.ZodTypeDef,
369
- Deployment
369
+ GetAliasDeployment
370
370
  > = z.object({
371
371
  id: z.string(),
372
372
  url: z.string(),
@@ -377,26 +377,30 @@ export const Deployment$outboundSchema: z.ZodType<
377
377
  * @internal
378
378
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
379
379
  */
380
- export namespace Deployment$ {
381
- /** @deprecated use `Deployment$inboundSchema` instead. */
382
- export const inboundSchema = Deployment$inboundSchema;
383
- /** @deprecated use `Deployment$outboundSchema` instead. */
384
- export const outboundSchema = Deployment$outboundSchema;
385
- /** @deprecated use `Deployment$Outbound` instead. */
386
- export type Outbound = Deployment$Outbound;
380
+ export namespace GetAliasDeployment$ {
381
+ /** @deprecated use `GetAliasDeployment$inboundSchema` instead. */
382
+ export const inboundSchema = GetAliasDeployment$inboundSchema;
383
+ /** @deprecated use `GetAliasDeployment$outboundSchema` instead. */
384
+ export const outboundSchema = GetAliasDeployment$outboundSchema;
385
+ /** @deprecated use `GetAliasDeployment$Outbound` instead. */
386
+ export type Outbound = GetAliasDeployment$Outbound;
387
387
  }
388
388
 
389
- export function deploymentToJSON(deployment: Deployment): string {
390
- return JSON.stringify(Deployment$outboundSchema.parse(deployment));
389
+ export function getAliasDeploymentToJSON(
390
+ getAliasDeployment: GetAliasDeployment,
391
+ ): string {
392
+ return JSON.stringify(
393
+ GetAliasDeployment$outboundSchema.parse(getAliasDeployment),
394
+ );
391
395
  }
392
396
 
393
- export function deploymentFromJSON(
397
+ export function getAliasDeploymentFromJSON(
394
398
  jsonString: string,
395
- ): SafeParseResult<Deployment, SDKValidationError> {
399
+ ): SafeParseResult<GetAliasDeployment, SDKValidationError> {
396
400
  return safeParse(
397
401
  jsonString,
398
- (x) => Deployment$inboundSchema.parse(JSON.parse(x)),
399
- `Failed to parse 'Deployment' from JSON`,
402
+ (x) => GetAliasDeployment$inboundSchema.parse(JSON.parse(x)),
403
+ `Failed to parse 'GetAliasDeployment' from JSON`,
400
404
  );
401
405
  }
402
406
 
@@ -830,7 +834,7 @@ export const GetAliasResponseBody$inboundSchema: z.ZodType<
830
834
  createdAt: z.nullable(z.number()).optional(),
831
835
  creator: z.lazy(() => GetAliasCreator$inboundSchema).optional(),
832
836
  deletedAt: z.nullable(z.number()).optional(),
833
- deployment: z.lazy(() => Deployment$inboundSchema).optional(),
837
+ deployment: z.lazy(() => GetAliasDeployment$inboundSchema).optional(),
834
838
  deploymentId: z.nullable(z.string()),
835
839
  projectId: z.nullable(z.string()),
836
840
  redirect: z.nullable(z.string()).optional(),
@@ -854,7 +858,7 @@ export type GetAliasResponseBody$Outbound = {
854
858
  createdAt?: number | null | undefined;
855
859
  creator?: GetAliasCreator$Outbound | undefined;
856
860
  deletedAt?: number | null | undefined;
857
- deployment?: Deployment$Outbound | undefined;
861
+ deployment?: GetAliasDeployment$Outbound | undefined;
858
862
  deploymentId: string | null;
859
863
  projectId: string | null;
860
864
  redirect?: string | null | undefined;
@@ -881,7 +885,7 @@ export const GetAliasResponseBody$outboundSchema: z.ZodType<
881
885
  createdAt: z.nullable(z.number()).optional(),
882
886
  creator: z.lazy(() => GetAliasCreator$outboundSchema).optional(),
883
887
  deletedAt: z.nullable(z.number()).optional(),
884
- deployment: z.lazy(() => Deployment$outboundSchema).optional(),
888
+ deployment: z.lazy(() => GetAliasDeployment$outboundSchema).optional(),
885
889
  deploymentId: z.nullable(z.string()),
886
890
  projectId: z.nullable(z.string()),
887
891
  redirect: z.nullable(z.string()).optional(),
@@ -39,23 +39,6 @@ export type GetAllLogDrainsEnvironments = ClosedEnum<
39
39
  typeof GetAllLogDrainsEnvironments
40
40
  >;
41
41
 
42
- export const GetAllLogDrainsStatus = {
43
- Enabled: "enabled",
44
- Disabled: "disabled",
45
- Errored: "errored",
46
- } as const;
47
- export type GetAllLogDrainsStatus = ClosedEnum<typeof GetAllLogDrainsStatus>;
48
-
49
- export const GetAllLogDrainsDisabledReason = {
50
- DisabledByOwner: "disabled-by-owner",
51
- FeatureNotAvailable: "feature-not-available",
52
- AccountPlanDowngrade: "account-plan-downgrade",
53
- DisabledByAdmin: "disabled-by-admin",
54
- } as const;
55
- export type GetAllLogDrainsDisabledReason = ClosedEnum<
56
- typeof GetAllLogDrainsDisabledReason
57
- >;
58
-
59
42
  export const GetAllLogDrainsCreatedFrom = {
60
43
  SelfServed: "self-served",
61
44
  Integration: "integration",
@@ -68,19 +51,34 @@ export const GetAllLogDrainsDeliveryFormat = {
68
51
  Json: "json",
69
52
  Ndjson: "ndjson",
70
53
  Syslog: "syslog",
54
+ Protobuf: "protobuf",
71
55
  } as const;
72
56
  export type GetAllLogDrainsDeliveryFormat = ClosedEnum<
73
57
  typeof GetAllLogDrainsDeliveryFormat
74
58
  >;
75
59
 
60
+ export const GetAllLogDrainsStatus = {
61
+ Enabled: "enabled",
62
+ Disabled: "disabled",
63
+ Errored: "errored",
64
+ } as const;
65
+ export type GetAllLogDrainsStatus = ClosedEnum<typeof GetAllLogDrainsStatus>;
66
+
67
+ export const GetAllLogDrainsDisabledReason = {
68
+ DisabledByOwner: "disabled-by-owner",
69
+ FeatureNotAvailable: "feature-not-available",
70
+ AccountPlanDowngrade: "account-plan-downgrade",
71
+ DisabledByAdmin: "disabled-by-admin",
72
+ } as const;
73
+ export type GetAllLogDrainsDisabledReason = ClosedEnum<
74
+ typeof GetAllLogDrainsDisabledReason
75
+ >;
76
+
76
77
  export type GetAllLogDrainsResponseBody = {
77
78
  clientId?: string | undefined;
78
79
  configurationId?: string | undefined;
79
80
  sources?: Array<GetAllLogDrainsSources> | undefined;
80
81
  environments: Array<GetAllLogDrainsEnvironments>;
81
- status?: GetAllLogDrainsStatus | undefined;
82
- disabledAt?: number | undefined;
83
- disabledReason?: GetAllLogDrainsDisabledReason | undefined;
84
82
  disabledBy?: string | undefined;
85
83
  firstErrorTimestamp?: number | undefined;
86
84
  samplingRate?: number | undefined;
@@ -97,6 +95,9 @@ export type GetAllLogDrainsResponseBody = {
97
95
  ownerId: string;
98
96
  createdFrom?: GetAllLogDrainsCreatedFrom | undefined;
99
97
  deliveryFormat: GetAllLogDrainsDeliveryFormat;
98
+ status?: GetAllLogDrainsStatus | undefined;
99
+ disabledAt?: number | undefined;
100
+ disabledReason?: GetAllLogDrainsDisabledReason | undefined;
100
101
  secret?: string | undefined;
101
102
  };
102
103
 
@@ -205,48 +206,6 @@ export namespace GetAllLogDrainsEnvironments$ {
205
206
  export const outboundSchema = GetAllLogDrainsEnvironments$outboundSchema;
206
207
  }
207
208
 
208
- /** @internal */
209
- export const GetAllLogDrainsStatus$inboundSchema: z.ZodNativeEnum<
210
- typeof GetAllLogDrainsStatus
211
- > = z.nativeEnum(GetAllLogDrainsStatus);
212
-
213
- /** @internal */
214
- export const GetAllLogDrainsStatus$outboundSchema: z.ZodNativeEnum<
215
- typeof GetAllLogDrainsStatus
216
- > = GetAllLogDrainsStatus$inboundSchema;
217
-
218
- /**
219
- * @internal
220
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
221
- */
222
- export namespace GetAllLogDrainsStatus$ {
223
- /** @deprecated use `GetAllLogDrainsStatus$inboundSchema` instead. */
224
- export const inboundSchema = GetAllLogDrainsStatus$inboundSchema;
225
- /** @deprecated use `GetAllLogDrainsStatus$outboundSchema` instead. */
226
- export const outboundSchema = GetAllLogDrainsStatus$outboundSchema;
227
- }
228
-
229
- /** @internal */
230
- export const GetAllLogDrainsDisabledReason$inboundSchema: z.ZodNativeEnum<
231
- typeof GetAllLogDrainsDisabledReason
232
- > = z.nativeEnum(GetAllLogDrainsDisabledReason);
233
-
234
- /** @internal */
235
- export const GetAllLogDrainsDisabledReason$outboundSchema: z.ZodNativeEnum<
236
- typeof GetAllLogDrainsDisabledReason
237
- > = GetAllLogDrainsDisabledReason$inboundSchema;
238
-
239
- /**
240
- * @internal
241
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
242
- */
243
- export namespace GetAllLogDrainsDisabledReason$ {
244
- /** @deprecated use `GetAllLogDrainsDisabledReason$inboundSchema` instead. */
245
- export const inboundSchema = GetAllLogDrainsDisabledReason$inboundSchema;
246
- /** @deprecated use `GetAllLogDrainsDisabledReason$outboundSchema` instead. */
247
- export const outboundSchema = GetAllLogDrainsDisabledReason$outboundSchema;
248
- }
249
-
250
209
  /** @internal */
251
210
  export const GetAllLogDrainsCreatedFrom$inboundSchema: z.ZodNativeEnum<
252
211
  typeof GetAllLogDrainsCreatedFrom
@@ -289,6 +248,48 @@ export namespace GetAllLogDrainsDeliveryFormat$ {
289
248
  export const outboundSchema = GetAllLogDrainsDeliveryFormat$outboundSchema;
290
249
  }
291
250
 
251
+ /** @internal */
252
+ export const GetAllLogDrainsStatus$inboundSchema: z.ZodNativeEnum<
253
+ typeof GetAllLogDrainsStatus
254
+ > = z.nativeEnum(GetAllLogDrainsStatus);
255
+
256
+ /** @internal */
257
+ export const GetAllLogDrainsStatus$outboundSchema: z.ZodNativeEnum<
258
+ typeof GetAllLogDrainsStatus
259
+ > = GetAllLogDrainsStatus$inboundSchema;
260
+
261
+ /**
262
+ * @internal
263
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
264
+ */
265
+ export namespace GetAllLogDrainsStatus$ {
266
+ /** @deprecated use `GetAllLogDrainsStatus$inboundSchema` instead. */
267
+ export const inboundSchema = GetAllLogDrainsStatus$inboundSchema;
268
+ /** @deprecated use `GetAllLogDrainsStatus$outboundSchema` instead. */
269
+ export const outboundSchema = GetAllLogDrainsStatus$outboundSchema;
270
+ }
271
+
272
+ /** @internal */
273
+ export const GetAllLogDrainsDisabledReason$inboundSchema: z.ZodNativeEnum<
274
+ typeof GetAllLogDrainsDisabledReason
275
+ > = z.nativeEnum(GetAllLogDrainsDisabledReason);
276
+
277
+ /** @internal */
278
+ export const GetAllLogDrainsDisabledReason$outboundSchema: z.ZodNativeEnum<
279
+ typeof GetAllLogDrainsDisabledReason
280
+ > = GetAllLogDrainsDisabledReason$inboundSchema;
281
+
282
+ /**
283
+ * @internal
284
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
285
+ */
286
+ export namespace GetAllLogDrainsDisabledReason$ {
287
+ /** @deprecated use `GetAllLogDrainsDisabledReason$inboundSchema` instead. */
288
+ export const inboundSchema = GetAllLogDrainsDisabledReason$inboundSchema;
289
+ /** @deprecated use `GetAllLogDrainsDisabledReason$outboundSchema` instead. */
290
+ export const outboundSchema = GetAllLogDrainsDisabledReason$outboundSchema;
291
+ }
292
+
292
293
  /** @internal */
293
294
  export const GetAllLogDrainsResponseBody$inboundSchema: z.ZodType<
294
295
  GetAllLogDrainsResponseBody,
@@ -299,9 +300,6 @@ export const GetAllLogDrainsResponseBody$inboundSchema: z.ZodType<
299
300
  configurationId: z.string().optional(),
300
301
  sources: z.array(GetAllLogDrainsSources$inboundSchema).optional(),
301
302
  environments: z.array(GetAllLogDrainsEnvironments$inboundSchema),
302
- status: GetAllLogDrainsStatus$inboundSchema.optional(),
303
- disabledAt: z.number().optional(),
304
- disabledReason: GetAllLogDrainsDisabledReason$inboundSchema.optional(),
305
303
  disabledBy: z.string().optional(),
306
304
  firstErrorTimestamp: z.number().optional(),
307
305
  samplingRate: z.number().optional(),
@@ -318,6 +316,9 @@ export const GetAllLogDrainsResponseBody$inboundSchema: z.ZodType<
318
316
  ownerId: z.string(),
319
317
  createdFrom: GetAllLogDrainsCreatedFrom$inboundSchema.optional(),
320
318
  deliveryFormat: GetAllLogDrainsDeliveryFormat$inboundSchema,
319
+ status: GetAllLogDrainsStatus$inboundSchema.optional(),
320
+ disabledAt: z.number().optional(),
321
+ disabledReason: GetAllLogDrainsDisabledReason$inboundSchema.optional(),
321
322
  secret: z.string().optional(),
322
323
  });
323
324
 
@@ -327,9 +328,6 @@ export type GetAllLogDrainsResponseBody$Outbound = {
327
328
  configurationId?: string | undefined;
328
329
  sources?: Array<string> | undefined;
329
330
  environments: Array<string>;
330
- status?: string | undefined;
331
- disabledAt?: number | undefined;
332
- disabledReason?: string | undefined;
333
331
  disabledBy?: string | undefined;
334
332
  firstErrorTimestamp?: number | undefined;
335
333
  samplingRate?: number | undefined;
@@ -346,6 +344,9 @@ export type GetAllLogDrainsResponseBody$Outbound = {
346
344
  ownerId: string;
347
345
  createdFrom?: string | undefined;
348
346
  deliveryFormat: string;
347
+ status?: string | undefined;
348
+ disabledAt?: number | undefined;
349
+ disabledReason?: string | undefined;
349
350
  secret?: string | undefined;
350
351
  };
351
352
 
@@ -359,9 +360,6 @@ export const GetAllLogDrainsResponseBody$outboundSchema: z.ZodType<
359
360
  configurationId: z.string().optional(),
360
361
  sources: z.array(GetAllLogDrainsSources$outboundSchema).optional(),
361
362
  environments: z.array(GetAllLogDrainsEnvironments$outboundSchema),
362
- status: GetAllLogDrainsStatus$outboundSchema.optional(),
363
- disabledAt: z.number().optional(),
364
- disabledReason: GetAllLogDrainsDisabledReason$outboundSchema.optional(),
365
363
  disabledBy: z.string().optional(),
366
364
  firstErrorTimestamp: z.number().optional(),
367
365
  samplingRate: z.number().optional(),
@@ -378,6 +376,9 @@ export const GetAllLogDrainsResponseBody$outboundSchema: z.ZodType<
378
376
  ownerId: z.string(),
379
377
  createdFrom: GetAllLogDrainsCreatedFrom$outboundSchema.optional(),
380
378
  deliveryFormat: GetAllLogDrainsDeliveryFormat$outboundSchema,
379
+ status: GetAllLogDrainsStatus$outboundSchema.optional(),
380
+ disabledAt: z.number().optional(),
381
+ disabledReason: GetAllLogDrainsDisabledReason$outboundSchema.optional(),
381
382
  secret: z.string().optional(),
382
383
  });
383
384
 
@@ -19,7 +19,7 @@ import {
19
19
  } from "./authuserlimited.js";
20
20
  import { SDKValidationError } from "./sdkvalidationerror.js";
21
21
 
22
- export type User = AuthUserLimited | AuthUser;
22
+ export type GetAuthUserUser = AuthUserLimited | AuthUser;
23
23
 
24
24
  /**
25
25
  * Successful response.
@@ -29,40 +29,50 @@ export type GetAuthUserResponseBody = {
29
29
  };
30
30
 
31
31
  /** @internal */
32
- export const User$inboundSchema: z.ZodType<User, z.ZodTypeDef, unknown> = z
33
- .union([AuthUserLimited$inboundSchema, AuthUser$inboundSchema]);
32
+ export const GetAuthUserUser$inboundSchema: z.ZodType<
33
+ GetAuthUserUser,
34
+ z.ZodTypeDef,
35
+ unknown
36
+ > = z.union([AuthUserLimited$inboundSchema, AuthUser$inboundSchema]);
34
37
 
35
38
  /** @internal */
36
- export type User$Outbound = AuthUserLimited$Outbound | AuthUser$Outbound;
39
+ export type GetAuthUserUser$Outbound =
40
+ | AuthUserLimited$Outbound
41
+ | AuthUser$Outbound;
37
42
 
38
43
  /** @internal */
39
- export const User$outboundSchema: z.ZodType<User$Outbound, z.ZodTypeDef, User> =
40
- z.union([AuthUserLimited$outboundSchema, AuthUser$outboundSchema]);
44
+ export const GetAuthUserUser$outboundSchema: z.ZodType<
45
+ GetAuthUserUser$Outbound,
46
+ z.ZodTypeDef,
47
+ GetAuthUserUser
48
+ > = z.union([AuthUserLimited$outboundSchema, AuthUser$outboundSchema]);
41
49
 
42
50
  /**
43
51
  * @internal
44
52
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
45
53
  */
46
- export namespace User$ {
47
- /** @deprecated use `User$inboundSchema` instead. */
48
- export const inboundSchema = User$inboundSchema;
49
- /** @deprecated use `User$outboundSchema` instead. */
50
- export const outboundSchema = User$outboundSchema;
51
- /** @deprecated use `User$Outbound` instead. */
52
- export type Outbound = User$Outbound;
54
+ export namespace GetAuthUserUser$ {
55
+ /** @deprecated use `GetAuthUserUser$inboundSchema` instead. */
56
+ export const inboundSchema = GetAuthUserUser$inboundSchema;
57
+ /** @deprecated use `GetAuthUserUser$outboundSchema` instead. */
58
+ export const outboundSchema = GetAuthUserUser$outboundSchema;
59
+ /** @deprecated use `GetAuthUserUser$Outbound` instead. */
60
+ export type Outbound = GetAuthUserUser$Outbound;
53
61
  }
54
62
 
55
- export function userToJSON(user: User): string {
56
- return JSON.stringify(User$outboundSchema.parse(user));
63
+ export function getAuthUserUserToJSON(
64
+ getAuthUserUser: GetAuthUserUser,
65
+ ): string {
66
+ return JSON.stringify(GetAuthUserUser$outboundSchema.parse(getAuthUserUser));
57
67
  }
58
68
 
59
- export function userFromJSON(
69
+ export function getAuthUserUserFromJSON(
60
70
  jsonString: string,
61
- ): SafeParseResult<User, SDKValidationError> {
71
+ ): SafeParseResult<GetAuthUserUser, SDKValidationError> {
62
72
  return safeParse(
63
73
  jsonString,
64
- (x) => User$inboundSchema.parse(JSON.parse(x)),
65
- `Failed to parse 'User' from JSON`,
74
+ (x) => GetAuthUserUser$inboundSchema.parse(JSON.parse(x)),
75
+ `Failed to parse 'GetAuthUserUser' from JSON`,
66
76
  );
67
77
  }
68
78