vercel-api-js 1.24.1 → 1.24.3

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.
@@ -810,7 +810,7 @@ const connectCreateConnectorRequestSchema = z__namespace.union([
810
810
  environments: z__namespace.array(z__namespace.string().regex(/^env_/)).min(1).optional().describe("Environments for the project connection. Requires projectId. Use one or more built-in environment names or stable custom environment IDs that belong to the project. Duplicate values are accepted and removed."),
811
811
  triggers: z__namespace.boolean().optional().describe("Whether the triggers are enabled for this connector."),
812
812
  triggerType: z__namespace.string().optional().describe("Trigger driver type. Resolved automatically from the service or known service registry when not provided. Only set when using the newly decoupled triggers resolution flow."),
813
- triggerData: z__namespace.object({}).catchall(z__namespace.unknown()).optional().describe("Trigger-specific credentials (e.g. webhook signing secret). Validated and encrypted against the trigger type definition."),
813
+ triggerData: z__namespace.object({}).catchall(z__namespace.unknown()).optional().describe("Trigger configuration, validated and encrypted by the trigger driver. An empty object applies driver defaults."),
814
814
  triggerDestination: z__namespace.union([
815
815
  z__namespace.object({
816
816
  projectId: z__namespace.string().min(1).optional().describe("Project that receives triggers. During connector creation, omit it to use the top-level projectId."),
@@ -1087,6 +1087,7 @@ const connectConnectorUpdateDataSchema = z__namespace.union([
1087
1087
  ]).describe("Provider configuration fields for the connector type.");
1088
1088
  const connectUpdateConnectorRequestSchema = z__namespace.object({
1089
1089
  triggers: z__namespace.boolean().optional().describe("Whether the triggers are enabled for this connector."),
1090
+ triggerData: z__namespace.object({}).catchall(z__namespace.unknown()).optional().describe("Trigger configuration, validated and encrypted by the trigger driver. An empty object applies driver defaults."),
1090
1091
  events: z__namespace.array(z__namespace.string()).optional().describe("Default trigger events for this connector."),
1091
1092
  data: z__namespace.unknown().optional().describe("Provider configuration fields to update."),
1092
1093
  icon: z__namespace.string().regex(/^[0-9a-fA-F]{40}$/).optional().describe("SHA-1 digest of a PNG or JPEG icon that is at least 640 by 640 pixels. This field does not accept a URL or image bytes.\n\nFirst compute the digest and upload the raw image with [POST /v2/files](https://vercel.com/docs/rest-api/deployments/upload-deployment-files). Send `Content-Length` and the same 40-character digest in `x-vercel-digest`. Then set `icon` to that digest.\n\n```js\nimport { createHash } from 'node:crypto';\nimport { readFile } from 'node:fs/promises';\n\nconst VERCEL_TOKEN = process.env.VERCEL_TOKEN;\nconst connectorId = 'scl_...';\nconst bytes = await readFile('icon.png');\nconst digest = createHash('sha1').update(bytes).digest('hex');\n\nawait fetch('https://api.vercel.com/v2/files', {\n method: 'POST',\n headers: {\n Authorization: `Bearer ${VERCEL_TOKEN}`,\n 'Content-Type': 'application/octet-stream',\n 'Content-Length': String(bytes.length),\n 'x-vercel-digest': digest,\n },\n body: bytes,\n});\n\nawait fetch(`https://api.vercel.com/v2/connect/connectors/${connectorId}`, {\n method: 'PATCH',\n headers: {\n Authorization: `Bearer ${VERCEL_TOKEN}`,\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({ icon: digest }),\n});\n```\n"),
@@ -8288,7 +8289,9 @@ const userEventSchema = z__namespace.object({
8288
8289
  z__namespace.literal(true)
8289
8290
  ]).optional().describe("Keep track if the webhook has been called for the month")
8290
8291
  }).describe("Represents a budget for tracking and notifying teams on their spending.")
8291
- })
8292
+ }),
8293
+ projectId: z__namespace.string().optional().describe("Stored for project budgets. Same value as `budget.scopeId`."),
8294
+ projectName: z__namespace.string().optional()
8292
8295
  }).strict(),
8293
8296
  z__namespace.object({
8294
8297
  budget: z__namespace.object({
@@ -8328,7 +8331,10 @@ const userEventSchema = z__namespace.object({
8328
8331
  z__namespace.literal(false),
8329
8332
  z__namespace.literal(true)
8330
8333
  ]).optional().describe("Keep track if the webhook has been called for the month")
8331
- }).describe("Represents a budget for tracking and notifying teams on their spending.")
8334
+ }).describe("Represents a budget for tracking and notifying teams on their spending."),
8335
+ projectId: z__namespace.string().optional().describe("Stored for project budgets. Same value as `budget.scopeId`."),
8336
+ projectName: z__namespace.string().optional(),
8337
+ webhookUrl: z__namespace.string().optional()
8332
8338
  }).strict(),
8333
8339
  z__namespace.object({
8334
8340
  budget: z__namespace.object({
@@ -8369,7 +8375,8 @@ const userEventSchema = z__namespace.object({
8369
8375
  z__namespace.literal(true)
8370
8376
  ]).optional().describe("Keep track if the webhook has been called for the month")
8371
8377
  }).describe("Represents a budget for tracking and notifying teams on their spending."),
8372
- webhookUrl: z__namespace.string().optional()
8378
+ projectId: z__namespace.string().optional().describe("Stored for project budgets. Same value as `budget.scopeId`."),
8379
+ projectName: z__namespace.string().optional()
8373
8380
  }).strict(),
