@vercel/sdk 1.6.3 → 1.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/README.md +2 -0
  2. package/bin/mcp-server.js +3504 -1244
  3. package/bin/mcp-server.js.map +28 -25
  4. package/docs/sdks/edgeconfig/README.md +2 -6
  5. package/docs/sdks/marketplace/README.md +2 -6
  6. package/docs/sdks/security/README.md +90 -0
  7. package/docs/sdks/webhooks/README.md +2 -6
  8. package/esm/__tests__/deployments.test.js +16 -1
  9. package/esm/__tests__/deployments.test.js.map +1 -1
  10. package/esm/__tests__/marketplace.test.js +7 -2
  11. package/esm/__tests__/marketplace.test.js.map +1 -1
  12. package/esm/__tests__/projects.test.js +4 -4
  13. package/esm/__tests__/projects.test.js.map +1 -1
  14. package/esm/__tests__/security.test.js +163 -3
  15. package/esm/__tests__/security.test.js.map +1 -1
  16. package/esm/funcs/projectsCreateProject.js +2 -2
  17. package/esm/funcs/projectsCreateProject.js.map +1 -1
  18. package/esm/funcs/securityPutFirewallConfig.d.ts +19 -0
  19. package/esm/funcs/securityPutFirewallConfig.d.ts.map +1 -0
  20. package/esm/funcs/securityPutFirewallConfig.js +88 -0
  21. package/esm/funcs/securityPutFirewallConfig.js.map +1 -0
  22. package/esm/lib/config.d.ts +3 -3
  23. package/esm/lib/config.js +3 -3
  24. package/esm/mcp-server/mcp-server.js +1 -1
  25. package/esm/mcp-server/server.d.ts.map +1 -1
  26. package/esm/mcp-server/server.js +3 -1
  27. package/esm/mcp-server/server.js.map +1 -1
  28. package/esm/mcp-server/tools/securityPutFirewallConfig.d.ts +7 -0
  29. package/esm/mcp-server/tools/securityPutFirewallConfig.d.ts.map +1 -0
  30. package/esm/mcp-server/tools/securityPutFirewallConfig.js +28 -0
  31. package/esm/mcp-server/tools/securityPutFirewallConfig.js.map +1 -0
  32. package/esm/models/authtoken.d.ts +6 -0
  33. package/esm/models/authtoken.d.ts.map +1 -1
  34. package/esm/models/authtoken.js +2 -0
  35. package/esm/models/authtoken.js.map +1 -1
  36. package/esm/models/authuser.d.ts +46 -0
  37. package/esm/models/authuser.d.ts.map +1 -1
  38. package/esm/models/authuser.js +28 -0
  39. package/esm/models/authuser.js.map +1 -1
  40. package/esm/models/canceldeploymentop.d.ts +274 -73
  41. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  42. package/esm/models/canceldeploymentop.js +270 -72
  43. package/esm/models/canceldeploymentop.js.map +1 -1
  44. package/esm/models/createdeploymentop.d.ts +274 -73
  45. package/esm/models/createdeploymentop.d.ts.map +1 -1
  46. package/esm/models/createdeploymentop.js +270 -72
  47. package/esm/models/createdeploymentop.js.map +1 -1
  48. package/esm/models/createprojectenvop.d.ts +12 -18
  49. package/esm/models/createprojectenvop.d.ts.map +1 -1
  50. package/esm/models/createprojectenvop.js +12 -12
  51. package/esm/models/createprojectenvop.js.map +1 -1
  52. package/esm/models/createprojectop.d.ts +175 -13
  53. package/esm/models/createprojectop.d.ts.map +1 -1
  54. package/esm/models/createprojectop.js +157 -6
  55. package/esm/models/createprojectop.js.map +1 -1
  56. package/esm/models/editprojectenvop.d.ts +4 -7
  57. package/esm/models/editprojectenvop.d.ts.map +1 -1
  58. package/esm/models/editprojectenvop.js +4 -4
  59. package/esm/models/editprojectenvop.js.map +1 -1
  60. package/esm/models/filterprojectenvsop.d.ts +18 -27
  61. package/esm/models/filterprojectenvsop.d.ts.map +1 -1
  62. package/esm/models/filterprojectenvsop.js +18 -18
  63. package/esm/models/filterprojectenvsop.js.map +1 -1
  64. package/esm/models/getdeploymentop.d.ts +574 -172
  65. package/esm/models/getdeploymentop.d.ts.map +1 -1
  66. package/esm/models/getdeploymentop.js +567 -171
  67. package/esm/models/getdeploymentop.js.map +1 -1
  68. package/esm/models/getfirewallconfigop.d.ts +214 -214
  69. package/esm/models/getfirewallconfigop.d.ts.map +1 -1
  70. package/esm/models/getfirewallconfigop.js +210 -231
  71. package/esm/models/getfirewallconfigop.js.map +1 -1
  72. package/esm/models/getprojectdomainsop.d.ts +198 -36
  73. package/esm/models/getprojectdomainsop.d.ts.map +1 -1
  74. package/esm/models/getprojectdomainsop.js +193 -32
  75. package/esm/models/getprojectdomainsop.js.map +1 -1
  76. package/esm/models/getprojectenvop.d.ts +10 -16
  77. package/esm/models/getprojectenvop.d.ts.map +1 -1
  78. package/esm/models/getprojectenvop.js +10 -10
  79. package/esm/models/getprojectenvop.js.map +1 -1
  80. package/esm/models/getprojectsop.d.ts +175 -13
  81. package/esm/models/getprojectsop.d.ts.map +1 -1
  82. package/esm/models/getprojectsop.js +156 -6
  83. package/esm/models/getprojectsop.js.map +1 -1
  84. package/esm/models/putfirewallconfigop.d.ts +2901 -0
  85. package/esm/models/putfirewallconfigop.d.ts.map +1 -0
  86. package/esm/models/putfirewallconfigop.js +2383 -0
  87. package/esm/models/putfirewallconfigop.js.map +1 -0
  88. package/esm/models/removeprojectenvop.d.ts +18 -27
  89. package/esm/models/removeprojectenvop.d.ts.map +1 -1
  90. package/esm/models/removeprojectenvop.js +18 -18
  91. package/esm/models/removeprojectenvop.js.map +1 -1
  92. package/esm/models/updatefirewallconfigop.d.ts +323 -323
  93. package/esm/models/updatefirewallconfigop.d.ts.map +1 -1
  94. package/esm/models/updatefirewallconfigop.js +379 -357
  95. package/esm/models/updatefirewallconfigop.js.map +1 -1
  96. package/esm/models/updateprojectdatacacheop.d.ts +183 -21
  97. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  98. package/esm/models/updateprojectdatacacheop.js +172 -18
  99. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  100. package/esm/models/updateprojectop.d.ts +175 -13
  101. package/esm/models/updateprojectop.d.ts.map +1 -1
  102. package/esm/models/updateprojectop.js +157 -6
  103. package/esm/models/updateprojectop.js.map +1 -1
  104. package/esm/models/userevent.d.ts +46 -19
  105. package/esm/models/userevent.d.ts.map +1 -1
  106. package/esm/models/userevent.js +34 -10
  107. package/esm/models/userevent.js.map +1 -1
  108. package/esm/sdk/security.d.ts +8 -0
  109. package/esm/sdk/security.d.ts.map +1 -1
  110. package/esm/sdk/security.js +10 -0
  111. package/esm/sdk/security.js.map +1 -1
  112. package/jsr.json +1 -1
  113. package/package.json +3 -3
  114. package/src/__tests__/deployments.test.ts +16 -1
  115. package/src/__tests__/marketplace.test.ts +7 -2
  116. package/src/__tests__/projects.test.ts +4 -4
  117. package/src/__tests__/security.test.ts +165 -5
  118. package/src/funcs/projectsCreateProject.ts +2 -2
  119. package/src/funcs/securityPutFirewallConfig.ts +194 -0
  120. package/src/lib/config.ts +3 -3
  121. package/src/mcp-server/mcp-server.ts +1 -1
  122. package/src/mcp-server/server.ts +3 -1
  123. package/src/mcp-server/tools/securityPutFirewallConfig.ts +37 -0
  124. package/src/models/authtoken.ts +2 -0
  125. package/src/models/authuser.ts +52 -0
  126. package/src/models/canceldeploymentop.ts +591 -148
  127. package/src/models/createdeploymentop.ts +616 -165
  128. package/src/models/createprojectenvop.ts +24 -30
  129. package/src/models/createprojectop.ts +336 -15
  130. package/src/models/editprojectenvop.ts +8 -11
  131. package/src/models/filterprojectenvsop.ts +36 -45
  132. package/src/models/getdeploymentop.ts +1288 -353
  133. package/src/models/getfirewallconfigop.ts +555 -410
  134. package/src/models/getprojectdomainsop.ts +470 -63
  135. package/src/models/getprojectenvop.ts +20 -26
  136. package/src/models/getprojectsop.ts +338 -16
  137. package/src/models/putfirewallconfigop.ts +4932 -0
  138. package/src/models/removeprojectenvop.ts +36 -45
  139. package/src/models/updatefirewallconfigop.ts +820 -612
  140. package/src/models/updateprojectdatacacheop.ts +353 -34
  141. package/src/models/updateprojectop.ts +336 -15
  142. package/src/models/userevent.ts +54 -29
  143. package/src/sdk/security.ts +22 -0
  144. package/vercel-spec.json +1375 -286
