@vercel/sdk 1.6.7 → 1.6.8

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 (142) hide show
  1. package/README.md +17 -29
  2. package/bin/mcp-server.js +2591 -901
  3. package/bin/mcp-server.js.map +29 -26
  4. package/docs/sdks/vercel/README.md +77 -0
  5. package/esm/__tests__/environment.test.js +28 -4
  6. package/esm/__tests__/environment.test.js.map +1 -1
  7. package/esm/__tests__/vercel.test.d.ts +2 -0
  8. package/esm/__tests__/vercel.test.d.ts.map +1 -0
  9. package/esm/__tests__/vercel.test.js +21 -0
  10. package/esm/__tests__/vercel.test.js.map +1 -0
  11. package/esm/funcs/marketplaceUpdateResourceSecretsById.js +2 -2
  12. package/esm/funcs/marketplaceUpdateResourceSecretsById.js.map +1 -1
  13. package/esm/funcs/patchAliasesIdProtectionBypass.d.ts +18 -0
  14. package/esm/funcs/patchAliasesIdProtectionBypass.d.ts.map +1 -0
  15. package/esm/funcs/patchAliasesIdProtectionBypass.js +81 -0
  16. package/esm/funcs/patchAliasesIdProtectionBypass.js.map +1 -0
  17. package/esm/lib/config.d.ts +3 -3
  18. package/esm/lib/config.js +3 -3
  19. package/esm/lib/sdks.d.ts +3 -1
  20. package/esm/lib/sdks.d.ts.map +1 -1
  21. package/esm/lib/sdks.js +6 -11
  22. package/esm/lib/sdks.js.map +1 -1
  23. package/esm/mcp-server/mcp-server.js +1 -1
  24. package/esm/mcp-server/server.d.ts.map +1 -1
  25. package/esm/mcp-server/server.js +3 -1
  26. package/esm/mcp-server/server.js.map +1 -1
  27. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.d.ts +7 -0
  28. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.d.ts.map +1 -0
  29. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.js +26 -0
  30. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.js.map +1 -0
  31. package/esm/models/authuser.d.ts +0 -5
  32. package/esm/models/authuser.d.ts.map +1 -1
  33. package/esm/models/authuser.js +0 -2
  34. package/esm/models/authuser.js.map +1 -1
  35. package/esm/models/canceldeploymentop.d.ts +268 -26
  36. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  37. package/esm/models/canceldeploymentop.js +194 -24
  38. package/esm/models/canceldeploymentop.js.map +1 -1
  39. package/esm/models/createcustomenvironmentop.d.ts +244 -2
  40. package/esm/models/createcustomenvironmentop.d.ts.map +1 -1
  41. package/esm/models/createcustomenvironmentop.js +174 -2
  42. package/esm/models/createcustomenvironmentop.js.map +1 -1
  43. package/esm/models/createdeploymentop.d.ts +357 -58
  44. package/esm/models/createdeploymentop.d.ts.map +1 -1
  45. package/esm/models/createdeploymentop.js +290 -60
  46. package/esm/models/createdeploymentop.js.map +1 -1
  47. package/esm/models/createprojectop.d.ts +328 -71
  48. package/esm/models/createprojectop.d.ts.map +1 -1
  49. package/esm/models/createprojectop.js +253 -75
  50. package/esm/models/createprojectop.js.map +1 -1
  51. package/esm/models/createrecordop.d.ts +43 -43
  52. package/esm/models/createrecordop.d.ts.map +1 -1
  53. package/esm/models/createrecordop.js +51 -51
  54. package/esm/models/createrecordop.js.map +1 -1
  55. package/esm/models/getaliasop.d.ts +8 -8
  56. package/esm/models/getaliasop.d.ts.map +1 -1
  57. package/esm/models/getaliasop.js +12 -13
  58. package/esm/models/getaliasop.js.map +1 -1
  59. package/esm/models/getcustomenvironmentop.d.ts +242 -2
  60. package/esm/models/getcustomenvironmentop.d.ts.map +1 -1
  61. package/esm/models/getcustomenvironmentop.js +175 -2
  62. package/esm/models/getcustomenvironmentop.js.map +1 -1
  63. package/esm/models/getdeploymentop.d.ts +502 -18
  64. package/esm/models/getdeploymentop.d.ts.map +1 -1
  65. package/esm/models/getdeploymentop.js +354 -14
  66. package/esm/models/getdeploymentop.js.map +1 -1
  67. package/esm/models/getprojectdomainsop.d.ts +30 -30
  68. package/esm/models/getprojectdomainsop.d.ts.map +1 -1
  69. package/esm/models/getprojectdomainsop.js +32 -32
  70. package/esm/models/getprojectdomainsop.js.map +1 -1
  71. package/esm/models/getprojectsop.d.ts +342 -95
  72. package/esm/models/getprojectsop.d.ts.map +1 -1
  73. package/esm/models/getprojectsop.js +285 -112
  74. package/esm/models/getprojectsop.js.map +1 -1
  75. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts +242 -2
  76. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts.map +1 -1
  77. package/esm/models/getv9projectsidornamecustomenvironmentsop.js +172 -2
  78. package/esm/models/getv9projectsidornamecustomenvironmentsop.js.map +1 -1
  79. package/esm/models/listaliasesop.d.ts +8 -8
  80. package/esm/models/listaliasesop.d.ts.map +1 -1
  81. package/esm/models/listaliasesop.js +12 -12
  82. package/esm/models/listaliasesop.js.map +1 -1
  83. package/esm/models/patchaliasesidprotectionbypassop.d.ts +409 -0
  84. package/esm/models/patchaliasesidprotectionbypassop.d.ts.map +1 -0
  85. package/esm/models/patchaliasesidprotectionbypassop.js +386 -0
  86. package/esm/models/patchaliasesidprotectionbypassop.js.map +1 -0
  87. package/esm/models/removecustomenvironmentop.d.ts +245 -2
  88. package/esm/models/removecustomenvironmentop.d.ts.map +1 -1
  89. package/esm/models/removecustomenvironmentop.js +173 -2
  90. package/esm/models/removecustomenvironmentop.js.map +1 -1
  91. package/esm/models/updatecustomenvironmentop.d.ts +244 -2
  92. package/esm/models/updatecustomenvironmentop.d.ts.map +1 -1
  93. package/esm/models/updatecustomenvironmentop.js +174 -2
  94. package/esm/models/updatecustomenvironmentop.js.map +1 -1
  95. package/esm/models/updateprojectdatacacheop.d.ts +358 -111
  96. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  97. package/esm/models/updateprojectdatacacheop.js +309 -135
  98. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  99. package/esm/models/updateprojectop.d.ts +342 -95
  100. package/esm/models/updateprojectop.d.ts.map +1 -1
  101. package/esm/models/updateprojectop.js +285 -111
  102. package/esm/models/updateprojectop.js.map +1 -1
  103. package/esm/models/userevent.d.ts +124 -6
  104. package/esm/models/userevent.d.ts.map +1 -1
  105. package/esm/models/userevent.js +114 -6
  106. package/esm/models/userevent.js.map +1 -1
  107. package/esm/sdk/sdk.d.ts +8 -1
  108. package/esm/sdk/sdk.d.ts.map +1 -1
  109. package/esm/sdk/sdk.js +8 -0
  110. package/esm/sdk/sdk.js.map +1 -1
  111. package/jsr.json +1 -1
  112. package/package.json +1 -1
  113. package/src/__tests__/environment.test.ts +28 -4
  114. package/src/__tests__/vercel.test.ts +26 -0
  115. package/src/funcs/marketplaceUpdateResourceSecretsById.ts +2 -2
  116. package/src/funcs/patchAliasesIdProtectionBypass.ts +185 -0
  117. package/src/lib/config.ts +3 -3
  118. package/src/lib/sdks.ts +11 -11
  119. package/src/mcp-server/mcp-server.ts +1 -1
  120. package/src/mcp-server/server.ts +3 -1
  121. package/src/mcp-server/tools/patchAliasesIdProtectionBypass.ts +37 -0
  122. package/src/models/authuser.ts +0 -7
  123. package/src/models/canceldeploymentop.ts +503 -43
  124. package/src/models/createcustomenvironmentop.ts +426 -4
  125. package/src/models/createdeploymentop.ts +640 -117
  126. package/src/models/createprojectop.ts +658 -201
  127. package/src/models/createrecordop.ts +96 -84
  128. package/src/models/getaliasop.ts +16 -14
  129. package/src/models/getcustomenvironmentop.ts +412 -4
  130. package/src/models/getdeploymentop.ts +962 -49
  131. package/src/models/getprojectdomainsop.ts +84 -84
  132. package/src/models/getprojectsop.ts +630 -189
  133. package/src/models/getv9projectsidornamecustomenvironmentsop.ts +473 -4
  134. package/src/models/listaliasesop.ts +19 -16
  135. package/src/models/patchaliasesidprotectionbypassop.ts +786 -0
  136. package/src/models/removecustomenvironmentop.ts +425 -4
  137. package/src/models/updatecustomenvironmentop.ts +437 -4
  138. package/src/models/updateprojectdatacacheop.ts +731 -271
  139. package/src/models/updateprojectop.ts +692 -249
  140. package/src/models/userevent.ts +205 -12
  141. package/src/sdk/sdk.ts +18 -1
  142. package/vercel-spec.json +2646 -161
