@supernova-studio/client 1.38.0 → 1.39.0
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 +2810 -770
- package/dist/index.d.ts +2810 -770
- package/dist/index.js +203 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +433 -234
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5196,7 +5196,8 @@ var ForgeProjectArtifact = z176.object({
|
|
|
5196
5196
|
createdAt: z176.coerce.date(),
|
|
5197
5197
|
updatedAt: z176.coerce.date(),
|
|
5198
5198
|
createdByUserId: z176.string(),
|
|
5199
|
-
sectionId: Id.optional()
|
|
5199
|
+
sectionId: Id.optional(),
|
|
5200
|
+
threadId: z176.string().optional()
|
|
5200
5201
|
});
|
|
5201
5202
|
var ForgeProjectContextDependency = z177.object({
|
|
5202
5203
|
packageName: z177.string(),
|
|
@@ -5208,7 +5209,6 @@ var ForgeProjectContextTailwindConfig = z177.object({
|
|
|
5208
5209
|
version: z177.string()
|
|
5209
5210
|
});
|
|
5210
5211
|
var ForgeProjectContext = z177.object({
|
|
5211
|
-
createdAt: z177.coerce.date(),
|
|
5212
5212
|
definition: z177.string(),
|
|
5213
5213
|
dependencies: z177.array(ForgeProjectContextDependency),
|
|
5214
5214
|
designSystemId: z177.string(),
|
|
@@ -5219,6 +5219,7 @@ var ForgeProjectContext = z177.object({
|
|
|
5219
5219
|
platform: z177.enum(["React", "Vue", "Angular"]),
|
|
5220
5220
|
styling: z177.enum(["CSS", "Tailwind"]),
|
|
5221
5221
|
tailwindConfig: ForgeProjectContextTailwindConfig.optional(),
|
|
5222
|
+
createdAt: z177.coerce.date(),
|
|
5222
5223
|
updatedAt: z177.coerce.date(),
|
|
5223
5224
|
workspaceId: z177.string()
|
|
5224
5225
|
});
|
|
@@ -5237,7 +5238,8 @@ var ProjectFeature = z178.object({
|
|
|
5237
5238
|
updatedAt: z178.coerce.date().optional(),
|
|
5238
5239
|
numberOfIterations: z178.number().min(0).default(0),
|
|
5239
5240
|
numberOfBookmarkedIterations: z178.number().min(0).default(0),
|
|
5240
|
-
lastReplyTimestamp: z178.coerce.date().optional()
|
|
5241
|
+
lastReplyTimestamp: z178.coerce.date().optional(),
|
|
5242
|
+
threadId: z178.string().optional()
|
|
5241
5243
|
});
|
|
5242
5244
|
var ForgeProjectFigmaNode = z179.object({
|
|
5243
5245
|
id: z179.string().uuid(),
|
|
@@ -9653,8 +9655,33 @@ var DTOForgeProjectArtifactRoomResponse = z319.object({
|
|
|
9653
9655
|
room: DTOForgeProjectArtifactRoom
|
|
9654
9656
|
});
|
|
9655
9657
|
|
|
9656
|
-
// src/api/dto/forge/project-context.ts
|
|
9658
|
+
// src/api/dto/forge/project-context-v2.ts
|
|
9657
9659
|
import { z as z320 } from "zod";
|
|
9660
|
+
var DTOForgeComponentSetType = z320.enum(["Shadcn"]);
|
|
9661
|
+
var DTOForgeComponentSet = z320.object({
|
|
9662
|
+
type: DTOForgeComponentSetType
|
|
9663
|
+
});
|
|
9664
|
+
var DTOForgeIconSetType = z320.enum(["Phosphor", "Lucide", "Tabler"]);
|
|
9665
|
+
var DTOForgeIconSet = z320.object({
|
|
9666
|
+
type: DTOForgeIconSetType
|
|
9667
|
+
// ... additional icon set props
|
|
9668
|
+
});
|
|
9669
|
+
var DTOForgeProjectContextV2 = z320.object({
|
|
9670
|
+
name: z320.string(),
|
|
9671
|
+
description: z320.string(),
|
|
9672
|
+
productContext: z320.string(),
|
|
9673
|
+
componentSet: DTOForgeComponentSet,
|
|
9674
|
+
iconSet: DTOForgeIconSet,
|
|
9675
|
+
additionalContext: z320.string()
|
|
9676
|
+
});
|
|
9677
|
+
var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2;
|
|
9678
|
+
var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.partial();
|
|
9679
|
+
var DTOForgeProjectContextResponseV2 = z320.object({ context: DTOForgeProjectContextV2 });
|
|
9680
|
+
var DTOForgeProjectContextListQueryV2 = z320.object({ workspaceId: z320.string() });
|
|
9681
|
+
var DTOForgeProjectContextListResponseV2 = z320.object({ contexts: z320.array(DTOForgeProjectContextV2) });
|
|
9682
|
+
|
|
9683
|
+
// src/api/dto/forge/project-context.ts
|
|
9684
|
+
import { z as z321 } from "zod";
|
|
9658
9685
|
var DTOForgeProjectContext = ForgeProjectContext;
|
|
9659
9686
|
var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
9660
9687
|
definition: true,
|
|
@@ -9666,13 +9693,13 @@ var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
|
9666
9693
|
tailwindConfig: true,
|
|
9667
9694
|
styling: true
|
|
9668
9695
|
}).extend({ npmProxySettings: DTONpmRegistryConfig });
|
|
9669
|
-
var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id:
|
|
9670
|
-
var DTOForgeProjectContextGetResponse =
|
|
9671
|
-
var DTOForgeProjectContextListResponse =
|
|
9672
|
-
var DTOForgeProjectContextCreateResponse =
|
|
9673
|
-
var DTOForgeProjectContextUpdateResponse =
|
|
9674
|
-
var DTOForgeProjectContextRemoveResponse =
|
|
9675
|
-
ok:
|
|
9696
|
+
var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z321.string() });
|
|
9697
|
+
var DTOForgeProjectContextGetResponse = z321.object({ context: DTOForgeProjectContext });
|
|
9698
|
+
var DTOForgeProjectContextListResponse = z321.object({ contexts: z321.array(DTOForgeProjectContext) });
|
|
9699
|
+
var DTOForgeProjectContextCreateResponse = z321.object({ context: DTOForgeProjectContext });
|
|
9700
|
+
var DTOForgeProjectContextUpdateResponse = z321.object({ context: DTOForgeProjectContext });
|
|
9701
|
+
var DTOForgeProjectContextRemoveResponse = z321.object({
|
|
9702
|
+
ok: z321.literal(true)
|
|
9676
9703
|
});
|
|
9677
9704
|
|
|
9678
9705
|
// src/api/dto/forge/project-figma-node.ts
|
|
@@ -9680,42 +9707,42 @@ var DTOForgeProjectFigmaNode = ForgeProjectFigmaNode;
|
|
|
9680
9707
|
var DTOForgeProjectFigmaNodeRenderInput = ForgeProjectFigmaNodeRenderInput;
|
|
9681
9708
|
|
|
9682
9709
|
// src/api/dto/forge/project-file.ts
|
|
9683
|
-
import { z as
|
|
9684
|
-
var DTOForgeProjectFile =
|
|
9685
|
-
id:
|
|
9686
|
-
name:
|
|
9687
|
-
checksum:
|
|
9688
|
-
pendingUpload:
|
|
9689
|
-
url:
|
|
9690
|
-
size:
|
|
9691
|
-
});
|
|
9692
|
-
var DTOForgeProjectFileListResponse =
|
|
9693
|
-
files:
|
|
9694
|
-
});
|
|
9695
|
-
var DTOForgeProjectFileUploadPayloadItem =
|
|
9696
|
-
size:
|
|
9697
|
-
name:
|
|
9698
|
-
checksum:
|
|
9699
|
-
});
|
|
9700
|
-
var DTOForgeProjectFileUploadPayload =
|
|
9701
|
-
files:
|
|
9702
|
-
});
|
|
9703
|
-
var DTOForgeProjectFileUploadResponse =
|
|
9704
|
-
files:
|
|
9705
|
-
uploadUrls:
|
|
9706
|
-
|
|
9707
|
-
fileId:
|
|
9708
|
-
uploadUrl:
|
|
9710
|
+
import { z as z322 } from "zod";
|
|
9711
|
+
var DTOForgeProjectFile = z322.object({
|
|
9712
|
+
id: z322.string(),
|
|
9713
|
+
name: z322.string(),
|
|
9714
|
+
checksum: z322.string(),
|
|
9715
|
+
pendingUpload: z322.boolean().optional(),
|
|
9716
|
+
url: z322.string(),
|
|
9717
|
+
size: z322.number()
|
|
9718
|
+
});
|
|
9719
|
+
var DTOForgeProjectFileListResponse = z322.object({
|
|
9720
|
+
files: z322.array(DTOForgeProjectFile)
|
|
9721
|
+
});
|
|
9722
|
+
var DTOForgeProjectFileUploadPayloadItem = z322.object({
|
|
9723
|
+
size: z322.number(),
|
|
9724
|
+
name: z322.string(),
|
|
9725
|
+
checksum: z322.string()
|
|
9726
|
+
});
|
|
9727
|
+
var DTOForgeProjectFileUploadPayload = z322.object({
|
|
9728
|
+
files: z322.array(DTOForgeProjectFileUploadPayloadItem)
|
|
9729
|
+
});
|
|
9730
|
+
var DTOForgeProjectFileUploadResponse = z322.object({
|
|
9731
|
+
files: z322.array(DTOForgeProjectFile),
|
|
9732
|
+
uploadUrls: z322.array(
|
|
9733
|
+
z322.object({
|
|
9734
|
+
fileId: z322.string(),
|
|
9735
|
+
uploadUrl: z322.string()
|
|
9709
9736
|
})
|
|
9710
9737
|
)
|
|
9711
9738
|
});
|
|
9712
|
-
var DTOForgeProjectFileUploadFinalizePayload =
|
|
9713
|
-
fileIds:
|
|
9739
|
+
var DTOForgeProjectFileUploadFinalizePayload = z322.object({
|
|
9740
|
+
fileIds: z322.array(z322.string())
|
|
9714
9741
|
});
|
|
9715
|
-
var DTOForgeProjectFileUploadFinalizeResponse =
|
|
9742
|
+
var DTOForgeProjectFileUploadFinalizeResponse = z322.object({ ok: z322.literal(true) });
|
|
9716
9743
|
|
|
9717
9744
|
// src/api/dto/forge/project-invitation.ts
|
|
9718
|
-
import { z as
|
|
9745
|
+
import { z as z323 } from "zod";
|
|
9719
9746
|
var DTOForgeProjectInvitation = ForgeProjectInvitation;
|
|
9720
9747
|
var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
|
|
9721
9748
|
email: true,
|
|
@@ -9729,24 +9756,24 @@ var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation.omit({
|
|
|
9729
9756
|
var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
|
|
9730
9757
|
email: true
|
|
9731
9758
|
});
|
|
9732
|
-
var DTOForgeProjectInvitationsListResponse =
|
|
9733
|
-
invitations:
|
|
9759
|
+
var DTOForgeProjectInvitationsListResponse = z323.object({
|
|
9760
|
+
invitations: z323.array(DTOForgeProjectInvitation)
|
|
9734
9761
|
});
|
|
9735
|
-
var DTOForgeProjectInvitationGetResponse =
|
|
9762
|
+
var DTOForgeProjectInvitationGetResponse = z323.object({
|
|
9736
9763
|
invitation: DTOForgeProjectInvitation
|
|
9737
9764
|
});
|
|
9738
|
-
var DTOForgeProjectInvitationCreateResponse =
|
|
9765
|
+
var DTOForgeProjectInvitationCreateResponse = z323.object({
|
|
9739
9766
|
invitation: DTOForgeProjectInvitation
|
|
9740
9767
|
});
|
|
9741
|
-
var DTOForgeProjectInvitationUpdateResponse =
|
|
9768
|
+
var DTOForgeProjectInvitationUpdateResponse = z323.object({
|
|
9742
9769
|
invitation: DTOForgeProjectInvitation.nullable()
|
|
9743
9770
|
});
|
|
9744
|
-
var DTOForgeProjectInvitationRemoveResponse =
|
|
9745
|
-
ok:
|
|
9771
|
+
var DTOForgeProjectInvitationRemoveResponse = z323.object({
|
|
9772
|
+
ok: z323.literal(true)
|
|
9746
9773
|
});
|
|
9747
9774
|
|
|
9748
9775
|
// src/api/dto/forge/project-iteration-old.ts
|
|
9749
|
-
import { z as
|
|
9776
|
+
import { z as z324 } from "zod";
|
|
9750
9777
|
var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
|
|
9751
9778
|
var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
9752
9779
|
artifacts: true,
|
|
@@ -9757,7 +9784,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
|
9757
9784
|
messages: DTOForgeIterationMessage.array(),
|
|
9758
9785
|
mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
|
|
9759
9786
|
});
|
|
9760
|
-
var DTOGetForgeProjectIterationResponse =
|
|
9787
|
+
var DTOGetForgeProjectIterationResponse = z324.object({
|
|
9761
9788
|
iteration: DTOForgeProjectIteration.nullable()
|
|
9762
9789
|
});
|
|
9763
9790
|
var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
@@ -9767,20 +9794,20 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
|
9767
9794
|
mergeMeta: true,
|
|
9768
9795
|
createdAt: true
|
|
9769
9796
|
});
|
|
9770
|
-
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id:
|
|
9771
|
-
var DTOCreateForgeProjectIterationResponse =
|
|
9797
|
+
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z324.string() });
|
|
9798
|
+
var DTOCreateForgeProjectIterationResponse = z324.object({
|
|
9772
9799
|
iteration: DTOForgeProjectIteration
|
|
9773
9800
|
});
|
|
9774
|
-
var DTOUpdateForgeProjectIterationResponse =
|
|
9801
|
+
var DTOUpdateForgeProjectIterationResponse = z324.object({
|
|
9775
9802
|
iteration: DTOForgeProjectIteration.nullable()
|
|
9776
9803
|
});
|
|
9777
|
-
var DTODeleteForgeProjectIterationResponse =
|
|
9778
|
-
ok:
|
|
9804
|
+
var DTODeleteForgeProjectIterationResponse = z324.object({
|
|
9805
|
+
ok: z324.literal(true)
|
|
9779
9806
|
});
|
|
9780
|
-
var DTOForgeProjectIterationListResponse =
|
|
9807
|
+
var DTOForgeProjectIterationListResponse = z324.object({ iterations: z324.array(DTOForgeProjectIteration) });
|
|
9781
9808
|
|
|
9782
9809
|
// src/api/dto/forge/project-member.ts
|
|
9783
|
-
import { z as
|
|
9810
|
+
import { z as z325 } from "zod";
|
|
9784
9811
|
var DTOForgeProjectMemberRole = ForgeProjectRole;
|
|
9785
9812
|
var DTOForgeProjectMember = ForgeProjectMembership.extend({
|
|
9786
9813
|
user: DTOUser,
|
|
@@ -9794,37 +9821,37 @@ var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember;
|
|
|
9794
9821
|
var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
|
|
9795
9822
|
userId: true
|
|
9796
9823
|
});
|
|
9797
|
-
var DTOForgeProjectMembersListResponse =
|
|
9798
|
-
members:
|
|
9799
|
-
invitations:
|
|
9824
|
+
var DTOForgeProjectMembersListResponse = z325.object({
|
|
9825
|
+
members: z325.array(DTOForgeProjectMember),
|
|
9826
|
+
invitations: z325.array(DTOForgeProjectInvitation)
|
|
9800
9827
|
});
|
|
9801
|
-
var DTOForgeProjectMemberGetResponse =
|
|
9828
|
+
var DTOForgeProjectMemberGetResponse = z325.object({
|
|
9802
9829
|
member: DTOForgeProjectMember
|
|
9803
9830
|
});
|
|
9804
|
-
var DTOForgeProjectMemberCreateResponse =
|
|
9831
|
+
var DTOForgeProjectMemberCreateResponse = z325.object({
|
|
9805
9832
|
member: DTOForgeProjectMember
|
|
9806
9833
|
});
|
|
9807
|
-
var DTOForgeProjectMemberUpdateResponse =
|
|
9834
|
+
var DTOForgeProjectMemberUpdateResponse = z325.object({
|
|
9808
9835
|
member: DTOForgeProjectMember.nullable()
|
|
9809
9836
|
});
|
|
9810
|
-
var DTOForgeProjectMemberRemoveResponse =
|
|
9811
|
-
ok:
|
|
9837
|
+
var DTOForgeProjectMemberRemoveResponse = z325.object({
|
|
9838
|
+
ok: z325.literal(true)
|
|
9812
9839
|
});
|
|
9813
|
-
var DTOAddMembersToForgeProject =
|
|
9840
|
+
var DTOAddMembersToForgeProject = z325.object({
|
|
9814
9841
|
membersToInvite: DTOCreateForgeProjectInvitation.array().min(1)
|
|
9815
9842
|
});
|
|
9816
9843
|
|
|
9817
9844
|
// src/api/dto/forge/project-room.ts
|
|
9818
|
-
import { z as
|
|
9819
|
-
var DTOForgeProjectRoom =
|
|
9820
|
-
id:
|
|
9845
|
+
import { z as z326 } from "zod";
|
|
9846
|
+
var DTOForgeProjectRoom = z326.object({
|
|
9847
|
+
id: z326.string()
|
|
9821
9848
|
});
|
|
9822
|
-
var DTOForgeProjectRoomResponse =
|
|
9849
|
+
var DTOForgeProjectRoomResponse = z326.object({
|
|
9823
9850
|
room: DTOForgeProjectRoom
|
|
9824
9851
|
});
|
|
9825
9852
|
|
|
9826
9853
|
// src/api/dto/forge/project.ts
|
|
9827
|
-
import { z as
|
|
9854
|
+
import { z as z327 } from "zod";
|
|
9828
9855
|
var DTOForgeProject = ForgeProject.omit({ fpContextId: true }).extend({
|
|
9829
9856
|
context: ForgeProjectContext
|
|
9830
9857
|
});
|
|
@@ -9840,159 +9867,298 @@ var DTOForgeProjectCreate = ForgeProject.pick({
|
|
|
9840
9867
|
emoji: true
|
|
9841
9868
|
}).extend({ membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional() });
|
|
9842
9869
|
var DTOForgeProjectUpdate = DTOForgeProjectCreate.omit({ membersToInvite: true }).partial().extend({
|
|
9843
|
-
id:
|
|
9870
|
+
id: z327.string()
|
|
9844
9871
|
});
|
|
9845
|
-
var DTOForgeProjectGetResponse =
|
|
9846
|
-
var DTOForgeProjectListResponse =
|
|
9847
|
-
var DTOForgeProjectCreateResponse =
|
|
9872
|
+
var DTOForgeProjectGetResponse = z327.object({ project: DTOForgeProject.nullable() });
|
|
9873
|
+
var DTOForgeProjectListResponse = z327.object({ projects: z327.array(DTOForgeProject) });
|
|
9874
|
+
var DTOForgeProjectCreateResponse = z327.object({
|
|
9848
9875
|
project: DTOForgeProject
|
|
9849
9876
|
});
|
|
9850
|
-
var DTOForgeProjectUpdateResponse =
|
|
9877
|
+
var DTOForgeProjectUpdateResponse = z327.object({
|
|
9851
9878
|
project: DTOForgeProject
|
|
9852
9879
|
});
|
|
9853
|
-
var DTOForgeProjectRemoveResponse =
|
|
9880
|
+
var DTOForgeProjectRemoveResponse = z327.object({ ok: z327.literal(true) });
|
|
9854
9881
|
|
|
9855
9882
|
// src/api/dto/forge/threads.ts
|
|
9856
|
-
import { z as
|
|
9883
|
+
import { z as z328 } from "zod";
|
|
9857
9884
|
var DTOForgeChatMessage = ForgeChatMessage;
|
|
9858
9885
|
var DTOForgeChatThread = ForgeChatThread;
|
|
9859
9886
|
var DTOForgeChatMessageSenderType = ForgeChatMessageSenderType;
|
|
9860
9887
|
var DTOForgeChatMessageSender = ForgeChatMessageSender;
|
|
9861
|
-
var DTOForgeChatThreadCreateInput =
|
|
9862
|
-
title:
|
|
9888
|
+
var DTOForgeChatThreadCreateInput = z328.object({
|
|
9889
|
+
title: z328.string().optional()
|
|
9863
9890
|
});
|
|
9864
|
-
var DTOForgeChatThreadCreateResponse =
|
|
9891
|
+
var DTOForgeChatThreadCreateResponse = z328.object({
|
|
9865
9892
|
thread: DTOForgeChatThread
|
|
9866
9893
|
});
|
|
9867
|
-
var DTOForgeChatThreadUpdateInput =
|
|
9868
|
-
title:
|
|
9894
|
+
var DTOForgeChatThreadUpdateInput = z328.object({
|
|
9895
|
+
title: z328.string()
|
|
9869
9896
|
});
|
|
9870
|
-
var DTOForgeChatThreadUpdateResponse =
|
|
9897
|
+
var DTOForgeChatThreadUpdateResponse = z328.object({
|
|
9871
9898
|
thread: DTOForgeChatThread
|
|
9872
9899
|
});
|
|
9873
|
-
var DTOForgeChatThreadDeleteResponse =
|
|
9874
|
-
success:
|
|
9900
|
+
var DTOForgeChatThreadDeleteResponse = z328.object({
|
|
9901
|
+
success: z328.boolean()
|
|
9875
9902
|
});
|
|
9876
|
-
var DTOForgeChatThreadListQuery =
|
|
9877
|
-
limit:
|
|
9878
|
-
offset:
|
|
9903
|
+
var DTOForgeChatThreadListQuery = z328.object({
|
|
9904
|
+
limit: z328.number().optional(),
|
|
9905
|
+
offset: z328.number().optional()
|
|
9879
9906
|
});
|
|
9880
|
-
var DTOForgeChatThreadListResponse =
|
|
9881
|
-
threads:
|
|
9882
|
-
pagination:
|
|
9883
|
-
offset:
|
|
9884
|
-
limit:
|
|
9885
|
-
total:
|
|
9907
|
+
var DTOForgeChatThreadListResponse = z328.object({
|
|
9908
|
+
threads: z328.array(DTOForgeChatThread),
|
|
9909
|
+
pagination: z328.object({
|
|
9910
|
+
offset: z328.number(),
|
|
9911
|
+
limit: z328.number(),
|
|
9912
|
+
total: z328.number()
|
|
9886
9913
|
})
|
|
9887
9914
|
});
|
|
9888
|
-
var DTOForgeChatMessageCreateInput =
|
|
9889
|
-
payload:
|
|
9915
|
+
var DTOForgeChatMessageCreateInput = z328.object({
|
|
9916
|
+
payload: z328.string(),
|
|
9890
9917
|
sender: DTOForgeChatMessageSender.optional(),
|
|
9891
|
-
opikTraceId:
|
|
9892
|
-
replyToMessageId:
|
|
9918
|
+
opikTraceId: z328.string().optional(),
|
|
9919
|
+
replyToMessageId: z328.string().optional()
|
|
9893
9920
|
});
|
|
9894
|
-
var DTOForgeChatMessageCreateResponse =
|
|
9921
|
+
var DTOForgeChatMessageCreateResponse = z328.object({
|
|
9895
9922
|
message: DTOForgeChatMessage
|
|
9896
9923
|
});
|
|
9897
|
-
var DTOForgeChatMessageListQuery =
|
|
9898
|
-
limit:
|
|
9899
|
-
offset:
|
|
9924
|
+
var DTOForgeChatMessageListQuery = z328.object({
|
|
9925
|
+
limit: z328.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
|
|
9926
|
+
offset: z328.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
|
|
9900
9927
|
});
|
|
9901
|
-
var DTOForgeChatMessageListResponse =
|
|
9902
|
-
messages:
|
|
9903
|
-
totalCount:
|
|
9904
|
-
hasMore:
|
|
9928
|
+
var DTOForgeChatMessageListResponse = z328.object({
|
|
9929
|
+
messages: z328.array(DTOForgeChatMessage),
|
|
9930
|
+
totalCount: z328.number(),
|
|
9931
|
+
hasMore: z328.boolean()
|
|
9905
9932
|
});
|
|
9906
|
-
var DTOForgeChatExportResponse =
|
|
9907
|
-
csvDownloadUrl:
|
|
9933
|
+
var DTOForgeChatExportResponse = z328.object({
|
|
9934
|
+
csvDownloadUrl: z328.string().nullable()
|
|
9908
9935
|
});
|
|
9909
|
-
var DTOForgeChatMessageScoreInput =
|
|
9910
|
-
messageId:
|
|
9911
|
-
name:
|
|
9912
|
-
value:
|
|
9913
|
-
categoryName:
|
|
9914
|
-
reason:
|
|
9936
|
+
var DTOForgeChatMessageScoreInput = z328.object({
|
|
9937
|
+
messageId: z328.string(),
|
|
9938
|
+
name: z328.string(),
|
|
9939
|
+
value: z328.number(),
|
|
9940
|
+
categoryName: z328.string().optional(),
|
|
9941
|
+
reason: z328.string().optional()
|
|
9915
9942
|
});
|
|
9916
|
-
var DTOForgeChatMessageTagInput =
|
|
9917
|
-
messageId:
|
|
9918
|
-
tags:
|
|
9943
|
+
var DTOForgeChatMessageTagInput = z328.object({
|
|
9944
|
+
messageId: z328.string(),
|
|
9945
|
+
tags: z328.array(z328.string())
|
|
9919
9946
|
});
|
|
9920
|
-
var DTOForgeChatMessageScoreRequest =
|
|
9947
|
+
var DTOForgeChatMessageScoreRequest = z328.object({
|
|
9921
9948
|
scores: DTOForgeChatMessageScoreInput.array(),
|
|
9922
9949
|
tags: DTOForgeChatMessageTagInput.array().optional().default([])
|
|
9923
9950
|
});
|
|
9924
9951
|
|
|
9925
9952
|
// src/api/dto/liveblocks/auth-response.ts
|
|
9926
|
-
import { z as
|
|
9927
|
-
var DTOLiveblocksAuthResponse =
|
|
9928
|
-
token:
|
|
9953
|
+
import { z as z329 } from "zod";
|
|
9954
|
+
var DTOLiveblocksAuthResponse = z329.object({
|
|
9955
|
+
token: z329.string()
|
|
9929
9956
|
});
|
|
9930
9957
|
|
|
9931
9958
|
// src/api/dto/portal/portal-settings.ts
|
|
9932
|
-
import { z as
|
|
9959
|
+
import { z as z330 } from "zod";
|
|
9933
9960
|
var DTOPortalSettingsTheme = PortalSettingsTheme;
|
|
9934
9961
|
var DTOPortalSettingsSidebarLink = PortalSettingsSidebarLink;
|
|
9935
9962
|
var DTOPortalSettingsSidebarSection = PortalSettingsSidebarSection;
|
|
9936
9963
|
var DTOPortalSettingsSidebar = PortalSettingsSidebar;
|
|
9937
|
-
var DTOPortalSettings =
|
|
9938
|
-
id:
|
|
9939
|
-
workspaceId:
|
|
9940
|
-
enabledDesignSystemIds:
|
|
9941
|
-
enabledBrandPersistentIds:
|
|
9964
|
+
var DTOPortalSettings = z330.object({
|
|
9965
|
+
id: z330.string(),
|
|
9966
|
+
workspaceId: z330.string(),
|
|
9967
|
+
enabledDesignSystemIds: z330.array(z330.string()),
|
|
9968
|
+
enabledBrandPersistentIds: z330.array(z330.string()),
|
|
9942
9969
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
9943
9970
|
sidebar: DTOPortalSettingsSidebar.nullish(),
|
|
9944
|
-
createdAt:
|
|
9945
|
-
updatedAt:
|
|
9971
|
+
createdAt: z330.coerce.date(),
|
|
9972
|
+
updatedAt: z330.coerce.date()
|
|
9946
9973
|
});
|
|
9947
|
-
var DTOPortalSettingsGetResponse =
|
|
9974
|
+
var DTOPortalSettingsGetResponse = z330.object({
|
|
9948
9975
|
portalSettings: DTOPortalSettings
|
|
9949
9976
|
});
|
|
9950
|
-
var DTOPortalSettingsUpdatePayload =
|
|
9951
|
-
enabledDesignSystemIds:
|
|
9952
|
-
enabledBrandPersistentIds:
|
|
9977
|
+
var DTOPortalSettingsUpdatePayload = z330.object({
|
|
9978
|
+
enabledDesignSystemIds: z330.array(z330.string()).optional(),
|
|
9979
|
+
enabledBrandPersistentIds: z330.array(z330.string()).optional(),
|
|
9953
9980
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
9954
9981
|
sidebar: DTOPortalSettingsSidebar.nullish()
|
|
9955
9982
|
});
|
|
9956
9983
|
|
|
9957
9984
|
// src/api/dto/themes/override.ts
|
|
9958
|
-
import { z as
|
|
9985
|
+
import { z as z331 } from "zod";
|
|
9959
9986
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
9960
|
-
|
|
9961
|
-
tokenPersistentId:
|
|
9987
|
+
z331.object({
|
|
9988
|
+
tokenPersistentId: z331.string(),
|
|
9962
9989
|
origin: ThemeOverrideOrigin.optional()
|
|
9963
9990
|
})
|
|
9964
9991
|
);
|
|
9965
9992
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
9966
|
-
|
|
9967
|
-
tokenPersistentId:
|
|
9993
|
+
z331.object({
|
|
9994
|
+
tokenPersistentId: z331.string()
|
|
9968
9995
|
})
|
|
9969
9996
|
);
|
|
9970
9997
|
|
|
9971
9998
|
// src/api/dto/themes/theme.ts
|
|
9972
|
-
import { z as
|
|
9973
|
-
var DTOTheme =
|
|
9974
|
-
id:
|
|
9975
|
-
persistentId:
|
|
9976
|
-
designSystemVersionId:
|
|
9977
|
-
brandId:
|
|
9999
|
+
import { z as z332 } from "zod";
|
|
10000
|
+
var DTOTheme = z332.object({
|
|
10001
|
+
id: z332.string(),
|
|
10002
|
+
persistentId: z332.string(),
|
|
10003
|
+
designSystemVersionId: z332.string(),
|
|
10004
|
+
brandId: z332.string(),
|
|
9978
10005
|
meta: ObjectMeta,
|
|
9979
|
-
codeName:
|
|
10006
|
+
codeName: z332.string(),
|
|
9980
10007
|
overrides: DTOThemeOverride.array()
|
|
9981
10008
|
});
|
|
9982
|
-
var DTOThemeResponse =
|
|
10009
|
+
var DTOThemeResponse = z332.object({
|
|
9983
10010
|
theme: DTOTheme
|
|
9984
10011
|
});
|
|
9985
|
-
var DTOThemeListResponse =
|
|
10012
|
+
var DTOThemeListResponse = z332.object({
|
|
9986
10013
|
themes: DTOTheme.array()
|
|
9987
10014
|
});
|
|
9988
|
-
var DTOThemeCreatePayload =
|
|
10015
|
+
var DTOThemeCreatePayload = z332.object({
|
|
9989
10016
|
meta: ObjectMeta,
|
|
9990
|
-
persistentId:
|
|
9991
|
-
brandId:
|
|
9992
|
-
codeName:
|
|
10017
|
+
persistentId: z332.string(),
|
|
10018
|
+
brandId: z332.string(),
|
|
10019
|
+
codeName: z332.string(),
|
|
9993
10020
|
overrides: DTOThemeOverride.array()
|
|
9994
10021
|
});
|
|
9995
10022
|
|
|
10023
|
+
// src/api/dto/threads/threads.ts
|
|
10024
|
+
import z333 from "zod";
|
|
10025
|
+
var DTOThreadSubjectType = z333.enum(["ForgeDocument", "ForgeFeature"]);
|
|
10026
|
+
var DTOThreadAgentType = z333.enum(["Ask", "Document", "Prototype", "ReleaseNotes"]);
|
|
10027
|
+
var DTOThread = z333.object({
|
|
10028
|
+
id: z333.string(),
|
|
10029
|
+
liveblocksRoomId: z333.string(),
|
|
10030
|
+
defaultAgentType: DTOThreadAgentType,
|
|
10031
|
+
subjectId: z333.string(),
|
|
10032
|
+
subjectType: DTOThreadSubjectType,
|
|
10033
|
+
createdAt: z333.string(),
|
|
10034
|
+
updatedAt: z333.string()
|
|
10035
|
+
});
|
|
10036
|
+
var DTOThreadMessageUserSender = z333.object({
|
|
10037
|
+
type: z333.literal("User"),
|
|
10038
|
+
userId: z333.string()
|
|
10039
|
+
});
|
|
10040
|
+
var DTOThreadMessageAgentSender = z333.object({
|
|
10041
|
+
type: z333.literal("Agent"),
|
|
10042
|
+
agentType: DTOThreadAgentType
|
|
10043
|
+
});
|
|
10044
|
+
var DTOThreadMessageSystemSender = z333.object({
|
|
10045
|
+
type: z333.literal("System"),
|
|
10046
|
+
onBehalfOfUserId: z333.string()
|
|
10047
|
+
});
|
|
10048
|
+
var DTOThreadMessageSender = z333.discriminatedUnion("type", [
|
|
10049
|
+
DTOThreadMessageUserSender,
|
|
10050
|
+
DTOThreadMessageAgentSender,
|
|
10051
|
+
DTOThreadMessageSystemSender
|
|
10052
|
+
]);
|
|
10053
|
+
var DTOThreadReaction = z333.object({
|
|
10054
|
+
messageId: Id,
|
|
10055
|
+
userId: z333.string(),
|
|
10056
|
+
emoji: z333.string(),
|
|
10057
|
+
createdAt: z333.string()
|
|
10058
|
+
});
|
|
10059
|
+
var DTOThreadMessageAttachments = z333.object({
|
|
10060
|
+
iterationId: Id.optional()
|
|
10061
|
+
// TODO Artem: files, etc
|
|
10062
|
+
});
|
|
10063
|
+
var DTOThreadMessage = z333.object({
|
|
10064
|
+
id: Id,
|
|
10065
|
+
threadId: z333.string(),
|
|
10066
|
+
/**
|
|
10067
|
+
* Describes where the message came from
|
|
10068
|
+
*/
|
|
10069
|
+
sender: DTOThreadMessageSender,
|
|
10070
|
+
/**
|
|
10071
|
+
* Content of the message
|
|
10072
|
+
*/
|
|
10073
|
+
body: z333.string(),
|
|
10074
|
+
/**
|
|
10075
|
+
* Indicates if the message was sent in the agentic mode, if so this message will cause an
|
|
10076
|
+
* AI agent to generate a response and perform an action within the feature
|
|
10077
|
+
*/
|
|
10078
|
+
isPrompt: z333.boolean().optional(),
|
|
10079
|
+
/**
|
|
10080
|
+
* Indicates if the sender requested agent to reply in a thread
|
|
10081
|
+
*/
|
|
10082
|
+
startsNewThread: z333.boolean().optional(),
|
|
10083
|
+
/**
|
|
10084
|
+
* If defined, this message is considered to be a reply in a thread under parent message id
|
|
10085
|
+
*/
|
|
10086
|
+
parentMessageId: Id.optional(),
|
|
10087
|
+
/**
|
|
10088
|
+
* Link agent response object describing current state of
|
|
10089
|
+
*/
|
|
10090
|
+
agentResponseTrackerId: Id.optional().nullable(),
|
|
10091
|
+
attachments: DTOThreadMessageAttachments.optional(),
|
|
10092
|
+
/**
|
|
10093
|
+
* If defined, this message is considered to be a reply to different message
|
|
10094
|
+
*/
|
|
10095
|
+
replyToMessageId: Id.optional(),
|
|
10096
|
+
createdAt: z333.string(),
|
|
10097
|
+
updatedAt: z333.string().optional()
|
|
10098
|
+
});
|
|
10099
|
+
var DTOThreadAgentResponseTracker = z333.object({
|
|
10100
|
+
id: Id,
|
|
10101
|
+
currentBody: z333.string().default("")
|
|
10102
|
+
});
|
|
10103
|
+
var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
|
|
10104
|
+
id: true,
|
|
10105
|
+
body: true,
|
|
10106
|
+
isPrompt: true,
|
|
10107
|
+
startsNewThread: true,
|
|
10108
|
+
parentMessageId: true,
|
|
10109
|
+
attachments: true
|
|
10110
|
+
});
|
|
10111
|
+
var DTOThreadMessageUpdateInput = DTOThreadMessage.pick({
|
|
10112
|
+
id: true
|
|
10113
|
+
}).merge(
|
|
10114
|
+
z333.object({
|
|
10115
|
+
body: DTOThreadMessage.shape.body,
|
|
10116
|
+
attachments: DTOThreadMessage.shape.attachments,
|
|
10117
|
+
agentResponseTrackerId: DTOThreadMessage.shape.agentResponseTrackerId.nullable()
|
|
10118
|
+
}).partial()
|
|
10119
|
+
);
|
|
10120
|
+
var DTOThreadReactionCreateInput = z333.object({
|
|
10121
|
+
messageId: Id,
|
|
10122
|
+
emoji: z333.string()
|
|
10123
|
+
});
|
|
10124
|
+
var DTOThreadReactionDeleteInput = z333.object({
|
|
10125
|
+
messageId: Id,
|
|
10126
|
+
emoji: z333.string()
|
|
10127
|
+
});
|
|
10128
|
+
var DTOThreadMessageResponse = z333.object({
|
|
10129
|
+
message: DTOThreadMessage
|
|
10130
|
+
});
|
|
10131
|
+
var DTOThreadReactionResponse = z333.object({
|
|
10132
|
+
reaction: DTOThreadReaction
|
|
10133
|
+
});
|
|
10134
|
+
var DTOThreadMessageListResponse = z333.object({
|
|
10135
|
+
messages: DTOThreadMessage.array(),
|
|
10136
|
+
reactions: DTOThreadReaction.array(),
|
|
10137
|
+
lastSeenMessageId: z333.string().optional()
|
|
10138
|
+
});
|
|
10139
|
+
var DTOThreadEventMessagesSent = z333.object({
|
|
10140
|
+
type: z333.literal("MessagesSent"),
|
|
10141
|
+
data: DTOThreadMessage.array()
|
|
10142
|
+
});
|
|
10143
|
+
var DTOThreadEventMessagesUpdated = z333.object({
|
|
10144
|
+
type: z333.literal("MessagesUpdated"),
|
|
10145
|
+
data: DTOThreadMessage.array()
|
|
10146
|
+
});
|
|
10147
|
+
var DTOThreadEventReactionsSent = z333.object({
|
|
10148
|
+
type: z333.literal("ReactionsSent"),
|
|
10149
|
+
data: DTOThreadReaction.array()
|
|
10150
|
+
});
|
|
10151
|
+
var DTOThreadEventReactionsDeleted = z333.object({
|
|
10152
|
+
type: z333.literal("ReactionsDeleted"),
|
|
10153
|
+
data: DTOThreadReaction.array()
|
|
10154
|
+
});
|
|
10155
|
+
var DTOThreadEvent = z333.discriminatedUnion("type", [
|
|
10156
|
+
DTOThreadEventMessagesSent,
|
|
10157
|
+
DTOThreadEventMessagesUpdated,
|
|
10158
|
+
DTOThreadEventReactionsSent,
|
|
10159
|
+
DTOThreadEventReactionsDeleted
|
|
10160
|
+
]);
|
|
10161
|
+
|
|
9996
10162
|
// src/utils/figma.ts
|
|
9997
10163
|
var figmaFileIdRegex = /^[0-9a-zA-Z]{22,128}$/;
|
|
9998
10164
|
var nodeIdRegex = /^\d+-\d+$/;
|
|
@@ -10225,13 +10391,13 @@ var ExportersEndpoint = class {
|
|
|
10225
10391
|
};
|
|
10226
10392
|
|
|
10227
10393
|
// src/api/endpoints/codegen/jobs.ts
|
|
10228
|
-
import { z as
|
|
10394
|
+
import { z as z334 } from "zod";
|
|
10229
10395
|
var ExporterJobsEndpoint = class {
|
|
10230
10396
|
constructor(requestExecutor) {
|
|
10231
10397
|
this.requestExecutor = requestExecutor;
|
|
10232
10398
|
}
|
|
10233
10399
|
list(workspaceId) {
|
|
10234
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
10400
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z334.any());
|
|
10235
10401
|
}
|
|
10236
10402
|
get(workspaceId, jobId) {
|
|
10237
10403
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -10289,7 +10455,7 @@ var CodegenEndpoint = class {
|
|
|
10289
10455
|
};
|
|
10290
10456
|
|
|
10291
10457
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
10292
|
-
import { z as
|
|
10458
|
+
import { z as z335 } from "zod";
|
|
10293
10459
|
var BrandsEndpoint = class {
|
|
10294
10460
|
constructor(requestExecutor) {
|
|
10295
10461
|
this.requestExecutor = requestExecutor;
|
|
@@ -10323,7 +10489,7 @@ var BrandsEndpoint = class {
|
|
|
10323
10489
|
});
|
|
10324
10490
|
}
|
|
10325
10491
|
delete(dsId, vId, brandId) {
|
|
10326
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
10492
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z335.any(), {
|
|
10327
10493
|
method: "DELETE"
|
|
10328
10494
|
});
|
|
10329
10495
|
}
|
|
@@ -10599,7 +10765,7 @@ var ImportJobsEndpoint = class {
|
|
|
10599
10765
|
};
|
|
10600
10766
|
|
|
10601
10767
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
10602
|
-
import { z as
|
|
10768
|
+
import { z as z336 } from "zod";
|
|
10603
10769
|
var OverridesEndpoint = class {
|
|
10604
10770
|
constructor(requestExecutor) {
|
|
10605
10771
|
this.requestExecutor = requestExecutor;
|
|
@@ -10607,7 +10773,7 @@ var OverridesEndpoint = class {
|
|
|
10607
10773
|
create(dsId, versionId, themeId, body) {
|
|
10608
10774
|
return this.requestExecutor.json(
|
|
10609
10775
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
10610
|
-
|
|
10776
|
+
z336.any(),
|
|
10611
10777
|
{
|
|
10612
10778
|
method: "POST",
|
|
10613
10779
|
body
|
|
@@ -10617,7 +10783,7 @@ var OverridesEndpoint = class {
|
|
|
10617
10783
|
};
|
|
10618
10784
|
|
|
10619
10785
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
10620
|
-
import { z as
|
|
10786
|
+
import { z as z337 } from "zod";
|
|
10621
10787
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
10622
10788
|
constructor(requestExecutor) {
|
|
10623
10789
|
this.requestExecutor = requestExecutor;
|
|
@@ -10645,7 +10811,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
10645
10811
|
delete(designSystemId, versionId, defId) {
|
|
10646
10812
|
return this.requestExecutor.json(
|
|
10647
10813
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
10648
|
-
|
|
10814
|
+
z337.any(),
|
|
10649
10815
|
{ method: "DELETE" }
|
|
10650
10816
|
);
|
|
10651
10817
|
}
|
|
@@ -10684,7 +10850,7 @@ var VersionStatsEndpoint = class {
|
|
|
10684
10850
|
};
|
|
10685
10851
|
|
|
10686
10852
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
10687
|
-
import { z as
|
|
10853
|
+
import { z as z338 } from "zod";
|
|
10688
10854
|
var ThemesEndpoint = class {
|
|
10689
10855
|
constructor(requestExecutor) {
|
|
10690
10856
|
this.requestExecutor = requestExecutor;
|
|
@@ -10707,7 +10873,7 @@ var ThemesEndpoint = class {
|
|
|
10707
10873
|
});
|
|
10708
10874
|
}
|
|
10709
10875
|
delete(dsId, versionId, themeId) {
|
|
10710
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
10876
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z338.any(), {
|
|
10711
10877
|
method: "DELETE"
|
|
10712
10878
|
});
|
|
10713
10879
|
}
|
|
@@ -10880,7 +11046,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
10880
11046
|
};
|
|
10881
11047
|
|
|
10882
11048
|
// src/api/endpoints/design-system/design-systems.ts
|
|
10883
|
-
import { z as
|
|
11049
|
+
import { z as z342 } from "zod";
|
|
10884
11050
|
|
|
10885
11051
|
// src/api/endpoints/design-system/figma-node-structures.ts
|
|
10886
11052
|
var FigmaNodeStructuresEndpoint = class {
|
|
@@ -10957,7 +11123,7 @@ var DesignSystemPageRedirectsEndpoint = class {
|
|
|
10957
11123
|
};
|
|
10958
11124
|
|
|
10959
11125
|
// src/api/endpoints/design-system/sources.ts
|
|
10960
|
-
import { z as
|
|
11126
|
+
import { z as z339 } from "zod";
|
|
10961
11127
|
var DesignSystemSourcesEndpoint = class {
|
|
10962
11128
|
constructor(requestExecutor) {
|
|
10963
11129
|
this.requestExecutor = requestExecutor;
|
|
@@ -10975,7 +11141,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
10975
11141
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
|
|
10976
11142
|
}
|
|
10977
11143
|
delete(dsId, sourceId) {
|
|
10978
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
11144
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z339.any(), { method: "DELETE" });
|
|
10979
11145
|
}
|
|
10980
11146
|
updateFigmaSource(dsId, sourceId, payload) {
|
|
10981
11147
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
|
|
@@ -11018,7 +11184,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
11018
11184
|
};
|
|
11019
11185
|
|
|
11020
11186
|
// src/api/endpoints/design-system/storybook.ts
|
|
11021
|
-
import { z as
|
|
11187
|
+
import { z as z340 } from "zod";
|
|
11022
11188
|
var StorybookEntriesEndpoint = class {
|
|
11023
11189
|
constructor(requestExecutor) {
|
|
11024
11190
|
this.requestExecutor = requestExecutor;
|
|
@@ -11036,14 +11202,14 @@ var StorybookEntriesEndpoint = class {
|
|
|
11036
11202
|
);
|
|
11037
11203
|
}
|
|
11038
11204
|
delete(dsId, entryId) {
|
|
11039
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`,
|
|
11205
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z340.any(), {
|
|
11040
11206
|
method: "DELETE"
|
|
11041
11207
|
});
|
|
11042
11208
|
}
|
|
11043
11209
|
};
|
|
11044
11210
|
|
|
11045
11211
|
// src/api/endpoints/design-system/storybook-hosting.ts
|
|
11046
|
-
import { z as
|
|
11212
|
+
import { z as z341 } from "zod";
|
|
11047
11213
|
var StorybookHostingEndpoint = class {
|
|
11048
11214
|
constructor(requestExecutor) {
|
|
11049
11215
|
this.requestExecutor = requestExecutor;
|
|
@@ -11057,7 +11223,7 @@ var StorybookHostingEndpoint = class {
|
|
|
11057
11223
|
delete(dsId, storybookUploadId) {
|
|
11058
11224
|
return this.requestExecutor.json(
|
|
11059
11225
|
`/design-systems/${dsId}/storybook/${storybookUploadId}`,
|
|
11060
|
-
|
|
11226
|
+
z341.object({ ok: z341.boolean() }),
|
|
11061
11227
|
{
|
|
11062
11228
|
method: "DELETE"
|
|
11063
11229
|
}
|
|
@@ -11115,7 +11281,7 @@ var DesignSystemsEndpoint = class {
|
|
|
11115
11281
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
11116
11282
|
}
|
|
11117
11283
|
delete(dsId) {
|
|
11118
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
11284
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z342.any(), { method: "DELETE" });
|
|
11119
11285
|
}
|
|
11120
11286
|
update(dsId, body) {
|
|
11121
11287
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -11238,7 +11404,7 @@ var ForgeFeatureArtifactsEndpoint = class {
|
|
|
11238
11404
|
};
|
|
11239
11405
|
|
|
11240
11406
|
// src/api/endpoints/forge/feature-iterations.ts
|
|
11241
|
-
import
|
|
11407
|
+
import z343 from "zod";
|
|
11242
11408
|
var ForgeFeatureIterationsEndpoint = class {
|
|
11243
11409
|
constructor(requestExecutor) {
|
|
11244
11410
|
this.requestExecutor = requestExecutor;
|
|
@@ -11255,7 +11421,7 @@ var ForgeFeatureIterationsEndpoint = class {
|
|
|
11255
11421
|
updateArtifacts(workspaceId, projectId, featureId, body) {
|
|
11256
11422
|
return this.requestExecutor.json(
|
|
11257
11423
|
`/workspaces/${workspaceId}/forge/projects/${projectId}/features/${featureId}/iterations/update-artifacts`,
|
|
11258
|
-
|
|
11424
|
+
z343.any(),
|
|
11259
11425
|
{
|
|
11260
11426
|
body,
|
|
11261
11427
|
method: "POST"
|
|
@@ -11490,7 +11656,7 @@ var ForgeProjectMembersEndpoint = class {
|
|
|
11490
11656
|
};
|
|
11491
11657
|
|
|
11492
11658
|
// src/api/endpoints/forge/projects.ts
|
|
11493
|
-
import
|
|
11659
|
+
import z344 from "zod";
|
|
11494
11660
|
var ForgeProjectsEndpoint = class {
|
|
11495
11661
|
constructor(requestExecutor) {
|
|
11496
11662
|
this.requestExecutor = requestExecutor;
|
|
@@ -11535,7 +11701,7 @@ var ForgeProjectsEndpoint = class {
|
|
|
11535
11701
|
);
|
|
11536
11702
|
}
|
|
11537
11703
|
action(workspaceId, projectId, body) {
|
|
11538
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`,
|
|
11704
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`, z344.any(), {
|
|
11539
11705
|
body,
|
|
11540
11706
|
method: "POST"
|
|
11541
11707
|
});
|
|
@@ -11618,7 +11784,7 @@ var ForgeProjectIterationsEndpoint = class {
|
|
|
11618
11784
|
};
|
|
11619
11785
|
|
|
11620
11786
|
// src/api/endpoints/workspaces/chat-threads.ts
|
|
11621
|
-
import { z as
|
|
11787
|
+
import { z as z345 } from "zod";
|
|
11622
11788
|
var WorkspaceChatThreadsEndpoint = class {
|
|
11623
11789
|
constructor(requestExecutor) {
|
|
11624
11790
|
this.requestExecutor = requestExecutor;
|
|
@@ -11650,7 +11816,7 @@ var WorkspaceChatThreadsEndpoint = class {
|
|
|
11650
11816
|
);
|
|
11651
11817
|
}
|
|
11652
11818
|
delete(workspaceId, threadId) {
|
|
11653
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`,
|
|
11819
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z345.any(), {
|
|
11654
11820
|
method: "DELETE"
|
|
11655
11821
|
});
|
|
11656
11822
|
}
|
|
@@ -11682,7 +11848,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
11682
11848
|
);
|
|
11683
11849
|
}
|
|
11684
11850
|
score(workspaceId, threadId, body) {
|
|
11685
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`,
|
|
11851
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z345.any(), {
|
|
11686
11852
|
method: "POST",
|
|
11687
11853
|
body
|
|
11688
11854
|
});
|
|
@@ -11690,7 +11856,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
11690
11856
|
};
|
|
11691
11857
|
|
|
11692
11858
|
// src/api/endpoints/workspaces/integrations.ts
|
|
11693
|
-
import { z as
|
|
11859
|
+
import { z as z346 } from "zod";
|
|
11694
11860
|
var WorkspaceIntegrationsEndpoint = class {
|
|
11695
11861
|
constructor(requestExecutor) {
|
|
11696
11862
|
this.requestExecutor = requestExecutor;
|
|
@@ -11699,7 +11865,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
11699
11865
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
11700
11866
|
}
|
|
11701
11867
|
delete(wsId, iId) {
|
|
11702
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
11868
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z346.unknown(), { method: "DELETE" });
|
|
11703
11869
|
}
|
|
11704
11870
|
};
|
|
11705
11871
|
|
|
@@ -11731,7 +11897,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
11731
11897
|
};
|
|
11732
11898
|
|
|
11733
11899
|
// src/api/endpoints/workspaces/members.ts
|
|
11734
|
-
import { z as
|
|
11900
|
+
import { z as z347 } from "zod";
|
|
11735
11901
|
var WorkspaceMembersEndpoint = class {
|
|
11736
11902
|
constructor(requestExecutor) {
|
|
11737
11903
|
this.requestExecutor = requestExecutor;
|
|
@@ -11748,7 +11914,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
11748
11914
|
});
|
|
11749
11915
|
}
|
|
11750
11916
|
invite(workspaceId, body) {
|
|
11751
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
11917
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z347.any(), { method: "POST", body });
|
|
11752
11918
|
}
|
|
11753
11919
|
delete(workspaceId, userId) {
|
|
11754
11920
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -11777,7 +11943,7 @@ var WorkspaceNpmRegistryEndpoint = class {
|
|
|
11777
11943
|
};
|
|
11778
11944
|
|
|
11779
11945
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
11780
|
-
import { z as
|
|
11946
|
+
import { z as z348 } from "zod";
|
|
11781
11947
|
var WorkspacesEndpoint = class {
|
|
11782
11948
|
constructor(requestExecutor) {
|
|
11783
11949
|
this.requestExecutor = requestExecutor;
|
|
@@ -11809,10 +11975,10 @@ var WorkspacesEndpoint = class {
|
|
|
11809
11975
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
11810
11976
|
}
|
|
11811
11977
|
delete(workspaceId) {
|
|
11812
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
11978
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z348.any(), { method: "DELETE" });
|
|
11813
11979
|
}
|
|
11814
11980
|
subscription(workspaceId) {
|
|
11815
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
11981
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z348.any(), { method: "GET" });
|
|
11816
11982
|
}
|
|
11817
11983
|
getPortalSettings(workspaceId) {
|
|
11818
11984
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
|
|
@@ -11923,9 +12089,9 @@ ${bodyText}`,
|
|
|
11923
12089
|
|
|
11924
12090
|
// src/api/transport/request-executor.ts
|
|
11925
12091
|
import fetch from "node-fetch";
|
|
11926
|
-
import { z as
|
|
11927
|
-
var ResponseWrapper =
|
|
11928
|
-
result:
|
|
12092
|
+
import { z as z349 } from "zod";
|
|
12093
|
+
var ResponseWrapper = z349.object({
|
|
12094
|
+
result: z349.record(z349.any())
|
|
11929
12095
|
});
|
|
11930
12096
|
var RequestExecutor = class {
|
|
11931
12097
|
constructor(testServerConfig) {
|
|
@@ -12002,25 +12168,25 @@ var SupernovaApiClient = class {
|
|
|
12002
12168
|
};
|
|
12003
12169
|
|
|
12004
12170
|
// src/events/design-system.ts
|
|
12005
|
-
import { z as
|
|
12006
|
-
var DTOEventFigmaNodesRendered =
|
|
12007
|
-
type:
|
|
12008
|
-
designSystemId:
|
|
12009
|
-
versionId:
|
|
12010
|
-
figmaNodePersistentIds:
|
|
12011
|
-
});
|
|
12012
|
-
var DTOEventDataSourcesImported =
|
|
12013
|
-
type:
|
|
12014
|
-
designSystemId:
|
|
12015
|
-
versionId:
|
|
12016
|
-
importJobId:
|
|
12171
|
+
import { z as z350 } from "zod";
|
|
12172
|
+
var DTOEventFigmaNodesRendered = z350.object({
|
|
12173
|
+
type: z350.literal("DesignSystem.FigmaNodesRendered"),
|
|
12174
|
+
designSystemId: z350.string(),
|
|
12175
|
+
versionId: z350.string(),
|
|
12176
|
+
figmaNodePersistentIds: z350.string().array()
|
|
12177
|
+
});
|
|
12178
|
+
var DTOEventDataSourcesImported = z350.object({
|
|
12179
|
+
type: z350.literal("DesignSystem.ImportJobFinished"),
|
|
12180
|
+
designSystemId: z350.string(),
|
|
12181
|
+
versionId: z350.string(),
|
|
12182
|
+
importJobId: z350.string(),
|
|
12017
12183
|
dataSourceType: DataSourceRemoteType,
|
|
12018
|
-
dataSourceIds:
|
|
12184
|
+
dataSourceIds: z350.string().array()
|
|
12019
12185
|
});
|
|
12020
12186
|
|
|
12021
12187
|
// src/events/event.ts
|
|
12022
|
-
import { z as
|
|
12023
|
-
var DTOEvent =
|
|
12188
|
+
import { z as z351 } from "zod";
|
|
12189
|
+
var DTOEvent = z351.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
12024
12190
|
|
|
12025
12191
|
// src/sync/docs-local-action-executor.ts
|
|
12026
12192
|
function applyActionsLocally(input) {
|
|
@@ -12316,7 +12482,7 @@ var LocalDocsElementActionExecutor = class {
|
|
|
12316
12482
|
import PQueue from "p-queue";
|
|
12317
12483
|
|
|
12318
12484
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
12319
|
-
import { z as
|
|
12485
|
+
import { z as z352 } from "zod";
|
|
12320
12486
|
|
|
12321
12487
|
// src/yjs/version-room/base.ts
|
|
12322
12488
|
var VersionRoomBaseYDoc = class {
|
|
@@ -12866,24 +13032,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
12866
13032
|
};
|
|
12867
13033
|
|
|
12868
13034
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
12869
|
-
var DocumentationHierarchySettings =
|
|
12870
|
-
routingVersion:
|
|
12871
|
-
isDraftFeatureAdopted:
|
|
12872
|
-
isApprovalFeatureEnabled:
|
|
12873
|
-
approvalRequiredForPublishing:
|
|
13035
|
+
var DocumentationHierarchySettings = z352.object({
|
|
13036
|
+
routingVersion: z352.string(),
|
|
13037
|
+
isDraftFeatureAdopted: z352.boolean(),
|
|
13038
|
+
isApprovalFeatureEnabled: z352.boolean(),
|
|
13039
|
+
approvalRequiredForPublishing: z352.boolean()
|
|
12874
13040
|
});
|
|
12875
13041
|
function yjsToDocumentationHierarchy(doc) {
|
|
12876
13042
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
12877
13043
|
}
|
|
12878
13044
|
|
|
12879
13045
|
// src/yjs/design-system-content/item-configuration.ts
|
|
12880
|
-
import { z as
|
|
12881
|
-
var DTODocumentationPageRoomHeaderData =
|
|
12882
|
-
title:
|
|
13046
|
+
import { z as z353 } from "zod";
|
|
13047
|
+
var DTODocumentationPageRoomHeaderData = z353.object({
|
|
13048
|
+
title: z353.string(),
|
|
12883
13049
|
configuration: DTODocumentationItemConfigurationV2
|
|
12884
13050
|
});
|
|
12885
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
12886
|
-
title:
|
|
13051
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z353.object({
|
|
13052
|
+
title: z353.string().optional(),
|
|
12887
13053
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
12888
13054
|
});
|
|
12889
13055
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -12918,9 +13084,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
12918
13084
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
12919
13085
|
|
|
12920
13086
|
// src/yjs/docs-editor/model/page.ts
|
|
12921
|
-
import { z as
|
|
12922
|
-
var DocumentationPageEditorModel =
|
|
12923
|
-
blocks:
|
|
13087
|
+
import { z as z354 } from "zod";
|
|
13088
|
+
var DocumentationPageEditorModel = z354.object({
|
|
13089
|
+
blocks: z354.array(DocumentationPageContentItem)
|
|
12924
13090
|
});
|
|
12925
13091
|
|
|
12926
13092
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -16597,7 +16763,7 @@ var blocks = [
|
|
|
16597
16763
|
|
|
16598
16764
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
16599
16765
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
16600
|
-
import { z as
|
|
16766
|
+
import { z as z355 } from "zod";
|
|
16601
16767
|
function yDocToPage(yDoc, definitions) {
|
|
16602
16768
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
16603
16769
|
}
|
|
@@ -16673,7 +16839,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
16673
16839
|
if (!id) return null;
|
|
16674
16840
|
return {
|
|
16675
16841
|
id,
|
|
16676
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
16842
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z355.string()) ?? "",
|
|
16677
16843
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
16678
16844
|
};
|
|
16679
16845
|
}
|
|
@@ -16707,7 +16873,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
16707
16873
|
});
|
|
16708
16874
|
}
|
|
16709
16875
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
16710
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
16876
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z355.string());
|
|
16711
16877
|
if (!definitionId) {
|
|
16712
16878
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
16713
16879
|
return [];
|
|
@@ -16748,7 +16914,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
16748
16914
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
16749
16915
|
if (!id) return null;
|
|
16750
16916
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
16751
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
16917
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z355.string().optional()));
|
|
16752
16918
|
return {
|
|
16753
16919
|
id,
|
|
16754
16920
|
type: "Block",
|
|
@@ -16871,9 +17037,9 @@ function parseRichTextAttribute(mark) {
|
|
|
16871
17037
|
return null;
|
|
16872
17038
|
}
|
|
16873
17039
|
function parseProsemirrorLink(mark) {
|
|
16874
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
17040
|
+
const href = getProsemirrorAttribute(mark, "href", z355.string().optional());
|
|
16875
17041
|
if (!href) return null;
|
|
16876
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
17042
|
+
const target = getProsemirrorAttribute(mark, "target", z355.string().optional());
|
|
16877
17043
|
const openInNewTab = target === "_blank";
|
|
16878
17044
|
if (href.startsWith("@")) {
|
|
16879
17045
|
return {
|
|
@@ -16892,9 +17058,9 @@ function parseProsemirrorLink(mark) {
|
|
|
16892
17058
|
}
|
|
16893
17059
|
}
|
|
16894
17060
|
function parseProsemirrorCommentHighlight(mark) {
|
|
16895
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
17061
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z355.string().optional());
|
|
16896
17062
|
if (!highlightId) return null;
|
|
16897
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
17063
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z355.boolean().optional()) ?? false;
|
|
16898
17064
|
return {
|
|
16899
17065
|
type: "Comment",
|
|
16900
17066
|
commentHighlightId: highlightId,
|
|
@@ -16905,7 +17071,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
16905
17071
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
16906
17072
|
if (!id) return null;
|
|
16907
17073
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
16908
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
17074
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z355.boolean().optional()) !== false;
|
|
16909
17075
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
16910
17076
|
if (!tableChild) {
|
|
16911
17077
|
return emptyTable(id, variantId, 0);
|
|
@@ -16951,9 +17117,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
16951
17117
|
function parseAsTableCell(prosemirrorNode) {
|
|
16952
17118
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
16953
17119
|
if (!id) return null;
|
|
16954
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
17120
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z355.string().optional());
|
|
16955
17121
|
let columnWidth;
|
|
16956
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
17122
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z355.array(z355.number()).nullish());
|
|
16957
17123
|
if (columnWidthArray) {
|
|
16958
17124
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
16959
17125
|
}
|
|
@@ -16989,7 +17155,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
16989
17155
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
16990
17156
|
};
|
|
16991
17157
|
case "image":
|
|
16992
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
17158
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z355.string());
|
|
16993
17159
|
if (!items) return null;
|
|
16994
17160
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
16995
17161
|
if (!parsedItems.success) return null;
|
|
@@ -17103,7 +17269,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
17103
17269
|
);
|
|
17104
17270
|
}
|
|
17105
17271
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
17106
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
17272
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z355.string());
|
|
17107
17273
|
if (!itemsString) return null;
|
|
17108
17274
|
const itemsJson = JSON.parse(itemsString);
|
|
17109
17275
|
if (!Array.isArray(itemsJson)) {
|
|
@@ -17114,18 +17280,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
17114
17280
|
}
|
|
17115
17281
|
function parseAppearance(prosemirrorNode) {
|
|
17116
17282
|
let appearance = {};
|
|
17117
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
17283
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z355.string().optional());
|
|
17118
17284
|
if (rawAppearanceString) {
|
|
17119
17285
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
17120
17286
|
if (parsedAppearance.success) {
|
|
17121
17287
|
appearance = parsedAppearance.data;
|
|
17122
17288
|
}
|
|
17123
17289
|
}
|
|
17124
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
17290
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z355.number().optional());
|
|
17125
17291
|
if (columns) {
|
|
17126
17292
|
appearance.numberOfColumns = columns;
|
|
17127
17293
|
}
|
|
17128
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
17294
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z355.string().optional());
|
|
17129
17295
|
if (backgroundColor) {
|
|
17130
17296
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
17131
17297
|
if (parsedColor.success) {
|
|
@@ -17226,12 +17392,12 @@ function valueSchemaForPropertyType(type) {
|
|
|
17226
17392
|
}
|
|
17227
17393
|
}
|
|
17228
17394
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
17229
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
17395
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z355.string());
|
|
17230
17396
|
if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
17231
17397
|
return id;
|
|
17232
17398
|
}
|
|
17233
17399
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
17234
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
17400
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z355.string()));
|
|
17235
17401
|
}
|
|
17236
17402
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
17237
17403
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -18658,10 +18824,14 @@ export {
|
|
|
18658
18824
|
DTOForgeChatThreadListResponse,
|
|
18659
18825
|
DTOForgeChatThreadUpdateInput,
|
|
18660
18826
|
DTOForgeChatThreadUpdateResponse,
|
|
18827
|
+
DTOForgeComponentSet,
|
|
18828
|
+
DTOForgeComponentSetType,
|
|
18661
18829
|
DTOForgeFeatureRoom,
|
|
18662
18830
|
DTOForgeFeatureRoomResponse,
|
|
18663
18831
|
DTOForgeFigmaArtifact,
|
|
18664
18832
|
DTOForgeFileArtifact,
|
|
18833
|
+
DTOForgeIconSet,
|
|
18834
|
+
DTOForgeIconSetType,
|
|
18665
18835
|
DTOForgeIterationMessage,
|
|
18666
18836
|
DTOForgeIterationMessagesListResponse,
|
|
18667
18837
|
DTOForgeParticipant,
|
|
@@ -18696,10 +18866,16 @@ export {
|
|
|
18696
18866
|
DTOForgeProjectArtifactsListResponse,
|
|
18697
18867
|
DTOForgeProjectContext,
|
|
18698
18868
|
DTOForgeProjectContextCreateResponse,
|
|
18869
|
+
DTOForgeProjectContextCreateV2,
|
|
18699
18870
|
DTOForgeProjectContextGetResponse,
|
|
18871
|
+
DTOForgeProjectContextListQueryV2,
|
|
18700
18872
|
DTOForgeProjectContextListResponse,
|
|
18873
|
+
DTOForgeProjectContextListResponseV2,
|
|
18701
18874
|
DTOForgeProjectContextRemoveResponse,
|
|
18875
|
+
DTOForgeProjectContextResponseV2,
|
|
18702
18876
|
DTOForgeProjectContextUpdateResponse,
|
|
18877
|
+
DTOForgeProjectContextUpdateV2,
|
|
18878
|
+
DTOForgeProjectContextV2,
|
|
18703
18879
|
DTOForgeProjectCreate,
|
|
18704
18880
|
DTOForgeProjectCreateResponse,
|
|
18705
18881
|
DTOForgeProjectFeature,
|
|
@@ -18838,6 +19014,29 @@ export {
|
|
|
18838
19014
|
DTOThemeOverride,
|
|
18839
19015
|
DTOThemeOverrideCreatePayload,
|
|
18840
19016
|
DTOThemeResponse,
|
|
19017
|
+
DTOThread,
|
|
19018
|
+
DTOThreadAgentResponseTracker,
|
|
19019
|
+
DTOThreadAgentType,
|
|
19020
|
+
DTOThreadEvent,
|
|
19021
|
+
DTOThreadEventMessagesSent,
|
|
19022
|
+
DTOThreadEventMessagesUpdated,
|
|
19023
|
+
DTOThreadEventReactionsDeleted,
|
|
19024
|
+
DTOThreadEventReactionsSent,
|
|
19025
|
+
DTOThreadMessage,
|
|
19026
|
+
DTOThreadMessageAgentSender,
|
|
19027
|
+
DTOThreadMessageAttachments,
|
|
19028
|
+
DTOThreadMessageCreateInput,
|
|
19029
|
+
DTOThreadMessageListResponse,
|
|
19030
|
+
DTOThreadMessageResponse,
|
|
19031
|
+
DTOThreadMessageSender,
|
|
19032
|
+
DTOThreadMessageSystemSender,
|
|
19033
|
+
DTOThreadMessageUpdateInput,
|
|
19034
|
+
DTOThreadMessageUserSender,
|
|
19035
|
+
DTOThreadReaction,
|
|
19036
|
+
DTOThreadReactionCreateInput,
|
|
19037
|
+
DTOThreadReactionDeleteInput,
|
|
19038
|
+
DTOThreadReactionResponse,
|
|
19039
|
+
DTOThreadSubjectType,
|
|
18841
19040
|
DTOTokenCollection,
|
|
18842
19041
|
DTOTokenCollectionsListReponse,
|
|
18843
19042
|
DTOTransferOwnershipPayload,
|