@superinterface/react 4.2.0 → 4.2.2

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'> & {
@@ -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'> & {
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.2.0",
3
+ "version": "4.2.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",