@@ -432,9 +432,11 @@ export type GetProjectsEnv = {
432
432
  * This is used to identiy variables that have been migrated from type secret to sensitive.
433
433
  */
434
434
  sunsetSecretId?: string | undefined;
435
+ decrypted?: boolean | undefined;
436
+ value: string;
437
+ vsmValue?: string | undefined;
435
438
  id?: string | undefined;
436
439
  key: string;
437
- value: string;
438
440
  configurationId?: string | null | undefined;
439
441
  createdAt?: number | undefined;
440
442
  updatedAt?: number | undefined;
@@ -465,13 +467,8 @@ export type GetProjectsEnv = {
465
467
  * Similar to `contentHints`, but should not be exposed to the user.
466
468
  */
467
469
  internalContentHint?: GetProjectsInternalContentHint | null | undefined;
468
- /**
469
- * Whether `value` and `vsmValue` are decrypted.
470
- */
471
- decrypted?: boolean | undefined;
472
470
  comment?: string | undefined;
473
471
  customEnvironmentIds?: Array<string> | undefined;
474
- vsmValue?: string | undefined;
475
472
  };
476
473
 
477
474
  export type GetProjectsCustomEnvironments = {};
@@ -683,6 +680,39 @@ export type GetProjectsLatestDeployments = {
683
680
  withCache?: boolean | undefined;
684
681
  };
685
682
 
683
+ export const GetProjectsLinkProjectsResponse200Type = {
684
+ GithubCustomHost: "github-custom-host",
685
+ } as const;
686
+ export type GetProjectsLinkProjectsResponse200Type = ClosedEnum<
687
+ typeof GetProjectsLinkProjectsResponse200Type
688
+ >;
689
+
690
+ export type GetProjectsLinkProjectsResponse200DeployHooks = {
691
+ createdAt?: number | undefined;
692
+ id: string;
693
+ name: string;
694
+ ref: string;
695
+ url: string;
696
+ };
697
+
698
+ export type GetProjectsLink4 = {
699
+ org?: string | undefined;
700
+ /**
701
+ * A new field, should be included in all new project links, is being added just in time when a deployment is created. This is needed for Protected Git scopes.
702
+ */
703
+ repoOwnerId?: number | undefined;
704
+ repo?: string | undefined;
705
+ repoId?: number | undefined;
706
+ type?: GetProjectsLinkProjectsResponse200Type | undefined;
707
+ host?: string | undefined;
708
+ createdAt?: number | undefined;
709
+ deployHooks: Array<GetProjectsLinkProjectsResponse200DeployHooks>;
710
+ gitCredentialId?: string | undefined;
711
+ updatedAt?: number | undefined;
712
+ sourceless?: boolean | undefined;
713
+ productionBranch?: string | undefined;
714
+ };
715
+
686
716
  export const GetProjectsLinkProjectsResponseType = {
687
717
  Bitbucket: "bitbucket",
688
718
  } as const;
@@ -780,6 +810,7 @@ export type GetProjectsLink1 = {
780
810
  export type GetProjectsLink =
781
811
  | GetProjectsLink1
782
812
  | GetProjectsLink3
813
+ | GetProjectsLink4
783
814
  | GetProjectsLink2;
784
815
 
785
816
  export type GetProjectsMicrofrontends2 = {
@@ -850,6 +881,13 @@ export type GetProjectsFunctionDefaultMemoryType = ClosedEnum<
850
881
  typeof GetProjectsFunctionDefaultMemoryType
851
882
  >;
852
883
 
884
+ export const GetProjectsBuildMachineType = {
885
+ Enhanced: "enhanced",
886
+ } as const;
887
+ export type GetProjectsBuildMachineType = ClosedEnum<
888
+ typeof GetProjectsBuildMachineType
889
+ >;
890
+
853
891
  export type GetProjectsResourceConfig = {
854
892
  fluid?: boolean | undefined;
855
893
  functionDefaultRegions: Array<string>;
@@ -857,6 +895,7 @@ export type GetProjectsResourceConfig = {
857
895
  functionDefaultMemoryType?: GetProjectsFunctionDefaultMemoryType | undefined;
858
896
  functionZeroConfigFailover?: boolean | undefined;
859
897
  elasticConcurrencyEnabled?: boolean | undefined;
898
+ buildMachineType?: GetProjectsBuildMachineType | undefined;
860
899
  };
861
900
 
862
901
  /**
@@ -867,6 +906,14 @@ export type GetProjectsStages = {
867
906
  * The percentage of traffic to serve to the new deployment
868
907
  */
869
908
  targetPercentage: number;
909
+ /**
910
+ * minutesToRelease is the total time to gradually shift percentages. This value overrides stages and instead creates a single smooth starting percentage to ending percentage stage. So once we have fetched the document with the update time, subtract from the current time, and divide by total minutesToRelease, to determine what percentage of traffic the new deployment should be serving.
911
+ */
912
+ minutesToRelease?: number | undefined;
913
+ /**
914
+ * Whether or not this stage requires approval to proceed.
915
+ */
916
+ requireApproval?: boolean | undefined;
870
917
  };
871
918
 
872
919
  export type GetProjectsRollingRelease = {
@@ -893,6 +940,13 @@ export type GetProjectsProjectsFunctionDefaultMemoryType = ClosedEnum<
893
940
  typeof GetProjectsProjectsFunctionDefaultMemoryType
894
941
  >;
895
942
 
943
+ export const GetProjectsProjectsBuildMachineType = {
944
+ Enhanced: "enhanced",
945
+ } as const;
946
+ export type GetProjectsProjectsBuildMachineType = ClosedEnum<
947
+ typeof GetProjectsProjectsBuildMachineType
948
+ >;
949
+
896
950
  export type GetProjectsDefaultResourceConfig = {
897
951
  fluid?: boolean | undefined;
898
952
  functionDefaultRegions: Array<string>;
@@ -902,6 +956,7 @@ export type GetProjectsDefaultResourceConfig = {
902
956
  | undefined;
903
957
  functionZeroConfigFailover?: boolean | undefined;
904
958
  elasticConcurrencyEnabled?: boolean | undefined;
959
+ buildMachineType?: GetProjectsProjectsBuildMachineType | undefined;
905
960
  };
906
961
 
907
962
  export const GetProjectsDeploymentType = {
@@ -1157,6 +1212,7 @@ export type GetProjectsPermissions = {
1157
1212
  notificationCustomerBudget?: Array<ACLAction> | undefined;
1158
1213
  notificationStatementOfReasons?: Array<ACLAction> | undefined;
1159
1214
  observabilityConfiguration?: Array<ACLAction> | undefined;
1215
+ observabilityNotebook?: Array<ACLAction> | undefined;
1160
1216
  openTelemetryEndpoint?: Array<ACLAction> | undefined;
1161
1217
  paymentMethod?: Array<ACLAction> | undefined;
1162
1218
  permissions?: Array<ACLAction> | undefined;
@@ -1626,7 +1682,12 @@ export type GetProjectsProjects = {
1626
1682
  id: string;
1627
1683
  ipBuckets?: Array<GetProjectsIpBuckets> | undefined;
1628
1684
  latestDeployments?: Array<GetProjectsLatestDeployments> | undefined;
1629
- link?: GetProjectsLink1 | GetProjectsLink3 | GetProjectsLink2 | undefined;
1685
+ link?:
1686
+ | GetProjectsLink1
1687
+ | GetProjectsLink3
1688
+ | GetProjectsLink4
1689
+ | GetProjectsLink2
1690
+ | undefined;
1630
1691
  microfrontends?:
1631
1692
  | GetProjectsMicrofrontends2
1632
1693
  | GetProjectsMicrofrontends1
@@ -3793,9 +3854,11 @@ export const GetProjectsEnv$inboundSchema: z.ZodType<
3793
3854
  ]).optional(),
3794
3855
  type: GetProjectsType$inboundSchema,
3795
3856
  sunsetSecretId: z.string().optional(),
3857
+ decrypted: z.boolean().optional(),
3858
+ value: z.string(),
3859
+ vsmValue: z.string().optional(),
3796
3860
  id: z.string().optional(),
3797
3861
  key: z.string(),
3798
- value: z.string(),
3799
3862
  configurationId: z.nullable(z.string()).optional(),
3800
3863
  createdAt: z.number().optional(),
3801
3864
  updatedAt: z.number().optional(),
@@ -3826,10 +3889,8 @@ export const GetProjectsEnv$inboundSchema: z.ZodType<
3826
3889
  internalContentHint: z.nullable(
3827
3890
  z.lazy(() => GetProjectsInternalContentHint$inboundSchema),
3828
3891
  ).optional(),
3829
- decrypted: z.boolean().optional(),
3830
3892
  comment: z.string().optional(),
3831
3893
  customEnvironmentIds: z.array(z.string()).optional(),
3832
- vsmValue: z.string().optional(),
3833
3894
  });
3834
3895
 
3835
3896
  /** @internal */
@@ -3837,9 +3898,11 @@ export type GetProjectsEnv$Outbound = {
3837
3898
  target?: Array<string> | string | undefined;
3838
3899
  type: string;
3839
3900
  sunsetSecretId?: string | undefined;
3901
+ decrypted?: boolean | undefined;
3902
+ value: string;
3903
+ vsmValue?: string | undefined;
3840
3904
  id?: string | undefined;
3841
3905
  key: string;
3842
- value: string;
3843
3906
  configurationId?: string | null | undefined;
3844
3907
  createdAt?: number | undefined;
3845
3908
  updatedAt?: number | undefined;
@@ -3870,10 +3933,8 @@ export type GetProjectsEnv$Outbound = {
3870
3933
  | GetProjectsInternalContentHint$Outbound
3871
3934
  | null
3872
3935
  | undefined;
3873
- decrypted?: boolean | undefined;
3874
3936
  comment?: string | undefined;
3875
3937
  customEnvironmentIds?: Array<string> | undefined;
3876
- vsmValue?: string | undefined;
3877
3938
  };
3878
3939
 
3879
3940
  /** @internal */
@@ -3888,9 +3949,11 @@ export const GetProjectsEnv$outboundSchema: z.ZodType<
3888
3949
  ]).optional(),
3889
3950
  type: GetProjectsType$outboundSchema,
3890
3951
  sunsetSecretId: z.string().optional(),
3952
+ decrypted: z.boolean().optional(),
3953
+ value: z.string(),
3954
+ vsmValue: z.string().optional(),
3891
3955
  id: z.string().optional(),
3892
3956
  key: z.string(),
3893
- value: z.string(),
3894
3957
  configurationId: z.nullable(z.string()).optional(),
3895
3958
  createdAt: z.number().optional(),
3896
3959
  updatedAt: z.number().optional(),
@@ -3921,10 +3984,8 @@ export const GetProjectsEnv$outboundSchema: z.ZodType<
3921
3984
  internalContentHint: z.nullable(
3922
3985
  z.lazy(() => GetProjectsInternalContentHint$outboundSchema),
3923
3986
  ).optional(),
3924
- decrypted: z.boolean().optional(),
3925
3987
  comment: z.string().optional(),
3926
3988
  customEnvironmentIds: z.array(z.string()).optional(),
3927
- vsmValue: z.string().optional(),
3928
3989
  });
3929
3990
 
3930
3991
  /**
@@ -4781,6 +4842,200 @@ export function getProjectsLatestDeploymentsFromJSON(
4781
4842
  );
4782
4843
  }
4783
4844
 
4845
+ /** @internal */
4846
+ export const GetProjectsLinkProjectsResponse200Type$inboundSchema:
4847
+ z.ZodNativeEnum<typeof GetProjectsLinkProjectsResponse200Type> = z.nativeEnum(
4848
+ GetProjectsLinkProjectsResponse200Type,
4849
+ );
4850
+
4851
+ /** @internal */
4852
+ export const GetProjectsLinkProjectsResponse200Type$outboundSchema:
4853
+ z.ZodNativeEnum<typeof GetProjectsLinkProjectsResponse200Type> =
4854
+ GetProjectsLinkProjectsResponse200Type$inboundSchema;
4855
+
4856
+ /**
4857
+ * @internal
4858
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4859
+ */
4860
+ export namespace GetProjectsLinkProjectsResponse200Type$ {
4861
+ /** @deprecated use `GetProjectsLinkProjectsResponse200Type$inboundSchema` instead. */
4862
+ export const inboundSchema =
4863
+ GetProjectsLinkProjectsResponse200Type$inboundSchema;
4864
+ /** @deprecated use `GetProjectsLinkProjectsResponse200Type$outboundSchema` instead. */
4865
+ export const outboundSchema =
4866
+ GetProjectsLinkProjectsResponse200Type$outboundSchema;
4867
+ }
4868
+
4869
+ /** @internal */
4870
+ export const GetProjectsLinkProjectsResponse200DeployHooks$inboundSchema:
4871
+ z.ZodType<
4872
+ GetProjectsLinkProjectsResponse200DeployHooks,
4873
+ z.ZodTypeDef,
4874
+ unknown
4875
+ > = z.object({
4876
+ createdAt: z.number().optional(),
4877
+ id: z.string(),
4878
+ name: z.string(),
4879
+ ref: z.string(),
4880
+ url: z.string(),
4881
+ });
4882
+
4883
+ /** @internal */
4884
+ export type GetProjectsLinkProjectsResponse200DeployHooks$Outbound = {
4885
+ createdAt?: number | undefined;
4886
+ id: string;
4887
+ name: string;
4888
+ ref: string;
4889
+ url: string;
4890
+ };
4891
+
4892
+ /** @internal */
4893
+ export const GetProjectsLinkProjectsResponse200DeployHooks$outboundSchema:
4894
+ z.ZodType<
4895
+ GetProjectsLinkProjectsResponse200DeployHooks$Outbound,
4896
+ z.ZodTypeDef,
4897
+ GetProjectsLinkProjectsResponse200DeployHooks
4898
+ > = z.object({
4899
+ createdAt: z.number().optional(),
4900
+ id: z.string(),
4901
+ name: z.string(),
4902
+ ref: z.string(),
4903
+ url: z.string(),
4904
+ });
4905
+
4906
+ /**
4907
+ * @internal
4908
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4909
+ */
4910
+ export namespace GetProjectsLinkProjectsResponse200DeployHooks$ {
4911
+ /** @deprecated use `GetProjectsLinkProjectsResponse200DeployHooks$inboundSchema` instead. */
4912
+ export const inboundSchema =
4913
+ GetProjectsLinkProjectsResponse200DeployHooks$inboundSchema;
4914
+ /** @deprecated use `GetProjectsLinkProjectsResponse200DeployHooks$outboundSchema` instead. */
4915
+ export const outboundSchema =
4916
+ GetProjectsLinkProjectsResponse200DeployHooks$outboundSchema;
4917
+ /** @deprecated use `GetProjectsLinkProjectsResponse200DeployHooks$Outbound` instead. */
4918
+ export type Outbound = GetProjectsLinkProjectsResponse200DeployHooks$Outbound;
4919
+ }
4920
+
4921
+ export function getProjectsLinkProjectsResponse200DeployHooksToJSON(
4922
+ getProjectsLinkProjectsResponse200DeployHooks:
4923
+ GetProjectsLinkProjectsResponse200DeployHooks,
4924
+ ): string {
4925
+ return JSON.stringify(
4926
+ GetProjectsLinkProjectsResponse200DeployHooks$outboundSchema.parse(
4927
+ getProjectsLinkProjectsResponse200DeployHooks,
4928
+ ),
4929
+ );
4930
+ }
4931
+
4932
+ export function getProjectsLinkProjectsResponse200DeployHooksFromJSON(
4933
+ jsonString: string,
4934
+ ): SafeParseResult<
4935
+ GetProjectsLinkProjectsResponse200DeployHooks,
4936
+ SDKValidationError
4937
+ > {
4938
+ return safeParse(
4939
+ jsonString,
4940
+ (x) =>
4941
+ GetProjectsLinkProjectsResponse200DeployHooks$inboundSchema.parse(
4942
+ JSON.parse(x),
4943
+ ),
4944
+ `Failed to parse 'GetProjectsLinkProjectsResponse200DeployHooks' from JSON`,
4945
+ );
4946
+ }
4947
+
4948
+ /** @internal */
4949
+ export const GetProjectsLink4$inboundSchema: z.ZodType<
4950
+ GetProjectsLink4,
4951
+ z.ZodTypeDef,
4952
+ unknown
4953
+ > = z.object({
4954
+ org: z.string().optional(),
4955
+ repoOwnerId: z.number().optional(),
4956
+ repo: z.string().optional(),
4957
+ repoId: z.number().optional(),
4958
+ type: GetProjectsLinkProjectsResponse200Type$inboundSchema.optional(),
4959
+ host: z.string().optional(),
4960
+ createdAt: z.number().optional(),
4961
+ deployHooks: z.array(
4962
+ z.lazy(() => GetProjectsLinkProjectsResponse200DeployHooks$inboundSchema),
4963
+ ),
4964
+ gitCredentialId: z.string().optional(),
4965
+ updatedAt: z.number().optional(),
4966
+ sourceless: z.boolean().optional(),
4967
+ productionBranch: z.string().optional(),
4968
+ });
4969
+
4970
+ /** @internal */
4971
+ export type GetProjectsLink4$Outbound = {
4972
+ org?: string | undefined;
4973
+ repoOwnerId?: number | undefined;
4974
+ repo?: string | undefined;
4975
+ repoId?: number | undefined;
4976
+ type?: string | undefined;
4977
+ host?: string | undefined;
4978
+ createdAt?: number | undefined;
4979
+ deployHooks: Array<GetProjectsLinkProjectsResponse200DeployHooks$Outbound>;
4980
+ gitCredentialId?: string | undefined;
4981
+ updatedAt?: number | undefined;
4982
+ sourceless?: boolean | undefined;
4983
+ productionBranch?: string | undefined;
4984
+ };
4985
+
4986
+ /** @internal */
4987
+ export const GetProjectsLink4$outboundSchema: z.ZodType<
4988
+ GetProjectsLink4$Outbound,
4989
+ z.ZodTypeDef,
4990
+ GetProjectsLink4
4991
+ > = z.object({
4992
+ org: z.string().optional(),
4993
+ repoOwnerId: z.number().optional(),
4994
+ repo: z.string().optional(),
4995
+ repoId: z.number().optional(),
4996
+ type: GetProjectsLinkProjectsResponse200Type$outboundSchema.optional(),
4997
+ host: z.string().optional(),
4998
+ createdAt: z.number().optional(),
4999
+ deployHooks: z.array(
5000
+ z.lazy(() => GetProjectsLinkProjectsResponse200DeployHooks$outboundSchema),
5001
+ ),
5002
+ gitCredentialId: z.string().optional(),
5003
+ updatedAt: z.number().optional(),
5004
+ sourceless: z.boolean().optional(),
5005
+ productionBranch: z.string().optional(),
5006
+ });
5007
+
5008
+ /**
5009
+ * @internal
5010
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
5011
+ */
5012
+ export namespace GetProjectsLink4$ {
5013
+ /** @deprecated use `GetProjectsLink4$inboundSchema` instead. */
5014
+ export const inboundSchema = GetProjectsLink4$inboundSchema;
5015
+ /** @deprecated use `GetProjectsLink4$outboundSchema` instead. */
5016
+ export const outboundSchema = GetProjectsLink4$outboundSchema;
5017
+ /** @deprecated use `GetProjectsLink4$Outbound` instead. */
5018
+ export type Outbound = GetProjectsLink4$Outbound;
5019
+ }
5020
+
5021
+ export function getProjectsLink4ToJSON(
5022
+ getProjectsLink4: GetProjectsLink4,
5023
+ ): string {
5024
+ return JSON.stringify(
5025
+ GetProjectsLink4$outboundSchema.parse(getProjectsLink4),
5026
+ );
5027
+ }
5028
+
5029
+ export function getProjectsLink4FromJSON(
5030
+ jsonString: string,
5031
+ ): SafeParseResult<GetProjectsLink4, SDKValidationError> {
5032
+ return safeParse(
5033
+ jsonString,
5034
+ (x) => GetProjectsLink4$inboundSchema.parse(JSON.parse(x)),
5035
+ `Failed to parse 'GetProjectsLink4' from JSON`,
5036
+ );
5037
+ }
5038
+
4784
5039
  /** @internal */
4785
5040
  export const GetProjectsLinkProjectsResponseType$inboundSchema: z.ZodNativeEnum<
4786
5041
  typeof GetProjectsLinkProjectsResponseType
@@ -5335,6 +5590,7 @@ export const GetProjectsLink$inboundSchema: z.ZodType<
5335
5590
  > = z.union([
5336
5591
  z.lazy(() => GetProjectsLink1$inboundSchema),
5337
5592
  z.lazy(() => GetProjectsLink3$inboundSchema),
5593
+ z.lazy(() => GetProjectsLink4$inboundSchema),
5338
5594
  z.lazy(() => GetProjectsLink2$inboundSchema),
5339
5595
  ]);
5340
5596
 
@@ -5342,6 +5598,7 @@ export const GetProjectsLink$inboundSchema: z.ZodType<
5342
5598
  export type GetProjectsLink$Outbound =
5343
5599
  | GetProjectsLink1$Outbound
5344
5600
  | GetProjectsLink3$Outbound
5601
+ | GetProjectsLink4$Outbound
5345
5602
  | GetProjectsLink2$Outbound;
5346
5603
 
5347
5604
  /** @internal */
@@ -5352,6 +5609,7 @@ export const GetProjectsLink$outboundSchema: z.ZodType<
5352
5609
  > = z.union([
5353
5610
  z.lazy(() => GetProjectsLink1$outboundSchema),
5354
5611
  z.lazy(() => GetProjectsLink3$outboundSchema),
5612
+ z.lazy(() => GetProjectsLink4$outboundSchema),
5355
5613
  z.lazy(() => GetProjectsLink2$outboundSchema),
5356
5614
  ]);
5357
5615
 
@@ -5774,6 +6032,27 @@ export namespace GetProjectsFunctionDefaultMemoryType$ {
5774
6032
  GetProjectsFunctionDefaultMemoryType$outboundSchema;
5775
6033
  }
5776
6034
 
6035
+ /** @internal */
6036
+ export const GetProjectsBuildMachineType$inboundSchema: z.ZodNativeEnum<
6037
+ typeof GetProjectsBuildMachineType
6038
+ > = z.nativeEnum(GetProjectsBuildMachineType);
6039
+
6040
+ /** @internal */
6041
+ export const GetProjectsBuildMachineType$outboundSchema: z.ZodNativeEnum<
6042
+ typeof GetProjectsBuildMachineType
6043
+ > = GetProjectsBuildMachineType$inboundSchema;
6044
+
6045
+ /**
6046
+ * @internal
6047
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6048
+ */
6049
+ export namespace GetProjectsBuildMachineType$ {
6050
+ /** @deprecated use `GetProjectsBuildMachineType$inboundSchema` instead. */
6051
+ export const inboundSchema = GetProjectsBuildMachineType$inboundSchema;
6052
+ /** @deprecated use `GetProjectsBuildMachineType$outboundSchema` instead. */
6053
+ export const outboundSchema = GetProjectsBuildMachineType$outboundSchema;
6054
+ }
6055
+
5777
6056
  /** @internal */
5778
6057
  export const GetProjectsResourceConfig$inboundSchema: z.ZodType<
5779
6058
  GetProjectsResourceConfig,
@@ -5787,6 +6066,7 @@ export const GetProjectsResourceConfig$inboundSchema: z.ZodType<
5787
6066
  .optional(),
5788
6067
  functionZeroConfigFailover: z.boolean().optional(),
5789
6068
  elasticConcurrencyEnabled: z.boolean().optional(),
6069
+ buildMachineType: GetProjectsBuildMachineType$inboundSchema.optional(),
5790
6070
  });
