@vercel/sdk 1.6.1 → 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 (220) hide show
  1. package/README.md +4 -10
  2. package/bin/mcp-server.js +1579 -2527
  3. package/bin/mcp-server.js.map +29 -38
  4. package/docs/sdks/integrations/README.md +0 -161
  5. package/docs/sdks/logdrains/README.md +0 -260
  6. package/docs/sdks/projects/README.md +162 -0
  7. package/esm/__tests__/integrations.test.js +5 -40
  8. package/esm/__tests__/integrations.test.js.map +1 -1
  9. package/esm/__tests__/logdrains.test.js +7 -89
  10. package/esm/__tests__/logdrains.test.js.map +1 -1
  11. package/esm/__tests__/projects.test.js +41 -13
  12. package/esm/__tests__/projects.test.js.map +1 -1
  13. package/esm/funcs/projectsCreateProject.js +2 -2
  14. package/esm/funcs/projectsCreateProject.js.map +1 -1
  15. package/esm/funcs/projectsPauseProject.d.ts +18 -0
  16. package/esm/funcs/projectsPauseProject.d.ts.map +1 -0
  17. package/esm/funcs/{logDrainsGetConfigurableLogDrain.js → projectsPauseProject.js} +13 -13
  18. package/esm/funcs/projectsPauseProject.js.map +1 -0
  19. package/esm/funcs/projectsUnpauseProject.d.ts +18 -0
  20. package/esm/funcs/projectsUnpauseProject.d.ts.map +1 -0
  21. package/esm/funcs/{logDrainsGetAllLogDrains.js → projectsUnpauseProject.js} +18 -14
  22. package/esm/funcs/projectsUnpauseProject.js.map +1 -0
  23. package/esm/lib/config.d.ts +3 -3
  24. package/esm/lib/config.js +3 -3
  25. package/esm/lib/matchers.d.ts +3 -1
  26. package/esm/lib/matchers.d.ts.map +1 -1
  27. package/esm/lib/matchers.js +10 -0
  28. package/esm/lib/matchers.js.map +1 -1
  29. package/esm/lib/sdks.js +7 -2
  30. package/esm/lib/sdks.js.map +1 -1
  31. package/esm/mcp-server/mcp-server.js +1 -1
  32. package/esm/mcp-server/server.d.ts.map +1 -1
  33. package/esm/mcp-server/server.js +5 -11
  34. package/esm/mcp-server/server.js.map +1 -1
  35. package/esm/mcp-server/tools/projectsPauseProject.d.ts +7 -0
  36. package/esm/mcp-server/tools/projectsPauseProject.d.ts.map +1 -0
  37. package/esm/mcp-server/tools/projectsPauseProject.js +27 -0
  38. package/esm/mcp-server/tools/projectsPauseProject.js.map +1 -0
  39. package/esm/mcp-server/tools/projectsUnpauseProject.d.ts +7 -0
  40. package/esm/mcp-server/tools/projectsUnpauseProject.d.ts.map +1 -0
  41. package/esm/mcp-server/tools/projectsUnpauseProject.js +27 -0
  42. package/esm/mcp-server/tools/projectsUnpauseProject.js.map +1 -0
  43. package/esm/models/authuser.d.ts +41 -0
  44. package/esm/models/authuser.d.ts.map +1 -1
  45. package/esm/models/authuser.js +29 -0
  46. package/esm/models/authuser.js.map +1 -1
  47. package/esm/models/canceldeploymentop.d.ts +3 -3
  48. package/esm/models/canceldeploymentop.js +1 -1
  49. package/esm/models/canceldeploymentop.js.map +1 -1
  50. package/esm/models/createlogdrainop.d.ts +51 -51
  51. package/esm/models/createlogdrainop.d.ts.map +1 -1
  52. package/esm/models/createlogdrainop.js +74 -75
  53. package/esm/models/createlogdrainop.js.map +1 -1
  54. package/esm/models/createprojectop.d.ts +46 -16
  55. package/esm/models/createprojectop.d.ts.map +1 -1
  56. package/esm/models/createprojectop.js +17 -5
  57. package/esm/models/createprojectop.js.map +1 -1
  58. package/esm/models/exchangessotokenop.d.ts +34 -0
  59. package/esm/models/exchangessotokenop.d.ts.map +1 -1
  60. package/esm/models/exchangessotokenop.js +25 -0
  61. package/esm/models/exchangessotokenop.js.map +1 -1
  62. package/esm/models/getconfigurationsop.d.ts +19 -16
  63. package/esm/models/getconfigurationsop.d.ts.map +1 -1
  64. package/esm/models/getconfigurationsop.js +25 -27
  65. package/esm/models/getconfigurationsop.js.map +1 -1
  66. package/esm/models/getcustomenvironmentop.d.ts +3 -0
  67. package/esm/models/getcustomenvironmentop.d.ts.map +1 -1
  68. package/esm/models/getcustomenvironmentop.js.map +1 -1
  69. package/esm/models/getintegrationlogdrainsop.d.ts +11 -11
  70. package/esm/models/getintegrationlogdrainsop.d.ts.map +1 -1
  71. package/esm/models/getintegrationlogdrainsop.js +14 -13
  72. package/esm/models/getintegrationlogdrainsop.js.map +1 -1
  73. package/esm/models/getprojectsop.d.ts +46 -16
  74. package/esm/models/getprojectsop.d.ts.map +1 -1
  75. package/esm/models/getprojectsop.js +17 -5
  76. package/esm/models/getprojectsop.js.map +1 -1
  77. package/esm/models/getteammembersop.d.ts +9 -9
  78. package/esm/models/getteammembersop.js +3 -3
  79. package/esm/models/getteammembersop.js.map +1 -1
  80. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts +3 -0
  81. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts.map +1 -1
  82. package/esm/models/getv9projectsidornamecustomenvironmentsop.js.map +1 -1
  83. package/esm/models/pauseprojectop.d.ts +42 -0
  84. package/esm/models/pauseprojectop.d.ts.map +1 -0
  85. package/esm/models/pauseprojectop.js +35 -0
  86. package/esm/models/pauseprojectop.js.map +1 -0
  87. package/esm/models/unpauseprojectop.d.ts +42 -0
  88. package/esm/models/unpauseprojectop.d.ts.map +1 -0
  89. package/esm/models/unpauseprojectop.js +35 -0
  90. package/esm/models/unpauseprojectop.js.map +1 -0
  91. package/esm/models/updateprojectdatacacheop.d.ts +46 -16
  92. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  93. package/esm/models/updateprojectdatacacheop.js +17 -5
  94. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  95. package/esm/models/updateprojectop.d.ts +46 -16
  96. package/esm/models/updateprojectop.d.ts.map +1 -1
  97. package/esm/models/updateprojectop.js +17 -5
  98. package/esm/models/updateprojectop.js.map +1 -1
  99. package/esm/models/userevent.d.ts +569 -512
  100. package/esm/models/userevent.d.ts.map +1 -1
  101. package/esm/models/userevent.js +703 -645
  102. package/esm/models/userevent.js.map +1 -1
  103. package/esm/sdk/integrations.d.ts +0 -16
  104. package/esm/sdk/integrations.d.ts.map +1 -1
  105. package/esm/sdk/integrations.js +0 -20
  106. package/esm/sdk/integrations.js.map +1 -1
  107. package/esm/sdk/logdrains.d.ts +0 -24
  108. package/esm/sdk/logdrains.d.ts.map +1 -1
  109. package/esm/sdk/logdrains.js +0 -30
  110. package/esm/sdk/logdrains.js.map +1 -1
  111. package/esm/sdk/projects.d.ts +16 -0
  112. package/esm/sdk/projects.d.ts.map +1 -1
  113. package/esm/sdk/projects.js +20 -0
  114. package/esm/sdk/projects.js.map +1 -1
  115. package/jsr.json +1 -1
  116. package/package.json +1 -1
  117. package/src/__tests__/integrations.test.ts +9 -44
  118. package/src/__tests__/logdrains.test.ts +13 -95
  119. package/src/__tests__/projects.test.ts +47 -13
  120. package/src/funcs/projectsCreateProject.ts +2 -2
  121. package/src/funcs/{integrationsGitNamespaces.ts → projectsPauseProject.ts} +30 -25
  122. package/src/funcs/{logDrainsGetAllLogDrains.ts → projectsUnpauseProject.ts} +27 -24
  123. package/src/lib/config.ts +3 -3
  124. package/src/lib/matchers.ts +20 -0
  125. package/src/lib/sdks.ts +8 -2
  126. package/src/mcp-server/mcp-server.ts +1 -1
  127. package/src/mcp-server/server.ts +5 -11
  128. package/src/mcp-server/tools/projectsPauseProject.ts +35 -0
  129. package/src/mcp-server/tools/projectsUnpauseProject.ts +35 -0
  130. package/src/models/authuser.ts +74 -0
  131. package/src/models/canceldeploymentop.ts +1 -1
  132. package/src/models/createlogdrainop.ts +95 -112
  133. package/src/models/createprojectop.ts +42 -6
  134. package/src/models/exchangessotokenop.ts +44 -0
  135. package/src/models/getconfigurationsop.ts +34 -39
  136. package/src/models/getcustomenvironmentop.ts +3 -0
  137. package/src/models/getintegrationlogdrainsop.ts +15 -20
  138. package/src/models/getprojectsop.ts +42 -6
  139. package/src/models/getteammembersop.ts +3 -3
  140. package/src/models/getv9projectsidornamecustomenvironmentsop.ts +3 -0
  141. package/src/models/pauseprojectop.ts +83 -0
  142. package/src/models/unpauseprojectop.ts +83 -0
  143. package/src/models/updateprojectdatacacheop.ts +42 -6
  144. package/src/models/updateprojectop.ts +42 -6
  145. package/src/models/userevent.ts +1328 -1193
  146. package/src/sdk/integrations.ts +0 -44
  147. package/src/sdk/logdrains.ts +0 -66
  148. package/src/sdk/projects.ts +38 -0
  149. package/vercel-spec.json +616 -1392
  150. package/esm/funcs/integrationsGitNamespaces.d.ts +0 -18
  151. package/esm/funcs/integrationsGitNamespaces.d.ts.map +0 -1
  152. package/esm/funcs/integrationsGitNamespaces.js +0 -86
  153. package/esm/funcs/integrationsGitNamespaces.js.map +0 -1
  154. package/esm/funcs/integrationsSearchRepo.d.ts +0 -17
  155. package/esm/funcs/integrationsSearchRepo.d.ts.map +0 -1
  156. package/esm/funcs/integrationsSearchRepo.js +0 -89
  157. package/esm/funcs/integrationsSearchRepo.js.map +0 -1
  158. package/esm/funcs/logDrainsCreateConfigurableLogDrain.d.ts +0 -18
  159. package/esm/funcs/logDrainsCreateConfigurableLogDrain.d.ts.map +0 -1
  160. package/esm/funcs/logDrainsCreateConfigurableLogDrain.js +0 -86
  161. package/esm/funcs/logDrainsCreateConfigurableLogDrain.js.map +0 -1
  162. package/esm/funcs/logDrainsGetAllLogDrains.d.ts +0 -18
  163. package/esm/funcs/logDrainsGetAllLogDrains.d.ts.map +0 -1
  164. package/esm/funcs/logDrainsGetAllLogDrains.js.map +0 -1
  165. package/esm/funcs/logDrainsGetConfigurableLogDrain.d.ts +0 -19
  166. package/esm/funcs/logDrainsGetConfigurableLogDrain.d.ts.map +0 -1
  167. package/esm/funcs/logDrainsGetConfigurableLogDrain.js.map +0 -1
  168. package/esm/mcp-server/tools/integrationsGitNamespaces.d.ts +0 -7
  169. package/esm/mcp-server/tools/integrationsGitNamespaces.d.ts.map +0 -1
  170. package/esm/mcp-server/tools/integrationsGitNamespaces.js +0 -28
  171. package/esm/mcp-server/tools/integrationsGitNamespaces.js.map +0 -1
  172. package/esm/mcp-server/tools/integrationsSearchRepo.d.ts +0 -7
  173. package/esm/mcp-server/tools/integrationsSearchRepo.d.ts.map +0 -1
  174. package/esm/mcp-server/tools/integrationsSearchRepo.js +0 -28
  175. package/esm/mcp-server/tools/integrationsSearchRepo.js.map +0 -1
  176. package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.d.ts +0 -7
  177. package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.d.ts.map +0 -1
  178. package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.js +0 -28
  179. package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.js.map +0 -1
  180. package/esm/mcp-server/tools/logDrainsGetAllLogDrains.d.ts +0 -7
  181. package/esm/mcp-server/tools/logDrainsGetAllLogDrains.d.ts.map +0 -1
  182. package/esm/mcp-server/tools/logDrainsGetAllLogDrains.js +0 -28
  183. package/esm/mcp-server/tools/logDrainsGetAllLogDrains.js.map +0 -1
  184. package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.d.ts +0 -7
  185. package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.d.ts.map +0 -1
  186. package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.js +0 -28
  187. package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.js.map +0 -1
  188. package/esm/models/createconfigurablelogdrainop.d.ts +0 -451
  189. package/esm/models/createconfigurablelogdrainop.d.ts.map +0 -1
  190. package/esm/models/createconfigurablelogdrainop.js +0 -348
  191. package/esm/models/createconfigurablelogdrainop.js.map +0 -1
  192. package/esm/models/getalllogdrainsop.d.ts +0 -294
  193. package/esm/models/getalllogdrainsop.d.ts.map +0 -1
  194. package/esm/models/getalllogdrainsop.js +0 -231
  195. package/esm/models/getalllogdrainsop.js.map +0 -1
  196. package/esm/models/getconfigurablelogdrainop.d.ts +0 -292
  197. package/esm/models/getconfigurablelogdrainop.d.ts.map +0 -1
  198. package/esm/models/getconfigurablelogdrainop.js +0 -230
  199. package/esm/models/getconfigurablelogdrainop.js.map +0 -1
  200. package/esm/models/gitnamespacesop.d.ts +0 -126
  201. package/esm/models/gitnamespacesop.d.ts.map +0 -1
  202. package/esm/models/gitnamespacesop.js +0 -115
  203. package/esm/models/gitnamespacesop.js.map +0 -1
  204. package/esm/models/searchrepoop.d.ts +0 -421
  205. package/esm/models/searchrepoop.d.ts.map +0 -1
  206. package/esm/models/searchrepoop.js +0 -385
  207. package/esm/models/searchrepoop.js.map +0 -1
  208. package/src/funcs/integrationsSearchRepo.ts +0 -181
  209. package/src/funcs/logDrainsCreateConfigurableLogDrain.ts +0 -185
  210. package/src/funcs/logDrainsGetConfigurableLogDrain.ts +0 -199
  211. package/src/mcp-server/tools/integrationsGitNamespaces.ts +0 -37
  212. package/src/mcp-server/tools/integrationsSearchRepo.ts +0 -37
  213. package/src/mcp-server/tools/logDrainsCreateConfigurableLogDrain.ts +0 -39
  214. package/src/mcp-server/tools/logDrainsGetAllLogDrains.ts +0 -37
  215. package/src/mcp-server/tools/logDrainsGetConfigurableLogDrain.ts +0 -39
  216. package/src/models/createconfigurablelogdrainop.ts +0 -652
  217. package/src/models/getalllogdrainsop.ts +0 -416
  218. package/src/models/getconfigurablelogdrainop.ts +0 -420
  219. package/src/models/gitnamespacesop.ts +0 -235
  220. package/src/models/searchrepoop.ts +0 -784
