@supernova-studio/client 1.42.10 → 1.43.1
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 +101261 -101215
- package/dist/index.d.ts +101261 -101215
- package/dist/index.js +222 -204
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +554 -536
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5781,6 +5781,10 @@ var PageScreenshotInput = z212.object({
|
|
|
5781
5781
|
url: z212.string().url(),
|
|
5782
5782
|
elementSelector: z212.string(),
|
|
5783
5783
|
uploadUrl: z212.string().url(),
|
|
5784
|
+
viewportSize: z212.object({
|
|
5785
|
+
width: z212.number().positive(),
|
|
5786
|
+
height: z212.number().positive()
|
|
5787
|
+
}).optional(),
|
|
5784
5788
|
imageSize: z212.object({
|
|
5785
5789
|
width: z212.number().positive(),
|
|
5786
5790
|
height: z212.number().positive()
|
|
@@ -9619,8 +9623,8 @@ var DTODeleteForgeIterationMessageResponse = z314.object({
|
|
|
9619
9623
|
ok: z314.literal(true)
|
|
9620
9624
|
});
|
|
9621
9625
|
|
|
9622
|
-
// src/api/dto/forge/project
|
|
9623
|
-
import
|
|
9626
|
+
// src/api/dto/forge/project.ts
|
|
9627
|
+
import { z as z321 } from "zod";
|
|
9624
9628
|
|
|
9625
9629
|
// src/api/dto/forge/project-artifact.ts
|
|
9626
9630
|
import { z as z317 } from "zod";
|
|
@@ -9835,128 +9839,19 @@ var DTOForgeProjectArtifactsListResponse = z317.object({
|
|
|
9835
9839
|
artifacts: z317.array(DTOForgeProjectArtifact)
|
|
9836
9840
|
});
|
|
9837
9841
|
|
|
9838
|
-
// src/api/dto/forge/project-feature.ts
|
|
9839
|
-
import z318 from "zod";
|
|
9840
|
-
var DTOForgeProjectFeature = ProjectFeature;
|
|
9841
|
-
var DTOForgeProjectFeatureListResponse = z318.object({
|
|
9842
|
-
features: DTOForgeProjectFeature.array()
|
|
9843
|
-
});
|
|
9844
|
-
var DTOForgeProjectFeatureGetResponse = z318.object({
|
|
9845
|
-
feature: DTOForgeProjectFeature
|
|
9846
|
-
});
|
|
9847
|
-
var DTOForgeProjectFeatureCreateInput = z318.object({
|
|
9848
|
-
id: Id,
|
|
9849
|
-
name: z318.string().optional(),
|
|
9850
|
-
description: z318.string(),
|
|
9851
|
-
sectionId: Id.optional(),
|
|
9852
|
-
afterFeatureId: Id.nullable().optional(),
|
|
9853
|
-
initialMessage: DTOThreadMessageCreateInput
|
|
9854
|
-
});
|
|
9855
|
-
var DTOForgeProjectFeatureUpdateInput = z318.object({
|
|
9856
|
-
id: Id,
|
|
9857
|
-
name: z318.string().optional(),
|
|
9858
|
-
description: z318.string().optional(),
|
|
9859
|
-
isArchived: z318.boolean().optional(),
|
|
9860
|
-
status: ProjectFeatureStatus.optional()
|
|
9861
|
-
});
|
|
9862
|
-
var DTOForgeProjectFeatureDeleteInput = z318.object({
|
|
9863
|
-
id: Id
|
|
9864
|
-
});
|
|
9865
|
-
var DTOForgeProjectFeatureMoveInput = DTOForgeSectionItemMoveInput;
|
|
9866
|
-
|
|
9867
|
-
// src/api/dto/forge/project-action.ts
|
|
9868
|
-
var DTOForgeProjectActionFeatureCreate = z319.object({
|
|
9869
|
-
type: z319.literal("FeatureCreate"),
|
|
9870
|
-
input: DTOForgeProjectFeatureCreateInput
|
|
9871
|
-
});
|
|
9872
|
-
var DTOForgeProjectActionFeatureUpdate = z319.object({
|
|
9873
|
-
type: z319.literal("FeatureUpdate"),
|
|
9874
|
-
input: DTOForgeProjectFeatureUpdateInput
|
|
9875
|
-
});
|
|
9876
|
-
var DTOForgeProjectActionFeatureMove = z319.object({
|
|
9877
|
-
type: z319.literal("FeatureMove"),
|
|
9878
|
-
input: DTOForgeProjectFeatureMoveInput
|
|
9879
|
-
});
|
|
9880
|
-
var DTOForgeProjectActionFeatureDelete = z319.object({
|
|
9881
|
-
type: z319.literal("FeatureDelete"),
|
|
9882
|
-
input: DTOForgeProjectFeatureDeleteInput
|
|
9883
|
-
});
|
|
9884
|
-
var DTOForgeProjectActionArtifactCreate = z319.object({
|
|
9885
|
-
type: z319.literal("ArtifactCreate"),
|
|
9886
|
-
input: DTOForgeProjectArtifactCreateInput
|
|
9887
|
-
});
|
|
9888
|
-
var DTOForgeProjectActionArtifactUpdate = z319.object({
|
|
9889
|
-
type: z319.literal("ArtifactUpdate"),
|
|
9890
|
-
input: DTOForgeProjectArtifactUpdateInput
|
|
9891
|
-
});
|
|
9892
|
-
var DTOForgeProjectActionArtifactDelete = z319.object({
|
|
9893
|
-
type: z319.literal("ArtifactDelete"),
|
|
9894
|
-
input: DTOForgeProjectArtifactDeleteInput
|
|
9895
|
-
});
|
|
9896
|
-
var DTOForgeProjectActionArtifactMove = z319.object({
|
|
9897
|
-
type: z319.literal("ArtifactMove"),
|
|
9898
|
-
input: DTOForgeProjectArtifactMoveInput
|
|
9899
|
-
});
|
|
9900
|
-
var DTOForgeProjectActionSectionCreate = z319.object({
|
|
9901
|
-
type: z319.literal("SectionCreate"),
|
|
9902
|
-
input: DTOForgeSectionCreateInput
|
|
9903
|
-
});
|
|
9904
|
-
var DTOForgeProjectActionSectionUpdate = z319.object({
|
|
9905
|
-
type: z319.literal("SectionUpdate"),
|
|
9906
|
-
input: DTOForgeSectionUpdateInput
|
|
9907
|
-
});
|
|
9908
|
-
var DTOForgeProjectActionSectionDelete = z319.object({
|
|
9909
|
-
type: z319.literal("SectionDelete"),
|
|
9910
|
-
input: DTOForgeSectionDeleteInput
|
|
9911
|
-
});
|
|
9912
|
-
var DTOForgeProjectActionSectionMove = z319.object({
|
|
9913
|
-
type: z319.literal("SectionMove"),
|
|
9914
|
-
input: DTOForgeSectionMoveInput
|
|
9915
|
-
});
|
|
9916
|
-
var DTOForgeProjectAction = z319.discriminatedUnion("type", [
|
|
9917
|
-
//features
|
|
9918
|
-
DTOForgeProjectActionFeatureCreate,
|
|
9919
|
-
DTOForgeProjectActionFeatureUpdate,
|
|
9920
|
-
DTOForgeProjectActionFeatureDelete,
|
|
9921
|
-
DTOForgeProjectActionFeatureMove,
|
|
9922
|
-
//artifacts
|
|
9923
|
-
DTOForgeProjectActionArtifactCreate,
|
|
9924
|
-
DTOForgeProjectActionArtifactUpdate,
|
|
9925
|
-
DTOForgeProjectActionArtifactDelete,
|
|
9926
|
-
DTOForgeProjectActionArtifactMove,
|
|
9927
|
-
//section
|
|
9928
|
-
DTOForgeProjectActionSectionCreate,
|
|
9929
|
-
DTOForgeProjectActionSectionUpdate,
|
|
9930
|
-
DTOForgeProjectActionSectionDelete,
|
|
9931
|
-
DTOForgeProjectActionSectionMove
|
|
9932
|
-
]).and(
|
|
9933
|
-
z319.object({
|
|
9934
|
-
tId: z319.string().optional()
|
|
9935
|
-
})
|
|
9936
|
-
);
|
|
9937
|
-
|
|
9938
|
-
// src/api/dto/forge/project-artifact-room.ts
|
|
9939
|
-
import { z as z320 } from "zod";
|
|
9940
|
-
var DTOForgeProjectArtifactRoom = z320.object({
|
|
9941
|
-
id: z320.string()
|
|
9942
|
-
});
|
|
9943
|
-
var DTOForgeProjectArtifactRoomResponse = z320.object({
|
|
9944
|
-
room: DTOForgeProjectArtifactRoom
|
|
9945
|
-
});
|
|
9946
|
-
|
|
9947
9842
|
// src/api/dto/forge/project-context-v2.ts
|
|
9948
|
-
import { z as
|
|
9949
|
-
var DTOForgeComponentSetTypeV2 =
|
|
9950
|
-
var DTOForgeComponentSet =
|
|
9843
|
+
import { z as z318 } from "zod";
|
|
9844
|
+
var DTOForgeComponentSetTypeV2 = z318.enum(["Shadcn"]);
|
|
9845
|
+
var DTOForgeComponentSet = z318.object({
|
|
9951
9846
|
type: DTOForgeComponentSetTypeV2
|
|
9952
9847
|
});
|
|
9953
|
-
var DTOForgeIconSetTypeV2 =
|
|
9954
|
-
var DTOForgeThemePreset =
|
|
9955
|
-
var DTOForgeIconSet =
|
|
9848
|
+
var DTOForgeIconSetTypeV2 = z318.enum(["Phosphor", "Lucide", "Tabler"]);
|
|
9849
|
+
var DTOForgeThemePreset = z318.enum(["Default", "Airbnb", "Spotify", "Windows98"]);
|
|
9850
|
+
var DTOForgeIconSet = z318.object({
|
|
9956
9851
|
type: DTOForgeIconSetTypeV2,
|
|
9957
|
-
variant:
|
|
9852
|
+
variant: z318.string().optional()
|
|
9958
9853
|
});
|
|
9959
|
-
var DTOForgeProjectTheme =
|
|
9854
|
+
var DTOForgeProjectTheme = z318.object({
|
|
9960
9855
|
// Colors
|
|
9961
9856
|
background: ColorTokenData,
|
|
9962
9857
|
foreground: ColorTokenData,
|
|
@@ -10041,21 +9936,21 @@ var DTOForgeProjectTheme = z321.object({
|
|
|
10041
9936
|
shadowXl: ShadowTokenData,
|
|
10042
9937
|
shadow2xl: ShadowTokenData
|
|
10043
9938
|
});
|
|
10044
|
-
var DTOForgeProjectContextV2 =
|
|
10045
|
-
id:
|
|
10046
|
-
name:
|
|
10047
|
-
workspaceId:
|
|
10048
|
-
designSystemId:
|
|
10049
|
-
description:
|
|
10050
|
-
productContext:
|
|
10051
|
-
additionalContext:
|
|
10052
|
-
isArchived:
|
|
9939
|
+
var DTOForgeProjectContextV2 = z318.object({
|
|
9940
|
+
id: z318.string(),
|
|
9941
|
+
name: z318.string(),
|
|
9942
|
+
workspaceId: z318.string(),
|
|
9943
|
+
designSystemId: z318.string().optional(),
|
|
9944
|
+
description: z318.string().optional(),
|
|
9945
|
+
productContext: z318.string().optional(),
|
|
9946
|
+
additionalContext: z318.string().optional(),
|
|
9947
|
+
isArchived: z318.boolean(),
|
|
10053
9948
|
themePreset: DTOForgeThemePreset.optional(),
|
|
10054
9949
|
componentSet: DTOForgeComponentSet,
|
|
10055
9950
|
iconSet: DTOForgeIconSet,
|
|
10056
9951
|
theme: DTOForgeProjectTheme,
|
|
10057
|
-
createdAt:
|
|
10058
|
-
updatedAt:
|
|
9952
|
+
createdAt: z318.coerce.date(),
|
|
9953
|
+
updatedAt: z318.coerce.date()
|
|
10059
9954
|
});
|
|
10060
9955
|
var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
|
|
10061
9956
|
id: true,
|
|
@@ -10064,99 +9959,41 @@ var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
|
|
|
10064
9959
|
isArchived: true
|
|
10065
9960
|
});
|
|
10066
9961
|
var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({ id: true, workspaceId: true }).partial();
|
|
10067
|
-
var DTOForgeProjectContextResponseV2 =
|
|
10068
|
-
var DTOForgeProjectContextListQueryV2 =
|
|
10069
|
-
var DTOForgeProjectContextListResponseV2 =
|
|
9962
|
+
var DTOForgeProjectContextResponseV2 = z318.object({ context: DTOForgeProjectContextV2 });
|
|
9963
|
+
var DTOForgeProjectContextListQueryV2 = z318.object({ workspaceId: z318.string() });
|
|
9964
|
+
var DTOForgeProjectContextListResponseV2 = z318.object({ contexts: z318.array(DTOForgeProjectContextV2) });
|
|
10070
9965
|
|
|
10071
|
-
// src/api/dto/forge/project-
|
|
10072
|
-
import
|
|
10073
|
-
var
|
|
10074
|
-
|
|
10075
|
-
|
|
10076
|
-
z322.object({
|
|
10077
|
-
packageName: z322.string(),
|
|
10078
|
-
type: z322.literal("npm"),
|
|
10079
|
-
version: z322.string().default("latest")
|
|
10080
|
-
})
|
|
10081
|
-
),
|
|
10082
|
-
designSystemId: z322.string(),
|
|
10083
|
-
id: z322.string(),
|
|
10084
|
-
meta: z322.object({
|
|
10085
|
-
name: z322.string(),
|
|
10086
|
-
description: z322.string().optional()
|
|
10087
|
-
}),
|
|
10088
|
-
name: z322.string(),
|
|
10089
|
-
npmProxySettings: DTONpmRegistryConfig.optional(),
|
|
10090
|
-
platform: z322.enum(["React", "Vue", "Angular"]),
|
|
10091
|
-
styling: z322.enum(["CSS", "Tailwind"]),
|
|
10092
|
-
tailwindConfig: z322.object({
|
|
10093
|
-
content: z322.string(),
|
|
10094
|
-
version: z322.string()
|
|
10095
|
-
}).optional(),
|
|
10096
|
-
createdAt: z322.coerce.date(),
|
|
10097
|
-
updatedAt: z322.coerce.date(),
|
|
10098
|
-
workspaceId: z322.string()
|
|
9966
|
+
// src/api/dto/forge/project-feature.ts
|
|
9967
|
+
import z319 from "zod";
|
|
9968
|
+
var DTOForgeProjectFeature = ProjectFeature;
|
|
9969
|
+
var DTOForgeProjectFeatureListResponse = z319.object({
|
|
9970
|
+
features: DTOForgeProjectFeature.array()
|
|
10099
9971
|
});
|
|
10100
|
-
var
|
|
10101
|
-
|
|
10102
|
-
name: true,
|
|
10103
|
-
meta: true,
|
|
10104
|
-
designSystemId: true,
|
|
10105
|
-
platform: true,
|
|
10106
|
-
dependencies: true,
|
|
10107
|
-
tailwindConfig: true,
|
|
10108
|
-
styling: true
|
|
10109
|
-
}).extend({ npmProxySettings: DTONpmRegistryConfig });
|
|
10110
|
-
var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z322.string() });
|
|
10111
|
-
var DTOForgeProjectContextGetResponse = z322.object({ context: DTOForgeProjectContext });
|
|
10112
|
-
var DTOForgeProjectContextListResponse = z322.object({ contexts: z322.array(DTOForgeProjectContext) });
|
|
10113
|
-
var DTOForgeProjectContextCreateResponse = z322.object({ context: DTOForgeProjectContext });
|
|
10114
|
-
var DTOForgeProjectContextUpdateResponse = z322.object({ context: DTOForgeProjectContext });
|
|
10115
|
-
var DTOForgeProjectContextRemoveResponse = z322.object({
|
|
10116
|
-
ok: z322.literal(true)
|
|
9972
|
+
var DTOForgeProjectFeatureGetResponse = z319.object({
|
|
9973
|
+
feature: DTOForgeProjectFeature
|
|
10117
9974
|
});
|
|
10118
|
-
|
|
10119
|
-
|
|
10120
|
-
|
|
10121
|
-
|
|
10122
|
-
|
|
10123
|
-
|
|
10124
|
-
|
|
10125
|
-
var DTOForgeProjectFile = z323.object({
|
|
10126
|
-
id: z323.string(),
|
|
10127
|
-
name: z323.string(),
|
|
10128
|
-
checksum: z323.string(),
|
|
10129
|
-
pendingUpload: z323.boolean().optional(),
|
|
10130
|
-
url: z323.string(),
|
|
10131
|
-
size: z323.number()
|
|
10132
|
-
});
|
|
10133
|
-
var DTOForgeProjectFileListResponse = z323.object({
|
|
10134
|
-
files: z323.array(DTOForgeProjectFile)
|
|
10135
|
-
});
|
|
10136
|
-
var DTOForgeProjectFileUploadPayloadItem = z323.object({
|
|
10137
|
-
size: z323.number(),
|
|
10138
|
-
name: z323.string(),
|
|
10139
|
-
checksum: z323.string()
|
|
10140
|
-
});
|
|
10141
|
-
var DTOForgeProjectFileUploadPayload = z323.object({
|
|
10142
|
-
files: z323.array(DTOForgeProjectFileUploadPayloadItem)
|
|
10143
|
-
});
|
|
10144
|
-
var DTOForgeProjectFileUploadResponse = z323.object({
|
|
10145
|
-
files: z323.array(DTOForgeProjectFile),
|
|
10146
|
-
uploadUrls: z323.array(
|
|
10147
|
-
z323.object({
|
|
10148
|
-
fileId: z323.string(),
|
|
10149
|
-
uploadUrl: z323.string()
|
|
10150
|
-
})
|
|
10151
|
-
)
|
|
9975
|
+
var DTOForgeProjectFeatureCreateInput = z319.object({
|
|
9976
|
+
id: Id,
|
|
9977
|
+
name: z319.string().optional(),
|
|
9978
|
+
description: z319.string(),
|
|
9979
|
+
sectionId: Id.optional(),
|
|
9980
|
+
afterFeatureId: Id.nullable().optional(),
|
|
9981
|
+
initialMessage: DTOThreadMessageCreateInput
|
|
10152
9982
|
});
|
|
10153
|
-
var
|
|
10154
|
-
|
|
9983
|
+
var DTOForgeProjectFeatureUpdateInput = z319.object({
|
|
9984
|
+
id: Id,
|
|
9985
|
+
name: z319.string().optional(),
|
|
9986
|
+
description: z319.string().optional(),
|
|
9987
|
+
isArchived: z319.boolean().optional(),
|
|
9988
|
+
status: ProjectFeatureStatus.optional()
|
|
10155
9989
|
});
|
|
10156
|
-
var
|
|
9990
|
+
var DTOForgeProjectFeatureDeleteInput = z319.object({
|
|
9991
|
+
id: Id
|
|
9992
|
+
});
|
|
9993
|
+
var DTOForgeProjectFeatureMoveInput = DTOForgeSectionItemMoveInput;
|
|
10157
9994
|
|
|
10158
9995
|
// src/api/dto/forge/project-invitation.ts
|
|
10159
|
-
import { z as
|
|
9996
|
+
import { z as z320 } from "zod";
|
|
10160
9997
|
var DTOForgeProjectInvitation = ForgeProjectInvitation;
|
|
10161
9998
|
var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
|
|
10162
9999
|
email: true,
|
|
@@ -10170,24 +10007,257 @@ var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation.omit({
|
|
|
10170
10007
|
var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
|
|
10171
10008
|
email: true
|
|
10172
10009
|
});
|
|
10173
|
-
var DTOForgeProjectInvitationsListResponse =
|
|
10174
|
-
invitations:
|
|
10010
|
+
var DTOForgeProjectInvitationsListResponse = z320.object({
|
|
10011
|
+
invitations: z320.array(DTOForgeProjectInvitation)
|
|
10175
10012
|
});
|
|
10176
|
-
var DTOForgeProjectInvitationGetResponse =
|
|
10013
|
+
var DTOForgeProjectInvitationGetResponse = z320.object({
|
|
10177
10014
|
invitation: DTOForgeProjectInvitation
|
|
10178
10015
|
});
|
|
10179
|
-
var DTOForgeProjectInvitationCreateResponse =
|
|
10016
|
+
var DTOForgeProjectInvitationCreateResponse = z320.object({
|
|
10180
10017
|
invitation: DTOForgeProjectInvitation
|
|
10181
10018
|
});
|
|
10182
|
-
var DTOForgeProjectInvitationUpdateResponse =
|
|
10019
|
+
var DTOForgeProjectInvitationUpdateResponse = z320.object({
|
|
10183
10020
|
invitation: DTOForgeProjectInvitation.nullable()
|
|
10184
10021
|
});
|
|
10185
|
-
var DTOForgeProjectInvitationRemoveResponse =
|
|
10022
|
+
var DTOForgeProjectInvitationRemoveResponse = z320.object({
|
|
10023
|
+
ok: z320.literal(true)
|
|
10024
|
+
});
|
|
10025
|
+
|
|
10026
|
+
// src/api/dto/forge/project.ts
|
|
10027
|
+
var DTOForgeProjectRole = z321.enum(["Viewer", "Builder", "Admin"]);
|
|
10028
|
+
var DTOForgeProjectAccessMode = z321.enum(["InviteOnly", "Open", "Unlisted"]);
|
|
10029
|
+
var DTOForgeProjectDefaultRole = DTOForgeProjectRole.exclude(["Admin"]);
|
|
10030
|
+
var DTOForgeProject = z321.object({
|
|
10031
|
+
id: z321.string(),
|
|
10032
|
+
workspaceId: z321.string(),
|
|
10033
|
+
projectContextId: z321.string(),
|
|
10034
|
+
name: z321.string(),
|
|
10035
|
+
description: z321.string().optional(),
|
|
10036
|
+
instruction: z321.string().nullable(),
|
|
10037
|
+
tags: z321.array(z321.string()).default([]),
|
|
10038
|
+
accessMode: DTOForgeProjectAccessMode,
|
|
10039
|
+
defaultRole: DTOForgeProjectDefaultRole.default("Viewer"),
|
|
10040
|
+
isArchived: z321.boolean().optional(),
|
|
10041
|
+
emoji: z321.string().optional(),
|
|
10042
|
+
createdAt: z321.coerce.date(),
|
|
10043
|
+
createdByUserId: z321.string().optional(),
|
|
10044
|
+
updatedAt: z321.coerce.date(),
|
|
10045
|
+
/** @deprecated use `projectContextId` */
|
|
10046
|
+
fpContextId: z321.string(),
|
|
10047
|
+
/** @deprecated use `name` and `description` properties on project */
|
|
10048
|
+
meta: z321.object({
|
|
10049
|
+
name: z321.string(),
|
|
10050
|
+
description: z321.string().optional()
|
|
10051
|
+
}),
|
|
10052
|
+
/** @deprecated prefer fetching from project contexts endpoint separately */
|
|
10053
|
+
context: DTOForgeProjectContextV2,
|
|
10054
|
+
numberOfFeatures: z321.number().int().nonnegative()
|
|
10055
|
+
});
|
|
10056
|
+
var DTOForgeProjectCreate = DTOForgeProject.pick({
|
|
10057
|
+
name: true,
|
|
10058
|
+
description: true,
|
|
10059
|
+
instruction: true,
|
|
10060
|
+
tags: true,
|
|
10061
|
+
accessMode: true,
|
|
10062
|
+
defaultRole: true,
|
|
10063
|
+
emoji: true
|
|
10064
|
+
}).extend({
|
|
10065
|
+
/** @deprecated use `name` and `description` properties on project */
|
|
10066
|
+
meta: DTOForgeProject.shape.meta.optional(),
|
|
10067
|
+
/** @deprecated use `projectContextId` */
|
|
10068
|
+
fpContextId: z321.string().optional(),
|
|
10069
|
+
projectContextId: z321.string().optional(),
|
|
10070
|
+
membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional(),
|
|
10071
|
+
initialFeature: DTOForgeProjectFeatureCreateInput.optional(),
|
|
10072
|
+
initialArtifact: DTOForgeProjectArtifactCreateInput.optional()
|
|
10073
|
+
});
|
|
10074
|
+
var DTOForgeProjectUpdate = DTOForgeProjectCreate.omit({ membersToInvite: true }).partial().extend({
|
|
10075
|
+
id: z321.string(),
|
|
10076
|
+
isArchived: z321.boolean().optional()
|
|
10077
|
+
});
|
|
10078
|
+
var DTOForgeProjectListResponse = z321.object({
|
|
10079
|
+
projects: z321.array(
|
|
10080
|
+
DTOForgeProject.extend({
|
|
10081
|
+
effectiveRole: DTOForgeProjectRole
|
|
10082
|
+
})
|
|
10083
|
+
)
|
|
10084
|
+
});
|
|
10085
|
+
var DTOForgeProjectResponse = z321.object({
|
|
10086
|
+
project: DTOForgeProject.extend({
|
|
10087
|
+
effectiveRole: DTOForgeProjectRole
|
|
10088
|
+
})
|
|
10089
|
+
});
|
|
10090
|
+
|
|
10091
|
+
// src/api/dto/forge/project-action.ts
|
|
10092
|
+
import z322 from "zod";
|
|
10093
|
+
var DTOForgeProjectActionFeatureCreate = z322.object({
|
|
10094
|
+
type: z322.literal("FeatureCreate"),
|
|
10095
|
+
input: DTOForgeProjectFeatureCreateInput
|
|
10096
|
+
});
|
|
10097
|
+
var DTOForgeProjectActionFeatureUpdate = z322.object({
|
|
10098
|
+
type: z322.literal("FeatureUpdate"),
|
|
10099
|
+
input: DTOForgeProjectFeatureUpdateInput
|
|
10100
|
+
});
|
|
10101
|
+
var DTOForgeProjectActionFeatureMove = z322.object({
|
|
10102
|
+
type: z322.literal("FeatureMove"),
|
|
10103
|
+
input: DTOForgeProjectFeatureMoveInput
|
|
10104
|
+
});
|
|
10105
|
+
var DTOForgeProjectActionFeatureDelete = z322.object({
|
|
10106
|
+
type: z322.literal("FeatureDelete"),
|
|
10107
|
+
input: DTOForgeProjectFeatureDeleteInput
|
|
10108
|
+
});
|
|
10109
|
+
var DTOForgeProjectActionArtifactCreate = z322.object({
|
|
10110
|
+
type: z322.literal("ArtifactCreate"),
|
|
10111
|
+
input: DTOForgeProjectArtifactCreateInput
|
|
10112
|
+
});
|
|
10113
|
+
var DTOForgeProjectActionArtifactUpdate = z322.object({
|
|
10114
|
+
type: z322.literal("ArtifactUpdate"),
|
|
10115
|
+
input: DTOForgeProjectArtifactUpdateInput
|
|
10116
|
+
});
|
|
10117
|
+
var DTOForgeProjectActionArtifactDelete = z322.object({
|
|
10118
|
+
type: z322.literal("ArtifactDelete"),
|
|
10119
|
+
input: DTOForgeProjectArtifactDeleteInput
|
|
10120
|
+
});
|
|
10121
|
+
var DTOForgeProjectActionArtifactMove = z322.object({
|
|
10122
|
+
type: z322.literal("ArtifactMove"),
|
|
10123
|
+
input: DTOForgeProjectArtifactMoveInput
|
|
10124
|
+
});
|
|
10125
|
+
var DTOForgeProjectActionSectionCreate = z322.object({
|
|
10126
|
+
type: z322.literal("SectionCreate"),
|
|
10127
|
+
input: DTOForgeSectionCreateInput
|
|
10128
|
+
});
|
|
10129
|
+
var DTOForgeProjectActionSectionUpdate = z322.object({
|
|
10130
|
+
type: z322.literal("SectionUpdate"),
|
|
10131
|
+
input: DTOForgeSectionUpdateInput
|
|
10132
|
+
});
|
|
10133
|
+
var DTOForgeProjectActionSectionDelete = z322.object({
|
|
10134
|
+
type: z322.literal("SectionDelete"),
|
|
10135
|
+
input: DTOForgeSectionDeleteInput
|
|
10136
|
+
});
|
|
10137
|
+
var DTOForgeProjectActionSectionMove = z322.object({
|
|
10138
|
+
type: z322.literal("SectionMove"),
|
|
10139
|
+
input: DTOForgeSectionMoveInput
|
|
10140
|
+
});
|
|
10141
|
+
var DTOForgeProjectAction = z322.discriminatedUnion("type", [
|
|
10142
|
+
//features
|
|
10143
|
+
DTOForgeProjectActionFeatureCreate,
|
|
10144
|
+
DTOForgeProjectActionFeatureUpdate,
|
|
10145
|
+
DTOForgeProjectActionFeatureDelete,
|
|
10146
|
+
DTOForgeProjectActionFeatureMove,
|
|
10147
|
+
//artifacts
|
|
10148
|
+
DTOForgeProjectActionArtifactCreate,
|
|
10149
|
+
DTOForgeProjectActionArtifactUpdate,
|
|
10150
|
+
DTOForgeProjectActionArtifactDelete,
|
|
10151
|
+
DTOForgeProjectActionArtifactMove,
|
|
10152
|
+
//section
|
|
10153
|
+
DTOForgeProjectActionSectionCreate,
|
|
10154
|
+
DTOForgeProjectActionSectionUpdate,
|
|
10155
|
+
DTOForgeProjectActionSectionDelete,
|
|
10156
|
+
DTOForgeProjectActionSectionMove
|
|
10157
|
+
]).and(
|
|
10158
|
+
z322.object({
|
|
10159
|
+
tId: z322.string().optional()
|
|
10160
|
+
})
|
|
10161
|
+
);
|
|
10162
|
+
|
|
10163
|
+
// src/api/dto/forge/project-artifact-room.ts
|
|
10164
|
+
import { z as z323 } from "zod";
|
|
10165
|
+
var DTOForgeProjectArtifactRoom = z323.object({
|
|
10166
|
+
id: z323.string()
|
|
10167
|
+
});
|
|
10168
|
+
var DTOForgeProjectArtifactRoomResponse = z323.object({
|
|
10169
|
+
room: DTOForgeProjectArtifactRoom
|
|
10170
|
+
});
|
|
10171
|
+
|
|
10172
|
+
// src/api/dto/forge/project-context.ts
|
|
10173
|
+
import { z as z324 } from "zod";
|
|
10174
|
+
var DTOForgeProjectContext = z324.object({
|
|
10175
|
+
definition: z324.string(),
|
|
10176
|
+
dependencies: z324.array(
|
|
10177
|
+
z324.object({
|
|
10178
|
+
packageName: z324.string(),
|
|
10179
|
+
type: z324.literal("npm"),
|
|
10180
|
+
version: z324.string().default("latest")
|
|
10181
|
+
})
|
|
10182
|
+
),
|
|
10183
|
+
designSystemId: z324.string(),
|
|
10184
|
+
id: z324.string(),
|
|
10185
|
+
meta: z324.object({
|
|
10186
|
+
name: z324.string(),
|
|
10187
|
+
description: z324.string().optional()
|
|
10188
|
+
}),
|
|
10189
|
+
name: z324.string(),
|
|
10190
|
+
npmProxySettings: DTONpmRegistryConfig.optional(),
|
|
10191
|
+
platform: z324.enum(["React", "Vue", "Angular"]),
|
|
10192
|
+
styling: z324.enum(["CSS", "Tailwind"]),
|
|
10193
|
+
tailwindConfig: z324.object({
|
|
10194
|
+
content: z324.string(),
|
|
10195
|
+
version: z324.string()
|
|
10196
|
+
}).optional(),
|
|
10197
|
+
createdAt: z324.coerce.date(),
|
|
10198
|
+
updatedAt: z324.coerce.date(),
|
|
10199
|
+
workspaceId: z324.string()
|
|
10200
|
+
});
|
|
10201
|
+
var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
10202
|
+
definition: true,
|
|
10203
|
+
name: true,
|
|
10204
|
+
meta: true,
|
|
10205
|
+
designSystemId: true,
|
|
10206
|
+
platform: true,
|
|
10207
|
+
dependencies: true,
|
|
10208
|
+
tailwindConfig: true,
|
|
10209
|
+
styling: true
|
|
10210
|
+
}).extend({ npmProxySettings: DTONpmRegistryConfig });
|
|
10211
|
+
var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z324.string() });
|
|
10212
|
+
var DTOForgeProjectContextGetResponse = z324.object({ context: DTOForgeProjectContext });
|
|
10213
|
+
var DTOForgeProjectContextListResponse = z324.object({ contexts: z324.array(DTOForgeProjectContext) });
|
|
10214
|
+
var DTOForgeProjectContextCreateResponse = z324.object({ context: DTOForgeProjectContext });
|
|
10215
|
+
var DTOForgeProjectContextUpdateResponse = z324.object({ context: DTOForgeProjectContext });
|
|
10216
|
+
var DTOForgeProjectContextRemoveResponse = z324.object({
|
|
10186
10217
|
ok: z324.literal(true)
|
|
10187
10218
|
});
|
|
10188
10219
|
|
|
10189
|
-
// src/api/dto/forge/project-
|
|
10220
|
+
// src/api/dto/forge/project-figma-node.ts
|
|
10221
|
+
var DTOForgeProjectFigmaNode = ForgeProjectFigmaNode;
|
|
10222
|
+
var DTOForgeProjectFigmaNodeRenderInput = ForgeProjectFigmaNodeRenderInput;
|
|
10223
|
+
|
|
10224
|
+
// src/api/dto/forge/project-file.ts
|
|
10190
10225
|
import { z as z325 } from "zod";
|
|
10226
|
+
var DTOForgeProjectFile = z325.object({
|
|
10227
|
+
id: z325.string(),
|
|
10228
|
+
name: z325.string(),
|
|
10229
|
+
checksum: z325.string(),
|
|
10230
|
+
pendingUpload: z325.boolean().optional(),
|
|
10231
|
+
url: z325.string(),
|
|
10232
|
+
size: z325.number()
|
|
10233
|
+
});
|
|
10234
|
+
var DTOForgeProjectFileListResponse = z325.object({
|
|
10235
|
+
files: z325.array(DTOForgeProjectFile)
|
|
10236
|
+
});
|
|
10237
|
+
var DTOForgeProjectFileUploadPayloadItem = z325.object({
|
|
10238
|
+
size: z325.number(),
|
|
10239
|
+
name: z325.string(),
|
|
10240
|
+
checksum: z325.string()
|
|
10241
|
+
});
|
|
10242
|
+
var DTOForgeProjectFileUploadPayload = z325.object({
|
|
10243
|
+
files: z325.array(DTOForgeProjectFileUploadPayloadItem)
|
|
10244
|
+
});
|
|
10245
|
+
var DTOForgeProjectFileUploadResponse = z325.object({
|
|
10246
|
+
files: z325.array(DTOForgeProjectFile),
|
|
10247
|
+
uploadUrls: z325.array(
|
|
10248
|
+
z325.object({
|
|
10249
|
+
fileId: z325.string(),
|
|
10250
|
+
uploadUrl: z325.string()
|
|
10251
|
+
})
|
|
10252
|
+
)
|
|
10253
|
+
});
|
|
10254
|
+
var DTOForgeProjectFileUploadFinalizePayload = z325.object({
|
|
10255
|
+
fileIds: z325.array(z325.string())
|
|
10256
|
+
});
|
|
10257
|
+
var DTOForgeProjectFileUploadFinalizeResponse = z325.object({ ok: z325.literal(true) });
|
|
10258
|
+
|
|
10259
|
+
// src/api/dto/forge/project-iteration-old.ts
|
|
10260
|
+
import { z as z326 } from "zod";
|
|
10191
10261
|
var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
|
|
10192
10262
|
var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
10193
10263
|
artifacts: true,
|
|
@@ -10198,7 +10268,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
|
10198
10268
|
messages: DTOForgeIterationMessage.array(),
|
|
10199
10269
|
mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
|
|
10200
10270
|
});
|
|
10201
|
-
var DTOGetForgeProjectIterationResponse =
|
|
10271
|
+
var DTOGetForgeProjectIterationResponse = z326.object({
|
|
10202
10272
|
iteration: DTOForgeProjectIteration.nullable()
|
|
10203
10273
|
});
|
|
10204
10274
|
var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
@@ -10208,20 +10278,20 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
|
10208
10278
|
mergeMeta: true,
|
|
10209
10279
|
createdAt: true
|
|
10210
10280
|
});
|
|
10211
|
-
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id:
|
|
10212
|
-
var DTOCreateForgeProjectIterationResponse =
|
|
10281
|
+
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z326.string() });
|
|
10282
|
+
var DTOCreateForgeProjectIterationResponse = z326.object({
|
|
10213
10283
|
iteration: DTOForgeProjectIteration
|
|
10214
10284
|
});
|
|
10215
|
-
var DTOUpdateForgeProjectIterationResponse =
|
|
10285
|
+
var DTOUpdateForgeProjectIterationResponse = z326.object({
|
|
10216
10286
|
iteration: DTOForgeProjectIteration.nullable()
|
|
10217
10287
|
});
|
|
10218
|
-
var DTODeleteForgeProjectIterationResponse =
|
|
10219
|
-
ok:
|
|
10288
|
+
var DTODeleteForgeProjectIterationResponse = z326.object({
|
|
10289
|
+
ok: z326.literal(true)
|
|
10220
10290
|
});
|
|
10221
|
-
var DTOForgeProjectIterationListResponse =
|
|
10291
|
+
var DTOForgeProjectIterationListResponse = z326.object({ iterations: z326.array(DTOForgeProjectIteration) });
|
|
10222
10292
|
|
|
10223
10293
|
// src/api/dto/forge/project-member.ts
|
|
10224
|
-
import { z as
|
|
10294
|
+
import { z as z327 } from "zod";
|
|
10225
10295
|
var DTOForgeProjectMemberRole = ForgeProjectRole;
|
|
10226
10296
|
var DTOForgeProjectMember = ForgeProjectMembership.extend({
|
|
10227
10297
|
user: DTOUser,
|
|
@@ -10235,243 +10305,190 @@ var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember;
|
|
|
10235
10305
|
var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
|
|
10236
10306
|
userId: true
|
|
10237
10307
|
});
|
|
10238
|
-
var DTOForgeProjectMembersListResponse =
|
|
10239
|
-
members:
|
|
10240
|
-
invitations:
|
|
10308
|
+
var DTOForgeProjectMembersListResponse = z327.object({
|
|
10309
|
+
members: z327.array(DTOForgeProjectMember),
|
|
10310
|
+
invitations: z327.array(DTOForgeProjectInvitation)
|
|
10241
10311
|
});
|
|
10242
|
-
var DTOForgeProjectMemberGetResponse =
|
|
10312
|
+
var DTOForgeProjectMemberGetResponse = z327.object({
|
|
10243
10313
|
member: DTOForgeProjectMember
|
|
10244
10314
|
});
|
|
10245
|
-
var DTOForgeProjectMemberCreateResponse =
|
|
10315
|
+
var DTOForgeProjectMemberCreateResponse = z327.object({
|
|
10246
10316
|
member: DTOForgeProjectMember
|
|
10247
10317
|
});
|
|
10248
|
-
var DTOForgeProjectMemberUpdateResponse =
|
|
10318
|
+
var DTOForgeProjectMemberUpdateResponse = z327.object({
|
|
10249
10319
|
member: DTOForgeProjectMember.nullable()
|
|
10250
10320
|
});
|
|
10251
|
-
var DTOForgeProjectMemberRemoveResponse =
|
|
10252
|
-
ok:
|
|
10321
|
+
var DTOForgeProjectMemberRemoveResponse = z327.object({
|
|
10322
|
+
ok: z327.literal(true)
|
|
10253
10323
|
});
|
|
10254
|
-
var DTOAddMembersToForgeProject =
|
|
10324
|
+
var DTOAddMembersToForgeProject = z327.object({
|
|
10255
10325
|
membersToInvite: DTOCreateForgeProjectInvitation.array().min(1)
|
|
10256
10326
|
});
|
|
10257
10327
|
|
|
10258
10328
|
// src/api/dto/forge/project-room.ts
|
|
10259
|
-
import { z as
|
|
10260
|
-
var DTOForgeProjectRoom =
|
|
10261
|
-
id:
|
|
10329
|
+
import { z as z328 } from "zod";
|
|
10330
|
+
var DTOForgeProjectRoom = z328.object({
|
|
10331
|
+
id: z328.string()
|
|
10262
10332
|
});
|
|
10263
|
-
var DTOForgeProjectRoomResponse =
|
|
10333
|
+
var DTOForgeProjectRoomResponse = z328.object({
|
|
10264
10334
|
room: DTOForgeProjectRoom
|
|
10265
10335
|
});
|
|
10266
10336
|
|
|
10267
|
-
// src/api/dto/forge/
|
|
10268
|
-
import
|
|
10269
|
-
var
|
|
10270
|
-
|
|
10271
|
-
|
|
10272
|
-
|
|
10273
|
-
|
|
10274
|
-
|
|
10275
|
-
|
|
10276
|
-
|
|
10277
|
-
description: z328.string().optional(),
|
|
10278
|
-
instruction: z328.string().nullable(),
|
|
10279
|
-
tags: z328.array(z328.string()).default([]),
|
|
10280
|
-
accessMode: DTOForgeProjectAccessMode,
|
|
10281
|
-
defaultRole: DTOForgeProjectDefaultRole.default("Viewer"),
|
|
10282
|
-
isArchived: z328.boolean().optional(),
|
|
10283
|
-
emoji: z328.string().optional(),
|
|
10284
|
-
createdAt: z328.coerce.date(),
|
|
10285
|
-
createdByUserId: z328.string().optional(),
|
|
10286
|
-
updatedAt: z328.coerce.date(),
|
|
10287
|
-
/** @deprecated use `projectContextId` */
|
|
10288
|
-
fpContextId: z328.string(),
|
|
10289
|
-
/** @deprecated use `name` and `description` properties on project */
|
|
10290
|
-
meta: z328.object({
|
|
10291
|
-
name: z328.string(),
|
|
10292
|
-
description: z328.string().optional()
|
|
10293
|
-
}),
|
|
10294
|
-
/** @deprecated prefer fetching from project contexts endpoint separately */
|
|
10295
|
-
context: DTOForgeProjectContextV2
|
|
10296
|
-
});
|
|
10297
|
-
var DTOForgeProjectCreate = DTOForgeProject.pick({
|
|
10298
|
-
name: true,
|
|
10299
|
-
description: true,
|
|
10300
|
-
instruction: true,
|
|
10301
|
-
tags: true,
|
|
10302
|
-
accessMode: true,
|
|
10303
|
-
defaultRole: true,
|
|
10304
|
-
emoji: true
|
|
10305
|
-
}).extend({
|
|
10306
|
-
/** @deprecated use `name` and `description` properties on project */
|
|
10307
|
-
meta: DTOForgeProject.shape.meta.optional(),
|
|
10308
|
-
/** @deprecated use `projectContextId` */
|
|
10309
|
-
fpContextId: z328.string().optional(),
|
|
10310
|
-
projectContextId: z328.string().optional(),
|
|
10311
|
-
membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional(),
|
|
10312
|
-
initialFeature: DTOForgeProjectFeatureCreateInput.optional(),
|
|
10313
|
-
initialArtifact: DTOForgeProjectArtifactCreateInput.optional()
|
|
10314
|
-
});
|
|
10315
|
-
var DTOForgeProjectUpdate = DTOForgeProjectCreate.omit({ membersToInvite: true }).partial().extend({
|
|
10316
|
-
id: z328.string(),
|
|
10317
|
-
isArchived: z328.boolean().optional()
|
|
10318
|
-
});
|
|
10319
|
-
var DTOForgeProjectListResponse = z328.object({
|
|
10320
|
-
projects: z328.array(
|
|
10321
|
-
DTOForgeProject.extend({
|
|
10322
|
-
effectiveRole: DTOForgeProjectRole
|
|
10323
|
-
})
|
|
10324
|
-
)
|
|
10325
|
-
});
|
|
10326
|
-
var DTOForgeProjectResponse = z328.object({
|
|
10327
|
-
project: DTOForgeProject.extend({
|
|
10328
|
-
effectiveRole: DTOForgeProjectRole
|
|
10329
|
-
})
|
|
10337
|
+
// src/api/dto/forge/relation.ts
|
|
10338
|
+
import z329 from "zod";
|
|
10339
|
+
var DTOForgeRelation = z329.object({
|
|
10340
|
+
id: z329.string(),
|
|
10341
|
+
projectId: z329.string(),
|
|
10342
|
+
fromFeature: z329.string().optional(),
|
|
10343
|
+
fromDocument: z329.string().optional(),
|
|
10344
|
+
toFeature: z329.string().optional(),
|
|
10345
|
+
toDocument: z329.string().optional(),
|
|
10346
|
+
createdAt: z329.string()
|
|
10330
10347
|
});
|
|
10331
10348
|
|
|
10332
10349
|
// src/api/dto/forge/threads.ts
|
|
10333
|
-
import { z as
|
|
10350
|
+
import { z as z330 } from "zod";
|
|
10334
10351
|
var DTOForgeChatMessage = ForgeChatMessage;
|
|
10335
10352
|
var DTOForgeChatThread = ForgeChatThread;
|
|
10336
10353
|
var DTOForgeChatMessageSenderType = ForgeChatMessageSenderType;
|
|
10337
10354
|
var DTOForgeChatMessageSender = ForgeChatMessageSender;
|
|
10338
|
-
var DTOForgeChatThreadCreateInput =
|
|
10339
|
-
title:
|
|
10355
|
+
var DTOForgeChatThreadCreateInput = z330.object({
|
|
10356
|
+
title: z330.string().optional()
|
|
10340
10357
|
});
|
|
10341
|
-
var DTOForgeChatThreadCreateResponse =
|
|
10358
|
+
var DTOForgeChatThreadCreateResponse = z330.object({
|
|
10342
10359
|
thread: DTOForgeChatThread
|
|
10343
10360
|
});
|
|
10344
|
-
var DTOForgeChatThreadUpdateInput =
|
|
10345
|
-
title:
|
|
10361
|
+
var DTOForgeChatThreadUpdateInput = z330.object({
|
|
10362
|
+
title: z330.string()
|
|
10346
10363
|
});
|
|
10347
|
-
var DTOForgeChatThreadUpdateResponse =
|
|
10364
|
+
var DTOForgeChatThreadUpdateResponse = z330.object({
|
|
10348
10365
|
thread: DTOForgeChatThread
|
|
10349
10366
|
});
|
|
10350
|
-
var DTOForgeChatThreadDeleteResponse =
|
|
10351
|
-
success:
|
|
10367
|
+
var DTOForgeChatThreadDeleteResponse = z330.object({
|
|
10368
|
+
success: z330.boolean()
|
|
10352
10369
|
});
|
|
10353
|
-
var DTOForgeChatThreadListQuery =
|
|
10354
|
-
limit:
|
|
10355
|
-
offset:
|
|
10370
|
+
var DTOForgeChatThreadListQuery = z330.object({
|
|
10371
|
+
limit: z330.number().optional(),
|
|
10372
|
+
offset: z330.number().optional()
|
|
10356
10373
|
});
|
|
10357
|
-
var DTOForgeChatThreadListResponse =
|
|
10358
|
-
threads:
|
|
10359
|
-
pagination:
|
|
10360
|
-
offset:
|
|
10361
|
-
limit:
|
|
10362
|
-
total:
|
|
10374
|
+
var DTOForgeChatThreadListResponse = z330.object({
|
|
10375
|
+
threads: z330.array(DTOForgeChatThread),
|
|
10376
|
+
pagination: z330.object({
|
|
10377
|
+
offset: z330.number(),
|
|
10378
|
+
limit: z330.number(),
|
|
10379
|
+
total: z330.number()
|
|
10363
10380
|
})
|
|
10364
10381
|
});
|
|
10365
|
-
var DTOForgeChatMessageCreateInput =
|
|
10366
|
-
payload:
|
|
10382
|
+
var DTOForgeChatMessageCreateInput = z330.object({
|
|
10383
|
+
payload: z330.string(),
|
|
10367
10384
|
sender: DTOForgeChatMessageSender.optional(),
|
|
10368
|
-
opikTraceId:
|
|
10385
|
+
opikTraceId: z330.string().optional()
|
|
10369
10386
|
});
|
|
10370
|
-
var DTOForgeChatMessageCreateResponse =
|
|
10387
|
+
var DTOForgeChatMessageCreateResponse = z330.object({
|
|
10371
10388
|
message: DTOForgeChatMessage
|
|
10372
10389
|
});
|
|
10373
|
-
var DTOForgeChatMessageListQuery =
|
|
10374
|
-
limit:
|
|
10375
|
-
offset:
|
|
10390
|
+
var DTOForgeChatMessageListQuery = z330.object({
|
|
10391
|
+
limit: z330.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
|
|
10392
|
+
offset: z330.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
|
|
10376
10393
|
});
|
|
10377
|
-
var DTOForgeChatMessageListResponse =
|
|
10378
|
-
messages:
|
|
10379
|
-
totalCount:
|
|
10380
|
-
hasMore:
|
|
10394
|
+
var DTOForgeChatMessageListResponse = z330.object({
|
|
10395
|
+
messages: z330.array(DTOForgeChatMessage),
|
|
10396
|
+
totalCount: z330.number(),
|
|
10397
|
+
hasMore: z330.boolean()
|
|
10381
10398
|
});
|
|
10382
|
-
var DTOForgeChatExportResponse =
|
|
10383
|
-
csvDownloadUrl:
|
|
10399
|
+
var DTOForgeChatExportResponse = z330.object({
|
|
10400
|
+
csvDownloadUrl: z330.string().nullable()
|
|
10384
10401
|
});
|
|
10385
|
-
var DTOForgeChatMessageScoreInput =
|
|
10386
|
-
messageId:
|
|
10387
|
-
name:
|
|
10388
|
-
value:
|
|
10389
|
-
categoryName:
|
|
10390
|
-
reason:
|
|
10402
|
+
var DTOForgeChatMessageScoreInput = z330.object({
|
|
10403
|
+
messageId: z330.string(),
|
|
10404
|
+
name: z330.string(),
|
|
10405
|
+
value: z330.number(),
|
|
10406
|
+
categoryName: z330.string().optional(),
|
|
10407
|
+
reason: z330.string().optional()
|
|
10391
10408
|
});
|
|
10392
|
-
var DTOForgeChatMessageTagInput =
|
|
10393
|
-
messageId:
|
|
10394
|
-
tags:
|
|
10409
|
+
var DTOForgeChatMessageTagInput = z330.object({
|
|
10410
|
+
messageId: z330.string(),
|
|
10411
|
+
tags: z330.array(z330.string())
|
|
10395
10412
|
});
|
|
10396
|
-
var DTOForgeChatMessageScoreRequest =
|
|
10413
|
+
var DTOForgeChatMessageScoreRequest = z330.object({
|
|
10397
10414
|
scores: DTOForgeChatMessageScoreInput.array(),
|
|
10398
10415
|
tags: DTOForgeChatMessageTagInput.array().optional().default([])
|
|
10399
10416
|
});
|
|
10400
10417
|
|
|
10401
10418
|
// src/api/dto/liveblocks/auth-response.ts
|
|
10402
|
-
import { z as
|
|
10403
|
-
var DTOLiveblocksAuthResponse =
|
|
10404
|
-
token:
|
|
10419
|
+
import { z as z331 } from "zod";
|
|
10420
|
+
var DTOLiveblocksAuthResponse = z331.object({
|
|
10421
|
+
token: z331.string()
|
|
10405
10422
|
});
|
|
10406
10423
|
|
|
10407
10424
|
// src/api/dto/portal/portal-settings.ts
|
|
10408
|
-
import { z as
|
|
10425
|
+
import { z as z332 } from "zod";
|
|
10409
10426
|
var DTOPortalSettingsTheme = PortalSettingsTheme;
|
|
10410
10427
|
var DTOPortalSettingsSidebarLink = PortalSettingsSidebarLink;
|
|
10411
10428
|
var DTOPortalSettingsSidebarSection = PortalSettingsSidebarSection;
|
|
10412
10429
|
var DTOPortalSettingsSidebar = PortalSettingsSidebar;
|
|
10413
|
-
var DTOPortalSettings =
|
|
10414
|
-
id:
|
|
10415
|
-
workspaceId:
|
|
10416
|
-
enabledDesignSystemIds:
|
|
10417
|
-
enabledBrandPersistentIds:
|
|
10430
|
+
var DTOPortalSettings = z332.object({
|
|
10431
|
+
id: z332.string(),
|
|
10432
|
+
workspaceId: z332.string(),
|
|
10433
|
+
enabledDesignSystemIds: z332.array(z332.string()),
|
|
10434
|
+
enabledBrandPersistentIds: z332.array(z332.string()),
|
|
10418
10435
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
10419
10436
|
sidebar: DTOPortalSettingsSidebar.nullish(),
|
|
10420
|
-
createdAt:
|
|
10421
|
-
updatedAt:
|
|
10437
|
+
createdAt: z332.coerce.date(),
|
|
10438
|
+
updatedAt: z332.coerce.date()
|
|
10422
10439
|
});
|
|
10423
|
-
var DTOPortalSettingsGetResponse =
|
|
10440
|
+
var DTOPortalSettingsGetResponse = z332.object({
|
|
10424
10441
|
portalSettings: DTOPortalSettings
|
|
10425
10442
|
});
|
|
10426
|
-
var DTOPortalSettingsUpdatePayload =
|
|
10427
|
-
enabledDesignSystemIds:
|
|
10428
|
-
enabledBrandPersistentIds:
|
|
10443
|
+
var DTOPortalSettingsUpdatePayload = z332.object({
|
|
10444
|
+
enabledDesignSystemIds: z332.array(z332.string()).optional(),
|
|
10445
|
+
enabledBrandPersistentIds: z332.array(z332.string()).optional(),
|
|
10429
10446
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
10430
10447
|
sidebar: DTOPortalSettingsSidebar.nullish()
|
|
10431
10448
|
});
|
|
10432
10449
|
|
|
10433
10450
|
// src/api/dto/themes/override.ts
|
|
10434
|
-
import { z as
|
|
10451
|
+
import { z as z333 } from "zod";
|
|
10435
10452
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
10436
|
-
|
|
10437
|
-
tokenPersistentId:
|
|
10453
|
+
z333.object({
|
|
10454
|
+
tokenPersistentId: z333.string(),
|
|
10438
10455
|
origin: ThemeOverrideOrigin.optional()
|
|
10439
10456
|
})
|
|
10440
10457
|
);
|
|
10441
10458
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
10442
|
-
|
|
10443
|
-
tokenPersistentId:
|
|
10459
|
+
z333.object({
|
|
10460
|
+
tokenPersistentId: z333.string()
|
|
10444
10461
|
})
|
|
10445
10462
|
);
|
|
10446
10463
|
|
|
10447
10464
|
// src/api/dto/themes/theme.ts
|
|
10448
|
-
import { z as
|
|
10449
|
-
var DTOTheme =
|
|
10450
|
-
id:
|
|
10451
|
-
persistentId:
|
|
10452
|
-
designSystemVersionId:
|
|
10453
|
-
brandId:
|
|
10465
|
+
import { z as z334 } from "zod";
|
|
10466
|
+
var DTOTheme = z334.object({
|
|
10467
|
+
id: z334.string(),
|
|
10468
|
+
persistentId: z334.string(),
|
|
10469
|
+
designSystemVersionId: z334.string(),
|
|
10470
|
+
brandId: z334.string(),
|
|
10454
10471
|
meta: ObjectMeta,
|
|
10455
|
-
codeName:
|
|
10472
|
+
codeName: z334.string(),
|
|
10456
10473
|
overrides: DTOThemeOverride.array()
|
|
10457
10474
|
});
|
|
10458
|
-
var DTOThemeResponse =
|
|
10475
|
+
var DTOThemeResponse = z334.object({
|
|
10459
10476
|
theme: DTOTheme
|
|
10460
10477
|
});
|
|
10461
|
-
var DTOThemeListResponse =
|
|
10478
|
+
var DTOThemeListResponse = z334.object({
|
|
10462
10479
|
themes: DTOTheme.array()
|
|
10463
10480
|
});
|
|
10464
|
-
var DTOThemeCreatePayload =
|
|
10481
|
+
var DTOThemeCreatePayload = z334.object({
|
|
10465
10482
|
meta: ObjectMeta,
|
|
10466
|
-
persistentId:
|
|
10467
|
-
brandId:
|
|
10468
|
-
codeName:
|
|
10483
|
+
persistentId: z334.string(),
|
|
10484
|
+
brandId: z334.string(),
|
|
10485
|
+
codeName: z334.string(),
|
|
10469
10486
|
overrides: DTOThemeOverride.array()
|
|
10470
10487
|
});
|
|
10471
10488
|
|
|
10472
10489
|
// src/api/dto/trail-events/trail-events.ts
|
|
10473
|
-
import { z as
|
|
10474
|
-
var DTOTrailEventType =
|
|
10490
|
+
import { z as z335 } from "zod";
|
|
10491
|
+
var DTOTrailEventType = z335.enum([
|
|
10475
10492
|
"IterationCreated",
|
|
10476
10493
|
"IterationBookmarked",
|
|
10477
10494
|
"FeatureCreated",
|
|
@@ -10484,80 +10501,80 @@ var DTOTrailEventType = z334.enum([
|
|
|
10484
10501
|
"ProjectContextCreated",
|
|
10485
10502
|
"ProjectContextArchived"
|
|
10486
10503
|
]);
|
|
10487
|
-
var DTOTrailEventBase =
|
|
10488
|
-
id:
|
|
10489
|
-
projectId:
|
|
10490
|
-
userId:
|
|
10491
|
-
createdAt:
|
|
10492
|
-
updatedAt:
|
|
10493
|
-
});
|
|
10494
|
-
var DTOTrailEventIterationCreatedPayload =
|
|
10495
|
-
iterationName:
|
|
10496
|
-
iterationId:
|
|
10497
|
-
featureId:
|
|
10498
|
-
});
|
|
10499
|
-
var DTOTrailEventIterationBookmarkedPayload =
|
|
10500
|
-
iterationId:
|
|
10501
|
-
featureId:
|
|
10502
|
-
iterationName:
|
|
10503
|
-
});
|
|
10504
|
-
var DTOTrailEventIterationPromotedPayload =
|
|
10505
|
-
iterationId:
|
|
10506
|
-
featureId:
|
|
10507
|
-
iterationName:
|
|
10508
|
-
});
|
|
10509
|
-
var DTOTrailEventFeatureCreatedPayload =
|
|
10510
|
-
featureId:
|
|
10511
|
-
name:
|
|
10512
|
-
description:
|
|
10513
|
-
});
|
|
10514
|
-
var DTOTrailEventFeatureDeletedPayload =
|
|
10515
|
-
featureId:
|
|
10516
|
-
name:
|
|
10517
|
-
});
|
|
10518
|
-
var DTOTrailEventDocumentCreatedPayload =
|
|
10519
|
-
documentId:
|
|
10520
|
-
title:
|
|
10521
|
-
sectionId:
|
|
10522
|
-
});
|
|
10523
|
-
var DTOTrailEventDocumentDeletedPayload =
|
|
10524
|
-
documentId:
|
|
10525
|
-
title:
|
|
10526
|
-
});
|
|
10527
|
-
var DTOTrailEventProjectCreatedPayload =
|
|
10528
|
-
name:
|
|
10529
|
-
description:
|
|
10530
|
-
});
|
|
10531
|
-
var DTOTrailEventProjectArchivedPayload =
|
|
10532
|
-
name:
|
|
10533
|
-
});
|
|
10534
|
-
var DTOTrailEventProjectContextCreatedPayload =
|
|
10535
|
-
contextId:
|
|
10536
|
-
name:
|
|
10537
|
-
description:
|
|
10538
|
-
});
|
|
10539
|
-
var DTOTrailEventProjectContextArchivedPayload =
|
|
10540
|
-
contextId:
|
|
10541
|
-
});
|
|
10542
|
-
var DTOTrailEventPayload =
|
|
10543
|
-
|
|
10544
|
-
|
|
10545
|
-
|
|
10546
|
-
|
|
10547
|
-
|
|
10548
|
-
|
|
10549
|
-
|
|
10550
|
-
|
|
10551
|
-
|
|
10552
|
-
|
|
10553
|
-
|
|
10504
|
+
var DTOTrailEventBase = z335.object({
|
|
10505
|
+
id: z335.string(),
|
|
10506
|
+
projectId: z335.string(),
|
|
10507
|
+
userId: z335.string(),
|
|
10508
|
+
createdAt: z335.coerce.date(),
|
|
10509
|
+
updatedAt: z335.coerce.date()
|
|
10510
|
+
});
|
|
10511
|
+
var DTOTrailEventIterationCreatedPayload = z335.object({
|
|
10512
|
+
iterationName: z335.string(),
|
|
10513
|
+
iterationId: z335.string().uuid(),
|
|
10514
|
+
featureId: z335.string().uuid()
|
|
10515
|
+
});
|
|
10516
|
+
var DTOTrailEventIterationBookmarkedPayload = z335.object({
|
|
10517
|
+
iterationId: z335.string().uuid(),
|
|
10518
|
+
featureId: z335.string().uuid(),
|
|
10519
|
+
iterationName: z335.string()
|
|
10520
|
+
});
|
|
10521
|
+
var DTOTrailEventIterationPromotedPayload = z335.object({
|
|
10522
|
+
iterationId: z335.string().uuid(),
|
|
10523
|
+
featureId: z335.string().uuid(),
|
|
10524
|
+
iterationName: z335.string()
|
|
10525
|
+
});
|
|
10526
|
+
var DTOTrailEventFeatureCreatedPayload = z335.object({
|
|
10527
|
+
featureId: z335.string().uuid(),
|
|
10528
|
+
name: z335.string(),
|
|
10529
|
+
description: z335.string().optional()
|
|
10530
|
+
});
|
|
10531
|
+
var DTOTrailEventFeatureDeletedPayload = z335.object({
|
|
10532
|
+
featureId: z335.string().uuid(),
|
|
10533
|
+
name: z335.string()
|
|
10534
|
+
});
|
|
10535
|
+
var DTOTrailEventDocumentCreatedPayload = z335.object({
|
|
10536
|
+
documentId: z335.string().uuid(),
|
|
10537
|
+
title: z335.string(),
|
|
10538
|
+
sectionId: z335.string().uuid().optional()
|
|
10539
|
+
});
|
|
10540
|
+
var DTOTrailEventDocumentDeletedPayload = z335.object({
|
|
10541
|
+
documentId: z335.string().uuid(),
|
|
10542
|
+
title: z335.string()
|
|
10543
|
+
});
|
|
10544
|
+
var DTOTrailEventProjectCreatedPayload = z335.object({
|
|
10545
|
+
name: z335.string(),
|
|
10546
|
+
description: z335.string().optional()
|
|
10547
|
+
});
|
|
10548
|
+
var DTOTrailEventProjectArchivedPayload = z335.object({
|
|
10549
|
+
name: z335.string()
|
|
10550
|
+
});
|
|
10551
|
+
var DTOTrailEventProjectContextCreatedPayload = z335.object({
|
|
10552
|
+
contextId: z335.number(),
|
|
10553
|
+
name: z335.string(),
|
|
10554
|
+
description: z335.string().optional()
|
|
10555
|
+
});
|
|
10556
|
+
var DTOTrailEventProjectContextArchivedPayload = z335.object({
|
|
10557
|
+
contextId: z335.number()
|
|
10558
|
+
});
|
|
10559
|
+
var DTOTrailEventPayload = z335.discriminatedUnion("type", [
|
|
10560
|
+
z335.object({ type: z335.literal("IterationCreated"), payload: DTOTrailEventIterationCreatedPayload }),
|
|
10561
|
+
z335.object({ type: z335.literal("IterationBookmarked"), payload: DTOTrailEventIterationBookmarkedPayload }),
|
|
10562
|
+
z335.object({ type: z335.literal("FeatureCreated"), payload: DTOTrailEventFeatureCreatedPayload }),
|
|
10563
|
+
z335.object({ type: z335.literal("FeatureDeleted"), payload: DTOTrailEventFeatureDeletedPayload }),
|
|
10564
|
+
z335.object({ type: z335.literal("DocumentCreated"), payload: DTOTrailEventDocumentCreatedPayload }),
|
|
10565
|
+
z335.object({ type: z335.literal("DocumentDeleted"), payload: DTOTrailEventDocumentDeletedPayload }),
|
|
10566
|
+
z335.object({ type: z335.literal("ProjectCreated"), payload: DTOTrailEventProjectCreatedPayload }),
|
|
10567
|
+
z335.object({ type: z335.literal("ProjectArchived"), payload: DTOTrailEventProjectArchivedPayload }),
|
|
10568
|
+
z335.object({ type: z335.literal("IterationPromoted"), payload: DTOTrailEventIterationPromotedPayload }),
|
|
10569
|
+
z335.object({ type: z335.literal("ProjectContextCreated"), payload: DTOTrailEventProjectContextCreatedPayload }),
|
|
10570
|
+
z335.object({ type: z335.literal("ProjectContextArchived"), payload: DTOTrailEventProjectContextArchivedPayload })
|
|
10554
10571
|
]);
|
|
10555
10572
|
var DTOTrailEvent = DTOTrailEventPayload.and(DTOTrailEventBase);
|
|
10556
|
-
var DTOTrailEventListInput =
|
|
10557
|
-
projectId:
|
|
10573
|
+
var DTOTrailEventListInput = z335.object({
|
|
10574
|
+
projectId: z335.string()
|
|
10558
10575
|
});
|
|
10559
|
-
var DTOTrailEventListResponse =
|
|
10560
|
-
events:
|
|
10576
|
+
var DTOTrailEventListResponse = z335.object({
|
|
10577
|
+
events: z335.array(DTOTrailEvent)
|
|
10561
10578
|
});
|
|
10562
10579
|
var DTOTrailEventCreate = DTOTrailEventPayload.and(
|
|
10563
10580
|
DTOTrailEventBase.omit({ id: true, createdAt: true, updatedAt: true })
|
|
@@ -10795,13 +10812,13 @@ var ExportersEndpoint = class {
|
|
|
10795
10812
|
};
|
|
10796
10813
|
|
|
10797
10814
|
// src/api/endpoints/codegen/jobs.ts
|
|
10798
|
-
import { z as
|
|
10815
|
+
import { z as z336 } from "zod";
|
|
10799
10816
|
var ExporterJobsEndpoint = class {
|
|
10800
10817
|
constructor(requestExecutor) {
|
|
10801
10818
|
this.requestExecutor = requestExecutor;
|
|
10802
10819
|
}
|
|
10803
10820
|
list(workspaceId) {
|
|
10804
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
10821
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z336.any());
|
|
10805
10822
|
}
|
|
10806
10823
|
get(workspaceId, jobId) {
|
|
10807
10824
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -10859,7 +10876,7 @@ var CodegenEndpoint = class {
|
|
|
10859
10876
|
};
|
|
10860
10877
|
|
|
10861
10878
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
10862
|
-
import { z as
|
|
10879
|
+
import { z as z337 } from "zod";
|
|
10863
10880
|
var BrandsEndpoint = class {
|
|
10864
10881
|
constructor(requestExecutor) {
|
|
10865
10882
|
this.requestExecutor = requestExecutor;
|
|
@@ -10893,7 +10910,7 @@ var BrandsEndpoint = class {
|
|
|
10893
10910
|
});
|
|
10894
10911
|
}
|
|
10895
10912
|
delete(dsId, vId, brandId) {
|
|
10896
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
10913
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z337.any(), {
|
|
10897
10914
|
method: "DELETE"
|
|
10898
10915
|
});
|
|
10899
10916
|
}
|
|
@@ -11169,7 +11186,7 @@ var ImportJobsEndpoint = class {
|
|
|
11169
11186
|
};
|
|
11170
11187
|
|
|
11171
11188
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
11172
|
-
import { z as
|
|
11189
|
+
import { z as z338 } from "zod";
|
|
11173
11190
|
var OverridesEndpoint = class {
|
|
11174
11191
|
constructor(requestExecutor) {
|
|
11175
11192
|
this.requestExecutor = requestExecutor;
|
|
@@ -11177,7 +11194,7 @@ var OverridesEndpoint = class {
|
|
|
11177
11194
|
create(dsId, versionId, themeId, body) {
|
|
11178
11195
|
return this.requestExecutor.json(
|
|
11179
11196
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
11180
|
-
|
|
11197
|
+
z338.any(),
|
|
11181
11198
|
{
|
|
11182
11199
|
method: "POST",
|
|
11183
11200
|
body
|
|
@@ -11187,7 +11204,7 @@ var OverridesEndpoint = class {
|
|
|
11187
11204
|
};
|
|
11188
11205
|
|
|
11189
11206
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
11190
|
-
import { z as
|
|
11207
|
+
import { z as z339 } from "zod";
|
|
11191
11208
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
11192
11209
|
constructor(requestExecutor) {
|
|
11193
11210
|
this.requestExecutor = requestExecutor;
|
|
@@ -11215,7 +11232,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
11215
11232
|
delete(designSystemId, versionId, defId) {
|
|
11216
11233
|
return this.requestExecutor.json(
|
|
11217
11234
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
11218
|
-
|
|
11235
|
+
z339.any(),
|
|
11219
11236
|
{ method: "DELETE" }
|
|
11220
11237
|
);
|
|
11221
11238
|
}
|
|
@@ -11254,7 +11271,7 @@ var VersionStatsEndpoint = class {
|
|
|
11254
11271
|
};
|
|
11255
11272
|
|
|
11256
11273
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
11257
|
-
import { z as
|
|
11274
|
+
import { z as z340 } from "zod";
|
|
11258
11275
|
var ThemesEndpoint = class {
|
|
11259
11276
|
constructor(requestExecutor) {
|
|
11260
11277
|
this.requestExecutor = requestExecutor;
|
|
@@ -11277,7 +11294,7 @@ var ThemesEndpoint = class {
|
|
|
11277
11294
|
});
|
|
11278
11295
|
}
|
|
11279
11296
|
delete(dsId, versionId, themeId) {
|
|
11280
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
11297
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z340.any(), {
|
|
11281
11298
|
method: "DELETE"
|
|
11282
11299
|
});
|
|
11283
11300
|
}
|
|
@@ -11450,7 +11467,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
11450
11467
|
};
|
|
11451
11468
|
|
|
11452
11469
|
// src/api/endpoints/design-system/design-systems.ts
|
|
11453
|
-
import { z as
|
|
11470
|
+
import { z as z344 } from "zod";
|
|
11454
11471
|
|
|
11455
11472
|
// src/api/endpoints/design-system/figma-node-structures.ts
|
|
11456
11473
|
var FigmaNodeStructuresEndpoint = class {
|
|
@@ -11527,7 +11544,7 @@ var DesignSystemPageRedirectsEndpoint = class {
|
|
|
11527
11544
|
};
|
|
11528
11545
|
|
|
11529
11546
|
// src/api/endpoints/design-system/sources.ts
|
|
11530
|
-
import { z as
|
|
11547
|
+
import { z as z341 } from "zod";
|
|
11531
11548
|
var DesignSystemSourcesEndpoint = class {
|
|
11532
11549
|
constructor(requestExecutor) {
|
|
11533
11550
|
this.requestExecutor = requestExecutor;
|
|
@@ -11545,7 +11562,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
11545
11562
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
|
|
11546
11563
|
}
|
|
11547
11564
|
delete(dsId, sourceId) {
|
|
11548
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
11565
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z341.any(), { method: "DELETE" });
|
|
11549
11566
|
}
|
|
11550
11567
|
updateFigmaSource(dsId, sourceId, payload) {
|
|
11551
11568
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
|
|
@@ -11588,7 +11605,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
11588
11605
|
};
|
|
11589
11606
|
|
|
11590
11607
|
// src/api/endpoints/design-system/storybook.ts
|
|
11591
|
-
import { z as
|
|
11608
|
+
import { z as z342 } from "zod";
|
|
11592
11609
|
var StorybookEntriesEndpoint = class {
|
|
11593
11610
|
constructor(requestExecutor) {
|
|
11594
11611
|
this.requestExecutor = requestExecutor;
|
|
@@ -11606,14 +11623,14 @@ var StorybookEntriesEndpoint = class {
|
|
|
11606
11623
|
);
|
|
11607
11624
|
}
|
|
11608
11625
|
delete(dsId, entryId) {
|
|
11609
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`,
|
|
11626
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z342.any(), {
|
|
11610
11627
|
method: "DELETE"
|
|
11611
11628
|
});
|
|
11612
11629
|
}
|
|
11613
11630
|
};
|
|
11614
11631
|
|
|
11615
11632
|
// src/api/endpoints/design-system/storybook-hosting.ts
|
|
11616
|
-
import { z as
|
|
11633
|
+
import { z as z343 } from "zod";
|
|
11617
11634
|
var StorybookHostingEndpoint = class {
|
|
11618
11635
|
constructor(requestExecutor) {
|
|
11619
11636
|
this.requestExecutor = requestExecutor;
|
|
@@ -11627,7 +11644,7 @@ var StorybookHostingEndpoint = class {
|
|
|
11627
11644
|
delete(dsId, storybookUploadId) {
|
|
11628
11645
|
return this.requestExecutor.json(
|
|
11629
11646
|
`/design-systems/${dsId}/storybook/${storybookUploadId}`,
|
|
11630
|
-
|
|
11647
|
+
z343.object({ ok: z343.boolean() }),
|
|
11631
11648
|
{
|
|
11632
11649
|
method: "DELETE"
|
|
11633
11650
|
}
|
|
@@ -11685,7 +11702,7 @@ var DesignSystemsEndpoint = class {
|
|
|
11685
11702
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
11686
11703
|
}
|
|
11687
11704
|
delete(dsId) {
|
|
11688
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
11705
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z344.any(), { method: "DELETE" });
|
|
11689
11706
|
}
|
|
11690
11707
|
update(dsId, body) {
|
|
11691
11708
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -11808,7 +11825,7 @@ var ForgeFeatureArtifactsEndpoint = class {
|
|
|
11808
11825
|
};
|
|
11809
11826
|
|
|
11810
11827
|
// src/api/endpoints/forge/feature-iterations.ts
|
|
11811
|
-
import
|
|
11828
|
+
import z345 from "zod";
|
|
11812
11829
|
var ForgeFeatureIterationsEndpoint = class {
|
|
11813
11830
|
constructor(requestExecutor) {
|
|
11814
11831
|
this.requestExecutor = requestExecutor;
|
|
@@ -11825,7 +11842,7 @@ var ForgeFeatureIterationsEndpoint = class {
|
|
|
11825
11842
|
updateArtifacts(workspaceId, projectId, featureId, body) {
|
|
11826
11843
|
return this.requestExecutor.json(
|
|
11827
11844
|
`/workspaces/${workspaceId}/forge/projects/${projectId}/features/${featureId}/iterations/update-artifacts`,
|
|
11828
|
-
|
|
11845
|
+
z345.any(),
|
|
11829
11846
|
{
|
|
11830
11847
|
body,
|
|
11831
11848
|
method: "POST"
|
|
@@ -12060,7 +12077,7 @@ var ForgeProjectMembersEndpoint = class {
|
|
|
12060
12077
|
};
|
|
12061
12078
|
|
|
12062
12079
|
// src/api/endpoints/forge/projects.ts
|
|
12063
|
-
import
|
|
12080
|
+
import z346 from "zod";
|
|
12064
12081
|
var ForgeProjectsEndpoint = class {
|
|
12065
12082
|
constructor(requestExecutor) {
|
|
12066
12083
|
this.requestExecutor = requestExecutor;
|
|
@@ -12097,7 +12114,7 @@ var ForgeProjectsEndpoint = class {
|
|
|
12097
12114
|
);
|
|
12098
12115
|
}
|
|
12099
12116
|
action(workspaceId, projectId, body) {
|
|
12100
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`,
|
|
12117
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`, z346.any(), {
|
|
12101
12118
|
body,
|
|
12102
12119
|
method: "POST"
|
|
12103
12120
|
});
|
|
@@ -12180,7 +12197,7 @@ var ForgeProjectIterationsEndpoint = class {
|
|
|
12180
12197
|
};
|
|
12181
12198
|
|
|
12182
12199
|
// src/api/endpoints/workspaces/chat-threads.ts
|
|
12183
|
-
import { z as
|
|
12200
|
+
import { z as z347 } from "zod";
|
|
12184
12201
|
var WorkspaceChatThreadsEndpoint = class {
|
|
12185
12202
|
constructor(requestExecutor) {
|
|
12186
12203
|
this.requestExecutor = requestExecutor;
|
|
@@ -12212,7 +12229,7 @@ var WorkspaceChatThreadsEndpoint = class {
|
|
|
12212
12229
|
);
|
|
12213
12230
|
}
|
|
12214
12231
|
delete(workspaceId, threadId) {
|
|
12215
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`,
|
|
12232
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z347.any(), {
|
|
12216
12233
|
method: "DELETE"
|
|
12217
12234
|
});
|
|
12218
12235
|
}
|
|
@@ -12244,7 +12261,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
12244
12261
|
);
|
|
12245
12262
|
}
|
|
12246
12263
|
score(workspaceId, threadId, body) {
|
|
12247
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`,
|
|
12264
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z347.any(), {
|
|
12248
12265
|
method: "POST",
|
|
12249
12266
|
body
|
|
12250
12267
|
});
|
|
@@ -12252,7 +12269,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
12252
12269
|
};
|
|
12253
12270
|
|
|
12254
12271
|
// src/api/endpoints/workspaces/integrations.ts
|
|
12255
|
-
import { z as
|
|
12272
|
+
import { z as z348 } from "zod";
|
|
12256
12273
|
var WorkspaceIntegrationsEndpoint = class {
|
|
12257
12274
|
constructor(requestExecutor) {
|
|
12258
12275
|
this.requestExecutor = requestExecutor;
|
|
@@ -12261,7 +12278,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
12261
12278
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
12262
12279
|
}
|
|
12263
12280
|
delete(wsId, iId) {
|
|
12264
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
12281
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z348.unknown(), { method: "DELETE" });
|
|
12265
12282
|
}
|
|
12266
12283
|
};
|
|
12267
12284
|
|
|
@@ -12293,7 +12310,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
12293
12310
|
};
|
|
12294
12311
|
|
|
12295
12312
|
// src/api/endpoints/workspaces/members.ts
|
|
12296
|
-
import { z as
|
|
12313
|
+
import { z as z349 } from "zod";
|
|
12297
12314
|
var WorkspaceMembersEndpoint = class {
|
|
12298
12315
|
constructor(requestExecutor) {
|
|
12299
12316
|
this.requestExecutor = requestExecutor;
|
|
@@ -12310,7 +12327,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
12310
12327
|
});
|
|
12311
12328
|
}
|
|
12312
12329
|
invite(workspaceId, body) {
|
|
12313
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
12330
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z349.any(), { method: "POST", body });
|
|
12314
12331
|
}
|
|
12315
12332
|
delete(workspaceId, userId) {
|
|
12316
12333
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -12339,7 +12356,7 @@ var WorkspaceNpmRegistryEndpoint = class {
|
|
|
12339
12356
|
};
|
|
12340
12357
|
|
|
12341
12358
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
12342
|
-
import { z as
|
|
12359
|
+
import { z as z350 } from "zod";
|
|
12343
12360
|
var WorkspacesEndpoint = class {
|
|
12344
12361
|
constructor(requestExecutor) {
|
|
12345
12362
|
this.requestExecutor = requestExecutor;
|
|
@@ -12371,10 +12388,10 @@ var WorkspacesEndpoint = class {
|
|
|
12371
12388
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
12372
12389
|
}
|
|
12373
12390
|
delete(workspaceId) {
|
|
12374
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
12391
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z350.any(), { method: "DELETE" });
|
|
12375
12392
|
}
|
|
12376
12393
|
subscription(workspaceId) {
|
|
12377
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
12394
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z350.any(), { method: "GET" });
|
|
12378
12395
|
}
|
|
12379
12396
|
getPortalSettings(workspaceId) {
|
|
12380
12397
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
|
|
@@ -12532,9 +12549,9 @@ ${bodyText}`,
|
|
|
12532
12549
|
|
|
12533
12550
|
// src/api/transport/request-executor.ts
|
|
12534
12551
|
import fetch from "node-fetch";
|
|
12535
|
-
import { z as
|
|
12536
|
-
var ResponseWrapper =
|
|
12537
|
-
result:
|
|
12552
|
+
import { z as z351 } from "zod";
|
|
12553
|
+
var ResponseWrapper = z351.object({
|
|
12554
|
+
result: z351.record(z351.any())
|
|
12538
12555
|
});
|
|
12539
12556
|
var RequestExecutor = class {
|
|
12540
12557
|
constructor(testServerConfig) {
|
|
@@ -12615,25 +12632,25 @@ var SupernovaApiClient = class {
|
|
|
12615
12632
|
};
|
|
12616
12633
|
|
|
12617
12634
|
// src/events/design-system.ts
|
|
12618
|
-
import { z as
|
|
12619
|
-
var DTOEventFigmaNodesRendered =
|
|
12620
|
-
type:
|
|
12621
|
-
designSystemId:
|
|
12622
|
-
versionId:
|
|
12623
|
-
figmaNodePersistentIds:
|
|
12624
|
-
});
|
|
12625
|
-
var DTOEventDataSourcesImported =
|
|
12626
|
-
type:
|
|
12627
|
-
designSystemId:
|
|
12628
|
-
versionId:
|
|
12629
|
-
importJobId:
|
|
12635
|
+
import { z as z352 } from "zod";
|
|
12636
|
+
var DTOEventFigmaNodesRendered = z352.object({
|
|
12637
|
+
type: z352.literal("DesignSystem.FigmaNodesRendered"),
|
|
12638
|
+
designSystemId: z352.string(),
|
|
12639
|
+
versionId: z352.string(),
|
|
12640
|
+
figmaNodePersistentIds: z352.string().array()
|
|
12641
|
+
});
|
|
12642
|
+
var DTOEventDataSourcesImported = z352.object({
|
|
12643
|
+
type: z352.literal("DesignSystem.ImportJobFinished"),
|
|
12644
|
+
designSystemId: z352.string(),
|
|
12645
|
+
versionId: z352.string(),
|
|
12646
|
+
importJobId: z352.string(),
|
|
12630
12647
|
dataSourceType: DataSourceRemoteType,
|
|
12631
|
-
dataSourceIds:
|
|
12648
|
+
dataSourceIds: z352.string().array()
|
|
12632
12649
|
});
|
|
12633
12650
|
|
|
12634
12651
|
// src/events/event.ts
|
|
12635
|
-
import { z as
|
|
12636
|
-
var DTOEvent =
|
|
12652
|
+
import { z as z353 } from "zod";
|
|
12653
|
+
var DTOEvent = z353.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
12637
12654
|
|
|
12638
12655
|
// src/sync/docs-local-action-executor.ts
|
|
12639
12656
|
function applyActionsLocally(input) {
|
|
@@ -12929,7 +12946,7 @@ var LocalDocsElementActionExecutor = class {
|
|
|
12929
12946
|
import PQueue from "p-queue";
|
|
12930
12947
|
|
|
12931
12948
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
12932
|
-
import { z as
|
|
12949
|
+
import { z as z354 } from "zod";
|
|
12933
12950
|
|
|
12934
12951
|
// src/yjs/version-room/base.ts
|
|
12935
12952
|
var VersionRoomBaseYDoc = class {
|
|
@@ -13479,24 +13496,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
13479
13496
|
};
|
|
13480
13497
|
|
|
13481
13498
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
13482
|
-
var DocumentationHierarchySettings =
|
|
13483
|
-
routingVersion:
|
|
13484
|
-
isDraftFeatureAdopted:
|
|
13485
|
-
isApprovalFeatureEnabled:
|
|
13486
|
-
approvalRequiredForPublishing:
|
|
13499
|
+
var DocumentationHierarchySettings = z354.object({
|
|
13500
|
+
routingVersion: z354.string(),
|
|
13501
|
+
isDraftFeatureAdopted: z354.boolean(),
|
|
13502
|
+
isApprovalFeatureEnabled: z354.boolean(),
|
|
13503
|
+
approvalRequiredForPublishing: z354.boolean()
|
|
13487
13504
|
});
|
|
13488
13505
|
function yjsToDocumentationHierarchy(doc) {
|
|
13489
13506
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
13490
13507
|
}
|
|
13491
13508
|
|
|
13492
13509
|
// src/yjs/design-system-content/item-configuration.ts
|
|
13493
|
-
import { z as
|
|
13494
|
-
var DTODocumentationPageRoomHeaderData =
|
|
13495
|
-
title:
|
|
13510
|
+
import { z as z355 } from "zod";
|
|
13511
|
+
var DTODocumentationPageRoomHeaderData = z355.object({
|
|
13512
|
+
title: z355.string(),
|
|
13496
13513
|
configuration: DTODocumentationItemConfigurationV2
|
|
13497
13514
|
});
|
|
13498
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
13499
|
-
title:
|
|
13515
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z355.object({
|
|
13516
|
+
title: z355.string().optional(),
|
|
13500
13517
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
13501
13518
|
});
|
|
13502
13519
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -13531,9 +13548,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
13531
13548
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
13532
13549
|
|
|
13533
13550
|
// src/yjs/docs-editor/model/page.ts
|
|
13534
|
-
import { z as
|
|
13535
|
-
var DocumentationPageEditorModel =
|
|
13536
|
-
blocks:
|
|
13551
|
+
import { z as z356 } from "zod";
|
|
13552
|
+
var DocumentationPageEditorModel = z356.object({
|
|
13553
|
+
blocks: z356.array(DocumentationPageContentItem)
|
|
13537
13554
|
});
|
|
13538
13555
|
|
|
13539
13556
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -17210,7 +17227,7 @@ var blocks = [
|
|
|
17210
17227
|
|
|
17211
17228
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
17212
17229
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
17213
|
-
import { z as
|
|
17230
|
+
import { z as z357 } from "zod";
|
|
17214
17231
|
function yDocToPage(yDoc, definitions) {
|
|
17215
17232
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
17216
17233
|
}
|
|
@@ -17286,7 +17303,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
17286
17303
|
if (!id) return null;
|
|
17287
17304
|
return {
|
|
17288
17305
|
id,
|
|
17289
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
17306
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z357.string()) ?? "",
|
|
17290
17307
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
17291
17308
|
};
|
|
17292
17309
|
}
|
|
@@ -17320,7 +17337,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
17320
17337
|
});
|
|
17321
17338
|
}
|
|
17322
17339
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
17323
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
17340
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z357.string());
|
|
17324
17341
|
if (!definitionId) {
|
|
17325
17342
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
17326
17343
|
return [];
|
|
@@ -17361,7 +17378,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
17361
17378
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
17362
17379
|
if (!id) return null;
|
|
17363
17380
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
17364
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
17381
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z357.string().optional()));
|
|
17365
17382
|
return {
|
|
17366
17383
|
id,
|
|
17367
17384
|
type: "Block",
|
|
@@ -17484,9 +17501,9 @@ function parseRichTextAttribute(mark) {
|
|
|
17484
17501
|
return null;
|
|
17485
17502
|
}
|
|
17486
17503
|
function parseProsemirrorLink(mark) {
|
|
17487
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
17504
|
+
const href = getProsemirrorAttribute(mark, "href", z357.string().optional());
|
|
17488
17505
|
if (!href) return null;
|
|
17489
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
17506
|
+
const target = getProsemirrorAttribute(mark, "target", z357.string().optional());
|
|
17490
17507
|
const openInNewTab = target === "_blank";
|
|
17491
17508
|
if (href.startsWith("@")) {
|
|
17492
17509
|
return {
|
|
@@ -17505,9 +17522,9 @@ function parseProsemirrorLink(mark) {
|
|
|
17505
17522
|
}
|
|
17506
17523
|
}
|
|
17507
17524
|
function parseProsemirrorCommentHighlight(mark) {
|
|
17508
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
17525
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z357.string().optional());
|
|
17509
17526
|
if (!highlightId) return null;
|
|
17510
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
17527
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z357.boolean().optional()) ?? false;
|
|
17511
17528
|
return {
|
|
17512
17529
|
type: "Comment",
|
|
17513
17530
|
commentHighlightId: highlightId,
|
|
@@ -17518,7 +17535,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
17518
17535
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
17519
17536
|
if (!id) return null;
|
|
17520
17537
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
17521
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
17538
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z357.boolean().optional()) !== false;
|
|
17522
17539
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
17523
17540
|
if (!tableChild) {
|
|
17524
17541
|
return emptyTable(id, variantId, 0);
|
|
@@ -17564,9 +17581,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
17564
17581
|
function parseAsTableCell(prosemirrorNode) {
|
|
17565
17582
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
17566
17583
|
if (!id) return null;
|
|
17567
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
17584
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z357.string().optional());
|
|
17568
17585
|
let columnWidth;
|
|
17569
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
17586
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z357.array(z357.number()).nullish());
|
|
17570
17587
|
if (columnWidthArray) {
|
|
17571
17588
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
17572
17589
|
}
|
|
@@ -17602,7 +17619,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
17602
17619
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
17603
17620
|
};
|
|
17604
17621
|
case "image":
|
|
17605
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
17622
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z357.string());
|
|
17606
17623
|
if (!items) return null;
|
|
17607
17624
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
17608
17625
|
if (!parsedItems.success) return null;
|
|
@@ -17716,7 +17733,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
17716
17733
|
);
|
|
17717
17734
|
}
|
|
17718
17735
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
17719
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
17736
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z357.string());
|
|
17720
17737
|
if (!itemsString) return null;
|
|
17721
17738
|
const itemsJson = JSON.parse(itemsString);
|
|
17722
17739
|
if (!Array.isArray(itemsJson)) {
|
|
@@ -17727,18 +17744,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
17727
17744
|
}
|
|
17728
17745
|
function parseAppearance(prosemirrorNode) {
|
|
17729
17746
|
let appearance = {};
|
|
17730
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
17747
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z357.string().optional());
|
|
17731
17748
|
if (rawAppearanceString) {
|
|
17732
17749
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
17733
17750
|
if (parsedAppearance.success) {
|
|
17734
17751
|
appearance = parsedAppearance.data;
|
|
17735
17752
|
}
|
|
17736
17753
|
}
|
|
17737
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
17754
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z357.number().optional());
|
|
17738
17755
|
if (columns) {
|
|
17739
17756
|
appearance.numberOfColumns = columns;
|
|
17740
17757
|
}
|
|
17741
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
17758
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z357.string().optional());
|
|
17742
17759
|
if (backgroundColor) {
|
|
17743
17760
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
17744
17761
|
if (parsedColor.success) {
|
|
@@ -17839,12 +17856,12 @@ function valueSchemaForPropertyType(type) {
|
|
|
17839
17856
|
}
|
|
17840
17857
|
}
|
|
17841
17858
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
17842
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
17859
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z357.string());
|
|
17843
17860
|
if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
17844
17861
|
return id;
|
|
17845
17862
|
}
|
|
17846
17863
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
17847
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
17864
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z357.string()));
|
|
17848
17865
|
}
|
|
17849
17866
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
17850
17867
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -19489,6 +19506,7 @@ export {
|
|
|
19489
19506
|
DTOForgeProjectRoomResponse,
|
|
19490
19507
|
DTOForgeProjectTheme,
|
|
19491
19508
|
DTOForgeProjectUpdate,
|
|
19509
|
+
DTOForgeRelation,
|
|
19492
19510
|
DTOForgeSection,
|
|
19493
19511
|
DTOForgeSectionCreateInput,
|
|
19494
19512
|
DTOForgeSectionDeleteInput,
|