vercel-api-js 0.1.15 → 0.1.16
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 +6 -0
- package/dist/index.cjs +9 -7
- package/dist/index.d.ts +35 -35
- package/dist/index.mjs +9 -7
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
> vercel-api-js@0.1.
|
|
2
|
+
> vercel-api-js@0.1.16 build /home/runner/work/openapi-clients/openapi-clients/packages/vercel-api-js
|
|
3
3
|
> rimraf dist && rollup -c
|
|
4
4
|
|
|
5
5
|
[36m
|
|
6
6
|
[1m./src/index.ts[22m → [1mdist/index.cjs, dist/index.mjs[22m...[39m
|
|
7
|
-
[32mcreated [1mdist/index.cjs, dist/index.mjs[22m in [
|
|
7
|
+
[32mcreated [1mdist/index.cjs, dist/index.mjs[22m in [1m6.2s[22m[39m
|
|
8
8
|
[36m
|
|
9
9
|
[1m./src/index.ts[22m → [1mdist/index.d.ts[22m...[39m
|
|
10
|
-
[32mcreated [1mdist/index.d.ts[22m in [
|
|
10
|
+
[32mcreated [1mdist/index.d.ts[22m in [1m6.9s[22m[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -14,6 +14,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
14
14
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
15
15
|
PERFORMANCE OF THIS SOFTWARE.
|
|
16
16
|
***************************************************************************** */
|
|
17
|
+
/* global Reflect, Promise */
|
|
18
|
+
|
|
17
19
|
|
|
18
20
|
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
19
21
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
@@ -166,20 +168,20 @@ const removeCert = (variables, signal) => fetch$1({
|
|
|
166
168
|
signal
|
|
167
169
|
});
|
|
168
170
|
/**
|
|
169
|
-
*
|
|
171
|
+
* Upload a cert
|
|
170
172
|
*/
|
|
171
|
-
const
|
|
173
|
+
const uploadCert = (variables, signal) => fetch$1({
|
|
172
174
|
url: '/v7/certs',
|
|
173
|
-
method: '
|
|
175
|
+
method: 'put',
|
|
174
176
|
...variables,
|
|
175
177
|
signal
|
|
176
178
|
});
|
|
177
179
|
/**
|
|
178
|
-
*
|
|
180
|
+
* Issue a new cert
|
|
179
181
|
*/
|
|
180
|
-
const
|
|
182
|
+
const issueCert = (variables, signal) => fetch$1({
|
|
181
183
|
url: '/v7/certs',
|
|
182
|
-
method: '
|
|
184
|
+
method: 'post',
|
|
183
185
|
...variables,
|
|
184
186
|
signal
|
|
185
187
|
});
|
|
@@ -847,7 +849,7 @@ const operationsByTag = {
|
|
|
847
849
|
listDeploymentFiles,
|
|
848
850
|
getDeploymentFileContents
|
|
849
851
|
},
|
|
850
|
-
certs: { getCertById, removeCert,
|
|
852
|
+
certs: { getCertById, removeCert, uploadCert, issueCert },
|
|
851
853
|
user: { listUserEvents, getAuthUser, requestDelete },
|
|
852
854
|
aliases: { listAliases, getAlias, deleteAlias, listDeploymentAliases, assignAlias },
|
|
853
855
|
authentication: { listAuthTokens, createAuthToken, getAuthToken, deleteAuthToken, verifyToken, emailLogin },
|
package/dist/index.d.ts
CHANGED
|
@@ -3860,34 +3860,6 @@ type RemoveCertVariables = {
|
|
|
3860
3860
|
* Remove cert
|
|
3861
3861
|
*/
|
|
3862
3862
|
declare const removeCert: (variables: RemoveCertVariables, signal?: AbortSignal) => Promise<Record<string, any>>;
|
|
3863
|
-
type IssueCertQueryParams = {
|
|
3864
|
-
/**
|
|
3865
|
-
* The Team identifier or slug to perform the request on behalf of.
|
|
3866
|
-
*/
|
|
3867
|
-
teamId?: string;
|
|
3868
|
-
};
|
|
3869
|
-
type IssueCertError = ErrorWrapper<undefined>;
|
|
3870
|
-
type IssueCertResponse = {
|
|
3871
|
-
id: string;
|
|
3872
|
-
createdAt: number;
|
|
3873
|
-
expiresAt: number;
|
|
3874
|
-
autoRenew: boolean;
|
|
3875
|
-
cns: string[];
|
|
3876
|
-
};
|
|
3877
|
-
type IssueCertRequestBody = {
|
|
3878
|
-
/**
|
|
3879
|
-
* The common names the cert should be issued for
|
|
3880
|
-
*/
|
|
3881
|
-
cns?: string[];
|
|
3882
|
-
};
|
|
3883
|
-
type IssueCertVariables = {
|
|
3884
|
-
body?: IssueCertRequestBody;
|
|
3885
|
-
queryParams?: IssueCertQueryParams;
|
|
3886
|
-
} & FetcherExtraProps;
|
|
3887
|
-
/**
|
|
3888
|
-
* Issue a new cert
|
|
3889
|
-
*/
|
|
3890
|
-
declare const issueCert: (variables: IssueCertVariables, signal?: AbortSignal) => Promise<IssueCertResponse>;
|
|
3891
3863
|
type UploadCertQueryParams = {
|
|
3892
3864
|
/**
|
|
3893
3865
|
* The Team identifier or slug to perform the request on behalf of.
|
|
@@ -3928,6 +3900,34 @@ type UploadCertVariables = {
|
|
|
3928
3900
|
* Upload a cert
|
|
3929
3901
|
*/
|
|
3930
3902
|
declare const uploadCert: (variables: UploadCertVariables, signal?: AbortSignal) => Promise<UploadCertResponse>;
|
|
3903
|
+
type IssueCertQueryParams = {
|
|
3904
|
+
/**
|
|
3905
|
+
* The Team identifier or slug to perform the request on behalf of.
|
|
3906
|
+
*/
|
|
3907
|
+
teamId?: string;
|
|
3908
|
+
};
|
|
3909
|
+
type IssueCertError = ErrorWrapper<undefined>;
|
|
3910
|
+
type IssueCertResponse = {
|
|
3911
|
+
id: string;
|
|
3912
|
+
createdAt: number;
|
|
3913
|
+
expiresAt: number;
|
|
3914
|
+
autoRenew: boolean;
|
|
3915
|
+
cns: string[];
|
|
3916
|
+
};
|
|
3917
|
+
type IssueCertRequestBody = {
|
|
3918
|
+
/**
|
|
3919
|
+
* The common names the cert should be issued for
|
|
3920
|
+
*/
|
|
3921
|
+
cns?: string[];
|
|
3922
|
+
};
|
|
3923
|
+
type IssueCertVariables = {
|
|
3924
|
+
body?: IssueCertRequestBody;
|
|
3925
|
+
queryParams?: IssueCertQueryParams;
|
|
3926
|
+
} & FetcherExtraProps;
|
|
3927
|
+
/**
|
|
3928
|
+
* Issue a new cert
|
|
3929
|
+
*/
|
|
3930
|
+
declare const issueCert: (variables: IssueCertVariables, signal?: AbortSignal) => Promise<IssueCertResponse>;
|
|
3931
3931
|
type GetDeploymentEventsPathParams = {
|
|
3932
3932
|
/**
|
|
3933
3933
|
* The unique identifier or hostname of the deployment.
|
|
@@ -7423,7 +7423,7 @@ type CreateProjectRequestBody = {
|
|
|
7423
7423
|
/**
|
|
7424
7424
|
* Deployment Target or Targets in which the ENV variable will be used
|
|
7425
7425
|
*/
|
|
7426
|
-
target: ('
|
|
7426
|
+
target: ('production' | 'preview' | 'development') | ('production' | 'preview' | 'development')[];
|
|
7427
7427
|
/**
|
|
7428
7428
|
* The git branch of the environment variable
|
|
7429
7429
|
*
|
|
@@ -9368,7 +9368,7 @@ type CreateProjectEnvVariables = {
|
|
|
9368
9368
|
* @example production
|
|
9369
9369
|
* @example preview
|
|
9370
9370
|
*/
|
|
9371
|
-
target: ('
|
|
9371
|
+
target: ('production' | 'preview' | 'development')[];
|
|
9372
9372
|
/**
|
|
9373
9373
|
* The git branch of the environment variable
|
|
9374
9374
|
*
|
|
@@ -9401,7 +9401,7 @@ type CreateProjectEnvVariables = {
|
|
|
9401
9401
|
* @example production
|
|
9402
9402
|
* @example preview
|
|
9403
9403
|
*/
|
|
9404
|
-
target: ('
|
|
9404
|
+
target: ('production' | 'preview' | 'development')[];
|
|
9405
9405
|
/**
|
|
9406
9406
|
* The git branch of the environment variable
|
|
9407
9407
|
*
|
|
@@ -9701,7 +9701,7 @@ type EditProjectEnvRequestBody = {
|
|
|
9701
9701
|
*
|
|
9702
9702
|
* @example preview
|
|
9703
9703
|
*/
|
|
9704
|
-
target?: ('
|
|
9704
|
+
target?: ('production' | 'preview' | 'development')[];
|
|
9705
9705
|
/**
|
|
9706
9706
|
* The git branch of the environment variable
|
|
9707
9707
|
*
|
|
@@ -13528,8 +13528,8 @@ declare const operationsByTag: {
|
|
|
13528
13528
|
certs: {
|
|
13529
13529
|
getCertById: (variables: GetCertByIdVariables, signal?: AbortSignal) => Promise<GetCertByIdResponse>;
|
|
13530
13530
|
removeCert: (variables: RemoveCertVariables, signal?: AbortSignal) => Promise<Record<string, any>>;
|
|
13531
|
-
issueCert: (variables: IssueCertVariables, signal?: AbortSignal) => Promise<IssueCertResponse>;
|
|
13532
13531
|
uploadCert: (variables: UploadCertVariables, signal?: AbortSignal) => Promise<UploadCertResponse>;
|
|
13532
|
+
issueCert: (variables: IssueCertVariables, signal?: AbortSignal) => Promise<IssueCertResponse>;
|
|
13533
13533
|
};
|
|
13534
13534
|
user: {
|
|
13535
13535
|
listUserEvents: (variables: ListUserEventsVariables, signal?: AbortSignal) => Promise<ListUserEventsResponse>;
|
|
@@ -16186,8 +16186,8 @@ declare const operationsByPath: {
|
|
|
16186
16186
|
'PATCH /v12/deployments/{id}/cancel': (variables: CancelDeploymentVariables, signal?: AbortSignal | undefined) => Promise<CancelDeploymentResponse>;
|
|
16187
16187
|
'GET /v7/certs/{id}': (variables: GetCertByIdVariables, signal?: AbortSignal | undefined) => Promise<GetCertByIdResponse>;
|
|
16188
16188
|
'DELETE /v7/certs/{id}': (variables: RemoveCertVariables, signal?: AbortSignal | undefined) => Promise<Record<string, any>>;
|
|
16189
|
-
'POST /v7/certs': (variables: IssueCertVariables, signal?: AbortSignal | undefined) => Promise<IssueCertResponse>;
|
|
16190
16189
|
'PUT /v7/certs': (variables: UploadCertVariables, signal?: AbortSignal | undefined) => Promise<UploadCertResponse>;
|
|
16190
|
+
'POST /v7/certs': (variables: IssueCertVariables, signal?: AbortSignal | undefined) => Promise<IssueCertResponse>;
|
|
16191
16191
|
'GET /v2/deployments/{idOrUrl}/events': (variables: GetDeploymentEventsVariables, signal?: AbortSignal | undefined) => Promise<GetDeploymentEventsResponse>;
|
|
16192
16192
|
'GET /v3/events': (variables: ListUserEventsVariables, signal?: AbortSignal | undefined) => Promise<ListUserEventsResponse>;
|
|
16193
16193
|
'GET /v4/aliases': (variables: ListAliasesVariables, signal?: AbortSignal | undefined) => Promise<ListAliasesResponse>;
|
|
@@ -17185,8 +17185,8 @@ declare class VercelApi {
|
|
|
17185
17185
|
'PATCH /v12/deployments/{id}/cancel': (variables: CancelDeploymentVariables, signal?: AbortSignal | undefined) => Promise<CancelDeploymentResponse>;
|
|
17186
17186
|
'GET /v7/certs/{id}': (variables: GetCertByIdVariables, signal?: AbortSignal | undefined) => Promise<GetCertByIdResponse>;
|
|
17187
17187
|
'DELETE /v7/certs/{id}': (variables: RemoveCertVariables, signal?: AbortSignal | undefined) => Promise<Record<string, any>>;
|
|
17188
|
-
'POST /v7/certs': (variables: IssueCertVariables, signal?: AbortSignal | undefined) => Promise<IssueCertResponse>;
|
|
17189
17188
|
'PUT /v7/certs': (variables: UploadCertVariables, signal?: AbortSignal | undefined) => Promise<UploadCertResponse>;
|
|
17189
|
+
'POST /v7/certs': (variables: IssueCertVariables, signal?: AbortSignal | undefined) => Promise<IssueCertResponse>;
|
|
17190
17190
|
'GET /v2/deployments/{idOrUrl}/events': (variables: GetDeploymentEventsVariables, signal?: AbortSignal | undefined) => Promise<GetDeploymentEventsResponse>;
|
|
17191
17191
|
'GET /v3/events': (variables: ListUserEventsVariables, signal?: AbortSignal | undefined) => Promise<ListUserEventsResponse>;
|
|
17192
17192
|
'GET /v4/aliases': (variables: ListAliasesVariables, signal?: AbortSignal | undefined) => Promise<ListAliasesResponse>;
|
package/dist/index.mjs
CHANGED
|
@@ -12,6 +12,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
12
12
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
13
|
PERFORMANCE OF THIS SOFTWARE.
|
|
14
14
|
***************************************************************************** */
|
|
15
|
+
/* global Reflect, Promise */
|
|
16
|
+
|
|
15
17
|
|
|
16
18
|
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
17
19
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
@@ -164,20 +166,20 @@ const removeCert = (variables, signal) => fetch$1({
|
|
|
164
166
|
signal
|
|
165
167
|
});
|
|
166
168
|
/**
|
|
167
|
-
*
|
|
169
|
+
* Upload a cert
|
|
168
170
|
*/
|
|
169
|
-
const
|
|
171
|
+
const uploadCert = (variables, signal) => fetch$1({
|
|
170
172
|
url: '/v7/certs',
|
|
171
|
-
method: '
|
|
173
|
+
method: 'put',
|
|
172
174
|
...variables,
|
|
173
175
|
signal
|
|
174
176
|
});
|
|
175
177
|
/**
|
|
176
|
-
*
|
|
178
|
+
* Issue a new cert
|
|
177
179
|
*/
|
|
178
|
-
const
|
|
180
|
+
const issueCert = (variables, signal) => fetch$1({
|
|
179
181
|
url: '/v7/certs',
|
|
180
|
-
method: '
|
|
182
|
+
method: 'post',
|
|
181
183
|
...variables,
|
|
182
184
|
signal
|
|
183
185
|
});
|
|
@@ -845,7 +847,7 @@ const operationsByTag = {
|
|
|
845
847
|
listDeploymentFiles,
|
|
846
848
|
getDeploymentFileContents
|
|
847
849
|
},
|
|
848
|
-
certs: { getCertById, removeCert,
|
|
850
|
+
certs: { getCertById, removeCert, uploadCert, issueCert },
|
|
849
851
|
user: { listUserEvents, getAuthUser, requestDelete },
|
|
850
852
|
aliases: { listAliases, getAlias, deleteAlias, listDeploymentAliases, assignAlias },
|
|
851
853
|
authentication: { listAuthTokens, createAuthToken, getAuthToken, deleteAuthToken, verifyToken, emailLogin },
|