@@ -5,9 +5,23 @@
5
5
  import * as z from "zod";
6
6
  import { remap as remap$ } from "../lib/primitives.js";
7
7
  import { safeParse } from "../lib/schemas.js";
8
+ import { ClosedEnum } from "../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../types/fp.js";
9
10
  import { SDKValidationError } from "./sdkvalidationerror.js";
10
11
 
12
+ /**
13
+ * The grant type, when using x-www-form-urlencoded content type
14
+ */
15
+ export const ExchangeSsoTokenGrantType = {
16
+ AuthorizationCode: "authorization_code",
17
+ } as const;
18
+ /**
19
+ * The grant type, when using x-www-form-urlencoded content type
20
+ */
21
+ export type ExchangeSsoTokenGrantType = ClosedEnum<
22
+ typeof ExchangeSsoTokenGrantType
23
+ >;
24
+
11
25
  export type ExchangeSsoTokenRequestBody = {
12
26
  /**
13
27
  * The sensitive code received from Vercel
@@ -29,6 +43,10 @@ export type ExchangeSsoTokenRequestBody = {
29
43
  * The integration redirect URI
30
44
  */
31
45
  redirectUri?: string | undefined;
46
+ /**
47
+ * The grant type, when using x-www-form-urlencoded content type
48
+ */
49
+ grantType?: ExchangeSsoTokenGrantType | undefined;
32
50
  };