8374
8381
  z__namespace.object({
8375
8382
  budget: z__namespace.object({
@@ -8449,9 +8456,13 @@ const userEventSchema = z__namespace.object({
8449
8456
  ]).optional().describe("Keep track if the webhook has been called for the month")
8450
8457
  }).optional().describe("Represents a budget for tracking and notifying teams on their spending."),
8451
8458
  prevWebhookUrl: z__namespace.string().optional(),
8459
+ projectId: z__namespace.string().optional().describe("Stored for project budgets. Same value as `budget.scopeId`."),
8460
+ projectName: z__namespace.string().optional().describe("Injected at read time from `payload.projectId`."),
8452
8461
  webhookUrl: z__namespace.string().optional()
8453
8462
  }).strict(),
8454
8463
  z__namespace.object({
8464
+ projectId: z__namespace.string().optional(),
8465
+ projectName: z__namespace.string().optional(),
8455
8466
  webhookUrl: z__namespace.string().optional()
8456
8467
  }).strict(),
8457
8468
  z__namespace.object({
@@ -17166,12 +17177,14 @@ const updateIntegrationDeploymentActionStatus202Schema = z__namespace.unknown();
17166
17177
  const updateIntegrationDeploymentActionStatus400Schema = z__namespace.unknown();
17167
17178
  const updateIntegrationDeploymentActionStatus401Schema = z__namespace.unknown();
17168
17179
  const updateIntegrationDeploymentActionStatus403Schema = z__namespace.unknown();
17180
+ const updateIntegrationDeploymentActionStatus404Schema = z__namespace.unknown();
17169
17181
  const updateIntegrationDeploymentActionStatus410Schema = z__namespace.unknown();
17170
17182
  const updateIntegrationDeploymentActionResponseSchema = updateIntegrationDeploymentActionStatus202Schema;
17171
17183
  const updateIntegrationDeploymentActionErrorSchema = z__namespace.union([
17172
17184
  updateIntegrationDeploymentActionStatus400Schema,
17173
17185
  updateIntegrationDeploymentActionStatus401Schema,
17174
17186
  updateIntegrationDeploymentActionStatus403Schema,
17187
+ updateIntegrationDeploymentActionStatus404Schema,
17175
17188
  updateIntegrationDeploymentActionStatus410Schema
17176
17189
  ]);
17177
17190
  const getDeploymentPathIdOrUrlSchema = z__namespace.string().describe("The unique identifier or hostname of the deployment.").meta({
@@ -19931,6 +19944,8 @@ const gitNamespacesErrorSchema = z__namespace.union([
19931
19944
  ]);
19932
19945
  const searchRepoQueryQuerySchema = z__namespace.string().optional();
19933
19946
  const searchRepoQueryNamespaceIdSchema = z__namespace.union([
19947
+ z__namespace.string(),
19948
+ z__namespace.number(),
19934
19949
  z__namespace.string(),
19935
19950
  z__namespace.number()
19936
19951
  ]).nullish();
@@ -31646,6 +31661,7 @@ exports.updateIntegrationDeploymentActionStatus202Schema = updateIntegrationDepl
31646
31661
  exports.updateIntegrationDeploymentActionStatus400Schema = updateIntegrationDeploymentActionStatus400Schema;
31647
31662
  exports.updateIntegrationDeploymentActionStatus401Schema = updateIntegrationDeploymentActionStatus401Schema;
31648
31663
  exports.updateIntegrationDeploymentActionStatus403Schema = updateIntegrationDeploymentActionStatus403Schema;
31664
+ exports.updateIntegrationDeploymentActionStatus404Schema = updateIntegrationDeploymentActionStatus404Schema;
31649
31665
  exports.updateIntegrationDeploymentActionStatus410Schema = updateIntegrationDeploymentActionStatus410Schema;
31650
31666
  exports.updateInvoiceErrorSchema = updateInvoiceErrorSchema;
31651
31667
  exports.updateInvoicePathIntegrationConfigurationIdSchema = updateInvoicePathIntegrationConfigurationIdSchema;
package/dist/schemas.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
 
3
- var schemas = require('./schemas-oqtb4s3h.cjs');
3
+ var schemas = require('./schemas-oaxc03op.cjs');
4
4
 
5
5
 
6
6
 
@@ -4811,6 +4811,7 @@ exports.updateIntegrationDeploymentActionStatus202Schema = schemas.updateIntegra
4811
4811
  exports.updateIntegrationDeploymentActionStatus400Schema = schemas.updateIntegrationDeploymentActionStatus400Schema;
4812
4812
  exports.updateIntegrationDeploymentActionStatus401Schema = schemas.updateIntegrationDeploymentActionStatus401Schema;
4813
4813
  exports.updateIntegrationDeploymentActionStatus403Schema = schemas.updateIntegrationDeploymentActionStatus403Schema;
4814
+ exports.updateIntegrationDeploymentActionStatus404Schema = schemas.updateIntegrationDeploymentActionStatus404Schema;
4814
4815
  exports.updateIntegrationDeploymentActionStatus410Schema = schemas.updateIntegrationDeploymentActionStatus410Schema;
4815
4816
  exports.updateInvoiceErrorSchema = schemas.updateInvoiceErrorSchema;
4816
4817
  exports.updateInvoicePathIntegrationConfigurationIdSchema = schemas.updateInvoicePathIntegrationConfigurationIdSchema;