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