33
51
 
34
52
  export type ExchangeSsoTokenResponseBody = {
@@ -37,6 +55,27 @@ export type ExchangeSsoTokenResponseBody = {
37
55
  tokenType?: any | null | undefined;
38
56
  };
39
57
 
58
+ /** @internal */
59
+ export const ExchangeSsoTokenGrantType$inboundSchema: z.ZodNativeEnum<
60
+ typeof ExchangeSsoTokenGrantType
61
+ > = z.nativeEnum(ExchangeSsoTokenGrantType);
62
+
63
+ /** @internal */
64
+ export const ExchangeSsoTokenGrantType$outboundSchema: z.ZodNativeEnum<
65
+ typeof ExchangeSsoTokenGrantType
66
+ > = ExchangeSsoTokenGrantType$inboundSchema;
67
+
68
+ /**
69
+ * @internal
70
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
71
+ */
72
+ export namespace ExchangeSsoTokenGrantType$ {
73
+ /** @deprecated use `ExchangeSsoTokenGrantType$inboundSchema` instead. */
74
+ export const inboundSchema = ExchangeSsoTokenGrantType$inboundSchema;
75
+ /** @deprecated use `ExchangeSsoTokenGrantType$outboundSchema` instead. */
76
+ export const outboundSchema = ExchangeSsoTokenGrantType$outboundSchema;
77
+ }
78
+
40
79
  /** @internal */
41
80
  export const ExchangeSsoTokenRequestBody$inboundSchema: z.ZodType<
42
81
  ExchangeSsoTokenRequestBody,
@@ -48,11 +87,13 @@ export const ExchangeSsoTokenRequestBody$inboundSchema: z.ZodType<
48
87
  client_id: z.string(),
49
88
  client_secret: z.string(),
50
89
  redirect_uri: z.string().optional(),
90
+ grant_type: ExchangeSsoTokenGrantType$inboundSchema.optional(),
51
91
  }).transform((v) => {
52
92
  return remap$(v, {
53
93
  "client_id": "clientId",
54
94
  "client_secret": "clientSecret",
55
95
  "redirect_uri": "redirectUri",
96
+ "grant_type": "grantType",
56
97
  });
57
98
  });
