@supernova-studio/client 1.41.1 → 1.41.2
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 +295 -0
- package/dist/index.d.ts +295 -0
- package/dist/index.js +144 -143
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +401 -400
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -81313,16 +81313,101 @@ declare const DTOForgeProjectActionArtifactCreate: z__default.ZodObject<{
|
|
|
81313
81313
|
title: z__default.ZodString;
|
|
81314
81314
|
sectionId: z__default.ZodOptional<z__default.ZodString>;
|
|
81315
81315
|
afterArtifactId: z__default.ZodNullable<z__default.ZodOptional<z__default.ZodString>>;
|
|
81316
|
+
initialMessage: z__default.ZodOptional<z__default.ZodObject<Pick<{
|
|
81317
|
+
id: z__default.ZodString;
|
|
81318
|
+
threadId: z__default.ZodString;
|
|
81319
|
+
sender: z__default.ZodDiscriminatedUnion<"type", [z__default.ZodObject<{
|
|
81320
|
+
type: z__default.ZodLiteral<"User">;
|
|
81321
|
+
userId: z__default.ZodString;
|
|
81322
|
+
}, "strip", z__default.ZodTypeAny, {
|
|
81323
|
+
type: "User";
|
|
81324
|
+
userId: string;
|
|
81325
|
+
}, {
|
|
81326
|
+
type: "User";
|
|
81327
|
+
userId: string;
|
|
81328
|
+
}>, z__default.ZodObject<{
|
|
81329
|
+
type: z__default.ZodLiteral<"Agent">;
|
|
81330
|
+
agentType: z__default.ZodEnum<["Ask", "Document", "Prototype", "ReleaseNotes"]>;
|
|
81331
|
+
}, "strip", z__default.ZodTypeAny, {
|
|
81332
|
+
type: "Agent";
|
|
81333
|
+
agentType: "Ask" | "Document" | "Prototype" | "ReleaseNotes";
|
|
81334
|
+
}, {
|
|
81335
|
+
type: "Agent";
|
|
81336
|
+
agentType: "Ask" | "Document" | "Prototype" | "ReleaseNotes";
|
|
81337
|
+
}>, z__default.ZodObject<{
|
|
81338
|
+
type: z__default.ZodLiteral<"System">;
|
|
81339
|
+
onBehalfOfUserId: z__default.ZodString;
|
|
81340
|
+
}, "strip", z__default.ZodTypeAny, {
|
|
81341
|
+
type: "System";
|
|
81342
|
+
onBehalfOfUserId: string;
|
|
81343
|
+
}, {
|
|
81344
|
+
type: "System";
|
|
81345
|
+
onBehalfOfUserId: string;
|
|
81346
|
+
}>]>;
|
|
81347
|
+
body: z__default.ZodString;
|
|
81348
|
+
isPrompt: z__default.ZodOptional<z__default.ZodBoolean>;
|
|
81349
|
+
startsNewThread: z__default.ZodOptional<z__default.ZodBoolean>;
|
|
81350
|
+
parentMessageId: z__default.ZodOptional<z__default.ZodString>;
|
|
81351
|
+
agentResponseTrackerId: z__default.ZodNullable<z__default.ZodOptional<z__default.ZodString>>;
|
|
81352
|
+
attachments: z__default.ZodOptional<z__default.ZodObject<{
|
|
81353
|
+
iterationId: z__default.ZodOptional<z__default.ZodString>;
|
|
81354
|
+
}, "strip", z__default.ZodTypeAny, {
|
|
81355
|
+
iterationId?: string | undefined;
|
|
81356
|
+
}, {
|
|
81357
|
+
iterationId?: string | undefined;
|
|
81358
|
+
}>>;
|
|
81359
|
+
replyToMessageId: z__default.ZodOptional<z__default.ZodString>;
|
|
81360
|
+
createdAt: z__default.ZodString;
|
|
81361
|
+
updatedAt: z__default.ZodOptional<z__default.ZodString>;
|
|
81362
|
+
}, "id" | "body" | "isPrompt" | "startsNewThread" | "parentMessageId" | "attachments">, "strip", z__default.ZodTypeAny, {
|
|
81363
|
+
id: string;
|
|
81364
|
+
body: string;
|
|
81365
|
+
isPrompt?: boolean | undefined;
|
|
81366
|
+
startsNewThread?: boolean | undefined;
|
|
81367
|
+
parentMessageId?: string | undefined;
|
|
81368
|
+
attachments?: {
|
|
81369
|
+
iterationId?: string | undefined;
|
|
81370
|
+
} | undefined;
|
|
81371
|
+
}, {
|
|
81372
|
+
id: string;
|
|
81373
|
+
body: string;
|
|
81374
|
+
isPrompt?: boolean | undefined;
|
|
81375
|
+
startsNewThread?: boolean | undefined;
|
|
81376
|
+
parentMessageId?: string | undefined;
|
|
81377
|
+
attachments?: {
|
|
81378
|
+
iterationId?: string | undefined;
|
|
81379
|
+
} | undefined;
|
|
81380
|
+
}>>;
|
|
81316
81381
|
}, "strip", z__default.ZodTypeAny, {
|
|
81317
81382
|
id: string;
|
|
81318
81383
|
title: string;
|
|
81319
81384
|
sectionId?: string | undefined;
|
|
81320
81385
|
afterArtifactId?: string | null | undefined;
|
|
81386
|
+
initialMessage?: {
|
|
81387
|
+
id: string;
|
|
81388
|
+
body: string;
|
|
81389
|
+
isPrompt?: boolean | undefined;
|
|
81390
|
+
startsNewThread?: boolean | undefined;
|
|
81391
|
+
parentMessageId?: string | undefined;
|
|
81392
|
+
attachments?: {
|
|
81393
|
+
iterationId?: string | undefined;
|
|
81394
|
+
} | undefined;
|
|
81395
|
+
} | undefined;
|
|
81321
81396
|
}, {
|
|
81322
81397
|
id: string;
|
|
81323
81398
|
title: string;
|
|
81324
81399
|
sectionId?: string | undefined;
|
|
81325
81400
|
afterArtifactId?: string | null | undefined;
|
|
81401
|
+
initialMessage?: {
|
|
81402
|
+
id: string;
|
|
81403
|
+
body: string;
|
|
81404
|
+
isPrompt?: boolean | undefined;
|
|
81405
|
+
startsNewThread?: boolean | undefined;
|
|
81406
|
+
parentMessageId?: string | undefined;
|
|
81407
|
+
attachments?: {
|
|
81408
|
+
iterationId?: string | undefined;
|
|
81409
|
+
} | undefined;
|
|
81410
|
+
} | undefined;
|
|
81326
81411
|
}>;
|
|
81327
81412
|
}, "strip", z__default.ZodTypeAny, {
|
|
81328
81413
|
type: "ArtifactCreate";
|
|
@@ -81331,6 +81416,16 @@ declare const DTOForgeProjectActionArtifactCreate: z__default.ZodObject<{
|
|
|
81331
81416
|
title: string;
|
|
81332
81417
|
sectionId?: string | undefined;
|
|
81333
81418
|
afterArtifactId?: string | null | undefined;
|
|
81419
|
+
initialMessage?: {
|
|
81420
|
+
id: string;
|
|
81421
|
+
body: string;
|
|
81422
|
+
isPrompt?: boolean | undefined;
|
|
81423
|
+
startsNewThread?: boolean | undefined;
|
|
81424
|
+
parentMessageId?: string | undefined;
|
|
81425
|
+
attachments?: {
|
|
81426
|
+
iterationId?: string | undefined;
|
|
81427
|
+
} | undefined;
|
|
81428
|
+
} | undefined;
|
|
81334
81429
|
};
|
|
81335
81430
|
}, {
|
|
81336
81431
|
type: "ArtifactCreate";
|
|
@@ -81339,6 +81434,16 @@ declare const DTOForgeProjectActionArtifactCreate: z__default.ZodObject<{
|
|
|
81339
81434
|
title: string;
|
|
81340
81435
|
sectionId?: string | undefined;
|
|
81341
81436
|
afterArtifactId?: string | null | undefined;
|
|
81437
|
+
initialMessage?: {
|
|
81438
|
+
id: string;
|
|
81439
|
+
body: string;
|
|
81440
|
+
isPrompt?: boolean | undefined;
|
|
81441
|
+
startsNewThread?: boolean | undefined;
|
|
81442
|
+
parentMessageId?: string | undefined;
|
|
81443
|
+
attachments?: {
|
|
81444
|
+
iterationId?: string | undefined;
|
|
81445
|
+
} | undefined;
|
|
81446
|
+
} | undefined;
|
|
81342
81447
|
};
|
|
81343
81448
|
}>;
|
|
81344
81449
|
type DTOForgeProjectActionArtifactCreate = z__default.infer<typeof DTOForgeProjectActionArtifactCreate>;
|
|
@@ -81792,16 +81897,101 @@ declare const DTOForgeProjectAction: z__default.ZodIntersection<z__default.ZodDi
|
|
|
81792
81897
|
title: z__default.ZodString;
|
|
81793
81898
|
sectionId: z__default.ZodOptional<z__default.ZodString>;
|
|
81794
81899
|
afterArtifactId: z__default.ZodNullable<z__default.ZodOptional<z__default.ZodString>>;
|
|
81900
|
+
initialMessage: z__default.ZodOptional<z__default.ZodObject<Pick<{
|
|
81901
|
+
id: z__default.ZodString;
|
|
81902
|
+
threadId: z__default.ZodString;
|
|
81903
|
+
sender: z__default.ZodDiscriminatedUnion<"type", [z__default.ZodObject<{
|
|
81904
|
+
type: z__default.ZodLiteral<"User">;
|
|
81905
|
+
userId: z__default.ZodString;
|
|
81906
|
+
}, "strip", z__default.ZodTypeAny, {
|
|
81907
|
+
type: "User";
|
|
81908
|
+
userId: string;
|
|
81909
|
+
}, {
|
|
81910
|
+
type: "User";
|
|
81911
|
+
userId: string;
|
|
81912
|
+
}>, z__default.ZodObject<{
|
|
81913
|
+
type: z__default.ZodLiteral<"Agent">;
|
|
81914
|
+
agentType: z__default.ZodEnum<["Ask", "Document", "Prototype", "ReleaseNotes"]>;
|
|
81915
|
+
}, "strip", z__default.ZodTypeAny, {
|
|
81916
|
+
type: "Agent";
|
|
81917
|
+
agentType: "Ask" | "Document" | "Prototype" | "ReleaseNotes";
|
|
81918
|
+
}, {
|
|
81919
|
+
type: "Agent";
|
|
81920
|
+
agentType: "Ask" | "Document" | "Prototype" | "ReleaseNotes";
|
|
81921
|
+
}>, z__default.ZodObject<{
|
|
81922
|
+
type: z__default.ZodLiteral<"System">;
|
|
81923
|
+
onBehalfOfUserId: z__default.ZodString;
|
|
81924
|
+
}, "strip", z__default.ZodTypeAny, {
|
|
81925
|
+
type: "System";
|
|
81926
|
+
onBehalfOfUserId: string;
|
|
81927
|
+
}, {
|
|
81928
|
+
type: "System";
|
|
81929
|
+
onBehalfOfUserId: string;
|
|
81930
|
+
}>]>;
|
|
81931
|
+
body: z__default.ZodString;
|
|
81932
|
+
isPrompt: z__default.ZodOptional<z__default.ZodBoolean>;
|
|
81933
|
+
startsNewThread: z__default.ZodOptional<z__default.ZodBoolean>;
|
|
81934
|
+
parentMessageId: z__default.ZodOptional<z__default.ZodString>;
|
|
81935
|
+
agentResponseTrackerId: z__default.ZodNullable<z__default.ZodOptional<z__default.ZodString>>;
|
|
81936
|
+
attachments: z__default.ZodOptional<z__default.ZodObject<{
|
|
81937
|
+
iterationId: z__default.ZodOptional<z__default.ZodString>;
|
|
81938
|
+
}, "strip", z__default.ZodTypeAny, {
|
|
81939
|
+
iterationId?: string | undefined;
|
|
81940
|
+
}, {
|
|
81941
|
+
iterationId?: string | undefined;
|
|
81942
|
+
}>>;
|
|
81943
|
+
replyToMessageId: z__default.ZodOptional<z__default.ZodString>;
|
|
81944
|
+
createdAt: z__default.ZodString;
|
|
81945
|
+
updatedAt: z__default.ZodOptional<z__default.ZodString>;
|
|
81946
|
+
}, "id" | "body" | "isPrompt" | "startsNewThread" | "parentMessageId" | "attachments">, "strip", z__default.ZodTypeAny, {
|
|
81947
|
+
id: string;
|
|
81948
|
+
body: string;
|
|
81949
|
+
isPrompt?: boolean | undefined;
|
|
81950
|
+
startsNewThread?: boolean | undefined;
|
|
81951
|
+
parentMessageId?: string | undefined;
|
|
81952
|
+
attachments?: {
|
|
81953
|
+
iterationId?: string | undefined;
|
|
81954
|
+
} | undefined;
|
|
81955
|
+
}, {
|
|
81956
|
+
id: string;
|
|
81957
|
+
body: string;
|
|
81958
|
+
isPrompt?: boolean | undefined;
|
|
81959
|
+
startsNewThread?: boolean | undefined;
|
|
81960
|
+
parentMessageId?: string | undefined;
|
|
81961
|
+
attachments?: {
|
|
81962
|
+
iterationId?: string | undefined;
|
|
81963
|
+
} | undefined;
|
|
81964
|
+
}>>;
|
|
81795
81965
|
}, "strip", z__default.ZodTypeAny, {
|
|
81796
81966
|
id: string;
|
|
81797
81967
|
title: string;
|
|
81798
81968
|
sectionId?: string | undefined;
|
|
81799
81969
|
afterArtifactId?: string | null | undefined;
|
|
81970
|
+
initialMessage?: {
|
|
81971
|
+
id: string;
|
|
81972
|
+
body: string;
|
|
81973
|
+
isPrompt?: boolean | undefined;
|
|
81974
|
+
startsNewThread?: boolean | undefined;
|
|
81975
|
+
parentMessageId?: string | undefined;
|
|
81976
|
+
attachments?: {
|
|
81977
|
+
iterationId?: string | undefined;
|
|
81978
|
+
} | undefined;
|
|
81979
|
+
} | undefined;
|
|
81800
81980
|
}, {
|
|
81801
81981
|
id: string;
|
|
81802
81982
|
title: string;
|
|
81803
81983
|
sectionId?: string | undefined;
|
|
81804
81984
|
afterArtifactId?: string | null | undefined;
|
|
81985
|
+
initialMessage?: {
|
|
81986
|
+
id: string;
|
|
81987
|
+
body: string;
|
|
81988
|
+
isPrompt?: boolean | undefined;
|
|
81989
|
+
startsNewThread?: boolean | undefined;
|
|
81990
|
+
parentMessageId?: string | undefined;
|
|
81991
|
+
attachments?: {
|
|
81992
|
+
iterationId?: string | undefined;
|
|
81993
|
+
} | undefined;
|
|
81994
|
+
} | undefined;
|
|
81805
81995
|
}>;
|
|
81806
81996
|
}, "strip", z__default.ZodTypeAny, {
|
|
81807
81997
|
type: "ArtifactCreate";
|
|
@@ -81810,6 +82000,16 @@ declare const DTOForgeProjectAction: z__default.ZodIntersection<z__default.ZodDi
|
|
|
81810
82000
|
title: string;
|
|
81811
82001
|
sectionId?: string | undefined;
|
|
81812
82002
|
afterArtifactId?: string | null | undefined;
|
|
82003
|
+
initialMessage?: {
|
|
82004
|
+
id: string;
|
|
82005
|
+
body: string;
|
|
82006
|
+
isPrompt?: boolean | undefined;
|
|
82007
|
+
startsNewThread?: boolean | undefined;
|
|
82008
|
+
parentMessageId?: string | undefined;
|
|
82009
|
+
attachments?: {
|
|
82010
|
+
iterationId?: string | undefined;
|
|
82011
|
+
} | undefined;
|
|
82012
|
+
} | undefined;
|
|
81813
82013
|
};
|
|
81814
82014
|
}, {
|
|
81815
82015
|
type: "ArtifactCreate";
|
|
@@ -81818,6 +82018,16 @@ declare const DTOForgeProjectAction: z__default.ZodIntersection<z__default.ZodDi
|
|
|
81818
82018
|
title: string;
|
|
81819
82019
|
sectionId?: string | undefined;
|
|
81820
82020
|
afterArtifactId?: string | null | undefined;
|
|
82021
|
+
initialMessage?: {
|
|
82022
|
+
id: string;
|
|
82023
|
+
body: string;
|
|
82024
|
+
isPrompt?: boolean | undefined;
|
|
82025
|
+
startsNewThread?: boolean | undefined;
|
|
82026
|
+
parentMessageId?: string | undefined;
|
|
82027
|
+
attachments?: {
|
|
82028
|
+
iterationId?: string | undefined;
|
|
82029
|
+
} | undefined;
|
|
82030
|
+
} | undefined;
|
|
81821
82031
|
};
|
|
81822
82032
|
}>, z__default.ZodObject<{
|
|
81823
82033
|
type: z__default.ZodLiteral<"ArtifactUpdate">;
|
|
@@ -82115,16 +82325,101 @@ declare const DTOForgeProjectArtifactCreateInput: z$1.ZodObject<{
|
|
|
82115
82325
|
title: z$1.ZodString;
|
|
82116
82326
|
sectionId: z$1.ZodOptional<z$1.ZodString>;
|
|
82117
82327
|
afterArtifactId: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodString>>;
|
|
82328
|
+
initialMessage: z$1.ZodOptional<z$1.ZodObject<Pick<{
|
|
82329
|
+
id: z$1.ZodString;
|
|
82330
|
+
threadId: z$1.ZodString;
|
|
82331
|
+
sender: z$1.ZodDiscriminatedUnion<"type", [z$1.ZodObject<{
|
|
82332
|
+
type: z$1.ZodLiteral<"User">;
|
|
82333
|
+
userId: z$1.ZodString;
|
|
82334
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
82335
|
+
type: "User";
|
|
82336
|
+
userId: string;
|
|
82337
|
+
}, {
|
|
82338
|
+
type: "User";
|
|
82339
|
+
userId: string;
|
|
82340
|
+
}>, z$1.ZodObject<{
|
|
82341
|
+
type: z$1.ZodLiteral<"Agent">;
|
|
82342
|
+
agentType: z$1.ZodEnum<["Ask", "Document", "Prototype", "ReleaseNotes"]>;
|
|
82343
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
82344
|
+
type: "Agent";
|
|
82345
|
+
agentType: "Ask" | "Document" | "Prototype" | "ReleaseNotes";
|
|
82346
|
+
}, {
|
|
82347
|
+
type: "Agent";
|
|
82348
|
+
agentType: "Ask" | "Document" | "Prototype" | "ReleaseNotes";
|
|
82349
|
+
}>, z$1.ZodObject<{
|
|
82350
|
+
type: z$1.ZodLiteral<"System">;
|
|
82351
|
+
onBehalfOfUserId: z$1.ZodString;
|
|
82352
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
82353
|
+
type: "System";
|
|
82354
|
+
onBehalfOfUserId: string;
|
|
82355
|
+
}, {
|
|
82356
|
+
type: "System";
|
|
82357
|
+
onBehalfOfUserId: string;
|
|
82358
|
+
}>]>;
|
|
82359
|
+
body: z$1.ZodString;
|
|
82360
|
+
isPrompt: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
82361
|
+
startsNewThread: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
82362
|
+
parentMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
82363
|
+
agentResponseTrackerId: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodString>>;
|
|
82364
|
+
attachments: z$1.ZodOptional<z$1.ZodObject<{
|
|
82365
|
+
iterationId: z$1.ZodOptional<z$1.ZodString>;
|
|
82366
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
82367
|
+
iterationId?: string | undefined;
|
|
82368
|
+
}, {
|
|
82369
|
+
iterationId?: string | undefined;
|
|
82370
|
+
}>>;
|
|
82371
|
+
replyToMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
82372
|
+
createdAt: z$1.ZodString;
|
|
82373
|
+
updatedAt: z$1.ZodOptional<z$1.ZodString>;
|
|
82374
|
+
}, "id" | "body" | "isPrompt" | "startsNewThread" | "parentMessageId" | "attachments">, "strip", z$1.ZodTypeAny, {
|
|
82375
|
+
id: string;
|
|
82376
|
+
body: string;
|
|
82377
|
+
isPrompt?: boolean | undefined;
|
|
82378
|
+
startsNewThread?: boolean | undefined;
|
|
82379
|
+
parentMessageId?: string | undefined;
|
|
82380
|
+
attachments?: {
|
|
82381
|
+
iterationId?: string | undefined;
|
|
82382
|
+
} | undefined;
|
|
82383
|
+
}, {
|
|
82384
|
+
id: string;
|
|
82385
|
+
body: string;
|
|
82386
|
+
isPrompt?: boolean | undefined;
|
|
82387
|
+
startsNewThread?: boolean | undefined;
|
|
82388
|
+
parentMessageId?: string | undefined;
|
|
82389
|
+
attachments?: {
|
|
82390
|
+
iterationId?: string | undefined;
|
|
82391
|
+
} | undefined;
|
|
82392
|
+
}>>;
|
|
82118
82393
|
}, "strip", z$1.ZodTypeAny, {
|
|
82119
82394
|
id: string;
|
|
82120
82395
|
title: string;
|
|
82121
82396
|
sectionId?: string | undefined;
|
|
82122
82397
|
afterArtifactId?: string | null | undefined;
|
|
82398
|
+
initialMessage?: {
|
|
82399
|
+
id: string;
|
|
82400
|
+
body: string;
|
|
82401
|
+
isPrompt?: boolean | undefined;
|
|
82402
|
+
startsNewThread?: boolean | undefined;
|
|
82403
|
+
parentMessageId?: string | undefined;
|
|
82404
|
+
attachments?: {
|
|
82405
|
+
iterationId?: string | undefined;
|
|
82406
|
+
} | undefined;
|
|
82407
|
+
} | undefined;
|
|
82123
82408
|
}, {
|
|
82124
82409
|
id: string;
|
|
82125
82410
|
title: string;
|
|
82126
82411
|
sectionId?: string | undefined;
|
|
82127
82412
|
afterArtifactId?: string | null | undefined;
|
|
82413
|
+
initialMessage?: {
|
|
82414
|
+
id: string;
|
|
82415
|
+
body: string;
|
|
82416
|
+
isPrompt?: boolean | undefined;
|
|
82417
|
+
startsNewThread?: boolean | undefined;
|
|
82418
|
+
parentMessageId?: string | undefined;
|
|
82419
|
+
attachments?: {
|
|
82420
|
+
iterationId?: string | undefined;
|
|
82421
|
+
} | undefined;
|
|
82422
|
+
} | undefined;
|
|
82128
82423
|
}>;
|
|
82129
82424
|
type DTOForgeProjectArtifactCreateInput = z$1.infer<typeof DTOForgeProjectArtifactCreateInput>;
|
|
82130
82425
|
declare const DTOForgeProjectArtifactDeleteInput: z$1.ZodObject<{
|
package/dist/index.js
CHANGED
|
@@ -9603,6 +9603,148 @@ var DTODeleteForgeIterationMessageResponse = _zod.z.object({
|
|
|
9603
9603
|
// src/api/dto/forge/project-artifact.ts
|
|
9604
9604
|
|
|
9605
9605
|
|
|
9606
|
+
// src/api/dto/threads/threads.ts
|
|
9607
|
+
|
|
9608
|
+
var DTOThreadSubjectType = _zod2.default.enum(["ForgeDocument", "ForgeFeature"]);
|
|
9609
|
+
var DTOThreadAgentType = _zod2.default.enum(["Ask", "Document", "Prototype", "ReleaseNotes"]);
|
|
9610
|
+
var DTOThread = _zod2.default.object({
|
|
9611
|
+
id: _zod2.default.string(),
|
|
9612
|
+
liveblocksRoomId: _zod2.default.string(),
|
|
9613
|
+
defaultAgentType: DTOThreadAgentType,
|
|
9614
|
+
subjectId: _zod2.default.string(),
|
|
9615
|
+
subjectType: DTOThreadSubjectType,
|
|
9616
|
+
createdAt: _zod2.default.string(),
|
|
9617
|
+
updatedAt: _zod2.default.string()
|
|
9618
|
+
});
|
|
9619
|
+
var DTOThreadMessageUserSender = _zod2.default.object({
|
|
9620
|
+
type: _zod2.default.literal("User"),
|
|
9621
|
+
userId: _zod2.default.string()
|
|
9622
|
+
});
|
|
9623
|
+
var DTOThreadMessageAgentSender = _zod2.default.object({
|
|
9624
|
+
type: _zod2.default.literal("Agent"),
|
|
9625
|
+
agentType: DTOThreadAgentType
|
|
9626
|
+
});
|
|
9627
|
+
var DTOThreadMessageSystemSender = _zod2.default.object({
|
|
9628
|
+
type: _zod2.default.literal("System"),
|
|
9629
|
+
onBehalfOfUserId: _zod2.default.string()
|
|
9630
|
+
});
|
|
9631
|
+
var DTOThreadMessageSender = _zod2.default.discriminatedUnion("type", [
|
|
9632
|
+
DTOThreadMessageUserSender,
|
|
9633
|
+
DTOThreadMessageAgentSender,
|
|
9634
|
+
DTOThreadMessageSystemSender
|
|
9635
|
+
]);
|
|
9636
|
+
var DTOThreadReaction = _zod2.default.object({
|
|
9637
|
+
messageId: Id,
|
|
9638
|
+
userId: _zod2.default.string(),
|
|
9639
|
+
emoji: _zod2.default.string(),
|
|
9640
|
+
createdAt: _zod2.default.string()
|
|
9641
|
+
});
|
|
9642
|
+
var DTOThreadMessageAttachments = _zod2.default.object({
|
|
9643
|
+
iterationId: Id.optional()
|
|
9644
|
+
// TODO Artem: files, etc
|
|
9645
|
+
});
|
|
9646
|
+
var DTOThreadMessage = _zod2.default.object({
|
|
9647
|
+
id: Id,
|
|
9648
|
+
threadId: _zod2.default.string(),
|
|
9649
|
+
/**
|
|
9650
|
+
* Describes where the message came from
|
|
9651
|
+
*/
|
|
9652
|
+
sender: DTOThreadMessageSender,
|
|
9653
|
+
/**
|
|
9654
|
+
* Content of the message
|
|
9655
|
+
*/
|
|
9656
|
+
body: _zod2.default.string(),
|
|
9657
|
+
/**
|
|
9658
|
+
* Indicates if the message was sent in the agentic mode, if so this message will cause an
|
|
9659
|
+
* AI agent to generate a response and perform an action within the feature
|
|
9660
|
+
*/
|
|
9661
|
+
isPrompt: _zod2.default.boolean().optional(),
|
|
9662
|
+
/**
|
|
9663
|
+
* Indicates if the sender requested agent to reply in a thread
|
|
9664
|
+
*/
|
|
9665
|
+
startsNewThread: _zod2.default.boolean().optional(),
|
|
9666
|
+
/**
|
|
9667
|
+
* If defined, this message is considered to be a reply in a thread under parent message id
|
|
9668
|
+
*/
|
|
9669
|
+
parentMessageId: Id.optional(),
|
|
9670
|
+
/**
|
|
9671
|
+
* Link agent response object describing current state of
|
|
9672
|
+
*/
|
|
9673
|
+
agentResponseTrackerId: Id.optional().nullable(),
|
|
9674
|
+
attachments: DTOThreadMessageAttachments.optional(),
|
|
9675
|
+
/**
|
|
9676
|
+
* If defined, this message is considered to be a reply to different message
|
|
9677
|
+
*/
|
|
9678
|
+
replyToMessageId: Id.optional(),
|
|
9679
|
+
createdAt: _zod2.default.string(),
|
|
9680
|
+
updatedAt: _zod2.default.string().optional()
|
|
9681
|
+
});
|
|
9682
|
+
var DTOThreadAgentResponseTracker = _zod2.default.object({
|
|
9683
|
+
id: Id,
|
|
9684
|
+
currentBody: _zod2.default.string().default("")
|
|
9685
|
+
});
|
|
9686
|
+
var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
|
|
9687
|
+
id: true,
|
|
9688
|
+
body: true,
|
|
9689
|
+
isPrompt: true,
|
|
9690
|
+
startsNewThread: true,
|
|
9691
|
+
parentMessageId: true,
|
|
9692
|
+
attachments: true
|
|
9693
|
+
});
|
|
9694
|
+
var DTOThreadMessageFinalizeInput = _zod2.default.object({
|
|
9695
|
+
messageId: Id
|
|
9696
|
+
});
|
|
9697
|
+
var DTOThreadMessageUpdateInput = DTOThreadMessage.pick({
|
|
9698
|
+
id: true
|
|
9699
|
+
}).merge(
|
|
9700
|
+
_zod2.default.object({
|
|
9701
|
+
body: DTOThreadMessage.shape.body,
|
|
9702
|
+
attachments: DTOThreadMessage.shape.attachments,
|
|
9703
|
+
agentResponseTrackerId: DTOThreadMessage.shape.agentResponseTrackerId.nullable()
|
|
9704
|
+
}).partial()
|
|
9705
|
+
);
|
|
9706
|
+
var DTOThreadReactionCreateInput = _zod2.default.object({
|
|
9707
|
+
messageId: Id,
|
|
9708
|
+
emoji: _zod2.default.string()
|
|
9709
|
+
});
|
|
9710
|
+
var DTOThreadReactionDeleteInput = _zod2.default.object({
|
|
9711
|
+
messageId: Id,
|
|
9712
|
+
emoji: _zod2.default.string()
|
|
9713
|
+
});
|
|
9714
|
+
var DTOThreadMessageResponse = _zod2.default.object({
|
|
9715
|
+
message: DTOThreadMessage
|
|
9716
|
+
});
|
|
9717
|
+
var DTOThreadReactionResponse = _zod2.default.object({
|
|
9718
|
+
reaction: DTOThreadReaction
|
|
9719
|
+
});
|
|
9720
|
+
var DTOThreadMessageListResponse = _zod2.default.object({
|
|
9721
|
+
messages: DTOThreadMessage.array(),
|
|
9722
|
+
reactions: DTOThreadReaction.array(),
|
|
9723
|
+
lastSeenMessageId: _zod2.default.string().optional()
|
|
9724
|
+
});
|
|
9725
|
+
var DTOThreadEventMessagesSent = _zod2.default.object({
|
|
9726
|
+
type: _zod2.default.literal("MessagesSent"),
|
|
9727
|
+
data: DTOThreadMessage.array()
|
|
9728
|
+
});
|
|
9729
|
+
var DTOThreadEventMessagesUpdated = _zod2.default.object({
|
|
9730
|
+
type: _zod2.default.literal("MessagesUpdated"),
|
|
9731
|
+
data: DTOThreadMessage.array()
|
|
9732
|
+
});
|
|
9733
|
+
var DTOThreadEventReactionsSent = _zod2.default.object({
|
|
9734
|
+
type: _zod2.default.literal("ReactionsSent"),
|
|
9735
|
+
data: DTOThreadReaction.array()
|
|
9736
|
+
});
|
|
9737
|
+
var DTOThreadEventReactionsDeleted = _zod2.default.object({
|
|
9738
|
+
type: _zod2.default.literal("ReactionsDeleted"),
|
|
9739
|
+
data: DTOThreadReaction.array()
|
|
9740
|
+
});
|
|
9741
|
+
var DTOThreadEvent = _zod2.default.discriminatedUnion("type", [
|
|
9742
|
+
DTOThreadEventMessagesSent,
|
|
9743
|
+
DTOThreadEventMessagesUpdated,
|
|
9744
|
+
DTOThreadEventReactionsSent,
|
|
9745
|
+
DTOThreadEventReactionsDeleted
|
|
9746
|
+
]);
|
|
9747
|
+
|
|
9606
9748
|
// src/api/dto/forge/project-section.ts
|
|
9607
9749
|
|
|
9608
9750
|
var AfterSectionId = _zod2.default.string().uuid().nullish().optional();
|
|
@@ -9639,7 +9781,8 @@ var DTOForgeProjectArtifactCreateInput = _zod.z.object({
|
|
|
9639
9781
|
id: _zod.z.string(),
|
|
9640
9782
|
title: _zod.z.string(),
|
|
9641
9783
|
sectionId: _zod.z.string().optional(),
|
|
9642
|
-
afterArtifactId: _zod.z.string().optional().nullable()
|
|
9784
|
+
afterArtifactId: _zod.z.string().optional().nullable(),
|
|
9785
|
+
initialMessage: DTOThreadMessageCreateInput.optional()
|
|
9643
9786
|
});
|
|
9644
9787
|
var DTOForgeProjectArtifactDeleteInput = _zod.z.object({
|
|
9645
9788
|
id: Id
|
|
@@ -10262,148 +10405,6 @@ var DTOThemeCreatePayload = _zod.z.object({
|
|
|
10262
10405
|
overrides: DTOThemeOverride.array()
|
|
10263
10406
|
});
|
|
10264
10407
|
|
|
10265
|
-
// src/api/dto/threads/threads.ts
|
|
10266
|
-
|
|
10267
|
-
var DTOThreadSubjectType = _zod2.default.enum(["ForgeDocument", "ForgeFeature"]);
|
|
10268
|
-
var DTOThreadAgentType = _zod2.default.enum(["Ask", "Document", "Prototype", "ReleaseNotes"]);
|
|
10269
|
-
var DTOThread = _zod2.default.object({
|
|
10270
|
-
id: _zod2.default.string(),
|
|
10271
|
-
liveblocksRoomId: _zod2.default.string(),
|
|
10272
|
-
defaultAgentType: DTOThreadAgentType,
|
|
10273
|
-
subjectId: _zod2.default.string(),
|
|
10274
|
-
subjectType: DTOThreadSubjectType,
|
|
10275
|
-
createdAt: _zod2.default.string(),
|
|
10276
|
-
updatedAt: _zod2.default.string()
|
|
10277
|
-
});
|
|
10278
|
-
var DTOThreadMessageUserSender = _zod2.default.object({
|
|
10279
|
-
type: _zod2.default.literal("User"),
|
|
10280
|
-
userId: _zod2.default.string()
|
|
10281
|
-
});
|
|
10282
|
-
var DTOThreadMessageAgentSender = _zod2.default.object({
|
|
10283
|
-
type: _zod2.default.literal("Agent"),
|
|
10284
|
-
agentType: DTOThreadAgentType
|
|
10285
|
-
});
|
|
10286
|
-
var DTOThreadMessageSystemSender = _zod2.default.object({
|
|
10287
|
-
type: _zod2.default.literal("System"),
|
|
10288
|
-
onBehalfOfUserId: _zod2.default.string()
|
|
10289
|
-
});
|
|
10290
|
-
var DTOThreadMessageSender = _zod2.default.discriminatedUnion("type", [
|
|
10291
|
-
DTOThreadMessageUserSender,
|
|
10292
|
-
DTOThreadMessageAgentSender,
|
|
10293
|
-
DTOThreadMessageSystemSender
|
|
10294
|
-
]);
|
|
10295
|
-
var DTOThreadReaction = _zod2.default.object({
|
|
10296
|
-
messageId: Id,
|
|
10297
|
-
userId: _zod2.default.string(),
|
|
10298
|
-
emoji: _zod2.default.string(),
|
|
10299
|
-
createdAt: _zod2.default.string()
|
|
10300
|
-
});
|
|
10301
|
-
var DTOThreadMessageAttachments = _zod2.default.object({
|
|
10302
|
-
iterationId: Id.optional()
|
|
10303
|
-
// TODO Artem: files, etc
|
|
10304
|
-
});
|
|
10305
|
-
var DTOThreadMessage = _zod2.default.object({
|
|
10306
|
-
id: Id,
|
|
10307
|
-
threadId: _zod2.default.string(),
|
|
10308
|
-
/**
|
|
10309
|
-
* Describes where the message came from
|
|
10310
|
-
*/
|
|
10311
|
-
sender: DTOThreadMessageSender,
|
|
10312
|
-
/**
|
|
10313
|
-
* Content of the message
|
|
10314
|
-
*/
|
|
10315
|
-
body: _zod2.default.string(),
|
|
10316
|
-
/**
|
|
10317
|
-
* Indicates if the message was sent in the agentic mode, if so this message will cause an
|
|
10318
|
-
* AI agent to generate a response and perform an action within the feature
|
|
10319
|
-
*/
|
|
10320
|
-
isPrompt: _zod2.default.boolean().optional(),
|
|
10321
|
-
/**
|
|
10322
|
-
* Indicates if the sender requested agent to reply in a thread
|
|
10323
|
-
*/
|
|
10324
|
-
startsNewThread: _zod2.default.boolean().optional(),
|
|
10325
|
-
/**
|
|
10326
|
-
* If defined, this message is considered to be a reply in a thread under parent message id
|
|
10327
|
-
*/
|
|
10328
|
-
parentMessageId: Id.optional(),
|
|
10329
|
-
/**
|
|
10330
|
-
* Link agent response object describing current state of
|
|
10331
|
-
*/
|
|
10332
|
-
agentResponseTrackerId: Id.optional().nullable(),
|
|
10333
|
-
attachments: DTOThreadMessageAttachments.optional(),
|
|
10334
|
-
/**
|
|
10335
|
-
* If defined, this message is considered to be a reply to different message
|
|
10336
|
-
*/
|
|
10337
|
-
replyToMessageId: Id.optional(),
|
|
10338
|
-
createdAt: _zod2.default.string(),
|
|
10339
|
-
updatedAt: _zod2.default.string().optional()
|
|
10340
|
-
});
|
|
10341
|
-
var DTOThreadAgentResponseTracker = _zod2.default.object({
|
|
10342
|
-
id: Id,
|
|
10343
|
-
currentBody: _zod2.default.string().default("")
|
|
10344
|
-
});
|
|
10345
|
-
var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
|
|
10346
|
-
id: true,
|
|
10347
|
-
body: true,
|
|
10348
|
-
isPrompt: true,
|
|
10349
|
-
startsNewThread: true,
|
|
10350
|
-
parentMessageId: true,
|
|
10351
|
-
attachments: true
|
|
10352
|
-
});
|
|
10353
|
-
var DTOThreadMessageFinalizeInput = _zod2.default.object({
|
|
10354
|
-
messageId: Id
|
|
10355
|
-
});
|
|
10356
|
-
var DTOThreadMessageUpdateInput = DTOThreadMessage.pick({
|
|
10357
|
-
id: true
|
|
10358
|
-
}).merge(
|
|
10359
|
-
_zod2.default.object({
|
|
10360
|
-
body: DTOThreadMessage.shape.body,
|
|
10361
|
-
attachments: DTOThreadMessage.shape.attachments,
|
|
10362
|
-
agentResponseTrackerId: DTOThreadMessage.shape.agentResponseTrackerId.nullable()
|
|
10363
|
-
}).partial()
|
|
10364
|
-
);
|
|
10365
|
-
var DTOThreadReactionCreateInput = _zod2.default.object({
|
|
10366
|
-
messageId: Id,
|
|
10367
|
-
emoji: _zod2.default.string()
|
|
10368
|
-
});
|
|
10369
|
-
var DTOThreadReactionDeleteInput = _zod2.default.object({
|
|
10370
|
-
messageId: Id,
|
|
10371
|
-
emoji: _zod2.default.string()
|
|
10372
|
-
});
|
|
10373
|
-
var DTOThreadMessageResponse = _zod2.default.object({
|
|
10374
|
-
message: DTOThreadMessage
|
|
10375
|
-
});
|
|
10376
|
-
var DTOThreadReactionResponse = _zod2.default.object({
|
|
10377
|
-
reaction: DTOThreadReaction
|
|
10378
|
-
});
|
|
10379
|
-
var DTOThreadMessageListResponse = _zod2.default.object({
|
|
10380
|
-
messages: DTOThreadMessage.array(),
|
|
10381
|
-
reactions: DTOThreadReaction.array(),
|
|
10382
|
-
lastSeenMessageId: _zod2.default.string().optional()
|
|
10383
|
-
});
|
|
10384
|
-
var DTOThreadEventMessagesSent = _zod2.default.object({
|
|
10385
|
-
type: _zod2.default.literal("MessagesSent"),
|
|
10386
|
-
data: DTOThreadMessage.array()
|
|
10387
|
-
});
|
|
10388
|
-
var DTOThreadEventMessagesUpdated = _zod2.default.object({
|
|
10389
|
-
type: _zod2.default.literal("MessagesUpdated"),
|
|
10390
|
-
data: DTOThreadMessage.array()
|
|
10391
|
-
});
|
|
10392
|
-
var DTOThreadEventReactionsSent = _zod2.default.object({
|
|
10393
|
-
type: _zod2.default.literal("ReactionsSent"),
|
|
10394
|
-
data: DTOThreadReaction.array()
|
|
10395
|
-
});
|
|
10396
|
-
var DTOThreadEventReactionsDeleted = _zod2.default.object({
|
|
10397
|
-
type: _zod2.default.literal("ReactionsDeleted"),
|
|
10398
|
-
data: DTOThreadReaction.array()
|
|
10399
|
-
});
|
|
10400
|
-
var DTOThreadEvent = _zod2.default.discriminatedUnion("type", [
|
|
10401
|
-
DTOThreadEventMessagesSent,
|
|
10402
|
-
DTOThreadEventMessagesUpdated,
|
|
10403
|
-
DTOThreadEventReactionsSent,
|
|
10404
|
-
DTOThreadEventReactionsDeleted
|
|
10405
|
-
]);
|
|
10406
|
-
|
|
10407
10408
|
// src/utils/figma.ts
|
|
10408
10409
|
var figmaFileIdRegex = /^[0-9a-zA-Z]{22,128}$/;
|
|
10409
10410
|
var nodeIdRegex = /^\d+-\d+$/;
|