@@ -100,37 +100,49 @@ export type GitMetadata = {
100
100
  */
101
101
  dirty?: boolean | undefined;
102
102
  };
103
+ export declare const CreateDeploymentGitSourceDeploymentsRequestRequestBodyType: {
104
+ readonly Bitbucket: "bitbucket";
105
+ };
106
+ export type CreateDeploymentGitSourceDeploymentsRequestRequestBodyType = ClosedEnum<typeof CreateDeploymentGitSourceDeploymentsRequestRequestBodyType>;
107
+ export type GitSource6 = {
108
+ owner: string;
109
+ ref: string;
110
+ sha?: string | undefined;
111
+ slug: string;
112
+ type: CreateDeploymentGitSourceDeploymentsRequestRequestBodyType;
113
+ };
103
114
  export declare const CreateDeploymentGitSourceDeploymentsRequestType: {
104
115
  readonly Bitbucket: "bitbucket";
105
116
  };
106
117
  export type CreateDeploymentGitSourceDeploymentsRequestType = ClosedEnum<typeof CreateDeploymentGitSourceDeploymentsRequestType>;
107
118
  export type GitSource5 = {
108
- owner: string;
109
119
  ref: string;
120
+ repoUuid: string;
110
121
  sha?: string | undefined;
111
- slug: string;
112
122
  type: CreateDeploymentGitSourceDeploymentsRequestType;
123
+ workspaceUuid?: string | undefined;
113
124
  };
125
+ export type ProjectId = number | string;
114
126
  export declare const CreateDeploymentGitSourceDeploymentsType: {
115
- readonly Bitbucket: "bitbucket";
127
+ readonly Gitlab: "gitlab";
116
128
  };
117
129
  export type CreateDeploymentGitSourceDeploymentsType = ClosedEnum<typeof CreateDeploymentGitSourceDeploymentsType>;
118
130
  export type GitSource4 = {
131
+ projectId: number | string;
119
132
  ref: string;
120
- repoUuid: string;
121
133
  sha?: string | undefined;
122
134
  type: CreateDeploymentGitSourceDeploymentsType;
123
- workspaceUuid?: string | undefined;
124
135
  };
