vercel-api-js 0.22.0 → 0.22.1

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > vercel-api-js@0.22.0 build /home/runner/work/openapi-clients/openapi-clients/packages/vercel-api-js
2
+ > vercel-api-js@0.22.1 build /home/runner/work/openapi-clients/openapi-clients/packages/vercel-api-js
3
3
  > unbuild
4
4
 
5
5
  [info] Automatically detected entries: src/index [esm] [cjs] [dts]
@@ -10,5 +10,5 @@
10
10
 
11
11
  [log] dist/index.mjs (total size: 33.2 kB, chunk size: 33.2 kB, exports: VercelApi)
12
12
 
13
- Σ Total dist size (byte size): 3.14 MB
13
+ Σ Total dist size (byte size): 3.15 MB
14
14
  [log]
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # vercel-api-js
2
2
 
3
+ ## 0.22.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 5f0ac90: Update type for get custom deployment
8
+ - 15c6623: [BREAKING] Change type order in filterProjectEnvs and related functions
9
+ - e120dde: [BREAKING] Remove 'blobStores' field from resourceConfig in AuthUser schema
10
+ - c808605: Add 'partial' field to UpdateResourceSecretsRequestBody and UpdateResourceSecretsByIdRequestBody
11
+
3
12
  ## 0.22.0
4
13
 
5
14
  ### Minor Changes
