@supernova-studio/client 1.9.18 → 1.9.20
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 +101 -73
- package/dist/index.d.ts +101 -73
- package/dist/index.js +9 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +66 -68
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -88659,17 +88659,20 @@ declare const DTOUserProfileUpdate: z.ZodObject<Omit<{
|
|
|
88659
88659
|
type DTOUserProfileUpdate = z.infer<typeof DTOUserProfileUpdate>;
|
|
88660
88660
|
|
|
88661
88661
|
declare const DTOForgeChatMessage: z.ZodObject<{
|
|
88662
|
-
id: z.
|
|
88663
|
-
threadId: z.
|
|
88662
|
+
id: z.ZodString;
|
|
88663
|
+
threadId: z.ZodString;
|
|
88664
88664
|
payload: z.ZodString;
|
|
88665
88665
|
createdAt: z.ZodDate;
|
|
88666
88666
|
updatedAt: z.ZodDate;
|
|
88667
88667
|
sender: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
88668
88668
|
type: z.ZodLiteral<"User">;
|
|
88669
|
+
userId: z.ZodString;
|
|
88669
88670
|
}, "strip", z.ZodTypeAny, {
|
|
88670
88671
|
type: "User";
|
|
88672
|
+
userId: string;
|
|
88671
88673
|
}, {
|
|
88672
88674
|
type: "User";
|
|
88675
|
+
userId: string;
|
|
88673
88676
|
}>, z.ZodObject<{
|
|
88674
88677
|
type: z.ZodLiteral<"Agent">;
|
|
88675
88678
|
persona: z.ZodLiteral<"Amy">;
|
|
@@ -88681,25 +88684,27 @@ declare const DTOForgeChatMessage: z.ZodObject<{
|
|
|
88681
88684
|
persona: "Amy";
|
|
88682
88685
|
}>]>;
|
|
88683
88686
|
}, "strip", z.ZodTypeAny, {
|
|
88684
|
-
id:
|
|
88687
|
+
id: string;
|
|
88685
88688
|
createdAt: Date;
|
|
88686
88689
|
updatedAt: Date;
|
|
88687
|
-
threadId:
|
|
88690
|
+
threadId: string;
|
|
88688
88691
|
payload: string;
|
|
88689
88692
|
sender: {
|
|
88690
88693
|
type: "User";
|
|
88694
|
+
userId: string;
|
|
88691
88695
|
} | {
|
|
88692
88696
|
type: "Agent";
|
|
88693
88697
|
persona: "Amy";
|
|
88694
88698
|
};
|
|
88695
88699
|
}, {
|
|
88696
|
-
id:
|
|
88700
|
+
id: string;
|
|
88697
88701
|
createdAt: Date;
|
|
88698
88702
|
updatedAt: Date;
|
|
88699
|
-
threadId:
|
|
88703
|
+
threadId: string;
|
|
88700
88704
|
payload: string;
|
|
88701
88705
|
sender: {
|
|
88702
88706
|
type: "User";
|
|
88707
|
+
userId: string;
|
|
88703
88708
|
} | {
|
|
88704
88709
|
type: "Agent";
|
|
88705
88710
|
persona: "Amy";
|
|
@@ -88717,26 +88722,29 @@ declare const DTOForgeChatThread: z.ZodObject<{
|
|
|
88717
88722
|
id: string;
|
|
88718
88723
|
createdAt: Date;
|
|
88719
88724
|
updatedAt: Date;
|
|
88725
|
+
userId: string;
|
|
88720
88726
|
title: string;
|
|
88721
88727
|
workspaceId: string;
|
|
88722
|
-
userId: string;
|
|
88723
88728
|
}, {
|
|
88724
88729
|
id: string;
|
|
88725
88730
|
createdAt: Date;
|
|
88726
88731
|
updatedAt: Date;
|
|
88732
|
+
userId: string;
|
|
88727
88733
|
title: string;
|
|
88728
88734
|
workspaceId: string;
|
|
88729
|
-
userId: string;
|
|
88730
88735
|
}>;
|
|
88731
88736
|
type DTOForgeChatThread = z.infer<typeof DTOForgeChatThread>;
|
|
88732
88737
|
declare const DTOForgeChatMessageSenderType: z.ZodEnum<["User", "Agent"]>;
|
|
88733
88738
|
type DTOForgeChatMessageSenderType = z.infer<typeof DTOForgeChatMessageSenderType>;
|
|
88734
88739
|
declare const DTOForgeChatMessageSender: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
88735
88740
|
type: z.ZodLiteral<"User">;
|
|
88741
|
+
userId: z.ZodString;
|
|
88736
88742
|
}, "strip", z.ZodTypeAny, {
|
|
88737
88743
|
type: "User";
|
|
88744
|
+
userId: string;
|
|
88738
88745
|
}, {
|
|
88739
88746
|
type: "User";
|
|
88747
|
+
userId: string;
|
|
88740
88748
|
}>, z.ZodObject<{
|
|
88741
88749
|
type: z.ZodLiteral<"Agent">;
|
|
88742
88750
|
persona: z.ZodLiteral<"Amy">;
|
|
@@ -88774,34 +88782,34 @@ declare const DTOForgeChatThreadCreateResponse: z.ZodObject<{
|
|
|
88774
88782
|
id: string;
|
|
88775
88783
|
createdAt: Date;
|
|
88776
88784
|
updatedAt: Date;
|
|
88785
|
+
userId: string;
|
|
88777
88786
|
title: string;
|
|
88778
88787
|
workspaceId: string;
|
|
88779
|
-
userId: string;
|
|
88780
88788
|
}, {
|
|
88781
88789
|
id: string;
|
|
88782
88790
|
createdAt: Date;
|
|
88783
88791
|
updatedAt: Date;
|
|
88792
|
+
userId: string;
|
|
88784
88793
|
title: string;
|
|
88785
88794
|
workspaceId: string;
|
|
88786
|
-
userId: string;
|
|
88787
88795
|
}>;
|
|
88788
88796
|
}, "strip", z.ZodTypeAny, {
|
|
88789
88797
|
thread: {
|
|
88790
88798
|
id: string;
|
|
88791
88799
|
createdAt: Date;
|
|
88792
88800
|
updatedAt: Date;
|
|
88801
|
+
userId: string;
|
|
88793
88802
|
title: string;
|
|
88794
88803
|
workspaceId: string;
|
|
88795
|
-
userId: string;
|
|
88796
88804
|
};
|
|
88797
88805
|
}, {
|
|
88798
88806
|
thread: {
|
|
88799
88807
|
id: string;
|
|
88800
88808
|
createdAt: Date;
|
|
88801
88809
|
updatedAt: Date;
|
|
88810
|
+
userId: string;
|
|
88802
88811
|
title: string;
|
|
88803
88812
|
workspaceId: string;
|
|
88804
|
-
userId: string;
|
|
88805
88813
|
};
|
|
88806
88814
|
}>;
|
|
88807
88815
|
type DTOForgeChatThreadCreateResponse = z.infer<typeof DTOForgeChatThreadCreateResponse>;
|
|
@@ -88831,34 +88839,34 @@ declare const DTOForgeChatThreadUpdateResponse: z.ZodObject<{
|
|
|
88831
88839
|
id: string;
|
|
88832
88840
|
createdAt: Date;
|
|
88833
88841
|
updatedAt: Date;
|
|
88842
|
+
userId: string;
|
|
88834
88843
|
title: string;
|
|
88835
88844
|
workspaceId: string;
|
|
88836
|
-
userId: string;
|
|
88837
88845
|
}, {
|
|
88838
88846
|
id: string;
|
|
88839
88847
|
createdAt: Date;
|
|
88840
88848
|
updatedAt: Date;
|
|
88849
|
+
userId: string;
|
|
88841
88850
|
title: string;
|
|
88842
88851
|
workspaceId: string;
|
|
88843
|
-
userId: string;
|
|
88844
88852
|
}>;
|
|
88845
88853
|
}, "strip", z.ZodTypeAny, {
|
|
88846
88854
|
thread: {
|
|
88847
88855
|
id: string;
|
|
88848
88856
|
createdAt: Date;
|
|
88849
88857
|
updatedAt: Date;
|
|
88858
|
+
userId: string;
|
|
88850
88859
|
title: string;
|
|
88851
88860
|
workspaceId: string;
|
|
88852
|
-
userId: string;
|
|
88853
88861
|
};
|
|
88854
88862
|
}, {
|
|
88855
88863
|
thread: {
|
|
88856
88864
|
id: string;
|
|
88857
88865
|
createdAt: Date;
|
|
88858
88866
|
updatedAt: Date;
|
|
88867
|
+
userId: string;
|
|
88859
88868
|
title: string;
|
|
88860
88869
|
workspaceId: string;
|
|
88861
|
-
userId: string;
|
|
88862
88870
|
};
|
|
88863
88871
|
}>;
|
|
88864
88872
|
type DTOForgeChatThreadUpdateResponse = z.infer<typeof DTOForgeChatThreadUpdateResponse>;
|
|
@@ -88902,16 +88910,16 @@ declare const DTOForgeChatThreadListResponse: z.ZodObject<{
|
|
|
88902
88910
|
id: string;
|
|
88903
88911
|
createdAt: Date;
|
|
88904
88912
|
updatedAt: Date;
|
|
88913
|
+
userId: string;
|
|
88905
88914
|
title: string;
|
|
88906
88915
|
workspaceId: string;
|
|
88907
|
-
userId: string;
|
|
88908
88916
|
}, {
|
|
88909
88917
|
id: string;
|
|
88910
88918
|
createdAt: Date;
|
|
88911
88919
|
updatedAt: Date;
|
|
88920
|
+
userId: string;
|
|
88912
88921
|
title: string;
|
|
88913
88922
|
workspaceId: string;
|
|
88914
|
-
userId: string;
|
|
88915
88923
|
}>, "many">;
|
|
88916
88924
|
pagination: z.ZodObject<{
|
|
88917
88925
|
offset: z.ZodNumber;
|
|
@@ -88931,9 +88939,9 @@ declare const DTOForgeChatThreadListResponse: z.ZodObject<{
|
|
|
88931
88939
|
id: string;
|
|
88932
88940
|
createdAt: Date;
|
|
88933
88941
|
updatedAt: Date;
|
|
88942
|
+
userId: string;
|
|
88934
88943
|
title: string;
|
|
88935
88944
|
workspaceId: string;
|
|
88936
|
-
userId: string;
|
|
88937
88945
|
}[];
|
|
88938
88946
|
pagination: {
|
|
88939
88947
|
limit: number;
|
|
@@ -88945,9 +88953,9 @@ declare const DTOForgeChatThreadListResponse: z.ZodObject<{
|
|
|
88945
88953
|
id: string;
|
|
88946
88954
|
createdAt: Date;
|
|
88947
88955
|
updatedAt: Date;
|
|
88956
|
+
userId: string;
|
|
88948
88957
|
title: string;
|
|
88949
88958
|
workspaceId: string;
|
|
88950
|
-
userId: string;
|
|
88951
88959
|
}[];
|
|
88952
88960
|
pagination: {
|
|
88953
88961
|
limit: number;
|
|
@@ -88961,12 +88969,15 @@ type DTOForgeChatThreadListResponse = z.infer<typeof DTOForgeChatThreadListRespo
|
|
|
88961
88969
|
*/
|
|
88962
88970
|
declare const DTOForgeChatMessageCreateInput: z.ZodObject<{
|
|
88963
88971
|
payload: z.ZodString;
|
|
88964
|
-
sender: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
88972
|
+
sender: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
88965
88973
|
type: z.ZodLiteral<"User">;
|
|
88974
|
+
userId: z.ZodString;
|
|
88966
88975
|
}, "strip", z.ZodTypeAny, {
|
|
88967
88976
|
type: "User";
|
|
88977
|
+
userId: string;
|
|
88968
88978
|
}, {
|
|
88969
88979
|
type: "User";
|
|
88980
|
+
userId: string;
|
|
88970
88981
|
}>, z.ZodObject<{
|
|
88971
88982
|
type: z.ZodLiteral<"Agent">;
|
|
88972
88983
|
persona: z.ZodLiteral<"Amy">;
|
|
@@ -88976,23 +88987,25 @@ declare const DTOForgeChatMessageCreateInput: z.ZodObject<{
|
|
|
88976
88987
|
}, {
|
|
88977
88988
|
type: "Agent";
|
|
88978
88989
|
persona: "Amy";
|
|
88979
|
-
}>]
|
|
88990
|
+
}>]>>;
|
|
88980
88991
|
}, "strip", z.ZodTypeAny, {
|
|
88981
88992
|
payload: string;
|
|
88982
|
-
sender
|
|
88993
|
+
sender?: {
|
|
88983
88994
|
type: "User";
|
|
88995
|
+
userId: string;
|
|
88984
88996
|
} | {
|
|
88985
88997
|
type: "Agent";
|
|
88986
88998
|
persona: "Amy";
|
|
88987
|
-
};
|
|
88999
|
+
} | undefined;
|
|
88988
89000
|
}, {
|
|
88989
89001
|
payload: string;
|
|
88990
|
-
sender
|
|
89002
|
+
sender?: {
|
|
88991
89003
|
type: "User";
|
|
89004
|
+
userId: string;
|
|
88992
89005
|
} | {
|
|
88993
89006
|
type: "Agent";
|
|
88994
89007
|
persona: "Amy";
|
|
88995
|
-
};
|
|
89008
|
+
} | undefined;
|
|
88996
89009
|
}>;
|
|
88997
89010
|
type DTOForgeChatMessageCreateInput = z.infer<typeof DTOForgeChatMessageCreateInput>;
|
|
88998
89011
|
/**
|
|
@@ -89000,17 +89013,20 @@ type DTOForgeChatMessageCreateInput = z.infer<typeof DTOForgeChatMessageCreateIn
|
|
|
89000
89013
|
*/
|
|
89001
89014
|
declare const DTOForgeChatMessageCreateResponse: z.ZodObject<{
|
|
89002
89015
|
message: z.ZodObject<{
|
|
89003
|
-
id: z.
|
|
89004
|
-
threadId: z.
|
|
89016
|
+
id: z.ZodString;
|
|
89017
|
+
threadId: z.ZodString;
|
|
89005
89018
|
payload: z.ZodString;
|
|
89006
89019
|
createdAt: z.ZodDate;
|
|
89007
89020
|
updatedAt: z.ZodDate;
|
|
89008
89021
|
sender: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
89009
89022
|
type: z.ZodLiteral<"User">;
|
|
89023
|
+
userId: z.ZodString;
|
|
89010
89024
|
}, "strip", z.ZodTypeAny, {
|
|
89011
89025
|
type: "User";
|
|
89026
|
+
userId: string;
|
|
89012
89027
|
}, {
|
|
89013
89028
|
type: "User";
|
|
89029
|
+
userId: string;
|
|
89014
89030
|
}>, z.ZodObject<{
|
|
89015
89031
|
type: z.ZodLiteral<"Agent">;
|
|
89016
89032
|
persona: z.ZodLiteral<"Amy">;
|
|
@@ -89022,25 +89038,27 @@ declare const DTOForgeChatMessageCreateResponse: z.ZodObject<{
|
|
|
89022
89038
|
persona: "Amy";
|
|
89023
89039
|
}>]>;
|
|
89024
89040
|
}, "strip", z.ZodTypeAny, {
|
|
89025
|
-
id:
|
|
89041
|
+
id: string;
|
|
89026
89042
|
createdAt: Date;
|
|
89027
89043
|
updatedAt: Date;
|
|
89028
|
-
threadId:
|
|
89044
|
+
threadId: string;
|
|
89029
89045
|
payload: string;
|
|
89030
89046
|
sender: {
|
|
89031
89047
|
type: "User";
|
|
89048
|
+
userId: string;
|
|
89032
89049
|
} | {
|
|
89033
89050
|
type: "Agent";
|
|
89034
89051
|
persona: "Amy";
|
|
89035
89052
|
};
|
|
89036
89053
|
}, {
|
|
89037
|
-
id:
|
|
89054
|
+
id: string;
|
|
89038
89055
|
createdAt: Date;
|
|
89039
89056
|
updatedAt: Date;
|
|
89040
|
-
threadId:
|
|
89057
|
+
threadId: string;
|
|
89041
89058
|
payload: string;
|
|
89042
89059
|
sender: {
|
|
89043
89060
|
type: "User";
|
|
89061
|
+
userId: string;
|
|
89044
89062
|
} | {
|
|
89045
89063
|
type: "Agent";
|
|
89046
89064
|
persona: "Amy";
|
|
@@ -89048,13 +89066,14 @@ declare const DTOForgeChatMessageCreateResponse: z.ZodObject<{
|
|
|
89048
89066
|
}>;
|
|
89049
89067
|
}, "strip", z.ZodTypeAny, {
|
|
89050
89068
|
message: {
|
|
89051
|
-
id:
|
|
89069
|
+
id: string;
|
|
89052
89070
|
createdAt: Date;
|
|
89053
89071
|
updatedAt: Date;
|
|
89054
|
-
threadId:
|
|
89072
|
+
threadId: string;
|
|
89055
89073
|
payload: string;
|
|
89056
89074
|
sender: {
|
|
89057
89075
|
type: "User";
|
|
89076
|
+
userId: string;
|
|
89058
89077
|
} | {
|
|
89059
89078
|
type: "Agent";
|
|
89060
89079
|
persona: "Amy";
|
|
@@ -89062,13 +89081,14 @@ declare const DTOForgeChatMessageCreateResponse: z.ZodObject<{
|
|
|
89062
89081
|
};
|
|
89063
89082
|
}, {
|
|
89064
89083
|
message: {
|
|
89065
|
-
id:
|
|
89084
|
+
id: string;
|
|
89066
89085
|
createdAt: Date;
|
|
89067
89086
|
updatedAt: Date;
|
|
89068
|
-
threadId:
|
|
89087
|
+
threadId: string;
|
|
89069
89088
|
payload: string;
|
|
89070
89089
|
sender: {
|
|
89071
89090
|
type: "User";
|
|
89091
|
+
userId: string;
|
|
89072
89092
|
} | {
|
|
89073
89093
|
type: "Agent";
|
|
89074
89094
|
persona: "Amy";
|
|
@@ -89095,17 +89115,20 @@ type DTOForgeChatMessageListQuery = z.infer<typeof DTOForgeChatMessageListQuery>
|
|
|
89095
89115
|
*/
|
|
89096
89116
|
declare const DTOForgeChatMessageListResponse: z.ZodObject<{
|
|
89097
89117
|
messages: z.ZodArray<z.ZodObject<{
|
|
89098
|
-
id: z.
|
|
89099
|
-
threadId: z.
|
|
89118
|
+
id: z.ZodString;
|
|
89119
|
+
threadId: z.ZodString;
|
|
89100
89120
|
payload: z.ZodString;
|
|
89101
89121
|
createdAt: z.ZodDate;
|
|
89102
89122
|
updatedAt: z.ZodDate;
|
|
89103
89123
|
sender: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
89104
89124
|
type: z.ZodLiteral<"User">;
|
|
89125
|
+
userId: z.ZodString;
|
|
89105
89126
|
}, "strip", z.ZodTypeAny, {
|
|
89106
89127
|
type: "User";
|
|
89128
|
+
userId: string;
|
|
89107
89129
|
}, {
|
|
89108
89130
|
type: "User";
|
|
89131
|
+
userId: string;
|
|
89109
89132
|
}>, z.ZodObject<{
|
|
89110
89133
|
type: z.ZodLiteral<"Agent">;
|
|
89111
89134
|
persona: z.ZodLiteral<"Amy">;
|
|
@@ -89117,25 +89140,27 @@ declare const DTOForgeChatMessageListResponse: z.ZodObject<{
|
|
|
89117
89140
|
persona: "Amy";
|
|
89118
89141
|
}>]>;
|
|
89119
89142
|
}, "strip", z.ZodTypeAny, {
|
|
89120
|
-
id:
|
|
89143
|
+
id: string;
|
|
89121
89144
|
createdAt: Date;
|
|
89122
89145
|
updatedAt: Date;
|
|
89123
|
-
threadId:
|
|
89146
|
+
threadId: string;
|
|
89124
89147
|
payload: string;
|
|
89125
89148
|
sender: {
|
|
89126
89149
|
type: "User";
|
|
89150
|
+
userId: string;
|
|
89127
89151
|
} | {
|
|
89128
89152
|
type: "Agent";
|
|
89129
89153
|
persona: "Amy";
|
|
89130
89154
|
};
|
|
89131
89155
|
}, {
|
|
89132
|
-
id:
|
|
89156
|
+
id: string;
|
|
89133
89157
|
createdAt: Date;
|
|
89134
89158
|
updatedAt: Date;
|
|
89135
|
-
threadId:
|
|
89159
|
+
threadId: string;
|
|
89136
89160
|
payload: string;
|
|
89137
89161
|
sender: {
|
|
89138
89162
|
type: "User";
|
|
89163
|
+
userId: string;
|
|
89139
89164
|
} | {
|
|
89140
89165
|
type: "Agent";
|
|
89141
89166
|
persona: "Amy";
|
|
@@ -89145,13 +89170,14 @@ declare const DTOForgeChatMessageListResponse: z.ZodObject<{
|
|
|
89145
89170
|
hasMore: z.ZodBoolean;
|
|
89146
89171
|
}, "strip", z.ZodTypeAny, {
|
|
89147
89172
|
messages: {
|
|
89148
|
-
id:
|
|
89173
|
+
id: string;
|
|
89149
89174
|
createdAt: Date;
|
|
89150
89175
|
updatedAt: Date;
|
|
89151
|
-
threadId:
|
|
89176
|
+
threadId: string;
|
|
89152
89177
|
payload: string;
|
|
89153
89178
|
sender: {
|
|
89154
89179
|
type: "User";
|
|
89180
|
+
userId: string;
|
|
89155
89181
|
} | {
|
|
89156
89182
|
type: "Agent";
|
|
89157
89183
|
persona: "Amy";
|
|
@@ -89161,13 +89187,14 @@ declare const DTOForgeChatMessageListResponse: z.ZodObject<{
|
|
|
89161
89187
|
hasMore: boolean;
|
|
89162
89188
|
}, {
|
|
89163
89189
|
messages: {
|
|
89164
|
-
id:
|
|
89190
|
+
id: string;
|
|
89165
89191
|
createdAt: Date;
|
|
89166
89192
|
updatedAt: Date;
|
|
89167
|
-
threadId:
|
|
89193
|
+
threadId: string;
|
|
89168
89194
|
payload: string;
|
|
89169
89195
|
sender: {
|
|
89170
89196
|
type: "User";
|
|
89197
|
+
userId: string;
|
|
89171
89198
|
} | {
|
|
89172
89199
|
type: "Agent";
|
|
89173
89200
|
persona: "Amy";
|
|
@@ -89372,14 +89399,14 @@ declare const DTOIntegration: z.ZodObject<{
|
|
|
89372
89399
|
designSystemId: string;
|
|
89373
89400
|
brandId: string;
|
|
89374
89401
|
date?: Date | undefined;
|
|
89375
|
-
title?: string | undefined;
|
|
89376
89402
|
userId?: string | undefined;
|
|
89403
|
+
title?: string | undefined;
|
|
89377
89404
|
}, {
|
|
89378
89405
|
designSystemId: string;
|
|
89379
89406
|
brandId: string;
|
|
89380
89407
|
date?: Date | undefined;
|
|
89381
|
-
title?: string | undefined;
|
|
89382
89408
|
userId?: string | undefined;
|
|
89409
|
+
title?: string | undefined;
|
|
89383
89410
|
}>, "many">>;
|
|
89384
89411
|
}, "strip", z.ZodTypeAny, {
|
|
89385
89412
|
id: string;
|
|
@@ -89419,8 +89446,8 @@ declare const DTOIntegration: z.ZodObject<{
|
|
|
89419
89446
|
designSystemId: string;
|
|
89420
89447
|
brandId: string;
|
|
89421
89448
|
date?: Date | undefined;
|
|
89422
|
-
title?: string | undefined;
|
|
89423
89449
|
userId?: string | undefined;
|
|
89450
|
+
title?: string | undefined;
|
|
89424
89451
|
}[] | undefined;
|
|
89425
89452
|
}, {
|
|
89426
89453
|
id: string;
|
|
@@ -89460,8 +89487,8 @@ declare const DTOIntegration: z.ZodObject<{
|
|
|
89460
89487
|
designSystemId: string;
|
|
89461
89488
|
brandId: string;
|
|
89462
89489
|
date?: Date | undefined;
|
|
89463
|
-
title?: string | undefined;
|
|
89464
89490
|
userId?: string | undefined;
|
|
89491
|
+
title?: string | undefined;
|
|
89465
89492
|
}[] | undefined;
|
|
89466
89493
|
}>;
|
|
89467
89494
|
type DTOIntegration = z.infer<typeof DTOIntegration>;
|
|
@@ -89716,14 +89743,14 @@ declare const DTOIntegrationPostResponse: z.ZodObject<{
|
|
|
89716
89743
|
designSystemId: string;
|
|
89717
89744
|
brandId: string;
|
|
89718
89745
|
date?: Date | undefined;
|
|
89719
|
-
title?: string | undefined;
|
|
89720
89746
|
userId?: string | undefined;
|
|
89747
|
+
title?: string | undefined;
|
|
89721
89748
|
}, {
|
|
89722
89749
|
designSystemId: string;
|
|
89723
89750
|
brandId: string;
|
|
89724
89751
|
date?: Date | undefined;
|
|
89725
|
-
title?: string | undefined;
|
|
89726
89752
|
userId?: string | undefined;
|
|
89753
|
+
title?: string | undefined;
|
|
89727
89754
|
}>, "many">>;
|
|
89728
89755
|
}, "strip", z.ZodTypeAny, {
|
|
89729
89756
|
id: string;
|
|
@@ -89763,8 +89790,8 @@ declare const DTOIntegrationPostResponse: z.ZodObject<{
|
|
|
89763
89790
|
designSystemId: string;
|
|
89764
89791
|
brandId: string;
|
|
89765
89792
|
date?: Date | undefined;
|
|
89766
|
-
title?: string | undefined;
|
|
89767
89793
|
userId?: string | undefined;
|
|
89794
|
+
title?: string | undefined;
|
|
89768
89795
|
}[] | undefined;
|
|
89769
89796
|
}, {
|
|
89770
89797
|
id: string;
|
|
@@ -89804,8 +89831,8 @@ declare const DTOIntegrationPostResponse: z.ZodObject<{
|
|
|
89804
89831
|
designSystemId: string;
|
|
89805
89832
|
brandId: string;
|
|
89806
89833
|
date?: Date | undefined;
|
|
89807
|
-
title?: string | undefined;
|
|
89808
89834
|
userId?: string | undefined;
|
|
89835
|
+
title?: string | undefined;
|
|
89809
89836
|
}[] | undefined;
|
|
89810
89837
|
}>;
|
|
89811
89838
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -89847,8 +89874,8 @@ declare const DTOIntegrationPostResponse: z.ZodObject<{
|
|
|
89847
89874
|
designSystemId: string;
|
|
89848
89875
|
brandId: string;
|
|
89849
89876
|
date?: Date | undefined;
|
|
89850
|
-
title?: string | undefined;
|
|
89851
89877
|
userId?: string | undefined;
|
|
89878
|
+
title?: string | undefined;
|
|
89852
89879
|
}[] | undefined;
|
|
89853
89880
|
};
|
|
89854
89881
|
}, {
|
|
@@ -89890,8 +89917,8 @@ declare const DTOIntegrationPostResponse: z.ZodObject<{
|
|
|
89890
89917
|
designSystemId: string;
|
|
89891
89918
|
brandId: string;
|
|
89892
89919
|
date?: Date | undefined;
|
|
89893
|
-
title?: string | undefined;
|
|
89894
89920
|
userId?: string | undefined;
|
|
89921
|
+
title?: string | undefined;
|
|
89895
89922
|
}[] | undefined;
|
|
89896
89923
|
};
|
|
89897
89924
|
}>;
|
|
@@ -90025,14 +90052,14 @@ declare const DTOIntegrationsGetListResponse: z.ZodObject<{
|
|
|
90025
90052
|
designSystemId: string;
|
|
90026
90053
|
brandId: string;
|
|
90027
90054
|
date?: Date | undefined;
|
|
90028
|
-
title?: string | undefined;
|
|
90029
90055
|
userId?: string | undefined;
|
|
90056
|
+
title?: string | undefined;
|
|
90030
90057
|
}, {
|
|
90031
90058
|
designSystemId: string;
|
|
90032
90059
|
brandId: string;
|
|
90033
90060
|
date?: Date | undefined;
|
|
90034
|
-
title?: string | undefined;
|
|
90035
90061
|
userId?: string | undefined;
|
|
90062
|
+
title?: string | undefined;
|
|
90036
90063
|
}>, "many">>;
|
|
90037
90064
|
}, "strip", z.ZodTypeAny, {
|
|
90038
90065
|
id: string;
|
|
@@ -90072,8 +90099,8 @@ declare const DTOIntegrationsGetListResponse: z.ZodObject<{
|
|
|
90072
90099
|
designSystemId: string;
|
|
90073
90100
|
brandId: string;
|
|
90074
90101
|
date?: Date | undefined;
|
|
90075
|
-
title?: string | undefined;
|
|
90076
90102
|
userId?: string | undefined;
|
|
90103
|
+
title?: string | undefined;
|
|
90077
90104
|
}[] | undefined;
|
|
90078
90105
|
}, {
|
|
90079
90106
|
id: string;
|
|
@@ -90113,8 +90140,8 @@ declare const DTOIntegrationsGetListResponse: z.ZodObject<{
|
|
|
90113
90140
|
designSystemId: string;
|
|
90114
90141
|
brandId: string;
|
|
90115
90142
|
date?: Date | undefined;
|
|
90116
|
-
title?: string | undefined;
|
|
90117
90143
|
userId?: string | undefined;
|
|
90144
|
+
title?: string | undefined;
|
|
90118
90145
|
}[] | undefined;
|
|
90119
90146
|
}>, "many">;
|
|
90120
90147
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -90156,8 +90183,8 @@ declare const DTOIntegrationsGetListResponse: z.ZodObject<{
|
|
|
90156
90183
|
designSystemId: string;
|
|
90157
90184
|
brandId: string;
|
|
90158
90185
|
date?: Date | undefined;
|
|
90159
|
-
title?: string | undefined;
|
|
90160
90186
|
userId?: string | undefined;
|
|
90187
|
+
title?: string | undefined;
|
|
90161
90188
|
}[] | undefined;
|
|
90162
90189
|
}[];
|
|
90163
90190
|
}, {
|
|
@@ -90199,8 +90226,8 @@ declare const DTOIntegrationsGetListResponse: z.ZodObject<{
|
|
|
90199
90226
|
designSystemId: string;
|
|
90200
90227
|
brandId: string;
|
|
90201
90228
|
date?: Date | undefined;
|
|
90202
|
-
title?: string | undefined;
|
|
90203
90229
|
userId?: string | undefined;
|
|
90230
|
+
title?: string | undefined;
|
|
90204
90231
|
}[] | undefined;
|
|
90205
90232
|
}[];
|
|
90206
90233
|
}>;
|
|
@@ -109707,9 +109734,9 @@ declare class WorkspaceChatThreadsEndpoint {
|
|
|
109707
109734
|
id: string;
|
|
109708
109735
|
createdAt: Date;
|
|
109709
109736
|
updatedAt: Date;
|
|
109737
|
+
userId: string;
|
|
109710
109738
|
title: string;
|
|
109711
109739
|
workspaceId: string;
|
|
109712
|
-
userId: string;
|
|
109713
109740
|
};
|
|
109714
109741
|
}>;
|
|
109715
109742
|
list(workspaceId: string, query?: DTOForgeChatThreadListQuery): Promise<{
|
|
@@ -109717,9 +109744,9 @@ declare class WorkspaceChatThreadsEndpoint {
|
|
|
109717
109744
|
id: string;
|
|
109718
109745
|
createdAt: Date;
|
|
109719
109746
|
updatedAt: Date;
|
|
109747
|
+
userId: string;
|
|
109720
109748
|
title: string;
|
|
109721
109749
|
workspaceId: string;
|
|
109722
|
-
userId: string;
|
|
109723
109750
|
}[];
|
|
109724
109751
|
pagination: {
|
|
109725
109752
|
limit: number;
|
|
@@ -109732,27 +109759,26 @@ declare class WorkspaceChatThreadsEndpoint {
|
|
|
109732
109759
|
id: string;
|
|
109733
109760
|
createdAt: Date;
|
|
109734
109761
|
updatedAt: Date;
|
|
109762
|
+
userId: string;
|
|
109735
109763
|
title: string;
|
|
109736
109764
|
workspaceId: string;
|
|
109737
|
-
userId: string;
|
|
109738
109765
|
};
|
|
109739
109766
|
}>;
|
|
109740
|
-
delete(workspaceId: string, threadId: string): Promise<
|
|
109741
|
-
success: boolean;
|
|
109742
|
-
}>;
|
|
109767
|
+
delete(workspaceId: string, threadId: string): Promise<any>;
|
|
109743
109768
|
}
|
|
109744
109769
|
declare class ChatThreadMessagesEndpoint {
|
|
109745
109770
|
private readonly requestExecutor;
|
|
109746
109771
|
constructor(requestExecutor: RequestExecutor);
|
|
109747
109772
|
list(workspaceId: string, threadId: string, query?: DTOForgeChatMessageListQuery): Promise<{
|
|
109748
109773
|
messages: {
|
|
109749
|
-
id:
|
|
109774
|
+
id: string;
|
|
109750
109775
|
createdAt: Date;
|
|
109751
109776
|
updatedAt: Date;
|
|
109752
|
-
threadId:
|
|
109777
|
+
threadId: string;
|
|
109753
109778
|
payload: string;
|
|
109754
109779
|
sender: {
|
|
109755
109780
|
type: "User";
|
|
109781
|
+
userId: string;
|
|
109756
109782
|
} | {
|
|
109757
109783
|
type: "Agent";
|
|
109758
109784
|
persona: "Amy";
|
|
@@ -109763,13 +109789,14 @@ declare class ChatThreadMessagesEndpoint {
|
|
|
109763
109789
|
}>;
|
|
109764
109790
|
create(workspaceId: string, threadId: string, body: DTOForgeChatMessageCreateInput): Promise<{
|
|
109765
109791
|
message: {
|
|
109766
|
-
id:
|
|
109792
|
+
id: string;
|
|
109767
109793
|
createdAt: Date;
|
|
109768
109794
|
updatedAt: Date;
|
|
109769
|
-
threadId:
|
|
109795
|
+
threadId: string;
|
|
109770
109796
|
payload: string;
|
|
109771
109797
|
sender: {
|
|
109772
109798
|
type: "User";
|
|
109799
|
+
userId: string;
|
|
109773
109800
|
} | {
|
|
109774
109801
|
type: "Agent";
|
|
109775
109802
|
persona: "Amy";
|
|
@@ -109820,8 +109847,8 @@ declare class WorkspaceIntegrationsEndpoint {
|
|
|
109820
109847
|
designSystemId: string;
|
|
109821
109848
|
brandId: string;
|
|
109822
109849
|
date?: Date | undefined;
|
|
109823
|
-
title?: string | undefined;
|
|
109824
109850
|
userId?: string | undefined;
|
|
109851
|
+
title?: string | undefined;
|
|
109825
109852
|
}[] | undefined;
|
|
109826
109853
|
}[];
|
|
109827
109854
|
}>;
|
|
@@ -111690,6 +111717,7 @@ type SupernovaApiClientConfig = {
|
|
|
111690
111717
|
accessToken: string;
|
|
111691
111718
|
};
|
|
111692
111719
|
declare class SupernovaApiClient {
|
|
111720
|
+
readonly config: SupernovaApiClientConfig;
|
|
111693
111721
|
readonly users: UsersEndpoint;
|
|
111694
111722
|
readonly workspaces: WorkspacesEndpoint;
|
|
111695
111723
|
readonly designSystems: DesignSystemsEndpoint;
|