@supernova-studio/client 1.43.0 → 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 +101297 -101270
- package/dist/index.d.ts +101297 -101270
- package/dist/index.js +222 -205
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +554 -537
- 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
|
-
|
|
10126
|
-
|
|
10127
|
-
|
|
10128
|
-
|
|
10129
|
-
|
|
10130
|
-
|
|
10131
|
-
|
|
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
|
|
9982
|
+
});
|
|
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()
|
|
10152
9989
|
});
|
|
10153
|
-
var
|
|
10154
|
-
|
|
9990
|
+
var DTOForgeProjectFeatureDeleteInput = z319.object({
|
|
9991
|
+
id: Id
|
|
10155
9992
|
});
|
|
10156
|
-
var
|
|
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,244 +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
|
-
numberOfFeatures: z328.number().int().nonnegative()
|
|
10297
|
-
});
|
|
10298
|
-
var DTOForgeProjectCreate = DTOForgeProject.pick({
|
|
10299
|
-
name: true,
|
|
10300
|
-
description: true,
|
|
10301
|
-
instruction: true,
|
|
10302
|
-
tags: true,
|
|
10303
|
-
accessMode: true,
|
|
10304
|
-
defaultRole: true,
|
|
10305
|
-
emoji: true
|
|
10306
|
-
}).extend({
|
|
10307
|
-
/** @deprecated use `name` and `description` properties on project */
|
|
10308
|
-
meta: DTOForgeProject.shape.meta.optional(),
|
|
10309
|
-
/** @deprecated use `projectContextId` */
|
|
10310
|
-
fpContextId: z328.string().optional(),
|
|
10311
|
-
projectContextId: z328.string().optional(),
|
|
10312
|
-
membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional(),
|
|
10313
|
-
initialFeature: DTOForgeProjectFeatureCreateInput.optional(),
|
|
10314
|
-
initialArtifact: DTOForgeProjectArtifactCreateInput.optional()
|
|
10315
|
-
});
|
|
10316
|
-
var DTOForgeProjectUpdate = DTOForgeProjectCreate.omit({ membersToInvite: true }).partial().extend({
|
|
10317
|
-
id: z328.string(),
|
|
10318
|
-
isArchived: z328.boolean().optional()
|
|
10319
|
-
});
|
|
10320
|
-
var DTOForgeProjectListResponse = z328.object({
|
|
10321
|
-
projects: z328.array(
|
|
10322
|
-
DTOForgeProject.extend({
|
|
10323
|
-
effectiveRole: DTOForgeProjectRole
|
|
10324
|
-
})
|
|
10325
|
-
)
|
|
10326
|
-
});
|
|
10327
|
-
var DTOForgeProjectResponse = z328.object({
|
|
10328
|
-
project: DTOForgeProject.extend({
|
|
10329
|
-
effectiveRole: DTOForgeProjectRole
|
|
10330
|
-
})
|
|
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()
|
|
10331
10347
|
});
|
|
10332
10348
|
|
|
10333
10349
|
// src/api/dto/forge/threads.ts
|
|
10334
|
-
import { z as
|
|
10350
|
+
import { z as z330 } from "zod";
|
|
10335
10351
|
var DTOForgeChatMessage = ForgeChatMessage;
|
|
10336
10352
|
var DTOForgeChatThread = ForgeChatThread;
|
|
10337
10353
|
var DTOForgeChatMessageSenderType = ForgeChatMessageSenderType;
|
|
10338
10354
|
var DTOForgeChatMessageSender = ForgeChatMessageSender;
|
|
10339
|
-
var DTOForgeChatThreadCreateInput =
|
|
10340
|
-
title:
|
|
10355
|
+
var DTOForgeChatThreadCreateInput = z330.object({
|
|
10356
|
+
title: z330.string().optional()
|
|
10341
10357
|
});
|
|
10342
|
-
var DTOForgeChatThreadCreateResponse =
|
|
10358
|
+
var DTOForgeChatThreadCreateResponse = z330.object({
|
|
10343
10359
|
thread: DTOForgeChatThread
|
|
10344
10360
|
});
|
|
10345
|
-
var DTOForgeChatThreadUpdateInput =
|
|
10346
|
-
title:
|
|
10361
|
+
var DTOForgeChatThreadUpdateInput = z330.object({
|
|
10362
|
+
title: z330.string()
|
|
10347
10363
|
});
|
|
10348
|
-
var DTOForgeChatThreadUpdateResponse =
|
|
10364
|
+
var DTOForgeChatThreadUpdateResponse = z330.object({
|
|
10349
10365
|
thread: DTOForgeChatThread
|
|
10350
10366
|
});
|
|
10351
|
-
var DTOForgeChatThreadDeleteResponse =
|
|
10352
|
-
success:
|
|
10367
|
+
var DTOForgeChatThreadDeleteResponse = z330.object({
|
|
10368
|
+
success: z330.boolean()
|
|
10353
10369
|
});
|
|
10354
|
-
var DTOForgeChatThreadListQuery =
|
|
10355
|
-
limit:
|
|
10356
|
-
offset:
|
|
10370
|
+
var DTOForgeChatThreadListQuery = z330.object({
|
|
10371
|
+
limit: z330.number().optional(),
|
|
10372
|
+
offset: z330.number().optional()
|
|
10357
10373
|
});
|
|
10358
|
-
var DTOForgeChatThreadListResponse =
|
|
10359
|
-
threads:
|
|
10360
|
-
pagination:
|
|
10361
|
-
offset:
|
|
10362
|
-
limit:
|
|
10363
|
-
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()
|
|
10364
10380
|
})
|
|
10365
10381
|
});
|
|
10366
|
-
var DTOForgeChatMessageCreateInput =
|
|
10367
|
-
payload:
|
|
10382
|
+
var DTOForgeChatMessageCreateInput = z330.object({
|
|
10383
|
+
payload: z330.string(),
|
|
10368
10384
|
sender: DTOForgeChatMessageSender.optional(),
|
|
10369
|
-
opikTraceId:
|
|
10385
|
+
opikTraceId: z330.string().optional()
|
|
10370
10386
|
});
|
|
10371
|
-
var DTOForgeChatMessageCreateResponse =
|
|
10387
|
+
var DTOForgeChatMessageCreateResponse = z330.object({
|
|
10372
10388
|
message: DTOForgeChatMessage
|
|
10373
10389
|
});
|
|
10374
|
-
var DTOForgeChatMessageListQuery =
|
|
10375
|
-
limit:
|
|
10376
|
-
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)
|
|
10377
10393
|
});
|
|
10378
|
-
var DTOForgeChatMessageListResponse =
|
|
10379
|
-
messages:
|
|
10380
|
-
totalCount:
|
|
10381
|
-
hasMore:
|
|
10394
|
+
var DTOForgeChatMessageListResponse = z330.object({
|
|
10395
|
+
messages: z330.array(DTOForgeChatMessage),
|
|
10396
|
+
totalCount: z330.number(),
|
|
10397
|
+
hasMore: z330.boolean()
|
|
10382
10398
|
});
|
|
10383
|
-
var DTOForgeChatExportResponse =
|
|
10384
|
-
csvDownloadUrl:
|
|
10399
|
+
var DTOForgeChatExportResponse = z330.object({
|
|
10400
|
+
csvDownloadUrl: z330.string().nullable()
|
|
10385
10401
|
});
|
|
10386
|
-
var DTOForgeChatMessageScoreInput =
|
|
10387
|
-
messageId:
|
|
10388
|
-
name:
|
|
10389
|
-
value:
|
|
10390
|
-
categoryName:
|
|
10391
|
-
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()
|
|
10392
10408
|
});
|
|
10393
|
-
var DTOForgeChatMessageTagInput =
|
|
10394
|
-
messageId:
|
|
10395
|
-
tags:
|
|
10409
|
+
var DTOForgeChatMessageTagInput = z330.object({
|
|
10410
|
+
messageId: z330.string(),
|
|
10411
|
+
tags: z330.array(z330.string())
|
|
10396
10412
|
});
|
|
10397
|
-
var DTOForgeChatMessageScoreRequest =
|
|
10413
|
+
var DTOForgeChatMessageScoreRequest = z330.object({
|
|
10398
10414
|
scores: DTOForgeChatMessageScoreInput.array(),
|
|
10399
10415
|
tags: DTOForgeChatMessageTagInput.array().optional().default([])
|
|
10400
10416
|
});
|
|
10401
10417
|
|
|
10402
10418
|
// src/api/dto/liveblocks/auth-response.ts
|
|
10403
|
-
import { z as
|
|
10404
|
-
var DTOLiveblocksAuthResponse =
|
|
10405
|
-
token:
|
|
10419
|
+
import { z as z331 } from "zod";
|
|
10420
|
+
var DTOLiveblocksAuthResponse = z331.object({
|
|
10421
|
+
token: z331.string()
|
|
10406
10422
|
});
|
|
10407
10423
|
|
|
10408
10424
|
// src/api/dto/portal/portal-settings.ts
|
|
10409
|
-
import { z as
|
|
10425
|
+
import { z as z332 } from "zod";
|
|
10410
10426
|
var DTOPortalSettingsTheme = PortalSettingsTheme;
|
|
10411
10427
|
var DTOPortalSettingsSidebarLink = PortalSettingsSidebarLink;
|
|
10412
10428
|
var DTOPortalSettingsSidebarSection = PortalSettingsSidebarSection;
|
|
10413
10429
|
var DTOPortalSettingsSidebar = PortalSettingsSidebar;
|
|
10414
|
-
var DTOPortalSettings =
|
|
10415
|
-
id:
|
|
10416
|
-
workspaceId:
|
|
10417
|
-
enabledDesignSystemIds:
|
|
10418
|
-
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()),
|
|
10419
10435
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
10420
10436
|
sidebar: DTOPortalSettingsSidebar.nullish(),
|
|
10421
|
-
createdAt:
|
|
10422
|
-
updatedAt:
|
|
10437
|
+
createdAt: z332.coerce.date(),
|
|
10438
|
+
updatedAt: z332.coerce.date()
|
|
10423
10439
|
});
|
|
10424
|
-
var DTOPortalSettingsGetResponse =
|
|
10440
|
+
var DTOPortalSettingsGetResponse = z332.object({
|
|
10425
10441
|
portalSettings: DTOPortalSettings
|
|
10426
10442
|
});
|
|
10427
|
-
var DTOPortalSettingsUpdatePayload =
|
|
10428
|
-
enabledDesignSystemIds:
|
|
10429
|
-
enabledBrandPersistentIds:
|
|
10443
|
+
var DTOPortalSettingsUpdatePayload = z332.object({
|
|
10444
|
+
enabledDesignSystemIds: z332.array(z332.string()).optional(),
|
|
10445
|
+
enabledBrandPersistentIds: z332.array(z332.string()).optional(),
|
|
10430
10446
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
10431
10447
|
sidebar: DTOPortalSettingsSidebar.nullish()
|
|
10432
10448
|
});
|
|
10433
10449
|
|
|
10434
10450
|
// src/api/dto/themes/override.ts
|
|
10435
|
-
import { z as
|
|
10451
|
+
import { z as z333 } from "zod";
|
|
10436
10452
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
10437
|
-
|
|
10438
|
-
tokenPersistentId:
|
|
10453
|
+
z333.object({
|
|
10454
|
+
tokenPersistentId: z333.string(),
|
|
10439
10455
|
origin: ThemeOverrideOrigin.optional()
|
|
10440
10456
|
})
|
|
10441
10457
|
);
|
|
10442
10458
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
10443
|
-
|
|
10444
|
-
tokenPersistentId:
|
|
10459
|
+
z333.object({
|
|
10460
|
+
tokenPersistentId: z333.string()
|
|
10445
10461
|
})
|
|
10446
10462
|
);
|
|
10447
10463
|
|
|
10448
10464
|
// src/api/dto/themes/theme.ts
|
|
10449
|
-
import { z as
|
|
10450
|
-
var DTOTheme =
|
|
10451
|
-
id:
|
|
10452
|
-
persistentId:
|
|
10453
|
-
designSystemVersionId:
|
|
10454
|
-
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(),
|
|
10455
10471
|
meta: ObjectMeta,
|
|
10456
|
-
codeName:
|
|
10472
|
+
codeName: z334.string(),
|
|
10457
10473
|
overrides: DTOThemeOverride.array()
|
|
10458
10474
|
});
|
|
10459
|
-
var DTOThemeResponse =
|
|
10475
|
+
var DTOThemeResponse = z334.object({
|
|
10460
10476
|
theme: DTOTheme
|
|
10461
10477
|
});
|
|
10462
|
-
var DTOThemeListResponse =
|
|
10478
|
+
var DTOThemeListResponse = z334.object({
|
|
10463
10479
|
themes: DTOTheme.array()
|
|
10464
10480
|
});
|
|
10465
|
-
var DTOThemeCreatePayload =
|
|
10481
|
+
var DTOThemeCreatePayload = z334.object({
|
|
10466
10482
|
meta: ObjectMeta,
|
|
10467
|
-
persistentId:
|
|
10468
|
-
brandId:
|
|
10469
|
-
codeName:
|
|
10483
|
+
persistentId: z334.string(),
|
|
10484
|
+
brandId: z334.string(),
|
|
10485
|
+
codeName: z334.string(),
|
|
10470
10486
|
overrides: DTOThemeOverride.array()
|
|
10471
10487
|
});
|
|
10472
10488
|
|
|
10473
10489
|
// src/api/dto/trail-events/trail-events.ts
|
|
10474
|
-
import { z as
|
|
10475
|
-
var DTOTrailEventType =
|
|
10490
|
+
import { z as z335 } from "zod";
|
|
10491
|
+
var DTOTrailEventType = z335.enum([
|
|
10476
10492
|
"IterationCreated",
|
|
10477
10493
|
"IterationBookmarked",
|
|
10478
10494
|
"FeatureCreated",
|
|
@@ -10485,80 +10501,80 @@ var DTOTrailEventType = z334.enum([
|
|
|
10485
10501
|
"ProjectContextCreated",
|
|
10486
10502
|
"ProjectContextArchived"
|
|
10487
10503
|
]);
|
|
10488
|
-
var DTOTrailEventBase =
|
|
10489
|
-
id:
|
|
10490
|
-
projectId:
|
|
10491
|
-
userId:
|
|
10492
|
-
createdAt:
|
|
10493
|
-
updatedAt:
|
|
10494
|
-
});
|
|
10495
|
-
var DTOTrailEventIterationCreatedPayload =
|
|
10496
|
-
iterationName:
|
|
10497
|
-
iterationId:
|
|
10498
|
-
featureId:
|
|
10499
|
-
});
|
|
10500
|
-
var DTOTrailEventIterationBookmarkedPayload =
|
|
10501
|
-
iterationId:
|
|
10502
|
-
featureId:
|
|
10503
|
-
iterationName:
|
|
10504
|
-
});
|
|
10505
|
-
var DTOTrailEventIterationPromotedPayload =
|
|
10506
|
-
iterationId:
|
|
10507
|
-
featureId:
|
|
10508
|
-
iterationName:
|
|
10509
|
-
});
|
|
10510
|
-
var DTOTrailEventFeatureCreatedPayload =
|
|
10511
|
-
featureId:
|
|
10512
|
-
name:
|
|
10513
|
-
description:
|
|
10514
|
-
});
|
|
10515
|
-
var DTOTrailEventFeatureDeletedPayload =
|
|
10516
|
-
featureId:
|
|
10517
|
-
name:
|
|
10518
|
-
});
|
|
10519
|
-
var DTOTrailEventDocumentCreatedPayload =
|
|
10520
|
-
documentId:
|
|
10521
|
-
title:
|
|
10522
|
-
sectionId:
|
|
10523
|
-
});
|
|
10524
|
-
var DTOTrailEventDocumentDeletedPayload =
|
|
10525
|
-
documentId:
|
|
10526
|
-
title:
|
|
10527
|
-
});
|
|
10528
|
-
var DTOTrailEventProjectCreatedPayload =
|
|
10529
|
-
name:
|
|
10530
|
-
description:
|
|
10531
|
-
});
|
|
10532
|
-
var DTOTrailEventProjectArchivedPayload =
|
|
10533
|
-
name:
|
|
10534
|
-
});
|
|
10535
|
-
var DTOTrailEventProjectContextCreatedPayload =
|
|
10536
|
-
contextId:
|
|
10537
|
-
name:
|
|
10538
|
-
description:
|
|
10539
|
-
});
|
|
10540
|
-
var DTOTrailEventProjectContextArchivedPayload =
|
|
10541
|
-
contextId:
|
|
10542
|
-
});
|
|
10543
|
-
var DTOTrailEventPayload =
|
|
10544
|
-
|
|
10545
|
-
|
|
10546
|
-
|
|
10547
|
-
|
|
10548
|
-
|
|
10549
|
-
|
|
10550
|
-
|
|
10551
|
-
|
|
10552
|
-
|
|
10553
|
-
|
|
10554
|
-
|
|
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 })
|
|
10555
10571
|
]);
|
|
10556
10572
|
var DTOTrailEvent = DTOTrailEventPayload.and(DTOTrailEventBase);
|
|
10557
|
-
var DTOTrailEventListInput =
|
|
10558
|
-
projectId:
|
|
10573
|
+
var DTOTrailEventListInput = z335.object({
|
|
10574
|
+
projectId: z335.string()
|
|
10559
10575
|
});
|
|
10560
|
-
var DTOTrailEventListResponse =
|
|
10561
|
-
events:
|
|
10576
|
+
var DTOTrailEventListResponse = z335.object({
|
|
10577
|
+
events: z335.array(DTOTrailEvent)
|
|
10562
10578
|
});
|
|
10563
10579
|
var DTOTrailEventCreate = DTOTrailEventPayload.and(
|
|
10564
10580
|
DTOTrailEventBase.omit({ id: true, createdAt: true, updatedAt: true })
|
|
@@ -10796,13 +10812,13 @@ var ExportersEndpoint = class {
|
|
|
10796
10812
|
};
|
|
10797
10813
|
|
|
10798
10814
|
// src/api/endpoints/codegen/jobs.ts
|
|
10799
|
-
import { z as
|
|
10815
|
+
import { z as z336 } from "zod";
|
|
10800
10816
|
var ExporterJobsEndpoint = class {
|
|
10801
10817
|
constructor(requestExecutor) {
|
|
10802
10818
|
this.requestExecutor = requestExecutor;
|
|
10803
10819
|
}
|
|
10804
10820
|
list(workspaceId) {
|
|
10805
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
10821
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z336.any());
|
|
10806
10822
|
}
|
|
10807
10823
|
get(workspaceId, jobId) {
|
|
10808
10824
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -10860,7 +10876,7 @@ var CodegenEndpoint = class {
|
|
|
10860
10876
|
};
|
|
10861
10877
|
|
|
10862
10878
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
10863
|
-
import { z as
|
|
10879
|
+
import { z as z337 } from "zod";
|
|
10864
10880
|
var BrandsEndpoint = class {
|
|
10865
10881
|
constructor(requestExecutor) {
|
|
10866
10882
|
this.requestExecutor = requestExecutor;
|
|
@@ -10894,7 +10910,7 @@ var BrandsEndpoint = class {
|
|
|
10894
10910
|
});
|
|
10895
10911
|
}
|
|
10896
10912
|
delete(dsId, vId, brandId) {
|
|
10897
|
-
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(), {
|
|
10898
10914
|
method: "DELETE"
|
|
10899
10915
|
});
|
|
10900
10916
|
}
|
|
@@ -11170,7 +11186,7 @@ var ImportJobsEndpoint = class {
|
|
|
11170
11186
|
};
|
|
11171
11187
|
|
|
11172
11188
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
11173
|
-
import { z as
|
|
11189
|
+
import { z as z338 } from "zod";
|
|
11174
11190
|
var OverridesEndpoint = class {
|
|
11175
11191
|
constructor(requestExecutor) {
|
|
11176
11192
|
this.requestExecutor = requestExecutor;
|
|
@@ -11178,7 +11194,7 @@ var OverridesEndpoint = class {
|
|
|
11178
11194
|
create(dsId, versionId, themeId, body) {
|
|
11179
11195
|
return this.requestExecutor.json(
|
|
11180
11196
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
11181
|
-
|
|
11197
|
+
z338.any(),
|
|
11182
11198
|
{
|
|
11183
11199
|
method: "POST",
|
|
11184
11200
|
body
|
|
@@ -11188,7 +11204,7 @@ var OverridesEndpoint = class {
|
|
|
11188
11204
|
};
|
|
11189
11205
|
|
|
11190
11206
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
11191
|
-
import { z as
|
|
11207
|
+
import { z as z339 } from "zod";
|
|
11192
11208
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
11193
11209
|
constructor(requestExecutor) {
|
|
11194
11210
|
this.requestExecutor = requestExecutor;
|
|
@@ -11216,7 +11232,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
11216
11232
|
delete(designSystemId, versionId, defId) {
|
|
11217
11233
|
return this.requestExecutor.json(
|
|
11218
11234
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
11219
|
-
|
|
11235
|
+
z339.any(),
|
|
11220
11236
|
{ method: "DELETE" }
|
|
11221
11237
|
);
|
|
11222
11238
|
}
|
|
@@ -11255,7 +11271,7 @@ var VersionStatsEndpoint = class {
|
|
|
11255
11271
|
};
|
|
11256
11272
|
|
|
11257
11273
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
11258
|
-
import { z as
|
|
11274
|
+
import { z as z340 } from "zod";
|
|
11259
11275
|
var ThemesEndpoint = class {
|
|
11260
11276
|
constructor(requestExecutor) {
|
|
11261
11277
|
this.requestExecutor = requestExecutor;
|
|
@@ -11278,7 +11294,7 @@ var ThemesEndpoint = class {
|
|
|
11278
11294
|
});
|
|
11279
11295
|
}
|
|
11280
11296
|
delete(dsId, versionId, themeId) {
|
|
11281
|
-
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(), {
|
|
11282
11298
|
method: "DELETE"
|
|
11283
11299
|
});
|
|
11284
11300
|
}
|
|
@@ -11451,7 +11467,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
11451
11467
|
};
|
|
11452
11468
|
|
|
11453
11469
|
// src/api/endpoints/design-system/design-systems.ts
|
|
11454
|
-
import { z as
|
|
11470
|
+
import { z as z344 } from "zod";
|
|
11455
11471
|
|
|
11456
11472
|
// src/api/endpoints/design-system/figma-node-structures.ts
|
|
11457
11473
|
var FigmaNodeStructuresEndpoint = class {
|
|
@@ -11528,7 +11544,7 @@ var DesignSystemPageRedirectsEndpoint = class {
|
|
|
11528
11544
|
};
|
|
11529
11545
|
|
|
11530
11546
|
// src/api/endpoints/design-system/sources.ts
|
|
11531
|
-
import { z as
|
|
11547
|
+
import { z as z341 } from "zod";
|
|
11532
11548
|
var DesignSystemSourcesEndpoint = class {
|
|
11533
11549
|
constructor(requestExecutor) {
|
|
11534
11550
|
this.requestExecutor = requestExecutor;
|
|
@@ -11546,7 +11562,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
11546
11562
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
|
|
11547
11563
|
}
|
|
11548
11564
|
delete(dsId, sourceId) {
|
|
11549
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
11565
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z341.any(), { method: "DELETE" });
|
|
11550
11566
|
}
|
|
11551
11567
|
updateFigmaSource(dsId, sourceId, payload) {
|
|
11552
11568
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
|
|
@@ -11589,7 +11605,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
11589
11605
|
};
|
|
11590
11606
|
|
|
11591
11607
|
// src/api/endpoints/design-system/storybook.ts
|
|
11592
|
-
import { z as
|
|
11608
|
+
import { z as z342 } from "zod";
|
|
11593
11609
|
var StorybookEntriesEndpoint = class {
|
|
11594
11610
|
constructor(requestExecutor) {
|
|
11595
11611
|
this.requestExecutor = requestExecutor;
|
|
@@ -11607,14 +11623,14 @@ var StorybookEntriesEndpoint = class {
|
|
|
11607
11623
|
);
|
|
11608
11624
|
}
|
|
11609
11625
|
delete(dsId, entryId) {
|
|
11610
|
-
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(), {
|
|
11611
11627
|
method: "DELETE"
|
|
11612
11628
|
});
|
|
11613
11629
|
}
|
|
11614
11630
|
};
|
|
11615
11631
|
|
|
11616
11632
|
// src/api/endpoints/design-system/storybook-hosting.ts
|
|
11617
|
-
import { z as
|
|
11633
|
+
import { z as z343 } from "zod";
|
|
11618
11634
|
var StorybookHostingEndpoint = class {
|
|
11619
11635
|
constructor(requestExecutor) {
|
|
11620
11636
|
this.requestExecutor = requestExecutor;
|
|
@@ -11628,7 +11644,7 @@ var StorybookHostingEndpoint = class {
|
|
|
11628
11644
|
delete(dsId, storybookUploadId) {
|
|
11629
11645
|
return this.requestExecutor.json(
|
|
11630
11646
|
`/design-systems/${dsId}/storybook/${storybookUploadId}`,
|
|
11631
|
-
|
|
11647
|
+
z343.object({ ok: z343.boolean() }),
|
|
11632
11648
|
{
|
|
11633
11649
|
method: "DELETE"
|
|
11634
11650
|
}
|
|
@@ -11686,7 +11702,7 @@ var DesignSystemsEndpoint = class {
|
|
|
11686
11702
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
11687
11703
|
}
|
|
11688
11704
|
delete(dsId) {
|
|
11689
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
11705
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z344.any(), { method: "DELETE" });
|
|
11690
11706
|
}
|
|
11691
11707
|
update(dsId, body) {
|
|
11692
11708
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -11809,7 +11825,7 @@ var ForgeFeatureArtifactsEndpoint = class {
|
|
|
11809
11825
|
};
|
|
11810
11826
|
|
|
11811
11827
|
// src/api/endpoints/forge/feature-iterations.ts
|
|
11812
|
-
import
|
|
11828
|
+
import z345 from "zod";
|
|
11813
11829
|
var ForgeFeatureIterationsEndpoint = class {
|
|
11814
11830
|
constructor(requestExecutor) {
|
|
11815
11831
|
this.requestExecutor = requestExecutor;
|
|
@@ -11826,7 +11842,7 @@ var ForgeFeatureIterationsEndpoint = class {
|
|
|
11826
11842
|
updateArtifacts(workspaceId, projectId, featureId, body) {
|
|
11827
11843
|
return this.requestExecutor.json(
|
|
11828
11844
|
`/workspaces/${workspaceId}/forge/projects/${projectId}/features/${featureId}/iterations/update-artifacts`,
|
|
11829
|
-
|
|
11845
|
+
z345.any(),
|
|
11830
11846
|
{
|
|
11831
11847
|
body,
|
|
11832
11848
|
method: "POST"
|
|
@@ -12061,7 +12077,7 @@ var ForgeProjectMembersEndpoint = class {
|
|
|
12061
12077
|
};
|
|
12062
12078
|
|
|
12063
12079
|
// src/api/endpoints/forge/projects.ts
|
|
12064
|
-
import
|
|
12080
|
+
import z346 from "zod";
|
|
12065
12081
|
var ForgeProjectsEndpoint = class {
|
|
12066
12082
|
constructor(requestExecutor) {
|
|
12067
12083
|
this.requestExecutor = requestExecutor;
|
|
@@ -12098,7 +12114,7 @@ var ForgeProjectsEndpoint = class {
|
|
|
12098
12114
|
);
|
|
12099
12115
|
}
|
|
12100
12116
|
action(workspaceId, projectId, body) {
|
|
12101
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`,
|
|
12117
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`, z346.any(), {
|
|
12102
12118
|
body,
|
|
12103
12119
|
method: "POST"
|
|
12104
12120
|
});
|
|
@@ -12181,7 +12197,7 @@ var ForgeProjectIterationsEndpoint = class {
|
|
|
12181
12197
|
};
|
|
12182
12198
|
|
|
12183
12199
|
// src/api/endpoints/workspaces/chat-threads.ts
|
|
12184
|
-
import { z as
|
|
12200
|
+
import { z as z347 } from "zod";
|
|
12185
12201
|
var WorkspaceChatThreadsEndpoint = class {
|
|
12186
12202
|
constructor(requestExecutor) {
|
|
12187
12203
|
this.requestExecutor = requestExecutor;
|
|
@@ -12213,7 +12229,7 @@ var WorkspaceChatThreadsEndpoint = class {
|
|
|
12213
12229
|
);
|
|
12214
12230
|
}
|
|
12215
12231
|
delete(workspaceId, threadId) {
|
|
12216
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`,
|
|
12232
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z347.any(), {
|
|
12217
12233
|
method: "DELETE"
|
|
12218
12234
|
});
|
|
12219
12235
|
}
|
|
@@ -12245,7 +12261,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
12245
12261
|
);
|
|
12246
12262
|
}
|
|
12247
12263
|
score(workspaceId, threadId, body) {
|
|
12248
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`,
|
|
12264
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z347.any(), {
|
|
12249
12265
|
method: "POST",
|
|
12250
12266
|
body
|
|
12251
12267
|
});
|
|
@@ -12253,7 +12269,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
12253
12269
|
};
|
|
12254
12270
|
|
|
12255
12271
|
// src/api/endpoints/workspaces/integrations.ts
|
|
12256
|
-
import { z as
|
|
12272
|
+
import { z as z348 } from "zod";
|
|
12257
12273
|
var WorkspaceIntegrationsEndpoint = class {
|
|
12258
12274
|
constructor(requestExecutor) {
|
|
12259
12275
|
this.requestExecutor = requestExecutor;
|
|
@@ -12262,7 +12278,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
12262
12278
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
12263
12279
|
}
|
|
12264
12280
|
delete(wsId, iId) {
|
|
12265
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
12281
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z348.unknown(), { method: "DELETE" });
|
|
12266
12282
|
}
|
|
12267
12283
|
};
|
|
12268
12284
|
|
|
@@ -12294,7 +12310,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
12294
12310
|
};
|
|
12295
12311
|
|
|
12296
12312
|
// src/api/endpoints/workspaces/members.ts
|
|
12297
|
-
import { z as
|
|
12313
|
+
import { z as z349 } from "zod";
|
|
12298
12314
|
var WorkspaceMembersEndpoint = class {
|
|
12299
12315
|
constructor(requestExecutor) {
|
|
12300
12316
|
this.requestExecutor = requestExecutor;
|
|
@@ -12311,7 +12327,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
12311
12327
|
});
|
|
12312
12328
|
}
|
|
12313
12329
|
invite(workspaceId, body) {
|
|
12314
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
12330
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z349.any(), { method: "POST", body });
|
|
12315
12331
|
}
|
|
12316
12332
|
delete(workspaceId, userId) {
|
|
12317
12333
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -12340,7 +12356,7 @@ var WorkspaceNpmRegistryEndpoint = class {
|
|
|
12340
12356
|
};
|
|
12341
12357
|
|
|
12342
12358
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
12343
|
-
import { z as
|
|
12359
|
+
import { z as z350 } from "zod";
|
|
12344
12360
|
var WorkspacesEndpoint = class {
|
|
12345
12361
|
constructor(requestExecutor) {
|
|
12346
12362
|
this.requestExecutor = requestExecutor;
|
|
@@ -12372,10 +12388,10 @@ var WorkspacesEndpoint = class {
|
|
|
12372
12388
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
12373
12389
|
}
|
|
12374
12390
|
delete(workspaceId) {
|
|
12375
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
12391
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z350.any(), { method: "DELETE" });
|
|
12376
12392
|
}
|
|
12377
12393
|
subscription(workspaceId) {
|
|
12378
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
12394
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z350.any(), { method: "GET" });
|
|
12379
12395
|
}
|
|
12380
12396
|
getPortalSettings(workspaceId) {
|
|
12381
12397
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
|
|
@@ -12533,9 +12549,9 @@ ${bodyText}`,
|
|
|
12533
12549
|
|
|
12534
12550
|
// src/api/transport/request-executor.ts
|
|
12535
12551
|
import fetch from "node-fetch";
|
|
12536
|
-
import { z as
|
|
12537
|
-
var ResponseWrapper =
|
|
12538
|
-
result:
|
|
12552
|
+
import { z as z351 } from "zod";
|
|
12553
|
+
var ResponseWrapper = z351.object({
|
|
12554
|
+
result: z351.record(z351.any())
|
|
12539
12555
|
});
|
|
12540
12556
|
var RequestExecutor = class {
|
|
12541
12557
|
constructor(testServerConfig) {
|
|
@@ -12616,25 +12632,25 @@ var SupernovaApiClient = class {
|
|
|
12616
12632
|
};
|
|
12617
12633
|
|
|
12618
12634
|
// src/events/design-system.ts
|
|
12619
|
-
import { z as
|
|
12620
|
-
var DTOEventFigmaNodesRendered =
|
|
12621
|
-
type:
|
|
12622
|
-
designSystemId:
|
|
12623
|
-
versionId:
|
|
12624
|
-
figmaNodePersistentIds:
|
|
12625
|
-
});
|
|
12626
|
-
var DTOEventDataSourcesImported =
|
|
12627
|
-
type:
|
|
12628
|
-
designSystemId:
|
|
12629
|
-
versionId:
|
|
12630
|
-
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(),
|
|
12631
12647
|
dataSourceType: DataSourceRemoteType,
|
|
12632
|
-
dataSourceIds:
|
|
12648
|
+
dataSourceIds: z352.string().array()
|
|
12633
12649
|
});
|
|
12634
12650
|
|
|
12635
12651
|
// src/events/event.ts
|
|
12636
|
-
import { z as
|
|
12637
|
-
var DTOEvent =
|
|
12652
|
+
import { z as z353 } from "zod";
|
|
12653
|
+
var DTOEvent = z353.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
12638
12654
|
|
|
12639
12655
|
// src/sync/docs-local-action-executor.ts
|
|
12640
12656
|
function applyActionsLocally(input) {
|
|
@@ -12930,7 +12946,7 @@ var LocalDocsElementActionExecutor = class {
|
|
|
12930
12946
|
import PQueue from "p-queue";
|
|
12931
12947
|
|
|
12932
12948
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
12933
|
-
import { z as
|
|
12949
|
+
import { z as z354 } from "zod";
|
|
12934
12950
|
|
|
12935
12951
|
// src/yjs/version-room/base.ts
|
|
12936
12952
|
var VersionRoomBaseYDoc = class {
|
|
@@ -13480,24 +13496,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
13480
13496
|
};
|
|
13481
13497
|
|
|
13482
13498
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
13483
|
-
var DocumentationHierarchySettings =
|
|
13484
|
-
routingVersion:
|
|
13485
|
-
isDraftFeatureAdopted:
|
|
13486
|
-
isApprovalFeatureEnabled:
|
|
13487
|
-
approvalRequiredForPublishing:
|
|
13499
|
+
var DocumentationHierarchySettings = z354.object({
|
|
13500
|
+
routingVersion: z354.string(),
|
|
13501
|
+
isDraftFeatureAdopted: z354.boolean(),
|
|
13502
|
+
isApprovalFeatureEnabled: z354.boolean(),
|
|
13503
|
+
approvalRequiredForPublishing: z354.boolean()
|
|
13488
13504
|
});
|
|
13489
13505
|
function yjsToDocumentationHierarchy(doc) {
|
|
13490
13506
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
13491
13507
|
}
|
|
13492
13508
|
|
|
13493
13509
|
// src/yjs/design-system-content/item-configuration.ts
|
|
13494
|
-
import { z as
|
|
13495
|
-
var DTODocumentationPageRoomHeaderData =
|
|
13496
|
-
title:
|
|
13510
|
+
import { z as z355 } from "zod";
|
|
13511
|
+
var DTODocumentationPageRoomHeaderData = z355.object({
|
|
13512
|
+
title: z355.string(),
|
|
13497
13513
|
configuration: DTODocumentationItemConfigurationV2
|
|
13498
13514
|
});
|
|
13499
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
13500
|
-
title:
|
|
13515
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z355.object({
|
|
13516
|
+
title: z355.string().optional(),
|
|
13501
13517
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
13502
13518
|
});
|
|
13503
13519
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -13532,9 +13548,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
13532
13548
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
13533
13549
|
|
|
13534
13550
|
// src/yjs/docs-editor/model/page.ts
|
|
13535
|
-
import { z as
|
|
13536
|
-
var DocumentationPageEditorModel =
|
|
13537
|
-
blocks:
|
|
13551
|
+
import { z as z356 } from "zod";
|
|
13552
|
+
var DocumentationPageEditorModel = z356.object({
|
|
13553
|
+
blocks: z356.array(DocumentationPageContentItem)
|
|
13538
13554
|
});
|
|
13539
13555
|
|
|
13540
13556
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -17211,7 +17227,7 @@ var blocks = [
|
|
|
17211
17227
|
|
|
17212
17228
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
17213
17229
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
17214
|
-
import { z as
|
|
17230
|
+
import { z as z357 } from "zod";
|
|
17215
17231
|
function yDocToPage(yDoc, definitions) {
|
|
17216
17232
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
17217
17233
|
}
|
|
@@ -17287,7 +17303,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
17287
17303
|
if (!id) return null;
|
|
17288
17304
|
return {
|
|
17289
17305
|
id,
|
|
17290
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
17306
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z357.string()) ?? "",
|
|
17291
17307
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
17292
17308
|
};
|
|
17293
17309
|
}
|
|
@@ -17321,7 +17337,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
17321
17337
|
});
|
|
17322
17338
|
}
|
|
17323
17339
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
17324
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
17340
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z357.string());
|
|
17325
17341
|
if (!definitionId) {
|
|
17326
17342
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
17327
17343
|
return [];
|
|
@@ -17362,7 +17378,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
17362
17378
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
17363
17379
|
if (!id) return null;
|
|
17364
17380
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
17365
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
17381
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z357.string().optional()));
|
|
17366
17382
|
return {
|
|
17367
17383
|
id,
|
|
17368
17384
|
type: "Block",
|
|
@@ -17485,9 +17501,9 @@ function parseRichTextAttribute(mark) {
|
|
|
17485
17501
|
return null;
|
|
17486
17502
|
}
|
|
17487
17503
|
function parseProsemirrorLink(mark) {
|
|
17488
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
17504
|
+
const href = getProsemirrorAttribute(mark, "href", z357.string().optional());
|
|
17489
17505
|
if (!href) return null;
|
|
17490
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
17506
|
+
const target = getProsemirrorAttribute(mark, "target", z357.string().optional());
|
|
17491
17507
|
const openInNewTab = target === "_blank";
|
|
17492
17508
|
if (href.startsWith("@")) {
|
|
17493
17509
|
return {
|
|
@@ -17506,9 +17522,9 @@ function parseProsemirrorLink(mark) {
|
|
|
17506
17522
|
}
|
|
17507
17523
|
}
|
|
17508
17524
|
function parseProsemirrorCommentHighlight(mark) {
|
|
17509
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
17525
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z357.string().optional());
|
|
17510
17526
|
if (!highlightId) return null;
|
|
17511
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
17527
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z357.boolean().optional()) ?? false;
|
|
17512
17528
|
return {
|
|
17513
17529
|
type: "Comment",
|
|
17514
17530
|
commentHighlightId: highlightId,
|
|
@@ -17519,7 +17535,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
17519
17535
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
17520
17536
|
if (!id) return null;
|
|
17521
17537
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
17522
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
17538
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z357.boolean().optional()) !== false;
|
|
17523
17539
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
17524
17540
|
if (!tableChild) {
|
|
17525
17541
|
return emptyTable(id, variantId, 0);
|
|
@@ -17565,9 +17581,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
17565
17581
|
function parseAsTableCell(prosemirrorNode) {
|
|
17566
17582
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
17567
17583
|
if (!id) return null;
|
|
17568
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
17584
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z357.string().optional());
|
|
17569
17585
|
let columnWidth;
|
|
17570
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
17586
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z357.array(z357.number()).nullish());
|
|
17571
17587
|
if (columnWidthArray) {
|
|
17572
17588
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
17573
17589
|
}
|
|
@@ -17603,7 +17619,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
17603
17619
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
17604
17620
|
};
|
|
17605
17621
|
case "image":
|
|
17606
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
17622
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z357.string());
|
|
17607
17623
|
if (!items) return null;
|
|
17608
17624
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
17609
17625
|
if (!parsedItems.success) return null;
|
|
@@ -17717,7 +17733,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
17717
17733
|
);
|
|
17718
17734
|
}
|
|
17719
17735
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
17720
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
17736
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z357.string());
|
|
17721
17737
|
if (!itemsString) return null;
|
|
17722
17738
|
const itemsJson = JSON.parse(itemsString);
|
|
17723
17739
|
if (!Array.isArray(itemsJson)) {
|
|
@@ -17728,18 +17744,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
17728
17744
|
}
|
|
17729
17745
|
function parseAppearance(prosemirrorNode) {
|
|
17730
17746
|
let appearance = {};
|
|
17731
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
17747
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z357.string().optional());
|
|
17732
17748
|
if (rawAppearanceString) {
|
|
17733
17749
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
17734
17750
|
if (parsedAppearance.success) {
|
|
17735
17751
|
appearance = parsedAppearance.data;
|
|
17736
17752
|
}
|
|
17737
17753
|
}
|
|
17738
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
17754
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z357.number().optional());
|
|
17739
17755
|
if (columns) {
|
|
17740
17756
|
appearance.numberOfColumns = columns;
|
|
17741
17757
|
}
|
|
17742
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
17758
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z357.string().optional());
|
|
17743
17759
|
if (backgroundColor) {
|
|
17744
17760
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
17745
17761
|
if (parsedColor.success) {
|
|
@@ -17840,12 +17856,12 @@ function valueSchemaForPropertyType(type) {
|
|
|
17840
17856
|
}
|
|
17841
17857
|
}
|
|
17842
17858
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
17843
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
17859
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z357.string());
|
|
17844
17860
|
if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
17845
17861
|
return id;
|
|
17846
17862
|
}
|
|
17847
17863
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
17848
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
17864
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z357.string()));
|
|
17849
17865
|
}
|
|
17850
17866
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
17851
17867
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -19490,6 +19506,7 @@ export {
|
|
|
19490
19506
|
DTOForgeProjectRoomResponse,
|
|
19491
19507
|
DTOForgeProjectTheme,
|
|
19492
19508
|
DTOForgeProjectUpdate,
|
|
19509
|
+
DTOForgeRelation,
|
|
19493
19510
|
DTOForgeSection,
|
|
19494
19511
|
DTOForgeSectionCreateInput,
|
|
19495
19512
|
DTOForgeSectionDeleteInput,
|