package/dist/index.d.cts CHANGED
@@ -298,7 +298,7 @@ type AuthUser = {
298
298
  softBlock: {
299
299
  blockedAt: number;
300
300
  reason: 'BLOCKED_FOR_PLATFORM_ABUSE' | 'ENTERPRISE_TRIAL_ENDED' | 'FAIR_USE_LIMITS_EXCEEDED' | 'SUBSCRIPTION_CANCELED' | 'SUBSCRIPTION_EXPIRED' | 'UNPAID_INVOICE';
301
- blockedDueToOverageType?: 'aiCredits' | 'analyticsUsage' | 'artifacts' | 'bandwidth' | 'blobStores' | 'blobTotalAdvancedRequests' | 'blobTotalAvgSizeInBytes' | 'blobTotalGetResponseObjectSizeInBytes' | 'blobTotalSimpleRequests' | 'buildMinute' | 'dataCacheRead' | 'dataCacheRevalidation' | 'dataCacheWrite' | 'edgeConfigRead' | 'edgeConfigWrite' | 'edgeFunctionExecutionUnits' | 'edgeMiddlewareInvocations' | 'edgeRequest' | 'edgeRequestAdditionalCpuDuration' | 'elasticConcurrencyBuildSlots' | 'fastDataTransfer' | 'fastOriginTransfer' | 'functionDuration' | 'functionInvocation' | 'imageOptimizationCacheRead' | 'imageOptimizationCacheWrite' | 'imageOptimizationTransformation' | 'logDrainsVolume' | 'monitoringMetric' | 'objectDataTransfer' | 'observabilityEvent' | 'postgresComputeTime' | 'postgresDataStorage' | 'postgresDataTransfer' | 'postgresDatabase' | 'postgresWrittenData' | 'serverlessFunctionExecution' | 'sourceImages' | 'storageRedisTotalBandwidthInBytes' | 'storageRedisTotalCommands' | 'storageRedisTotalDailyAvgStorageInBytes' | 'storageRedisTotalDatabases' | 'wafOwaspExcessBytes' | 'wafOwaspRequests' | 'wafRateLimitRequest' | 'webAnalyticsEvent';
301
+ blockedDueToOverageType?: 'aiCredits' | 'analyticsUsage' | 'artifacts' | 'bandwidth' | 'blobTotalAdvancedRequests' | 'blobTotalAvgSizeInBytes' | 'blobTotalGetResponseObjectSizeInBytes' | 'blobTotalSimpleRequests' | 'dataCacheRead' | 'dataCacheWrite' | 'edgeConfigRead' | 'edgeConfigWrite' | 'edgeFunctionExecutionUnits' | 'edgeMiddlewareInvocations' | 'edgeRequest' | 'edgeRequestAdditionalCpuDuration' | 'elasticConcurrencyBuildSlots' | 'fastDataTransfer' | 'fastOriginTransfer' | 'functionDuration' | 'functionInvocation' | 'imageOptimizationCacheRead' | 'imageOptimizationCacheWrite' | 'imageOptimizationTransformation' | 'logDrainsVolume' | 'monitoringMetric' | 'objectDataTransfer' | 'observabilityEvent' | 'postgresComputeTime' | 'postgresDataStorage' | 'postgresDataTransfer' | 'postgresDatabase' | 'postgresWrittenData' | 'serverlessFunctionExecution' | 'sourceImages' | 'storageRedisTotalBandwidthInBytes' | 'storageRedisTotalCommands' | 'storageRedisTotalDailyAvgStorageInBytes' | 'storageRedisTotalDatabases' | 'wafOwaspExcessBytes' | 'wafOwaspRequests' | 'wafRateLimitRequest' | 'webAnalyticsEvent';
302
302
  } | null;
303
303
  /**
304
304
  * An object containing billing infomation associated with the User account.
@@ -308,10 +308,6 @@ type AuthUser = {
308
308
  * An object containing infomation related to the amount of platform resources may be allocated to the User account.
309
309
  */
310
310
  resourceConfig: {
311
- /**
312
- * An object containing infomation related to the amount of platform resources may be allocated to the User account.
313
- */
314
- blobStores?: number;
315
311
  /**
316
312
  * An object containing infomation related to the amount of platform resources may be allocated to the User account.
317
313
  */
@@ -364,6 +360,10 @@ type AuthUser = {
364
360
  * An object containing infomation related to the amount of platform resources may be allocated to the User account.
365
361
  */
366
362
  postgresDatabases?: number;
363
+ /**
364
+ * An object containing infomation related to the amount of platform resources may be allocated to the User account.
365
+ */
366
+ blobStores?: number;
367
367
  /**
368
368
  * An object containing infomation related to the amount of platform resources may be allocated to the User account.
369
369
  */
@@ -2494,6 +2494,25 @@ type UpdateProjectDataCacheResponse = {
2494
2494
  functionZeroConfigFailover?: boolean;
2495
2495
  elasticConcurrencyEnabled?: boolean;
2496
2496
  };
2497
+ rollingRelease?: {
2498
+ /**
2499
+ * The environment that the release targets, currently only supports production. Adding in case we want to configure with alias groups or custom environments.
2500
+ */
2501
+ target: string;
2502
+ /**
2503
+ * minutesToRelease is the total time to gradually shift percentages. This value overrides stages and instead creates a single smooth 0-100 stage. So once we have fetched the document with the start time, subtract from the current time, and divide by total minutesToRelease, to determine what percentage of traffic the new deployment should be serving. There is no approval required, and for the case of Vercel, it would just slowly shift traffic 0 to 100%.
2504
+ */
2505
+ minutesToRelease?: number;
2506
+ /**
2507
+ * An array of all the stages required during a deployment release. each stage requires an approval before advancing to the next stage.
2508
+ */
2509
+ stages?: {
2510
+ /**
2511
+ * The percentage of traffic to serve to the new deployment
2512
+ */
2513
+ targetPercentage: number;
2514
+ }[] | null;
2515
+ } | null;
2497
2516
  defaultResourceConfig: {
2498
2517
  fluid?: boolean;
2499
2518
  functionDefaultRegions: string[];
@@ -7377,7 +7396,7 @@ type SubmitBillingDataRequestBody = {
7377
7396
  /**
7378
7397
  * Partner's resource ID.
7379
7398
  */
7380
- resourceId: string;
7399
+ resourceId?: string;
7381
7400
  /**
7382
7401
  * Metric name.
7383
7402
  */
@@ -7651,6 +7670,10 @@ type UpdateResourceSecretsRequestBody = {
7651
7670
  value: string;
7652
7671
  prefix?: string;
7653
7672
  }[];
7673
+ /**
7674
+ * If true, will only update the provided secrets
7675
+ */
7676
+ partial?: boolean;
7654
7677
  };
7655
7678
  type UpdateResourceSecretsVariables = {
7656
7679
  body: UpdateResourceSecretsRequestBody;
@@ -7671,6 +7694,10 @@ type UpdateResourceSecretsByIdRequestBody = {
7671
7694
  value: string;
7672
7695
  prefix?: string;
7673
7696
  }[];
7697
+ /**
7698
+ * If true, will only update the provided secrets
7699
+ */
7700
+ partial?: boolean;
7674
7701
  };
7675
7702
  type UpdateResourceSecretsByIdVariables = {
7676
7703
  body: UpdateResourceSecretsByIdRequestBody;
@@ -9491,6 +9518,25 @@ type GetProjectsResponse = {
9491
9518
  functionZeroConfigFailover?: boolean;
9492
9519
  elasticConcurrencyEnabled?: boolean;
9493
9520
  };
9521
+ rollingRelease?: {
9522
+ /**
9523
+ * The environment that the release targets, currently only supports production. Adding in case we want to configure with alias groups or custom environments.
9524
+ */
9525
+ target: string;
9526
+ /**
9527
+ * minutesToRelease is the total time to gradually shift percentages. This value overrides stages and instead creates a single smooth 0-100 stage. So once we have fetched the document with the start time, subtract from the current time, and divide by total minutesToRelease, to determine what percentage of traffic the new deployment should be serving. There is no approval required, and for the case of Vercel, it would just slowly shift traffic 0 to 100%.
9528
+ */
9529
+ minutesToRelease?: number;
9530
+ /**
9531
+ * An array of all the stages required during a deployment release. each stage requires an approval before advancing to the next stage.
9532
+ */
9533
+ stages?: {
9534
+ /**
9535
+ * The percentage of traffic to serve to the new deployment
9536
+ */
9537
+ targetPercentage: number;
9538
+ }[] | null;
9539
+ } | null;
9494
9540
  defaultResourceConfig: {
9495
9541
  fluid?: boolean;
9496
9542
  functionDefaultRegions: string[];
@@ -10308,6 +10354,25 @@ type CreateProjectResponse = {
10308
10354
  functionZeroConfigFailover?: boolean;
10309
10355
  elasticConcurrencyEnabled?: boolean;
10310
10356
  };
10357
+ rollingRelease?: {
10358
+ /**
10359
+ * The environment that the release targets, currently only supports production. Adding in case we want to configure with alias groups or custom environments.
10360
+ */
10361
+ target: string;
10362
+ /**
10363
+ * minutesToRelease is the total time to gradually shift percentages. This value overrides stages and instead creates a single smooth 0-100 stage. So once we have fetched the document with the start time, subtract from the current time, and divide by total minutesToRelease, to determine what percentage of traffic the new deployment should be serving. There is no approval required, and for the case of Vercel, it would just slowly shift traffic 0 to 100%.
10364
+ */
10365
+ minutesToRelease?: number;
10366
+ /**
10367
+ * An array of all the stages required during a deployment release. each stage requires an approval before advancing to the next stage.
10368
+ */
10369
+ stages?: {
10370
+ /**
10371
+ * The percentage of traffic to serve to the new deployment
10372
+ */
10373
+ targetPercentage: number;
10374
+ }[] | null;
10375
+ } | null;
10311
10376
  defaultResourceConfig: {
10312
10377
  fluid?: boolean;
10313
10378
  functionDefaultRegions: string[];
@@ -11257,6 +11322,25 @@ type GetProjectResponse = {
11257
11322
  functionZeroConfigFailover?: boolean;
11258
11323
  elasticConcurrencyEnabled?: boolean;
11259
11324
  };
11325
+ rollingRelease?: {
11326
+ /**
11327
+ * The environment that the release targets, currently only supports production. Adding in case we want to configure with alias groups or custom environments.
11328
+ */
11329
+ target: string;
11330
+ /**
11331
+ * minutesToRelease is the total time to gradually shift percentages. This value overrides stages and instead creates a single smooth 0-100 stage. So once we have fetched the document with the start time, subtract from the current time, and divide by total minutesToRelease, to determine what percentage of traffic the new deployment should be serving. There is no approval required, and for the case of Vercel, it would just slowly shift traffic 0 to 100%.
11332
+ */
11333
+ minutesToRelease?: number;
11334
+ /**
11335
+ * An array of all the stages required during a deployment release. each stage requires an approval before advancing to the next stage.
11336
+ */
11337
+ stages?: {
11338
+ /**
11339
+ * The percentage of traffic to serve to the new deployment
11340
+ */
11341
+ targetPercentage: number;
11342
+ }[] | null;
11343
+ } | null;
11260
11344
  defaultResourceConfig: {
11261
11345
  fluid?: boolean;
11262
11346
  functionDefaultRegions: string[];
@@ -12081,6 +12165,25 @@ type UpdateProjectResponse = {
12081
12165
  functionZeroConfigFailover?: boolean;
12082
12166
  elasticConcurrencyEnabled?: boolean;
12083
12167
  };
12168
+ rollingRelease?: {
12169
+ /**
12170
+ * The environment that the release targets, currently only supports production. Adding in case we want to configure with alias groups or custom environments.
12171
+ */
12172
+ target: string;
12173
+ /**
12174
+ * minutesToRelease is the total time to gradually shift percentages. This value overrides stages and instead creates a single smooth 0-100 stage. So once we have fetched the document with the start time, subtract from the current time, and divide by total minutesToRelease, to determine what percentage of traffic the new deployment should be serving. There is no approval required, and for the case of Vercel, it would just slowly shift traffic 0 to 100%.
12175
+ */
12176
+ minutesToRelease?: number;
12177
+ /**
12178
+ * An array of all the stages required during a deployment release. each stage requires an approval before advancing to the next stage.
12179
+ */
12180
+ stages?: {
12181
+ /**
12182
+ * The percentage of traffic to serve to the new deployment
12183
+ */
12184
+ targetPercentage: number;
12185
+ }[] | null;
12186
+ } | null;
12084
12187
  defaultResourceConfig: {
12085
12188
  fluid?: boolean;
12086
12189
  functionDefaultRegions: string[];
package/dist/index.d.mts CHANGED
@@ -298,7 +298,7 @@ type AuthUser = {
298
298
  softBlock: {
299
299
  blockedAt: number;
300
300
  reason: 'BLOCKED_FOR_PLATFORM_ABUSE' | 'ENTERPRISE_TRIAL_ENDED' | 'FAIR_USE_LIMITS_EXCEEDED' | 'SUBSCRIPTION_CANCELED' | 'SUBSCRIPTION_EXPIRED' | 'UNPAID_INVOICE';
301
- blockedDueToOverageType?: 'aiCredits' | 'analyticsUsage' | 'artifacts' | 'bandwidth' | 'blobStores' | 'blobTotalAdvancedRequests' | 'blobTotalAvgSizeInBytes' | 'blobTotalGetResponseObjectSizeInBytes' | 'blobTotalSimpleRequests' | 'buildMinute' | 'dataCacheRead' | 'dataCacheRevalidation' | 'dataCacheWrite' | 'edgeConfigRead' | 'edgeConfigWrite' | 'edgeFunctionExecutionUnits' | 'edgeMiddlewareInvocations' | 'edgeRequest' | 'edgeRequestAdditionalCpuDuration' | 'elasticConcurrencyBuildSlots' | 'fastDataTransfer' | 'fastOriginTransfer' | 'functionDuration' | 'functionInvocation' | 'imageOptimizationCacheRead' | 'imageOptimizationCacheWrite' | 'imageOptimizationTransformation' | 'logDrainsVolume' | 'monitoringMetric' | 'objectDataTransfer' | 'observabilityEvent' | 'postgresComputeTime' | 'postgresDataStorage' | 'postgresDataTransfer' | 'postgresDatabase' | 'postgresWrittenData' | 'serverlessFunctionExecution' | 'sourceImages' | 'storageRedisTotalBandwidthInBytes' | 'storageRedisTotalCommands' | 'storageRedisTotalDailyAvgStorageInBytes' | 'storageRedisTotalDatabases' | 'wafOwaspExcessBytes' | 'wafOwaspRequests' | 'wafRateLimitRequest' | 'webAnalyticsEvent';
301
+ blockedDueToOverageType?: 'aiCredits' | 'analyticsUsage' | 'artifacts' | 'bandwidth' | 'blobTotalAdvancedRequests' | 'blobTotalAvgSizeInBytes' | 'blobTotalGetResponseObjectSizeInBytes' | 'blobTotalSimpleRequests' | 'dataCacheRead' | 'dataCacheWrite' | 'edgeConfigRead' | 'edgeConfigWrite' | 'edgeFunctionExecutionUnits' | 'edgeMiddlewareInvocations' | 'edgeRequest' | 'edgeRequestAdditionalCpuDuration' | 'elasticConcurrencyBuildSlots' | 'fastDataTransfer' | 'fastOriginTransfer' | 'functionDuration' | 'functionInvocation' | 'imageOptimizationCacheRead' | 'imageOptimizationCacheWrite' | 'imageOptimizationTransformation' | 'logDrainsVolume' | 'monitoringMetric' | 'objectDataTransfer' | 'observabilityEvent' | 'postgresComputeTime' | 'postgresDataStorage' | 'postgresDataTransfer' | 'postgresDatabase' | 'postgresWrittenData' | 'serverlessFunctionExecution' | 'sourceImages' | 'storageRedisTotalBandwidthInBytes' | 'storageRedisTotalCommands' | 'storageRedisTotalDailyAvgStorageInBytes' | 'storageRedisTotalDatabases' | 'wafOwaspExcessBytes' | 'wafOwaspRequests' | 'wafRateLimitRequest' | 'webAnalyticsEvent';
302
302
  } | null;
303
303
  /**
304
304
  * An object containing billing infomation associated with the User account.
@@ -308,10 +308,6 @@ type AuthUser = {
308
308
  * An object containing infomation related to the amount of platform resources may be allocated to the User account.
309
309
  */
310
310
  resourceConfig: {
311
- /**
312
- * An object containing infomation related to the amount of platform resources may be allocated to the User account.
313
- */
314
- blobStores?: number;
315
311
  /**
316
312
  * An object containing infomation related to the amount of platform resources may be allocated to the User account.
317
313
  */
@@ -364,6 +360,10 @@ type AuthUser = {
364
360
  * An object containing infomation related to the amount of platform resources may be allocated to the User account.
365
361
  */
366
362
  postgresDatabases?: number;
363
+ /**
364
+ * An object containing infomation related to the amount of platform resources may be allocated to the User account.
365
+ */
366
+ blobStores?: number;
367
367
  /**
368
368
  * An object containing infomation related to the amount of platform resources may be allocated to the User account.
369
369
  */
@@ -2494,6 +2494,25 @@ type UpdateProjectDataCacheResponse = {
2494
2494
  functionZeroConfigFailover?: boolean;
2495
2495
  elasticConcurrencyEnabled?: boolean;
2496
2496
  };
2497
+ rollingRelease?: {
2498
+ /**
2499
+ * The environment that the release targets, currently only supports production. Adding in case we want to configure with alias groups or custom environments.
2500
+ */
2501
+ target: string;
2502
+ /**
2503
+ * minutesToRelease is the total time to gradually shift percentages. This value overrides stages and instead creates a single smooth 0-100 stage. So once we have fetched the document with the start time, subtract from the current time, and divide by total minutesToRelease, to determine what percentage of traffic the new deployment should be serving. There is no approval required, and for the case of Vercel, it would just slowly shift traffic 0 to 100%.
2504
+ */
2505
+ minutesToRelease?: number;
2506
+ /**
2507
+ * An array of all the stages required during a deployment release. each stage requires an approval before advancing to the next stage.
2508
+ */
2509
+ stages?: {
2510
+ /**
2511
+ * The percentage of traffic to serve to the new deployment
2512
+ */
2513
+ targetPercentage: number;
2514
+ }[] | null;
2515
+ } | null;
2497
2516
  defaultResourceConfig: {
2498
2517
  fluid?: boolean;
2499
2518
  functionDefaultRegions: string[];
@@ -7377,7 +7396,7 @@ type SubmitBillingDataRequestBody = {
7377
7396
  /**
7378
7397
  * Partner's resource ID.
7379
7398
  */
7380
- resourceId: string;
7399
+ resourceId?: string;
7381
7400
  /**
7382
7401
  * Metric name.
7383
7402
  */
@@ -7651,6 +7670,10 @@ type UpdateResourceSecretsRequestBody = {
7651
7670
  value: string;
7652
7671
  prefix?: string;
7653
7672
  }[];
7673
+ /**
7674
+ * If true, will only update the provided secrets
7675
+ */
7676
+ partial?: boolean;
7654
7677
  };
7655
7678
  type UpdateResourceSecretsVariables = {
7656
7679
  body: UpdateResourceSecretsRequestBody;
@@ -7671,6 +7694,10 @@ type UpdateResourceSecretsByIdRequestBody = {
7671
7694
  value: string;
7672
7695
  prefix?: string;
7673
7696
  }[];
7697
+ /**
7698
+ * If true, will only update the provided secrets
7699
+ */
7700
+ partial?: boolean;
7674
7701
  };
7675
7702
  type UpdateResourceSecretsByIdVariables = {
7676
7703
  body: UpdateResourceSecretsByIdRequestBody;
@@ -9491,6 +9518,25 @@ type GetProjectsResponse = {
9491
9518
  functionZeroConfigFailover?: boolean;
9492
9519
  elasticConcurrencyEnabled?: boolean;
9493
9520
  };
9521
+ rollingRelease?: {
9522
+ /**
9523
+ * The environment that the release targets, currently only supports production. Adding in case we want to configure with alias groups or custom environments.
9524
+ */
9525
+ target: string;
9526
+ /**
9527
+ * minutesToRelease is the total time to gradually shift percentages. This value overrides stages and instead creates a single smooth 0-100 stage. So once we have fetched the document with the start time, subtract from the current time, and divide by total minutesToRelease, to determine what percentage of traffic the new deployment should be serving. There is no approval required, and for the case of Vercel, it would just slowly shift traffic 0 to 100%.
9528
+ */
9529
+ minutesToRelease?: number;
9530
+ /**
9531
+ * An array of all the stages required during a deployment release. each stage requires an approval before advancing to the next stage.
9532
+ */
9533
+ stages?: {
9534
+ /**
9535
+ * The percentage of traffic to serve to the new deployment
9536
+ */
9537
+ targetPercentage: number;
9538
+ }[] | null;
9539
+ } | null;
9494
9540
  defaultResourceConfig: {
9495
9541
  fluid?: boolean;
9496
9542
  functionDefaultRegions: string[];
@@ -10308,6 +10354,25 @@ type CreateProjectResponse = {
10308
10354
  functionZeroConfigFailover?: boolean;
10309
10355
  elasticConcurrencyEnabled?: boolean;
10310
10356
  };
10357
+ rollingRelease?: {
10358
+ /**
10359
+ * The environment that the release targets, currently only supports production. Adding in case we want to configure with alias groups or custom environments.
10360
+ */
10361
+ target: string;
10362
+ /**
10363
+ * minutesToRelease is the total time to gradually shift percentages. This value overrides stages and instead creates a single smooth 0-100 stage. So once we have fetched the document with the start time, subtract from the current time, and divide by total minutesToRelease, to determine what percentage of traffic the new deployment should be serving. There is no approval required, and for the case of Vercel, it would just slowly shift traffic 0 to 100%.
10364
+ */
10365
+ minutesToRelease?: number;
10366
+ /**
10367
+ * An array of all the stages required during a deployment release. each stage requires an approval before advancing to the next stage.
10368
+ */
10369
+ stages?: {
10370
+ /**
10371
+ * The percentage of traffic to serve to the new deployment
10372
+ */
10373
+ targetPercentage: number;
10374
+ }[] | null;
10375
+ } | null;
10311
10376
  defaultResourceConfig: {
10312
10377
  fluid?: boolean;
10313
10378
  functionDefaultRegions: string[];
@@ -11257,6 +11322,25 @@ type GetProjectResponse = {
11257
11322
  functionZeroConfigFailover?: boolean;
11258
11323
  elasticConcurrencyEnabled?: boolean;
11259
11324
  };
11325
+ rollingRelease?: {
11326
+ /**
11327
+ * The environment that the release targets, currently only supports production. Adding in case we want to configure with alias groups or custom environments.
11328
+ */
11329
+ target: string;
11330
+ /**
11331
+ * minutesToRelease is the total time to gradually shift percentages. This value overrides stages and instead creates a single smooth 0-100 stage. So once we have fetched the document with the start time, subtract from the current time, and divide by total minutesToRelease, to determine what percentage of traffic the new deployment should be serving. There is no approval required, and for the case of Vercel, it would just slowly shift traffic 0 to 100%.
11332
+ */
11333
+ minutesToRelease?: number;
11334
+ /**
11335
+ * An array of all the stages required during a deployment release. each stage requires an approval before advancing to the next stage.
11336
+ */
11337
+ stages?: {
11338
+ /**
11339
+ * The percentage of traffic to serve to the new deployment
11340
+ */
11341
+ targetPercentage: number;
11342
+ }[] | null;
11343
+ } | null;
11260
11344
  defaultResourceConfig: {
11261
11345
  fluid?: boolean;
11262
11346
  functionDefaultRegions: string[];
@@ -12081,6 +12165,25 @@ type UpdateProjectResponse = {
12081
12165
  functionZeroConfigFailover?: boolean;
12082
12166
  elasticConcurrencyEnabled?: boolean;
12083
12167
  };
12168
+ rollingRelease?: {
12169
+ /**
12170
+ * The environment that the release targets, currently only supports production. Adding in case we want to configure with alias groups or custom environments.
12171
+ */
12172
+ target: string;
12173
+ /**
12174
+ * minutesToRelease is the total time to gradually shift percentages. This value overrides stages and instead creates a single smooth 0-100 stage. So once we have fetched the document with the start time, subtract from the current time, and divide by total minutesToRelease, to determine what percentage of traffic the new deployment should be serving. There is no approval required, and for the case of Vercel, it would just slowly shift traffic 0 to 100%.
12175
+ */
12176
+ minutesToRelease?: number;
12177
+ /**
12178
+ * An array of all the stages required during a deployment release. each stage requires an approval before advancing to the next stage.
12179
+ */
12180
+ stages?: {
12181
+ /**
12182
+ * The percentage of traffic to serve to the new deployment
12183
+ */
12184
+ targetPercentage: number;
12185
+ }[] | null;
12186
+ } | null;
12084
12187
  defaultResourceConfig: {
12085
12188
  fluid?: boolean;
12086
12189
  functionDefaultRegions: string[];
package/dist/index.d.ts CHANGED
@@ -298,7 +298,7 @@ type AuthUser = {
298
298
  softBlock: {
299
299
  blockedAt: number;
300
300
  reason: 'BLOCKED_FOR_PLATFORM_ABUSE' | 'ENTERPRISE_TRIAL_ENDED' | 'FAIR_USE_LIMITS_EXCEEDED' | 'SUBSCRIPTION_CANCELED' | 'SUBSCRIPTION_EXPIRED' | 'UNPAID_INVOICE';
301
- blockedDueToOverageType?: 'aiCredits' | 'analyticsUsage' | 'artifacts' | 'bandwidth' | 'blobStores' | 'blobTotalAdvancedRequests' | 'blobTotalAvgSizeInBytes' | 'blobTotalGetResponseObjectSizeInBytes' | 'blobTotalSimpleRequests' | 'buildMinute' | 'dataCacheRead' | 'dataCacheRevalidation' | 'dataCacheWrite' | 'edgeConfigRead' | 'edgeConfigWrite' | 'edgeFunctionExecutionUnits' | 'edgeMiddlewareInvocations' | 'edgeRequest' | 'edgeRequestAdditionalCpuDuration' | 'elasticConcurrencyBuildSlots' | 'fastDataTransfer' | 'fastOriginTransfer' | 'functionDuration' | 'functionInvocation' | 'imageOptimizationCacheRead' | 'imageOptimizationCacheWrite' | 'imageOptimizationTransformation' | 'logDrainsVolume' | 'monitoringMetric' | 'objectDataTransfer' | 'observabilityEvent' | 'postgresComputeTime' | 'postgresDataStorage' | 'postgresDataTransfer' | 'postgresDatabase' | 'postgresWrittenData' | 'serverlessFunctionExecution' | 'sourceImages' | 'storageRedisTotalBandwidthInBytes' | 'storageRedisTotalCommands' | 'storageRedisTotalDailyAvgStorageInBytes' | 'storageRedisTotalDatabases' | 'wafOwaspExcessBytes' | 'wafOwaspRequests' | 'wafRateLimitRequest' | 'webAnalyticsEvent';
301
+ blockedDueToOverageType?: 'aiCredits' | 'analyticsUsage' | 'artifacts' | 'bandwidth' | 'blobTotalAdvancedRequests' | 'blobTotalAvgSizeInBytes' | 'blobTotalGetResponseObjectSizeInBytes' | 'blobTotalSimpleRequests' | 'dataCacheRead' | 'dataCacheWrite' | 'edgeConfigRead' | 'edgeConfigWrite' | 'edgeFunctionExecutionUnits' | 'edgeMiddlewareInvocations' | 'edgeRequest' | 'edgeRequestAdditionalCpuDuration' | 'elasticConcurrencyBuildSlots' | 'fastDataTransfer' | 'fastOriginTransfer' | 'functionDuration' | 'functionInvocation' | 'imageOptimizationCacheRead' | 'imageOptimizationCacheWrite' | 'imageOptimizationTransformation' | 'logDrainsVolume' | 'monitoringMetric' | 'objectDataTransfer' | 'observabilityEvent' | 'postgresComputeTime' | 'postgresDataStorage' | 'postgresDataTransfer' | 'postgresDatabase' | 'postgresWrittenData' | 'serverlessFunctionExecution' | 'sourceImages' | 'storageRedisTotalBandwidthInBytes' | 'storageRedisTotalCommands' | 'storageRedisTotalDailyAvgStorageInBytes' | 'storageRedisTotalDatabases' | 'wafOwaspExcessBytes' | 'wafOwaspRequests' | 'wafRateLimitRequest' | 'webAnalyticsEvent';
302
302
  } | null;
303
303
  /**
304
304
  * An object containing billing infomation associated with the User account.
@@ -308,10 +308,6 @@ type AuthUser = {
308
308
  * An object containing infomation related to the amount of platform resources may be allocated to the User account.
309
309
  */
310
310
  resourceConfig: {
311
- /**
312
- * An object containing infomation related to the amount of platform resources may be allocated to the User account.
313
- */
314
- blobStores?: number;
315
311
  /**
316
312
  * An object containing infomation related to the amount of platform resources may be allocated to the User account.
317
313
  */
@@ -364,6 +360,10 @@ type AuthUser = {
364
360
  * An object containing infomation related to the amount of platform resources may be allocated to the User account.
365
361
  */
366
362
  postgresDatabases?: number;
363
+ /**
364
+ * An object containing infomation related to the amount of platform resources may be allocated to the User account.
365
+ */
366
+ blobStores?: number;
367
367
  /**
368
368
  * An object containing infomation related to the amount of platform resources may be allocated to the User account.
369
369
  */
@@ -2494,6 +2494,25 @@ type UpdateProjectDataCacheResponse = {
2494
2494
  functionZeroConfigFailover?: boolean;
2495
2495
  elasticConcurrencyEnabled?: boolean;
2496
2496
  };
2497
+ rollingRelease?: {
2498
+ /**
2499
+ * The environment that the release targets, currently only supports production. Adding in case we want to configure with alias groups or custom environments.
2500
+ */
2501
+ target: string;
2502
+ /**
2503
+ * minutesToRelease is the total time to gradually shift percentages. This value overrides stages and instead creates a single smooth 0-100 stage. So once we have fetched the document with the start time, subtract from the current time, and divide by total minutesToRelease, to determine what percentage of traffic the new deployment should be serving. There is no approval required, and for the case of Vercel, it would just slowly shift traffic 0 to 100%.
2504
+ */
2505
+ minutesToRelease?: number;
2506
+ /**
2507
+ * An array of all the stages required during a deployment release. each stage requires an approval before advancing to the next stage.
2508
+ */
2509
+ stages?: {
2510
+ /**
2511
+ * The percentage of traffic to serve to the new deployment
2512
+ */
2513
+ targetPercentage: number;
2514
+ }[] | null;
2515
+ } | null;
2497
2516
  defaultResourceConfig: {
2498
2517
  fluid?: boolean;
2499
2518
  functionDefaultRegions: string[];
@@ -7377,7 +7396,7 @@ type SubmitBillingDataRequestBody = {
7377
7396
  /**
7378
7397
  * Partner's resource ID.
7379
7398
  */
7380
- resourceId: string;
7399
+ resourceId?: string;
7381
7400
  /**
7382
7401
  * Metric name.
7383
7402
  */
@@ -7651,6 +7670,10 @@ type UpdateResourceSecretsRequestBody = {
7651
7670
  value: string;
7652
7671
  prefix?: string;
7653
7672
  }[];
7673
+ /**
7674
+ * If true, will only update the provided secrets
7675
+ */
7676
+ partial?: boolean;
7654
7677
  };
7655
7678
  type UpdateResourceSecretsVariables = {
7656
7679
  body: UpdateResourceSecretsRequestBody;
@@ -7671,6 +7694,10 @@ type UpdateResourceSecretsByIdRequestBody = {
7671
7694
  value: string;
7672
7695
  prefix?: string;
7673
7696
  }[];
7697
+ /**
7698
+ * If true, will only update the provided secrets
7699
+ */
7700
+ partial?: boolean;
7674
7701
  };
7675
7702
  type UpdateResourceSecretsByIdVariables = {
7676
7703
  body: UpdateResourceSecretsByIdRequestBody;
@@ -9491,6 +9518,25 @@ type GetProjectsResponse = {
9491
9518
  functionZeroConfigFailover?: boolean;
9492
9519
  elasticConcurrencyEnabled?: boolean;
9493
9520
  };
9521
+ rollingRelease?: {
9522
+ /**
9523
+ * The environment that the release targets, currently only supports production. Adding in case we want to configure with alias groups or custom environments.
9524
+ */
9525
+ target: string;
9526
+ /**
9527
+ * minutesToRelease is the total time to gradually shift percentages. This value overrides stages and instead creates a single smooth 0-100 stage. So once we have fetched the document with the start time, subtract from the current time, and divide by total minutesToRelease, to determine what percentage of traffic the new deployment should be serving. There is no approval required, and for the case of Vercel, it would just slowly shift traffic 0 to 100%.
9528
+ */
9529
+ minutesToRelease?: number;
9530
+ /**
9531
+ * An array of all the stages required during a deployment release. each stage requires an approval before advancing to the next stage.
9532
+ */
9533
+ stages?: {
9534
+ /**
9535
+ * The percentage of traffic to serve to the new deployment
9536
+ */
9537
+ targetPercentage: number;
9538
+ }[] | null;
9539
+ } | null;
9494
9540
  defaultResourceConfig: {
9495
9541
  fluid?: boolean;
9496
9542
  functionDefaultRegions: string[];
@@ -10308,6 +10354,25 @@ type CreateProjectResponse = {
10308
10354
  functionZeroConfigFailover?: boolean;
10309
10355
  elasticConcurrencyEnabled?: boolean;
10310
10356
  };
10357
+ rollingRelease?: {
10358
+ /**
10359
+ * The environment that the release targets, currently only supports production. Adding in case we want to configure with alias groups or custom environments.
10360
+ */
10361
+ target: string;
10362
+ /**
10363
+ * minutesToRelease is the total time to gradually shift percentages. This value overrides stages and instead creates a single smooth 0-100 stage. So once we have fetched the document with the start time, subtract from the current time, and divide by total minutesToRelease, to determine what percentage of traffic the new deployment should be serving. There is no approval required, and for the case of Vercel, it would just slowly shift traffic 0 to 100%.
10364
+ */
10365
+ minutesToRelease?: number;
10366
+ /**
10367
+ * An array of all the stages required during a deployment release. each stage requires an approval before advancing to the next stage.
10368
+ */
10369
+ stages?: {
10370
+ /**
10371
+ * The percentage of traffic to serve to the new deployment
10372
+ */
10373
+ targetPercentage: number;
10374
+ }[] | null;
10375
+ } | null;
10311
10376
  defaultResourceConfig: {
10312
10377
  fluid?: boolean;
10313
10378
  functionDefaultRegions: string[];
@@ -11257,6 +11322,25 @@ type GetProjectResponse = {
11257
11322
  functionZeroConfigFailover?: boolean;
11258
11323
  elasticConcurrencyEnabled?: boolean;
11259
11324
  };
11325
+ rollingRelease?: {
11326
+ /**
11327
+ * The environment that the release targets, currently only supports production. Adding in case we want to configure with alias groups or custom environments.
11328
+ */
11329
+ target: string;
11330
+ /**
11331
+ * minutesToRelease is the total time to gradually shift percentages. This value overrides stages and instead creates a single smooth 0-100 stage. So once we have fetched the document with the start time, subtract from the current time, and divide by total minutesToRelease, to determine what percentage of traffic the new deployment should be serving. There is no approval required, and for the case of Vercel, it would just slowly shift traffic 0 to 100%.
11332
+ */
11333
+ minutesToRelease?: number;
11334
+ /**
11335
+ * An array of all the stages required during a deployment release. each stage requires an approval before advancing to the next stage.
11336
+ */
11337
+ stages?: {
11338
+ /**
11339
+ * The percentage of traffic to serve to the new deployment
11340
+ */
11341
+ targetPercentage: number;
11342
+ }[] | null;
11343
+ } | null;
11260
11344
  defaultResourceConfig: {
11261
11345
  fluid?: boolean;
11262
11346
  functionDefaultRegions: string[];
@@ -12081,6 +12165,25 @@ type UpdateProjectResponse = {
12081
12165
  functionZeroConfigFailover?: boolean;
12082
12166
  elasticConcurrencyEnabled?: boolean;
12083
12167
  };
12168
+ rollingRelease?: {
12169
+ /**
12170
+ * The environment that the release targets, currently only supports production. Adding in case we want to configure with alias groups or custom environments.
12171
+ */
12172
+ target: string;
12173
+ /**
12174
+ * minutesToRelease is the total time to gradually shift percentages. This value overrides stages and instead creates a single smooth 0-100 stage. So once we have fetched the document with the start time, subtract from the current time, and divide by total minutesToRelease, to determine what percentage of traffic the new deployment should be serving. There is no approval required, and for the case of Vercel, it would just slowly shift traffic 0 to 100%.
12175
+ */
12176
+ minutesToRelease?: number;
12177
+ /**
12178
+ * An array of all the stages required during a deployment release. each stage requires an approval before advancing to the next stage.
12179
+ */
12180
+ stages?: {
12181
+ /**
12182
+ * The percentage of traffic to serve to the new deployment
12183
+ */
12184
+ targetPercentage: number;
12185
+ }[] | null;
12186
+ } | null;
12084
12187
  defaultResourceConfig: {
12085
12188
  fluid?: boolean;
12086
12189
  functionDefaultRegions: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel-api-js",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "description": "Vercel auto-generated type-safe API client",
5
5
  "author": "SferaDev",
6
6
  "license": "ISC",