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