vercel-api-js 0.20.1 → 0.21.0
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.
- package/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +94 -41
- package/dist/index.d.cts +1618 -1380
- package/dist/index.d.mts +1618 -1380
- package/dist/index.d.ts +1618 -1380
- package/dist/index.mjs +94 -41
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -123,6 +123,12 @@ const rerequestCheck = (variables, signal) => fetch$1({
|
|
|
123
123
|
});
|
|
124
124
|
const updateProjectDataCache = (variables, signal) => fetch$1({ url: "/v1/data-cache/projects/{projectId}", method: "patch", ...variables, signal });
|
|
125
125
|
const getDeploymentEvents = (variables, signal) => fetch$1({ url: "/v3/deployments/{idOrUrl}/events", method: "get", ...variables, signal });
|
|
126
|
+
const updateIntegrationDeploymentAction = (variables, signal) => fetch$1({
|
|
127
|
+
url: "/v1/deployments/{deploymentId}/integrations/{integrationConfigurationId}/resources/{resourceId}/actions/{action}",
|
|
128
|
+
method: "patch",
|
|
129
|
+
...variables,
|
|
130
|
+
signal
|
|
131
|
+
});
|
|
126
132
|
const getDeployment = (variables, signal) => fetch$1({ url: "/v13/deployments/{idOrUrl}", method: "get", ...variables, signal });
|
|
127
133
|
const createDeployment = (variables, signal) => fetch$1({ url: "/v13/deployments", method: "post", ...variables, signal });
|
|
128
134
|
const cancelDeployment = (variables, signal) => fetch$1({ url: "/v12/deployments/{id}/cancel", method: "patch", ...variables, signal });
|
|
@@ -180,6 +186,15 @@ const deleteDomain = (variables, signal) => fetch$1({
|
|
|
180
186
|
...variables,
|
|
181
187
|
signal
|
|
182
188
|
});
|
|
189
|
+
const getConfigurableLogDrain = (variables, signal) => fetch$1({ url: "/v1/log-drains/{id}", method: "get", ...variables, signal });
|
|
190
|
+
const deleteConfigurableLogDrain = (variables, signal) => fetch$1({ url: "/v1/log-drains/{id}", method: "delete", ...variables, signal });
|
|
191
|
+
const getAllLogDrains = (variables, signal) => fetch$1({
|
|
192
|
+
url: "/v1/log-drains",
|
|
193
|
+
method: "get",
|
|
194
|
+
...variables,
|
|
195
|
+
signal
|
|
196
|
+
});
|
|
197
|
+
const createConfigurableLogDrain = (variables, signal) => fetch$1({ url: "/v1/log-drains", method: "post", ...variables, signal });
|
|
183
198
|
const getEdgeConfigs = (variables, signal) => fetch$1({
|
|
184
199
|
url: "/v1/edge-config",
|
|
185
200
|
method: "get",
|
|
@@ -260,6 +275,7 @@ const updateInvoice = (variables, signal) => fetch$1({
|
|
|
260
275
|
...variables,
|
|
261
276
|
signal
|
|
262
277
|
});
|
|
278
|
+
const submitPrepaymentBalances = (variables, signal) => fetch$1({ url: "/v1/installations/{integrationConfigurationId}/billing/balance", method: "post", ...variables, signal });
|
|
263
279
|
const updateResourceSecrets = (variables, signal) => fetch$1({
|
|
264
280
|
url: "/v1/installations/{integrationConfigurationId}/products/{integrationProductIdOrSlug}/resources/{resourceId}/secrets",
|
|
265
281
|
method: "put",
|
|
@@ -272,6 +288,12 @@ const updateResourceSecretsById = (variables, signal) => fetch$1({
|
|
|
272
288
|
...variables,
|
|
273
289
|
signal
|
|
274
290
|
});
|
|
291
|
+
const importResource = (variables, signal) => fetch$1({
|
|
292
|
+
url: "/v1/installations/{integrationConfigurationId}/resources/{resourceId}",
|
|
293
|
+
method: "put",
|
|
294
|
+
...variables,
|
|
295
|
+
signal
|
|
296
|
+
});
|
|
275
297
|
const getConfigurations = (variables, signal) => fetch$1({ url: "/v1/integrations/configurations", method: "get", ...variables, signal });
|
|
276
298
|
const getConfiguration = (variables, signal) => fetch$1({ url: "/v1/integrations/configuration/{id}", method: "get", ...variables, signal });
|
|
277
299
|
const deleteConfiguration = (variables, signal) => fetch$1({ url: "/v1/integrations/configuration/{id}", method: "delete", ...variables, signal });
|
|
@@ -296,20 +318,36 @@ const gitNamespaces = (variables, signal) => fetch$1({
|
|
|
296
318
|
signal
|
|
297
319
|
});
|
|
298
320
|
const searchRepo = (variables, signal) => fetch$1({ url: "/v1/integrations/search-repo", method: "get", ...variables, signal });
|
|
299
|
-
const
|
|
300
|
-
const
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
321
|
+
const getV1ExperimentationItems = (variables, signal) => fetch$1({ url: "/v1/experimentation/items", method: "get", ...variables, signal });
|
|
322
|
+
const postV1InstallationsIntegrationConfigurationIdResourcesResourceIdExperimentationItems = (variables, signal) => fetch$1({
|
|
323
|
+
url: "/v1/installations/{integrationConfigurationId}/resources/{resourceId}/experimentation/items",
|
|
324
|
+
method: "post",
|
|
325
|
+
...variables,
|
|
326
|
+
signal
|
|
327
|
+
});
|
|
328
|
+
const patchV1InstallationsIntegrationConfigurationIdResourcesResourceIdExperimentationItemsItemId = (variables, signal) => fetch$1({
|
|
329
|
+
url: "/v1/installations/{integrationConfigurationId}/resources/{resourceId}/experimentation/items/{itemId}",
|
|
330
|
+
method: "patch",
|
|
331
|
+
...variables,
|
|
332
|
+
signal
|
|
333
|
+
});
|
|
334
|
+
const deleteV1InstallationsIntegrationConfigurationIdResourcesResourceIdExperimentationItemsItemId = (variables, signal) => fetch$1({
|
|
335
|
+
url: "/v1/installations/{integrationConfigurationId}/resources/{resourceId}/experimentation/items/{itemId}",
|
|
336
|
+
method: "delete",
|
|
337
|
+
...variables,
|
|
338
|
+
signal
|
|
339
|
+
});
|
|
340
|
+
const putV1InstallationsIntegrationConfigurationIdResourcesResourceIdExperimentationEdgeConfig = (variables, signal) => fetch$1({
|
|
341
|
+
url: "/v1/installations/{integrationConfigurationId}/resources/{resourceId}/experimentation/edge-config",
|
|
342
|
+
method: "put",
|
|
304
343
|
...variables,
|
|
305
344
|
signal
|
|
306
345
|
});
|
|
307
|
-
const createConfigurableLogDrain = (variables, signal) => fetch$1({ url: "/v1/log-drains", method: "post", ...variables, signal });
|
|
308
346
|
const getProjectMembers = (variables, signal) => fetch$1({ url: "/v1/projects/{idOrName}/members", method: "get", ...variables, signal });
|
|
309
347
|
const addProjectMember = (variables, signal) => fetch$1({ url: "/v1/projects/{idOrName}/members", method: "post", ...variables, signal });
|
|
310
348
|
const removeProjectMember = (variables, signal) => fetch$1({ url: "/v1/projects/{idOrName}/members/{uid}", method: "delete", ...variables, signal });
|
|
311
349
|
const getProjects = (variables, signal) => fetch$1({
|
|
312
|
-
url: "/
|
|
350
|
+
url: "/v10/projects",
|
|
313
351
|
method: "get",
|
|
314
352
|
...variables,
|
|
315
353
|
signal
|
|
@@ -333,16 +371,16 @@ const deleteProject = (variables, signal) => fetch$1({
|
|
|
333
371
|
...variables,
|
|
334
372
|
signal
|
|
335
373
|
});
|
|
336
|
-
const
|
|
374
|
+
const createCustomEnvironment = (variables, signal) => fetch$1({ url: "/v9/projects/{idOrName}/custom-environments", method: "post", ...variables, signal });
|
|
337
375
|
const getV9ProjectsIdOrNameCustomEnvironments = (variables, signal) => fetch$1({ url: "/v9/projects/{idOrName}/custom-environments", method: "get", ...variables, signal });
|
|
338
|
-
const
|
|
339
|
-
const
|
|
376
|
+
const getCustomEnvironment = (variables, signal) => fetch$1({ url: "/v9/projects/{idOrName}/custom-environments/{environmentSlugOrId}", method: "get", ...variables, signal });
|
|
377
|
+
const updateCustomEnvironment = (variables, signal) => fetch$1({
|
|
340
378
|
url: "/v9/projects/{idOrName}/custom-environments/{environmentSlugOrId}",
|
|
341
379
|
method: "patch",
|
|
342
380
|
...variables,
|
|
343
381
|
signal
|
|
344
382
|
});
|
|
345
|
-
const
|
|
383
|
+
const removeCustomEnvironment = (variables, signal) => fetch$1({
|
|
346
384
|
url: "/v9/projects/{idOrName}/custom-environments/{environmentSlugOrId}",
|
|
347
385
|
method: "delete",
|
|
348
386
|
...variables,
|
|
@@ -458,18 +496,6 @@ const deleteTeamInviteCode = (variables, signal) => fetch$1({
|
|
|
458
496
|
signal
|
|
459
497
|
});
|
|
460
498
|
const uploadFile = (variables, signal) => fetch$1({ url: "/v2/files", method: "post", ...variables, signal });
|
|
461
|
-
const getAuthUser = (variables, signal) => fetch$1({
|
|
462
|
-
url: "/v2/user",
|
|
463
|
-
method: "get",
|
|
464
|
-
...variables,
|
|
465
|
-
signal
|
|
466
|
-
});
|
|
467
|
-
const requestDelete = (variables, signal) => fetch$1({
|
|
468
|
-
url: "/v1/user",
|
|
469
|
-
method: "delete",
|
|
470
|
-
...variables,
|
|
471
|
-
signal
|
|
472
|
-
});
|
|
473
499
|
const listAuthTokens = (variables, signal) => fetch$1({
|
|
474
500
|
url: "/v5/user/tokens",
|
|
475
501
|
method: "get",
|
|
@@ -494,6 +520,18 @@ const deleteAuthToken = (variables, signal) => fetch$1({
|
|
|
494
520
|
...variables,
|
|
495
521
|
signal
|
|
496
522
|
});
|
|
523
|
+
const getAuthUser = (variables, signal) => fetch$1({
|
|
524
|
+
url: "/v2/user",
|
|
525
|
+
method: "get",
|
|
526
|
+
...variables,
|
|
527
|
+
signal
|
|
528
|
+
});
|
|
529
|
+
const requestDelete = (variables, signal) => fetch$1({
|
|
530
|
+
url: "/v1/user",
|
|
531
|
+
method: "delete",
|
|
532
|
+
...variables,
|
|
533
|
+
signal
|
|
534
|
+
});
|
|
497
535
|
const createWebhook = (variables, signal) => fetch$1({
|
|
498
536
|
url: "/v1/webhooks",
|
|
499
537
|
method: "post",
|
|
@@ -513,6 +551,8 @@ const deleteWebhook = (variables, signal) => fetch$1({
|
|
|
513
551
|
...variables,
|
|
514
552
|
signal
|
|
515
553
|
});
|
|
554
|
+
const listDeploymentAliases = (variables, signal) => fetch$1({ url: "/v2/deployments/{id}/aliases", method: "get", ...variables, signal });
|
|
555
|
+
const assignAlias = (variables, signal) => fetch$1({ url: "/v2/deployments/{id}/aliases", method: "post", ...variables, signal });
|
|
516
556
|
const listAliases = (variables, signal) => fetch$1({
|
|
517
557
|
url: "/v4/aliases",
|
|
518
558
|
method: "get",
|
|
@@ -531,8 +571,6 @@ const deleteAlias = (variables, signal) => fetch$1({
|
|
|
531
571
|
...variables,
|
|
532
572
|
signal
|
|
533
573
|
});
|
|
534
|
-
const listDeploymentAliases = (variables, signal) => fetch$1({ url: "/v2/deployments/{id}/aliases", method: "get", ...variables, signal });
|
|
535
|
-
const assignAlias = (variables, signal) => fetch$1({ url: "/v2/deployments/{id}/aliases", method: "post", ...variables, signal });
|
|
536
574
|
const getCertById = (variables, signal) => fetch$1({
|
|
537
575
|
url: "/v7/certs/{id}",
|
|
538
576
|
method: "get",
|
|
@@ -635,6 +673,7 @@ const operationsByTag = {
|
|
|
635
673
|
},
|
|
636
674
|
deployments: {
|
|
637
675
|
getDeploymentEvents,
|
|
676
|
+
updateIntegrationDeploymentAction,
|
|
638
677
|
getDeployment,
|
|
639
678
|
createDeployment,
|
|
640
679
|
cancelDeployment,
|
|
@@ -644,6 +683,14 @@ const operationsByTag = {
|
|
|
644
683
|
getDeployments,
|
|
645
684
|
deleteDeployment
|
|
646
685
|
},
|
|
686
|
+
integrations: {
|
|
687
|
+
updateIntegrationDeploymentAction,
|
|
688
|
+
getConfigurations,
|
|
689
|
+
getConfiguration,
|
|
690
|
+
deleteConfiguration,
|
|
691
|
+
gitNamespaces,
|
|
692
|
+
searchRepo
|
|
693
|
+
},
|
|
647
694
|
domains: {
|
|
648
695
|
buyDomain,
|
|
649
696
|
checkDomainPrice,
|
|
@@ -657,6 +704,15 @@ const operationsByTag = {
|
|
|
657
704
|
deleteDomain
|
|
658
705
|
},
|
|
659
706
|
dns: { getRecords, createRecord, updateRecord, removeRecord },
|
|
707
|
+
logDrains: {
|
|
708
|
+
getConfigurableLogDrain,
|
|
709
|
+
deleteConfigurableLogDrain,
|
|
710
|
+
getAllLogDrains,
|
|
711
|
+
createConfigurableLogDrain,
|
|
712
|
+
getIntegrationLogDrains,
|
|
713
|
+
createLogDrain,
|
|
714
|
+
deleteIntegrationLogDrain
|
|
715
|
+
},
|
|
660
716
|
edgeConfig: {
|
|
661
717
|
getEdgeConfigs,
|
|
662
718
|
createEdgeConfig,
|
|
@@ -685,28 +741,25 @@ const operationsByTag = {
|
|
|
685
741
|
submitInvoice,
|
|
686
742
|
getInvoice,
|
|
687
743
|
updateInvoice,
|
|
744
|
+
submitPrepaymentBalances,
|
|
688
745
|
updateResourceSecrets,
|
|
689
746
|
updateResourceSecretsById,
|
|
690
|
-
|
|
747
|
+
importResource,
|
|
748
|
+
exchangeSsoToken,
|
|
749
|
+
postV1InstallationsIntegrationConfigurationIdResourcesResourceIdExperimentationItems,
|
|
750
|
+
patchV1InstallationsIntegrationConfigurationIdResourcesResourceIdExperimentationItemsItemId,
|
|
751
|
+
deleteV1InstallationsIntegrationConfigurationIdResourcesResourceIdExperimentationItemsItemId,
|
|
752
|
+
putV1InstallationsIntegrationConfigurationIdResourcesResourceIdExperimentationEdgeConfig
|
|
691
753
|
},
|
|
692
|
-
integrations: { getConfigurations, getConfiguration, deleteConfiguration, gitNamespaces, searchRepo },
|
|
693
754
|
authentication: { exchangeSsoToken, listAuthTokens, createAuthToken, getAuthToken, deleteAuthToken },
|
|
694
|
-
|
|
695
|
-
getIntegrationLogDrains,
|
|
696
|
-
createLogDrain,
|
|
697
|
-
deleteIntegrationLogDrain,
|
|
698
|
-
getConfigurableLogDrain,
|
|
699
|
-
deleteConfigurableLogDrain,
|
|
700
|
-
getAllLogDrains,
|
|
701
|
-
createConfigurableLogDrain
|
|
702
|
-
},
|
|
755
|
+
apiExperimentation: { getV1ExperimentationItems },
|
|
703
756
|
projectMembers: { getProjectMembers, addProjectMember, removeProjectMember },
|
|
704
757
|
environment: {
|
|
705
|
-
|
|
758
|
+
createCustomEnvironment,
|
|
706
759
|
getV9ProjectsIdOrNameCustomEnvironments,
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
760
|
+
getCustomEnvironment,
|
|
761
|
+
updateCustomEnvironment,
|
|
762
|
+
removeCustomEnvironment
|
|
710
763
|
},
|
|
711
764
|
security: {
|
|
712
765
|
updateAttackChallengeMode,
|
|
@@ -734,7 +787,7 @@ const operationsByTag = {
|
|
|
734
787
|
deleteTeamInviteCode
|
|
735
788
|
},
|
|
736
789
|
webhooks: { createWebhook, getWebhooks, getWebhook, deleteWebhook },
|
|
737
|
-
aliases: {
|
|
790
|
+
aliases: { listDeploymentAliases, assignAlias, listAliases, getAlias, deleteAlias },
|
|
738
791
|
certs: { getCertById, removeCert, issueCert, uploadCert },
|
|
739
792
|
secrets: { getSecrets, createSecret, renameSecret, getSecret, deleteSecret }
|
|
740
793
|
};
|