58
99
 
@@ -63,6 +104,7 @@ export type ExchangeSsoTokenRequestBody$Outbound = {
63
104
  client_id: string;
64
105
  client_secret: string;
65
106
  redirect_uri?: string | undefined;
107
+ grant_type?: string | undefined;
66
108
  };
67
109
 
68
110
  /** @internal */
@@ -76,11 +118,13 @@ export const ExchangeSsoTokenRequestBody$outboundSchema: z.ZodType<
76
118
  clientId: z.string(),
77
119
  clientSecret: z.string(),
78
120
  redirectUri: z.string().optional(),
121
+ grantType: ExchangeSsoTokenGrantType$outboundSchema.optional(),
79
122
  }).transform((v) => {
80
123
  return remap$(v, {
81
124
  clientId: "client_id",
82
125
  clientSecret: "client_secret",
83
126
  redirectUri: "redirect_uri",
127
+ grantType: "grant_type",
84
128
  });
85
129
  });
86
130
 
@@ -58,6 +58,7 @@ export const TagIds = {
58
58
  TagSecurity: "tag_security",
59
59
  TagTesting: "tag_testing",
60
60
  TagVideo: "tag_video",
61
+ TagWorkflow: "tag_workflow",
61
62
  } as const;
62
63
  export type TagIds = ClosedEnum<typeof TagIds>;
63
64
 
@@ -93,7 +94,7 @@ export type GetConfigurationsResponseBodyIntegrationsType = ClosedEnum<
93
94
  typeof GetConfigurationsResponseBodyIntegrationsType
94
95
  >;
95
96
 
