@supernova-studio/model 1.11.3 → 1.12.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.
package/dist/index.mjs CHANGED
@@ -6338,71 +6338,86 @@ var ForgeProjectContext = z197.object({
6338
6338
  workspaceId: z197.string()
6339
6339
  });
6340
6340
 
6341
+ // src/forge/project-feature.ts
6342
+ import { z as z198 } from "zod";
6343
+ var ProjectFeature = z198.object({
6344
+ createdAt: z198.coerce.date(),
6345
+ createdByUserId: z198.string().optional(),
6346
+ description: z198.string(),
6347
+ id: z198.string().uuid(),
6348
+ isArchived: z198.boolean().optional(),
6349
+ name: z198.string(),
6350
+ projectId: z198.string(),
6351
+ sectionId: z198.string().uuid().optional(),
6352
+ sortOrder: z198.number().int().min(0),
6353
+ updatedAt: z198.coerce.date().optional()
6354
+ });
6355
+
6341
6356
  // src/forge/project-invitation.ts
6342
- import { z as z199 } from "zod";
6357
+ import { z as z200 } from "zod";
6343
6358
 
6344
6359
  // src/forge/project-membership.ts
6345
- import { z as z198 } from "zod";
6346
- var ForgeProjectRole = z198.enum(["Viewer", "Editor", "Admin"]);
6347
- var ForgeProjectMembership = z198.object({
6348
- userId: z198.string(),
6349
- forgeProjectId: z198.string(),
6350
- workspaceMembershipId: z198.string(),
6360
+ import { z as z199 } from "zod";
6361
+ var ForgeProjectRole = z199.enum(["Viewer", "Editor", "Admin"]);
6362
+ var ForgeProjectMembership = z199.object({
6363
+ userId: z199.string(),
6364
+ forgeProjectId: z199.string(),
6365
+ workspaceMembershipId: z199.string(),
6351
6366
  workspaceRole: WorkspaceRoleSchema,
6352
6367
  role: ForgeProjectRole
6353
6368
  });
6354
6369
 
6355
6370
  // src/forge/project-invitation.ts
6356
- var ForgeProjectInvitation = z199.object({
6357
- email: z199.string().email(),
6358
- forgeProjectId: z199.string(),
6359
- workspaceInvitationId: z199.string(),
6371
+ var ForgeProjectInvitation = z200.object({
6372
+ email: z200.string().email(),
6373
+ forgeProjectId: z200.string(),
6374
+ workspaceInvitationId: z200.string(),
6360
6375
  role: ForgeProjectRole,
6361
- createdAt: z199.coerce.date(),
6362
- updatedAt: z199.coerce.date(),
6363
- createdById: z199.string()
6376
+ createdAt: z200.coerce.date(),
6377
+ updatedAt: z200.coerce.date(),
6378
+ createdById: z200.string()
6364
6379
  });
6365
6380
 
6366
6381
  // src/forge/project-iteration.ts
6367
- import { z as z200 } from "zod";
6368
- var ForgeProjectIterationMergeMeta = z200.object({ mergeByUserId: z200.string(), mergeAt: z200.date() });
6369
- var ForgeProjectIteration = z200.object({
6370
- branchId: z200.string().optional(),
6371
- buildArtifactId: z200.string(),
6372
- createdAt: z200.coerce.date(),
6373
- forgeProjectId: z200.string(),
6374
- id: z200.string(),
6375
- locked: z200.boolean(),
6376
- messages: z200.array(ForgeIterationMessage),
6377
- artifacts: z200.array(ForgeArtifact),
6378
- previousIterationId: z200.string().optional(),
6382
+ import { z as z201 } from "zod";
6383
+ var ForgeProjectIterationMergeMeta = z201.object({ mergeByUserId: z201.string(), mergeAt: z201.date() });
6384
+ var ForgeProjectIteration = z201.object({
6385
+ branchId: z201.string().optional(),
6386
+ buildArtifactId: z201.string(),
6387
+ createdAt: z201.coerce.date(),
6388
+ forgeProjectId: z201.string(),
6389
+ id: z201.string(),
6390
+ locked: z201.boolean(),
6391
+ messages: z201.array(ForgeIterationMessage),
6392
+ artifacts: z201.array(ForgeArtifact),
6393
+ previousIterationId: z201.string().optional(),
6379
6394
  mergeMeta: ForgeProjectIterationMergeMeta.optional()
6380
6395
  });
6381
6396
 
6382
6397
  // src/forge/project.ts
6383
- import { z as z201 } from "zod";
6384
- var ForgeProjectTag = z201.array(z201.string()).default([]);
6385
- var ForgeProjectAccessMode = z201.enum(["InviteOnly", "Open"]);
6386
- var ForgeProject = z201.object({
6387
- createdAt: z201.coerce.date(),
6388
- createdByUserId: z201.string().optional(),
6389
- fpContextId: z201.string(),
6390
- id: z201.string(),
6391
- instruction: z201.string().nullable(),
6398
+ import { z as z202 } from "zod";
6399
+ var ForgeProjectTag = z202.array(z202.string()).default([]);
6400
+ var ForgeProjectAccessMode = z202.enum(["InviteOnly", "Open"]);
6401
+ var ForgeProject = z202.object({
6402
+ createdAt: z202.coerce.date(),
6403
+ createdByUserId: z202.string().optional(),
6404
+ fpContextId: z202.string(),
6405
+ id: z202.string(),
6406
+ instruction: z202.string().nullable(),
6392
6407
  meta: ForgeMeta,
6393
- name: z201.string(),
6408
+ name: z202.string(),
6394
6409
  tags: ForgeProjectTag,
6395
- updatedAt: z201.coerce.date().optional(),
6396
- workspaceId: z201.string(),
6410
+ updatedAt: z202.coerce.date().optional(),
6411
+ workspaceId: z202.string(),
6397
6412
  accessMode: ForgeProjectAccessMode,
6398
- isArchived: z201.boolean().optional()
6413
+ isArchived: z202.boolean().optional()
6399
6414
  });
6400
6415
 
6401
6416
  // src/integrations/external-oauth-request.ts
6402
- import { z as z203 } from "zod";
6417
+ import { z as z204 } from "zod";
6403
6418
 
6404
6419
  // src/integrations/oauth-providers.ts
6405
- import { z as z202 } from "zod";
6420
+ import { z as z203 } from "zod";
6406
6421
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
6407
6422
  OAuthProviderNames2["Figma"] = "figma";
6408
6423
  OAuthProviderNames2["Azure"] = "azure";
@@ -6411,152 +6426,152 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
6411
6426
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
6412
6427
  return OAuthProviderNames2;
6413
6428
  })(OAuthProviderNames || {});
6414
- var OAuthProviderSchema = z202.nativeEnum(OAuthProviderNames);
6429
+ var OAuthProviderSchema = z203.nativeEnum(OAuthProviderNames);
6415
6430
  var OAuthProvider = OAuthProviderSchema.enum;
6416
6431
 
6417
6432
  // src/integrations/external-oauth-request.ts
6418
- var ExternalOAuthRequest = z203.object({
6419
- id: z203.string(),
6433
+ var ExternalOAuthRequest = z204.object({
6434
+ id: z204.string(),
6420
6435
  provider: OAuthProviderSchema,
6421
- userId: z203.string(),
6422
- state: z203.string(),
6423
- createdAt: z203.coerce.date()
6436
+ userId: z204.string(),
6437
+ state: z204.string(),
6438
+ createdAt: z204.coerce.date()
6424
6439
  });
6425
6440
 
6426
6441
  // src/integrations/git.ts
6427
- import { z as z204 } from "zod";
6428
- var GitObjectsQuery = z204.object({
6429
- organization: z204.string().optional(),
6442
+ import { z as z205 } from "zod";
6443
+ var GitObjectsQuery = z205.object({
6444
+ organization: z205.string().optional(),
6430
6445
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
6431
- project: z204.string().optional(),
6446
+ project: z205.string().optional(),
6432
6447
  // Only for Bitbucket and Azure
6433
- repository: z204.string().optional(),
6448
+ repository: z205.string().optional(),
6434
6449
  // For all providers. For Gitlab, it's called "project".
6435
- branch: z204.string().optional(),
6450
+ branch: z205.string().optional(),
6436
6451
  // For all providers.
6437
- user: z204.string().optional()
6452
+ user: z205.string().optional()
6438
6453
  // Gitlab user
6439
6454
  });
6440
- var GitOrganization = z204.object({
6441
- id: z204.string(),
6442
- name: z204.string(),
6443
- url: z204.string(),
6444
- slug: z204.string()
6455
+ var GitOrganization = z205.object({
6456
+ id: z205.string(),
6457
+ name: z205.string(),
6458
+ url: z205.string(),
6459
+ slug: z205.string()
6445
6460
  });
6446
- var GitProject = z204.object({
6447
- id: z204.string(),
6448
- name: z204.string(),
6449
- url: z204.string(),
6450
- slug: z204.string()
6461
+ var GitProject = z205.object({
6462
+ id: z205.string(),
6463
+ name: z205.string(),
6464
+ url: z205.string(),
6465
+ slug: z205.string()
6451
6466
  });
6452
- var GitRepository = z204.object({
6453
- id: z204.string(),
6454
- name: z204.string(),
6455
- url: z204.string(),
6456
- slug: z204.string(),
6467
+ var GitRepository = z205.object({
6468
+ id: z205.string(),
6469
+ name: z205.string(),
6470
+ url: z205.string(),
6471
+ slug: z205.string(),
6457
6472
  /**
6458
6473
  * Can be undefined when:
6459
6474
  * - there are no branches in the repository yet
6460
6475
  * - Git provider doesn't expose this information on a repository via their API
6461
6476
  */
6462
- defaultBranch: z204.string().optional()
6477
+ defaultBranch: z205.string().optional()
6463
6478
  });
6464
- var GitBranch = z204.object({
6465
- name: z204.string(),
6466
- lastCommitId: z204.string()
6479
+ var GitBranch = z205.object({
6480
+ name: z205.string(),
6481
+ lastCommitId: z205.string()
6467
6482
  });
6468
6483
 
6469
6484
  // src/integrations/oauth-token.ts
6470
- import { z as z205 } from "zod";
6471
- var IntegrationTokenSchemaOld = z205.object({
6472
- id: z205.string(),
6485
+ import { z as z206 } from "zod";
6486
+ var IntegrationTokenSchemaOld = z206.object({
6487
+ id: z206.string(),
6473
6488
  provider: OAuthProviderSchema,
6474
- scope: z205.string(),
6475
- userId: z205.string(),
6476
- accessToken: z205.string(),
6477
- refreshToken: z205.string(),
6478
- expiresAt: z205.coerce.date(),
6479
- externalUserId: z205.string().nullish()
6489
+ scope: z206.string(),
6490
+ userId: z206.string(),
6491
+ accessToken: z206.string(),
6492
+ refreshToken: z206.string(),
6493
+ expiresAt: z206.coerce.date(),
6494
+ externalUserId: z206.string().nullish()
6480
6495
  });
6481
6496
 
6482
6497
  // src/integrations/workspace-oauth-requests.ts
6483
- import { z as z206 } from "zod";
6484
- var WorkspaceOAuthRequestSchema = z206.object({
6485
- id: z206.string(),
6486
- workspaceId: z206.string(),
6498
+ import { z as z207 } from "zod";
6499
+ var WorkspaceOAuthRequestSchema = z207.object({
6500
+ id: z207.string(),
6501
+ workspaceId: z207.string(),
6487
6502
  provider: OAuthProviderSchema,
6488
- userId: z206.string(),
6489
- createdAt: z206.coerce.date()
6503
+ userId: z207.string(),
6504
+ createdAt: z207.coerce.date()
6490
6505
  });
6491
6506
 
6492
6507
  // src/npm/npm-package.ts
6493
- import { z as z207 } from "zod";
6494
- var AnyRecord = z207.record(z207.any());
6508
+ import { z as z208 } from "zod";
6509
+ var AnyRecord = z208.record(z208.any());
6495
6510
  var NpmPackageVersionDist = AnyRecord.and(
6496
- z207.object({
6497
- tarball: z207.string()
6511
+ z208.object({
6512
+ tarball: z208.string()
6498
6513
  })
6499
6514
  );
6500
6515
  var NpmPackageVersion = AnyRecord.and(
6501
- z207.object({
6516
+ z208.object({
6502
6517
  dist: NpmPackageVersionDist
6503
6518
  })
6504
6519
  );
6505
6520
  var NpmPackage = AnyRecord.and(
6506
- z207.object({
6507
- _id: z207.string(),
6508
- name: z207.string(),
6521
+ z208.object({
6522
+ _id: z208.string(),
6523
+ name: z208.string(),
6509
6524
  // e.g. "latest": "1.2.3"
6510
- "dist-tags": z207.record(z207.string(), z207.string()),
6525
+ "dist-tags": z208.record(z208.string(), z208.string()),
6511
6526
  // "1.2.3": {...}
6512
- versions: z207.record(NpmPackageVersion)
6527
+ versions: z208.record(NpmPackageVersion)
6513
6528
  })
6514
6529
  );
6515
6530
 
6516
6531
  // src/npm/npm-proxy-token-payload.ts
6517
- import { z as z208 } from "zod";
6518
- var NpmProxyTokenPayload = z208.object({
6519
- npmProxyRegistryConfigId: z208.string()
6532
+ import { z as z209 } from "zod";
6533
+ var NpmProxyTokenPayload = z209.object({
6534
+ npmProxyRegistryConfigId: z209.string()
6520
6535
  });
6521
6536
 
6522
6537
  // src/portal/portal-settings.ts
6523
- import { z as z209 } from "zod";
6538
+ import { z as z210 } from "zod";
6524
6539
  var PortalSettingsTheme = UserTheme;
6525
- var PortalSettingsSidebarLink = z209.object({
6526
- name: z209.string(),
6527
- url: z209.string(),
6528
- emoji: z209.string()
6529
- });
6530
- var PortalSettingsSidebarSection = z209.object({
6531
- sectionName: z209.string(),
6532
- links: z209.array(PortalSettingsSidebarLink)
6533
- });
6534
- var PortalSettingsSidebar = z209.array(PortalSettingsSidebarSection);
6535
- var PortalSettings = z209.object({
6536
- id: z209.string(),
6537
- workspaceId: z209.string(),
6538
- enabledDesignSystemIds: z209.array(z209.string()),
6539
- enabledBrandPersistentIds: z209.array(z209.string()),
6540
+ var PortalSettingsSidebarLink = z210.object({
6541
+ name: z210.string(),
6542
+ url: z210.string(),
6543
+ emoji: z210.string()
6544
+ });
6545
+ var PortalSettingsSidebarSection = z210.object({
6546
+ sectionName: z210.string(),
6547
+ links: z210.array(PortalSettingsSidebarLink)
6548
+ });
6549
+ var PortalSettingsSidebar = z210.array(PortalSettingsSidebarSection);
6550
+ var PortalSettings = z210.object({
6551
+ id: z210.string(),
6552
+ workspaceId: z210.string(),
6553
+ enabledDesignSystemIds: z210.array(z210.string()),
6554
+ enabledBrandPersistentIds: z210.array(z210.string()),
6540
6555
  theme: PortalSettingsTheme.nullish(),
6541
6556
  sidebar: PortalSettingsSidebar.nullish(),
6542
- createdAt: z209.coerce.date(),
6543
- updatedAt: z209.coerce.date()
6557
+ createdAt: z210.coerce.date(),
6558
+ updatedAt: z210.coerce.date()
6544
6559
  });
6545
6560
 
6546
6561
  // src/tokens/personal-access-token.ts
6547
- import { z as z210 } from "zod";
6548
- var PersonalAccessToken = z210.object({
6549
- id: z210.string(),
6550
- userId: z210.string(),
6551
- workspaceId: z210.string().optional(),
6552
- designSystemId: z210.string().optional(),
6562
+ import { z as z211 } from "zod";
6563
+ var PersonalAccessToken = z211.object({
6564
+ id: z211.string(),
6565
+ userId: z211.string(),
6566
+ workspaceId: z211.string().optional(),
6567
+ designSystemId: z211.string().optional(),
6553
6568
  workspaceRole: WorkspaceRoleSchema.optional(),
6554
- name: z210.string(),
6555
- hidden: z210.boolean(),
6556
- token: z210.string(),
6557
- scope: z210.string().optional(),
6558
- createdAt: z210.coerce.date(),
6559
- expireAt: z210.coerce.date().optional()
6569
+ name: z211.string(),
6570
+ hidden: z211.boolean(),
6571
+ token: z211.string(),
6572
+ scope: z211.string().optional(),
6573
+ createdAt: z211.coerce.date(),
6574
+ expireAt: z211.coerce.date().optional()
6560
6575
  });
6561
6576
  export {
6562
6577
  Address,
@@ -7149,6 +7164,7 @@ export {
7149
7164
  ProductCodeSchema,
7150
7165
  ProductCopyTokenData,
7151
7166
  ProductCopyValue,
7167
+ ProjectFeature,
7152
7168
  PublishedDoc,
7153
7169
  PublishedDocEnvironment,
7154
7170
  PublishedDocPage,