vercel-api-js 0.6.1 → 0.6.3

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,10 +1,10 @@
1
1
 
2
- > vercel-api-js@0.6.1 build /home/runner/work/openapi-clients/openapi-clients/packages/vercel-api-js
2
+ > vercel-api-js@0.6.3 build /home/runner/work/openapi-clients/openapi-clients/packages/vercel-api-js
3
3
  > rimraf dist && rollup -c
4
4
 
5
5
  
6
6
  ./src/index.ts → dist/index.cjs, dist/index.mjs...
7
- created dist/index.cjs, dist/index.mjs in 4.1s
7
+ created dist/index.cjs, dist/index.mjs in 4.2s
8
8
  
9
9
  ./src/index.ts → dist/index.d.ts...
10
- created dist/index.d.ts in 5.2s
10
+ created dist/index.d.ts in 5.9s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # vercel-api-js
2
2
 
3
+ ## 0.6.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 0b0194e: Add new field attackModeActiveUntil to project responses
8
+ - cd00645: Add oauth2Application field to project related responses
9
+ - 8920920: Remove planIteration from CreateTeamResponse and AuthUser
10
+ - 06e6e64: Add new property 'cronJobsPerProject' to 'AuthUser' type
11
+ - 44f20a3: Add skewProtectionBoundaryAt and skewProtectionMaxAge to project data cache and project response
12
+ - 224ec97: Update API endpoint to create project from v9 to v10
13
+ - 71615f0: Add new field 'planIteration' to AuthUser type
14
+ - 5bfccd9: Add optional field 'planIteration' to AuthUser type
15
+
16
+ ## 0.6.2
17
+
18
+ ### Patch Changes
19
+
20
+ - 79d46c2: Add 'dryRun' option to PatchEdgeConfigItems and PatchEdgeConfigSchema query params
21
+ - 364ba3e: Add projectAccessGroup field to project related responses
22
+ - 92880b3: [BREAKING] Add integrationStores to AuthUser in schemas.ts
23
+ - cda8a8e: Modified CreateProjectEnvVariables to specify that git branch must have target=preview
24
+
3
25
  ## 0.6.1
4
26
 