96
- export const GetConfigurationsResponseBodyDisabledReason = {
97
+ export const ResponseBodyDisabledReason = {
97
98
  DisabledByOwner: "disabled-by-owner",
98
99
  FeatureNotAvailable: "feature-not-available",
99
100
  DisabledByAdmin: "disabled-by-admin",
@@ -101,8 +102,8 @@ export const GetConfigurationsResponseBodyDisabledReason = {
101
102
  AccountPlanDowngrade: "account-plan-downgrade",
102
103
  OriginalOwnerRoleDowngraded: "original-owner-role-downgraded",
103
104
  } as const;
104
- export type GetConfigurationsResponseBodyDisabledReason = ClosedEnum<
105
- typeof GetConfigurationsResponseBodyDisabledReason
105
+ export type ResponseBodyDisabledReason = ClosedEnum<
106
+ typeof ResponseBodyDisabledReason
106
107
  >;
107
108
 
108
109
  /**
@@ -182,7 +183,7 @@ export type GetConfigurationsResponseBody2 = {
182
183
  * A timestamp that tells you when the configuration deletion has been started for cases when the deletion needs to be settled/approved by partners, such as when marketplace invoices have been paid.
183
184
  */
184
185
  deleteRequestedAt?: number | null | undefined;
185
- disabledReason?: GetConfigurationsResponseBodyDisabledReason | undefined;
186
+ disabledReason?: ResponseBodyDisabledReason | undefined;
186
187
  /**
187
188
  * Defines the installation type. - 'external' integrations are installed via the existing integrations flow - 'marketplace' integrations are natively installed: - when accepting the TOS of a partner during the store creation process - if undefined, assume 'external'
188
189
  */
@@ -212,7 +213,7 @@ export type GetConfigurationsResponseBodyType = ClosedEnum<
212
213
  typeof GetConfigurationsResponseBodyType
213
214
  >;
214
215
 
215
- export const ResponseBodyDisabledReason = {
216
+ export const DisabledReason = {
216
217
  DisabledByOwner: "disabled-by-owner",
217
218
  FeatureNotAvailable: "feature-not-available",
218
219
  DisabledByAdmin: "disabled-by-admin",
@@ -220,9 +221,7 @@ export const ResponseBodyDisabledReason = {
220
221
  AccountPlanDowngrade: "account-plan-downgrade",
221
222
  OriginalOwnerRoleDowngraded: "original-owner-role-downgraded",
222
223
  } as const;
223
- export type ResponseBodyDisabledReason = ClosedEnum<
224
- typeof ResponseBodyDisabledReason
225
- >;
224
+ export type DisabledReason = ClosedEnum<typeof DisabledReason>;
226
225
 
227
226
  /**
228
227
  * Defines the installation type. - 'external' integrations are installed via the existing integrations flow - 'marketplace' integrations are natively installed: - when accepting the TOS of a partner during the store creation process - if undefined, assume 'external'
@@ -303,7 +302,7 @@ export type GetConfigurationsResponseBody1 = {
303
302
  * A timestamp that tells you when the configuration deletion has been started for cases when the deletion needs to be settled/approved by partners, such as when marketplace invoices have been paid.
304
303
  */
305
304
  deleteRequestedAt?: number | null | undefined;
306
- disabledReason?: ResponseBodyDisabledReason | undefined;
305
+ disabledReason?: DisabledReason | undefined;
307
306
  /**
308
307
  * Defines the installation type. - 'external' integrations are installed via the existing integrations flow - 'marketplace' integrations are natively installed: - when accepting the TOS of a partner during the store creation process - if undefined, assume 'external'
309
308
  */
@@ -555,26 +554,24 @@ export namespace GetConfigurationsResponseBodyIntegrationsType$ {
555
554
  }
556
555
 
557
556
  /** @internal */
558
- export const GetConfigurationsResponseBodyDisabledReason$inboundSchema:
559
- z.ZodNativeEnum<typeof GetConfigurationsResponseBodyDisabledReason> = z
560
- .nativeEnum(GetConfigurationsResponseBodyDisabledReason);
557
+ export const ResponseBodyDisabledReason$inboundSchema: z.ZodNativeEnum<
558
+ typeof ResponseBodyDisabledReason
559
+ > = z.nativeEnum(ResponseBodyDisabledReason);
561
560
 
562
561
  /** @internal */
563
- export const GetConfigurationsResponseBodyDisabledReason$outboundSchema:
564
- z.ZodNativeEnum<typeof GetConfigurationsResponseBodyDisabledReason> =
565
- GetConfigurationsResponseBodyDisabledReason$inboundSchema;
562
+ export const ResponseBodyDisabledReason$outboundSchema: z.ZodNativeEnum<
563
+ typeof ResponseBodyDisabledReason
564
+ > = ResponseBodyDisabledReason$inboundSchema;
566
565
 
567
566
  /**
568
567
  * @internal
569
568
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
570
569
  */
571
- export namespace GetConfigurationsResponseBodyDisabledReason$ {
572
- /** @deprecated use `GetConfigurationsResponseBodyDisabledReason$inboundSchema` instead. */
573
- export const inboundSchema =
574
- GetConfigurationsResponseBodyDisabledReason$inboundSchema;
575
- /** @deprecated use `GetConfigurationsResponseBodyDisabledReason$outboundSchema` instead. */
576
- export const outboundSchema =
577
- GetConfigurationsResponseBodyDisabledReason$outboundSchema;
570
+ export namespace ResponseBodyDisabledReason$ {
571
+ /** @deprecated use `ResponseBodyDisabledReason$inboundSchema` instead. */
572
+ export const inboundSchema = ResponseBodyDisabledReason$inboundSchema;
573
+ /** @deprecated use `ResponseBodyDisabledReason$outboundSchema` instead. */
574
+ export const outboundSchema = ResponseBodyDisabledReason$outboundSchema;
578
575
  }
579
576
 
580
577
  /** @internal */
@@ -624,8 +621,7 @@ export const GetConfigurationsResponseBody2$inboundSchema: z.ZodType<
624
621
  disabledAt: z.number().optional(),
625
622
  deletedAt: z.nullable(z.number()).optional(),
626
623
  deleteRequestedAt: z.nullable(z.number()).optional(),
627
- disabledReason: GetConfigurationsResponseBodyDisabledReason$inboundSchema
628
- .optional(),
624
+ disabledReason: ResponseBodyDisabledReason$inboundSchema.optional(),
629
625
  installationType: GetConfigurationsResponseBodyInstallationType$inboundSchema
630
626
  .optional(),
631
627
  });
@@ -677,8 +673,7 @@ export const GetConfigurationsResponseBody2$outboundSchema: z.ZodType<
677
673
  disabledAt: z.number().optional(),
678
674
  deletedAt: z.nullable(z.number()).optional(),
679
675
  deleteRequestedAt: z.nullable(z.number()).optional(),
680
- disabledReason: GetConfigurationsResponseBodyDisabledReason$outboundSchema
681
- .optional(),
676
+ disabledReason: ResponseBodyDisabledReason$outboundSchema.optional(),
682
677
  installationType: GetConfigurationsResponseBodyInstallationType$outboundSchema
683
678
  .optional(),
684
679
  });
@@ -762,24 +757,24 @@ export namespace GetConfigurationsResponseBodyType$ {
762
757
  }
763
758
 
764
759
  /** @internal */
765
- export const ResponseBodyDisabledReason$inboundSchema: z.ZodNativeEnum<
766
- typeof ResponseBodyDisabledReason
767
- > = z.nativeEnum(ResponseBodyDisabledReason);
760
+ export const DisabledReason$inboundSchema: z.ZodNativeEnum<
761
+ typeof DisabledReason
762
+ > = z.nativeEnum(DisabledReason);
768
763
 
769
764
  /** @internal */
770
- export const ResponseBodyDisabledReason$outboundSchema: z.ZodNativeEnum<
771
- typeof ResponseBodyDisabledReason
772
- > = ResponseBodyDisabledReason$inboundSchema;
765
+ export const DisabledReason$outboundSchema: z.ZodNativeEnum<
766
+ typeof DisabledReason
767
+ > = DisabledReason$inboundSchema;
773
768
 
774
769
  /**
775
770
  * @internal
776
771
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
777
772
  */
778
- export namespace ResponseBodyDisabledReason$ {
779
- /** @deprecated use `ResponseBodyDisabledReason$inboundSchema` instead. */
780
- export const inboundSchema = ResponseBodyDisabledReason$inboundSchema;
781
- /** @deprecated use `ResponseBodyDisabledReason$outboundSchema` instead. */
782
- export const outboundSchema = ResponseBodyDisabledReason$outboundSchema;
773
+ export namespace DisabledReason$ {
774
+ /** @deprecated use `DisabledReason$inboundSchema` instead. */
775
+ export const inboundSchema = DisabledReason$inboundSchema;
776
+ /** @deprecated use `DisabledReason$outboundSchema` instead. */
777
+ export const outboundSchema = DisabledReason$outboundSchema;
783
778
  }
784
779
 
785
780
  /** @internal */
@@ -825,7 +820,7 @@ export const GetConfigurationsResponseBody1$inboundSchema: z.ZodType<
825
820
  disabledAt: z.number().optional(),
826
821
  deletedAt: z.nullable(z.number()).optional(),
827
822
  deleteRequestedAt: z.nullable(z.number()).optional(),
828
- disabledReason: ResponseBodyDisabledReason$inboundSchema.optional(),
823
+ disabledReason: DisabledReason$inboundSchema.optional(),
829
824
  installationType: ResponseBodyInstallationType$inboundSchema.optional(),
830
825
  });
831
826
 
@@ -873,7 +868,7 @@ export const GetConfigurationsResponseBody1$outboundSchema: z.ZodType<
873
868
  disabledAt: z.number().optional(),
874
869
  deletedAt: z.nullable(z.number()).optional(),
875
870
  deleteRequestedAt: z.nullable(z.number()).optional(),
876
- disabledReason: ResponseBodyDisabledReason$outboundSchema.optional(),
871
+ disabledReason: DisabledReason$outboundSchema.optional(),
877
872
  installationType: ResponseBodyInstallationType$outboundSchema.optional(),
878
873
  });
879
874
 
@@ -26,6 +26,9 @@ export type GetCustomEnvironmentRequest = {
26
26
  slug?: string | undefined;
27
27
  };
28
28
 
29
+ /**
30
+ * Internal representation of a custom environment with all required properties
31
+ */
29
32
  export type GetCustomEnvironmentResponseBody = {};
30
33
 
31
34
  /** @internal */
