vercel-api-js 0.1.8 → 0.1.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.
@@ -1,10 +1,10 @@
1
1
 
2
- > vercel-api-js@0.1.8 build /home/runner/work/openapi-clients/openapi-clients/packages/vercel-api-js
2
+ > vercel-api-js@0.1.9 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 6.3s
7
+ created dist/index.cjs, dist/index.mjs in 6.4s
8
8
  
9
9
  ./src/index.ts → dist/index.d.ts...
10
- created dist/index.d.ts in 5.9s
10
+ created dist/index.d.ts in 6.8s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # vercel-api-js
2
2
 
3
+ ## 0.1.9
4
+
5
+ ### Patch Changes
6
+
7
+ - 8ca0e54: [OpenAPI] Spec updates
8
+
3
9
  ## 0.1.8
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -122,6 +122,7 @@ type AuthUser = {
122
122
  } | null;
123
123
  plan: 'hobby' | 'enterprise' | 'pro';
124
124
  platform?: 'stripe' | 'stripeTestMode';
125
+ orbCustomerId?: string;
125
126
  programType?: 'startup' | 'agency';
126
127
  trial?: {
127
128
  start: number;
@@ -349,6 +350,7 @@ type AuthUser = {
349
350
  maxQuantity?: number;
350
351
  };
351
352
  analyticsUsage?: {
353
+ tier?: number;
352
354
  price: number;
353
355
  batch: number;
354
356
  threshold: number;
@@ -357,6 +359,7 @@ type AuthUser = {
357
359
  disabledAt?: number | null;
358
360
  };
359
361
  artifacts?: {
362
+ tier?: number;
360
363
  price: number;
361
364
  batch: number;
362
365
  threshold: number;
@@ -365,6 +368,7 @@ type AuthUser = {
365
368
  disabledAt?: number | null;
366
369
  };
367
370
  bandwidth?: {
371
+ tier?: number;
368
372
  price: number;
369
373
  batch: number;
370
374
  threshold: number;
@@ -373,6 +377,7 @@ type AuthUser = {
373
377
  disabledAt?: number | null;
374
378
  };
375
379
  builds?: {
380
+ tier?: number;
376
381
  price: number;
377
382
  batch: number;
378
383
  threshold: number;
@@ -381,6 +386,7 @@ type AuthUser = {
381
386
  disabledAt?: number | null;
382
387
  };
383
388
  edgeMiddlewareInvocations?: {
389
+ tier?: number;
384
390
  price: number;
385
391
  batch: number;
386
392
  threshold: number;
@@ -389,6 +395,7 @@ type AuthUser = {
389
395
  disabledAt?: number | null;
390
396
  };
391
397
  edgeFunctionExecutionUnits?: {
398
+ tier?: number;
392
399
  price: number;
393
400
  batch: number;
394
401
  threshold: number;
@@ -397,6 +404,7 @@ type AuthUser = {
397
404
  disabledAt?: number | null;
398
405
  };
399
406
  monitoringMetric?: {
407
+ tier?: number;
400
408
  price: number;
401
409
  batch: number;
402
410
  threshold: number;
@@ -405,6 +413,7 @@ type AuthUser = {
405
413
  disabledAt?: number | null;
406
414
  };
407
415
  serverlessFunctionExecution?: {
416
+ tier?: number;
408
417
  price: number;
409
418
  batch: number;
410
419
  threshold: number;
@@ -413,6 +422,7 @@ type AuthUser = {
413
422
  disabledAt?: number | null;
414
423
  };
415
424
  sourceImages?: {
425
+ tier?: number;
416
426
  price: number;
417
427
  batch: number;
418
428
  threshold: number;
@@ -421,6 +431,7 @@ type AuthUser = {
421
431
  disabledAt?: number | null;
422
432
  };
423
433
  webAnalyticsEvent?: {
434
+ tier?: number;
424
435
  price: number;
425
436
  batch: number;
426
437
  threshold: number;
@@ -429,6 +440,7 @@ type AuthUser = {
429
440
  disabledAt?: number | null;
430
441
  };
431
442
  edgeConfigRead?: {
443
+ tier?: number;
432
444
  price: number;
433
445
  batch: number;
434
446
  threshold: number;
@@ -437,6 +449,7 @@ type AuthUser = {
437
449
  disabledAt?: number | null;
438
450
  };
439
451
  edgeConfigWrite?: {
452
+ tier?: number;
440
453
  price: number;
441
454
  batch: number;
442
455
  threshold: number;
@@ -445,6 +458,7 @@ type AuthUser = {
445
458
  disabledAt?: number | null;
446
459
  };
447
460
  cronJobInvocation?: {
461
+ tier?: number;
448
462
  price: number;
449
463
  batch: number;
450
464
  threshold: number;
@@ -1010,16 +1024,13 @@ type StatusQueryParams = {
1010
1024
  teamId?: string;
1011
1025
  };
1012
1026
  type StatusError = ErrorWrapper<undefined>;
1013
- type StatusResponse = {
1014
- status: 'disabled' | 'enabled' | 'over_limit' | 'paused';
1015
- };
1016
1027
  type StatusVariables = {
1017
1028
  queryParams?: StatusQueryParams;
1018
1029
  } & FetcherExtraProps;
1019
1030
  /**
1020
1031
  * Check the status of Remote Caching for this principal. Returns a JSON-encoded status indicating if Remote Caching is enabled, disabled, or disabled due to usage limits.
1021
1032
  */
1022
- declare const status: (variables: StatusVariables, signal?: AbortSignal) => Promise<StatusResponse>;
1033
+ declare const status: (variables: StatusVariables, signal?: AbortSignal) => Promise<undefined>;
1023
1034
  type UploadArtifactPathParams = {
1024
1035
  /**
1025
1036
  * The artifact hash
@@ -1069,14 +1080,6 @@ type UploadArtifactHeaders = {
1069
1080
  ['x-artifact-tag']?: string;
1070
1081
  };
1071
1082
  type UploadArtifactError = ErrorWrapper<undefined>;
1072
- type UploadArtifactResponse = {
1073
- /**
1074
- * Array of URLs where the artifact was updated
1075
- *
1076
- * @example https://api.vercel.com/v2/now/artifact/12HKQaOmR5t5Uy6vdcQsNIiZgHGB
1077
- */
1078
- urls: string[];
1079
- };
1080
1083
  type UploadArtifactVariables = {
1081
1084
  body?: Blob;
1082
1085
  headers: UploadArtifactHeaders;
@@ -1086,7 +1089,7 @@ type UploadArtifactVariables = {
1086
1089
  /**
1087
1090
  * Uploads a cache artifact identified by the `hash` specified on the path. The cache artifact can then be downloaded with the provided `hash`.
1088
1091
  */
1089
- declare const uploadArtifact: (variables: UploadArtifactVariables, signal?: AbortSignal) => Promise<UploadArtifactResponse>;
1092
+ declare const uploadArtifact: (variables: UploadArtifactVariables, signal?: AbortSignal) => Promise<undefined>;
1090
1093
  type DownloadArtifactPathParams = {
1091
1094
  /**
1092
1095
  * The artifact hash
@@ -1127,7 +1130,7 @@ type DownloadArtifactVariables = {
1127
1130
  /**
1128
1131
  * Downloads a cache artifact indentified by its `hash` specified on the request path. The artifact is downloaded as an octet-stream. The client should verify the content-length header and response body.
1129
1132
  */
1130
- declare const downloadArtifact: (variables: DownloadArtifactVariables, signal?: AbortSignal) => Promise<Blob>;
1133
+ declare const downloadArtifact: (variables: DownloadArtifactVariables, signal?: AbortSignal) => Promise<undefined>;
1131
1134
  type ArtifactQueryQueryParams = {
1132
1135
  /**
1133
1136
  * The Team identifier or slug to perform the request on behalf of.
@@ -1135,17 +1138,6 @@ type ArtifactQueryQueryParams = {
1135
1138
  teamId?: string;
1136
1139
  };
1137
1140
  type ArtifactQueryError = ErrorWrapper<undefined>;
1138
- type ArtifactQueryResponse = {
1139
- [key: string]: {
1140
- size: number;
1141
- taskDurationMs: number;
1142
- tag?: string;
1143
- } | {
1144
- name: string;
1145
- message: string;
1146
- stack?: string;
1147
- } | null;
1148
- };
1149
1141
  type ArtifactQueryRequestBody = {
1150
1142
  /**
1151
1143
  * artifact hashes
@@ -1159,7 +1151,7 @@ type ArtifactQueryVariables = {
1159
1151
  /**
1160
1152
  * Query information about an array of artifacts.
1161
1153
  */
1162
- declare const artifactQuery: (variables: ArtifactQueryVariables, signal?: AbortSignal) => Promise<ArtifactQueryResponse>;
1154
+ declare const artifactQuery: (variables: ArtifactQueryVariables, signal?: AbortSignal) => Promise<undefined>;
1163
1155
  type GetDeploymentPathParams = {
1164
1156
  /**
1165
1157
  * The unique identifier or hostname of the deployment.
@@ -2753,6 +2745,7 @@ type CreateDeploymentRequestBody = {
2753
2745
  ['continue']?: boolean;
2754
2746
  override?: boolean;
2755
2747
  check?: boolean;
2748
+ isInternal?: boolean;
2756
2749
  /**
2757
2750
  * @minimum 100
2758
2751
  * @maximum 999
@@ -11827,10 +11820,10 @@ declare const createEdgeConfigToken: (variables: CreateEdgeConfigTokenVariables,
11827
11820
  declare const operationsByTag: {
11828
11821
  artifacts: {
11829
11822
  recordEvents: (variables: RecordEventsVariables, signal?: AbortSignal) => Promise<undefined>;
11830
- status: (variables: StatusVariables, signal?: AbortSignal) => Promise<StatusResponse>;
11831
- uploadArtifact: (variables: UploadArtifactVariables, signal?: AbortSignal) => Promise<UploadArtifactResponse>;
11832
- downloadArtifact: (variables: DownloadArtifactVariables, signal?: AbortSignal) => Promise<Blob>;
11833
- artifactQuery: (variables: ArtifactQueryVariables, signal?: AbortSignal) => Promise<ArtifactQueryResponse>;
11823
+ status: (variables: StatusVariables, signal?: AbortSignal) => Promise<undefined>;
11824
+ uploadArtifact: (variables: UploadArtifactVariables, signal?: AbortSignal) => Promise<undefined>;
11825
+ downloadArtifact: (variables: DownloadArtifactVariables, signal?: AbortSignal) => Promise<undefined>;
11826
+ artifactQuery: (variables: ArtifactQueryVariables, signal?: AbortSignal) => Promise<undefined>;
11834
11827
  };
11835
11828
  deployments: {
11836
11829
  getDeployment: (variables: GetDeploymentVariables, signal?: AbortSignal) => Promise<{
@@ -13290,7 +13283,6 @@ type components_AddProjectDomainVariables = AddProjectDomainVariables;
13290
13283
  type components_ArtifactQueryError = ArtifactQueryError;
13291
13284
  type components_ArtifactQueryQueryParams = ArtifactQueryQueryParams;
13292
13285
  type components_ArtifactQueryRequestBody = ArtifactQueryRequestBody;
13293
- type components_ArtifactQueryResponse = ArtifactQueryResponse;
13294
13286
  type components_ArtifactQueryVariables = ArtifactQueryVariables;
13295
13287
  type components_AssignAliasError = AssignAliasError;
13296
13288
  type components_AssignAliasPathParams = AssignAliasPathParams;
@@ -13731,7 +13723,6 @@ type components_SearchRepoResponse = SearchRepoResponse;
13731
13723
  type components_SearchRepoVariables = SearchRepoVariables;
13732
13724
  type components_StatusError = StatusError;
13733
13725
  type components_StatusQueryParams = StatusQueryParams;
13734
- type components_StatusResponse = StatusResponse;
13735
13726
  type components_StatusVariables = StatusVariables;
13736
13727
  type components_UpdateCheckError = UpdateCheckError;
13737
13728
  type components_UpdateCheckPathParams = UpdateCheckPathParams;
@@ -13772,7 +13763,6 @@ type components_UploadArtifactError = UploadArtifactError;
13772
13763
  type components_UploadArtifactHeaders = UploadArtifactHeaders;
13773
13764
  type components_UploadArtifactPathParams = UploadArtifactPathParams;
13774
13765
  type components_UploadArtifactQueryParams = UploadArtifactQueryParams;
13775
- type components_UploadArtifactResponse = UploadArtifactResponse;
13776
13766
  type components_UploadArtifactVariables = UploadArtifactVariables;
13777
13767
  type components_UploadCertError = UploadCertError;
13778
13768
  type components_UploadCertQueryParams = UploadCertQueryParams;
@@ -13916,7 +13906,6 @@ declare namespace components {
13916
13906
  components_ArtifactQueryError as ArtifactQueryError,
13917
13907
  components_ArtifactQueryQueryParams as ArtifactQueryQueryParams,
13918
13908
  components_ArtifactQueryRequestBody as ArtifactQueryRequestBody,
13919
- components_ArtifactQueryResponse as ArtifactQueryResponse,
13920
13909
  components_ArtifactQueryVariables as ArtifactQueryVariables,
13921
13910
  components_AssignAliasError as AssignAliasError,
13922
13911
  components_AssignAliasPathParams as AssignAliasPathParams,
@@ -14357,7 +14346,6 @@ declare namespace components {
14357
14346
  components_SearchRepoVariables as SearchRepoVariables,
14358
14347
  components_StatusError as StatusError,
14359
14348
  components_StatusQueryParams as StatusQueryParams,
14360
- components_StatusResponse as StatusResponse,
14361
14349
  components_StatusVariables as StatusVariables,
14362
14350
  components_UpdateCheckError as UpdateCheckError,
14363
14351
  components_UpdateCheckPathParams as UpdateCheckPathParams,
@@ -14398,7 +14386,6 @@ declare namespace components {
14398
14386
  components_UploadArtifactHeaders as UploadArtifactHeaders,
14399
14387
  components_UploadArtifactPathParams as UploadArtifactPathParams,
14400
14388
  components_UploadArtifactQueryParams as UploadArtifactQueryParams,
14401
- components_UploadArtifactResponse as UploadArtifactResponse,
14402
14389
  components_UploadArtifactVariables as UploadArtifactVariables,
14403
14390
  components_UploadCertError as UploadCertError,
14404
14391
  components_UploadCertQueryParams as UploadCertQueryParams,
@@ -14536,10 +14523,10 @@ declare namespace components {
14536
14523
 
14537
14524
  declare const operationsByPath: {
14538
14525
  'POST /v8/artifacts/events': (variables: RecordEventsVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
14539
- 'GET /v8/artifacts/status': (variables: StatusVariables, signal?: AbortSignal | undefined) => Promise<StatusResponse>;
14540
- 'PUT /v8/artifacts/{hash}': (variables: UploadArtifactVariables, signal?: AbortSignal | undefined) => Promise<UploadArtifactResponse>;
14541
- 'GET /v8/artifacts/{hash}': (variables: DownloadArtifactVariables, signal?: AbortSignal | undefined) => Promise<Blob>;
14542
- 'POST /v8/artifacts': (variables: ArtifactQueryVariables, signal?: AbortSignal | undefined) => Promise<ArtifactQueryResponse>;
14526
+ 'GET /v8/artifacts/status': (variables: StatusVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
14527
+ 'PUT /v8/artifacts/{hash}': (variables: UploadArtifactVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
14528
+ 'GET /v8/artifacts/{hash}': (variables: DownloadArtifactVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
14529
+ 'POST /v8/artifacts': (variables: ArtifactQueryVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
14543
14530
  'GET /v13/deployments/{idOrUrl}': (variables: GetDeploymentVariables, signal?: AbortSignal | undefined) => Promise<{
14544
14531
  aliasAssignedAt?: number | boolean | null;
14545
14532
  build: {
@@ -15290,10 +15277,10 @@ declare class VercelApi {
15290
15277
  };
15291
15278
  request<Endpoint extends keyof typeof operationsByPath>(endpoint: Endpoint, params: RequestEndpointParams<Endpoint>): Promise<ReturnType<{
15292
15279
  'POST /v8/artifacts/events': (variables: RecordEventsVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15293
- 'GET /v8/artifacts/status': (variables: StatusVariables, signal?: AbortSignal | undefined) => Promise<StatusResponse>;
15294
- 'PUT /v8/artifacts/{hash}': (variables: UploadArtifactVariables, signal?: AbortSignal | undefined) => Promise<UploadArtifactResponse>;
15295
- 'GET /v8/artifacts/{hash}': (variables: DownloadArtifactVariables, signal?: AbortSignal | undefined) => Promise<Blob>;
15296
- 'POST /v8/artifacts': (variables: ArtifactQueryVariables, signal?: AbortSignal | undefined) => Promise<ArtifactQueryResponse>;
15280
+ 'GET /v8/artifacts/status': (variables: StatusVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15281
+ 'PUT /v8/artifacts/{hash}': (variables: UploadArtifactVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15282
+ 'GET /v8/artifacts/{hash}': (variables: DownloadArtifactVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15283
+ 'POST /v8/artifacts': (variables: ArtifactQueryVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15297
15284
  'GET /v13/deployments/{idOrUrl}': (variables: GetDeploymentVariables, signal?: AbortSignal | undefined) => Promise<{
15298
15285
  aliasAssignedAt?: number | boolean | null;
15299
15286
  build: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel-api-js",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Vercel API client for Node.js",
5
5
  "author": "SferaDev",
6
6
  "license": "ISC",