5791
6071
 
5792
6072
  /** @internal */
@@ -5797,6 +6077,7 @@ export type GetProjectsResourceConfig$Outbound = {
5797
6077
  functionDefaultMemoryType?: string | undefined;
5798
6078
  functionZeroConfigFailover?: boolean | undefined;
5799
6079
  elasticConcurrencyEnabled?: boolean | undefined;
6080
+ buildMachineType?: string | undefined;
5800
6081
  };
5801
6082
 
5802
6083
  /** @internal */
@@ -5812,6 +6093,7 @@ export const GetProjectsResourceConfig$outboundSchema: z.ZodType<
5812
6093
  .optional(),
5813
6094
  functionZeroConfigFailover: z.boolean().optional(),
5814
6095
  elasticConcurrencyEnabled: z.boolean().optional(),
6096
+ buildMachineType: GetProjectsBuildMachineType$outboundSchema.optional(),
5815
6097
  });
5816
6098
 
5817
6099
  /**
@@ -5852,11 +6134,15 @@ export const GetProjectsStages$inboundSchema: z.ZodType<
5852
6134
  unknown
5853
6135
  > = z.object({
5854
6136
  targetPercentage: z.number(),
6137
+ minutesToRelease: z.number().optional(),
6138
+ requireApproval: z.boolean().optional(),
5855
6139
  });
5856
6140
 
5857
6141
  /** @internal */
