@vercel/sdk 14.0.0-canary.7 → 14.0.0-canary.9

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 (179) hide show
  1. package/.devcontainer/README.md +1 -1
  2. package/README.md +25 -0
  3. package/docs/sdks/authentication/README.md +69 -0
  4. package/docs/sdks/marketplace/README.md +694 -0
  5. package/docs/sdks/projects/README.md +85 -0
  6. package/esm/funcs/authenticationExchangeSsoToken.d.ts +15 -0
  7. package/esm/funcs/authenticationExchangeSsoToken.d.ts.map +1 -0
  8. package/esm/funcs/authenticationExchangeSsoToken.js +66 -0
  9. package/esm/funcs/authenticationExchangeSsoToken.js.map +1 -0
  10. package/esm/funcs/marketplaceCreateEvent.d.ts +15 -0
  11. package/esm/funcs/marketplaceCreateEvent.d.ts.map +1 -0
  12. package/esm/funcs/marketplaceCreateEvent.js +73 -0
  13. package/esm/funcs/marketplaceCreateEvent.js.map +1 -0
  14. package/esm/funcs/marketplaceExchangeSsoToken.d.ts +15 -0
  15. package/esm/funcs/marketplaceExchangeSsoToken.d.ts.map +1 -0
  16. package/esm/funcs/marketplaceExchangeSsoToken.js +66 -0
  17. package/esm/funcs/marketplaceExchangeSsoToken.js.map +1 -0
  18. package/esm/funcs/marketplaceGetAccountInfo.d.ts +15 -0
  19. package/esm/funcs/marketplaceGetAccountInfo.d.ts.map +1 -0
  20. package/esm/funcs/marketplaceGetAccountInfo.js +71 -0
  21. package/esm/funcs/marketplaceGetAccountInfo.js.map +1 -0
  22. package/esm/funcs/marketplaceGetInvoice.d.ts +15 -0
  23. package/esm/funcs/marketplaceGetInvoice.d.ts.map +1 -0
  24. package/esm/funcs/marketplaceGetInvoice.js +75 -0
  25. package/esm/funcs/marketplaceGetInvoice.js.map +1 -0
  26. package/esm/funcs/marketplaceGetMember.d.ts +15 -0
  27. package/esm/funcs/marketplaceGetMember.d.ts.map +1 -0
  28. package/esm/funcs/marketplaceGetMember.js +75 -0
  29. package/esm/funcs/marketplaceGetMember.js.map +1 -0
  30. package/esm/funcs/marketplaceSubmitBillingData.d.ts +15 -0
  31. package/esm/funcs/marketplaceSubmitBillingData.d.ts.map +1 -0
  32. package/esm/funcs/marketplaceSubmitBillingData.js +73 -0
  33. package/esm/funcs/marketplaceSubmitBillingData.js.map +1 -0
  34. package/esm/funcs/marketplaceSubmitInvoice.d.ts +15 -0
  35. package/esm/funcs/marketplaceSubmitInvoice.d.ts.map +1 -0
  36. package/esm/funcs/marketplaceSubmitInvoice.js +72 -0
  37. package/esm/funcs/marketplaceSubmitInvoice.js.map +1 -0
  38. package/esm/funcs/marketplaceUpdateInvoice.d.ts +15 -0
  39. package/esm/funcs/marketplaceUpdateInvoice.d.ts.map +1 -0
  40. package/esm/funcs/marketplaceUpdateInvoice.js +77 -0
  41. package/esm/funcs/marketplaceUpdateInvoice.js.map +1 -0
  42. package/esm/funcs/marketplaceUpdateResourceSecrets.d.ts +15 -0
  43. package/esm/funcs/marketplaceUpdateResourceSecrets.d.ts.map +1 -0
  44. package/esm/funcs/marketplaceUpdateResourceSecrets.js +78 -0
  45. package/esm/funcs/marketplaceUpdateResourceSecrets.js.map +1 -0
  46. package/esm/funcs/projectsGetProjectDomains.d.ts +15 -0
  47. package/esm/funcs/projectsGetProjectDomains.d.ts.map +1 -0
  48. package/esm/funcs/projectsGetProjectDomains.js +89 -0
  49. package/esm/funcs/projectsGetProjectDomains.js.map +1 -0
  50. package/esm/lib/config.d.ts +2 -2
  51. package/esm/lib/config.js +2 -2
  52. package/esm/models/components/authuser.d.ts +6 -3
  53. package/esm/models/components/authuser.d.ts.map +1 -1
  54. package/esm/models/components/authuser.js +2 -1
  55. package/esm/models/components/authuser.js.map +1 -1
  56. package/esm/models/components/security.d.ts +2 -2
  57. package/esm/models/components/security.d.ts.map +1 -1
  58. package/esm/models/components/security.js +2 -2
  59. package/esm/models/components/security.js.map +1 -1
  60. package/esm/models/operations/createevent.d.ts +187 -0
  61. package/esm/models/operations/createevent.d.ts.map +1 -0
  62. package/esm/models/operations/createevent.js +195 -0
  63. package/esm/models/operations/createevent.js.map +1 -0
  64. package/esm/models/operations/createproject.d.ts +4 -0
  65. package/esm/models/operations/createproject.d.ts.map +1 -1
  66. package/esm/models/operations/createproject.js +4 -0
  67. package/esm/models/operations/createproject.js.map +1 -1
  68. package/esm/models/operations/createteam.d.ts +15 -15
  69. package/esm/models/operations/createteam.d.ts.map +1 -1
  70. package/esm/models/operations/createteam.js +15 -15
  71. package/esm/models/operations/createteam.js.map +1 -1
  72. package/esm/models/operations/deletedeployment.d.ts +8 -8
  73. package/esm/models/operations/deletedeployment.d.ts.map +1 -1
  74. package/esm/models/operations/deletedeployment.js +12 -12
  75. package/esm/models/operations/deletedeployment.js.map +1 -1
  76. package/esm/models/operations/exchangessotoken.d.ts +81 -0
  77. package/esm/models/operations/exchangessotoken.d.ts.map +1 -0
  78. package/esm/models/operations/exchangessotoken.js +93 -0
  79. package/esm/models/operations/exchangessotoken.js.map +1 -0
  80. package/esm/models/operations/getaccountinfo.d.ts +85 -0
  81. package/esm/models/operations/getaccountinfo.d.ts.map +1 -0
  82. package/esm/models/operations/getaccountinfo.js +87 -0
  83. package/esm/models/operations/getaccountinfo.js.map +1 -0
  84. package/esm/models/operations/getinvoice.d.ts +232 -0
  85. package/esm/models/operations/getinvoice.d.ts.map +1 -0
  86. package/esm/models/operations/getinvoice.js +219 -0
  87. package/esm/models/operations/getinvoice.js.map +1 -0
  88. package/esm/models/operations/getmember.d.ts +84 -0
  89. package/esm/models/operations/getmember.d.ts.map +1 -0
  90. package/esm/models/operations/getmember.js +79 -0
  91. package/esm/models/operations/getmember.js.map +1 -0
  92. package/esm/models/operations/getprojectdomains.d.ts +367 -0
  93. package/esm/models/operations/getprojectdomains.d.ts.map +1 -0
  94. package/esm/models/operations/getprojectdomains.js +272 -0
  95. package/esm/models/operations/getprojectdomains.js.map +1 -0
  96. package/esm/models/operations/getprojects.d.ts +4 -0
  97. package/esm/models/operations/getprojects.d.ts.map +1 -1
  98. package/esm/models/operations/getprojects.js +4 -0
  99. package/esm/models/operations/getprojects.js.map +1 -1
  100. package/esm/models/operations/putfirewallconfig.d.ts +44 -44
  101. package/esm/models/operations/putfirewallconfig.d.ts.map +1 -1
  102. package/esm/models/operations/putfirewallconfig.js +71 -72
  103. package/esm/models/operations/putfirewallconfig.js.map +1 -1
  104. package/esm/models/operations/submitbillingdata.d.ts +448 -0
  105. package/esm/models/operations/submitbillingdata.d.ts.map +1 -0
  106. package/esm/models/operations/submitbillingdata.js +355 -0
  107. package/esm/models/operations/submitbillingdata.js.map +1 -0
  108. package/esm/models/operations/submitinvoice.d.ts +299 -0
  109. package/esm/models/operations/submitinvoice.d.ts.map +1 -0
  110. package/esm/models/operations/submitinvoice.js +269 -0
  111. package/esm/models/operations/submitinvoice.js.map +1 -0
  112. package/esm/models/operations/updateinvoice.d.ts +91 -0
  113. package/esm/models/operations/updateinvoice.d.ts.map +1 -0
  114. package/esm/models/operations/updateinvoice.js +92 -0
  115. package/esm/models/operations/updateinvoice.js.map +1 -0
  116. package/esm/models/operations/updateproject.d.ts +4 -0
  117. package/esm/models/operations/updateproject.d.ts.map +1 -1
  118. package/esm/models/operations/updateproject.js +4 -0
  119. package/esm/models/operations/updateproject.js.map +1 -1
  120. package/esm/models/operations/updateprojectdatacache.d.ts +4 -0
  121. package/esm/models/operations/updateprojectdatacache.d.ts.map +1 -1
  122. package/esm/models/operations/updateprojectdatacache.js +4 -0
  123. package/esm/models/operations/updateprojectdatacache.js.map +1 -1
  124. package/esm/models/operations/updateresourcesecrets.d.ts +87 -0
  125. package/esm/models/operations/updateresourcesecrets.d.ts.map +1 -0
  126. package/esm/models/operations/updateresourcesecrets.js +100 -0
  127. package/esm/models/operations/updateresourcesecrets.js.map +1 -0
  128. package/esm/sdk/authentication.d.ts +8 -0
  129. package/esm/sdk/authentication.d.ts.map +1 -1
  130. package/esm/sdk/authentication.js +10 -0
  131. package/esm/sdk/authentication.js.map +1 -1
  132. package/esm/sdk/marketplace.d.ts +76 -0
  133. package/esm/sdk/marketplace.d.ts.map +1 -0
  134. package/esm/sdk/marketplace.js +98 -0
  135. package/esm/sdk/marketplace.js.map +1 -0
  136. package/esm/sdk/projects.d.ts +8 -0
  137. package/esm/sdk/projects.d.ts.map +1 -1
  138. package/esm/sdk/projects.js +10 -0
  139. package/esm/sdk/projects.js.map +1 -1
  140. package/esm/sdk/sdk.d.ts +5 -2
  141. package/esm/sdk/sdk.d.ts.map +1 -1
  142. package/esm/sdk/sdk.js +9 -4
  143. package/esm/sdk/sdk.js.map +1 -1
  144. package/package.json +2 -2
  145. package/src/funcs/authenticationExchangeSsoToken.ts +125 -0
  146. package/src/funcs/marketplaceCreateEvent.ts +137 -0
  147. package/src/funcs/marketplaceExchangeSsoToken.ts +125 -0
  148. package/src/funcs/marketplaceGetAccountInfo.ts +137 -0
  149. package/src/funcs/marketplaceGetInvoice.ts +141 -0
  150. package/src/funcs/marketplaceGetMember.ts +141 -0
  151. package/src/funcs/marketplaceSubmitBillingData.ts +137 -0
  152. package/src/funcs/marketplaceSubmitInvoice.ts +138 -0
  153. package/src/funcs/marketplaceUpdateInvoice.ts +141 -0
  154. package/src/funcs/marketplaceUpdateResourceSecrets.ts +146 -0
  155. package/src/funcs/projectsGetProjectDomains.ts +150 -0
  156. package/src/lib/config.ts +2 -2
  157. package/src/models/components/authuser.ts +2 -1
  158. package/src/models/components/security.ts +4 -4
  159. package/src/models/operations/createevent.ts +373 -0
  160. package/src/models/operations/createproject.ts +8 -0
  161. package/src/models/operations/createteam.ts +31 -24
  162. package/src/models/operations/deletedeployment.ts +16 -15
  163. package/src/models/operations/exchangessotoken.ts +192 -0
  164. package/src/models/operations/getaccountinfo.ts +187 -0
  165. package/src/models/operations/getinvoice.ts +454 -0
  166. package/src/models/operations/getmember.ts +160 -0
  167. package/src/models/operations/getprojectdomains.ts +571 -0
  168. package/src/models/operations/getprojects.ts +8 -0
  169. package/src/models/operations/putfirewallconfig.ts +102 -93
  170. package/src/models/operations/submitbillingdata.ts +813 -0
  171. package/src/models/operations/submitinvoice.ts +593 -0
  172. package/src/models/operations/updateinvoice.ts +180 -0
  173. package/src/models/operations/updateproject.ts +8 -0
  174. package/src/models/operations/updateprojectdatacache.ts +8 -0
  175. package/src/models/operations/updateresourcesecrets.ts +206 -0
  176. package/src/sdk/authentication.ts +22 -0
  177. package/src/sdk/marketplace.ts +194 -0
  178. package/src/sdk/projects.ts +22 -0
  179. package/src/sdk/sdk.ts +11 -5