@@ -56,16 +56,14 @@ export type GetIntegrationLogDrainsSources = ClosedEnum<
56
56
  /**
57
57
  * Whether the log drain was created by an integration or by a user
58
58
  */
59
- export const GetIntegrationLogDrainsCreatedFrom = {
60
- SelfServed: "self-served",
59
+ export const CreatedFrom = {
61
60
  Integration: "integration",
61
+ SelfServed: "self-served",
62
62
  } as const;
63
63
  /**
64
64
  * Whether the log drain was created by an integration or by a user
65
65
  */
66
- export type GetIntegrationLogDrainsCreatedFrom = ClosedEnum<
67
- typeof GetIntegrationLogDrainsCreatedFrom
68
- >;
66
+ export type CreatedFrom = ClosedEnum<typeof CreatedFrom>;
69
67
 
70
68
  /**
71
69
  * The environment of log drain
@@ -126,7 +124,7 @@ export type GetIntegrationLogDrainsResponseBody = {
126
124
  /**
127
125
  * Whether the log drain was created by an integration or by a user
128
126
  */
129
- createdFrom?: GetIntegrationLogDrainsCreatedFrom | undefined;
127
+ createdFrom?: CreatedFrom | undefined;
130
128
  /**
131
129
  * The headers to send with the request
132
130
  */
@@ -250,25 +248,22 @@ export namespace GetIntegrationLogDrainsSources$ {
250
248
  }
251
249
 
252
250
  /** @internal */
253
- export const GetIntegrationLogDrainsCreatedFrom$inboundSchema: z.ZodNativeEnum<
254
- typeof GetIntegrationLogDrainsCreatedFrom
255
- > = z.nativeEnum(GetIntegrationLogDrainsCreatedFrom);
251
+ export const CreatedFrom$inboundSchema: z.ZodNativeEnum<typeof CreatedFrom> = z
252
+ .nativeEnum(CreatedFrom);
256
253
 
257
254
  /** @internal */
258
- export const GetIntegrationLogDrainsCreatedFrom$outboundSchema: z.ZodNativeEnum<
259
- typeof GetIntegrationLogDrainsCreatedFrom
260
- > = GetIntegrationLogDrainsCreatedFrom$inboundSchema;
255
+ export const CreatedFrom$outboundSchema: z.ZodNativeEnum<typeof CreatedFrom> =
256
+ CreatedFrom$inboundSchema;
261
257
 
262
258
  /**
263
259
  * @internal
264
260
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
265
261
  */
266
- export namespace GetIntegrationLogDrainsCreatedFrom$ {
267
- /** @deprecated use `GetIntegrationLogDrainsCreatedFrom$inboundSchema` instead. */
268
- export const inboundSchema = GetIntegrationLogDrainsCreatedFrom$inboundSchema;
269
- /** @deprecated use `GetIntegrationLogDrainsCreatedFrom$outboundSchema` instead. */
270
- export const outboundSchema =
271
- GetIntegrationLogDrainsCreatedFrom$outboundSchema;
262
+ export namespace CreatedFrom$ {
263
+ /** @deprecated use `CreatedFrom$inboundSchema` instead. */
264
+ export const inboundSchema = CreatedFrom$inboundSchema;
265
+ /** @deprecated use `CreatedFrom$outboundSchema` instead. */
266
+ export const outboundSchema = CreatedFrom$outboundSchema;
272
267
  }
273
268
 
274
269
  /** @internal */
@@ -312,7 +307,7 @@ export const GetIntegrationLogDrainsResponseBody$inboundSchema: z.ZodType<
312
307
  projectIds: z.array(z.string()).optional(),
313
308
  url: z.string(),
314
309
  sources: z.array(GetIntegrationLogDrainsSources$inboundSchema).optional(),
315
- createdFrom: GetIntegrationLogDrainsCreatedFrom$inboundSchema.optional(),
310
+ createdFrom: CreatedFrom$inboundSchema.optional(),
316
311
  headers: z.record(z.string()).optional(),
317
312
  environments: z.array(GetIntegrationLogDrainsEnvironments$inboundSchema),
318
313
  branch: z.string().optional(),
@@ -357,7 +352,7 @@ export const GetIntegrationLogDrainsResponseBody$outboundSchema: z.ZodType<
357
352
  projectIds: z.array(z.string()).optional(),
358
353
  url: z.string(),
359
354
  sources: z.array(GetIntegrationLogDrainsSources$outboundSchema).optional(),
360
- createdFrom: GetIntegrationLogDrainsCreatedFrom$outboundSchema.optional(),
355
+ createdFrom: CreatedFrom$outboundSchema.optional(),
361
356
  headers: z.record(z.string()).optional(),
362
357
  environments: z.array(GetIntegrationLogDrainsEnvironments$outboundSchema),
363
358
  branch: z.string().optional(),
@@ -538,18 +538,30 @@ export type GetProjectsAliasError = {
538
538
  message: string;
539
539
  };
540
540
 
541
+ /**
542
+ * The type of matching to perform
543
+ */
541
544
  export const GetProjectsProjectsResponse200ApplicationJSONResponseBodyType = {
542
545
  EndsWith: "endsWith",
543
546
  StartsWith: "startsWith",
544
547
  Equals: "equals",
545
548
  } as const;
549
+ /**
550
+ * The type of matching to perform
551
+ */
546
552
  export type GetProjectsProjectsResponse200ApplicationJSONResponseBodyType =
547
553
  ClosedEnum<
548
554
  typeof GetProjectsProjectsResponse200ApplicationJSONResponseBodyType
549
555
  >;
550
556
 
551
557
  export type GetProjectsBranchMatcher = {
558
+ /**
559
+ * The type of matching to perform
560
+ */
552
561
  type: GetProjectsProjectsResponse200ApplicationJSONResponseBodyType;
562
+ /**
563
+ * The pattern to match against branch names
564
+ */
553
565
  pattern: string;
554
566
  };
555
567
 
@@ -794,7 +806,7 @@ export type GetProjectsMicrofrontends1 = {
794
806
  */
795
807
  isDefaultApp?: boolean | undefined;
796
808
  /**
797
- * A path that is used to take screenshots and as the default path in preview links when a domain for this microfrontend is shown in the UI.
809
+ * A path that is used to take screenshots and as the default path in preview links when a domain for this microfrontend is shown in the UI. Includes the leading slash, e.g. `/docs`
798
810
  */
799
811
  defaultRoute?: string | undefined;
800
812
  /**
@@ -893,8 +905,8 @@ export type GetProjectsDefaultResourceConfig = {
893
905
  };
894
906
 
895
907
  export const GetProjectsDeploymentType = {
896
- Preview: "preview",
897
908
  All: "all",
909
+ Preview: "preview",
898
910
  ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
899
911
  } as const;
900
912
  export type GetProjectsDeploymentType = ClosedEnum<
@@ -912,17 +924,29 @@ export type GetProjectsProjectsAliasError = {
912
924
  message: string;
913
925
  };
914
926
 
927
+ /**
928
+ * The type of matching to perform
929
+ */
915
930
  export const GetProjectsProjectsResponse200ApplicationJSONType = {
916
931
  EndsWith: "endsWith",
917
932
  StartsWith: "startsWith",
918
933
  Equals: "equals",
919
934
  } as const;
935
+ /**
936
+ * The type of matching to perform
937
+ */
920
938
  export type GetProjectsProjectsResponse200ApplicationJSONType = ClosedEnum<
921
939
  typeof GetProjectsProjectsResponse200ApplicationJSONType
922
940
  >;
923
941
 
924
942
  export type GetProjectsProjectsBranchMatcher = {
943
+ /**
944
+ * The type of matching to perform
945
+ */
925
946
  type: GetProjectsProjectsResponse200ApplicationJSONType;
947
+ /**
948
+ * The pattern to match against branch names
949
+ */
926
950
  pattern: string;
927
951
  };
928
952
 
@@ -1166,6 +1190,7 @@ export type GetProjectsPermissions = {
1166
1190
  teamInvite?: Array<ACLAction> | undefined;
1167
1191
  teamInviteCode?: Array<ACLAction> | undefined;
1168
1192
  teamJoin?: Array<ACLAction> | undefined;
1193
+ teamMemberMfaStatus?: Array<ACLAction> | undefined;
1169
1194
  teamMicrofrontends?: Array<ACLAction> | undefined;
1170
1195
  teamOwnMembership?: Array<ACLAction> | undefined;
1171
1196
  teamOwnMembershipDisconnectSAML?: Array<ACLAction> | undefined;
@@ -1183,6 +1208,8 @@ export type GetProjectsPermissions = {
1183
1208
  endpointVerification?: Array<ACLAction> | undefined;
1184
1209
  projectTransferIn?: Array<ACLAction> | undefined;
1185
1210
  oauth2Application?: Array<ACLAction> | undefined;
1211
+ vercelRun?: Array<ACLAction> | undefined;
1212
+ vercelRunExec?: Array<ACLAction> | undefined;
1186
1213
  aliasProject?: Array<ACLAction> | undefined;
1187
1214
  aliasProtectionBypass?: Array<ACLAction> | undefined;
1188
1215
  productionAliasProtectionBypass?: Array<ACLAction> | undefined;
@@ -1282,10 +1309,10 @@ export type GetProjectsProtectionBypass = {
1282
1309
  };
1283
1310
 
1284
1311
  export const GetProjectsTrustedIpsProjectsDeploymentType = {
1285
- Production: "production",
1286
- Preview: "preview",
1287
1312
  All: "all",
1313
+ Preview: "preview",
1288
1314
  ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
1315
+ Production: "production",
1289
1316
  } as const;
1290
1317
  export type GetProjectsTrustedIpsProjectsDeploymentType = ClosedEnum<
1291
1318
  typeof GetProjectsTrustedIpsProjectsDeploymentType
@@ -1296,10 +1323,10 @@ export type GetProjectsTrustedIps2 = {
1296
1323
  };
1297
1324
 
1298
1325
  export const GetProjectsTrustedIpsDeploymentType = {
1299
- Production: "production",
1300
- Preview: "preview",
1301
1326
  All: "all",
1327
+ Preview: "preview",
1302
1328
  ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
1329
+ Production: "production",
1303
1330
  } as const;
1304
1331
  export type GetProjectsTrustedIpsDeploymentType = ClosedEnum<
1305
1332
  typeof GetProjectsTrustedIpsDeploymentType
@@ -6939,6 +6966,7 @@ export const GetProjectsPermissions$inboundSchema: z.ZodType<
6939
6966
  teamInvite: z.array(ACLAction$inboundSchema).optional(),
6940
6967
  teamInviteCode: z.array(ACLAction$inboundSchema).optional(),
6941
6968
  teamJoin: z.array(ACLAction$inboundSchema).optional(),
6969
+ teamMemberMfaStatus: z.array(ACLAction$inboundSchema).optional(),
6942
6970
  teamMicrofrontends: z.array(ACLAction$inboundSchema).optional(),
6943
6971
  teamOwnMembership: z.array(ACLAction$inboundSchema).optional(),
6944
6972
  teamOwnMembershipDisconnectSAML: z.array(ACLAction$inboundSchema).optional(),
@@ -6956,6 +6984,8 @@ export const GetProjectsPermissions$inboundSchema: z.ZodType<
6956
6984
  endpointVerification: z.array(ACLAction$inboundSchema).optional(),
6957
6985
  projectTransferIn: z.array(ACLAction$inboundSchema).optional(),
6958
6986
  oauth2Application: z.array(ACLAction$inboundSchema).optional(),
6987
+ vercelRun: z.array(ACLAction$inboundSchema).optional(),
6988
+ vercelRunExec: z.array(ACLAction$inboundSchema).optional(),
6959
6989
  aliasProject: z.array(ACLAction$inboundSchema).optional(),
6960
6990
  aliasProtectionBypass: z.array(ACLAction$inboundSchema).optional(),
6961
6991
  productionAliasProtectionBypass: z.array(ACLAction$inboundSchema).optional(),
@@ -7141,6 +7171,7 @@ export type GetProjectsPermissions$Outbound = {
7141
7171
  teamInvite?: Array<string> | undefined;
7142
7172
  teamInviteCode?: Array<string> | undefined;
7143
7173
  teamJoin?: Array<string> | undefined;
7174
+ teamMemberMfaStatus?: Array<string> | undefined;
7144
7175
  teamMicrofrontends?: Array<string> | undefined;
7145
7176
  teamOwnMembership?: Array<string> | undefined;
7146
7177
  teamOwnMembershipDisconnectSAML?: Array<string> | undefined;
@@ -7158,6 +7189,8 @@ export type GetProjectsPermissions$Outbound = {
7158
7189
  endpointVerification?: Array<string> | undefined;
7159
7190
  projectTransferIn?: Array<string> | undefined;
7160
7191
  oauth2Application?: Array<string> | undefined;
7192
+ vercelRun?: Array<string> | undefined;
7193
+ vercelRunExec?: Array<string> | undefined;
7161
7194
  aliasProject?: Array<string> | undefined;
7162
7195
  aliasProtectionBypass?: Array<string> | undefined;
7163
7196
  productionAliasProtectionBypass?: Array<string> | undefined;
@@ -7344,6 +7377,7 @@ export const GetProjectsPermissions$outboundSchema: z.ZodType<
7344
7377
  teamInvite: z.array(ACLAction$outboundSchema).optional(),
7345
7378
  teamInviteCode: z.array(ACLAction$outboundSchema).optional(),
7346
7379
  teamJoin: z.array(ACLAction$outboundSchema).optional(),
7380
+ teamMemberMfaStatus: z.array(ACLAction$outboundSchema).optional(),
7347
7381
  teamMicrofrontends: z.array(ACLAction$outboundSchema).optional(),
7348
7382
  teamOwnMembership: z.array(ACLAction$outboundSchema).optional(),
7349
7383
  teamOwnMembershipDisconnectSAML: z.array(ACLAction$outboundSchema).optional(),
@@ -7361,6 +7395,8 @@ export const GetProjectsPermissions$outboundSchema: z.ZodType<
7361
7395
  endpointVerification: z.array(ACLAction$outboundSchema).optional(),
7362
7396
  projectTransferIn: z.array(ACLAction$outboundSchema).optional(),
7363
7397
  oauth2Application: z.array(ACLAction$outboundSchema).optional(),
7398
+ vercelRun: z.array(ACLAction$outboundSchema).optional(),
7399
+ vercelRunExec: z.array(ACLAction$outboundSchema).optional(),
7364
7400
  aliasProject: z.array(ACLAction$outboundSchema).optional(),
7365
7401
  aliasProtectionBypass: z.array(ACLAction$outboundSchema).optional(),
7366
7402
  productionAliasProtectionBypass: z.array(ACLAction$outboundSchema).optional(),
@@ -96,12 +96,12 @@ export type GetTeamMembersRole = ClosedEnum<typeof GetTeamMembersRole>;
96
96
  export const GetTeamMembersOrigin = {
97
97
  Teams: "teams",
98
98
  Link: "link",
99
- Mail: "mail",
100
- Import: "import",
99
+ Saml: "saml",
101
100
  Github: "github",
102
101
  Gitlab: "gitlab",
103
102
  Bitbucket: "bitbucket",
104
- Saml: "saml",
103
+ Mail: "mail",
104
+ Import: "import",
105
105
  Dsync: "dsync",
106
106
  Feedback: "feedback",
107
107
  OrganizationTeams: "organization-teams",
@@ -26,6 +26,9 @@ export type GetV9ProjectsIdOrNameCustomEnvironmentsRequest = {
26
26
  slug?: string | undefined;
27
27
  };
28
28
 
29
+ /**
30
+ * Internal representation of a custom environment with all required properties
31
+ */
29
32
  export type GetV9ProjectsIdOrNameCustomEnvironmentsEnvironments = {};
30
33
 
31
34
  export type GetV9ProjectsIdOrNameCustomEnvironmentsResponseBody = {
@@ -0,0 +1,83 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../types/fp.js";
8
+ import { SDKValidationError } from "./sdkvalidationerror.js";
9
+
10
+ export type PauseProjectRequest = {
11
+ /**
12
+ * The unique project identifier
13
+ */
14
+ projectId: string;
15
+ /**
16
+ * The Team identifier to perform the request on behalf of.
17
+ */
18
+ teamId?: string | undefined;
19
+ /**
20
+ * The Team slug to perform the request on behalf of.
21
+ */
22
+ slug?: string | undefined;
23
+ };
24
+
25
+ /** @internal */
26
+ export const PauseProjectRequest$inboundSchema: z.ZodType<
27
+ PauseProjectRequest,
28
+ z.ZodTypeDef,
29
+ unknown
30
+ > = z.object({
31
+ projectId: z.string(),
32
+ teamId: z.string().optional(),
33
+ slug: z.string().optional(),
34
+ });
35
+
36
+ /** @internal */
37
+ export type PauseProjectRequest$Outbound = {
38
+ projectId: string;
39
+ teamId?: string | undefined;
40
+ slug?: string | undefined;
41
+ };
42
+
43
+ /** @internal */
44
+ export const PauseProjectRequest$outboundSchema: z.ZodType<
45
+ PauseProjectRequest$Outbound,
46
+ z.ZodTypeDef,
47
+ PauseProjectRequest
48
+ > = z.object({
49
+ projectId: z.string(),
50
+ teamId: z.string().optional(),
51
+ slug: z.string().optional(),
52
+ });
53
+
54
+ /**
55
+ * @internal
56
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
57
+ */
58
+ export namespace PauseProjectRequest$ {
59
+ /** @deprecated use `PauseProjectRequest$inboundSchema` instead. */
60
+ export const inboundSchema = PauseProjectRequest$inboundSchema;
61
+ /** @deprecated use `PauseProjectRequest$outboundSchema` instead. */
62
+ export const outboundSchema = PauseProjectRequest$outboundSchema;
63
+ /** @deprecated use `PauseProjectRequest$Outbound` instead. */
64
+ export type Outbound = PauseProjectRequest$Outbound;
65
+ }
66
+
67
+ export function pauseProjectRequestToJSON(
68
+ pauseProjectRequest: PauseProjectRequest,
69
+ ): string {
70
+ return JSON.stringify(
71
+ PauseProjectRequest$outboundSchema.parse(pauseProjectRequest),
72
+ );
73
+ }
74
+
75
+ export function pauseProjectRequestFromJSON(
76
+ jsonString: string,
77
+ ): SafeParseResult<PauseProjectRequest, SDKValidationError> {
78
+ return safeParse(
79
+ jsonString,
80
+ (x) => PauseProjectRequest$inboundSchema.parse(JSON.parse(x)),
81
+ `Failed to parse 'PauseProjectRequest' from JSON`,
82
+ );
83
+ }