5858
6142
  export type GetProjectsStages$Outbound = {
5859
6143
  targetPercentage: number;
6144
+ minutesToRelease?: number | undefined;
6145
+ requireApproval?: boolean | undefined;
5860
6146
  };
5861
6147
 
5862
6148
  /** @internal */
@@ -5866,6 +6152,8 @@ export const GetProjectsStages$outboundSchema: z.ZodType<
5866
6152
  GetProjectsStages
5867
6153
  > = z.object({
5868
6154
  targetPercentage: z.number(),
6155
+ minutesToRelease: z.number().optional(),
6156
+ requireApproval: z.boolean().optional(),
5869
6157
  });
5870
6158
 
5871
6159
  /**
@@ -5984,6 +6272,29 @@ export namespace GetProjectsProjectsFunctionDefaultMemoryType$ {
5984
6272
  GetProjectsProjectsFunctionDefaultMemoryType$outboundSchema;
5985
6273
  }
5986
6274
 
6275
+ /** @internal */
6276
+ export const GetProjectsProjectsBuildMachineType$inboundSchema: z.ZodNativeEnum<
6277
+ typeof GetProjectsProjectsBuildMachineType
6278
+ > = z.nativeEnum(GetProjectsProjectsBuildMachineType);
6279
+
6280
+ /** @internal */
6281
+ export const GetProjectsProjectsBuildMachineType$outboundSchema:
6282
+ z.ZodNativeEnum<typeof GetProjectsProjectsBuildMachineType> =
6283
+ GetProjectsProjectsBuildMachineType$inboundSchema;
6284
+
6285
+ /**
6286
+ * @internal
6287
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6288
+ */
6289
+ export namespace GetProjectsProjectsBuildMachineType$ {
6290
+ /** @deprecated use `GetProjectsProjectsBuildMachineType$inboundSchema` instead. */
6291
+ export const inboundSchema =
6292
+ GetProjectsProjectsBuildMachineType$inboundSchema;
6293
+ /** @deprecated use `GetProjectsProjectsBuildMachineType$outboundSchema` instead. */
6294
+ export const outboundSchema =
6295
+ GetProjectsProjectsBuildMachineType$outboundSchema;
6296
+ }
6297
+
5987
6298
  /** @internal */
