@superinterface/react 2.1.1 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -6,7 +6,6 @@ import * as react from 'react';
6
6
  import { Dispatch, SetStateAction } from 'react';
7
7
  import * as _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw from '@tanstack/query-core/build/legacy/queryClient-Ho-z40Sw';
8
8
  import * as _tanstack_react_query_build_legacy_types from '@tanstack/react-query/build/legacy/types';
9
- import * as openai_resources_beta_threads_runs_runs from 'openai/resources/beta/threads/runs/runs';
10
9
  import OpenAI from 'openai';
11
10
 
12
11
  type Args$6 = {
@@ -60,8 +59,6 @@ declare const Thread: {
60
59
  };
61
60
  };
62
61
 
63
- declare const useLifecycle: () => null;
64
-
65
62
  declare const useMessages: () => {
66
63
  messages: Message[];
67
64
  data: InfiniteData<TQueryFnData, unknown>;
@@ -398,10 +395,7 @@ declare const useLatestMessage: () => {
398
395
  declare const useCreateMessage: ({ onError, }?: {
399
396
  onError?: ((error: unknown) => void) | undefined;
400
397
  }) => {
401
- createMessage: (restobj: Omit<{
402
- [key: string]: any;
403
- content: string;
404
- }, string>) => Promise<any>;
398
+ createMessage: (restobj: Omit<any, string>) => Promise<any>;
405
399
  data: undefined;
406
400
  variables: undefined;
407
401
  error: null;
@@ -410,117 +404,74 @@ declare const useCreateMessage: ({ onError, }?: {
410
404
  isPending: false;
411
405
  isSuccess: false;
412
406
  status: "idle";
413
- mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<any, any, {
414
- [key: string]: any;
415
- content: string;
416
- }, any>;
407
+ mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<any, any, any, any>;
417
408
  reset: () => void;
418
409
  context: any;
419
410
  failureCount: number;
420
411
  failureReason: any;
421
412
  isPaused: boolean;
422
413
  submittedAt: number;
423
- mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<any, any, {
424
- [key: string]: any;
425
- content: string;
426
- }, any>;
414
+ mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<any, any, any, any>;
427
415
  } | {
428
- createMessage: (restobj: Omit<{
429
- [key: string]: any;
430
- content: string;
431
- }, string>) => Promise<any>;
416
+ createMessage: (restobj: Omit<any, string>) => Promise<any>;
432
417
  data: undefined;
433
- variables: {
434
- [key: string]: any;
435
- content: string;
436
- };
418
+ variables: any;
437
419
  error: null;
438
420
  isError: false;
439
421
  isIdle: false;
440
422
  isPending: true;
441
423
  isSuccess: false;
442
424
  status: "pending";
443
- mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<any, any, {
444
- [key: string]: any;
445
- content: string;
446
- }, any>;
425
+ mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<any, any, any, any>;
447
426
  reset: () => void;
448
427
  context: any;
449
428
  failureCount: number;
450
429
  failureReason: any;
451
430
  isPaused: boolean;
452
431
  submittedAt: number;
453
- mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<any, any, {
454
- [key: string]: any;
455
- content: string;
456
- }, any>;
432
+ mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<any, any, any, any>;
457
433
  } | {
458
- createMessage: (restobj: Omit<{
459
- [key: string]: any;
460
- content: string;
461
- }, string>) => Promise<any>;
434
+ createMessage: (restobj: Omit<any, string>) => Promise<any>;
462
435
  data: undefined;
463
436
  error: any;
464
- variables: {
465
- [key: string]: any;
466
- content: string;
467
- };
437
+ variables: any;
468
438
  isError: true;
469
439
  isIdle: false;
470
440
  isPending: false;
471
441
  isSuccess: false;
472
442
  status: "error";
473
- mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<any, any, {
474
- [key: string]: any;
475
- content: string;
476
- }, any>;
443
+ mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<any, any, any, any>;
477
444
  reset: () => void;
478
445
  context: any;
479
446
  failureCount: number;
480
447
  failureReason: any;
481
448
  isPaused: boolean;
482
449
  submittedAt: number;
483
- mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<any, any, {
484
- [key: string]: any;
485
- content: string;
486
- }, any>;
450
+ mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<any, any, any, any>;
487
451
  } | {
488
- createMessage: (restobj: Omit<{
489
- [key: string]: any;
490
- content: string;
491
- }, string>) => Promise<any>;
452
+ createMessage: (restobj: Omit<any, string>) => Promise<any>;
492
453
  data: any;
493
454
  error: null;
494
- variables: {
495
- [key: string]: any;
496
- content: string;
497
- };
455
+ variables: any;
498
456
  isError: false;
499
457
  isIdle: false;
500
458
  isPending: false;
501
459
  isSuccess: true;
502
460
  status: "success";
503
- mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<any, any, {
504
- [key: string]: any;
505
- content: string;
506
- }, any>;
461
+ mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<any, any, any, any>;
507
462
  reset: () => void;
508
463
  context: any;
509
464
  failureCount: number;
510
465
  failureReason: any;
511
466
  isPaused: boolean;
512
467
  submittedAt: number;
513
- mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<any, any, {
514
- [key: string]: any;
515
- content: string;
516
- }, any>;
468
+ mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<any, any, any, any>;
517
469
  };
518
470
 
519
471
  declare const ThreadDialog: {
520
472
  (): react_jsx_runtime.JSX.Element;
521
- Root: ({ children, style, }: {
473
+ Root: ({ children, }: {
522
474
  children: react.ReactNode;
523
- style?: react.CSSProperties | undefined;
524
475
  }) => react_jsx_runtime.JSX.Element;
525
476
  Trigger: ({ children, style, }: {
526
477
  children: react.ReactNode;
@@ -545,9 +496,8 @@ declare const ThreadDialogContext: react.Context<{
545
496
 
546
497
  declare const AudioThreadDialog: {
547
498
  (): react_jsx_runtime.JSX.Element;
548
- Root: ({ children, style, }: {
499
+ Root: ({ children, }: {
549
500
  children: react.ReactNode;
550
- style?: react.CSSProperties | undefined;
551
501
  }) => react_jsx_runtime.JSX.Element;
552
502
  Trigger: ({ children, style, }: {
553
503
  children: react.ReactNode;
@@ -577,628 +527,6 @@ declare const AudioThread: {
577
527
  Form: () => react_jsx_runtime.JSX.Element;
578
528
  };
579
529
 
580
- declare const useCreateRun: ({ onError, }?: {
581
- onError?: ((error: unknown) => void) | undefined;
582
- }) => {
583
- createRun: (restobj: Omit<{
584
- [key: string]: any;
585
- content: string;
586
- }, string>) => void;
587
- data: undefined;
588
- variables: undefined;
589
- error: null;
590
- isError: false;
591
- isIdle: true;
592
- isPending: false;
593
- isSuccess: false;
594
- status: "idle";
595
- mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<any, any, {
596
- [key: string]: any;
597
- content: string;
598
- }, any>;
599
- reset: () => void;
600
- context: any;
601
- failureCount: number;
602
- failureReason: any;
603
- isPaused: boolean;
604
- submittedAt: number;
605
- mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<any, any, {
606
- [key: string]: any;
607
- content: string;
608
- }, any>;
609
- } | {
610
- createRun: (restobj: Omit<{
611
- [key: string]: any;
612
- content: string;
613
- }, string>) => void;
614
- data: undefined;
615
- variables: {
616
- [key: string]: any;
617
- content: string;
618
- };
619
- error: null;
620
- isError: false;
621
- isIdle: false;
622
- isPending: true;
623
- isSuccess: false;
624
- status: "pending";
625
- mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<any, any, {
626
- [key: string]: any;
627
- content: string;
628
- }, any>;
629
- reset: () => void;
630
- context: any;
631
- failureCount: number;
632
- failureReason: any;
633
- isPaused: boolean;
634
- submittedAt: number;
635
- mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<any, any, {
636
- [key: string]: any;
637
- content: string;
638
- }, any>;
639
- } | {
640
- createRun: (restobj: Omit<{
641
- [key: string]: any;
642
- content: string;
643
- }, string>) => void;
644
- data: undefined;
645
- error: any;
646
- variables: {
647
- [key: string]: any;
648
- content: string;
649
- };
650
- isError: true;
651
- isIdle: false;
652
- isPending: false;
653
- isSuccess: false;
654
- status: "error";
655
- mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<any, any, {
656
- [key: string]: any;
657
- content: string;
658
- }, any>;
659
- reset: () => void;
660
- context: any;
661
- failureCount: number;
662
- failureReason: any;
663
- isPaused: boolean;
664
- submittedAt: number;
665
- mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<any, any, {
666
- [key: string]: any;
667
- content: string;
668
- }, any>;
669
- } | {
670
- createRun: (restobj: Omit<{
671
- [key: string]: any;
672
- content: string;
673
- }, string>) => void;
674
- data: any;
675
- error: null;
676
- variables: {
677
- [key: string]: any;
678
- content: string;
679
- };
680
- isError: false;
681
- isIdle: false;
682
- isPending: false;
683
- isSuccess: true;
684
- status: "success";
685
- mutate: _tanstack_react_query_build_legacy_types.UseMutateFunction<any, any, {
686
- [key: string]: any;
687
- content: string;
688
- }, any>;
689
- reset: () => void;
690
- context: any;
691
- failureCount: number;
692
- failureReason: any;
693
- isPaused: boolean;
694
- submittedAt: number;
695
- mutateAsync: _tanstack_react_query_build_legacy_types.UseMutateAsyncFunction<any, any, {
696
- [key: string]: any;
697
- content: string;
698
- }, any>;
699
- };
700
-
701
- declare const useRuns: () => {
702
- runs: openai_resources_beta_threads_runs_runs.Run[];
703
- data: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>;
704
- error: Error;
705
- isError: true;
706
- isPending: false;
707
- isLoading: false;
708
- isLoadingError: false;
709
- isRefetchError: true;
710
- isSuccess: false;
711
- status: "error";
712
- 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>>;
713
- 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>>;
714
- hasNextPage: boolean;
715
- hasPreviousPage: boolean;
716
- isFetchingNextPage: boolean;
717
- isFetchingPreviousPage: boolean;
718
- dataUpdatedAt: number;
719
- errorUpdatedAt: number;
720
- failureCount: number;
721
- failureReason: Error | null;
722
- errorUpdateCount: number;
723
- isFetched: boolean;
724
- isFetchedAfterMount: boolean;
725
- isFetching: boolean;
726
- isInitialLoading: boolean;
727
- isPaused: boolean;
728
- isPlaceholderData: boolean;
729
- isRefetching: boolean;
730
- isStale: boolean;
731
- 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>>;
732
- fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
733
- } | {
734
- runs: openai_resources_beta_threads_runs_runs.Run[];
735
- data: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>;
736
- error: null;
737
- isError: false;
738
- isPending: false;
739
- isLoading: false;
740
- isLoadingError: false;
741
- isRefetchError: false;
742
- isSuccess: true;
743
- status: "success";
744
- 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>>;
745
- 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>>;
746
- hasNextPage: boolean;
747
- hasPreviousPage: boolean;
748
- isFetchingNextPage: boolean;
749
- isFetchingPreviousPage: boolean;
750
- dataUpdatedAt: number;
751
- errorUpdatedAt: number;
752
- failureCount: number;
753
- failureReason: Error | null;
754
- errorUpdateCount: number;
755
- isFetched: boolean;
756
- isFetchedAfterMount: boolean;
757
- isFetching: boolean;
758
- isInitialLoading: boolean;
759
- isPaused: boolean;
760
- isPlaceholderData: boolean;
761
- isRefetching: boolean;
762
- isStale: boolean;
763
- 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>>;
764
- fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
765
- } | {
766
- runs: openai_resources_beta_threads_runs_runs.Run[];
767
- data: undefined;
768
- error: Error;
769
- isError: true;
770
- isPending: false;
771
- isLoading: false;
772
- isLoadingError: true;
773
- isRefetchError: false;
774
- isSuccess: false;
775
- status: "error";
776
- 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>>;
777
- 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>>;
778
- hasNextPage: boolean;
779
- hasPreviousPage: boolean;
780
- isFetchingNextPage: boolean;
781
- isFetchingPreviousPage: boolean;
782
- dataUpdatedAt: number;
783
- errorUpdatedAt: number;
784
- failureCount: number;
785
- failureReason: Error | null;
786
- errorUpdateCount: number;
787
- isFetched: boolean;
788
- isFetchedAfterMount: boolean;
789
- isFetching: boolean;
790
- isInitialLoading: boolean;
791
- isPaused: boolean;
792
- isPlaceholderData: boolean;
793
- isRefetching: boolean;
794
- isStale: boolean;
795
- 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>>;
796
- fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
797
- } | {
798
- runs: openai_resources_beta_threads_runs_runs.Run[];
799
- data: undefined;
800
- error: null;
801
- isError: false;
802
- isPending: true;
803
- isLoading: true;
804
- isLoadingError: false;
805
- isRefetchError: false;
806
- isSuccess: false;
807
- status: "pending";
808
- 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>>;
809
- 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>>;
810
- hasNextPage: boolean;
811
- hasPreviousPage: boolean;
812
- isFetchingNextPage: boolean;
813
- isFetchingPreviousPage: boolean;
814
- dataUpdatedAt: number;
815
- errorUpdatedAt: number;
816
- failureCount: number;
817
- failureReason: Error | null;
818
- errorUpdateCount: number;
819
- isFetched: boolean;
820
- isFetchedAfterMount: boolean;
821
- isFetching: boolean;
822
- isInitialLoading: boolean;
823
- isPaused: boolean;
824
- isPlaceholderData: boolean;
825
- isRefetching: boolean;
826
- isStale: boolean;
827
- 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>>;
828
- fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
829
- } | {
830
- runs: openai_resources_beta_threads_runs_runs.Run[];
831
- data: undefined;
832
- error: null;
833
- isError: false;
834
- isPending: true;
835
- isLoadingError: false;
836
- isRefetchError: false;
837
- isSuccess: false;
838
- status: "pending";
839
- 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>>;
840
- 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>>;
841
- hasNextPage: boolean;
842
- hasPreviousPage: boolean;
843
- isFetchingNextPage: boolean;
844
- isFetchingPreviousPage: boolean;
845
- dataUpdatedAt: number;
846
- errorUpdatedAt: number;
847
- failureCount: number;
848
- failureReason: Error | null;
849
- errorUpdateCount: number;
850
- isFetched: boolean;
851
- isFetchedAfterMount: boolean;
852
- isFetching: boolean;
853
- isLoading: boolean;
854
- isInitialLoading: boolean;
855
- isPaused: boolean;
856
- isPlaceholderData: boolean;
857
- isRefetching: boolean;
858
- isStale: boolean;
859
- 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>>;
860
- fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
861
- };
862
-
863
- declare const useLatestRun: () => {
864
- latestRun: openai_resources_beta_threads_runs_runs.Run;
865
- runs: openai_resources_beta_threads_runs_runs.Run[];
866
- data: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>;
867
- error: Error;
868
- isError: true;
869
- isPending: false;
870
- isLoading: false;
871
- isLoadingError: false;
872
- isRefetchError: true;
873
- isSuccess: false;
874
- status: "error";
875
- 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>>;
876
- 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>>;
877
- hasNextPage: boolean;
878
- hasPreviousPage: boolean;
879
- isFetchingNextPage: boolean;
880
- isFetchingPreviousPage: boolean;
881
- dataUpdatedAt: number;
882
- errorUpdatedAt: number;
883
- failureCount: number;
884
- failureReason: Error | null;
885
- errorUpdateCount: number;
886
- isFetched: boolean;
887
- isFetchedAfterMount: boolean;
888
- isFetching: boolean;
889
- isInitialLoading: boolean;
890
- isPaused: boolean;
891
- isPlaceholderData: boolean;
892
- isRefetching: boolean;
893
- isStale: boolean;
894
- 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>>;
895
- fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
896
- } | {
897
- latestRun: openai_resources_beta_threads_runs_runs.Run;
898
- runs: openai_resources_beta_threads_runs_runs.Run[];
899
- data: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>;
900
- error: null;
901
- isError: false;
902
- isPending: false;
903
- isLoading: false;
904
- isLoadingError: false;
905
- isRefetchError: false;
906
- isSuccess: true;
907
- status: "success";
908
- 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>>;
909
- 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>>;
910
- hasNextPage: boolean;
911
- hasPreviousPage: boolean;
912
- isFetchingNextPage: boolean;
913
- isFetchingPreviousPage: boolean;
914
- dataUpdatedAt: number;
915
- errorUpdatedAt: number;
916
- failureCount: number;
917
- failureReason: Error | null;
918
- errorUpdateCount: number;
919
- isFetched: boolean;
920
- isFetchedAfterMount: boolean;
921
- isFetching: boolean;
922
- isInitialLoading: boolean;
923
- isPaused: boolean;
924
- isPlaceholderData: boolean;
925
- isRefetching: boolean;
926
- isStale: boolean;
927
- 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>>;
928
- fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
929
- } | {
930
- latestRun: openai_resources_beta_threads_runs_runs.Run;
931
- runs: openai_resources_beta_threads_runs_runs.Run[];
932
- data: undefined;
933
- error: Error;
934
- isError: true;
935
- isPending: false;
936
- isLoading: false;
937
- isLoadingError: true;
938
- isRefetchError: false;
939
- isSuccess: false;
940
- status: "error";
941
- 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>>;
942
- 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>>;
943
- hasNextPage: boolean;
944
- hasPreviousPage: boolean;
945
- isFetchingNextPage: boolean;
946
- isFetchingPreviousPage: boolean;
947
- dataUpdatedAt: number;
948
- errorUpdatedAt: number;
949
- failureCount: number;
950
- failureReason: Error | null;
951
- errorUpdateCount: number;
952
- isFetched: boolean;
953
- isFetchedAfterMount: boolean;
954
- isFetching: boolean;
955
- isInitialLoading: boolean;
956
- isPaused: boolean;
957
- isPlaceholderData: boolean;
958
- isRefetching: boolean;
959
- isStale: boolean;
960
- 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>>;
961
- fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
962
- } | {
963
- latestRun: openai_resources_beta_threads_runs_runs.Run;
964
- runs: openai_resources_beta_threads_runs_runs.Run[];
965
- data: undefined;
966
- error: null;
967
- isError: false;
968
- isPending: true;
969
- isLoading: true;
970
- isLoadingError: false;
971
- isRefetchError: false;
972
- isSuccess: false;
973
- status: "pending";
974
- 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>>;
975
- 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>>;
976
- hasNextPage: boolean;
977
- hasPreviousPage: boolean;
978
- isFetchingNextPage: boolean;
979
- isFetchingPreviousPage: boolean;
980
- dataUpdatedAt: number;
981
- errorUpdatedAt: number;
982
- failureCount: number;
983
- failureReason: Error | null;
984
- errorUpdateCount: number;
985
- isFetched: boolean;
986
- isFetchedAfterMount: boolean;
987
- isFetching: boolean;
988
- isInitialLoading: boolean;
989
- isPaused: boolean;
990
- isPlaceholderData: boolean;
991
- isRefetching: boolean;
992
- isStale: boolean;
993
- 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>>;
994
- fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
995
- } | {
996
- latestRun: openai_resources_beta_threads_runs_runs.Run;
997
- runs: openai_resources_beta_threads_runs_runs.Run[];
998
- data: undefined;
999
- error: null;
1000
- isError: false;
1001
- isPending: true;
1002
- isLoadingError: false;
1003
- isRefetchError: false;
1004
- isSuccess: false;
1005
- status: "pending";
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
- isLoading: boolean;
1021
- isInitialLoading: boolean;
1022
- isPaused: boolean;
1023
- isPlaceholderData: boolean;
1024
- isRefetching: boolean;
1025
- isStale: boolean;
1026
- 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>>;
1027
- fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
1028
- };
1029
-
1030
- declare const useIsRunActive: () => {
1031
- isRunActive: boolean;
1032
- latestRun: openai_resources_beta_threads_runs_runs.Run;
1033
- runs: openai_resources_beta_threads_runs_runs.Run[];
1034
- data: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>;
1035
- error: Error;
1036
- isError: true;
1037
- isPending: false;
1038
- isLoading: false;
1039
- isLoadingError: false;
1040
- isRefetchError: true;
1041
- isSuccess: false;
1042
- status: "error";
1043
- 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>>;
1044
- 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>>;
1045
- hasNextPage: boolean;
1046
- hasPreviousPage: boolean;
1047
- isFetchingNextPage: boolean;
1048
- isFetchingPreviousPage: boolean;
1049
- dataUpdatedAt: number;
1050
- errorUpdatedAt: number;
1051
- failureCount: number;
1052
- failureReason: Error | null;
1053
- errorUpdateCount: number;
1054
- isFetched: boolean;
1055
- isFetchedAfterMount: boolean;
1056
- isFetching: boolean;
1057
- isInitialLoading: boolean;
1058
- isPaused: boolean;
1059
- isPlaceholderData: boolean;
1060
- isRefetching: boolean;
1061
- isStale: boolean;
1062
- 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>>;
1063
- fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
1064
- } | {
1065
- isRunActive: boolean;
1066
- latestRun: openai_resources_beta_threads_runs_runs.Run;
1067
- runs: openai_resources_beta_threads_runs_runs.Run[];
1068
- data: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.B<TQueryFnData, unknown>;
1069
- error: null;
1070
- isError: false;
1071
- isPending: false;
1072
- isLoading: false;
1073
- isLoadingError: false;
1074
- isRefetchError: false;
1075
- isSuccess: true;
1076
- status: "success";
1077
- 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>>;
1078
- 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>>;
1079
- hasNextPage: boolean;
1080
- hasPreviousPage: boolean;
1081
- isFetchingNextPage: boolean;
1082
- isFetchingPreviousPage: boolean;
1083
- dataUpdatedAt: number;
1084
- errorUpdatedAt: number;
1085
- failureCount: number;
1086
- failureReason: Error | null;
1087
- errorUpdateCount: number;
1088
- isFetched: boolean;
1089
- isFetchedAfterMount: boolean;
1090
- isFetching: boolean;
1091
- isInitialLoading: boolean;
1092
- isPaused: boolean;
1093
- isPlaceholderData: boolean;
1094
- isRefetching: boolean;
1095
- isStale: boolean;
1096
- 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>>;
1097
- fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
1098
- } | {
1099
- isRunActive: boolean;
1100
- latestRun: openai_resources_beta_threads_runs_runs.Run;
1101
- runs: openai_resources_beta_threads_runs_runs.Run[];
1102
- data: undefined;
1103
- error: Error;
1104
- isError: true;
1105
- isPending: false;
1106
- isLoading: false;
1107
- isLoadingError: true;
1108
- isRefetchError: false;
1109
- isSuccess: false;
1110
- status: "error";
1111
- 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>>;
1112
- 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>>;
1113
- hasNextPage: boolean;
1114
- hasPreviousPage: boolean;
1115
- isFetchingNextPage: boolean;
1116
- isFetchingPreviousPage: boolean;
1117
- dataUpdatedAt: number;
1118
- errorUpdatedAt: number;
1119
- failureCount: number;
1120
- failureReason: Error | null;
1121
- errorUpdateCount: number;
1122
- isFetched: boolean;
1123
- isFetchedAfterMount: boolean;
1124
- isFetching: boolean;
1125
- isInitialLoading: boolean;
1126
- isPaused: boolean;
1127
- isPlaceholderData: boolean;
1128
- isRefetching: boolean;
1129
- isStale: boolean;
1130
- 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>>;
1131
- fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
1132
- } | {
1133
- isRunActive: boolean;
1134
- latestRun: openai_resources_beta_threads_runs_runs.Run;
1135
- runs: openai_resources_beta_threads_runs_runs.Run[];
1136
- data: undefined;
1137
- error: null;
1138
- isError: false;
1139
- isPending: true;
1140
- isLoading: true;
1141
- isLoadingError: false;
1142
- isRefetchError: false;
1143
- isSuccess: false;
1144
- status: "pending";
1145
- 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>>;
1146
- 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>>;
1147
- hasNextPage: boolean;
1148
- hasPreviousPage: boolean;
1149
- isFetchingNextPage: boolean;
1150
- isFetchingPreviousPage: boolean;
1151
- dataUpdatedAt: number;
1152
- errorUpdatedAt: number;
1153
- failureCount: number;
1154
- failureReason: Error | null;
1155
- errorUpdateCount: number;
1156
- isFetched: boolean;
1157
- isFetchedAfterMount: boolean;
1158
- isFetching: boolean;
1159
- isInitialLoading: boolean;
1160
- isPaused: boolean;
1161
- isPlaceholderData: boolean;
1162
- isRefetching: boolean;
1163
- isStale: boolean;
1164
- 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>>;
1165
- fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
1166
- } | {
1167
- isRunActive: boolean;
1168
- latestRun: openai_resources_beta_threads_runs_runs.Run;
1169
- runs: openai_resources_beta_threads_runs_runs.Run[];
1170
- data: undefined;
1171
- error: null;
1172
- isError: false;
1173
- isPending: true;
1174
- isLoadingError: false;
1175
- isRefetchError: false;
1176
- isSuccess: false;
1177
- status: "pending";
1178
- 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>>;
1179
- 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>>;
1180
- hasNextPage: boolean;
1181
- hasPreviousPage: boolean;
1182
- isFetchingNextPage: boolean;
1183
- isFetchingPreviousPage: boolean;
1184
- dataUpdatedAt: number;
1185
- errorUpdatedAt: number;
1186
- failureCount: number;
1187
- failureReason: Error | null;
1188
- errorUpdateCount: number;
1189
- isFetched: boolean;
1190
- isFetchedAfterMount: boolean;
1191
- isFetching: boolean;
1192
- isLoading: boolean;
1193
- isInitialLoading: boolean;
1194
- isPaused: boolean;
1195
- isPlaceholderData: boolean;
1196
- isRefetching: boolean;
1197
- isStale: boolean;
1198
- 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>>;
1199
- fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
1200
- };
1201
-
1202
530
  declare const Suggestions: {
1203
531
  ({ children, }: {
1204
532
  children: React.ReactNode;
@@ -1271,4 +599,4 @@ type Args = {
1271
599
  };
1272
600
  declare const FunctionBase: ({ fn, runStep, title, }: Args) => react_jsx_runtime.JSX.Element;
1273
601
 
1274
- export { AssistantAvatarContext, AssistantNameContext, AudioThread, AudioThreadDialog, FunctionBase, FunctionComponentsContext, MarkdownContext, MarkdownProvider, Suggestions, SuperinterfaceProvider, Thread, ThreadDialog, ThreadDialogContext, useCreateMessage, useCreateRun, useIsRunActive, useLatestMessage, useLatestRun, useLifecycle, useMarkdownContext, useMessageContext, useMessages, useRuns };
602
+ export { AssistantAvatarContext, AssistantNameContext, AudioThread, AudioThreadDialog, FunctionBase, FunctionComponentsContext, MarkdownContext, MarkdownProvider, Suggestions, SuperinterfaceProvider, Thread, ThreadDialog, ThreadDialogContext, useCreateMessage, useLatestMessage, useMarkdownContext, useMessageContext, useMessages };