@vercel/sdk 1.6.3 → 1.6.4

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 (144) hide show
  1. package/README.md +2 -0
  2. package/bin/mcp-server.js +3504 -1244
  3. package/bin/mcp-server.js.map +28 -25
  4. package/docs/sdks/edgeconfig/README.md +2 -6
  5. package/docs/sdks/marketplace/README.md +2 -6
  6. package/docs/sdks/security/README.md +90 -0
  7. package/docs/sdks/webhooks/README.md +2 -6
  8. package/esm/__tests__/deployments.test.js +16 -1
  9. package/esm/__tests__/deployments.test.js.map +1 -1
  10. package/esm/__tests__/marketplace.test.js +7 -2
  11. package/esm/__tests__/marketplace.test.js.map +1 -1
  12. package/esm/__tests__/projects.test.js +4 -4
  13. package/esm/__tests__/projects.test.js.map +1 -1
  14. package/esm/__tests__/security.test.js +163 -3
  15. package/esm/__tests__/security.test.js.map +1 -1
  16. package/esm/funcs/projectsCreateProject.js +2 -2
  17. package/esm/funcs/projectsCreateProject.js.map +1 -1
  18. package/esm/funcs/securityPutFirewallConfig.d.ts +19 -0
  19. package/esm/funcs/securityPutFirewallConfig.d.ts.map +1 -0
  20. package/esm/funcs/securityPutFirewallConfig.js +88 -0
  21. package/esm/funcs/securityPutFirewallConfig.js.map +1 -0
  22. package/esm/lib/config.d.ts +3 -3
  23. package/esm/lib/config.js +3 -3
  24. package/esm/mcp-server/mcp-server.js +1 -1
  25. package/esm/mcp-server/server.d.ts.map +1 -1
  26. package/esm/mcp-server/server.js +3 -1
  27. package/esm/mcp-server/server.js.map +1 -1
  28. package/esm/mcp-server/tools/securityPutFirewallConfig.d.ts +7 -0
  29. package/esm/mcp-server/tools/securityPutFirewallConfig.d.ts.map +1 -0
  30. package/esm/mcp-server/tools/securityPutFirewallConfig.js +28 -0
  31. package/esm/mcp-server/tools/securityPutFirewallConfig.js.map +1 -0
  32. package/esm/models/authtoken.d.ts +6 -0
  33. package/esm/models/authtoken.d.ts.map +1 -1
  34. package/esm/models/authtoken.js +2 -0
  35. package/esm/models/authtoken.js.map +1 -1
  36. package/esm/models/authuser.d.ts +46 -0
  37. package/esm/models/authuser.d.ts.map +1 -1
  38. package/esm/models/authuser.js +28 -0
  39. package/esm/models/authuser.js.map +1 -1
  40. package/esm/models/canceldeploymentop.d.ts +274 -73
  41. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  42. package/esm/models/canceldeploymentop.js +270 -72
  43. package/esm/models/canceldeploymentop.js.map +1 -1
  44. package/esm/models/createdeploymentop.d.ts +274 -73
  45. package/esm/models/createdeploymentop.d.ts.map +1 -1
  46. package/esm/models/createdeploymentop.js +270 -72
  47. package/esm/models/createdeploymentop.js.map +1 -1
  48. package/esm/models/createprojectenvop.d.ts +12 -18
  49. package/esm/models/createprojectenvop.d.ts.map +1 -1
  50. package/esm/models/createprojectenvop.js +12 -12
  51. package/esm/models/createprojectenvop.js.map +1 -1
  52. package/esm/models/createprojectop.d.ts +175 -13
  53. package/esm/models/createprojectop.d.ts.map +1 -1
  54. package/esm/models/createprojectop.js +157 -6
  55. package/esm/models/createprojectop.js.map +1 -1
  56. package/esm/models/editprojectenvop.d.ts +4 -7
  57. package/esm/models/editprojectenvop.d.ts.map +1 -1
  58. package/esm/models/editprojectenvop.js +4 -4
  59. package/esm/models/editprojectenvop.js.map +1 -1
  60. package/esm/models/filterprojectenvsop.d.ts +18 -27
  61. package/esm/models/filterprojectenvsop.d.ts.map +1 -1
  62. package/esm/models/filterprojectenvsop.js +18 -18
  63. package/esm/models/filterprojectenvsop.js.map +1 -1
  64. package/esm/models/getdeploymentop.d.ts +574 -172
  65. package/esm/models/getdeploymentop.d.ts.map +1 -1
  66. package/esm/models/getdeploymentop.js +567 -171
  67. package/esm/models/getdeploymentop.js.map +1 -1
  68. package/esm/models/getfirewallconfigop.d.ts +214 -214
  69. package/esm/models/getfirewallconfigop.d.ts.map +1 -1
  70. package/esm/models/getfirewallconfigop.js +210 -231
  71. package/esm/models/getfirewallconfigop.js.map +1 -1
  72. package/esm/models/getprojectdomainsop.d.ts +198 -36
  73. package/esm/models/getprojectdomainsop.d.ts.map +1 -1
  74. package/esm/models/getprojectdomainsop.js +193 -32
  75. package/esm/models/getprojectdomainsop.js.map +1 -1
  76. package/esm/models/getprojectenvop.d.ts +10 -16
  77. package/esm/models/getprojectenvop.d.ts.map +1 -1
  78. package/esm/models/getprojectenvop.js +10 -10
  79. package/esm/models/getprojectenvop.js.map +1 -1
  80. package/esm/models/getprojectsop.d.ts +175 -13
  81. package/esm/models/getprojectsop.d.ts.map +1 -1
  82. package/esm/models/getprojectsop.js +156 -6
  83. package/esm/models/getprojectsop.js.map +1 -1
  84. package/esm/models/putfirewallconfigop.d.ts +2901 -0
  85. package/esm/models/putfirewallconfigop.d.ts.map +1 -0
  86. package/esm/models/putfirewallconfigop.js +2383 -0
  87. package/esm/models/putfirewallconfigop.js.map +1 -0
  88. package/esm/models/removeprojectenvop.d.ts +18 -27
  89. package/esm/models/removeprojectenvop.d.ts.map +1 -1
  90. package/esm/models/removeprojectenvop.js +18 -18
  91. package/esm/models/removeprojectenvop.js.map +1 -1
  92. package/esm/models/updatefirewallconfigop.d.ts +323 -323
  93. package/esm/models/updatefirewallconfigop.d.ts.map +1 -1
  94. package/esm/models/updatefirewallconfigop.js +379 -357
  95. package/esm/models/updatefirewallconfigop.js.map +1 -1
  96. package/esm/models/updateprojectdatacacheop.d.ts +183 -21
  97. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  98. package/esm/models/updateprojectdatacacheop.js +172 -18
  99. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  100. package/esm/models/updateprojectop.d.ts +175 -13
  101. package/esm/models/updateprojectop.d.ts.map +1 -1
  102. package/esm/models/updateprojectop.js +157 -6
  103. package/esm/models/updateprojectop.js.map +1 -1
  104. package/esm/models/userevent.d.ts +46 -19
  105. package/esm/models/userevent.d.ts.map +1 -1
  106. package/esm/models/userevent.js +34 -10
  107. package/esm/models/userevent.js.map +1 -1
  108. package/esm/sdk/security.d.ts +8 -0
  109. package/esm/sdk/security.d.ts.map +1 -1
  110. package/esm/sdk/security.js +10 -0
  111. package/esm/sdk/security.js.map +1 -1
  112. package/jsr.json +1 -1
  113. package/package.json +3 -3
  114. package/src/__tests__/deployments.test.ts +16 -1
  115. package/src/__tests__/marketplace.test.ts +7 -2
  116. package/src/__tests__/projects.test.ts +4 -4
  117. package/src/__tests__/security.test.ts +165 -5
  118. package/src/funcs/projectsCreateProject.ts +2 -2
  119. package/src/funcs/securityPutFirewallConfig.ts +194 -0
  120. package/src/lib/config.ts +3 -3
  121. package/src/mcp-server/mcp-server.ts +1 -1
  122. package/src/mcp-server/server.ts +3 -1
  123. package/src/mcp-server/tools/securityPutFirewallConfig.ts +37 -0
  124. package/src/models/authtoken.ts +2 -0
  125. package/src/models/authuser.ts +52 -0
  126. package/src/models/canceldeploymentop.ts +591 -148
  127. package/src/models/createdeploymentop.ts +616 -165
  128. package/src/models/createprojectenvop.ts +24 -30
  129. package/src/models/createprojectop.ts +336 -15
  130. package/src/models/editprojectenvop.ts +8 -11
  131. package/src/models/filterprojectenvsop.ts +36 -45
  132. package/src/models/getdeploymentop.ts +1288 -353
  133. package/src/models/getfirewallconfigop.ts +555 -410
  134. package/src/models/getprojectdomainsop.ts +470 -63
  135. package/src/models/getprojectenvop.ts +20 -26
  136. package/src/models/getprojectsop.ts +338 -16
  137. package/src/models/putfirewallconfigop.ts +4932 -0
  138. package/src/models/removeprojectenvop.ts +36 -45
  139. package/src/models/updatefirewallconfigop.ts +820 -612
  140. package/src/models/updateprojectdatacacheop.ts +353 -34
  141. package/src/models/updateprojectop.ts +336 -15
  142. package/src/models/userevent.ts +54 -29
  143. package/src/sdk/security.ts +22 -0
  144. package/vercel-spec.json +1375 -286
