@vercel/sdk 1.6.7 → 1.6.9

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 (162) hide show
  1. package/README.md +17 -29
  2. package/bin/mcp-server.js +2689 -996
  3. package/bin/mcp-server.js.map +33 -30
  4. package/docs/sdks/vercel/README.md +77 -0
  5. package/esm/__tests__/environment.test.js +28 -4
  6. package/esm/__tests__/environment.test.js.map +1 -1
  7. package/esm/__tests__/projects.test.js +13 -15
  8. package/esm/__tests__/projects.test.js.map +1 -1
  9. package/esm/__tests__/vercel.test.d.ts +2 -0
  10. package/esm/__tests__/vercel.test.d.ts.map +1 -0
  11. package/esm/__tests__/vercel.test.js +21 -0
  12. package/esm/__tests__/vercel.test.js.map +1 -0
  13. package/esm/funcs/marketplaceUpdateResourceSecretsById.js +2 -2
  14. package/esm/funcs/marketplaceUpdateResourceSecretsById.js.map +1 -1
  15. package/esm/funcs/patchAliasesIdProtectionBypass.d.ts +18 -0
  16. package/esm/funcs/patchAliasesIdProtectionBypass.d.ts.map +1 -0
  17. package/esm/funcs/patchAliasesIdProtectionBypass.js +81 -0
  18. package/esm/funcs/patchAliasesIdProtectionBypass.js.map +1 -0
  19. package/esm/lib/config.d.ts +3 -3
  20. package/esm/lib/config.js +3 -3
  21. package/esm/lib/sdks.d.ts +3 -1
  22. package/esm/lib/sdks.d.ts.map +1 -1
  23. package/esm/lib/sdks.js +6 -11
  24. package/esm/lib/sdks.js.map +1 -1
  25. package/esm/mcp-server/mcp-server.js +1 -1
  26. package/esm/mcp-server/server.d.ts.map +1 -1
  27. package/esm/mcp-server/server.js +3 -1
  28. package/esm/mcp-server/server.js.map +1 -1
  29. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.d.ts +7 -0
  30. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.d.ts.map +1 -0
  31. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.js +26 -0
  32. package/esm/mcp-server/tools/patchAliasesIdProtectionBypass.js.map +1 -0
  33. package/esm/models/authuser.d.ts +0 -8
  34. package/esm/models/authuser.d.ts.map +1 -1
  35. package/esm/models/authuser.js +0 -3
  36. package/esm/models/authuser.js.map +1 -1
  37. package/esm/models/canceldeploymentop.d.ts +268 -26
  38. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  39. package/esm/models/canceldeploymentop.js +194 -24
  40. package/esm/models/canceldeploymentop.js.map +1 -1
  41. package/esm/models/createcustomenvironmentop.d.ts +244 -2
  42. package/esm/models/createcustomenvironmentop.d.ts.map +1 -1
  43. package/esm/models/createcustomenvironmentop.js +174 -2
  44. package/esm/models/createcustomenvironmentop.js.map +1 -1
  45. package/esm/models/createdeploymentop.d.ts +357 -58
  46. package/esm/models/createdeploymentop.d.ts.map +1 -1
  47. package/esm/models/createdeploymentop.js +290 -60
  48. package/esm/models/createdeploymentop.js.map +1 -1
  49. package/esm/models/createprojectenvop.d.ts +6 -6
  50. package/esm/models/createprojectenvop.js +2 -2
  51. package/esm/models/createprojectenvop.js.map +1 -1
  52. package/esm/models/createprojectop.d.ts +337 -80
  53. package/esm/models/createprojectop.d.ts.map +1 -1
  54. package/esm/models/createprojectop.js +256 -78
  55. package/esm/models/createprojectop.js.map +1 -1
  56. package/esm/models/createrecordop.d.ts +43 -43
  57. package/esm/models/createrecordop.d.ts.map +1 -1
  58. package/esm/models/createrecordop.js +51 -51
  59. package/esm/models/createrecordop.js.map +1 -1
  60. package/esm/models/editprojectenvop.d.ts +3 -3
  61. package/esm/models/editprojectenvop.js +1 -1
  62. package/esm/models/editprojectenvop.js.map +1 -1
  63. package/esm/models/getaliasop.d.ts +8 -8
  64. package/esm/models/getaliasop.d.ts.map +1 -1
  65. package/esm/models/getaliasop.js +12 -13
  66. package/esm/models/getaliasop.js.map +1 -1
  67. package/esm/models/getbypassipop.d.ts +28 -28
  68. package/esm/models/getbypassipop.d.ts.map +1 -1
  69. package/esm/models/getbypassipop.js +28 -28
  70. package/esm/models/getbypassipop.js.map +1 -1
  71. package/esm/models/getcustomenvironmentop.d.ts +242 -2
  72. package/esm/models/getcustomenvironmentop.d.ts.map +1 -1
  73. package/esm/models/getcustomenvironmentop.js +175 -2
  74. package/esm/models/getcustomenvironmentop.js.map +1 -1
  75. package/esm/models/getdeploymentop.d.ts +502 -18
  76. package/esm/models/getdeploymentop.d.ts.map +1 -1
  77. package/esm/models/getdeploymentop.js +354 -14
  78. package/esm/models/getdeploymentop.js.map +1 -1
  79. package/esm/models/getprojectdomainsop.d.ts +30 -30
  80. package/esm/models/getprojectdomainsop.d.ts.map +1 -1
  81. package/esm/models/getprojectdomainsop.js +32 -32
  82. package/esm/models/getprojectdomainsop.js.map +1 -1
  83. package/esm/models/getprojectsop.d.ts +342 -95
  84. package/esm/models/getprojectsop.d.ts.map +1 -1
  85. package/esm/models/getprojectsop.js +285 -112
  86. package/esm/models/getprojectsop.js.map +1 -1
  87. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts +242 -2
  88. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts.map +1 -1
  89. package/esm/models/getv9projectsidornamecustomenvironmentsop.js +172 -2
  90. package/esm/models/getv9projectsidornamecustomenvironmentsop.js.map +1 -1
  91. package/esm/models/listaliasesop.d.ts +8 -8
  92. package/esm/models/listaliasesop.d.ts.map +1 -1
  93. package/esm/models/listaliasesop.js +12 -12
  94. package/esm/models/listaliasesop.js.map +1 -1
  95. package/esm/models/patchaliasesidprotectionbypassop.d.ts +409 -0
  96. package/esm/models/patchaliasesidprotectionbypassop.d.ts.map +1 -0
  97. package/esm/models/patchaliasesidprotectionbypassop.js +386 -0
  98. package/esm/models/patchaliasesidprotectionbypassop.js.map +1 -0
  99. package/esm/models/removecustomenvironmentop.d.ts +245 -2
  100. package/esm/models/removecustomenvironmentop.d.ts.map +1 -1
  101. package/esm/models/removecustomenvironmentop.js +173 -2
  102. package/esm/models/removecustomenvironmentop.js.map +1 -1
  103. package/esm/models/removeprojectenvop.d.ts +9 -9
  104. package/esm/models/removeprojectenvop.js +3 -3
  105. package/esm/models/removeprojectenvop.js.map +1 -1
  106. package/esm/models/updatecustomenvironmentop.d.ts +244 -2
  107. package/esm/models/updatecustomenvironmentop.d.ts.map +1 -1
  108. package/esm/models/updatecustomenvironmentop.js +174 -2
  109. package/esm/models/updatecustomenvironmentop.js.map +1 -1
  110. package/esm/models/updateprojectdatacacheop.d.ts +358 -111
  111. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  112. package/esm/models/updateprojectdatacacheop.js +309 -135
  113. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  114. package/esm/models/updateprojectop.d.ts +420 -104
  115. package/esm/models/updateprojectop.d.ts.map +1 -1
  116. package/esm/models/updateprojectop.js +342 -114
  117. package/esm/models/updateprojectop.js.map +1 -1
  118. package/esm/models/userevent.d.ts +161 -86
  119. package/esm/models/userevent.d.ts.map +1 -1
  120. package/esm/models/userevent.js +139 -64
  121. package/esm/models/userevent.js.map +1 -1
  122. package/esm/sdk/sdk.d.ts +8 -1
  123. package/esm/sdk/sdk.d.ts.map +1 -1
  124. package/esm/sdk/sdk.js +8 -0
  125. package/esm/sdk/sdk.js.map +1 -1
  126. package/jsr.json +1 -1
  127. package/package.json +1 -1
  128. package/src/__tests__/environment.test.ts +28 -4
  129. package/src/__tests__/projects.test.ts +13 -15
  130. package/src/__tests__/vercel.test.ts +26 -0
  131. package/src/funcs/marketplaceUpdateResourceSecretsById.ts +2 -2
  132. package/src/funcs/patchAliasesIdProtectionBypass.ts +185 -0
  133. package/src/lib/config.ts +3 -3
  134. package/src/lib/sdks.ts +11 -11
  135. package/src/mcp-server/mcp-server.ts +1 -1
  136. package/src/mcp-server/server.ts +3 -1
  137. package/src/mcp-server/tools/patchAliasesIdProtectionBypass.ts +37 -0
  138. package/src/models/authuser.ts +0 -8
  139. package/src/models/canceldeploymentop.ts +503 -43
  140. package/src/models/createcustomenvironmentop.ts +426 -4
  141. package/src/models/createdeploymentop.ts +640 -117
  142. package/src/models/createprojectenvop.ts +2 -2
  143. package/src/models/createprojectop.ts +658 -201
  144. package/src/models/createrecordop.ts +96 -84
  145. package/src/models/editprojectenvop.ts +1 -1
  146. package/src/models/getaliasop.ts +16 -14
  147. package/src/models/getbypassipop.ts +56 -56
  148. package/src/models/getcustomenvironmentop.ts +412 -4
  149. package/src/models/getdeploymentop.ts +962 -49
  150. package/src/models/getprojectdomainsop.ts +84 -84
  151. package/src/models/getprojectsop.ts +630 -189
  152. package/src/models/getv9projectsidornamecustomenvironmentsop.ts +473 -4
  153. package/src/models/listaliasesop.ts +19 -16
  154. package/src/models/patchaliasesidprotectionbypassop.ts +786 -0
  155. package/src/models/removecustomenvironmentop.ts +425 -4
  156. package/src/models/removeprojectenvop.ts +3 -3
  157. package/src/models/updatecustomenvironmentop.ts +437 -4
  158. package/src/models/updateprojectdatacacheop.ts +731 -271
  159. package/src/models/updateprojectop.ts +786 -197
  160. package/src/models/userevent.ts +246 -121
  161. package/src/sdk/sdk.ts +18 -1
  162. package/vercel-spec.json +2609 -140
