vercel-api-js 1.20.0 → 1.20.1

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.
@@ -809,6 +809,8 @@ const connectCreateConnectorRequestSchema = z__namespace.union([
809
809
  projectId: z__namespace.string().optional().describe("Project to connect during creation. If environments is omitted, the connection uses development, preview, and production."),
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
+ 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."),
812
814
  triggerDestination: z__namespace.union([
813
815
  z__namespace.object({
814
816
  projectId: z__namespace.string().min(1).optional().describe("Project that receives triggers. During connector creation, omit it to use the top-level projectId."),
@@ -6217,6 +6219,10 @@ const userEventSchema = z__namespace.object({
6217
6219
  projectId: z__namespace.string().optional(),
6218
6220
  projectName: z__namespace.string()
6219
6221
  }).strict(),
6222
+ z__namespace.object({
6223
+ avatar: z__namespace.string().nullable(),
6224
+ organizationId: z__namespace.string()
6225
+ }).strict(),
6220
6226
  z__namespace.object({
6221
6227
  name: z__namespace.string(),
6222
6228
  organizationId: z__namespace.string(),
@@ -10051,6 +10057,7 @@ const userEventSchema = z__namespace.object({
10051
10057
  "oidc-policy-deleted",
10052
10058
  "oidc-policy-updated",
10053
10059
  "oidc-policy-used-to-obtain-app-token",
10060
+ "organization-avatar-update",
10054
10061
  "organization-create",
10055
10062
  "organization-delete",
10056
10063
  "organization-dsync-group-delete",
@@ -10826,6 +10833,7 @@ const listEventTypeSchema = z__namespace.object({
10826
10833
  "oidc-policy-deleted",
10827
10834
  "oidc-policy-updated",
10828
10835
  "oidc-policy-used-to-obtain-app-token",
10836
+ "organization-avatar-update",
10829
10837
  "organization-create",
10830
10838
  "organization-delete",
10831
10839
  "organization-dsync-group-delete",
@@ -11517,6 +11525,7 @@ const listEventTypeSchema = z__namespace.object({
11517
11525
  "oidc-policy-deleted",
11518
11526
  "oidc-policy-updated",
11519
11527
  "oidc-policy-used-to-obtain-app-token",
11528
+ "organization-avatar-update",
11520
11529
  "organization-create",
11521
11530
  "organization-delete",
11522
11531
  "organization-dsync-group-delete",
@@ -12411,6 +12420,10 @@ const aCLActionSchema = z__namespace.enum([
12411
12420
  "update"
12412
12421
  ]).describe("Enum containing the actions that can be performed against a resource. Group operations are included.");
12413
12422
  const namedSandboxSchema = z__namespace.object({
12423
+ architecture: z__namespace.enum([
12424
+ "amd64",
12425
+ "arm64"
12426
+ ]).optional().describe("CPU architecture of the sandbox. This value does not change."),
12414
12427
  createdAt: z__namespace.number().describe("The time when the named sandbox was created, in milliseconds since the epoch.").meta({
12415
12428
  examples: [
12416
12429
  1750344501629
@@ -12657,6 +12670,10 @@ const sessionSchema = z__namespace.object({
12657
12670
  42
12658
12671
  ]
12659
12672
  }),
12673
+ architecture: z__namespace.enum([
12674
+ "amd64",
12675
+ "arm64"
12676
+ ]).optional().describe("CPU architecture of the sandbox."),
12660
12677
  createdAt: z__namespace.number().describe("The time when the sandbox was created, in milliseconds since the epoch.").meta({
12661
12678
  examples: [
12662
12679
  1750344501629
@@ -12818,6 +12835,10 @@ const driveSchema = z__namespace.object({
12818
12835
  })
12819
12836
  }).describe("This object contains information related to a Vercel Sandbox Drive.");
12820
12837
  const snapshotSchema = z__namespace.object({
12838
+ architecture: z__namespace.enum([
12839
+ "amd64",
12840
+ "arm64"
12841
+ ]).optional().describe("CPU architecture required to restore the snapshot."),
12821
12842
  createdAt: z__namespace.number().describe("The time when the snapshot was created, in milliseconds since the epoch.").meta({
12822
12843
  examples: [
12823
12844
  1750344501629
@@ -789,6 +789,8 @@ const connectCreateConnectorRequestSchema = z.union([
789
789
  projectId: z.string().optional().describe("Project to connect during creation. If environments is omitted, the connection uses development, preview, and production."),
790
790
  environments: z.array(z.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."),
791
791
  triggers: z.boolean().optional().describe("Whether the triggers are enabled for this connector."),
792
+ triggerType: z.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."),
793
+ triggerData: z.object({}).catchall(z.unknown()).optional().describe("Trigger-specific credentials (e.g. webhook signing secret). Validated and encrypted against the trigger type definition."),
792
794
  triggerDestination: z.union([
793
795
  z.object({
794
796
  projectId: z.string().min(1).optional().describe("Project that receives triggers. During connector creation, omit it to use the top-level projectId."),
@@ -6197,6 +6199,10 @@ const userEventSchema = z.object({
6197
6199
  projectId: z.string().optional(),
6198
6200
  projectName: z.string()
6199
6201
  }).strict(),
6202
+ z.object({
6203
+ avatar: z.string().nullable(),
6204
+ organizationId: z.string()
6205
+ }).strict(),
6200
6206
  z.object({
6201
6207
  name: z.string(),
6202
6208
  organizationId: z.string(),
@@ -10031,6 +10037,7 @@ const userEventSchema = z.object({
10031
10037
  "oidc-policy-deleted",
10032
10038
  "oidc-policy-updated",
10033
10039
  "oidc-policy-used-to-obtain-app-token",
10040
+ "organization-avatar-update",
10034
10041
  "organization-create",
10035
10042
  "organization-delete",
10036
10043
  "organization-dsync-group-delete",
@@ -10806,6 +10813,7 @@ const listEventTypeSchema = z.object({
10806
10813
  "oidc-policy-deleted",
10807
10814
  "oidc-policy-updated",
10808
10815
  "oidc-policy-used-to-obtain-app-token",
10816
+ "organization-avatar-update",
10809
10817
  "organization-create",
10810
10818
  "organization-delete",
10811
10819
  "organization-dsync-group-delete",
@@ -11497,6 +11505,7 @@ const listEventTypeSchema = z.object({
11497
11505
  "oidc-policy-deleted",
11498
11506
  "oidc-policy-updated",
11499
11507
  "oidc-policy-used-to-obtain-app-token",
11508
+ "organization-avatar-update",
11500
11509
  "organization-create",
11501
11510
  "organization-delete",
11502
11511
  "organization-dsync-group-delete",
@@ -12391,6 +12400,10 @@ const aCLActionSchema = z.enum([
12391
12400
  "update"
12392
12401
  ]).describe("Enum containing the actions that can be performed against a resource. Group operations are included.");
12393
12402
  const namedSandboxSchema = z.object({
12403
+ architecture: z.enum([
12404
+ "amd64",
12405
+ "arm64"
12406
+ ]).optional().describe("CPU architecture of the sandbox. This value does not change."),
12394
12407
  createdAt: z.number().describe("The time when the named sandbox was created, in milliseconds since the epoch.").meta({
12395
12408
  examples: [
12396
12409
  1750344501629
@@ -12637,6 +12650,10 @@ const sessionSchema = z.object({
12637
12650
  42
12638
12651
  ]
12639
12652
  }),
12653
+ architecture: z.enum([
12654
+ "amd64",
12655
+ "arm64"
12656
+ ]).optional().describe("CPU architecture of the sandbox."),
12640
12657
  createdAt: z.number().describe("The time when the sandbox was created, in milliseconds since the epoch.").meta({
12641
12658
  examples: [
12642
12659
  1750344501629
@@ -12798,6 +12815,10 @@ const driveSchema = z.object({
12798
12815
  })
12799
12816
  }).describe("This object contains information related to a Vercel Sandbox Drive.");
12800
12817
  const snapshotSchema = z.object({
12818
+ architecture: z.enum([
12819
+ "amd64",
12820
+ "arm64"
12821
+ ]).optional().describe("CPU architecture required to restore the snapshot."),
12801
12822
  createdAt: z.number().describe("The time when the snapshot was created, in milliseconds since the epoch.").meta({
12802
12823
  examples: [
12803
12824
  1750344501629
package/dist/schemas.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
 
3
- var schemas = require('./schemas-b636kgje.cjs');
3
+ var schemas = require('./schemas-jmgsg0ky.cjs');
4
4
 
5
5
 
6
6
 
@@ -594,6 +594,8 @@ declare const connectCreateConnectorRequestSchema: z.ZodIntersection<z.ZodUnion<
594
594
  projectId: z.ZodOptional<z.ZodString>;
595
595
  environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
596
596
  triggers: z.ZodOptional<z.ZodBoolean>;
597
+ triggerType: z.ZodOptional<z.ZodString>;
598
+ triggerData: z.ZodOptional<z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>>;
597
599
  triggerDestination: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
598
600
  projectId: z.ZodOptional<z.ZodString>;
599
601
  path: z.ZodOptional<z.ZodString>;
@@ -5006,6 +5008,9 @@ declare const userEventSchema: z.ZodObject<{
5006
5008
  }, z.core.$strict>, z.ZodObject<{
5007
5009
  projectId: z.ZodOptional<z.ZodString>;
5008
5010
  projectName: z.ZodString;
5011
+ }, z.core.$strict>, z.ZodObject<{
5012
+ avatar: z.ZodNullable<z.ZodString>;
5013
+ organizationId: z.ZodString;
5009
5014
  }, z.core.$strict>, z.ZodObject<{
5010
5015
  name: z.ZodString;
5011
5016
  organizationId: z.ZodString;
@@ -8133,6 +8138,7 @@ declare const userEventSchema: z.ZodObject<{
8133
8138
  "oidc-policy-deleted": "oidc-policy-deleted";
8134
8139
  "oidc-policy-updated": "oidc-policy-updated";
8135
8140
  "oidc-policy-used-to-obtain-app-token": "oidc-policy-used-to-obtain-app-token";
8141
+ "organization-avatar-update": "organization-avatar-update";
8136
8142
  "organization-create": "organization-create";
8137
8143
  "organization-delete": "organization-delete";
8138
8144
  "organization-dsync-group-delete": "organization-dsync-group-delete";
@@ -8886,6 +8892,7 @@ declare const listEventTypeSchema: z.ZodObject<{
8886
8892
  "oidc-policy-deleted": "oidc-policy-deleted";
8887
8893
  "oidc-policy-updated": "oidc-policy-updated";
8888
8894
  "oidc-policy-used-to-obtain-app-token": "oidc-policy-used-to-obtain-app-token";
8895
+ "organization-avatar-update": "organization-avatar-update";
8889
8896
  "organization-create": "organization-create";
8890
8897
  "organization-delete": "organization-delete";
8891
8898
  "organization-dsync-group-delete": "organization-dsync-group-delete";
@@ -9573,6 +9580,7 @@ declare const listEventTypeSchema: z.ZodObject<{
9573
9580
  "oidc-policy-deleted": "oidc-policy-deleted";
9574
9581
  "oidc-policy-updated": "oidc-policy-updated";
9575
9582
  "oidc-policy-used-to-obtain-app-token": "oidc-policy-used-to-obtain-app-token";
9583
+ "organization-avatar-update": "organization-avatar-update";
9576
9584
  "organization-create": "organization-create";
9577
9585
  "organization-delete": "organization-delete";
9578
9586
  "organization-dsync-group-delete": "organization-dsync-group-delete";
@@ -10348,6 +10356,10 @@ declare const aCLActionSchema: z.ZodEnum<{
10348
10356
  create: "create";
10349
10357
  }>;
10350
10358
  declare const namedSandboxSchema: z.ZodObject<{
10359
+ architecture: z.ZodOptional<z.ZodEnum<{
10360
+ amd64: "amd64";
10361
+ arm64: "arm64";
10362
+ }>>;
10351
10363
  createdAt: z.ZodNumber;
10352
10364
  currentSessionId: z.ZodString;
10353
10365
  currentSnapshotId: z.ZodOptional<z.ZodString>;
@@ -10447,6 +10459,10 @@ declare const sandboxNetworkPolicySchema: z.ZodObject<{
10447
10459
  declare const sessionSchema: z.ZodObject<{
10448
10460
  abortedAt: z.ZodOptional<z.ZodNumber>;
10449
10461
  activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
10462
+ architecture: z.ZodOptional<z.ZodEnum<{
10463
+ amd64: "amd64";
10464
+ arm64: "arm64";
10465
+ }>>;
10450
10466
  createdAt: z.ZodNumber;
10451
10467
  cwd: z.ZodString;
10452
10468
  duration: z.ZodOptional<z.ZodNumber>;
@@ -10492,6 +10508,10 @@ declare const driveSchema: z.ZodObject<{
10492
10508
  updatedAt: z.ZodNumber;
10493
10509
  }, z.core.$strip>;
10494
10510
  declare const snapshotSchema: z.ZodObject<{
10511
+ architecture: z.ZodOptional<z.ZodEnum<{
10512
+ amd64: "amd64";
10513
+ arm64: "arm64";
10514
+ }>>;
10495
10515
  createdAt: z.ZodNumber;
10496
10516
  creationMethod: z.ZodOptional<z.ZodEnum<{
10497
10517
  manual: "manual";