vercel-api-js 1.35.1 → 1.35.2

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.
@@ -920,7 +920,8 @@ const connectCreateConnectorRequestSchema = z__namespace.union([
920
920
  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."),
921
921
  triggers: z__namespace.boolean().optional().describe("Whether the triggers are enabled for this connector."),
922
922
  triggerType: z__namespace.string().optional().describe("Trigger driver type. Resolved automatically from the known service connection method when not provided. Only set when using the newly decoupled triggers resolution flow."),
923
- 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."),
923
+ triggerVerificationInput: z__namespace.object({}).catchall(z__namespace.unknown()).optional().describe("Plaintext verification inputs, validated by the trigger driver and encrypted into stored triggerData. An empty object makes no changes."),
924
+ triggerRegistrationInput: z__namespace.object({}).catchall(z__namespace.unknown()).optional().describe("Additional registration inputs, validated by the trigger driver. Requires triggers: true. Shared verification credentials are read from triggerData."),
924
925
  triggerDestination: z__namespace.union([
925
926
  z__namespace.strictObject({
926
927
  projectId: z__namespace.string().min(1).optional().describe("Project that receives triggers. During connector creation, omit it to use the top-level projectId."),
@@ -1200,7 +1201,8 @@ const connectConnectorUpdateDataSchema = z__namespace.union([
1200
1201
  ]).describe("Provider configuration fields for the connector type.");
1201
1202
  const connectUpdateConnectorRequestSchema = z__namespace.strictObject({
1202
1203
  triggers: z__namespace.boolean().optional().describe("Whether the triggers are enabled for this connector."),
1203
- 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."),
1204
+ triggerVerificationInput: z__namespace.object({}).catchall(z__namespace.unknown()).optional().describe("Plaintext verification inputs, validated by the trigger driver and encrypted into stored triggerData. An empty object makes no changes."),
1205
+ triggerRegistrationInput: z__namespace.object({}).catchall(z__namespace.unknown()).optional().describe("Additional registration inputs, validated by the trigger driver. Requires triggers: true. Shared verification credentials are read from triggerData."),
1204
1206
  events: z__namespace.array(z__namespace.string()).optional().describe("Default trigger events for this connector."),
1205
1207
  data: z__namespace.unknown().optional().describe("Provider configuration fields to update."),
1206
1208
  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"),
@@ -2814,6 +2816,10 @@ const userEventSchema = z__namespace.object({
2814
2816
  "refunded-payment-pending"
2815
2817
  ])
2816
2818
  }),
2819
+ z__namespace.strictObject({
2820
+ paymentMethodId: z__namespace.string(),
2821
+ subscriptionId: z__namespace.string()
2822
+ }),
2817
2823
  z__namespace.strictObject({
2818
2824
  brand: z__namespace.string().optional(),
2819
2825
  last4: z__namespace.string().optional(),
@@ -9730,6 +9736,7 @@ const userEventSchema = z__namespace.object({
9730
9736
  "v0-chat-ai-usage",
9731
9737
  "v0-chat-created",
9732
9738
  "v0-chat-message-sent",
9739
+ "v0-migration-payment-confirmed",
9733
9740
  "vcr-image-deleted",
9734
9741
  "vcr-image-pushed",
9735
9742
  "vcr-repository-created",
@@ -10527,6 +10534,7 @@ const listEventTypeSchema = z__namespace.object({
10527
10534
  "v0-chat-ai-usage",
10528
10535
  "v0-chat-created",
10529
10536
  "v0-chat-message-sent",
10537
+ "v0-migration-payment-confirmed",
10530
10538
  "vcr-image-deleted",
10531
10539
  "vcr-image-pushed",
10532
10540
  "vcr-repository-created",
@@ -11240,6 +11248,7 @@ const listEventTypeSchema = z__namespace.object({
11240
11248
  "v0-chat-ai-usage",
11241
11249
  "v0-chat-created",
11242
11250
  "v0-chat-message-sent",
11251
+ "v0-migration-payment-confirmed",
11243
11252
  "vcr-image-deleted",
11244
11253
  "vcr-image-pushed",
11245
11254
  "vcr-repository-created",
@@ -16348,6 +16357,7 @@ const updateConnectorStatus404Schema = z__namespace.unknown();
16348
16357
  const updateConnectorStatus409Schema = z__namespace.unknown();
16349
16358
  const updateConnectorStatus410Schema = z__namespace.unknown();
16350
16359
  const updateConnectorStatus422Schema = z__namespace.unknown();
16360
+ const updateConnectorStatus500Schema = z__namespace.unknown();
16351
16361
  const updateConnectorStatus501Schema = z__namespace.unknown();
16352
16362
  const updateConnectorStatus502Schema = z__namespace.unknown();
16353
16363
  const updateConnectorStatus504Schema = z__namespace.unknown();
@@ -16360,6 +16370,7 @@ const updateConnectorErrorSchema = z__namespace.union([
16360
16370
  updateConnectorStatus409Schema,
16361
16371
  updateConnectorStatus410Schema,
16362
16372
  updateConnectorStatus422Schema,
16373
+ updateConnectorStatus500Schema,
16363
16374
  updateConnectorStatus501Schema,
16364
16375
  updateConnectorStatus502Schema,
16365
16376
  updateConnectorStatus504Schema
@@ -32345,6 +32356,7 @@ exports.updateConnectorStatus404Schema = updateConnectorStatus404Schema;
32345
32356
  exports.updateConnectorStatus409Schema = updateConnectorStatus409Schema;
32346
32357
  exports.updateConnectorStatus410Schema = updateConnectorStatus410Schema;
32347
32358
  exports.updateConnectorStatus422Schema = updateConnectorStatus422Schema;
32359
+ exports.updateConnectorStatus500Schema = updateConnectorStatus500Schema;
32348
32360
  exports.updateConnectorStatus501Schema = updateConnectorStatus501Schema;
32349
32361
  exports.updateConnectorStatus502Schema = updateConnectorStatus502Schema;
32350
32362
  exports.updateConnectorStatus504Schema = updateConnectorStatus504Schema;
package/dist/schemas.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
 
3
- var schemas = require('./schemas-acb6ujvq.cjs');
3
+ var schemas = require('./schemas-o335sjhp.cjs');
4
4
 
5
5
 
6
6
 
@@ -5121,6 +5121,7 @@ exports.updateConnectorStatus404Schema = schemas.updateConnectorStatus404Schema;
5121
5121
  exports.updateConnectorStatus409Schema = schemas.updateConnectorStatus409Schema;
5122
5122
  exports.updateConnectorStatus410Schema = schemas.updateConnectorStatus410Schema;
5123
5123
  exports.updateConnectorStatus422Schema = schemas.updateConnectorStatus422Schema;
5124
+ exports.updateConnectorStatus500Schema = schemas.updateConnectorStatus500Schema;
5124
5125
  exports.updateConnectorStatus501Schema = schemas.updateConnectorStatus501Schema;
5125
5126
  exports.updateConnectorStatus502Schema = schemas.updateConnectorStatus502Schema;
5126
5127
  exports.updateConnectorStatus504Schema = schemas.updateConnectorStatus504Schema;