@superinterface/react 1.1.8 → 2.0.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.
@@ -0,0 +1,1220 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ThreadMessagesPage, ThreadMessage } from './types/index.cjs';
3
+ import { UseInfiniteQueryOptions, InfiniteData, UseMutationOptions } from '@tanstack/react-query';
4
+ import * as react from 'react';
5
+ import * as _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw from '@tanstack/query-core/build/legacy/queryClient-Ho-z40Sw';
6
+ import { UseFormProps } from 'react-hook-form';
7
+ import * as _tanstack_react_query_build_legacy_types from '@tanstack/react-query/build/legacy/types';
8
+ import * as openai_resources_beta_threads_runs_runs from 'openai/resources/beta/threads/runs/runs';
9
+ import OpenAI from 'openai';
10
+
11
+ type Args$8 = {
12
+ children: React.ReactNode;
13
+ baseUrl?: string;
14
+ publicApiKey?: string;
15
+ variables?: {
16
+ [key: string]: any;
17
+ };
18
+ defaultOptions?: {
19
+ queries?: UseInfiniteQueryOptions<InfiniteData<ThreadMessagesPage>>;
20
+ mutations?: UseMutationOptions;
21
+ };
22
+ };
23
+ declare const SuperinterfaceProvider: ({ children, baseUrl, publicApiKey, variables, defaultOptions, }: Args$8) => react_jsx_runtime.JSX.Element;
24
+
25
+ declare const useSuperinterfaceContext: () => {
26
+ baseUrl: string;
27
+ variables: {};
28
+ defaultOptions: {
29
+ queries: {};
30
+ mutations: {};
31
+ };
32
+ };
33
+
34
+ type Args$7 = Omit<Args$8, 'children'>;
35
+ declare const Thread: (props: Args$7) => react_jsx_runtime.JSX.Element;
36
+
37
+ declare const useThreadLifecycles: () => null;
38
+
39
+ declare const ThreadDialog: {
40
+ (): react_jsx_runtime.JSX.Element;
41
+ Root: ({ children, style, }: {
42
+ children: react.ReactNode;
43
+ style?: react.CSSProperties | undefined;
44
+ }) => react_jsx_runtime.JSX.Element;
45
+ Trigger: ({ children, }: {
46
+ children: react.ReactNode;
47
+ }) => react_jsx_runtime.JSX.Element;
48
+ Button: () => react_jsx_runtime.JSX.Element;
49
+ Content: ({ children, }: {
50
+ children: react.ReactNode;
51
+ }) => react_jsx_runtime.JSX.Element | null;
52
+ };
53
+
54
+ type Args$6 = {
55
+ children: React.ReactNode;
56
+ };
57
+
58
+ type Args$5 = Omit<Args$6, 'children'>;
59
+ declare const AudioThread: {
60
+ (props: Args$5): react_jsx_runtime.JSX.Element;
61
+ Root: ({ children, }: Args$6) => react_jsx_runtime.JSX.Element;
62
+ Visualization: () => react_jsx_runtime.JSX.Element;
63
+ Form: () => react_jsx_runtime.JSX.Element;
64
+ };
65
+
66
+ declare const AudioThreadDialog: {
67
+ (): react_jsx_runtime.JSX.Element;
68
+ Root: ({ children, style, }: {
69
+ children: react.ReactNode;
70
+ style?: react.CSSProperties | undefined;
71
+ }) => react_jsx_runtime.JSX.Element;
72
+ Trigger: ({ children, }: {
73
+ children: react.ReactNode;
74
+ }) => react_jsx_runtime.JSX.Element;
75
+ Button: () => react_jsx_runtime.JSX.Element;
76
+ Content: ({ children, }: {
77
+ children: react.ReactNode;
78
+ }) => react_jsx_runtime.JSX.Element | null;
79
+ };
80
+
81
+ type Args$4 = {
82
+ children?: React.ReactNode;
83
+ style?: React.CSSProperties;
84
+ };
85
+ declare const ThreadMessages: ({ children, style, }: Args$4) => react_jsx_runtime.JSX.Element;
86
+
87
+ declare const useThreadMessages: () => {
88
+ threadMessages: ThreadMessage[];
89
+ data: InfiniteData<TQueryFnData, unknown>;
90
+ error: Error;
91
+ isError: true;
92
+ isPending: false;
93
+ isLoading: false;
94
+ isLoadingError: false;
95
+ isRefetchError: true;
96
+ isSuccess: false;
97
+ status: "error";
98
+ fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a5 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<InfiniteData<TQueryFnData, unknown>, Error>>;
99
+ fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a6 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<InfiniteData<TQueryFnData, unknown>, Error>>;
100
+ hasNextPage: boolean;
101
+ hasPreviousPage: boolean;
102
+ isFetchingNextPage: boolean;
103
+ isFetchingPreviousPage: boolean;
104
+ dataUpdatedAt: number;
105
+ errorUpdatedAt: number;
106
+ failureCount: number;
107
+ failureReason: Error | null;
108
+ errorUpdateCount: number;
109
+ isFetched: boolean;
110
+ isFetchedAfterMount: boolean;
111
+ isFetching: boolean;
112
+ isInitialLoading: boolean;
113
+ isPaused: boolean;
114
+ isPlaceholderData: boolean;
115
+ isRefetching: boolean;
116
+ isStale: boolean;
117
+ refetch: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a0 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ag<InfiniteData<TQueryFnData, unknown>, Error>>;
118
+ fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
119
+ } | {
120
+ threadMessages: ThreadMessage[];
121
+ data: InfiniteData<TQueryFnData, unknown>;
122
+ error: null;
123
+ isError: false;
124
+ isPending: false;
125
+ isLoading: false;
126
+ isLoadingError: false;
127
+ isRefetchError: false;
128
+ isSuccess: true;
129
+ status: "success";
130
+ fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a5 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<InfiniteData<TQueryFnData, unknown>, Error>>;
131
+ fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a6 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<InfiniteData<TQueryFnData, unknown>, Error>>;
132
+ hasNextPage: boolean;
133
+ hasPreviousPage: boolean;
134
+ isFetchingNextPage: boolean;
135
+ isFetchingPreviousPage: boolean;
136
+ dataUpdatedAt: number;
137
+ errorUpdatedAt: number;
138
+ failureCount: number;
139
+ failureReason: Error | null;
140
+ errorUpdateCount: number;
141
+ isFetched: boolean;
142
+ isFetchedAfterMount: boolean;
143
+ isFetching: boolean;
144
+ isInitialLoading: boolean;
145
+ isPaused: boolean;
146
+ isPlaceholderData: boolean;
147
+ isRefetching: boolean;
148
+ isStale: boolean;
149
+ refetch: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a0 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ag<InfiniteData<TQueryFnData, unknown>, Error>>;
150
+ fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
151
+ } | {
152
+ threadMessages: ThreadMessage[];
153
+ data: undefined;
154
+ error: Error;
155
+ isError: true;
156
+ isPending: false;
157
+ isLoading: false;
158
+ isLoadingError: true;
159
+ isRefetchError: false;
160
+ isSuccess: false;
161
+ status: "error";
162
+ fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a5 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<InfiniteData<TQueryFnData, unknown>, Error>>;
163
+ fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a6 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<InfiniteData<TQueryFnData, unknown>, Error>>;
164
+ hasNextPage: boolean;
165
+ hasPreviousPage: boolean;
166
+ isFetchingNextPage: boolean;
167
+ isFetchingPreviousPage: boolean;
168
+ dataUpdatedAt: number;
169
+ errorUpdatedAt: number;
170
+ failureCount: number;
171
+ failureReason: Error | null;
172
+ errorUpdateCount: number;
173
+ isFetched: boolean;
174
+ isFetchedAfterMount: boolean;
175
+ isFetching: boolean;
176
+ isInitialLoading: boolean;
177
+ isPaused: boolean;
178
+ isPlaceholderData: boolean;
179
+ isRefetching: boolean;
180
+ isStale: boolean;
181
+ refetch: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a0 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ag<InfiniteData<TQueryFnData, unknown>, Error>>;
182
+ fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
183
+ } | {
184
+ threadMessages: ThreadMessage[];
185
+ data: undefined;
186
+ error: null;
187
+ isError: false;
188
+ isPending: true;
189
+ isLoading: true;
190
+ isLoadingError: false;
191
+ isRefetchError: false;
192
+ isSuccess: false;
193
+ status: "pending";
194
+ fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a5 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<InfiniteData<TQueryFnData, unknown>, Error>>;
195
+ fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a6 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<InfiniteData<TQueryFnData, unknown>, Error>>;
196
+ hasNextPage: boolean;
197
+ hasPreviousPage: boolean;
198
+ isFetchingNextPage: boolean;
199
+ isFetchingPreviousPage: boolean;
200
+ dataUpdatedAt: number;
201
+ errorUpdatedAt: number;
202
+ failureCount: number;
203
+ failureReason: Error | null;
204
+ errorUpdateCount: number;
205
+ isFetched: boolean;
206
+ isFetchedAfterMount: boolean;
207
+ isFetching: boolean;
208
+ isInitialLoading: boolean;
209
+ isPaused: boolean;
210
+ isPlaceholderData: boolean;
211
+ isRefetching: boolean;
212
+ isStale: boolean;
213
+ refetch: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a0 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ag<InfiniteData<TQueryFnData, unknown>, Error>>;
214
+ fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
215
+ } | {
216
+ threadMessages: ThreadMessage[];
217
+ data: undefined;
218
+ error: null;
219
+ isError: false;
220
+ isPending: true;
221
+ isLoadingError: false;
222
+ isRefetchError: false;
223
+ isSuccess: false;
224
+ status: "pending";
225
+ fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a5 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<InfiniteData<TQueryFnData, unknown>, Error>>;
226
+ fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a6 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<InfiniteData<TQueryFnData, unknown>, Error>>;
227
+ hasNextPage: boolean;
228
+ hasPreviousPage: boolean;
229
+ isFetchingNextPage: boolean;
230
+ isFetchingPreviousPage: boolean;
231
+ dataUpdatedAt: number;
232
+ errorUpdatedAt: number;
233
+ failureCount: number;
234
+ failureReason: Error | null;
235
+ errorUpdateCount: number;
236
+ isFetched: boolean;
237
+ isFetchedAfterMount: boolean;
238
+ isFetching: boolean;
239
+ isLoading: boolean;
240
+ isInitialLoading: boolean;
241
+ isPaused: boolean;
242
+ isPlaceholderData: boolean;
243
+ isRefetching: boolean;
244
+ isStale: boolean;
245
+ refetch: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a0 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ag<InfiniteData<TQueryFnData, unknown>, Error>>;
246
+ fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
247
+ };
248
+
249
+ declare const useLatestThreadMessage: () => {
250
+ latestThreadMessage: ThreadMessage;
251
+ threadMessages: ThreadMessage[];
252
+ data: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>;
253
+ error: Error;
254
+ isError: true;
255
+ isPending: false;
256
+ isLoading: false;
257
+ isLoadingError: false;
258
+ isRefetchError: true;
259
+ isSuccess: false;
260
+ status: "error";
261
+ fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a5 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
262
+ fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a6 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
263
+ hasNextPage: boolean;
264
+ hasPreviousPage: boolean;
265
+ isFetchingNextPage: boolean;
266
+ isFetchingPreviousPage: boolean;
267
+ dataUpdatedAt: number;
268
+ errorUpdatedAt: number;
269
+ failureCount: number;
270
+ failureReason: Error | null;
271
+ errorUpdateCount: number;
272
+ isFetched: boolean;
273
+ isFetchedAfterMount: boolean;
274
+ isFetching: boolean;
275
+ isInitialLoading: boolean;
276
+ isPaused: boolean;
277
+ isPlaceholderData: boolean;
278
+ isRefetching: boolean;
279
+ isStale: boolean;
280
+ refetch: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a0 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ag<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
281
+ fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
282
+ } | {
283
+ latestThreadMessage: ThreadMessage;
284
+ threadMessages: ThreadMessage[];
285
+ data: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>;
286
+ error: null;
287
+ isError: false;
288
+ isPending: false;
289
+ isLoading: false;
290
+ isLoadingError: false;
291
+ isRefetchError: false;
292
+ isSuccess: true;
293
+ status: "success";
294
+ fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a5 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
295
+ fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a6 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
296
+ hasNextPage: boolean;
297
+ hasPreviousPage: boolean;
298
+ isFetchingNextPage: boolean;
299
+ isFetchingPreviousPage: boolean;
300
+ dataUpdatedAt: number;
301
+ errorUpdatedAt: number;
302
+ failureCount: number;
303
+ failureReason: Error | null;
304
+ errorUpdateCount: number;
305
+ isFetched: boolean;
306
+ isFetchedAfterMount: boolean;
307
+ isFetching: boolean;
308
+ isInitialLoading: boolean;
309
+ isPaused: boolean;
310
+ isPlaceholderData: boolean;
311
+ isRefetching: boolean;
312
+ isStale: boolean;
313
+ refetch: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a0 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ag<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
314
+ fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
315
+ } | {
316
+ latestThreadMessage: ThreadMessage;
317
+ threadMessages: ThreadMessage[];
318
+ data: undefined;
319
+ error: Error;
320
+ isError: true;
321
+ isPending: false;
322
+ isLoading: false;
323
+ isLoadingError: true;
324
+ isRefetchError: false;
325
+ isSuccess: false;
326
+ status: "error";
327
+ fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a5 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
328
+ fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a6 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
329
+ hasNextPage: boolean;
330
+ hasPreviousPage: boolean;
331
+ isFetchingNextPage: boolean;
332
+ isFetchingPreviousPage: boolean;
333
+ dataUpdatedAt: number;
334
+ errorUpdatedAt: number;
335
+ failureCount: number;
336
+ failureReason: Error | null;
337
+ errorUpdateCount: number;
338
+ isFetched: boolean;
339
+ isFetchedAfterMount: boolean;
340
+ isFetching: boolean;
341
+ isInitialLoading: boolean;
342
+ isPaused: boolean;
343
+ isPlaceholderData: boolean;
344
+ isRefetching: boolean;
345
+ isStale: boolean;
346
+ refetch: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a0 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ag<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
347
+ fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
348
+ } | {
349
+ latestThreadMessage: ThreadMessage;
350
+ threadMessages: ThreadMessage[];
351
+ data: undefined;
352
+ error: null;
353
+ isError: false;
354
+ isPending: true;
355
+ isLoading: true;
356
+ isLoadingError: false;
357
+ isRefetchError: false;
358
+ isSuccess: false;
359
+ status: "pending";
360
+ fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a5 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
361
+ fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a6 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
362
+ hasNextPage: boolean;
363
+ hasPreviousPage: boolean;
364
+ isFetchingNextPage: boolean;
365
+ isFetchingPreviousPage: boolean;
366
+ dataUpdatedAt: number;
367
+ errorUpdatedAt: number;
368
+ failureCount: number;
369
+ failureReason: Error | null;
370
+ errorUpdateCount: number;
371
+ isFetched: boolean;
372
+ isFetchedAfterMount: boolean;
373
+ isFetching: boolean;
374
+ isInitialLoading: boolean;
375
+ isPaused: boolean;
376
+ isPlaceholderData: boolean;
377
+ isRefetching: boolean;
378
+ isStale: boolean;
379
+ refetch: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a0 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ag<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
380
+ fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
381
+ } | {
382
+ latestThreadMessage: ThreadMessage;
383
+ threadMessages: ThreadMessage[];
384
+ data: undefined;
385
+ error: null;
386
+ isError: false;
387
+ isPending: true;
388
+ isLoadingError: false;
389
+ isRefetchError: false;
390
+ isSuccess: false;
391
+ status: "pending";
392
+ fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a5 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
393
+ fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a6 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
394
+ hasNextPage: boolean;
395
+ hasPreviousPage: boolean;
396
+ isFetchingNextPage: boolean;
397
+ isFetchingPreviousPage: boolean;
398
+ dataUpdatedAt: number;
399
+ errorUpdatedAt: number;
400
+ failureCount: number;
401
+ failureReason: Error | null;
402
+ errorUpdateCount: number;
403
+ isFetched: boolean;
404
+ isFetchedAfterMount: boolean;
405
+ isFetching: boolean;
406
+ isLoading: boolean;
407
+ isInitialLoading: boolean;
408
+ isPaused: boolean;
409
+ isPlaceholderData: boolean;
410
+ isRefetching: boolean;
411
+ isStale: boolean;
412
+ refetch: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a0 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ag<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
413
+ fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
414
+ };
415
+
416
+ type Inputs = {
417
+ content: string;
418
+ };
419
+ type Args$3 = {
420
+ children?: React.ReactNode;
421
+ useFormProps?: UseFormProps<Inputs>;
422
+ style?: React.CSSProperties;
423
+ };
424
+ declare const ThreadMessageForm: ({ children, useFormProps, style, }?: Args$3) => react_jsx_runtime.JSX.Element;
425
+
426
+ declare const useCreateThreadMessage: () => {
427
+ createThreadMessage: (restobj: Omit<{
428
+ [key: string]: any;
429
+ content: string;
430
+ }, never>) => Promise<any>;
431
+ data: undefined;
432
+ variables: undefined;
433
+ error: null;
434
+ isError: false;
435
+ isIdle: true;
436
+ isPending: false;
437
+ isSuccess: false;
438
+ status: "idle";
439
+ mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<any, any, {
440
+ [key: string]: any;
441
+ content: string;
442
+ }, any>;
443
+ reset: () => void;
444
+ context: any;
445
+ failureCount: number;
446
+ failureReason: any;
447
+ isPaused: boolean;
448
+ submittedAt: number;
449
+ mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<any, any, {
450
+ [key: string]: any;
451
+ content: string;
452
+ }, any>;
453
+ } | {
454
+ createThreadMessage: (restobj: Omit<{
455
+ [key: string]: any;
456
+ content: string;
457
+ }, never>) => Promise<any>;
458
+ data: undefined;
459
+ variables: {
460
+ [key: string]: any;
461
+ content: string;
462
+ };
463
+ error: null;
464
+ isError: false;
465
+ isIdle: false;
466
+ isPending: true;
467
+ isSuccess: false;
468
+ status: "pending";
469
+ mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<any, any, {
470
+ [key: string]: any;
471
+ content: string;
472
+ }, any>;
473
+ reset: () => void;
474
+ context: any;
475
+ failureCount: number;
476
+ failureReason: any;
477
+ isPaused: boolean;
478
+ submittedAt: number;
479
+ mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<any, any, {
480
+ [key: string]: any;
481
+ content: string;
482
+ }, any>;
483
+ } | {
484
+ createThreadMessage: (restobj: Omit<{
485
+ [key: string]: any;
486
+ content: string;
487
+ }, never>) => Promise<any>;
488
+ data: undefined;
489
+ error: any;
490
+ variables: {
491
+ [key: string]: any;
492
+ content: string;
493
+ };
494
+ isError: true;
495
+ isIdle: false;
496
+ isPending: false;
497
+ isSuccess: false;
498
+ status: "error";
499
+ mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<any, any, {
500
+ [key: string]: any;
501
+ content: string;
502
+ }, any>;
503
+ reset: () => void;
504
+ context: any;
505
+ failureCount: number;
506
+ failureReason: any;
507
+ isPaused: boolean;
508
+ submittedAt: number;
509
+ mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<any, any, {
510
+ [key: string]: any;
511
+ content: string;
512
+ }, any>;
513
+ } | {
514
+ createThreadMessage: (restobj: Omit<{
515
+ [key: string]: any;
516
+ content: string;
517
+ }, never>) => Promise<any>;
518
+ data: any;
519
+ error: null;
520
+ variables: {
521
+ [key: string]: any;
522
+ content: string;
523
+ };
524
+ isError: false;
525
+ isIdle: false;
526
+ isPending: false;
527
+ isSuccess: true;
528
+ status: "success";
529
+ mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<any, any, {
530
+ [key: string]: any;
531
+ content: string;
532
+ }, any>;
533
+ reset: () => void;
534
+ context: any;
535
+ failureCount: number;
536
+ failureReason: any;
537
+ isPaused: boolean;
538
+ submittedAt: number;
539
+ mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<any, any, {
540
+ [key: string]: any;
541
+ content: string;
542
+ }, any>;
543
+ };
544
+
545
+ declare const useCreateRun: () => {
546
+ createRun: (restobj: Omit<{
547
+ [key: string]: any;
548
+ content: string;
549
+ }, never>) => void;
550
+ data: undefined;
551
+ variables: undefined;
552
+ error: null;
553
+ isError: false;
554
+ isIdle: true;
555
+ isPending: false;
556
+ isSuccess: false;
557
+ status: "idle";
558
+ mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<any, any, {
559
+ [key: string]: any;
560
+ content: string;
561
+ }, any>;
562
+ reset: () => void;
563
+ context: any;
564
+ failureCount: number;
565
+ failureReason: any;
566
+ isPaused: boolean;
567
+ submittedAt: number;
568
+ mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<any, any, {
569
+ [key: string]: any;
570
+ content: string;
571
+ }, any>;
572
+ } | {
573
+ createRun: (restobj: Omit<{
574
+ [key: string]: any;
575
+ content: string;
576
+ }, never>) => void;
577
+ data: undefined;
578
+ variables: {
579
+ [key: string]: any;
580
+ content: string;
581
+ };
582
+ error: null;
583
+ isError: false;
584
+ isIdle: false;
585
+ isPending: true;
586
+ isSuccess: false;
587
+ status: "pending";
588
+ mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<any, any, {
589
+ [key: string]: any;
590
+ content: string;
591
+ }, any>;
592
+ reset: () => void;
593
+ context: any;
594
+ failureCount: number;
595
+ failureReason: any;
596
+ isPaused: boolean;
597
+ submittedAt: number;
598
+ mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<any, any, {
599
+ [key: string]: any;
600
+ content: string;
601
+ }, any>;
602
+ } | {
603
+ createRun: (restobj: Omit<{
604
+ [key: string]: any;
605
+ content: string;
606
+ }, never>) => void;
607
+ data: undefined;
608
+ error: any;
609
+ variables: {
610
+ [key: string]: any;
611
+ content: string;
612
+ };
613
+ isError: true;
614
+ isIdle: false;
615
+ isPending: false;
616
+ isSuccess: false;
617
+ status: "error";
618
+ mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<any, any, {
619
+ [key: string]: any;
620
+ content: string;
621
+ }, any>;
622
+ reset: () => void;
623
+ context: any;
624
+ failureCount: number;
625
+ failureReason: any;
626
+ isPaused: boolean;
627
+ submittedAt: number;
628
+ mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<any, any, {
629
+ [key: string]: any;
630
+ content: string;
631
+ }, any>;
632
+ } | {
633
+ createRun: (restobj: Omit<{
634
+ [key: string]: any;
635
+ content: string;
636
+ }, never>) => void;
637
+ data: any;
638
+ error: null;
639
+ variables: {
640
+ [key: string]: any;
641
+ content: string;
642
+ };
643
+ isError: false;
644
+ isIdle: false;
645
+ isPending: false;
646
+ isSuccess: true;
647
+ status: "success";
648
+ mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<any, any, {
649
+ [key: string]: any;
650
+ content: string;
651
+ }, any>;
652
+ reset: () => void;
653
+ context: any;
654
+ failureCount: number;
655
+ failureReason: any;
656
+ isPaused: boolean;
657
+ submittedAt: number;
658
+ mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<any, any, {
659
+ [key: string]: any;
660
+ content: string;
661
+ }, any>;
662
+ };
663
+
664
+ declare const useRuns: () => {
665
+ runs: openai_resources_beta_threads_runs_runs.Run[];
666
+ data: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>;
667
+ error: Error;
668
+ isError: true;
669
+ isPending: false;
670
+ isLoading: false;
671
+ isLoadingError: false;
672
+ isRefetchError: true;
673
+ isSuccess: false;
674
+ status: "error";
675
+ fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a5 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
676
+ fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a6 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
677
+ hasNextPage: boolean;
678
+ hasPreviousPage: boolean;
679
+ isFetchingNextPage: boolean;
680
+ isFetchingPreviousPage: boolean;
681
+ dataUpdatedAt: number;
682
+ errorUpdatedAt: number;
683
+ failureCount: number;
684
+ failureReason: Error | null;
685
+ errorUpdateCount: number;
686
+ isFetched: boolean;
687
+ isFetchedAfterMount: boolean;
688
+ isFetching: boolean;
689
+ isInitialLoading: boolean;
690
+ isPaused: boolean;
691
+ isPlaceholderData: boolean;
692
+ isRefetching: boolean;
693
+ isStale: boolean;
694
+ refetch: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a0 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ag<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
695
+ fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
696
+ } | {
697
+ runs: openai_resources_beta_threads_runs_runs.Run[];
698
+ data: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>;
699
+ error: null;
700
+ isError: false;
701
+ isPending: false;
702
+ isLoading: false;
703
+ isLoadingError: false;
704
+ isRefetchError: false;
705
+ isSuccess: true;
706
+ status: "success";
707
+ fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a5 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
708
+ fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a6 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
709
+ hasNextPage: boolean;
710
+ hasPreviousPage: boolean;
711
+ isFetchingNextPage: boolean;
712
+ isFetchingPreviousPage: boolean;
713
+ dataUpdatedAt: number;
714
+ errorUpdatedAt: number;
715
+ failureCount: number;
716
+ failureReason: Error | null;
717
+ errorUpdateCount: number;
718
+ isFetched: boolean;
719
+ isFetchedAfterMount: boolean;
720
+ isFetching: boolean;
721
+ isInitialLoading: boolean;
722
+ isPaused: boolean;
723
+ isPlaceholderData: boolean;
724
+ isRefetching: boolean;
725
+ isStale: boolean;
726
+ refetch: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a0 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ag<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
727
+ fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
728
+ } | {
729
+ runs: openai_resources_beta_threads_runs_runs.Run[];
730
+ data: undefined;
731
+ error: Error;
732
+ isError: true;
733
+ isPending: false;
734
+ isLoading: false;
735
+ isLoadingError: true;
736
+ isRefetchError: false;
737
+ isSuccess: false;
738
+ status: "error";
739
+ fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a5 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
740
+ fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a6 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
741
+ hasNextPage: boolean;
742
+ hasPreviousPage: boolean;
743
+ isFetchingNextPage: boolean;
744
+ isFetchingPreviousPage: boolean;
745
+ dataUpdatedAt: number;
746
+ errorUpdatedAt: number;
747
+ failureCount: number;
748
+ failureReason: Error | null;
749
+ errorUpdateCount: number;
750
+ isFetched: boolean;
751
+ isFetchedAfterMount: boolean;
752
+ isFetching: boolean;
753
+ isInitialLoading: boolean;
754
+ isPaused: boolean;
755
+ isPlaceholderData: boolean;
756
+ isRefetching: boolean;
757
+ isStale: boolean;
758
+ refetch: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a0 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ag<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
759
+ fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
760
+ } | {
761
+ runs: openai_resources_beta_threads_runs_runs.Run[];
762
+ data: undefined;
763
+ error: null;
764
+ isError: false;
765
+ isPending: true;
766
+ isLoading: true;
767
+ isLoadingError: false;
768
+ isRefetchError: false;
769
+ isSuccess: false;
770
+ status: "pending";
771
+ fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a5 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
772
+ fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a6 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
773
+ hasNextPage: boolean;
774
+ hasPreviousPage: boolean;
775
+ isFetchingNextPage: boolean;
776
+ isFetchingPreviousPage: boolean;
777
+ dataUpdatedAt: number;
778
+ errorUpdatedAt: number;
779
+ failureCount: number;
780
+ failureReason: Error | null;
781
+ errorUpdateCount: number;
782
+ isFetched: boolean;
783
+ isFetchedAfterMount: boolean;
784
+ isFetching: boolean;
785
+ isInitialLoading: boolean;
786
+ isPaused: boolean;
787
+ isPlaceholderData: boolean;
788
+ isRefetching: boolean;
789
+ isStale: boolean;
790
+ refetch: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a0 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ag<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
791
+ fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
792
+ } | {
793
+ runs: openai_resources_beta_threads_runs_runs.Run[];
794
+ data: undefined;
795
+ error: null;
796
+ isError: false;
797
+ isPending: true;
798
+ isLoadingError: false;
799
+ isRefetchError: false;
800
+ isSuccess: false;
801
+ status: "pending";
802
+ fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a5 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
803
+ fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a6 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
804
+ hasNextPage: boolean;
805
+ hasPreviousPage: boolean;
806
+ isFetchingNextPage: boolean;
807
+ isFetchingPreviousPage: boolean;
808
+ dataUpdatedAt: number;
809
+ errorUpdatedAt: number;
810
+ failureCount: number;
811
+ failureReason: Error | null;
812
+ errorUpdateCount: number;
813
+ isFetched: boolean;
814
+ isFetchedAfterMount: boolean;
815
+ isFetching: boolean;
816
+ isLoading: boolean;
817
+ isInitialLoading: boolean;
818
+ isPaused: boolean;
819
+ isPlaceholderData: boolean;
820
+ isRefetching: boolean;
821
+ isStale: boolean;
822
+ refetch: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a0 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ag<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
823
+ fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
824
+ };
825
+
826
+ declare const useLatestRun: () => {
827
+ latestRun: openai_resources_beta_threads_runs_runs.Run;
828
+ runs: openai_resources_beta_threads_runs_runs.Run[];
829
+ data: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>;
830
+ error: Error;
831
+ isError: true;
832
+ isPending: false;
833
+ isLoading: false;
834
+ isLoadingError: false;
835
+ isRefetchError: true;
836
+ isSuccess: false;
837
+ status: "error";
838
+ fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a5 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
839
+ fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a6 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
840
+ hasNextPage: boolean;
841
+ hasPreviousPage: boolean;
842
+ isFetchingNextPage: boolean;
843
+ isFetchingPreviousPage: boolean;
844
+ dataUpdatedAt: number;
845
+ errorUpdatedAt: number;
846
+ failureCount: number;
847
+ failureReason: Error | null;
848
+ errorUpdateCount: number;
849
+ isFetched: boolean;
850
+ isFetchedAfterMount: boolean;
851
+ isFetching: boolean;
852
+ isInitialLoading: boolean;
853
+ isPaused: boolean;
854
+ isPlaceholderData: boolean;
855
+ isRefetching: boolean;
856
+ isStale: boolean;
857
+ refetch: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a0 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ag<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
858
+ fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
859
+ } | {
860
+ latestRun: openai_resources_beta_threads_runs_runs.Run;
861
+ runs: openai_resources_beta_threads_runs_runs.Run[];
862
+ data: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>;
863
+ error: null;
864
+ isError: false;
865
+ isPending: false;
866
+ isLoading: false;
867
+ isLoadingError: false;
868
+ isRefetchError: false;
869
+ isSuccess: true;
870
+ status: "success";
871
+ fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a5 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
872
+ fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a6 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
873
+ hasNextPage: boolean;
874
+ hasPreviousPage: boolean;
875
+ isFetchingNextPage: boolean;
876
+ isFetchingPreviousPage: boolean;
877
+ dataUpdatedAt: number;
878
+ errorUpdatedAt: number;
879
+ failureCount: number;
880
+ failureReason: Error | null;
881
+ errorUpdateCount: number;
882
+ isFetched: boolean;
883
+ isFetchedAfterMount: boolean;
884
+ isFetching: boolean;
885
+ isInitialLoading: boolean;
886
+ isPaused: boolean;
887
+ isPlaceholderData: boolean;
888
+ isRefetching: boolean;
889
+ isStale: boolean;
890
+ refetch: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a0 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ag<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
891
+ fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
892
+ } | {
893
+ latestRun: openai_resources_beta_threads_runs_runs.Run;
894
+ runs: openai_resources_beta_threads_runs_runs.Run[];
895
+ data: undefined;
896
+ error: Error;
897
+ isError: true;
898
+ isPending: false;
899
+ isLoading: false;
900
+ isLoadingError: true;
901
+ isRefetchError: false;
902
+ isSuccess: false;
903
+ status: "error";
904
+ fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a5 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
905
+ fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a6 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
906
+ hasNextPage: boolean;
907
+ hasPreviousPage: boolean;
908
+ isFetchingNextPage: boolean;
909
+ isFetchingPreviousPage: boolean;
910
+ dataUpdatedAt: number;
911
+ errorUpdatedAt: number;
912
+ failureCount: number;
913
+ failureReason: Error | null;
914
+ errorUpdateCount: number;
915
+ isFetched: boolean;
916
+ isFetchedAfterMount: boolean;
917
+ isFetching: boolean;
918
+ isInitialLoading: boolean;
919
+ isPaused: boolean;
920
+ isPlaceholderData: boolean;
921
+ isRefetching: boolean;
922
+ isStale: boolean;
923
+ refetch: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a0 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ag<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
924
+ fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
925
+ } | {
926
+ latestRun: openai_resources_beta_threads_runs_runs.Run;
927
+ runs: openai_resources_beta_threads_runs_runs.Run[];
928
+ data: undefined;
929
+ error: null;
930
+ isError: false;
931
+ isPending: true;
932
+ isLoading: true;
933
+ isLoadingError: false;
934
+ isRefetchError: false;
935
+ isSuccess: false;
936
+ status: "pending";
937
+ fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a5 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
938
+ fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a6 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
939
+ hasNextPage: boolean;
940
+ hasPreviousPage: boolean;
941
+ isFetchingNextPage: boolean;
942
+ isFetchingPreviousPage: boolean;
943
+ dataUpdatedAt: number;
944
+ errorUpdatedAt: number;
945
+ failureCount: number;
946
+ failureReason: Error | null;
947
+ errorUpdateCount: number;
948
+ isFetched: boolean;
949
+ isFetchedAfterMount: boolean;
950
+ isFetching: boolean;
951
+ isInitialLoading: boolean;
952
+ isPaused: boolean;
953
+ isPlaceholderData: boolean;
954
+ isRefetching: boolean;
955
+ isStale: boolean;
956
+ refetch: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a0 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ag<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
957
+ fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
958
+ } | {
959
+ latestRun: openai_resources_beta_threads_runs_runs.Run;
960
+ runs: openai_resources_beta_threads_runs_runs.Run[];
961
+ data: undefined;
962
+ error: null;
963
+ isError: false;
964
+ isPending: true;
965
+ isLoadingError: false;
966
+ isRefetchError: false;
967
+ isSuccess: false;
968
+ status: "pending";
969
+ fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a5 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
970
+ fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a6 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
971
+ hasNextPage: boolean;
972
+ hasPreviousPage: boolean;
973
+ isFetchingNextPage: boolean;
974
+ isFetchingPreviousPage: boolean;
975
+ dataUpdatedAt: number;
976
+ errorUpdatedAt: number;
977
+ failureCount: number;
978
+ failureReason: Error | null;
979
+ errorUpdateCount: number;
980
+ isFetched: boolean;
981
+ isFetchedAfterMount: boolean;
982
+ isFetching: boolean;
983
+ isLoading: boolean;
984
+ isInitialLoading: boolean;
985
+ isPaused: boolean;
986
+ isPlaceholderData: boolean;
987
+ isRefetching: boolean;
988
+ isStale: boolean;
989
+ refetch: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a0 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ag<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
990
+ fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
991
+ };
992
+
993
+ declare const useIsRunActive: () => {
994
+ isRunActive: boolean;
995
+ latestRun: openai_resources_beta_threads_runs_runs.Run;
996
+ runs: openai_resources_beta_threads_runs_runs.Run[];
997
+ data: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>;
998
+ error: Error;
999
+ isError: true;
1000
+ isPending: false;
1001
+ isLoading: false;
1002
+ isLoadingError: false;
1003
+ isRefetchError: true;
1004
+ isSuccess: false;
1005
+ status: "error";
1006
+ fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a5 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
1007
+ fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a6 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
1008
+ hasNextPage: boolean;
1009
+ hasPreviousPage: boolean;
1010
+ isFetchingNextPage: boolean;
1011
+ isFetchingPreviousPage: boolean;
1012
+ dataUpdatedAt: number;
1013
+ errorUpdatedAt: number;
1014
+ failureCount: number;
1015
+ failureReason: Error | null;
1016
+ errorUpdateCount: number;
1017
+ isFetched: boolean;
1018
+ isFetchedAfterMount: boolean;
1019
+ isFetching: boolean;
1020
+ isInitialLoading: boolean;
1021
+ isPaused: boolean;
1022
+ isPlaceholderData: boolean;
1023
+ isRefetching: boolean;
1024
+ isStale: boolean;
1025
+ refetch: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a0 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ag<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
1026
+ fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
1027
+ } | {
1028
+ isRunActive: boolean;
1029
+ latestRun: openai_resources_beta_threads_runs_runs.Run;
1030
+ runs: openai_resources_beta_threads_runs_runs.Run[];
1031
+ data: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>;
1032
+ error: null;
1033
+ isError: false;
1034
+ isPending: false;
1035
+ isLoading: false;
1036
+ isLoadingError: false;
1037
+ isRefetchError: false;
1038
+ isSuccess: true;
1039
+ status: "success";
1040
+ fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a5 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
1041
+ fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a6 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
1042
+ hasNextPage: boolean;
1043
+ hasPreviousPage: boolean;
1044
+ isFetchingNextPage: boolean;
1045
+ isFetchingPreviousPage: boolean;
1046
+ dataUpdatedAt: number;
1047
+ errorUpdatedAt: number;
1048
+ failureCount: number;
1049
+ failureReason: Error | null;
1050
+ errorUpdateCount: number;
1051
+ isFetched: boolean;
1052
+ isFetchedAfterMount: boolean;
1053
+ isFetching: boolean;
1054
+ isInitialLoading: boolean;
1055
+ isPaused: boolean;
1056
+ isPlaceholderData: boolean;
1057
+ isRefetching: boolean;
1058
+ isStale: boolean;
1059
+ refetch: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a0 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ag<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
1060
+ fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
1061
+ } | {
1062
+ isRunActive: boolean;
1063
+ latestRun: openai_resources_beta_threads_runs_runs.Run;
1064
+ runs: openai_resources_beta_threads_runs_runs.Run[];
1065
+ data: undefined;
1066
+ error: Error;
1067
+ isError: true;
1068
+ isPending: false;
1069
+ isLoading: false;
1070
+ isLoadingError: true;
1071
+ isRefetchError: false;
1072
+ isSuccess: false;
1073
+ status: "error";
1074
+ fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a5 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
1075
+ fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a6 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
1076
+ hasNextPage: boolean;
1077
+ hasPreviousPage: boolean;
1078
+ isFetchingNextPage: boolean;
1079
+ isFetchingPreviousPage: boolean;
1080
+ dataUpdatedAt: number;
1081
+ errorUpdatedAt: number;
1082
+ failureCount: number;
1083
+ failureReason: Error | null;
1084
+ errorUpdateCount: number;
1085
+ isFetched: boolean;
1086
+ isFetchedAfterMount: boolean;
1087
+ isFetching: boolean;
1088
+ isInitialLoading: boolean;
1089
+ isPaused: boolean;
1090
+ isPlaceholderData: boolean;
1091
+ isRefetching: boolean;
1092
+ isStale: boolean;
1093
+ refetch: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a0 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ag<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
1094
+ fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
1095
+ } | {
1096
+ isRunActive: boolean;
1097
+ latestRun: openai_resources_beta_threads_runs_runs.Run;
1098
+ runs: openai_resources_beta_threads_runs_runs.Run[];
1099
+ data: undefined;
1100
+ error: null;
1101
+ isError: false;
1102
+ isPending: true;
1103
+ isLoading: true;
1104
+ isLoadingError: false;
1105
+ isRefetchError: false;
1106
+ isSuccess: false;
1107
+ status: "pending";
1108
+ fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a5 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
1109
+ fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a6 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
1110
+ hasNextPage: boolean;
1111
+ hasPreviousPage: boolean;
1112
+ isFetchingNextPage: boolean;
1113
+ isFetchingPreviousPage: boolean;
1114
+ dataUpdatedAt: number;
1115
+ errorUpdatedAt: number;
1116
+ failureCount: number;
1117
+ failureReason: Error | null;
1118
+ errorUpdateCount: number;
1119
+ isFetched: boolean;
1120
+ isFetchedAfterMount: boolean;
1121
+ isFetching: boolean;
1122
+ isInitialLoading: boolean;
1123
+ isPaused: boolean;
1124
+ isPlaceholderData: boolean;
1125
+ isRefetching: boolean;
1126
+ isStale: boolean;
1127
+ refetch: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a0 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ag<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
1128
+ fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
1129
+ } | {
1130
+ isRunActive: boolean;
1131
+ latestRun: openai_resources_beta_threads_runs_runs.Run;
1132
+ runs: openai_resources_beta_threads_runs_runs.Run[];
1133
+ data: undefined;
1134
+ error: null;
1135
+ isError: false;
1136
+ isPending: true;
1137
+ isLoadingError: false;
1138
+ isRefetchError: false;
1139
+ isSuccess: false;
1140
+ status: "pending";
1141
+ fetchNextPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a5 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
1142
+ fetchPreviousPage: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a6 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ao<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
1143
+ hasNextPage: boolean;
1144
+ hasPreviousPage: boolean;
1145
+ isFetchingNextPage: boolean;
1146
+ isFetchingPreviousPage: boolean;
1147
+ dataUpdatedAt: number;
1148
+ errorUpdatedAt: number;
1149
+ failureCount: number;
1150
+ failureReason: Error | null;
1151
+ errorUpdateCount: number;
1152
+ isFetched: boolean;
1153
+ isFetchedAfterMount: boolean;
1154
+ isFetching: boolean;
1155
+ isLoading: boolean;
1156
+ isInitialLoading: boolean;
1157
+ isPaused: boolean;
1158
+ isPlaceholderData: boolean;
1159
+ isRefetching: boolean;
1160
+ isStale: boolean;
1161
+ refetch: (options?: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a0 | undefined) => Promise<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.ag<_tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>, Error>>;
1162
+ fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
1163
+ };
1164
+
1165
+ type Args$2 = {
1166
+ emptyStateSuggestions?: string[];
1167
+ suggestions?: string[];
1168
+ };
1169
+ declare const Suggestions: ({ emptyStateSuggestions, suggestions, }: Args$2) => react_jsx_runtime.JSX.Element | null;
1170
+
1171
+ type Args$1 = {
1172
+ suggestion: string;
1173
+ };
1174
+ declare const Suggestion: ({ suggestion, }: Args$1) => react_jsx_runtime.JSX.Element;
1175
+
1176
+ declare const MarkdownContext: react.Context<{
1177
+ remarkPlugins: any[];
1178
+ rehypeReactOptions: {
1179
+ components: {
1180
+ p: ({ children }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>) => react_jsx_runtime.JSX.Element;
1181
+ a: ({ children, href }: react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>) => react_jsx_runtime.JSX.Element;
1182
+ strong: ({ children }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>) => react_jsx_runtime.JSX.Element;
1183
+ ul: ({ children }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLUListElement>, HTMLUListElement>) => react_jsx_runtime.JSX.Element;
1184
+ ol: ({ children }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLUListElement>, HTMLUListElement>) => react_jsx_runtime.JSX.Element;
1185
+ li: ({ children }: react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>) => react_jsx_runtime.JSX.Element;
1186
+ };
1187
+ };
1188
+ }>;
1189
+
1190
+ declare const useMarkdownContext: () => {
1191
+ remarkPlugins: any[];
1192
+ rehypeReactOptions: {
1193
+ components: {
1194
+ p: ({ children }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>) => react_jsx_runtime.JSX.Element;
1195
+ a: ({ children, href }: react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>) => react_jsx_runtime.JSX.Element;
1196
+ strong: ({ children }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>) => react_jsx_runtime.JSX.Element;
1197
+ ul: ({ children }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLUListElement>, HTMLUListElement>) => react_jsx_runtime.JSX.Element;
1198
+ ol: ({ children }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLUListElement>, HTMLUListElement>) => react_jsx_runtime.JSX.Element;
1199
+ li: ({ children }: react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>) => react_jsx_runtime.JSX.Element;
1200
+ };
1201
+ };
1202
+ };
1203
+
1204
+ declare const AssistantAvatarContext: react.Context<react_jsx_runtime.JSX.Element>;
1205
+
1206
+ declare const AssistantNameContext: react.Context<string>;
1207
+
1208
+ type FunctionComponents = {
1209
+ [key: string]: React.ReactNode;
1210
+ };
1211
+ declare const FunctionComponentsContext: react.Context<FunctionComponents>;
1212
+
1213
+ type Args = {
1214
+ fn: OpenAI.Beta.Threads.Runs.FunctionToolCall.Function;
1215
+ runStep: OpenAI.Beta.Threads.Runs.RunStep;
1216
+ title: string;
1217
+ };
1218
+ declare const FunctionBase: ({ fn, runStep, title, }: Args) => react_jsx_runtime.JSX.Element;
1219
+
1220
+ export { AssistantAvatarContext, AssistantNameContext, AudioThread, AudioThreadDialog, FunctionBase, FunctionComponentsContext, MarkdownContext, Suggestion, Suggestions, SuperinterfaceProvider, Thread, ThreadDialog, ThreadMessageForm, ThreadMessages, SuperinterfaceProvider as ThreadProvider, useCreateRun, useCreateThreadMessage, useIsRunActive, useLatestRun, useLatestThreadMessage, useMarkdownContext, useRuns, useSuperinterfaceContext, useSuperinterfaceContext as useThreadContext, useThreadLifecycles, useThreadMessages };