@@ -13,9 +13,6 @@ import { SDKValidationError } from "./sdkvalidationerror.js";
13
13
  * The type of entity.
14
14
  */
15
15
  export const UserEventType = {
16
- Flag: "flag",
17
- FlagsSegment: "flags-segment",
18
- FlagsSettings: "flags-settings",
19
16
  Author: "author",
20
17
  BitbucketLogin: "bitbucket_login",
21
18
  Bold: "bold",
@@ -27,6 +24,9 @@ export const UserEventType = {
27
24
  HookName: "hook_name",
28
25
  Integration: "integration",
29
26
  EdgeConfig: "edge-config",
27
+ Flag: "flag",
28
+ FlagsSegment: "flags-segment",
29
+ FlagsSettings: "flags-settings",
30
30
  Link: "link",
31
31
  ProjectName: "project_name",
32
32
  ScalingRules: "scaling_rules",
@@ -875,11 +875,11 @@ export type NinetyNine = {
875
875
  };
876
876
 
877
877
  export const UserEventPayloadType = {
878
- Integration: "integration",
879
- EdgeConfig: "edge-config",
880
878
  Redis: "redis",
881
879
  Postgres: "postgres",
880
+ EdgeConfig: "edge-config",
882
881
  Blob: "blob",
882
+ Integration: "integration",
883
883
  } as const;
884
884
  export type UserEventPayloadType = ClosedEnum<typeof UserEventPayloadType>;
885
885
 
@@ -1216,9 +1216,39 @@ export type UserEventPayload83Team = {
1216
1216
  name: string;
1217
1217
  };
1218
1218
 
1219
- export type OldConnectConfigurations = {};
1219
+ export const EnvId2 = {
1220
+ Preview: "preview",
1221
+ Production: "production",
1222
+ } as const;
1223
+ export type EnvId2 = ClosedEnum<typeof EnvId2>;
1224
+
1225
+ export type EnvId = string | EnvId2;
1226
+
1227
+ export type OldConnectConfigurations = {
1228
+ envId: string | EnvId2;
1229
+ connectConfigurationId: string;
1230
+ passive: boolean;
1231
+ buildsEnabled: boolean;
1232
+ createdAt: number;
1233
+ updatedAt: number;
1234
+ };
1235
+
1236
+ export const UserEventEnvId2 = {
1237
+ Preview: "preview",
1238
+ Production: "production",
1239
+ } as const;
1240
+ export type UserEventEnvId2 = ClosedEnum<typeof UserEventEnvId2>;
1241
+
1242
+ export type PayloadEnvId = string | UserEventEnvId2;
1220
1243
 
1221
- export type NewConnectConfigurations = {};
1244
+ export type NewConnectConfigurations = {
1245
+ envId: string | UserEventEnvId2;
1246
+ connectConfigurationId: string;
1247
+ passive: boolean;
1248
+ buildsEnabled: boolean;
1249
+ createdAt: number;
1250
+ updatedAt: number;
1251
+ };
1222
1252
 
1223
1253
  export type UserEventPayload83Project = {
1224
1254
  id: string;
@@ -1478,11 +1508,11 @@ export type UserEventPayload73Role = ClosedEnum<typeof UserEventPayload73Role>;
1478
1508
  export const PayloadOrigin = {
1479
1509
  Teams: "teams",
1480
1510
  Saml: "saml",
1481
- Link: "link",
1482
1511
  Github: "github",
1483
1512
  Gitlab: "gitlab",
1484
1513
  Bitbucket: "bitbucket",
1485
1514
  Mail: "mail",
1515
+ Link: "link",
1486
1516
  Import: "import",
1487
1517
  Dsync: "dsync",
1488
1518
  Feedback: "feedback",
@@ -1883,7 +1913,6 @@ export type PayloadPurchaseType = ClosedEnum<typeof PayloadPurchaseType>;
1883
1913
 
1884
1914
  export type PayloadBuildMachine = {
1885
1915
  purchaseType?: PayloadPurchaseType | undefined;
1886
- abovePlan?: boolean | undefined;
1887
1916
  isDefaultBuildMachine?: boolean | undefined;
1888
1917
  cores?: number | undefined;
1889
1918
  memory?: number | undefined;
@@ -1994,7 +2023,6 @@ export const PayloadReason = {
1994
2023
  export type PayloadReason = ClosedEnum<typeof PayloadReason>;
1995
2024
 
1996
2025
  export const PayloadBlockedDueToOverageType = {
1997
- AiCredits: "aiCredits",
1998
2026
  AnalyticsUsage: "analyticsUsage",
1999
2027
  Artifacts: "artifacts",
2000
2028
  Bandwidth: "bandwidth",
@@ -2084,11 +2112,11 @@ export type PayloadTeamPermissions = ClosedEnum<typeof PayloadTeamPermissions>;
2084
2112
  export const UserEventPayloadOrigin = {
2085
2113
  Teams: "teams",
2086
2114
  Saml: "saml",
2087
- Link: "link",
2088
2115
  Github: "github",
2089
2116
  Gitlab: "gitlab",
2090
2117
  Bitbucket: "bitbucket",
2091
2118
  Mail: "mail",
2119
+ Link: "link",
2092
2120
  Import: "import",
2093
2121
  Dsync: "dsync",
2094
2122
  Feedback: "feedback",
@@ -2138,12 +2166,6 @@ export type UsageAlerts = {
2138
2166
  blockingAt?: number | null | undefined;
2139
2167
  };
2140
2168
 
2141
- export type AiCredits = {
2142
- currentThreshold: number;
2143
- warningAt?: number | null | undefined;
2144
- blockedAt?: number | null | undefined;
2145
- };
2146
-
2147
2169
  export type AnalyticsUsage = {
2148
2170
  currentThreshold: number;
2149
2171
  warningAt?: number | null | undefined;
@@ -2397,7 +2419,6 @@ export type WebAnalyticsEvent = {
2397
2419
  };
2398
2420
 
2399
2421
  export type OverageUsageAlerts = {
2400
- aiCredits?: AiCredits | undefined;
2401
2422
  analyticsUsage?: AnalyticsUsage | undefined;
2402
2423
  artifacts?: Artifacts | undefined;
2403
2424
  bandwidth?: Bandwidth | undefined;
@@ -2593,7 +2614,6 @@ export type UserEventPayload62NewOwnerFeatureBlocksBlobBlockReason = ClosedEnum<
2593
2614
  >;
2594
2615
 
2595
2616
  export const OverageReason = {
2596
- AiCredits: "aiCredits",
2597
2617
  AnalyticsUsage: "analyticsUsage",
2598
2618
  Artifacts: "artifacts",
2599
2619
  Bandwidth: "bandwidth",
@@ -2659,7 +2679,6 @@ export type UserEventPayload62NewOwnerFeatureBlocksPostgresBlockReason =
2659
2679
  ClosedEnum<typeof UserEventPayload62NewOwnerFeatureBlocksPostgresBlockReason>;
2660
2680
 
2661
2681
  export const PayloadOverageReason = {
2662
- AiCredits: "aiCredits",
2663
2682
  AnalyticsUsage: "analyticsUsage",
2664
2683
  Artifacts: "artifacts",
2665
2684
  Bandwidth: "bandwidth",
@@ -2725,7 +2744,6 @@ export type UserEventPayload62NewOwnerFeatureBlocksRedisBlockReason =
2725
2744
  ClosedEnum<typeof UserEventPayload62NewOwnerFeatureBlocksRedisBlockReason>;
2726
2745
 
2727
2746
  export const UserEventPayloadOverageReason = {
2728
- AiCredits: "aiCredits",
2729
2747
  AnalyticsUsage: "analyticsUsage",
2730
2748
  Artifacts: "artifacts",
2731
2749
  Bandwidth: "bandwidth",
@@ -3056,11 +3074,11 @@ export type OldEnvVar = {
3056
3074
  /**
3057
3075
  * The date when the Shared Env Var was created.
3058
3076
  */
3059
- created: Date;
3077
+ created?: Date | undefined;
3060
3078
  /**
3061
3079
  * The name of the Shared Env Var.
3062
3080
  */
3063
- key: string;
3081
+ key?: string | undefined;
3064
3082
  /**
3065
3083
  * The unique identifier of the owner (team) the Shared Env Var was created for.
3066
3084
  */
@@ -3068,7 +3086,7 @@ export type OldEnvVar = {
3068
3086
  /**
3069
3087
  * The unique identifier of the Shared Env Var.
3070
3088
  */
3071
- id: string;
3089
+ id?: string | undefined;
3072
3090
  /**
3073
3091
  * The unique identifier of the user who created the Shared Env Var.
3074
3092
  */
@@ -3116,7 +3134,7 @@ export type OldEnvVar = {
3116
3134
  /**
3117
3135
  * whether or not this env variable is decrypted
3118
3136
  */
3119
- decrypted: boolean;
3137
+ decrypted?: boolean | undefined;
3120
3138
  /**
3121
3139
  * A user provided comment that describes what this Shared Env Var is for.
3122
3140
  */
@@ -3160,11 +3178,11 @@ export type NewEnvVar = {
3160
3178
  /**
3161
3179
  * The date when the Shared Env Var was created.
3162
3180
  */
3163
- created: Date;
3181
+ created?: Date | undefined;
3164
3182
  /**
3165
3183
  * The name of the Shared Env Var.
3166
3184
  */
3167
- key: string;
3185
+ key?: string | undefined;
3168
3186
  /**
3169
3187
  * The unique identifier of the owner (team) the Shared Env Var was created for.
3170
3188
  */
@@ -3172,7 +3190,7 @@ export type NewEnvVar = {
3172
3190
  /**
3173
3191
  * The unique identifier of the Shared Env Var.
3174
3192
  */
3175
- id: string;
3193
+ id?: string | undefined;
3176
3194
  /**
3177
3195
  * The unique identifier of the user who created the Shared Env Var.
3178
3196
  */
@@ -3220,7 +3238,7 @@ export type NewEnvVar = {
3220
3238
  /**
3221
3239
  * whether or not this env variable is decrypted
3222
3240
  */
3223
- decrypted: boolean;
3241
+ decrypted?: boolean | undefined;
3224
3242
  /**
3225
3243
  * A user provided comment that describes what this Shared Env Var is for.
3226
3244
  */
@@ -11644,22 +11662,103 @@ export function userEventPayload83TeamFromJSON(
11644
11662
  );
11645
11663
  }
11646
11664
 
11665
+ /** @internal */
11666
+ export const EnvId2$inboundSchema: z.ZodNativeEnum<typeof EnvId2> = z
11667
+ .nativeEnum(EnvId2);
11668
+
11669
+ /** @internal */
11670
+ export const EnvId2$outboundSchema: z.ZodNativeEnum<typeof EnvId2> =
11671
+ EnvId2$inboundSchema;
11672
+
11673
+ /**
11674
+ * @internal
11675
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11676
+ */
11677
+ export namespace EnvId2$ {
11678
+ /** @deprecated use `EnvId2$inboundSchema` instead. */
11679
+ export const inboundSchema = EnvId2$inboundSchema;
11680
+ /** @deprecated use `EnvId2$outboundSchema` instead. */
11681
+ export const outboundSchema = EnvId2$outboundSchema;
11682
+ }
11683
+
11684
+ /** @internal */
11685
+ export const EnvId$inboundSchema: z.ZodType<EnvId, z.ZodTypeDef, unknown> = z
11686
+ .union([z.string(), EnvId2$inboundSchema]);
11687
+
11688
+ /** @internal */
11689
+ export type EnvId$Outbound = string | string;
11690
+
11691
+ /** @internal */
11692
+ export const EnvId$outboundSchema: z.ZodType<
11693
+ EnvId$Outbound,
11694
+ z.ZodTypeDef,
11695
+ EnvId
11696
+ > = z.union([z.string(), EnvId2$outboundSchema]);
11697
+
11698
+ /**
11699
+ * @internal
11700
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11701
+ */
11702
+ export namespace EnvId$ {
11703
+ /** @deprecated use `EnvId$inboundSchema` instead. */
11704
+ export const inboundSchema = EnvId$inboundSchema;
11705
+ /** @deprecated use `EnvId$outboundSchema` instead. */
11706
+ export const outboundSchema = EnvId$outboundSchema;
11707
+ /** @deprecated use `EnvId$Outbound` instead. */
11708
+ export type Outbound = EnvId$Outbound;
11709
+ }
11710
+
11711
+ export function envIdToJSON(envId: EnvId): string {
11712
+ return JSON.stringify(EnvId$outboundSchema.parse(envId));
11713
+ }
11714
+
11715
+ export function envIdFromJSON(
11716
+ jsonString: string,
11717
+ ): SafeParseResult<EnvId, SDKValidationError> {
11718
+ return safeParse(
11719
+ jsonString,
11720
+ (x) => EnvId$inboundSchema.parse(JSON.parse(x)),
11721
+ `Failed to parse 'EnvId' from JSON`,
11722
+ );
11723
+ }
11724
+
11647
11725
  /** @internal */
11648
11726
  export const OldConnectConfigurations$inboundSchema: z.ZodType<
11649
11727
  OldConnectConfigurations,
11650
11728
  z.ZodTypeDef,
11651
11729
  unknown
11652
- > = z.object({});
11730
+ > = z.object({
11731
+ envId: z.union([z.string(), EnvId2$inboundSchema]),
11732
+ connectConfigurationId: z.string(),
11733
+ passive: z.boolean(),
11734
+ buildsEnabled: z.boolean(),
11735
+ createdAt: z.number(),
11736
+ updatedAt: z.number(),
11737
+ });
11653
11738
 
11654
11739
  /** @internal */
11655
- export type OldConnectConfigurations$Outbound = {};
11740
+ export type OldConnectConfigurations$Outbound = {
11741
+ envId: string | string;
11742
+ connectConfigurationId: string;
11743
+ passive: boolean;
11744
+ buildsEnabled: boolean;
11745
+ createdAt: number;
11746
+ updatedAt: number;
11747
+ };
11656
11748
 
11657
11749
  /** @internal */
11658
11750
  export const OldConnectConfigurations$outboundSchema: z.ZodType<
11659
11751
  OldConnectConfigurations$Outbound,
11660
11752
  z.ZodTypeDef,
11661
11753
  OldConnectConfigurations
11662
- > = z.object({});
11754
+ > = z.object({
11755
+ envId: z.union([z.string(), EnvId2$outboundSchema]),
11756
+ connectConfigurationId: z.string(),
11757
+ passive: z.boolean(),
11758
+ buildsEnabled: z.boolean(),
11759
+ createdAt: z.number(),
11760
+ updatedAt: z.number(),
11761
+ });
11663
11762
 
11664
11763
  /**
11665
11764
  * @internal
@@ -11692,22 +11791,108 @@ export function oldConnectConfigurationsFromJSON(
11692
11791
  );
11693
11792
  }
11694
11793
 
11794
+ /** @internal */
11795
+ export const UserEventEnvId2$inboundSchema: z.ZodNativeEnum<
11796
+ typeof UserEventEnvId2
11797
+ > = z.nativeEnum(UserEventEnvId2);
11798
+
11799
+ /** @internal */
11800
+ export const UserEventEnvId2$outboundSchema: z.ZodNativeEnum<
11801
+ typeof UserEventEnvId2
11802
+ > = UserEventEnvId2$inboundSchema;
11803
+
11804
+ /**
11805
+ * @internal
11806
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11807
+ */
11808
+ export namespace UserEventEnvId2$ {
11809
+ /** @deprecated use `UserEventEnvId2$inboundSchema` instead. */
11810
+ export const inboundSchema = UserEventEnvId2$inboundSchema;
11811
+ /** @deprecated use `UserEventEnvId2$outboundSchema` instead. */
11812
+ export const outboundSchema = UserEventEnvId2$outboundSchema;
11813
+ }
11814
+
11815
+ /** @internal */
11816
+ export const PayloadEnvId$inboundSchema: z.ZodType<
11817
+ PayloadEnvId,
11818
+ z.ZodTypeDef,
11819
+ unknown
11820
+ > = z.union([z.string(), UserEventEnvId2$inboundSchema]);
11821
+
11822
+ /** @internal */
11823
+ export type PayloadEnvId$Outbound = string | string;
11824
+
11825
+ /** @internal */
11826
+ export const PayloadEnvId$outboundSchema: z.ZodType<
11827
+ PayloadEnvId$Outbound,
11828
+ z.ZodTypeDef,
11829
+ PayloadEnvId
11830
+ > = z.union([z.string(), UserEventEnvId2$outboundSchema]);
11831
+
11832
+ /**
11833
+ * @internal
11834
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
11835
+ */
11836
+ export namespace PayloadEnvId$ {
11837
+ /** @deprecated use `PayloadEnvId$inboundSchema` instead. */
11838
+ export const inboundSchema = PayloadEnvId$inboundSchema;
11839
+ /** @deprecated use `PayloadEnvId$outboundSchema` instead. */
11840
+ export const outboundSchema = PayloadEnvId$outboundSchema;
11841
+ /** @deprecated use `PayloadEnvId$Outbound` instead. */
11842
+ export type Outbound = PayloadEnvId$Outbound;
11843
+ }
11844
+
11845
+ export function payloadEnvIdToJSON(payloadEnvId: PayloadEnvId): string {
11846
+ return JSON.stringify(PayloadEnvId$outboundSchema.parse(payloadEnvId));
11847
+ }
11848
+
11849
+ export function payloadEnvIdFromJSON(
11850
+ jsonString: string,
11851
+ ): SafeParseResult<PayloadEnvId, SDKValidationError> {
11852
+ return safeParse(
11853
+ jsonString,
11854
+ (x) => PayloadEnvId$inboundSchema.parse(JSON.parse(x)),
11855
+ `Failed to parse 'PayloadEnvId' from JSON`,
11856
+ );
11857
+ }
11858
+
11695
11859
  /** @internal */
11696
11860
  export const NewConnectConfigurations$inboundSchema: z.ZodType<
11697
11861
  NewConnectConfigurations,
11698
11862
  z.ZodTypeDef,
11699
11863
  unknown
11700
- > = z.object({});
11864
+ > = z.object({
11865
+ envId: z.union([z.string(), UserEventEnvId2$inboundSchema]),
11866
+ connectConfigurationId: z.string(),
11867
+ passive: z.boolean(),
11868
+ buildsEnabled: z.boolean(),
11869
+ createdAt: z.number(),
11870
+ updatedAt: z.number(),
11871
+ });
11701
11872
 
11702
11873
  /** @internal */
11703
- export type NewConnectConfigurations$Outbound = {};
11874
+ export type NewConnectConfigurations$Outbound = {
11875
+ envId: string | string;
11876
+ connectConfigurationId: string;
11877
+ passive: boolean;
11878
+ buildsEnabled: boolean;
11879
+ createdAt: number;
11880
+ updatedAt: number;
11881
+ };
11704
11882
 
11705
11883
  /** @internal */
11706
11884
  export const NewConnectConfigurations$outboundSchema: z.ZodType<
11707
11885
  NewConnectConfigurations$Outbound,
11708
11886
  z.ZodTypeDef,
11709
11887
  NewConnectConfigurations
11710
- > = z.object({});
11888
+ > = z.object({
11889
+ envId: z.union([z.string(), UserEventEnvId2$outboundSchema]),
11890
+ connectConfigurationId: z.string(),
11891
+ passive: z.boolean(),
11892
+ buildsEnabled: z.boolean(),
11893
+ createdAt: z.number(),
11894
+ updatedAt: z.number(),
11895
+ });
11711
11896
 
11712
11897
  /**
11713
11898
  * @internal
@@ -16089,7 +16274,6 @@ export const PayloadBuildMachine$inboundSchema: z.ZodType<
16089
16274
  unknown
16090
16275
  > = z.object({
16091
16276
  purchaseType: PayloadPurchaseType$inboundSchema.optional(),
16092
- abovePlan: z.boolean().optional(),
16093
16277
  isDefaultBuildMachine: z.boolean().optional(),
16094
16278
  cores: z.number().optional(),
16095
16279
  memory: z.number().optional(),
@@ -16098,7 +16282,6 @@ export const PayloadBuildMachine$inboundSchema: z.ZodType<
16098
16282
  /** @internal */
16099
16283
  export type PayloadBuildMachine$Outbound = {
16100
16284
  purchaseType?: string | undefined;
16101
- abovePlan?: boolean | undefined;
16102
16285
  isDefaultBuildMachine?: boolean | undefined;
16103
16286
  cores?: number | undefined;
16104
16287
  memory?: number | undefined;
@@ -16111,7 +16294,6 @@ export const PayloadBuildMachine$outboundSchema: z.ZodType<
16111
16294
  PayloadBuildMachine
16112
16295
  > = z.object({
16113
16296
  purchaseType: PayloadPurchaseType$outboundSchema.optional(),
16114
- abovePlan: z.boolean().optional(),
16115
16297
  isDefaultBuildMachine: z.boolean().optional(),
16116
16298
  cores: z.number().optional(),
16117
16299
  memory: z.number().optional(),
@@ -17266,62 +17448,6 @@ export function usageAlertsFromJSON(
17266
17448
  );
17267
17449
  }
17268
17450
 
17269
- /** @internal */
17270
- export const AiCredits$inboundSchema: z.ZodType<
17271
- AiCredits,
17272
- z.ZodTypeDef,
17273
- unknown
17274
- > = z.object({
17275
- currentThreshold: z.number(),
17276
- warningAt: z.nullable(z.number()).optional(),
17277
- blockedAt: z.nullable(z.number()).optional(),
17278
- });
17279
-
17280
- /** @internal */
17281
- export type AiCredits$Outbound = {
17282
- currentThreshold: number;
17283
- warningAt?: number | null | undefined;
17284
- blockedAt?: number | null | undefined;
17285
- };
17286
-
17287
- /** @internal */
17288
- export const AiCredits$outboundSchema: z.ZodType<
17289
- AiCredits$Outbound,
17290
- z.ZodTypeDef,
17291
- AiCredits
17292
- > = z.object({
17293
- currentThreshold: z.number(),
17294
- warningAt: z.nullable(z.number()).optional(),
17295
- blockedAt: z.nullable(z.number()).optional(),
17296
- });
17297
-
17298
- /**
17299
- * @internal
17300
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
17301
- */
17302
- export namespace AiCredits$ {
17303
- /** @deprecated use `AiCredits$inboundSchema` instead. */
17304
- export const inboundSchema = AiCredits$inboundSchema;
17305
- /** @deprecated use `AiCredits$outboundSchema` instead. */
17306
- export const outboundSchema = AiCredits$outboundSchema;
17307
- /** @deprecated use `AiCredits$Outbound` instead. */
17308
- export type Outbound = AiCredits$Outbound;
17309
- }
17310
-
17311
- export function aiCreditsToJSON(aiCredits: AiCredits): string {
17312
- return JSON.stringify(AiCredits$outboundSchema.parse(aiCredits));
17313
- }
17314
-
17315
- export function aiCreditsFromJSON(
17316
- jsonString: string,
17317
- ): SafeParseResult<AiCredits, SDKValidationError> {
17318
- return safeParse(
17319
- jsonString,
17320
- (x) => AiCredits$inboundSchema.parse(JSON.parse(x)),
17321
- `Failed to parse 'AiCredits' from JSON`,
17322
- );
17323
- }
17324
-
17325
17451
  /** @internal */
17326
17452
  export const AnalyticsUsage$inboundSchema: z.ZodType<
17327
17453
  AnalyticsUsage,
@@ -19841,7 +19967,6 @@ export const OverageUsageAlerts$inboundSchema: z.ZodType<
19841
19967
  z.ZodTypeDef,
19842
19968
  unknown
19843
19969
  > = z.object({
19844
- aiCredits: z.lazy(() => AiCredits$inboundSchema).optional(),
19845
19970
  analyticsUsage: z.lazy(() => AnalyticsUsage$inboundSchema).optional(),
19846
19971
  artifacts: z.lazy(() => Artifacts$inboundSchema).optional(),
19847
19972
  bandwidth: z.lazy(() => Bandwidth$inboundSchema).optional(),
@@ -19924,7 +20049,6 @@ export const OverageUsageAlerts$inboundSchema: z.ZodType<
19924
20049
 
19925
20050
  /** @internal */
19926
20051
  export type OverageUsageAlerts$Outbound = {
19927
- aiCredits?: AiCredits$Outbound | undefined;
19928
20052
  analyticsUsage?: AnalyticsUsage$Outbound | undefined;
19929
20053
  artifacts?: Artifacts$Outbound | undefined;
19930
20054
  bandwidth?: Bandwidth$Outbound | undefined;
@@ -19991,7 +20115,6 @@ export const OverageUsageAlerts$outboundSchema: z.ZodType<
19991
20115
  z.ZodTypeDef,
19992
20116
  OverageUsageAlerts
19993
20117
  > = z.object({
19994
- aiCredits: z.lazy(() => AiCredits$outboundSchema).optional(),
19995
20118
  analyticsUsage: z.lazy(() => AnalyticsUsage$outboundSchema).optional(),
19996
20119
  artifacts: z.lazy(() => Artifacts$outboundSchema).optional(),
19997
20120
  bandwidth: z.lazy(() => Bandwidth$outboundSchema).optional(),
@@ -21999,10 +22122,11 @@ export const OldEnvVar$inboundSchema: z.ZodType<
21999
22122
  z.ZodTypeDef,
22000
22123
  unknown
22001
22124
  > = z.object({
22002
- created: z.string().datetime({ offset: true }).transform(v => new Date(v)),
22003
- key: z.string(),
22125
+ created: z.string().datetime({ offset: true }).transform(v => new Date(v))
22126
+ .optional(),
22127
+ key: z.string().optional(),
22004
22128
  ownerId: z.nullable(z.string()).optional(),
22005
- id: z.string(),
22129
+ id: z.string().optional(),
22006
22130
  createdBy: z.nullable(z.string()).optional(),
22007
22131
  deletedBy: z.nullable(z.string()).optional(),
22008
22132
  updatedBy: z.nullable(z.string()).optional(),
@@ -22014,17 +22138,17 @@ export const OldEnvVar$inboundSchema: z.ZodType<
22014
22138
  type: UserEventPayload58OldEnvVarType$inboundSchema.optional(),
22015
22139
  target: z.array(UserEventPayloadTarget$inboundSchema).optional(),
22016
22140
  applyToAllCustomEnvironments: z.boolean().optional(),
22017
- decrypted: z.boolean(),
22141
+ decrypted: z.boolean().optional(),
22018
22142
  comment: z.string().optional(),
22019
22143
  lastEditedByDisplayName: z.string().optional(),
22020
22144
  });
22021
22145
 
22022
22146
  /** @internal */
22023
22147
  export type OldEnvVar$Outbound = {
22024
- created: string;
22025
- key: string;
22148
+ created?: string | undefined;
22149
+ key?: string | undefined;
22026
22150
  ownerId?: string | null | undefined;
22027
- id: string;
22151
+ id?: string | undefined;
22028
22152
  createdBy?: string | null | undefined;
22029
22153
  deletedBy?: string | null | undefined;
22030
22154
  updatedBy?: string | null | undefined;
@@ -22036,7 +22160,7 @@ export type OldEnvVar$Outbound = {
22036
22160
  type?: string | undefined;
22037
22161
  target?: Array<string> | undefined;
22038
22162
  applyToAllCustomEnvironments?: boolean | undefined;
22039
- decrypted: boolean;
22163
+ decrypted?: boolean | undefined;
22040
22164
  comment?: string | undefined;
22041
22165
  lastEditedByDisplayName?: string | undefined;
22042
22166
  };
@@ -22047,10 +22171,10 @@ export const OldEnvVar$outboundSchema: z.ZodType<
22047
22171
  z.ZodTypeDef,
22048
22172
  OldEnvVar
22049
22173
  > = z.object({
22050
- created: z.date().transform(v => v.toISOString()),
22051
- key: z.string(),
22174
+ created: z.date().transform(v => v.toISOString()).optional(),
22175
+ key: z.string().optional(),
22052
22176
  ownerId: z.nullable(z.string()).optional(),
22053
- id: z.string(),
22177
+ id: z.string().optional(),
22054
22178
  createdBy: z.nullable(z.string()).optional(),
22055
22179
  deletedBy: z.nullable(z.string()).optional(),
22056
22180
  updatedBy: z.nullable(z.string()).optional(),
@@ -22062,7 +22186,7 @@ export const OldEnvVar$outboundSchema: z.ZodType<
22062
22186
  type: UserEventPayload58OldEnvVarType$outboundSchema.optional(),
22063
22187
  target: z.array(UserEventPayloadTarget$outboundSchema).optional(),
22064
22188
  applyToAllCustomEnvironments: z.boolean().optional(),
22065
- decrypted: z.boolean(),
22189
+ decrypted: z.boolean().optional(),
22066
22190
  comment: z.string().optional(),
22067
22191
  lastEditedByDisplayName: z.string().optional(),
22068
22192
  });
@@ -22142,10 +22266,11 @@ export const NewEnvVar$inboundSchema: z.ZodType<
22142
22266
  z.ZodTypeDef,
22143
22267
  unknown
22144
22268
  > = z.object({
22145
- created: z.string().datetime({ offset: true }).transform(v => new Date(v)),
22146
- key: z.string(),
22269
+ created: z.string().datetime({ offset: true }).transform(v => new Date(v))
22270
+ .optional(),
22271
+ key: z.string().optional(),
22147
22272
  ownerId: z.nullable(z.string()).optional(),
22148
- id: z.string(),
22273
+ id: z.string().optional(),
22149
22274
  createdBy: z.nullable(z.string()).optional(),
22150
22275
  deletedBy: z.nullable(z.string()).optional(),
22151
22276
  updatedBy: z.nullable(z.string()).optional(),
@@ -22157,17 +22282,17 @@ export const NewEnvVar$inboundSchema: z.ZodType<
22157
22282
  type: UserEventPayload58Type$inboundSchema.optional(),
22158
22283
  target: z.array(UserEventPayload58Target$inboundSchema).optional(),
22159
22284
  applyToAllCustomEnvironments: z.boolean().optional(),
22160
- decrypted: z.boolean(),
22285
+ decrypted: z.boolean().optional(),
22161
22286
  comment: z.string().optional(),
22162
22287
  lastEditedByDisplayName: z.string().optional(),
22163
22288
  });
22164
22289
 
22165
22290
  /** @internal */
22166
22291
  export type NewEnvVar$Outbound = {
22167
- created: string;
22168
- key: string;
22292
+ created?: string | undefined;
22293
+ key?: string | undefined;
22169
22294
  ownerId?: string | null | undefined;
22170
- id: string;
22295
+ id?: string | undefined;
22171
22296
  createdBy?: string | null | undefined;
22172
22297
  deletedBy?: string | null | undefined;
22173
22298
  updatedBy?: string | null | undefined;
@@ -22179,7 +22304,7 @@ export type NewEnvVar$Outbound = {
22179
22304
  type?: string | undefined;
22180
22305
  target?: Array<string> | undefined;
22181
22306
  applyToAllCustomEnvironments?: boolean | undefined;
22182
- decrypted: boolean;
22307
+ decrypted?: boolean | undefined;
22183
22308
  comment?: string | undefined;
22184
22309
  lastEditedByDisplayName?: string | undefined;
22185
22310
  };
@@ -22190,10 +22315,10 @@ export const NewEnvVar$outboundSchema: z.ZodType<
22190
22315
  z.ZodTypeDef,
22191
22316
  NewEnvVar
22192
22317
  > = z.object({
22193
- created: z.date().transform(v => v.toISOString()),
22194
- key: z.string(),
22318
+ created: z.date().transform(v => v.toISOString()).optional(),
22319
+ key: z.string().optional(),
22195
22320
  ownerId: z.nullable(z.string()).optional(),
22196
- id: z.string(),
22321
+ id: z.string().optional(),
22197
22322
  createdBy: z.nullable(z.string()).optional(),
22198
22323
  deletedBy: z.nullable(z.string()).optional(),
22199
22324
  updatedBy: z.nullable(z.string()).optional(),
@@ -22205,7 +22330,7 @@ export const NewEnvVar$outboundSchema: z.ZodType<
22205
22330
  type: UserEventPayload58Type$outboundSchema.optional(),
22206
22331
  target: z.array(UserEventPayload58Target$outboundSchema).optional(),
22207
22332
  applyToAllCustomEnvironments: z.boolean().optional(),
22208
- decrypted: z.boolean(),
22333
+ decrypted: z.boolean().optional(),
22209
22334
  comment: z.string().optional(),
22210
22335
  lastEditedByDisplayName: z.string().optional(),
22211
22336
  });