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