vercel-api-js 1.22.4 → 1.23.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/dist/types.mjs CHANGED
@@ -2044,6 +2044,8 @@ const userEventTypeEnum = {
2044
2044
  "login-connection-linked": "login-connection-linked",
2045
2045
  "login-connection-unlinked": "login-connection-unlinked",
2046
2046
  "manual-deployment-promotion-created": "manual-deployment-promotion-created",
2047
+ "marketplace-auto-card-collection-updated": "marketplace-auto-card-collection-updated",
2048
+ "marketplace-billing-collection-updated": "marketplace-billing-collection-updated",
2047
2049
  "marketplace-flex-commit-opt-in": "marketplace-flex-commit-opt-in",
2048
2050
  "marketplace-integration-allowlist-updated": "marketplace-integration-allowlist-updated",
2049
2051
  "microfrontend-group-added": "microfrontend-group-added",
@@ -2759,6 +2761,8 @@ const listEventTypeNameEnum = {
2759
2761
  "login-connection-linked": "login-connection-linked",
2760
2762
  "login-connection-unlinked": "login-connection-unlinked",
2761
2763
  "manual-deployment-promotion-created": "manual-deployment-promotion-created",
2764
+ "marketplace-auto-card-collection-updated": "marketplace-auto-card-collection-updated",
2765
+ "marketplace-billing-collection-updated": "marketplace-billing-collection-updated",
2762
2766
  "marketplace-flex-commit-opt-in": "marketplace-flex-commit-opt-in",
2763
2767
  "marketplace-integration-allowlist-updated": "marketplace-integration-allowlist-updated",
2764
2768
  "microfrontend-group-added": "microfrontend-group-added",
@@ -3449,6 +3453,8 @@ const listEventTypeReplacedByEnum = {
3449
3453
  "login-connection-linked": "login-connection-linked",
3450
3454
  "login-connection-unlinked": "login-connection-unlinked",
3451
3455
  "manual-deployment-promotion-created": "manual-deployment-promotion-created",
3456
+ "marketplace-auto-card-collection-updated": "marketplace-auto-card-collection-updated",
3457
+ "marketplace-billing-collection-updated": "marketplace-billing-collection-updated",
3452
3458
  "marketplace-flex-commit-opt-in": "marketplace-flex-commit-opt-in",
3453
3459
  "marketplace-integration-allowlist-updated": "marketplace-integration-allowlist-updated",
3454
3460
  "microfrontend-group-added": "microfrontend-group-added",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel-api-js",
3
- "version": "1.22.4",
3
+ "version": "1.23.0",
4
4
  "description": "Vercel auto-generated type-safe API client",
5
5
  "type": "module",
6
6
  "author": "SferaDev",
@@ -4162,15 +4162,17 @@ const resolveUrl = (url, queryParams = {})=>{
4162
4162
  return data;
4163
4163
  }
4164
4164
  /**
4165
- * @summary List issuers
4166
- * @description Retrieve the list of KMS issuers that belong to the authenticated team. The results are paginated.
4167
- * @link /v1/kms/issuers
4168
- */ async function listKmsIssuers({ queryParams, config } = {}) {
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: "GET",
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 Create an issuer
4183
- * @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.
4184
- * @link /v1/kms/issuers
4185
- */ async function createKmsIssuer({ queryParams, config } = {}) {
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 Sign a message
4200
- * @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.
4201
- * @link /v1/kms/issuers/{issuerId}/sign/message
4202
- */ async function signKmsMessage({ pathParams, config } = {}) {
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: "POST",
4209
- url: `/v1/kms/issuers/${pathParams.issuerId}/sign/message`,
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 Sign a token
4219
- * @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.
4220
- * @link /v1/kms/issuers/{issuerId}/sign/token
4221
- */ async function signKmsToken({ pathParams, config } = {}) {
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/${pathParams.issuerId}/sign/token`,
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 List issuers
4166
- * @description Retrieve the list of KMS issuers that belong to the authenticated team. The results are paginated.
4167
- * @link /v1/kms/issuers
4168
- */ async function listKmsIssuers({ queryParams, config } = {}) {
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: "GET",
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 Create an issuer
4183
- * @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.
4184
- * @link /v1/kms/issuers
4185
- */ async function createKmsIssuer({ queryParams, config } = {}) {
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 Sign a message
4200
- * @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.
4201
- * @link /v1/kms/issuers/{issuerId}/sign/message
4202
- */ async function signKmsMessage({ pathParams, config } = {}) {
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: "POST",
4209
- url: `/v1/kms/issuers/${pathParams.issuerId}/sign/message`,
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 Sign a token
4219
- * @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.
4220
- * @link /v1/kms/issuers/{issuerId}/sign/token
4221
- */ async function signKmsToken({ pathParams, config } = {}) {
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/${pathParams.issuerId}/sign/token`,
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"