@supernova-studio/model 1.12.1 → 1.13.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
@@ -6296,128 +6297,140 @@ var ForgeMeta = z195.object({
6296
6297
  description: z195.string().optional()
6297
6298
  });
6298
6299
 
6299
- // src/forge/project-artifact.ts
6300
+ // src/forge/project-artifact-content.ts
6300
6301
  import { z as z196 } from "zod";
6301
- var ForgeProjectArtifact = z196.object({
6302
+ var ForgeProjectArtifactContentData = DocumentationPageContentData;
6303
+ var ForgeProjectArtifactContent = z196.object({
6302
6304
  id: z196.string(),
6305
+ artifactId: z196.string(),
6303
6306
  projectId: z196.string(),
6304
- iterationId: z196.string().nullish(),
6305
- title: z196.string(),
6306
- previewUrl: z196.string().nullish(),
6307
- path: z196.string(),
6308
- sortOrder: z196.number().default(0),
6309
6307
  createdAt: z196.coerce.date(),
6310
6308
  updatedAt: z196.coerce.date(),
6311
- createdByUserId: z196.string()
6309
+ data: ForgeProjectArtifactContentData
6312
6310
  });
6313
6311
 
6314
- // src/forge/project-context.ts
6312
+ // src/forge/project-artifact.ts
6315
6313
  import { z as z197 } from "zod";
6316
- var ForgeProjectContextDependency = z197.object({
6317
- packageName: z197.string(),
6318
- type: z197.literal("npm"),
6319
- version: z197.string().default("latest")
6314
+ var ForgeProjectArtifact = z197.object({
6315
+ id: z197.string(),
6316
+ projectId: z197.string(),
6317
+ iterationId: z197.string().nullish(),
6318
+ title: z197.string(),
6319
+ previewUrl: z197.string().nullish(),
6320
+ path: z197.string(),
6321
+ sortOrder: z197.number().default(0),
6322
+ createdAt: z197.coerce.date(),
6323
+ updatedAt: z197.coerce.date(),
6324
+ createdByUserId: z197.string()
6320
6325
  });
6321
- var ForgeProjectContextTailwindConfig = z197.object({
6322
- content: z197.string(),
6323
- version: z197.string()
6326
+
6327
+ // src/forge/project-context.ts
6328
+ import { z as z198 } from "zod";
6329
+ var ForgeProjectContextDependency = z198.object({
6330
+ packageName: z198.string(),
6331
+ type: z198.literal("npm"),
6332
+ version: z198.string().default("latest")
6324
6333
  });
6325
- var ForgeProjectContext = z197.object({
6326
- createdAt: z197.coerce.date(),
6327
- definition: z197.string(),
6328
- dependencies: z197.array(ForgeProjectContextDependency),
6329
- designSystemId: z197.string(),
6330
- id: z197.string(),
6334
+ var ForgeProjectContextTailwindConfig = z198.object({
6335
+ content: z198.string(),
6336
+ version: z198.string()
6337
+ });
6338
+ var ForgeProjectContext = z198.object({
6339
+ createdAt: z198.coerce.date(),
6340
+ definition: z198.string(),
6341
+ dependencies: z198.array(ForgeProjectContextDependency),
6342
+ designSystemId: z198.string(),
6343
+ id: z198.string(),
6331
6344
  meta: ForgeMeta,
6332
- name: z197.string(),
6345
+ name: z198.string(),
6333
6346
  npmProxySettings: NpmRegistryConfig,
6334
- platform: z197.enum(["React", "Vue", "Angular"]),
6335
- styling: z197.enum(["CSS", "Tailwind"]),
6347
+ platform: z198.enum(["React", "Vue", "Angular"]),
6348
+ styling: z198.enum(["CSS", "Tailwind"]),
6336
6349
  tailwindConfig: ForgeProjectContextTailwindConfig.optional(),
6337
- updatedAt: z197.coerce.date(),
6338
- workspaceId: z197.string()
6350
+ updatedAt: z198.coerce.date(),
6351
+ workspaceId: z198.string()
6339
6352
  });
6340
6353
 
6341
6354
  // 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()
6355
+ import { z as z199 } from "zod";
6356
+ var ProjectFeature = z199.object({
6357
+ createdAt: z199.coerce.date(),
6358
+ createdByUserId: z199.string().optional(),
6359
+ description: z199.string(),
6360
+ id: z199.string().uuid(),
6361
+ isArchived: z199.boolean().optional(),
6362
+ name: z199.string(),
6363
+ projectId: z199.string(),
6364
+ sectionId: z199.string().uuid().optional(),
6365
+ sortOrder: z199.number().int().min(0),
6366
+ updatedAt: z199.coerce.date().optional()
6354
6367
  });
6355
6368
 
6356
6369
  // src/forge/project-invitation.ts
6357
- import { z as z200 } from "zod";
6370
+ import { z as z201 } from "zod";
6358
6371
 
6359
6372
  // src/forge/project-membership.ts
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(),
6373
+ import { z as z200 } from "zod";
6374
+ var ForgeProjectRole = z200.enum(["Viewer", "Editor", "Admin"]);
6375
+ var ForgeProjectMembership = z200.object({
6376
+ userId: z200.string(),
6377
+ forgeProjectId: z200.string(),
6378
+ workspaceMembershipId: z200.string(),
6366
6379
  workspaceRole: WorkspaceRoleSchema,
6367
6380
  role: ForgeProjectRole
6368
6381
  });
6369
6382
 
6370
6383
  // src/forge/project-invitation.ts
6371
- var ForgeProjectInvitation = z200.object({
6372
- email: z200.string().email(),
6373
- forgeProjectId: z200.string(),
6374
- workspaceInvitationId: z200.string(),
6384
+ var ForgeProjectInvitation = z201.object({
6385
+ email: z201.string().email(),
6386
+ forgeProjectId: z201.string(),
6387
+ workspaceInvitationId: z201.string(),
6375
6388
  role: ForgeProjectRole,
6376
- createdAt: z200.coerce.date(),
6377
- updatedAt: z200.coerce.date(),
6378
- createdById: z200.string()
6389
+ createdAt: z201.coerce.date(),
6390
+ updatedAt: z201.coerce.date(),
6391
+ createdById: z201.string()
6379
6392
  });
6380
6393
 
6381
6394
  // src/forge/project-iteration.ts
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(),
6395
+ import { z as z202 } from "zod";
6396
+ var ForgeProjectIterationMergeMeta = z202.object({ mergeByUserId: z202.string(), mergeAt: z202.date() });
6397
+ var ForgeProjectIteration = z202.object({
6398
+ branchId: z202.string().optional(),
6399
+ buildArtifactId: z202.string(),
6400
+ createdAt: z202.coerce.date(),
6401
+ forgeProjectId: z202.string(),
6402
+ id: z202.string(),
6403
+ locked: z202.boolean(),
6404
+ messages: z202.array(ForgeIterationMessage),
6405
+ artifacts: z202.array(ForgeArtifact),
6406
+ previousIterationId: z202.string().optional(),
6394
6407
  mergeMeta: ForgeProjectIterationMergeMeta.optional()
6395
6408
  });
6396
6409
 
6397
6410
  // src/forge/project.ts
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(),
6411
+ import { z as z203 } from "zod";
6412
+ var ForgeProjectTag = z203.array(z203.string()).default([]);
6413
+ var ForgeProjectAccessMode = z203.enum(["InviteOnly", "Open"]);
6414
+ var ForgeProject = z203.object({
6415
+ createdAt: z203.coerce.date(),
6416
+ createdByUserId: z203.string().optional(),
6417
+ fpContextId: z203.string(),
6418
+ id: z203.string(),
6419
+ instruction: z203.string().nullable(),
6407
6420
  meta: ForgeMeta,
6408
- name: z202.string(),
6421
+ name: z203.string(),
6409
6422
  tags: ForgeProjectTag,
6410
- updatedAt: z202.coerce.date().optional(),
6411
- workspaceId: z202.string(),
6423
+ updatedAt: z203.coerce.date().optional(),
6424
+ workspaceId: z203.string(),
6412
6425
  accessMode: ForgeProjectAccessMode,
6413
- isArchived: z202.boolean().optional()
6426
+ isArchived: z203.boolean().optional()
6414
6427
  });
6415
6428
 
6416
6429
  // src/integrations/external-oauth-request.ts
6417
- import { z as z204 } from "zod";
6430
+ import { z as z205 } from "zod";
6418
6431
 
6419
6432
  // src/integrations/oauth-providers.ts
6420
- import { z as z203 } from "zod";
6433
+ import { z as z204 } from "zod";
6421
6434
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
6422
6435
  OAuthProviderNames2["Figma"] = "figma";
6423
6436
  OAuthProviderNames2["Azure"] = "azure";
@@ -6426,152 +6439,152 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
6426
6439
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
6427
6440
  return OAuthProviderNames2;
6428
6441
  })(OAuthProviderNames || {});
6429
- var OAuthProviderSchema = z203.nativeEnum(OAuthProviderNames);
6442
+ var OAuthProviderSchema = z204.nativeEnum(OAuthProviderNames);
6430
6443
  var OAuthProvider = OAuthProviderSchema.enum;
6431
6444
 
6432
6445
  // src/integrations/external-oauth-request.ts
6433
- var ExternalOAuthRequest = z204.object({
6434
- id: z204.string(),
6446
+ var ExternalOAuthRequest = z205.object({
6447
+ id: z205.string(),
6435
6448
  provider: OAuthProviderSchema,
6436
- userId: z204.string(),
6437
- state: z204.string(),
6438
- createdAt: z204.coerce.date()
6449
+ userId: z205.string(),
6450
+ state: z205.string(),
6451
+ createdAt: z205.coerce.date()
6439
6452
  });
6440
6453
 
6441
6454
  // src/integrations/git.ts
6442
- import { z as z205 } from "zod";
6443
- var GitObjectsQuery = z205.object({
6444
- organization: z205.string().optional(),
6455
+ import { z as z206 } from "zod";
6456
+ var GitObjectsQuery = z206.object({
6457
+ organization: z206.string().optional(),
6445
6458
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
6446
- project: z205.string().optional(),
6459
+ project: z206.string().optional(),
6447
6460
  // Only for Bitbucket and Azure
6448
- repository: z205.string().optional(),
6461
+ repository: z206.string().optional(),
6449
6462
  // For all providers. For Gitlab, it's called "project".
6450
- branch: z205.string().optional(),
6463
+ branch: z206.string().optional(),
6451
6464
  // For all providers.
6452
- user: z205.string().optional()
6465
+ user: z206.string().optional()
6453
6466
  // Gitlab user
6454
6467
  });
6455
- var GitOrganization = z205.object({
6456
- id: z205.string(),
6457
- name: z205.string(),
6458
- url: z205.string(),
6459
- slug: z205.string()
6468
+ var GitOrganization = z206.object({
6469
+ id: z206.string(),
6470
+ name: z206.string(),
6471
+ url: z206.string(),
6472
+ slug: z206.string()
6460
6473
  });
6461
- var GitProject = z205.object({
6462
- id: z205.string(),
6463
- name: z205.string(),
6464
- url: z205.string(),
6465
- slug: z205.string()
6474
+ var GitProject = z206.object({
6475
+ id: z206.string(),
6476
+ name: z206.string(),
6477
+ url: z206.string(),
6478
+ slug: z206.string()
6466
6479
  });
6467
- var GitRepository = z205.object({
6468
- id: z205.string(),
6469
- name: z205.string(),
6470
- url: z205.string(),
6471
- slug: z205.string(),
6480
+ var GitRepository = z206.object({
6481
+ id: z206.string(),
6482
+ name: z206.string(),
6483
+ url: z206.string(),
6484
+ slug: z206.string(),
6472
6485
  /**
6473
6486
  * Can be undefined when:
6474
6487
  * - there are no branches in the repository yet
6475
6488
  * - Git provider doesn't expose this information on a repository via their API
6476
6489
  */
6477
- defaultBranch: z205.string().optional()
6490
+ defaultBranch: z206.string().optional()
6478
6491
  });
6479
- var GitBranch = z205.object({
6480
- name: z205.string(),
6481
- lastCommitId: z205.string()
6492
+ var GitBranch = z206.object({
6493
+ name: z206.string(),
6494
+ lastCommitId: z206.string()
6482
6495
  });
6483
6496
 
6484
6497
  // src/integrations/oauth-token.ts
6485
- import { z as z206 } from "zod";
6486
- var IntegrationTokenSchemaOld = z206.object({
6487
- id: z206.string(),
6498
+ import { z as z207 } from "zod";
6499
+ var IntegrationTokenSchemaOld = z207.object({
6500
+ id: z207.string(),
6488
6501
  provider: OAuthProviderSchema,
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()
6502
+ scope: z207.string(),
6503
+ userId: z207.string(),
6504
+ accessToken: z207.string(),
6505
+ refreshToken: z207.string(),
6506
+ expiresAt: z207.coerce.date(),
6507
+ externalUserId: z207.string().nullish()
6495
6508
  });
6496
6509
 
6497
6510
  // src/integrations/workspace-oauth-requests.ts
6498
- import { z as z207 } from "zod";
6499
- var WorkspaceOAuthRequestSchema = z207.object({
6500
- id: z207.string(),
6501
- workspaceId: z207.string(),
6511
+ import { z as z208 } from "zod";
6512
+ var WorkspaceOAuthRequestSchema = z208.object({
6513
+ id: z208.string(),
6514
+ workspaceId: z208.string(),
6502
6515
  provider: OAuthProviderSchema,
6503
- userId: z207.string(),
6504
- createdAt: z207.coerce.date()
6516
+ userId: z208.string(),
6517
+ createdAt: z208.coerce.date()
6505
6518
  });
6506
6519
 
6507
6520
  // src/npm/npm-package.ts
6508
- import { z as z208 } from "zod";
6509
- var AnyRecord = z208.record(z208.any());
6521
+ import { z as z209 } from "zod";
6522
+ var AnyRecord = z209.record(z209.any());
6510
6523
  var NpmPackageVersionDist = AnyRecord.and(
6511
- z208.object({
6512
- tarball: z208.string()
6524
+ z209.object({
6525
+ tarball: z209.string()
6513
6526
  })
6514
6527
  );
6515
6528
  var NpmPackageVersion = AnyRecord.and(
6516
- z208.object({
6529
+ z209.object({
6517
6530
  dist: NpmPackageVersionDist
6518
6531
  })
6519
6532
  );
6520
6533
  var NpmPackage = AnyRecord.and(
6521
- z208.object({
6522
- _id: z208.string(),
6523
- name: z208.string(),
6534
+ z209.object({
6535
+ _id: z209.string(),
6536
+ name: z209.string(),
6524
6537
  // e.g. "latest": "1.2.3"
6525
- "dist-tags": z208.record(z208.string(), z208.string()),
6538
+ "dist-tags": z209.record(z209.string(), z209.string()),
6526
6539
  // "1.2.3": {...}
6527
- versions: z208.record(NpmPackageVersion)
6540
+ versions: z209.record(NpmPackageVersion)
6528
6541
  })
6529
6542
  );
6530
6543
 
6531
6544
  // src/npm/npm-proxy-token-payload.ts
6532
- import { z as z209 } from "zod";
6533
- var NpmProxyTokenPayload = z209.object({
6534
- npmProxyRegistryConfigId: z209.string()
6545
+ import { z as z210 } from "zod";
6546
+ var NpmProxyTokenPayload = z210.object({
6547
+ npmProxyRegistryConfigId: z210.string()
6535
6548
  });
6536
6549
 
6537
6550
  // src/portal/portal-settings.ts
6538
- import { z as z210 } from "zod";
6551
+ import { z as z211 } from "zod";
6539
6552
  var PortalSettingsTheme = UserTheme;
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()),
6553
+ var PortalSettingsSidebarLink = z211.object({
6554
+ name: z211.string(),
6555
+ url: z211.string(),
6556
+ emoji: z211.string()
6557
+ });
6558
+ var PortalSettingsSidebarSection = z211.object({
6559
+ sectionName: z211.string(),
6560
+ links: z211.array(PortalSettingsSidebarLink)
6561
+ });
6562
+ var PortalSettingsSidebar = z211.array(PortalSettingsSidebarSection);
6563
+ var PortalSettings = z211.object({
6564
+ id: z211.string(),
6565
+ workspaceId: z211.string(),
6566
+ enabledDesignSystemIds: z211.array(z211.string()),
6567
+ enabledBrandPersistentIds: z211.array(z211.string()),
6555
6568
  theme: PortalSettingsTheme.nullish(),
6556
6569
  sidebar: PortalSettingsSidebar.nullish(),
6557
- createdAt: z210.coerce.date(),
6558
- updatedAt: z210.coerce.date()
6570
+ createdAt: z211.coerce.date(),
6571
+ updatedAt: z211.coerce.date()
6559
6572
  });
6560
6573
 
6561
6574
  // src/tokens/personal-access-token.ts
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(),
6575
+ import { z as z212 } from "zod";
6576
+ var PersonalAccessToken = z212.object({
6577
+ id: z212.string(),
6578
+ userId: z212.string(),
6579
+ workspaceId: z212.string().optional(),
6580
+ designSystemId: z212.string().optional(),
6568
6581
  workspaceRole: WorkspaceRoleSchema.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()
6582
+ name: z212.string(),
6583
+ hidden: z212.boolean(),
6584
+ token: z212.string(),
6585
+ scope: z212.string().optional(),
6586
+ createdAt: z212.coerce.date(),
6587
+ expireAt: z212.coerce.date().optional()
6575
6588
  });
6576
6589
  export {
6577
6590
  Address,
@@ -6900,6 +6913,8 @@ export {
6900
6913
  ForgeProject,
6901
6914
  ForgeProjectAccessMode,
6902
6915
  ForgeProjectArtifact,
6916
+ ForgeProjectArtifactContent,
6917
+ ForgeProjectArtifactContentData,
6903
6918
  ForgeProjectArtifactRoom,
6904
6919
  ForgeProjectContext,
6905
6920
  ForgeProjectContextDependency,