@@ -309,18 +309,18 @@ export type CancelDeploymentChecksConclusion = ClosedEnum<
309
309
  typeof CancelDeploymentChecksConclusion
310
310
  >;
311
311
 
312
- export const CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody9Type =
312
+ export const CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type =
313
313
  {
314
314
  Bitbucket: "bitbucket",
315
315
  } as const;
316
- export type CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody9Type =
316
+ export type CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type =
317
317
  ClosedEnum<
318
- typeof CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody9Type
318
+ typeof CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type
319
319
  >;
320
320
 
321
- export type GitSource9 = {
321
+ export type GitSource12 = {
322
322
  type:
323
- CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody9Type;
323
+ CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type;
324
324
  ref: string;
325
325
  sha: string;
326
326
  owner?: string | undefined;
@@ -329,35 +329,36 @@ export type GitSource9 = {
329
329
  repoUuid: string;
330
330
  };
331
331
 
332
- export const CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody8Type =
332
+ export const CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type =
333
333
  {
334
334
  Gitlab: "gitlab",
335
335
  } as const;
336
- export type CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody8Type =
336
+ export type CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type =
337
337
  ClosedEnum<
338
- typeof CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody8Type
338
+ typeof CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type
339
339
  >;
340
340
 
341
- export type GitSource8 = {
341
+ export type GitSource11 = {
342
342
  type:
343
- CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody8Type;
343
+ CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type;
344
344
  ref: string;
345
345
  sha: string;
346
346
  projectId: number;
347
347
  };
348
348
 
349
- export const CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody7Type =
349
+ export const CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type =
350
350
  {
351
351
  Github: "github",
352
352
  } as const;
353
- export type CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody7Type =
353
+ export type CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type =
354
354
  ClosedEnum<
355
- typeof CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody7Type
355
+ typeof CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type
356
356
  >;
357
357
 
358
- export type GitSource7 = {
358
+ export type GitSource10 = {
359
359
  type:
360
- CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody7Type;
360
+ CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type;
361
+ host: string;
361
362
  ref: string;
362
363
  sha: string;
363
364
  repoId: number;
@@ -365,46 +366,104 @@ export type GitSource7 = {
365
366
  repo?: string | undefined;
366
367
  };
367
368
 
368
- export const CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBodyType =
369
+ export const CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody9Type =
370
+ {
371
+ Github: "github",
372
+ } as const;
373
+ export type CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody9Type =
374
+ ClosedEnum<
375
+ typeof CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody9Type
376
+ >;
377
+
378
+ export type GitSource9 = {
379
+ type:
380
+ CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody9Type;
381
+ ref: string;
382
+ sha: string;
383
+ repoId: number;
384
+ org?: string | undefined;
385
+ repo?: string | undefined;
386
+ };
387
+
388
+ export const CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody8Type =
369
389
  {
370
390
  Custom: "custom",
371
391
  } as const;
372
- export type CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBodyType =
392
+ export type CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody8Type =
373
393
  ClosedEnum<
374
- typeof CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBodyType
394
+ typeof CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody8Type
375
395
  >;
376
396
 
377
397
  /**
378
398
  * Allows custom git sources (local folder mounted to the container) in test mode
379
399
  */
380
- export type GitSource6 = {
400
+ export type GitSource8 = {
381
401
  type:
382
- CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBodyType;
402
+ CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody8Type;
383
403
  ref: string;
384
404
  sha: string;
385
405
  gitUrl: string;
386
406
  };
387
407
 
388
- export const CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONType =
408
+ export const CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody7Type =
409
+ {
410
+ Bitbucket: "bitbucket",
411
+ } as const;
412
+ export type CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody7Type =
413
+ ClosedEnum<
414
+ typeof CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody7Type
415
+ >;
416
+
417
+ export type GitSource7 = {
418
+ type:
419
+ CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody7Type;
420
+ owner: string;
421
+ slug: string;
422
+ ref?: string | null | undefined;
423
+ sha?: string | undefined;
424
+ prId?: number | null | undefined;
425
+ };
426
+
427
+ export const CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBodyType =
389
428
  {
390
429
  Bitbucket: "bitbucket",
391
430
  } as const;
431
+ export type CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBodyType =
432
+ ClosedEnum<
433
+ typeof CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBodyType
434
+ >;
435
+
436
+ export type GitSource6 = {
437
+ type:
438
+ CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBodyType;
439
+ workspaceUuid?: string | undefined;
440
+ repoUuid: string;
441
+ ref?: string | null | undefined;
442
+ sha?: string | undefined;
443
+ prId?: number | null | undefined;
444
+ };
445
+
446
+ export const CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONType =
447
+ {
448
+ Gitlab: "gitlab",
449
+ } as const;
392
450
  export type CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONType =
393
451
  ClosedEnum<
394
452
  typeof CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONType
395
453
  >;
396
454
 
455
+ export type CancelDeploymentGitSourceProjectId = string | number;
456
+
397
457
  export type CancelDeploymentGitSource5 = {
398
458
  type: CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONType;
399
- owner: string;
400
- slug: string;
459
+ projectId: string | number;
401
460
  ref?: string | null | undefined;
402
461
  sha?: string | undefined;
403
462
  prId?: number | null | undefined;
404
463
  };
405
464
 
406
465
  export const CancelDeploymentGitSourceDeploymentsResponse200Type = {
407
- Bitbucket: "bitbucket",
466
+ GithubCustomHost: "github-custom-host",
408
467
  } as const;
409
468
  export type CancelDeploymentGitSourceDeploymentsResponse200Type = ClosedEnum<
410
469
  typeof CancelDeploymentGitSourceDeploymentsResponse200Type
@@ -412,25 +471,27 @@ export type CancelDeploymentGitSourceDeploymentsResponse200Type = ClosedEnum<
412
471
 
413
472
  export type CancelDeploymentGitSource4 = {
414
473
  type: CancelDeploymentGitSourceDeploymentsResponse200Type;
415
- workspaceUuid?: string | undefined;
416
- repoUuid: string;
474
+ host: string;
475
+ org: string;
476
+ repo: string;
417
477
  ref?: string | null | undefined;
418
478
  sha?: string | undefined;
419
479
  prId?: number | null | undefined;
420
480
  };
421
481
 
422
482
  export const CancelDeploymentGitSourceDeploymentsResponseType = {
423
- Gitlab: "gitlab",
483
+ GithubCustomHost: "github-custom-host",
424
484
  } as const;
425
485
  export type CancelDeploymentGitSourceDeploymentsResponseType = ClosedEnum<
426
486
  typeof CancelDeploymentGitSourceDeploymentsResponseType
427
487
  >;
428
488
 
429
- export type CancelDeploymentGitSourceProjectId = string | number;
489
+ export type CancelDeploymentGitSourceDeploymentsRepoId = string | number;
430
490
 
431
491
  export type CancelDeploymentGitSource3 = {
432
492
  type: CancelDeploymentGitSourceDeploymentsResponseType;
433
- projectId: string | number;
493
+ host: string;
494
+ repoId: string | number;
434
495
  ref?: string | null | undefined;
435
496
  sha?: string | undefined;
436
497
  prId?: number | null | undefined;
@@ -470,15 +531,18 @@ export type CancelDeploymentGitSource1 = {
470
531
  };
471
532
 
472
533
  export type CancelDeploymentGitSource =
473
- | GitSource6
474
534
  | GitSource8
535
+ | GitSource11
475
536
  | CancelDeploymentGitSource1
476
- | CancelDeploymentGitSource3
477
- | CancelDeploymentGitSource2
478
- | CancelDeploymentGitSource4
479
537
  | CancelDeploymentGitSource5
538
+ | CancelDeploymentGitSource2
539
+ | CancelDeploymentGitSource3
540
+ | GitSource6
480
541
  | GitSource7
481
- | GitSource9;
542
+ | GitSource9
543
+ | CancelDeploymentGitSource4
544
+ | GitSource10
545
+ | GitSource12;
482
546
 
483
547
  export type CancelDeploymentProject = {
484
548
  id: string;
@@ -910,6 +974,10 @@ export type CancelDeploymentResponseBody = {
910
974
  aliasAssigned: boolean;
911
975
  bootedAt: number;
912
976
  buildingAt: number;
977
+ /**
978
+ * Since April 2025 it necessary for On-Demand Concurrency Minutes calculation
979
+ */
980
+ buildContainerFinishedAt?: number | undefined;
913
981
  buildSkipped: boolean;
914
982
  creator: CancelDeploymentCreator;
915
983
  initReadyAt?: number | undefined;
@@ -954,15 +1022,18 @@ export type CancelDeploymentResponseBody = {
954
1022
  */
955
1023
  passiveRegions?: Array<string> | undefined;
956
1024
  gitSource?:
957
- | GitSource6
958
1025
  | GitSource8
1026
+ | GitSource11
959
1027
  | CancelDeploymentGitSource1
960
- | CancelDeploymentGitSource3
961
- | CancelDeploymentGitSource2
962
- | CancelDeploymentGitSource4
963
1028
  | CancelDeploymentGitSource5
1029
+ | CancelDeploymentGitSource2
1030
+ | CancelDeploymentGitSource3
1031
+ | GitSource6
964
1032
  | GitSource7
965
1033
  | GitSource9
1034
+ | CancelDeploymentGitSource4
1035
+ | GitSource10
1036
+ | GitSource12
966
1037
  | undefined;
967
1038
  name: string;
968
1039
  meta: { [k: string]: string };
@@ -2478,11 +2549,296 @@ export const CancelDeploymentChecksConclusion$outboundSchema: z.ZodNativeEnum<
2478
2549
  * @internal
2479
2550
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2480
2551
  */
2481
- export namespace CancelDeploymentChecksConclusion$ {
2482
- /** @deprecated use `CancelDeploymentChecksConclusion$inboundSchema` instead. */
2483
- export const inboundSchema = CancelDeploymentChecksConclusion$inboundSchema;
2484
- /** @deprecated use `CancelDeploymentChecksConclusion$outboundSchema` instead. */
2485
- export const outboundSchema = CancelDeploymentChecksConclusion$outboundSchema;
2552
+ export namespace CancelDeploymentChecksConclusion$ {
2553
+ /** @deprecated use `CancelDeploymentChecksConclusion$inboundSchema` instead. */
2554
+ export const inboundSchema = CancelDeploymentChecksConclusion$inboundSchema;
2555
+ /** @deprecated use `CancelDeploymentChecksConclusion$outboundSchema` instead. */
2556
+ export const outboundSchema = CancelDeploymentChecksConclusion$outboundSchema;
2557
+ }
2558
+
2559
+ /** @internal */
2560
+ export const CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type$inboundSchema:
2561
+ z.ZodNativeEnum<
2562
+ typeof CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type
2563
+ > = z.nativeEnum(
2564
+ CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type,
2565
+ );
2566
+
2567
+ /** @internal */
2568
+ export const CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type$outboundSchema:
2569
+ z.ZodNativeEnum<
2570
+ typeof CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type
2571
+ > =
2572
+ CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type$inboundSchema;
2573
+
2574
+ /**
2575
+ * @internal
2576
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2577
+ */
2578
+ export namespace CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type$ {
2579
+ /** @deprecated use `CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type$inboundSchema` instead. */
2580
+ export const inboundSchema =
2581
+ CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type$inboundSchema;
2582
+ /** @deprecated use `CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type$outboundSchema` instead. */
2583
+ export const outboundSchema =
2584
+ CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type$outboundSchema;
2585
+ }
2586
+
2587
+ /** @internal */
2588
+ export const GitSource12$inboundSchema: z.ZodType<
2589
+ GitSource12,
2590
+ z.ZodTypeDef,
2591
+ unknown
2592
+ > = z.object({
2593
+ type:
2594
+ CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type$inboundSchema,
2595
+ ref: z.string(),
2596
+ sha: z.string(),
2597
+ owner: z.string().optional(),
2598
+ slug: z.string().optional(),
2599
+ workspaceUuid: z.string(),
2600
+ repoUuid: z.string(),
2601
+ });
2602
+
2603
+ /** @internal */
2604
+ export type GitSource12$Outbound = {
2605
+ type: string;
2606
+ ref: string;
2607
+ sha: string;
2608
+ owner?: string | undefined;
2609
+ slug?: string | undefined;
2610
+ workspaceUuid: string;
2611
+ repoUuid: string;
2612
+ };
2613
+
2614
+ /** @internal */
2615
+ export const GitSource12$outboundSchema: z.ZodType<
2616
+ GitSource12$Outbound,
2617
+ z.ZodTypeDef,
2618
+ GitSource12
2619
+ > = z.object({
2620
+ type:
2621
+ CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody12Type$outboundSchema,
2622
+ ref: z.string(),
2623
+ sha: z.string(),
2624
+ owner: z.string().optional(),
2625
+ slug: z.string().optional(),
2626
+ workspaceUuid: z.string(),
2627
+ repoUuid: z.string(),
2628
+ });
2629
+
2630
+ /**
2631
+ * @internal
2632
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2633
+ */
2634
+ export namespace GitSource12$ {
2635
+ /** @deprecated use `GitSource12$inboundSchema` instead. */
2636
+ export const inboundSchema = GitSource12$inboundSchema;
2637
+ /** @deprecated use `GitSource12$outboundSchema` instead. */
2638
+ export const outboundSchema = GitSource12$outboundSchema;
2639
+ /** @deprecated use `GitSource12$Outbound` instead. */
2640
+ export type Outbound = GitSource12$Outbound;
2641
+ }
2642
+
2643
+ export function gitSource12ToJSON(gitSource12: GitSource12): string {
2644
+ return JSON.stringify(GitSource12$outboundSchema.parse(gitSource12));
2645
+ }
2646
+
2647
+ export function gitSource12FromJSON(
2648
+ jsonString: string,
2649
+ ): SafeParseResult<GitSource12, SDKValidationError> {
2650
+ return safeParse(
2651
+ jsonString,
2652
+ (x) => GitSource12$inboundSchema.parse(JSON.parse(x)),
2653
+ `Failed to parse 'GitSource12' from JSON`,
2654
+ );
2655
+ }
2656
+
2657
+ /** @internal */
2658
+ export const CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type$inboundSchema:
2659
+ z.ZodNativeEnum<
2660
+ typeof CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type
2661
+ > = z.nativeEnum(
2662
+ CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type,
2663
+ );
2664
+
2665
+ /** @internal */
2666
+ export const CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type$outboundSchema:
2667
+ z.ZodNativeEnum<
2668
+ typeof CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type
2669
+ > =
2670
+ CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type$inboundSchema;
2671
+
2672
+ /**
2673
+ * @internal
2674
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2675
+ */
2676
+ export namespace CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type$ {
2677
+ /** @deprecated use `CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type$inboundSchema` instead. */
2678
+ export const inboundSchema =
2679
+ CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type$inboundSchema;
2680
+ /** @deprecated use `CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type$outboundSchema` instead. */
2681
+ export const outboundSchema =
2682
+ CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type$outboundSchema;
2683
+ }
2684
+
2685
+ /** @internal */
2686
+ export const GitSource11$inboundSchema: z.ZodType<
2687
+ GitSource11,
2688
+ z.ZodTypeDef,
2689
+ unknown
2690
+ > = z.object({
2691
+ type:
2692
+ CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type$inboundSchema,
2693
+ ref: z.string(),
2694
+ sha: z.string(),
2695
+ projectId: z.number(),
2696
+ });
2697
+
2698
+ /** @internal */
2699
+ export type GitSource11$Outbound = {
2700
+ type: string;
2701
+ ref: string;
2702
+ sha: string;
2703
+ projectId: number;
2704
+ };
2705
+
2706
+ /** @internal */
2707
+ export const GitSource11$outboundSchema: z.ZodType<
2708
+ GitSource11$Outbound,
2709
+ z.ZodTypeDef,
2710
+ GitSource11
2711
+ > = z.object({
2712
+ type:
2713
+ CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody11Type$outboundSchema,
2714
+ ref: z.string(),
2715
+ sha: z.string(),
2716
+ projectId: z.number(),
2717
+ });
2718
+
2719
+ /**
2720
+ * @internal
2721
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2722
+ */
2723
+ export namespace GitSource11$ {
2724
+ /** @deprecated use `GitSource11$inboundSchema` instead. */
2725
+ export const inboundSchema = GitSource11$inboundSchema;
2726
+ /** @deprecated use `GitSource11$outboundSchema` instead. */
2727
+ export const outboundSchema = GitSource11$outboundSchema;
2728
+ /** @deprecated use `GitSource11$Outbound` instead. */
2729
+ export type Outbound = GitSource11$Outbound;
2730
+ }
2731
+
2732
+ export function gitSource11ToJSON(gitSource11: GitSource11): string {
2733
+ return JSON.stringify(GitSource11$outboundSchema.parse(gitSource11));
2734
+ }
2735
+
2736
+ export function gitSource11FromJSON(
2737
+ jsonString: string,
2738
+ ): SafeParseResult<GitSource11, SDKValidationError> {
2739
+ return safeParse(
2740
+ jsonString,
2741
+ (x) => GitSource11$inboundSchema.parse(JSON.parse(x)),
2742
+ `Failed to parse 'GitSource11' from JSON`,
2743
+ );
2744
+ }
2745
+
2746
+ /** @internal */
2747
+ export const CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type$inboundSchema:
2748
+ z.ZodNativeEnum<
2749
+ typeof CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type
2750
+ > = z.nativeEnum(
2751
+ CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type,
2752
+ );
2753
+
2754
+ /** @internal */
2755
+ export const CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type$outboundSchema:
2756
+ z.ZodNativeEnum<
2757
+ typeof CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type
2758
+ > =
2759
+ CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type$inboundSchema;
2760
+
2761
+ /**
2762
+ * @internal
2763
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2764
+ */
2765
+ export namespace CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type$ {
2766
+ /** @deprecated use `CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type$inboundSchema` instead. */
2767
+ export const inboundSchema =
2768
+ CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type$inboundSchema;
2769
+ /** @deprecated use `CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type$outboundSchema` instead. */
2770
+ export const outboundSchema =
2771
+ CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type$outboundSchema;
2772
+ }
2773
+
2774
+ /** @internal */
2775
+ export const GitSource10$inboundSchema: z.ZodType<
2776
+ GitSource10,
2777
+ z.ZodTypeDef,
2778
+ unknown
2779
+ > = z.object({
2780
+ type:
2781
+ CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type$inboundSchema,
2782
+ host: z.string(),
2783
+ ref: z.string(),
2784
+ sha: z.string(),
2785
+ repoId: z.number(),
2786
+ org: z.string().optional(),
2787
+ repo: z.string().optional(),
2788
+ });
2789
+
2790
+ /** @internal */
2791
+ export type GitSource10$Outbound = {
2792
+ type: string;
2793
+ host: string;
2794
+ ref: string;
2795
+ sha: string;
2796
+ repoId: number;
2797
+ org?: string | undefined;
2798
+ repo?: string | undefined;
2799
+ };
2800
+
2801
+ /** @internal */
2802
+ export const GitSource10$outboundSchema: z.ZodType<
2803
+ GitSource10$Outbound,
2804
+ z.ZodTypeDef,
2805
+ GitSource10
2806
+ > = z.object({
2807
+ type:
2808
+ CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type$outboundSchema,
2809
+ host: z.string(),
2810
+ ref: z.string(),
2811
+ sha: z.string(),
2812
+ repoId: z.number(),
2813
+ org: z.string().optional(),
2814
+ repo: z.string().optional(),
2815
+ });
2816
+
2817
+ /**
2818
+ * @internal
2819
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2820
+ */
2821
+ export namespace GitSource10$ {
2822
+ /** @deprecated use `GitSource10$inboundSchema` instead. */
2823
+ export const inboundSchema = GitSource10$inboundSchema;
2824
+ /** @deprecated use `GitSource10$outboundSchema` instead. */
2825
+ export const outboundSchema = GitSource10$outboundSchema;
2826
+ /** @deprecated use `GitSource10$Outbound` instead. */
2827
+ export type Outbound = GitSource10$Outbound;
2828
+ }
2829
+
2830
+ export function gitSource10ToJSON(gitSource10: GitSource10): string {
2831
+ return JSON.stringify(GitSource10$outboundSchema.parse(gitSource10));
2832
+ }
2833
+
2834
+ export function gitSource10FromJSON(
2835
+ jsonString: string,
2836
+ ): SafeParseResult<GitSource10, SDKValidationError> {
2837
+ return safeParse(
2838
+ jsonString,
2839
+ (x) => GitSource10$inboundSchema.parse(JSON.parse(x)),
2840
+ `Failed to parse 'GitSource10' from JSON`,
2841
+ );
2486
2842
  }
2487
2843
 
2488
2844
  /** @internal */
@@ -2523,10 +2879,9 @@ export const GitSource9$inboundSchema: z.ZodType<
2523
2879
  CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody9Type$inboundSchema,
2524
2880
  ref: z.string(),
2525
2881
  sha: z.string(),
2526
- owner: z.string().optional(),
2527
- slug: z.string().optional(),
2528
- workspaceUuid: z.string(),
2529
- repoUuid: z.string(),
2882
+ repoId: z.number(),
2883
+ org: z.string().optional(),
2884
+ repo: z.string().optional(),
2530
2885
  });
2531
2886
 
2532
2887
  /** @internal */
@@ -2534,10 +2889,9 @@ export type GitSource9$Outbound = {
2534
2889
  type: string;
2535
2890
  ref: string;
2536
2891
  sha: string;
2537
- owner?: string | undefined;
2538
- slug?: string | undefined;
2539
- workspaceUuid: string;
2540
- repoUuid: string;
2892
+ repoId: number;
2893
+ org?: string | undefined;
2894
+ repo?: string | undefined;
2541
2895
  };
2542
2896
 
2543
2897
  /** @internal */
@@ -2550,10 +2904,9 @@ export const GitSource9$outboundSchema: z.ZodType<
2550
2904
  CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody9Type$outboundSchema,
2551
2905
  ref: z.string(),
2552
2906
  sha: z.string(),
2553
- owner: z.string().optional(),
2554
- slug: z.string().optional(),
2555
- workspaceUuid: z.string(),
2556
- repoUuid: z.string(),
2907
+ repoId: z.number(),
2908
+ org: z.string().optional(),
2909
+ repo: z.string().optional(),
2557
2910
  });
2558
2911
 
2559
2912
  /**
@@ -2621,7 +2974,7 @@ export const GitSource8$inboundSchema: z.ZodType<
2621
2974
  CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody8Type$inboundSchema,
2622
2975
  ref: z.string(),
2623
2976
  sha: z.string(),
2624
- projectId: z.number(),
2977
+ gitUrl: z.string(),
2625
2978
  });
2626
2979
 
2627
2980
  /** @internal */
@@ -2629,7 +2982,7 @@ export type GitSource8$Outbound = {
2629
2982
  type: string;
2630
2983
  ref: string;
2631
2984
  sha: string;
2632
- projectId: number;
2985
+ gitUrl: string;
2633
2986
  };
2634
2987
 
2635
2988
  /** @internal */
@@ -2642,7 +2995,7 @@ export const GitSource8$outboundSchema: z.ZodType<
2642
2995
  CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody8Type$outboundSchema,
2643
2996
  ref: z.string(),
2644
2997
  sha: z.string(),
2645
- projectId: z.number(),
2998
+ gitUrl: z.string(),
2646
2999
  });
2647
3000
 
2648
3001
  /**
@@ -2708,21 +3061,21 @@ export const GitSource7$inboundSchema: z.ZodType<
2708
3061
  > = z.object({
2709
3062
  type:
2710
3063
  CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody7Type$inboundSchema,
2711
- ref: z.string(),
2712
- sha: z.string(),
2713
- repoId: z.number(),
2714
- org: z.string().optional(),
2715
- repo: z.string().optional(),
3064
+ owner: z.string(),
3065
+ slug: z.string(),
3066
+ ref: z.nullable(z.string()).optional(),
3067
+ sha: z.string().optional(),
3068
+ prId: z.nullable(z.number()).optional(),
2716
3069
  });
2717
3070
 
2718
3071
  /** @internal */
2719
3072
  export type GitSource7$Outbound = {
2720
3073
  type: string;
2721
- ref: string;
2722
- sha: string;
2723
- repoId: number;
2724
- org?: string | undefined;
2725
- repo?: string | undefined;
3074
+ owner: string;
3075
+ slug: string;
3076
+ ref?: string | null | undefined;
3077
+ sha?: string | undefined;
3078
+ prId?: number | null | undefined;
2726
3079
  };
2727
3080
 
2728
3081
  /** @internal */
@@ -2733,11 +3086,11 @@ export const GitSource7$outboundSchema: z.ZodType<
2733
3086
  > = z.object({
2734
3087
  type:
2735
3088
  CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody7Type$outboundSchema,
2736
- ref: z.string(),
2737
- sha: z.string(),
2738
- repoId: z.number(),
2739
- org: z.string().optional(),
2740
- repo: z.string().optional(),
3089
+ owner: z.string(),
3090
+ slug: z.string(),
3091
+ ref: z.nullable(z.string()).optional(),
3092
+ sha: z.string().optional(),
3093
+ prId: z.nullable(z.number()).optional(),
2741
3094
  });
2742
3095
 
2743
3096
  /**
@@ -2803,17 +3156,21 @@ export const GitSource6$inboundSchema: z.ZodType<
2803
3156
  > = z.object({
2804
3157
  type:
2805
3158
  CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBodyType$inboundSchema,
2806
- ref: z.string(),
2807
- sha: z.string(),
2808
- gitUrl: z.string(),
3159
+ workspaceUuid: z.string().optional(),
3160
+ repoUuid: z.string(),
3161
+ ref: z.nullable(z.string()).optional(),
3162
+ sha: z.string().optional(),
3163
+ prId: z.nullable(z.number()).optional(),
2809
3164
  });
2810
3165
 
2811
3166
  /** @internal */
2812
3167
  export type GitSource6$Outbound = {
2813
3168
  type: string;
2814
- ref: string;
2815
- sha: string;
2816
- gitUrl: string;
3169
+ workspaceUuid?: string | undefined;
3170
+ repoUuid: string;
3171
+ ref?: string | null | undefined;
3172
+ sha?: string | undefined;
3173
+ prId?: number | null | undefined;
2817
3174
  };
2818
3175
 
2819
3176
  /** @internal */
@@ -2824,9 +3181,11 @@ export const GitSource6$outboundSchema: z.ZodType<
2824
3181
  > = z.object({
2825
3182
  type:
2826
3183
  CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBodyType$outboundSchema,
2827
- ref: z.string(),
2828
- sha: z.string(),
2829
- gitUrl: z.string(),
3184
+ workspaceUuid: z.string().optional(),
3185
+ repoUuid: z.string(),
3186
+ ref: z.nullable(z.string()).optional(),
3187
+ sha: z.string().optional(),
3188
+ prId: z.nullable(z.number()).optional(),
2830
3189
  });
2831
3190
 
2832
3191
  /**
@@ -2884,6 +3243,58 @@ export namespace CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONT
2884
3243
  CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONType$outboundSchema;
2885
3244
  }
2886
3245
 
3246
+ /** @internal */
3247
+ export const CancelDeploymentGitSourceProjectId$inboundSchema: z.ZodType<
3248
+ CancelDeploymentGitSourceProjectId,
3249
+ z.ZodTypeDef,
3250
+ unknown
3251
+ > = z.union([z.string(), z.number()]);
3252
+
3253
+ /** @internal */
3254
+ export type CancelDeploymentGitSourceProjectId$Outbound = string | number;
3255
+
3256
+ /** @internal */
3257
+ export const CancelDeploymentGitSourceProjectId$outboundSchema: z.ZodType<
3258
+ CancelDeploymentGitSourceProjectId$Outbound,
3259
+ z.ZodTypeDef,
3260
+ CancelDeploymentGitSourceProjectId
3261
+ > = z.union([z.string(), z.number()]);
3262
+
3263
+ /**
3264
+ * @internal
3265
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3266
+ */
3267
+ export namespace CancelDeploymentGitSourceProjectId$ {
3268
+ /** @deprecated use `CancelDeploymentGitSourceProjectId$inboundSchema` instead. */
3269
+ export const inboundSchema = CancelDeploymentGitSourceProjectId$inboundSchema;
3270
+ /** @deprecated use `CancelDeploymentGitSourceProjectId$outboundSchema` instead. */
3271
+ export const outboundSchema =
3272
+ CancelDeploymentGitSourceProjectId$outboundSchema;
3273
+ /** @deprecated use `CancelDeploymentGitSourceProjectId$Outbound` instead. */
3274
+ export type Outbound = CancelDeploymentGitSourceProjectId$Outbound;
3275
+ }
3276
+
3277
+ export function cancelDeploymentGitSourceProjectIdToJSON(
3278
+ cancelDeploymentGitSourceProjectId: CancelDeploymentGitSourceProjectId,
3279
+ ): string {
3280
+ return JSON.stringify(
3281
+ CancelDeploymentGitSourceProjectId$outboundSchema.parse(
3282
+ cancelDeploymentGitSourceProjectId,
3283
+ ),
3284
+ );
3285
+ }
3286
+
3287
+ export function cancelDeploymentGitSourceProjectIdFromJSON(
3288
+ jsonString: string,
3289
+ ): SafeParseResult<CancelDeploymentGitSourceProjectId, SDKValidationError> {
3290
+ return safeParse(
3291
+ jsonString,
3292
+ (x) =>
3293
+ CancelDeploymentGitSourceProjectId$inboundSchema.parse(JSON.parse(x)),
3294
+ `Failed to parse 'CancelDeploymentGitSourceProjectId' from JSON`,
3295
+ );
3296
+ }
3297
+
2887
3298
  /** @internal */
2888
3299
  export const CancelDeploymentGitSource5$inboundSchema: z.ZodType<
2889
3300
  CancelDeploymentGitSource5,
@@ -2892,8 +3303,7 @@ export const CancelDeploymentGitSource5$inboundSchema: z.ZodType<
2892
3303
  > = z.object({
2893
3304
  type:
2894
3305
  CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONType$inboundSchema,
2895
- owner: z.string(),
2896
- slug: z.string(),
3306
+ projectId: z.union([z.string(), z.number()]),
2897
3307
  ref: z.nullable(z.string()).optional(),
2898
3308
  sha: z.string().optional(),
2899
3309
  prId: z.nullable(z.number()).optional(),
@@ -2902,8 +3312,7 @@ export const CancelDeploymentGitSource5$inboundSchema: z.ZodType<
2902
3312
  /** @internal */
2903
3313
  export type CancelDeploymentGitSource5$Outbound = {
2904
3314
  type: string;
2905
- owner: string;
2906
- slug: string;
3315
+ projectId: string | number;
2907
3316
  ref?: string | null | undefined;
2908
3317
  sha?: string | undefined;
2909
3318
  prId?: number | null | undefined;
@@ -2917,8 +3326,7 @@ export const CancelDeploymentGitSource5$outboundSchema: z.ZodType<
2917
3326
  > = z.object({
2918
3327
  type:
2919
3328
  CancelDeploymentGitSourceDeploymentsResponse200ApplicationJSONType$outboundSchema,
2920
- owner: z.string(),
2921
- slug: z.string(),
3329
+ projectId: z.union([z.string(), z.number()]),
2922
3330
  ref: z.nullable(z.string()).optional(),
2923
3331
  sha: z.string().optional(),
2924
3332
  prId: z.nullable(z.number()).optional(),
@@ -2985,8 +3393,9 @@ export const CancelDeploymentGitSource4$inboundSchema: z.ZodType<
2985
3393
  unknown
2986
3394
  > = z.object({
2987
3395
  type: CancelDeploymentGitSourceDeploymentsResponse200Type$inboundSchema,
2988
- workspaceUuid: z.string().optional(),
2989
- repoUuid: z.string(),
3396
+ host: z.string(),
3397
+ org: z.string(),
3398
+ repo: z.string(),
2990
3399
  ref: z.nullable(z.string()).optional(),
2991
3400
  sha: z.string().optional(),
2992
3401
  prId: z.nullable(z.number()).optional(),
@@ -2995,8 +3404,9 @@ export const CancelDeploymentGitSource4$inboundSchema: z.ZodType<
2995
3404
  /** @internal */
2996
3405
  export type CancelDeploymentGitSource4$Outbound = {
2997
3406
  type: string;
2998
- workspaceUuid?: string | undefined;
2999
- repoUuid: string;
3407
+ host: string;
3408
+ org: string;
3409
+ repo: string;
3000
3410
  ref?: string | null | undefined;
3001
3411
  sha?: string | undefined;
3002
3412
  prId?: number | null | undefined;
@@ -3009,8 +3419,9 @@ export const CancelDeploymentGitSource4$outboundSchema: z.ZodType<
3009
3419
  CancelDeploymentGitSource4
3010
3420
  > = z.object({
3011
3421
  type: CancelDeploymentGitSourceDeploymentsResponse200Type$outboundSchema,
3012
- workspaceUuid: z.string().optional(),
3013
- repoUuid: z.string(),
3422
+ host: z.string(),
3423
+ org: z.string(),
3424
+ repo: z.string(),
3014
3425
  ref: z.nullable(z.string()).optional(),
3015
3426
  sha: z.string().optional(),
3016
3427
  prId: z.nullable(z.number()).optional(),
@@ -3071,54 +3482,62 @@ export namespace CancelDeploymentGitSourceDeploymentsResponseType$ {
3071
3482
  }
3072
3483
 
3073
3484
  /** @internal */
3074
- export const CancelDeploymentGitSourceProjectId$inboundSchema: z.ZodType<
3075
- CancelDeploymentGitSourceProjectId,
3076
- z.ZodTypeDef,
3077
- unknown
3078
- > = z.union([z.string(), z.number()]);
3485
+ export const CancelDeploymentGitSourceDeploymentsRepoId$inboundSchema:
3486
+ z.ZodType<CancelDeploymentGitSourceDeploymentsRepoId, z.ZodTypeDef, unknown> =
3487
+ z.union([z.string(), z.number()]);
3079
3488
 
3080
3489
  /** @internal */
3081
- export type CancelDeploymentGitSourceProjectId$Outbound = string | number;
3490
+ export type CancelDeploymentGitSourceDeploymentsRepoId$Outbound =
3491
+ | string
3492
+ | number;
3082
3493
 
3083
3494
  /** @internal */
3084
- export const CancelDeploymentGitSourceProjectId$outboundSchema: z.ZodType<
3085
- CancelDeploymentGitSourceProjectId$Outbound,
3086
- z.ZodTypeDef,
3087
- CancelDeploymentGitSourceProjectId
3088
- > = z.union([z.string(), z.number()]);
3495
+ export const CancelDeploymentGitSourceDeploymentsRepoId$outboundSchema:
3496
+ z.ZodType<
3497
+ CancelDeploymentGitSourceDeploymentsRepoId$Outbound,
3498
+ z.ZodTypeDef,
3499
+ CancelDeploymentGitSourceDeploymentsRepoId
3500
+ > = z.union([z.string(), z.number()]);
3089
3501
 
3090
3502
  /**
3091
3503
  * @internal
3092
3504
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3093
3505
  */
3094
- export namespace CancelDeploymentGitSourceProjectId$ {
3095
- /** @deprecated use `CancelDeploymentGitSourceProjectId$inboundSchema` instead. */
3096
- export const inboundSchema = CancelDeploymentGitSourceProjectId$inboundSchema;
3097
- /** @deprecated use `CancelDeploymentGitSourceProjectId$outboundSchema` instead. */
3506
+ export namespace CancelDeploymentGitSourceDeploymentsRepoId$ {
3507
+ /** @deprecated use `CancelDeploymentGitSourceDeploymentsRepoId$inboundSchema` instead. */
3508
+ export const inboundSchema =
3509
+ CancelDeploymentGitSourceDeploymentsRepoId$inboundSchema;
3510
+ /** @deprecated use `CancelDeploymentGitSourceDeploymentsRepoId$outboundSchema` instead. */
3098
3511
  export const outboundSchema =
3099
- CancelDeploymentGitSourceProjectId$outboundSchema;
3100
- /** @deprecated use `CancelDeploymentGitSourceProjectId$Outbound` instead. */
3101
- export type Outbound = CancelDeploymentGitSourceProjectId$Outbound;
3512
+ CancelDeploymentGitSourceDeploymentsRepoId$outboundSchema;
3513
+ /** @deprecated use `CancelDeploymentGitSourceDeploymentsRepoId$Outbound` instead. */
3514
+ export type Outbound = CancelDeploymentGitSourceDeploymentsRepoId$Outbound;
3102
3515
  }
3103
3516
 
3104
- export function cancelDeploymentGitSourceProjectIdToJSON(
3105
- cancelDeploymentGitSourceProjectId: CancelDeploymentGitSourceProjectId,
3517
+ export function cancelDeploymentGitSourceDeploymentsRepoIdToJSON(
3518
+ cancelDeploymentGitSourceDeploymentsRepoId:
3519
+ CancelDeploymentGitSourceDeploymentsRepoId,
3106
3520
  ): string {
3107
3521
  return JSON.stringify(
3108
- CancelDeploymentGitSourceProjectId$outboundSchema.parse(
3109
- cancelDeploymentGitSourceProjectId,
3522
+ CancelDeploymentGitSourceDeploymentsRepoId$outboundSchema.parse(
3523
+ cancelDeploymentGitSourceDeploymentsRepoId,
3110
3524
  ),
3111
3525
  );
3112
3526
  }
3113
3527
 
3114
- export function cancelDeploymentGitSourceProjectIdFromJSON(
3528
+ export function cancelDeploymentGitSourceDeploymentsRepoIdFromJSON(
3115
3529
  jsonString: string,
3116
- ): SafeParseResult<CancelDeploymentGitSourceProjectId, SDKValidationError> {
3530
+ ): SafeParseResult<
3531
+ CancelDeploymentGitSourceDeploymentsRepoId,
3532
+ SDKValidationError
3533
+ > {
3117
3534
  return safeParse(
3118
3535
  jsonString,
3119
3536
  (x) =>
3120
- CancelDeploymentGitSourceProjectId$inboundSchema.parse(JSON.parse(x)),
3121
- `Failed to parse 'CancelDeploymentGitSourceProjectId' from JSON`,
3537
+ CancelDeploymentGitSourceDeploymentsRepoId$inboundSchema.parse(
3538
+ JSON.parse(x),
3539
+ ),
3540
+ `Failed to parse 'CancelDeploymentGitSourceDeploymentsRepoId' from JSON`,
3122
3541
  );
3123
3542
  }
3124
3543
 
@@ -3129,7 +3548,8 @@ export const CancelDeploymentGitSource3$inboundSchema: z.ZodType<
3129
3548
  unknown
3130
3549
  > = z.object({
3131
3550
  type: CancelDeploymentGitSourceDeploymentsResponseType$inboundSchema,
3132
- projectId: z.union([z.string(), z.number()]),
3551
+ host: z.string(),
3552
+ repoId: z.union([z.string(), z.number()]),
3133
3553
  ref: z.nullable(z.string()).optional(),
3134
3554
  sha: z.string().optional(),
3135
3555
  prId: z.nullable(z.number()).optional(),
@@ -3138,7 +3558,8 @@ export const CancelDeploymentGitSource3$inboundSchema: z.ZodType<
3138
3558
  /** @internal */
3139
3559
  export type CancelDeploymentGitSource3$Outbound = {
3140
3560
  type: string;
3141
- projectId: string | number;
3561
+ host: string;
3562
+ repoId: string | number;
3142
3563
  ref?: string | null | undefined;
3143
3564
  sha?: string | undefined;
3144
3565
  prId?: number | null | undefined;
@@ -3151,7 +3572,8 @@ export const CancelDeploymentGitSource3$outboundSchema: z.ZodType<
3151
3572
  CancelDeploymentGitSource3
3152
3573
  > = z.object({
3153
3574
  type: CancelDeploymentGitSourceDeploymentsResponseType$outboundSchema,
3154
- projectId: z.union([z.string(), z.number()]),
3575
+ host: z.string(),
3576
+ repoId: z.union([z.string(), z.number()]),
3155
3577
  ref: z.nullable(z.string()).optional(),
3156
3578
  sha: z.string().optional(),
3157
3579
  prId: z.nullable(z.number()).optional(),
@@ -3423,28 +3845,34 @@ export const CancelDeploymentGitSource$inboundSchema: z.ZodType<
3423
3845
  z.ZodTypeDef,
3424
3846
  unknown
3425
3847
  > = z.union([
3426
- z.lazy(() => GitSource6$inboundSchema),
3427
3848
  z.lazy(() => GitSource8$inboundSchema),
3849
+ z.lazy(() => GitSource11$inboundSchema),
3428
3850
  z.lazy(() => CancelDeploymentGitSource1$inboundSchema),
3429
- z.lazy(() => CancelDeploymentGitSource3$inboundSchema),
3430
- z.lazy(() => CancelDeploymentGitSource2$inboundSchema),
3431
- z.lazy(() => CancelDeploymentGitSource4$inboundSchema),
3432
3851
  z.lazy(() => CancelDeploymentGitSource5$inboundSchema),
3852
+ z.lazy(() => CancelDeploymentGitSource2$inboundSchema),
3853
+ z.lazy(() => CancelDeploymentGitSource3$inboundSchema),
3854
+ z.lazy(() => GitSource6$inboundSchema),
3433
3855
  z.lazy(() => GitSource7$inboundSchema),
3434
3856
  z.lazy(() => GitSource9$inboundSchema),
3857
+ z.lazy(() => CancelDeploymentGitSource4$inboundSchema),
3858
+ z.lazy(() => GitSource10$inboundSchema),
3859
+ z.lazy(() => GitSource12$inboundSchema),
3435
3860
  ]);
3436
3861
 
3437
3862
  /** @internal */
3438
3863
  export type CancelDeploymentGitSource$Outbound =
3439
- | GitSource6$Outbound
3440
3864
  | GitSource8$Outbound
3865
+ | GitSource11$Outbound
3441
3866
  | CancelDeploymentGitSource1$Outbound
3442
- | CancelDeploymentGitSource3$Outbound
3443
- | CancelDeploymentGitSource2$Outbound
3444
- | CancelDeploymentGitSource4$Outbound
3445
3867
  | CancelDeploymentGitSource5$Outbound
3868
+ | CancelDeploymentGitSource2$Outbound
3869
+ | CancelDeploymentGitSource3$Outbound
3870
+ | GitSource6$Outbound
3446
3871
  | GitSource7$Outbound
3447
- | GitSource9$Outbound;
3872
+ | GitSource9$Outbound
3873
+ | CancelDeploymentGitSource4$Outbound
3874
+ | GitSource10$Outbound
3875
+ | GitSource12$Outbound;
3448
3876
 
3449
3877
  /** @internal */
3450
3878
  export const CancelDeploymentGitSource$outboundSchema: z.ZodType<
@@ -3452,15 +3880,18 @@ export const CancelDeploymentGitSource$outboundSchema: z.ZodType<
3452
3880
  z.ZodTypeDef,
3453
3881
  CancelDeploymentGitSource
3454
3882
  > = z.union([
3455
- z.lazy(() => GitSource6$outboundSchema),
3456
3883
  z.lazy(() => GitSource8$outboundSchema),
3884
+ z.lazy(() => GitSource11$outboundSchema),
3457
3885
  z.lazy(() => CancelDeploymentGitSource1$outboundSchema),
3458
- z.lazy(() => CancelDeploymentGitSource3$outboundSchema),
3459
- z.lazy(() => CancelDeploymentGitSource2$outboundSchema),
3460
- z.lazy(() => CancelDeploymentGitSource4$outboundSchema),
3461
3886
  z.lazy(() => CancelDeploymentGitSource5$outboundSchema),
3887
+ z.lazy(() => CancelDeploymentGitSource2$outboundSchema),
3888
+ z.lazy(() => CancelDeploymentGitSource3$outboundSchema),
3889
+ z.lazy(() => GitSource6$outboundSchema),
3462
3890
  z.lazy(() => GitSource7$outboundSchema),
3463
3891
  z.lazy(() => GitSource9$outboundSchema),
3892
+ z.lazy(() => CancelDeploymentGitSource4$outboundSchema),
3893
+ z.lazy(() => GitSource10$outboundSchema),
3894
+ z.lazy(() => GitSource12$outboundSchema),
3464
3895
  ]);
3465
3896
 
3466
3897
  /**
@@ -5808,6 +6239,7 @@ export const CancelDeploymentResponseBody$inboundSchema: z.ZodType<
5808
6239
  aliasAssigned: z.boolean(),
5809
6240
  bootedAt: z.number(),
5810
6241
  buildingAt: z.number(),
6242
+ buildContainerFinishedAt: z.number().optional(),
5811
6243
  buildSkipped: z.boolean(),
5812
6244
  creator: z.lazy(() => CancelDeploymentCreator$inboundSchema),
5813
6245
  initReadyAt: z.number().optional(),
@@ -5847,15 +6279,18 @@ export const CancelDeploymentResponseBody$inboundSchema: z.ZodType<
5847
6279
  errorStep: z.string().optional(),
5848
6280
  passiveRegions: z.array(z.string()).optional(),
5849
6281
  gitSource: z.union([
5850
- z.lazy(() => GitSource6$inboundSchema),
5851
6282
  z.lazy(() => GitSource8$inboundSchema),
6283
+ z.lazy(() => GitSource11$inboundSchema),
5852
6284
  z.lazy(() => CancelDeploymentGitSource1$inboundSchema),
5853
- z.lazy(() => CancelDeploymentGitSource3$inboundSchema),
5854
- z.lazy(() => CancelDeploymentGitSource2$inboundSchema),
5855
- z.lazy(() => CancelDeploymentGitSource4$inboundSchema),
5856
6285
  z.lazy(() => CancelDeploymentGitSource5$inboundSchema),
6286
+ z.lazy(() => CancelDeploymentGitSource2$inboundSchema),
6287
+ z.lazy(() => CancelDeploymentGitSource3$inboundSchema),
6288
+ z.lazy(() => GitSource6$inboundSchema),
5857
6289
  z.lazy(() => GitSource7$inboundSchema),
5858
6290
  z.lazy(() => GitSource9$inboundSchema),
6291
+ z.lazy(() => CancelDeploymentGitSource4$inboundSchema),
6292
+ z.lazy(() => GitSource10$inboundSchema),
6293
+ z.lazy(() => GitSource12$inboundSchema),
5859
6294
  ]).optional(),
5860
6295
  name: z.string(),
5861
6296
  meta: z.record(z.string()),
@@ -5931,6 +6366,7 @@ export type CancelDeploymentResponseBody$Outbound = {
5931
6366
  aliasAssigned: boolean;
5932
6367
  bootedAt: number;
5933
6368
  buildingAt: number;
6369
+ buildContainerFinishedAt?: number | undefined;
5934
6370
  buildSkipped: boolean;
5935
6371
  creator: CancelDeploymentCreator$Outbound;
5936
6372
  initReadyAt?: number | undefined;
@@ -5966,15 +6402,18 @@ export type CancelDeploymentResponseBody$Outbound = {
5966
6402
  errorStep?: string | undefined;
5967
6403
  passiveRegions?: Array<string> | undefined;
5968
6404
  gitSource?:
5969
- | GitSource6$Outbound
5970
6405
  | GitSource8$Outbound
6406
+ | GitSource11$Outbound
5971
6407
  | CancelDeploymentGitSource1$Outbound
5972
- | CancelDeploymentGitSource3$Outbound
5973
- | CancelDeploymentGitSource2$Outbound
5974
- | CancelDeploymentGitSource4$Outbound
5975
6408
  | CancelDeploymentGitSource5$Outbound
6409
+ | CancelDeploymentGitSource2$Outbound
6410
+ | CancelDeploymentGitSource3$Outbound
6411
+ | GitSource6$Outbound
5976
6412
  | GitSource7$Outbound
5977
6413
  | GitSource9$Outbound
6414
+ | CancelDeploymentGitSource4$Outbound
6415
+ | GitSource10$Outbound
6416
+ | GitSource12$Outbound
5978
6417
  | undefined;
5979
6418
  name: string;
5980
6419
  meta: { [k: string]: string };
@@ -6053,6 +6492,7 @@ export const CancelDeploymentResponseBody$outboundSchema: z.ZodType<
6053
6492
  aliasAssigned: z.boolean(),
6054
6493
  bootedAt: z.number(),
6055
6494
  buildingAt: z.number(),
6495
+ buildContainerFinishedAt: z.number().optional(),
6056
6496
  buildSkipped: z.boolean(),
6057
6497
  creator: z.lazy(() => CancelDeploymentCreator$outboundSchema),
6058
6498
  initReadyAt: z.number().optional(),
@@ -6093,15 +6533,18 @@ export const CancelDeploymentResponseBody$outboundSchema: z.ZodType<
6093
6533
  errorStep: z.string().optional(),
6094
6534
  passiveRegions: z.array(z.string()).optional(),
6095
6535
  gitSource: z.union([
6096
- z.lazy(() => GitSource6$outboundSchema),
6097
6536
  z.lazy(() => GitSource8$outboundSchema),
6537
+ z.lazy(() => GitSource11$outboundSchema),
6098
6538
  z.lazy(() => CancelDeploymentGitSource1$outboundSchema),
6099
- z.lazy(() => CancelDeploymentGitSource3$outboundSchema),
6100
- z.lazy(() => CancelDeploymentGitSource2$outboundSchema),
6101
- z.lazy(() => CancelDeploymentGitSource4$outboundSchema),
6102
6539
  z.lazy(() => CancelDeploymentGitSource5$outboundSchema),
6540
+ z.lazy(() => CancelDeploymentGitSource2$outboundSchema),
6541
+ z.lazy(() => CancelDeploymentGitSource3$outboundSchema),
6542
+ z.lazy(() => GitSource6$outboundSchema),
6103
6543
  z.lazy(() => GitSource7$outboundSchema),
6104
6544
  z.lazy(() => GitSource9$outboundSchema),
6545
+ z.lazy(() => CancelDeploymentGitSource4$outboundSchema),
6546
+ z.lazy(() => GitSource10$outboundSchema),
6547
+ z.lazy(() => GitSource12$outboundSchema),
6105
6548
  ]).optional(),
6106
6549
  name: z.string(),
6107
6550
  meta: z.record(z.string()),