@supernova-studio/client 1.52.3 → 1.52.4
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 +164 -0
- package/dist/index.d.ts +164 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -333626,11 +333626,175 @@ type DTOThreadMessageFinalizeInput = z$1.infer<typeof DTOThreadMessageFinalizeIn
|
|
|
333626
333626
|
declare const DTOThreadMessageRetryInput: z$1.ZodObject<{
|
|
333627
333627
|
agentMessageId: z$1.ZodString;
|
|
333628
333628
|
runtimeError: z$1.ZodOptional<z$1.ZodString>;
|
|
333629
|
+
message: z$1.ZodOptional<z$1.ZodObject<Pick<{
|
|
333630
|
+
id: z$1.ZodString;
|
|
333631
|
+
threadId: z$1.ZodString;
|
|
333632
|
+
/**
|
|
333633
|
+
* Describes where the message came from
|
|
333634
|
+
*/
|
|
333635
|
+
sender: z$1.ZodDiscriminatedUnion<"type", [z$1.ZodObject<{
|
|
333636
|
+
type: z$1.ZodLiteral<"User">;
|
|
333637
|
+
userId: z$1.ZodString;
|
|
333638
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
333639
|
+
type: "User";
|
|
333640
|
+
userId: string;
|
|
333641
|
+
}, {
|
|
333642
|
+
type: "User";
|
|
333643
|
+
userId: string;
|
|
333644
|
+
}>, z$1.ZodObject<{
|
|
333645
|
+
type: z$1.ZodLiteral<"Agent">;
|
|
333646
|
+
agentType: z$1.ZodEnum<["Ask", "Document", "Prototype", "ReleaseNotes"]>;
|
|
333647
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
333648
|
+
type: "Agent";
|
|
333649
|
+
agentType: "Ask" | "Document" | "Prototype" | "ReleaseNotes";
|
|
333650
|
+
}, {
|
|
333651
|
+
type: "Agent";
|
|
333652
|
+
agentType: "Ask" | "Document" | "Prototype" | "ReleaseNotes";
|
|
333653
|
+
}>, z$1.ZodObject<{
|
|
333654
|
+
type: z$1.ZodLiteral<"System">;
|
|
333655
|
+
onBehalfOfUserId: z$1.ZodString;
|
|
333656
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
333657
|
+
type: "System";
|
|
333658
|
+
onBehalfOfUserId: string;
|
|
333659
|
+
}, {
|
|
333660
|
+
type: "System";
|
|
333661
|
+
onBehalfOfUserId: string;
|
|
333662
|
+
}>]>;
|
|
333663
|
+
/**
|
|
333664
|
+
* Content of the message
|
|
333665
|
+
*/
|
|
333666
|
+
body: z$1.ZodString;
|
|
333667
|
+
/**
|
|
333668
|
+
* Indicates if the message was sent in the agentic mode, if so this message will cause an
|
|
333669
|
+
* AI agent to generate a response and perform an action within the feature
|
|
333670
|
+
*/
|
|
333671
|
+
isPrompt: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
333672
|
+
/**
|
|
333673
|
+
* Indicates if the message is an attempt to retry agent message. Only available for agent messages.
|
|
333674
|
+
*/
|
|
333675
|
+
isRetry: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
333676
|
+
/**
|
|
333677
|
+
* Indicates if the sender requested agent to reply in a thread
|
|
333678
|
+
*/
|
|
333679
|
+
startsNewThread: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
333680
|
+
/**
|
|
333681
|
+
* If defined, this message is considered to be a reply in a thread under parent message id
|
|
333682
|
+
*/
|
|
333683
|
+
parentMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
333684
|
+
/**
|
|
333685
|
+
* Link agent response object describing current state of
|
|
333686
|
+
*/
|
|
333687
|
+
agentResponseTrackerId: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodString>>;
|
|
333688
|
+
attachments: z$1.ZodOptional<z$1.ZodObject<{
|
|
333689
|
+
iterationId: z$1.ZodOptional<z$1.ZodString>;
|
|
333690
|
+
files: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<Pick<{
|
|
333691
|
+
id: z$1.ZodString;
|
|
333692
|
+
name: z$1.ZodString;
|
|
333693
|
+
deduplicationKey: z$1.ZodString;
|
|
333694
|
+
pendingUpload: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
333695
|
+
storagePath: z$1.ZodString;
|
|
333696
|
+
url: z$1.ZodString;
|
|
333697
|
+
size: z$1.ZodNumber;
|
|
333698
|
+
source: z$1.ZodOptional<z$1.ZodDiscriminatedUnion<"type", [z$1.ZodObject<{
|
|
333699
|
+
type: z$1.ZodLiteral<"UserUpload">;
|
|
333700
|
+
userId: z$1.ZodString;
|
|
333701
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
333702
|
+
type: "UserUpload";
|
|
333703
|
+
userId: string;
|
|
333704
|
+
}, {
|
|
333705
|
+
type: "UserUpload";
|
|
333706
|
+
userId: string;
|
|
333707
|
+
}>, z$1.ZodObject<{
|
|
333708
|
+
type: z$1.ZodLiteral<"Figma">;
|
|
333709
|
+
renderMode: z$1.ZodEnum<["Image", "HTML", "JSON"]>;
|
|
333710
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
333711
|
+
type: "Figma";
|
|
333712
|
+
renderMode: "Image" | "HTML" | "JSON";
|
|
333713
|
+
}, {
|
|
333714
|
+
type: "Figma";
|
|
333715
|
+
renderMode: "Image" | "HTML" | "JSON";
|
|
333716
|
+
}>]>>;
|
|
333717
|
+
}, "id" | "url" | "source"> & {
|
|
333718
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
333719
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
333720
|
+
id: string;
|
|
333721
|
+
url: string;
|
|
333722
|
+
name?: string | undefined;
|
|
333723
|
+
source?: {
|
|
333724
|
+
type: "UserUpload";
|
|
333725
|
+
userId: string;
|
|
333726
|
+
} | {
|
|
333727
|
+
type: "Figma";
|
|
333728
|
+
renderMode: "Image" | "HTML" | "JSON";
|
|
333729
|
+
} | undefined;
|
|
333730
|
+
}, {
|
|
333731
|
+
id: string;
|
|
333732
|
+
url: string;
|
|
333733
|
+
name?: string | undefined;
|
|
333734
|
+
source?: {
|
|
333735
|
+
type: "UserUpload";
|
|
333736
|
+
userId: string;
|
|
333737
|
+
} | {
|
|
333738
|
+
type: "Figma";
|
|
333739
|
+
renderMode: "Image" | "HTML" | "JSON";
|
|
333740
|
+
} | undefined;
|
|
333741
|
+
}>, "many">>;
|
|
333742
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
333743
|
+
files?: {
|
|
333744
|
+
id: string;
|
|
333745
|
+
url: string;
|
|
333746
|
+
name?: string | undefined;
|
|
333747
|
+
source?: {
|
|
333748
|
+
type: "UserUpload";
|
|
333749
|
+
userId: string;
|
|
333750
|
+
} | {
|
|
333751
|
+
type: "Figma";
|
|
333752
|
+
renderMode: "Image" | "HTML" | "JSON";
|
|
333753
|
+
} | undefined;
|
|
333754
|
+
}[] | undefined;
|
|
333755
|
+
iterationId?: string | undefined;
|
|
333756
|
+
}, {
|
|
333757
|
+
files?: {
|
|
333758
|
+
id: string;
|
|
333759
|
+
url: string;
|
|
333760
|
+
name?: string | undefined;
|
|
333761
|
+
source?: {
|
|
333762
|
+
type: "UserUpload";
|
|
333763
|
+
userId: string;
|
|
333764
|
+
} | {
|
|
333765
|
+
type: "Figma";
|
|
333766
|
+
renderMode: "Image" | "HTML" | "JSON";
|
|
333767
|
+
} | undefined;
|
|
333768
|
+
}[] | undefined;
|
|
333769
|
+
iterationId?: string | undefined;
|
|
333770
|
+
}>>;
|
|
333771
|
+
/**
|
|
333772
|
+
* If defined, this message is considered to be a reply to different message
|
|
333773
|
+
*/
|
|
333774
|
+
replyToMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
333775
|
+
promptMetadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
|
|
333776
|
+
createdAt: z$1.ZodString;
|
|
333777
|
+
updatedAt: z$1.ZodOptional<z$1.ZodString>;
|
|
333778
|
+
}, "id" | "body">, "strip", z$1.ZodTypeAny, {
|
|
333779
|
+
id: string;
|
|
333780
|
+
body: string;
|
|
333781
|
+
}, {
|
|
333782
|
+
id: string;
|
|
333783
|
+
body: string;
|
|
333784
|
+
}>>;
|
|
333629
333785
|
}, "strip", z$1.ZodTypeAny, {
|
|
333630
333786
|
agentMessageId: string;
|
|
333787
|
+
message?: {
|
|
333788
|
+
id: string;
|
|
333789
|
+
body: string;
|
|
333790
|
+
} | undefined;
|
|
333631
333791
|
runtimeError?: string | undefined;
|
|
333632
333792
|
}, {
|
|
333633
333793
|
agentMessageId: string;
|
|
333794
|
+
message?: {
|
|
333795
|
+
id: string;
|
|
333796
|
+
body: string;
|
|
333797
|
+
} | undefined;
|
|
333634
333798
|
runtimeError?: string | undefined;
|
|
333635
333799
|
}>;
|
|
333636
333800
|
type DTOThreadMessageRetryInput = z$1.infer<typeof DTOThreadMessageRetryInput>;
|
package/dist/index.d.ts
CHANGED
|
@@ -333626,11 +333626,175 @@ type DTOThreadMessageFinalizeInput = z$1.infer<typeof DTOThreadMessageFinalizeIn
|
|
|
333626
333626
|
declare const DTOThreadMessageRetryInput: z$1.ZodObject<{
|
|
333627
333627
|
agentMessageId: z$1.ZodString;
|
|
333628
333628
|
runtimeError: z$1.ZodOptional<z$1.ZodString>;
|
|
333629
|
+
message: z$1.ZodOptional<z$1.ZodObject<Pick<{
|
|
333630
|
+
id: z$1.ZodString;
|
|
333631
|
+
threadId: z$1.ZodString;
|
|
333632
|
+
/**
|
|
333633
|
+
* Describes where the message came from
|
|
333634
|
+
*/
|
|
333635
|
+
sender: z$1.ZodDiscriminatedUnion<"type", [z$1.ZodObject<{
|
|
333636
|
+
type: z$1.ZodLiteral<"User">;
|
|
333637
|
+
userId: z$1.ZodString;
|
|
333638
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
333639
|
+
type: "User";
|
|
333640
|
+
userId: string;
|
|
333641
|
+
}, {
|
|
333642
|
+
type: "User";
|
|
333643
|
+
userId: string;
|
|
333644
|
+
}>, z$1.ZodObject<{
|
|
333645
|
+
type: z$1.ZodLiteral<"Agent">;
|
|
333646
|
+
agentType: z$1.ZodEnum<["Ask", "Document", "Prototype", "ReleaseNotes"]>;
|
|
333647
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
333648
|
+
type: "Agent";
|
|
333649
|
+
agentType: "Ask" | "Document" | "Prototype" | "ReleaseNotes";
|
|
333650
|
+
}, {
|
|
333651
|
+
type: "Agent";
|
|
333652
|
+
agentType: "Ask" | "Document" | "Prototype" | "ReleaseNotes";
|
|
333653
|
+
}>, z$1.ZodObject<{
|
|
333654
|
+
type: z$1.ZodLiteral<"System">;
|
|
333655
|
+
onBehalfOfUserId: z$1.ZodString;
|
|
333656
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
333657
|
+
type: "System";
|
|
333658
|
+
onBehalfOfUserId: string;
|
|
333659
|
+
}, {
|
|
333660
|
+
type: "System";
|
|
333661
|
+
onBehalfOfUserId: string;
|
|
333662
|
+
}>]>;
|
|
333663
|
+
/**
|
|
333664
|
+
* Content of the message
|
|
333665
|
+
*/
|
|
333666
|
+
body: z$1.ZodString;
|
|
333667
|
+
/**
|
|
333668
|
+
* Indicates if the message was sent in the agentic mode, if so this message will cause an
|
|
333669
|
+
* AI agent to generate a response and perform an action within the feature
|
|
333670
|
+
*/
|
|
333671
|
+
isPrompt: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
333672
|
+
/**
|
|
333673
|
+
* Indicates if the message is an attempt to retry agent message. Only available for agent messages.
|
|
333674
|
+
*/
|
|
333675
|
+
isRetry: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
333676
|
+
/**
|
|
333677
|
+
* Indicates if the sender requested agent to reply in a thread
|
|
333678
|
+
*/
|
|
333679
|
+
startsNewThread: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
333680
|
+
/**
|
|
333681
|
+
* If defined, this message is considered to be a reply in a thread under parent message id
|
|
333682
|
+
*/
|
|
333683
|
+
parentMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
333684
|
+
/**
|
|
333685
|
+
* Link agent response object describing current state of
|
|
333686
|
+
*/
|
|
333687
|
+
agentResponseTrackerId: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodString>>;
|
|
333688
|
+
attachments: z$1.ZodOptional<z$1.ZodObject<{
|
|
333689
|
+
iterationId: z$1.ZodOptional<z$1.ZodString>;
|
|
333690
|
+
files: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<Pick<{
|
|
333691
|
+
id: z$1.ZodString;
|
|
333692
|
+
name: z$1.ZodString;
|
|
333693
|
+
deduplicationKey: z$1.ZodString;
|
|
333694
|
+
pendingUpload: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
333695
|
+
storagePath: z$1.ZodString;
|
|
333696
|
+
url: z$1.ZodString;
|
|
333697
|
+
size: z$1.ZodNumber;
|
|
333698
|
+
source: z$1.ZodOptional<z$1.ZodDiscriminatedUnion<"type", [z$1.ZodObject<{
|
|
333699
|
+
type: z$1.ZodLiteral<"UserUpload">;
|
|
333700
|
+
userId: z$1.ZodString;
|
|
333701
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
333702
|
+
type: "UserUpload";
|
|
333703
|
+
userId: string;
|
|
333704
|
+
}, {
|
|
333705
|
+
type: "UserUpload";
|
|
333706
|
+
userId: string;
|
|
333707
|
+
}>, z$1.ZodObject<{
|
|
333708
|
+
type: z$1.ZodLiteral<"Figma">;
|
|
333709
|
+
renderMode: z$1.ZodEnum<["Image", "HTML", "JSON"]>;
|
|
333710
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
333711
|
+
type: "Figma";
|
|
333712
|
+
renderMode: "Image" | "HTML" | "JSON";
|
|
333713
|
+
}, {
|
|
333714
|
+
type: "Figma";
|
|
333715
|
+
renderMode: "Image" | "HTML" | "JSON";
|
|
333716
|
+
}>]>>;
|
|
333717
|
+
}, "id" | "url" | "source"> & {
|
|
333718
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
333719
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
333720
|
+
id: string;
|
|
333721
|
+
url: string;
|
|
333722
|
+
name?: string | undefined;
|
|
333723
|
+
source?: {
|
|
333724
|
+
type: "UserUpload";
|
|
333725
|
+
userId: string;
|
|
333726
|
+
} | {
|
|
333727
|
+
type: "Figma";
|
|
333728
|
+
renderMode: "Image" | "HTML" | "JSON";
|
|
333729
|
+
} | undefined;
|
|
333730
|
+
}, {
|
|
333731
|
+
id: string;
|
|
333732
|
+
url: string;
|
|
333733
|
+
name?: string | undefined;
|
|
333734
|
+
source?: {
|
|
333735
|
+
type: "UserUpload";
|
|
333736
|
+
userId: string;
|
|
333737
|
+
} | {
|
|
333738
|
+
type: "Figma";
|
|
333739
|
+
renderMode: "Image" | "HTML" | "JSON";
|
|
333740
|
+
} | undefined;
|
|
333741
|
+
}>, "many">>;
|
|
333742
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
333743
|
+
files?: {
|
|
333744
|
+
id: string;
|
|
333745
|
+
url: string;
|
|
333746
|
+
name?: string | undefined;
|
|
333747
|
+
source?: {
|
|
333748
|
+
type: "UserUpload";
|
|
333749
|
+
userId: string;
|
|
333750
|
+
} | {
|
|
333751
|
+
type: "Figma";
|
|
333752
|
+
renderMode: "Image" | "HTML" | "JSON";
|
|
333753
|
+
} | undefined;
|
|
333754
|
+
}[] | undefined;
|
|
333755
|
+
iterationId?: string | undefined;
|
|
333756
|
+
}, {
|
|
333757
|
+
files?: {
|
|
333758
|
+
id: string;
|
|
333759
|
+
url: string;
|
|
333760
|
+
name?: string | undefined;
|
|
333761
|
+
source?: {
|
|
333762
|
+
type: "UserUpload";
|
|
333763
|
+
userId: string;
|
|
333764
|
+
} | {
|
|
333765
|
+
type: "Figma";
|
|
333766
|
+
renderMode: "Image" | "HTML" | "JSON";
|
|
333767
|
+
} | undefined;
|
|
333768
|
+
}[] | undefined;
|
|
333769
|
+
iterationId?: string | undefined;
|
|
333770
|
+
}>>;
|
|
333771
|
+
/**
|
|
333772
|
+
* If defined, this message is considered to be a reply to different message
|
|
333773
|
+
*/
|
|
333774
|
+
replyToMessageId: z$1.ZodOptional<z$1.ZodString>;
|
|
333775
|
+
promptMetadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
|
|
333776
|
+
createdAt: z$1.ZodString;
|
|
333777
|
+
updatedAt: z$1.ZodOptional<z$1.ZodString>;
|
|
333778
|
+
}, "id" | "body">, "strip", z$1.ZodTypeAny, {
|
|
333779
|
+
id: string;
|
|
333780
|
+
body: string;
|
|
333781
|
+
}, {
|
|
333782
|
+
id: string;
|
|
333783
|
+
body: string;
|
|
333784
|
+
}>>;
|
|
333629
333785
|
}, "strip", z$1.ZodTypeAny, {
|
|
333630
333786
|
agentMessageId: string;
|
|
333787
|
+
message?: {
|
|
333788
|
+
id: string;
|
|
333789
|
+
body: string;
|
|
333790
|
+
} | undefined;
|
|
333631
333791
|
runtimeError?: string | undefined;
|
|
333632
333792
|
}, {
|
|
333633
333793
|
agentMessageId: string;
|
|
333794
|
+
message?: {
|
|
333795
|
+
id: string;
|
|
333796
|
+
body: string;
|
|
333797
|
+
} | undefined;
|
|
333634
333798
|
runtimeError?: string | undefined;
|
|
333635
333799
|
}>;
|
|
333636
333800
|
type DTOThreadMessageRetryInput = z$1.infer<typeof DTOThreadMessageRetryInput>;
|
package/dist/index.js
CHANGED
|
@@ -10509,7 +10509,8 @@ var DTOThreadMessageFinalizeInput = _zod2.default.object({
|
|
|
10509
10509
|
});
|
|
10510
10510
|
var DTOThreadMessageRetryInput = _zod2.default.object({
|
|
10511
10511
|
agentMessageId: Id,
|
|
10512
|
-
runtimeError: _zod2.default.string().optional()
|
|
10512
|
+
runtimeError: _zod2.default.string().optional(),
|
|
10513
|
+
message: DTOThreadMessage.pick({ id: true, body: true }).optional()
|
|
10513
10514
|
});
|
|
10514
10515
|
var DTOThreadMessageUpdateInput = DTOThreadMessage.pick({
|
|
10515
10516
|
id: true
|