@superinterface/react 3.27.3 → 3.28.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.cjs +39 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +39 -14
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.cts +20 -1
- package/dist/types/index.d.ts +20 -1
- package/package.json +1 -1
package/dist/types/index.d.cts
CHANGED
|
@@ -86,10 +86,29 @@ type ThreadStorageOptions = {
|
|
|
86
86
|
type UseCreateMessageTextVariables = {
|
|
87
87
|
content: string;
|
|
88
88
|
};
|
|
89
|
+
type ContentPart = {
|
|
90
|
+
type: 'text';
|
|
91
|
+
text: string;
|
|
92
|
+
} | {
|
|
93
|
+
type: 'image_file';
|
|
94
|
+
image_file: {
|
|
95
|
+
file_id: string;
|
|
96
|
+
detail?: string;
|
|
97
|
+
};
|
|
98
|
+
} | {
|
|
99
|
+
type: 'image_url';
|
|
100
|
+
image_url: {
|
|
101
|
+
url: string;
|
|
102
|
+
detail?: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
type UseCreateMessageContentPartsVariables = {
|
|
106
|
+
content: ContentPart[];
|
|
107
|
+
};
|
|
89
108
|
type UseCreateMessageAudioVariables = {
|
|
90
109
|
audioContent: unknown;
|
|
91
110
|
};
|
|
92
|
-
type UseCreateMessageVariables = (UseCreateMessageTextVariables | UseCreateMessageAudioVariables) & {
|
|
111
|
+
type UseCreateMessageVariables = (UseCreateMessageTextVariables | UseCreateMessageAudioVariables | UseCreateMessageContentPartsVariables) & {
|
|
93
112
|
[key: string]: any;
|
|
94
113
|
};
|
|
95
114
|
type PlayArgs = {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -86,10 +86,29 @@ type ThreadStorageOptions = {
|
|
|
86
86
|
type UseCreateMessageTextVariables = {
|
|
87
87
|
content: string;
|
|
88
88
|
};
|
|
89
|
+
type ContentPart = {
|
|
90
|
+
type: 'text';
|
|
91
|
+
text: string;
|
|
92
|
+
} | {
|
|
93
|
+
type: 'image_file';
|
|
94
|
+
image_file: {
|
|
95
|
+
file_id: string;
|
|
96
|
+
detail?: string;
|
|
97
|
+
};
|
|
98
|
+
} | {
|
|
99
|
+
type: 'image_url';
|
|
100
|
+
image_url: {
|
|
101
|
+
url: string;
|
|
102
|
+
detail?: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
type UseCreateMessageContentPartsVariables = {
|
|
106
|
+
content: ContentPart[];
|
|
107
|
+
};
|
|
89
108
|
type UseCreateMessageAudioVariables = {
|
|
90
109
|
audioContent: unknown;
|
|
91
110
|
};
|
|
92
|
-
type UseCreateMessageVariables = (UseCreateMessageTextVariables | UseCreateMessageAudioVariables) & {
|
|
111
|
+
type UseCreateMessageVariables = (UseCreateMessageTextVariables | UseCreateMessageAudioVariables | UseCreateMessageContentPartsVariables) & {
|
|
93
112
|
[key: string]: any;
|
|
94
113
|
};
|
|
95
114
|
type PlayArgs = {
|