vercel-api-js 0.1.3 → 0.1.5

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,16 @@
1
1
 
2
- > vercel-api-js@0.1.3 build /home/runner/work/openapi-clients/openapi-clients/packages/vercel-api-js
2
+ > vercel-api-js@0.1.5 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
+ (!) Plugin typescript: @rollup/plugin-typescript TS6133: 'key' is declared but its value is never read.
8
+ openapi-codegen.config.ts: (106:67)
9
+ 
10
+ 106 const updatedOpenAPIDocument = JSON.stringify(openAPIDocument, (key, value) => {
11
+    ~~~
12
+ 
7
13
  created dist/index.cjs, dist/index.mjs in 4.4s
8
14
  
9
15
  ./src/index.ts → dist/index.d.ts...
10
- created dist/index.d.ts in 5.2s
16
+ created dist/index.d.ts in 4s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # vercel-api-js
2
2
 
3
+ ## 0.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - d535c65: Fix enum values
8
+
9
+ ## 0.1.4
10
+
11
+ ### Patch Changes
12
+
13
+ - 4264ad4: Fix return type of `request` method
14
+
3
15
  ## 0.1.3
4
16
 
5
17
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -959,7 +959,8 @@ class VercelApi {
959
959
  async request(endpoint, params) {
960
960
  const [method = '', url = ''] = endpoint.split(' ');
961
961
  const extraParams = (params || {});
962
- return fetch$1({ ...extraParams, method, url, token: __classPrivateFieldGet(this, _VercelApi_token, "f"), fetchImpl: __classPrivateFieldGet(this, _VercelApi_fetch, "f") });
962
+ const result = await fetch$1({ ...extraParams, method, url, token: __classPrivateFieldGet(this, _VercelApi_token, "f"), fetchImpl: __classPrivateFieldGet(this, _VercelApi_fetch, "f") });
963
+ return result;
963
964
  }
964
965
  }
965
966
  _VercelApi_token = new WeakMap(), _VercelApi_fetch = new WeakMap();
package/dist/index.d.ts CHANGED
@@ -1,30 +1,3 @@
1
- type RequestInit = {
2
- body?: string | FormData | undefined;
3
- headers?: Record<string, string> | undefined;
4
- method?: string | undefined;
5
- signal?: any | undefined;
6
- };
7
- type Response = {
8
- ok: boolean;
9
- status: number;
10
- url: string;
11
- json(): Promise<any>;
12
- text(): Promise<string>;
13
- headers?: {
14
- get(name: string): string | null;
15
- } | undefined;
16
- };
17
- type FetchImpl = (url: string, init?: RequestInit | undefined) => Promise<Response>;
18
-
19
- type FetcherExtraProps = {
20
- token: string;
21
- fetchImpl: FetchImpl;
22
- };
23
- type ErrorWrapper<TError> = TError | {
24
- status: 'unknown';
25
- payload: string;
26
- };
27
-
28
1
  /**
29
2
  * Generated by @openapi-codegen
30
3
  *
@@ -938,6 +911,33 @@ declare namespace schemas {
938
911
  };
939
912
  }
940
913
 
914
+ type RequestInit = {
915
+ body?: string | FormData | undefined;
916
+ headers?: Record<string, string> | undefined;
917
+ method?: string | undefined;
918
+ signal?: any | undefined;
919
+ };
920
+ type Response = {
921
+ ok: boolean;
922
+ status: number;
923
+ url: string;
924
+ json(): Promise<any>;
925
+ text(): Promise<string>;
926
+ headers?: {
927
+ get(name: string): string | null;
928
+ } | undefined;
929
+ };
930
+ type FetchImpl = (url: string, init?: RequestInit | undefined) => Promise<Response>;
931
+
932
+ type FetcherExtraProps = {
933
+ token: string;
934
+ fetchImpl: FetchImpl;
935
+ };
936
+ type ErrorWrapper<TError> = TError | {
937
+ status: 'unknown';
938
+ payload: string;
939
+ };
940
+
941
941
  /**
942
942
  * Generated by @openapi-codegen
943
943
  *
@@ -6972,7 +6972,7 @@ type CreateProjectRequestBody = {
6972
6972
  /**
6973
6973
  * Deployment Target or Targets in which the ENV variable will be used
6974
6974
  */
6975
- target: ('mport("/vercel/path0/utils/env-variable-util/types").EnvTarget.Productio' | 'mport("/vercel/path0/utils/env-variable-util/types").EnvTarget.Previe' | 'mport("/vercel/path0/utils/env-variable-util/types").EnvTarget.Developmen') | ('mport("/vercel/path0/utils/env-variable-util/types").EnvTarget.Productio' | 'mport("/vercel/path0/utils/env-variable-util/types").EnvTarget.Previe' | 'mport("/vercel/path0/utils/env-variable-util/types").EnvTarget.Developmen')[];
6975
+ target: ('production' | 'preview' | 'development') | ('production' | 'preview' | 'development')[];
6976
6976
  /**
6977
6977
  * The git branch of the environment variable
6978
6978
  *
@@ -8488,7 +8488,7 @@ type CreateProjectEnvVariables = {
8488
8488
  * @example production
8489
8489
  * @example preview
8490
8490
  */
8491
- target: ('mport("/vercel/path0/utils/env-variable-util/types").EnvTarget.Productio' | 'mport("/vercel/path0/utils/env-variable-util/types").EnvTarget.Previe' | 'mport("/vercel/path0/utils/env-variable-util/types").EnvTarget.Developmen')[];
8491
+ target: ('production' | 'preview' | 'development')[];
8492
8492
  /**
8493
8493
  * The git branch of the environment variable
8494
8494
  *
@@ -8521,7 +8521,7 @@ type CreateProjectEnvVariables = {
8521
8521
  * @example production
8522
8522
  * @example preview
8523
8523
  */
8524
- target: ('mport("/vercel/path0/utils/env-variable-util/types").EnvTarget.Productio' | 'mport("/vercel/path0/utils/env-variable-util/types").EnvTarget.Previe' | 'mport("/vercel/path0/utils/env-variable-util/types").EnvTarget.Developmen')[];
8524
+ target: ('production' | 'preview' | 'development')[];
8525
8525
  /**
8526
8526
  * The git branch of the environment variable
8527
8527
  *
@@ -8673,7 +8673,7 @@ type EditProjectEnvRequestBody = {
8673
8673
  *
8674
8674
  * @example preview
8675
8675
  */
8676
- target?: ('mport("/vercel/path0/utils/env-variable-util/types").EnvTarget.Productio' | 'mport("/vercel/path0/utils/env-variable-util/types").EnvTarget.Previe' | 'mport("/vercel/path0/utils/env-variable-util/types").EnvTarget.Developmen')[];
8676
+ target?: ('production' | 'preview' | 'development')[];
8677
8677
  /**
8678
8678
  * The git branch of the environment variable
8679
8679
  *
@@ -9679,7 +9679,7 @@ type CreateWebhookRequestBody = {
9679
9679
  /**
9680
9680
  * @minItems 1
9681
9681
  */
9682
- events: ('mport("/vercel/path0/utils/webhooks/webhooks/types").WebhookName.DomainCreate' | 'mport("/vercel/path0/utils/webhooks/webhooks/types").WebhookName.DeploymentCreate' | 'mport("/vercel/path0/utils/webhooks/webhooks/types").WebhookName.DeploymentErro' | 'mport("/vercel/path0/utils/webhooks/webhooks/types").WebhookName.DeploymentCancele' | 'mport("/vercel/path0/utils/webhooks/webhooks/types").WebhookName.DeploymentSucceede' | 'mport("/vercel/path0/utils/webhooks/webhooks/types").WebhookName.DeploymentRead' | 'mport("/vercel/path0/utils/webhooks/webhooks/types").WebhookName.DeploymentCheckRerequeste' | 'mport("/vercel/path0/utils/webhooks/webhooks/types").WebhookName.IntegrationConfigurationPermissionUpgrade' | 'mport("/vercel/path0/utils/webhooks/webhooks/types").WebhookName.IntegrationConfigurationRemove' | 'mport("/vercel/path0/utils/webhooks/webhooks/types").WebhookName.IntegrationConfigurationScopeChangeConfirme' | 'mport("/vercel/path0/utils/webhooks/webhooks/types").WebhookName.ProjectCreate' | 'mport("/vercel/path0/utils/webhooks/webhooks/types").WebhookName.ProjectRemove' | 'mport("/vercel/path0/utils/webhooks/webhooks/types").WebhookName.LegacyDeploymentChecksComplete' | 'mport("/vercel/path0/utils/webhooks/webhooks/types").WebhookName.LegacyDeploymentRead' | 'mport("/vercel/path0/utils/webhooks/webhooks/types").WebhookName.LegacyDeploymentPrepare' | 'mport("/vercel/path0/utils/webhooks/webhooks/types").WebhookName.LegacyDeploymentErro' | 'mport("/vercel/path0/utils/webhooks/webhooks/types").WebhookName.LegacyDeploymentCheckRerequeste' | 'mport("/vercel/path0/utils/webhooks/webhooks/types").WebhookName.LegacyDeploymentCancele' | 'mport("/vercel/path0/utils/webhooks/webhooks/types").WebhookName.LegacyProjectCreate' | 'mport("/vercel/path0/utils/webhooks/webhooks/types").WebhookName.LegacyProjectRemove' | 'mport("/vercel/path0/utils/webhooks/webhooks/types").WebhookName.LegacyDomainCreate' | 'mport("/vercel/path0/utils/webhooks/webhooks/types").WebhookName.LegacyDeploymen' | 'mport("/vercel/path0/utils/webhooks/webhooks/types").WebhookName.LegacyIntegrationConfigurationPermissionUpdate' | 'mport("/vercel/path0/utils/webhooks/webhooks/types").WebhookName.LegacyIntegrationConfigurationRemove' | 'mport("/vercel/path0/utils/webhooks/webhooks/types").WebhookName.LegacyIntegrationConfigurationScopeChangeConfirme')[];
9682
+ events: ('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')[];
9683
9683
  /**
9684
9684
  * @minItems 1
9685
9685
  * @maxItems 50
@@ -15285,7 +15285,738 @@ declare class VercelApi {
15285
15285
  #private;
15286
15286
  constructor(options: VercelApiOptions);
15287
15287
  get api(): ApiProxy;
15288
- request<Endpoint extends keyof typeof operationsByPath>(endpoint: Endpoint, params: RequestEndpointParams<Endpoint>): Promise<unknown>;
15288
+ request<Endpoint extends keyof typeof operationsByPath>(endpoint: Endpoint, params: RequestEndpointParams<Endpoint>): Promise<ReturnType<{
15289
+ 'POST /v8/artifacts/events': (variables: RecordEventsVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15290
+ 'GET /v8/artifacts/status': (variables: StatusVariables, signal?: AbortSignal | undefined) => Promise<StatusResponse>;
15291
+ 'PUT /v8/artifacts/{hash}': (variables: UploadArtifactVariables, signal?: AbortSignal | undefined) => Promise<UploadArtifactResponse>;
15292
+ 'GET /v8/artifacts/{hash}': (variables: DownloadArtifactVariables, signal?: AbortSignal | undefined) => Promise<Blob>;
15293
+ 'POST /v8/artifacts': (variables: ArtifactQueryVariables, signal?: AbortSignal | undefined) => Promise<ArtifactQueryResponse>;
15294
+ 'GET /v13/deployments/{idOrUrl}': (variables: GetDeploymentVariables, signal?: AbortSignal | undefined) => Promise<{
15295
+ aliasAssignedAt?: number | boolean | null;
15296
+ build: {
15297
+ env: string[];
15298
+ };
15299
+ builds?: Record<string, any>[];
15300
+ connectConfigurationId?: string;
15301
+ createdIn: string;
15302
+ env: string[];
15303
+ functions?: {
15304
+ [key: string]: {
15305
+ memory?: number;
15306
+ maxDuration?: number;
15307
+ runtime?: string;
15308
+ includeFiles?: string;
15309
+ excludeFiles?: string;
15310
+ };
15311
+ } | null;
15312
+ inspectorUrl: string | null;
15313
+ isInConcurrentBuildsQueue: boolean;
15314
+ meta: {
15315
+ [key: string]: string;
15316
+ };
15317
+ monorepoManager?: string | null;
15318
+ name: string;
15319
+ ownerId: string;
15320
+ plan: "hobby" | "enterprise" | "pro" | "oss";
15321
+ projectId: string;
15322
+ routes: ({
15323
+ src: string;
15324
+ dest?: string;
15325
+ headers?: {
15326
+ [key: string]: string;
15327
+ };
15328
+ methods?: string[];
15329
+ continue?: boolean;
15330
+ override?: boolean;
15331
+ caseSensitive?: boolean;
15332
+ check?: boolean;
15333
+ important?: boolean;
15334
+ status?: number;
15335
+ has?: ({
15336
+ type: "host";
15337
+ value: string;
15338
+ } | {
15339
+ type: "header" | "cookie" | "query";
15340
+ key: string;
15341
+ value?: string;
15342
+ })[];
15343
+ missing?: ({
15344
+ type: "host";
15345
+ value: string;
15346
+ } | {
15347
+ type: "header" | "cookie" | "query";
15348
+ key: string;
15349
+ value?: string;
15350
+ })[];
15351
+ locale?: {
15352
+ redirect?: {
15353
+ [key: string]: string;
15354
+ };
15355
+ cookie?: string;
15356
+ };
15357
+ middlewarePath?: string;
15358
+ middlewareRawSrc?: string[];
15359
+ middleware?: number;
15360
+ } | {
15361
+ handle: "filesystem" | "hit" | "miss" | "rewrite" | "error" | "resource";
15362
+ src?: string;
15363
+ dest?: string;
15364
+ status?: number;
15365
+ } | {
15366
+ src: string;
15367
+ continue: boolean;
15368
+ middleware: 0;
15369
+ })[] | null;
15370
+ gitRepo?: {
15371
+ namespace: string;
15372
+ projectId: number;
15373
+ type: "gitlab";
15374
+ url: string;
15375
+ path: string;
15376
+ defaultBranch: string;
15377
+ name: string;
15378
+ private: boolean;
15379
+ ownerType: "user" | "team";
15380
+ } | {
15381
+ org: string;
15382
+ repo: string;
15383
+ repoId: number;
15384
+ type: "github";
15385
+ repoOwnerId: string;
15386
+ path: string;
15387
+ defaultBranch: string;
15388
+ name: string;
15389
+ private: boolean;
15390
+ ownerType: "user" | "team";
15391
+ } | {
15392
+ owner: string;
15393
+ repoUuid: string;
15394
+ slug: string;
15395
+ type: "bitbucket";
15396
+ workspaceUuid: string;
15397
+ path: string;
15398
+ defaultBranch: string;
15399
+ name: string;
15400
+ private: boolean;
15401
+ ownerType: "user" | "team";
15402
+ } | null;
15403
+ alias: string[];
15404
+ aliasAssigned: boolean;
15405
+ aliasError?: {
15406
+ code: string;
15407
+ message: string;
15408
+ } | null;
15409
+ aliasFinal?: string | null;
15410
+ aliasWarning?: {
15411
+ code: string;
15412
+ message: string;
15413
+ link?: string;
15414
+ action?: string;
15415
+ } | null;
15416
+ automaticAliases?: string[];
15417
+ bootedAt: number;
15418
+ buildErrorAt?: number;
15419
+ buildingAt: number;
15420
+ canceledAt?: number;
15421
+ checksState?: "registered" | "running" | "completed";
15422
+ checksConclusion?: "canceled" | "succeeded" | "failed" | "skipped";
15423
+ createdAt: number;
15424
+ creator: {
15425
+ uid: string;
15426
+ username?: string;
15427
+ };
15428
+ errorCode?: string;
15429
+ errorLink?: string;
15430
+ errorMessage?: string | null;
15431
+ errorStep?: string;
15432
+ gitSource?: {
15433
+ type: "github";
15434
+ repoId: string | number;
15435
+ ref?: string | null;
15436
+ sha?: string;
15437
+ prId?: number | null;
15438
+ } | {
15439
+ type: "github";
15440
+ org: string;
15441
+ repo: string;
15442
+ ref?: string | null;
15443
+ sha?: string;
15444
+ prId?: number | null;
15445
+ } | {
15446
+ type: "gitlab";
15447
+ projectId: string | number;
15448
+ ref?: string | null;
15449
+ sha?: string;
15450
+ prId?: number | null;
15451
+ } | {
15452
+ type: "bitbucket";
15453
+ workspaceUuid?: string;
15454
+ repoUuid: string;
15455
+ ref?: string | null;
15456
+ sha?: string;
15457
+ prId?: number | null;
15458
+ } | {
15459
+ type: "bitbucket";
15460
+ owner: string;
15461
+ slug: string;
15462
+ ref?: string | null;
15463
+ sha?: string;
15464
+ prId?: number | null;
15465
+ } | {
15466
+ type: "custom";
15467
+ ref: string;
15468
+ sha: string;
15469
+ gitUrl: string;
15470
+ } | {
15471
+ type: "github";
15472
+ ref: string;
15473
+ sha: string;
15474
+ repoId: number;
15475
+ org?: string;
15476
+ repo?: string;
15477
+ } | {
15478
+ type: "gitlab";
15479
+ ref: string;
15480
+ sha: string;
15481
+ projectId: number;
15482
+ } | {
15483
+ type: "bitbucket";
15484
+ ref: string;
15485
+ sha: string;
15486
+ owner?: string;
15487
+ slug?: string;
15488
+ workspaceUuid: string;
15489
+ repoUuid: string;
15490
+ };
15491
+ id: string;
15492
+ lambdas?: {
15493
+ id: string;
15494
+ createdAt?: number;
15495
+ entrypoint?: string | null;
15496
+ readyState?: "BUILDING" | "ERROR" | "INITIALIZING" | "READY";
15497
+ readyStateAt?: number;
15498
+ output: {
15499
+ path: string;
15500
+ functionName: string;
15501
+ }[];
15502
+ }[];
15503
+ public: boolean;
15504
+ readyState: "BUILDING" | "ERROR" | "INITIALIZING" | "READY" | "QUEUED" | "CANCELED";
15505
+ regions: string[];
15506
+ source?: "import" | "cli" | "git" | "import/repo" | "clone/repo";
15507
+ target?: "production" | "staging" | null;
15508
+ team?: {
15509
+ id: string;
15510
+ name: string;
15511
+ slug: string;
15512
+ };
15513
+ type: "LAMBDAS";
15514
+ url: string;
15515
+ userAliases?: string[];
15516
+ version: 2;
15517
+ previewCommentsEnabled?: boolean;
15518
+ } | {
15519
+ alias: string[];
15520
+ aliasAssigned: boolean;
15521
+ aliasError?: {
15522
+ code: string;
15523
+ message: string;
15524
+ } | null;
15525
+ aliasFinal?: string | null;
15526
+ aliasWarning?: {
15527
+ code: string;
15528
+ message: string;
15529
+ link?: string;
15530
+ action?: string;
15531
+ } | null;
15532
+ automaticAliases?: string[];
15533
+ bootedAt: number;
15534
+ buildErrorAt?: number;
15535
+ buildingAt: number;
15536
+ canceledAt?: number;
15537
+ checksState?: "registered" | "running" | "completed";
15538
+ checksConclusion?: "canceled" | "succeeded" | "failed" | "skipped";
15539
+ createdAt: number;
15540
+ creator: {
15541
+ uid: string;
15542
+ username?: string;
15543
+ };
15544
+ errorCode?: string;
15545
+ errorLink?: string;
15546
+ errorMessage?: string | null;
15547
+ errorStep?: string;
15548
+ gitSource?: {
15549
+ type: "github";
15550
+ repoId: string | number;
15551
+ ref?: string | null;
15552
+ sha?: string;
15553
+ prId?: number | null;
15554
+ } | {
15555
+ type: "github";
15556
+ org: string;
15557
+ repo: string;
15558
+ ref?: string | null;
15559
+ sha?: string;
15560
+ prId?: number | null;
15561
+ } | {
15562
+ type: "gitlab";
15563
+ projectId: string | number;
15564
+ ref?: string | null;
15565
+ sha?: string;
15566
+ prId?: number | null;
15567
+ } | {
15568
+ type: "bitbucket";
15569
+ workspaceUuid?: string;
15570
+ repoUuid: string;
15571
+ ref?: string | null;
15572
+ sha?: string;
15573
+ prId?: number | null;
15574
+ } | {
15575
+ type: "bitbucket";
15576
+ owner: string;
15577
+ slug: string;
15578
+ ref?: string | null;
15579
+ sha?: string;
15580
+ prId?: number | null;
15581
+ } | {
15582
+ type: "custom";
15583
+ ref: string;
15584
+ sha: string;
15585
+ gitUrl: string;
15586
+ } | {
15587
+ type: "github";
15588
+ ref: string;
15589
+ sha: string;
15590
+ repoId: number;
15591
+ org?: string;
15592
+ repo?: string;
15593
+ } | {
15594
+ type: "gitlab";
15595
+ ref: string;
15596
+ sha: string;
15597
+ projectId: number;
15598
+ } | {
15599
+ type: "bitbucket";
15600
+ ref: string;
15601
+ sha: string;
15602
+ owner?: string;
15603
+ slug?: string;
15604
+ workspaceUuid: string;
15605
+ repoUuid: string;
15606
+ };
15607
+ id: string;
15608
+ lambdas?: {
15609
+ id: string;
15610
+ createdAt?: number;
15611
+ entrypoint?: string | null;
15612
+ readyState?: "BUILDING" | "ERROR" | "INITIALIZING" | "READY";
15613
+ readyStateAt?: number;
15614
+ output: {
15615
+ path: string;
15616
+ functionName: string;
15617
+ }[];
15618
+ }[];
15619
+ name: string;
15620
+ meta: {
15621
+ [key: string]: string;
15622
+ };
15623
+ public: boolean;
15624
+ readyState: "BUILDING" | "ERROR" | "INITIALIZING" | "READY" | "QUEUED" | "CANCELED";
15625
+ regions: string[];
15626
+ source?: "import" | "cli" | "git" | "import/repo" | "clone/repo";
15627
+ target?: "production" | "staging" | null;
15628
+ team?: {
15629
+ id: string;
15630
+ name: string;
15631
+ slug: string;
15632
+ };
15633
+ type: "LAMBDAS";
15634
+ url: string;
15635
+ userAliases?: string[];
15636
+ version: 2;
15637
+ previewCommentsEnabled?: boolean;
15638
+ }>;
15639
+ 'POST /v13/deployments': (variables: CreateDeploymentVariables, signal?: AbortSignal | undefined) => Promise<CreateDeploymentResponse>;
15640
+ 'PATCH /v12/deployments/{id}/cancel': (variables: CancelDeploymentVariables, signal?: AbortSignal | undefined) => Promise<CancelDeploymentResponse>;
15641
+ 'GET /v7/certs/{id}': (variables: GetCertByIdVariables, signal?: AbortSignal | undefined) => Promise<GetCertByIdResponse>;
15642
+ 'DELETE /v7/certs/{id}': (variables: RemoveCertVariables, signal?: AbortSignal | undefined) => Promise<Record<string, any>>;
15643
+ 'POST /v7/certs': (variables: IssueCertVariables, signal?: AbortSignal | undefined) => Promise<IssueCertResponse>;
15644
+ 'PUT /v7/certs': (variables: UploadCertVariables, signal?: AbortSignal | undefined) => Promise<UploadCertResponse>;
15645
+ 'GET /v2/deployments/{idOrUrl}/events': (variables: GetDeploymentEventsVariables, signal?: AbortSignal | undefined) => Promise<GetDeploymentEventsResponse>;
15646
+ 'GET /v3/events': (variables: ListUserEventsVariables, signal?: AbortSignal | undefined) => Promise<ListUserEventsResponse>;
15647
+ 'GET /v4/aliases': (variables: ListAliasesVariables, signal?: AbortSignal | undefined) => Promise<ListAliasesResponse>;
15648
+ 'GET /v4/aliases/{idOrAlias}': (variables: GetAliasVariables, signal?: AbortSignal | undefined) => Promise<GetAliasResponse>;
15649
+ 'DELETE /v2/aliases/{aliasId}': (variables: DeleteAliasVariables, signal?: AbortSignal | undefined) => Promise<DeleteAliasResponse>;
15650
+ 'GET /v2/deployments/{id}/aliases': (variables: ListDeploymentAliasesVariables, signal?: AbortSignal | undefined) => Promise<ListDeploymentAliasesResponse>;
15651
+ 'POST /v2/deployments/{id}/aliases': (variables: AssignAliasVariables, signal?: AbortSignal | undefined) => Promise<AssignAliasResponse>;
15652
+ 'POST /v2/files': (variables: UploadFileVariables, signal?: AbortSignal | undefined) => Promise<Record<string, any> | {
15653
+ urls: string[];
15654
+ }>;
15655
+ 'GET /v2/user': (variables: FetcherExtraProps, signal?: AbortSignal | undefined) => Promise<GetAuthUserResponse>;
15656
+ 'DELETE /v1/user': (variables: RequestDeleteVariables, signal?: AbortSignal | undefined) => Promise<RequestDeleteResponse>;
15657
+ 'GET /v5/user/tokens': (variables: FetcherExtraProps, signal?: AbortSignal | undefined) => Promise<ListAuthTokensResponse>;
15658
+ 'POST /v3/user/tokens': (variables: CreateAuthTokenVariables, signal?: AbortSignal | undefined) => Promise<CreateAuthTokenResponse>;
15659
+ 'GET /v5/user/tokens/{tokenId}': (variables: GetAuthTokenVariables, signal?: AbortSignal | undefined) => Promise<GetAuthTokenResponse>;
15660
+ 'DELETE /v3/user/tokens/{tokenId}': (variables: DeleteAuthTokenVariables, signal?: AbortSignal | undefined) => Promise<DeleteAuthTokenResponse>;
15661
+ 'GET /v4/domains/{domain}/records': (variables: GetRecordsVariables, signal?: AbortSignal | undefined) => Promise<string | {
15662
+ records: {
15663
+ id: string;
15664
+ slug: string;
15665
+ name: string;
15666
+ type: "A" | "AAAA" | "ALIAS" | "CAA" | "CNAME" | "MX" | "SRV" | "TXT" | "NS";
15667
+ value: string;
15668
+ mxPriority?: number;
15669
+ priority?: number;
15670
+ creator: string;
15671
+ created: number | null;
15672
+ updated: number | null;
15673
+ createdAt: number | null;
15674
+ updatedAt: number | null;
15675
+ }[];
15676
+ } | {
15677
+ records: {
15678
+ id: string;
15679
+ slug: string;
15680
+ name: string;
15681
+ type: "A" | "AAAA" | "ALIAS" | "CAA" | "CNAME" | "MX" | "SRV" | "TXT" | "NS";
15682
+ value: string;
15683
+ mxPriority?: number;
15684
+ priority?: number;
15685
+ creator: string;
15686
+ created: number | null;
15687
+ updated: number | null;
15688
+ createdAt: number | null;
15689
+ updatedAt: number | null;
15690
+ }[];
15691
+ pagination: Pagination;
15692
+ }>;
15693
+ 'POST /v2/domains/{domain}/records': (variables: CreateRecordVariables, signal?: AbortSignal | undefined) => Promise<{
15694
+ uid: string;
15695
+ updated: number;
15696
+ } | {
15697
+ uid: string;
15698
+ }>;
15699
+ 'PATCH /v1/domains/records/{recordId}': (variables: UpdateRecordVariables, signal?: AbortSignal | undefined) => Promise<UpdateRecordResponse>;
15700
+ 'DELETE /v2/domains/{domain}/records/{recordId}': (variables: RemoveRecordVariables, signal?: AbortSignal | undefined) => Promise<Record<string, any>>;
15701
+ 'GET /v4/domains/status': (variables: CheckDomainStatusVariables, signal?: AbortSignal | undefined) => Promise<CheckDomainStatusResponse>;
15702
+ 'GET /v4/domains/price': (variables: CheckDomainPriceVariables, signal?: AbortSignal | undefined) => Promise<CheckDomainPriceResponse>;
15703
+ 'POST /v4/domains/buy': (variables: BuyDomainVariables, signal?: AbortSignal | undefined) => Promise<BuyDomainResponse>;
15704
+ 'GET /v6/domains/{domain}/config': (variables: GetDomainConfigVariables, signal?: AbortSignal | undefined) => Promise<GetDomainConfigResponse>;
15705
+ 'GET /v5/domains/{domain}': (variables: GetDomainVariables, signal?: AbortSignal | undefined) => Promise<GetDomainResponse>;
15706
+ 'GET /v5/domains': (variables: GetDomainsVariables, signal?: AbortSignal | undefined) => Promise<GetDomainsResponse>;
15707
+ 'POST /v5/domains': (variables: CreateOrTransferDomainVariables, signal?: AbortSignal | undefined) => Promise<CreateOrTransferDomainResponse>;
15708
+ 'DELETE /v6/domains/{domain}': (variables: DeleteDomainVariables, signal?: AbortSignal | undefined) => Promise<DeleteDomainResponse>;
15709
+ 'GET /v3/secrets': (variables: GetSecretsVariables, signal?: AbortSignal | undefined) => Promise<GetSecretsResponse>;
15710
+ 'POST /v2/secrets/{name}': (variables: CreateSecretVariables, signal?: AbortSignal | undefined) => Promise<CreateSecretResponse>;
15711
+ 'PATCH /v2/secrets/{name}': (variables: RenameSecretVariables, signal?: AbortSignal | undefined) => Promise<RenameSecretResponse>;
15712
+ 'GET /v3/secrets/{idOrName}': (variables: GetSecretVariables, signal?: AbortSignal | undefined) => Promise<GetSecretResponse>;
15713
+ 'DELETE /v2/secrets/{idOrName}': (variables: DeleteSecretVariables, signal?: AbortSignal | undefined) => Promise<DeleteSecretResponse>;
15714
+ 'DELETE /v13/deployments/{id}': (variables: DeleteDeploymentVariables, signal?: AbortSignal | undefined) => Promise<DeleteDeploymentResponse>;
15715
+ 'GET /v6/deployments': (variables: GetDeploymentsVariables, signal?: AbortSignal | undefined) => Promise<GetDeploymentsResponse>;
15716
+ 'GET /v9/projects': (variables: GetProjectsVariables, signal?: AbortSignal | undefined) => Promise<GetProjectsResponse>;
15717
+ 'POST /v9/projects': (variables: CreateProjectVariables, signal?: AbortSignal | undefined) => Promise<CreateProjectResponse>;
15718
+ 'GET /v9/projects/{idOrName}': (variables: GetProjectVariables, signal?: AbortSignal | undefined) => Promise<GetProjectResponse>;
15719
+ 'PATCH /v9/projects/{idOrName}': (variables: UpdateProjectVariables, signal?: AbortSignal | undefined) => Promise<UpdateProjectResponse>;
15720
+ 'DELETE /v9/projects/{idOrName}': (variables: DeleteProjectVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15721
+ 'GET /v9/projects/{idOrName}/domains': (variables: GetProjectDomainsVariables, signal?: AbortSignal | undefined) => Promise<GetProjectDomainsResponse>;
15722
+ 'GET /v9/projects/{idOrName}/domains/{domain}': (variables: GetProjectDomainVariables, signal?: AbortSignal | undefined) => Promise<GetProjectDomainResponse>;
15723
+ 'PATCH /v9/projects/{idOrName}/domains/{domain}': (variables: UpdateProjectDomainVariables, signal?: AbortSignal | undefined) => Promise<UpdateProjectDomainResponse>;
15724
+ 'DELETE /v9/projects/{idOrName}/domains/{domain}': (variables: RemoveProjectDomainVariables, signal?: AbortSignal | undefined) => Promise<Record<string, any>>;
15725
+ 'POST /v10/projects/{idOrName}/domains': (variables: AddProjectDomainVariables, signal?: AbortSignal | undefined) => Promise<AddProjectDomainResponse>;
15726
+ 'POST /v9/projects/{idOrName}/domains/{domain}/verify': (variables: VerifyProjectDomainVariables, signal?: AbortSignal | undefined) => Promise<VerifyProjectDomainResponse>;
15727
+ 'GET /v9/projects/{idOrName}/env': (variables: FilterProjectEnvsVariables, signal?: AbortSignal | undefined) => Promise<{
15728
+ target?: "production" | "preview" | "development" | ("production" | "preview" | "development")[];
15729
+ type?: "system" | "secret" | "encrypted" | "plain" | "sensitive";
15730
+ id?: string;
15731
+ key?: string;
15732
+ value?: string;
15733
+ configurationId?: string | null;
15734
+ createdAt?: number;
15735
+ updatedAt?: number;
15736
+ createdBy?: string | null;
15737
+ updatedBy?: string | null;
15738
+ gitBranch?: string;
15739
+ edgeConfigId?: string | null;
15740
+ edgeConfigTokenId?: string | null;
15741
+ decrypted?: boolean;
15742
+ system?: boolean;
15743
+ } | {
15744
+ envs: {
15745
+ target?: "production" | "preview" | "development" | ("production" | "preview" | "development")[];
15746
+ type?: "system" | "secret" | "encrypted" | "plain" | "sensitive";
15747
+ id?: string;
15748
+ key?: string;
15749
+ value?: string;
15750
+ configurationId?: string | null;
15751
+ createdAt?: number;
15752
+ updatedAt?: number;
15753
+ createdBy?: string | null;
15754
+ updatedBy?: string | null;
15755
+ gitBranch?: string;
15756
+ edgeConfigId?: string | null;
15757
+ edgeConfigTokenId?: string | null;
15758
+ decrypted?: boolean;
15759
+ system?: boolean;
15760
+ }[];
15761
+ pagination: Pagination;
15762
+ } | {
15763
+ envs: {
15764
+ target?: "production" | "preview" | "development" | ("production" | "preview" | "development")[];
15765
+ type?: "system" | "secret" | "encrypted" | "plain" | "sensitive";
15766
+ id?: string;
15767
+ key?: string;
15768
+ value?: string;
15769
+ configurationId?: string | null;
15770
+ createdAt?: number;
15771
+ updatedAt?: number;
15772
+ createdBy?: string | null;
15773
+ updatedBy?: string | null;
15774
+ gitBranch?: string;
15775
+ edgeConfigId?: string | null;
15776
+ edgeConfigTokenId?: string | null;
15777
+ decrypted?: boolean;
15778
+ system?: boolean;
15779
+ }[];
15780
+ }>;
15781
+ 'GET /v1/projects/{idOrName}/env/{id}': (variables: GetProjectEnvVariables, signal?: AbortSignal | undefined) => Promise<GetProjectEnvResponse>;
15782
+ 'POST /v10/projects/{idOrName}/env': (variables: CreateProjectEnvVariables, signal?: AbortSignal | undefined) => Promise<CreateProjectEnvResponse>;
15783
+ 'DELETE /v9/projects/{idOrName}/env/{id}': (variables: RemoveProjectEnvVariables, signal?: AbortSignal | undefined) => Promise<{
15784
+ system?: boolean;
15785
+ target?: "production" | "preview" | "development" | ("production" | "preview" | "development")[];
15786
+ type: "system" | "secret" | "encrypted" | "plain" | "sensitive";
15787
+ id?: string;
15788
+ key: string;
15789
+ value: string;
15790
+ configurationId?: string | null;
15791
+ createdAt?: number;
15792
+ updatedAt?: number;
15793
+ createdBy?: string | null;
15794
+ updatedBy?: string | null;
15795
+ gitBranch?: string;
15796
+ edgeConfigId?: string | null;
15797
+ edgeConfigTokenId?: string | null;
15798
+ decrypted?: boolean;
15799
+ } | {
15800
+ target?: "production" | "preview" | "development" | ("production" | "preview" | "development")[];
15801
+ type: "system" | "secret" | "encrypted" | "plain" | "sensitive";
15802
+ id?: string;
15803
+ key: string;
15804
+ value: string;
15805
+ configurationId?: string | null;
15806
+ createdAt?: number;
15807
+ updatedAt?: number;
15808
+ createdBy?: string | null;
15809
+ updatedBy?: string | null;
15810
+ gitBranch?: string;
15811
+ edgeConfigId?: string | null;
15812
+ edgeConfigTokenId?: string | null;
15813
+ decrypted?: boolean;
15814
+ } | {
15815
+ target?: "production" | "preview" | "development" | ("production" | "preview" | "development")[];
15816
+ type: "system" | "secret" | "encrypted" | "plain" | "sensitive";
15817
+ id?: string;
15818
+ key: string;
15819
+ value: string;
15820
+ configurationId?: string | null;
15821
+ createdAt?: number;
15822
+ updatedAt?: number;
15823
+ createdBy?: string | null;
15824
+ updatedBy?: string | null;
15825
+ gitBranch?: string;
15826
+ edgeConfigId?: string | null;
15827
+ edgeConfigTokenId?: string | null;
15828
+ decrypted?: boolean;
15829
+ }[]>;
15830
+ 'PATCH /v9/projects/{idOrName}/env/{id}': (variables: EditProjectEnvVariables, signal?: AbortSignal | undefined) => Promise<EditProjectEnvResponse>;
15831
+ 'GET /registration/verify': (variables: VerifyTokenVariables, signal?: AbortSignal | undefined) => Promise<VerifyTokenResponse>;
15832
+ 'POST /registration': (variables: EmailLoginVariables, signal?: AbortSignal | undefined) => Promise<EmailLoginResponse>;
15833
+ 'GET /v1/integrations/configurations': (variables: GetConfigurationsVariables, signal?: AbortSignal | undefined) => Promise<{
15834
+ completedAt?: number;
15835
+ createdAt: number;
15836
+ id: string;
15837
+ integrationId: string;
15838
+ oauthConfiguration?: boolean;
15839
+ ownerId: string;
15840
+ projects?: string[];
15841
+ source?: "external" | "marketplace" | "deploy-button" | "oauth";
15842
+ removedLogDrainsAt?: number;
15843
+ removedProjectEnvsAt?: number;
15844
+ removedTokensAt?: number;
15845
+ removedWebhooksAt?: number;
15846
+ slug: string;
15847
+ teamId?: string | null;
15848
+ type: "integration-configuration";
15849
+ updatedAt: number;
15850
+ userId: string;
15851
+ scopes: string[];
15852
+ scopesQueue?: {
15853
+ scopes: {
15854
+ added: ("read:integration-configuration" | "read-write:integration-configuration" | "read:deployment" | "read-write:deployment" | "read-write:deployment-check" | "read:project" | "read-write:project" | "read-write:project-env-vars" | "read-write:global-project-env-vars" | "read:team" | "read:user" | "read-write:log-drain" | "read:domain" | "read-write:domain" | "read-write:edge-config" | "read-write:otel-endpoint" | "read:monitoring")[];
15855
+ upgraded: ("read:integration-configuration" | "read-write:integration-configuration" | "read:deployment" | "read-write:deployment" | "read-write:deployment-check" | "read:project" | "read-write:project" | "read-write:project-env-vars" | "read-write:global-project-env-vars" | "read:team" | "read:user" | "read-write:log-drain" | "read:domain" | "read-write:domain" | "read-write:edge-config" | "read-write:otel-endpoint" | "read:monitoring")[];
15856
+ };
15857
+ note: string;
15858
+ requestedAt: number;
15859
+ confirmedAt?: number;
15860
+ }[];
15861
+ disabledAt?: number;
15862
+ deletedAt?: number | null;
15863
+ }[] | {
15864
+ integration: {
15865
+ name: string;
15866
+ icon: string;
15867
+ category: string;
15868
+ isLegacy: boolean;
15869
+ flags?: string[];
15870
+ assignedBetaLabelAt?: number;
15871
+ };
15872
+ completedAt?: number;
15873
+ createdAt: number;
15874
+ id: string;
15875
+ integrationId: string;
15876
+ oauthConfiguration?: boolean;
15877
+ ownerId: string;
15878
+ projects?: string[];
15879
+ source?: "external" | "marketplace" | "deploy-button" | "oauth";
15880
+ removedLogDrainsAt?: number;
15881
+ removedProjectEnvsAt?: number;
15882
+ removedTokensAt?: number;
15883
+ removedWebhooksAt?: number;
15884
+ slug: string;
15885
+ teamId?: string | null;
15886
+ type: "integration-configuration";
15887
+ updatedAt: number;
15888
+ userId: string;
15889
+ scopes: string[];
15890
+ scopesQueue?: {
15891
+ scopes: {
15892
+ added: ("read:integration-configuration" | "read-write:integration-configuration" | "read:deployment" | "read-write:deployment" | "read-write:deployment-check" | "read:project" | "read-write:project" | "read-write:project-env-vars" | "read-write:global-project-env-vars" | "read:team" | "read:user" | "read-write:log-drain" | "read:domain" | "read-write:domain" | "read-write:edge-config" | "read-write:otel-endpoint" | "read:monitoring")[];
15893
+ upgraded: ("read:integration-configuration" | "read-write:integration-configuration" | "read:deployment" | "read-write:deployment" | "read-write:deployment-check" | "read:project" | "read-write:project" | "read-write:project-env-vars" | "read-write:global-project-env-vars" | "read:team" | "read:user" | "read-write:log-drain" | "read:domain" | "read-write:domain" | "read-write:edge-config" | "read-write:otel-endpoint" | "read:monitoring")[];
15894
+ };
15895
+ note: string;
15896
+ requestedAt: number;
15897
+ confirmedAt?: number;
15898
+ }[];
15899
+ disabledAt?: number;
15900
+ deletedAt?: number | null;
15901
+ }[]>;
15902
+ 'GET /v1/integrations/configuration/{id}': (variables: GetConfigurationVariables, signal?: AbortSignal | undefined) => Promise<{
15903
+ completedAt?: number;
15904
+ createdAt: number;
15905
+ id: string;
15906
+ integrationId: string;
15907
+ oauthConfiguration?: boolean;
15908
+ ownerId: string;
15909
+ projects?: string[];
15910
+ source?: "external" | "marketplace" | "deploy-button" | "oauth";
15911
+ removedLogDrainsAt?: number;
15912
+ removedProjectEnvsAt?: number;
15913
+ removedTokensAt?: number;
15914
+ removedWebhooksAt?: number;
15915
+ slug: string;
15916
+ teamId?: string | null;
15917
+ type: "integration-configuration";
15918
+ updatedAt: number;
15919
+ userId: string;
15920
+ scopes: string[];
15921
+ scopesQueue?: {
15922
+ scopes: {
15923
+ added: ("read:integration-configuration" | "read-write:integration-configuration" | "read:deployment" | "read-write:deployment" | "read-write:deployment-check" | "read:project" | "read-write:project" | "read-write:project-env-vars" | "read-write:global-project-env-vars" | "read:team" | "read:user" | "read-write:log-drain" | "read:domain" | "read-write:domain" | "read-write:edge-config" | "read-write:otel-endpoint" | "read:monitoring")[];
15924
+ upgraded: ("read:integration-configuration" | "read-write:integration-configuration" | "read:deployment" | "read-write:deployment" | "read-write:deployment-check" | "read:project" | "read-write:project" | "read-write:project-env-vars" | "read-write:global-project-env-vars" | "read:team" | "read:user" | "read-write:log-drain" | "read:domain" | "read-write:domain" | "read-write:edge-config" | "read-write:otel-endpoint" | "read:monitoring")[];
15925
+ };
15926
+ note: string;
15927
+ requestedAt: number;
15928
+ confirmedAt?: number;
15929
+ }[];
15930
+ disabledAt?: number;
15931
+ deletedAt?: number | null;
15932
+ } | {
15933
+ projectSelection: "all" | "selected";
15934
+ createdAt: number;
15935
+ completedAt?: number;
15936
+ id: string;
15937
+ integrationId: string;
15938
+ oauthConfiguration?: boolean;
15939
+ ownerId: string;
15940
+ projects?: string[];
15941
+ slug: string;
15942
+ teamId?: string | null;
15943
+ updatedAt: number;
15944
+ userId: string;
15945
+ scopes: string[];
15946
+ disabledAt?: number;
15947
+ source?: "external" | "marketplace" | "deploy-button" | "oauth";
15948
+ canConfigureOpenTelemetry?: boolean;
15949
+ }>;
15950
+ 'DELETE /v1/integrations/configuration/{id}': (variables: DeleteConfigurationVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15951
+ 'GET /v2/integrations/log-drains': (variables: GetIntegrationLogDrainsVariables, signal?: AbortSignal | undefined) => Promise<GetIntegrationLogDrainsResponse>;
15952
+ 'POST /v2/integrations/log-drains': (variables: CreateLogDrainVariables, signal?: AbortSignal | undefined) => Promise<CreateLogDrainResponse>;
15953
+ 'DELETE /v1/integrations/log-drains/{id}': (variables: DeleteIntegrationLogDrainVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15954
+ 'GET /v1/integrations/git-namespaces': (variables: GitNamespacesVariables, signal?: AbortSignal | undefined) => Promise<GitNamespacesResponse>;
15955
+ 'GET /v1/integrations/search-repo': (variables: SearchRepoVariables, signal?: AbortSignal | undefined) => Promise<SearchRepoResponse>;
15956
+ 'POST /v1/webhooks': (variables: CreateWebhookVariables, signal?: AbortSignal | undefined) => Promise<CreateWebhookResponse>;
15957
+ 'GET /v1/webhooks': (variables: GetWebhooksVariables, signal?: AbortSignal | undefined) => Promise<{
15958
+ projectsMetadata: {
15959
+ id: string;
15960
+ name: string;
15961
+ 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" | null;
15962
+ latestDeployment?: string;
15963
+ }[] | null;
15964
+ events: ("deployment" | "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")[];
15965
+ id: string;
15966
+ url: string;
15967
+ ownerId: string;
15968
+ createdAt: number;
15969
+ updatedAt: number;
15970
+ projectIds?: string[];
15971
+ }[] | {
15972
+ events: ("deployment" | "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")[];
15973
+ id: string;
15974
+ url: string;
15975
+ ownerId: string;
15976
+ createdAt: number;
15977
+ updatedAt: number;
15978
+ projectIds?: string[];
15979
+ }[]>;
15980
+ 'GET /v1/webhooks/{id}': (variables: GetWebhookVariables, signal?: AbortSignal | undefined) => Promise<GetWebhookResponse>;
15981
+ 'DELETE /v1/webhooks/{id}': (variables: DeleteWebhookVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15982
+ 'GET /v1/log-drains/{id}': (variables: GetConfigurableLogDrainVariables, signal?: AbortSignal | undefined) => Promise<GetConfigurableLogDrainResponse>;
15983
+ 'DELETE /v1/log-drains/{id}': (variables: DeleteConfigurableLogDrainVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
15984
+ 'GET /v1/log-drains': (variables: GetConfigurableLogDrainsVariables, signal?: AbortSignal | undefined) => Promise<GetConfigurableLogDrainsResponse>;
15985
+ 'POST /v1/log-drains': (variables: CreateConfigurableLogDrainVariables, signal?: AbortSignal | undefined) => Promise<CreateConfigurableLogDrainResponse>;
15986
+ 'GET /v2/teams/{teamId}': (variables: GetTeamVariables, signal?: AbortSignal | undefined) => Promise<Team>;
15987
+ 'PATCH /v2/teams/{teamId}': (variables: PatchTeamVariables, signal?: AbortSignal | undefined) => Promise<Team>;
15988
+ 'GET /v2/teams': (variables: GetTeamsVariables, signal?: AbortSignal | undefined) => Promise<GetTeamsResponse>;
15989
+ 'POST /v1/teams': (variables: CreateTeamVariables, signal?: AbortSignal | undefined) => Promise<CreateTeamResponse>;
15990
+ 'DELETE /v1/teams/{teamId}': (variables: DeleteTeamVariables, signal?: AbortSignal | undefined) => Promise<DeleteTeamResponse>;
15991
+ 'DELETE /v1/teams/{teamId}/invites/{inviteId}': (variables: DeleteTeamInviteCodeVariables, signal?: AbortSignal | undefined) => Promise<DeleteTeamInviteCodeResponse>;
15992
+ 'GET /v2/teams/{teamId}/members': (variables: GetTeamMembersVariables, signal?: AbortSignal | undefined) => Promise<GetTeamMembersResponse>;
15993
+ 'POST /v1/teams/{teamId}/members': (variables: InviteUserToTeamVariables, signal?: AbortSignal | undefined) => Promise<InviteUserToTeamResponse>;
15994
+ 'POST /v1/teams/{teamId}/request': (variables: RequestAccessToTeamVariables, signal?: AbortSignal | undefined) => Promise<RequestAccessToTeamResponse>;
15995
+ 'GET /v1/teams/{teamId}/request/{userId}': (variables: GetTeamAccessRequestVariables, signal?: AbortSignal | undefined) => Promise<GetTeamAccessRequestResponse>;
15996
+ 'POST /v1/teams/{teamId}/members/teams/join': (variables: JoinTeamVariables, signal?: AbortSignal | undefined) => Promise<JoinTeamResponse>;
15997
+ 'PATCH /v1/teams/{teamId}/members/{uid}': (variables: UpdateTeamMemberVariables, signal?: AbortSignal | undefined) => Promise<UpdateTeamMemberResponse>;
15998
+ 'DELETE /v1/teams/{teamId}/members/{uid}': (variables: RemoveTeamMemberVariables, signal?: AbortSignal | undefined) => Promise<RemoveTeamMemberResponse>;
15999
+ 'GET /v6/deployments/{id}/files': (variables: ListDeploymentFilesVariables, signal?: AbortSignal | undefined) => Promise<ListDeploymentFilesResponse>;
16000
+ 'GET /v6/deployments/{id}/files/{fileId}': (variables: GetDeploymentFileContentsVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
16001
+ 'GET /v11/deployments/{deploymentId}/builds': (variables: ListDeploymentBuildsVariables, signal?: AbortSignal | undefined) => Promise<ListDeploymentBuildsResponse>;
16002
+ 'POST /v1/deployments/{deploymentId}/checks': (variables: CreateCheckVariables, signal?: AbortSignal | undefined) => Promise<CreateCheckResponse>;
16003
+ 'GET /v1/deployments/{deploymentId}/checks': (variables: GetAllChecksVariables, signal?: AbortSignal | undefined) => Promise<GetAllChecksResponse>;
16004
+ 'GET /v1/deployments/{deploymentId}/checks/{checkId}': (variables: GetCheckVariables, signal?: AbortSignal | undefined) => Promise<GetCheckResponse>;
16005
+ 'PATCH /v1/deployments/{deploymentId}/checks/{checkId}': (variables: UpdateCheckVariables, signal?: AbortSignal | undefined) => Promise<UpdateCheckResponse>;
16006
+ 'POST /v1/deployments/{deploymentId}/checks/{checkId}/rerequest': (variables: RerequestCheckVariables, signal?: AbortSignal | undefined) => Promise<Record<string, any>>;
16007
+ 'GET /v1/edge-config': (variables: GetEdgeConfigsVariables, signal?: AbortSignal | undefined) => Promise<GetEdgeConfigsResponse>;
16008
+ 'POST /v1/edge-config': (variables: CreateEdgeConfigVariables, signal?: AbortSignal | undefined) => Promise<CreateEdgeConfigResponse>;
16009
+ 'GET /v1/edge-config/{edgeConfigId}': (variables: GetEdgeConfigVariables, signal?: AbortSignal | undefined) => Promise<GetEdgeConfigResponse>;
16010
+ 'PUT /v1/edge-config/{edgeConfigId}': (variables: UpdateEdgeConfigVariables, signal?: AbortSignal | undefined) => Promise<UpdateEdgeConfigResponse>;
16011
+ 'DELETE /v1/edge-config/{edgeConfigId}': (variables: DeleteEdgeConfigVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
16012
+ 'GET /v1/edge-config/{edgeConfigId}/items': (variables: GetEdgeConfigItemsVariables, signal?: AbortSignal | undefined) => Promise<EdgeConfigItem>;
16013
+ 'PATCH /v1/edge-config/{edgeConfigId}/items': (variables: PatchtEdgeConfigItemsVariables, signal?: AbortSignal | undefined) => Promise<PatchtEdgeConfigItemsResponse>;
16014
+ 'GET /v1/edge-config/{edgeConfigId}/item/{edgeConfigItemKey}': (variables: GetEdgeConfigItemVariables, signal?: AbortSignal | undefined) => Promise<EdgeConfigItem>;
16015
+ 'GET /v1/edge-config/{edgeConfigId}/tokens': (variables: GetEdgeConfigTokensVariables, signal?: AbortSignal | undefined) => Promise<EdgeConfigToken>;
16016
+ 'DELETE /v1/edge-config/{edgeConfigId}/tokens': (variables: DeleteEdgeConfigTokensVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
16017
+ 'GET /v1/edge-config/{edgeConfigId}/token/{token}': (variables: GetEdgeConfigTokenVariables, signal?: AbortSignal | undefined) => Promise<EdgeConfigToken>;
16018
+ 'POST /v1/edge-config/{edgeConfigId}/token': (variables: CreateEdgeConfigTokenVariables, signal?: AbortSignal | undefined) => Promise<CreateEdgeConfigTokenResponse>;
16019
+ }[Endpoint]>>;
15289
16020
  }
15290
16021
 
15291
16022
  export { components as Components, schemas as Schemas, VercelApi, VercelApiOptions };
package/dist/index.mjs CHANGED
@@ -957,7 +957,8 @@ class VercelApi {
957
957
  async request(endpoint, params) {
958
958
  const [method = '', url = ''] = endpoint.split(' ');
959
959
  const extraParams = (params || {});
960
- return fetch$1({ ...extraParams, method, url, token: __classPrivateFieldGet(this, _VercelApi_token, "f"), fetchImpl: __classPrivateFieldGet(this, _VercelApi_fetch, "f") });
960
+ const result = await fetch$1({ ...extraParams, method, url, token: __classPrivateFieldGet(this, _VercelApi_token, "f"), fetchImpl: __classPrivateFieldGet(this, _VercelApi_fetch, "f") });
961
+ return result;
961
962
  }
962
963
  }
963
964
  _VercelApi_token = new WeakMap(), _VercelApi_fetch = new WeakMap();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel-api-js",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Vercel API client for Node.js",
5
5
  "author": "SferaDev",
6
6
  "license": "ISC",