vercel-api-js 1.35.0 → 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.
- package/dist/index.cjs +2 -1
- package/dist/index.d.ts +53 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{schemas-o1fge3h8.js → schemas-ioi8z39h.js} +16 -3
- package/dist/{schemas-pmqcawul.cjs → schemas-o335sjhp.cjs} +16 -2
- package/dist/schemas.cjs +2 -1
- package/dist/schemas.d.mts +15 -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 +38 -6
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs +3 -0
- package/package.json +1 -1
|
@@ -753,6 +753,7 @@ const connectConnectorCreateDataSchema = z__namespace.union([
|
|
|
753
753
|
idToken: z__namespace.array(z__namespace.string()).optional().describe("ID token claim names that Connect can expose.")
|
|
754
754
|
}).optional().describe("Allow-list of extra claims to propagate, keyed by source (idToken). Only claims named here and present in that source are exposed."),
|
|
755
755
|
defaultAudience: z__namespace.string().optional().describe("Default audience used when a token request omits one. An empty string clears the default."),
|
|
756
|
+
defaultResource: z__namespace.string().optional().describe("Default RFC 8707 resource sent on authorization and token requests when a token request omits one. An empty string clears the default."),
|
|
756
757
|
defaultTokenExpiresIn: z__namespace.number().min(60).optional().describe("Default token lifetime in seconds to use when the token response omits expires_in."),
|
|
757
758
|
authorizationUrlParams: z__namespace.object({}).catchall(z__namespace.string()).optional().describe("Extra query parameters added to authorization URLs."),
|
|
758
759
|
jwtBearer: z__namespace.strictObject({
|
|
@@ -919,7 +920,8 @@ const connectCreateConnectorRequestSchema = z__namespace.union([
|
|
|
919
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."),
|
|
920
921
|
triggers: z__namespace.boolean().optional().describe("Whether the triggers are enabled for this connector."),
|
|
921
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."),
|
|
922
|
-
|
|
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."),
|
|
923
925
|
triggerDestination: z__namespace.union([
|
|
924
926
|
z__namespace.strictObject({
|
|
925
927
|
projectId: z__namespace.string().min(1).optional().describe("Project that receives triggers. During connector creation, omit it to use the top-level projectId."),
|
|
@@ -1039,6 +1041,7 @@ const connectConnectorUpdateDataSchema = z__namespace.union([
|
|
|
1039
1041
|
idToken: z__namespace.array(z__namespace.string()).optional().describe("ID token claim names that Connect can expose.")
|
|
1040
1042
|
}).optional().describe("Allow-list of extra claims to propagate, keyed by source (idToken). Only claims named here and present in that source are exposed."),
|
|
1041
1043
|
defaultAudience: z__namespace.string().optional().describe("Default audience used when a token request omits one. An empty string clears the default."),
|
|
1044
|
+
defaultResource: z__namespace.string().optional().describe("Default RFC 8707 resource sent on authorization and token requests when a token request omits one. An empty string clears the default."),
|
|
1042
1045
|
defaultTokenExpiresIn: z__namespace.number().min(60).optional().describe("Default token lifetime in seconds to use when the token response omits expires_in."),
|
|
1043
1046
|
authorizationUrlParams: z__namespace.object({}).catchall(z__namespace.string()).optional().describe("Extra query parameters added to authorization URLs."),
|
|
1044
1047
|
jwtBearer: z__namespace.strictObject({
|
|
@@ -1198,7 +1201,8 @@ const connectConnectorUpdateDataSchema = z__namespace.union([
|
|
|
1198
1201
|
]).describe("Provider configuration fields for the connector type.");
|
|
1199
1202
|
const connectUpdateConnectorRequestSchema = z__namespace.strictObject({
|
|
1200
1203
|
triggers: z__namespace.boolean().optional().describe("Whether the triggers are enabled for this connector."),
|
|
1201
|
-
|
|
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."),
|
|
1202
1206
|
events: z__namespace.array(z__namespace.string()).optional().describe("Default trigger events for this connector."),
|
|
1203
1207
|
data: z__namespace.unknown().optional().describe("Provider configuration fields to update."),
|
|
1204
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"),
|
|
@@ -2812,6 +2816,10 @@ const userEventSchema = z__namespace.object({
|
|
|
2812
2816
|
"refunded-payment-pending"
|
|
2813
2817
|
])
|
|
2814
2818
|
}),
|
|
2819
|
+
z__namespace.strictObject({
|
|
2820
|
+
paymentMethodId: z__namespace.string(),
|
|
2821
|
+
subscriptionId: z__namespace.string()
|
|
2822
|
+
}),
|
|
2815
2823
|
z__namespace.strictObject({
|
|
2816
2824
|
brand: z__namespace.string().optional(),
|
|
2817
2825
|
last4: z__namespace.string().optional(),
|
|
@@ -9728,6 +9736,7 @@ const userEventSchema = z__namespace.object({
|
|
|
9728
9736
|
"v0-chat-ai-usage",
|
|
9729
9737
|
"v0-chat-created",
|
|
9730
9738
|
"v0-chat-message-sent",
|
|
9739
|
+
"v0-migration-payment-confirmed",
|
|
9731
9740
|
"vcr-image-deleted",
|
|
9732
9741
|
"vcr-image-pushed",
|
|
9733
9742
|
"vcr-repository-created",
|
|
@@ -10525,6 +10534,7 @@ const listEventTypeSchema = z__namespace.object({
|
|
|
10525
10534
|
"v0-chat-ai-usage",
|
|
10526
10535
|
"v0-chat-created",
|
|
10527
10536
|
"v0-chat-message-sent",
|
|
10537
|
+
"v0-migration-payment-confirmed",
|
|
10528
10538
|
"vcr-image-deleted",
|
|
10529
10539
|
"vcr-image-pushed",
|
|
10530
10540
|
"vcr-repository-created",
|
|
@@ -11238,6 +11248,7 @@ const listEventTypeSchema = z__namespace.object({
|
|
|
11238
11248
|
"v0-chat-ai-usage",
|
|
11239
11249
|
"v0-chat-created",
|
|
11240
11250
|
"v0-chat-message-sent",
|
|
11251
|
+
"v0-migration-payment-confirmed",
|
|
11241
11252
|
"vcr-image-deleted",
|
|
11242
11253
|
"vcr-image-pushed",
|
|
11243
11254
|
"vcr-repository-created",
|
|
@@ -16346,6 +16357,7 @@ const updateConnectorStatus404Schema = z__namespace.unknown();
|
|
|
16346
16357
|
const updateConnectorStatus409Schema = z__namespace.unknown();
|
|
16347
16358
|
const updateConnectorStatus410Schema = z__namespace.unknown();
|
|
16348
16359
|
const updateConnectorStatus422Schema = z__namespace.unknown();
|
|
16360
|
+
const updateConnectorStatus500Schema = z__namespace.unknown();
|
|
16349
16361
|
const updateConnectorStatus501Schema = z__namespace.unknown();
|
|
16350
16362
|
const updateConnectorStatus502Schema = z__namespace.unknown();
|
|
16351
16363
|
const updateConnectorStatus504Schema = z__namespace.unknown();
|
|
@@ -16358,6 +16370,7 @@ const updateConnectorErrorSchema = z__namespace.union([
|
|
|
16358
16370
|
updateConnectorStatus409Schema,
|
|
16359
16371
|
updateConnectorStatus410Schema,
|
|
16360
16372
|
updateConnectorStatus422Schema,
|
|
16373
|
+
updateConnectorStatus500Schema,
|
|
16361
16374
|
updateConnectorStatus501Schema,
|
|
16362
16375
|
updateConnectorStatus502Schema,
|
|
16363
16376
|
updateConnectorStatus504Schema
|
|
@@ -32343,6 +32356,7 @@ exports.updateConnectorStatus404Schema = updateConnectorStatus404Schema;
|
|
|
32343
32356
|
exports.updateConnectorStatus409Schema = updateConnectorStatus409Schema;
|
|
32344
32357
|
exports.updateConnectorStatus410Schema = updateConnectorStatus410Schema;
|
|
32345
32358
|
exports.updateConnectorStatus422Schema = updateConnectorStatus422Schema;
|
|
32359
|
+
exports.updateConnectorStatus500Schema = updateConnectorStatus500Schema;
|
|
32346
32360
|
exports.updateConnectorStatus501Schema = updateConnectorStatus501Schema;
|
|
32347
32361
|
exports.updateConnectorStatus502Schema = updateConnectorStatus502Schema;
|
|
32348
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-
|
|
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;
|