vercel-api-js 1.22.4 → 1.22.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.
- package/dist/components.cjs +1 -1
- package/dist/components.d.mts +31 -31
- package/dist/components.d.mts.map +1 -1
- package/dist/components.mjs +1 -1
- package/dist/effect.cjs +1 -1
- package/dist/effect.d.mts +5 -5
- package/dist/effect.d.mts.map +1 -1
- package/dist/effect.mjs +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.d.ts +125 -119
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/{schemas-lx16ogc0.cjs → schemas-d18hcxop.cjs} +38 -32
- package/dist/{schemas-iwnqohvk.js → schemas-jgujt0tx.js} +37 -33
- package/dist/schemas.cjs +3 -1
- package/dist/schemas.d.mts +23 -21
- package/dist/schemas.d.mts.map +1 -1
- package/dist/schemas.mjs +1 -1
- package/dist/types.d.mts +69 -65
- package/dist/types.d.mts.map +1 -1
- package/package.json +1 -1
- package/dist/{components-hyg3vbj4.cjs → components-cuxd0v55.cjs} +39 -39
- package/dist/{components-o20wilwi.js → components-g9wc6knb.js} +39 -39
package/package.json
CHANGED
|
@@ -4162,15 +4162,17 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
4162
4162
|
return data;
|
|
4163
4163
|
}
|
|
4164
4164
|
/**
|
|
4165
|
-
* @summary
|
|
4166
|
-
* @description
|
|
4167
|
-
* @link /v1/kms/issuers
|
|
4168
|
-
*/ async function
|
|
4165
|
+
* @summary Sign a message
|
|
4166
|
+
* @description Sign a raw message with a KMS issuer's active signing key. Authenticate the request with a Vercel OIDC token in the `Authorization: Bearer` header; the issuer's policies decide which workloads are allowed to sign. The response `signature` is standard-base64 of the raw signature over the decoded message bytes. `keyId` and `algorithm` identify the signing key in the issuer's JWKS.
|
|
4167
|
+
* @link /v1/kms/issuers/{issuerId}/sign/message
|
|
4168
|
+
*/ async function signKmsMessage({ pathParams, config } = {}) {
|
|
4169
4169
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
4170
|
+
if (!pathParams.issuerId) {
|
|
4171
|
+
throw new Error(`Missing required path parameter: issuerId`);
|
|
4172
|
+
}
|
|
4170
4173
|
const data = await request({
|
|
4171
|
-
method: "
|
|
4172
|
-
url: `/v1/kms/issuers`,
|
|
4173
|
-
queryParams,
|
|
4174
|
+
method: "POST",
|
|
4175
|
+
url: `/v1/kms/issuers/${pathParams.issuerId}/sign/message`,
|
|
4174
4176
|
...requestConfig,
|
|
4175
4177
|
headers: {
|
|
4176
4178
|
...requestConfig.headers
|
|
@@ -4179,15 +4181,17 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
4179
4181
|
return data;
|
|
4180
4182
|
}
|
|
4181
4183
|
/**
|
|
4182
|
-
* @summary
|
|
4183
|
-
* @description
|
|
4184
|
-
* @link /v1/kms/issuers
|
|
4185
|
-
*/ async function
|
|
4184
|
+
* @summary Sign a token
|
|
4185
|
+
* @description Sign a JWT with a KMS issuer's active signing key. Authenticate the request with a Vercel OIDC token in the `Authorization: Bearer` header; the issuer's policies decide which workloads are allowed to sign.
|
|
4186
|
+
* @link /v1/kms/issuers/{issuerId}/sign/token
|
|
4187
|
+
*/ async function signKmsToken({ pathParams, config } = {}) {
|
|
4186
4188
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
4189
|
+
if (!pathParams.issuerId) {
|
|
4190
|
+
throw new Error(`Missing required path parameter: issuerId`);
|
|
4191
|
+
}
|
|
4187
4192
|
const data = await request({
|
|
4188
4193
|
method: "POST",
|
|
4189
|
-
url: `/v1/kms/issuers`,
|
|
4190
|
-
queryParams,
|
|
4194
|
+
url: `/v1/kms/issuers/${pathParams.issuerId}/sign/token`,
|
|
4191
4195
|
...requestConfig,
|
|
4192
4196
|
headers: {
|
|
4193
4197
|
...requestConfig.headers
|
|
@@ -4196,17 +4200,15 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
4196
4200
|
return data;
|
|
4197
4201
|
}
|
|
4198
4202
|
/**
|
|
4199
|
-
* @summary
|
|
4200
|
-
* @description
|
|
4201
|
-
* @link /v1/kms/issuers
|
|
4202
|
-
*/ async function
|
|
4203
|
+
* @summary List issuers
|
|
4204
|
+
* @description Retrieve the list of KMS issuers that belong to the authenticated team. The results are paginated.
|
|
4205
|
+
* @link /v1/kms/issuers
|
|
4206
|
+
*/ async function listKmsIssuers({ queryParams, config } = {}) {
|
|
4203
4207
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
4204
|
-
if (!pathParams.issuerId) {
|
|
4205
|
-
throw new Error(`Missing required path parameter: issuerId`);
|
|
4206
|
-
}
|
|
4207
4208
|
const data = await request({
|
|
4208
|
-
method: "
|
|
4209
|
-
url: `/v1/kms/issuers
|
|
4209
|
+
method: "GET",
|
|
4210
|
+
url: `/v1/kms/issuers`,
|
|
4211
|
+
queryParams,
|
|
4210
4212
|
...requestConfig,
|
|
4211
4213
|
headers: {
|
|
4212
4214
|
...requestConfig.headers
|
|
@@ -4215,17 +4217,15 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
4215
4217
|
return data;
|
|
4216
4218
|
}
|
|
4217
4219
|
/**
|
|
4218
|
-
* @summary
|
|
4219
|
-
* @description
|
|
4220
|
-
* @link /v1/kms/issuers
|
|
4221
|
-
*/ async function
|
|
4220
|
+
* @summary Create an issuer
|
|
4221
|
+
* @description Create a new KMS issuer for the authenticated team. An issuer owns the asymmetric signing keys that are used to sign tokens and messages.
|
|
4222
|
+
* @link /v1/kms/issuers
|
|
4223
|
+
*/ async function createKmsIssuer({ queryParams, config } = {}) {
|
|
4222
4224
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
4223
|
-
if (!pathParams.issuerId) {
|
|
4224
|
-
throw new Error(`Missing required path parameter: issuerId`);
|
|
4225
|
-
}
|
|
4226
4225
|
const data = await request({
|
|
4227
4226
|
method: "POST",
|
|
4228
|
-
url: `/v1/kms/issuers
|
|
4227
|
+
url: `/v1/kms/issuers`,
|
|
4228
|
+
queryParams,
|
|
4229
4229
|
...requestConfig,
|
|
4230
4230
|
headers: {
|
|
4231
4231
|
...requestConfig.headers
|
|
@@ -8507,10 +8507,10 @@ const operationsByPath = {
|
|
|
8507
8507
|
"POST /v2/integrations/log-drains": createLogDrain,
|
|
8508
8508
|
"DELETE /v1/integrations/log-drains/{id}": deleteIntegrationLogDrain,
|
|
8509
8509
|
"POST /api-keys": createApiKeys,
|
|
8510
|
-
"GET /v1/kms/issuers": listKmsIssuers,
|
|
8511
|
-
"POST /v1/kms/issuers": createKmsIssuer,
|
|
8512
8510
|
"POST /v1/kms/issuers/{issuerId}/sign/message": signKmsMessage,
|
|
8513
8511
|
"POST /v1/kms/issuers/{issuerId}/sign/token": signKmsToken,
|
|
8512
|
+
"GET /v1/kms/issuers": listKmsIssuers,
|
|
8513
|
+
"POST /v1/kms/issuers": createKmsIssuer,
|
|
8514
8514
|
"POST /v1/kms/issuers/{issuerId}/keys": createKmsSigningKey,
|
|
8515
8515
|
"POST /v1/kms/issuers/{issuerId}/keys/{keyId}/activate": activateKmsSigningKey,
|
|
8516
8516
|
"POST /v1/kms/issuers/{issuerId}/keys/{keyId}/revoke": revokeKmsSigningKey,
|
|
@@ -8995,10 +8995,10 @@ const operationsByTag = {
|
|
|
8995
8995
|
deleteAuthToken
|
|
8996
8996
|
},
|
|
8997
8997
|
kms: {
|
|
8998
|
-
listKmsIssuers,
|
|
8999
|
-
createKmsIssuer,
|
|
9000
8998
|
signKmsMessage,
|
|
9001
8999
|
signKmsToken,
|
|
9000
|
+
listKmsIssuers,
|
|
9001
|
+
createKmsIssuer,
|
|
9002
9002
|
createKmsSigningKey,
|
|
9003
9003
|
activateKmsSigningKey,
|
|
9004
9004
|
revokeKmsSigningKey,
|
|
@@ -9667,19 +9667,19 @@ const tagDictionary = {
|
|
|
9667
9667
|
]
|
|
9668
9668
|
},
|
|
9669
9669
|
kms: {
|
|
9670
|
-
GET: [
|
|
9671
|
-
"listKmsIssuers",
|
|
9672
|
-
"getKmsIssuer"
|
|
9673
|
-
],
|
|
9674
9670
|
POST: [
|
|
9675
|
-
"createKmsIssuer",
|
|
9676
9671
|
"signKmsMessage",
|
|
9677
9672
|
"signKmsToken",
|
|
9673
|
+
"createKmsIssuer",
|
|
9678
9674
|
"createKmsSigningKey",
|
|
9679
9675
|
"activateKmsSigningKey",
|
|
9680
9676
|
"revokeKmsSigningKey",
|
|
9681
9677
|
"createKmsIssuerPolicy"
|
|
9682
9678
|
],
|
|
9679
|
+
GET: [
|
|
9680
|
+
"listKmsIssuers",
|
|
9681
|
+
"getKmsIssuer"
|
|
9682
|
+
],
|
|
9683
9683
|
PATCH: [
|
|
9684
9684
|
"updateKmsIssuer",
|
|
9685
9685
|
"updateKmsIssuerPolicy"
|
|
@@ -4162,15 +4162,17 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
4162
4162
|
return data;
|
|
4163
4163
|
}
|
|
4164
4164
|
/**
|
|
4165
|
-
* @summary
|
|
4166
|
-
* @description
|
|
4167
|
-
* @link /v1/kms/issuers
|
|
4168
|
-
*/ async function
|
|
4165
|
+
* @summary Sign a message
|
|
4166
|
+
* @description Sign a raw message with a KMS issuer's active signing key. Authenticate the request with a Vercel OIDC token in the `Authorization: Bearer` header; the issuer's policies decide which workloads are allowed to sign. The response `signature` is standard-base64 of the raw signature over the decoded message bytes. `keyId` and `algorithm` identify the signing key in the issuer's JWKS.
|
|
4167
|
+
* @link /v1/kms/issuers/{issuerId}/sign/message
|
|
4168
|
+
*/ async function signKmsMessage({ pathParams, config } = {}) {
|
|
4169
4169
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
4170
|
+
if (!pathParams.issuerId) {
|
|
4171
|
+
throw new Error(`Missing required path parameter: issuerId`);
|
|
4172
|
+
}
|
|
4170
4173
|
const data = await request({
|
|
4171
|
-
method: "
|
|
4172
|
-
url: `/v1/kms/issuers`,
|
|
4173
|
-
queryParams,
|
|
4174
|
+
method: "POST",
|
|
4175
|
+
url: `/v1/kms/issuers/${pathParams.issuerId}/sign/message`,
|
|
4174
4176
|
...requestConfig,
|
|
4175
4177
|
headers: {
|
|
4176
4178
|
...requestConfig.headers
|
|
@@ -4179,15 +4181,17 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
4179
4181
|
return data;
|
|
4180
4182
|
}
|
|
4181
4183
|
/**
|
|
4182
|
-
* @summary
|
|
4183
|
-
* @description
|
|
4184
|
-
* @link /v1/kms/issuers
|
|
4185
|
-
*/ async function
|
|
4184
|
+
* @summary Sign a token
|
|
4185
|
+
* @description Sign a JWT with a KMS issuer's active signing key. Authenticate the request with a Vercel OIDC token in the `Authorization: Bearer` header; the issuer's policies decide which workloads are allowed to sign.
|
|
4186
|
+
* @link /v1/kms/issuers/{issuerId}/sign/token
|
|
4187
|
+
*/ async function signKmsToken({ pathParams, config } = {}) {
|
|
4186
4188
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
4189
|
+
if (!pathParams.issuerId) {
|
|
4190
|
+
throw new Error(`Missing required path parameter: issuerId`);
|
|
4191
|
+
}
|
|
4187
4192
|
const data = await request({
|
|
4188
4193
|
method: "POST",
|
|
4189
|
-
url: `/v1/kms/issuers`,
|
|
4190
|
-
queryParams,
|
|
4194
|
+
url: `/v1/kms/issuers/${pathParams.issuerId}/sign/token`,
|
|
4191
4195
|
...requestConfig,
|
|
4192
4196
|
headers: {
|
|
4193
4197
|
...requestConfig.headers
|
|
@@ -4196,17 +4200,15 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
4196
4200
|
return data;
|
|
4197
4201
|
}
|
|
4198
4202
|
/**
|
|
4199
|
-
* @summary
|
|
4200
|
-
* @description
|
|
4201
|
-
* @link /v1/kms/issuers
|
|
4202
|
-
*/ async function
|
|
4203
|
+
* @summary List issuers
|
|
4204
|
+
* @description Retrieve the list of KMS issuers that belong to the authenticated team. The results are paginated.
|
|
4205
|
+
* @link /v1/kms/issuers
|
|
4206
|
+
*/ async function listKmsIssuers({ queryParams, config } = {}) {
|
|
4203
4207
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
4204
|
-
if (!pathParams.issuerId) {
|
|
4205
|
-
throw new Error(`Missing required path parameter: issuerId`);
|
|
4206
|
-
}
|
|
4207
4208
|
const data = await request({
|
|
4208
|
-
method: "
|
|
4209
|
-
url: `/v1/kms/issuers
|
|
4209
|
+
method: "GET",
|
|
4210
|
+
url: `/v1/kms/issuers`,
|
|
4211
|
+
queryParams,
|
|
4210
4212
|
...requestConfig,
|
|
4211
4213
|
headers: {
|
|
4212
4214
|
...requestConfig.headers
|
|
@@ -4215,17 +4217,15 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
4215
4217
|
return data;
|
|
4216
4218
|
}
|
|
4217
4219
|
/**
|
|
4218
|
-
* @summary
|
|
4219
|
-
* @description
|
|
4220
|
-
* @link /v1/kms/issuers
|
|
4221
|
-
*/ async function
|
|
4220
|
+
* @summary Create an issuer
|
|
4221
|
+
* @description Create a new KMS issuer for the authenticated team. An issuer owns the asymmetric signing keys that are used to sign tokens and messages.
|
|
4222
|
+
* @link /v1/kms/issuers
|
|
4223
|
+
*/ async function createKmsIssuer({ queryParams, config } = {}) {
|
|
4222
4224
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
4223
|
-
if (!pathParams.issuerId) {
|
|
4224
|
-
throw new Error(`Missing required path parameter: issuerId`);
|
|
4225
|
-
}
|
|
4226
4225
|
const data = await request({
|
|
4227
4226
|
method: "POST",
|
|
4228
|
-
url: `/v1/kms/issuers
|
|
4227
|
+
url: `/v1/kms/issuers`,
|
|
4228
|
+
queryParams,
|
|
4229
4229
|
...requestConfig,
|
|
4230
4230
|
headers: {
|
|
4231
4231
|
...requestConfig.headers
|
|
@@ -8507,10 +8507,10 @@ const operationsByPath = {
|
|
|
8507
8507
|
"POST /v2/integrations/log-drains": createLogDrain,
|
|
8508
8508
|
"DELETE /v1/integrations/log-drains/{id}": deleteIntegrationLogDrain,
|
|
8509
8509
|
"POST /api-keys": createApiKeys,
|
|
8510
|
-
"GET /v1/kms/issuers": listKmsIssuers,
|
|
8511
|
-
"POST /v1/kms/issuers": createKmsIssuer,
|
|
8512
8510
|
"POST /v1/kms/issuers/{issuerId}/sign/message": signKmsMessage,
|
|
8513
8511
|
"POST /v1/kms/issuers/{issuerId}/sign/token": signKmsToken,
|
|
8512
|
+
"GET /v1/kms/issuers": listKmsIssuers,
|
|
8513
|
+
"POST /v1/kms/issuers": createKmsIssuer,
|
|
8514
8514
|
"POST /v1/kms/issuers/{issuerId}/keys": createKmsSigningKey,
|
|
8515
8515
|
"POST /v1/kms/issuers/{issuerId}/keys/{keyId}/activate": activateKmsSigningKey,
|
|
8516
8516
|
"POST /v1/kms/issuers/{issuerId}/keys/{keyId}/revoke": revokeKmsSigningKey,
|
|
@@ -8995,10 +8995,10 @@ const operationsByTag = {
|
|
|
8995
8995
|
deleteAuthToken
|
|
8996
8996
|
},
|
|
8997
8997
|
kms: {
|
|
8998
|
-
listKmsIssuers,
|
|
8999
|
-
createKmsIssuer,
|
|
9000
8998
|
signKmsMessage,
|
|
9001
8999
|
signKmsToken,
|
|
9000
|
+
listKmsIssuers,
|
|
9001
|
+
createKmsIssuer,
|
|
9002
9002
|
createKmsSigningKey,
|
|
9003
9003
|
activateKmsSigningKey,
|
|
9004
9004
|
revokeKmsSigningKey,
|
|
@@ -9667,19 +9667,19 @@ const tagDictionary = {
|
|
|
9667
9667
|
]
|
|
9668
9668
|
},
|
|
9669
9669
|
kms: {
|
|
9670
|
-
GET: [
|
|
9671
|
-
"listKmsIssuers",
|
|
9672
|
-
"getKmsIssuer"
|
|
9673
|
-
],
|
|
9674
9670
|
POST: [
|
|
9675
|
-
"createKmsIssuer",
|
|
9676
9671
|
"signKmsMessage",
|
|
9677
9672
|
"signKmsToken",
|
|
9673
|
+
"createKmsIssuer",
|
|
9678
9674
|
"createKmsSigningKey",
|
|
9679
9675
|
"activateKmsSigningKey",
|
|
9680
9676
|
"revokeKmsSigningKey",
|
|
9681
9677
|
"createKmsIssuerPolicy"
|
|
9682
9678
|
],
|
|
9679
|
+
GET: [
|
|
9680
|
+
"listKmsIssuers",
|
|
9681
|
+
"getKmsIssuer"
|
|
9682
|
+
],
|
|
9683
9683
|
PATCH: [
|
|
9684
9684
|
"updateKmsIssuer",
|
|
9685
9685
|
"updateKmsIssuerPolicy"
|