@supernova-studio/model 1.10.22 → 1.10.23
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.d.mts +46 -4
- package/dist/index.d.ts +46 -4
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +439 -428
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5648,10 +5648,10 @@ var CodeIntegrationDump = z164.object({
|
|
|
5648
5648
|
});
|
|
5649
5649
|
|
|
5650
5650
|
// src/data-dumps/design-system-dump.ts
|
|
5651
|
-
import { z as
|
|
5651
|
+
import { z as z173 } from "zod";
|
|
5652
5652
|
|
|
5653
5653
|
// src/data-dumps/design-system-version-dump.ts
|
|
5654
|
-
import { z as
|
|
5654
|
+
import { z as z172 } from "zod";
|
|
5655
5655
|
|
|
5656
5656
|
// src/liveblocks/rooms/design-system-version-room.ts
|
|
5657
5657
|
import { z as z165 } from "zod";
|
|
@@ -5719,53 +5719,63 @@ var RestoredDocumentationGroup = z166.object({
|
|
|
5719
5719
|
parent: ElementGroup
|
|
5720
5720
|
});
|
|
5721
5721
|
|
|
5722
|
-
// src/liveblocks/rooms/forge-project-room.ts
|
|
5722
|
+
// src/liveblocks/rooms/forge-project-artifact-room.ts
|
|
5723
5723
|
import { z as z167 } from "zod";
|
|
5724
|
-
var
|
|
5724
|
+
var ForgeProjectArtifactRoom = Entity.extend({
|
|
5725
|
+
artifactId: z167.string(),
|
|
5725
5726
|
projectId: z167.string(),
|
|
5726
|
-
liveblocksId: z167.string()
|
|
5727
|
+
liveblocksId: z167.string(),
|
|
5728
|
+
isDirty: z167.boolean()
|
|
5727
5729
|
});
|
|
5728
5730
|
|
|
5729
|
-
// src/liveblocks/rooms/room
|
|
5731
|
+
// src/liveblocks/rooms/forge-project-room.ts
|
|
5730
5732
|
import { z as z168 } from "zod";
|
|
5733
|
+
var ForgeProjectRoom = Entity.extend({
|
|
5734
|
+
projectId: z168.string(),
|
|
5735
|
+
liveblocksId: z168.string()
|
|
5736
|
+
});
|
|
5737
|
+
|
|
5738
|
+
// src/liveblocks/rooms/room-type.ts
|
|
5739
|
+
import { z as z169 } from "zod";
|
|
5731
5740
|
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
5732
5741
|
RoomTypeEnum2["DocumentationPageOld"] = "documentation-page";
|
|
5733
5742
|
RoomTypeEnum2["DocumentationPage"] = "doc-page";
|
|
5734
5743
|
RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
|
|
5735
5744
|
RoomTypeEnum2["Workspace"] = "workspace";
|
|
5736
5745
|
RoomTypeEnum2["ForgeProject"] = "forge-project";
|
|
5746
|
+
RoomTypeEnum2["ForgeProjectArtifact"] = "forge-project-artifact";
|
|
5737
5747
|
return RoomTypeEnum2;
|
|
5738
5748
|
})(RoomTypeEnum || {});
|
|
5739
|
-
var RoomTypeSchema =
|
|
5749
|
+
var RoomTypeSchema = z169.nativeEnum(RoomTypeEnum);
|
|
5740
5750
|
var RoomType = RoomTypeSchema.enum;
|
|
5741
5751
|
|
|
5742
5752
|
// src/liveblocks/rooms/workspace-room.ts
|
|
5743
|
-
import { z as
|
|
5753
|
+
import { z as z170 } from "zod";
|
|
5744
5754
|
var WorkspaceRoom = Entity.extend({
|
|
5745
|
-
workspaceId:
|
|
5746
|
-
liveblocksId:
|
|
5755
|
+
workspaceId: z170.string(),
|
|
5756
|
+
liveblocksId: z170.string()
|
|
5747
5757
|
});
|
|
5748
5758
|
|
|
5749
5759
|
// src/data-dumps/published-docs-dump.ts
|
|
5750
|
-
import { z as
|
|
5751
|
-
var PublishedDocsDump =
|
|
5760
|
+
import { z as z171 } from "zod";
|
|
5761
|
+
var PublishedDocsDump = z171.object({
|
|
5752
5762
|
documentation: PublishedDoc,
|
|
5753
5763
|
pages: PublishedDocPage.array()
|
|
5754
5764
|
});
|
|
5755
5765
|
|
|
5756
5766
|
// src/data-dumps/design-system-version-dump.ts
|
|
5757
|
-
var DocumentationThreadDump =
|
|
5767
|
+
var DocumentationThreadDump = z172.object({
|
|
5758
5768
|
thread: DocumentationCommentThread,
|
|
5759
5769
|
comments: DocumentationComment.array()
|
|
5760
5770
|
});
|
|
5761
|
-
var DocumentationPageRoomDump =
|
|
5771
|
+
var DocumentationPageRoomDump = z172.object({
|
|
5762
5772
|
room: DocumentationPageRoom,
|
|
5763
5773
|
threads: DocumentationThreadDump.array()
|
|
5764
5774
|
});
|
|
5765
|
-
var DesignSystemVersionMultiplayerDump =
|
|
5775
|
+
var DesignSystemVersionMultiplayerDump = z172.object({
|
|
5766
5776
|
documentationPages: DocumentationPageRoomDump.array()
|
|
5767
5777
|
});
|
|
5768
|
-
var DesignSystemVersionDump =
|
|
5778
|
+
var DesignSystemVersionDump = z172.object({
|
|
5769
5779
|
version: DesignSystemVersion,
|
|
5770
5780
|
brands: Brand.array(),
|
|
5771
5781
|
elements: DesignElement.array(),
|
|
@@ -5780,7 +5790,7 @@ var DesignSystemVersionDump = z171.object({
|
|
|
5780
5790
|
});
|
|
5781
5791
|
|
|
5782
5792
|
// src/data-dumps/design-system-dump.ts
|
|
5783
|
-
var DesignSystemDump =
|
|
5793
|
+
var DesignSystemDump = z173.object({
|
|
5784
5794
|
designSystem: DesignSystem,
|
|
5785
5795
|
dataSources: DataSource.array(),
|
|
5786
5796
|
versions: DesignSystemVersionDump.array(),
|
|
@@ -5789,50 +5799,50 @@ var DesignSystemDump = z172.object({
|
|
|
5789
5799
|
});
|
|
5790
5800
|
|
|
5791
5801
|
// src/data-dumps/user-data-dump.ts
|
|
5792
|
-
import { z as
|
|
5802
|
+
import { z as z176 } from "zod";
|
|
5793
5803
|
|
|
5794
5804
|
// src/data-dumps/workspace-dump.ts
|
|
5795
|
-
import { z as
|
|
5805
|
+
import { z as z175 } from "zod";
|
|
5796
5806
|
|
|
5797
5807
|
// src/integrations/integration.ts
|
|
5798
|
-
import { z as
|
|
5799
|
-
var IntegrationDesignSystem =
|
|
5800
|
-
designSystemId:
|
|
5801
|
-
brandId:
|
|
5802
|
-
title:
|
|
5803
|
-
userId:
|
|
5804
|
-
date:
|
|
5805
|
-
});
|
|
5806
|
-
var IntegrationCredentialsType =
|
|
5807
|
-
var IntegrationCredentialsState =
|
|
5808
|
-
var IntegrationCredentialsProfile =
|
|
5809
|
-
id: nullishToOptional(
|
|
5810
|
-
email: nullishToOptional(
|
|
5811
|
-
handle: nullishToOptional(
|
|
5812
|
-
type: nullishToOptional(
|
|
5813
|
-
avatarUrl: nullishToOptional(
|
|
5814
|
-
organization: nullishToOptional(
|
|
5815
|
-
collection: nullishToOptional(
|
|
5816
|
-
});
|
|
5817
|
-
var IntegrationCredentials =
|
|
5818
|
-
id:
|
|
5808
|
+
import { z as z174 } from "zod";
|
|
5809
|
+
var IntegrationDesignSystem = z174.object({
|
|
5810
|
+
designSystemId: z174.string(),
|
|
5811
|
+
brandId: z174.string(),
|
|
5812
|
+
title: z174.string().optional(),
|
|
5813
|
+
userId: z174.string().optional(),
|
|
5814
|
+
date: z174.coerce.date().optional()
|
|
5815
|
+
});
|
|
5816
|
+
var IntegrationCredentialsType = z174.enum(["OAuth2", "PAT"]);
|
|
5817
|
+
var IntegrationCredentialsState = z174.enum(["Active", "Inactive"]);
|
|
5818
|
+
var IntegrationCredentialsProfile = z174.object({
|
|
5819
|
+
id: nullishToOptional(z174.string()),
|
|
5820
|
+
email: nullishToOptional(z174.string()),
|
|
5821
|
+
handle: nullishToOptional(z174.string()),
|
|
5822
|
+
type: nullishToOptional(z174.string()),
|
|
5823
|
+
avatarUrl: nullishToOptional(z174.string()),
|
|
5824
|
+
organization: nullishToOptional(z174.string()),
|
|
5825
|
+
collection: nullishToOptional(z174.string())
|
|
5826
|
+
});
|
|
5827
|
+
var IntegrationCredentials = z174.object({
|
|
5828
|
+
id: z174.string(),
|
|
5819
5829
|
type: IntegrationCredentialsType,
|
|
5820
|
-
integrationId:
|
|
5821
|
-
accessToken:
|
|
5822
|
-
userId:
|
|
5823
|
-
createdAt:
|
|
5824
|
-
refreshToken:
|
|
5825
|
-
tokenName:
|
|
5826
|
-
expiresAt:
|
|
5827
|
-
refreshedAt:
|
|
5828
|
-
username:
|
|
5829
|
-
appInstallationId:
|
|
5830
|
+
integrationId: z174.string(),
|
|
5831
|
+
accessToken: z174.string(),
|
|
5832
|
+
userId: z174.string(),
|
|
5833
|
+
createdAt: z174.coerce.date(),
|
|
5834
|
+
refreshToken: z174.string().optional(),
|
|
5835
|
+
tokenName: z174.string().optional(),
|
|
5836
|
+
expiresAt: z174.coerce.date().optional(),
|
|
5837
|
+
refreshedAt: z174.coerce.date().optional(),
|
|
5838
|
+
username: z174.string().optional(),
|
|
5839
|
+
appInstallationId: z174.string().optional(),
|
|
5830
5840
|
profile: IntegrationCredentialsProfile.optional(),
|
|
5831
|
-
customUrl:
|
|
5841
|
+
customUrl: z174.string().optional(),
|
|
5832
5842
|
state: IntegrationCredentialsState,
|
|
5833
5843
|
user: UserMinified.optional()
|
|
5834
5844
|
});
|
|
5835
|
-
var ExtendedIntegrationType =
|
|
5845
|
+
var ExtendedIntegrationType = z174.enum([
|
|
5836
5846
|
"Figma",
|
|
5837
5847
|
"Github",
|
|
5838
5848
|
"Gitlab",
|
|
@@ -5843,26 +5853,26 @@ var ExtendedIntegrationType = z173.enum([
|
|
|
5843
5853
|
]);
|
|
5844
5854
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
5845
5855
|
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
5846
|
-
var Integration =
|
|
5847
|
-
id:
|
|
5848
|
-
workspaceId:
|
|
5856
|
+
var Integration = z174.object({
|
|
5857
|
+
id: z174.string(),
|
|
5858
|
+
workspaceId: z174.string(),
|
|
5849
5859
|
type: IntegrationType,
|
|
5850
|
-
createdAt:
|
|
5851
|
-
integrationCredentials:
|
|
5852
|
-
});
|
|
5853
|
-
var IntegrationToken =
|
|
5854
|
-
access_token:
|
|
5855
|
-
refresh_token:
|
|
5856
|
-
expires_in:
|
|
5857
|
-
token_type:
|
|
5858
|
-
token_name:
|
|
5859
|
-
token_azure_organization_name:
|
|
5860
|
+
createdAt: z174.coerce.date(),
|
|
5861
|
+
integrationCredentials: z174.array(IntegrationCredentials).optional()
|
|
5862
|
+
});
|
|
5863
|
+
var IntegrationToken = z174.object({
|
|
5864
|
+
access_token: z174.string(),
|
|
5865
|
+
refresh_token: z174.string().optional(),
|
|
5866
|
+
expires_in: z174.union([z174.number().optional(), z174.string().optional()]),
|
|
5867
|
+
token_type: z174.string().optional(),
|
|
5868
|
+
token_name: z174.string().optional(),
|
|
5869
|
+
token_azure_organization_name: z174.string().optional(),
|
|
5860
5870
|
// Azure Cloud PAT only
|
|
5861
|
-
token_azure_collection_name:
|
|
5871
|
+
token_azure_collection_name: z174.string().optional(),
|
|
5862
5872
|
// Azure Server PAT only
|
|
5863
|
-
token_bitbucket_username:
|
|
5873
|
+
token_bitbucket_username: z174.string().optional(),
|
|
5864
5874
|
// Bitbucket only
|
|
5865
|
-
custom_url:
|
|
5875
|
+
custom_url: z174.string().optional().transform((value) => {
|
|
5866
5876
|
if (!value?.trim()) return void 0;
|
|
5867
5877
|
return formatCustomUrl(value);
|
|
5868
5878
|
})
|
|
@@ -5899,7 +5909,7 @@ function formatCustomUrl(url) {
|
|
|
5899
5909
|
}
|
|
5900
5910
|
|
|
5901
5911
|
// src/data-dumps/workspace-dump.ts
|
|
5902
|
-
var WorkspaceDump =
|
|
5912
|
+
var WorkspaceDump = z175.object({
|
|
5903
5913
|
workspace: Workspace,
|
|
5904
5914
|
designSystems: DesignSystemDump.array(),
|
|
5905
5915
|
codeIntegration: CodeIntegrationDump,
|
|
@@ -5907,148 +5917,148 @@ var WorkspaceDump = z174.object({
|
|
|
5907
5917
|
});
|
|
5908
5918
|
|
|
5909
5919
|
// src/data-dumps/user-data-dump.ts
|
|
5910
|
-
var UserDump =
|
|
5920
|
+
var UserDump = z176.object({
|
|
5911
5921
|
user: User,
|
|
5912
5922
|
workspaces: WorkspaceDump.array()
|
|
5913
5923
|
});
|
|
5914
5924
|
|
|
5915
5925
|
// src/docs-server/session.ts
|
|
5916
|
-
import { z as
|
|
5917
|
-
var NpmProxyToken =
|
|
5918
|
-
access:
|
|
5919
|
-
expiresAt:
|
|
5926
|
+
import { z as z177 } from "zod";
|
|
5927
|
+
var NpmProxyToken = z177.object({
|
|
5928
|
+
access: z177.string(),
|
|
5929
|
+
expiresAt: z177.number()
|
|
5920
5930
|
});
|
|
5921
|
-
var SessionData =
|
|
5922
|
-
returnToUrl:
|
|
5931
|
+
var SessionData = z177.object({
|
|
5932
|
+
returnToUrl: z177.string().optional(),
|
|
5923
5933
|
npmProxyToken: NpmProxyToken.optional()
|
|
5924
5934
|
});
|
|
5925
|
-
var Session =
|
|
5926
|
-
id:
|
|
5927
|
-
expiresAt:
|
|
5928
|
-
userId:
|
|
5929
|
-
anonymousId:
|
|
5935
|
+
var Session = z177.object({
|
|
5936
|
+
id: z177.string(),
|
|
5937
|
+
expiresAt: z177.coerce.date(),
|
|
5938
|
+
userId: z177.string().nullable(),
|
|
5939
|
+
anonymousId: z177.string().nullable(),
|
|
5930
5940
|
data: SessionData
|
|
5931
5941
|
});
|
|
5932
|
-
var AuthTokens =
|
|
5933
|
-
access:
|
|
5934
|
-
refresh:
|
|
5942
|
+
var AuthTokens = z177.object({
|
|
5943
|
+
access: z177.string(),
|
|
5944
|
+
refresh: z177.string()
|
|
5935
5945
|
});
|
|
5936
|
-
var UserSession =
|
|
5946
|
+
var UserSession = z177.object({
|
|
5937
5947
|
session: Session,
|
|
5938
5948
|
user: User.nullable()
|
|
5939
5949
|
});
|
|
5940
5950
|
|
|
5941
5951
|
// src/emails/design-system-invite.ts
|
|
5942
|
-
import { z as
|
|
5943
|
-
var DesignSystemInviteEmailRecipient =
|
|
5944
|
-
email:
|
|
5952
|
+
import { z as z178 } from "zod";
|
|
5953
|
+
var DesignSystemInviteEmailRecipient = z178.object({
|
|
5954
|
+
email: z178.string(),
|
|
5945
5955
|
role: WorkspaceRoleSchema
|
|
5946
5956
|
});
|
|
5947
|
-
var DesignSystemInviteEmailData =
|
|
5957
|
+
var DesignSystemInviteEmailData = z178.object({
|
|
5948
5958
|
workspace: Workspace,
|
|
5949
5959
|
designSystem: DesignSystem,
|
|
5950
5960
|
invitedBy: User,
|
|
5951
|
-
documentationDomain:
|
|
5961
|
+
documentationDomain: z178.string().optional()
|
|
5952
5962
|
});
|
|
5953
5963
|
|
|
5954
5964
|
// src/emails/workspace-invite.ts
|
|
5955
|
-
import { z as
|
|
5956
|
-
var WorkspaceInviteEmailRecipient =
|
|
5957
|
-
email:
|
|
5965
|
+
import { z as z179 } from "zod";
|
|
5966
|
+
var WorkspaceInviteEmailRecipient = z179.object({
|
|
5967
|
+
email: z179.string(),
|
|
5958
5968
|
role: WorkspaceRoleSchema
|
|
5959
5969
|
});
|
|
5960
|
-
var WorkspaceInviteEmailData =
|
|
5970
|
+
var WorkspaceInviteEmailData = z179.object({
|
|
5961
5971
|
workspace: Workspace,
|
|
5962
5972
|
invitedBy: User,
|
|
5963
|
-
documentationDomain:
|
|
5973
|
+
documentationDomain: z179.string().optional()
|
|
5964
5974
|
});
|
|
5965
5975
|
|
|
5966
5976
|
// src/events/base.ts
|
|
5967
|
-
import { z as
|
|
5977
|
+
import { z as z183 } from "zod";
|
|
5968
5978
|
|
|
5969
5979
|
// src/events/data-source-imported.ts
|
|
5970
|
-
import { z as z179 } from "zod";
|
|
5971
|
-
var EventDataSourceImported = z179.object({
|
|
5972
|
-
type: z179.literal("DataSourceImported"),
|
|
5973
|
-
workspaceId: z179.string(),
|
|
5974
|
-
designSystemId: z179.string()
|
|
5975
|
-
});
|
|
5976
|
-
|
|
5977
|
-
// src/events/version-released.ts
|
|
5978
5980
|
import { z as z180 } from "zod";
|
|
5979
|
-
var
|
|
5980
|
-
type: z180.literal("
|
|
5981
|
+
var EventDataSourceImported = z180.object({
|
|
5982
|
+
type: z180.literal("DataSourceImported"),
|
|
5981
5983
|
workspaceId: z180.string(),
|
|
5982
|
-
designSystemId: z180.string()
|
|
5983
|
-
versionId: z180.string()
|
|
5984
|
+
designSystemId: z180.string()
|
|
5984
5985
|
});
|
|
5985
5986
|
|
|
5986
|
-
// src/events/
|
|
5987
|
+
// src/events/version-released.ts
|
|
5987
5988
|
import { z as z181 } from "zod";
|
|
5988
|
-
var
|
|
5989
|
-
type: z181.literal("
|
|
5989
|
+
var EventVersionReleased = z181.object({
|
|
5990
|
+
type: z181.literal("DesignSystemVersionReleased"),
|
|
5990
5991
|
workspaceId: z181.string(),
|
|
5991
5992
|
designSystemId: z181.string(),
|
|
5992
5993
|
versionId: z181.string()
|
|
5993
5994
|
});
|
|
5994
5995
|
|
|
5996
|
+
// src/events/documentation-published.ts
|
|
5997
|
+
import { z as z182 } from "zod";
|
|
5998
|
+
var EventDocumentationPublished = z182.object({
|
|
5999
|
+
type: z182.literal("DocumentationPublished"),
|
|
6000
|
+
workspaceId: z182.string(),
|
|
6001
|
+
designSystemId: z182.string(),
|
|
6002
|
+
versionId: z182.string()
|
|
6003
|
+
});
|
|
6004
|
+
|
|
5995
6005
|
// src/events/base.ts
|
|
5996
|
-
var Event =
|
|
6006
|
+
var Event = z183.discriminatedUnion("type", [
|
|
5997
6007
|
EventVersionReleased,
|
|
5998
6008
|
EventDataSourceImported,
|
|
5999
6009
|
EventDocumentationPublished
|
|
6000
6010
|
]);
|
|
6001
6011
|
|
|
6002
6012
|
// src/export/export-runner/export-context.ts
|
|
6003
|
-
import { z as
|
|
6004
|
-
var ExportJobDocumentationContext =
|
|
6005
|
-
isSingleVersionDocs:
|
|
6006
|
-
versionSlug:
|
|
6013
|
+
import { z as z184 } from "zod";
|
|
6014
|
+
var ExportJobDocumentationContext = z184.object({
|
|
6015
|
+
isSingleVersionDocs: z184.boolean(),
|
|
6016
|
+
versionSlug: z184.string(),
|
|
6007
6017
|
environment: PublishedDocEnvironment
|
|
6008
6018
|
});
|
|
6009
|
-
var ExportJobDebugContext =
|
|
6010
|
-
debugMode:
|
|
6011
|
-
concurrency:
|
|
6012
|
-
preloadData:
|
|
6013
|
-
concurrencyMode:
|
|
6014
|
-
cacheSdk:
|
|
6015
|
-
logSdkNetwork:
|
|
6016
|
-
profilerMode:
|
|
6017
|
-
});
|
|
6018
|
-
var ExportJobContext =
|
|
6019
|
-
apiUrl:
|
|
6020
|
-
accessToken:
|
|
6021
|
-
designSystemId:
|
|
6022
|
-
designSystemName:
|
|
6023
|
-
exporterId:
|
|
6024
|
-
versionId:
|
|
6025
|
-
brandId:
|
|
6026
|
-
themeId:
|
|
6027
|
-
themePersistentIds:
|
|
6028
|
-
previewMode:
|
|
6029
|
-
exporterName:
|
|
6019
|
+
var ExportJobDebugContext = z184.object({
|
|
6020
|
+
debugMode: z184.boolean().optional(),
|
|
6021
|
+
concurrency: z184.number().optional(),
|
|
6022
|
+
preloadData: z184.string().optional(),
|
|
6023
|
+
concurrencyMode: z184.string().optional(),
|
|
6024
|
+
cacheSdk: z184.string().optional(),
|
|
6025
|
+
logSdkNetwork: z184.boolean().optional(),
|
|
6026
|
+
profilerMode: z184.string().optional()
|
|
6027
|
+
});
|
|
6028
|
+
var ExportJobContext = z184.object({
|
|
6029
|
+
apiUrl: z184.string(),
|
|
6030
|
+
accessToken: z184.string(),
|
|
6031
|
+
designSystemId: z184.string(),
|
|
6032
|
+
designSystemName: z184.string(),
|
|
6033
|
+
exporterId: z184.string(),
|
|
6034
|
+
versionId: z184.string(),
|
|
6035
|
+
brandId: z184.string().optional(),
|
|
6036
|
+
themeId: z184.string().optional(),
|
|
6037
|
+
themePersistentIds: z184.string().array().optional(),
|
|
6038
|
+
previewMode: z184.boolean().optional(),
|
|
6039
|
+
exporterName: z184.string(),
|
|
6030
6040
|
documentation: ExportJobDocumentationContext.optional(),
|
|
6031
6041
|
debug: ExportJobDebugContext.optional()
|
|
6032
6042
|
});
|
|
6033
|
-
var ExportJobExporterConfiguration =
|
|
6034
|
-
exporterPackageUrl:
|
|
6043
|
+
var ExportJobExporterConfiguration = z184.object({
|
|
6044
|
+
exporterPackageUrl: z184.string(),
|
|
6035
6045
|
exporterPropertyValues: ExporterConfigurationPropertyValue.array(),
|
|
6036
6046
|
exporterPropertyValuesV2: ExporterPropertyValueMap.optional()
|
|
6037
6047
|
});
|
|
6038
6048
|
|
|
6039
6049
|
// src/export/export-runner/exporter-payload.ts
|
|
6040
|
-
import { z as
|
|
6041
|
-
var ExporterFunctionPayload =
|
|
6042
|
-
exportJobId:
|
|
6043
|
-
exportContextId:
|
|
6044
|
-
designSystemId:
|
|
6045
|
-
workspaceId:
|
|
6046
|
-
exporterId:
|
|
6050
|
+
import { z as z185 } from "zod";
|
|
6051
|
+
var ExporterFunctionPayload = z185.object({
|
|
6052
|
+
exportJobId: z185.string(),
|
|
6053
|
+
exportContextId: z185.string(),
|
|
6054
|
+
designSystemId: z185.string(),
|
|
6055
|
+
workspaceId: z185.string(),
|
|
6056
|
+
exporterId: z185.string()
|
|
6047
6057
|
});
|
|
6048
6058
|
|
|
6049
6059
|
// src/export/export-jobs.ts
|
|
6050
|
-
import { z as
|
|
6051
|
-
var ExportJobDestinationType =
|
|
6060
|
+
import { z as z186 } from "zod";
|
|
6061
|
+
var ExportJobDestinationType = z186.enum([
|
|
6052
6062
|
"s3",
|
|
6053
6063
|
"webhookUrl",
|
|
6054
6064
|
"github",
|
|
@@ -6057,31 +6067,31 @@ var ExportJobDestinationType = z185.enum([
|
|
|
6057
6067
|
"gitlab",
|
|
6058
6068
|
"bitbucket"
|
|
6059
6069
|
]);
|
|
6060
|
-
var ExportJobStatus =
|
|
6061
|
-
var ExportJobLogEntryType =
|
|
6062
|
-
var ExportJobLogEntry =
|
|
6063
|
-
id:
|
|
6064
|
-
time:
|
|
6070
|
+
var ExportJobStatus = z186.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
6071
|
+
var ExportJobLogEntryType = z186.enum(["success", "info", "warning", "error", "user"]);
|
|
6072
|
+
var ExportJobLogEntry = z186.object({
|
|
6073
|
+
id: z186.string().optional(),
|
|
6074
|
+
time: z186.coerce.date(),
|
|
6065
6075
|
type: ExportJobLogEntryType,
|
|
6066
|
-
message:
|
|
6076
|
+
message: z186.string()
|
|
6067
6077
|
});
|
|
6068
|
-
var ExportJobPullRequestDestinationResult =
|
|
6069
|
-
pullRequestUrl:
|
|
6070
|
-
sparseCheckoutUsed: nullishToOptional(
|
|
6078
|
+
var ExportJobPullRequestDestinationResult = z186.object({
|
|
6079
|
+
pullRequestUrl: z186.string(),
|
|
6080
|
+
sparseCheckoutUsed: nullishToOptional(z186.boolean())
|
|
6071
6081
|
});
|
|
6072
|
-
var ExportJobS3DestinationResult =
|
|
6073
|
-
bucket:
|
|
6074
|
-
urlPrefix:
|
|
6075
|
-
path:
|
|
6076
|
-
files:
|
|
6077
|
-
url: nullishToOptional(
|
|
6078
|
-
urls: nullishToOptional(
|
|
6082
|
+
var ExportJobS3DestinationResult = z186.object({
|
|
6083
|
+
bucket: z186.string(),
|
|
6084
|
+
urlPrefix: z186.string().optional(),
|
|
6085
|
+
path: z186.string(),
|
|
6086
|
+
files: z186.array(z186.string()),
|
|
6087
|
+
url: nullishToOptional(z186.string()),
|
|
6088
|
+
urls: nullishToOptional(z186.string().array())
|
|
6079
6089
|
});
|
|
6080
|
-
var ExportJobDocsDestinationResult =
|
|
6081
|
-
url:
|
|
6090
|
+
var ExportJobDocsDestinationResult = z186.object({
|
|
6091
|
+
url: z186.string()
|
|
6082
6092
|
});
|
|
6083
|
-
var ExportJobResult =
|
|
6084
|
-
error:
|
|
6093
|
+
var ExportJobResult = z186.object({
|
|
6094
|
+
error: z186.string().optional(),
|
|
6085
6095
|
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
6086
6096
|
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
6087
6097
|
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
@@ -6090,25 +6100,25 @@ var ExportJobResult = z185.object({
|
|
|
6090
6100
|
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
6091
6101
|
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
6092
6102
|
});
|
|
6093
|
-
var ExportJob =
|
|
6094
|
-
id:
|
|
6095
|
-
createdAt:
|
|
6096
|
-
finishedAt:
|
|
6097
|
-
designSystemId:
|
|
6098
|
-
designSystemVersionId:
|
|
6099
|
-
workspaceId:
|
|
6100
|
-
scheduleId:
|
|
6101
|
-
exporterId:
|
|
6102
|
-
brandId:
|
|
6103
|
-
themeId:
|
|
6104
|
-
themePersistentIds:
|
|
6105
|
-
estimatedExecutionTime:
|
|
6103
|
+
var ExportJob = z186.object({
|
|
6104
|
+
id: z186.string(),
|
|
6105
|
+
createdAt: z186.coerce.date(),
|
|
6106
|
+
finishedAt: z186.coerce.date().optional(),
|
|
6107
|
+
designSystemId: z186.string(),
|
|
6108
|
+
designSystemVersionId: z186.string(),
|
|
6109
|
+
workspaceId: z186.string(),
|
|
6110
|
+
scheduleId: z186.string().nullish(),
|
|
6111
|
+
exporterId: z186.string(),
|
|
6112
|
+
brandId: z186.string().optional(),
|
|
6113
|
+
themeId: z186.string().optional(),
|
|
6114
|
+
themePersistentIds: z186.string().array().optional(),
|
|
6115
|
+
estimatedExecutionTime: z186.number().optional(),
|
|
6106
6116
|
status: ExportJobStatus,
|
|
6107
6117
|
result: ExportJobResult.optional(),
|
|
6108
|
-
createdByUserId:
|
|
6118
|
+
createdByUserId: z186.string().optional(),
|
|
6109
6119
|
exporterPropertyValues: ExporterPropertyValueMap.optional(),
|
|
6110
|
-
previewMode:
|
|
6111
|
-
exportContextId:
|
|
6120
|
+
previewMode: z186.boolean().optional(),
|
|
6121
|
+
exportContextId: z186.string().optional().nullable(),
|
|
6112
6122
|
// Destinations
|
|
6113
6123
|
...ExportDestinationsMap.shape
|
|
6114
6124
|
});
|
|
@@ -6122,37 +6132,37 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
6122
6132
|
themeId: true,
|
|
6123
6133
|
brandId: true
|
|
6124
6134
|
}).extend({
|
|
6125
|
-
destinations:
|
|
6135
|
+
destinations: z186.array(ExportJobDestinationType),
|
|
6126
6136
|
docsEnvironment: PublishedDocEnvironment,
|
|
6127
|
-
selectivePublishing:
|
|
6137
|
+
selectivePublishing: z186.boolean().optional()
|
|
6128
6138
|
}).partial();
|
|
6129
6139
|
|
|
6130
6140
|
// src/export/exporter-list-query.ts
|
|
6131
|
-
import { z as
|
|
6132
|
-
var ExporterType2 =
|
|
6133
|
-
var ListExporterQuery =
|
|
6134
|
-
limit:
|
|
6135
|
-
offset:
|
|
6141
|
+
import { z as z187 } from "zod";
|
|
6142
|
+
var ExporterType2 = z187.enum(["documentation", "code"]);
|
|
6143
|
+
var ListExporterQuery = z187.object({
|
|
6144
|
+
limit: z187.number().optional(),
|
|
6145
|
+
offset: z187.number().optional(),
|
|
6136
6146
|
type: ExporterType2.optional(),
|
|
6137
|
-
search:
|
|
6147
|
+
search: z187.string().optional()
|
|
6138
6148
|
});
|
|
6139
6149
|
|
|
6140
6150
|
// src/export/exporter-workspace-membership-role.ts
|
|
6141
|
-
import { z as
|
|
6142
|
-
var ExporterWorkspaceMembershipRole =
|
|
6151
|
+
import { z as z188 } from "zod";
|
|
6152
|
+
var ExporterWorkspaceMembershipRole = z188.enum(["Owner", "OwnerArchived", "User"]);
|
|
6143
6153
|
|
|
6144
6154
|
// src/export/exporter-workspace-membership.ts
|
|
6145
|
-
import { z as
|
|
6146
|
-
var ExporterWorkspaceMembership =
|
|
6147
|
-
id:
|
|
6148
|
-
workspaceId:
|
|
6149
|
-
exporterId:
|
|
6155
|
+
import { z as z189 } from "zod";
|
|
6156
|
+
var ExporterWorkspaceMembership = z189.object({
|
|
6157
|
+
id: z189.string(),
|
|
6158
|
+
workspaceId: z189.string(),
|
|
6159
|
+
exporterId: z189.string(),
|
|
6150
6160
|
role: ExporterWorkspaceMembershipRole
|
|
6151
6161
|
});
|
|
6152
6162
|
|
|
6153
6163
|
// src/feature-flags/feature-flags.ts
|
|
6154
|
-
import { z as
|
|
6155
|
-
var FlaggedFeature =
|
|
6164
|
+
import { z as z190 } from "zod";
|
|
6165
|
+
var FlaggedFeature = z190.enum([
|
|
6156
6166
|
"FigmaImporterV2",
|
|
6157
6167
|
"DisableImporter",
|
|
6158
6168
|
"VariablesOrder",
|
|
@@ -6175,209 +6185,209 @@ var FlaggedFeature = z189.enum([
|
|
|
6175
6185
|
var FeatureFlagDefaults = {
|
|
6176
6186
|
DocumentationIgnoreSnapshotsOnPublish: "route-bff+route-p3"
|
|
6177
6187
|
};
|
|
6178
|
-
var FeatureFlagMap =
|
|
6179
|
-
var FeatureFlag =
|
|
6180
|
-
id:
|
|
6188
|
+
var FeatureFlagMap = z190.record(FlaggedFeature, z190.boolean());
|
|
6189
|
+
var FeatureFlag = z190.object({
|
|
6190
|
+
id: z190.string(),
|
|
6181
6191
|
feature: FlaggedFeature,
|
|
6182
|
-
createdAt:
|
|
6183
|
-
enabled:
|
|
6184
|
-
designSystemId:
|
|
6185
|
-
data:
|
|
6192
|
+
createdAt: z190.coerce.date(),
|
|
6193
|
+
enabled: z190.boolean(),
|
|
6194
|
+
designSystemId: z190.string().optional(),
|
|
6195
|
+
data: z190.record(z190.any()).nullable().optional()
|
|
6186
6196
|
});
|
|
6187
6197
|
|
|
6188
6198
|
// src/forge/agent.ts
|
|
6189
|
-
import { z as
|
|
6190
|
-
var ForgeAvatarBuilder =
|
|
6191
|
-
headType:
|
|
6192
|
-
hairType:
|
|
6193
|
-
accessory1Type:
|
|
6194
|
-
accessory2Type:
|
|
6195
|
-
});
|
|
6196
|
-
var ForgeAgent =
|
|
6197
|
-
avatar:
|
|
6198
|
-
avatarUrl:
|
|
6199
|
-
behavior:
|
|
6200
|
-
id:
|
|
6201
|
-
name:
|
|
6202
|
-
personality:
|
|
6203
|
-
projectId:
|
|
6199
|
+
import { z as z191 } from "zod";
|
|
6200
|
+
var ForgeAvatarBuilder = z191.object({
|
|
6201
|
+
headType: z191.string(),
|
|
6202
|
+
hairType: z191.string(),
|
|
6203
|
+
accessory1Type: z191.string(),
|
|
6204
|
+
accessory2Type: z191.string()
|
|
6205
|
+
});
|
|
6206
|
+
var ForgeAgent = z191.object({
|
|
6207
|
+
avatar: z191.union([z191.string(), ForgeAvatarBuilder]),
|
|
6208
|
+
avatarUrl: z191.string().optional(),
|
|
6209
|
+
behavior: z191.enum(["Coder", "Writer", "Designer"]),
|
|
6210
|
+
id: z191.string(),
|
|
6211
|
+
name: z191.string(),
|
|
6212
|
+
personality: z191.enum(["Neutral", "Assertive", "Crazy"]),
|
|
6213
|
+
projectId: z191.string()
|
|
6204
6214
|
});
|
|
6205
6215
|
|
|
6206
6216
|
// src/forge/artifact.ts
|
|
6207
|
-
import { z as
|
|
6208
|
-
var Artifact =
|
|
6209
|
-
id:
|
|
6210
|
-
createdAt:
|
|
6211
|
-
projectIterationId:
|
|
6217
|
+
import { z as z192 } from "zod";
|
|
6218
|
+
var Artifact = z192.object({
|
|
6219
|
+
id: z192.string(),
|
|
6220
|
+
createdAt: z192.coerce.date(),
|
|
6221
|
+
projectIterationId: z192.string()
|
|
6212
6222
|
});
|
|
6213
6223
|
var ForgeFileArtifact = Artifact.extend({
|
|
6214
|
-
type:
|
|
6215
|
-
fileName:
|
|
6216
|
-
uploadedFileUrl:
|
|
6224
|
+
type: z192.enum(["file/text", "file/pdf", "file/image"]),
|
|
6225
|
+
fileName: z192.string(),
|
|
6226
|
+
uploadedFileUrl: z192.string()
|
|
6217
6227
|
});
|
|
6218
6228
|
var ForgeFigmaArtifact = Artifact.extend({
|
|
6219
|
-
type:
|
|
6220
|
-
figmaFileUrl:
|
|
6221
|
-
figmaNodeId:
|
|
6222
|
-
figmaFileName:
|
|
6223
|
-
previewUrl:
|
|
6229
|
+
type: z192.literal("figma/node"),
|
|
6230
|
+
figmaFileUrl: z192.string(),
|
|
6231
|
+
figmaNodeId: z192.string(),
|
|
6232
|
+
figmaFileName: z192.string().optional(),
|
|
6233
|
+
previewUrl: z192.string().optional()
|
|
6224
6234
|
});
|
|
6225
6235
|
var ForgeSpecArtifact = Artifact.extend({
|
|
6226
|
-
type:
|
|
6227
|
-
fileName:
|
|
6228
|
-
yjsDocId:
|
|
6229
|
-
markdownText:
|
|
6230
|
-
});
|
|
6231
|
-
var ForgeBuildArtifactFiles =
|
|
6232
|
-
|
|
6233
|
-
path:
|
|
6234
|
-
content:
|
|
6235
|
-
isVisibleToUser:
|
|
6236
|
+
type: z192.literal("spec"),
|
|
6237
|
+
fileName: z192.string(),
|
|
6238
|
+
yjsDocId: z192.string(),
|
|
6239
|
+
markdownText: z192.string()
|
|
6240
|
+
});
|
|
6241
|
+
var ForgeBuildArtifactFiles = z192.array(
|
|
6242
|
+
z192.object({
|
|
6243
|
+
path: z192.string(),
|
|
6244
|
+
content: z192.string(),
|
|
6245
|
+
isVisibleToUser: z192.boolean().optional()
|
|
6236
6246
|
})
|
|
6237
6247
|
);
|
|
6238
|
-
var ForgeBuildArtifactEnvironment =
|
|
6239
|
-
dependencies:
|
|
6248
|
+
var ForgeBuildArtifactEnvironment = z192.object({
|
|
6249
|
+
dependencies: z192.record(z192.string())
|
|
6240
6250
|
});
|
|
6241
6251
|
var ForgeBuildArtifact = Artifact.extend({
|
|
6242
|
-
type:
|
|
6243
|
-
participantId:
|
|
6252
|
+
type: z192.literal("build"),
|
|
6253
|
+
participantId: z192.string(),
|
|
6244
6254
|
files: ForgeBuildArtifactFiles,
|
|
6245
6255
|
environment: ForgeBuildArtifactEnvironment
|
|
6246
6256
|
});
|
|
6247
|
-
var ForgeArtifact =
|
|
6257
|
+
var ForgeArtifact = z192.union([ForgeBuildArtifact, ForgeSpecArtifact, ForgeFigmaArtifact, ForgeFileArtifact]);
|
|
6248
6258
|
|
|
6249
6259
|
// src/forge/iteration-message.ts
|
|
6250
|
-
import { z as
|
|
6260
|
+
import { z as z194 } from "zod";
|
|
6251
6261
|
|
|
6252
6262
|
// src/forge/participant.ts
|
|
6253
|
-
import { z as
|
|
6254
|
-
var ForgeParticipant =
|
|
6255
|
-
id:
|
|
6256
|
-
agentId:
|
|
6263
|
+
import { z as z193 } from "zod";
|
|
6264
|
+
var ForgeParticipant = z193.object({
|
|
6265
|
+
id: z193.string(),
|
|
6266
|
+
agentId: z193.string().optional(),
|
|
6257
6267
|
agent: ForgeAgent.optional(),
|
|
6258
|
-
projectIterationId:
|
|
6259
|
-
role:
|
|
6260
|
-
type:
|
|
6261
|
-
userId:
|
|
6268
|
+
projectIterationId: z193.string(),
|
|
6269
|
+
role: z193.enum(["Editor", "Viewer"]),
|
|
6270
|
+
type: z193.enum(["Agent", "User"]),
|
|
6271
|
+
userId: z193.string().optional(),
|
|
6262
6272
|
user: User.optional()
|
|
6263
6273
|
});
|
|
6264
6274
|
|
|
6265
6275
|
// src/forge/iteration-message.ts
|
|
6266
|
-
var ForgeIterationMessageStep =
|
|
6267
|
-
name:
|
|
6268
|
-
text:
|
|
6269
|
-
status:
|
|
6276
|
+
var ForgeIterationMessageStep = z194.object({
|
|
6277
|
+
name: z194.string(),
|
|
6278
|
+
text: z194.string(),
|
|
6279
|
+
status: z194.enum(["pending", "started", "completed", "error"])
|
|
6270
6280
|
});
|
|
6271
|
-
var ForgeIterationMessage =
|
|
6272
|
-
id:
|
|
6273
|
-
createdAt:
|
|
6274
|
-
participantId:
|
|
6281
|
+
var ForgeIterationMessage = z194.object({
|
|
6282
|
+
id: z194.string(),
|
|
6283
|
+
createdAt: z194.coerce.date(),
|
|
6284
|
+
participantId: z194.string(),
|
|
6275
6285
|
participant: ForgeParticipant,
|
|
6276
|
-
projectIterationId:
|
|
6277
|
-
steps:
|
|
6278
|
-
type:
|
|
6279
|
-
text:
|
|
6286
|
+
projectIterationId: z194.string(),
|
|
6287
|
+
steps: z194.array(ForgeIterationMessageStep).optional(),
|
|
6288
|
+
type: z194.enum(["Note", "Action", "Steps"]),
|
|
6289
|
+
text: z194.string()
|
|
6280
6290
|
});
|
|
6281
6291
|
|
|
6282
6292
|
// src/forge/meta.ts
|
|
6283
|
-
import { z as
|
|
6284
|
-
var ForgeMeta =
|
|
6285
|
-
name:
|
|
6286
|
-
description:
|
|
6293
|
+
import { z as z195 } from "zod";
|
|
6294
|
+
var ForgeMeta = z195.object({
|
|
6295
|
+
name: z195.string(),
|
|
6296
|
+
description: z195.string().optional()
|
|
6287
6297
|
});
|
|
6288
6298
|
|
|
6289
6299
|
// src/forge/project-context.ts
|
|
6290
|
-
import { z as
|
|
6291
|
-
var ForgeProjectContextDependency =
|
|
6292
|
-
packageName:
|
|
6293
|
-
type:
|
|
6294
|
-
version:
|
|
6295
|
-
});
|
|
6296
|
-
var ForgeProjectContextTailwindConfig =
|
|
6297
|
-
content:
|
|
6298
|
-
version:
|
|
6299
|
-
});
|
|
6300
|
-
var ForgeProjectContext =
|
|
6301
|
-
createdAt:
|
|
6302
|
-
definition:
|
|
6303
|
-
dependencies:
|
|
6304
|
-
designSystemId:
|
|
6305
|
-
id:
|
|
6300
|
+
import { z as z196 } from "zod";
|
|
6301
|
+
var ForgeProjectContextDependency = z196.object({
|
|
6302
|
+
packageName: z196.string(),
|
|
6303
|
+
type: z196.literal("npm"),
|
|
6304
|
+
version: z196.string().default("latest")
|
|
6305
|
+
});
|
|
6306
|
+
var ForgeProjectContextTailwindConfig = z196.object({
|
|
6307
|
+
content: z196.string(),
|
|
6308
|
+
version: z196.string()
|
|
6309
|
+
});
|
|
6310
|
+
var ForgeProjectContext = z196.object({
|
|
6311
|
+
createdAt: z196.coerce.date(),
|
|
6312
|
+
definition: z196.string(),
|
|
6313
|
+
dependencies: z196.array(ForgeProjectContextDependency),
|
|
6314
|
+
designSystemId: z196.string(),
|
|
6315
|
+
id: z196.string(),
|
|
6306
6316
|
meta: ForgeMeta,
|
|
6307
|
-
name:
|
|
6317
|
+
name: z196.string(),
|
|
6308
6318
|
npmProxySettings: NpmRegistryConfig,
|
|
6309
|
-
platform:
|
|
6310
|
-
styling:
|
|
6319
|
+
platform: z196.enum(["React", "Vue", "Angular"]),
|
|
6320
|
+
styling: z196.enum(["CSS", "Tailwind"]),
|
|
6311
6321
|
tailwindConfig: ForgeProjectContextTailwindConfig.optional(),
|
|
6312
|
-
updatedAt:
|
|
6313
|
-
workspaceId:
|
|
6322
|
+
updatedAt: z196.coerce.date(),
|
|
6323
|
+
workspaceId: z196.string()
|
|
6314
6324
|
});
|
|
6315
6325
|
|
|
6316
6326
|
// src/forge/project-invitation.ts
|
|
6317
|
-
import { z as
|
|
6327
|
+
import { z as z198 } from "zod";
|
|
6318
6328
|
|
|
6319
6329
|
// src/forge/project-membership.ts
|
|
6320
|
-
import { z as
|
|
6321
|
-
var ForgeProjectRole =
|
|
6322
|
-
var ForgeProjectMembership =
|
|
6323
|
-
userId:
|
|
6324
|
-
forgeProjectId:
|
|
6325
|
-
workspaceMembershipId:
|
|
6330
|
+
import { z as z197 } from "zod";
|
|
6331
|
+
var ForgeProjectRole = z197.enum(["Viewer", "Editor", "Admin"]);
|
|
6332
|
+
var ForgeProjectMembership = z197.object({
|
|
6333
|
+
userId: z197.string(),
|
|
6334
|
+
forgeProjectId: z197.string(),
|
|
6335
|
+
workspaceMembershipId: z197.string(),
|
|
6326
6336
|
workspaceRole: WorkspaceRoleSchema,
|
|
6327
6337
|
role: ForgeProjectRole
|
|
6328
6338
|
});
|
|
6329
6339
|
|
|
6330
6340
|
// src/forge/project-invitation.ts
|
|
6331
|
-
var ForgeProjectInvitation =
|
|
6332
|
-
email:
|
|
6333
|
-
forgeProjectId:
|
|
6334
|
-
workspaceInvitationId:
|
|
6341
|
+
var ForgeProjectInvitation = z198.object({
|
|
6342
|
+
email: z198.string().email(),
|
|
6343
|
+
forgeProjectId: z198.string(),
|
|
6344
|
+
workspaceInvitationId: z198.string(),
|
|
6335
6345
|
role: ForgeProjectRole,
|
|
6336
|
-
createdAt:
|
|
6337
|
-
updatedAt:
|
|
6338
|
-
createdById:
|
|
6346
|
+
createdAt: z198.coerce.date(),
|
|
6347
|
+
updatedAt: z198.coerce.date(),
|
|
6348
|
+
createdById: z198.string()
|
|
6339
6349
|
});
|
|
6340
6350
|
|
|
6341
6351
|
// src/forge/project-iteration.ts
|
|
6342
|
-
import { z as
|
|
6343
|
-
var ForgeProjectIterationMergeMeta =
|
|
6344
|
-
var ForgeProjectIteration =
|
|
6345
|
-
branchId:
|
|
6346
|
-
buildArtifactId:
|
|
6347
|
-
createdAt:
|
|
6348
|
-
forgeProjectId:
|
|
6349
|
-
id:
|
|
6350
|
-
locked:
|
|
6351
|
-
messages:
|
|
6352
|
-
artifacts:
|
|
6353
|
-
previousIterationId:
|
|
6352
|
+
import { z as z199 } from "zod";
|
|
6353
|
+
var ForgeProjectIterationMergeMeta = z199.object({ mergeByUserId: z199.string(), mergeAt: z199.date() });
|
|
6354
|
+
var ForgeProjectIteration = z199.object({
|
|
6355
|
+
branchId: z199.string().optional(),
|
|
6356
|
+
buildArtifactId: z199.string(),
|
|
6357
|
+
createdAt: z199.coerce.date(),
|
|
6358
|
+
forgeProjectId: z199.string(),
|
|
6359
|
+
id: z199.string(),
|
|
6360
|
+
locked: z199.boolean(),
|
|
6361
|
+
messages: z199.array(ForgeIterationMessage),
|
|
6362
|
+
artifacts: z199.array(ForgeArtifact),
|
|
6363
|
+
previousIterationId: z199.string().optional(),
|
|
6354
6364
|
mergeMeta: ForgeProjectIterationMergeMeta.optional()
|
|
6355
6365
|
});
|
|
6356
6366
|
|
|
6357
6367
|
// src/forge/project.ts
|
|
6358
|
-
import { z as
|
|
6359
|
-
var ForgeProjectTag =
|
|
6360
|
-
var ForgeProjectAccessMode =
|
|
6361
|
-
var ForgeProject =
|
|
6362
|
-
createdAt:
|
|
6363
|
-
createdByUserId:
|
|
6364
|
-
fpContextId:
|
|
6365
|
-
id:
|
|
6366
|
-
instruction:
|
|
6368
|
+
import { z as z200 } from "zod";
|
|
6369
|
+
var ForgeProjectTag = z200.array(z200.string()).default([]);
|
|
6370
|
+
var ForgeProjectAccessMode = z200.enum(["InviteOnly", "Open"]);
|
|
6371
|
+
var ForgeProject = z200.object({
|
|
6372
|
+
createdAt: z200.coerce.date(),
|
|
6373
|
+
createdByUserId: z200.string().optional(),
|
|
6374
|
+
fpContextId: z200.string(),
|
|
6375
|
+
id: z200.string(),
|
|
6376
|
+
instruction: z200.string().nullable(),
|
|
6367
6377
|
meta: ForgeMeta,
|
|
6368
|
-
name:
|
|
6378
|
+
name: z200.string(),
|
|
6369
6379
|
tags: ForgeProjectTag,
|
|
6370
|
-
updatedAt:
|
|
6371
|
-
workspaceId:
|
|
6380
|
+
updatedAt: z200.coerce.date().optional(),
|
|
6381
|
+
workspaceId: z200.string(),
|
|
6372
6382
|
accessMode: ForgeProjectAccessMode,
|
|
6373
|
-
isArchived:
|
|
6383
|
+
isArchived: z200.boolean().optional()
|
|
6374
6384
|
});
|
|
6375
6385
|
|
|
6376
6386
|
// src/integrations/external-oauth-request.ts
|
|
6377
|
-
import { z as
|
|
6387
|
+
import { z as z202 } from "zod";
|
|
6378
6388
|
|
|
6379
6389
|
// src/integrations/oauth-providers.ts
|
|
6380
|
-
import { z as
|
|
6390
|
+
import { z as z201 } from "zod";
|
|
6381
6391
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
6382
6392
|
OAuthProviderNames2["Figma"] = "figma";
|
|
6383
6393
|
OAuthProviderNames2["Azure"] = "azure";
|
|
@@ -6386,152 +6396,152 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
6386
6396
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
6387
6397
|
return OAuthProviderNames2;
|
|
6388
6398
|
})(OAuthProviderNames || {});
|
|
6389
|
-
var OAuthProviderSchema =
|
|
6399
|
+
var OAuthProviderSchema = z201.nativeEnum(OAuthProviderNames);
|
|
6390
6400
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
6391
6401
|
|
|
6392
6402
|
// src/integrations/external-oauth-request.ts
|
|
6393
|
-
var ExternalOAuthRequest =
|
|
6394
|
-
id:
|
|
6403
|
+
var ExternalOAuthRequest = z202.object({
|
|
6404
|
+
id: z202.string(),
|
|
6395
6405
|
provider: OAuthProviderSchema,
|
|
6396
|
-
userId:
|
|
6397
|
-
state:
|
|
6398
|
-
createdAt:
|
|
6406
|
+
userId: z202.string(),
|
|
6407
|
+
state: z202.string(),
|
|
6408
|
+
createdAt: z202.coerce.date()
|
|
6399
6409
|
});
|
|
6400
6410
|
|
|
6401
6411
|
// src/integrations/git.ts
|
|
6402
|
-
import { z as
|
|
6403
|
-
var GitObjectsQuery =
|
|
6404
|
-
organization:
|
|
6412
|
+
import { z as z203 } from "zod";
|
|
6413
|
+
var GitObjectsQuery = z203.object({
|
|
6414
|
+
organization: z203.string().optional(),
|
|
6405
6415
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
6406
|
-
project:
|
|
6416
|
+
project: z203.string().optional(),
|
|
6407
6417
|
// Only for Bitbucket and Azure
|
|
6408
|
-
repository:
|
|
6418
|
+
repository: z203.string().optional(),
|
|
6409
6419
|
// For all providers. For Gitlab, it's called "project".
|
|
6410
|
-
branch:
|
|
6420
|
+
branch: z203.string().optional(),
|
|
6411
6421
|
// For all providers.
|
|
6412
|
-
user:
|
|
6422
|
+
user: z203.string().optional()
|
|
6413
6423
|
// Gitlab user
|
|
6414
6424
|
});
|
|
6415
|
-
var GitOrganization =
|
|
6416
|
-
id:
|
|
6417
|
-
name:
|
|
6418
|
-
url:
|
|
6419
|
-
slug:
|
|
6425
|
+
var GitOrganization = z203.object({
|
|
6426
|
+
id: z203.string(),
|
|
6427
|
+
name: z203.string(),
|
|
6428
|
+
url: z203.string(),
|
|
6429
|
+
slug: z203.string()
|
|
6420
6430
|
});
|
|
6421
|
-
var GitProject =
|
|
6422
|
-
id:
|
|
6423
|
-
name:
|
|
6424
|
-
url:
|
|
6425
|
-
slug:
|
|
6431
|
+
var GitProject = z203.object({
|
|
6432
|
+
id: z203.string(),
|
|
6433
|
+
name: z203.string(),
|
|
6434
|
+
url: z203.string(),
|
|
6435
|
+
slug: z203.string()
|
|
6426
6436
|
});
|
|
6427
|
-
var GitRepository =
|
|
6428
|
-
id:
|
|
6429
|
-
name:
|
|
6430
|
-
url:
|
|
6431
|
-
slug:
|
|
6437
|
+
var GitRepository = z203.object({
|
|
6438
|
+
id: z203.string(),
|
|
6439
|
+
name: z203.string(),
|
|
6440
|
+
url: z203.string(),
|
|
6441
|
+
slug: z203.string(),
|
|
6432
6442
|
/**
|
|
6433
6443
|
* Can be undefined when:
|
|
6434
6444
|
* - there are no branches in the repository yet
|
|
6435
6445
|
* - Git provider doesn't expose this information on a repository via their API
|
|
6436
6446
|
*/
|
|
6437
|
-
defaultBranch:
|
|
6447
|
+
defaultBranch: z203.string().optional()
|
|
6438
6448
|
});
|
|
6439
|
-
var GitBranch =
|
|
6440
|
-
name:
|
|
6441
|
-
lastCommitId:
|
|
6449
|
+
var GitBranch = z203.object({
|
|
6450
|
+
name: z203.string(),
|
|
6451
|
+
lastCommitId: z203.string()
|
|
6442
6452
|
});
|
|
6443
6453
|
|
|
6444
6454
|
// src/integrations/oauth-token.ts
|
|
6445
|
-
import { z as
|
|
6446
|
-
var IntegrationTokenSchemaOld =
|
|
6447
|
-
id:
|
|
6455
|
+
import { z as z204 } from "zod";
|
|
6456
|
+
var IntegrationTokenSchemaOld = z204.object({
|
|
6457
|
+
id: z204.string(),
|
|
6448
6458
|
provider: OAuthProviderSchema,
|
|
6449
|
-
scope:
|
|
6450
|
-
userId:
|
|
6451
|
-
accessToken:
|
|
6452
|
-
refreshToken:
|
|
6453
|
-
expiresAt:
|
|
6454
|
-
externalUserId:
|
|
6459
|
+
scope: z204.string(),
|
|
6460
|
+
userId: z204.string(),
|
|
6461
|
+
accessToken: z204.string(),
|
|
6462
|
+
refreshToken: z204.string(),
|
|
6463
|
+
expiresAt: z204.coerce.date(),
|
|
6464
|
+
externalUserId: z204.string().nullish()
|
|
6455
6465
|
});
|
|
6456
6466
|
|
|
6457
6467
|
// src/integrations/workspace-oauth-requests.ts
|
|
6458
|
-
import { z as
|
|
6459
|
-
var WorkspaceOAuthRequestSchema =
|
|
6460
|
-
id:
|
|
6461
|
-
workspaceId:
|
|
6468
|
+
import { z as z205 } from "zod";
|
|
6469
|
+
var WorkspaceOAuthRequestSchema = z205.object({
|
|
6470
|
+
id: z205.string(),
|
|
6471
|
+
workspaceId: z205.string(),
|
|
6462
6472
|
provider: OAuthProviderSchema,
|
|
6463
|
-
userId:
|
|
6464
|
-
createdAt:
|
|
6473
|
+
userId: z205.string(),
|
|
6474
|
+
createdAt: z205.coerce.date()
|
|
6465
6475
|
});
|
|
6466
6476
|
|
|
6467
6477
|
// src/npm/npm-package.ts
|
|
6468
|
-
import { z as
|
|
6469
|
-
var AnyRecord =
|
|
6478
|
+
import { z as z206 } from "zod";
|
|
6479
|
+
var AnyRecord = z206.record(z206.any());
|
|
6470
6480
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
6471
|
-
|
|
6472
|
-
tarball:
|
|
6481
|
+
z206.object({
|
|
6482
|
+
tarball: z206.string()
|
|
6473
6483
|
})
|
|
6474
6484
|
);
|
|
6475
6485
|
var NpmPackageVersion = AnyRecord.and(
|
|
6476
|
-
|
|
6486
|
+
z206.object({
|
|
6477
6487
|
dist: NpmPackageVersionDist
|
|
6478
6488
|
})
|
|
6479
6489
|
);
|
|
6480
6490
|
var NpmPackage = AnyRecord.and(
|
|
6481
|
-
|
|
6482
|
-
_id:
|
|
6483
|
-
name:
|
|
6491
|
+
z206.object({
|
|
6492
|
+
_id: z206.string(),
|
|
6493
|
+
name: z206.string(),
|
|
6484
6494
|
// e.g. "latest": "1.2.3"
|
|
6485
|
-
"dist-tags":
|
|
6495
|
+
"dist-tags": z206.record(z206.string(), z206.string()),
|
|
6486
6496
|
// "1.2.3": {...}
|
|
6487
|
-
versions:
|
|
6497
|
+
versions: z206.record(NpmPackageVersion)
|
|
6488
6498
|
})
|
|
6489
6499
|
);
|
|
6490
6500
|
|
|
6491
6501
|
// src/npm/npm-proxy-token-payload.ts
|
|
6492
|
-
import { z as
|
|
6493
|
-
var NpmProxyTokenPayload =
|
|
6494
|
-
npmProxyRegistryConfigId:
|
|
6502
|
+
import { z as z207 } from "zod";
|
|
6503
|
+
var NpmProxyTokenPayload = z207.object({
|
|
6504
|
+
npmProxyRegistryConfigId: z207.string()
|
|
6495
6505
|
});
|
|
6496
6506
|
|
|
6497
6507
|
// src/portal/portal-settings.ts
|
|
6498
|
-
import { z as
|
|
6508
|
+
import { z as z208 } from "zod";
|
|
6499
6509
|
var PortalSettingsTheme = UserTheme;
|
|
6500
|
-
var PortalSettingsSidebarLink =
|
|
6501
|
-
name:
|
|
6502
|
-
url:
|
|
6503
|
-
emoji:
|
|
6504
|
-
});
|
|
6505
|
-
var PortalSettingsSidebarSection =
|
|
6506
|
-
sectionName:
|
|
6507
|
-
links:
|
|
6508
|
-
});
|
|
6509
|
-
var PortalSettingsSidebar =
|
|
6510
|
-
var PortalSettings =
|
|
6511
|
-
id:
|
|
6512
|
-
workspaceId:
|
|
6513
|
-
enabledDesignSystemIds:
|
|
6514
|
-
enabledBrandPersistentIds:
|
|
6510
|
+
var PortalSettingsSidebarLink = z208.object({
|
|
6511
|
+
name: z208.string(),
|
|
6512
|
+
url: z208.string(),
|
|
6513
|
+
emoji: z208.string()
|
|
6514
|
+
});
|
|
6515
|
+
var PortalSettingsSidebarSection = z208.object({
|
|
6516
|
+
sectionName: z208.string(),
|
|
6517
|
+
links: z208.array(PortalSettingsSidebarLink)
|
|
6518
|
+
});
|
|
6519
|
+
var PortalSettingsSidebar = z208.array(PortalSettingsSidebarSection);
|
|
6520
|
+
var PortalSettings = z208.object({
|
|
6521
|
+
id: z208.string(),
|
|
6522
|
+
workspaceId: z208.string(),
|
|
6523
|
+
enabledDesignSystemIds: z208.array(z208.string()),
|
|
6524
|
+
enabledBrandPersistentIds: z208.array(z208.string()),
|
|
6515
6525
|
theme: PortalSettingsTheme.nullish(),
|
|
6516
6526
|
sidebar: PortalSettingsSidebar.nullish(),
|
|
6517
|
-
createdAt:
|
|
6518
|
-
updatedAt:
|
|
6527
|
+
createdAt: z208.coerce.date(),
|
|
6528
|
+
updatedAt: z208.coerce.date()
|
|
6519
6529
|
});
|
|
6520
6530
|
|
|
6521
6531
|
// src/tokens/personal-access-token.ts
|
|
6522
|
-
import { z as
|
|
6523
|
-
var PersonalAccessToken =
|
|
6524
|
-
id:
|
|
6525
|
-
userId:
|
|
6526
|
-
workspaceId:
|
|
6527
|
-
designSystemId:
|
|
6532
|
+
import { z as z209 } from "zod";
|
|
6533
|
+
var PersonalAccessToken = z209.object({
|
|
6534
|
+
id: z209.string(),
|
|
6535
|
+
userId: z209.string(),
|
|
6536
|
+
workspaceId: z209.string().optional(),
|
|
6537
|
+
designSystemId: z209.string().optional(),
|
|
6528
6538
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
6529
|
-
name:
|
|
6530
|
-
hidden:
|
|
6531
|
-
token:
|
|
6532
|
-
scope:
|
|
6533
|
-
createdAt:
|
|
6534
|
-
expireAt:
|
|
6539
|
+
name: z209.string(),
|
|
6540
|
+
hidden: z209.boolean(),
|
|
6541
|
+
token: z209.string(),
|
|
6542
|
+
scope: z209.string().optional(),
|
|
6543
|
+
createdAt: z209.coerce.date(),
|
|
6544
|
+
expireAt: z209.coerce.date().optional()
|
|
6535
6545
|
});
|
|
6536
6546
|
export {
|
|
6537
6547
|
Address,
|
|
@@ -6859,6 +6869,7 @@ export {
|
|
|
6859
6869
|
ForgeParticipant,
|
|
6860
6870
|
ForgeProject,
|
|
6861
6871
|
ForgeProjectAccessMode,
|
|
6872
|
+
ForgeProjectArtifactRoom,
|
|
6862
6873
|
ForgeProjectContext,
|
|
6863
6874
|
ForgeProjectContextDependency,
|
|
6864
6875
|
ForgeProjectContextTailwindConfig,
|