@vercel/sdk 1.6.6 → 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 (154) hide show
  1. package/README.md +19 -31
  2. package/bin/mcp-server.js +2608 -910
  3. package/bin/mcp-server.js.map +31 -28
  4. package/docs/sdks/projects/README.md +1 -1
  5. package/docs/sdks/vercel/README.md +77 -0
  6. package/esm/__tests__/environment.test.js +28 -4
  7. package/esm/__tests__/environment.test.js.map +1 -1
  8. package/esm/__tests__/projects.test.js +15 -13
  9. package/esm/__tests__/projects.test.js.map +1 -1
  10. package/esm/__tests__/vercel.test.d.ts +2 -0
  11. package/esm/__tests__/vercel.test.d.ts.map +1 -0
  12. package/esm/__tests__/vercel.test.js +21 -0
  13. package/esm/__tests__/vercel.test.js.map +1 -0
  14. package/esm/funcs/marketplaceUpdateResourceSecretsById.js +2 -2
  15. package/esm/funcs/marketplaceUpdateResourceSecretsById.js.map +1 -1
  16. package/esm/funcs/patchAliasesIdProtectionBypass.d.ts +18 -0
  17. package/esm/funcs/patchAliasesIdProtectionBypass.d.ts.map +1 -0
  18. package/esm/funcs/patchAliasesIdProtectionBypass.js +81 -0
  19. package/esm/funcs/patchAliasesIdProtectionBypass.js.map +1 -0
  20. package/esm/funcs/projectsMoveProjectDomain.d.ts +1 -1
  21. package/esm/funcs/projectsMoveProjectDomain.js +1 -1
  22. package/esm/lib/config.d.ts +3 -3
  23. package/esm/lib/config.js +3 -3
  24. package/esm/lib/sdks.d.ts +3 -1
  25. package/esm/lib/sdks.d.ts.map +1 -1
  26. package/esm/lib/sdks.js +6 -11
  27. package/esm/lib/sdks.js.map +1 -1
  28. package/esm/mcp-server/mcp-server.js +1 -1
  29. package/esm/mcp-server/server.d.ts.map +1 -1
  30. package/esm/mcp-server/server.js +3 -1
  31. package/esm/mcp-server/server.js.map +1 -1
  32. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.d.ts +7 -0
  33. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.d.ts.map +1 -0
  34. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.js +26 -0
  35. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.js.map +1 -0
  36. package/esm/mcp-server/tools/projectsMoveProjectDomain.js +1 -1
  37. package/esm/models/authuser.d.ts +0 -5
  38. package/esm/models/authuser.d.ts.map +1 -1
  39. package/esm/models/authuser.js +0 -2
  40. package/esm/models/authuser.js.map +1 -1
  41. package/esm/models/canceldeploymentop.d.ts +268 -26
  42. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  43. package/esm/models/canceldeploymentop.js +194 -24
  44. package/esm/models/canceldeploymentop.js.map +1 -1
  45. package/esm/models/createcustomenvironmentop.d.ts +244 -2
  46. package/esm/models/createcustomenvironmentop.d.ts.map +1 -1
  47. package/esm/models/createcustomenvironmentop.js +174 -2
  48. package/esm/models/createcustomenvironmentop.js.map +1 -1
  49. package/esm/models/createdeploymentop.d.ts +357 -58
  50. package/esm/models/createdeploymentop.d.ts.map +1 -1
  51. package/esm/models/createdeploymentop.js +290 -60
  52. package/esm/models/createdeploymentop.js.map +1 -1
  53. package/esm/models/createprojectop.d.ts +333 -71
  54. package/esm/models/createprojectop.d.ts.map +1 -1
  55. package/esm/models/createprojectop.js +255 -75
  56. package/esm/models/createprojectop.js.map +1 -1
  57. package/esm/models/createrecordop.d.ts +43 -43
  58. package/esm/models/createrecordop.d.ts.map +1 -1
  59. package/esm/models/createrecordop.js +51 -51
  60. package/esm/models/createrecordop.js.map +1 -1
  61. package/esm/models/getaliasop.d.ts +8 -8
  62. package/esm/models/getaliasop.d.ts.map +1 -1
  63. package/esm/models/getaliasop.js +12 -13
  64. package/esm/models/getaliasop.js.map +1 -1
  65. package/esm/models/getcustomenvironmentop.d.ts +242 -2
  66. package/esm/models/getcustomenvironmentop.d.ts.map +1 -1
  67. package/esm/models/getcustomenvironmentop.js +175 -2
  68. package/esm/models/getcustomenvironmentop.js.map +1 -1
  69. package/esm/models/getdeploymentop.d.ts +502 -18
  70. package/esm/models/getdeploymentop.d.ts.map +1 -1
  71. package/esm/models/getdeploymentop.js +354 -14
  72. package/esm/models/getdeploymentop.js.map +1 -1
  73. package/esm/models/getprojectdomainsop.d.ts +30 -30
  74. package/esm/models/getprojectdomainsop.d.ts.map +1 -1
  75. package/esm/models/getprojectdomainsop.js +32 -32
  76. package/esm/models/getprojectdomainsop.js.map +1 -1
  77. package/esm/models/getprojectsop.d.ts +347 -95
  78. package/esm/models/getprojectsop.d.ts.map +1 -1
  79. package/esm/models/getprojectsop.js +287 -112
  80. package/esm/models/getprojectsop.js.map +1 -1
  81. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts +242 -2
  82. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts.map +1 -1
  83. package/esm/models/getv9projectsidornamecustomenvironmentsop.js +172 -2
  84. package/esm/models/getv9projectsidornamecustomenvironmentsop.js.map +1 -1
  85. package/esm/models/listaliasesop.d.ts +8 -8
  86. package/esm/models/listaliasesop.d.ts.map +1 -1
  87. package/esm/models/listaliasesop.js +12 -12
  88. package/esm/models/listaliasesop.js.map +1 -1
  89. package/esm/models/patchaliasesidprotectionbypassop.d.ts +409 -0
  90. package/esm/models/patchaliasesidprotectionbypassop.d.ts.map +1 -0
  91. package/esm/models/patchaliasesidprotectionbypassop.js +386 -0
  92. package/esm/models/patchaliasesidprotectionbypassop.js.map +1 -0
  93. package/esm/models/removecustomenvironmentop.d.ts +245 -2
  94. package/esm/models/removecustomenvironmentop.d.ts.map +1 -1
  95. package/esm/models/removecustomenvironmentop.js +173 -2
  96. package/esm/models/removecustomenvironmentop.js.map +1 -1
  97. package/esm/models/updatecustomenvironmentop.d.ts +244 -2
  98. package/esm/models/updatecustomenvironmentop.d.ts.map +1 -1
  99. package/esm/models/updatecustomenvironmentop.js +174 -2
  100. package/esm/models/updatecustomenvironmentop.js.map +1 -1
  101. package/esm/models/updateprojectdatacacheop.d.ts +363 -111
  102. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  103. package/esm/models/updateprojectdatacacheop.js +311 -135
  104. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  105. package/esm/models/updateprojectop.d.ts +347 -95
  106. package/esm/models/updateprojectop.d.ts.map +1 -1
  107. package/esm/models/updateprojectop.js +287 -111
  108. package/esm/models/updateprojectop.js.map +1 -1
  109. package/esm/models/userevent.d.ts +124 -6
  110. package/esm/models/userevent.d.ts.map +1 -1
  111. package/esm/models/userevent.js +114 -6
  112. package/esm/models/userevent.js.map +1 -1
  113. package/esm/sdk/projects.d.ts +1 -1
  114. package/esm/sdk/projects.js +1 -1
  115. package/esm/sdk/sdk.d.ts +8 -1
  116. package/esm/sdk/sdk.d.ts.map +1 -1
  117. package/esm/sdk/sdk.js +8 -0
  118. package/esm/sdk/sdk.js.map +1 -1
  119. package/jsr.json +1 -1
  120. package/package.json +1 -1
  121. package/src/__tests__/environment.test.ts +28 -4
  122. package/src/__tests__/projects.test.ts +15 -13
  123. package/src/__tests__/vercel.test.ts +26 -0
  124. package/src/funcs/marketplaceUpdateResourceSecretsById.ts +2 -2
  125. package/src/funcs/patchAliasesIdProtectionBypass.ts +185 -0
  126. package/src/funcs/projectsMoveProjectDomain.ts +1 -1
  127. package/src/lib/config.ts +3 -3
  128. package/src/lib/sdks.ts +11 -11
  129. package/src/mcp-server/mcp-server.ts +1 -1
  130. package/src/mcp-server/server.ts +3 -1
  131. package/src/mcp-server/tools/patchAliasesIdProtectionBypass.ts +37 -0
  132. package/src/mcp-server/tools/projectsMoveProjectDomain.ts +1 -1
  133. package/src/models/authuser.ts +0 -7
  134. package/src/models/canceldeploymentop.ts +503 -43
  135. package/src/models/createcustomenvironmentop.ts +426 -4
  136. package/src/models/createdeploymentop.ts +640 -117
  137. package/src/models/createprojectop.ts +664 -200
  138. package/src/models/createrecordop.ts +96 -84
  139. package/src/models/getaliasop.ts +16 -14
  140. package/src/models/getcustomenvironmentop.ts +412 -4
  141. package/src/models/getdeploymentop.ts +962 -49
  142. package/src/models/getprojectdomainsop.ts +84 -84
  143. package/src/models/getprojectsop.ts +637 -189
  144. package/src/models/getv9projectsidornamecustomenvironmentsop.ts +473 -4
  145. package/src/models/listaliasesop.ts +19 -16
  146. package/src/models/patchaliasesidprotectionbypassop.ts +786 -0
  147. package/src/models/removecustomenvironmentop.ts +425 -4
  148. package/src/models/updatecustomenvironmentop.ts +437 -4
  149. package/src/models/updateprojectdatacacheop.ts +738 -271
  150. package/src/models/updateprojectop.ts +697 -247
  151. package/src/models/userevent.ts +205 -12
  152. package/src/sdk/projects.ts +1 -1
  153. package/src/sdk/sdk.ts +18 -1
  154. package/vercel-spec.json +2667 -162
@@ -678,20 +678,19 @@ export type UpdateProjectContentHint =
678
678
  | UpdateProjectContentHint15
679
679
  | UpdateProjectContentHint14;
680
680
 
681
- export const UpdateProjectProjectsResponse200ApplicationJSONResponseBodyEnvType =
682
- {
683
- FlagsSecret: "flags-secret",
684
- } as const;
685
- export type UpdateProjectProjectsResponse200ApplicationJSONResponseBodyEnvType =
681
+ export const UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType = {
682
+ FlagsSecret: "flags-secret",
683
+ } as const;
684
+ export type UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType =
686
685
  ClosedEnum<
