vercel-api-js 1.19.3 → 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."),
@@ -1961,6 +1963,40 @@ const userEventSchema = z__namespace.object({
1961
1963
  modelSlug: z__namespace.string().optional()
1962
1964
  })
1963
1965
  }).strict(),
1966
+ z__namespace.object({
1967
+ changedFields: z__namespace.array(z__namespace.enum([
1968
+ "allowFallbackFromFast",
1969
+ "baseUrl",
1970
+ "byokCredentialIds",
1971
+ "caching",
1972
+ "description",
1973
+ "disallowPromptTraining",
1974
+ "displayName",
1975
+ "has",
1976
+ "hipaaCompliant",
1977
+ "inferenceRegion",
1978
+ "modelSlug",
1979
+ "models",
1980
+ "observabilityTags",
1981
+ "providerOnly",
1982
+ "providerOptions",
1983
+ "providerOrder",
1984
+ "providerTimeouts",
1985
+ "requires",
1986
+ "selector",
1987
+ "serviceTier",
1988
+ "sort",
1989
+ "speed",
1990
+ "status",
1991
+ "visibility",
1992
+ "zeroDataRetention"
1993
+ ])).optional(),
1994
+ virtualModelConfig: z__namespace.object({
1995
+ displayName: z__namespace.string().optional(),
1996
+ id: z__namespace.string(),
1997
+ modelSlug: z__namespace.string().optional()
1998
+ })
1999
+ }).strict(),
1964
2000
  z__namespace.object({
1965
2001
  accessGroup: z__namespace.object({
1966
2002
  id: z__namespace.string(),
@@ -6183,6 +6219,10 @@ const userEventSchema = z__namespace.object({
6183
6219
  projectId: z__namespace.string().optional(),
6184
6220
  projectName: z__namespace.string()
6185
6221
  }).strict(),
6222
+ z__namespace.object({
6223
+ avatar: z__namespace.string().nullable(),
6224
+ organizationId: z__namespace.string()
6225
+ }).strict(),
6186
6226
  z__namespace.object({
6187
6227
  name: z__namespace.string(),
6188
6228
  organizationId: z__namespace.string(),
@@ -10017,6 +10057,7 @@ const userEventSchema = z__namespace.object({
10017
10057
  "oidc-policy-deleted",
10018
10058
  "oidc-policy-updated",
10019
10059
  "oidc-policy-used-to-obtain-app-token",
10060
+ "organization-avatar-update",
10020
10061
  "organization-create",
10021
10062
  "organization-delete",
10022
10063
  "organization-dsync-group-delete",
@@ -10792,6 +10833,7 @@ const listEventTypeSchema = z__namespace.object({
10792
10833
  "oidc-policy-deleted",
10793
10834
  "oidc-policy-updated",
10794
10835
  "oidc-policy-used-to-obtain-app-token",
10836
+ "organization-avatar-update",
10795
10837
  "organization-create",
10796
10838
  "organization-delete",
10797
10839
  "organization-dsync-group-delete",
@@ -11483,6 +11525,7 @@ const listEventTypeSchema = z__namespace.object({
11483
11525
  "oidc-policy-deleted",
11484
11526
  "oidc-policy-updated",
11485
11527
  "oidc-policy-used-to-obtain-app-token",
11528
+ "organization-avatar-update",
11486
11529
  "organization-create",
11487
11530
  "organization-delete",
11488
11531
  "organization-dsync-group-delete",
@@ -12377,6 +12420,10 @@ const aCLActionSchema = z__namespace.enum([
12377
12420
  "update"
12378
12421
  ]).describe("Enum containing the actions that can be performed against a resource. Group operations are included.");
12379
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."),
12380
12427
  createdAt: z__namespace.number().describe("The time when the named sandbox was created, in milliseconds since the epoch.").meta({
12381
12428
  examples: [
12382
12429
  1750344501629
@@ -12623,6 +12670,10 @@ const sessionSchema = z__namespace.object({
12623
12670
  42
12624
12671
  ]
12625
12672
  }),
12673
+ architecture: z__namespace.enum([
12674
+ "amd64",
12675
+ "arm64"
12676
+ ]).optional().describe("CPU architecture of the sandbox."),
12626
12677
  createdAt: z__namespace.number().describe("The time when the sandbox was created, in milliseconds since the epoch.").meta({
12627
12678
  examples: [
12628
12679
  1750344501629
@@ -12784,6 +12835,10 @@ const driveSchema = z__namespace.object({
12784
12835
  })
12785
12836
  }).describe("This object contains information related to a Vercel Sandbox Drive.");
12786
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."),
12787
12842
  createdAt: z__namespace.number().describe("The time when the snapshot was created, in milliseconds since the epoch.").meta({
12788
12843
  examples: [
12789
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."),
@@ -1941,6 +1943,40 @@ const userEventSchema = z.object({
1941
1943
  modelSlug: z.string().optional()
1942
1944
  })
1943
1945
  }).strict(),
1946
+ z.object({
1947
+ changedFields: z.array(z.enum([
1948
+ "allowFallbackFromFast",
1949
+ "baseUrl",
1950
+ "byokCredentialIds",
1951
+ "caching",
1952
+ "description",
1953
+ "disallowPromptTraining",
1954
+ "displayName",
1955
+ "has",
1956
+ "hipaaCompliant",
1957
+ "inferenceRegion",
1958
+ "modelSlug",
1959
+ "models",
1960
+ "observabilityTags",
1961
+ "providerOnly",
1962
+ "providerOptions",
1963
+ "providerOrder",
1964
+ "providerTimeouts",
1965
+ "requires",
1966
+ "selector",
1967
+ "serviceTier",
1968
+ "sort",
1969
+ "speed",
1970
+ "status",
1971
+ "visibility",
1972
+ "zeroDataRetention"
1973
+ ])).optional(),
1974
+ virtualModelConfig: z.object({
1975
+ displayName: z.string().optional(),
1976
+ id: z.string(),
1977
+ modelSlug: z.string().optional()
1978
+ })
1979
+ }).strict(),
1944
1980
  z.object({
1945
1981
  accessGroup: z.object({
1946
1982
  id: z.string(),
@@ -6163,6 +6199,10 @@ const userEventSchema = z.object({
6163
6199
  projectId: z.string().optional(),
6164
6200
  projectName: z.string()
6165
6201
  }).strict(),
6202
+ z.object({
6203
+ avatar: z.string().nullable(),
6204
+ organizationId: z.string()
6205
+ }).strict(),
6166
6206
  z.object({
6167
6207
  name: z.string(),
6168
6208
  organizationId: z.string(),
@@ -9997,6 +10037,7 @@ const userEventSchema = z.object({
9997
10037
  "oidc-policy-deleted",
9998
10038
  "oidc-policy-updated",
9999
10039
  "oidc-policy-used-to-obtain-app-token",
10040
+ "organization-avatar-update",
10000
10041
  "organization-create",
10001
10042
  "organization-delete",
10002
10043
  "organization-dsync-group-delete",
@@ -10772,6 +10813,7 @@ const listEventTypeSchema = z.object({
10772
10813
  "oidc-policy-deleted",
10773
10814
  "oidc-policy-updated",
10774
10815
  "oidc-policy-used-to-obtain-app-token",
10816
+ "organization-avatar-update",
10775
10817
  "organization-create",
10776
10818
  "organization-delete",
10777
10819
  "organization-dsync-group-delete",
@@ -11463,6 +11505,7 @@ const listEventTypeSchema = z.object({
11463
11505
  "oidc-policy-deleted",
11464
11506
  "oidc-policy-updated",
11465
11507
  "oidc-policy-used-to-obtain-app-token",
11508
+ "organization-avatar-update",
11466
11509
  "organization-create",
11467
11510
  "organization-delete",
11468
11511
  "organization-dsync-group-delete",
@@ -12357,6 +12400,10 @@ const aCLActionSchema = z.enum([
12357
12400
  "update"
12358
12401
  ]).describe("Enum containing the actions that can be performed against a resource. Group operations are included.");
12359
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."),
12360
12407
  createdAt: z.number().describe("The time when the named sandbox was created, in milliseconds since the epoch.").meta({
12361
12408
  examples: [
12362
12409
  1750344501629
@@ -12603,6 +12650,10 @@ const sessionSchema = z.object({
12603
12650
  42
12604
12651
  ]
12605
12652
  }),
12653
+ architecture: z.enum([
12654
+ "amd64",
12655
+ "arm64"
12656
+ ]).optional().describe("CPU architecture of the sandbox."),
12606
12657
  createdAt: z.number().describe("The time when the sandbox was created, in milliseconds since the epoch.").meta({
12607
12658
  examples: [
12608
12659
  1750344501629
@@ -12764,6 +12815,10 @@ const driveSchema = z.object({
12764
12815
  })
12765
12816
  }).describe("This object contains information related to a Vercel Sandbox Drive.");
12766
12817
  const snapshotSchema = z.object({
12818
+ architecture: z.enum([
12819
+ "amd64",
12820
+ "arm64"
12821
+ ]).optional().describe("CPU architecture required to restore the snapshot."),
12767
12822
  createdAt: z.number().describe("The time when the snapshot was created, in milliseconds since the epoch.").meta({
12768
12823
  examples: [
12769
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-mrdopgdo.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>;
@@ -1580,6 +1582,39 @@ declare const userEventSchema: z.ZodObject<{
1580
1582
  id: z.ZodString;
1581
1583
  modelSlug: z.ZodOptional<z.ZodString>;
1582
1584
  }, z.core.$strip>;
1585
+ }, z.core.$strict>, z.ZodObject<{
1586
+ changedFields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1587
+ status: "status";
1588
+ baseUrl: "baseUrl";
1589
+ sort: "sort";
1590
+ allowFallbackFromFast: "allowFallbackFromFast";
1591
+ byokCredentialIds: "byokCredentialIds";
1592
+ caching: "caching";
1593
+ description: "description";
1594
+ disallowPromptTraining: "disallowPromptTraining";
1595
+ displayName: "displayName";
1596
+ has: "has";
1597
+ hipaaCompliant: "hipaaCompliant";
1598
+ inferenceRegion: "inferenceRegion";
1599
+ models: "models";
1600
+ modelSlug: "modelSlug";
1601
+ observabilityTags: "observabilityTags";
1602
+ providerOnly: "providerOnly";
1603
+ providerOptions: "providerOptions";
1604
+ providerOrder: "providerOrder";
1605
+ providerTimeouts: "providerTimeouts";
1606
+ requires: "requires";
1607
+ selector: "selector";
1608
+ serviceTier: "serviceTier";
1609
+ speed: "speed";
1610
+ visibility: "visibility";
1611
+ zeroDataRetention: "zeroDataRetention";
1612
+ }>>>;
1613
+ virtualModelConfig: z.ZodObject<{
1614
+ displayName: z.ZodOptional<z.ZodString>;
1615
+ id: z.ZodString;
1616
+ modelSlug: z.ZodOptional<z.ZodString>;
1617
+ }, z.core.$strip>;
1583
1618
  }, z.core.$strict>, z.ZodObject<{
1584
1619
  accessGroup: z.ZodObject<{
1585
1620
  id: z.ZodString;
@@ -4973,6 +5008,9 @@ declare const userEventSchema: z.ZodObject<{
4973
5008
  }, z.core.$strict>, z.ZodObject<{
4974
5009
  projectId: z.ZodOptional<z.ZodString>;
4975
5010
  projectName: z.ZodString;
5011
+ }, z.core.$strict>, z.ZodObject<{
5012
+ avatar: z.ZodNullable<z.ZodString>;
5013
+ organizationId: z.ZodString;
4976
5014
  }, z.core.$strict>, z.ZodObject<{
4977
5015
  name: z.ZodString;
4978
5016
  organizationId: z.ZodString;
@@ -8100,6 +8138,7 @@ declare const userEventSchema: z.ZodObject<{
8100
8138
  "oidc-policy-deleted": "oidc-policy-deleted";
8101
8139
  "oidc-policy-updated": "oidc-policy-updated";
8102
8140
  "oidc-policy-used-to-obtain-app-token": "oidc-policy-used-to-obtain-app-token";
8141
+ "organization-avatar-update": "organization-avatar-update";
8103
8142
  "organization-create": "organization-create";
8104
8143
  "organization-delete": "organization-delete";
8105
8144
  "organization-dsync-group-delete": "organization-dsync-group-delete";
@@ -8853,6 +8892,7 @@ declare const listEventTypeSchema: z.ZodObject<{
8853
8892
  "oidc-policy-deleted": "oidc-policy-deleted";
8854
8893
  "oidc-policy-updated": "oidc-policy-updated";
8855
8894
  "oidc-policy-used-to-obtain-app-token": "oidc-policy-used-to-obtain-app-token";
8895
+ "organization-avatar-update": "organization-avatar-update";
8856
8896
  "organization-create": "organization-create";
8857
8897
  "organization-delete": "organization-delete";
8858
8898
  "organization-dsync-group-delete": "organization-dsync-group-delete";
@@ -9540,6 +9580,7 @@ declare const listEventTypeSchema: z.ZodObject<{
9540
9580
  "oidc-policy-deleted": "oidc-policy-deleted";
9541
9581
  "oidc-policy-updated": "oidc-policy-updated";
9542
9582
  "oidc-policy-used-to-obtain-app-token": "oidc-policy-used-to-obtain-app-token";
9583
+ "organization-avatar-update": "organization-avatar-update";
9543
9584
  "organization-create": "organization-create";
9544
9585
  "organization-delete": "organization-delete";
9545
9586
  "organization-dsync-group-delete": "organization-dsync-group-delete";
@@ -10315,6 +10356,10 @@ declare const aCLActionSchema: z.ZodEnum<{
10315
10356
  create: "create";
10316
10357
  }>;
10317
10358
  declare const namedSandboxSchema: z.ZodObject<{
10359
+ architecture: z.ZodOptional<z.ZodEnum<{
10360
+ amd64: "amd64";
10361
+ arm64: "arm64";
10362
+ }>>;
10318
10363
  createdAt: z.ZodNumber;
10319
10364
  currentSessionId: z.ZodString;
10320
10365
  currentSnapshotId: z.ZodOptional<z.ZodString>;
@@ -10414,6 +10459,10 @@ declare const sandboxNetworkPolicySchema: z.ZodObject<{
10414
10459
  declare const sessionSchema: z.ZodObject<{
10415
10460
  abortedAt: z.ZodOptional<z.ZodNumber>;
10416
10461
  activeCpuDurationMs: z.ZodOptional<z.ZodNumber>;
10462
+ architecture: z.ZodOptional<z.ZodEnum<{
10463
+ amd64: "amd64";
10464
+ arm64: "arm64";
10465
+ }>>;
10417
10466
  createdAt: z.ZodNumber;
10418
10467
  cwd: z.ZodString;
10419
10468
  duration: z.ZodOptional<z.ZodNumber>;
@@ -10459,6 +10508,10 @@ declare const driveSchema: z.ZodObject<{
10459
10508
  updatedAt: z.ZodNumber;
10460
10509
  }, z.core.$strip>;
10461
10510
  declare const snapshotSchema: z.ZodObject<{
10511
+ architecture: z.ZodOptional<z.ZodEnum<{
10512
+ amd64: "amd64";
10513
+ arm64: "arm64";
10514
+ }>>;
10462
10515
  createdAt: z.ZodNumber;
10463
10516
  creationMethod: z.ZodOptional<z.ZodEnum<{
10464
10517
  manual: "manual";