@supernova-studio/model 1.12.0 → 1.12.2

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