vercel-api-js 0.1.25 → 0.3.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 +3 -3
- package/CHANGELOG.md +25 -0
- package/dist/index.cjs +9 -34
- package/dist/index.d.ts +8374 -4407
- package/dist/index.mjs +9 -34
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -169,12 +169,7 @@ const updateCheck = (variables, signal) => fetch$1({ url: '/v1/deployments/{depl
|
|
|
169
169
|
/**
|
|
170
170
|
* Rerequest a selected check that has failed.
|
|
171
171
|
*/
|
|
172
|
-
const rerequestCheck = (variables, signal) => fetch$1({
|
|
173
|
-
url: '/v1/deployments/{deploymentId}/checks/{checkId}/rerequest',
|
|
174
|
-
method: 'post',
|
|
175
|
-
...variables,
|
|
176
|
-
signal
|
|
177
|
-
});
|
|
172
|
+
const rerequestCheck = (variables, signal) => fetch$1({ url: '/v1/deployments/{deploymentId}/checks/{checkId}/rerequest', method: 'post', ...variables, signal });
|
|
178
173
|
/**
|
|
179
174
|
* Update the data cache feature on a project.
|
|
180
175
|
*/
|
|
@@ -333,7 +328,7 @@ const getEdgeConfigItems = (variables, signal) => fetch$1({ url: '/v1/edge-confi
|
|
|
333
328
|
/**
|
|
334
329
|
* Update multiple Edge Config Items in batch.
|
|
335
330
|
*/
|
|
336
|
-
const
|
|
331
|
+
const patchEdgeConfigItems = (variables, signal) => fetch$1({ url: '/v1/edge-config/{edgeConfigId}/items', method: 'patch', ...variables, signal });
|
|
337
332
|
/**
|
|
338
333
|
* Returns a specific Edge Config Item.
|
|
339
334
|
*/
|
|
@@ -646,12 +641,7 @@ const deleteTeam = (variables, signal) => fetch$1({
|
|
|
646
641
|
/**
|
|
647
642
|
* Delete an active Team invite code.
|
|
648
643
|
*/
|
|
649
|
-
const deleteTeamInviteCode = (variables, signal) => fetch$1({
|
|
650
|
-
url: '/v1/teams/{teamId}/invites/{inviteId}',
|
|
651
|
-
method: 'delete',
|
|
652
|
-
...variables,
|
|
653
|
-
signal
|
|
654
|
-
});
|
|
644
|
+
const deleteTeamInviteCode = (variables, signal) => fetch$1({ url: '/v1/teams/{teamId}/invites/{inviteId}', method: 'delete', ...variables, signal });
|
|
655
645
|
/**
|
|
656
646
|
* Before you create a deployment you need to upload the required files for that deployment. To do it, you need to first upload each file to this endpoint. Once that's completed, you can create a new deployment with the uploaded files. The file content must be placed inside the body of the request. In the case of a successful response you'll receive a status code 200 with an empty body.
|
|
657
647
|
*/
|
|
@@ -730,12 +720,7 @@ const getWebhook = (variables, signal) => fetch$1({
|
|
|
730
720
|
/**
|
|
731
721
|
* Deletes a webhook
|
|
732
722
|
*/
|
|
733
|
-
const deleteWebhook = (variables, signal) => fetch$1({
|
|
734
|
-
url: '/v1/webhooks/{id}',
|
|
735
|
-
method: 'delete',
|
|
736
|
-
...variables,
|
|
737
|
-
signal
|
|
738
|
-
});
|
|
723
|
+
const deleteWebhook = (variables, signal) => fetch$1({ url: '/v1/webhooks/{id}', method: 'delete', ...variables, signal });
|
|
739
724
|
/**
|
|
740
725
|
* Retrieves a list of aliases for the authenticated User or Team. When `domain` is provided, only aliases for that domain will be returned. When `projectId` is provided, it will only return the given project aliases.
|
|
741
726
|
*/
|
|
@@ -757,12 +742,7 @@ const getAlias = (variables, signal) => fetch$1({
|
|
|
757
742
|
/**
|
|
758
743
|
* Delete an Alias with the specified ID.
|
|
759
744
|
*/
|
|
760
|
-
const deleteAlias = (variables, signal) => fetch$1({
|
|
761
|
-
url: '/v2/aliases/{aliasId}',
|
|
762
|
-
method: 'delete',
|
|
763
|
-
...variables,
|
|
764
|
-
signal
|
|
765
|
-
});
|
|
745
|
+
const deleteAlias = (variables, signal) => fetch$1({ url: '/v2/aliases/{aliasId}', method: 'delete', ...variables, signal });
|
|
766
746
|
/**
|
|
767
747
|
* Retrieves all Aliases for the Deployment with the given ID. The authenticated user or team must own the deployment.
|
|
768
748
|
*/
|
|
@@ -812,9 +792,9 @@ const uploadCert = (variables, signal) => fetch$1({
|
|
|
812
792
|
*/
|
|
813
793
|
const listDeploymentFiles = (variables, signal) => fetch$1({ url: '/v6/deployments/{id}/files', method: 'get', ...variables, signal });
|
|
814
794
|
/**
|
|
815
|
-
* Allows to retrieve the content of a file by supplying the file identifier and the deployment unique identifier. The response body will contain the
|
|
795
|
+
* Allows to retrieve the content of a file by supplying the file identifier and the deployment unique identifier. The response body will contain a JSON response containing the contents of the file encoded as base64.
|
|
816
796
|
*/
|
|
817
|
-
const getDeploymentFileContents = (variables, signal) => fetch$1({ url: '/
|
|
797
|
+
const getDeploymentFileContents = (variables, signal) => fetch$1({ url: '/v7/deployments/{id}/files/{fileId}', method: 'get', ...variables, signal });
|
|
818
798
|
/**
|
|
819
799
|
* List deployments under the authenticated user or team. If a deployment hasn't finished uploading (is incomplete), the `url` property will have a value of `null`.
|
|
820
800
|
*/
|
|
@@ -880,12 +860,7 @@ const getSecret = (variables, signal) => fetch$1({
|
|
|
880
860
|
/**
|
|
881
861
|
* This deletes the user or team’s secret defined in the URL.
|
|
882
862
|
*/
|
|
883
|
-
const deleteSecret = (variables, signal) => fetch$1({
|
|
884
|
-
url: '/v2/secrets/{idOrName}',
|
|
885
|
-
method: 'delete',
|
|
886
|
-
...variables,
|
|
887
|
-
signal
|
|
888
|
-
});
|
|
863
|
+
const deleteSecret = (variables, signal) => fetch$1({ url: '/v2/secrets/{idOrName}', method: 'delete', ...variables, signal });
|
|
889
864
|
const operationsByTag = {
|
|
890
865
|
artifacts: { recordEvents, status, uploadArtifact, downloadArtifact, artifactQuery },
|
|
891
866
|
checks: { createCheck, getAllChecks, getCheck, updateCheck, rerequestCheck },
|
|
@@ -941,7 +916,7 @@ const operationsByTag = {
|
|
|
941
916
|
updateEdgeConfig,
|
|
942
917
|
deleteEdgeConfig,
|
|
943
918
|
getEdgeConfigItems,
|
|
944
|
-
|
|
919
|
+
patchEdgeConfigItems,
|
|
945
920
|
getEdgeConfigItem,
|
|
946
921
|
getEdgeConfigTokens,
|
|
947
922
|
deleteEdgeConfigTokens,
|