5988
6299
  export const GetProjectsDefaultResourceConfig$inboundSchema: z.ZodType<
5989
6300
  GetProjectsDefaultResourceConfig,
@@ -5997,6 +6308,8 @@ export const GetProjectsDefaultResourceConfig$inboundSchema: z.ZodType<
5997
6308
  GetProjectsProjectsFunctionDefaultMemoryType$inboundSchema.optional(),
5998
6309
  functionZeroConfigFailover: z.boolean().optional(),
5999
6310
  elasticConcurrencyEnabled: z.boolean().optional(),
6311
+ buildMachineType: GetProjectsProjectsBuildMachineType$inboundSchema
6312
+ .optional(),
6000
6313
  });
6001
6314
 
6002
6315
  /** @internal */
@@ -6007,6 +6320,7 @@ export type GetProjectsDefaultResourceConfig$Outbound = {
6007
6320
  functionDefaultMemoryType?: string | undefined;
6008
6321
  functionZeroConfigFailover?: boolean | undefined;
6009
6322
  elasticConcurrencyEnabled?: boolean | undefined;
6323
+ buildMachineType?: string | undefined;
6010
6324
  };
6011
6325
 
6012
6326
  /** @internal */
@@ -6022,6 +6336,8 @@ export const GetProjectsDefaultResourceConfig$outboundSchema: z.ZodType<
6022
6336
  GetProjectsProjectsFunctionDefaultMemoryType$outboundSchema.optional(),