@@ -0,0 +1,571 @@
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 { ClosedEnum } from "../../types/enums.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import {
10
+ Pagination,
11
+ Pagination$inboundSchema,
12
+ Pagination$Outbound,
13
+ Pagination$outboundSchema,
14
+ } from "../components/pagination.js";
15
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
16
+
17
+ /**
18
+ * Filters only production domains when set to `true`.
19
+ */
20
+ export const Production = {
21
+ True: "true",
22
+ False: "false",
23
+ } as const;
24
+ /**
25
+ * Filters only production domains when set to `true`.
26
+ */
27
+ export type Production = ClosedEnum<typeof Production>;
28
+
29
+ /**
30
+ * Filters on the target of the domain. Can be either \"production\", \"preview\"
31
+ */
32
+ export const QueryParamTarget = {
33
+ Production: "production",
34
+ Preview: "preview",
35
+ } as const;
36
+ /**
37
+ * Filters on the target of the domain. Can be either \"production\", \"preview\"
38
+ */
39
+ export type QueryParamTarget = ClosedEnum<typeof QueryParamTarget>;
40
+
41
+ /**
42
+ * Excludes redirect project domains when \"false\". Includes redirect project domains when \"true\" (default).
43
+ */
44
+ export const Redirects = {
45
+ True: "true",
46
+ False: "false",
47
+ } as const;
48
+ /**
49
+ * Excludes redirect project domains when \"false\". Includes redirect project domains when \"true\" (default).
50
+ */
51
+ export type Redirects = ClosedEnum<typeof Redirects>;
52
+
53
+ /**
54
+ * Filters domains based on their verification status.
55
+ */
56
+ export const Verified = {
57
+ True: "true",
58
+ False: "false",
59
+ } as const;
60
+ /**
61
+ * Filters domains based on their verification status.
62
+ */
63
+ export type Verified = ClosedEnum<typeof Verified>;
64
+
65
+ /**
66
+ * Domains sort order by createdAt
67
+ */
68
+ export const Order = {
69
+ Asc: "ASC",
70
+ Desc: "DESC",
71
+ } as const;
72
+ /**
73
+ * Domains sort order by createdAt
74
+ */
75
+ export type Order = ClosedEnum<typeof Order>;
76
+
77
+ export type GetProjectDomainsRequest = {
78
+ /**
79
+ * The unique project identifier or the project name
80
+ */
81
+ idOrName: string;
82
+ /**
83
+ * Filters only production domains when set to `true`.
84
+ */
85
+ production?: Production | undefined;
86
+ /**
87
+ * Filters on the target of the domain. Can be either \"production\", \"preview\"
88
+ */
89
+ target?: QueryParamTarget | undefined;
90
+ /**
91
+ * Filters domains based on specific branch.
92
+ */
93
+ gitBranch?: string | undefined;
94
+ /**
95
+ * Excludes redirect project domains when \"false\". Includes redirect project domains when \"true\" (default).
96
+ */
97
+ redirects?: Redirects | undefined;
98
+ /**
99
+ * Filters domains based on their redirect target.
100
+ */
101
+ redirect?: string | undefined;
102
+ /**
103
+ * Filters domains based on their verification status.
104
+ */
105
+ verified?: Verified | undefined;
106
+ /**
107
+ * Maximum number of domains to list from a request (max 100).
108
+ */
109
+ limit?: number | undefined;
110
+ /**
111
+ * Get domains created after this JavaScript timestamp.
112
+ */
113
+ since?: number | undefined;
114
+ /**
115
+ * Get domains created before this JavaScript timestamp.
116
+ */
117
+ until?: number | undefined;
118
+ /**
119
+ * Domains sort order by createdAt
120
+ */
121
+ order?: Order | undefined;
122
+ /**
123
+ * The Team identifier to perform the request on behalf of.
124
+ */
125
+ teamId?: string | undefined;
126
+ /**
127
+ * The Team slug to perform the request on behalf of.
128
+ */
129
+ slug?: string | undefined;
130
+ };
131
+
132
+ /**
133
+ * A list of verification challenges, one of which must be completed to verify the domain for use on the project. After the challenge is complete `POST /projects/:idOrName/domains/:domain/verify` to verify the domain. Possible challenges: - If `verification.type = TXT` the `verification.domain` will be checked for a TXT record matching `verification.value`.
134
+ */
135
+ export type GetProjectDomainsVerification = {
136
+ type: string;
137
+ domain: string;
138
+ value: string;
139
+ reason: string;
140
+ };
141
+
142
+ export type GetProjectDomainsDomains = {
143
+ name: string;
144
+ apexName: string;
145
+ projectId: string;
146
+ redirect?: string | null | undefined;
147
+ redirectStatusCode?: number | null | undefined;
148
+ gitBranch?: string | null | undefined;
149
+ customEnvironmentId?: string | null | undefined;
150
+ updatedAt?: number | undefined;
151
+ createdAt?: number | undefined;
152
+ /**
153
+ * `true` if the domain is verified for use with the project. If `false` it will not be used as an alias on this project until the challenge in `verification` is completed.
154
+ */
155
+ verified: boolean;
156
+ /**
157
+ * A list of verification challenges, one of which must be completed to verify the domain for use on the project. After the challenge is complete `POST /projects/:idOrName/domains/:domain/verify` to verify the domain. Possible challenges: - If `verification.type = TXT` the `verification.domain` will be checked for a TXT record matching `verification.value`.
158
+ */
159
+ verification?: Array<GetProjectDomainsVerification> | undefined;
160
+ };
161
+
162
+ /**
163
+ * Successful response retrieving a list of domains
164
+ */
165
+ export type GetProjectDomainsResponseBody = {
166
+ domains: Array<GetProjectDomainsDomains>;
167
+ /**
168
+ * This object contains information related to the pagination of the current request, including the necessary parameters to get the next or previous page of data.
169
+ */
170
+ pagination: Pagination;
171
+ };
172
+
173
+ /** @internal */
174
+ export const Production$inboundSchema: z.ZodNativeEnum<typeof Production> = z
175
+ .nativeEnum(Production);
176
+
177
+ /** @internal */
178
+ export const Production$outboundSchema: z.ZodNativeEnum<typeof Production> =
179
+ Production$inboundSchema;
180
+
181
+ /**
182
+ * @internal
183
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
184
+ */
185
+ export namespace Production$ {
186
+ /** @deprecated use `Production$inboundSchema` instead. */
187
+ export const inboundSchema = Production$inboundSchema;
188
+ /** @deprecated use `Production$outboundSchema` instead. */
189
+ export const outboundSchema = Production$outboundSchema;
190
+ }
191
+
192
+ /** @internal */
193
+ export const QueryParamTarget$inboundSchema: z.ZodNativeEnum<
194
+ typeof QueryParamTarget
195
+ > = z.nativeEnum(QueryParamTarget);
196
+
197
+ /** @internal */
198
+ export const QueryParamTarget$outboundSchema: z.ZodNativeEnum<
199
+ typeof QueryParamTarget
200
+ > = QueryParamTarget$inboundSchema;
201
+
202
+ /**
203
+ * @internal
204
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
205
+ */
206
+ export namespace QueryParamTarget$ {
207
+ /** @deprecated use `QueryParamTarget$inboundSchema` instead. */
208
+ export const inboundSchema = QueryParamTarget$inboundSchema;
209
+ /** @deprecated use `QueryParamTarget$outboundSchema` instead. */
210
+ export const outboundSchema = QueryParamTarget$outboundSchema;
211
+ }
212
+
213
+ /** @internal */
214
+ export const Redirects$inboundSchema: z.ZodNativeEnum<typeof Redirects> = z
215
+ .nativeEnum(Redirects);
216
+
217
+ /** @internal */
218
+ export const Redirects$outboundSchema: z.ZodNativeEnum<typeof Redirects> =
219
+ Redirects$inboundSchema;
220
+
221
+ /**
222
+ * @internal
223
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
224
+ */
225
+ export namespace Redirects$ {
226
+ /** @deprecated use `Redirects$inboundSchema` instead. */
227
+ export const inboundSchema = Redirects$inboundSchema;
228
+ /** @deprecated use `Redirects$outboundSchema` instead. */
229
+ export const outboundSchema = Redirects$outboundSchema;
230
+ }
231
+
232
+ /** @internal */
233
+ export const Verified$inboundSchema: z.ZodNativeEnum<typeof Verified> = z
234
+ .nativeEnum(Verified);
235
+
236
+ /** @internal */
237
+ export const Verified$outboundSchema: z.ZodNativeEnum<typeof Verified> =
238
+ Verified$inboundSchema;
239
+
240
+ /**
241
+ * @internal
242
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
243
+ */
244
+ export namespace Verified$ {
245
+ /** @deprecated use `Verified$inboundSchema` instead. */
246
+ export const inboundSchema = Verified$inboundSchema;
247
+ /** @deprecated use `Verified$outboundSchema` instead. */
248
+ export const outboundSchema = Verified$outboundSchema;
249
+ }
250
+
251
+ /** @internal */
252
+ export const Order$inboundSchema: z.ZodNativeEnum<typeof Order> = z.nativeEnum(
253
+ Order,
254
+ );
255
+
256
+ /** @internal */
257
+ export const Order$outboundSchema: z.ZodNativeEnum<typeof Order> =
258
+ Order$inboundSchema;
259
+
260
+ /**
261
+ * @internal
262
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
263
+ */
264
+ export namespace Order$ {
265
+ /** @deprecated use `Order$inboundSchema` instead. */
266
+ export const inboundSchema = Order$inboundSchema;
267
+ /** @deprecated use `Order$outboundSchema` instead. */
268
+ export const outboundSchema = Order$outboundSchema;
269
+ }
270
+
271
+ /** @internal */
272
+ export const GetProjectDomainsRequest$inboundSchema: z.ZodType<
273
+ GetProjectDomainsRequest,
274
+ z.ZodTypeDef,
275
+ unknown
276
+ > = z.object({
277
+ idOrName: z.string(),
278
+ production: Production$inboundSchema.default("false"),
279
+ target: QueryParamTarget$inboundSchema.optional(),
280
+ gitBranch: z.string().optional(),
281
+ redirects: Redirects$inboundSchema.default("true"),
282
+ redirect: z.string().optional(),
283
+ verified: Verified$inboundSchema.optional(),
284
+ limit: z.number().optional(),
285
+ since: z.number().optional(),
286
+ until: z.number().optional(),
287
+ order: Order$inboundSchema.default("DESC"),
288
+ teamId: z.string().optional(),
289
+ slug: z.string().optional(),
290
+ });
291
+
292
+ /** @internal */
293
+ export type GetProjectDomainsRequest$Outbound = {
294
+ idOrName: string;
295
+ production: string;
296
+ target?: string | undefined;
297
+ gitBranch?: string | undefined;
298
+ redirects: string;
299
+ redirect?: string | undefined;
300
+ verified?: string | undefined;
301
+ limit?: number | undefined;
302
+ since?: number | undefined;
303
+ until?: number | undefined;
304
+ order: string;
305
+ teamId?: string | undefined;
306
+ slug?: string | undefined;
307
+ };
308
+
309
+ /** @internal */
310
+ export const GetProjectDomainsRequest$outboundSchema: z.ZodType<
311
+ GetProjectDomainsRequest$Outbound,
312
+ z.ZodTypeDef,
313
+ GetProjectDomainsRequest
314
+ > = z.object({
315
+ idOrName: z.string(),
316
+ production: Production$outboundSchema.default("false"),
317
+ target: QueryParamTarget$outboundSchema.optional(),
318
+ gitBranch: z.string().optional(),
319
+ redirects: Redirects$outboundSchema.default("true"),
320
+ redirect: z.string().optional(),
321
+ verified: Verified$outboundSchema.optional(),
322
+ limit: z.number().optional(),
323
+ since: z.number().optional(),
324
+ until: z.number().optional(),
325
+ order: Order$outboundSchema.default("DESC"),
326
+ teamId: z.string().optional(),
327
+ slug: z.string().optional(),
328
+ });
329
+
330
+ /**
331
+ * @internal
332
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
333
+ */
334
+ export namespace GetProjectDomainsRequest$ {
335
+ /** @deprecated use `GetProjectDomainsRequest$inboundSchema` instead. */
336
+ export const inboundSchema = GetProjectDomainsRequest$inboundSchema;
337
+ /** @deprecated use `GetProjectDomainsRequest$outboundSchema` instead. */
338
+ export const outboundSchema = GetProjectDomainsRequest$outboundSchema;
339
+ /** @deprecated use `GetProjectDomainsRequest$Outbound` instead. */
340
+ export type Outbound = GetProjectDomainsRequest$Outbound;
341
+ }
342
+
343
+ export function getProjectDomainsRequestToJSON(
344
+ getProjectDomainsRequest: GetProjectDomainsRequest,
345
+ ): string {
346
+ return JSON.stringify(
347
+ GetProjectDomainsRequest$outboundSchema.parse(getProjectDomainsRequest),
348
+ );
349
+ }
350
+
351
+ export function getProjectDomainsRequestFromJSON(
352
+ jsonString: string,
353
+ ): SafeParseResult<GetProjectDomainsRequest, SDKValidationError> {
354
+ return safeParse(
355
+ jsonString,
356
+ (x) => GetProjectDomainsRequest$inboundSchema.parse(JSON.parse(x)),
357
+ `Failed to parse 'GetProjectDomainsRequest' from JSON`,
358
+ );
359
+ }
360
+
361
+ /** @internal */
362
+ export const GetProjectDomainsVerification$inboundSchema: z.ZodType<
363
+ GetProjectDomainsVerification,
364
+ z.ZodTypeDef,
365
+ unknown
366
+ > = z.object({
367
+ type: z.string(),
368
+ domain: z.string(),
369
+ value: z.string(),
370
+ reason: z.string(),
371
+ });
372
+
373
+ /** @internal */
374
+ export type GetProjectDomainsVerification$Outbound = {
375
+ type: string;
376
+ domain: string;
377
+ value: string;
378
+ reason: string;
379
+ };
380
+
381
+ /** @internal */
382
+ export const GetProjectDomainsVerification$outboundSchema: z.ZodType<
383
+ GetProjectDomainsVerification$Outbound,
384
+ z.ZodTypeDef,
385
+ GetProjectDomainsVerification
386
+ > = z.object({
387
+ type: z.string(),
388
+ domain: z.string(),
389
+ value: z.string(),
390
+ reason: z.string(),
391
+ });
392
+
393
+ /**
394
+ * @internal
395
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
396
+ */
397
+ export namespace GetProjectDomainsVerification$ {
398
+ /** @deprecated use `GetProjectDomainsVerification$inboundSchema` instead. */
399
+ export const inboundSchema = GetProjectDomainsVerification$inboundSchema;
400
+ /** @deprecated use `GetProjectDomainsVerification$outboundSchema` instead. */
401
+ export const outboundSchema = GetProjectDomainsVerification$outboundSchema;
402
+ /** @deprecated use `GetProjectDomainsVerification$Outbound` instead. */
403
+ export type Outbound = GetProjectDomainsVerification$Outbound;
404
+ }
405
+
406
+ export function getProjectDomainsVerificationToJSON(
407
+ getProjectDomainsVerification: GetProjectDomainsVerification,
408
+ ): string {
409
+ return JSON.stringify(
410
+ GetProjectDomainsVerification$outboundSchema.parse(
411
+ getProjectDomainsVerification,
412
+ ),
413
+ );
414
+ }
415
+
416
+ export function getProjectDomainsVerificationFromJSON(
417
+ jsonString: string,
418
+ ): SafeParseResult<GetProjectDomainsVerification, SDKValidationError> {
419
+ return safeParse(
420
+ jsonString,
421
+ (x) => GetProjectDomainsVerification$inboundSchema.parse(JSON.parse(x)),
422
+ `Failed to parse 'GetProjectDomainsVerification' from JSON`,
423
+ );
424
+ }
425
+
426
+ /** @internal */
427
+ export const GetProjectDomainsDomains$inboundSchema: z.ZodType<
428
+ GetProjectDomainsDomains,
429
+ z.ZodTypeDef,
430
+ unknown
431
+ > = z.object({
432
+ name: z.string(),
433
+ apexName: z.string(),
434
+ projectId: z.string(),
435
+ redirect: z.nullable(z.string()).optional(),
436
+ redirectStatusCode: z.nullable(z.number()).optional(),
437
+ gitBranch: z.nullable(z.string()).optional(),
438
+ customEnvironmentId: z.nullable(z.string()).optional(),
439
+ updatedAt: z.number().optional(),
440
+ createdAt: z.number().optional(),
441
+ verified: z.boolean(),
442
+ verification: z.array(
443
+ z.lazy(() => GetProjectDomainsVerification$inboundSchema),
444
+ ).optional(),
445
+ });
446
+
447
+ /** @internal */
448
+ export type GetProjectDomainsDomains$Outbound = {
449
+ name: string;
450
+ apexName: string;
451
+ projectId: string;
452
+ redirect?: string | null | undefined;
453
+ redirectStatusCode?: number | null | undefined;
454
+ gitBranch?: string | null | undefined;
455
+ customEnvironmentId?: string | null | undefined;
456
+ updatedAt?: number | undefined;
457
+ createdAt?: number | undefined;
458
+ verified: boolean;
459
+ verification?: Array<GetProjectDomainsVerification$Outbound> | undefined;
460
+ };
461
+
462
+ /** @internal */
463
+ export const GetProjectDomainsDomains$outboundSchema: z.ZodType<
464
+ GetProjectDomainsDomains$Outbound,
465
+ z.ZodTypeDef,
466
+ GetProjectDomainsDomains
467
+ > = z.object({
468
+ name: z.string(),
469
+ apexName: z.string(),
470
+ projectId: z.string(),
471
+ redirect: z.nullable(z.string()).optional(),
472
+ redirectStatusCode: z.nullable(z.number()).optional(),
473
+ gitBranch: z.nullable(z.string()).optional(),
474
+ customEnvironmentId: z.nullable(z.string()).optional(),
475
+ updatedAt: z.number().optional(),
476
+ createdAt: z.number().optional(),
477
+ verified: z.boolean(),
478
+ verification: z.array(
479
+ z.lazy(() => GetProjectDomainsVerification$outboundSchema),
480
+ ).optional(),
481
+ });
482
+
483
+ /**
484
+ * @internal
485
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
486
+ */
487
+ export namespace GetProjectDomainsDomains$ {
488
+ /** @deprecated use `GetProjectDomainsDomains$inboundSchema` instead. */
489
+ export const inboundSchema = GetProjectDomainsDomains$inboundSchema;
490
+ /** @deprecated use `GetProjectDomainsDomains$outboundSchema` instead. */
491
+ export const outboundSchema = GetProjectDomainsDomains$outboundSchema;
492
+ /** @deprecated use `GetProjectDomainsDomains$Outbound` instead. */
493
+ export type Outbound = GetProjectDomainsDomains$Outbound;
494
+ }
495
+
496
+ export function getProjectDomainsDomainsToJSON(
497
+ getProjectDomainsDomains: GetProjectDomainsDomains,
498
+ ): string {
499
+ return JSON.stringify(
500
+ GetProjectDomainsDomains$outboundSchema.parse(getProjectDomainsDomains),
501
+ );
502
+ }
503
+
504
+ export function getProjectDomainsDomainsFromJSON(
505
+ jsonString: string,
506
+ ): SafeParseResult<GetProjectDomainsDomains, SDKValidationError> {
507
+ return safeParse(
508
+ jsonString,
509
+ (x) => GetProjectDomainsDomains$inboundSchema.parse(JSON.parse(x)),
510
+ `Failed to parse 'GetProjectDomainsDomains' from JSON`,
511
+ );
512
+ }
513
+
514
+ /** @internal */
515
+ export const GetProjectDomainsResponseBody$inboundSchema: z.ZodType<
516
+ GetProjectDomainsResponseBody,
517
+ z.ZodTypeDef,
518
+ unknown
519
+ > = z.object({
520
+ domains: z.array(z.lazy(() => GetProjectDomainsDomains$inboundSchema)),
521
+ pagination: Pagination$inboundSchema,
522
+ });
523
+
524
+ /** @internal */
525
+ export type GetProjectDomainsResponseBody$Outbound = {
526
+ domains: Array<GetProjectDomainsDomains$Outbound>;
527
+ pagination: Pagination$Outbound;
528
+ };
529
+
530
+ /** @internal */
531
+ export const GetProjectDomainsResponseBody$outboundSchema: z.ZodType<
532
+ GetProjectDomainsResponseBody$Outbound,
533
+ z.ZodTypeDef,
534
+ GetProjectDomainsResponseBody
535
+ > = z.object({
536
+ domains: z.array(z.lazy(() => GetProjectDomainsDomains$outboundSchema)),
537
+ pagination: Pagination$outboundSchema,
538
+ });
539
+
540
+ /**
541
+ * @internal
542
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
543
+ */
544
+ export namespace GetProjectDomainsResponseBody$ {
545
+ /** @deprecated use `GetProjectDomainsResponseBody$inboundSchema` instead. */
546
+ export const inboundSchema = GetProjectDomainsResponseBody$inboundSchema;
547
+ /** @deprecated use `GetProjectDomainsResponseBody$outboundSchema` instead. */
548
+ export const outboundSchema = GetProjectDomainsResponseBody$outboundSchema;
549
+ /** @deprecated use `GetProjectDomainsResponseBody$Outbound` instead. */
550
+ export type Outbound = GetProjectDomainsResponseBody$Outbound;
551
+ }
552
+
553
+ export function getProjectDomainsResponseBodyToJSON(
554
+ getProjectDomainsResponseBody: GetProjectDomainsResponseBody,
555
+ ): string {
556
+ return JSON.stringify(
557
+ GetProjectDomainsResponseBody$outboundSchema.parse(
558
+ getProjectDomainsResponseBody,
559
+ ),
560
+ );
561
+ }
562
+
563
+ export function getProjectDomainsResponseBodyFromJSON(
564
+ jsonString: string,
565
+ ): SafeParseResult<GetProjectDomainsResponseBody, SDKValidationError> {
566
+ return safeParse(
567
+ jsonString,
568
+ (x) => GetProjectDomainsResponseBody$inboundSchema.parse(JSON.parse(x)),
569
+ `Failed to parse 'GetProjectDomainsResponseBody' from JSON`,
570
+ );
571
+ }
@@ -1058,6 +1058,7 @@ export type GetProjectsPermissions = {
1058
1058
  notificationCustomerBudget?: Array<ACLAction> | undefined;
1059
1059
  notificationStatementOfReasons?: Array<ACLAction> | undefined;
1060
1060
  oauth2Connection?: Array<ACLAction> | undefined;
1061
+ observabilityConfiguration?: Array<ACLAction> | undefined;
1061
1062
  openTelemetryEndpoint?: Array<ACLAction> | undefined;
1062
1063
  paymentMethod?: Array<ACLAction> | undefined;
1063
1064
  permissions?: Array<ACLAction> | undefined;
@@ -1132,6 +1133,7 @@ export type GetProjectsPermissions = {
1132
1133
  passwordProtection?: Array<ACLAction> | undefined;
1133
1134
  optionsAllowlist?: Array<ACLAction> | undefined;
1134
1135
  job?: Array<ACLAction> | undefined;
1136
+ observabilityData?: Array<ACLAction> | undefined;
1135
1137
  project?: Array<ACLAction> | undefined;
1136
1138
  projectFromV0?: Array<ACLAction> | undefined;
1137
1139
  projectAccessGroup?: Array<ACLAction> | undefined;
@@ -6440,6 +6442,7 @@ export const GetProjectsPermissions$inboundSchema: z.ZodType<
6440
6442
  notificationCustomerBudget: z.array(ACLAction$inboundSchema).optional(),
6441
6443
  notificationStatementOfReasons: z.array(ACLAction$inboundSchema).optional(),
6442
6444
  oauth2Connection: z.array(ACLAction$inboundSchema).optional(),
6445
+ observabilityConfiguration: z.array(ACLAction$inboundSchema).optional(),
6443
6446
  openTelemetryEndpoint: z.array(ACLAction$inboundSchema).optional(),
6444
6447
  paymentMethod: z.array(ACLAction$inboundSchema).optional(),
6445
6448
  permissions: z.array(ACLAction$inboundSchema).optional(),
@@ -6515,6 +6518,7 @@ export const GetProjectsPermissions$inboundSchema: z.ZodType<
6515
6518
  passwordProtection: z.array(ACLAction$inboundSchema).optional(),
6516
6519
  optionsAllowlist: z.array(ACLAction$inboundSchema).optional(),
6517
6520
  job: z.array(ACLAction$inboundSchema).optional(),
6521
+ observabilityData: z.array(ACLAction$inboundSchema).optional(),
6518
6522
  project: z.array(ACLAction$inboundSchema).optional(),
6519
6523
  projectFromV0: z.array(ACLAction$inboundSchema).optional(),
6520
6524
  projectAccessGroup: z.array(ACLAction$inboundSchema).optional(),
@@ -6632,6 +6636,7 @@ export type GetProjectsPermissions$Outbound = {
6632
6636
  notificationCustomerBudget?: Array<string> | undefined;
6633
6637
  notificationStatementOfReasons?: Array<string> | undefined;
6634
6638
  oauth2Connection?: Array<string> | undefined;
6639
+ observabilityConfiguration?: Array<string> | undefined;
6635
6640
  openTelemetryEndpoint?: Array<string> | undefined;
6636
6641
  paymentMethod?: Array<string> | undefined;
6637
6642
  permissions?: Array<string> | undefined;
@@ -6706,6 +6711,7 @@ export type GetProjectsPermissions$Outbound = {
6706
6711
  passwordProtection?: Array<string> | undefined;
6707
6712
  optionsAllowlist?: Array<string> | undefined;
6708
6713
  job?: Array<string> | undefined;
6714
+ observabilityData?: Array<string> | undefined;
6709
6715
  project?: Array<string> | undefined;
6710
6716
  projectFromV0?: Array<string> | undefined;
6711
6717
  projectAccessGroup?: Array<string> | undefined;
@@ -6824,6 +6830,7 @@ export const GetProjectsPermissions$outboundSchema: z.ZodType<
6824
6830
  notificationCustomerBudget: z.array(ACLAction$outboundSchema).optional(),
6825
6831
  notificationStatementOfReasons: z.array(ACLAction$outboundSchema).optional(),
6826
6832
  oauth2Connection: z.array(ACLAction$outboundSchema).optional(),
6833
+ observabilityConfiguration: z.array(ACLAction$outboundSchema).optional(),
6827
6834
  openTelemetryEndpoint: z.array(ACLAction$outboundSchema).optional(),
6828
6835
  paymentMethod: z.array(ACLAction$outboundSchema).optional(),
6829
6836
  permissions: z.array(ACLAction$outboundSchema).optional(),
@@ -6899,6 +6906,7 @@ export const GetProjectsPermissions$outboundSchema: z.ZodType<
6899
6906
  passwordProtection: z.array(ACLAction$outboundSchema).optional(),
6900
6907
  optionsAllowlist: z.array(ACLAction$outboundSchema).optional(),
6901
6908
  job: z.array(ACLAction$outboundSchema).optional(),
6909
+ observabilityData: z.array(ACLAction$outboundSchema).optional(),
6902
6910
  project: z.array(ACLAction$outboundSchema).optional(),
6903
6911
  projectFromV0: z.array(ACLAction$outboundSchema).optional(),
6904
6912
  projectAccessGroup: z.array(ACLAction$outboundSchema).optional(),