@vercel/sdk 1.17.1 → 1.17.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 (143) hide show
  1. package/bin/mcp-server.js +1278 -1490
  2. package/bin/mcp-server.js.map +27 -27
  3. package/esm/__tests__/accessgroups.test.js +1 -3
  4. package/esm/__tests__/accessgroups.test.js.map +1 -1
  5. package/esm/__tests__/checks.test.js +1 -1
  6. package/esm/__tests__/checks.test.js.map +1 -1
  7. package/esm/__tests__/domains.test.js +2 -4
  8. package/esm/__tests__/domains.test.js.map +1 -1
  9. package/esm/__tests__/edgeconfig.test.js +6 -6
  10. package/esm/__tests__/edgeconfig.test.js.map +1 -1
  11. package/esm/__tests__/environment.test.js +15 -1
  12. package/esm/__tests__/environment.test.js.map +1 -1
  13. package/esm/__tests__/integrations.test.js +1 -1
  14. package/esm/__tests__/logdrains.test.js +3 -1
  15. package/esm/__tests__/logdrains.test.js.map +1 -1
  16. package/esm/__tests__/rollingrelease.test.js +6 -2
  17. package/esm/__tests__/rollingrelease.test.js.map +1 -1
  18. package/esm/lib/config.d.ts +3 -3
  19. package/esm/lib/config.js +3 -3
  20. package/esm/mcp-server/mcp-server.js +1 -1
  21. package/esm/mcp-server/server.js +1 -1
  22. package/esm/models/canceldeploymentop.d.ts +2 -0
  23. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  24. package/esm/models/canceldeploymentop.js +2 -0
  25. package/esm/models/canceldeploymentop.js.map +1 -1
  26. package/esm/models/createdeploymentop.d.ts +2 -0
  27. package/esm/models/createdeploymentop.d.ts.map +1 -1
  28. package/esm/models/createdeploymentop.js +2 -0
  29. package/esm/models/createdeploymentop.js.map +1 -1
  30. package/esm/models/createdrainop.d.ts +48 -108
  31. package/esm/models/createdrainop.d.ts.map +1 -1
  32. package/esm/models/createdrainop.js +58 -105
  33. package/esm/models/createdrainop.js.map +1 -1
  34. package/esm/models/createintegrationstoredirectop.d.ts +156 -152
  35. package/esm/models/createintegrationstoredirectop.d.ts.map +1 -1
  36. package/esm/models/createintegrationstoredirectop.js +222 -218
  37. package/esm/models/createintegrationstoredirectop.js.map +1 -1
  38. package/esm/models/createprojectop.d.ts +2 -0
  39. package/esm/models/createprojectop.d.ts.map +1 -1
  40. package/esm/models/createprojectop.js +2 -0
  41. package/esm/models/createprojectop.js.map +1 -1
  42. package/esm/models/createwebhookop.d.ts +2 -0
  43. package/esm/models/createwebhookop.d.ts.map +1 -1
  44. package/esm/models/createwebhookop.js +2 -0
  45. package/esm/models/createwebhookop.js.map +1 -1
  46. package/esm/models/getalllogdrainsop.d.ts +53 -107
  47. package/esm/models/getalllogdrainsop.d.ts.map +1 -1
  48. package/esm/models/getalllogdrainsop.js +65 -108
  49. package/esm/models/getalllogdrainsop.js.map +1 -1
  50. package/esm/models/getconfigurablelogdrainop.d.ts +6 -0
  51. package/esm/models/getconfigurablelogdrainop.d.ts.map +1 -1
  52. package/esm/models/getconfigurablelogdrainop.js +6 -0
  53. package/esm/models/getconfigurablelogdrainop.js.map +1 -1
  54. package/esm/models/getconfigurationproductsop.d.ts +200 -200
  55. package/esm/models/getconfigurationproductsop.js +290 -290
  56. package/esm/models/getdeploymentop.d.ts +4 -0
  57. package/esm/models/getdeploymentop.d.ts.map +1 -1
  58. package/esm/models/getdeploymentop.js +4 -0
  59. package/esm/models/getdeploymentop.js.map +1 -1
  60. package/esm/models/getdeploymentsop.d.ts +2 -0
  61. package/esm/models/getdeploymentsop.d.ts.map +1 -1
  62. package/esm/models/getdeploymentsop.js +2 -0
  63. package/esm/models/getdeploymentsop.js.map +1 -1
  64. package/esm/models/getdrainop.d.ts +48 -108
  65. package/esm/models/getdrainop.d.ts.map +1 -1
  66. package/esm/models/getdrainop.js +58 -104
  67. package/esm/models/getdrainop.js.map +1 -1
  68. package/esm/models/getdrainsop.d.ts +48 -108
  69. package/esm/models/getdrainsop.d.ts.map +1 -1
  70. package/esm/models/getdrainsop.js +58 -104
  71. package/esm/models/getdrainsop.js.map +1 -1
  72. package/esm/models/getprojectsop.d.ts +2 -0
  73. package/esm/models/getprojectsop.d.ts.map +1 -1
  74. package/esm/models/getprojectsop.js +2 -0
  75. package/esm/models/getprojectsop.js.map +1 -1
  76. package/esm/models/getwebhookop.d.ts +1 -0
  77. package/esm/models/getwebhookop.d.ts.map +1 -1
  78. package/esm/models/getwebhookop.js +1 -0
  79. package/esm/models/getwebhookop.js.map +1 -1
  80. package/esm/models/getwebhooksop.d.ts +2 -0
  81. package/esm/models/getwebhooksop.d.ts.map +1 -1
  82. package/esm/models/getwebhooksop.js +2 -0
  83. package/esm/models/getwebhooksop.js.map +1 -1
  84. package/esm/models/moveprojectdomainop.d.ts +33 -0
  85. package/esm/models/moveprojectdomainop.d.ts.map +1 -1
  86. package/esm/models/moveprojectdomainop.js +19 -0
  87. package/esm/models/moveprojectdomainop.js.map +1 -1
  88. package/esm/models/updatedrainop.d.ts +48 -108
  89. package/esm/models/updatedrainop.d.ts.map +1 -1
  90. package/esm/models/updatedrainop.js +58 -108
  91. package/esm/models/updatedrainop.js.map +1 -1
  92. package/esm/models/updateprojectdatacacheop.d.ts +2 -0
  93. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  94. package/esm/models/updateprojectdatacacheop.js +2 -0
  95. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  96. package/esm/models/updateprojectop.d.ts +2 -0
  97. package/esm/models/updateprojectop.d.ts.map +1 -1
  98. package/esm/models/updateprojectop.js +2 -0
  99. package/esm/models/updateprojectop.js.map +1 -1
  100. package/esm/models/updatesharedenvvariableop.d.ts +5 -2
  101. package/esm/models/updatesharedenvvariableop.d.ts.map +1 -1
  102. package/esm/models/updatesharedenvvariableop.js.map +1 -1
  103. package/esm/models/userevent.d.ts +970 -928
  104. package/esm/models/userevent.d.ts.map +1 -1
  105. package/esm/models/userevent.js +1281 -1235
  106. package/esm/models/userevent.js.map +1 -1
  107. package/examples/package-lock.json +2 -10
  108. package/jsr.json +1 -1
  109. package/package.json +3 -6
  110. package/src/__tests__/accessgroups.test.ts +1 -3
  111. package/src/__tests__/checks.test.ts +1 -1
  112. package/src/__tests__/domains.test.ts +2 -4
  113. package/src/__tests__/edgeconfig.test.ts +6 -6
  114. package/src/__tests__/environment.test.ts +15 -1
  115. package/src/__tests__/integrations.test.ts +1 -1
  116. package/src/__tests__/logdrains.test.ts +3 -1
  117. package/src/__tests__/rollingrelease.test.ts +6 -2
  118. package/src/lib/config.ts +3 -3
  119. package/src/mcp-server/mcp-server.ts +1 -1
  120. package/src/mcp-server/server.ts +1 -1
  121. package/src/models/canceldeploymentop.ts +4 -0
  122. package/src/models/createdeploymentop.ts +4 -0
  123. package/src/models/createdrainop.ts +132 -177
  124. package/src/models/createintegrationstoredirectop.ts +479 -471
  125. package/src/models/createprojectop.ts +4 -0
  126. package/src/models/createwebhookop.ts +2 -0
  127. package/src/models/getalllogdrainsop.ts +168 -168
  128. package/src/models/getconfigurablelogdrainop.ts +12 -0
  129. package/src/models/getconfigurationproductsop.ts +627 -627
  130. package/src/models/getdeploymentop.ts +8 -0
  131. package/src/models/getdeploymentsop.ts +4 -0
  132. package/src/models/getdrainop.ts +148 -168
  133. package/src/models/getdrainsop.ts +150 -158
  134. package/src/models/getprojectsop.ts +4 -0
  135. package/src/models/getwebhookop.ts +1 -0
  136. package/src/models/getwebhooksop.ts +2 -0
  137. package/src/models/moveprojectdomainop.ts +51 -0
  138. package/src/models/updatedrainop.ts +153 -174
  139. package/src/models/updateprojectdatacacheop.ts +4 -0
  140. package/src/models/updateprojectop.ts +4 -0
  141. package/src/models/updatesharedenvvariableop.ts +5 -2
  142. package/src/models/userevent.ts +2956 -2828
  143. package/vercel-spec.json +647 -841
