@superinterface/react 4.1.2 → 4.2.1

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/server.d.cts CHANGED
@@ -1,6 +1,7 @@
1
1
  import OpenAI from 'openai';
2
2
  import { MessagesPage } from './types/index.cjs';
3
3
  import * as openai_resources_shared from 'openai/resources/shared';
4
+ import './enums/index.cjs';
4
5
 
5
6
  type Args$1 = {
6
7
  client: OpenAI;
package/dist/server.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import OpenAI from 'openai';
2
2
  import { MessagesPage } from './types/index.js';
3
3
  import * as openai_resources_shared from 'openai/resources/shared';
4
+ import './enums/index.js';
4
5
 
5
6
  type Args$1 = {
6
7
  client: OpenAI;
@@ -1,23 +1,5 @@
1
1
  import OpenAI from 'openai';
2
-
3
- declare enum IconAvatarName {
4
- BACKPACK = "BACKPACK",
5
- ROCKET = "ROCKET",
6
- MAGIC_WAND = "MAGIC_WAND",
7
- CUBE = "CUBE",
8
- TARGET = "TARGET",
9
- DISC = "DISC",
10
- GLOBE = "GLOBE",
11
- STAR = "STAR",
12
- LIGHTNING_BOLT = "LIGHTNING_BOLT",
13
- FACE = "FACE",
14
- PERSON = "PERSON",
15
- HEART = "HEART"
16
- }
17
- declare enum AvatarType {
18
- ICON = "ICON",
19
- IMAGE = "IMAGE"
20
- }
2
+ import { AvatarType, IconAvatarName } from '../enums/index.cjs';
21
3
 
22
4
  type SerializedRunStep = Pick<OpenAI.Beta.Threads.Runs.RunStep, 'id' | 'run_id' | 'step_details' | 'completed_at' | 'cancelled_at' | 'failed_at' | 'status'>;
23
5
  type SerializedMessage = Pick<OpenAI.Beta.Threads.Messages.Message, 'id' | 'role' | 'created_at' | 'content' | 'run_id' | 'assistant_id' | 'thread_id' | 'attachments' | 'metadata' | 'status'> & {
@@ -170,4 +152,4 @@ type Task = {
170
152
  updatedAt: string;
171
153
  };
172
154
 
173
- export { type AssistantAudioControls, type AudioEngine, type AudioRuntime, type Avatar, AvatarType, type IconAvatar, IconAvatarName, type ImageAvatar, type MessageGroup, type MessagesPage, type MessagesQueryKey, type PlayArgs, type RecurrenceRule, type Schedule, type SerializedMessage, type SerializedRunStep, type Size, type StyleProps, type Task, type ThreadMessageCompletedEvent, type ThreadMessageCreatedEvent, type ThreadRunStepDeltaEvent, type ThreadStorageOptions, type Toast, type ToolCall, type UseCreateMessageVariables, type UserAudioControls };
155
+ export type { AssistantAudioControls, AudioEngine, AudioRuntime, Avatar, IconAvatar, ImageAvatar, MessageGroup, MessagesPage, MessagesQueryKey, PlayArgs, RecurrenceRule, Schedule, SerializedMessage, SerializedRunStep, Size, StyleProps, Task, ThreadMessageCompletedEvent, ThreadMessageCreatedEvent, ThreadRunStepDeltaEvent, ThreadStorageOptions, Toast, ToolCall, UseCreateMessageVariables, UserAudioControls };
@@ -1,23 +1,5 @@
1
1
  import OpenAI from 'openai';
2
-
3
- declare enum IconAvatarName {
4
- BACKPACK = "BACKPACK",
5
- ROCKET = "ROCKET",
6
- MAGIC_WAND = "MAGIC_WAND",
7
- CUBE = "CUBE",
8
- TARGET = "TARGET",
9
- DISC = "DISC",
10
- GLOBE = "GLOBE",
11
- STAR = "STAR",
12
- LIGHTNING_BOLT = "LIGHTNING_BOLT",
13
- FACE = "FACE",
14
- PERSON = "PERSON",
15
- HEART = "HEART"
16
- }
17
- declare enum AvatarType {
18
- ICON = "ICON",
19
- IMAGE = "IMAGE"
20
- }
2
+ import { AvatarType, IconAvatarName } from '../enums/index.js';
21
3
 
22
4
  type SerializedRunStep = Pick<OpenAI.Beta.Threads.Runs.RunStep, 'id' | 'run_id' | 'step_details' | 'completed_at' | 'cancelled_at' | 'failed_at' | 'status'>;
23
5
  type SerializedMessage = Pick<OpenAI.Beta.Threads.Messages.Message, 'id' | 'role' | 'created_at' | 'content' | 'run_id' | 'assistant_id' | 'thread_id' | 'attachments' | 'metadata' | 'status'> & {
@@ -170,4 +152,4 @@ type Task = {
170
152
  updatedAt: string;
171
153
  };
172
154
 
173
- export { type AssistantAudioControls, type AudioEngine, type AudioRuntime, type Avatar, AvatarType, type IconAvatar, IconAvatarName, type ImageAvatar, type MessageGroup, type MessagesPage, type MessagesQueryKey, type PlayArgs, type RecurrenceRule, type Schedule, type SerializedMessage, type SerializedRunStep, type Size, type StyleProps, type Task, type ThreadMessageCompletedEvent, type ThreadMessageCreatedEvent, type ThreadRunStepDeltaEvent, type ThreadStorageOptions, type Toast, type ToolCall, type UseCreateMessageVariables, type UserAudioControls };
155
+ export type { AssistantAudioControls, AudioEngine, AudioRuntime, Avatar, IconAvatar, ImageAvatar, MessageGroup, MessagesPage, MessagesQueryKey, PlayArgs, RecurrenceRule, Schedule, SerializedMessage, SerializedRunStep, Size, StyleProps, Task, ThreadMessageCompletedEvent, ThreadMessageCreatedEvent, ThreadRunStepDeltaEvent, ThreadStorageOptions, Toast, ToolCall, UseCreateMessageVariables, UserAudioControls };
package/dist/utils.d.cts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as openai_resources_shared from 'openai/resources/shared';
2
2
  import OpenAI from 'openai';
3
3
  import { ThreadStorageOptions } from './types/index.cjs';
4
+ import './enums/index.cjs';
4
5
 
5
6
  declare const optimisticId: () => string;
6
7
 
package/dist/utils.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as openai_resources_shared from 'openai/resources/shared';
2
2
  import OpenAI from 'openai';
3
3
  import { ThreadStorageOptions } from './types/index.js';
4
+ import './enums/index.js';
4
5
 
5
6
  declare const optimisticId: () => string;
6
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superinterface/react",
3
- "version": "4.1.2",
3
+ "version": "4.2.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -8,6 +8,7 @@
8
8
  "exports": {
9
9
  ".": "./dist/index.js",
10
10
  "./*": "./dist/*.js",
11
+ "./enums": "./dist/enums/index.js",
11
12
  "./types": "./dist/types/index.js"
12
13
  },
13
14
  "files": [