125
- export type ProjectId = number | string;
126
136
  export declare const CreateDeploymentGitSourceType: {
127
- readonly Gitlab: "gitlab";
137
+ readonly GithubCustomHost: "github-custom-host";
128
138
  };
129
139
  export type CreateDeploymentGitSourceType = ClosedEnum<typeof CreateDeploymentGitSourceType>;
130
140
  export type GitSource3 = {
131
- projectId: number | string;
141
+ org: string;
132
142
  ref: string;
143
+ repo: string;
133
144
  sha?: string | undefined;
145
+ host: string;
134
146
  type: CreateDeploymentGitSourceType;
135
147
  };
136
148
  export declare const GitSourceType: {
@@ -145,20 +157,20 @@ export type GitSource2 = {
145
157
  type: GitSourceType;
146
158
  };
147
159
  export type RepoId = number | string;
148
- export declare const CreateDeploymentGitSourceDeploymentsRequestRequestBodyType: {
160
+ export declare const CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type: {
149
161
  readonly Github: "github";
150
162
  };
151
- export type CreateDeploymentGitSourceDeploymentsRequestRequestBodyType = ClosedEnum<typeof CreateDeploymentGitSourceDeploymentsRequestRequestBodyType>;
163
+ export type CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type = ClosedEnum<typeof CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type>;
152
164
  export type GitSource1 = {
153
165
  ref: string;
154
166
  repoId: number | string;
155
167
  sha?: string | undefined;
156
- type: CreateDeploymentGitSourceDeploymentsRequestRequestBodyType;
168
+ type: CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type;
157
169
  };
158
170
  /**
159
171
  * Defines the Git Repository source to be deployed. This property can not be used in combination with `files`.
160
172
  */
161
- export type GitSource = GitSource1 | GitSource3 | GitSource2 | GitSource4 | GitSource5;
173
+ export type GitSource = GitSource1 | GitSource4 | GitSource2 | GitSource5 | GitSource6 | GitSource3;
162
174
  /**
163
175
  * The framework that is being used for this project. When `null` is used no framework is selected
164
176
  */
@@ -299,7 +311,7 @@ export type CreateDeploymentRequestBody = {
299
311
  /**
300
312
  * Defines the Git Repository source to be deployed. This property can not be used in combination with `files`.
301
313
  */
302
- gitSource?: GitSource1 | GitSource3 | GitSource2 | GitSource4 | GitSource5 | undefined;
314
+ gitSource?: GitSource1 | GitSource4 | GitSource2 | GitSource5 | GitSource6 | GitSource3 | undefined;
303
315
  /**
304
316
  * An object containing the deployment's metadata. Multiple key-value pairs can be attached to a deployment
305
317
  */
@@ -560,8 +572,116 @@ export type CreateDeploymentTeam = {
560
572
  export type CustomEnvironment2 = {
561
573
  id: string;
562
574
  };
563
- export type CustomEnvironment1 = {};
564
- export type CustomEnvironment = CustomEnvironment1 | CustomEnvironment2;
575
+ /**
576
+ * The type of environment (production, preview, or development)
577
+ */
578
+ export declare const CustomEnvironmentType: {
579
+ readonly Production: "production";
580
+ readonly Preview: "preview";
581
+ readonly Development: "development";
582
+ };
583
+ /**
584
+ * The type of environment (production, preview, or development)
585
+ */
586
+ export type CustomEnvironmentType = ClosedEnum<typeof CustomEnvironmentType>;
587
+ /**
588
+ * The type of matching to perform
589
+ */
590
+ export declare const CreateDeploymentCustomEnvironmentType: {
591
+ readonly StartsWith: "startsWith";
592
+ readonly Equals: "equals";
593
+ readonly EndsWith: "endsWith";
594
+ };
595
+ /**
596
+ * The type of matching to perform
597
+ */
598
+ export type CreateDeploymentCustomEnvironmentType = ClosedEnum<typeof CreateDeploymentCustomEnvironmentType>;
599
+ /**
600
+ * Configuration for matching git branches to this environment
601
+ */
602
+ export type CustomEnvironmentBranchMatcher = {
603
+ /**
604
+ * The type of matching to perform
605
+ */
606
+ type: CreateDeploymentCustomEnvironmentType;
607
+ /**
608
+ * The pattern to match against branch names
609
+ */
610
+ pattern: string;
611
+ };
612
+ /**
613
+ * 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`.
614
+ */
615
+ export type CustomEnvironmentVerification = {
616
+ type: string;
617
+ domain: string;
618
+ value: string;
619
+ reason: string;
620
+ };
621
+ /**
622
+ * List of domains associated with this environment
623
+ */
624
+ export type CustomEnvironmentDomains = {
625
+ name: string;
626
+ apexName: string;
627
+ projectId: string;
628
+ redirect?: string | null | undefined;
629
+ redirectStatusCode?: number | null | undefined;
630
+ gitBranch?: string | null | undefined;
631
+ customEnvironmentId?: string | null | undefined;
632
+ updatedAt?: number | undefined;
633
+ createdAt?: number | undefined;
634
+ /**
635
+ * `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.
636
+ */
637
+ verified: boolean;
638
+ /**
639
+ * 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`.
640
+ */
641
+ verification?: Array<CustomEnvironmentVerification> | undefined;
642
+ };
643
+ /**
644
+ * Internal representation of a custom environment with all required properties
645
+ */
646
+ export type CustomEnvironment1 = {
647
+ /**
648
+ * Unique identifier for the custom environment (format: env_*)
649
+ */
650
+ id: string;
651
+ /**
652
+ * URL-friendly name of the environment
653
+ */
654
+ slug: string;
655
+ /**
656
+ * The type of environment (production, preview, or development)
657
+ */
658
+ type: CustomEnvironmentType;
659
+ /**
660
+ * Optional description of the environment's purpose
661
+ */
662
+ description?: string | undefined;
663
+ /**
664
+ * Configuration for matching git branches to this environment
665
+ */
666
+ branchMatcher?: CustomEnvironmentBranchMatcher | undefined;
667
+ /**
668
+ * List of domains associated with this environment
669
+ */
670
+ domains?: Array<CustomEnvironmentDomains> | undefined;
671
+ /**
672
+ * List of aliases for the current deployment
673
+ */
674
+ currentDeploymentAliases?: Array<string> | undefined;
675
+ /**
676
+ * Timestamp when the environment was created
677
+ */
678
+ createdAt: number;
679
+ /**
680
+ * Timestamp when the environment was last updated
681
+ */
682
+ updatedAt: number;
683
+ };
684
+ export type CustomEnvironment = CustomEnvironment2 | CustomEnvironment1;
565
685
  export declare const CreateDeploymentType: {
566
686
  readonly Lambdas: "LAMBDAS";
567
687
  };
@@ -590,7 +710,7 @@ export type CreateDeploymentGitSource11 = {
590
710
  projectId: number;
591
711
  };
592
712
  export declare const CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type: {
593
- readonly Github: "github";
713
+ readonly GithubCustomHost: "github-custom-host";
594
714
  };
595
715
  export type CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type = ClosedEnum<typeof CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type>;
596
716
  export type CreateDeploymentGitSource10 = {
@@ -1093,7 +1213,7 @@ export type CreateDeploymentResponseBody = {
1093
1213
  userAliases?: Array<string> | undefined;
1094
1214
  previewCommentsEnabled?: boolean | undefined;
1095
1215
  ttyBuildLogs?: boolean | undefined;
1096
- customEnvironment?: CustomEnvironment1 | CustomEnvironment2 | undefined;
1216
+ customEnvironment?: CustomEnvironment2 | CustomEnvironment1 | undefined;
1097
1217
  type: CreateDeploymentType;
1098
1218
  name: string;
1099
1219
  createdAt: number;
@@ -1322,6 +1442,50 @@ export declare namespace GitMetadata$ {
1322
1442
  export declare function gitMetadataToJSON(gitMetadata: GitMetadata): string;
1323
1443
  export declare function gitMetadataFromJSON(jsonString: string): SafeParseResult<GitMetadata, SDKValidationError>;
1324
1444
  /** @internal */
1445
+ export declare const CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$inboundSchema: z.ZodNativeEnum<typeof CreateDeploymentGitSourceDeploymentsRequestRequestBodyType>;
1446
+ /** @internal */
1447
+ export declare const CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$outboundSchema: z.ZodNativeEnum<typeof CreateDeploymentGitSourceDeploymentsRequestRequestBodyType>;
1448
+ /**
1449
+ * @internal
1450
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1451
+ */
1452
+ export declare namespace CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$ {
1453
+ /** @deprecated use `CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$inboundSchema` instead. */
1454
+ const inboundSchema: z.ZodNativeEnum<{
1455
+ readonly Bitbucket: "bitbucket";
1456
+ }>;
1457
+ /** @deprecated use `CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$outboundSchema` instead. */
1458
+ const outboundSchema: z.ZodNativeEnum<{
1459
+ readonly Bitbucket: "bitbucket";
1460
+ }>;
1461
+ }
1462
+ /** @internal */
1463
+ export declare const GitSource6$inboundSchema: z.ZodType<GitSource6, z.ZodTypeDef, unknown>;
1464
+ /** @internal */
1465
+ export type GitSource6$Outbound = {
1466
+ owner: string;
1467
+ ref: string;
1468
+ sha?: string | undefined;
1469
+ slug: string;
1470
+ type: string;
1471
+ };
1472
+ /** @internal */
1473
+ export declare const GitSource6$outboundSchema: z.ZodType<GitSource6$Outbound, z.ZodTypeDef, GitSource6>;
1474
+ /**
1475
+ * @internal
1476
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1477
+ */
1478
+ export declare namespace GitSource6$ {
1479
+ /** @deprecated use `GitSource6$inboundSchema` instead. */
1480
+ const inboundSchema: z.ZodType<GitSource6, z.ZodTypeDef, unknown>;
1481
+ /** @deprecated use `GitSource6$outboundSchema` instead. */
1482
+ const outboundSchema: z.ZodType<GitSource6$Outbound, z.ZodTypeDef, GitSource6>;
1483
+ /** @deprecated use `GitSource6$Outbound` instead. */
1484
+ type Outbound = GitSource6$Outbound;
1485
+ }
1486
+ export declare function gitSource6ToJSON(gitSource6: GitSource6): string;
1487
+ export declare function gitSource6FromJSON(jsonString: string): SafeParseResult<GitSource6, SDKValidationError>;
1488
+ /** @internal */
1325
1489
  export declare const CreateDeploymentGitSourceDeploymentsRequestType$inboundSchema: z.ZodNativeEnum<typeof CreateDeploymentGitSourceDeploymentsRequestType>;
1326
1490
  /** @internal */
1327
1491
  export declare const CreateDeploymentGitSourceDeploymentsRequestType$outboundSchema: z.ZodNativeEnum<typeof CreateDeploymentGitSourceDeploymentsRequestType>;
@@ -1343,11 +1507,11 @@ export declare namespace CreateDeploymentGitSourceDeploymentsRequestType$ {
1343
1507
  export declare const GitSource5$inboundSchema: z.ZodType<GitSource5, z.ZodTypeDef, unknown>;
1344
1508
  /** @internal */
1345
1509
  export type GitSource5$Outbound = {
1346
- owner: string;
1347
1510
  ref: string;
1511
+ repoUuid: string;
1348
1512
  sha?: string | undefined;
1349
- slug: string;
1350
1513
  type: string;
1514
+ workspaceUuid?: string | undefined;
1351
1515
  };
1352
1516
  /** @internal */
1353
1517
  export declare const GitSource5$outboundSchema: z.ZodType<GitSource5$Outbound, z.ZodTypeDef, GitSource5>;
@@ -1366,6 +1530,26 @@ export declare namespace GitSource5$ {
1366
1530
  export declare function gitSource5ToJSON(gitSource5: GitSource5): string;
1367
1531
  export declare function gitSource5FromJSON(jsonString: string): SafeParseResult<GitSource5, SDKValidationError>;
1368
1532
  /** @internal */
1533
+ export declare const ProjectId$inboundSchema: z.ZodType<ProjectId, z.ZodTypeDef, unknown>;
1534
+ /** @internal */
1535
+ export type ProjectId$Outbound = number | string;
1536
+ /** @internal */
1537
+ export declare const ProjectId$outboundSchema: z.ZodType<ProjectId$Outbound, z.ZodTypeDef, ProjectId>;
1538
+ /**
1539
+ * @internal
1540
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1541
+ */
1542
+ export declare namespace ProjectId$ {
1543
+ /** @deprecated use `ProjectId$inboundSchema` instead. */
1544
+ const inboundSchema: z.ZodType<ProjectId, z.ZodTypeDef, unknown>;
1545
+ /** @deprecated use `ProjectId$outboundSchema` instead. */
1546
+ const outboundSchema: z.ZodType<ProjectId$Outbound, z.ZodTypeDef, ProjectId>;
1547
+ /** @deprecated use `ProjectId$Outbound` instead. */
1548
+ type Outbound = ProjectId$Outbound;
1549
+ }
1550
+ export declare function projectIdToJSON(projectId: ProjectId): string;
1551
+ export declare function projectIdFromJSON(jsonString: string): SafeParseResult<ProjectId, SDKValidationError>;
1552
+ /** @internal */
1369
1553
  export declare const CreateDeploymentGitSourceDeploymentsType$inboundSchema: z.ZodNativeEnum<typeof CreateDeploymentGitSourceDeploymentsType>;
1370
1554
  /** @internal */
1371
1555
  export declare const CreateDeploymentGitSourceDeploymentsType$outboundSchema: z.ZodNativeEnum<typeof CreateDeploymentGitSourceDeploymentsType>;
@@ -1376,22 +1560,21 @@ export declare const CreateDeploymentGitSourceDeploymentsType$outboundSchema: z.
1376
1560
  export declare namespace CreateDeploymentGitSourceDeploymentsType$ {
1377
1561
  /** @deprecated use `CreateDeploymentGitSourceDeploymentsType$inboundSchema` instead. */
1378
1562
  const inboundSchema: z.ZodNativeEnum<{
1379
- readonly Bitbucket: "bitbucket";
1563
+ readonly Gitlab: "gitlab";
1380
1564
  }>;
1381
1565
  /** @deprecated use `CreateDeploymentGitSourceDeploymentsType$outboundSchema` instead. */
1382
1566
  const outboundSchema: z.ZodNativeEnum<{
1383
- readonly Bitbucket: "bitbucket";
1567
+ readonly Gitlab: "gitlab";
1384
1568
  }>;
1385
1569
  }
1386
1570
  /** @internal */
1387
1571
  export declare const GitSource4$inboundSchema: z.ZodType<GitSource4, z.ZodTypeDef, unknown>;
1388
1572
  /** @internal */
1389
1573
  export type GitSource4$Outbound = {
1574
+ projectId: number | string;
1390
1575
  ref: string;
1391
- repoUuid: string;
1392
1576
  sha?: string | undefined;
1393
1577
  type: string;
1394
- workspaceUuid?: string | undefined;
1395
1578
  };
1396
1579
  /** @internal */
1397
1580
  export declare const GitSource4$outboundSchema: z.ZodType<GitSource4$Outbound, z.ZodTypeDef, GitSource4>;
@@ -1410,26 +1593,6 @@ export declare namespace GitSource4$ {
1410
1593
  export declare function gitSource4ToJSON(gitSource4: GitSource4): string;
1411
1594
  export declare function gitSource4FromJSON(jsonString: string): SafeParseResult<GitSource4, SDKValidationError>;
1412
1595
  /** @internal */
1413
- export declare const ProjectId$inboundSchema: z.ZodType<ProjectId, z.ZodTypeDef, unknown>;
1414
- /** @internal */
1415
- export type ProjectId$Outbound = number | string;
1416
- /** @internal */
1417
- export declare const ProjectId$outboundSchema: z.ZodType<ProjectId$Outbound, z.ZodTypeDef, ProjectId>;
1418
- /**
1419
- * @internal
1420
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1421
- */
1422
- export declare namespace ProjectId$ {
1423
- /** @deprecated use `ProjectId$inboundSchema` instead. */
1424
- const inboundSchema: z.ZodType<ProjectId, z.ZodTypeDef, unknown>;
1425
- /** @deprecated use `ProjectId$outboundSchema` instead. */
1426
- const outboundSchema: z.ZodType<ProjectId$Outbound, z.ZodTypeDef, ProjectId>;
1427
- /** @deprecated use `ProjectId$Outbound` instead. */
1428
- type Outbound = ProjectId$Outbound;
1429
- }
1430
- export declare function projectIdToJSON(projectId: ProjectId): string;
1431
- export declare function projectIdFromJSON(jsonString: string): SafeParseResult<ProjectId, SDKValidationError>;
1432
- /** @internal */
1433
1596
  export declare const CreateDeploymentGitSourceType$inboundSchema: z.ZodNativeEnum<typeof CreateDeploymentGitSourceType>;
1434
1597
  /** @internal */
1435
1598
  export declare const CreateDeploymentGitSourceType$outboundSchema: z.ZodNativeEnum<typeof CreateDeploymentGitSourceType>;
@@ -1440,20 +1603,22 @@ export declare const CreateDeploymentGitSourceType$outboundSchema: z.ZodNativeEn
1440
1603
  export declare namespace CreateDeploymentGitSourceType$ {
1441
1604
  /** @deprecated use `CreateDeploymentGitSourceType$inboundSchema` instead. */
1442
1605
  const inboundSchema: z.ZodNativeEnum<{
1443
- readonly Gitlab: "gitlab";
1606
+ readonly GithubCustomHost: "github-custom-host";
1444
1607
  }>;
1445
1608
  /** @deprecated use `CreateDeploymentGitSourceType$outboundSchema` instead. */
1446
1609
  const outboundSchema: z.ZodNativeEnum<{
1447
- readonly Gitlab: "gitlab";
1610
+ readonly GithubCustomHost: "github-custom-host";
1448
1611
  }>;
1449
1612
  }
1450
1613
  /** @internal */
1451
1614
  export declare const GitSource3$inboundSchema: z.ZodType<GitSource3, z.ZodTypeDef, unknown>;
1452
1615
  /** @internal */
1453
1616
  export type GitSource3$Outbound = {
1454
- projectId: number | string;
1617
+ org: string;
1455
1618
  ref: string;
1619
+ repo: string;
1456
1620
  sha?: string | undefined;
1621
+ host: string;
1457
1622
  type: string;
1458
1623
  };
1459
1624
  /** @internal */
@@ -1537,19 +1702,19 @@ export declare namespace RepoId$ {
1537
1702
  export declare function repoIdToJSON(repoId: RepoId): string;
1538
1703
  export declare function repoIdFromJSON(jsonString: string): SafeParseResult<RepoId, SDKValidationError>;
1539
1704
  /** @internal */
1540
- export declare const CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$inboundSchema: z.ZodNativeEnum<typeof CreateDeploymentGitSourceDeploymentsRequestRequestBodyType>;
1705
+ export declare const CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type$inboundSchema: z.ZodNativeEnum<typeof CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type>;
1541
1706
  /** @internal */
1542
- export declare const CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$outboundSchema: z.ZodNativeEnum<typeof CreateDeploymentGitSourceDeploymentsRequestRequestBodyType>;
1707
+ export declare const CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type$outboundSchema: z.ZodNativeEnum<typeof CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type>;
1543
1708
  /**
1544
1709
  * @internal
1545
1710
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1546
1711
  */
1547
- export declare namespace CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$ {
1548
- /** @deprecated use `CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$inboundSchema` instead. */
1712
+ export declare namespace CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type$ {
1713
+ /** @deprecated use `CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type$inboundSchema` instead. */
1549
1714
  const inboundSchema: z.ZodNativeEnum<{
1550
1715
  readonly Github: "github";
1551
1716
  }>;
1552
- /** @deprecated use `CreateDeploymentGitSourceDeploymentsRequestRequestBodyType$outboundSchema` instead. */
1717
+ /** @deprecated use `CreateDeploymentGitSourceDeploymentsRequestRequestBody1Type$outboundSchema` instead. */
1553
1718
  const outboundSchema: z.ZodNativeEnum<{
1554
1719
  readonly Github: "github";
1555
1720
  }>;
@@ -1582,7 +1747,7 @@ export declare function gitSource1FromJSON(jsonString: string): SafeParseResult<
1582
1747
  /** @internal */
1583
1748
  export declare const GitSource$inboundSchema: z.ZodType<GitSource, z.ZodTypeDef, unknown>;
1584
1749
  /** @internal */
1585
- export type GitSource$Outbound = GitSource1$Outbound | GitSource3$Outbound | GitSource2$Outbound | GitSource4$Outbound | GitSource5$Outbound;
1750
+ export type GitSource$Outbound = GitSource1$Outbound | GitSource4$Outbound | GitSource2$Outbound | GitSource5$Outbound | GitSource6$Outbound | GitSource3$Outbound;
1586
1751
  /** @internal */
1587
1752
  export declare const GitSource$outboundSchema: z.ZodType<GitSource$Outbound, z.ZodTypeDef, GitSource>;
1588
1753
  /**
@@ -1779,7 +1944,7 @@ export type CreateDeploymentRequestBody$Outbound = {
1779
1944
  deploymentId?: string | undefined;
1780
1945
  files?: Array<InlinedFile$Outbound | UploadedFile$Outbound> | undefined;
1781
1946
  gitMetadata?: GitMetadata$Outbound | undefined;
1782
- gitSource?: GitSource1$Outbound | GitSource3$Outbound | GitSource2$Outbound | GitSource4$Outbound | GitSource5$Outbound | undefined;
1947
+ gitSource?: GitSource1$Outbound | GitSource4$Outbound | GitSource2$Outbound | GitSource5$Outbound | GitSource6$Outbound | GitSource3$Outbound | undefined;
1783
1948
  meta?: {
1784
1949
  [k: string]: string;
1785
1950
  } | undefined;
@@ -2456,9 +2621,143 @@ export declare namespace CustomEnvironment2$ {
2456
2621
  export declare function customEnvironment2ToJSON(customEnvironment2: CustomEnvironment2): string;
2457
2622
  export declare function customEnvironment2FromJSON(jsonString: string): SafeParseResult<CustomEnvironment2, SDKValidationError>;
2458
2623
  /** @internal */
2624
+ export declare const CustomEnvironmentType$inboundSchema: z.ZodNativeEnum<typeof CustomEnvironmentType>;
2625
+ /** @internal */
2626
+ export declare const CustomEnvironmentType$outboundSchema: z.ZodNativeEnum<typeof CustomEnvironmentType>;
2627
+ /**
2628
+ * @internal
2629
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2630
+ */
2631
+ export declare namespace CustomEnvironmentType$ {
2632
+ /** @deprecated use `CustomEnvironmentType$inboundSchema` instead. */
2633
+ const inboundSchema: z.ZodNativeEnum<{
2634
+ readonly Production: "production";
2635
+ readonly Preview: "preview";
2636
+ readonly Development: "development";
2637
+ }>;
2638
+ /** @deprecated use `CustomEnvironmentType$outboundSchema` instead. */
2639
+ const outboundSchema: z.ZodNativeEnum<{
2640
+ readonly Production: "production";
2641
+ readonly Preview: "preview";
2642
+ readonly Development: "development";
2643
+ }>;
2644
+ }
2645
+ /** @internal */
2646
+ export declare const CreateDeploymentCustomEnvironmentType$inboundSchema: z.ZodNativeEnum<typeof CreateDeploymentCustomEnvironmentType>;
2647
+ /** @internal */
2648
+ export declare const CreateDeploymentCustomEnvironmentType$outboundSchema: z.ZodNativeEnum<typeof CreateDeploymentCustomEnvironmentType>;
2649
+ /**
2650
+ * @internal
2651
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2652
+ */
2653
+ export declare namespace CreateDeploymentCustomEnvironmentType$ {
2654
+ /** @deprecated use `CreateDeploymentCustomEnvironmentType$inboundSchema` instead. */
2655
+ const inboundSchema: z.ZodNativeEnum<{
2656
+ readonly StartsWith: "startsWith";
2657
+ readonly Equals: "equals";
2658
+ readonly EndsWith: "endsWith";
2659
+ }>;
2660
+ /** @deprecated use `CreateDeploymentCustomEnvironmentType$outboundSchema` instead. */
2661
+ const outboundSchema: z.ZodNativeEnum<{
2662
+ readonly StartsWith: "startsWith";
2663
+ readonly Equals: "equals";
2664
+ readonly EndsWith: "endsWith";
2665
+ }>;
2666
+ }
2667
+ /** @internal */
2668
+ export declare const CustomEnvironmentBranchMatcher$inboundSchema: z.ZodType<CustomEnvironmentBranchMatcher, z.ZodTypeDef, unknown>;
2669
+ /** @internal */
2670
+ export type CustomEnvironmentBranchMatcher$Outbound = {
2671
+ type: string;
2672
+ pattern: string;
2673
+ };
2674
+ /** @internal */
2675
+ export declare const CustomEnvironmentBranchMatcher$outboundSchema: z.ZodType<CustomEnvironmentBranchMatcher$Outbound, z.ZodTypeDef, CustomEnvironmentBranchMatcher>;
2676
+ /**
2677
+ * @internal
2678
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2679
+ */
2680
+ export declare namespace CustomEnvironmentBranchMatcher$ {
2681
+ /** @deprecated use `CustomEnvironmentBranchMatcher$inboundSchema` instead. */
2682
+ const inboundSchema: z.ZodType<CustomEnvironmentBranchMatcher, z.ZodTypeDef, unknown>;
2683
+ /** @deprecated use `CustomEnvironmentBranchMatcher$outboundSchema` instead. */
2684
+ const outboundSchema: z.ZodType<CustomEnvironmentBranchMatcher$Outbound, z.ZodTypeDef, CustomEnvironmentBranchMatcher>;
2685
+ /** @deprecated use `CustomEnvironmentBranchMatcher$Outbound` instead. */
2686
+ type Outbound = CustomEnvironmentBranchMatcher$Outbound;
2687
+ }
2688
+ export declare function customEnvironmentBranchMatcherToJSON(customEnvironmentBranchMatcher: CustomEnvironmentBranchMatcher): string;
2689
+ export declare function customEnvironmentBranchMatcherFromJSON(jsonString: string): SafeParseResult<CustomEnvironmentBranchMatcher, SDKValidationError>;
2690
+ /** @internal */
2691
+ export declare const CustomEnvironmentVerification$inboundSchema: z.ZodType<CustomEnvironmentVerification, z.ZodTypeDef, unknown>;
2692
+ /** @internal */
2693
+ export type CustomEnvironmentVerification$Outbound = {
2694
+ type: string;
2695
+ domain: string;
2696
+ value: string;
2697
+ reason: string;
2698
+ };
2699
+ /** @internal */
2700
+ export declare const CustomEnvironmentVerification$outboundSchema: z.ZodType<CustomEnvironmentVerification$Outbound, z.ZodTypeDef, CustomEnvironmentVerification>;
2701
+ /**
2702
+ * @internal
2703
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2704
+ */
2705
+ export declare namespace CustomEnvironmentVerification$ {
2706
+ /** @deprecated use `CustomEnvironmentVerification$inboundSchema` instead. */
2707
+ const inboundSchema: z.ZodType<CustomEnvironmentVerification, z.ZodTypeDef, unknown>;
2708
+ /** @deprecated use `CustomEnvironmentVerification$outboundSchema` instead. */
2709
+ const outboundSchema: z.ZodType<CustomEnvironmentVerification$Outbound, z.ZodTypeDef, CustomEnvironmentVerification>;
2710
+ /** @deprecated use `CustomEnvironmentVerification$Outbound` instead. */
2711
+ type Outbound = CustomEnvironmentVerification$Outbound;
2712
+ }
2713
+ export declare function customEnvironmentVerificationToJSON(customEnvironmentVerification: CustomEnvironmentVerification): string;
2714
+ export declare function customEnvironmentVerificationFromJSON(jsonString: string): SafeParseResult<CustomEnvironmentVerification, SDKValidationError>;
2715
+ /** @internal */
2716
+ export declare const CustomEnvironmentDomains$inboundSchema: z.ZodType<CustomEnvironmentDomains, z.ZodTypeDef, unknown>;
2717
+ /** @internal */
2718
+ export type CustomEnvironmentDomains$Outbound = {
2719
+ name: string;
2720
+ apexName: string;
2721
+ projectId: string;
2722
+ redirect?: string | null | undefined;
2723
+ redirectStatusCode?: number | null | undefined;
2724
+ gitBranch?: string | null | undefined;
2725
+ customEnvironmentId?: string | null | undefined;
2726
+ updatedAt?: number | undefined;
2727
+ createdAt?: number | undefined;
2728
+ verified: boolean;
2729
+ verification?: Array<CustomEnvironmentVerification$Outbound> | undefined;
2730
+ };
2731
+ /** @internal */
2732
+ export declare const CustomEnvironmentDomains$outboundSchema: z.ZodType<CustomEnvironmentDomains$Outbound, z.ZodTypeDef, CustomEnvironmentDomains>;
2733
+ /**
2734
+ * @internal
2735
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2736
+ */
2737
+ export declare namespace CustomEnvironmentDomains$ {
2738
+ /** @deprecated use `CustomEnvironmentDomains$inboundSchema` instead. */
2739
+ const inboundSchema: z.ZodType<CustomEnvironmentDomains, z.ZodTypeDef, unknown>;
2740
+ /** @deprecated use `CustomEnvironmentDomains$outboundSchema` instead. */
2741
+ const outboundSchema: z.ZodType<CustomEnvironmentDomains$Outbound, z.ZodTypeDef, CustomEnvironmentDomains>;
2742
+ /** @deprecated use `CustomEnvironmentDomains$Outbound` instead. */
2743
+ type Outbound = CustomEnvironmentDomains$Outbound;
2744
+ }
2745
+ export declare function customEnvironmentDomainsToJSON(customEnvironmentDomains: CustomEnvironmentDomains): string;
2746
+ export declare function customEnvironmentDomainsFromJSON(jsonString: string): SafeParseResult<CustomEnvironmentDomains, SDKValidationError>;
2747
+ /** @internal */
2459
2748
  export declare const CustomEnvironment1$inboundSchema: z.ZodType<CustomEnvironment1, z.ZodTypeDef, unknown>;
2460
2749
  /** @internal */
2461
- export type CustomEnvironment1$Outbound = {};
2750
+ export type CustomEnvironment1$Outbound = {
2751
+ id: string;
2752
+ slug: string;
2753
+ type: string;
2754
+ description?: string | undefined;
2755
+ branchMatcher?: CustomEnvironmentBranchMatcher$Outbound | undefined;
2756
+ domains?: Array<CustomEnvironmentDomains$Outbound> | undefined;
2757
+ currentDeploymentAliases?: Array<string> | undefined;
2758
+ createdAt: number;
2759
+ updatedAt: number;
2760
+ };
2462
2761
  /** @internal */
2463
2762
  export declare const CustomEnvironment1$outboundSchema: z.ZodType<CustomEnvironment1$Outbound, z.ZodTypeDef, CustomEnvironment1>;
2464
2763
  /**
@@ -2478,7 +2777,7 @@ export declare function customEnvironment1FromJSON(jsonString: string): SafePars
2478
2777
  /** @internal */
2479
2778
  export declare const CustomEnvironment$inboundSchema: z.ZodType<CustomEnvironment, z.ZodTypeDef, unknown>;
2480
2779
  /** @internal */
2481
- export type CustomEnvironment$Outbound = CustomEnvironment1$Outbound | CustomEnvironment2$Outbound;
2780
+ export type CustomEnvironment$Outbound = CustomEnvironment2$Outbound | CustomEnvironment1$Outbound;
2482
2781
  /** @internal */
2483
2782
  export declare const CustomEnvironment$outboundSchema: z.ZodType<CustomEnvironment$Outbound, z.ZodTypeDef, CustomEnvironment>;
2484
2783
  /**
@@ -2613,11 +2912,11 @@ export declare const CreateDeploymentGitSourceDeploymentsResponse200ApplicationJ
2613
2912
  export declare namespace CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type$ {
2614
2913
  /** @deprecated use `CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type$inboundSchema` instead. */
2615
2914
  const inboundSchema: z.ZodNativeEnum<{
2616
- readonly Github: "github";
2915
+ readonly GithubCustomHost: "github-custom-host";
2617
2916
  }>;
2618
2917
  /** @deprecated use `CreateDeploymentGitSourceDeploymentsResponse200ApplicationJSONResponseBody10Type$outboundSchema` instead. */
2619
2918
  const outboundSchema: z.ZodNativeEnum<{
2620
- readonly Github: "github";
2919
+ readonly GithubCustomHost: "github-custom-host";
2621
2920
  }>;
2622
2921
  }
2623
2922
  /** @internal */
@@ -4361,7 +4660,7 @@ export type CreateDeploymentResponseBody$Outbound = {
4361
4660
  userAliases?: Array<string> | undefined;
4362
4661
  previewCommentsEnabled?: boolean | undefined;
4363
4662
  ttyBuildLogs?: boolean | undefined;
4364
- customEnvironment?: CustomEnvironment1$Outbound | CustomEnvironment2$Outbound | undefined;
4663
+ customEnvironment?: CustomEnvironment2$Outbound | CustomEnvironment1$Outbound | undefined;
4365
4664
  type: string;
4366
4665
  name: string;
4367
4666
  createdAt: number;