687
- typeof UpdateProjectProjectsResponse200ApplicationJSONResponseBodyEnvType
686
+ typeof UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType
688
687
  >;
689
688
 
690
689
  /**
691
690
  * Similar to `contentHints`, but should not be exposed to the user.
692
691
  */
693
692
  export type UpdateProjectInternalContentHint = {
694
- type: UpdateProjectProjectsResponse200ApplicationJSONResponseBodyEnvType;
693
+ type: UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType;
695
694
  /**
696
695
  * Contains the `value` of the env variable, encrypted with a special key to make decryption possible in the subscriber Lambda.
697
696
  */
@@ -744,7 +743,127 @@ export type UpdateProjectEnv = {
744
743
  customEnvironmentIds?: Array<string> | undefined;
745
744
  };
746
745
 
747
- export type UpdateProjectCustomEnvironments = {};
746
+ /**
747
+ * The type of environment (production, preview, or development)
748
+ */
749
+ export const UpdateProjectProjectsType = {
750
+ Production: "production",
751
+ Preview: "preview",
752
+ Development: "development",
753
+ } as const;
754
+ /**
755
+ * The type of environment (production, preview, or development)
756
+ */
757
+ export type UpdateProjectProjectsType = ClosedEnum<
758
+ typeof UpdateProjectProjectsType
759
+ >;
760
+
761
+ /**
762
+ * The type of matching to perform
763
+ */
764
+ export const UpdateProjectProjectsResponse200ApplicationJSONResponseBodyCustomEnvironmentsType =
765
+ {
766
+ EndsWith: "endsWith",
767
+ StartsWith: "startsWith",
768
+ Equals: "equals",
769
+ } as const;
770
+ /**
771
+ * The type of matching to perform
772
+ */
773
+ export type UpdateProjectProjectsResponse200ApplicationJSONResponseBodyCustomEnvironmentsType =
774
+ ClosedEnum<
775
+ typeof UpdateProjectProjectsResponse200ApplicationJSONResponseBodyCustomEnvironmentsType
776
+ >;
777
+
778
+ /**
779
+ * Configuration for matching git branches to this environment
780
+ */
781
+ export type UpdateProjectBranchMatcher = {
782
+ /**
783
+ * The type of matching to perform
784
+ */
785
+ type:
786
+ UpdateProjectProjectsResponse200ApplicationJSONResponseBodyCustomEnvironmentsType;
787
+ /**
788
+ * The pattern to match against branch names
789
+ */
790
+ pattern: string;
791
+ };
792
+
793
+ /**
794
+ * 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`.
795
+ */
796
+ export type UpdateProjectVerification = {
797
+ type: string;
798
+ domain: string;
799
+ value: string;
800
+ reason: string;
801
+ };
802
+
803
+ /**
804
+ * List of domains associated with this environment
805
+ */
806
+ export type UpdateProjectDomains = {
807
+ name: string;
808
+ apexName: string;
809
+ projectId: string;
810
+ redirect?: string | null | undefined;
811
+ redirectStatusCode?: number | null | undefined;
812
+ gitBranch?: string | null | undefined;
813
+ customEnvironmentId?: string | null | undefined;
814
+ updatedAt?: number | undefined;
815
+ createdAt?: number | undefined;
816
+ /**
817
+ * `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.
818
+ */
819
+ verified: boolean;
820
+ /**
821
+ * 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`.
822
+ */
823
+ verification?: Array<UpdateProjectVerification> | undefined;
824
+ };
825
+
826
+ /**
827
+ * Internal representation of a custom environment with all required properties
828
+ */
829
+ export type UpdateProjectCustomEnvironments = {
830
+ /**
831
+ * Unique identifier for the custom environment (format: env_*)
832
+ */
833
+ id: string;
834
+ /**
835
+ * URL-friendly name of the environment
836
+ */
837
+ slug: string;
838
+ /**
839
+ * The type of environment (production, preview, or development)
840
+ */
841
+ type: UpdateProjectProjectsType;
842
+ /**
843
+ * Optional description of the environment's purpose
844
+ */
845
+ description?: string | undefined;
846
+ /**
847
+ * Configuration for matching git branches to this environment
848
+ */
849
+ branchMatcher?: UpdateProjectBranchMatcher | undefined;
850
+ /**
851
+ * List of domains associated with this environment
852
+ */
853
+ domains?: Array<UpdateProjectDomains> | undefined;
854
+ /**
855
+ * List of aliases for the current deployment
856
+ */
857
+ currentDeploymentAliases?: Array<string> | undefined;
858
+ /**
859
+ * Timestamp when the environment was created
860
+ */
861
+ createdAt: number;
862
+ /**
863
+ * Timestamp when the environment was last updated
864
+ */
865
+ updatedAt: number;
866
+ };
748
867
 
749
868
  export const UpdateProjectProjectsFramework = {
750
869
  Blitzjs: "blitzjs",
@@ -813,24 +932,26 @@ export type UpdateProjectAliasError = {
813
932
  /**
814
933
  * The type of matching to perform
815
934
  */
816
- export const UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType = {
817
- EndsWith: "endsWith",
818
- StartsWith: "startsWith",
819
- Equals: "equals",
820
- } as const;
935
+ export const UpdateProjectProjectsResponse200ApplicationJSONResponseBodyLatestDeploymentsType =
936
+ {
937
+ EndsWith: "endsWith",
938
+ StartsWith: "startsWith",
939
+ Equals: "equals",
940
+ } as const;
821
941
  /**
822
942
  * The type of matching to perform
823
943
  */
824
- export type UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType =
944
+ export type UpdateProjectProjectsResponse200ApplicationJSONResponseBodyLatestDeploymentsType =
825
945
  ClosedEnum<
826
- typeof UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType
946
+ typeof UpdateProjectProjectsResponse200ApplicationJSONResponseBodyLatestDeploymentsType
827
947
  >;
828
948
 
829
- export type UpdateProjectBranchMatcher = {
949
+ export type UpdateProjectProjectsBranchMatcher = {
830
950
  /**
831
951
  * The type of matching to perform
832
952
  */
833
- type: UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType;
953
+ type:
954
+ UpdateProjectProjectsResponse200ApplicationJSONResponseBodyLatestDeploymentsType;
834
955
  /**
835
956
  * The pattern to match against branch names
836
957
  */
@@ -910,11 +1031,11 @@ export type UpdateProjectReadySubstate = ClosedEnum<
910
1031
  typeof UpdateProjectReadySubstate
911
1032
  >;
912
1033
 
913
- export const UpdateProjectProjectsType = {
1034
+ export const UpdateProjectProjectsResponseType = {
914
1035
  Lambdas: "LAMBDAS",
915
1036
  } as const;
916
- export type UpdateProjectProjectsType = ClosedEnum<
917
- typeof UpdateProjectProjectsType
1037
+ export type UpdateProjectProjectsResponseType = ClosedEnum<
1038
+ typeof UpdateProjectProjectsResponseType
918
1039
  >;
919
1040
 
920
1041
  export type UpdateProjectLatestDeployments = {
@@ -924,7 +1045,7 @@ export type UpdateProjectLatestDeployments = {
924
1045
  aliasError?: UpdateProjectAliasError | null | undefined;
925
1046
  aliasFinal?: string | null | undefined;
926
1047
  automaticAliases?: Array<string> | undefined;
927
- branchMatcher?: UpdateProjectBranchMatcher | undefined;
1048
+ branchMatcher?: UpdateProjectProjectsBranchMatcher | undefined;
928
1049
  buildingAt?: number | undefined;
929
1050
  builds?: Array<UpdateProjectBuilds> | undefined;
930
1051
  checksConclusion?: UpdateProjectChecksConclusion | undefined;
@@ -953,7 +1074,7 @@ export type UpdateProjectLatestDeployments = {
953
1074
  requestedAt?: number | undefined;
954
1075
  target?: string | null | undefined;
955
1076
  teamId?: string | null | undefined;
956
- type: UpdateProjectProjectsType;
1077
+ type: UpdateProjectProjectsResponseType;
957
1078
  url: string;
958
1079
  userId: string;
959
1080
  withCache?: boolean | undefined;
@@ -1197,6 +1318,10 @@ export type UpdateProjectStages = {
1197
1318
  * Whether or not this stage requires approval to proceed.
1198
1319
  */
1199
1320
  requireApproval?: boolean | undefined;
1321
+ /**
1322
+ * duration is the total time to serve a stage, at the given targetPercentage.
1323
+ */
1324
+ duration?: number | undefined;
1200
1325
  };
1201
1326
 
1202
1327
  export type UpdateProjectRollingRelease = {
@@ -1243,8 +1368,8 @@ export type UpdateProjectDefaultResourceConfig = {
1243
1368
  };
1244
1369
 
1245
1370
  export const UpdateProjectProjectsResponseDeploymentType = {
1246
- All: "all",
1247
1371
  Preview: "preview",
1372
+ All: "all",
1248
1373
  ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
1249
1374
  } as const;
1250
1375
  export type UpdateProjectProjectsResponseDeploymentType = ClosedEnum<
@@ -1265,23 +1390,25 @@ export type UpdateProjectProjectsAliasError = {
1265
1390
  /**
1266
1391
  * The type of matching to perform
1267
1392
  */
1268
- export const UpdateProjectProjectsResponse200ApplicationJSONType = {
1269
- EndsWith: "endsWith",
1270
- StartsWith: "startsWith",
1271
- Equals: "equals",
1272
- } as const;
1393
+ export const UpdateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType =
1394
+ {
1395
+ EndsWith: "endsWith",
1396
+ StartsWith: "startsWith",
1397
+ Equals: "equals",
1398
+ } as const;
1273
1399
  /**
1274
1400
  * The type of matching to perform
1275
1401
  */
1276
- export type UpdateProjectProjectsResponse200ApplicationJSONType = ClosedEnum<
1277
- typeof UpdateProjectProjectsResponse200ApplicationJSONType
1278
- >;
1402
+ export type UpdateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType =
1403
+ ClosedEnum<
1404
+ typeof UpdateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType
1405
+ >;
1279
1406
 
1280
- export type UpdateProjectProjectsBranchMatcher = {
1407
+ export type UpdateProjectProjectsResponseBranchMatcher = {
1281
1408
  /**
1282
1409
  * The type of matching to perform
1283
1410
  */
1284
- type: UpdateProjectProjectsResponse200ApplicationJSONType;
1411
+ type: UpdateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType;
1285
1412
  /**
1286
1413
  * The pattern to match against branch names
1287
1414
  */
@@ -1363,11 +1490,11 @@ export type UpdateProjectProjectsReadySubstate = ClosedEnum<
1363
1490
  typeof UpdateProjectProjectsReadySubstate
1364
1491
  >;
1365
1492
 
1366
- export const UpdateProjectProjectsResponseType = {
1493
+ export const UpdateProjectProjectsResponse200Type = {
1367
1494
  Lambdas: "LAMBDAS",
1368
1495
  } as const;
1369
- export type UpdateProjectProjectsResponseType = ClosedEnum<
1370
- typeof UpdateProjectProjectsResponseType
1496
+ export type UpdateProjectProjectsResponse200Type = ClosedEnum<
1497
+ typeof UpdateProjectProjectsResponse200Type
1371
1498
  >;
1372
1499
 
1373
1500
  export type UpdateProjectTargets = {
@@ -1377,7 +1504,7 @@ export type UpdateProjectTargets = {
1377
1504
  aliasError?: UpdateProjectProjectsAliasError | null | undefined;
1378
1505
  aliasFinal?: string | null | undefined;
1379
1506
  automaticAliases?: Array<string> | undefined;
1380
- branchMatcher?: UpdateProjectProjectsBranchMatcher | undefined;
1507
+ branchMatcher?: UpdateProjectProjectsResponseBranchMatcher | undefined;
1381
1508
  buildingAt?: number | undefined;
1382
1509
  builds?: Array<UpdateProjectProjectsBuilds> | undefined;
1383
1510
  checksConclusion?: UpdateProjectProjectsChecksConclusion | undefined;
@@ -1406,7 +1533,7 @@ export type UpdateProjectTargets = {
1406
1533
  requestedAt?: number | undefined;
1407
1534
  target?: string | null | undefined;
1408
1535
  teamId?: string | null | undefined;
1409
- type: UpdateProjectProjectsResponseType;
1536
+ type: UpdateProjectProjectsResponse200Type;
1410
1537
  url: string;
1411
1538
  userId: string;
1412
1539
  withCache?: boolean | undefined;
@@ -1621,20 +1748,24 @@ export const UpdateProjectJobStatus = {
1621
1748
  } as const;
1622
1749
  export type UpdateProjectJobStatus = ClosedEnum<typeof UpdateProjectJobStatus>;
1623
1750
 
1624
- export const UpdateProjectProjectsResponse200Type = {
1751
+ export const UpdateProjectProjectsResponse200ApplicationJSONType = {
1625
1752
  Promote: "promote",
1626
1753
  Rollback: "rollback",
1627
1754
  } as const;
1628
- export type UpdateProjectProjectsResponse200Type = ClosedEnum<
1629
- typeof UpdateProjectProjectsResponse200Type
1755
+ export type UpdateProjectProjectsResponse200ApplicationJSONType = ClosedEnum<
1756
+ typeof UpdateProjectProjectsResponse200ApplicationJSONType
1630
1757
  >;
1631
1758
 
1632
1759
  export type UpdateProjectLastAliasRequest = {
1633
1760
  fromDeploymentId: string;
1634
1761
  toDeploymentId: string;
1762
+ /**
1763
+ * If rolling back from a rolling release, fromDeploymentId captures the "base" of that rolling release, and fromRollingReleaseId captures the "target" of that rolling release.
1764
+ */
1765
+ fromRollingReleaseId?: string | undefined;
1635
1766
  jobStatus: UpdateProjectJobStatus;
1636
1767
  requestedAt: number;
1637
- type: UpdateProjectProjectsResponse200Type;
1768
+ type: UpdateProjectProjectsResponse200ApplicationJSONType;
1638
1769
  };
1639
1770
 
1640
1771
  export const UpdateProjectScope = {
@@ -1649,10 +1780,10 @@ export type UpdateProjectProtectionBypass = {
1649
1780
  };
1650
1781
 
1651
1782
  export const UpdateProjectTrustedIpsProjectsDeploymentType = {
1652
- All: "all",
1783
+ Production: "production",
1653
1784
  Preview: "preview",
1785
+ All: "all",
1654
1786
  ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
1655
- Production: "production",
1656
1787
  } as const;
1657
1788
  export type UpdateProjectTrustedIpsProjectsDeploymentType = ClosedEnum<
1658
1789
  typeof UpdateProjectTrustedIpsProjectsDeploymentType
@@ -1663,10 +1794,10 @@ export type UpdateProjectTrustedIps2 = {
1663
1794
  };
1664
1795
 
1665
1796
  export const UpdateProjectTrustedIpsDeploymentType = {
1666
- All: "all",
1797
+ Production: "production",
1667
1798
  Preview: "preview",
1799
+ All: "all",
1668
1800
  ProdDeploymentUrlsAndAllPreviews: "prod_deployment_urls_and_all_previews",
1669
- Production: "production",
1670
1801
  } as const;
1671
1802
  export type UpdateProjectTrustedIpsDeploymentType = ClosedEnum<
1672
1803
  typeof UpdateProjectTrustedIpsDeploymentType
@@ -4686,31 +4817,31 @@ export function updateProjectContentHintFromJSON(
4686
4817
  }
4687
4818
 
4688
4819
  /** @internal */
4689
- export const UpdateProjectProjectsResponse200ApplicationJSONResponseBodyEnvType$inboundSchema:
4820
+ export const UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema:
4690
4821
  z.ZodNativeEnum<
4691
- typeof UpdateProjectProjectsResponse200ApplicationJSONResponseBodyEnvType
4822
+ typeof UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType
4692
4823
  > = z.nativeEnum(
4693
- UpdateProjectProjectsResponse200ApplicationJSONResponseBodyEnvType,
4824
+ UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType,
4694
4825
  );
4695
4826
 
4696
4827
  /** @internal */
4697
- export const UpdateProjectProjectsResponse200ApplicationJSONResponseBodyEnvType$outboundSchema:
4828
+ export const UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema:
4698
4829
  z.ZodNativeEnum<
4699
- typeof UpdateProjectProjectsResponse200ApplicationJSONResponseBodyEnvType
4830
+ typeof UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType
4700
4831
  > =
4701
- UpdateProjectProjectsResponse200ApplicationJSONResponseBodyEnvType$inboundSchema;
4832
+ UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema;
4702
4833
 
4703
4834
  /**
4704
4835
  * @internal
4705
4836
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4706
4837
  */
4707
- export namespace UpdateProjectProjectsResponse200ApplicationJSONResponseBodyEnvType$ {
4708
- /** @deprecated use `UpdateProjectProjectsResponse200ApplicationJSONResponseBodyEnvType$inboundSchema` instead. */
4838
+ export namespace UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType$ {
4839
+ /** @deprecated use `UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema` instead. */
4709
4840
  export const inboundSchema =
4710
- UpdateProjectProjectsResponse200ApplicationJSONResponseBodyEnvType$inboundSchema;
4711
- /** @deprecated use `UpdateProjectProjectsResponse200ApplicationJSONResponseBodyEnvType$outboundSchema` instead. */
4841
+ UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema;
4842
+ /** @deprecated use `UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema` instead. */
4712
4843
  export const outboundSchema =
4713
- UpdateProjectProjectsResponse200ApplicationJSONResponseBodyEnvType$outboundSchema;
4844
+ UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema;
4714
4845
  }
4715
4846
 
4716
4847
  /** @internal */
@@ -4720,7 +4851,7 @@ export const UpdateProjectInternalContentHint$inboundSchema: z.ZodType<
4720
4851
  unknown
4721
4852
  > = z.object({
4722
4853
  type:
4723
- UpdateProjectProjectsResponse200ApplicationJSONResponseBodyEnvType$inboundSchema,
4854
+ UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema,
4724
4855
  encryptedValue: z.string(),
4725
4856
  });
4726
4857
 
@@ -4737,7 +4868,7 @@ export const UpdateProjectInternalContentHint$outboundSchema: z.ZodType<
4737
4868
  UpdateProjectInternalContentHint
4738
4869
  > = z.object({
4739
4870
  type:
4740
- UpdateProjectProjectsResponse200ApplicationJSONResponseBodyEnvType$outboundSchema,
4871
+ UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema,
4741
4872
  encryptedValue: z.string(),
4742
4873
  });
4743
4874
 
@@ -4948,107 +5079,397 @@ export function updateProjectEnvFromJSON(
4948
5079
  }
4949
5080
 
4950
5081
  /** @internal */
4951
- export const UpdateProjectCustomEnvironments$inboundSchema: z.ZodType<
4952
- UpdateProjectCustomEnvironments,
4953
- z.ZodTypeDef,
4954
- unknown
4955
- > = z.object({});
4956
-
4957
- /** @internal */
4958
- export type UpdateProjectCustomEnvironments$Outbound = {};
5082
+ export const UpdateProjectProjectsType$inboundSchema: z.ZodNativeEnum<
5083
+ typeof UpdateProjectProjectsType
5084
+ > = z.nativeEnum(UpdateProjectProjectsType);
4959
5085
 
4960
5086
  /** @internal */
4961
- export const UpdateProjectCustomEnvironments$outboundSchema: z.ZodType<
4962
- UpdateProjectCustomEnvironments$Outbound,
4963
- z.ZodTypeDef,
4964
- UpdateProjectCustomEnvironments
4965
- > = z.object({});
5087
+ export const UpdateProjectProjectsType$outboundSchema: z.ZodNativeEnum<
5088
+ typeof UpdateProjectProjectsType
5089
+ > = UpdateProjectProjectsType$inboundSchema;
4966
5090
 
4967
5091
  /**
4968
5092
  * @internal
4969
5093
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4970
5094
  */
4971
- export namespace UpdateProjectCustomEnvironments$ {
4972
- /** @deprecated use `UpdateProjectCustomEnvironments$inboundSchema` instead. */
4973
- export const inboundSchema = UpdateProjectCustomEnvironments$inboundSchema;
4974
- /** @deprecated use `UpdateProjectCustomEnvironments$outboundSchema` instead. */
4975
- export const outboundSchema = UpdateProjectCustomEnvironments$outboundSchema;
4976
- /** @deprecated use `UpdateProjectCustomEnvironments$Outbound` instead. */
4977
- export type Outbound = UpdateProjectCustomEnvironments$Outbound;
4978
- }
4979
-
4980
- export function updateProjectCustomEnvironmentsToJSON(
4981
- updateProjectCustomEnvironments: UpdateProjectCustomEnvironments,
4982
- ): string {
4983
- return JSON.stringify(
4984
- UpdateProjectCustomEnvironments$outboundSchema.parse(
4985
- updateProjectCustomEnvironments,
4986
- ),
4987
- );
4988
- }
4989
-
4990
- export function updateProjectCustomEnvironmentsFromJSON(
4991
- jsonString: string,
4992
- ): SafeParseResult<UpdateProjectCustomEnvironments, SDKValidationError> {
4993
- return safeParse(
4994
- jsonString,
4995
- (x) => UpdateProjectCustomEnvironments$inboundSchema.parse(JSON.parse(x)),
4996
- `Failed to parse 'UpdateProjectCustomEnvironments' from JSON`,
4997
- );
5095
+ export namespace UpdateProjectProjectsType$ {
5096
+ /** @deprecated use `UpdateProjectProjectsType$inboundSchema` instead. */
5097
+ export const inboundSchema = UpdateProjectProjectsType$inboundSchema;
5098
+ /** @deprecated use `UpdateProjectProjectsType$outboundSchema` instead. */
5099
+ export const outboundSchema = UpdateProjectProjectsType$outboundSchema;
4998
5100
  }
4999
5101
 
5000
5102
  /** @internal */
5001
- export const UpdateProjectProjectsFramework$inboundSchema: z.ZodNativeEnum<
5002
- typeof UpdateProjectProjectsFramework
5003
- > = z.nativeEnum(UpdateProjectProjectsFramework);
5103
+ export const UpdateProjectProjectsResponse200ApplicationJSONResponseBodyCustomEnvironmentsType$inboundSchema:
5104
+ z.ZodNativeEnum<
5105
+ typeof UpdateProjectProjectsResponse200ApplicationJSONResponseBodyCustomEnvironmentsType
5106
+ > = z.nativeEnum(
5107
+ UpdateProjectProjectsResponse200ApplicationJSONResponseBodyCustomEnvironmentsType,
5108
+ );
5004
5109
 
5005
5110
  /** @internal */
5006
- export const UpdateProjectProjectsFramework$outboundSchema: z.ZodNativeEnum<
5007
- typeof UpdateProjectProjectsFramework
5008
- > = UpdateProjectProjectsFramework$inboundSchema;
5111
+ export const UpdateProjectProjectsResponse200ApplicationJSONResponseBodyCustomEnvironmentsType$outboundSchema:
5112
+ z.ZodNativeEnum<
5113
+ typeof UpdateProjectProjectsResponse200ApplicationJSONResponseBodyCustomEnvironmentsType
5114
+ > =
5115
+ UpdateProjectProjectsResponse200ApplicationJSONResponseBodyCustomEnvironmentsType$inboundSchema;
5009
5116
 
5010
5117
  /**
5011
5118
  * @internal
5012
5119
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5013
5120
  */
5014
- export namespace UpdateProjectProjectsFramework$ {
5015
- /** @deprecated use `UpdateProjectProjectsFramework$inboundSchema` instead. */
5016
- export const inboundSchema = UpdateProjectProjectsFramework$inboundSchema;
5017
- /** @deprecated use `UpdateProjectProjectsFramework$outboundSchema` instead. */
5018
- export const outboundSchema = UpdateProjectProjectsFramework$outboundSchema;
5121
+ export namespace UpdateProjectProjectsResponse200ApplicationJSONResponseBodyCustomEnvironmentsType$ {
5122
+ /** @deprecated use `UpdateProjectProjectsResponse200ApplicationJSONResponseBodyCustomEnvironmentsType$inboundSchema` instead. */
5123
+ export const inboundSchema =
5124
+ UpdateProjectProjectsResponse200ApplicationJSONResponseBodyCustomEnvironmentsType$inboundSchema;
5125
+ /** @deprecated use `UpdateProjectProjectsResponse200ApplicationJSONResponseBodyCustomEnvironmentsType$outboundSchema` instead. */
5126
+ export const outboundSchema =
5127
+ UpdateProjectProjectsResponse200ApplicationJSONResponseBodyCustomEnvironmentsType$outboundSchema;
5019
5128
  }
5020
5129
 
5021
5130
  /** @internal */
5022
- export const UpdateProjectIpBuckets$inboundSchema: z.ZodType<
5023
- UpdateProjectIpBuckets,
5131
+ export const UpdateProjectBranchMatcher$inboundSchema: z.ZodType<
5132
+ UpdateProjectBranchMatcher,
5024
5133
  z.ZodTypeDef,
5025
5134
  unknown
5026
5135
  > = z.object({
5027
- bucket: z.string(),
5028
- supportUntil: z.number().optional(),
5136
+ type:
5137
+ UpdateProjectProjectsResponse200ApplicationJSONResponseBodyCustomEnvironmentsType$inboundSchema,
5138
+ pattern: z.string(),
5029
5139
  });
5030
5140
 
5031
5141
  /** @internal */
5032
- export type UpdateProjectIpBuckets$Outbound = {
5033
- bucket: string;
5034
- supportUntil?: number | undefined;
5142
+ export type UpdateProjectBranchMatcher$Outbound = {
5143
+ type: string;
5144
+ pattern: string;
5035
5145
  };
5036
5146
 
5037
5147
  /** @internal */
5038
- export const UpdateProjectIpBuckets$outboundSchema: z.ZodType<
5039
- UpdateProjectIpBuckets$Outbound,
5148
+ export const UpdateProjectBranchMatcher$outboundSchema: z.ZodType<
5149
+ UpdateProjectBranchMatcher$Outbound,
5040
5150
  z.ZodTypeDef,
5041
- UpdateProjectIpBuckets
5151
+ UpdateProjectBranchMatcher
5042
5152
  > = z.object({
5043
- bucket: z.string(),
5044
- supportUntil: z.number().optional(),
5153
+ type:
5154
+ UpdateProjectProjectsResponse200ApplicationJSONResponseBodyCustomEnvironmentsType$outboundSchema,
5155
+ pattern: z.string(),
5045
5156
  });
5046
5157
 
5047
5158
  /**
5048
5159
  * @internal
5049
5160
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5050
5161
  */
5051
- export namespace UpdateProjectIpBuckets$ {
5162
+ export namespace UpdateProjectBranchMatcher$ {
5163
+ /** @deprecated use `UpdateProjectBranchMatcher$inboundSchema` instead. */
5164
+ export const inboundSchema = UpdateProjectBranchMatcher$inboundSchema;
5165
+ /** @deprecated use `UpdateProjectBranchMatcher$outboundSchema` instead. */
5166
+ export const outboundSchema = UpdateProjectBranchMatcher$outboundSchema;
5167
+ /** @deprecated use `UpdateProjectBranchMatcher$Outbound` instead. */
5168
+ export type Outbound = UpdateProjectBranchMatcher$Outbound;
5169
+ }
5170
+
5171
+ export function updateProjectBranchMatcherToJSON(
5172
+ updateProjectBranchMatcher: UpdateProjectBranchMatcher,
5173
+ ): string {
5174
+ return JSON.stringify(
5175
+ UpdateProjectBranchMatcher$outboundSchema.parse(updateProjectBranchMatcher),
5176
+ );
5177
+ }
5178
+
5179
+ export function updateProjectBranchMatcherFromJSON(
5180
+ jsonString: string,
5181
+ ): SafeParseResult<UpdateProjectBranchMatcher, SDKValidationError> {
5182
+ return safeParse(
5183
+ jsonString,
5184
+ (x) => UpdateProjectBranchMatcher$inboundSchema.parse(JSON.parse(x)),
5185
+ `Failed to parse 'UpdateProjectBranchMatcher' from JSON`,
5186
+ );
5187
+ }
5188
+
5189
+ /** @internal */
5190
+ export const UpdateProjectVerification$inboundSchema: z.ZodType<
5191
+ UpdateProjectVerification,
5192
+ z.ZodTypeDef,
5193
+ unknown
5194
+ > = z.object({
5195
+ type: z.string(),
5196
+ domain: z.string(),
5197
+ value: z.string(),
5198
+ reason: z.string(),
5199
+ });
5200
+
5201
+ /** @internal */
5202
+ export type UpdateProjectVerification$Outbound = {
5203
+ type: string;
5204
+ domain: string;
5205
+ value: string;
5206
+ reason: string;
5207
+ };
5208
+
5209
+ /** @internal */
5210
+ export const UpdateProjectVerification$outboundSchema: z.ZodType<
5211
+ UpdateProjectVerification$Outbound,
5212
+ z.ZodTypeDef,
5213
+ UpdateProjectVerification
5214
+ > = z.object({
5215
+ type: z.string(),
5216
+ domain: z.string(),
5217
+ value: z.string(),
5218
+ reason: z.string(),
5219
+ });
5220
+
5221
+ /**
5222
+ * @internal
5223
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5224
+ */
5225
+ export namespace UpdateProjectVerification$ {
5226
+ /** @deprecated use `UpdateProjectVerification$inboundSchema` instead. */
5227
+ export const inboundSchema = UpdateProjectVerification$inboundSchema;
5228
+ /** @deprecated use `UpdateProjectVerification$outboundSchema` instead. */
5229
+ export const outboundSchema = UpdateProjectVerification$outboundSchema;
5230
+ /** @deprecated use `UpdateProjectVerification$Outbound` instead. */
5231
+ export type Outbound = UpdateProjectVerification$Outbound;
5232
+ }
5233
+
5234
+ export function updateProjectVerificationToJSON(
5235
+ updateProjectVerification: UpdateProjectVerification,
5236
+ ): string {
5237
+ return JSON.stringify(
5238
+ UpdateProjectVerification$outboundSchema.parse(updateProjectVerification),
5239
+ );
5240
+ }
5241
+
5242
+ export function updateProjectVerificationFromJSON(
5243
+ jsonString: string,
5244
+ ): SafeParseResult<UpdateProjectVerification, SDKValidationError> {
5245
+ return safeParse(
5246
+ jsonString,
5247
+ (x) => UpdateProjectVerification$inboundSchema.parse(JSON.parse(x)),
5248
+ `Failed to parse 'UpdateProjectVerification' from JSON`,
5249
+ );
5250
+ }
5251
+
5252
+ /** @internal */
5253
+ export const UpdateProjectDomains$inboundSchema: z.ZodType<
5254
+ UpdateProjectDomains,
5255
+ z.ZodTypeDef,
5256
+ unknown
5257
+ > = z.object({
5258
+ name: z.string(),
5259
+ apexName: z.string(),
5260
+ projectId: z.string(),
5261
+ redirect: z.nullable(z.string()).optional(),
5262
+ redirectStatusCode: z.nullable(z.number()).optional(),
5263
+ gitBranch: z.nullable(z.string()).optional(),
5264
+ customEnvironmentId: z.nullable(z.string()).optional(),
5265
+ updatedAt: z.number().optional(),
5266
+ createdAt: z.number().optional(),
5267
+ verified: z.boolean(),
5268
+ verification: z.array(z.lazy(() => UpdateProjectVerification$inboundSchema))
5269
+ .optional(),
5270
+ });
5271
+
5272
+ /** @internal */
5273
+ export type UpdateProjectDomains$Outbound = {
5274
+ name: string;
5275
+ apexName: string;
5276
+ projectId: string;
5277
+ redirect?: string | null | undefined;
5278
+ redirectStatusCode?: number | null | undefined;
5279
+ gitBranch?: string | null | undefined;
5280
+ customEnvironmentId?: string | null | undefined;
5281
+ updatedAt?: number | undefined;
5282
+ createdAt?: number | undefined;
5283
+ verified: boolean;
5284
+ verification?: Array<UpdateProjectVerification$Outbound> | undefined;
5285
+ };
5286
+
5287
+ /** @internal */
5288
+ export const UpdateProjectDomains$outboundSchema: z.ZodType<
5289
+ UpdateProjectDomains$Outbound,
5290
+ z.ZodTypeDef,
5291
+ UpdateProjectDomains
5292
+ > = z.object({
5293
+ name: z.string(),
5294
+ apexName: z.string(),
5295
+ projectId: z.string(),
5296
+ redirect: z.nullable(z.string()).optional(),
5297
+ redirectStatusCode: z.nullable(z.number()).optional(),
5298
+ gitBranch: z.nullable(z.string()).optional(),
5299
+ customEnvironmentId: z.nullable(z.string()).optional(),
5300
+ updatedAt: z.number().optional(),
5301
+ createdAt: z.number().optional(),
5302
+ verified: z.boolean(),
5303
+ verification: z.array(z.lazy(() => UpdateProjectVerification$outboundSchema))
5304
+ .optional(),
5305
+ });
5306
+
5307
+ /**
5308
+ * @internal
5309
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5310
+ */
5311
+ export namespace UpdateProjectDomains$ {
5312
+ /** @deprecated use `UpdateProjectDomains$inboundSchema` instead. */
5313
+ export const inboundSchema = UpdateProjectDomains$inboundSchema;
5314
+ /** @deprecated use `UpdateProjectDomains$outboundSchema` instead. */
5315
+ export const outboundSchema = UpdateProjectDomains$outboundSchema;
5316
+ /** @deprecated use `UpdateProjectDomains$Outbound` instead. */
5317
+ export type Outbound = UpdateProjectDomains$Outbound;
5318
+ }
5319
+
5320
+ export function updateProjectDomainsToJSON(
5321
+ updateProjectDomains: UpdateProjectDomains,
5322
+ ): string {
5323
+ return JSON.stringify(
5324
+ UpdateProjectDomains$outboundSchema.parse(updateProjectDomains),
5325
+ );
5326
+ }
5327
+
5328
+ export function updateProjectDomainsFromJSON(
5329
+ jsonString: string,
5330
+ ): SafeParseResult<UpdateProjectDomains, SDKValidationError> {
5331
+ return safeParse(
5332
+ jsonString,
5333
+ (x) => UpdateProjectDomains$inboundSchema.parse(JSON.parse(x)),
5334
+ `Failed to parse 'UpdateProjectDomains' from JSON`,
5335
+ );
5336
+ }
5337
+
5338
+ /** @internal */
5339
+ export const UpdateProjectCustomEnvironments$inboundSchema: z.ZodType<
5340
+ UpdateProjectCustomEnvironments,
5341
+ z.ZodTypeDef,
5342
+ unknown
5343
+ > = z.object({
5344
+ id: z.string(),
5345
+ slug: z.string(),
5346
+ type: UpdateProjectProjectsType$inboundSchema,
5347
+ description: z.string().optional(),
5348
+ branchMatcher: z.lazy(() => UpdateProjectBranchMatcher$inboundSchema)
5349
+ .optional(),
5350
+ domains: z.array(z.lazy(() => UpdateProjectDomains$inboundSchema)).optional(),
5351
+ currentDeploymentAliases: z.array(z.string()).optional(),
5352
+ createdAt: z.number(),
5353
+ updatedAt: z.number(),
5354
+ });
5355
+
5356
+ /** @internal */
5357
+ export type UpdateProjectCustomEnvironments$Outbound = {
5358
+ id: string;
5359
+ slug: string;
5360
+ type: string;
5361
+ description?: string | undefined;
5362
+ branchMatcher?: UpdateProjectBranchMatcher$Outbound | undefined;
5363
+ domains?: Array<UpdateProjectDomains$Outbound> | undefined;
5364
+ currentDeploymentAliases?: Array<string> | undefined;
5365
+ createdAt: number;
5366
+ updatedAt: number;
5367
+ };
5368
+
5369
+ /** @internal */
5370
+ export const UpdateProjectCustomEnvironments$outboundSchema: z.ZodType<
5371
+ UpdateProjectCustomEnvironments$Outbound,
5372
+ z.ZodTypeDef,
5373
+ UpdateProjectCustomEnvironments
5374
+ > = z.object({
5375
+ id: z.string(),
5376
+ slug: z.string(),
5377
+ type: UpdateProjectProjectsType$outboundSchema,
5378
+ description: z.string().optional(),
5379
+ branchMatcher: z.lazy(() => UpdateProjectBranchMatcher$outboundSchema)
5380
+ .optional(),
5381
+ domains: z.array(z.lazy(() => UpdateProjectDomains$outboundSchema))
5382
+ .optional(),
5383
+ currentDeploymentAliases: z.array(z.string()).optional(),
5384
+ createdAt: z.number(),
5385
+ updatedAt: z.number(),
5386
+ });
5387
+
5388
+ /**
5389
+ * @internal
5390
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5391
+ */
5392
+ export namespace UpdateProjectCustomEnvironments$ {
5393
+ /** @deprecated use `UpdateProjectCustomEnvironments$inboundSchema` instead. */
5394
+ export const inboundSchema = UpdateProjectCustomEnvironments$inboundSchema;
5395
+ /** @deprecated use `UpdateProjectCustomEnvironments$outboundSchema` instead. */
5396
+ export const outboundSchema = UpdateProjectCustomEnvironments$outboundSchema;
5397
+ /** @deprecated use `UpdateProjectCustomEnvironments$Outbound` instead. */
5398
+ export type Outbound = UpdateProjectCustomEnvironments$Outbound;
5399
+ }
5400
+
5401
+ export function updateProjectCustomEnvironmentsToJSON(
5402
+ updateProjectCustomEnvironments: UpdateProjectCustomEnvironments,
5403
+ ): string {
5404
+ return JSON.stringify(
5405
+ UpdateProjectCustomEnvironments$outboundSchema.parse(
5406
+ updateProjectCustomEnvironments,
5407
+ ),
5408
+ );
5409
+ }
5410
+
5411
+ export function updateProjectCustomEnvironmentsFromJSON(
5412
+ jsonString: string,
5413
+ ): SafeParseResult<UpdateProjectCustomEnvironments, SDKValidationError> {
5414
+ return safeParse(
5415
+ jsonString,
5416
+ (x) => UpdateProjectCustomEnvironments$inboundSchema.parse(JSON.parse(x)),
5417
+ `Failed to parse 'UpdateProjectCustomEnvironments' from JSON`,
5418
+ );
5419
+ }
5420
+
5421
+ /** @internal */
5422
+ export const UpdateProjectProjectsFramework$inboundSchema: z.ZodNativeEnum<
5423
+ typeof UpdateProjectProjectsFramework
5424
+ > = z.nativeEnum(UpdateProjectProjectsFramework);
5425
+
5426
+ /** @internal */
5427
+ export const UpdateProjectProjectsFramework$outboundSchema: z.ZodNativeEnum<
5428
+ typeof UpdateProjectProjectsFramework
5429
+ > = UpdateProjectProjectsFramework$inboundSchema;
5430
+
5431
+ /**
5432
+ * @internal
5433
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5434
+ */
5435
+ export namespace UpdateProjectProjectsFramework$ {
5436
+ /** @deprecated use `UpdateProjectProjectsFramework$inboundSchema` instead. */
5437
+ export const inboundSchema = UpdateProjectProjectsFramework$inboundSchema;
5438
+ /** @deprecated use `UpdateProjectProjectsFramework$outboundSchema` instead. */
5439
+ export const outboundSchema = UpdateProjectProjectsFramework$outboundSchema;
5440
+ }
5441
+
5442
+ /** @internal */
5443
+ export const UpdateProjectIpBuckets$inboundSchema: z.ZodType<
5444
+ UpdateProjectIpBuckets,
5445
+ z.ZodTypeDef,
5446
+ unknown
5447
+ > = z.object({
5448
+ bucket: z.string(),
5449
+ supportUntil: z.number().optional(),
5450
+ });
5451
+
5452
+ /** @internal */
5453
+ export type UpdateProjectIpBuckets$Outbound = {
5454
+ bucket: string;
5455
+ supportUntil?: number | undefined;
5456
+ };
5457
+
5458
+ /** @internal */
5459
+ export const UpdateProjectIpBuckets$outboundSchema: z.ZodType<
5460
+ UpdateProjectIpBuckets$Outbound,
5461
+ z.ZodTypeDef,
5462
+ UpdateProjectIpBuckets
5463
+ > = z.object({
5464
+ bucket: z.string(),
5465
+ supportUntil: z.number().optional(),
5466
+ });
5467
+
5468
+ /**
5469
+ * @internal
5470
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5471
+ */
5472
+ export namespace UpdateProjectIpBuckets$ {
5052
5473
  /** @deprecated use `UpdateProjectIpBuckets$inboundSchema` instead. */
5053
5474
  export const inboundSchema = UpdateProjectIpBuckets$inboundSchema;
5054
5475
  /** @deprecated use `UpdateProjectIpBuckets$outboundSchema` instead. */
@@ -5181,58 +5602,58 @@ export function updateProjectAliasErrorFromJSON(
5181
5602
  }
5182
5603
 
5183
5604
  /** @internal */
5184
- export const UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema:
5605
+ export const UpdateProjectProjectsResponse200ApplicationJSONResponseBodyLatestDeploymentsType$inboundSchema:
5185
5606
  z.ZodNativeEnum<
5186
- typeof UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType
5607
+ typeof UpdateProjectProjectsResponse200ApplicationJSONResponseBodyLatestDeploymentsType
5187
5608
  > = z.nativeEnum(
5188
- UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType,
5609
+ UpdateProjectProjectsResponse200ApplicationJSONResponseBodyLatestDeploymentsType,
5189
5610
  );
5190
5611
 
5191
5612
  /** @internal */
5192
- export const UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema:
5613
+ export const UpdateProjectProjectsResponse200ApplicationJSONResponseBodyLatestDeploymentsType$outboundSchema:
5193
5614
  z.ZodNativeEnum<
5194
- typeof UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType
5615
+ typeof UpdateProjectProjectsResponse200ApplicationJSONResponseBodyLatestDeploymentsType
5195
5616
  > =
5196
- UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema;
5617
+ UpdateProjectProjectsResponse200ApplicationJSONResponseBodyLatestDeploymentsType$inboundSchema;
5197
5618
 
5198
5619
  /**
5199
5620
  * @internal
5200
5621
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5201
5622
  */
5202
- export namespace UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType$ {
5203
- /** @deprecated use `UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema` instead. */
5623
+ export namespace UpdateProjectProjectsResponse200ApplicationJSONResponseBodyLatestDeploymentsType$ {
5624
+ /** @deprecated use `UpdateProjectProjectsResponse200ApplicationJSONResponseBodyLatestDeploymentsType$inboundSchema` instead. */
5204
5625
  export const inboundSchema =
5205
- UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema;
5206
- /** @deprecated use `UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema` instead. */
5626
+ UpdateProjectProjectsResponse200ApplicationJSONResponseBodyLatestDeploymentsType$inboundSchema;
5627
+ /** @deprecated use `UpdateProjectProjectsResponse200ApplicationJSONResponseBodyLatestDeploymentsType$outboundSchema` instead. */
5207
5628
  export const outboundSchema =
5208
- UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema;
5629
+ UpdateProjectProjectsResponse200ApplicationJSONResponseBodyLatestDeploymentsType$outboundSchema;
5209
5630
  }
5210
5631
 
5211
5632
  /** @internal */
5212
- export const UpdateProjectBranchMatcher$inboundSchema: z.ZodType<
5213
- UpdateProjectBranchMatcher,
5633
+ export const UpdateProjectProjectsBranchMatcher$inboundSchema: z.ZodType<
5634
+ UpdateProjectProjectsBranchMatcher,
5214
5635
  z.ZodTypeDef,
5215
5636
  unknown
5216
5637
  > = z.object({
5217
5638
  type:
5218
- UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType$inboundSchema,
5639
+ UpdateProjectProjectsResponse200ApplicationJSONResponseBodyLatestDeploymentsType$inboundSchema,
5219
5640
  pattern: z.string(),
5220
5641
  });
5221
5642
 
5222
5643
  /** @internal */
5223
- export type UpdateProjectBranchMatcher$Outbound = {
5644
+ export type UpdateProjectProjectsBranchMatcher$Outbound = {
5224
5645
  type: string;
5225
5646
  pattern: string;
5226
5647
  };
5227
5648
 
5228
5649
  /** @internal */
5229
- export const UpdateProjectBranchMatcher$outboundSchema: z.ZodType<
5230
- UpdateProjectBranchMatcher$Outbound,
5650
+ export const UpdateProjectProjectsBranchMatcher$outboundSchema: z.ZodType<
5651
+ UpdateProjectProjectsBranchMatcher$Outbound,
5231
5652
  z.ZodTypeDef,
5232
- UpdateProjectBranchMatcher
5653
+ UpdateProjectProjectsBranchMatcher
5233
5654
  > = z.object({
5234
5655
  type:
5235
- UpdateProjectProjectsResponse200ApplicationJSONResponseBodyType$outboundSchema,
5656
+ UpdateProjectProjectsResponse200ApplicationJSONResponseBodyLatestDeploymentsType$outboundSchema,
5236
5657
  pattern: z.string(),
5237
5658
  });
5238
5659
 
@@ -5240,30 +5661,34 @@ export const UpdateProjectBranchMatcher$outboundSchema: z.ZodType<
5240
5661
  * @internal
5241
5662
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5242
5663
  */
5243
- export namespace UpdateProjectBranchMatcher$ {
5244
- /** @deprecated use `UpdateProjectBranchMatcher$inboundSchema` instead. */
5245
- export const inboundSchema = UpdateProjectBranchMatcher$inboundSchema;
5246
- /** @deprecated use `UpdateProjectBranchMatcher$outboundSchema` instead. */
5247
- export const outboundSchema = UpdateProjectBranchMatcher$outboundSchema;
5248
- /** @deprecated use `UpdateProjectBranchMatcher$Outbound` instead. */
5249
- export type Outbound = UpdateProjectBranchMatcher$Outbound;
5664
+ export namespace UpdateProjectProjectsBranchMatcher$ {
5665
+ /** @deprecated use `UpdateProjectProjectsBranchMatcher$inboundSchema` instead. */
5666
+ export const inboundSchema = UpdateProjectProjectsBranchMatcher$inboundSchema;
5667
+ /** @deprecated use `UpdateProjectProjectsBranchMatcher$outboundSchema` instead. */
5668
+ export const outboundSchema =
5669
+ UpdateProjectProjectsBranchMatcher$outboundSchema;
5670
+ /** @deprecated use `UpdateProjectProjectsBranchMatcher$Outbound` instead. */
5671
+ export type Outbound = UpdateProjectProjectsBranchMatcher$Outbound;
5250
5672
  }
5251
5673
 
5252
- export function updateProjectBranchMatcherToJSON(
5253
- updateProjectBranchMatcher: UpdateProjectBranchMatcher,
5674
+ export function updateProjectProjectsBranchMatcherToJSON(
5675
+ updateProjectProjectsBranchMatcher: UpdateProjectProjectsBranchMatcher,
5254
5676
  ): string {
5255
5677
  return JSON.stringify(
5256
- UpdateProjectBranchMatcher$outboundSchema.parse(updateProjectBranchMatcher),
5678
+ UpdateProjectProjectsBranchMatcher$outboundSchema.parse(
5679
+ updateProjectProjectsBranchMatcher,
5680
+ ),
5257
5681
  );
5258
5682
  }
5259
5683
 
5260
- export function updateProjectBranchMatcherFromJSON(
5684
+ export function updateProjectProjectsBranchMatcherFromJSON(
5261
5685
  jsonString: string,
5262
- ): SafeParseResult<UpdateProjectBranchMatcher, SDKValidationError> {
5686
+ ): SafeParseResult<UpdateProjectProjectsBranchMatcher, SDKValidationError> {
5263
5687
  return safeParse(
5264
5688
  jsonString,
5265
- (x) => UpdateProjectBranchMatcher$inboundSchema.parse(JSON.parse(x)),
5266
- `Failed to parse 'UpdateProjectBranchMatcher' from JSON`,
5689
+ (x) =>
5690
+ UpdateProjectProjectsBranchMatcher$inboundSchema.parse(JSON.parse(x)),
5691
+ `Failed to parse 'UpdateProjectProjectsBranchMatcher' from JSON`,
5267
5692
  );
5268
5693
  }
5269
5694
 
@@ -5589,24 +6014,25 @@ export namespace UpdateProjectReadySubstate$ {
5589
6014
  }
5590
6015
 
5591
6016
  /** @internal */
5592
- export const UpdateProjectProjectsType$inboundSchema: z.ZodNativeEnum<
5593
- typeof UpdateProjectProjectsType
5594
- > = z.nativeEnum(UpdateProjectProjectsType);
6017
+ export const UpdateProjectProjectsResponseType$inboundSchema: z.ZodNativeEnum<
6018
+ typeof UpdateProjectProjectsResponseType
6019
+ > = z.nativeEnum(UpdateProjectProjectsResponseType);
5595
6020
 
5596
6021
  /** @internal */
5597
- export const UpdateProjectProjectsType$outboundSchema: z.ZodNativeEnum<
5598
- typeof UpdateProjectProjectsType
5599
- > = UpdateProjectProjectsType$inboundSchema;
6022
+ export const UpdateProjectProjectsResponseType$outboundSchema: z.ZodNativeEnum<
6023
+ typeof UpdateProjectProjectsResponseType
6024
+ > = UpdateProjectProjectsResponseType$inboundSchema;
5600
6025
 
5601
6026
  /**
5602
6027
  * @internal
5603
6028
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5604
6029
  */
5605
- export namespace UpdateProjectProjectsType$ {
5606
- /** @deprecated use `UpdateProjectProjectsType$inboundSchema` instead. */
5607
- export const inboundSchema = UpdateProjectProjectsType$inboundSchema;
5608
- /** @deprecated use `UpdateProjectProjectsType$outboundSchema` instead. */
5609
- export const outboundSchema = UpdateProjectProjectsType$outboundSchema;
6030
+ export namespace UpdateProjectProjectsResponseType$ {
6031
+ /** @deprecated use `UpdateProjectProjectsResponseType$inboundSchema` instead. */
6032
+ export const inboundSchema = UpdateProjectProjectsResponseType$inboundSchema;
6033
+ /** @deprecated use `UpdateProjectProjectsResponseType$outboundSchema` instead. */
6034
+ export const outboundSchema =
6035
+ UpdateProjectProjectsResponseType$outboundSchema;
5610
6036
  }
5611
6037
 
5612
6038
  /** @internal */
@@ -5622,7 +6048,7 @@ export const UpdateProjectLatestDeployments$inboundSchema: z.ZodType<
5622
6048
  .optional(),
5623
6049
  aliasFinal: z.nullable(z.string()).optional(),
5624
6050
  automaticAliases: z.array(z.string()).optional(),
5625
- branchMatcher: z.lazy(() => UpdateProjectBranchMatcher$inboundSchema)
6051
+ branchMatcher: z.lazy(() => UpdateProjectProjectsBranchMatcher$inboundSchema)
5626
6052
  .optional(),
5627
6053
  buildingAt: z.number().optional(),
5628
6054
  builds: z.array(z.lazy(() => UpdateProjectBuilds$inboundSchema)).optional(),
@@ -5650,7 +6076,7 @@ export const UpdateProjectLatestDeployments$inboundSchema: z.ZodType<
5650
6076
  requestedAt: z.number().optional(),
5651
6077
  target: z.nullable(z.string()).optional(),
5652
6078
  teamId: z.nullable(z.string()).optional(),
5653
- type: UpdateProjectProjectsType$inboundSchema,
6079
+ type: UpdateProjectProjectsResponseType$inboundSchema,
5654
6080
  url: z.string(),
5655
6081
  userId: z.string(),
5656
6082
  withCache: z.boolean().optional(),
@@ -5664,7 +6090,7 @@ export type UpdateProjectLatestDeployments$Outbound = {
5664
6090
  aliasError?: UpdateProjectAliasError$Outbound | null | undefined;
5665
6091
  aliasFinal?: string | null | undefined;
5666
6092
  automaticAliases?: Array<string> | undefined;
5667
- branchMatcher?: UpdateProjectBranchMatcher$Outbound | undefined;
6093
+ branchMatcher?: UpdateProjectProjectsBranchMatcher$Outbound | undefined;
5668
6094
  buildingAt?: number | undefined;
5669
6095
  builds?: Array<UpdateProjectBuilds$Outbound> | undefined;
5670
6096
  checksConclusion?: string | undefined;
@@ -5709,7 +6135,7 @@ export const UpdateProjectLatestDeployments$outboundSchema: z.ZodType<
5709
6135
  .optional(),
5710
6136
  aliasFinal: z.nullable(z.string()).optional(),
5711
6137
  automaticAliases: z.array(z.string()).optional(),
5712
- branchMatcher: z.lazy(() => UpdateProjectBranchMatcher$outboundSchema)
6138
+ branchMatcher: z.lazy(() => UpdateProjectProjectsBranchMatcher$outboundSchema)
5713
6139
  .optional(),
5714
6140
  buildingAt: z.number().optional(),
5715
6141
  builds: z.array(z.lazy(() => UpdateProjectBuilds$outboundSchema)).optional(),
@@ -5737,7 +6163,7 @@ export const UpdateProjectLatestDeployments$outboundSchema: z.ZodType<
5737
6163
  requestedAt: z.number().optional(),
5738
6164
  target: z.nullable(z.string()).optional(),
5739
6165
  teamId: z.nullable(z.string()).optional(),
5740
- type: UpdateProjectProjectsType$outboundSchema,
6166
+ type: UpdateProjectProjectsResponseType$outboundSchema,
5741
6167
  url: z.string(),
5742
6168
  userId: z.string(),
5743
6169
  withCache: z.boolean().optional(),
@@ -7105,6 +7531,7 @@ export const UpdateProjectStages$inboundSchema: z.ZodType<
7105
7531
  targetPercentage: z.number(),
7106
7532
  minutesToRelease: z.number().optional(),
7107
7533
  requireApproval: z.boolean().optional(),
7534
+ duration: z.number().optional(),
7108
7535
  });
7109
7536
 
7110
7537
  /** @internal */
@@ -7112,6 +7539,7 @@ export type UpdateProjectStages$Outbound = {
7112
7539
  targetPercentage: number;
7113
7540
  minutesToRelease?: number | undefined;
7114
7541
  requireApproval?: boolean | undefined;
7542
+ duration?: number | undefined;
7115
7543
  };
7116
7544
 
7117
7545
  /** @internal */
@@ -7123,6 +7551,7 @@ export const UpdateProjectStages$outboundSchema: z.ZodType<
7123
7551
  targetPercentage: z.number(),
7124
7552
  minutesToRelease: z.number().optional(),
7125
7553
  requireApproval: z.boolean().optional(),
7554
+ duration: z.number().optional(),
7126
7555
  });
7127
7556
 
7128
7557
  /**
@@ -7540,86 +7969,99 @@ export function updateProjectProjectsAliasErrorFromJSON(
7540
7969
  }
7541
7970
 
7542
7971
  /** @internal */
7543
- export const UpdateProjectProjectsResponse200ApplicationJSONType$inboundSchema:
7544
- z.ZodNativeEnum<typeof UpdateProjectProjectsResponse200ApplicationJSONType> =
7545
- z.nativeEnum(UpdateProjectProjectsResponse200ApplicationJSONType);
7972
+ export const UpdateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType$inboundSchema:
7973
+ z.ZodNativeEnum<
7974
+ typeof UpdateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType
7975
+ > = z.nativeEnum(
7976
+ UpdateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType,
7977
+ );
7546
7978
 
7547
7979
  /** @internal */
7548
- export const UpdateProjectProjectsResponse200ApplicationJSONType$outboundSchema:
7549
- z.ZodNativeEnum<typeof UpdateProjectProjectsResponse200ApplicationJSONType> =
7550
- UpdateProjectProjectsResponse200ApplicationJSONType$inboundSchema;
7980
+ export const UpdateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType$outboundSchema:
7981
+ z.ZodNativeEnum<
7982
+ typeof UpdateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType
7983
+ > =
7984
+ UpdateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType$inboundSchema;
7551
7985
 
7552
7986
  /**
7553
7987
  * @internal
7554
7988
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7555
7989
  */
7556
- export namespace UpdateProjectProjectsResponse200ApplicationJSONType$ {
7557
- /** @deprecated use `UpdateProjectProjectsResponse200ApplicationJSONType$inboundSchema` instead. */
7990
+ export namespace UpdateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType$ {
7991
+ /** @deprecated use `UpdateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType$inboundSchema` instead. */
7558
7992
  export const inboundSchema =
7559
- UpdateProjectProjectsResponse200ApplicationJSONType$inboundSchema;
7560
- /** @deprecated use `UpdateProjectProjectsResponse200ApplicationJSONType$outboundSchema` instead. */
7993
+ UpdateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType$inboundSchema;
7994
+ /** @deprecated use `UpdateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType$outboundSchema` instead. */
7561
7995
  export const outboundSchema =
7562
- UpdateProjectProjectsResponse200ApplicationJSONType$outboundSchema;
7996
+ UpdateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType$outboundSchema;
7563
7997
  }
7564
7998
 
7565
7999
  /** @internal */
7566
- export const UpdateProjectProjectsBranchMatcher$inboundSchema: z.ZodType<
7567
- UpdateProjectProjectsBranchMatcher,
7568
- z.ZodTypeDef,
7569
- unknown
7570
- > = z.object({
7571
- type: UpdateProjectProjectsResponse200ApplicationJSONType$inboundSchema,
7572
- pattern: z.string(),
7573
- });
8000
+ export const UpdateProjectProjectsResponseBranchMatcher$inboundSchema:
8001
+ z.ZodType<UpdateProjectProjectsResponseBranchMatcher, z.ZodTypeDef, unknown> =
8002
+ z.object({
8003
+ type:
8004
+ UpdateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType$inboundSchema,
8005
+ pattern: z.string(),
8006
+ });
7574
8007
 
7575
8008
  /** @internal */
7576
- export type UpdateProjectProjectsBranchMatcher$Outbound = {
8009
+ export type UpdateProjectProjectsResponseBranchMatcher$Outbound = {
7577
8010
  type: string;
7578
8011
  pattern: string;
7579
8012
  };
7580
8013
 
7581
8014
  /** @internal */
7582
- export const UpdateProjectProjectsBranchMatcher$outboundSchema: z.ZodType<
7583
- UpdateProjectProjectsBranchMatcher$Outbound,
7584
- z.ZodTypeDef,
7585
- UpdateProjectProjectsBranchMatcher
7586
- > = z.object({
7587
- type: UpdateProjectProjectsResponse200ApplicationJSONType$outboundSchema,
7588
- pattern: z.string(),
7589
- });
8015
+ export const UpdateProjectProjectsResponseBranchMatcher$outboundSchema:
8016
+ z.ZodType<
8017
+ UpdateProjectProjectsResponseBranchMatcher$Outbound,
8018
+ z.ZodTypeDef,
8019
+ UpdateProjectProjectsResponseBranchMatcher
8020
+ > = z.object({
8021
+ type:
8022
+ UpdateProjectProjectsResponse200ApplicationJSONResponseBodyTargetsType$outboundSchema,
8023
+ pattern: z.string(),
8024
+ });
7590
8025
 
7591
8026
  /**
7592
8027
  * @internal
7593
8028
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7594
8029
  */
7595
- export namespace UpdateProjectProjectsBranchMatcher$ {
7596
- /** @deprecated use `UpdateProjectProjectsBranchMatcher$inboundSchema` instead. */
7597
- export const inboundSchema = UpdateProjectProjectsBranchMatcher$inboundSchema;
7598
- /** @deprecated use `UpdateProjectProjectsBranchMatcher$outboundSchema` instead. */
8030
+ export namespace UpdateProjectProjectsResponseBranchMatcher$ {
8031
+ /** @deprecated use `UpdateProjectProjectsResponseBranchMatcher$inboundSchema` instead. */
8032
+ export const inboundSchema =
8033
+ UpdateProjectProjectsResponseBranchMatcher$inboundSchema;
8034
+ /** @deprecated use `UpdateProjectProjectsResponseBranchMatcher$outboundSchema` instead. */
7599
8035
  export const outboundSchema =
7600
- UpdateProjectProjectsBranchMatcher$outboundSchema;
7601
- /** @deprecated use `UpdateProjectProjectsBranchMatcher$Outbound` instead. */
7602
- export type Outbound = UpdateProjectProjectsBranchMatcher$Outbound;
8036
+ UpdateProjectProjectsResponseBranchMatcher$outboundSchema;
8037
+ /** @deprecated use `UpdateProjectProjectsResponseBranchMatcher$Outbound` instead. */
8038
+ export type Outbound = UpdateProjectProjectsResponseBranchMatcher$Outbound;
7603
8039
  }
7604
8040
 
7605
- export function updateProjectProjectsBranchMatcherToJSON(
7606
- updateProjectProjectsBranchMatcher: UpdateProjectProjectsBranchMatcher,
8041
+ export function updateProjectProjectsResponseBranchMatcherToJSON(
8042
+ updateProjectProjectsResponseBranchMatcher:
8043
+ UpdateProjectProjectsResponseBranchMatcher,
7607
8044
  ): string {
7608
8045
  return JSON.stringify(
7609
- UpdateProjectProjectsBranchMatcher$outboundSchema.parse(
7610
- updateProjectProjectsBranchMatcher,
8046
+ UpdateProjectProjectsResponseBranchMatcher$outboundSchema.parse(
8047
+ updateProjectProjectsResponseBranchMatcher,
7611
8048
  ),
7612
8049
  );
7613
8050
  }
7614
8051
 
7615
- export function updateProjectProjectsBranchMatcherFromJSON(
8052
+ export function updateProjectProjectsResponseBranchMatcherFromJSON(
7616
8053
  jsonString: string,
7617
- ): SafeParseResult<UpdateProjectProjectsBranchMatcher, SDKValidationError> {
8054
+ ): SafeParseResult<
8055
+ UpdateProjectProjectsResponseBranchMatcher,
8056
+ SDKValidationError
8057
+ > {
7618
8058
  return safeParse(
7619
8059
  jsonString,
7620
8060
  (x) =>
7621
- UpdateProjectProjectsBranchMatcher$inboundSchema.parse(JSON.parse(x)),
7622
- `Failed to parse 'UpdateProjectProjectsBranchMatcher' from JSON`,
8061
+ UpdateProjectProjectsResponseBranchMatcher$inboundSchema.parse(
8062
+ JSON.parse(x),
8063
+ ),
8064
+ `Failed to parse 'UpdateProjectProjectsResponseBranchMatcher' from JSON`,
7623
8065
  );
7624
8066
  }
7625
8067
 
@@ -7956,25 +8398,27 @@ export namespace UpdateProjectProjectsReadySubstate$ {
7956
8398
  }
7957
8399
 
7958
8400
  /** @internal */
7959
- export const UpdateProjectProjectsResponseType$inboundSchema: z.ZodNativeEnum<
7960
- typeof UpdateProjectProjectsResponseType
7961
- > = z.nativeEnum(UpdateProjectProjectsResponseType);
8401
+ export const UpdateProjectProjectsResponse200Type$inboundSchema:
8402
+ z.ZodNativeEnum<typeof UpdateProjectProjectsResponse200Type> = z.nativeEnum(
8403
+ UpdateProjectProjectsResponse200Type,
8404
+ );
7962
8405
 
7963
8406
  /** @internal */
7964
- export const UpdateProjectProjectsResponseType$outboundSchema: z.ZodNativeEnum<
7965
- typeof UpdateProjectProjectsResponseType
7966
- > = UpdateProjectProjectsResponseType$inboundSchema;
8407
+ export const UpdateProjectProjectsResponse200Type$outboundSchema:
8408
+ z.ZodNativeEnum<typeof UpdateProjectProjectsResponse200Type> =
8409
+ UpdateProjectProjectsResponse200Type$inboundSchema;
7967
8410
 
7968
8411
  /**
7969
8412
  * @internal
7970
8413
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
7971
8414
  */
7972
- export namespace UpdateProjectProjectsResponseType$ {
7973
- /** @deprecated use `UpdateProjectProjectsResponseType$inboundSchema` instead. */
7974
- export const inboundSchema = UpdateProjectProjectsResponseType$inboundSchema;
7975
- /** @deprecated use `UpdateProjectProjectsResponseType$outboundSchema` instead. */
8415
+ export namespace UpdateProjectProjectsResponse200Type$ {
8416
+ /** @deprecated use `UpdateProjectProjectsResponse200Type$inboundSchema` instead. */
8417
+ export const inboundSchema =
8418
+ UpdateProjectProjectsResponse200Type$inboundSchema;
8419
+ /** @deprecated use `UpdateProjectProjectsResponse200Type$outboundSchema` instead. */
7976
8420
  export const outboundSchema =
7977
- UpdateProjectProjectsResponseType$outboundSchema;
8421
+ UpdateProjectProjectsResponse200Type$outboundSchema;
7978
8422
  }
7979
8423
 
7980
8424
  /** @internal */
@@ -7991,8 +8435,9 @@ export const UpdateProjectTargets$inboundSchema: z.ZodType<
7991
8435
  ).optional(),
7992
8436
  aliasFinal: z.nullable(z.string()).optional(),
7993
8437
  automaticAliases: z.array(z.string()).optional(),
7994
- branchMatcher: z.lazy(() => UpdateProjectProjectsBranchMatcher$inboundSchema)
7995
- .optional(),
8438
+ branchMatcher: z.lazy(() =>
8439
+ UpdateProjectProjectsResponseBranchMatcher$inboundSchema
8440
+ ).optional(),
7996
8441
  buildingAt: z.number().optional(),
7997
8442
  builds: z.array(z.lazy(() => UpdateProjectProjectsBuilds$inboundSchema))
7998
8443
  .optional(),
@@ -8022,7 +8467,7 @@ export const UpdateProjectTargets$inboundSchema: z.ZodType<
8022
8467
  requestedAt: z.number().optional(),
8023
8468
  target: z.nullable(z.string()).optional(),
8024
8469
  teamId: z.nullable(z.string()).optional(),
8025
- type: UpdateProjectProjectsResponseType$inboundSchema,
8470
+ type: UpdateProjectProjectsResponse200Type$inboundSchema,
8026
8471
  url: z.string(),
8027
8472
  userId: z.string(),
8028
8473
  withCache: z.boolean().optional(),
@@ -8036,7 +8481,9 @@ export type UpdateProjectTargets$Outbound = {
8036
8481
  aliasError?: UpdateProjectProjectsAliasError$Outbound | null | undefined;
8037
8482
  aliasFinal?: string | null | undefined;
8038
8483
  automaticAliases?: Array<string> | undefined;
8039
- branchMatcher?: UpdateProjectProjectsBranchMatcher$Outbound | undefined;
8484
+ branchMatcher?:
8485
+ | UpdateProjectProjectsResponseBranchMatcher$Outbound
8486
+ | undefined;
8040
8487
  buildingAt?: number | undefined;
8041
8488
  builds?: Array<UpdateProjectProjectsBuilds$Outbound> | undefined;
8042
8489
  checksConclusion?: string | undefined;
@@ -8082,8 +8529,9 @@ export const UpdateProjectTargets$outboundSchema: z.ZodType<
8082
8529
  ).optional(),
8083
8530
  aliasFinal: z.nullable(z.string()).optional(),
8084
8531
  automaticAliases: z.array(z.string()).optional(),
8085
- branchMatcher: z.lazy(() => UpdateProjectProjectsBranchMatcher$outboundSchema)
8086
- .optional(),
8532
+ branchMatcher: z.lazy(() =>
8533
+ UpdateProjectProjectsResponseBranchMatcher$outboundSchema
8534
+ ).optional(),
8087
8535
  buildingAt: z.number().optional(),
8088
8536
  builds: z.array(z.lazy(() => UpdateProjectProjectsBuilds$outboundSchema))
8089
8537
  .optional(),
@@ -8115,7 +8563,7 @@ export const UpdateProjectTargets$outboundSchema: z.ZodType<
8115
8563
  requestedAt: z.number().optional(),
8116
8564
  target: z.nullable(z.string()).optional(),
8117
8565
  teamId: z.nullable(z.string()).optional(),
8118
- type: UpdateProjectProjectsResponseType$outboundSchema,
8566
+ type: UpdateProjectProjectsResponse200Type$outboundSchema,
8119
8567
  url: z.string(),
8120
8568
  userId: z.string(),
8121
8569
  withCache: z.boolean().optional(),
@@ -8884,27 +9332,26 @@ export namespace UpdateProjectJobStatus$ {
8884
9332
  }
8885
9333
 
8886
9334
  /** @internal */
8887
- export const UpdateProjectProjectsResponse200Type$inboundSchema:
8888
- z.ZodNativeEnum<typeof UpdateProjectProjectsResponse200Type> = z.nativeEnum(
8889
- UpdateProjectProjectsResponse200Type,
8890
- );
9335
+ export const UpdateProjectProjectsResponse200ApplicationJSONType$inboundSchema:
9336
+ z.ZodNativeEnum<typeof UpdateProjectProjectsResponse200ApplicationJSONType> =
9337
+ z.nativeEnum(UpdateProjectProjectsResponse200ApplicationJSONType);
8891
9338
 
8892
9339
  /** @internal */
8893
- export const UpdateProjectProjectsResponse200Type$outboundSchema:
8894
- z.ZodNativeEnum<typeof UpdateProjectProjectsResponse200Type> =
8895
- UpdateProjectProjectsResponse200Type$inboundSchema;
9340
+ export const UpdateProjectProjectsResponse200ApplicationJSONType$outboundSchema:
9341
+ z.ZodNativeEnum<typeof UpdateProjectProjectsResponse200ApplicationJSONType> =
9342
+ UpdateProjectProjectsResponse200ApplicationJSONType$inboundSchema;
8896
9343
 
8897
9344
  /**
8898
9345
  * @internal
8899
9346
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
8900
9347
  */
8901
- export namespace UpdateProjectProjectsResponse200Type$ {
8902
- /** @deprecated use `UpdateProjectProjectsResponse200Type$inboundSchema` instead. */
9348
+ export namespace UpdateProjectProjectsResponse200ApplicationJSONType$ {
9349
+ /** @deprecated use `UpdateProjectProjectsResponse200ApplicationJSONType$inboundSchema` instead. */
8903
9350
  export const inboundSchema =
8904
- UpdateProjectProjectsResponse200Type$inboundSchema;
8905
- /** @deprecated use `UpdateProjectProjectsResponse200Type$outboundSchema` instead. */
9351
+ UpdateProjectProjectsResponse200ApplicationJSONType$inboundSchema;
9352
+ /** @deprecated use `UpdateProjectProjectsResponse200ApplicationJSONType$outboundSchema` instead. */
8906
9353
  export const outboundSchema =
8907
- UpdateProjectProjectsResponse200Type$outboundSchema;
9354
+ UpdateProjectProjectsResponse200ApplicationJSONType$outboundSchema;
8908
9355
  }
8909
9356
 
8910
9357
  /** @internal */
@@ -8915,15 +9362,17 @@ export const UpdateProjectLastAliasRequest$inboundSchema: z.ZodType<
8915
9362
  > = z.object({
8916
9363
  fromDeploymentId: z.string(),
8917
9364
  toDeploymentId: z.string(),
9365
+ fromRollingReleaseId: z.string().optional(),
8918
9366
  jobStatus: UpdateProjectJobStatus$inboundSchema,
8919
9367
  requestedAt: z.number(),
8920
- type: UpdateProjectProjectsResponse200Type$inboundSchema,
9368
+ type: UpdateProjectProjectsResponse200ApplicationJSONType$inboundSchema,
8921
9369
  });
8922
9370
 
8923
9371
  /** @internal */
8924
9372
  export type UpdateProjectLastAliasRequest$Outbound = {
8925
9373
  fromDeploymentId: string;
8926
9374
  toDeploymentId: string;
9375
+ fromRollingReleaseId?: string | undefined;
8927
9376
  jobStatus: string;
8928
9377
  requestedAt: number;
8929
9378
  type: string;
@@ -8937,9 +9386,10 @@ export const UpdateProjectLastAliasRequest$outboundSchema: z.ZodType<
8937
9386
  > = z.object({
8938
9387
  fromDeploymentId: z.string(),
8939
9388
  toDeploymentId: z.string(),
9389
+ fromRollingReleaseId: z.string().optional(),
8940
9390
  jobStatus: UpdateProjectJobStatus$outboundSchema,
8941
9391
  requestedAt: z.number(),
8942
- type: UpdateProjectProjectsResponse200Type$outboundSchema,
9392
+ type: UpdateProjectProjectsResponse200ApplicationJSONType$outboundSchema,
8943
9393
  });
8944
9394
 
8945
9395
  /**