5
27
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -470,7 +470,7 @@ const getProjects = (variables, signal) => fetch$1({
470
470
  * Allows to create a new project with the provided configuration. It only requires the project `name` but more configuration can be provided to override the defaults.
471
471
  */
472
472
  const createProject = (variables, signal) => fetch$1({
473
- url: '/v9/projects',
473
+ url: '/v10/projects',
474
474
  method: 'post',
475
475
  ...variables,
476
476
  signal
package/dist/index.d.ts CHANGED
@@ -323,6 +323,7 @@ type AuthUser = {
323
323
  end: number;
324
324
  } | null;
325
325
  plan: 'pro' | 'enterprise' | 'hobby';
326
+ planIteration?: string;
326
327
  platform?: 'stripe' | 'stripeTestMode';
327
328
  orbCustomerId?: string;
328
329
  syncedAt?: number;
@@ -859,10 +860,18 @@ type AuthUser = {
859
860
  * An object containing infomation related to the amount of platform resources may be allocated to the User account.
860
861
  */
861
862
  blobStores?: number;
863
+ /**
864
+ * An object containing infomation related to the amount of platform resources may be allocated to the User account.
865
+ */
866
+ integrationStores?: number;
862
867
  /**
863
868
  * An object containing infomation related to the amount of platform resources may be allocated to the User account.
864
869
  */
865
870
  cronJobs?: number;
871
+ /**
872
+ * An object containing infomation related to the amount of platform resources may be allocated to the User account.
873
+ */
874
+ cronJobsPerProject?: number;
866
875
  };
867
876
  /**
868
877
  * Prefix that will be used in the URL of "Preview" deployments created by the User account.
@@ -2151,6 +2160,8 @@ type UpdateProjectDataCacheResponse = {
2151
2160
  rootDirectory?: string | null;
2152
2161
  serverlessFunctionRegion?: string | null;
2153
2162
  serverlessFunctionZeroConfigFailover?: boolean;
2163
+ skewProtectionBoundaryAt?: number;
2164
+ skewProtectionMaxAge?: number;
2154
2165
  skipGitConnectDuringLink?: boolean;
2155
2166
  sourceFilesOutsideRootDirectory?: boolean;
2156
2167
  ssoProtection?: {
@@ -2261,6 +2272,7 @@ type UpdateProjectDataCacheResponse = {
2261
2272
  integrationConfigurationTransfer?: ACLAction[];
2262
2273
  integrationConfigurationProjects?: ACLAction[];
2263
2274
  integrationVercelConfigurationOverride?: ACLAction[];
2275
+ integrationStore?: ACLAction[];
2264
2276
  jobGlobal?: ACLAction[];
2265
2277
  logDrain?: ACLAction[];
2266
2278
  Monitoring?: ACLAction[];
@@ -2300,6 +2312,7 @@ type UpdateProjectDataCacheResponse = {
2300
2312
  redisStoreTokenSet?: ACLAction[];
2301
2313
  blobStoreTokenSet?: ACLAction[];
2302
2314
  postgresStoreTokenSet?: ACLAction[];
2315
+ integrationStoreTokenSet?: ACLAction[];
2303
2316
  supportCase?: ACLAction[];
2304
2317
  supportCaseComment?: ACLAction[];
2305
2318
  dataCacheBillingSettings?: ACLAction[];
@@ -2326,6 +2339,7 @@ type UpdateProjectDataCacheResponse = {
2326
2339
  ['webhook-event']?: ACLAction[];
2327
2340
  endpointVerification?: ACLAction[];
2328
2341
  projectTransferIn?: ACLAction[];
2342
+ oauth2Application?: ACLAction[];
2329
2343
  aliasProject?: ACLAction[];
2330
2344
  aliasProtectionBypass?: ACLAction[];
2331
2345
  productionAliasProtectionBypass?: ACLAction[];
@@ -2345,6 +2359,7 @@ type UpdateProjectDataCacheResponse = {
2345
2359
  passwordProtection?: ACLAction[];
2346
2360
  job?: ACLAction[];
2347
2361
  project?: ACLAction[];
2362
+ projectAccessGroup?: ACLAction[];
2348
2363
  projectAnalyticsSampling?: ACLAction[];
2349
2364
  projectDeploymentHook?: ACLAction[];
2350
2365
  projectDomain?: ACLAction[];
@@ -2367,6 +2382,7 @@ type UpdateProjectDataCacheResponse = {
2367
2382
  projectAnalyticsUsage?: ACLAction[];
2368
2383
  projectSupportCase?: ACLAction[];
2369
2384
  projectSupportCaseComment?: ACLAction[];
2385
+ skewProtection?: ACLAction[];
2370
2386
  analytics?: ACLAction[];
2371
2387
  trustedIps?: ACLAction[];
2372
2388
  webAnalytics?: ACLAction[];
@@ -2423,6 +2439,7 @@ type UpdateProjectDataCacheResponse = {
2423
2439
  attackModeUpdatedAt?: number;
2424
2440
  firewallEnabled?: boolean;
2425
2441
  firewallUpdatedAt?: number;
2442
+ attackModeActiveUntil?: number | null;
2426
2443
  };
2427
2444
  };
2428
2445
  type UpdateProjectDataCacheRequestBody = {
@@ -6041,6 +6058,7 @@ type PatchEdgeConfigItemsPathParams = {
6041
6058
  };
6042
6059
  type PatchEdgeConfigItemsQueryParams = {
6043
6060
  edgeConfigId: string;
6061
+ dryRun?: string;
6044
6062
  /**
6045
6063
  * The Team identifier or slug to perform the request on behalf of.
6046
6064
  */
@@ -6093,6 +6111,7 @@ type PatchEdgeConfigSchemaPathParams = {
6093
6111
  edgeConfigId: string;
6094
6112
  };
6095
6113
  type PatchEdgeConfigSchemaQueryParams = {
6114
+ dryRun?: string;
6096
6115
  /**
6097
6116
  * The Team identifier or slug to perform the request on behalf of.
6098
6117
  */
@@ -6836,7 +6855,7 @@ type GetIntegrationLogDrainsResponse = {
6836
6855
  * @example build
6837
6856
  * @example edge
6838
6857
  */
6839
- sources?: ('static' | 'lambda' | 'build' | 'edge' | 'external' | 'deployment')[];
6858
+ sources?: ('build' | 'edge' | 'lambda' | 'static' | 'external')[];
6840
6859
  /**
6841
6860
  * Whether the log drain was created by an integration or by a user
6842
6861
  *
@@ -6949,7 +6968,7 @@ type CreateLogDrainResponse = {
6949
6968
  * @example build
6950
6969
  * @example edge
6951
6970
  */
6952
- sources?: ('static' | 'lambda' | 'build' | 'edge' | 'external' | 'deployment')[];
6971
+ sources?: ('build' | 'edge' | 'lambda' | 'static' | 'external')[];
6953
6972
  /**
6954
6973
  * Whether the log drain was created by an integration or by a user
6955
6974
  *
@@ -7163,7 +7182,7 @@ type GetConfigurableLogDrainResponse = {
7163
7182
  ownerId: string;
7164
7183
  projectIds?: string[];
7165
7184
  createdAt: number;
7166
- sources?: ('static' | 'lambda' | 'build' | 'edge' | 'external' | 'deployment')[];
7185
+ sources?: ('build' | 'edge' | 'lambda' | 'static' | 'external')[];
7167
7186
  headers?: {
7168
7187
  [key: string]: string;
7169
7188
  };
@@ -7226,7 +7245,7 @@ type GetAllLogDrainsResponse = {
7226
7245
  ownerId: string;
7227
7246
  projectIds?: string[];
7228
7247
  createdAt: number;
7229
- sources?: ('static' | 'lambda' | 'build' | 'edge' | 'external' | 'deployment')[];
7248
+ sources?: ('build' | 'edge' | 'lambda' | 'static' | 'external')[];
7230
7249
  headers?: {
7231
7250
  [key: string]: string;
7232
7251
  };
@@ -7270,7 +7289,7 @@ type CreateConfigurableLogDrainResponse = {
7270
7289
  ownerId: string;
7271
7290
  projectIds?: string[];
7272
7291
  createdAt: number;
7273
- sources?: ('static' | 'lambda' | 'build' | 'edge' | 'external' | 'deployment')[];
7292
+ sources?: ('build' | 'edge' | 'lambda' | 'static' | 'external')[];
7274
7293
  headers?: {
7275
7294
  [key: string]: string;
7276
7295
  };
@@ -7910,6 +7929,8 @@ type GetProjectsResponse = {
7910
7929
  rootDirectory?: string | null;
7911
7930
  serverlessFunctionRegion?: string | null;
7912
7931
  serverlessFunctionZeroConfigFailover?: boolean;
7932
+ skewProtectionBoundaryAt?: number;
7933
+ skewProtectionMaxAge?: number;
7913
7934
  skipGitConnectDuringLink?: boolean;
7914
7935
  sourceFilesOutsideRootDirectory?: boolean;
7915
7936
  ssoProtection?: {
@@ -8020,6 +8041,7 @@ type GetProjectsResponse = {
8020
8041
  integrationConfigurationTransfer?: ACLAction[];
8021
8042
  integrationConfigurationProjects?: ACLAction[];
8022
8043
  integrationVercelConfigurationOverride?: ACLAction[];
8044
+ integrationStore?: ACLAction[];
8023
8045
  jobGlobal?: ACLAction[];
8024
8046
  logDrain?: ACLAction[];
8025
8047
  Monitoring?: ACLAction[];
@@ -8059,6 +8081,7 @@ type GetProjectsResponse = {
8059
8081
  redisStoreTokenSet?: ACLAction[];
8060
8082
  blobStoreTokenSet?: ACLAction[];
8061
8083
  postgresStoreTokenSet?: ACLAction[];
8084
+ integrationStoreTokenSet?: ACLAction[];
8062
8085
  supportCase?: ACLAction[];
8063
8086
  supportCaseComment?: ACLAction[];
8064
8087
  dataCacheBillingSettings?: ACLAction[];
@@ -8085,6 +8108,7 @@ type GetProjectsResponse = {
8085
8108
  ['webhook-event']?: ACLAction[];
8086
8109
  endpointVerification?: ACLAction[];
8087
8110
  projectTransferIn?: ACLAction[];
8111
+ oauth2Application?: ACLAction[];
8088
8112
  aliasProject?: ACLAction[];
8089
8113
  aliasProtectionBypass?: ACLAction[];
8090
8114
  productionAliasProtectionBypass?: ACLAction[];
@@ -8104,6 +8128,7 @@ type GetProjectsResponse = {
8104
8128
  passwordProtection?: ACLAction[];
8105
8129
  job?: ACLAction[];
8106
8130
  project?: ACLAction[];
8131
+ projectAccessGroup?: ACLAction[];
8107
8132
  projectAnalyticsSampling?: ACLAction[];
8108
8133
  projectDeploymentHook?: ACLAction[];
8109
8134
  projectDomain?: ACLAction[];
@@ -8126,6 +8151,7 @@ type GetProjectsResponse = {
8126
8151
  projectAnalyticsUsage?: ACLAction[];
8127
8152
  projectSupportCase?: ACLAction[];
8128
8153
  projectSupportCaseComment?: ACLAction[];
8154
+ skewProtection?: ACLAction[];
8129
8155
  analytics?: ACLAction[];
8130
8156
  trustedIps?: ACLAction[];
8131
8157
  webAnalytics?: ACLAction[];
@@ -8182,6 +8208,7 @@ type GetProjectsResponse = {
8182
8208
  attackModeUpdatedAt?: number;
8183
8209
  firewallEnabled?: boolean;
8184
8210
  firewallUpdatedAt?: number;
8211
+ attackModeActiveUntil?: number | null;
8185
8212
  };
8186
8213
  }[];
8187
8214
  pagination: Pagination;
@@ -8456,6 +8483,8 @@ type CreateProjectResponse = {
8456
8483
  rootDirectory?: string | null;
8457
8484
  serverlessFunctionRegion?: string | null;
8458
8485
  serverlessFunctionZeroConfigFailover?: boolean;
8486
+ skewProtectionBoundaryAt?: number;
8487
+ skewProtectionMaxAge?: number;
8459
8488
  skipGitConnectDuringLink?: boolean;
8460
8489
  sourceFilesOutsideRootDirectory?: boolean;
8461
8490
  ssoProtection?: {
@@ -8566,6 +8595,7 @@ type CreateProjectResponse = {
8566
8595
  integrationConfigurationTransfer?: ACLAction[];
8567
8596
  integrationConfigurationProjects?: ACLAction[];
8568
8597
  integrationVercelConfigurationOverride?: ACLAction[];
8598
+ integrationStore?: ACLAction[];
8569
8599
  jobGlobal?: ACLAction[];
8570
8600
  logDrain?: ACLAction[];
8571
8601
  Monitoring?: ACLAction[];
@@ -8605,6 +8635,7 @@ type CreateProjectResponse = {
8605
8635
  redisStoreTokenSet?: ACLAction[];
8606
8636
  blobStoreTokenSet?: ACLAction[];
8607
8637
  postgresStoreTokenSet?: ACLAction[];
8638
+ integrationStoreTokenSet?: ACLAction[];
8608
8639
  supportCase?: ACLAction[];
8609
8640
  supportCaseComment?: ACLAction[];
8610
8641
  dataCacheBillingSettings?: ACLAction[];
@@ -8631,6 +8662,7 @@ type CreateProjectResponse = {
8631
8662
  ['webhook-event']?: ACLAction[];
8632
8663
  endpointVerification?: ACLAction[];
8633
8664
  projectTransferIn?: ACLAction[];
8665
+ oauth2Application?: ACLAction[];
8634
8666
  aliasProject?: ACLAction[];
8635
8667
  aliasProtectionBypass?: ACLAction[];
8636
8668
  productionAliasProtectionBypass?: ACLAction[];
@@ -8650,6 +8682,7 @@ type CreateProjectResponse = {
8650
8682
  passwordProtection?: ACLAction[];
8651
8683
  job?: ACLAction[];
8652
8684
  project?: ACLAction[];
8685
+ projectAccessGroup?: ACLAction[];
8653
8686
  projectAnalyticsSampling?: ACLAction[];
8654
8687
  projectDeploymentHook?: ACLAction[];
8655
8688
  projectDomain?: ACLAction[];
@@ -8672,6 +8705,7 @@ type CreateProjectResponse = {
8672
8705
  projectAnalyticsUsage?: ACLAction[];
8673
8706
  projectSupportCase?: ACLAction[];
8674
8707
  projectSupportCaseComment?: ACLAction[];
8708
+ skewProtection?: ACLAction[];
8675
8709
  analytics?: ACLAction[];
8676
8710
  trustedIps?: ACLAction[];
8677
8711
  webAnalytics?: ACLAction[];
@@ -8728,6 +8762,7 @@ type CreateProjectResponse = {
8728
8762
  attackModeUpdatedAt?: number;
8729
8763
  firewallEnabled?: boolean;
8730
8764
  firewallUpdatedAt?: number;
8765
+ attackModeActiveUntil?: number | null;
8731
8766
  };
8732
8767
  };
8733
8768
  type CreateProjectRequestBody = {
@@ -8760,10 +8795,9 @@ type CreateProjectRequestBody = {
8760
8795
  */
8761
8796
  target: ('production' | 'preview' | 'development') | ('production' | 'preview' | 'development')[];
8762
8797
  /**
8763
- * The git branch of the environment variable
8798
+ * If defined, the git branch of the environment variable (must have target=preview)
8764
8799
  *
8765
8800
  * @maxLength 250
8766
- * @example feature-1
8767
8801
  */
8768
8802
  gitBranch?: string;
8769
8803
  /**
@@ -9116,6 +9150,8 @@ type GetProjectResponse = {
9116
9150
  rootDirectory?: string | null;
9117
9151
  serverlessFunctionRegion?: string | null;
9118
9152
  serverlessFunctionZeroConfigFailover?: boolean;
9153
+ skewProtectionBoundaryAt?: number;
9154
+ skewProtectionMaxAge?: number;
9119
9155
  skipGitConnectDuringLink?: boolean;
9120
9156
  sourceFilesOutsideRootDirectory?: boolean;
9121
9157
  ssoProtection?: {
@@ -9226,6 +9262,7 @@ type GetProjectResponse = {
9226
9262
  integrationConfigurationTransfer?: ACLAction[];
9227
9263
  integrationConfigurationProjects?: ACLAction[];
9228
9264
  integrationVercelConfigurationOverride?: ACLAction[];
9265
+ integrationStore?: ACLAction[];
9229
9266
  jobGlobal?: ACLAction[];
9230
9267
  logDrain?: ACLAction[];
9231
9268
  Monitoring?: ACLAction[];
@@ -9265,6 +9302,7 @@ type GetProjectResponse = {
9265
9302
  redisStoreTokenSet?: ACLAction[];
9266
9303
  blobStoreTokenSet?: ACLAction[];
9267
9304
  postgresStoreTokenSet?: ACLAction[];
9305
+ integrationStoreTokenSet?: ACLAction[];
9268
9306
  supportCase?: ACLAction[];
9269
9307
  supportCaseComment?: ACLAction[];
9270
9308
  dataCacheBillingSettings?: ACLAction[];
@@ -9291,6 +9329,7 @@ type GetProjectResponse = {
9291
9329
  ['webhook-event']?: ACLAction[];
9292
9330
  endpointVerification?: ACLAction[];
9293
9331
  projectTransferIn?: ACLAction[];
9332
+ oauth2Application?: ACLAction[];
9294
9333
  aliasProject?: ACLAction[];
9295
9334
  aliasProtectionBypass?: ACLAction[];
9296
9335
  productionAliasProtectionBypass?: ACLAction[];
@@ -9310,6 +9349,7 @@ type GetProjectResponse = {
9310
9349
  passwordProtection?: ACLAction[];
9311
9350
  job?: ACLAction[];
9312
9351
  project?: ACLAction[];
9352
+ projectAccessGroup?: ACLAction[];
9313
9353
  projectAnalyticsSampling?: ACLAction[];
9314
9354
  projectDeploymentHook?: ACLAction[];
9315
9355
  projectDomain?: ACLAction[];
@@ -9332,6 +9372,7 @@ type GetProjectResponse = {
9332
9372
  projectAnalyticsUsage?: ACLAction[];
9333
9373
  projectSupportCase?: ACLAction[];
9334
9374
  projectSupportCaseComment?: ACLAction[];
9375
+ skewProtection?: ACLAction[];
9335
9376
  analytics?: ACLAction[];
9336
9377
  trustedIps?: ACLAction[];
9337
9378
  webAnalytics?: ACLAction[];
@@ -9388,6 +9429,7 @@ type GetProjectResponse = {
9388
9429
  attackModeUpdatedAt?: number;
9389
9430
  firewallEnabled?: boolean;
9390
9431
  firewallUpdatedAt?: number;
9432
+ attackModeActiveUntil?: number | null;
9391
9433
  };
9392
9434
  };
9393
9435
  type GetProjectVariables = {
@@ -9669,6 +9711,8 @@ type UpdateProjectResponse = {
9669
9711
  rootDirectory?: string | null;
9670
9712
  serverlessFunctionRegion?: string | null;
9671
9713
  serverlessFunctionZeroConfigFailover?: boolean;
9714
+ skewProtectionBoundaryAt?: number;
9715
+ skewProtectionMaxAge?: number;
9672
9716
  skipGitConnectDuringLink?: boolean;
9673
9717
  sourceFilesOutsideRootDirectory?: boolean;
9674
9718
  ssoProtection?: {
@@ -9779,6 +9823,7 @@ type UpdateProjectResponse = {
9779
9823
  integrationConfigurationTransfer?: ACLAction[];
9780
9824
  integrationConfigurationProjects?: ACLAction[];
9781
9825
  integrationVercelConfigurationOverride?: ACLAction[];
9826
+ integrationStore?: ACLAction[];
9782
9827
  jobGlobal?: ACLAction[];
9783
9828
  logDrain?: ACLAction[];
9784
9829
  Monitoring?: ACLAction[];
@@ -9818,6 +9863,7 @@ type UpdateProjectResponse = {
9818
9863
  redisStoreTokenSet?: ACLAction[];
9819
9864
  blobStoreTokenSet?: ACLAction[];
9820
9865
  postgresStoreTokenSet?: ACLAction[];
9866
+ integrationStoreTokenSet?: ACLAction[];
9821
9867
  supportCase?: ACLAction[];
9822
9868
  supportCaseComment?: ACLAction[];
9823
9869
  dataCacheBillingSettings?: ACLAction[];
@@ -9844,6 +9890,7 @@ type UpdateProjectResponse = {
9844
9890
  ['webhook-event']?: ACLAction[];
9845
9891
  endpointVerification?: ACLAction[];
9846
9892
  projectTransferIn?: ACLAction[];
9893
+ oauth2Application?: ACLAction[];
9847
9894
  aliasProject?: ACLAction[];
9848
9895
  aliasProtectionBypass?: ACLAction[];
9849
9896
  productionAliasProtectionBypass?: ACLAction[];
@@ -9863,6 +9910,7 @@ type UpdateProjectResponse = {
9863
9910
  passwordProtection?: ACLAction[];
9864
9911
  job?: ACLAction[];
9865
9912
  project?: ACLAction[];
9913
+ projectAccessGroup?: ACLAction[];
9866
9914
  projectAnalyticsSampling?: ACLAction[];
9867
9915
  projectDeploymentHook?: ACLAction[];
9868
9916
  projectDomain?: ACLAction[];
@@ -9885,6 +9933,7 @@ type UpdateProjectResponse = {
9885
9933
  projectAnalyticsUsage?: ACLAction[];
9886
9934
  projectSupportCase?: ACLAction[];
9887
9935
  projectSupportCaseComment?: ACLAction[];
9936
+ skewProtection?: ACLAction[];
9888
9937
  analytics?: ACLAction[];
9889
9938
  trustedIps?: ACLAction[];
9890
9939
  webAnalytics?: ACLAction[];
@@ -9941,6 +9990,7 @@ type UpdateProjectResponse = {
9941
9990
  attackModeUpdatedAt?: number;
9942
9991
  firewallEnabled?: boolean;
9943
9992
  firewallUpdatedAt?: number;
9993
+ attackModeActiveUntil?: number | null;
9944
9994
  };
9945
9995
  };
9946
9996
  type UpdateProjectRequestBody = {
@@ -10500,7 +10550,7 @@ type FilterProjectEnvsPathParams = {
10500
10550
  };
10501
10551
  type FilterProjectEnvsQueryParams = {
10502
10552
  /**
10503
- * If defined, the git branch of the environment variable to filter the results
10553
+ * If defined, the git branch of the environment variable to filter the results (must have target=preview)
10504
10554
  *
10505
10555
  * @maxLength 250
10506
10556
  * @example feature-1
@@ -11041,12 +11091,11 @@ type CreateProjectEnvVariables = {
11041
11091
  /**
11042
11092
  * The target environment of the environment variable
11043
11093
  *
11044
- * @example production
11045
11094
  * @example preview
11046
11095
  */
11047
11096
  target: ('production' | 'preview' | 'development')[];
11048
11097
  /**
11049
- * The git branch of the environment variable
11098
+ * If defined, the git branch of the environment variable (must have target=preview)
11050
11099
  *
11051
11100
  * @maxLength 250
11052
11101
  * @example feature-1
@@ -11081,12 +11130,11 @@ type CreateProjectEnvVariables = {
11081
11130
  /**
11082
11131
  * The target environment of the environment variable
11083
11132
  *
11084
- * @example production
11085
11133
  * @example preview
11086
11134
  */
11087
11135
  target: ('production' | 'preview' | 'development')[];
11088
11136
  /**
11089
- * The git branch of the environment variable
11137
+ * If defined, the git branch of the environment variable (must have target=preview)
11090
11138
  *
11091
11139
  * @maxLength 250
11092
11140
  * @example feature-1
@@ -11409,7 +11457,7 @@ type EditProjectEnvRequestBody = {
11409
11457
  */
11410
11458
  target?: ('production' | 'preview' | 'development')[];
11411
11459
  /**
11412
- * The git branch of the environment variable
11460
+ * If defined, the git branch of the environment variable (must have target=preview)
11413
11461
  *
11414
11462
  * @maxLength 250
11415
11463
  * @example feature-1
@@ -11491,6 +11539,7 @@ type GetTeamMembersQueryParams = {
11491
11539
  * Limit how many teams should be returned
11492
11540
  *
11493
11541
  * @example 20
11542
+ * @minimum 1
11494
11543
  */
11495
11544
  limit?: number;
11496
11545
  /**
@@ -12201,6 +12250,7 @@ type CreateTeamResponse = {
12201
12250
  end: number;
12202
12251
  } | null;
12203
12252
  plan: 'pro' | 'enterprise' | 'hobby';
12253
+ planIteration?: string;
12204
12254
  platform?: 'stripe' | 'stripeTestMode';
12205
12255
  orbCustomerId?: string;
12206
12256
  syncedAt?: number;
@@ -18070,7 +18120,7 @@ declare const operationsByPath: {
18070
18120
  'POST /v1/projects/{idOrName}/members': (variables: AddProjectMemberVariables, signal?: AbortSignal | undefined) => Promise<AddProjectMemberResponse>;
18071
18121
  'DELETE /v1/projects/{idOrName}/members/{uid}': (variables: RemoveProjectMemberVariables, signal?: AbortSignal | undefined) => Promise<RemoveProjectMemberResponse>;
18072
18122
  'GET /v9/projects': (variables: GetProjectsVariables, signal?: AbortSignal | undefined) => Promise<GetProjectsResponse>;
18073
- 'POST /v9/projects': (variables: CreateProjectVariables, signal?: AbortSignal | undefined) => Promise<CreateProjectResponse>;
18123
+ 'POST /v10/projects': (variables: CreateProjectVariables, signal?: AbortSignal | undefined) => Promise<CreateProjectResponse>;
18074
18124
  'GET /v9/projects/{idOrName}': (variables: GetProjectVariables, signal?: AbortSignal | undefined) => Promise<GetProjectResponse>;
18075
18125
  'PATCH /v9/projects/{idOrName}': (variables: UpdateProjectVariables, signal?: AbortSignal | undefined) => Promise<UpdateProjectResponse>;
18076
18126
  'DELETE /v9/projects/{idOrName}': (variables: DeleteProjectVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
@@ -18582,7 +18632,7 @@ declare const operationsByPath: {
18582
18632
  framework?: "blitzjs" | "nextjs" | "gatsby" | "remix" | "astro" | "hexo" | "eleventy" | "docusaurus-2" | "docusaurus" | "preact" | "solidstart" | "dojo" | "ember" | "vue" | "scully" | "ionic-angular" | "angular" | "polymer" | "svelte" | "sveltekit" | "sveltekit-1" | "ionic-react" | "create-react-app" | "gridsome" | "umijs" | "sapper" | "saber" | "stencil" | "nuxtjs" | "redwoodjs" | "hugo" | "jekyll" | "brunch" | "middleman" | "zola" | "hydrogen" | "vite" | "vitepress" | "vuepress" | "parcel" | "sanity" | "storybook" | null;
18583
18633
  latestDeployment?: string;
18584
18634
  }[] | null;
18585
- events: ("deployment" | "budget.reached" | "budget.reset" | "domain.created" | "deployment.created" | "deployment.error" | "deployment.canceled" | "deployment.succeeded" | "deployment.ready" | "deployment.check-rerequested" | "integration-configuration.permission-upgraded" | "integration-configuration.removed" | "integration-configuration.scope-change-confirmed" | "project.created" | "project.removed" | "deployment-checks-completed" | "deployment-ready" | "deployment-prepared" | "deployment-error" | "deployment-check-rerequested" | "deployment-canceled" | "project-created" | "project-removed" | "domain-created" | "integration-configuration-permission-updated" | "integration-configuration-removed" | "integration-configuration-scope-change-confirmed" | "test-webhook")[];
18635
+ events: ("budget.reached" | "budget.reset" | "domain.created" | "deployment.created" | "deployment.error" | "deployment.canceled" | "deployment.succeeded" | "deployment.ready" | "deployment.check-rerequested" | "integration-configuration.permission-upgraded" | "integration-configuration.removed" | "integration-configuration.scope-change-confirmed" | "project.created" | "project.removed" | "deployment-checks-completed" | "deployment-ready" | "deployment-prepared" | "deployment-error" | "deployment-check-rerequested" | "deployment-canceled" | "project-created" | "project-removed" | "domain-created" | "deployment" | "integration-configuration-permission-updated" | "integration-configuration-removed" | "integration-configuration-scope-change-confirmed" | "test-webhook")[];
18586
18636
  id: string;
18587
18637
  url: string;
18588
18638
  ownerId: string;
@@ -18590,7 +18640,7 @@ declare const operationsByPath: {
18590
18640
  updatedAt: number;
18591
18641
  projectIds?: string[];
18592
18642
  }[] | {
18593
- events: ("deployment" | "budget.reached" | "budget.reset" | "domain.created" | "deployment.created" | "deployment.error" | "deployment.canceled" | "deployment.succeeded" | "deployment.ready" | "deployment.check-rerequested" | "integration-configuration.permission-upgraded" | "integration-configuration.removed" | "integration-configuration.scope-change-confirmed" | "project.created" | "project.removed" | "deployment-checks-completed" | "deployment-ready" | "deployment-prepared" | "deployment-error" | "deployment-check-rerequested" | "deployment-canceled" | "project-created" | "project-removed" | "domain-created" | "integration-configuration-permission-updated" | "integration-configuration-removed" | "integration-configuration-scope-change-confirmed" | "test-webhook")[];
18643
+ events: ("budget.reached" | "budget.reset" | "domain.created" | "deployment.created" | "deployment.error" | "deployment.canceled" | "deployment.succeeded" | "deployment.ready" | "deployment.check-rerequested" | "integration-configuration.permission-upgraded" | "integration-configuration.removed" | "integration-configuration.scope-change-confirmed" | "project.created" | "project.removed" | "deployment-checks-completed" | "deployment-ready" | "deployment-prepared" | "deployment-error" | "deployment-check-rerequested" | "deployment-canceled" | "project-created" | "project-removed" | "domain-created" | "deployment" | "integration-configuration-permission-updated" | "integration-configuration-removed" | "integration-configuration-scope-change-confirmed" | "test-webhook")[];
18594
18644
  id: string;
18595
18645
  url: string;
18596
18646
  ownerId: string;
@@ -19267,7 +19317,7 @@ declare class VercelApi {
19267
19317
  'POST /v1/projects/{idOrName}/members': (variables: AddProjectMemberVariables, signal?: AbortSignal | undefined) => Promise<AddProjectMemberResponse>;
19268
19318
  'DELETE /v1/projects/{idOrName}/members/{uid}': (variables: RemoveProjectMemberVariables, signal?: AbortSignal | undefined) => Promise<RemoveProjectMemberResponse>;
19269
19319
  'GET /v9/projects': (variables: GetProjectsVariables, signal?: AbortSignal | undefined) => Promise<GetProjectsResponse>;
19270
- 'POST /v9/projects': (variables: CreateProjectVariables, signal?: AbortSignal | undefined) => Promise<CreateProjectResponse>;
19320
+ 'POST /v10/projects': (variables: CreateProjectVariables, signal?: AbortSignal | undefined) => Promise<CreateProjectResponse>;
19271
19321
  'GET /v9/projects/{idOrName}': (variables: GetProjectVariables, signal?: AbortSignal | undefined) => Promise<GetProjectResponse>;
19272
19322
  'PATCH /v9/projects/{idOrName}': (variables: UpdateProjectVariables, signal?: AbortSignal | undefined) => Promise<UpdateProjectResponse>;
19273
19323
  'DELETE /v9/projects/{idOrName}': (variables: DeleteProjectVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
@@ -19779,7 +19829,7 @@ declare class VercelApi {
19779
19829
  framework?: "blitzjs" | "nextjs" | "gatsby" | "remix" | "astro" | "hexo" | "eleventy" | "docusaurus-2" | "docusaurus" | "preact" | "solidstart" | "dojo" | "ember" | "vue" | "scully" | "ionic-angular" | "angular" | "polymer" | "svelte" | "sveltekit" | "sveltekit-1" | "ionic-react" | "create-react-app" | "gridsome" | "umijs" | "sapper" | "saber" | "stencil" | "nuxtjs" | "redwoodjs" | "hugo" | "jekyll" | "brunch" | "middleman" | "zola" | "hydrogen" | "vite" | "vitepress" | "vuepress" | "parcel" | "sanity" | "storybook" | null;
19780
19830
  latestDeployment?: string;
19781
19831
  }[] | null;
19782
- events: ("deployment" | "budget.reached" | "budget.reset" | "domain.created" | "deployment.created" | "deployment.error" | "deployment.canceled" | "deployment.succeeded" | "deployment.ready" | "deployment.check-rerequested" | "integration-configuration.permission-upgraded" | "integration-configuration.removed" | "integration-configuration.scope-change-confirmed" | "project.created" | "project.removed" | "deployment-checks-completed" | "deployment-ready" | "deployment-prepared" | "deployment-error" | "deployment-check-rerequested" | "deployment-canceled" | "project-created" | "project-removed" | "domain-created" | "integration-configuration-permission-updated" | "integration-configuration-removed" | "integration-configuration-scope-change-confirmed" | "test-webhook")[];
19832
+ events: ("budget.reached" | "budget.reset" | "domain.created" | "deployment.created" | "deployment.error" | "deployment.canceled" | "deployment.succeeded" | "deployment.ready" | "deployment.check-rerequested" | "integration-configuration.permission-upgraded" | "integration-configuration.removed" | "integration-configuration.scope-change-confirmed" | "project.created" | "project.removed" | "deployment-checks-completed" | "deployment-ready" | "deployment-prepared" | "deployment-error" | "deployment-check-rerequested" | "deployment-canceled" | "project-created" | "project-removed" | "domain-created" | "deployment" | "integration-configuration-permission-updated" | "integration-configuration-removed" | "integration-configuration-scope-change-confirmed" | "test-webhook")[];
19783
19833
  id: string;
19784
19834
  url: string;
19785
19835
  ownerId: string;
@@ -19787,7 +19837,7 @@ declare class VercelApi {
19787
19837
  updatedAt: number;
19788
19838
  projectIds?: string[];
19789
19839
  }[] | {
19790
- events: ("deployment" | "budget.reached" | "budget.reset" | "domain.created" | "deployment.created" | "deployment.error" | "deployment.canceled" | "deployment.succeeded" | "deployment.ready" | "deployment.check-rerequested" | "integration-configuration.permission-upgraded" | "integration-configuration.removed" | "integration-configuration.scope-change-confirmed" | "project.created" | "project.removed" | "deployment-checks-completed" | "deployment-ready" | "deployment-prepared" | "deployment-error" | "deployment-check-rerequested" | "deployment-canceled" | "project-created" | "project-removed" | "domain-created" | "integration-configuration-permission-updated" | "integration-configuration-removed" | "integration-configuration-scope-change-confirmed" | "test-webhook")[];
19840
+ events: ("budget.reached" | "budget.reset" | "domain.created" | "deployment.created" | "deployment.error" | "deployment.canceled" | "deployment.succeeded" | "deployment.ready" | "deployment.check-rerequested" | "integration-configuration.permission-upgraded" | "integration-configuration.removed" | "integration-configuration.scope-change-confirmed" | "project.created" | "project.removed" | "deployment-checks-completed" | "deployment-ready" | "deployment-prepared" | "deployment-error" | "deployment-check-rerequested" | "deployment-canceled" | "project-created" | "project-removed" | "domain-created" | "deployment" | "integration-configuration-permission-updated" | "integration-configuration-removed" | "integration-configuration-scope-change-confirmed" | "test-webhook")[];
19791
19841
  id: string;
19792
19842
  url: string;
19793
19843
  ownerId: string;
package/dist/index.mjs CHANGED
@@ -468,7 +468,7 @@ const getProjects = (variables, signal) => fetch$1({
468
468
  * Allows to create a new project with the provided configuration. It only requires the project `name` but more configuration can be provided to override the defaults.
469
469
  */
470
470
  const createProject = (variables, signal) => fetch$1({
471
- url: '/v9/projects',
471
+ url: '/v10/projects',
472
472
  method: 'post',
473
473
  ...variables,
474
474
  signal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel-api-js",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
4
4
  "description": "Vercel API client for Node.js",
5
5
  "author": "SferaDev",
6
6
  "license": "ISC",