@@ -22,14 +22,6 @@ export type GetDrainsRequest = {
22
22
  slug?: string | undefined;
23
23
  };
24
24
 
25
- export const GetDrainsDrainsCreatedFrom = {
26
- SelfServed: "self-served",
27
- Integration: "integration",
28
- } as const;
29
- export type GetDrainsDrainsCreatedFrom = ClosedEnum<
30
- typeof GetDrainsDrainsCreatedFrom
31
- >;
32
-
33
25
  export type GetDrainsDrainsLog = {};
34
26
 
35
27
  export type GetDrainsDrainsTrace = {};
@@ -335,80 +327,38 @@ export type GetDrainsDrainsFilterV2 =
335
327
  | GetDrainsFilterV2Drains2
336
328
  | GetDrainsFilterV2Drains1;
337
329
 
338
- export const DrainsFramework = {
339
- Blitzjs: "blitzjs",
340
- Nextjs: "nextjs",
341
- Gatsby: "gatsby",
342
- Remix: "remix",
343
- ReactRouter: "react-router",
344
- Astro: "astro",
345
- Hexo: "hexo",
346
- Eleventy: "eleventy",
347
- Docusaurus2: "docusaurus-2",
348
- Docusaurus: "docusaurus",
349
- Preact: "preact",
350
- Solidstart1: "solidstart-1",
351
- Solidstart: "solidstart",
352
- Dojo: "dojo",
353
- Ember: "ember",
354
- Vue: "vue",
355
- Scully: "scully",
356
- IonicAngular: "ionic-angular",
357
- Angular: "angular",
358
- Polymer: "polymer",
359
- Svelte: "svelte",
360
- Sveltekit: "sveltekit",
361
- Sveltekit1: "sveltekit-1",
362
- IonicReact: "ionic-react",
363
- CreateReactApp: "create-react-app",
364
- Gridsome: "gridsome",
365
- Umijs: "umijs",
366
- Sapper: "sapper",
367
- Saber: "saber",
368
- Stencil: "stencil",
369
- Nuxtjs: "nuxtjs",
370
- Redwoodjs: "redwoodjs",
371
- Hugo: "hugo",
372
- Jekyll: "jekyll",
373
- Brunch: "brunch",
374
- Middleman: "middleman",
375
- Zola: "zola",
376
- Hydrogen: "hydrogen",
377
- Vite: "vite",
378
- TanstackStart: "tanstack-start",
379
- Vitepress: "vitepress",
380
- Vuepress: "vuepress",
381
- Parcel: "parcel",
382
- Fastapi: "fastapi",
383
- Flask: "flask",
384
- Fasthtml: "fasthtml",
385
- SanityV3: "sanity-v3",
386
- Sanity: "sanity",
387
- Storybook: "storybook",
388
- Nitro: "nitro",
389
- Hono: "hono",
390
- Express: "express",
391
- H3: "h3",
392
- Nestjs: "nestjs",
393
- Elysia: "elysia",
394
- Fastify: "fastify",
395
- Xmcp: "xmcp",
330
+ export const GetDrainsProjectAccessDrainsAccess = {
331
+ Some: "some",
396
332
  } as const;
397
- export type DrainsFramework = ClosedEnum<typeof DrainsFramework>;
333
+ export type GetDrainsProjectAccessDrainsAccess = ClosedEnum<
334
+ typeof GetDrainsProjectAccessDrainsAccess
335
+ >;
398
336
 
399
- export type DrainsProjectsMetadata = {
400
- id: string;
401
- name: string;
402
- framework?: DrainsFramework | null | undefined;
403
- latestDeployment?: string | undefined;
337
+ export type GetDrainsProjectAccess2 = {
338
+ access: GetDrainsProjectAccessDrainsAccess;
339
+ projectIds: Array<string>;
404
340
  };
405
341
 
342
+ export const GetDrainsProjectAccessAccess = {
343
+ All: "all",
344
+ } as const;
345
+ export type GetDrainsProjectAccessAccess = ClosedEnum<
346
+ typeof GetDrainsProjectAccessAccess
347
+ >;
348
+
349
+ export type GetDrainsProjectAccess1 = {
350
+ access: GetDrainsProjectAccessAccess;
351
+ };
352
+
353
+ export type DrainsProjectAccess =
354
+ | GetDrainsProjectAccess2
355
+ | GetDrainsProjectAccess1;
356
+
406
357
  export type Drains2 = {
407
358
  id: string;
408
359
  ownerId: string;
409
360
  name: string;
410
361
  createdAt: number;
411
- createdFrom?: GetDrainsDrainsCreatedFrom | undefined;
412
362
  updatedAt: number;
413
363
  projectIds?: Array<string> | undefined;
414
364
  schemas?: GetDrainsDrainsSchemas | undefined;
@@ -425,23 +375,15 @@ export type Drains2 = {
425
375
  disabledReason?: GetDrainsDrainsDisabledReason | undefined;
426
376
  disabledBy?: string | undefined;
427
377
  firstErrorTimestamp?: number | undefined;
428
- configurationId?: string | undefined;
429
- clientId?: string | undefined;
430
378
  source: GetDrainsSourceDrains2 | GetDrainsSourceDrains1;
431
379
  filter?: string | undefined;
432
380
  filterV2?: GetDrainsFilterV2Drains2 | GetDrainsFilterV2Drains1 | undefined;
433
381
  integrationIcon?: string | undefined;
434
382
  integrationConfigurationUri?: string | undefined;
435
383
  integrationWebsite?: string | undefined;
436
- projectsMetadata?: Array<DrainsProjectsMetadata> | undefined;
384
+ projectAccess?: GetDrainsProjectAccess2 | GetDrainsProjectAccess1 | undefined;
437
385
  };
438
386
 
439
- export const DrainsCreatedFrom = {
440
- SelfServed: "self-served",
441
- Integration: "integration",
442
- } as const;
443
- export type DrainsCreatedFrom = ClosedEnum<typeof DrainsCreatedFrom>;
444
-
445
387
  export type DrainsLog = {};
446
388
 
447
389
  export type DrainsTrace = {};
@@ -723,7 +665,6 @@ export type Drains1 = {
723
665
  ownerId: string;
724
666
  name: string;
725
667
  createdAt: number;
726
- createdFrom?: DrainsCreatedFrom | undefined;
727
668
  updatedAt: number;
728
669
  projectIds?: Array<string> | undefined;
729
670
  schemas?: DrainsSchemas | undefined;
@@ -740,8 +681,6 @@ export type Drains1 = {
740
681
  disabledReason?: DrainsDisabledReason | undefined;
741
682
  disabledBy?: string | undefined;
742
683
  firstErrorTimestamp?: number | undefined;
743
- configurationId?: string | undefined;
744
- clientId?: string | undefined;
745
684
  source: GetDrainsSource2 | GetDrainsSource1;
746
685
  filter?: string | undefined;
747
686
  filterV2?: GetDrainsFilterV22 | GetDrainsFilterV21 | undefined;
@@ -801,15 +740,6 @@ export function getDrainsRequestFromJSON(
801
740
  );
802
741
  }
803
742
 
804
- /** @internal */
805
- export const GetDrainsDrainsCreatedFrom$inboundSchema: z.ZodNativeEnum<
806
- typeof GetDrainsDrainsCreatedFrom
807
- > = z.nativeEnum(GetDrainsDrainsCreatedFrom);
808
- /** @internal */
809
- export const GetDrainsDrainsCreatedFrom$outboundSchema: z.ZodNativeEnum<
810
- typeof GetDrainsDrainsCreatedFrom
811
- > = GetDrainsDrainsCreatedFrom$inboundSchema;
812
-
813
743
  /** @internal */
814
744
  export const GetDrainsDrainsLog$inboundSchema: z.ZodType<
815
745
  GetDrainsDrainsLog,
@@ -2272,59 +2202,142 @@ export function getDrainsDrainsFilterV2FromJSON(
2272
2202
  }
2273
2203
 
2274
2204
  /** @internal */
2275
- export const DrainsFramework$inboundSchema: z.ZodNativeEnum<
2276
- typeof DrainsFramework
2277
- > = z.nativeEnum(DrainsFramework);
2205
+ export const GetDrainsProjectAccessDrainsAccess$inboundSchema: z.ZodNativeEnum<
2206
+ typeof GetDrainsProjectAccessDrainsAccess
2207
+ > = z.nativeEnum(GetDrainsProjectAccessDrainsAccess);
2278
2208
  /** @internal */
2279
- export const DrainsFramework$outboundSchema: z.ZodNativeEnum<
2280
- typeof DrainsFramework
2281
- > = DrainsFramework$inboundSchema;
2209
+ export const GetDrainsProjectAccessDrainsAccess$outboundSchema: z.ZodNativeEnum<
2210
+ typeof GetDrainsProjectAccessDrainsAccess
2211
+ > = GetDrainsProjectAccessDrainsAccess$inboundSchema;
2282
2212
 
2283
2213
  /** @internal */
2284
- export const DrainsProjectsMetadata$inboundSchema: z.ZodType<
2285
- DrainsProjectsMetadata,
2214
+ export const GetDrainsProjectAccess2$inboundSchema: z.ZodType<
2215
+ GetDrainsProjectAccess2,
2286
2216
  z.ZodTypeDef,
2287
2217
  unknown
2288
2218
  > = z.object({
2289
- id: z.string(),
2290
- name: z.string(),
2291
- framework: z.nullable(DrainsFramework$inboundSchema).optional(),
2292
- latestDeployment: z.string().optional(),
2219
+ access: GetDrainsProjectAccessDrainsAccess$inboundSchema,
2220
+ projectIds: z.array(z.string()),
2293
2221
  });
2294
2222
  /** @internal */
2295
- export type DrainsProjectsMetadata$Outbound = {
2296
- id: string;
2297
- name: string;
2298
- framework?: string | null | undefined;
2299
- latestDeployment?: string | undefined;
2223
+ export type GetDrainsProjectAccess2$Outbound = {
2224
+ access: string;
2225
+ projectIds: Array<string>;
2300
2226
  };
2301
2227
 
2302
2228
  /** @internal */
2303
- export const DrainsProjectsMetadata$outboundSchema: z.ZodType<
2304
- DrainsProjectsMetadata$Outbound,
2229
+ export const GetDrainsProjectAccess2$outboundSchema: z.ZodType<
2230
+ GetDrainsProjectAccess2$Outbound,
2305
2231
  z.ZodTypeDef,
2306
- DrainsProjectsMetadata
2232
+ GetDrainsProjectAccess2
2307
2233
  > = z.object({
2308
- id: z.string(),
2309
- name: z.string(),
2310
- framework: z.nullable(DrainsFramework$outboundSchema).optional(),
2311
- latestDeployment: z.string().optional(),
2234
+ access: GetDrainsProjectAccessDrainsAccess$outboundSchema,
2235
+ projectIds: z.array(z.string()),
2236
+ });
2237
+
2238
+ export function getDrainsProjectAccess2ToJSON(
2239
+ getDrainsProjectAccess2: GetDrainsProjectAccess2,
2240
+ ): string {
2241
+ return JSON.stringify(
2242
+ GetDrainsProjectAccess2$outboundSchema.parse(getDrainsProjectAccess2),
2243
+ );
2244
+ }
2245
+ export function getDrainsProjectAccess2FromJSON(
2246
+ jsonString: string,
2247
+ ): SafeParseResult<GetDrainsProjectAccess2, SDKValidationError> {
2248
+ return safeParse(
2249
+ jsonString,
2250
+ (x) => GetDrainsProjectAccess2$inboundSchema.parse(JSON.parse(x)),
2251
+ `Failed to parse 'GetDrainsProjectAccess2' from JSON`,
2252
+ );
2253
+ }
2254
+
2255
+ /** @internal */
2256
+ export const GetDrainsProjectAccessAccess$inboundSchema: z.ZodNativeEnum<
2257
+ typeof GetDrainsProjectAccessAccess
2258
+ > = z.nativeEnum(GetDrainsProjectAccessAccess);
2259
+ /** @internal */
2260
+ export const GetDrainsProjectAccessAccess$outboundSchema: z.ZodNativeEnum<
2261
+ typeof GetDrainsProjectAccessAccess
2262
+ > = GetDrainsProjectAccessAccess$inboundSchema;
2263
+
2264
+ /** @internal */
2265
+ export const GetDrainsProjectAccess1$inboundSchema: z.ZodType<
2266
+ GetDrainsProjectAccess1,
2267
+ z.ZodTypeDef,
2268
+ unknown
2269
+ > = z.object({
2270
+ access: GetDrainsProjectAccessAccess$inboundSchema,
2312
2271
  });
2272
+ /** @internal */
2273
+ export type GetDrainsProjectAccess1$Outbound = {
2274
+ access: string;
2275
+ };
2313
2276
 
2314
- export function drainsProjectsMetadataToJSON(
2315
- drainsProjectsMetadata: DrainsProjectsMetadata,
2277
+ /** @internal */
2278
+ export const GetDrainsProjectAccess1$outboundSchema: z.ZodType<
2279
+ GetDrainsProjectAccess1$Outbound,
2280
+ z.ZodTypeDef,
2281
+ GetDrainsProjectAccess1
2282
+ > = z.object({
2283
+ access: GetDrainsProjectAccessAccess$outboundSchema,
2284
+ });
2285
+
2286
+ export function getDrainsProjectAccess1ToJSON(
2287
+ getDrainsProjectAccess1: GetDrainsProjectAccess1,
2316
2288
  ): string {
2317
2289
  return JSON.stringify(
2318
- DrainsProjectsMetadata$outboundSchema.parse(drainsProjectsMetadata),
2290
+ GetDrainsProjectAccess1$outboundSchema.parse(getDrainsProjectAccess1),
2319
2291
  );
2320
2292
  }
2321
- export function drainsProjectsMetadataFromJSON(
2293
+ export function getDrainsProjectAccess1FromJSON(
2322
2294
  jsonString: string,
2323
- ): SafeParseResult<DrainsProjectsMetadata, SDKValidationError> {
2295
+ ): SafeParseResult<GetDrainsProjectAccess1, SDKValidationError> {
2324
2296
  return safeParse(
2325
2297
  jsonString,
2326
- (x) => DrainsProjectsMetadata$inboundSchema.parse(JSON.parse(x)),
2327
- `Failed to parse 'DrainsProjectsMetadata' from JSON`,
2298
+ (x) => GetDrainsProjectAccess1$inboundSchema.parse(JSON.parse(x)),
2299
+ `Failed to parse 'GetDrainsProjectAccess1' from JSON`,
2300
+ );
2301
+ }
2302
+
2303
+ /** @internal */
2304
+ export const DrainsProjectAccess$inboundSchema: z.ZodType<
2305
+ DrainsProjectAccess,
2306
+ z.ZodTypeDef,
2307
+ unknown
2308
+ > = z.union([
2309
+ z.lazy(() => GetDrainsProjectAccess2$inboundSchema),
2310
+ z.lazy(() => GetDrainsProjectAccess1$inboundSchema),
2311
+ ]);
2312
+ /** @internal */
2313
+ export type DrainsProjectAccess$Outbound =
2314
+ | GetDrainsProjectAccess2$Outbound
2315
+ | GetDrainsProjectAccess1$Outbound;
2316
+
2317
+ /** @internal */
2318
+ export const DrainsProjectAccess$outboundSchema: z.ZodType<
2319
+ DrainsProjectAccess$Outbound,
2320
+ z.ZodTypeDef,
2321
+ DrainsProjectAccess
2322
+ > = z.union([
2323
+ z.lazy(() => GetDrainsProjectAccess2$outboundSchema),
2324
+ z.lazy(() => GetDrainsProjectAccess1$outboundSchema),
2325
+ ]);
2326
+
2327
+ export function drainsProjectAccessToJSON(
2328
+ drainsProjectAccess: DrainsProjectAccess,
2329
+ ): string {
2330
+ return JSON.stringify(
2331
+ DrainsProjectAccess$outboundSchema.parse(drainsProjectAccess),
2332
+ );
2333
+ }
2334
+ export function drainsProjectAccessFromJSON(
2335
+ jsonString: string,
2336
+ ): SafeParseResult<DrainsProjectAccess, SDKValidationError> {
2337
+ return safeParse(
2338
+ jsonString,
2339
+ (x) => DrainsProjectAccess$inboundSchema.parse(JSON.parse(x)),
2340
+ `Failed to parse 'DrainsProjectAccess' from JSON`,
2328
2341
  );
2329
2342
  }
2330
2343
 
@@ -2335,7 +2348,6 @@ export const Drains2$inboundSchema: z.ZodType<Drains2, z.ZodTypeDef, unknown> =
2335
2348
  ownerId: z.string(),
2336
2349
  name: z.string(),
2337
2350
  createdAt: z.number(),
2338
- createdFrom: GetDrainsDrainsCreatedFrom$inboundSchema.optional(),
2339
2351
  updatedAt: z.number(),
2340
2352
  projectIds: z.array(z.string()).optional(),
2341
2353
  schemas: z.lazy(() => GetDrainsDrainsSchemas$inboundSchema).optional(),
@@ -2353,8 +2365,6 @@ export const Drains2$inboundSchema: z.ZodType<Drains2, z.ZodTypeDef, unknown> =
2353
2365
  disabledReason: GetDrainsDrainsDisabledReason$inboundSchema.optional(),
2354
2366
  disabledBy: z.string().optional(),
2355
2367
  firstErrorTimestamp: z.number().optional(),
2356
- configurationId: z.string().optional(),
2357
- clientId: z.string().optional(),
2358
2368
  source: z.union([
2359
2369
  z.lazy(() => GetDrainsSourceDrains2$inboundSchema),
2360
2370
  z.lazy(() => GetDrainsSourceDrains1$inboundSchema),
@@ -2367,9 +2377,10 @@ export const Drains2$inboundSchema: z.ZodType<Drains2, z.ZodTypeDef, unknown> =
2367
2377
  integrationIcon: z.string().optional(),
2368
2378
  integrationConfigurationUri: z.string().optional(),
2369
2379
  integrationWebsite: z.string().optional(),
2370
- projectsMetadata: z.array(
2371
- z.lazy(() => DrainsProjectsMetadata$inboundSchema),
2372
- ).optional(),
2380
+ projectAccess: z.union([
2381
+ z.lazy(() => GetDrainsProjectAccess2$inboundSchema),
2382
+ z.lazy(() => GetDrainsProjectAccess1$inboundSchema),
2383
+ ]).optional(),
2373
2384
  });
2374
2385
  /** @internal */
2375
2386
  export type Drains2$Outbound = {
@@ -2377,7 +2388,6 @@ export type Drains2$Outbound = {
2377
2388
  ownerId: string;
2378
2389
  name: string;
2379
2390
  createdAt: number;
2380
- createdFrom?: string | undefined;
2381
2391
  updatedAt: number;
2382
2392
  projectIds?: Array<string> | undefined;
2383
2393
  schemas?: GetDrainsDrainsSchemas$Outbound | undefined;
@@ -2394,8 +2404,6 @@ export type Drains2$Outbound = {
2394
2404
  disabledReason?: string | undefined;
2395
2405
  disabledBy?: string | undefined;
2396
2406
  firstErrorTimestamp?: number | undefined;
2397
- configurationId?: string | undefined;
2398
- clientId?: string | undefined;
2399
2407
  source: GetDrainsSourceDrains2$Outbound | GetDrainsSourceDrains1$Outbound;
2400
2408
  filter?: string | undefined;
2401
2409
  filterV2?:
@@ -2405,7 +2413,10 @@ export type Drains2$Outbound = {
2405
2413
  integrationIcon?: string | undefined;
2406
2414
  integrationConfigurationUri?: string | undefined;
2407
2415
  integrationWebsite?: string | undefined;
2408
- projectsMetadata?: Array<DrainsProjectsMetadata$Outbound> | undefined;
2416
+ projectAccess?:
2417
+ | GetDrainsProjectAccess2$Outbound
2418
+ | GetDrainsProjectAccess1$Outbound
2419
+ | undefined;
2409
2420
  };
2410
2421
 
2411
2422
  /** @internal */
@@ -2418,7 +2429,6 @@ export const Drains2$outboundSchema: z.ZodType<
2418
2429
  ownerId: z.string(),
2419
2430
  name: z.string(),
2420
2431
  createdAt: z.number(),
2421
- createdFrom: GetDrainsDrainsCreatedFrom$outboundSchema.optional(),
2422
2432
  updatedAt: z.number(),
2423
2433
  projectIds: z.array(z.string()).optional(),
2424
2434
  schemas: z.lazy(() => GetDrainsDrainsSchemas$outboundSchema).optional(),
@@ -2436,8 +2446,6 @@ export const Drains2$outboundSchema: z.ZodType<
2436
2446
  disabledReason: GetDrainsDrainsDisabledReason$outboundSchema.optional(),
2437
2447
  disabledBy: z.string().optional(),
2438
2448
  firstErrorTimestamp: z.number().optional(),
2439
- configurationId: z.string().optional(),
2440
- clientId: z.string().optional(),
2441
2449
  source: z.union([
2442
2450
  z.lazy(() => GetDrainsSourceDrains2$outboundSchema),
2443
2451
  z.lazy(() => GetDrainsSourceDrains1$outboundSchema),
@@ -2450,8 +2458,10 @@ export const Drains2$outboundSchema: z.ZodType<
2450
2458
  integrationIcon: z.string().optional(),
2451
2459
  integrationConfigurationUri: z.string().optional(),
2452
2460
  integrationWebsite: z.string().optional(),
2453
- projectsMetadata: z.array(z.lazy(() => DrainsProjectsMetadata$outboundSchema))
2454
- .optional(),
2461
+ projectAccess: z.union([
2462
+ z.lazy(() => GetDrainsProjectAccess2$outboundSchema),
2463
+ z.lazy(() => GetDrainsProjectAccess1$outboundSchema),
2464
+ ]).optional(),
2455
2465
  });
2456
2466
 
2457
2467
  export function drains2ToJSON(drains2: Drains2): string {
@@ -2467,15 +2477,6 @@ export function drains2FromJSON(
2467
2477
  );
2468
2478
  }
2469
2479
 
2470
- /** @internal */
2471
- export const DrainsCreatedFrom$inboundSchema: z.ZodNativeEnum<
2472
- typeof DrainsCreatedFrom
2473
- > = z.nativeEnum(DrainsCreatedFrom);
2474
- /** @internal */
2475
- export const DrainsCreatedFrom$outboundSchema: z.ZodNativeEnum<
2476
- typeof DrainsCreatedFrom
2477
- > = DrainsCreatedFrom$inboundSchema;
2478
-
2479
2480
  /** @internal */
2480
2481
  export const DrainsLog$inboundSchema: z.ZodType<
2481
2482
  DrainsLog,
@@ -3836,7 +3837,6 @@ export const Drains1$inboundSchema: z.ZodType<Drains1, z.ZodTypeDef, unknown> =
3836
3837
  ownerId: z.string(),
3837
3838
  name: z.string(),
3838
3839
  createdAt: z.number(),
3839
- createdFrom: DrainsCreatedFrom$inboundSchema.optional(),
3840
3840
  updatedAt: z.number(),
3841
3841
  projectIds: z.array(z.string()).optional(),
3842
3842
  schemas: z.lazy(() => DrainsSchemas$inboundSchema).optional(),
@@ -3853,8 +3853,6 @@ export const Drains1$inboundSchema: z.ZodType<Drains1, z.ZodTypeDef, unknown> =
3853
3853
  disabledReason: DrainsDisabledReason$inboundSchema.optional(),
3854
3854
  disabledBy: z.string().optional(),
3855
3855
  firstErrorTimestamp: z.number().optional(),
3856
- configurationId: z.string().optional(),
3857
- clientId: z.string().optional(),
3858
3856
  source: z.union([
3859
3857
  z.lazy(() => GetDrainsSource2$inboundSchema),
3860
3858
  z.lazy(() => GetDrainsSource1$inboundSchema),
@@ -3871,7 +3869,6 @@ export type Drains1$Outbound = {
3871
3869
  ownerId: string;
3872
3870
  name: string;
3873
3871
  createdAt: number;
3874
- createdFrom?: string | undefined;
3875
3872
  updatedAt: number;
3876
3873
  projectIds?: Array<string> | undefined;
3877
3874
  schemas?: DrainsSchemas$Outbound | undefined;
@@ -3888,8 +3885,6 @@ export type Drains1$Outbound = {
3888
3885
  disabledReason?: string | undefined;
3889
3886
  disabledBy?: string | undefined;
3890
3887
  firstErrorTimestamp?: number | undefined;
3891
- configurationId?: string | undefined;
3892
- clientId?: string | undefined;
3893
3888
  source: GetDrainsSource2$Outbound | GetDrainsSource1$Outbound;
3894
3889
  filter?: string | undefined;
3895
3890
  filterV2?:
@@ -3908,7 +3903,6 @@ export const Drains1$outboundSchema: z.ZodType<
3908
3903
  ownerId: z.string(),
3909
3904
  name: z.string(),
3910
3905
  createdAt: z.number(),
3911
- createdFrom: DrainsCreatedFrom$outboundSchema.optional(),
3912
3906
  updatedAt: z.number(),
3913
3907
  projectIds: z.array(z.string()).optional(),
3914
3908
  schemas: z.lazy(() => DrainsSchemas$outboundSchema).optional(),
@@ -3925,8 +3919,6 @@ export const Drains1$outboundSchema: z.ZodType<
3925
3919
  disabledReason: DrainsDisabledReason$outboundSchema.optional(),
3926
3920
  disabledBy: z.string().optional(),
3927
3921
  firstErrorTimestamp: z.number().optional(),
3928
- configurationId: z.string().optional(),
3929
- clientId: z.string().optional(),
3930
3922
  source: z.union([
3931
3923
  z.lazy(() => GetDrainsSource2$outboundSchema),
3932
3924
  z.lazy(() => GetDrainsSource1$outboundSchema),
@@ -1576,6 +1576,7 @@ export type GetProjectsPermissions = {
1576
1576
  repository?: Array<ACLAction> | undefined;
1577
1577
  samlConfig?: Array<ACLAction> | undefined;
1578
1578
  secret?: Array<ACLAction> | undefined;
1579
+ securityPlusConfiguration?: Array<ACLAction> | undefined;
1579
1580
  sensitiveEnvironmentVariablePolicy?: Array<ACLAction> | undefined;
1580
1581
  sharedEnvVars?: Array<ACLAction> | undefined;
1581
1582
  sharedEnvVarsProduction?: Array<ACLAction> | undefined;
@@ -7166,6 +7167,7 @@ export const GetProjectsPermissions$inboundSchema: z.ZodType<
7166
7167
  repository: z.array(ACLAction$inboundSchema).optional(),
7167
7168
  samlConfig: z.array(ACLAction$inboundSchema).optional(),
7168
7169
  secret: z.array(ACLAction$inboundSchema).optional(),
7170
+ securityPlusConfiguration: z.array(ACLAction$inboundSchema).optional(),
7169
7171
  sensitiveEnvironmentVariablePolicy: z.array(ACLAction$inboundSchema)
7170
7172
  .optional(),
7171
7173
  sharedEnvVars: z.array(ACLAction$inboundSchema).optional(),
@@ -7396,6 +7398,7 @@ export type GetProjectsPermissions$Outbound = {
7396
7398
  repository?: Array<string> | undefined;
7397
7399
  samlConfig?: Array<string> | undefined;
7398
7400
  secret?: Array<string> | undefined;
7401
+ securityPlusConfiguration?: Array<string> | undefined;
7399
7402
  sensitiveEnvironmentVariablePolicy?: Array<string> | undefined;
7400
7403
  sharedEnvVars?: Array<string> | undefined;
7401
7404
  sharedEnvVarsProduction?: Array<string> | undefined;
@@ -7626,6 +7629,7 @@ export const GetProjectsPermissions$outboundSchema: z.ZodType<
7626
7629
  repository: z.array(ACLAction$outboundSchema).optional(),
7627
7630
  samlConfig: z.array(ACLAction$outboundSchema).optional(),
7628
7631
  secret: z.array(ACLAction$outboundSchema).optional(),
7632
+ securityPlusConfiguration: z.array(ACLAction$outboundSchema).optional(),
7629
7633
  sensitiveEnvironmentVariablePolicy: z.array(ACLAction$outboundSchema)
7630
7634
  .optional(),
7631
7635
  sharedEnvVars: z.array(ACLAction$outboundSchema).optional(),
@@ -61,6 +61,7 @@ export const GetWebhookEvents = {
61
61
  IntegrationConfigurationRemoved: "integration-configuration.removed",
62
62
  IntegrationConfigurationScopeChangeConfirmed:
63
63
  "integration-configuration.scope-change-confirmed",
64
+ IntegrationConfigurationTransferred: "integration-configuration.transferred",
64
65
  IntegrationResourceProjectConnected: "integration-resource.project-connected",
65
66
  IntegrationResourceProjectDisconnected:
66
67
  "integration-resource.project-disconnected",
@@ -61,6 +61,7 @@ export const GetWebhooksResponseBodyEvents = {
61
61
  IntegrationConfigurationRemoved: "integration-configuration.removed",
62
62
  IntegrationConfigurationScopeChangeConfirmed:
63
63
  "integration-configuration.scope-change-confirmed",
64
+ IntegrationConfigurationTransferred: "integration-configuration.transferred",
64
65
  IntegrationResourceProjectConnected: "integration-resource.project-connected",
65
66
  IntegrationResourceProjectDisconnected:
66
67
  "integration-resource.project-disconnected",
@@ -254,6 +255,7 @@ export const ResponseBodyEvents = {
254
255
  IntegrationConfigurationRemoved: "integration-configuration.removed",
255
256
  IntegrationConfigurationScopeChangeConfirmed:
256
257
  "integration-configuration.scope-change-confirmed",
258
+ IntegrationConfigurationTransferred: "integration-configuration.transferred",
257
259
  IntegrationResourceProjectConnected: "integration-resource.project-connected",
258
260
  IntegrationResourceProjectDisconnected:
259
261
  "integration-resource.project-disconnected",
@@ -5,14 +5,43 @@
5
5
  import * as z from "zod/v3";
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
+ * Status code for domain redirect
14
+ */
15
+ export const MoveProjectDomainRedirectStatusCode = {
16
+ ThreeHundredAndOne: 301,
17
+ ThreeHundredAndTwo: 302,
18
+ ThreeHundredAndSeven: 307,
19
+ ThreeHundredAndEight: 308,
20
+ } as const;
21
+ /**
22
+ * Status code for domain redirect
23
+ */
24
+ export type MoveProjectDomainRedirectStatusCode = ClosedEnum<
25
+ typeof MoveProjectDomainRedirectStatusCode
26
+ >;
27
+
11
28
  export type MoveProjectDomainRequestBody = {
12
29
  /**
13
30
  * The unique target project identifier
14
31
  */
15
32
  projectId: string;
33
+ /**
34
+ * Git branch to link the project domain
35
+ */
36
+ gitBranch?: string | null | undefined;
37
+ /**
38
+ * Target destination domain for redirect
39
+ */
40
+ redirect?: string | null | undefined;
41
+ /**
42
+ * Status code for domain redirect
43
+ */
44
+ redirectStatusCode?: MoveProjectDomainRedirectStatusCode | null | undefined;
16
45
  };
17
46
 
18
47
  export type MoveProjectDomainRequest = {
@@ -68,6 +97,15 @@ export type MoveProjectDomainResponseBody = {
68
97
  verification?: Array<MoveProjectDomainVerification> | undefined;
69
98
  };
70
99
 
100
+ /** @internal */
101
+ export const MoveProjectDomainRedirectStatusCode$inboundSchema: z.ZodNativeEnum<
102
+ typeof MoveProjectDomainRedirectStatusCode
103
+ > = z.nativeEnum(MoveProjectDomainRedirectStatusCode);
104
+ /** @internal */
105
+ export const MoveProjectDomainRedirectStatusCode$outboundSchema:
106
+ z.ZodNativeEnum<typeof MoveProjectDomainRedirectStatusCode> =
107
+ MoveProjectDomainRedirectStatusCode$inboundSchema;
108
+
71
109
  /** @internal */
72
110
  export const MoveProjectDomainRequestBody$inboundSchema: z.ZodType<
73
111
  MoveProjectDomainRequestBody,
@@ -75,10 +113,18 @@ export const MoveProjectDomainRequestBody$inboundSchema: z.ZodType<
75
113
  unknown
76
114
  > = z.object({
77
115
  projectId: z.string(),
116
+ gitBranch: z.nullable(z.string()).optional(),
117
+ redirect: z.nullable(z.string()).optional(),
118
+ redirectStatusCode: z.nullable(
119
+ MoveProjectDomainRedirectStatusCode$inboundSchema,
120
+ ).optional(),
78
121
  });
79
122
  /** @internal */
80
123
  export type MoveProjectDomainRequestBody$Outbound = {
81
124
  projectId: string;
125
+ gitBranch?: string | null | undefined;
126
+ redirect?: string | null | undefined;
127
+ redirectStatusCode?: number | null | undefined;
82
128
  };
83
129
 
84
130
  /** @internal */
@@ -88,6 +134,11 @@ export const MoveProjectDomainRequestBody$outboundSchema: z.ZodType<
88
134
  MoveProjectDomainRequestBody
89
135
  > = z.object({
90
136
  projectId: z.string(),
137
+ gitBranch: z.nullable(z.string()).optional(),
138
+ redirect: z.nullable(z.string()).optional(),
139
+ redirectStatusCode: z.nullable(
140
+ MoveProjectDomainRedirectStatusCode$outboundSchema,
141
+ ).optional(),
91
142
  });
92
143
 
93
144
  export function moveProjectDomainRequestBodyToJSON(