6023
6337
  functionZeroConfigFailover: z.boolean().optional(),
6024
6338
  elasticConcurrencyEnabled: z.boolean().optional(),
6339
+ buildMachineType: GetProjectsProjectsBuildMachineType$outboundSchema
6340
+ .optional(),
6025
6341
  });
6026
6342
 
6027
6343
  /**
@@ -6933,6 +7249,7 @@ export const GetProjectsPermissions$inboundSchema: z.ZodType<
6933
7249
  notificationCustomerBudget: z.array(ACLAction$inboundSchema).optional(),
6934
7250
  notificationStatementOfReasons: z.array(ACLAction$inboundSchema).optional(),
6935
7251
  observabilityConfiguration: z.array(ACLAction$inboundSchema).optional(),
7252
+ observabilityNotebook: z.array(ACLAction$inboundSchema).optional(),
6936
7253
  openTelemetryEndpoint: z.array(ACLAction$inboundSchema).optional(),
6937
7254
  paymentMethod: z.array(ACLAction$inboundSchema).optional(),
6938
7255
  permissions: z.array(ACLAction$inboundSchema).optional(),
@@ -7138,6 +7455,7 @@ export type GetProjectsPermissions$Outbound = {
7138
7455
  notificationCustomerBudget?: Array<string> | undefined;
7139
7456
  notificationStatementOfReasons?: Array<string> | undefined;
7140
7457
  observabilityConfiguration?: Array<string> | undefined;
7458
+ observabilityNotebook?: Array<string> | undefined;
7141
7459
  openTelemetryEndpoint?: Array<string> | undefined;
7142
7460
  paymentMethod?: Array<string> | undefined;
7143
7461
  permissions?: Array<string> | undefined;
@@ -7344,6 +7662,7 @@ export const GetProjectsPermissions$outboundSchema: z.ZodType<
7344
7662
  notificationCustomerBudget: z.array(ACLAction$outboundSchema).optional(),
7345
7663
  notificationStatementOfReasons: z.array(ACLAction$outboundSchema).optional(),
7346
7664
  observabilityConfiguration: z.array(ACLAction$outboundSchema).optional(),
7665
+ observabilityNotebook: z.array(ACLAction$outboundSchema).optional(),
7347
7666
  openTelemetryEndpoint: z.array(ACLAction$outboundSchema).optional(),
7348
7667
  paymentMethod: z.array(ACLAction$outboundSchema).optional(),
7349
7668
  permissions: z.array(ACLAction$outboundSchema).optional(),
@@ -9408,6 +9727,7 @@ export const GetProjectsProjects$inboundSchema: z.ZodType<
9408
9727
  link: z.union([
9409
9728
  z.lazy(() => GetProjectsLink1$inboundSchema),
9410
9729
  z.lazy(() => GetProjectsLink3$inboundSchema),
9730
+ z.lazy(() => GetProjectsLink4$inboundSchema),
9411
9731
  z.lazy(() => GetProjectsLink2$inboundSchema),
9412
9732
  ]).optional(),
9413
9733
  microfrontends: z.union([
@@ -9519,6 +9839,7 @@ export type GetProjectsProjects$Outbound = {
9519
9839
  link?:
9520
9840
  | GetProjectsLink1$Outbound
9521
9841
  | GetProjectsLink3$Outbound
9842
+ | GetProjectsLink4$Outbound
9522
9843
  | GetProjectsLink2$Outbound
9523
9844
  | undefined;
9524
9845
  microfrontends?:
@@ -9625,6 +9946,7 @@ export const GetProjectsProjects$outboundSchema: z.ZodType<
9625
9946
  link: z.union([
9626
9947
  z.lazy(() => GetProjectsLink1$outboundSchema),
9627
9948
  z.lazy(() => GetProjectsLink3$outboundSchema),
9949
+ z.lazy(() => GetProjectsLink4$outboundSchema),
9628
9950
  z.lazy(() => GetProjectsLink2$outboundSchema),
9629
9951
  ]).optional(),
9630
9952
  microfrontends: z.union([