@superinterface/react 1.0.5 → 1.1.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/index-LPUEY9WE.d.ts +5 -0
- package/dist/index.d.ts +135 -130
- package/dist/index.js +940 -750
- package/dist/index.js.map +1 -1
- package/dist/mutationFns.d.ts +9 -4
- package/dist/mutationFns.js +21 -19
- package/dist/mutationFns.js.map +1 -1
- package/dist/queryFns.d.ts +6 -3
- package/dist/queryFns.js +29 -24
- package/dist/queryFns.js.map +1 -1
- package/dist/utils.d.ts +24 -0
- package/dist/{lib/index.js → utils.js} +48 -5
- package/dist/utils.js.map +1 -0
- package/package.json +2 -3
- package/dist/chunk-DP5XKPRM.mjs +0 -8
- package/dist/chunk-DP5XKPRM.mjs.map +0 -1
- package/dist/chunk-E4KDALPU.mjs +0 -11
- package/dist/chunk-E4KDALPU.mjs.map +0 -1
- package/dist/chunk-QPW4QQ26.mjs +0 -49
- package/dist/chunk-QPW4QQ26.mjs.map +0 -1
- package/dist/index.d.mts +0 -561
- package/dist/index.mjs +0 -1899
- package/dist/index.mjs.map +0 -1
- package/dist/lib/index.d.mts +0 -3
- package/dist/lib/index.d.ts +0 -3
- package/dist/lib/index.js.map +0 -1
- package/dist/lib/index.mjs +0 -7
- package/dist/lib/index.mjs.map +0 -1
- package/dist/mutationFns.d.mts +0 -31
- package/dist/mutationFns.mjs +0 -84
- package/dist/mutationFns.mjs.map +0 -1
- package/dist/queryFns.d.mts +0 -15
- package/dist/queryFns.mjs +0 -126
- package/dist/queryFns.mjs.map +0 -1
- package/dist/queryKeys.d.mts +0 -5
- package/dist/queryKeys.d.ts +0 -5
- package/dist/queryKeys.js +0 -38
- package/dist/queryKeys.js.map +0 -1
- package/dist/queryKeys.mjs +0 -9
- package/dist/queryKeys.mjs.map +0 -1
- package/dist/types/index.d.mts +0 -33
- package/dist/types/index.mjs +0 -1
- package/dist/types/index.mjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,50 +1,40 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { UseInfiniteQueryOptions, InfiniteData, UseMutationOptions } from '@tanstack/react-query';
|
|
3
|
-
export { QueryClient, QueryClientProvider, useQuery, useQueryClient } from '@tanstack/react-query';
|
|
4
|
-
import { MessagesPage, RunsPage, Run, Message } from './types/index.js';
|
|
5
2
|
import * as _tanstack_query_core_build_legacy_queryClient_bm_z2rsD from '@tanstack/query-core/build/legacy/queryClient-bm-z2rsD';
|
|
3
|
+
import { InfiniteData, UseInfiniteQueryOptions, UseMutationOptions } from '@tanstack/react-query';
|
|
4
|
+
import { Message, MessagesPage, RunsPage, Run } from './types/index.js';
|
|
6
5
|
import * as _tanstack_react_query_build_legacy_types from '@tanstack/react-query/build/legacy/types';
|
|
7
6
|
import * as openai_resources_beta_threads_runs_runs from 'openai/resources/beta/threads/runs/runs';
|
|
8
|
-
import '
|
|
7
|
+
import * as react from 'react';
|
|
8
|
+
import * as hast_util_to_jsx_runtime_lib_components from 'hast-util-to-jsx-runtime/lib/components';
|
|
9
|
+
import OpenAI from 'openai';
|
|
9
10
|
|
|
10
|
-
type Args$
|
|
11
|
-
messagesQueryOptions: UseInfiniteQueryOptions<InfiniteData<MessagesPage>>;
|
|
12
|
-
runsQueryOptions: UseInfiniteQueryOptions<InfiniteData<RunsPage>>;
|
|
13
|
-
createRunMutationOptions: UseMutationOptions<{
|
|
14
|
-
run: Run;
|
|
15
|
-
}>;
|
|
16
|
-
handleActionMutationOptions: UseMutationOptions<{
|
|
17
|
-
run: Run;
|
|
18
|
-
}>;
|
|
11
|
+
type Args$9 = {
|
|
19
12
|
children?: React.ReactNode;
|
|
13
|
+
[key: string]: any;
|
|
20
14
|
};
|
|
21
|
-
declare const Messages: ({
|
|
15
|
+
declare const Messages: ({ children, ...args }: Args$9) => react_jsx_runtime.JSX.Element;
|
|
22
16
|
|
|
23
|
-
type Args$
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
message: Message;
|
|
28
|
-
}>;
|
|
17
|
+
type Args$8 = {
|
|
18
|
+
emptyStateSuggestions?: string[];
|
|
19
|
+
suggestions?: string[];
|
|
20
|
+
[key: string]: any;
|
|
29
21
|
};
|
|
30
|
-
declare const
|
|
22
|
+
declare const Suggestions: ({ emptyStateSuggestions, suggestions, ...args }: Args$8) => react_jsx_runtime.JSX.Element | null;
|
|
31
23
|
|
|
32
|
-
type Args$
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
run: Run;
|
|
37
|
-
}>;
|
|
38
|
-
handleActionMutationOptions: UseMutationOptions<{
|
|
39
|
-
run: Run;
|
|
40
|
-
}>;
|
|
24
|
+
type Args$7 = {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
} | {
|
|
27
|
+
children?: React.ReactNode;
|
|
41
28
|
};
|
|
42
|
-
declare const
|
|
29
|
+
declare const Form: ({ children, ...args }?: Args$7) => react_jsx_runtime.JSX.Element;
|
|
43
30
|
|
|
44
|
-
type Args$
|
|
45
|
-
|
|
31
|
+
type Args$6 = {
|
|
32
|
+
[key: string]: any;
|
|
46
33
|
};
|
|
47
|
-
declare const
|
|
34
|
+
declare const useThreadLifecycles: (args: Args$6) => null;
|
|
35
|
+
|
|
36
|
+
type Args$5 = UseInfiniteQueryOptions<InfiniteData<MessagesPage>> | {};
|
|
37
|
+
declare const useMessages: (args?: Args$5) => {
|
|
48
38
|
messages: Message[];
|
|
49
39
|
data: undefined;
|
|
50
40
|
error: Error;
|
|
@@ -54,8 +44,8 @@ declare const useMessages: ({ messagesQueryOptions, }: Args$3) => {
|
|
|
54
44
|
isRefetchError: false;
|
|
55
45
|
isSuccess: false;
|
|
56
46
|
status: "error";
|
|
57
|
-
fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a3 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<
|
|
58
|
-
fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a4 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<
|
|
47
|
+
fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a3 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<unknown, unknown>, Error>>;
|
|
48
|
+
fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a4 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<unknown, unknown>, Error>>;
|
|
59
49
|
hasNextPage: boolean;
|
|
60
50
|
hasPreviousPage: boolean;
|
|
61
51
|
isFetchingNextPage: boolean;
|
|
@@ -74,7 +64,7 @@ declare const useMessages: ({ messagesQueryOptions, }: Args$3) => {
|
|
|
74
64
|
isPlaceholderData: boolean;
|
|
75
65
|
isRefetching: boolean;
|
|
76
66
|
isStale: boolean;
|
|
77
|
-
refetch: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD._ | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ad<InfiniteData<
|
|
67
|
+
refetch: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD._ | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ad<InfiniteData<unknown, unknown>, Error>>;
|
|
78
68
|
fetchStatus: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a6;
|
|
79
69
|
} | {
|
|
80
70
|
messages: Message[];
|
|
@@ -86,8 +76,8 @@ declare const useMessages: ({ messagesQueryOptions, }: Args$3) => {
|
|
|
86
76
|
isRefetchError: false;
|
|
87
77
|
isSuccess: false;
|
|
88
78
|
status: "pending";
|
|
89
|
-
fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a3 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<
|
|
90
|
-
fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a4 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<
|
|
79
|
+
fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a3 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<unknown, unknown>, Error>>;
|
|
80
|
+
fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a4 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<unknown, unknown>, Error>>;
|
|
91
81
|
hasNextPage: boolean;
|
|
92
82
|
hasPreviousPage: boolean;
|
|
93
83
|
isFetchingNextPage: boolean;
|
|
@@ -106,11 +96,11 @@ declare const useMessages: ({ messagesQueryOptions, }: Args$3) => {
|
|
|
106
96
|
isPlaceholderData: boolean;
|
|
107
97
|
isRefetching: boolean;
|
|
108
98
|
isStale: boolean;
|
|
109
|
-
refetch: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD._ | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ad<InfiniteData<
|
|
99
|
+
refetch: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD._ | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ad<InfiniteData<unknown, unknown>, Error>>;
|
|
110
100
|
fetchStatus: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a6;
|
|
111
101
|
} | {
|
|
112
102
|
messages: Message[];
|
|
113
|
-
data: InfiniteData<
|
|
103
|
+
data: InfiniteData<unknown, unknown>;
|
|
114
104
|
error: Error;
|
|
115
105
|
isError: true;
|
|
116
106
|
isPending: false;
|
|
@@ -118,8 +108,8 @@ declare const useMessages: ({ messagesQueryOptions, }: Args$3) => {
|
|
|
118
108
|
isRefetchError: true;
|
|
119
109
|
isSuccess: false;
|
|
120
110
|
status: "error";
|
|
121
|
-
fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a3 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<
|
|
122
|
-
fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a4 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<
|
|
111
|
+
fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a3 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<unknown, unknown>, Error>>;
|
|
112
|
+
fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a4 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<unknown, unknown>, Error>>;
|
|
123
113
|
hasNextPage: boolean;
|
|
124
114
|
hasPreviousPage: boolean;
|
|
125
115
|
isFetchingNextPage: boolean;
|
|
@@ -138,11 +128,11 @@ declare const useMessages: ({ messagesQueryOptions, }: Args$3) => {
|
|
|
138
128
|
isPlaceholderData: boolean;
|
|
139
129
|
isRefetching: boolean;
|
|
140
130
|
isStale: boolean;
|
|
141
|
-
refetch: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD._ | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ad<InfiniteData<
|
|
131
|
+
refetch: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD._ | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ad<InfiniteData<unknown, unknown>, Error>>;
|
|
142
132
|
fetchStatus: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a6;
|
|
143
133
|
} | {
|
|
144
134
|
messages: Message[];
|
|
145
|
-
data: InfiniteData<
|
|
135
|
+
data: InfiniteData<unknown, unknown>;
|
|
146
136
|
error: null;
|
|
147
137
|
isError: false;
|
|
148
138
|
isPending: false;
|
|
@@ -150,8 +140,8 @@ declare const useMessages: ({ messagesQueryOptions, }: Args$3) => {
|
|
|
150
140
|
isRefetchError: false;
|
|
151
141
|
isSuccess: true;
|
|
152
142
|
status: "success";
|
|
153
|
-
fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a3 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<
|
|
154
|
-
fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a4 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<
|
|
143
|
+
fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a3 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<unknown, unknown>, Error>>;
|
|
144
|
+
fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a4 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<unknown, unknown>, Error>>;
|
|
155
145
|
hasNextPage: boolean;
|
|
156
146
|
hasPreviousPage: boolean;
|
|
157
147
|
isFetchingNextPage: boolean;
|
|
@@ -170,14 +160,12 @@ declare const useMessages: ({ messagesQueryOptions, }: Args$3) => {
|
|
|
170
160
|
isPlaceholderData: boolean;
|
|
171
161
|
isRefetching: boolean;
|
|
172
162
|
isStale: boolean;
|
|
173
|
-
refetch: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD._ | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ad<InfiniteData<
|
|
163
|
+
refetch: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD._ | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ad<InfiniteData<unknown, unknown>, Error>>;
|
|
174
164
|
fetchStatus: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a6;
|
|
175
165
|
};
|
|
176
166
|
|
|
177
|
-
type Args$
|
|
178
|
-
|
|
179
|
-
};
|
|
180
|
-
declare const useLatestMessage: (args: Args$2) => {
|
|
167
|
+
type Args$4 = UseInfiniteQueryOptions<InfiniteData<MessagesPage>> | {};
|
|
168
|
+
declare const useLatestMessage: (args?: Args$4) => {
|
|
181
169
|
latestMessage: Message;
|
|
182
170
|
messages: Message[];
|
|
183
171
|
data: undefined;
|
|
@@ -188,8 +176,8 @@ declare const useLatestMessage: (args: Args$2) => {
|
|
|
188
176
|
isRefetchError: false;
|
|
189
177
|
isSuccess: false;
|
|
190
178
|
status: "error";
|
|
191
|
-
fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a3 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<
|
|
192
|
-
fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a4 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<
|
|
179
|
+
fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a3 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<unknown, unknown>, Error>>;
|
|
180
|
+
fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a4 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<unknown, unknown>, Error>>;
|
|
193
181
|
hasNextPage: boolean;
|
|
194
182
|
hasPreviousPage: boolean;
|
|
195
183
|
isFetchingNextPage: boolean;
|
|
@@ -208,7 +196,7 @@ declare const useLatestMessage: (args: Args$2) => {
|
|
|
208
196
|
isPlaceholderData: boolean;
|
|
209
197
|
isRefetching: boolean;
|
|
210
198
|
isStale: boolean;
|
|
211
|
-
refetch: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD._ | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ad<InfiniteData<
|
|
199
|
+
refetch: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD._ | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ad<InfiniteData<unknown, unknown>, Error>>;
|
|
212
200
|
fetchStatus: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a6;
|
|
213
201
|
} | {
|
|
214
202
|
latestMessage: Message;
|
|
@@ -221,8 +209,8 @@ declare const useLatestMessage: (args: Args$2) => {
|
|
|
221
209
|
isRefetchError: false;
|
|
222
210
|
isSuccess: false;
|
|
223
211
|
status: "pending";
|
|
224
|
-
fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a3 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<
|
|
225
|
-
fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a4 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<
|
|
212
|
+
fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a3 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<unknown, unknown>, Error>>;
|
|
213
|
+
fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a4 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<unknown, unknown>, Error>>;
|
|
226
214
|
hasNextPage: boolean;
|
|
227
215
|
hasPreviousPage: boolean;
|
|
228
216
|
isFetchingNextPage: boolean;
|
|
@@ -241,12 +229,12 @@ declare const useLatestMessage: (args: Args$2) => {
|
|
|
241
229
|
isPlaceholderData: boolean;
|
|
242
230
|
isRefetching: boolean;
|
|
243
231
|
isStale: boolean;
|
|
244
|
-
refetch: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD._ | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ad<InfiniteData<
|
|
232
|
+
refetch: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD._ | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ad<InfiniteData<unknown, unknown>, Error>>;
|
|
245
233
|
fetchStatus: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a6;
|
|
246
234
|
} | {
|
|
247
235
|
latestMessage: Message;
|
|
248
236
|
messages: Message[];
|
|
249
|
-
data: InfiniteData<
|
|
237
|
+
data: InfiniteData<unknown, unknown>;
|
|
250
238
|
error: Error;
|
|
251
239
|
isError: true;
|
|
252
240
|
isPending: false;
|
|
@@ -254,8 +242,8 @@ declare const useLatestMessage: (args: Args$2) => {
|
|
|
254
242
|
isRefetchError: true;
|
|
255
243
|
isSuccess: false;
|
|
256
244
|
status: "error";
|
|
257
|
-
fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a3 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<
|
|
258
|
-
fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a4 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<
|
|
245
|
+
fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a3 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<unknown, unknown>, Error>>;
|
|
246
|
+
fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a4 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<unknown, unknown>, Error>>;
|
|
259
247
|
hasNextPage: boolean;
|
|
260
248
|
hasPreviousPage: boolean;
|
|
261
249
|
isFetchingNextPage: boolean;
|
|
@@ -274,12 +262,12 @@ declare const useLatestMessage: (args: Args$2) => {
|
|
|
274
262
|
isPlaceholderData: boolean;
|
|
275
263
|
isRefetching: boolean;
|
|
276
264
|
isStale: boolean;
|
|
277
|
-
refetch: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD._ | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ad<InfiniteData<
|
|
265
|
+
refetch: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD._ | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ad<InfiniteData<unknown, unknown>, Error>>;
|
|
278
266
|
fetchStatus: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a6;
|
|
279
267
|
} | {
|
|
280
268
|
latestMessage: Message;
|
|
281
269
|
messages: Message[];
|
|
282
|
-
data: InfiniteData<
|
|
270
|
+
data: InfiniteData<unknown, unknown>;
|
|
283
271
|
error: null;
|
|
284
272
|
isError: false;
|
|
285
273
|
isPending: false;
|
|
@@ -287,8 +275,8 @@ declare const useLatestMessage: (args: Args$2) => {
|
|
|
287
275
|
isRefetchError: false;
|
|
288
276
|
isSuccess: true;
|
|
289
277
|
status: "success";
|
|
290
|
-
fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a3 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<
|
|
291
|
-
fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a4 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<
|
|
278
|
+
fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a3 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<unknown, unknown>, Error>>;
|
|
279
|
+
fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a4 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<InfiniteData<unknown, unknown>, Error>>;
|
|
292
280
|
hasNextPage: boolean;
|
|
293
281
|
hasPreviousPage: boolean;
|
|
294
282
|
isFetchingNextPage: boolean;
|
|
@@ -307,19 +295,15 @@ declare const useLatestMessage: (args: Args$2) => {
|
|
|
307
295
|
isPlaceholderData: boolean;
|
|
308
296
|
isRefetching: boolean;
|
|
309
297
|
isStale: boolean;
|
|
310
|
-
refetch: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD._ | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ad<InfiniteData<
|
|
298
|
+
refetch: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD._ | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ad<InfiniteData<unknown, unknown>, Error>>;
|
|
311
299
|
fetchStatus: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a6;
|
|
312
300
|
};
|
|
313
301
|
|
|
314
|
-
type Args$
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
declare const useCreateMessage: ({ createMessageMutationOptions, }: Args$1) => {
|
|
320
|
-
createMessage: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<{
|
|
321
|
-
message: Message;
|
|
322
|
-
}, Error, void, unknown>;
|
|
302
|
+
type Args$3 = (args: any) => UseMutationOptions<{
|
|
303
|
+
message: Message;
|
|
304
|
+
}>;
|
|
305
|
+
declare const useCreateMessage: (args?: Args$3) => {
|
|
306
|
+
createMessage: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<unknown, Error, void, unknown>;
|
|
323
307
|
data: undefined;
|
|
324
308
|
variables: undefined;
|
|
325
309
|
error: null;
|
|
@@ -328,22 +312,16 @@ declare const useCreateMessage: ({ createMessageMutationOptions, }: Args$1) => {
|
|
|
328
312
|
isPending: false;
|
|
329
313
|
isSuccess: false;
|
|
330
314
|
status: "idle";
|
|
331
|
-
mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<
|
|
332
|
-
message: Message;
|
|
333
|
-
}, Error, void, unknown>;
|
|
315
|
+
mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<unknown, Error, void, unknown>;
|
|
334
316
|
reset: () => void;
|
|
335
317
|
context: unknown;
|
|
336
318
|
failureCount: number;
|
|
337
319
|
failureReason: Error | null;
|
|
338
320
|
isPaused: boolean;
|
|
339
321
|
submittedAt: number;
|
|
340
|
-
mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<
|
|
341
|
-
message: Message;
|
|
342
|
-
}, Error, void, unknown>;
|
|
322
|
+
mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<unknown, Error, void, unknown>;
|
|
343
323
|
} | {
|
|
344
|
-
createMessage: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<
|
|
345
|
-
message: Message;
|
|
346
|
-
}, Error, void, unknown>;
|
|
324
|
+
createMessage: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<unknown, Error, void, unknown>;
|
|
347
325
|
data: undefined;
|
|
348
326
|
variables: void;
|
|
349
327
|
error: null;
|
|
@@ -352,22 +330,16 @@ declare const useCreateMessage: ({ createMessageMutationOptions, }: Args$1) => {
|
|
|
352
330
|
isPending: true;
|
|
353
331
|
isSuccess: false;
|
|
354
332
|
status: "pending";
|
|
355
|
-
mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<
|
|
356
|
-
message: Message;
|
|
357
|
-
}, Error, void, unknown>;
|
|
333
|
+
mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<unknown, Error, void, unknown>;
|
|
358
334
|
reset: () => void;
|
|
359
335
|
context: unknown;
|
|
360
336
|
failureCount: number;
|
|
361
337
|
failureReason: Error | null;
|
|
362
338
|
isPaused: boolean;
|
|
363
339
|
submittedAt: number;
|
|
364
|
-
mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<
|
|
365
|
-
message: Message;
|
|
366
|
-
}, Error, void, unknown>;
|
|
340
|
+
mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<unknown, Error, void, unknown>;
|
|
367
341
|
} | {
|
|
368
|
-
createMessage: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<
|
|
369
|
-
message: Message;
|
|
370
|
-
}, Error, void, unknown>;
|
|
342
|
+
createMessage: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<unknown, Error, void, unknown>;
|
|
371
343
|
data: undefined;
|
|
372
344
|
error: Error;
|
|
373
345
|
variables: void;
|
|
@@ -376,25 +348,17 @@ declare const useCreateMessage: ({ createMessageMutationOptions, }: Args$1) => {
|
|
|
376
348
|
isPending: false;
|
|
377
349
|
isSuccess: false;
|
|
378
350
|
status: "error";
|
|
379
|
-
mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<
|
|
380
|
-
message: Message;
|
|
381
|
-
}, Error, void, unknown>;
|
|
351
|
+
mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<unknown, Error, void, unknown>;
|
|
382
352
|
reset: () => void;
|
|
383
353
|
context: unknown;
|
|
384
354
|
failureCount: number;
|
|
385
355
|
failureReason: Error | null;
|
|
386
356
|
isPaused: boolean;
|
|
387
357
|
submittedAt: number;
|
|
388
|
-
mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<
|
|
389
|
-
message: Message;
|
|
390
|
-
}, Error, void, unknown>;
|
|
358
|
+
mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<unknown, Error, void, unknown>;
|
|
391
359
|
} | {
|
|
392
|
-
createMessage: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<
|
|
393
|
-
|
|
394
|
-
}, Error, void, unknown>;
|
|
395
|
-
data: {
|
|
396
|
-
message: Message;
|
|
397
|
-
};
|
|
360
|
+
createMessage: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<unknown, Error, void, unknown>;
|
|
361
|
+
data: unknown;
|
|
398
362
|
error: null;
|
|
399
363
|
variables: void;
|
|
400
364
|
isError: false;
|
|
@@ -402,25 +366,20 @@ declare const useCreateMessage: ({ createMessageMutationOptions, }: Args$1) => {
|
|
|
402
366
|
isPending: false;
|
|
403
367
|
isSuccess: true;
|
|
404
368
|
status: "success";
|
|
405
|
-
mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<
|
|
406
|
-
message: Message;
|
|
407
|
-
}, Error, void, unknown>;
|
|
369
|
+
mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<unknown, Error, void, unknown>;
|
|
408
370
|
reset: () => void;
|
|
409
371
|
context: unknown;
|
|
410
372
|
failureCount: number;
|
|
411
373
|
failureReason: Error | null;
|
|
412
374
|
isPaused: boolean;
|
|
413
375
|
submittedAt: number;
|
|
414
|
-
mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<
|
|
415
|
-
message: Message;
|
|
416
|
-
}, Error, void, unknown>;
|
|
376
|
+
mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<unknown, Error, void, unknown>;
|
|
417
377
|
};
|
|
418
378
|
|
|
419
|
-
type Args = {
|
|
420
|
-
|
|
421
|
-
runsQueryOptions: UseInfiniteQueryOptions<InfiniteData<RunsPage>>;
|
|
379
|
+
type Args$2 = {
|
|
380
|
+
[key: string]: any;
|
|
422
381
|
};
|
|
423
|
-
declare const useIsRunActive: (
|
|
382
|
+
declare const useIsRunActive: (args: Args$2) => {
|
|
424
383
|
isRunActive: boolean;
|
|
425
384
|
latestRun: openai_resources_beta_threads_runs_runs.Run;
|
|
426
385
|
runs: openai_resources_beta_threads_runs_runs.Run[];
|
|
@@ -432,8 +391,8 @@ declare const useIsRunActive: ({ messagesQueryOptions, runsQueryOptions, }: Args
|
|
|
432
391
|
isRefetchError: false;
|
|
433
392
|
isSuccess: false;
|
|
434
393
|
status: "error";
|
|
435
|
-
fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a3 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<
|
|
436
|
-
fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a4 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<
|
|
394
|
+
fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a3 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.A<unknown, unknown>, Error>>;
|
|
395
|
+
fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a4 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.A<unknown, unknown>, Error>>;
|
|
437
396
|
hasNextPage: boolean;
|
|
438
397
|
hasPreviousPage: boolean;
|
|
439
398
|
isFetchingNextPage: boolean;
|
|
@@ -452,7 +411,7 @@ declare const useIsRunActive: ({ messagesQueryOptions, runsQueryOptions, }: Args
|
|
|
452
411
|
isPlaceholderData: boolean;
|
|
453
412
|
isRefetching: boolean;
|
|
454
413
|
isStale: boolean;
|
|
455
|
-
refetch: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD._ | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ad<
|
|
414
|
+
refetch: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD._ | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ad<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.A<unknown, unknown>, Error>>;
|
|
456
415
|
fetchStatus: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a6;
|
|
457
416
|
} | {
|
|
458
417
|
isRunActive: boolean;
|
|
@@ -466,8 +425,8 @@ declare const useIsRunActive: ({ messagesQueryOptions, runsQueryOptions, }: Args
|
|
|
466
425
|
isRefetchError: false;
|
|
467
426
|
isSuccess: false;
|
|
468
427
|
status: "pending";
|
|
469
|
-
fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a3 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<
|
|
470
|
-
fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a4 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<
|
|
428
|
+
fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a3 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.A<unknown, unknown>, Error>>;
|
|
429
|
+
fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a4 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.A<unknown, unknown>, Error>>;
|
|
471
430
|
hasNextPage: boolean;
|
|
472
431
|
hasPreviousPage: boolean;
|
|
473
432
|
isFetchingNextPage: boolean;
|
|
@@ -486,13 +445,13 @@ declare const useIsRunActive: ({ messagesQueryOptions, runsQueryOptions, }: Args
|
|
|
486
445
|
isPlaceholderData: boolean;
|
|
487
446
|
isRefetching: boolean;
|
|
488
447
|
isStale: boolean;
|
|
489
|
-
refetch: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD._ | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ad<
|
|
448
|
+
refetch: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD._ | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ad<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.A<unknown, unknown>, Error>>;
|
|
490
449
|
fetchStatus: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a6;
|
|
491
450
|
} | {
|
|
492
451
|
isRunActive: boolean;
|
|
493
452
|
latestRun: openai_resources_beta_threads_runs_runs.Run;
|
|
494
453
|
runs: openai_resources_beta_threads_runs_runs.Run[];
|
|
495
|
-
data:
|
|
454
|
+
data: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.A<unknown, unknown>;
|
|
496
455
|
error: Error;
|
|
497
456
|
isError: true;
|
|
498
457
|
isPending: false;
|
|
@@ -500,8 +459,8 @@ declare const useIsRunActive: ({ messagesQueryOptions, runsQueryOptions, }: Args
|
|
|
500
459
|
isRefetchError: true;
|
|
501
460
|
isSuccess: false;
|
|
502
461
|
status: "error";
|
|
503
|
-
fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a3 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<
|
|
504
|
-
fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a4 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<
|
|
462
|
+
fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a3 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.A<unknown, unknown>, Error>>;
|
|
463
|
+
fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a4 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.A<unknown, unknown>, Error>>;
|
|
505
464
|
hasNextPage: boolean;
|
|
506
465
|
hasPreviousPage: boolean;
|
|
507
466
|
isFetchingNextPage: boolean;
|
|
@@ -520,13 +479,13 @@ declare const useIsRunActive: ({ messagesQueryOptions, runsQueryOptions, }: Args
|
|
|
520
479
|
isPlaceholderData: boolean;
|
|
521
480
|
isRefetching: boolean;
|
|
522
481
|
isStale: boolean;
|
|
523
|
-
refetch: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD._ | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ad<
|
|
482
|
+
refetch: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD._ | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ad<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.A<unknown, unknown>, Error>>;
|
|
524
483
|
fetchStatus: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a6;
|
|
525
484
|
} | {
|
|
526
485
|
isRunActive: boolean;
|
|
527
486
|
latestRun: openai_resources_beta_threads_runs_runs.Run;
|
|
528
487
|
runs: openai_resources_beta_threads_runs_runs.Run[];
|
|
529
|
-
data:
|
|
488
|
+
data: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.A<unknown, unknown>;
|
|
530
489
|
error: null;
|
|
531
490
|
isError: false;
|
|
532
491
|
isPending: false;
|
|
@@ -534,8 +493,8 @@ declare const useIsRunActive: ({ messagesQueryOptions, runsQueryOptions, }: Args
|
|
|
534
493
|
isRefetchError: false;
|
|
535
494
|
isSuccess: true;
|
|
536
495
|
status: "success";
|
|
537
|
-
fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a3 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<
|
|
538
|
-
fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a4 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<
|
|
496
|
+
fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a3 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.A<unknown, unknown>, Error>>;
|
|
497
|
+
fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a4 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ak<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.A<unknown, unknown>, Error>>;
|
|
539
498
|
hasNextPage: boolean;
|
|
540
499
|
hasPreviousPage: boolean;
|
|
541
500
|
isFetchingNextPage: boolean;
|
|
@@ -554,8 +513,54 @@ declare const useIsRunActive: ({ messagesQueryOptions, runsQueryOptions, }: Args
|
|
|
554
513
|
isPlaceholderData: boolean;
|
|
555
514
|
isRefetching: boolean;
|
|
556
515
|
isStale: boolean;
|
|
557
|
-
refetch: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD._ | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ad<
|
|
516
|
+
refetch: (options?: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD._ | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.ad<_tanstack_query_core_build_legacy_queryClient_bm_z2rsD.A<unknown, unknown>, Error>>;
|
|
558
517
|
fetchStatus: _tanstack_query_core_build_legacy_queryClient_bm_z2rsD.a6;
|
|
559
518
|
};
|
|
560
519
|
|
|
561
|
-
|
|
520
|
+
type Args$1 = {
|
|
521
|
+
children: React.ReactNode;
|
|
522
|
+
queryOptions: {
|
|
523
|
+
messages: UseInfiniteQueryOptions<InfiniteData<MessagesPage>>;
|
|
524
|
+
runs: UseInfiniteQueryOptions<InfiniteData<RunsPage>>;
|
|
525
|
+
};
|
|
526
|
+
mutationOptions: {
|
|
527
|
+
createMessage: UseMutationOptions<{
|
|
528
|
+
message: Message;
|
|
529
|
+
}>;
|
|
530
|
+
createRun: UseMutationOptions<{
|
|
531
|
+
run: Run;
|
|
532
|
+
}>;
|
|
533
|
+
handleAction: UseMutationOptions<{
|
|
534
|
+
run: Run;
|
|
535
|
+
}>;
|
|
536
|
+
};
|
|
537
|
+
};
|
|
538
|
+
declare const SuperinterfaceProvider: ({ children, ...rest }: Args$1) => react_jsx_runtime.JSX.Element;
|
|
539
|
+
|
|
540
|
+
declare const AssistantAvatarContext: react.Context<react_jsx_runtime.JSX.Element>;
|
|
541
|
+
|
|
542
|
+
declare const AssistantNameContext: react.Context<string>;
|
|
543
|
+
|
|
544
|
+
type FunctionComponents = {
|
|
545
|
+
[key: string]: React.ReactNode;
|
|
546
|
+
};
|
|
547
|
+
declare const FunctionComponentsContext: react.Context<FunctionComponents>;
|
|
548
|
+
|
|
549
|
+
declare const MarkdownContext: react.Context<{
|
|
550
|
+
remarkPlugins: any[];
|
|
551
|
+
components: Partial<hast_util_to_jsx_runtime_lib_components.Components>;
|
|
552
|
+
}>;
|
|
553
|
+
|
|
554
|
+
declare const useMarkdownContext: () => {
|
|
555
|
+
remarkPlugins: any[];
|
|
556
|
+
components: Partial<hast_util_to_jsx_runtime_lib_components.Components>;
|
|
557
|
+
};
|
|
558
|
+
|
|
559
|
+
type Args = {
|
|
560
|
+
fn: OpenAI.Beta.Threads.Runs.FunctionToolCall.Function;
|
|
561
|
+
runStep: OpenAI.Beta.Threads.Runs.RunStep;
|
|
562
|
+
title: string;
|
|
563
|
+
};
|
|
564
|
+
declare const FunctionBase: ({ fn, runStep, title, }: Args) => react_jsx_runtime.JSX.Element;
|
|
565
|
+
|
|
566
|
+
export { AssistantAvatarContext, AssistantNameContext, Form, FunctionBase, FunctionComponentsContext, MarkdownContext, Messages, Suggestions, SuperinterfaceProvider, useCreateMessage, useIsRunActive, useLatestMessage, useMarkdownContext, useMessages, useThreadLifecycles };
|