vercel-api-js 1.35.1 → 1.36.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/{components-i2cmvege.js → components-j37pmknp.js} +24 -1
- package/dist/{components-bzzhtujc.cjs → components-omphqb50.cjs} +24 -0
- package/dist/components.cjs +2 -1
- package/dist/components.d.mts +20 -2
- 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 +3 -1
- package/dist/effect.d.mts.map +1 -1
- package/dist/effect.mjs +1 -1
- package/dist/index.cjs +17 -2
- package/dist/index.d.ts +133 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/{schemas-ed7d0k69.js → schemas-g9874t12.js} +50 -3
- package/dist/{schemas-acb6ujvq.cjs → schemas-m0r4rs0b.cjs} +64 -2
- package/dist/schemas.cjs +16 -1
- package/dist/schemas.d.mts +29 -4
- package/dist/schemas.d.mts.map +1 -1
- package/dist/schemas.mjs +1 -1
- package/dist/types.cjs +3 -0
- package/dist/types.d.mts +84 -6
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs +3 -0
- package/package.json +1 -1
|
@@ -453,6 +453,10 @@ const connectConnectorSchema = z__namespace.object({
|
|
|
453
453
|
z__namespace.literal(false),
|
|
454
454
|
z__namespace.literal(true)
|
|
455
455
|
]).describe("Whether the connector supports an installation flow."),
|
|
456
|
+
supportsManagedEjection: z__namespace.union([
|
|
457
|
+
z__namespace.literal(false),
|
|
458
|
+
z__namespace.literal(true)
|
|
459
|
+
]).optional().describe("Whether this managed connector can disconnect from its manager."),
|
|
456
460
|
supportsRevocation: z__namespace.union([
|
|
457
461
|
z__namespace.literal(false),
|
|
458
462
|
z__namespace.literal(true)
|
|
@@ -608,6 +612,10 @@ const connectConnectorCreateResultSchema = z__namespace.object({
|
|
|
608
612
|
z__namespace.literal(false),
|
|
609
613
|
z__namespace.literal(true)
|
|
610
614
|
]).describe("Whether the connector supports an installation flow."),
|
|
615
|
+
supportsManagedEjection: z__namespace.union([
|
|
616
|
+
z__namespace.literal(false),
|
|
617
|
+
z__namespace.literal(true)
|
|
618
|
+
]).optional().describe("Whether this managed connector can disconnect from its manager."),
|
|
611
619
|
supportsRevocation: z__namespace.union([
|
|
612
620
|
z__namespace.literal(false),
|
|
613
621
|
z__namespace.literal(true)
|
|
@@ -920,7 +928,8 @@ const connectCreateConnectorRequestSchema = z__namespace.union([
|
|
|
920
928
|
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
929
|
triggers: z__namespace.boolean().optional().describe("Whether the triggers are enabled for this connector."),
|
|
922
930
|
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
|
-
|
|
931
|
+
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."),
|
|
932
|
+
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
933
|
triggerDestination: z__namespace.union([
|
|
925
934
|
z__namespace.strictObject({
|
|
926
935
|
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 +1209,8 @@ const connectConnectorUpdateDataSchema = z__namespace.union([
|
|
|
1200
1209
|
]).describe("Provider configuration fields for the connector type.");
|
|
1201
1210
|
const connectUpdateConnectorRequestSchema = z__namespace.strictObject({
|
|
1202
1211
|
triggers: z__namespace.boolean().optional().describe("Whether the triggers are enabled for this connector."),
|
|
1203
|
-
|
|
1212
|
+
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."),
|
|
1213
|
+
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
1214
|
events: z__namespace.array(z__namespace.string()).optional().describe("Default trigger events for this connector."),
|
|
1205
1215
|
data: z__namespace.unknown().optional().describe("Provider configuration fields to update."),
|
|
1206
1216
|
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 +2824,10 @@ const userEventSchema = z__namespace.object({
|
|
|
2814
2824
|
"refunded-payment-pending"
|
|
2815
2825
|
])
|
|
2816
2826
|
}),
|
|
2827
|
+
z__namespace.strictObject({
|
|
2828
|
+
paymentMethodId: z__namespace.string(),
|
|
2829
|
+
subscriptionId: z__namespace.string()
|
|
2830
|
+
}),
|
|
2817
2831
|
z__namespace.strictObject({
|
|
2818
2832
|
brand: z__namespace.string().optional(),
|
|
2819
2833
|
last4: z__namespace.string().optional(),
|
|
@@ -9730,6 +9744,7 @@ const userEventSchema = z__namespace.object({
|
|
|
9730
9744
|
"v0-chat-ai-usage",
|
|
9731
9745
|
"v0-chat-created",
|
|
9732
9746
|
"v0-chat-message-sent",
|
|
9747
|
+
"v0-migration-payment-confirmed",
|
|
9733
9748
|
"vcr-image-deleted",
|
|
9734
9749
|
"vcr-image-pushed",
|
|
9735
9750
|
"vcr-repository-created",
|
|
@@ -10527,6 +10542,7 @@ const listEventTypeSchema = z__namespace.object({
|
|
|
10527
10542
|
"v0-chat-ai-usage",
|
|
10528
10543
|
"v0-chat-created",
|
|
10529
10544
|
"v0-chat-message-sent",
|
|
10545
|
+
"v0-migration-payment-confirmed",
|
|
10530
10546
|
"vcr-image-deleted",
|
|
10531
10547
|
"vcr-image-pushed",
|
|
10532
10548
|
"vcr-repository-created",
|
|
@@ -11240,6 +11256,7 @@ const listEventTypeSchema = z__namespace.object({
|
|
|
11240
11256
|
"v0-chat-ai-usage",
|
|
11241
11257
|
"v0-chat-created",
|
|
11242
11258
|
"v0-chat-message-sent",
|
|
11259
|
+
"v0-migration-payment-confirmed",
|
|
11243
11260
|
"vcr-image-deleted",
|
|
11244
11261
|
"vcr-image-pushed",
|
|
11245
11262
|
"vcr-repository-created",
|
|
@@ -16348,6 +16365,7 @@ const updateConnectorStatus404Schema = z__namespace.unknown();
|
|
|
16348
16365
|
const updateConnectorStatus409Schema = z__namespace.unknown();
|
|
16349
16366
|
const updateConnectorStatus410Schema = z__namespace.unknown();
|
|
16350
16367
|
const updateConnectorStatus422Schema = z__namespace.unknown();
|
|
16368
|
+
const updateConnectorStatus500Schema = z__namespace.unknown();
|
|
16351
16369
|
const updateConnectorStatus501Schema = z__namespace.unknown();
|
|
16352
16370
|
const updateConnectorStatus502Schema = z__namespace.unknown();
|
|
16353
16371
|
const updateConnectorStatus504Schema = z__namespace.unknown();
|
|
@@ -16360,6 +16378,7 @@ const updateConnectorErrorSchema = z__namespace.union([
|
|
|
16360
16378
|
updateConnectorStatus409Schema,
|
|
16361
16379
|
updateConnectorStatus410Schema,
|
|
16362
16380
|
updateConnectorStatus422Schema,
|
|
16381
|
+
updateConnectorStatus500Schema,
|
|
16363
16382
|
updateConnectorStatus501Schema,
|
|
16364
16383
|
updateConnectorStatus502Schema,
|
|
16365
16384
|
updateConnectorStatus504Schema
|
|
@@ -16397,6 +16416,34 @@ const replaceConnectorTriggerDestinationsErrorSchema = z__namespace.union([
|
|
|
16397
16416
|
replaceConnectorTriggerDestinationsStatus501Schema,
|
|
16398
16417
|
replaceConnectorTriggerDestinationsStatus504Schema
|
|
16399
16418
|
]);
|
|
16419
|
+
const ejectManagedConnectorPathConnectorSchema = z__namespace.string().describe("Stable connector ID or URL-encoded team-scoped UID.");
|
|
16420
|
+
const ejectManagedConnectorQuerySlugSchema = z__namespace.string().optional().meta({
|
|
16421
|
+
examples: [
|
|
16422
|
+
"my-team-url-slug"
|
|
16423
|
+
]
|
|
16424
|
+
});
|
|
16425
|
+
const ejectManagedConnectorStatus200Schema = z__namespace.unknown();
|
|
16426
|
+
const ejectManagedConnectorStatus400Schema = z__namespace.unknown();
|
|
16427
|
+
const ejectManagedConnectorStatus401Schema = z__namespace.unknown();
|
|
16428
|
+
const ejectManagedConnectorStatus403Schema = z__namespace.unknown();
|
|
16429
|
+
const ejectManagedConnectorStatus404Schema = z__namespace.unknown();
|
|
16430
|
+
const ejectManagedConnectorStatus409Schema = z__namespace.unknown();
|
|
16431
|
+
const ejectManagedConnectorStatus410Schema = z__namespace.unknown();
|
|
16432
|
+
const ejectManagedConnectorStatus422Schema = z__namespace.unknown();
|
|
16433
|
+
const ejectManagedConnectorStatus501Schema = z__namespace.unknown();
|
|
16434
|
+
const ejectManagedConnectorStatus504Schema = z__namespace.unknown();
|
|
16435
|
+
const ejectManagedConnectorResponseSchema = ejectManagedConnectorStatus200Schema;
|
|
16436
|
+
const ejectManagedConnectorErrorSchema = z__namespace.union([
|
|
16437
|
+
ejectManagedConnectorStatus400Schema,
|
|
16438
|
+
ejectManagedConnectorStatus401Schema,
|
|
16439
|
+
ejectManagedConnectorStatus403Schema,
|
|
16440
|
+
ejectManagedConnectorStatus404Schema,
|
|
16441
|
+
ejectManagedConnectorStatus409Schema,
|
|
16442
|
+
ejectManagedConnectorStatus410Schema,
|
|
16443
|
+
ejectManagedConnectorStatus422Schema,
|
|
16444
|
+
ejectManagedConnectorStatus501Schema,
|
|
16445
|
+
ejectManagedConnectorStatus504Schema
|
|
16446
|
+
]);
|
|
16400
16447
|
const listConnectorProjectConnectionsPathConnectorSchema = z__namespace.string().describe("Stable connector ID or URL-encoded team-scoped UID. Examples: `scl_abc123` or `slack%2Fmy-bot`.");
|
|
16401
16448
|
const listConnectorProjectConnectionsQueryLimitSchema = z__namespace.int().min(1).max(100).optional().describe("Maximum number of project connections to return. Defaults to 50.");
|
|
16402
16449
|
const listConnectorProjectConnectionsQueryCursorSchema = z__namespace.string().optional().describe("Cursor from `pagination.next` on the previous response.");
|
|
@@ -28949,6 +28996,20 @@ exports.editRouteStatus404Schema = editRouteStatus404Schema;
|
|
|
28949
28996
|
exports.editRouteStatus409Schema = editRouteStatus409Schema;
|
|
28950
28997
|
exports.editRouteStatus410Schema = editRouteStatus410Schema;
|
|
28951
28998
|
exports.editRouteStatus500Schema = editRouteStatus500Schema;
|
|
28999
|
+
exports.ejectManagedConnectorErrorSchema = ejectManagedConnectorErrorSchema;
|
|
29000
|
+
exports.ejectManagedConnectorPathConnectorSchema = ejectManagedConnectorPathConnectorSchema;
|
|
29001
|
+
exports.ejectManagedConnectorQuerySlugSchema = ejectManagedConnectorQuerySlugSchema;
|
|
29002
|
+
exports.ejectManagedConnectorResponseSchema = ejectManagedConnectorResponseSchema;
|
|
29003
|
+
exports.ejectManagedConnectorStatus200Schema = ejectManagedConnectorStatus200Schema;
|
|
29004
|
+
exports.ejectManagedConnectorStatus400Schema = ejectManagedConnectorStatus400Schema;
|
|
29005
|
+
exports.ejectManagedConnectorStatus401Schema = ejectManagedConnectorStatus401Schema;
|
|
29006
|
+
exports.ejectManagedConnectorStatus403Schema = ejectManagedConnectorStatus403Schema;
|
|
29007
|
+
exports.ejectManagedConnectorStatus404Schema = ejectManagedConnectorStatus404Schema;
|
|
29008
|
+
exports.ejectManagedConnectorStatus409Schema = ejectManagedConnectorStatus409Schema;
|
|
29009
|
+
exports.ejectManagedConnectorStatus410Schema = ejectManagedConnectorStatus410Schema;
|
|
29010
|
+
exports.ejectManagedConnectorStatus422Schema = ejectManagedConnectorStatus422Schema;
|
|
29011
|
+
exports.ejectManagedConnectorStatus501Schema = ejectManagedConnectorStatus501Schema;
|
|
29012
|
+
exports.ejectManagedConnectorStatus504Schema = ejectManagedConnectorStatus504Schema;
|
|
28952
29013
|
exports.emailAddressSchema = emailAddressSchema;
|
|
28953
29014
|
exports.emojiTldNotSupportedSchema = emojiTldNotSupportedSchema;
|
|
28954
29015
|
exports.exchangeSsoTokenErrorSchema = exchangeSsoTokenErrorSchema;
|
|
@@ -32345,6 +32406,7 @@ exports.updateConnectorStatus404Schema = updateConnectorStatus404Schema;
|
|
|
32345
32406
|
exports.updateConnectorStatus409Schema = updateConnectorStatus409Schema;
|
|
32346
32407
|
exports.updateConnectorStatus410Schema = updateConnectorStatus410Schema;
|
|
32347
32408
|
exports.updateConnectorStatus422Schema = updateConnectorStatus422Schema;
|
|
32409
|
+
exports.updateConnectorStatus500Schema = updateConnectorStatus500Schema;
|
|
32348
32410
|
exports.updateConnectorStatus501Schema = updateConnectorStatus501Schema;
|
|
32349
32411
|
exports.updateConnectorStatus502Schema = updateConnectorStatus502Schema;
|
|
32350
32412
|
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-
|
|
3
|
+
var schemas = require('./schemas-m0r4rs0b.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -1725,6 +1725,20 @@ exports.editRouteStatus404Schema = schemas.editRouteStatus404Schema;
|
|
|
1725
1725
|
exports.editRouteStatus409Schema = schemas.editRouteStatus409Schema;
|
|
1726
1726
|
exports.editRouteStatus410Schema = schemas.editRouteStatus410Schema;
|
|
1727
1727
|
exports.editRouteStatus500Schema = schemas.editRouteStatus500Schema;
|
|
1728
|
+
exports.ejectManagedConnectorErrorSchema = schemas.ejectManagedConnectorErrorSchema;
|
|
1729
|
+
exports.ejectManagedConnectorPathConnectorSchema = schemas.ejectManagedConnectorPathConnectorSchema;
|
|
1730
|
+
exports.ejectManagedConnectorQuerySlugSchema = schemas.ejectManagedConnectorQuerySlugSchema;
|
|
1731
|
+
exports.ejectManagedConnectorResponseSchema = schemas.ejectManagedConnectorResponseSchema;
|
|
1732
|
+
exports.ejectManagedConnectorStatus200Schema = schemas.ejectManagedConnectorStatus200Schema;
|
|
1733
|
+
exports.ejectManagedConnectorStatus400Schema = schemas.ejectManagedConnectorStatus400Schema;
|
|
1734
|
+
exports.ejectManagedConnectorStatus401Schema = schemas.ejectManagedConnectorStatus401Schema;
|
|
1735
|
+
exports.ejectManagedConnectorStatus403Schema = schemas.ejectManagedConnectorStatus403Schema;
|
|
1736
|
+
exports.ejectManagedConnectorStatus404Schema = schemas.ejectManagedConnectorStatus404Schema;
|
|
1737
|
+
exports.ejectManagedConnectorStatus409Schema = schemas.ejectManagedConnectorStatus409Schema;
|
|
1738
|
+
exports.ejectManagedConnectorStatus410Schema = schemas.ejectManagedConnectorStatus410Schema;
|
|
1739
|
+
exports.ejectManagedConnectorStatus422Schema = schemas.ejectManagedConnectorStatus422Schema;
|
|
1740
|
+
exports.ejectManagedConnectorStatus501Schema = schemas.ejectManagedConnectorStatus501Schema;
|
|
1741
|
+
exports.ejectManagedConnectorStatus504Schema = schemas.ejectManagedConnectorStatus504Schema;
|
|
1728
1742
|
exports.emailAddressSchema = schemas.emailAddressSchema;
|
|
1729
1743
|
exports.emojiTldNotSupportedSchema = schemas.emojiTldNotSupportedSchema;
|
|
1730
1744
|
exports.exchangeSsoTokenErrorSchema = schemas.exchangeSsoTokenErrorSchema;
|
|
@@ -5121,6 +5135,7 @@ exports.updateConnectorStatus404Schema = schemas.updateConnectorStatus404Schema;
|
|
|
5121
5135
|
exports.updateConnectorStatus409Schema = schemas.updateConnectorStatus409Schema;
|
|
5122
5136
|
exports.updateConnectorStatus410Schema = schemas.updateConnectorStatus410Schema;
|
|
5123
5137
|
exports.updateConnectorStatus422Schema = schemas.updateConnectorStatus422Schema;
|
|
5138
|
+
exports.updateConnectorStatus500Schema = schemas.updateConnectorStatus500Schema;
|
|
5124
5139
|
exports.updateConnectorStatus501Schema = schemas.updateConnectorStatus501Schema;
|
|
5125
5140
|
exports.updateConnectorStatus502Schema = schemas.updateConnectorStatus502Schema;
|
|
5126
5141
|
exports.updateConnectorStatus504Schema = schemas.updateConnectorStatus504Schema;
|