@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.
@@ -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 = {
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superinterface/react",
3
- "version": "3.27.3",
3
+ "version": "3.28.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",