@distilled.cloud/typesense 1.0.0-rc.8 → 1.0.0-rc.9
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/LICENSE +201 -0
- package/lib/services/typesense.d.ts +968 -968
- package/lib/services/typesense.d.ts.map +1 -1
- package/lib/services/typesense.js +814 -818
- package/lib/services/typesense.js.map +1 -1
- package/package.json +5 -3
- package/src/services/typesense.ts +2894 -2910
|
@@ -578,540 +578,8 @@ export const CollectionAliasesResponse = /*@__PURE__*/ S.suspend(() => S.Struct(
|
|
|
578
578
|
})).annotate({
|
|
579
579
|
identifier: "CollectionAliasesResponse",
|
|
580
580
|
});
|
|
581
|
-
export const
|
|
582
|
-
|
|
583
|
-
name: S.String.pipe(T.Query()),
|
|
584
|
-
n: S.Number.pipe(T.Query()),
|
|
585
|
-
}).pipe(T.Http({ method: "GET", uri: "/analytics/events", code: 200 }))).annotate({
|
|
586
|
-
identifier: "GetAnalyticsEventsRequest",
|
|
587
|
-
});
|
|
588
|
-
export const AnalyticsEventsResponseEventsItemDocIdsList =
|
|
589
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
590
|
-
export const AnalyticsEventsResponseEventsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
591
|
-
name: S.optional(S.String),
|
|
592
|
-
event_type: S.optional(S.String),
|
|
593
|
-
collection: S.optional(S.String),
|
|
594
|
-
timestamp: S.optional(S.Number),
|
|
595
|
-
user_id: S.optional(S.String),
|
|
596
|
-
doc_id: S.optional(S.String),
|
|
597
|
-
doc_ids: S.optional(AnalyticsEventsResponseEventsItemDocIdsList),
|
|
598
|
-
query: S.optional(S.String),
|
|
599
|
-
})).annotate({
|
|
600
|
-
identifier: "AnalyticsEventsResponseEventsItem",
|
|
601
|
-
});
|
|
602
|
-
export const AnalyticsEventsResponseEventsList = /*@__PURE__*/ S.Array(AnalyticsEventsResponseEventsItem);
|
|
603
|
-
export const AnalyticsEventsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
604
|
-
events: AnalyticsEventsResponseEventsList,
|
|
605
|
-
})).annotate({
|
|
606
|
-
identifier: "AnalyticsEventsResponse",
|
|
607
|
-
});
|
|
608
|
-
export const GetAnalyticsStatusRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/analytics/status", code: 200 }))).annotate({
|
|
609
|
-
identifier: "GetAnalyticsStatusRequest",
|
|
610
|
-
});
|
|
611
|
-
export const AnalyticsStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
612
|
-
popular_prefix_queries: S.optional(S.Number),
|
|
613
|
-
nohits_prefix_queries: S.optional(S.Number),
|
|
614
|
-
log_prefix_queries: S.optional(S.Number),
|
|
615
|
-
query_log_events: S.optional(S.Number),
|
|
616
|
-
query_counter_events: S.optional(S.Number),
|
|
617
|
-
doc_log_events: S.optional(S.Number),
|
|
618
|
-
doc_counter_events: S.optional(S.Number),
|
|
619
|
-
})).annotate({
|
|
620
|
-
identifier: "AnalyticsStatus",
|
|
621
|
-
});
|
|
622
|
-
export const GetCollectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
623
|
-
collectionName: S.String.pipe(T.Label()),
|
|
624
|
-
}).pipe(T.Http({ method: "GET", uri: "/collections/{collectionName}", code: 200 }))).annotate({
|
|
625
|
-
identifier: "GetCollectionRequest",
|
|
626
|
-
});
|
|
627
|
-
export const GetCollectionResponseFieldsList = /*@__PURE__*/ S.Array(Field);
|
|
628
|
-
export const GetCollectionResponseTokenSeparatorsList = /*@__PURE__*/ S.Array(S.String);
|
|
629
|
-
export const GetCollectionResponseSynonymSetsList = /*@__PURE__*/ S.Array(S.String);
|
|
630
|
-
export const GetCollectionResponseSymbolsToIndexList = /*@__PURE__*/ S.Array(S.String);
|
|
631
|
-
export const GetCollectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
632
|
-
name: S.String,
|
|
633
|
-
fields: GetCollectionResponseFieldsList,
|
|
634
|
-
default_sorting_field: S.optional(S.String),
|
|
635
|
-
token_separators: S.optional(GetCollectionResponseTokenSeparatorsList),
|
|
636
|
-
synonym_sets: S.optional(GetCollectionResponseSynonymSetsList),
|
|
637
|
-
enable_nested_fields: S.optional(S.Boolean),
|
|
638
|
-
symbols_to_index: S.optional(GetCollectionResponseSymbolsToIndexList),
|
|
639
|
-
voice_query_model: S.optional(VoiceQueryModelCollectionConfig),
|
|
640
|
-
metadata: S.optional(S.Unknown),
|
|
641
|
-
num_documents: S.Number,
|
|
642
|
-
created_at: S.Number,
|
|
643
|
-
})).annotate({
|
|
644
|
-
identifier: "GetCollectionResponse",
|
|
645
|
-
});
|
|
646
|
-
export const GetCollectionsRequestGetCollectionsParameters =
|
|
647
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
648
|
-
exclude_fields: S.optional(S.String),
|
|
649
|
-
limit: S.optional(S.Number),
|
|
650
|
-
offset: S.optional(S.Number),
|
|
651
|
-
})).annotate({
|
|
652
|
-
identifier: "GetCollectionsRequestGetCollectionsParameters",
|
|
653
|
-
});
|
|
654
|
-
export const GetCollectionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
655
|
-
getCollectionsParameters: S.optional(GetCollectionsRequestGetCollectionsParameters.pipe(T.Query())),
|
|
656
|
-
}).pipe(T.Http({ method: "GET", uri: "/collections", code: 200 }))).annotate({
|
|
657
|
-
identifier: "GetCollectionsRequest",
|
|
658
|
-
});
|
|
659
|
-
export const CollectionResponseFieldsList = /*@__PURE__*/ S.Array(Field);
|
|
660
|
-
export const CollectionResponseTokenSeparatorsList = /*@__PURE__*/ S.Array(S.String);
|
|
661
|
-
export const CollectionResponseSynonymSetsList = /*@__PURE__*/ S.Array(S.String);
|
|
662
|
-
export const CollectionResponseSymbolsToIndexList = /*@__PURE__*/ S.Array(S.String);
|
|
663
|
-
export const CollectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
664
|
-
name: S.String,
|
|
665
|
-
fields: CollectionResponseFieldsList,
|
|
666
|
-
default_sorting_field: S.optional(S.String),
|
|
667
|
-
token_separators: S.optional(CollectionResponseTokenSeparatorsList),
|
|
668
|
-
synonym_sets: S.optional(CollectionResponseSynonymSetsList),
|
|
669
|
-
enable_nested_fields: S.optional(S.Boolean),
|
|
670
|
-
symbols_to_index: S.optional(CollectionResponseSymbolsToIndexList),
|
|
671
|
-
voice_query_model: S.optional(VoiceQueryModelCollectionConfig),
|
|
672
|
-
metadata: S.optional(S.Unknown),
|
|
673
|
-
num_documents: S.Number,
|
|
674
|
-
created_at: S.Number,
|
|
675
|
-
})).annotate({
|
|
676
|
-
identifier: "CollectionResponse",
|
|
677
|
-
});
|
|
678
|
-
export const GetCollectionsResponseBodyList = /*@__PURE__*/ S.Array(CollectionResponse);
|
|
679
|
-
export const GetCollectionsResponse = /*@__PURE__*/ S.suspend(() => GetCollectionsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
680
|
-
identifier: "GetCollectionsResponse",
|
|
681
|
-
});
|
|
682
|
-
export const GetDocumentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
683
|
-
collectionName: S.String.pipe(T.Label()),
|
|
684
|
-
documentId: S.String.pipe(T.Label()),
|
|
685
|
-
}).pipe(T.Http({
|
|
686
|
-
method: "GET",
|
|
687
|
-
uri: "/collections/{collectionName}/documents/{documentId}",
|
|
688
|
-
code: 200,
|
|
689
|
-
}))).annotate({
|
|
690
|
-
identifier: "GetDocumentRequest",
|
|
691
|
-
});
|
|
692
|
-
export const GetDocumentResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
693
|
-
identifier: "GetDocumentResponse",
|
|
694
|
-
});
|
|
695
|
-
export const GetKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
696
|
-
keyId: S.Number.pipe(T.Label()),
|
|
697
|
-
}).pipe(T.Http({ method: "GET", uri: "/keys/{keyId}", code: 200 }))).annotate({ identifier: "GetKeyRequest" });
|
|
698
|
-
export const GetKeyResponseActionsList = /*@__PURE__*/ S.Array(S.String);
|
|
699
|
-
export const GetKeyResponseCollectionsList = /*@__PURE__*/ S.Array(S.String);
|
|
700
|
-
export const GetKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
701
|
-
value: S.optional(S.String),
|
|
702
|
-
description: S.String,
|
|
703
|
-
actions: GetKeyResponseActionsList,
|
|
704
|
-
collections: GetKeyResponseCollectionsList,
|
|
705
|
-
expires_at: S.optional(S.Number),
|
|
706
|
-
id: S.optional(S.Number),
|
|
707
|
-
value_prefix: S.optional(S.String),
|
|
708
|
-
})).annotate({ identifier: "GetKeyResponse" });
|
|
709
|
-
export const GetKeysRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/keys", code: 200 }))).annotate({ identifier: "GetKeysRequest" });
|
|
710
|
-
export const ApiKeyActionsList = /*@__PURE__*/ S.Array(S.String);
|
|
711
|
-
export const ApiKeyCollectionsList = /*@__PURE__*/ S.Array(S.String);
|
|
712
|
-
export const ApiKey = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
713
|
-
value: S.optional(S.String),
|
|
714
|
-
description: S.String,
|
|
715
|
-
actions: ApiKeyActionsList,
|
|
716
|
-
collections: ApiKeyCollectionsList,
|
|
717
|
-
expires_at: S.optional(S.Number),
|
|
718
|
-
id: S.optional(S.Number),
|
|
719
|
-
value_prefix: S.optional(S.String),
|
|
720
|
-
})).annotate({ identifier: "ApiKey" });
|
|
721
|
-
export const ApiKeysResponseKeysList = /*@__PURE__*/ S.Array(ApiKey);
|
|
722
|
-
export const ApiKeysResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
723
|
-
keys: ApiKeysResponseKeysList,
|
|
724
|
-
})).annotate({
|
|
725
|
-
identifier: "ApiKeysResponse",
|
|
726
|
-
});
|
|
727
|
-
export const GetSchemaChangesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/operations/schema_changes", code: 200 }))).annotate({
|
|
728
|
-
identifier: "GetSchemaChangesRequest",
|
|
729
|
-
});
|
|
730
|
-
export const SchemaChangeStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
731
|
-
collection: S.optional(S.String),
|
|
732
|
-
validated_docs: S.optional(S.Number),
|
|
733
|
-
altered_docs: S.optional(S.Number),
|
|
734
|
-
})).annotate({
|
|
735
|
-
identifier: "SchemaChangeStatus",
|
|
736
|
-
});
|
|
737
|
-
export const GetSchemaChangesResponseBodyList = /*@__PURE__*/ S.Array(SchemaChangeStatus);
|
|
738
|
-
export const GetSchemaChangesResponse = /*@__PURE__*/ S.suspend(() => GetSchemaChangesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
739
|
-
identifier: "GetSchemaChangesResponse",
|
|
740
|
-
});
|
|
741
|
-
export const GetStemmingDictionaryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
742
|
-
dictionaryId: S.String.pipe(T.Label()),
|
|
743
|
-
}).pipe(T.Http({
|
|
744
|
-
method: "GET",
|
|
745
|
-
uri: "/stemming/dictionaries/{dictionaryId}",
|
|
746
|
-
code: 200,
|
|
747
|
-
}))).annotate({
|
|
748
|
-
identifier: "GetStemmingDictionaryRequest",
|
|
749
|
-
});
|
|
750
|
-
export const StemmingDictionaryWordsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
751
|
-
word: S.String,
|
|
752
|
-
root: S.String,
|
|
753
|
-
})).annotate({
|
|
754
|
-
identifier: "StemmingDictionaryWordsItem",
|
|
755
|
-
});
|
|
756
|
-
export const StemmingDictionaryWordsList = /*@__PURE__*/ S.Array(StemmingDictionaryWordsItem);
|
|
757
|
-
export const StemmingDictionary = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
758
|
-
id: S.String,
|
|
759
|
-
words: StemmingDictionaryWordsList,
|
|
760
|
-
})).annotate({
|
|
761
|
-
identifier: "StemmingDictionary",
|
|
762
|
-
});
|
|
763
|
-
export const HealthRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/health", code: 200 }))).annotate({ identifier: "HealthRequest" });
|
|
764
|
-
export const HealthStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
765
|
-
ok: S.Boolean,
|
|
766
|
-
})).annotate({ identifier: "HealthStatus" });
|
|
767
|
-
export const IndexAction = /*@__PURE__*/ S.String;
|
|
768
|
-
export const DirtyValues = /*@__PURE__*/ S.String;
|
|
769
|
-
export const ImportDocumentsRequestImportDocumentsParameters =
|
|
770
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
771
|
-
batch_size: S.optional(S.Number),
|
|
772
|
-
return_id: S.optional(S.Boolean),
|
|
773
|
-
remote_embedding_batch_size: S.optional(S.Number),
|
|
774
|
-
return_doc: S.optional(S.Boolean),
|
|
775
|
-
action: S.optional(IndexAction),
|
|
776
|
-
dirty_values: S.optional(DirtyValues),
|
|
777
|
-
})).annotate({
|
|
778
|
-
identifier: "ImportDocumentsRequestImportDocumentsParameters",
|
|
779
|
-
});
|
|
780
|
-
export const ImportDocumentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
781
|
-
collectionName: S.String.pipe(T.Label()),
|
|
782
|
-
importDocumentsParameters: S.optional(ImportDocumentsRequestImportDocumentsParameters.pipe(T.Query())),
|
|
783
|
-
}).pipe(T.Http({
|
|
784
|
-
method: "POST",
|
|
785
|
-
uri: "/collections/{collectionName}/documents/import",
|
|
786
|
-
code: 200,
|
|
787
|
-
}))).annotate({
|
|
788
|
-
identifier: "ImportDocumentsRequest",
|
|
789
|
-
});
|
|
790
|
-
export const ImportDocumentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
791
|
-
identifier: "ImportDocumentsResponse",
|
|
792
|
-
});
|
|
793
|
-
export const ImportStemmingDictionaryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
794
|
-
id: S.String.pipe(T.Query()),
|
|
795
|
-
body: S.String.pipe(T.HttpBody()),
|
|
796
|
-
}).pipe(T.Http({ method: "POST", uri: "/stemming/dictionaries/import", code: 200 }))).annotate({
|
|
797
|
-
identifier: "ImportStemmingDictionaryRequest",
|
|
798
|
-
});
|
|
799
|
-
export const ImportStemmingDictionaryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
800
|
-
identifier: "ImportStemmingDictionaryResponse",
|
|
801
|
-
});
|
|
802
|
-
export const IndexDocumentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
803
|
-
collectionName: S.String.pipe(T.Label()),
|
|
804
|
-
action: S.optional(IndexAction.pipe(T.Query())),
|
|
805
|
-
dirty_values: S.optional(DirtyValues.pipe(T.Query())),
|
|
806
|
-
}).pipe(T.Http({
|
|
807
|
-
method: "POST",
|
|
808
|
-
uri: "/collections/{collectionName}/documents",
|
|
809
|
-
code: 200,
|
|
810
|
-
}))).annotate({
|
|
811
|
-
identifier: "IndexDocumentRequest",
|
|
812
|
-
});
|
|
813
|
-
export const IndexDocumentResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
814
|
-
identifier: "IndexDocumentResponse",
|
|
815
|
-
});
|
|
816
|
-
export const ListStemmingDictionariesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/stemming/dictionaries", code: 200 }))).annotate({
|
|
817
|
-
identifier: "ListStemmingDictionariesRequest",
|
|
818
|
-
});
|
|
819
|
-
export const ListStemmingDictionariesResponseDictionariesList =
|
|
820
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
821
|
-
export const ListStemmingDictionariesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
822
|
-
dictionaries: S.optional(ListStemmingDictionariesResponseDictionariesList),
|
|
823
|
-
})).annotate({
|
|
824
|
-
identifier: "ListStemmingDictionariesResponse",
|
|
825
|
-
});
|
|
826
|
-
export const DropTokensMode = /*@__PURE__*/ S.String;
|
|
827
|
-
export const MultiSearchParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
828
|
-
q: S.optional(S.String),
|
|
829
|
-
query_by: S.optional(S.String),
|
|
830
|
-
query_by_weights: S.optional(S.String),
|
|
831
|
-
text_match_type: S.optional(S.String),
|
|
832
|
-
prefix: S.optional(S.String),
|
|
833
|
-
infix: S.optional(S.String),
|
|
834
|
-
max_extra_prefix: S.optional(S.Number),
|
|
835
|
-
max_extra_suffix: S.optional(S.Number),
|
|
836
|
-
filter_by: S.optional(S.String),
|
|
837
|
-
sort_by: S.optional(S.String),
|
|
838
|
-
facet_by: S.optional(S.String),
|
|
839
|
-
max_facet_values: S.optional(S.Number),
|
|
840
|
-
facet_query: S.optional(S.String),
|
|
841
|
-
num_typos: S.optional(S.String),
|
|
842
|
-
page: S.optional(S.Number),
|
|
843
|
-
per_page: S.optional(S.Number),
|
|
844
|
-
limit: S.optional(S.Number),
|
|
845
|
-
offset: S.optional(S.Number),
|
|
846
|
-
group_by: S.optional(S.String),
|
|
847
|
-
group_limit: S.optional(S.Number),
|
|
848
|
-
group_missing_values: S.optional(S.Boolean),
|
|
849
|
-
include_fields: S.optional(S.String),
|
|
850
|
-
exclude_fields: S.optional(S.String),
|
|
851
|
-
highlight_full_fields: S.optional(S.String),
|
|
852
|
-
highlight_affix_num_tokens: S.optional(S.Number),
|
|
853
|
-
highlight_start_tag: S.optional(S.String),
|
|
854
|
-
highlight_end_tag: S.optional(S.String),
|
|
855
|
-
snippet_threshold: S.optional(S.Number),
|
|
856
|
-
drop_tokens_threshold: S.optional(S.Number),
|
|
857
|
-
drop_tokens_mode: S.optional(DropTokensMode),
|
|
858
|
-
typo_tokens_threshold: S.optional(S.Number),
|
|
859
|
-
enable_typos_for_alpha_numerical_tokens: S.optional(S.Boolean),
|
|
860
|
-
filter_curated_hits: S.optional(S.Boolean),
|
|
861
|
-
enable_synonyms: S.optional(S.Boolean),
|
|
862
|
-
enable_analytics: S.optional(S.Boolean),
|
|
863
|
-
synonym_prefix: S.optional(S.Boolean),
|
|
864
|
-
synonym_num_typos: S.optional(S.Number),
|
|
865
|
-
pinned_hits: S.optional(S.String),
|
|
866
|
-
hidden_hits: S.optional(S.String),
|
|
867
|
-
curation_tags: S.optional(S.String),
|
|
868
|
-
highlight_fields: S.optional(S.String),
|
|
869
|
-
pre_segmented_query: S.optional(S.Boolean),
|
|
870
|
-
preset: S.optional(S.String),
|
|
871
|
-
enable_curations: S.optional(S.Boolean),
|
|
872
|
-
prioritize_exact_match: S.optional(S.Boolean),
|
|
873
|
-
prioritize_token_position: S.optional(S.Boolean),
|
|
874
|
-
prioritize_num_matching_fields: S.optional(S.Boolean),
|
|
875
|
-
enable_typos_for_numerical_tokens: S.optional(S.Boolean),
|
|
876
|
-
exhaustive_search: S.optional(S.Boolean),
|
|
877
|
-
search_cutoff_ms: S.optional(S.Number),
|
|
878
|
-
use_cache: S.optional(S.Boolean),
|
|
879
|
-
cache_ttl: S.optional(S.Number),
|
|
880
|
-
min_len_1typo: S.optional(S.Number),
|
|
881
|
-
min_len_2typo: S.optional(S.Number),
|
|
882
|
-
vector_query: S.optional(S.String),
|
|
883
|
-
remote_embedding_timeout_ms: S.optional(S.Number),
|
|
884
|
-
remote_embedding_num_tries: S.optional(S.Number),
|
|
885
|
-
facet_strategy: S.optional(S.String),
|
|
886
|
-
stopwords: S.optional(S.String),
|
|
887
|
-
facet_return_parent: S.optional(S.String),
|
|
888
|
-
voice_query: S.optional(S.String),
|
|
889
|
-
conversation: S.optional(S.Boolean),
|
|
890
|
-
conversation_model_id: S.optional(S.String),
|
|
891
|
-
conversation_id: S.optional(S.String),
|
|
892
|
-
validate_field_names: S.optional(S.Boolean),
|
|
893
|
-
})).annotate({
|
|
894
|
-
identifier: "MultiSearchParameters",
|
|
895
|
-
});
|
|
896
|
-
export const MultiSearchCollectionParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
897
|
-
q: S.optional(S.String),
|
|
898
|
-
query_by: S.optional(S.String),
|
|
899
|
-
query_by_weights: S.optional(S.String),
|
|
900
|
-
text_match_type: S.optional(S.String),
|
|
901
|
-
prefix: S.optional(S.String),
|
|
902
|
-
infix: S.optional(S.String),
|
|
903
|
-
max_extra_prefix: S.optional(S.Number),
|
|
904
|
-
max_extra_suffix: S.optional(S.Number),
|
|
905
|
-
filter_by: S.optional(S.String),
|
|
906
|
-
sort_by: S.optional(S.String),
|
|
907
|
-
facet_by: S.optional(S.String),
|
|
908
|
-
max_facet_values: S.optional(S.Number),
|
|
909
|
-
facet_query: S.optional(S.String),
|
|
910
|
-
num_typos: S.optional(S.String),
|
|
911
|
-
page: S.optional(S.Number),
|
|
912
|
-
per_page: S.optional(S.Number),
|
|
913
|
-
limit: S.optional(S.Number),
|
|
914
|
-
offset: S.optional(S.Number),
|
|
915
|
-
group_by: S.optional(S.String),
|
|
916
|
-
group_limit: S.optional(S.Number),
|
|
917
|
-
group_missing_values: S.optional(S.Boolean),
|
|
918
|
-
include_fields: S.optional(S.String),
|
|
919
|
-
exclude_fields: S.optional(S.String),
|
|
920
|
-
highlight_full_fields: S.optional(S.String),
|
|
921
|
-
highlight_affix_num_tokens: S.optional(S.Number),
|
|
922
|
-
highlight_start_tag: S.optional(S.String),
|
|
923
|
-
highlight_end_tag: S.optional(S.String),
|
|
924
|
-
snippet_threshold: S.optional(S.Number),
|
|
925
|
-
drop_tokens_threshold: S.optional(S.Number),
|
|
926
|
-
drop_tokens_mode: S.optional(DropTokensMode),
|
|
927
|
-
typo_tokens_threshold: S.optional(S.Number),
|
|
928
|
-
enable_typos_for_alpha_numerical_tokens: S.optional(S.Boolean),
|
|
929
|
-
filter_curated_hits: S.optional(S.Boolean),
|
|
930
|
-
enable_synonyms: S.optional(S.Boolean),
|
|
931
|
-
enable_analytics: S.optional(S.Boolean),
|
|
932
|
-
synonym_prefix: S.optional(S.Boolean),
|
|
933
|
-
synonym_num_typos: S.optional(S.Number),
|
|
934
|
-
pinned_hits: S.optional(S.String),
|
|
935
|
-
hidden_hits: S.optional(S.String),
|
|
936
|
-
curation_tags: S.optional(S.String),
|
|
937
|
-
highlight_fields: S.optional(S.String),
|
|
938
|
-
pre_segmented_query: S.optional(S.Boolean),
|
|
939
|
-
preset: S.optional(S.String),
|
|
940
|
-
enable_curations: S.optional(S.Boolean),
|
|
941
|
-
prioritize_exact_match: S.optional(S.Boolean),
|
|
942
|
-
prioritize_token_position: S.optional(S.Boolean),
|
|
943
|
-
prioritize_num_matching_fields: S.optional(S.Boolean),
|
|
944
|
-
enable_typos_for_numerical_tokens: S.optional(S.Boolean),
|
|
945
|
-
exhaustive_search: S.optional(S.Boolean),
|
|
946
|
-
search_cutoff_ms: S.optional(S.Number),
|
|
947
|
-
use_cache: S.optional(S.Boolean),
|
|
948
|
-
cache_ttl: S.optional(S.Number),
|
|
949
|
-
min_len_1typo: S.optional(S.Number),
|
|
950
|
-
min_len_2typo: S.optional(S.Number),
|
|
951
|
-
vector_query: S.optional(S.String),
|
|
952
|
-
remote_embedding_timeout_ms: S.optional(S.Number),
|
|
953
|
-
remote_embedding_num_tries: S.optional(S.Number),
|
|
954
|
-
facet_strategy: S.optional(S.String),
|
|
955
|
-
stopwords: S.optional(S.String),
|
|
956
|
-
facet_return_parent: S.optional(S.String),
|
|
957
|
-
voice_query: S.optional(S.String),
|
|
958
|
-
conversation: S.optional(S.Boolean),
|
|
959
|
-
conversation_model_id: S.optional(S.String),
|
|
960
|
-
conversation_id: S.optional(S.String),
|
|
961
|
-
validate_field_names: S.optional(S.Boolean),
|
|
962
|
-
collection: S.optional(S.String),
|
|
963
|
-
x_typesense_api_key: S.optional(S.String.pipe(T.Body("x-typesense-api-key"))),
|
|
964
|
-
rerank_hybrid_matches: S.optional(S.Boolean),
|
|
965
|
-
})).annotate({
|
|
966
|
-
identifier: "MultiSearchCollectionParameters",
|
|
967
|
-
});
|
|
968
|
-
export const MultiSearchRequestSearchesList = /*@__PURE__*/ S.Array(MultiSearchCollectionParameters);
|
|
969
|
-
export const MultiSearchRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
970
|
-
multiSearchParameters: MultiSearchParameters.pipe(T.Query()),
|
|
971
|
-
union: S.optional(S.Boolean),
|
|
972
|
-
searches: MultiSearchRequestSearchesList,
|
|
973
|
-
}).pipe(T.Http({ method: "POST", uri: "/multi_search", code: 200 }))).annotate({
|
|
974
|
-
identifier: "MultiSearchRequest",
|
|
975
|
-
});
|
|
976
|
-
export const FacetCountsCountsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
977
|
-
count: S.optional(S.Number),
|
|
978
|
-
highlighted: S.optional(S.String),
|
|
979
|
-
value: S.optional(S.String),
|
|
980
|
-
parent: S.optional(S.Unknown),
|
|
981
|
-
})).annotate({
|
|
982
|
-
identifier: "FacetCountsCountsItem",
|
|
983
|
-
});
|
|
984
|
-
export const FacetCountsCountsList = /*@__PURE__*/ S.Array(FacetCountsCountsItem);
|
|
985
|
-
export const FacetCountsStats = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
986
|
-
max: S.optional(S.Number),
|
|
987
|
-
min: S.optional(S.Number),
|
|
988
|
-
sum: S.optional(S.Number),
|
|
989
|
-
total_values: S.optional(S.Number),
|
|
990
|
-
avg: S.optional(S.Number),
|
|
991
|
-
})).annotate({
|
|
992
|
-
identifier: "FacetCountsStats",
|
|
993
|
-
});
|
|
994
|
-
export const FacetCounts = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
995
|
-
counts: S.optional(FacetCountsCountsList),
|
|
996
|
-
field_name: S.optional(S.String),
|
|
997
|
-
sampled: S.optional(S.Boolean),
|
|
998
|
-
stats: S.optional(FacetCountsStats),
|
|
999
|
-
})).annotate({ identifier: "FacetCounts" });
|
|
1000
|
-
export const MultiSearchResultItemFacetCountsList = /*@__PURE__*/ S.Array(FacetCounts);
|
|
1001
|
-
export const SearchGroupedHitGroupKeyList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
1002
|
-
export const SearchHighlightSnippetsList = /*@__PURE__*/ S.Array(S.String);
|
|
1003
|
-
export const SearchHighlightValuesList = /*@__PURE__*/ S.Array(S.String);
|
|
1004
|
-
export const SearchHighlightIndicesList = /*@__PURE__*/ S.Array(S.Number);
|
|
1005
|
-
export const SearchHighlightMatchedTokensList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
1006
|
-
export const SearchHighlight = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1007
|
-
field: S.optional(S.String),
|
|
1008
|
-
snippet: S.optional(S.String),
|
|
1009
|
-
snippets: S.optional(SearchHighlightSnippetsList),
|
|
1010
|
-
value: S.optional(S.String),
|
|
1011
|
-
values: S.optional(SearchHighlightValuesList),
|
|
1012
|
-
indices: S.optional(SearchHighlightIndicesList),
|
|
1013
|
-
matched_tokens: S.optional(SearchHighlightMatchedTokensList),
|
|
1014
|
-
})).annotate({
|
|
1015
|
-
identifier: "SearchHighlight",
|
|
1016
|
-
});
|
|
1017
|
-
export const SearchResultHitHighlightsList = /*@__PURE__*/ S.Array(SearchHighlight);
|
|
1018
|
-
export const SearchResultHitHighlightMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
1019
|
-
export const SearchResultHitDocumentMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
1020
|
-
export const SearchResultHitTextMatchInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1021
|
-
best_field_score: S.optional(S.String),
|
|
1022
|
-
best_field_weight: S.optional(S.Number),
|
|
1023
|
-
fields_matched: S.optional(S.Number),
|
|
1024
|
-
num_tokens_dropped: S.optional(S.Number),
|
|
1025
|
-
score: S.optional(S.String),
|
|
1026
|
-
tokens_matched: S.optional(S.Number),
|
|
1027
|
-
typo_prefix_score: S.optional(S.Number),
|
|
1028
|
-
})).annotate({
|
|
1029
|
-
identifier: "SearchResultHitTextMatchInfo",
|
|
1030
|
-
});
|
|
1031
|
-
export const SearchResultHitGeoDistanceMetersMap = /*@__PURE__*/ S.Record(S.String, S.Number);
|
|
1032
|
-
export const SearchResultHitHybridSearchInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1033
|
-
rank_fusion_score: S.optional(S.Number),
|
|
1034
|
-
})).annotate({
|
|
1035
|
-
identifier: "SearchResultHitHybridSearchInfo",
|
|
1036
|
-
});
|
|
1037
|
-
export const SearchResultHit = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1038
|
-
highlights: S.optional(SearchResultHitHighlightsList),
|
|
1039
|
-
highlight: S.optional(SearchResultHitHighlightMap),
|
|
1040
|
-
document: S.optional(SearchResultHitDocumentMap),
|
|
1041
|
-
text_match: S.optional(S.Number),
|
|
1042
|
-
text_match_info: S.optional(SearchResultHitTextMatchInfo),
|
|
1043
|
-
geo_distance_meters: S.optional(SearchResultHitGeoDistanceMetersMap),
|
|
1044
|
-
vector_distance: S.optional(S.Number),
|
|
1045
|
-
hybrid_search_info: S.optional(SearchResultHitHybridSearchInfo),
|
|
1046
|
-
search_index: S.optional(S.Number),
|
|
1047
|
-
})).annotate({
|
|
1048
|
-
identifier: "SearchResultHit",
|
|
1049
|
-
});
|
|
1050
|
-
export const SearchGroupedHitHitsList = /*@__PURE__*/ S.Array(SearchResultHit);
|
|
1051
|
-
export const SearchGroupedHit = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1052
|
-
found: S.optional(S.Number),
|
|
1053
|
-
group_key: SearchGroupedHitGroupKeyList,
|
|
1054
|
-
hits: SearchGroupedHitHitsList,
|
|
1055
|
-
})).annotate({
|
|
1056
|
-
identifier: "SearchGroupedHit",
|
|
1057
|
-
});
|
|
1058
|
-
export const MultiSearchResultItemGroupedHitsList = /*@__PURE__*/ S.Array(SearchGroupedHit);
|
|
1059
|
-
export const MultiSearchResultItemHitsList = /*@__PURE__*/ S.Array(SearchResultHit);
|
|
1060
|
-
export const SearchRequestParamsVoiceQuery = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1061
|
-
transcribed_query: S.optional(S.String),
|
|
1062
|
-
})).annotate({
|
|
1063
|
-
identifier: "SearchRequestParamsVoiceQuery",
|
|
1064
|
-
});
|
|
1065
|
-
export const SearchRequestParams = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1066
|
-
collection_name: S.String,
|
|
1067
|
-
first_q: S.optional(S.String),
|
|
1068
|
-
q: S.String,
|
|
1069
|
-
per_page: S.Number,
|
|
1070
|
-
voice_query: S.optional(SearchRequestParamsVoiceQuery),
|
|
1071
|
-
})).annotate({
|
|
1072
|
-
identifier: "SearchRequestParams",
|
|
1073
|
-
});
|
|
1074
|
-
export const SearchResultConversationConversationHistoryList =
|
|
1075
|
-
/*@__PURE__*/ S.Array(S.Unknown);
|
|
1076
|
-
export const SearchResultConversation = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1077
|
-
answer: S.String,
|
|
1078
|
-
conversation_history: SearchResultConversationConversationHistoryList,
|
|
1079
|
-
conversation_id: S.String,
|
|
1080
|
-
query: S.String,
|
|
1081
|
-
})).annotate({
|
|
1082
|
-
identifier: "SearchResultConversation",
|
|
1083
|
-
});
|
|
1084
|
-
export const MultiSearchResultItemUnionRequestParamsList =
|
|
1085
|
-
/*@__PURE__*/ S.Array(SearchRequestParams);
|
|
1086
|
-
export const MultiSearchResultItemMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
1087
|
-
export const MultiSearchResultItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1088
|
-
facet_counts: S.optional(MultiSearchResultItemFacetCountsList),
|
|
1089
|
-
found: S.optional(S.Number),
|
|
1090
|
-
found_docs: S.optional(S.Number),
|
|
1091
|
-
search_time_ms: S.optional(S.Number),
|
|
1092
|
-
out_of: S.optional(S.Number),
|
|
1093
|
-
search_cutoff: S.optional(S.Boolean),
|
|
1094
|
-
page: S.optional(S.Number),
|
|
1095
|
-
grouped_hits: S.optional(MultiSearchResultItemGroupedHitsList),
|
|
1096
|
-
hits: S.optional(MultiSearchResultItemHitsList),
|
|
1097
|
-
request_params: S.optional(SearchRequestParams),
|
|
1098
|
-
conversation: S.optional(SearchResultConversation),
|
|
1099
|
-
union_request_params: S.optional(MultiSearchResultItemUnionRequestParamsList),
|
|
1100
|
-
metadata: S.optional(MultiSearchResultItemMetadataMap),
|
|
1101
|
-
code: S.optional(S.Number),
|
|
1102
|
-
error: S.optional(S.String),
|
|
1103
|
-
})).annotate({
|
|
1104
|
-
identifier: "MultiSearchResultItem",
|
|
1105
|
-
});
|
|
1106
|
-
export const MultiSearchResultResultsList = /*@__PURE__*/ S.Array(MultiSearchResultItem);
|
|
1107
|
-
export const MultiSearchResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1108
|
-
results: MultiSearchResultResultsList,
|
|
1109
|
-
conversation: S.optional(SearchResultConversation),
|
|
1110
|
-
})).annotate({
|
|
1111
|
-
identifier: "MultiSearchResult",
|
|
1112
|
-
});
|
|
1113
|
-
export const RetrieveAllConversationModelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/conversations/models", code: 200 }))).annotate({
|
|
1114
|
-
identifier: "RetrieveAllConversationModelsRequest",
|
|
581
|
+
export const GetAllConversationModelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/conversations/models", code: 200 }))).annotate({
|
|
582
|
+
identifier: "GetAllConversationModelsRequest",
|
|
1115
583
|
});
|
|
1116
584
|
export const ConversationModelSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1117
585
|
id: S.String,
|
|
@@ -1126,13 +594,12 @@ export const ConversationModelSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1126
594
|
})).annotate({
|
|
1127
595
|
identifier: "ConversationModelSchema",
|
|
1128
596
|
});
|
|
1129
|
-
export const
|
|
1130
|
-
/*@__PURE__*/ S.
|
|
1131
|
-
|
|
1132
|
-
identifier: "RetrieveAllConversationModelsResponse",
|
|
597
|
+
export const GetAllConversationModelsResponseBodyList = /*@__PURE__*/ S.Array(ConversationModelSchema);
|
|
598
|
+
export const GetAllConversationModelsResponse = /*@__PURE__*/ S.suspend(() => GetAllConversationModelsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
599
|
+
identifier: "GetAllConversationModelsResponse",
|
|
1133
600
|
});
|
|
1134
|
-
export const
|
|
1135
|
-
identifier: "
|
|
601
|
+
export const GetAllNLSearchModelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/nl_search_models", code: 200 }))).annotate({
|
|
602
|
+
identifier: "GetAllNLSearchModelsRequest",
|
|
1136
603
|
});
|
|
1137
604
|
export const NLSearchModelSchemaStopSequencesList = /*@__PURE__*/ S.Array(S.String);
|
|
1138
605
|
export const NLSearchModelSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -1158,13 +625,14 @@ export const NLSearchModelSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1158
625
|
})).annotate({
|
|
1159
626
|
identifier: "NLSearchModelSchema",
|
|
1160
627
|
});
|
|
1161
|
-
export const
|
|
1162
|
-
export const
|
|
1163
|
-
identifier: "
|
|
628
|
+
export const GetAllNLSearchModelsResponseBodyList = /*@__PURE__*/ S.Array(NLSearchModelSchema);
|
|
629
|
+
export const GetAllNLSearchModelsResponse = /*@__PURE__*/ S.suspend(() => GetAllNLSearchModelsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
630
|
+
identifier: "GetAllNLSearchModelsResponse",
|
|
1164
631
|
});
|
|
1165
|
-
export const
|
|
1166
|
-
identifier: "
|
|
632
|
+
export const GetAllPresetsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/presets", code: 200 }))).annotate({
|
|
633
|
+
identifier: "GetAllPresetsRequest",
|
|
1167
634
|
});
|
|
635
|
+
export const DropTokensMode = /*@__PURE__*/ S.String;
|
|
1168
636
|
export const SearchParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1169
637
|
q: S.optional(S.String),
|
|
1170
638
|
query_by: S.optional(S.String),
|
|
@@ -1241,6 +709,78 @@ export const SearchParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1241
709
|
})).annotate({
|
|
1242
710
|
identifier: "SearchParameters",
|
|
1243
711
|
});
|
|
712
|
+
export const MultiSearchCollectionParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
713
|
+
q: S.optional(S.String),
|
|
714
|
+
query_by: S.optional(S.String),
|
|
715
|
+
query_by_weights: S.optional(S.String),
|
|
716
|
+
text_match_type: S.optional(S.String),
|
|
717
|
+
prefix: S.optional(S.String),
|
|
718
|
+
infix: S.optional(S.String),
|
|
719
|
+
max_extra_prefix: S.optional(S.Number),
|
|
720
|
+
max_extra_suffix: S.optional(S.Number),
|
|
721
|
+
filter_by: S.optional(S.String),
|
|
722
|
+
sort_by: S.optional(S.String),
|
|
723
|
+
facet_by: S.optional(S.String),
|
|
724
|
+
max_facet_values: S.optional(S.Number),
|
|
725
|
+
facet_query: S.optional(S.String),
|
|
726
|
+
num_typos: S.optional(S.String),
|
|
727
|
+
page: S.optional(S.Number),
|
|
728
|
+
per_page: S.optional(S.Number),
|
|
729
|
+
limit: S.optional(S.Number),
|
|
730
|
+
offset: S.optional(S.Number),
|
|
731
|
+
group_by: S.optional(S.String),
|
|
732
|
+
group_limit: S.optional(S.Number),
|
|
733
|
+
group_missing_values: S.optional(S.Boolean),
|
|
734
|
+
include_fields: S.optional(S.String),
|
|
735
|
+
exclude_fields: S.optional(S.String),
|
|
736
|
+
highlight_full_fields: S.optional(S.String),
|
|
737
|
+
highlight_affix_num_tokens: S.optional(S.Number),
|
|
738
|
+
highlight_start_tag: S.optional(S.String),
|
|
739
|
+
highlight_end_tag: S.optional(S.String),
|
|
740
|
+
snippet_threshold: S.optional(S.Number),
|
|
741
|
+
drop_tokens_threshold: S.optional(S.Number),
|
|
742
|
+
drop_tokens_mode: S.optional(DropTokensMode),
|
|
743
|
+
typo_tokens_threshold: S.optional(S.Number),
|
|
744
|
+
enable_typos_for_alpha_numerical_tokens: S.optional(S.Boolean),
|
|
745
|
+
filter_curated_hits: S.optional(S.Boolean),
|
|
746
|
+
enable_synonyms: S.optional(S.Boolean),
|
|
747
|
+
enable_analytics: S.optional(S.Boolean),
|
|
748
|
+
synonym_prefix: S.optional(S.Boolean),
|
|
749
|
+
synonym_num_typos: S.optional(S.Number),
|
|
750
|
+
pinned_hits: S.optional(S.String),
|
|
751
|
+
hidden_hits: S.optional(S.String),
|
|
752
|
+
curation_tags: S.optional(S.String),
|
|
753
|
+
highlight_fields: S.optional(S.String),
|
|
754
|
+
pre_segmented_query: S.optional(S.Boolean),
|
|
755
|
+
preset: S.optional(S.String),
|
|
756
|
+
enable_curations: S.optional(S.Boolean),
|
|
757
|
+
prioritize_exact_match: S.optional(S.Boolean),
|
|
758
|
+
prioritize_token_position: S.optional(S.Boolean),
|
|
759
|
+
prioritize_num_matching_fields: S.optional(S.Boolean),
|
|
760
|
+
enable_typos_for_numerical_tokens: S.optional(S.Boolean),
|
|
761
|
+
exhaustive_search: S.optional(S.Boolean),
|
|
762
|
+
search_cutoff_ms: S.optional(S.Number),
|
|
763
|
+
use_cache: S.optional(S.Boolean),
|
|
764
|
+
cache_ttl: S.optional(S.Number),
|
|
765
|
+
min_len_1typo: S.optional(S.Number),
|
|
766
|
+
min_len_2typo: S.optional(S.Number),
|
|
767
|
+
vector_query: S.optional(S.String),
|
|
768
|
+
remote_embedding_timeout_ms: S.optional(S.Number),
|
|
769
|
+
remote_embedding_num_tries: S.optional(S.Number),
|
|
770
|
+
facet_strategy: S.optional(S.String),
|
|
771
|
+
stopwords: S.optional(S.String),
|
|
772
|
+
facet_return_parent: S.optional(S.String),
|
|
773
|
+
voice_query: S.optional(S.String),
|
|
774
|
+
conversation: S.optional(S.Boolean),
|
|
775
|
+
conversation_model_id: S.optional(S.String),
|
|
776
|
+
conversation_id: S.optional(S.String),
|
|
777
|
+
validate_field_names: S.optional(S.Boolean),
|
|
778
|
+
collection: S.optional(S.String),
|
|
779
|
+
x_typesense_api_key: S.optional(S.String.pipe(T.Body("x-typesense-api-key"))),
|
|
780
|
+
rerank_hybrid_matches: S.optional(S.Boolean),
|
|
781
|
+
})).annotate({
|
|
782
|
+
identifier: "MultiSearchCollectionParameters",
|
|
783
|
+
});
|
|
1244
784
|
export const MultiSearchSearchesParameterSearchesList = /*@__PURE__*/ S.Array(MultiSearchCollectionParameters);
|
|
1245
785
|
export const MultiSearchSearchesParameter = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1246
786
|
union: S.optional(S.Boolean),
|
|
@@ -1335,45 +875,86 @@ export const PresetsRetrieveSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1335
875
|
})).annotate({
|
|
1336
876
|
identifier: "PresetsRetrieveSchema",
|
|
1337
877
|
});
|
|
1338
|
-
export const
|
|
878
|
+
export const GetAnalyticsEventsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
879
|
+
user_id: S.String.pipe(T.Query()),
|
|
880
|
+
name: S.String.pipe(T.Query()),
|
|
881
|
+
n: S.Number.pipe(T.Query()),
|
|
882
|
+
}).pipe(T.Http({ method: "GET", uri: "/analytics/events", code: 200 }))).annotate({
|
|
883
|
+
identifier: "GetAnalyticsEventsRequest",
|
|
884
|
+
});
|
|
885
|
+
export const AnalyticsEventsResponseEventsItemDocIdsList =
|
|
886
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
887
|
+
export const AnalyticsEventsResponseEventsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
888
|
+
name: S.optional(S.String),
|
|
889
|
+
event_type: S.optional(S.String),
|
|
890
|
+
collection: S.optional(S.String),
|
|
891
|
+
timestamp: S.optional(S.Number),
|
|
892
|
+
user_id: S.optional(S.String),
|
|
893
|
+
doc_id: S.optional(S.String),
|
|
894
|
+
doc_ids: S.optional(AnalyticsEventsResponseEventsItemDocIdsList),
|
|
895
|
+
query: S.optional(S.String),
|
|
896
|
+
})).annotate({
|
|
897
|
+
identifier: "AnalyticsEventsResponseEventsItem",
|
|
898
|
+
});
|
|
899
|
+
export const AnalyticsEventsResponseEventsList = /*@__PURE__*/ S.Array(AnalyticsEventsResponseEventsItem);
|
|
900
|
+
export const AnalyticsEventsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
901
|
+
events: AnalyticsEventsResponseEventsList,
|
|
902
|
+
})).annotate({
|
|
903
|
+
identifier: "AnalyticsEventsResponse",
|
|
904
|
+
});
|
|
905
|
+
export const GetAnalyticsRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1339
906
|
ruleName: S.String.pipe(T.Label()),
|
|
1340
907
|
}).pipe(T.Http({ method: "GET", uri: "/analytics/rules/{ruleName}", code: 200 }))).annotate({
|
|
1341
|
-
identifier: "
|
|
908
|
+
identifier: "GetAnalyticsRuleRequest",
|
|
1342
909
|
});
|
|
1343
|
-
export const
|
|
910
|
+
export const GetAnalyticsRuleResponseParamsMetaFieldsList =
|
|
1344
911
|
/*@__PURE__*/ S.Array(S.String);
|
|
1345
|
-
export const
|
|
912
|
+
export const GetAnalyticsRuleResponseParams = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1346
913
|
destination_collection: S.optional(S.String),
|
|
1347
914
|
limit: S.optional(S.Number),
|
|
1348
915
|
capture_search_requests: S.optional(S.Boolean),
|
|
1349
|
-
meta_fields: S.optional(
|
|
916
|
+
meta_fields: S.optional(GetAnalyticsRuleResponseParamsMetaFieldsList),
|
|
1350
917
|
expand_query: S.optional(S.Boolean),
|
|
1351
918
|
counter_field: S.optional(S.String),
|
|
1352
919
|
weight: S.optional(S.Number),
|
|
1353
920
|
})).annotate({
|
|
1354
|
-
identifier: "
|
|
921
|
+
identifier: "GetAnalyticsRuleResponseParams",
|
|
1355
922
|
});
|
|
1356
|
-
export const
|
|
923
|
+
export const GetAnalyticsRuleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1357
924
|
name: S.String,
|
|
1358
925
|
type: AnalyticsRuleType,
|
|
1359
926
|
collection: S.String,
|
|
1360
927
|
event_type: S.String,
|
|
1361
928
|
rule_tag: S.optional(S.String),
|
|
1362
|
-
params: S.optional(
|
|
929
|
+
params: S.optional(GetAnalyticsRuleResponseParams),
|
|
1363
930
|
})).annotate({
|
|
1364
|
-
identifier: "
|
|
931
|
+
identifier: "GetAnalyticsRuleResponse",
|
|
1365
932
|
});
|
|
1366
|
-
export const
|
|
933
|
+
export const GetAnalyticsRulesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1367
934
|
rule_tag: S.optional(S.String.pipe(T.Query())),
|
|
1368
935
|
}).pipe(T.Http({ method: "GET", uri: "/analytics/rules", code: 200 }))).annotate({
|
|
1369
|
-
identifier: "
|
|
936
|
+
identifier: "GetAnalyticsRulesRequest",
|
|
937
|
+
});
|
|
938
|
+
export const GetAnalyticsRulesResponseBodyList = /*@__PURE__*/ S.Array(AnalyticsRule);
|
|
939
|
+
export const GetAnalyticsRulesResponse = /*@__PURE__*/ S.suspend(() => GetAnalyticsRulesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
940
|
+
identifier: "GetAnalyticsRulesResponse",
|
|
941
|
+
});
|
|
942
|
+
export const GetAnalyticsStatusRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/analytics/status", code: 200 }))).annotate({
|
|
943
|
+
identifier: "GetAnalyticsStatusRequest",
|
|
1370
944
|
});
|
|
1371
|
-
export const
|
|
1372
|
-
|
|
1373
|
-
|
|
945
|
+
export const AnalyticsStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
946
|
+
popular_prefix_queries: S.optional(S.Number),
|
|
947
|
+
nohits_prefix_queries: S.optional(S.Number),
|
|
948
|
+
log_prefix_queries: S.optional(S.Number),
|
|
949
|
+
query_log_events: S.optional(S.Number),
|
|
950
|
+
query_counter_events: S.optional(S.Number),
|
|
951
|
+
doc_log_events: S.optional(S.Number),
|
|
952
|
+
doc_counter_events: S.optional(S.Number),
|
|
953
|
+
})).annotate({
|
|
954
|
+
identifier: "AnalyticsStatus",
|
|
1374
955
|
});
|
|
1375
|
-
export const
|
|
1376
|
-
identifier: "
|
|
956
|
+
export const GetAPIStatsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/stats.json", code: 200 }))).annotate({
|
|
957
|
+
identifier: "GetAPIStatsRequest",
|
|
1377
958
|
});
|
|
1378
959
|
export const APIStatsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1379
960
|
delete_latency_ms: S.optional(S.Number),
|
|
@@ -1392,16 +973,76 @@ export const APIStatsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1392
973
|
})).annotate({
|
|
1393
974
|
identifier: "APIStatsResponse",
|
|
1394
975
|
});
|
|
1395
|
-
export const
|
|
976
|
+
export const GetCollectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
977
|
+
collectionName: S.String.pipe(T.Label()),
|
|
978
|
+
}).pipe(T.Http({ method: "GET", uri: "/collections/{collectionName}", code: 200 }))).annotate({
|
|
979
|
+
identifier: "GetCollectionRequest",
|
|
980
|
+
});
|
|
981
|
+
export const GetCollectionResponseFieldsList = /*@__PURE__*/ S.Array(Field);
|
|
982
|
+
export const GetCollectionResponseTokenSeparatorsList = /*@__PURE__*/ S.Array(S.String);
|
|
983
|
+
export const GetCollectionResponseSynonymSetsList = /*@__PURE__*/ S.Array(S.String);
|
|
984
|
+
export const GetCollectionResponseSymbolsToIndexList = /*@__PURE__*/ S.Array(S.String);
|
|
985
|
+
export const GetCollectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
986
|
+
name: S.String,
|
|
987
|
+
fields: GetCollectionResponseFieldsList,
|
|
988
|
+
default_sorting_field: S.optional(S.String),
|
|
989
|
+
token_separators: S.optional(GetCollectionResponseTokenSeparatorsList),
|
|
990
|
+
synonym_sets: S.optional(GetCollectionResponseSynonymSetsList),
|
|
991
|
+
enable_nested_fields: S.optional(S.Boolean),
|
|
992
|
+
symbols_to_index: S.optional(GetCollectionResponseSymbolsToIndexList),
|
|
993
|
+
voice_query_model: S.optional(VoiceQueryModelCollectionConfig),
|
|
994
|
+
metadata: S.optional(S.Unknown),
|
|
995
|
+
num_documents: S.Number,
|
|
996
|
+
created_at: S.Number,
|
|
997
|
+
})).annotate({
|
|
998
|
+
identifier: "GetCollectionResponse",
|
|
999
|
+
});
|
|
1000
|
+
export const GetCollectionsRequestGetCollectionsParameters =
|
|
1001
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1002
|
+
exclude_fields: S.optional(S.String),
|
|
1003
|
+
limit: S.optional(S.Number),
|
|
1004
|
+
offset: S.optional(S.Number),
|
|
1005
|
+
})).annotate({
|
|
1006
|
+
identifier: "GetCollectionsRequestGetCollectionsParameters",
|
|
1007
|
+
});
|
|
1008
|
+
export const GetCollectionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1009
|
+
getCollectionsParameters: S.optional(GetCollectionsRequestGetCollectionsParameters.pipe(T.Query())),
|
|
1010
|
+
}).pipe(T.Http({ method: "GET", uri: "/collections", code: 200 }))).annotate({
|
|
1011
|
+
identifier: "GetCollectionsRequest",
|
|
1012
|
+
});
|
|
1013
|
+
export const CollectionResponseFieldsList = /*@__PURE__*/ S.Array(Field);
|
|
1014
|
+
export const CollectionResponseTokenSeparatorsList = /*@__PURE__*/ S.Array(S.String);
|
|
1015
|
+
export const CollectionResponseSynonymSetsList = /*@__PURE__*/ S.Array(S.String);
|
|
1016
|
+
export const CollectionResponseSymbolsToIndexList = /*@__PURE__*/ S.Array(S.String);
|
|
1017
|
+
export const CollectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1018
|
+
name: S.String,
|
|
1019
|
+
fields: CollectionResponseFieldsList,
|
|
1020
|
+
default_sorting_field: S.optional(S.String),
|
|
1021
|
+
token_separators: S.optional(CollectionResponseTokenSeparatorsList),
|
|
1022
|
+
synonym_sets: S.optional(CollectionResponseSynonymSetsList),
|
|
1023
|
+
enable_nested_fields: S.optional(S.Boolean),
|
|
1024
|
+
symbols_to_index: S.optional(CollectionResponseSymbolsToIndexList),
|
|
1025
|
+
voice_query_model: S.optional(VoiceQueryModelCollectionConfig),
|
|
1026
|
+
metadata: S.optional(S.Unknown),
|
|
1027
|
+
num_documents: S.Number,
|
|
1028
|
+
created_at: S.Number,
|
|
1029
|
+
})).annotate({
|
|
1030
|
+
identifier: "CollectionResponse",
|
|
1031
|
+
});
|
|
1032
|
+
export const GetCollectionsResponseBodyList = /*@__PURE__*/ S.Array(CollectionResponse);
|
|
1033
|
+
export const GetCollectionsResponse = /*@__PURE__*/ S.suspend(() => GetCollectionsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1034
|
+
identifier: "GetCollectionsResponse",
|
|
1035
|
+
});
|
|
1036
|
+
export const GetConversationModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1396
1037
|
modelId: S.String.pipe(T.Label()),
|
|
1397
1038
|
}).pipe(T.Http({
|
|
1398
1039
|
method: "GET",
|
|
1399
1040
|
uri: "/conversations/models/{modelId}",
|
|
1400
1041
|
code: 200,
|
|
1401
1042
|
}))).annotate({
|
|
1402
|
-
identifier: "
|
|
1043
|
+
identifier: "GetConversationModelRequest",
|
|
1403
1044
|
});
|
|
1404
|
-
export const
|
|
1045
|
+
export const GetConversationModelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1405
1046
|
id: S.String,
|
|
1406
1047
|
model_name: S.String,
|
|
1407
1048
|
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
@@ -1412,16 +1053,16 @@ export const RetrieveConversationModelResponse = /*@__PURE__*/ S.suspend(() => S
|
|
|
1412
1053
|
max_bytes: S.Number,
|
|
1413
1054
|
vllm_url: S.optional(S.String),
|
|
1414
1055
|
})).annotate({
|
|
1415
|
-
identifier: "
|
|
1056
|
+
identifier: "GetConversationModelResponse",
|
|
1416
1057
|
});
|
|
1417
|
-
export const
|
|
1058
|
+
export const GetCurationSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1418
1059
|
curationSetName: S.String.pipe(T.Label()),
|
|
1419
1060
|
}).pipe(T.Http({
|
|
1420
1061
|
method: "GET",
|
|
1421
1062
|
uri: "/curation_sets/{curationSetName}",
|
|
1422
1063
|
code: 200,
|
|
1423
1064
|
}))).annotate({
|
|
1424
|
-
identifier: "
|
|
1065
|
+
identifier: "GetCurationSetRequest",
|
|
1425
1066
|
});
|
|
1426
1067
|
export const CurationRuleTagsList = /*@__PURE__*/ S.Array(S.String);
|
|
1427
1068
|
export const CurationRuleMatch = /*@__PURE__*/ S.String;
|
|
@@ -1461,15 +1102,15 @@ export const CurationItemCreateSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1461
1102
|
})).annotate({
|
|
1462
1103
|
identifier: "CurationItemCreateSchema",
|
|
1463
1104
|
});
|
|
1464
|
-
export const
|
|
1465
|
-
export const
|
|
1466
|
-
items:
|
|
1105
|
+
export const GetCurationSetResponseItemsList = /*@__PURE__*/ S.Array(CurationItemCreateSchema);
|
|
1106
|
+
export const GetCurationSetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1107
|
+
items: GetCurationSetResponseItemsList,
|
|
1467
1108
|
description: S.optional(S.String),
|
|
1468
1109
|
name: S.String,
|
|
1469
1110
|
})).annotate({
|
|
1470
|
-
identifier: "
|
|
1111
|
+
identifier: "GetCurationSetResponse",
|
|
1471
1112
|
});
|
|
1472
|
-
export const
|
|
1113
|
+
export const GetCurationSetItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1473
1114
|
curationSetName: S.String.pipe(T.Label()),
|
|
1474
1115
|
itemId: S.String.pipe(T.Label()),
|
|
1475
1116
|
}).pipe(T.Http({
|
|
@@ -1477,16 +1118,14 @@ export const RetrieveCurationSetItemRequest = /*@__PURE__*/ S.suspend(() => S.St
|
|
|
1477
1118
|
uri: "/curation_sets/{curationSetName}/items/{itemId}",
|
|
1478
1119
|
code: 200,
|
|
1479
1120
|
}))).annotate({
|
|
1480
|
-
identifier: "
|
|
1121
|
+
identifier: "GetCurationSetItemRequest",
|
|
1481
1122
|
});
|
|
1482
|
-
export const
|
|
1483
|
-
/*@__PURE__*/ S.Array(
|
|
1484
|
-
export const
|
|
1485
|
-
/*@__PURE__*/ S.Array(CurationExclude);
|
|
1486
|
-
export const RetrieveCurationSetItemResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1123
|
+
export const GetCurationSetItemResponseIncludesList = /*@__PURE__*/ S.Array(CurationInclude);
|
|
1124
|
+
export const GetCurationSetItemResponseExcludesList = /*@__PURE__*/ S.Array(CurationExclude);
|
|
1125
|
+
export const GetCurationSetItemResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1487
1126
|
rule: CurationRule,
|
|
1488
|
-
includes: S.optional(
|
|
1489
|
-
excludes: S.optional(
|
|
1127
|
+
includes: S.optional(GetCurationSetItemResponseIncludesList),
|
|
1128
|
+
excludes: S.optional(GetCurationSetItemResponseExcludesList),
|
|
1490
1129
|
filter_by: S.optional(S.String),
|
|
1491
1130
|
remove_matched_tokens: S.optional(S.Boolean),
|
|
1492
1131
|
metadata: S.optional(S.Unknown),
|
|
@@ -1498,16 +1137,16 @@ export const RetrieveCurationSetItemResponse = /*@__PURE__*/ S.suspend(() => S.S
|
|
|
1498
1137
|
stop_processing: S.optional(S.Boolean),
|
|
1499
1138
|
id: S.String,
|
|
1500
1139
|
})).annotate({
|
|
1501
|
-
identifier: "
|
|
1140
|
+
identifier: "GetCurationSetItemResponse",
|
|
1502
1141
|
});
|
|
1503
|
-
export const
|
|
1142
|
+
export const GetCurationSetItemsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1504
1143
|
curationSetName: S.String.pipe(T.Label()),
|
|
1505
1144
|
}).pipe(T.Http({
|
|
1506
1145
|
method: "GET",
|
|
1507
1146
|
uri: "/curation_sets/{curationSetName}/items",
|
|
1508
1147
|
code: 200,
|
|
1509
1148
|
}))).annotate({
|
|
1510
|
-
identifier: "
|
|
1149
|
+
identifier: "GetCurationSetItemsRequest",
|
|
1511
1150
|
});
|
|
1512
1151
|
export const CurationItemSchemaIncludesList = /*@__PURE__*/ S.Array(CurationInclude);
|
|
1513
1152
|
export const CurationItemSchemaExcludesList = /*@__PURE__*/ S.Array(CurationExclude);
|
|
@@ -1528,12 +1167,12 @@ export const CurationItemSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1528
1167
|
})).annotate({
|
|
1529
1168
|
identifier: "CurationItemSchema",
|
|
1530
1169
|
});
|
|
1531
|
-
export const
|
|
1532
|
-
export const
|
|
1533
|
-
identifier: "
|
|
1170
|
+
export const GetCurationSetItemsResponseBodyList = /*@__PURE__*/ S.Array(CurationItemSchema);
|
|
1171
|
+
export const GetCurationSetItemsResponse = /*@__PURE__*/ S.suspend(() => GetCurationSetItemsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1172
|
+
identifier: "GetCurationSetItemsResponse",
|
|
1534
1173
|
});
|
|
1535
|
-
export const
|
|
1536
|
-
identifier: "
|
|
1174
|
+
export const GetCurationSetsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/curation_sets", code: 200 }))).annotate({
|
|
1175
|
+
identifier: "GetCurationSetsRequest",
|
|
1537
1176
|
});
|
|
1538
1177
|
export const CurationSetSchemaItemsList = /*@__PURE__*/ S.Array(CurationItemCreateSchema);
|
|
1539
1178
|
export const CurationSetSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -1543,24 +1182,68 @@ export const CurationSetSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1543
1182
|
})).annotate({
|
|
1544
1183
|
identifier: "CurationSetSchema",
|
|
1545
1184
|
});
|
|
1546
|
-
export const
|
|
1547
|
-
export const
|
|
1548
|
-
identifier: "
|
|
1185
|
+
export const GetCurationSetsResponseBodyList = /*@__PURE__*/ S.Array(CurationSetSchema);
|
|
1186
|
+
export const GetCurationSetsResponse = /*@__PURE__*/ S.suspend(() => GetCurationSetsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1187
|
+
identifier: "GetCurationSetsResponse",
|
|
1188
|
+
});
|
|
1189
|
+
export const GetDocumentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1190
|
+
collectionName: S.String.pipe(T.Label()),
|
|
1191
|
+
documentId: S.String.pipe(T.Label()),
|
|
1192
|
+
}).pipe(T.Http({
|
|
1193
|
+
method: "GET",
|
|
1194
|
+
uri: "/collections/{collectionName}/documents/{documentId}",
|
|
1195
|
+
code: 200,
|
|
1196
|
+
}))).annotate({
|
|
1197
|
+
identifier: "GetDocumentRequest",
|
|
1198
|
+
});
|
|
1199
|
+
export const GetDocumentResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
1200
|
+
identifier: "GetDocumentResponse",
|
|
1201
|
+
});
|
|
1202
|
+
export const GetKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1203
|
+
keyId: S.Number.pipe(T.Label()),
|
|
1204
|
+
}).pipe(T.Http({ method: "GET", uri: "/keys/{keyId}", code: 200 }))).annotate({ identifier: "GetKeyRequest" });
|
|
1205
|
+
export const GetKeyResponseActionsList = /*@__PURE__*/ S.Array(S.String);
|
|
1206
|
+
export const GetKeyResponseCollectionsList = /*@__PURE__*/ S.Array(S.String);
|
|
1207
|
+
export const GetKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1208
|
+
value: S.optional(S.String),
|
|
1209
|
+
description: S.String,
|
|
1210
|
+
actions: GetKeyResponseActionsList,
|
|
1211
|
+
collections: GetKeyResponseCollectionsList,
|
|
1212
|
+
expires_at: S.optional(S.Number),
|
|
1213
|
+
id: S.optional(S.Number),
|
|
1214
|
+
value_prefix: S.optional(S.String),
|
|
1215
|
+
})).annotate({ identifier: "GetKeyResponse" });
|
|
1216
|
+
export const GetKeysRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/keys", code: 200 }))).annotate({ identifier: "GetKeysRequest" });
|
|
1217
|
+
export const ApiKeyActionsList = /*@__PURE__*/ S.Array(S.String);
|
|
1218
|
+
export const ApiKeyCollectionsList = /*@__PURE__*/ S.Array(S.String);
|
|
1219
|
+
export const ApiKey = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1220
|
+
value: S.optional(S.String),
|
|
1221
|
+
description: S.String,
|
|
1222
|
+
actions: ApiKeyActionsList,
|
|
1223
|
+
collections: ApiKeyCollectionsList,
|
|
1224
|
+
expires_at: S.optional(S.Number),
|
|
1225
|
+
id: S.optional(S.Number),
|
|
1226
|
+
value_prefix: S.optional(S.String),
|
|
1227
|
+
})).annotate({ identifier: "ApiKey" });
|
|
1228
|
+
export const ApiKeysResponseKeysList = /*@__PURE__*/ S.Array(ApiKey);
|
|
1229
|
+
export const ApiKeysResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1230
|
+
keys: ApiKeysResponseKeysList,
|
|
1231
|
+
})).annotate({
|
|
1232
|
+
identifier: "ApiKeysResponse",
|
|
1549
1233
|
});
|
|
1550
|
-
export const
|
|
1551
|
-
identifier: "
|
|
1234
|
+
export const GetMetricsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/metrics.json", code: 200 }))).annotate({
|
|
1235
|
+
identifier: "GetMetricsRequest",
|
|
1552
1236
|
});
|
|
1553
|
-
export const
|
|
1554
|
-
identifier: "
|
|
1237
|
+
export const GetMetricsResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
1238
|
+
identifier: "GetMetricsResponse",
|
|
1555
1239
|
});
|
|
1556
|
-
export const
|
|
1240
|
+
export const GetNLSearchModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1557
1241
|
modelId: S.String.pipe(T.Label()),
|
|
1558
1242
|
}).pipe(T.Http({ method: "GET", uri: "/nl_search_models/{modelId}", code: 200 }))).annotate({
|
|
1559
|
-
identifier: "
|
|
1243
|
+
identifier: "GetNLSearchModelRequest",
|
|
1560
1244
|
});
|
|
1561
|
-
export const
|
|
1562
|
-
/*@__PURE__*/ S.
|
|
1563
|
-
export const RetrieveNLSearchModelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1245
|
+
export const GetNLSearchModelResponseStopSequencesList = /*@__PURE__*/ S.Array(S.String);
|
|
1246
|
+
export const GetNLSearchModelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1564
1247
|
model_name: S.optional(S.String),
|
|
1565
1248
|
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1566
1249
|
api_url: S.optional(S.String),
|
|
@@ -1569,7 +1252,7 @@ export const RetrieveNLSearchModelResponse = /*@__PURE__*/ S.suspend(() => S.Str
|
|
|
1569
1252
|
system_prompt: S.optional(S.String),
|
|
1570
1253
|
top_p: S.optional(S.Number),
|
|
1571
1254
|
top_k: S.optional(S.Number),
|
|
1572
|
-
stop_sequences: S.optional(
|
|
1255
|
+
stop_sequences: S.optional(GetNLSearchModelResponseStopSequencesList),
|
|
1573
1256
|
api_version: S.optional(S.String),
|
|
1574
1257
|
project_id: S.optional(S.String),
|
|
1575
1258
|
access_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
@@ -1581,14 +1264,14 @@ export const RetrieveNLSearchModelResponse = /*@__PURE__*/ S.suspend(() => S.Str
|
|
|
1581
1264
|
account_id: S.optional(S.String),
|
|
1582
1265
|
id: S.String,
|
|
1583
1266
|
})).annotate({
|
|
1584
|
-
identifier: "
|
|
1267
|
+
identifier: "GetNLSearchModelResponse",
|
|
1585
1268
|
});
|
|
1586
|
-
export const
|
|
1269
|
+
export const GetPresetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1587
1270
|
presetId: S.String.pipe(T.Label()),
|
|
1588
1271
|
}).pipe(T.Http({ method: "GET", uri: "/presets/{presetId}", code: 200 }))).annotate({
|
|
1589
|
-
identifier: "
|
|
1272
|
+
identifier: "GetPresetRequest",
|
|
1590
1273
|
});
|
|
1591
|
-
export const
|
|
1274
|
+
export const GetPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
|
|
1592
1275
|
[
|
|
1593
1276
|
"q",
|
|
1594
1277
|
"query_by",
|
|
@@ -1665,16 +1348,52 @@ export const RetrievePresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionC
|
|
|
1665
1348
|
],
|
|
1666
1349
|
["union", "searches"],
|
|
1667
1350
|
]));
|
|
1668
|
-
export const
|
|
1669
|
-
value:
|
|
1351
|
+
export const GetPresetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1352
|
+
value: GetPresetResponseValue,
|
|
1670
1353
|
name: S.String,
|
|
1671
1354
|
})).annotate({
|
|
1672
|
-
identifier: "
|
|
1355
|
+
identifier: "GetPresetResponse",
|
|
1356
|
+
});
|
|
1357
|
+
export const GetSchemaChangesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/operations/schema_changes", code: 200 }))).annotate({
|
|
1358
|
+
identifier: "GetSchemaChangesRequest",
|
|
1359
|
+
});
|
|
1360
|
+
export const SchemaChangeStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1361
|
+
collection: S.optional(S.String),
|
|
1362
|
+
validated_docs: S.optional(S.Number),
|
|
1363
|
+
altered_docs: S.optional(S.Number),
|
|
1364
|
+
})).annotate({
|
|
1365
|
+
identifier: "SchemaChangeStatus",
|
|
1366
|
+
});
|
|
1367
|
+
export const GetSchemaChangesResponseBodyList = /*@__PURE__*/ S.Array(SchemaChangeStatus);
|
|
1368
|
+
export const GetSchemaChangesResponse = /*@__PURE__*/ S.suspend(() => GetSchemaChangesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1369
|
+
identifier: "GetSchemaChangesResponse",
|
|
1370
|
+
});
|
|
1371
|
+
export const GetStemmingDictionaryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1372
|
+
dictionaryId: S.String.pipe(T.Label()),
|
|
1373
|
+
}).pipe(T.Http({
|
|
1374
|
+
method: "GET",
|
|
1375
|
+
uri: "/stemming/dictionaries/{dictionaryId}",
|
|
1376
|
+
code: 200,
|
|
1377
|
+
}))).annotate({
|
|
1378
|
+
identifier: "GetStemmingDictionaryRequest",
|
|
1379
|
+
});
|
|
1380
|
+
export const StemmingDictionaryWordsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1381
|
+
word: S.String,
|
|
1382
|
+
root: S.String,
|
|
1383
|
+
})).annotate({
|
|
1384
|
+
identifier: "StemmingDictionaryWordsItem",
|
|
1385
|
+
});
|
|
1386
|
+
export const StemmingDictionaryWordsList = /*@__PURE__*/ S.Array(StemmingDictionaryWordsItem);
|
|
1387
|
+
export const StemmingDictionary = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1388
|
+
id: S.String,
|
|
1389
|
+
words: StemmingDictionaryWordsList,
|
|
1390
|
+
})).annotate({
|
|
1391
|
+
identifier: "StemmingDictionary",
|
|
1673
1392
|
});
|
|
1674
|
-
export const
|
|
1393
|
+
export const GetStopwordsSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1675
1394
|
setId: S.String.pipe(T.Label()),
|
|
1676
1395
|
}).pipe(T.Http({ method: "GET", uri: "/stopwords/{setId}", code: 200 }))).annotate({
|
|
1677
|
-
identifier: "
|
|
1396
|
+
identifier: "GetStopwordsSetRequest",
|
|
1678
1397
|
});
|
|
1679
1398
|
export const StopwordsSetSchemaStopwordsList = /*@__PURE__*/ S.Array(S.String);
|
|
1680
1399
|
export const StopwordsSetSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -1689,8 +1408,8 @@ export const StopwordsSetRetrieveSchema = /*@__PURE__*/ S.suspend(() => S.Struct
|
|
|
1689
1408
|
})).annotate({
|
|
1690
1409
|
identifier: "StopwordsSetRetrieveSchema",
|
|
1691
1410
|
});
|
|
1692
|
-
export const
|
|
1693
|
-
identifier: "
|
|
1411
|
+
export const GetStopwordsSetsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/stopwords", code: 200 }))).annotate({
|
|
1412
|
+
identifier: "GetStopwordsSetsRequest",
|
|
1694
1413
|
});
|
|
1695
1414
|
export const StopwordsSetsRetrieveAllSchemaStopwordsList =
|
|
1696
1415
|
/*@__PURE__*/ S.Array(StopwordsSetSchema);
|
|
@@ -1699,10 +1418,10 @@ export const StopwordsSetsRetrieveAllSchema = /*@__PURE__*/ S.suspend(() => S.St
|
|
|
1699
1418
|
})).annotate({
|
|
1700
1419
|
identifier: "StopwordsSetsRetrieveAllSchema",
|
|
1701
1420
|
});
|
|
1702
|
-
export const
|
|
1421
|
+
export const GetSynonymSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1703
1422
|
synonymSetName: S.String.pipe(T.Label()),
|
|
1704
1423
|
}).pipe(T.Http({ method: "GET", uri: "/synonym_sets/{synonymSetName}", code: 200 }))).annotate({
|
|
1705
|
-
identifier: "
|
|
1424
|
+
identifier: "GetSynonymSetRequest",
|
|
1706
1425
|
});
|
|
1707
1426
|
export const SynonymItemSchemaSynonymsList = /*@__PURE__*/ S.Array(S.String);
|
|
1708
1427
|
export const SynonymItemSchemaSymbolsToIndexList = /*@__PURE__*/ S.Array(S.String);
|
|
@@ -1715,14 +1434,14 @@ export const SynonymItemSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1715
1434
|
})).annotate({
|
|
1716
1435
|
identifier: "SynonymItemSchema",
|
|
1717
1436
|
});
|
|
1718
|
-
export const
|
|
1719
|
-
export const
|
|
1720
|
-
items:
|
|
1437
|
+
export const GetSynonymSetResponseItemsList = /*@__PURE__*/ S.Array(SynonymItemSchema);
|
|
1438
|
+
export const GetSynonymSetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1439
|
+
items: GetSynonymSetResponseItemsList,
|
|
1721
1440
|
name: S.String,
|
|
1722
1441
|
})).annotate({
|
|
1723
|
-
identifier: "
|
|
1442
|
+
identifier: "GetSynonymSetResponse",
|
|
1724
1443
|
});
|
|
1725
|
-
export const
|
|
1444
|
+
export const GetSynonymSetItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1726
1445
|
synonymSetName: S.String.pipe(T.Label()),
|
|
1727
1446
|
itemId: S.String.pipe(T.Label()),
|
|
1728
1447
|
}).pipe(T.Http({
|
|
@@ -1730,77 +1449,354 @@ export const RetrieveSynonymSetItemRequest = /*@__PURE__*/ S.suspend(() => S.Str
|
|
|
1730
1449
|
uri: "/synonym_sets/{synonymSetName}/items/{itemId}",
|
|
1731
1450
|
code: 200,
|
|
1732
1451
|
}))).annotate({
|
|
1733
|
-
identifier: "
|
|
1452
|
+
identifier: "GetSynonymSetItemRequest",
|
|
1734
1453
|
});
|
|
1735
|
-
export const
|
|
1736
|
-
export const
|
|
1454
|
+
export const GetSynonymSetItemResponseSynonymsList = /*@__PURE__*/ S.Array(S.String);
|
|
1455
|
+
export const GetSynonymSetItemResponseSymbolsToIndexList =
|
|
1737
1456
|
/*@__PURE__*/ S.Array(S.String);
|
|
1738
|
-
export const
|
|
1457
|
+
export const GetSynonymSetItemResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1739
1458
|
id: S.String,
|
|
1740
|
-
synonyms:
|
|
1459
|
+
synonyms: GetSynonymSetItemResponseSynonymsList,
|
|
1741
1460
|
root: S.optional(S.String),
|
|
1742
1461
|
locale: S.optional(S.String),
|
|
1743
|
-
symbols_to_index: S.optional(
|
|
1462
|
+
symbols_to_index: S.optional(GetSynonymSetItemResponseSymbolsToIndexList),
|
|
1744
1463
|
})).annotate({
|
|
1745
|
-
identifier: "
|
|
1464
|
+
identifier: "GetSynonymSetItemResponse",
|
|
1746
1465
|
});
|
|
1747
|
-
export const
|
|
1466
|
+
export const GetSynonymSetItemsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1748
1467
|
synonymSetName: S.String.pipe(T.Label()),
|
|
1749
1468
|
}).pipe(T.Http({
|
|
1750
1469
|
method: "GET",
|
|
1751
1470
|
uri: "/synonym_sets/{synonymSetName}/items",
|
|
1752
1471
|
code: 200,
|
|
1753
1472
|
}))).annotate({
|
|
1754
|
-
identifier: "
|
|
1473
|
+
identifier: "GetSynonymSetItemsRequest",
|
|
1755
1474
|
});
|
|
1756
|
-
export const
|
|
1757
|
-
export const
|
|
1758
|
-
identifier: "
|
|
1475
|
+
export const GetSynonymSetItemsResponseBodyList = /*@__PURE__*/ S.Array(SynonymItemSchema);
|
|
1476
|
+
export const GetSynonymSetItemsResponse = /*@__PURE__*/ S.suspend(() => GetSynonymSetItemsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1477
|
+
identifier: "GetSynonymSetItemsResponse",
|
|
1759
1478
|
});
|
|
1760
|
-
export const
|
|
1761
|
-
identifier: "
|
|
1479
|
+
export const GetSynonymSetsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/synonym_sets", code: 200 }))).annotate({
|
|
1480
|
+
identifier: "GetSynonymSetsRequest",
|
|
1762
1481
|
});
|
|
1763
1482
|
export const SynonymSetSchemaItemsList = /*@__PURE__*/ S.Array(SynonymItemSchema);
|
|
1764
1483
|
export const SynonymSetSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1765
1484
|
items: SynonymSetSchemaItemsList,
|
|
1766
1485
|
name: S.String,
|
|
1767
1486
|
})).annotate({
|
|
1768
|
-
identifier: "SynonymSetSchema",
|
|
1769
|
-
});
|
|
1770
|
-
export const
|
|
1771
|
-
export const
|
|
1772
|
-
identifier: "
|
|
1487
|
+
identifier: "SynonymSetSchema",
|
|
1488
|
+
});
|
|
1489
|
+
export const GetSynonymSetsResponseBodyList = /*@__PURE__*/ S.Array(SynonymSetSchema);
|
|
1490
|
+
export const GetSynonymSetsResponse = /*@__PURE__*/ S.suspend(() => GetSynonymSetsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1491
|
+
identifier: "GetSynonymSetsResponse",
|
|
1492
|
+
});
|
|
1493
|
+
export const HealthRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/health", code: 200 }))).annotate({ identifier: "HealthRequest" });
|
|
1494
|
+
export const HealthStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1495
|
+
ok: S.Boolean,
|
|
1496
|
+
})).annotate({ identifier: "HealthStatus" });
|
|
1497
|
+
export const IndexAction = /*@__PURE__*/ S.String;
|
|
1498
|
+
export const DirtyValues = /*@__PURE__*/ S.String;
|
|
1499
|
+
export const ImportDocumentsRequestImportDocumentsParameters =
|
|
1500
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1501
|
+
batch_size: S.optional(S.Number),
|
|
1502
|
+
return_id: S.optional(S.Boolean),
|
|
1503
|
+
remote_embedding_batch_size: S.optional(S.Number),
|
|
1504
|
+
return_doc: S.optional(S.Boolean),
|
|
1505
|
+
action: S.optional(IndexAction),
|
|
1506
|
+
dirty_values: S.optional(DirtyValues),
|
|
1507
|
+
})).annotate({
|
|
1508
|
+
identifier: "ImportDocumentsRequestImportDocumentsParameters",
|
|
1509
|
+
});
|
|
1510
|
+
export const ImportDocumentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1511
|
+
collectionName: S.String.pipe(T.Label()),
|
|
1512
|
+
importDocumentsParameters: S.optional(ImportDocumentsRequestImportDocumentsParameters.pipe(T.Query())),
|
|
1513
|
+
}).pipe(T.Http({
|
|
1514
|
+
method: "POST",
|
|
1515
|
+
uri: "/collections/{collectionName}/documents/import",
|
|
1516
|
+
code: 200,
|
|
1517
|
+
}))).annotate({
|
|
1518
|
+
identifier: "ImportDocumentsRequest",
|
|
1519
|
+
});
|
|
1520
|
+
export const ImportDocumentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1521
|
+
identifier: "ImportDocumentsResponse",
|
|
1522
|
+
});
|
|
1523
|
+
export const ImportStemmingDictionaryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1524
|
+
id: S.String.pipe(T.Query()),
|
|
1525
|
+
body: S.String.pipe(T.HttpBody()),
|
|
1526
|
+
}).pipe(T.Http({ method: "POST", uri: "/stemming/dictionaries/import", code: 200 }))).annotate({
|
|
1527
|
+
identifier: "ImportStemmingDictionaryRequest",
|
|
1528
|
+
});
|
|
1529
|
+
export const ImportStemmingDictionaryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1530
|
+
identifier: "ImportStemmingDictionaryResponse",
|
|
1531
|
+
});
|
|
1532
|
+
export const ListDocumentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1533
|
+
collectionName: S.String.pipe(T.Label()),
|
|
1534
|
+
action: S.optional(IndexAction.pipe(T.Query())),
|
|
1535
|
+
dirty_values: S.optional(DirtyValues.pipe(T.Query())),
|
|
1536
|
+
}).pipe(T.Http({
|
|
1537
|
+
method: "POST",
|
|
1538
|
+
uri: "/collections/{collectionName}/documents",
|
|
1539
|
+
code: 200,
|
|
1540
|
+
}))).annotate({
|
|
1541
|
+
identifier: "ListDocumentRequest",
|
|
1542
|
+
});
|
|
1543
|
+
export const ListDocumentResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
1544
|
+
identifier: "ListDocumentResponse",
|
|
1545
|
+
});
|
|
1546
|
+
export const ListStemmingDictionariesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/stemming/dictionaries", code: 200 }))).annotate({
|
|
1547
|
+
identifier: "ListStemmingDictionariesRequest",
|
|
1548
|
+
});
|
|
1549
|
+
export const ListStemmingDictionariesResponseDictionariesList =
|
|
1550
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
1551
|
+
export const ListStemmingDictionariesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1552
|
+
dictionaries: S.optional(ListStemmingDictionariesResponseDictionariesList),
|
|
1553
|
+
})).annotate({
|
|
1554
|
+
identifier: "ListStemmingDictionariesResponse",
|
|
1555
|
+
});
|
|
1556
|
+
export const SearchCollectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1557
|
+
collectionName: S.String.pipe(T.Label()),
|
|
1558
|
+
searchParameters: SearchParameters.pipe(T.Query()),
|
|
1559
|
+
}).pipe(T.Http({
|
|
1560
|
+
method: "GET",
|
|
1561
|
+
uri: "/collections/{collectionName}/documents/search",
|
|
1562
|
+
code: 200,
|
|
1563
|
+
}))).annotate({
|
|
1564
|
+
identifier: "SearchCollectionRequest",
|
|
1565
|
+
});
|
|
1566
|
+
export const FacetCountsCountsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1567
|
+
count: S.optional(S.Number),
|
|
1568
|
+
highlighted: S.optional(S.String),
|
|
1569
|
+
value: S.optional(S.String),
|
|
1570
|
+
parent: S.optional(S.Unknown),
|
|
1571
|
+
})).annotate({
|
|
1572
|
+
identifier: "FacetCountsCountsItem",
|
|
1573
|
+
});
|
|
1574
|
+
export const FacetCountsCountsList = /*@__PURE__*/ S.Array(FacetCountsCountsItem);
|
|
1575
|
+
export const FacetCountsStats = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1576
|
+
max: S.optional(S.Number),
|
|
1577
|
+
min: S.optional(S.Number),
|
|
1578
|
+
sum: S.optional(S.Number),
|
|
1579
|
+
total_values: S.optional(S.Number),
|
|
1580
|
+
avg: S.optional(S.Number),
|
|
1581
|
+
})).annotate({
|
|
1582
|
+
identifier: "FacetCountsStats",
|
|
1583
|
+
});
|
|
1584
|
+
export const FacetCounts = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1585
|
+
counts: S.optional(FacetCountsCountsList),
|
|
1586
|
+
field_name: S.optional(S.String),
|
|
1587
|
+
sampled: S.optional(S.Boolean),
|
|
1588
|
+
stats: S.optional(FacetCountsStats),
|
|
1589
|
+
})).annotate({ identifier: "FacetCounts" });
|
|
1590
|
+
export const SearchResultFacetCountsList = /*@__PURE__*/ S.Array(FacetCounts);
|
|
1591
|
+
export const SearchGroupedHitGroupKeyList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
1592
|
+
export const SearchHighlightSnippetsList = /*@__PURE__*/ S.Array(S.String);
|
|
1593
|
+
export const SearchHighlightValuesList = /*@__PURE__*/ S.Array(S.String);
|
|
1594
|
+
export const SearchHighlightIndicesList = /*@__PURE__*/ S.Array(S.Number);
|
|
1595
|
+
export const SearchHighlightMatchedTokensList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
1596
|
+
export const SearchHighlight = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1597
|
+
field: S.optional(S.String),
|
|
1598
|
+
snippet: S.optional(S.String),
|
|
1599
|
+
snippets: S.optional(SearchHighlightSnippetsList),
|
|
1600
|
+
value: S.optional(S.String),
|
|
1601
|
+
values: S.optional(SearchHighlightValuesList),
|
|
1602
|
+
indices: S.optional(SearchHighlightIndicesList),
|
|
1603
|
+
matched_tokens: S.optional(SearchHighlightMatchedTokensList),
|
|
1604
|
+
})).annotate({
|
|
1605
|
+
identifier: "SearchHighlight",
|
|
1606
|
+
});
|
|
1607
|
+
export const SearchResultHitHighlightsList = /*@__PURE__*/ S.Array(SearchHighlight);
|
|
1608
|
+
export const SearchResultHitHighlightMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
1609
|
+
export const SearchResultHitDocumentMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
1610
|
+
export const SearchResultHitTextMatchInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1611
|
+
best_field_score: S.optional(S.String),
|
|
1612
|
+
best_field_weight: S.optional(S.Number),
|
|
1613
|
+
fields_matched: S.optional(S.Number),
|
|
1614
|
+
num_tokens_dropped: S.optional(S.Number),
|
|
1615
|
+
score: S.optional(S.String),
|
|
1616
|
+
tokens_matched: S.optional(S.Number),
|
|
1617
|
+
typo_prefix_score: S.optional(S.Number),
|
|
1618
|
+
})).annotate({
|
|
1619
|
+
identifier: "SearchResultHitTextMatchInfo",
|
|
1620
|
+
});
|
|
1621
|
+
export const SearchResultHitGeoDistanceMetersMap = /*@__PURE__*/ S.Record(S.String, S.Number);
|
|
1622
|
+
export const SearchResultHitHybridSearchInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1623
|
+
rank_fusion_score: S.optional(S.Number),
|
|
1624
|
+
})).annotate({
|
|
1625
|
+
identifier: "SearchResultHitHybridSearchInfo",
|
|
1626
|
+
});
|
|
1627
|
+
export const SearchResultHit = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1628
|
+
highlights: S.optional(SearchResultHitHighlightsList),
|
|
1629
|
+
highlight: S.optional(SearchResultHitHighlightMap),
|
|
1630
|
+
document: S.optional(SearchResultHitDocumentMap),
|
|
1631
|
+
text_match: S.optional(S.Number),
|
|
1632
|
+
text_match_info: S.optional(SearchResultHitTextMatchInfo),
|
|
1633
|
+
geo_distance_meters: S.optional(SearchResultHitGeoDistanceMetersMap),
|
|
1634
|
+
vector_distance: S.optional(S.Number),
|
|
1635
|
+
hybrid_search_info: S.optional(SearchResultHitHybridSearchInfo),
|
|
1636
|
+
search_index: S.optional(S.Number),
|
|
1637
|
+
})).annotate({
|
|
1638
|
+
identifier: "SearchResultHit",
|
|
1639
|
+
});
|
|
1640
|
+
export const SearchGroupedHitHitsList = /*@__PURE__*/ S.Array(SearchResultHit);
|
|
1641
|
+
export const SearchGroupedHit = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1642
|
+
found: S.optional(S.Number),
|
|
1643
|
+
group_key: SearchGroupedHitGroupKeyList,
|
|
1644
|
+
hits: SearchGroupedHitHitsList,
|
|
1645
|
+
})).annotate({
|
|
1646
|
+
identifier: "SearchGroupedHit",
|
|
1647
|
+
});
|
|
1648
|
+
export const SearchResultGroupedHitsList = /*@__PURE__*/ S.Array(SearchGroupedHit);
|
|
1649
|
+
export const SearchResultHitsList = /*@__PURE__*/ S.Array(SearchResultHit);
|
|
1650
|
+
export const SearchRequestParamsVoiceQuery = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1651
|
+
transcribed_query: S.optional(S.String),
|
|
1652
|
+
})).annotate({
|
|
1653
|
+
identifier: "SearchRequestParamsVoiceQuery",
|
|
1654
|
+
});
|
|
1655
|
+
export const SearchRequestParams = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1656
|
+
collection_name: S.String,
|
|
1657
|
+
first_q: S.optional(S.String),
|
|
1658
|
+
q: S.String,
|
|
1659
|
+
per_page: S.Number,
|
|
1660
|
+
voice_query: S.optional(SearchRequestParamsVoiceQuery),
|
|
1661
|
+
})).annotate({
|
|
1662
|
+
identifier: "SearchRequestParams",
|
|
1663
|
+
});
|
|
1664
|
+
export const SearchResultConversationConversationHistoryList =
|
|
1665
|
+
/*@__PURE__*/ S.Array(S.Unknown);
|
|
1666
|
+
export const SearchResultConversation = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1667
|
+
answer: S.String,
|
|
1668
|
+
conversation_history: SearchResultConversationConversationHistoryList,
|
|
1669
|
+
conversation_id: S.String,
|
|
1670
|
+
query: S.String,
|
|
1671
|
+
})).annotate({
|
|
1672
|
+
identifier: "SearchResultConversation",
|
|
1673
|
+
});
|
|
1674
|
+
export const SearchResultUnionRequestParamsList = /*@__PURE__*/ S.Array(SearchRequestParams);
|
|
1675
|
+
export const SearchResultMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
1676
|
+
export const SearchResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1677
|
+
facet_counts: S.optional(SearchResultFacetCountsList),
|
|
1678
|
+
found: S.optional(S.Number),
|
|
1679
|
+
found_docs: S.optional(S.Number),
|
|
1680
|
+
search_time_ms: S.optional(S.Number),
|
|
1681
|
+
out_of: S.optional(S.Number),
|
|
1682
|
+
search_cutoff: S.optional(S.Boolean),
|
|
1683
|
+
page: S.optional(S.Number),
|
|
1684
|
+
grouped_hits: S.optional(SearchResultGroupedHitsList),
|
|
1685
|
+
hits: S.optional(SearchResultHitsList),
|
|
1686
|
+
request_params: S.optional(SearchRequestParams),
|
|
1687
|
+
conversation: S.optional(SearchResultConversation),
|
|
1688
|
+
union_request_params: S.optional(SearchResultUnionRequestParamsList),
|
|
1689
|
+
metadata: S.optional(SearchResultMetadataMap),
|
|
1690
|
+
})).annotate({ identifier: "SearchResult" });
|
|
1691
|
+
export const MultiSearchParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1692
|
+
q: S.optional(S.String),
|
|
1693
|
+
query_by: S.optional(S.String),
|
|
1694
|
+
query_by_weights: S.optional(S.String),
|
|
1695
|
+
text_match_type: S.optional(S.String),
|
|
1696
|
+
prefix: S.optional(S.String),
|
|
1697
|
+
infix: S.optional(S.String),
|
|
1698
|
+
max_extra_prefix: S.optional(S.Number),
|
|
1699
|
+
max_extra_suffix: S.optional(S.Number),
|
|
1700
|
+
filter_by: S.optional(S.String),
|
|
1701
|
+
sort_by: S.optional(S.String),
|
|
1702
|
+
facet_by: S.optional(S.String),
|
|
1703
|
+
max_facet_values: S.optional(S.Number),
|
|
1704
|
+
facet_query: S.optional(S.String),
|
|
1705
|
+
num_typos: S.optional(S.String),
|
|
1706
|
+
page: S.optional(S.Number),
|
|
1707
|
+
per_page: S.optional(S.Number),
|
|
1708
|
+
limit: S.optional(S.Number),
|
|
1709
|
+
offset: S.optional(S.Number),
|
|
1710
|
+
group_by: S.optional(S.String),
|
|
1711
|
+
group_limit: S.optional(S.Number),
|
|
1712
|
+
group_missing_values: S.optional(S.Boolean),
|
|
1713
|
+
include_fields: S.optional(S.String),
|
|
1714
|
+
exclude_fields: S.optional(S.String),
|
|
1715
|
+
highlight_full_fields: S.optional(S.String),
|
|
1716
|
+
highlight_affix_num_tokens: S.optional(S.Number),
|
|
1717
|
+
highlight_start_tag: S.optional(S.String),
|
|
1718
|
+
highlight_end_tag: S.optional(S.String),
|
|
1719
|
+
snippet_threshold: S.optional(S.Number),
|
|
1720
|
+
drop_tokens_threshold: S.optional(S.Number),
|
|
1721
|
+
drop_tokens_mode: S.optional(DropTokensMode),
|
|
1722
|
+
typo_tokens_threshold: S.optional(S.Number),
|
|
1723
|
+
enable_typos_for_alpha_numerical_tokens: S.optional(S.Boolean),
|
|
1724
|
+
filter_curated_hits: S.optional(S.Boolean),
|
|
1725
|
+
enable_synonyms: S.optional(S.Boolean),
|
|
1726
|
+
enable_analytics: S.optional(S.Boolean),
|
|
1727
|
+
synonym_prefix: S.optional(S.Boolean),
|
|
1728
|
+
synonym_num_typos: S.optional(S.Number),
|
|
1729
|
+
pinned_hits: S.optional(S.String),
|
|
1730
|
+
hidden_hits: S.optional(S.String),
|
|
1731
|
+
curation_tags: S.optional(S.String),
|
|
1732
|
+
highlight_fields: S.optional(S.String),
|
|
1733
|
+
pre_segmented_query: S.optional(S.Boolean),
|
|
1734
|
+
preset: S.optional(S.String),
|
|
1735
|
+
enable_curations: S.optional(S.Boolean),
|
|
1736
|
+
prioritize_exact_match: S.optional(S.Boolean),
|
|
1737
|
+
prioritize_token_position: S.optional(S.Boolean),
|
|
1738
|
+
prioritize_num_matching_fields: S.optional(S.Boolean),
|
|
1739
|
+
enable_typos_for_numerical_tokens: S.optional(S.Boolean),
|
|
1740
|
+
exhaustive_search: S.optional(S.Boolean),
|
|
1741
|
+
search_cutoff_ms: S.optional(S.Number),
|
|
1742
|
+
use_cache: S.optional(S.Boolean),
|
|
1743
|
+
cache_ttl: S.optional(S.Number),
|
|
1744
|
+
min_len_1typo: S.optional(S.Number),
|
|
1745
|
+
min_len_2typo: S.optional(S.Number),
|
|
1746
|
+
vector_query: S.optional(S.String),
|
|
1747
|
+
remote_embedding_timeout_ms: S.optional(S.Number),
|
|
1748
|
+
remote_embedding_num_tries: S.optional(S.Number),
|
|
1749
|
+
facet_strategy: S.optional(S.String),
|
|
1750
|
+
stopwords: S.optional(S.String),
|
|
1751
|
+
facet_return_parent: S.optional(S.String),
|
|
1752
|
+
voice_query: S.optional(S.String),
|
|
1753
|
+
conversation: S.optional(S.Boolean),
|
|
1754
|
+
conversation_model_id: S.optional(S.String),
|
|
1755
|
+
conversation_id: S.optional(S.String),
|
|
1756
|
+
validate_field_names: S.optional(S.Boolean),
|
|
1757
|
+
})).annotate({
|
|
1758
|
+
identifier: "MultiSearchParameters",
|
|
1773
1759
|
});
|
|
1774
|
-
export const
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
}))).annotate({
|
|
1782
|
-
identifier: "SearchCollectionRequest",
|
|
1760
|
+
export const SearchMultiRequestSearchesList = /*@__PURE__*/ S.Array(MultiSearchCollectionParameters);
|
|
1761
|
+
export const SearchMultiRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1762
|
+
multiSearchParameters: MultiSearchParameters.pipe(T.Query()),
|
|
1763
|
+
union: S.optional(S.Boolean),
|
|
1764
|
+
searches: SearchMultiRequestSearchesList,
|
|
1765
|
+
}).pipe(T.Http({ method: "POST", uri: "/multi_search", code: 200 }))).annotate({
|
|
1766
|
+
identifier: "SearchMultiRequest",
|
|
1783
1767
|
});
|
|
1784
|
-
export const
|
|
1785
|
-
export const
|
|
1786
|
-
export const
|
|
1787
|
-
export const
|
|
1788
|
-
|
|
1789
|
-
export const
|
|
1790
|
-
|
|
1768
|
+
export const MultiSearchResultItemFacetCountsList = /*@__PURE__*/ S.Array(FacetCounts);
|
|
1769
|
+
export const MultiSearchResultItemGroupedHitsList = /*@__PURE__*/ S.Array(SearchGroupedHit);
|
|
1770
|
+
export const MultiSearchResultItemHitsList = /*@__PURE__*/ S.Array(SearchResultHit);
|
|
1771
|
+
export const MultiSearchResultItemUnionRequestParamsList =
|
|
1772
|
+
/*@__PURE__*/ S.Array(SearchRequestParams);
|
|
1773
|
+
export const MultiSearchResultItemMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
1774
|
+
export const MultiSearchResultItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1775
|
+
facet_counts: S.optional(MultiSearchResultItemFacetCountsList),
|
|
1791
1776
|
found: S.optional(S.Number),
|
|
1792
1777
|
found_docs: S.optional(S.Number),
|
|
1793
1778
|
search_time_ms: S.optional(S.Number),
|
|
1794
1779
|
out_of: S.optional(S.Number),
|
|
1795
1780
|
search_cutoff: S.optional(S.Boolean),
|
|
1796
1781
|
page: S.optional(S.Number),
|
|
1797
|
-
grouped_hits: S.optional(
|
|
1798
|
-
hits: S.optional(
|
|
1782
|
+
grouped_hits: S.optional(MultiSearchResultItemGroupedHitsList),
|
|
1783
|
+
hits: S.optional(MultiSearchResultItemHitsList),
|
|
1799
1784
|
request_params: S.optional(SearchRequestParams),
|
|
1800
1785
|
conversation: S.optional(SearchResultConversation),
|
|
1801
|
-
union_request_params: S.optional(
|
|
1802
|
-
metadata: S.optional(
|
|
1803
|
-
|
|
1786
|
+
union_request_params: S.optional(MultiSearchResultItemUnionRequestParamsList),
|
|
1787
|
+
metadata: S.optional(MultiSearchResultItemMetadataMap),
|
|
1788
|
+
code: S.optional(S.Number),
|
|
1789
|
+
error: S.optional(S.String),
|
|
1790
|
+
})).annotate({
|
|
1791
|
+
identifier: "MultiSearchResultItem",
|
|
1792
|
+
});
|
|
1793
|
+
export const MultiSearchResultResultsList = /*@__PURE__*/ S.Array(MultiSearchResultItem);
|
|
1794
|
+
export const MultiSearchResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1795
|
+
results: MultiSearchResultResultsList,
|
|
1796
|
+
conversation: S.optional(SearchResultConversation),
|
|
1797
|
+
})).annotate({
|
|
1798
|
+
identifier: "MultiSearchResult",
|
|
1799
|
+
});
|
|
1804
1800
|
export const TakeSnapshotRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1805
1801
|
snapshot_path: S.String.pipe(T.Query()),
|
|
1806
1802
|
}).pipe(T.Http({ method: "POST", uri: "/operations/snapshot", code: 200 }))).annotate({
|
|
@@ -2499,6 +2495,30 @@ export const getAliases = /*@__PURE__*/ API.make(() => ({
|
|
|
2499
2495
|
protocol: TypesenseProtocol,
|
|
2500
2496
|
retry: Retry.Retry,
|
|
2501
2497
|
}));
|
|
2498
|
+
/** List all conversation models Retrieve all conversation models */
|
|
2499
|
+
export const getAllConversationModels = /*@__PURE__*/ API.make(() => ({
|
|
2500
|
+
input: GetAllConversationModelsRequest,
|
|
2501
|
+
output: GetAllConversationModelsResponse,
|
|
2502
|
+
errors: [],
|
|
2503
|
+
protocol: TypesenseProtocol,
|
|
2504
|
+
retry: Retry.Retry,
|
|
2505
|
+
}));
|
|
2506
|
+
/** List all NL search models Retrieve all NL search models. */
|
|
2507
|
+
export const getAllNLSearchModels = /*@__PURE__*/ API.make(() => ({
|
|
2508
|
+
input: GetAllNLSearchModelsRequest,
|
|
2509
|
+
output: GetAllNLSearchModelsResponse,
|
|
2510
|
+
errors: [],
|
|
2511
|
+
protocol: TypesenseProtocol,
|
|
2512
|
+
retry: Retry.Retry,
|
|
2513
|
+
}));
|
|
2514
|
+
/** Retrieves all presets. Retrieve the details of all presets */
|
|
2515
|
+
export const getAllPresets = /*@__PURE__*/ API.make(() => ({
|
|
2516
|
+
input: GetAllPresetsRequest,
|
|
2517
|
+
output: PresetsRetrieveSchema,
|
|
2518
|
+
errors: [],
|
|
2519
|
+
protocol: TypesenseProtocol,
|
|
2520
|
+
retry: Retry.Retry,
|
|
2521
|
+
}));
|
|
2502
2522
|
/** Retrieve analytics events Retrieve the most recent events for a user and rule. */
|
|
2503
2523
|
export const getAnalyticsEvents = /*@__PURE__*/ API.make(() => ({
|
|
2504
2524
|
input: GetAnalyticsEventsRequest,
|
|
@@ -2507,6 +2527,22 @@ export const getAnalyticsEvents = /*@__PURE__*/ API.make(() => ({
|
|
|
2507
2527
|
protocol: TypesenseProtocol,
|
|
2508
2528
|
retry: Retry.Retry,
|
|
2509
2529
|
}));
|
|
2530
|
+
/** Retrieves an analytics rule Retrieve the details of an analytics rule, given it's name */
|
|
2531
|
+
export const getAnalyticsRule = /*@__PURE__*/ API.make(() => ({
|
|
2532
|
+
input: GetAnalyticsRuleRequest,
|
|
2533
|
+
output: GetAnalyticsRuleResponse,
|
|
2534
|
+
errors: [NotFound],
|
|
2535
|
+
protocol: TypesenseProtocol,
|
|
2536
|
+
retry: Retry.Retry,
|
|
2537
|
+
}));
|
|
2538
|
+
/** Retrieve analytics rules Retrieve all analytics rules. Use the optional rule_tag filter to narrow down results. */
|
|
2539
|
+
export const getAnalyticsRules = /*@__PURE__*/ API.make(() => ({
|
|
2540
|
+
input: GetAnalyticsRulesRequest,
|
|
2541
|
+
output: GetAnalyticsRulesResponse,
|
|
2542
|
+
errors: [],
|
|
2543
|
+
protocol: TypesenseProtocol,
|
|
2544
|
+
retry: Retry.Retry,
|
|
2545
|
+
}));
|
|
2510
2546
|
/** Get analytics subsystem status Returns sizes of internal analytics buffers and queues. */
|
|
2511
2547
|
export const getAnalyticsStatus = /*@__PURE__*/ API.make(() => ({
|
|
2512
2548
|
input: GetAnalyticsStatusRequest,
|
|
@@ -2515,6 +2551,14 @@ export const getAnalyticsStatus = /*@__PURE__*/ API.make(() => ({
|
|
|
2515
2551
|
protocol: TypesenseProtocol,
|
|
2516
2552
|
retry: Retry.Retry,
|
|
2517
2553
|
}));
|
|
2554
|
+
/** Get stats about API endpoints. Retrieve the stats about API endpoints. */
|
|
2555
|
+
export const getAPIStats = /*@__PURE__*/ API.make(() => ({
|
|
2556
|
+
input: GetAPIStatsRequest,
|
|
2557
|
+
output: APIStatsResponse,
|
|
2558
|
+
errors: [],
|
|
2559
|
+
protocol: TypesenseProtocol,
|
|
2560
|
+
retry: Retry.Retry,
|
|
2561
|
+
}));
|
|
2518
2562
|
/** Retrieve a single collection Retrieve the details of a collection, given its name. */
|
|
2519
2563
|
export const getCollection = /*@__PURE__*/ API.make(() => ({
|
|
2520
2564
|
input: GetCollectionRequest,
|
|
@@ -2531,250 +2575,194 @@ export const getCollections = /*@__PURE__*/ API.make(() => ({
|
|
|
2531
2575
|
protocol: TypesenseProtocol,
|
|
2532
2576
|
retry: Retry.Retry,
|
|
2533
2577
|
}));
|
|
2534
|
-
/** Retrieve a
|
|
2535
|
-
export const
|
|
2536
|
-
input:
|
|
2537
|
-
output:
|
|
2578
|
+
/** Retrieve a conversation model Retrieve a conversation model */
|
|
2579
|
+
export const getConversationModel = /*@__PURE__*/ API.make(() => ({
|
|
2580
|
+
input: GetConversationModelRequest,
|
|
2581
|
+
output: GetConversationModelResponse,
|
|
2538
2582
|
errors: [NotFound],
|
|
2539
2583
|
protocol: TypesenseProtocol,
|
|
2540
2584
|
retry: Retry.Retry,
|
|
2541
2585
|
}));
|
|
2542
|
-
/** Retrieve
|
|
2543
|
-
export const
|
|
2544
|
-
input:
|
|
2545
|
-
output:
|
|
2586
|
+
/** Retrieve a curation set Retrieve a specific curation set by its name */
|
|
2587
|
+
export const getCurationSet = /*@__PURE__*/ API.make(() => ({
|
|
2588
|
+
input: GetCurationSetRequest,
|
|
2589
|
+
output: GetCurationSetResponse,
|
|
2546
2590
|
errors: [NotFound],
|
|
2547
2591
|
protocol: TypesenseProtocol,
|
|
2548
2592
|
retry: Retry.Retry,
|
|
2549
2593
|
}));
|
|
2550
|
-
/** Retrieve
|
|
2551
|
-
export const
|
|
2552
|
-
input:
|
|
2553
|
-
output:
|
|
2554
|
-
errors: [],
|
|
2555
|
-
protocol: TypesenseProtocol,
|
|
2556
|
-
retry: Retry.Retry,
|
|
2557
|
-
}));
|
|
2558
|
-
/** Get the status of in-progress schema change operations Returns the status of any ongoing schema change operations. If no schema changes are in progress, returns an empty response. */
|
|
2559
|
-
export const getSchemaChanges = /*@__PURE__*/ API.make(() => ({
|
|
2560
|
-
input: GetSchemaChangesRequest,
|
|
2561
|
-
output: GetSchemaChangesResponse,
|
|
2562
|
-
errors: [],
|
|
2563
|
-
protocol: TypesenseProtocol,
|
|
2564
|
-
retry: Retry.Retry,
|
|
2565
|
-
}));
|
|
2566
|
-
/** Retrieve a stemming dictionary Fetch details of a specific stemming dictionary. */
|
|
2567
|
-
export const getStemmingDictionary = /*@__PURE__*/ API.make(() => ({
|
|
2568
|
-
input: GetStemmingDictionaryRequest,
|
|
2569
|
-
output: StemmingDictionary,
|
|
2594
|
+
/** Retrieve a curation set item Retrieve a specific curation item by its id */
|
|
2595
|
+
export const getCurationSetItem = /*@__PURE__*/ API.make(() => ({
|
|
2596
|
+
input: GetCurationSetItemRequest,
|
|
2597
|
+
output: GetCurationSetItemResponse,
|
|
2570
2598
|
errors: [NotFound],
|
|
2571
2599
|
protocol: TypesenseProtocol,
|
|
2572
2600
|
retry: Retry.Retry,
|
|
2573
2601
|
}));
|
|
2574
|
-
/**
|
|
2575
|
-
export const
|
|
2576
|
-
input:
|
|
2577
|
-
output:
|
|
2578
|
-
errors: [],
|
|
2579
|
-
protocol: TypesenseProtocol,
|
|
2580
|
-
retry: Retry.Retry,
|
|
2581
|
-
}));
|
|
2582
|
-
/** Import documents into a collection The documents to be imported must be formatted in a newline delimited JSON structure. You can feed the output file from a Typesense export operation directly as import. */
|
|
2583
|
-
export const importDocuments = /*@__PURE__*/ API.make(() => ({
|
|
2584
|
-
input: ImportDocumentsRequest,
|
|
2585
|
-
output: ImportDocumentsResponse,
|
|
2586
|
-
errors: [BadRequest, NotFound],
|
|
2587
|
-
protocol: TypesenseProtocol,
|
|
2588
|
-
retry: Retry.Retry,
|
|
2589
|
-
}));
|
|
2590
|
-
/** Import a stemming dictionary Upload a JSONL file containing word mappings to create or update a stemming dictionary. */
|
|
2591
|
-
export const importStemmingDictionary = /*@__PURE__*/ API.make(() => ({
|
|
2592
|
-
input: ImportStemmingDictionaryRequest,
|
|
2593
|
-
output: ImportStemmingDictionaryResponse,
|
|
2594
|
-
errors: [BadRequest],
|
|
2595
|
-
protocol: TypesenseProtocol,
|
|
2596
|
-
retry: Retry.Retry,
|
|
2597
|
-
}));
|
|
2598
|
-
/** Index a document A document to be indexed in a given collection must conform to the schema of the collection. */
|
|
2599
|
-
export const indexDocument = /*@__PURE__*/ API.make(() => ({
|
|
2600
|
-
input: IndexDocumentRequest,
|
|
2601
|
-
output: IndexDocumentResponse,
|
|
2602
|
+
/** List items in a curation set Retrieve all curation items in a set */
|
|
2603
|
+
export const getCurationSetItems = /*@__PURE__*/ API.make(() => ({
|
|
2604
|
+
input: GetCurationSetItemsRequest,
|
|
2605
|
+
output: GetCurationSetItemsResponse,
|
|
2602
2606
|
errors: [NotFound],
|
|
2603
2607
|
protocol: TypesenseProtocol,
|
|
2604
2608
|
retry: Retry.Retry,
|
|
2605
2609
|
}));
|
|
2606
|
-
/** List all
|
|
2607
|
-
export const
|
|
2608
|
-
input:
|
|
2609
|
-
output:
|
|
2610
|
+
/** List all curation sets Retrieve all curation sets */
|
|
2611
|
+
export const getCurationSets = /*@__PURE__*/ API.make(() => ({
|
|
2612
|
+
input: GetCurationSetsRequest,
|
|
2613
|
+
output: GetCurationSetsResponse,
|
|
2610
2614
|
errors: [],
|
|
2611
2615
|
protocol: TypesenseProtocol,
|
|
2612
2616
|
retry: Retry.Retry,
|
|
2613
2617
|
}));
|
|
2614
|
-
/**
|
|
2615
|
-
export const
|
|
2616
|
-
input:
|
|
2617
|
-
output:
|
|
2618
|
-
errors: [
|
|
2618
|
+
/** Retrieve a document Fetch an individual document from a collection by using its ID. */
|
|
2619
|
+
export const getDocument = /*@__PURE__*/ API.make(() => ({
|
|
2620
|
+
input: GetDocumentRequest,
|
|
2621
|
+
output: GetDocumentResponse,
|
|
2622
|
+
errors: [NotFound],
|
|
2619
2623
|
protocol: TypesenseProtocol,
|
|
2620
2624
|
retry: Retry.Retry,
|
|
2621
2625
|
}));
|
|
2622
|
-
/**
|
|
2623
|
-
export const
|
|
2624
|
-
input:
|
|
2625
|
-
output:
|
|
2626
|
-
errors: [],
|
|
2626
|
+
/** Retrieve (metadata about) a key Retrieve (metadata about) a key. Only the key prefix is returned when you retrieve a key. Due to security reasons, only the create endpoint returns the full API key. */
|
|
2627
|
+
export const getKey = /*@__PURE__*/ API.make(() => ({
|
|
2628
|
+
input: GetKeyRequest,
|
|
2629
|
+
output: GetKeyResponse,
|
|
2630
|
+
errors: [NotFound],
|
|
2627
2631
|
protocol: TypesenseProtocol,
|
|
2628
2632
|
retry: Retry.Retry,
|
|
2629
2633
|
}));
|
|
2630
|
-
/**
|
|
2631
|
-
export const
|
|
2632
|
-
input:
|
|
2633
|
-
output:
|
|
2634
|
+
/** Retrieve (metadata about) all keys. */
|
|
2635
|
+
export const getKeys = /*@__PURE__*/ API.make(() => ({
|
|
2636
|
+
input: GetKeysRequest,
|
|
2637
|
+
output: ApiKeysResponse,
|
|
2634
2638
|
errors: [],
|
|
2635
2639
|
protocol: TypesenseProtocol,
|
|
2636
2640
|
retry: Retry.Retry,
|
|
2637
2641
|
}));
|
|
2638
|
-
/**
|
|
2639
|
-
export const
|
|
2640
|
-
input:
|
|
2641
|
-
output:
|
|
2642
|
+
/** Get current RAM, CPU, Disk & Network usage metrics. Retrieve the metrics. */
|
|
2643
|
+
export const getMetrics = /*@__PURE__*/ API.make(() => ({
|
|
2644
|
+
input: GetMetricsRequest,
|
|
2645
|
+
output: GetMetricsResponse,
|
|
2642
2646
|
errors: [],
|
|
2643
2647
|
protocol: TypesenseProtocol,
|
|
2644
2648
|
retry: Retry.Retry,
|
|
2645
2649
|
}));
|
|
2646
|
-
/**
|
|
2647
|
-
export const
|
|
2648
|
-
input:
|
|
2649
|
-
output:
|
|
2650
|
+
/** Retrieve a NL search model Retrieve a specific NL search model by its ID. */
|
|
2651
|
+
export const getNLSearchModel = /*@__PURE__*/ API.make(() => ({
|
|
2652
|
+
input: GetNLSearchModelRequest,
|
|
2653
|
+
output: GetNLSearchModelResponse,
|
|
2650
2654
|
errors: [NotFound],
|
|
2651
2655
|
protocol: TypesenseProtocol,
|
|
2652
2656
|
retry: Retry.Retry,
|
|
2653
2657
|
}));
|
|
2654
|
-
/**
|
|
2655
|
-
export const
|
|
2656
|
-
input:
|
|
2657
|
-
output:
|
|
2658
|
-
errors: [],
|
|
2659
|
-
protocol: TypesenseProtocol,
|
|
2660
|
-
retry: Retry.Retry,
|
|
2661
|
-
}));
|
|
2662
|
-
/** Get stats about API endpoints. Retrieve the stats about API endpoints. */
|
|
2663
|
-
export const retrieveAPIStats = /*@__PURE__*/ API.make(() => ({
|
|
2664
|
-
input: RetrieveAPIStatsRequest,
|
|
2665
|
-
output: APIStatsResponse,
|
|
2666
|
-
errors: [],
|
|
2667
|
-
protocol: TypesenseProtocol,
|
|
2668
|
-
retry: Retry.Retry,
|
|
2669
|
-
}));
|
|
2670
|
-
/** Retrieve a conversation model Retrieve a conversation model */
|
|
2671
|
-
export const retrieveConversationModel = /*@__PURE__*/ API.make(() => ({
|
|
2672
|
-
input: RetrieveConversationModelRequest,
|
|
2673
|
-
output: RetrieveConversationModelResponse,
|
|
2658
|
+
/** Retrieves a preset. Retrieve the details of a preset, given it's name. */
|
|
2659
|
+
export const getPreset = /*@__PURE__*/ API.make(() => ({
|
|
2660
|
+
input: GetPresetRequest,
|
|
2661
|
+
output: GetPresetResponse,
|
|
2674
2662
|
errors: [NotFound],
|
|
2675
2663
|
protocol: TypesenseProtocol,
|
|
2676
2664
|
retry: Retry.Retry,
|
|
2677
2665
|
}));
|
|
2678
|
-
/**
|
|
2679
|
-
export const
|
|
2680
|
-
input:
|
|
2681
|
-
output:
|
|
2682
|
-
errors: [
|
|
2666
|
+
/** Get the status of in-progress schema change operations Returns the status of any ongoing schema change operations. If no schema changes are in progress, returns an empty response. */
|
|
2667
|
+
export const getSchemaChanges = /*@__PURE__*/ API.make(() => ({
|
|
2668
|
+
input: GetSchemaChangesRequest,
|
|
2669
|
+
output: GetSchemaChangesResponse,
|
|
2670
|
+
errors: [],
|
|
2683
2671
|
protocol: TypesenseProtocol,
|
|
2684
2672
|
retry: Retry.Retry,
|
|
2685
2673
|
}));
|
|
2686
|
-
/** Retrieve a
|
|
2687
|
-
export const
|
|
2688
|
-
input:
|
|
2689
|
-
output:
|
|
2674
|
+
/** Retrieve a stemming dictionary Fetch details of a specific stemming dictionary. */
|
|
2675
|
+
export const getStemmingDictionary = /*@__PURE__*/ API.make(() => ({
|
|
2676
|
+
input: GetStemmingDictionaryRequest,
|
|
2677
|
+
output: StemmingDictionary,
|
|
2690
2678
|
errors: [NotFound],
|
|
2691
2679
|
protocol: TypesenseProtocol,
|
|
2692
2680
|
retry: Retry.Retry,
|
|
2693
2681
|
}));
|
|
2694
|
-
/**
|
|
2695
|
-
export const
|
|
2696
|
-
input:
|
|
2697
|
-
output:
|
|
2682
|
+
/** Retrieves a stopwords set. Retrieve the details of a stopwords set, given it's name. */
|
|
2683
|
+
export const getStopwordsSet = /*@__PURE__*/ API.make(() => ({
|
|
2684
|
+
input: GetStopwordsSetRequest,
|
|
2685
|
+
output: StopwordsSetRetrieveSchema,
|
|
2698
2686
|
errors: [NotFound],
|
|
2699
2687
|
protocol: TypesenseProtocol,
|
|
2700
2688
|
retry: Retry.Retry,
|
|
2701
2689
|
}));
|
|
2702
|
-
/**
|
|
2703
|
-
export const
|
|
2704
|
-
input:
|
|
2705
|
-
output:
|
|
2690
|
+
/** Retrieves all stopwords sets. Retrieve the details of all stopwords sets */
|
|
2691
|
+
export const getStopwordsSets = /*@__PURE__*/ API.make(() => ({
|
|
2692
|
+
input: GetStopwordsSetsRequest,
|
|
2693
|
+
output: StopwordsSetsRetrieveAllSchema,
|
|
2706
2694
|
errors: [],
|
|
2707
2695
|
protocol: TypesenseProtocol,
|
|
2708
2696
|
retry: Retry.Retry,
|
|
2709
2697
|
}));
|
|
2710
|
-
/**
|
|
2711
|
-
export const
|
|
2712
|
-
input:
|
|
2713
|
-
output:
|
|
2714
|
-
errors: [],
|
|
2698
|
+
/** Retrieve a synonym set Retrieve a specific synonym set by its name */
|
|
2699
|
+
export const getSynonymSet = /*@__PURE__*/ API.make(() => ({
|
|
2700
|
+
input: GetSynonymSetRequest,
|
|
2701
|
+
output: GetSynonymSetResponse,
|
|
2702
|
+
errors: [NotFound],
|
|
2715
2703
|
protocol: TypesenseProtocol,
|
|
2716
2704
|
retry: Retry.Retry,
|
|
2717
2705
|
}));
|
|
2718
|
-
/** Retrieve a
|
|
2719
|
-
export const
|
|
2720
|
-
input:
|
|
2721
|
-
output:
|
|
2706
|
+
/** Retrieve a synonym set item Retrieve a specific synonym item by its id */
|
|
2707
|
+
export const getSynonymSetItem = /*@__PURE__*/ API.make(() => ({
|
|
2708
|
+
input: GetSynonymSetItemRequest,
|
|
2709
|
+
output: GetSynonymSetItemResponse,
|
|
2722
2710
|
errors: [NotFound],
|
|
2723
2711
|
protocol: TypesenseProtocol,
|
|
2724
2712
|
retry: Retry.Retry,
|
|
2725
2713
|
}));
|
|
2726
|
-
/**
|
|
2727
|
-
export const
|
|
2728
|
-
input:
|
|
2729
|
-
output:
|
|
2714
|
+
/** List items in a synonym set Retrieve all synonym items in a set */
|
|
2715
|
+
export const getSynonymSetItems = /*@__PURE__*/ API.make(() => ({
|
|
2716
|
+
input: GetSynonymSetItemsRequest,
|
|
2717
|
+
output: GetSynonymSetItemsResponse,
|
|
2730
2718
|
errors: [NotFound],
|
|
2731
2719
|
protocol: TypesenseProtocol,
|
|
2732
2720
|
retry: Retry.Retry,
|
|
2733
2721
|
}));
|
|
2734
|
-
/**
|
|
2735
|
-
export const
|
|
2736
|
-
input:
|
|
2737
|
-
output:
|
|
2738
|
-
errors: [
|
|
2722
|
+
/** List all synonym sets Retrieve all synonym sets */
|
|
2723
|
+
export const getSynonymSets = /*@__PURE__*/ API.make(() => ({
|
|
2724
|
+
input: GetSynonymSetsRequest,
|
|
2725
|
+
output: GetSynonymSetsResponse,
|
|
2726
|
+
errors: [],
|
|
2739
2727
|
protocol: TypesenseProtocol,
|
|
2740
2728
|
retry: Retry.Retry,
|
|
2741
2729
|
}));
|
|
2742
|
-
/**
|
|
2743
|
-
export const
|
|
2744
|
-
input:
|
|
2745
|
-
output:
|
|
2730
|
+
/** Checks if Typesense server is ready to accept requests. Checks if Typesense server is ready to accept requests. */
|
|
2731
|
+
export const health = /*@__PURE__*/ API.make(() => ({
|
|
2732
|
+
input: HealthRequest,
|
|
2733
|
+
output: HealthStatus,
|
|
2746
2734
|
errors: [],
|
|
2747
2735
|
protocol: TypesenseProtocol,
|
|
2748
2736
|
retry: Retry.Retry,
|
|
2749
2737
|
}));
|
|
2750
|
-
/**
|
|
2751
|
-
export const
|
|
2752
|
-
input:
|
|
2753
|
-
output:
|
|
2754
|
-
errors: [NotFound],
|
|
2738
|
+
/** Import documents into a collection The documents to be imported must be formatted in a newline delimited JSON structure. You can feed the output file from a Typesense export operation directly as import. */
|
|
2739
|
+
export const importDocuments = /*@__PURE__*/ API.make(() => ({
|
|
2740
|
+
input: ImportDocumentsRequest,
|
|
2741
|
+
output: ImportDocumentsResponse,
|
|
2742
|
+
errors: [BadRequest, NotFound],
|
|
2755
2743
|
protocol: TypesenseProtocol,
|
|
2756
2744
|
retry: Retry.Retry,
|
|
2757
2745
|
}));
|
|
2758
|
-
/**
|
|
2759
|
-
export const
|
|
2760
|
-
input:
|
|
2761
|
-
output:
|
|
2762
|
-
errors: [
|
|
2746
|
+
/** Import a stemming dictionary Upload a JSONL file containing word mappings to create or update a stemming dictionary. */
|
|
2747
|
+
export const importStemmingDictionary = /*@__PURE__*/ API.make(() => ({
|
|
2748
|
+
input: ImportStemmingDictionaryRequest,
|
|
2749
|
+
output: ImportStemmingDictionaryResponse,
|
|
2750
|
+
errors: [BadRequest],
|
|
2763
2751
|
protocol: TypesenseProtocol,
|
|
2764
2752
|
retry: Retry.Retry,
|
|
2765
2753
|
}));
|
|
2766
|
-
/**
|
|
2767
|
-
export const
|
|
2768
|
-
input:
|
|
2769
|
-
output:
|
|
2754
|
+
/** Index a document A document to be indexed in a given collection must conform to the schema of the collection. */
|
|
2755
|
+
export const listDocument = /*@__PURE__*/ API.make(() => ({
|
|
2756
|
+
input: ListDocumentRequest,
|
|
2757
|
+
output: ListDocumentResponse,
|
|
2770
2758
|
errors: [NotFound],
|
|
2771
2759
|
protocol: TypesenseProtocol,
|
|
2772
2760
|
retry: Retry.Retry,
|
|
2773
2761
|
}));
|
|
2774
|
-
/** List all
|
|
2775
|
-
export const
|
|
2776
|
-
input:
|
|
2777
|
-
output:
|
|
2762
|
+
/** List all stemming dictionaries Retrieve a list of all available stemming dictionaries. */
|
|
2763
|
+
export const listStemmingDictionaries = /*@__PURE__*/ API.make(() => ({
|
|
2764
|
+
input: ListStemmingDictionariesRequest,
|
|
2765
|
+
output: ListStemmingDictionariesResponse,
|
|
2778
2766
|
errors: [],
|
|
2779
2767
|
protocol: TypesenseProtocol,
|
|
2780
2768
|
retry: Retry.Retry,
|
|
@@ -2787,6 +2775,14 @@ export const searchCollection = /*@__PURE__*/ API.make(() => ({
|
|
|
2787
2775
|
protocol: TypesenseProtocol,
|
|
2788
2776
|
retry: Retry.Retry,
|
|
2789
2777
|
}));
|
|
2778
|
+
/** send multiple search requests in a single HTTP request This is especially useful to avoid round-trip network latencies incurred otherwise if each of these requests are sent in separate HTTP requests. You can also use this feature to do a federated search across multiple collections in a single HTTP request. */
|
|
2779
|
+
export const searchMulti = /*@__PURE__*/ API.make(() => ({
|
|
2780
|
+
input: SearchMultiRequest,
|
|
2781
|
+
output: MultiSearchResult,
|
|
2782
|
+
errors: [BadRequest],
|
|
2783
|
+
protocol: TypesenseProtocol,
|
|
2784
|
+
retry: Retry.Retry,
|
|
2785
|
+
}));
|
|
2790
2786
|
/** Creates a point-in-time snapshot of a Typesense node's state and data in the specified directory. Creates a point-in-time snapshot of a Typesense node's state and data in the specified directory. You can then backup the snapshot directory that gets created and later restore it as a data directory, as needed. */
|
|
2791
2787
|
export const takeSnapshot = /*@__PURE__*/ API.make(() => ({
|
|
2792
2788
|
input: TakeSnapshotRequest,
|