@distilled.cloud/typesense 0.30.3 → 1.0.0-rc.10
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/credentials.d.ts +7 -0
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +19 -2
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +14 -3
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +5 -4
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +7 -10
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +7 -10
- package/lib/index.js.map +1 -1
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +31 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +4 -4
- package/lib/retry.js +4 -4
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +3 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/typesense.d.ts +2829 -0
- package/lib/services/typesense.d.ts.map +1 -0
- package/lib/services/typesense.js +2914 -0
- package/lib/services/typesense.js.map +1 -0
- package/lib/traits.d.ts +8 -2
- package/lib/traits.d.ts.map +1 -1
- package/lib/traits.js +8 -2
- package/lib/traits.js.map +1 -1
- package/package.json +48 -52
- package/src/credentials.ts +28 -2
- package/src/errors.ts +18 -5
- package/src/index.ts +11 -10
- package/src/protocol.ts +52 -0
- package/src/retry.ts +4 -4
- package/src/services/index.ts +2 -0
- package/src/services/typesense.ts +6822 -0
- package/src/traits.ts +41 -2
- package/README.md +0 -75
- package/lib/category.d.ts +0 -5
- package/lib/category.d.ts.map +0 -1
- package/lib/category.js +0 -5
- package/lib/category.js.map +0 -1
- package/lib/client.d.ts +0 -11
- package/lib/client.d.ts.map +0 -1
- package/lib/client.js +0 -56
- package/lib/client.js.map +0 -1
- package/lib/operations/clearCache.d.ts +0 -15
- package/lib/operations/clearCache.d.ts.map +0 -1
- package/lib/operations/clearCache.js +0 -18
- package/lib/operations/clearCache.js.map +0 -1
- package/lib/operations/compactDb.d.ts +0 -15
- package/lib/operations/compactDb.d.ts.map +0 -1
- package/lib/operations/compactDb.js +0 -18
- package/lib/operations/compactDb.js.map +0 -1
- package/lib/operations/createAnalyticsEvent.d.ts +0 -25
- package/lib/operations/createAnalyticsEvent.d.ts.map +0 -1
- package/lib/operations/createAnalyticsEvent.js +0 -32
- package/lib/operations/createAnalyticsEvent.js.map +0 -1
- package/lib/operations/createAnalyticsRule.d.ts +0 -46
- package/lib/operations/createAnalyticsRule.d.ts.map +0 -1
- package/lib/operations/createAnalyticsRule.js +0 -68
- package/lib/operations/createAnalyticsRule.js.map +0 -1
- package/lib/operations/createCollection.d.ts +0 -110
- package/lib/operations/createCollection.d.ts.map +0 -1
- package/lib/operations/createCollection.js +0 -116
- package/lib/operations/createCollection.js.map +0 -1
- package/lib/operations/createConversationModel.d.ts +0 -26
- package/lib/operations/createConversationModel.d.ts.map +0 -1
- package/lib/operations/createConversationModel.js +0 -34
- package/lib/operations/createConversationModel.js.map +0 -1
- package/lib/operations/createKey.d.ts +0 -27
- package/lib/operations/createKey.d.ts.map +0 -1
- package/lib/operations/createKey.js +0 -32
- package/lib/operations/createKey.js.map +0 -1
- package/lib/operations/createNLSearchModel.d.ts +0 -36
- package/lib/operations/createNLSearchModel.d.ts.map +0 -1
- package/lib/operations/createNLSearchModel.js +0 -44
- package/lib/operations/createNLSearchModel.js.map +0 -1
- package/lib/operations/debug.d.ts +0 -13
- package/lib/operations/debug.d.ts.map +0 -1
- package/lib/operations/debug.js +0 -16
- package/lib/operations/debug.js.map +0 -1
- package/lib/operations/deleteAlias.d.ts +0 -18
- package/lib/operations/deleteAlias.d.ts.map +0 -1
- package/lib/operations/deleteAlias.js +0 -23
- package/lib/operations/deleteAlias.js.map +0 -1
- package/lib/operations/deleteAnalyticsRule.d.ts +0 -32
- package/lib/operations/deleteAnalyticsRule.d.ts.map +0 -1
- package/lib/operations/deleteAnalyticsRule.js +0 -44
- package/lib/operations/deleteAnalyticsRule.js.map +0 -1
- package/lib/operations/deleteCollection.d.ts +0 -67
- package/lib/operations/deleteCollection.d.ts.map +0 -1
- package/lib/operations/deleteCollection.js +0 -73
- package/lib/operations/deleteCollection.js.map +0 -1
- package/lib/operations/deleteConversationModel.d.ts +0 -17
- package/lib/operations/deleteConversationModel.d.ts.map +0 -1
- package/lib/operations/deleteConversationModel.js +0 -24
- package/lib/operations/deleteConversationModel.js.map +0 -1
- package/lib/operations/deleteCurationSet.d.ts +0 -19
- package/lib/operations/deleteCurationSet.d.ts.map +0 -1
- package/lib/operations/deleteCurationSet.js +0 -25
- package/lib/operations/deleteCurationSet.js.map +0 -1
- package/lib/operations/deleteCurationSetItem.d.ts +0 -21
- package/lib/operations/deleteCurationSetItem.d.ts.map +0 -1
- package/lib/operations/deleteCurationSetItem.js +0 -31
- package/lib/operations/deleteCurationSetItem.js.map +0 -1
- package/lib/operations/deleteDocument.d.ts +0 -19
- package/lib/operations/deleteDocument.d.ts.map +0 -1
- package/lib/operations/deleteDocument.js +0 -28
- package/lib/operations/deleteDocument.js.map +0 -1
- package/lib/operations/deleteDocuments.d.ts +0 -20
- package/lib/operations/deleteDocuments.d.ts.map +0 -1
- package/lib/operations/deleteDocuments.js +0 -25
- package/lib/operations/deleteDocuments.js.map +0 -1
- package/lib/operations/deleteKey.d.ts +0 -17
- package/lib/operations/deleteKey.d.ts.map +0 -1
- package/lib/operations/deleteKey.js +0 -22
- package/lib/operations/deleteKey.js.map +0 -1
- package/lib/operations/deleteNLSearchModel.d.ts +0 -19
- package/lib/operations/deleteNLSearchModel.d.ts.map +0 -1
- package/lib/operations/deleteNLSearchModel.js +0 -26
- package/lib/operations/deleteNLSearchModel.js.map +0 -1
- package/lib/operations/deletePreset.d.ts +0 -19
- package/lib/operations/deletePreset.d.ts.map +0 -1
- package/lib/operations/deletePreset.js +0 -24
- package/lib/operations/deletePreset.js.map +0 -1
- package/lib/operations/deleteStopwordsSet.d.ts +0 -19
- package/lib/operations/deleteStopwordsSet.d.ts.map +0 -1
- package/lib/operations/deleteStopwordsSet.js +0 -26
- package/lib/operations/deleteStopwordsSet.js.map +0 -1
- package/lib/operations/deleteSynonymSet.d.ts +0 -19
- package/lib/operations/deleteSynonymSet.d.ts.map +0 -1
- package/lib/operations/deleteSynonymSet.js +0 -24
- package/lib/operations/deleteSynonymSet.js.map +0 -1
- package/lib/operations/deleteSynonymSetItem.d.ts +0 -21
- package/lib/operations/deleteSynonymSetItem.d.ts.map +0 -1
- package/lib/operations/deleteSynonymSetItem.js +0 -31
- package/lib/operations/deleteSynonymSetItem.js.map +0 -1
- package/lib/operations/exportDocuments.d.ts +0 -18
- package/lib/operations/exportDocuments.d.ts.map +0 -1
- package/lib/operations/exportDocuments.js +0 -27
- package/lib/operations/exportDocuments.js.map +0 -1
- package/lib/operations/flushAnalytics.d.ts +0 -15
- package/lib/operations/flushAnalytics.d.ts.map +0 -1
- package/lib/operations/flushAnalytics.js +0 -18
- package/lib/operations/flushAnalytics.js.map +0 -1
- package/lib/operations/getAlias.d.ts +0 -20
- package/lib/operations/getAlias.d.ts.map +0 -1
- package/lib/operations/getAlias.js +0 -25
- package/lib/operations/getAlias.js.map +0 -1
- package/lib/operations/getAliases.d.ts +0 -18
- package/lib/operations/getAliases.d.ts.map +0 -1
- package/lib/operations/getAliases.js +0 -21
- package/lib/operations/getAliases.js.map +0 -1
- package/lib/operations/getAnalyticsEvents.d.ts +0 -31
- package/lib/operations/getAnalyticsEvents.d.ts.map +0 -1
- package/lib/operations/getAnalyticsEvents.js +0 -38
- package/lib/operations/getAnalyticsEvents.js.map +0 -1
- package/lib/operations/getAnalyticsStatus.d.ts +0 -21
- package/lib/operations/getAnalyticsStatus.d.ts.map +0 -1
- package/lib/operations/getAnalyticsStatus.js +0 -26
- package/lib/operations/getAnalyticsStatus.js.map +0 -1
- package/lib/operations/getCollection.d.ts +0 -67
- package/lib/operations/getCollection.d.ts.map +0 -1
- package/lib/operations/getCollection.js +0 -73
- package/lib/operations/getCollection.js.map +0 -1
- package/lib/operations/getCollections.d.ts +0 -64
- package/lib/operations/getCollections.d.ts.map +0 -1
- package/lib/operations/getCollections.js +0 -69
- package/lib/operations/getCollections.js.map +0 -1
- package/lib/operations/getDocument.d.ts +0 -19
- package/lib/operations/getDocument.d.ts.map +0 -1
- package/lib/operations/getDocument.js +0 -28
- package/lib/operations/getDocument.js.map +0 -1
- package/lib/operations/getKey.d.ts +0 -25
- package/lib/operations/getKey.d.ts.map +0 -1
- package/lib/operations/getKey.js +0 -30
- package/lib/operations/getKey.js.map +0 -1
- package/lib/operations/getKeys.d.ts +0 -21
- package/lib/operations/getKeys.d.ts.map +0 -1
- package/lib/operations/getKeys.js +0 -24
- package/lib/operations/getKeys.js.map +0 -1
- package/lib/operations/getSchemaChanges.d.ts +0 -17
- package/lib/operations/getSchemaChanges.d.ts.map +0 -1
- package/lib/operations/getSchemaChanges.js +0 -20
- package/lib/operations/getSchemaChanges.js.map +0 -1
- package/lib/operations/getStemmingDictionary.d.ts +0 -23
- package/lib/operations/getStemmingDictionary.d.ts.map +0 -1
- package/lib/operations/getStemmingDictionary.js +0 -30
- package/lib/operations/getStemmingDictionary.js.map +0 -1
- package/lib/operations/health.d.ts +0 -13
- package/lib/operations/health.d.ts.map +0 -1
- package/lib/operations/health.js +0 -16
- package/lib/operations/health.js.map +0 -1
- package/lib/operations/importDocuments.d.ts +0 -18
- package/lib/operations/importDocuments.d.ts.map +0 -1
- package/lib/operations/importDocuments.js +0 -27
- package/lib/operations/importDocuments.js.map +0 -1
- package/lib/operations/importStemmingDictionary.d.ts +0 -17
- package/lib/operations/importStemmingDictionary.d.ts.map +0 -1
- package/lib/operations/importStemmingDictionary.js +0 -24
- package/lib/operations/importStemmingDictionary.js.map +0 -1
- package/lib/operations/index.d.ts +0 -80
- package/lib/operations/index.d.ts.map +0 -1
- package/lib/operations/index.js +0 -80
- package/lib/operations/index.js.map +0 -1
- package/lib/operations/indexDocument.d.ts +0 -21
- package/lib/operations/indexDocument.d.ts.map +0 -1
- package/lib/operations/indexDocument.js +0 -27
- package/lib/operations/indexDocument.js.map +0 -1
- package/lib/operations/listStemmingDictionaries.d.ts +0 -15
- package/lib/operations/listStemmingDictionaries.d.ts.map +0 -1
- package/lib/operations/listStemmingDictionaries.js +0 -20
- package/lib/operations/listStemmingDictionaries.js.map +0 -1
- package/lib/operations/multiSearch.d.ts +0 -207
- package/lib/operations/multiSearch.d.ts.map +0 -1
- package/lib/operations/multiSearch.js +0 -212
- package/lib/operations/multiSearch.js.map +0 -1
- package/lib/operations/retrieveAPIStats.d.ts +0 -27
- package/lib/operations/retrieveAPIStats.d.ts.map +0 -1
- package/lib/operations/retrieveAPIStats.js +0 -30
- package/lib/operations/retrieveAPIStats.js.map +0 -1
- package/lib/operations/retrieveAllConversationModels.d.ts +0 -15
- package/lib/operations/retrieveAllConversationModels.d.ts.map +0 -1
- package/lib/operations/retrieveAllConversationModels.js +0 -21
- package/lib/operations/retrieveAllConversationModels.js.map +0 -1
- package/lib/operations/retrieveAllNLSearchModels.d.ts +0 -15
- package/lib/operations/retrieveAllNLSearchModels.d.ts.map +0 -1
- package/lib/operations/retrieveAllNLSearchModels.js +0 -20
- package/lib/operations/retrieveAllNLSearchModels.js.map +0 -1
- package/lib/operations/retrieveAllPresets.d.ts +0 -163
- package/lib/operations/retrieveAllPresets.d.ts.map +0 -1
- package/lib/operations/retrieveAllPresets.js +0 -23
- package/lib/operations/retrieveAllPresets.js.map +0 -1
- package/lib/operations/retrieveAnalyticsRule.d.ts +0 -32
- package/lib/operations/retrieveAnalyticsRule.d.ts.map +0 -1
- package/lib/operations/retrieveAnalyticsRule.js +0 -44
- package/lib/operations/retrieveAnalyticsRule.js.map +0 -1
- package/lib/operations/retrieveAnalyticsRules.d.ts +0 -31
- package/lib/operations/retrieveAnalyticsRules.d.ts.map +0 -1
- package/lib/operations/retrieveAnalyticsRules.js +0 -42
- package/lib/operations/retrieveAnalyticsRules.js.map +0 -1
- package/lib/operations/retrieveConversationModel.d.ts +0 -17
- package/lib/operations/retrieveConversationModel.d.ts.map +0 -1
- package/lib/operations/retrieveConversationModel.js +0 -24
- package/lib/operations/retrieveConversationModel.js.map +0 -1
- package/lib/operations/retrieveCurationSet.d.ts +0 -45
- package/lib/operations/retrieveCurationSet.d.ts.map +0 -1
- package/lib/operations/retrieveCurationSet.js +0 -52
- package/lib/operations/retrieveCurationSet.js.map +0 -1
- package/lib/operations/retrieveCurationSetItem.d.ts +0 -43
- package/lib/operations/retrieveCurationSetItem.d.ts.map +0 -1
- package/lib/operations/retrieveCurationSetItem.js +0 -53
- package/lib/operations/retrieveCurationSetItem.js.map +0 -1
- package/lib/operations/retrieveCurationSetItems.d.ts +0 -41
- package/lib/operations/retrieveCurationSetItems.d.ts.map +0 -1
- package/lib/operations/retrieveCurationSetItems.js +0 -48
- package/lib/operations/retrieveCurationSetItems.js.map +0 -1
- package/lib/operations/retrieveCurationSets.d.ts +0 -41
- package/lib/operations/retrieveCurationSets.d.ts.map +0 -1
- package/lib/operations/retrieveCurationSets.js +0 -46
- package/lib/operations/retrieveCurationSets.js.map +0 -1
- package/lib/operations/retrieveMetrics.d.ts +0 -13
- package/lib/operations/retrieveMetrics.d.ts.map +0 -1
- package/lib/operations/retrieveMetrics.js +0 -17
- package/lib/operations/retrieveMetrics.js.map +0 -1
- package/lib/operations/retrieveNLSearchModel.d.ts +0 -19
- package/lib/operations/retrieveNLSearchModel.d.ts.map +0 -1
- package/lib/operations/retrieveNLSearchModel.js +0 -26
- package/lib/operations/retrieveNLSearchModel.js.map +0 -1
- package/lib/operations/retrievePreset.d.ts +0 -165
- package/lib/operations/retrievePreset.d.ts.map +0 -1
- package/lib/operations/retrievePreset.js +0 -25
- package/lib/operations/retrievePreset.js.map +0 -1
- package/lib/operations/retrieveStopwordsSet.d.ts +0 -23
- package/lib/operations/retrieveStopwordsSet.d.ts.map +0 -1
- package/lib/operations/retrieveStopwordsSet.js +0 -30
- package/lib/operations/retrieveStopwordsSet.js.map +0 -1
- package/lib/operations/retrieveStopwordsSets.d.ts +0 -19
- package/lib/operations/retrieveStopwordsSets.d.ts.map +0 -1
- package/lib/operations/retrieveStopwordsSets.js +0 -24
- package/lib/operations/retrieveStopwordsSets.js.map +0 -1
- package/lib/operations/retrieveSynonymSet.d.ts +0 -26
- package/lib/operations/retrieveSynonymSet.d.ts.map +0 -1
- package/lib/operations/retrieveSynonymSet.js +0 -33
- package/lib/operations/retrieveSynonymSet.js.map +0 -1
- package/lib/operations/retrieveSynonymSetItem.d.ts +0 -25
- package/lib/operations/retrieveSynonymSetItem.d.ts.map +0 -1
- package/lib/operations/retrieveSynonymSetItem.js +0 -35
- package/lib/operations/retrieveSynonymSetItem.js.map +0 -1
- package/lib/operations/retrieveSynonymSetItems.d.ts +0 -23
- package/lib/operations/retrieveSynonymSetItems.d.ts.map +0 -1
- package/lib/operations/retrieveSynonymSetItems.js +0 -30
- package/lib/operations/retrieveSynonymSetItems.js.map +0 -1
- package/lib/operations/retrieveSynonymSets.d.ts +0 -22
- package/lib/operations/retrieveSynonymSets.d.ts.map +0 -1
- package/lib/operations/retrieveSynonymSets.js +0 -27
- package/lib/operations/retrieveSynonymSets.js.map +0 -1
- package/lib/operations/searchCollection.d.ts +0 -129
- package/lib/operations/searchCollection.d.ts.map +0 -1
- package/lib/operations/searchCollection.js +0 -137
- package/lib/operations/searchCollection.js.map +0 -1
- package/lib/operations/takeSnapshot.d.ts +0 -18
- package/lib/operations/takeSnapshot.d.ts.map +0 -1
- package/lib/operations/takeSnapshot.js +0 -22
- package/lib/operations/takeSnapshot.js.map +0 -1
- package/lib/operations/toggleSlowRequestLog.d.ts +0 -16
- package/lib/operations/toggleSlowRequestLog.d.ts.map +0 -1
- package/lib/operations/toggleSlowRequestLog.js +0 -22
- package/lib/operations/toggleSlowRequestLog.js.map +0 -1
- package/lib/operations/updateCollection.d.ts +0 -95
- package/lib/operations/updateCollection.d.ts.map +0 -1
- package/lib/operations/updateCollection.js +0 -101
- package/lib/operations/updateCollection.js.map +0 -1
- package/lib/operations/updateConversationModel.d.ts +0 -27
- package/lib/operations/updateConversationModel.d.ts.map +0 -1
- package/lib/operations/updateConversationModel.js +0 -35
- package/lib/operations/updateConversationModel.js.map +0 -1
- package/lib/operations/updateDocument.d.ts +0 -21
- package/lib/operations/updateDocument.d.ts.map +0 -1
- package/lib/operations/updateDocument.js +0 -30
- package/lib/operations/updateDocument.js.map +0 -1
- package/lib/operations/updateDocuments.d.ts +0 -20
- package/lib/operations/updateDocuments.d.ts.map +0 -1
- package/lib/operations/updateDocuments.js +0 -25
- package/lib/operations/updateDocuments.js.map +0 -1
- package/lib/operations/updateNLSearchModel.d.ts +0 -19
- package/lib/operations/updateNLSearchModel.d.ts.map +0 -1
- package/lib/operations/updateNLSearchModel.js +0 -26
- package/lib/operations/updateNLSearchModel.js.map +0 -1
- package/lib/operations/upsertAlias.d.ts +0 -21
- package/lib/operations/upsertAlias.d.ts.map +0 -1
- package/lib/operations/upsertAlias.js +0 -26
- package/lib/operations/upsertAlias.js.map +0 -1
- package/lib/operations/upsertAnalyticsRule.d.ts +0 -43
- package/lib/operations/upsertAnalyticsRule.d.ts.map +0 -1
- package/lib/operations/upsertAnalyticsRule.js +0 -55
- package/lib/operations/upsertAnalyticsRule.js.map +0 -1
- package/lib/operations/upsertCurationSet.d.ts +0 -71
- package/lib/operations/upsertCurationSet.d.ts.map +0 -1
- package/lib/operations/upsertCurationSet.js +0 -77
- package/lib/operations/upsertCurationSet.js.map +0 -1
- package/lib/operations/upsertCurationSetItem.d.ts +0 -66
- package/lib/operations/upsertCurationSetItem.d.ts.map +0 -1
- package/lib/operations/upsertCurationSetItem.js +0 -76
- package/lib/operations/upsertCurationSetItem.js.map +0 -1
- package/lib/operations/upsertPreset.d.ts +0 -311
- package/lib/operations/upsertPreset.d.ts.map +0 -1
- package/lib/operations/upsertPreset.js +0 -26
- package/lib/operations/upsertPreset.js.map +0 -1
- package/lib/operations/upsertStopwordsSet.d.ts +0 -23
- package/lib/operations/upsertStopwordsSet.d.ts.map +0 -1
- package/lib/operations/upsertStopwordsSet.js +0 -30
- package/lib/operations/upsertStopwordsSet.js.map +0 -1
- package/lib/operations/upsertSynonymSet.d.ts +0 -33
- package/lib/operations/upsertSynonymSet.d.ts.map +0 -1
- package/lib/operations/upsertSynonymSet.js +0 -38
- package/lib/operations/upsertSynonymSet.js.map +0 -1
- package/lib/operations/upsertSynonymSetItem.d.ts +0 -29
- package/lib/operations/upsertSynonymSetItem.d.ts.map +0 -1
- package/lib/operations/upsertSynonymSetItem.js +0 -39
- package/lib/operations/upsertSynonymSetItem.js.map +0 -1
- package/lib/operations/vote.d.ts +0 -15
- package/lib/operations/vote.d.ts.map +0 -1
- package/lib/operations/vote.js +0 -18
- package/lib/operations/vote.js.map +0 -1
- package/lib/sensitive.d.ts +0 -5
- package/lib/sensitive.d.ts.map +0 -1
- package/lib/sensitive.js +0 -5
- package/lib/sensitive.js.map +0 -1
- package/src/category.ts +0 -4
- package/src/client.ts +0 -71
- package/src/operations/clearCache.ts +0 -28
- package/src/operations/compactDb.ts +0 -28
- package/src/operations/createAnalyticsEvent.ts +0 -52
- package/src/operations/createAnalyticsRule.ts +0 -117
- package/src/operations/createCollection.ts +0 -228
- package/src/operations/createConversationModel.ts +0 -54
- package/src/operations/createKey.ts +0 -54
- package/src/operations/createNLSearchModel.ts +0 -74
- package/src/operations/debug.ts +0 -26
- package/src/operations/deleteAlias.ts +0 -36
- package/src/operations/deleteAnalyticsRule.ts +0 -71
- package/src/operations/deleteCollection.ts +0 -136
- package/src/operations/deleteConversationModel.ts +0 -36
- package/src/operations/deleteCurationSet.ts +0 -37
- package/src/operations/deleteCurationSetItem.ts +0 -44
- package/src/operations/deleteDocument.ts +0 -39
- package/src/operations/deleteDocuments.ts +0 -38
- package/src/operations/deleteKey.ts +0 -34
- package/src/operations/deleteNLSearchModel.ts +0 -38
- package/src/operations/deletePreset.ts +0 -36
- package/src/operations/deleteStopwordsSet.ts +0 -38
- package/src/operations/deleteSynonymSet.ts +0 -36
- package/src/operations/deleteSynonymSetItem.ts +0 -44
- package/src/operations/exportDocuments.ts +0 -38
- package/src/operations/flushAnalytics.ts +0 -28
- package/src/operations/getAlias.ts +0 -38
- package/src/operations/getAliases.ts +0 -33
- package/src/operations/getAnalyticsEvents.ts +0 -63
- package/src/operations/getAnalyticsStatus.ts +0 -42
- package/src/operations/getCollection.ts +0 -136
- package/src/operations/getCollections.ts +0 -134
- package/src/operations/getDocument.ts +0 -39
- package/src/operations/getKey.ts +0 -48
- package/src/operations/getKeys.ts +0 -44
- package/src/operations/getSchemaChanges.ts +0 -34
- package/src/operations/getStemmingDictionary.ts +0 -45
- package/src/operations/health.ts +0 -26
- package/src/operations/importDocuments.ts +0 -38
- package/src/operations/importStemmingDictionary.ts +0 -34
- package/src/operations/index.ts +0 -79
- package/src/operations/indexDocument.ts +0 -39
- package/src/operations/listStemmingDictionaries.ts +0 -30
- package/src/operations/multiSearch.ts +0 -476
- package/src/operations/retrieveAPIStats.ts +0 -52
- package/src/operations/retrieveAllConversationModels.ts +0 -31
- package/src/operations/retrieveAllNLSearchModels.ts +0 -30
- package/src/operations/retrieveAllPresets.ts +0 -188
- package/src/operations/retrieveAnalyticsRule.ts +0 -71
- package/src/operations/retrieveAnalyticsRules.ts +0 -71
- package/src/operations/retrieveConversationModel.ts +0 -36
- package/src/operations/retrieveCurationSet.ts +0 -95
- package/src/operations/retrieveCurationSetItem.ts +0 -91
- package/src/operations/retrieveCurationSetItems.ts +0 -87
- package/src/operations/retrieveCurationSets.ts +0 -89
- package/src/operations/retrieveMetrics.ts +0 -25
- package/src/operations/retrieveNLSearchModel.ts +0 -38
- package/src/operations/retrievePreset.ts +0 -185
- package/src/operations/retrieveStopwordsSet.ts +0 -42
- package/src/operations/retrieveStopwordsSets.ts +0 -36
- package/src/operations/retrieveSynonymSet.ts +0 -54
- package/src/operations/retrieveSynonymSetItem.ts +0 -52
- package/src/operations/retrieveSynonymSetItems.ts +0 -48
- package/src/operations/retrieveSynonymSets.ts +0 -48
- package/src/operations/searchCollection.ts +0 -309
- package/src/operations/takeSnapshot.ts +0 -34
- package/src/operations/toggleSlowRequestLog.ts +0 -34
- package/src/operations/updateCollection.ts +0 -200
- package/src/operations/updateConversationModel.ts +0 -56
- package/src/operations/updateDocument.ts +0 -42
- package/src/operations/updateDocuments.ts +0 -38
- package/src/operations/updateNLSearchModel.ts +0 -38
- package/src/operations/upsertAlias.ts +0 -40
- package/src/operations/upsertAnalyticsRule.ts +0 -95
- package/src/operations/upsertCurationSet.ts +0 -151
- package/src/operations/upsertCurationSetItem.ts +0 -140
- package/src/operations/upsertPreset.ts +0 -334
- package/src/operations/upsertStopwordsSet.ts +0 -46
- package/src/operations/upsertSynonymSet.ts +0 -68
- package/src/operations/upsertSynonymSetItem.ts +0 -60
- package/src/operations/vote.ts +0 -28
- package/src/sensitive.ts +0 -4
|
@@ -0,0 +1,2829 @@
|
|
|
1
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
2
|
+
import * as API from "@distilled.cloud/core/api";
|
|
3
|
+
import { type TypesenseOpError, type TypesenseOpContext } from "../protocol.ts";
|
|
4
|
+
export type { TypesenseOpError, TypesenseOpContext };
|
|
5
|
+
declare const BadRequest_base: S.Class<BadRequest, S.TaggedStruct<"BadRequest", {
|
|
6
|
+
readonly code: any;
|
|
7
|
+
readonly message: any;
|
|
8
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
9
|
+
"@distilled.cloud/error/categories": {
|
|
10
|
+
BadRequestError: true;
|
|
11
|
+
};
|
|
12
|
+
});
|
|
13
|
+
export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
|
|
14
|
+
}
|
|
15
|
+
declare const Conflict_base: S.Class<Conflict, S.TaggedStruct<"Conflict", {
|
|
16
|
+
readonly code: any;
|
|
17
|
+
readonly message: any;
|
|
18
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
19
|
+
"@distilled.cloud/error/categories": {
|
|
20
|
+
ConflictError: true;
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
export declare class Conflict extends /*@__PURE__*/ Conflict_base {
|
|
24
|
+
}
|
|
25
|
+
declare const NotFound_base: S.Class<NotFound, S.TaggedStruct<"NotFound", {
|
|
26
|
+
readonly code: any;
|
|
27
|
+
readonly message: any;
|
|
28
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
29
|
+
"@distilled.cloud/error/categories": {
|
|
30
|
+
BadRequestError: true;
|
|
31
|
+
};
|
|
32
|
+
});
|
|
33
|
+
export declare class NotFound extends /*@__PURE__*/ NotFound_base {
|
|
34
|
+
}
|
|
35
|
+
export interface ClearCacheRequest {
|
|
36
|
+
}
|
|
37
|
+
export declare const ClearCacheRequest: S.Schema<ClearCacheRequest>;
|
|
38
|
+
export interface SuccessStatus {
|
|
39
|
+
success: boolean;
|
|
40
|
+
}
|
|
41
|
+
export declare const SuccessStatus: S.Schema<SuccessStatus>;
|
|
42
|
+
export interface CompactDbRequest {
|
|
43
|
+
}
|
|
44
|
+
export declare const CompactDbRequest: S.Schema<CompactDbRequest>;
|
|
45
|
+
export type CreateAnalyticsEventRequestDataDocIdsList = Array<string>;
|
|
46
|
+
export declare const CreateAnalyticsEventRequestDataDocIdsList: S.Schema<CreateAnalyticsEventRequestDataDocIdsList>;
|
|
47
|
+
/** Event payload */
|
|
48
|
+
export interface CreateAnalyticsEventRequestData {
|
|
49
|
+
user_id?: string;
|
|
50
|
+
doc_id?: string;
|
|
51
|
+
doc_ids?: CreateAnalyticsEventRequestDataDocIdsList;
|
|
52
|
+
q?: string;
|
|
53
|
+
analytics_tag?: string;
|
|
54
|
+
}
|
|
55
|
+
export declare const CreateAnalyticsEventRequestData: S.Schema<CreateAnalyticsEventRequestData>;
|
|
56
|
+
export interface CreateAnalyticsEventRequest {
|
|
57
|
+
/** Name of the analytics rule this event corresponds to */
|
|
58
|
+
name: string;
|
|
59
|
+
/** Type of event (e.g., click, conversion, query, visit) */
|
|
60
|
+
event_type: string;
|
|
61
|
+
/** Event payload */
|
|
62
|
+
data: CreateAnalyticsEventRequestData;
|
|
63
|
+
}
|
|
64
|
+
export declare const CreateAnalyticsEventRequest: S.Schema<CreateAnalyticsEventRequest>;
|
|
65
|
+
export interface AnalyticsEventCreateResponse {
|
|
66
|
+
ok: boolean;
|
|
67
|
+
}
|
|
68
|
+
export declare const AnalyticsEventCreateResponse: S.Schema<AnalyticsEventCreateResponse>;
|
|
69
|
+
export type AnalyticsRuleType = "popular_queries" | "nohits_queries" | "counter" | "log";
|
|
70
|
+
export declare const AnalyticsRuleType: any;
|
|
71
|
+
export type AnalyticsRuleCreateParamsMetaFieldsList = Array<string>;
|
|
72
|
+
export declare const AnalyticsRuleCreateParamsMetaFieldsList: S.Schema<AnalyticsRuleCreateParamsMetaFieldsList>;
|
|
73
|
+
export interface AnalyticsRuleCreateParams {
|
|
74
|
+
destination_collection?: string;
|
|
75
|
+
limit?: number;
|
|
76
|
+
capture_search_requests?: boolean;
|
|
77
|
+
meta_fields?: AnalyticsRuleCreateParamsMetaFieldsList;
|
|
78
|
+
expand_query?: boolean;
|
|
79
|
+
counter_field?: string;
|
|
80
|
+
weight?: number;
|
|
81
|
+
}
|
|
82
|
+
export declare const AnalyticsRuleCreateParams: S.Schema<AnalyticsRuleCreateParams>;
|
|
83
|
+
export interface AnalyticsRuleCreate {
|
|
84
|
+
name: string;
|
|
85
|
+
type: AnalyticsRuleType | (string & {});
|
|
86
|
+
collection: string;
|
|
87
|
+
event_type: string;
|
|
88
|
+
rule_tag?: string;
|
|
89
|
+
params?: AnalyticsRuleCreateParams;
|
|
90
|
+
}
|
|
91
|
+
export declare const AnalyticsRuleCreate: S.Schema<AnalyticsRuleCreate>;
|
|
92
|
+
export type CreateAnalyticsRuleRequestBodyCase1List = Array<AnalyticsRuleCreate>;
|
|
93
|
+
export declare const CreateAnalyticsRuleRequestBodyCase1List: S.Schema<CreateAnalyticsRuleRequestBodyCase1List>;
|
|
94
|
+
export type CreateAnalyticsRuleRequestBody = AnalyticsRuleCreate | CreateAnalyticsRuleRequestBodyCase1List;
|
|
95
|
+
export declare const CreateAnalyticsRuleRequestBody: any;
|
|
96
|
+
export interface CreateAnalyticsRuleRequest {
|
|
97
|
+
body: CreateAnalyticsRuleRequestBody;
|
|
98
|
+
}
|
|
99
|
+
export declare const CreateAnalyticsRuleRequest: S.Schema<CreateAnalyticsRuleRequest>;
|
|
100
|
+
export type AnalyticsRuleParamsMetaFieldsList = Array<string>;
|
|
101
|
+
export declare const AnalyticsRuleParamsMetaFieldsList: S.Schema<AnalyticsRuleParamsMetaFieldsList>;
|
|
102
|
+
export interface AnalyticsRuleParams {
|
|
103
|
+
destination_collection?: string;
|
|
104
|
+
limit?: number;
|
|
105
|
+
capture_search_requests?: boolean;
|
|
106
|
+
meta_fields?: AnalyticsRuleParamsMetaFieldsList;
|
|
107
|
+
expand_query?: boolean;
|
|
108
|
+
counter_field?: string;
|
|
109
|
+
weight?: number;
|
|
110
|
+
}
|
|
111
|
+
export declare const AnalyticsRuleParams: S.Schema<AnalyticsRuleParams>;
|
|
112
|
+
export interface AnalyticsRule {
|
|
113
|
+
name: string;
|
|
114
|
+
type: AnalyticsRuleType;
|
|
115
|
+
collection: string;
|
|
116
|
+
event_type: string;
|
|
117
|
+
rule_tag?: string;
|
|
118
|
+
params?: AnalyticsRuleParams;
|
|
119
|
+
}
|
|
120
|
+
export declare const AnalyticsRule: S.Schema<AnalyticsRule>;
|
|
121
|
+
export interface CreateAnalyticsRuleResponseBodyCase1ItemCase1 {
|
|
122
|
+
error?: string;
|
|
123
|
+
}
|
|
124
|
+
export declare const CreateAnalyticsRuleResponseBodyCase1ItemCase1: S.Schema<CreateAnalyticsRuleResponseBodyCase1ItemCase1>;
|
|
125
|
+
export type CreateAnalyticsRuleResponseBodyCase1Item = AnalyticsRule | CreateAnalyticsRuleResponseBodyCase1ItemCase1;
|
|
126
|
+
export declare const CreateAnalyticsRuleResponseBodyCase1Item: any;
|
|
127
|
+
export type CreateAnalyticsRuleResponseBodyCase1List = Array<CreateAnalyticsRuleResponseBodyCase1Item>;
|
|
128
|
+
export declare const CreateAnalyticsRuleResponseBodyCase1List: S.Schema<CreateAnalyticsRuleResponseBodyCase1List>;
|
|
129
|
+
export type CreateAnalyticsRuleResponseBody = AnalyticsRule | CreateAnalyticsRuleResponseBodyCase1List;
|
|
130
|
+
export declare const CreateAnalyticsRuleResponseBody: any;
|
|
131
|
+
export type CreateAnalyticsRuleResponse = CreateAnalyticsRuleResponseBody;
|
|
132
|
+
export declare const CreateAnalyticsRuleResponse: S.Schema<CreateAnalyticsRuleResponse>;
|
|
133
|
+
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
134
|
+
export type FieldTokenSeparatorsList = Array<string>;
|
|
135
|
+
export declare const FieldTokenSeparatorsList: S.Schema<FieldTokenSeparatorsList>;
|
|
136
|
+
/** List of symbols or special characters to be indexed. */
|
|
137
|
+
export type FieldSymbolsToIndexList = Array<string>;
|
|
138
|
+
export declare const FieldSymbolsToIndexList: S.Schema<FieldSymbolsToIndexList>;
|
|
139
|
+
export type FieldEmbedFromList = Array<string>;
|
|
140
|
+
export declare const FieldEmbedFromList: S.Schema<FieldEmbedFromList>;
|
|
141
|
+
export interface FieldEmbedModelConfig {
|
|
142
|
+
model_name: string;
|
|
143
|
+
api_key?: string | import("effect/Redacted").Redacted<string>;
|
|
144
|
+
url?: string;
|
|
145
|
+
access_token?: string | import("effect/Redacted").Redacted<string>;
|
|
146
|
+
refresh_token?: string | import("effect/Redacted").Redacted<string>;
|
|
147
|
+
client_id?: string;
|
|
148
|
+
client_secret?: string | import("effect/Redacted").Redacted<string>;
|
|
149
|
+
project_id?: string;
|
|
150
|
+
indexing_prefix?: string;
|
|
151
|
+
query_prefix?: string;
|
|
152
|
+
}
|
|
153
|
+
export declare const FieldEmbedModelConfig: S.Schema<FieldEmbedModelConfig>;
|
|
154
|
+
export interface FieldEmbed {
|
|
155
|
+
from: FieldEmbedFromList;
|
|
156
|
+
model_config: FieldEmbedModelConfig;
|
|
157
|
+
}
|
|
158
|
+
export declare const FieldEmbed: S.Schema<FieldEmbed>;
|
|
159
|
+
export interface Field {
|
|
160
|
+
name: string;
|
|
161
|
+
type: string;
|
|
162
|
+
optional?: boolean;
|
|
163
|
+
facet?: boolean;
|
|
164
|
+
index?: boolean;
|
|
165
|
+
locale?: string;
|
|
166
|
+
sort?: boolean;
|
|
167
|
+
infix?: boolean;
|
|
168
|
+
/** Name of a field in another collection that should be linked to this collection so that it can be joined during query. */
|
|
169
|
+
reference?: string;
|
|
170
|
+
/** Allow documents to be indexed successfully even when the referenced document doesn't exist yet. */
|
|
171
|
+
async_reference?: boolean;
|
|
172
|
+
num_dim?: number;
|
|
173
|
+
drop?: boolean;
|
|
174
|
+
/** When set to false, the field value will not be stored on disk. Default: true. */
|
|
175
|
+
store?: boolean;
|
|
176
|
+
/** The distance metric to be used for vector search. Default: `cosine`. You can also use `ip` for inner product. */
|
|
177
|
+
vec_dist?: string;
|
|
178
|
+
/** Enables an index optimized for range filtering on numerical fields (e.g. rating:>3.5). Default: false. */
|
|
179
|
+
range_index?: boolean;
|
|
180
|
+
/** Values are stemmed before indexing in-memory. Default: false. */
|
|
181
|
+
stem?: boolean;
|
|
182
|
+
/** Name of the stemming dictionary to use for this field */
|
|
183
|
+
stem_dictionary?: string;
|
|
184
|
+
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
185
|
+
token_separators?: FieldTokenSeparatorsList;
|
|
186
|
+
/** List of symbols or special characters to be indexed. */
|
|
187
|
+
symbols_to_index?: FieldSymbolsToIndexList;
|
|
188
|
+
embed?: FieldEmbed;
|
|
189
|
+
}
|
|
190
|
+
export declare const Field: S.Schema<Field>;
|
|
191
|
+
/** A list of fields for querying, filtering and faceting */
|
|
192
|
+
export type CreateCollectionRequestFieldsList = Array<Field>;
|
|
193
|
+
export declare const CreateCollectionRequestFieldsList: S.Schema<CreateCollectionRequestFieldsList>;
|
|
194
|
+
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
195
|
+
export type CreateCollectionRequestTokenSeparatorsList = Array<string>;
|
|
196
|
+
export declare const CreateCollectionRequestTokenSeparatorsList: S.Schema<CreateCollectionRequestTokenSeparatorsList>;
|
|
197
|
+
/** List of synonym set names to associate with this collection */
|
|
198
|
+
export type CreateCollectionRequestSynonymSetsList = Array<string>;
|
|
199
|
+
export declare const CreateCollectionRequestSynonymSetsList: S.Schema<CreateCollectionRequestSynonymSetsList>;
|
|
200
|
+
/** List of symbols or special characters to be indexed. */
|
|
201
|
+
export type CreateCollectionRequestSymbolsToIndexList = Array<string>;
|
|
202
|
+
export declare const CreateCollectionRequestSymbolsToIndexList: S.Schema<CreateCollectionRequestSymbolsToIndexList>;
|
|
203
|
+
/** Configuration for the voice query model */
|
|
204
|
+
export interface VoiceQueryModelCollectionConfig {
|
|
205
|
+
model_name?: string;
|
|
206
|
+
}
|
|
207
|
+
export declare const VoiceQueryModelCollectionConfig: S.Schema<VoiceQueryModelCollectionConfig>;
|
|
208
|
+
export interface CreateCollectionRequest {
|
|
209
|
+
/** Name of the collection */
|
|
210
|
+
name: string;
|
|
211
|
+
/** A list of fields for querying, filtering and faceting */
|
|
212
|
+
fields: CreateCollectionRequestFieldsList;
|
|
213
|
+
/** The name of an int32 / float field that determines the order in which the search results are ranked when a sort_by clause is not provided during searching. This field must indicate some kind of popularity. */
|
|
214
|
+
default_sorting_field?: string;
|
|
215
|
+
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
216
|
+
token_separators?: CreateCollectionRequestTokenSeparatorsList;
|
|
217
|
+
/** List of synonym set names to associate with this collection */
|
|
218
|
+
synonym_sets?: CreateCollectionRequestSynonymSetsList;
|
|
219
|
+
/** Enables experimental support at a collection level for nested object or object array fields. This field is only available if the Typesense server is version `0.24.0.rcn34` or later. */
|
|
220
|
+
enable_nested_fields?: boolean;
|
|
221
|
+
/** List of symbols or special characters to be indexed. */
|
|
222
|
+
symbols_to_index?: CreateCollectionRequestSymbolsToIndexList;
|
|
223
|
+
voice_query_model?: VoiceQueryModelCollectionConfig;
|
|
224
|
+
/** Optional details about the collection, e.g., when it was created, who created it etc. */
|
|
225
|
+
metadata?: unknown;
|
|
226
|
+
}
|
|
227
|
+
export declare const CreateCollectionRequest: S.Schema<CreateCollectionRequest>;
|
|
228
|
+
/** A list of fields for querying, filtering and faceting */
|
|
229
|
+
export type CreateCollectionResponseFieldsList = Array<Field>;
|
|
230
|
+
export declare const CreateCollectionResponseFieldsList: S.Schema<CreateCollectionResponseFieldsList>;
|
|
231
|
+
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
232
|
+
export type CreateCollectionResponseTokenSeparatorsList = Array<string>;
|
|
233
|
+
export declare const CreateCollectionResponseTokenSeparatorsList: S.Schema<CreateCollectionResponseTokenSeparatorsList>;
|
|
234
|
+
/** List of synonym set names to associate with this collection */
|
|
235
|
+
export type CreateCollectionResponseSynonymSetsList = Array<string>;
|
|
236
|
+
export declare const CreateCollectionResponseSynonymSetsList: S.Schema<CreateCollectionResponseSynonymSetsList>;
|
|
237
|
+
/** List of symbols or special characters to be indexed. */
|
|
238
|
+
export type CreateCollectionResponseSymbolsToIndexList = Array<string>;
|
|
239
|
+
export declare const CreateCollectionResponseSymbolsToIndexList: S.Schema<CreateCollectionResponseSymbolsToIndexList>;
|
|
240
|
+
export interface CreateCollectionResponse {
|
|
241
|
+
/** Name of the collection */
|
|
242
|
+
name: string;
|
|
243
|
+
/** A list of fields for querying, filtering and faceting */
|
|
244
|
+
fields: CreateCollectionResponseFieldsList;
|
|
245
|
+
/** The name of an int32 / float field that determines the order in which the search results are ranked when a sort_by clause is not provided during searching. This field must indicate some kind of popularity. */
|
|
246
|
+
default_sorting_field?: string;
|
|
247
|
+
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
248
|
+
token_separators?: CreateCollectionResponseTokenSeparatorsList;
|
|
249
|
+
/** List of synonym set names to associate with this collection */
|
|
250
|
+
synonym_sets?: CreateCollectionResponseSynonymSetsList;
|
|
251
|
+
/** Enables experimental support at a collection level for nested object or object array fields. This field is only available if the Typesense server is version `0.24.0.rcn34` or later. */
|
|
252
|
+
enable_nested_fields?: boolean;
|
|
253
|
+
/** List of symbols or special characters to be indexed. */
|
|
254
|
+
symbols_to_index?: CreateCollectionResponseSymbolsToIndexList;
|
|
255
|
+
voice_query_model?: VoiceQueryModelCollectionConfig;
|
|
256
|
+
/** Optional details about the collection, e.g., when it was created, who created it etc. */
|
|
257
|
+
metadata?: unknown;
|
|
258
|
+
/** Number of documents in the collection */
|
|
259
|
+
num_documents: number;
|
|
260
|
+
/** Timestamp of when the collection was created (Unix epoch in seconds) */
|
|
261
|
+
created_at: number;
|
|
262
|
+
}
|
|
263
|
+
export declare const CreateCollectionResponse: S.Schema<CreateCollectionResponse>;
|
|
264
|
+
export interface CreateConversationModelRequest {
|
|
265
|
+
/** An explicit id for the model, otherwise the API will return a response with an auto-generated conversation model id. */
|
|
266
|
+
id?: string;
|
|
267
|
+
/** Name of the LLM model offered by OpenAI, Cloudflare or vLLM */
|
|
268
|
+
model_name: string;
|
|
269
|
+
/** The LLM service's API Key */
|
|
270
|
+
api_key?: string | import("effect/Redacted").Redacted<string>;
|
|
271
|
+
/** Typesense collection that stores the historical conversations */
|
|
272
|
+
history_collection: string;
|
|
273
|
+
/** LLM service's account ID (only applicable for Cloudflare) */
|
|
274
|
+
account_id?: string;
|
|
275
|
+
/** The system prompt that contains special instructions to the LLM */
|
|
276
|
+
system_prompt?: string;
|
|
277
|
+
/** Time interval in seconds after which the messages would be deleted. Default: 86400 (24 hours) */
|
|
278
|
+
ttl?: number;
|
|
279
|
+
/** The maximum number of bytes to send to the LLM in every API call. Consult the LLM's documentation on the number of bytes supported in the context window. */
|
|
280
|
+
max_bytes: number;
|
|
281
|
+
/** URL of vLLM service */
|
|
282
|
+
vllm_url?: string;
|
|
283
|
+
}
|
|
284
|
+
export declare const CreateConversationModelRequest: S.Schema<CreateConversationModelRequest>;
|
|
285
|
+
export interface CreateConversationModelResponse {
|
|
286
|
+
/** An explicit id for the model, otherwise the API will return a response with an auto-generated conversation model id. */
|
|
287
|
+
id: string;
|
|
288
|
+
/** Name of the LLM model offered by OpenAI, Cloudflare or vLLM */
|
|
289
|
+
model_name: string;
|
|
290
|
+
/** The LLM service's API Key */
|
|
291
|
+
api_key?: string | import("effect/Redacted").Redacted<string>;
|
|
292
|
+
/** Typesense collection that stores the historical conversations */
|
|
293
|
+
history_collection: string;
|
|
294
|
+
/** LLM service's account ID (only applicable for Cloudflare) */
|
|
295
|
+
account_id?: string;
|
|
296
|
+
/** The system prompt that contains special instructions to the LLM */
|
|
297
|
+
system_prompt?: string;
|
|
298
|
+
/** Time interval in seconds after which the messages would be deleted. Default: 86400 (24 hours) */
|
|
299
|
+
ttl?: number;
|
|
300
|
+
/** The maximum number of bytes to send to the LLM in every API call. Consult the LLM's documentation on the number of bytes supported in the context window. */
|
|
301
|
+
max_bytes: number;
|
|
302
|
+
/** URL of vLLM service */
|
|
303
|
+
vllm_url?: string;
|
|
304
|
+
}
|
|
305
|
+
export declare const CreateConversationModelResponse: S.Schema<CreateConversationModelResponse>;
|
|
306
|
+
export type CreateKeyRequestActionsList = Array<string>;
|
|
307
|
+
export declare const CreateKeyRequestActionsList: S.Schema<CreateKeyRequestActionsList>;
|
|
308
|
+
export type CreateKeyRequestCollectionsList = Array<string>;
|
|
309
|
+
export declare const CreateKeyRequestCollectionsList: S.Schema<CreateKeyRequestCollectionsList>;
|
|
310
|
+
export interface CreateKeyRequest {
|
|
311
|
+
value?: string;
|
|
312
|
+
description: string;
|
|
313
|
+
actions: CreateKeyRequestActionsList;
|
|
314
|
+
collections: CreateKeyRequestCollectionsList;
|
|
315
|
+
expires_at?: number;
|
|
316
|
+
}
|
|
317
|
+
export declare const CreateKeyRequest: S.Schema<CreateKeyRequest>;
|
|
318
|
+
export type CreateKeyResponseActionsList = Array<string>;
|
|
319
|
+
export declare const CreateKeyResponseActionsList: S.Schema<CreateKeyResponseActionsList>;
|
|
320
|
+
export type CreateKeyResponseCollectionsList = Array<string>;
|
|
321
|
+
export declare const CreateKeyResponseCollectionsList: S.Schema<CreateKeyResponseCollectionsList>;
|
|
322
|
+
export interface CreateKeyResponse {
|
|
323
|
+
value?: string;
|
|
324
|
+
description: string;
|
|
325
|
+
actions: CreateKeyResponseActionsList;
|
|
326
|
+
collections: CreateKeyResponseCollectionsList;
|
|
327
|
+
expires_at?: number;
|
|
328
|
+
id?: number;
|
|
329
|
+
value_prefix?: string;
|
|
330
|
+
}
|
|
331
|
+
export declare const CreateKeyResponse: S.Schema<CreateKeyResponse>;
|
|
332
|
+
/** Stop sequences for the NL model (Google-specific) */
|
|
333
|
+
export type CreateNLSearchModelRequestStopSequencesList = Array<string>;
|
|
334
|
+
export declare const CreateNLSearchModelRequestStopSequencesList: S.Schema<CreateNLSearchModelRequestStopSequencesList>;
|
|
335
|
+
export interface CreateNLSearchModelRequest {
|
|
336
|
+
/** Name of the NL model to use */
|
|
337
|
+
model_name?: string;
|
|
338
|
+
/** API key for the NL model service */
|
|
339
|
+
api_key?: string | import("effect/Redacted").Redacted<string>;
|
|
340
|
+
/** Custom API URL for the NL model service */
|
|
341
|
+
api_url?: string;
|
|
342
|
+
/** Maximum number of bytes to process */
|
|
343
|
+
max_bytes?: number;
|
|
344
|
+
/** Temperature parameter for the NL model */
|
|
345
|
+
temperature?: number;
|
|
346
|
+
/** System prompt for the NL model */
|
|
347
|
+
system_prompt?: string;
|
|
348
|
+
/** Top-p parameter for the NL model (Google-specific) */
|
|
349
|
+
top_p?: number;
|
|
350
|
+
/** Top-k parameter for the NL model (Google-specific) */
|
|
351
|
+
top_k?: number;
|
|
352
|
+
/** Stop sequences for the NL model (Google-specific) */
|
|
353
|
+
stop_sequences?: CreateNLSearchModelRequestStopSequencesList;
|
|
354
|
+
/** API version for the NL model service */
|
|
355
|
+
api_version?: string;
|
|
356
|
+
/** Project ID for GCP Vertex AI */
|
|
357
|
+
project_id?: string;
|
|
358
|
+
/** Access token for GCP Vertex AI */
|
|
359
|
+
access_token?: string | import("effect/Redacted").Redacted<string>;
|
|
360
|
+
/** Refresh token for GCP Vertex AI */
|
|
361
|
+
refresh_token?: string | import("effect/Redacted").Redacted<string>;
|
|
362
|
+
/** Client ID for GCP Vertex AI */
|
|
363
|
+
client_id?: string;
|
|
364
|
+
/** Client secret for GCP Vertex AI */
|
|
365
|
+
client_secret?: string | import("effect/Redacted").Redacted<string>;
|
|
366
|
+
/** Region for GCP Vertex AI */
|
|
367
|
+
region?: string;
|
|
368
|
+
/** Maximum output tokens for GCP Vertex AI */
|
|
369
|
+
max_output_tokens?: number;
|
|
370
|
+
/** Account ID for Cloudflare-specific models */
|
|
371
|
+
account_id?: string;
|
|
372
|
+
/** Optional ID for the NL search model */
|
|
373
|
+
id?: string;
|
|
374
|
+
}
|
|
375
|
+
export declare const CreateNLSearchModelRequest: S.Schema<CreateNLSearchModelRequest>;
|
|
376
|
+
/** Stop sequences for the NL model (Google-specific) */
|
|
377
|
+
export type CreateNLSearchModelResponseStopSequencesList = Array<string>;
|
|
378
|
+
export declare const CreateNLSearchModelResponseStopSequencesList: S.Schema<CreateNLSearchModelResponseStopSequencesList>;
|
|
379
|
+
export interface CreateNLSearchModelResponse {
|
|
380
|
+
/** Name of the NL model to use */
|
|
381
|
+
model_name?: string;
|
|
382
|
+
/** API key for the NL model service */
|
|
383
|
+
api_key?: string | import("effect/Redacted").Redacted<string>;
|
|
384
|
+
/** Custom API URL for the NL model service */
|
|
385
|
+
api_url?: string;
|
|
386
|
+
/** Maximum number of bytes to process */
|
|
387
|
+
max_bytes?: number;
|
|
388
|
+
/** Temperature parameter for the NL model */
|
|
389
|
+
temperature?: number;
|
|
390
|
+
/** System prompt for the NL model */
|
|
391
|
+
system_prompt?: string;
|
|
392
|
+
/** Top-p parameter for the NL model (Google-specific) */
|
|
393
|
+
top_p?: number;
|
|
394
|
+
/** Top-k parameter for the NL model (Google-specific) */
|
|
395
|
+
top_k?: number;
|
|
396
|
+
/** Stop sequences for the NL model (Google-specific) */
|
|
397
|
+
stop_sequences?: CreateNLSearchModelResponseStopSequencesList;
|
|
398
|
+
/** API version for the NL model service */
|
|
399
|
+
api_version?: string;
|
|
400
|
+
/** Project ID for GCP Vertex AI */
|
|
401
|
+
project_id?: string;
|
|
402
|
+
/** Access token for GCP Vertex AI */
|
|
403
|
+
access_token?: string | import("effect/Redacted").Redacted<string>;
|
|
404
|
+
/** Refresh token for GCP Vertex AI */
|
|
405
|
+
refresh_token?: string | import("effect/Redacted").Redacted<string>;
|
|
406
|
+
/** Client ID for GCP Vertex AI */
|
|
407
|
+
client_id?: string;
|
|
408
|
+
/** Client secret for GCP Vertex AI */
|
|
409
|
+
client_secret?: string | import("effect/Redacted").Redacted<string>;
|
|
410
|
+
/** Region for GCP Vertex AI */
|
|
411
|
+
region?: string;
|
|
412
|
+
/** Maximum output tokens for GCP Vertex AI */
|
|
413
|
+
max_output_tokens?: number;
|
|
414
|
+
/** Account ID for Cloudflare-specific models */
|
|
415
|
+
account_id?: string;
|
|
416
|
+
/** Optional ID for the NL search model */
|
|
417
|
+
id: string;
|
|
418
|
+
}
|
|
419
|
+
export declare const CreateNLSearchModelResponse: S.Schema<CreateNLSearchModelResponse>;
|
|
420
|
+
export interface DebugRequest {
|
|
421
|
+
}
|
|
422
|
+
export declare const DebugRequest: S.Schema<DebugRequest>;
|
|
423
|
+
export interface DebugResponse {
|
|
424
|
+
version?: string;
|
|
425
|
+
}
|
|
426
|
+
export declare const DebugResponse: S.Schema<DebugResponse>;
|
|
427
|
+
export interface DeleteAliasRequest {
|
|
428
|
+
/** The name of the alias to delete */
|
|
429
|
+
aliasName: string;
|
|
430
|
+
}
|
|
431
|
+
export declare const DeleteAliasRequest: S.Schema<DeleteAliasRequest>;
|
|
432
|
+
export interface CollectionAlias {
|
|
433
|
+
/** Name of the collection alias */
|
|
434
|
+
name: string;
|
|
435
|
+
/** Name of the collection the alias mapped to */
|
|
436
|
+
collection_name: string;
|
|
437
|
+
}
|
|
438
|
+
export declare const CollectionAlias: S.Schema<CollectionAlias>;
|
|
439
|
+
export interface DeleteAnalyticsRuleRequest {
|
|
440
|
+
/** The name of the analytics rule to delete */
|
|
441
|
+
ruleName: string;
|
|
442
|
+
}
|
|
443
|
+
export declare const DeleteAnalyticsRuleRequest: S.Schema<DeleteAnalyticsRuleRequest>;
|
|
444
|
+
export type DeleteAnalyticsRuleResponseParamsMetaFieldsList = Array<string>;
|
|
445
|
+
export declare const DeleteAnalyticsRuleResponseParamsMetaFieldsList: S.Schema<DeleteAnalyticsRuleResponseParamsMetaFieldsList>;
|
|
446
|
+
export interface DeleteAnalyticsRuleResponseParams {
|
|
447
|
+
destination_collection?: string;
|
|
448
|
+
limit?: number;
|
|
449
|
+
capture_search_requests?: boolean;
|
|
450
|
+
meta_fields?: DeleteAnalyticsRuleResponseParamsMetaFieldsList;
|
|
451
|
+
expand_query?: boolean;
|
|
452
|
+
counter_field?: string;
|
|
453
|
+
weight?: number;
|
|
454
|
+
}
|
|
455
|
+
export declare const DeleteAnalyticsRuleResponseParams: S.Schema<DeleteAnalyticsRuleResponseParams>;
|
|
456
|
+
export interface DeleteAnalyticsRuleResponse {
|
|
457
|
+
name: string;
|
|
458
|
+
type: AnalyticsRuleType;
|
|
459
|
+
collection: string;
|
|
460
|
+
event_type: string;
|
|
461
|
+
rule_tag?: string;
|
|
462
|
+
params?: DeleteAnalyticsRuleResponseParams;
|
|
463
|
+
}
|
|
464
|
+
export declare const DeleteAnalyticsRuleResponse: S.Schema<DeleteAnalyticsRuleResponse>;
|
|
465
|
+
export interface DeleteCollectionRequest {
|
|
466
|
+
/** The name of the collection to delete */
|
|
467
|
+
collectionName: string;
|
|
468
|
+
}
|
|
469
|
+
export declare const DeleteCollectionRequest: S.Schema<DeleteCollectionRequest>;
|
|
470
|
+
/** A list of fields for querying, filtering and faceting */
|
|
471
|
+
export type DeleteCollectionResponseFieldsList = Array<Field>;
|
|
472
|
+
export declare const DeleteCollectionResponseFieldsList: S.Schema<DeleteCollectionResponseFieldsList>;
|
|
473
|
+
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
474
|
+
export type DeleteCollectionResponseTokenSeparatorsList = Array<string>;
|
|
475
|
+
export declare const DeleteCollectionResponseTokenSeparatorsList: S.Schema<DeleteCollectionResponseTokenSeparatorsList>;
|
|
476
|
+
/** List of synonym set names to associate with this collection */
|
|
477
|
+
export type DeleteCollectionResponseSynonymSetsList = Array<string>;
|
|
478
|
+
export declare const DeleteCollectionResponseSynonymSetsList: S.Schema<DeleteCollectionResponseSynonymSetsList>;
|
|
479
|
+
/** List of symbols or special characters to be indexed. */
|
|
480
|
+
export type DeleteCollectionResponseSymbolsToIndexList = Array<string>;
|
|
481
|
+
export declare const DeleteCollectionResponseSymbolsToIndexList: S.Schema<DeleteCollectionResponseSymbolsToIndexList>;
|
|
482
|
+
export interface DeleteCollectionResponse {
|
|
483
|
+
/** Name of the collection */
|
|
484
|
+
name: string;
|
|
485
|
+
/** A list of fields for querying, filtering and faceting */
|
|
486
|
+
fields: DeleteCollectionResponseFieldsList;
|
|
487
|
+
/** The name of an int32 / float field that determines the order in which the search results are ranked when a sort_by clause is not provided during searching. This field must indicate some kind of popularity. */
|
|
488
|
+
default_sorting_field?: string;
|
|
489
|
+
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
490
|
+
token_separators?: DeleteCollectionResponseTokenSeparatorsList;
|
|
491
|
+
/** List of synonym set names to associate with this collection */
|
|
492
|
+
synonym_sets?: DeleteCollectionResponseSynonymSetsList;
|
|
493
|
+
/** Enables experimental support at a collection level for nested object or object array fields. This field is only available if the Typesense server is version `0.24.0.rcn34` or later. */
|
|
494
|
+
enable_nested_fields?: boolean;
|
|
495
|
+
/** List of symbols or special characters to be indexed. */
|
|
496
|
+
symbols_to_index?: DeleteCollectionResponseSymbolsToIndexList;
|
|
497
|
+
voice_query_model?: VoiceQueryModelCollectionConfig;
|
|
498
|
+
/** Optional details about the collection, e.g., when it was created, who created it etc. */
|
|
499
|
+
metadata?: unknown;
|
|
500
|
+
/** Number of documents in the collection */
|
|
501
|
+
num_documents: number;
|
|
502
|
+
/** Timestamp of when the collection was created (Unix epoch in seconds) */
|
|
503
|
+
created_at: number;
|
|
504
|
+
}
|
|
505
|
+
export declare const DeleteCollectionResponse: S.Schema<DeleteCollectionResponse>;
|
|
506
|
+
export interface DeleteConversationModelRequest {
|
|
507
|
+
/** The id of the conversation model to delete */
|
|
508
|
+
modelId: string;
|
|
509
|
+
}
|
|
510
|
+
export declare const DeleteConversationModelRequest: S.Schema<DeleteConversationModelRequest>;
|
|
511
|
+
export interface DeleteConversationModelResponse {
|
|
512
|
+
/** An explicit id for the model, otherwise the API will return a response with an auto-generated conversation model id. */
|
|
513
|
+
id: string;
|
|
514
|
+
/** Name of the LLM model offered by OpenAI, Cloudflare or vLLM */
|
|
515
|
+
model_name: string;
|
|
516
|
+
/** The LLM service's API Key */
|
|
517
|
+
api_key?: string | import("effect/Redacted").Redacted<string>;
|
|
518
|
+
/** Typesense collection that stores the historical conversations */
|
|
519
|
+
history_collection: string;
|
|
520
|
+
/** LLM service's account ID (only applicable for Cloudflare) */
|
|
521
|
+
account_id?: string;
|
|
522
|
+
/** The system prompt that contains special instructions to the LLM */
|
|
523
|
+
system_prompt?: string;
|
|
524
|
+
/** Time interval in seconds after which the messages would be deleted. Default: 86400 (24 hours) */
|
|
525
|
+
ttl?: number;
|
|
526
|
+
/** The maximum number of bytes to send to the LLM in every API call. Consult the LLM's documentation on the number of bytes supported in the context window. */
|
|
527
|
+
max_bytes: number;
|
|
528
|
+
/** URL of vLLM service */
|
|
529
|
+
vllm_url?: string;
|
|
530
|
+
}
|
|
531
|
+
export declare const DeleteConversationModelResponse: S.Schema<DeleteConversationModelResponse>;
|
|
532
|
+
export interface DeleteCurationSetRequest {
|
|
533
|
+
/** The name of the curation set to delete */
|
|
534
|
+
curationSetName: string;
|
|
535
|
+
}
|
|
536
|
+
export declare const DeleteCurationSetRequest: S.Schema<DeleteCurationSetRequest>;
|
|
537
|
+
export interface CurationSetDeleteSchema {
|
|
538
|
+
/** Name of the deleted curation set */
|
|
539
|
+
name: string;
|
|
540
|
+
}
|
|
541
|
+
export declare const CurationSetDeleteSchema: S.Schema<CurationSetDeleteSchema>;
|
|
542
|
+
export interface DeleteCurationSetItemRequest {
|
|
543
|
+
/** The name of the curation set */
|
|
544
|
+
curationSetName: string;
|
|
545
|
+
/** The id of the curation item to delete */
|
|
546
|
+
itemId: string;
|
|
547
|
+
}
|
|
548
|
+
export declare const DeleteCurationSetItemRequest: S.Schema<DeleteCurationSetItemRequest>;
|
|
549
|
+
export interface CurationItemDeleteSchema {
|
|
550
|
+
/** ID of the deleted curation item */
|
|
551
|
+
id: string;
|
|
552
|
+
}
|
|
553
|
+
export declare const CurationItemDeleteSchema: S.Schema<CurationItemDeleteSchema>;
|
|
554
|
+
export interface DeleteDocumentRequest {
|
|
555
|
+
/** The name of the collection to search for the document under */
|
|
556
|
+
collectionName: string;
|
|
557
|
+
/** The Document ID */
|
|
558
|
+
documentId: string;
|
|
559
|
+
}
|
|
560
|
+
export declare const DeleteDocumentRequest: S.Schema<DeleteDocumentRequest>;
|
|
561
|
+
export type DeleteDocumentResponse = unknown;
|
|
562
|
+
export declare const DeleteDocumentResponse: S.Schema<DeleteDocumentResponse>;
|
|
563
|
+
export interface DeleteDocumentsRequestDeleteDocumentsParameters {
|
|
564
|
+
filter_by: string;
|
|
565
|
+
/** Batch size parameter controls the number of documents that should be deleted at a time. A larger value will speed up deletions, but will impact performance of other operations running on the server. */
|
|
566
|
+
batch_size?: number;
|
|
567
|
+
ignore_not_found?: boolean;
|
|
568
|
+
/** When true, removes all documents from the collection while preserving the collection and its schema. */
|
|
569
|
+
truncate?: boolean;
|
|
570
|
+
}
|
|
571
|
+
export declare const DeleteDocumentsRequestDeleteDocumentsParameters: S.Schema<DeleteDocumentsRequestDeleteDocumentsParameters>;
|
|
572
|
+
export interface DeleteDocumentsRequest {
|
|
573
|
+
/** The name of the collection to delete documents from */
|
|
574
|
+
collectionName: string;
|
|
575
|
+
deleteDocumentsParameters?: DeleteDocumentsRequestDeleteDocumentsParameters;
|
|
576
|
+
}
|
|
577
|
+
export declare const DeleteDocumentsRequest: S.Schema<DeleteDocumentsRequest>;
|
|
578
|
+
export interface DeleteDocumentsResponse {
|
|
579
|
+
num_deleted: number;
|
|
580
|
+
}
|
|
581
|
+
export declare const DeleteDocumentsResponse: S.Schema<DeleteDocumentsResponse>;
|
|
582
|
+
export interface DeleteKeyRequest {
|
|
583
|
+
/** The ID of the key to delete */
|
|
584
|
+
keyId: number;
|
|
585
|
+
}
|
|
586
|
+
export declare const DeleteKeyRequest: S.Schema<DeleteKeyRequest>;
|
|
587
|
+
export interface ApiKeyDeleteResponse {
|
|
588
|
+
/** The id of the API key that was deleted */
|
|
589
|
+
id: number;
|
|
590
|
+
}
|
|
591
|
+
export declare const ApiKeyDeleteResponse: S.Schema<ApiKeyDeleteResponse>;
|
|
592
|
+
export interface DeleteNLSearchModelRequest {
|
|
593
|
+
/** The ID of the NL search model to delete */
|
|
594
|
+
modelId: string;
|
|
595
|
+
}
|
|
596
|
+
export declare const DeleteNLSearchModelRequest: S.Schema<DeleteNLSearchModelRequest>;
|
|
597
|
+
export interface NLSearchModelDeleteSchema {
|
|
598
|
+
/** ID of the deleted NL search model */
|
|
599
|
+
id: string;
|
|
600
|
+
}
|
|
601
|
+
export declare const NLSearchModelDeleteSchema: S.Schema<NLSearchModelDeleteSchema>;
|
|
602
|
+
export interface DeletePresetRequest {
|
|
603
|
+
/** The ID of the preset to delete. */
|
|
604
|
+
presetId: string;
|
|
605
|
+
}
|
|
606
|
+
export declare const DeletePresetRequest: S.Schema<DeletePresetRequest>;
|
|
607
|
+
export interface PresetDeleteSchema {
|
|
608
|
+
name: string;
|
|
609
|
+
}
|
|
610
|
+
export declare const PresetDeleteSchema: S.Schema<PresetDeleteSchema>;
|
|
611
|
+
export interface DeleteStopwordsSetRequest {
|
|
612
|
+
/** The ID of the stopwords set to delete. */
|
|
613
|
+
setId: string;
|
|
614
|
+
}
|
|
615
|
+
export declare const DeleteStopwordsSetRequest: S.Schema<DeleteStopwordsSetRequest>;
|
|
616
|
+
export interface DeleteStopwordsSetResponse {
|
|
617
|
+
id: string;
|
|
618
|
+
}
|
|
619
|
+
export declare const DeleteStopwordsSetResponse: S.Schema<DeleteStopwordsSetResponse>;
|
|
620
|
+
export interface DeleteSynonymSetRequest {
|
|
621
|
+
/** The name of the synonym set to delete */
|
|
622
|
+
synonymSetName: string;
|
|
623
|
+
}
|
|
624
|
+
export declare const DeleteSynonymSetRequest: S.Schema<DeleteSynonymSetRequest>;
|
|
625
|
+
export interface SynonymSetDeleteSchema {
|
|
626
|
+
/** Name of the deleted synonym set */
|
|
627
|
+
name: string;
|
|
628
|
+
}
|
|
629
|
+
export declare const SynonymSetDeleteSchema: S.Schema<SynonymSetDeleteSchema>;
|
|
630
|
+
export interface DeleteSynonymSetItemRequest {
|
|
631
|
+
/** The name of the synonym set */
|
|
632
|
+
synonymSetName: string;
|
|
633
|
+
/** The id of the synonym item to delete */
|
|
634
|
+
itemId: string;
|
|
635
|
+
}
|
|
636
|
+
export declare const DeleteSynonymSetItemRequest: S.Schema<DeleteSynonymSetItemRequest>;
|
|
637
|
+
export interface SynonymItemDeleteSchema {
|
|
638
|
+
/** ID of the deleted synonym item */
|
|
639
|
+
id: string;
|
|
640
|
+
}
|
|
641
|
+
export declare const SynonymItemDeleteSchema: S.Schema<SynonymItemDeleteSchema>;
|
|
642
|
+
export interface ExportDocumentsRequestExportDocumentsParameters {
|
|
643
|
+
/** Filter conditions for refining your search results. Separate multiple conditions with &&. */
|
|
644
|
+
filter_by?: string;
|
|
645
|
+
/** List of fields from the document to include in the search result */
|
|
646
|
+
include_fields?: string;
|
|
647
|
+
/** List of fields from the document to exclude in the search result */
|
|
648
|
+
exclude_fields?: string;
|
|
649
|
+
}
|
|
650
|
+
export declare const ExportDocumentsRequestExportDocumentsParameters: S.Schema<ExportDocumentsRequestExportDocumentsParameters>;
|
|
651
|
+
export interface ExportDocumentsRequest {
|
|
652
|
+
/** The name of the collection */
|
|
653
|
+
collectionName: string;
|
|
654
|
+
exportDocumentsParameters?: ExportDocumentsRequestExportDocumentsParameters;
|
|
655
|
+
}
|
|
656
|
+
export declare const ExportDocumentsRequest: S.Schema<ExportDocumentsRequest>;
|
|
657
|
+
export interface ExportDocumentsResponse {
|
|
658
|
+
}
|
|
659
|
+
export declare const ExportDocumentsResponse: S.Schema<ExportDocumentsResponse>;
|
|
660
|
+
export interface FlushAnalyticsRequest {
|
|
661
|
+
}
|
|
662
|
+
export declare const FlushAnalyticsRequest: S.Schema<FlushAnalyticsRequest>;
|
|
663
|
+
export interface GetAliasRequest {
|
|
664
|
+
/** The name of the alias to retrieve */
|
|
665
|
+
aliasName: string;
|
|
666
|
+
}
|
|
667
|
+
export declare const GetAliasRequest: S.Schema<GetAliasRequest>;
|
|
668
|
+
export interface GetAliasesRequest {
|
|
669
|
+
}
|
|
670
|
+
export declare const GetAliasesRequest: S.Schema<GetAliasesRequest>;
|
|
671
|
+
export type CollectionAliasesResponseAliasesList = Array<CollectionAlias>;
|
|
672
|
+
export declare const CollectionAliasesResponseAliasesList: S.Schema<CollectionAliasesResponseAliasesList>;
|
|
673
|
+
export interface CollectionAliasesResponse {
|
|
674
|
+
aliases: CollectionAliasesResponseAliasesList;
|
|
675
|
+
}
|
|
676
|
+
export declare const CollectionAliasesResponse: S.Schema<CollectionAliasesResponse>;
|
|
677
|
+
export interface GetAllConversationModelsRequest {
|
|
678
|
+
}
|
|
679
|
+
export declare const GetAllConversationModelsRequest: S.Schema<GetAllConversationModelsRequest>;
|
|
680
|
+
export interface ConversationModelSchema {
|
|
681
|
+
/** An explicit id for the model, otherwise the API will return a response with an auto-generated conversation model id. */
|
|
682
|
+
id: string;
|
|
683
|
+
/** Name of the LLM model offered by OpenAI, Cloudflare or vLLM */
|
|
684
|
+
model_name: string;
|
|
685
|
+
/** The LLM service's API Key */
|
|
686
|
+
api_key?: string | import("effect/Redacted").Redacted<string>;
|
|
687
|
+
/** Typesense collection that stores the historical conversations */
|
|
688
|
+
history_collection: string;
|
|
689
|
+
/** LLM service's account ID (only applicable for Cloudflare) */
|
|
690
|
+
account_id?: string;
|
|
691
|
+
/** The system prompt that contains special instructions to the LLM */
|
|
692
|
+
system_prompt?: string;
|
|
693
|
+
/** Time interval in seconds after which the messages would be deleted. Default: 86400 (24 hours) */
|
|
694
|
+
ttl?: number;
|
|
695
|
+
/** The maximum number of bytes to send to the LLM in every API call. Consult the LLM's documentation on the number of bytes supported in the context window. */
|
|
696
|
+
max_bytes: number;
|
|
697
|
+
/** URL of vLLM service */
|
|
698
|
+
vllm_url?: string;
|
|
699
|
+
}
|
|
700
|
+
export declare const ConversationModelSchema: S.Schema<ConversationModelSchema>;
|
|
701
|
+
export type GetAllConversationModelsResponseBodyList = Array<ConversationModelSchema>;
|
|
702
|
+
export declare const GetAllConversationModelsResponseBodyList: S.Schema<GetAllConversationModelsResponseBodyList>;
|
|
703
|
+
export type GetAllConversationModelsResponse = GetAllConversationModelsResponseBodyList;
|
|
704
|
+
export declare const GetAllConversationModelsResponse: S.Schema<GetAllConversationModelsResponse>;
|
|
705
|
+
export interface GetAllNLSearchModelsRequest {
|
|
706
|
+
}
|
|
707
|
+
export declare const GetAllNLSearchModelsRequest: S.Schema<GetAllNLSearchModelsRequest>;
|
|
708
|
+
/** Stop sequences for the NL model (Google-specific) */
|
|
709
|
+
export type NLSearchModelSchemaStopSequencesList = Array<string>;
|
|
710
|
+
export declare const NLSearchModelSchemaStopSequencesList: S.Schema<NLSearchModelSchemaStopSequencesList>;
|
|
711
|
+
export interface NLSearchModelSchema {
|
|
712
|
+
/** Name of the NL model to use */
|
|
713
|
+
model_name?: string;
|
|
714
|
+
/** API key for the NL model service */
|
|
715
|
+
api_key?: string | import("effect/Redacted").Redacted<string>;
|
|
716
|
+
/** Custom API URL for the NL model service */
|
|
717
|
+
api_url?: string;
|
|
718
|
+
/** Maximum number of bytes to process */
|
|
719
|
+
max_bytes?: number;
|
|
720
|
+
/** Temperature parameter for the NL model */
|
|
721
|
+
temperature?: number;
|
|
722
|
+
/** System prompt for the NL model */
|
|
723
|
+
system_prompt?: string;
|
|
724
|
+
/** Top-p parameter for the NL model (Google-specific) */
|
|
725
|
+
top_p?: number;
|
|
726
|
+
/** Top-k parameter for the NL model (Google-specific) */
|
|
727
|
+
top_k?: number;
|
|
728
|
+
/** Stop sequences for the NL model (Google-specific) */
|
|
729
|
+
stop_sequences?: NLSearchModelSchemaStopSequencesList;
|
|
730
|
+
/** API version for the NL model service */
|
|
731
|
+
api_version?: string;
|
|
732
|
+
/** Project ID for GCP Vertex AI */
|
|
733
|
+
project_id?: string;
|
|
734
|
+
/** Access token for GCP Vertex AI */
|
|
735
|
+
access_token?: string | import("effect/Redacted").Redacted<string>;
|
|
736
|
+
/** Refresh token for GCP Vertex AI */
|
|
737
|
+
refresh_token?: string | import("effect/Redacted").Redacted<string>;
|
|
738
|
+
/** Client ID for GCP Vertex AI */
|
|
739
|
+
client_id?: string;
|
|
740
|
+
/** Client secret for GCP Vertex AI */
|
|
741
|
+
client_secret?: string | import("effect/Redacted").Redacted<string>;
|
|
742
|
+
/** Region for GCP Vertex AI */
|
|
743
|
+
region?: string;
|
|
744
|
+
/** Maximum output tokens for GCP Vertex AI */
|
|
745
|
+
max_output_tokens?: number;
|
|
746
|
+
/** Account ID for Cloudflare-specific models */
|
|
747
|
+
account_id?: string;
|
|
748
|
+
/** Optional ID for the NL search model */
|
|
749
|
+
id: string;
|
|
750
|
+
}
|
|
751
|
+
export declare const NLSearchModelSchema: S.Schema<NLSearchModelSchema>;
|
|
752
|
+
export type GetAllNLSearchModelsResponseBodyList = Array<NLSearchModelSchema>;
|
|
753
|
+
export declare const GetAllNLSearchModelsResponseBodyList: S.Schema<GetAllNLSearchModelsResponseBodyList>;
|
|
754
|
+
export type GetAllNLSearchModelsResponse = GetAllNLSearchModelsResponseBodyList;
|
|
755
|
+
export declare const GetAllNLSearchModelsResponse: S.Schema<GetAllNLSearchModelsResponse>;
|
|
756
|
+
export interface GetAllPresetsRequest {
|
|
757
|
+
}
|
|
758
|
+
export declare const GetAllPresetsRequest: S.Schema<GetAllPresetsRequest>;
|
|
759
|
+
/** Dictates the direction in which the words in the query must be dropped when the original words in the query do not appear in any document. Values: right_to_left (default), left_to_right, both_sides:3 A note on both_sides:3 - for queries up to 3 tokens (words) in length, this mode will drop tokens from both sides and exhaustively rank all matching results. If query length is greater than 3 words, Typesense will just fallback to default behavior of right_to_left */
|
|
760
|
+
export type DropTokensMode = "right_to_left" | "left_to_right" | "both_sides:3";
|
|
761
|
+
export declare const DropTokensMode: any;
|
|
762
|
+
export interface SearchParameters {
|
|
763
|
+
/** The query text to search for in the collection. Use * as the search string to return all documents. This is typically useful when used in conjunction with filter_by. */
|
|
764
|
+
q?: string;
|
|
765
|
+
/** A list of `string` fields that should be queried against. Multiple fields are separated with a comma. */
|
|
766
|
+
query_by?: string;
|
|
767
|
+
/** Controls whether Typesense should validate if the fields exist in the schema. When set to false, Typesense will not throw an error if a field is missing. This is useful for programmatic grouping where not all fields may exist. */
|
|
768
|
+
validate_field_names?: boolean;
|
|
769
|
+
/** Whether to use natural language processing to parse the query. */
|
|
770
|
+
nl_query?: boolean;
|
|
771
|
+
/** The ID of the natural language model to use. */
|
|
772
|
+
nl_model_id?: string;
|
|
773
|
+
/** The relative weight to give each `query_by` field when ranking results. This can be used to boost fields in priority, when looking for matches. Multiple fields are separated with a comma. */
|
|
774
|
+
query_by_weights?: string;
|
|
775
|
+
/** In a multi-field matching context, this parameter determines how the representative text match score of a record is calculated. Possible values are max_score (default) or max_weight. */
|
|
776
|
+
text_match_type?: string;
|
|
777
|
+
/** Boolean field to indicate that the last word in the query should be treated as a prefix, and not as a whole word. This is used for building autocomplete and instant search interfaces. Defaults to true. */
|
|
778
|
+
prefix?: string;
|
|
779
|
+
/** If infix index is enabled for this field, infix searching can be done on a per-field basis by sending a comma separated string parameter called infix to the search query. This parameter can have 3 values; `off` infix search is disabled, which is default `always` infix search is performed along with regular search `fallback` infix search is performed if regular search does not produce results */
|
|
780
|
+
infix?: string;
|
|
781
|
+
/** There are also 2 parameters that allow you to control the extent of infix searching max_extra_prefix and max_extra_suffix which specify the maximum number of symbols before or after the query that can be present in the token. For example query "K2100" has 2 extra symbols in "6PK2100". By default, any number of prefixes/suffixes can be present for a match. */
|
|
782
|
+
max_extra_prefix?: number;
|
|
783
|
+
/** There are also 2 parameters that allow you to control the extent of infix searching max_extra_prefix and max_extra_suffix which specify the maximum number of symbols before or after the query that can be present in the token. For example query "K2100" has 2 extra symbols in "6PK2100". By default, any number of prefixes/suffixes can be present for a match. */
|
|
784
|
+
max_extra_suffix?: number;
|
|
785
|
+
/** Filter conditions for refining your open api validator search results. Separate multiple conditions with &&. */
|
|
786
|
+
filter_by?: string;
|
|
787
|
+
/** Controls the number of similar words that Typesense considers during fuzzy search on filter_by values. Useful for controlling prefix matches like company_name:Acm*. */
|
|
788
|
+
max_filter_by_candidates?: number;
|
|
789
|
+
/** A list of numerical fields and their corresponding sort orders that will be used for ordering your results. Up to 3 sort fields can be specified. The text similarity score is exposed as a special `_text_match` field that you can use in the list of sorting fields. If no `sort_by` parameter is specified, results are sorted by `_text_match:desc,default_sorting_field:desc` */
|
|
790
|
+
sort_by?: string;
|
|
791
|
+
/** A list of fields that will be used for faceting your results on. Separate multiple fields with a comma. */
|
|
792
|
+
facet_by?: string;
|
|
793
|
+
/** Maximum number of facet values to be returned. */
|
|
794
|
+
max_facet_values?: number;
|
|
795
|
+
/** Facet values that are returned can now be filtered via this parameter. The matching facet text is also highlighted. For example, when faceting by `category`, you can set `facet_query=category:shoe` to return only facet values that contain the prefix "shoe". */
|
|
796
|
+
facet_query?: string;
|
|
797
|
+
/** The number of typographical errors (1 or 2) that would be tolerated. Default: 2 */
|
|
798
|
+
num_typos?: string;
|
|
799
|
+
/** Results from this specific page number would be fetched. */
|
|
800
|
+
page?: number;
|
|
801
|
+
/** Number of results to fetch per page. Default: 10 */
|
|
802
|
+
per_page?: number;
|
|
803
|
+
/** Number of hits to fetch. Can be used as an alternative to the per_page parameter. Default: 10. */
|
|
804
|
+
limit?: number;
|
|
805
|
+
/** Identifies the starting point to return hits from a result set. Can be used as an alternative to the page parameter. */
|
|
806
|
+
offset?: number;
|
|
807
|
+
/** You can aggregate search results into groups or buckets by specify one or more `group_by` fields. Separate multiple fields with a comma. To group on a particular field, it must be a faceted field. */
|
|
808
|
+
group_by?: string;
|
|
809
|
+
/** Maximum number of hits to be returned for every group. If the `group_limit` is set as `K` then only the top K hits in each group are returned in the response. Default: 3 */
|
|
810
|
+
group_limit?: number;
|
|
811
|
+
/** Setting this parameter to true will place all documents that have a null value in the group_by field, into a single group. Setting this parameter to false, will cause each document with a null value in the group_by field to not be grouped with other documents. Default: true */
|
|
812
|
+
group_missing_values?: boolean;
|
|
813
|
+
/** List of fields from the document to include in the search result */
|
|
814
|
+
include_fields?: string;
|
|
815
|
+
/** List of fields from the document to exclude in the search result */
|
|
816
|
+
exclude_fields?: string;
|
|
817
|
+
/** List of fields which should be highlighted fully without snippeting */
|
|
818
|
+
highlight_full_fields?: string;
|
|
819
|
+
/** The number of tokens that should surround the highlighted text on each side. Default: 4 */
|
|
820
|
+
highlight_affix_num_tokens?: number;
|
|
821
|
+
/** The start tag used for the highlighted snippets. Default: `<mark>` */
|
|
822
|
+
highlight_start_tag?: string;
|
|
823
|
+
/** The end tag used for the highlighted snippets. Default: `</mark>` */
|
|
824
|
+
highlight_end_tag?: string;
|
|
825
|
+
/** Flag for enabling/disabling the deprecated, old highlight structure in the response. Default: true */
|
|
826
|
+
enable_highlight_v1?: boolean;
|
|
827
|
+
/** Flag for enabling/disabling analytics aggregation for specific search queries (for e.g. those originating from a test script). */
|
|
828
|
+
enable_analytics?: boolean;
|
|
829
|
+
/** Field values under this length will be fully highlighted, instead of showing a snippet of relevant portion. Default: 30 */
|
|
830
|
+
snippet_threshold?: number;
|
|
831
|
+
/** List of synonym set names to associate with this search query */
|
|
832
|
+
synonym_sets?: string;
|
|
833
|
+
/** If the number of results found for a specific query is less than this number, Typesense will attempt to drop the tokens in the query until enough results are found. Tokens that have the least individual hits are dropped first. Set to 0 to disable. Default: 10 */
|
|
834
|
+
drop_tokens_threshold?: number;
|
|
835
|
+
drop_tokens_mode?: DropTokensMode | (string & {});
|
|
836
|
+
/** If the number of results found for a specific query is less than this number, Typesense will attempt to look for tokens with more typos until enough results are found. Default: 100 */
|
|
837
|
+
typo_tokens_threshold?: number;
|
|
838
|
+
/** Set this parameter to false to disable typos on alphanumerical query tokens. Default: true. */
|
|
839
|
+
enable_typos_for_alpha_numerical_tokens?: boolean;
|
|
840
|
+
/** Whether the filter_by condition of the search query should be applicable to curated results (curation definitions, pinned hits, hidden hits, etc.). Default: false */
|
|
841
|
+
filter_curated_hits?: boolean;
|
|
842
|
+
/** If you have some synonyms defined but want to disable all of them for a particular search query, set enable_synonyms to false. Default: true */
|
|
843
|
+
enable_synonyms?: boolean;
|
|
844
|
+
/** Allow synonym resolution on word prefixes in the query. Default: false */
|
|
845
|
+
synonym_prefix?: boolean;
|
|
846
|
+
/** Allow synonym resolution on typo-corrected words in the query. Default: 0 */
|
|
847
|
+
synonym_num_typos?: number;
|
|
848
|
+
/** A list of records to unconditionally include in the search results at specific positions. An example use case would be to feature or promote certain items on the top of search results. A list of `record_id:hit_position`. Eg: to include a record with ID 123 at Position 1 and another record with ID 456 at Position 5, you'd specify `123:1,456:5`. You could also use the Curation feature to override search results based on rules. Curations are applied first, followed by `pinned_hits` and finally `hidden_hits`. */
|
|
849
|
+
pinned_hits?: string;
|
|
850
|
+
/** A list of records to unconditionally hide from search results. A list of `record_id`s to hide. Eg: to hide records with IDs 123 and 456, you'd specify `123,456`. You could also use the Curation feature to override search results based on rules. Curations are applied first, followed by `pinned_hits` and finally `hidden_hits`. */
|
|
851
|
+
hidden_hits?: string;
|
|
852
|
+
/** Comma separated list of tags to trigger the curations rules that match the tags. */
|
|
853
|
+
curation_tags?: string;
|
|
854
|
+
/** A list of custom fields that must be highlighted even if you don't query for them */
|
|
855
|
+
highlight_fields?: string;
|
|
856
|
+
/** Treat space as typo: search for q=basket ball if q=basketball is not found or vice-versa. Splitting/joining of tokens will only be attempted if the original query produces no results. To always trigger this behavior, set value to `always``. To disable, set value to `off`. Default is `fallback`. */
|
|
857
|
+
split_join_tokens?: string;
|
|
858
|
+
/** You can index content from any logographic language into Typesense if you are able to segment / split the text into space-separated words yourself before indexing and querying. Set this parameter to true to do the same */
|
|
859
|
+
pre_segmented_query?: boolean;
|
|
860
|
+
/** Search using a bunch of search parameters by setting this parameter to the name of the existing Preset. */
|
|
861
|
+
preset?: string;
|
|
862
|
+
/** If you have some curation sets defined but want to disable all of them during query time, you can do that by setting this parameter to false */
|
|
863
|
+
enable_curations?: boolean;
|
|
864
|
+
/** Set this parameter to true to ensure that an exact match is ranked above the others */
|
|
865
|
+
prioritize_exact_match?: boolean;
|
|
866
|
+
/** Control the number of words that Typesense considers for typo and prefix searching. */
|
|
867
|
+
max_candidates?: number;
|
|
868
|
+
/** Make Typesense prioritize documents where the query words appear earlier in the text. */
|
|
869
|
+
prioritize_token_position?: boolean;
|
|
870
|
+
/** Make Typesense prioritize documents where the query words appear in more number of fields. */
|
|
871
|
+
prioritize_num_matching_fields?: boolean;
|
|
872
|
+
/** Make Typesense disable typos for numerical tokens. */
|
|
873
|
+
enable_typos_for_numerical_tokens?: boolean;
|
|
874
|
+
/** Setting this to true will make Typesense consider all prefixes and typo corrections of the words in the query without stopping early when enough results are found (drop_tokens_threshold and typo_tokens_threshold configurations are ignored). */
|
|
875
|
+
exhaustive_search?: boolean;
|
|
876
|
+
/** Typesense will attempt to return results early if the cutoff time has elapsed. This is not a strict guarantee and facet computation is not bound by this parameter. */
|
|
877
|
+
search_cutoff_ms?: number;
|
|
878
|
+
/** Enable server side caching of search query results. By default, caching is disabled. */
|
|
879
|
+
use_cache?: boolean;
|
|
880
|
+
/** The duration (in seconds) that determines how long the search query is cached. This value can be set on a per-query basis. Default: 60. */
|
|
881
|
+
cache_ttl?: number;
|
|
882
|
+
/** Minimum word length for 1-typo correction to be applied. The value of num_typos is still treated as the maximum allowed typos. */
|
|
883
|
+
min_len_1typo?: number;
|
|
884
|
+
/** Minimum word length for 2-typo correction to be applied. The value of num_typos is still treated as the maximum allowed typos. */
|
|
885
|
+
min_len_2typo?: number;
|
|
886
|
+
/** Vector query expression for fetching documents "closest" to a given query/document vector. */
|
|
887
|
+
vector_query?: string;
|
|
888
|
+
/** Timeout (in milliseconds) for fetching remote embeddings. */
|
|
889
|
+
remote_embedding_timeout_ms?: number;
|
|
890
|
+
/** Number of times to retry fetching remote embeddings. */
|
|
891
|
+
remote_embedding_num_tries?: number;
|
|
892
|
+
/** Choose the underlying faceting strategy used. Comma separated string of allows values: exhaustive, top_values or automatic (default). */
|
|
893
|
+
facet_strategy?: string;
|
|
894
|
+
/** Name of the stopwords set to apply for this search, the keywords present in the set will be removed from the search query. */
|
|
895
|
+
stopwords?: string;
|
|
896
|
+
/** Comma separated string of nested facet fields whose parent object should be returned in facet response. */
|
|
897
|
+
facet_return_parent?: string;
|
|
898
|
+
/** The base64 encoded audio file in 16 khz 16-bit WAV format. */
|
|
899
|
+
voice_query?: string;
|
|
900
|
+
/** Enable conversational search. */
|
|
901
|
+
conversation?: boolean;
|
|
902
|
+
/** The Id of Conversation Model to be used. */
|
|
903
|
+
conversation_model_id?: string;
|
|
904
|
+
/** The Id of a previous conversation to continue, this tells Typesense to include prior context when communicating with the LLM. */
|
|
905
|
+
conversation_id?: string;
|
|
906
|
+
}
|
|
907
|
+
export declare const SearchParameters: S.Schema<SearchParameters>;
|
|
908
|
+
export interface MultiSearchCollectionParameters {
|
|
909
|
+
/** The query text to search for in the collection. Use * as the search string to return all documents. This is typically useful when used in conjunction with filter_by. */
|
|
910
|
+
q?: string;
|
|
911
|
+
/** A list of `string` fields that should be queried against. Multiple fields are separated with a comma. */
|
|
912
|
+
query_by?: string;
|
|
913
|
+
/** The relative weight to give each `query_by` field when ranking results. This can be used to boost fields in priority, when looking for matches. Multiple fields are separated with a comma. */
|
|
914
|
+
query_by_weights?: string;
|
|
915
|
+
/** In a multi-field matching context, this parameter determines how the representative text match score of a record is calculated. Possible values are max_score (default) or max_weight. */
|
|
916
|
+
text_match_type?: string;
|
|
917
|
+
/** Boolean field to indicate that the last word in the query should be treated as a prefix, and not as a whole word. This is used for building autocomplete and instant search interfaces. Defaults to true. */
|
|
918
|
+
prefix?: string;
|
|
919
|
+
/** If infix index is enabled for this field, infix searching can be done on a per-field basis by sending a comma separated string parameter called infix to the search query. This parameter can have 3 values; `off` infix search is disabled, which is default `always` infix search is performed along with regular search `fallback` infix search is performed if regular search does not produce results */
|
|
920
|
+
infix?: string;
|
|
921
|
+
/** There are also 2 parameters that allow you to control the extent of infix searching max_extra_prefix and max_extra_suffix which specify the maximum number of symbols before or after the query that can be present in the token. For example query "K2100" has 2 extra symbols in "6PK2100". By default, any number of prefixes/suffixes can be present for a match. */
|
|
922
|
+
max_extra_prefix?: number;
|
|
923
|
+
/** There are also 2 parameters that allow you to control the extent of infix searching max_extra_prefix and max_extra_suffix which specify the maximum number of symbols before or after the query that can be present in the token. For example query "K2100" has 2 extra symbols in "6PK2100". By default, any number of prefixes/suffixes can be present for a match. */
|
|
924
|
+
max_extra_suffix?: number;
|
|
925
|
+
/** Filter conditions for refining youropen api validator search results. Separate multiple conditions with &&. */
|
|
926
|
+
filter_by?: string;
|
|
927
|
+
/** A list of numerical fields and their corresponding sort orders that will be used for ordering your results. Up to 3 sort fields can be specified. The text similarity score is exposed as a special `_text_match` field that you can use in the list of sorting fields. If no `sort_by` parameter is specified, results are sorted by `_text_match:desc,default_sorting_field:desc` */
|
|
928
|
+
sort_by?: string;
|
|
929
|
+
/** A list of fields that will be used for faceting your results on. Separate multiple fields with a comma. */
|
|
930
|
+
facet_by?: string;
|
|
931
|
+
/** Maximum number of facet values to be returned. */
|
|
932
|
+
max_facet_values?: number;
|
|
933
|
+
/** Facet values that are returned can now be filtered via this parameter. The matching facet text is also highlighted. For example, when faceting by `category`, you can set `facet_query=category:shoe` to return only facet values that contain the prefix "shoe". */
|
|
934
|
+
facet_query?: string;
|
|
935
|
+
/** The number of typographical errors (1 or 2) that would be tolerated. Default: 2 */
|
|
936
|
+
num_typos?: string;
|
|
937
|
+
/** Results from this specific page number would be fetched. */
|
|
938
|
+
page?: number;
|
|
939
|
+
/** Number of results to fetch per page. Default: 10 */
|
|
940
|
+
per_page?: number;
|
|
941
|
+
/** Number of hits to fetch. Can be used as an alternative to the per_page parameter. Default: 10. */
|
|
942
|
+
limit?: number;
|
|
943
|
+
/** Identifies the starting point to return hits from a result set. Can be used as an alternative to the page parameter. */
|
|
944
|
+
offset?: number;
|
|
945
|
+
/** You can aggregate search results into groups or buckets by specify one or more `group_by` fields. Separate multiple fields with a comma. To group on a particular field, it must be a faceted field. */
|
|
946
|
+
group_by?: string;
|
|
947
|
+
/** Maximum number of hits to be returned for every group. If the `group_limit` is set as `K` then only the top K hits in each group are returned in the response. Default: 3 */
|
|
948
|
+
group_limit?: number;
|
|
949
|
+
/** Setting this parameter to true will place all documents that have a null value in the group_by field, into a single group. Setting this parameter to false, will cause each document with a null value in the group_by field to not be grouped with other documents. Default: true */
|
|
950
|
+
group_missing_values?: boolean;
|
|
951
|
+
/** List of fields from the document to include in the search result */
|
|
952
|
+
include_fields?: string;
|
|
953
|
+
/** List of fields from the document to exclude in the search result */
|
|
954
|
+
exclude_fields?: string;
|
|
955
|
+
/** List of fields which should be highlighted fully without snippeting */
|
|
956
|
+
highlight_full_fields?: string;
|
|
957
|
+
/** The number of tokens that should surround the highlighted text on each side. Default: 4 */
|
|
958
|
+
highlight_affix_num_tokens?: number;
|
|
959
|
+
/** The start tag used for the highlighted snippets. Default: `<mark>` */
|
|
960
|
+
highlight_start_tag?: string;
|
|
961
|
+
/** The end tag used for the highlighted snippets. Default: `</mark>` */
|
|
962
|
+
highlight_end_tag?: string;
|
|
963
|
+
/** Field values under this length will be fully highlighted, instead of showing a snippet of relevant portion. Default: 30 */
|
|
964
|
+
snippet_threshold?: number;
|
|
965
|
+
/** If the number of results found for a specific query is less than this number, Typesense will attempt to drop the tokens in the query until enough results are found. Tokens that have the least individual hits are dropped first. Set to 0 to disable. Default: 10 */
|
|
966
|
+
drop_tokens_threshold?: number;
|
|
967
|
+
drop_tokens_mode?: DropTokensMode | (string & {});
|
|
968
|
+
/** If the number of results found for a specific query is less than this number, Typesense will attempt to look for tokens with more typos until enough results are found. Default: 100 */
|
|
969
|
+
typo_tokens_threshold?: number;
|
|
970
|
+
/** Set this parameter to false to disable typos on alphanumerical query tokens. Default: true. */
|
|
971
|
+
enable_typos_for_alpha_numerical_tokens?: boolean;
|
|
972
|
+
/** Whether the filter_by condition of the search query should be applicable to curated results (curation definitions, pinned hits, hidden hits, etc.). Default: false */
|
|
973
|
+
filter_curated_hits?: boolean;
|
|
974
|
+
/** If you have some synonyms defined but want to disable all of them for a particular search query, set enable_synonyms to false. Default: true */
|
|
975
|
+
enable_synonyms?: boolean;
|
|
976
|
+
/** Flag for enabling/disabling analytics aggregation for specific search queries (for e.g. those originating from a test script). */
|
|
977
|
+
enable_analytics?: boolean;
|
|
978
|
+
/** Allow synonym resolution on word prefixes in the query. Default: false */
|
|
979
|
+
synonym_prefix?: boolean;
|
|
980
|
+
/** Allow synonym resolution on typo-corrected words in the query. Default: 0 */
|
|
981
|
+
synonym_num_typos?: number;
|
|
982
|
+
/** A list of records to unconditionally include in the search results at specific positions. An example use case would be to feature or promote certain items on the top of search results. A list of `record_id:hit_position`. Eg: to include a record with ID 123 at Position 1 and another record with ID 456 at Position 5, you'd specify `123:1,456:5`. You could also use the Curation feature to override search results based on rules. Curations are applied first, followed by `pinned_hits` and finally `hidden_hits`. */
|
|
983
|
+
pinned_hits?: string;
|
|
984
|
+
/** A list of records to unconditionally hide from search results. A list of `record_id`s to hide. Eg: to hide records with IDs 123 and 456, you'd specify `123,456`. You could also use the Curation feature to override search results based on rules. Curations are applied first, followed by `pinned_hits` and finally `hidden_hits`. */
|
|
985
|
+
hidden_hits?: string;
|
|
986
|
+
/** Comma separated list of tags to trigger the curations rules that match the tags. */
|
|
987
|
+
curation_tags?: string;
|
|
988
|
+
/** A list of custom fields that must be highlighted even if you don't query for them */
|
|
989
|
+
highlight_fields?: string;
|
|
990
|
+
/** You can index content from any logographic language into Typesense if you are able to segment / split the text into space-separated words yourself before indexing and querying. Set this parameter to true to do the same */
|
|
991
|
+
pre_segmented_query?: boolean;
|
|
992
|
+
/** Search using a bunch of search parameters by setting this parameter to the name of the existing Preset. */
|
|
993
|
+
preset?: string;
|
|
994
|
+
/** If you have some curation sets defined but want to disable all of them during query time, you can do that by setting this parameter to false */
|
|
995
|
+
enable_curations?: boolean;
|
|
996
|
+
/** Set this parameter to true to ensure that an exact match is ranked above the others */
|
|
997
|
+
prioritize_exact_match?: boolean;
|
|
998
|
+
/** Make Typesense prioritize documents where the query words appear earlier in the text. */
|
|
999
|
+
prioritize_token_position?: boolean;
|
|
1000
|
+
/** Make Typesense prioritize documents where the query words appear in more number of fields. */
|
|
1001
|
+
prioritize_num_matching_fields?: boolean;
|
|
1002
|
+
/** Make Typesense disable typos for numerical tokens. */
|
|
1003
|
+
enable_typos_for_numerical_tokens?: boolean;
|
|
1004
|
+
/** Setting this to true will make Typesense consider all prefixes and typo corrections of the words in the query without stopping early when enough results are found (drop_tokens_threshold and typo_tokens_threshold configurations are ignored). */
|
|
1005
|
+
exhaustive_search?: boolean;
|
|
1006
|
+
/** Typesense will attempt to return results early if the cutoff time has elapsed. This is not a strict guarantee and facet computation is not bound by this parameter. */
|
|
1007
|
+
search_cutoff_ms?: number;
|
|
1008
|
+
/** Enable server side caching of search query results. By default, caching is disabled. */
|
|
1009
|
+
use_cache?: boolean;
|
|
1010
|
+
/** The duration (in seconds) that determines how long the search query is cached. This value can be set on a per-query basis. Default: 60. */
|
|
1011
|
+
cache_ttl?: number;
|
|
1012
|
+
/** Minimum word length for 1-typo correction to be applied. The value of num_typos is still treated as the maximum allowed typos. */
|
|
1013
|
+
min_len_1typo?: number;
|
|
1014
|
+
/** Minimum word length for 2-typo correction to be applied. The value of num_typos is still treated as the maximum allowed typos. */
|
|
1015
|
+
min_len_2typo?: number;
|
|
1016
|
+
/** Vector query expression for fetching documents "closest" to a given query/document vector. */
|
|
1017
|
+
vector_query?: string;
|
|
1018
|
+
/** Timeout (in milliseconds) for fetching remote embeddings. */
|
|
1019
|
+
remote_embedding_timeout_ms?: number;
|
|
1020
|
+
/** Number of times to retry fetching remote embeddings. */
|
|
1021
|
+
remote_embedding_num_tries?: number;
|
|
1022
|
+
/** Choose the underlying faceting strategy used. Comma separated string of allows values: exhaustive, top_values or automatic (default). */
|
|
1023
|
+
facet_strategy?: string;
|
|
1024
|
+
/** Name of the stopwords set to apply for this search, the keywords present in the set will be removed from the search query. */
|
|
1025
|
+
stopwords?: string;
|
|
1026
|
+
/** Comma separated string of nested facet fields whose parent object should be returned in facet response. */
|
|
1027
|
+
facet_return_parent?: string;
|
|
1028
|
+
/** The base64 encoded audio file in 16 khz 16-bit WAV format. */
|
|
1029
|
+
voice_query?: string;
|
|
1030
|
+
/** Enable conversational search. */
|
|
1031
|
+
conversation?: boolean;
|
|
1032
|
+
/** The Id of Conversation Model to be used. */
|
|
1033
|
+
conversation_model_id?: string;
|
|
1034
|
+
/** The Id of a previous conversation to continue, this tells Typesense to include prior context when communicating with the LLM. */
|
|
1035
|
+
conversation_id?: string;
|
|
1036
|
+
/** Controls whether Typesense should validate if the fields exist in the schema. When set to false, Typesense will not throw an error if a field is missing. This is useful for programmatic grouping where not all fields may exist. */
|
|
1037
|
+
validate_field_names?: boolean;
|
|
1038
|
+
/** The collection to search in. */
|
|
1039
|
+
collection?: string;
|
|
1040
|
+
/** A separate search API key for each search within a multi_search request */
|
|
1041
|
+
x_typesense_api_key?: string;
|
|
1042
|
+
/** When true, computes both text match and vector distance scores for all matches in hybrid search. Documents found only through keyword search will get a vector distance score, and documents found only through vector search will get a text match score. */
|
|
1043
|
+
rerank_hybrid_matches?: boolean;
|
|
1044
|
+
}
|
|
1045
|
+
export declare const MultiSearchCollectionParameters: S.Schema<MultiSearchCollectionParameters>;
|
|
1046
|
+
export type MultiSearchSearchesParameterSearchesList = Array<MultiSearchCollectionParameters>;
|
|
1047
|
+
export declare const MultiSearchSearchesParameterSearchesList: S.Schema<MultiSearchSearchesParameterSearchesList>;
|
|
1048
|
+
export interface MultiSearchSearchesParameter {
|
|
1049
|
+
/** When true, merges the search results from each search query into a single ordered set of hits. */
|
|
1050
|
+
union?: boolean;
|
|
1051
|
+
searches: MultiSearchSearchesParameterSearchesList;
|
|
1052
|
+
}
|
|
1053
|
+
export declare const MultiSearchSearchesParameter: S.Schema<MultiSearchSearchesParameter>;
|
|
1054
|
+
export type PresetSchemaValue = SearchParameters | MultiSearchSearchesParameter;
|
|
1055
|
+
export declare const PresetSchemaValue: any;
|
|
1056
|
+
export interface PresetSchema {
|
|
1057
|
+
value: PresetSchemaValue;
|
|
1058
|
+
name: string;
|
|
1059
|
+
}
|
|
1060
|
+
export declare const PresetSchema: S.Schema<PresetSchema>;
|
|
1061
|
+
export type PresetsRetrieveSchemaPresetsList = Array<PresetSchema>;
|
|
1062
|
+
export declare const PresetsRetrieveSchemaPresetsList: S.Schema<PresetsRetrieveSchemaPresetsList>;
|
|
1063
|
+
export interface PresetsRetrieveSchema {
|
|
1064
|
+
presets: PresetsRetrieveSchemaPresetsList;
|
|
1065
|
+
}
|
|
1066
|
+
export declare const PresetsRetrieveSchema: S.Schema<PresetsRetrieveSchema>;
|
|
1067
|
+
export interface GetAnalyticsEventsRequest {
|
|
1068
|
+
user_id: string;
|
|
1069
|
+
/** Analytics rule name */
|
|
1070
|
+
name: string;
|
|
1071
|
+
/** Number of events to return (max 1000) */
|
|
1072
|
+
n: number;
|
|
1073
|
+
}
|
|
1074
|
+
export declare const GetAnalyticsEventsRequest: S.Schema<GetAnalyticsEventsRequest>;
|
|
1075
|
+
export type AnalyticsEventsResponseEventsItemDocIdsList = Array<string>;
|
|
1076
|
+
export declare const AnalyticsEventsResponseEventsItemDocIdsList: S.Schema<AnalyticsEventsResponseEventsItemDocIdsList>;
|
|
1077
|
+
export interface AnalyticsEventsResponseEventsItem {
|
|
1078
|
+
name?: string;
|
|
1079
|
+
event_type?: string;
|
|
1080
|
+
collection?: string;
|
|
1081
|
+
timestamp?: number;
|
|
1082
|
+
user_id?: string;
|
|
1083
|
+
doc_id?: string;
|
|
1084
|
+
doc_ids?: AnalyticsEventsResponseEventsItemDocIdsList;
|
|
1085
|
+
query?: string;
|
|
1086
|
+
}
|
|
1087
|
+
export declare const AnalyticsEventsResponseEventsItem: S.Schema<AnalyticsEventsResponseEventsItem>;
|
|
1088
|
+
export type AnalyticsEventsResponseEventsList = Array<AnalyticsEventsResponseEventsItem>;
|
|
1089
|
+
export declare const AnalyticsEventsResponseEventsList: S.Schema<AnalyticsEventsResponseEventsList>;
|
|
1090
|
+
export interface AnalyticsEventsResponse {
|
|
1091
|
+
events: AnalyticsEventsResponseEventsList;
|
|
1092
|
+
}
|
|
1093
|
+
export declare const AnalyticsEventsResponse: S.Schema<AnalyticsEventsResponse>;
|
|
1094
|
+
export interface GetAnalyticsRuleRequest {
|
|
1095
|
+
/** The name of the analytics rule to retrieve */
|
|
1096
|
+
ruleName: string;
|
|
1097
|
+
}
|
|
1098
|
+
export declare const GetAnalyticsRuleRequest: S.Schema<GetAnalyticsRuleRequest>;
|
|
1099
|
+
export type GetAnalyticsRuleResponseParamsMetaFieldsList = Array<string>;
|
|
1100
|
+
export declare const GetAnalyticsRuleResponseParamsMetaFieldsList: S.Schema<GetAnalyticsRuleResponseParamsMetaFieldsList>;
|
|
1101
|
+
export interface GetAnalyticsRuleResponseParams {
|
|
1102
|
+
destination_collection?: string;
|
|
1103
|
+
limit?: number;
|
|
1104
|
+
capture_search_requests?: boolean;
|
|
1105
|
+
meta_fields?: GetAnalyticsRuleResponseParamsMetaFieldsList;
|
|
1106
|
+
expand_query?: boolean;
|
|
1107
|
+
counter_field?: string;
|
|
1108
|
+
weight?: number;
|
|
1109
|
+
}
|
|
1110
|
+
export declare const GetAnalyticsRuleResponseParams: S.Schema<GetAnalyticsRuleResponseParams>;
|
|
1111
|
+
export interface GetAnalyticsRuleResponse {
|
|
1112
|
+
name: string;
|
|
1113
|
+
type: AnalyticsRuleType;
|
|
1114
|
+
collection: string;
|
|
1115
|
+
event_type: string;
|
|
1116
|
+
rule_tag?: string;
|
|
1117
|
+
params?: GetAnalyticsRuleResponseParams;
|
|
1118
|
+
}
|
|
1119
|
+
export declare const GetAnalyticsRuleResponse: S.Schema<GetAnalyticsRuleResponse>;
|
|
1120
|
+
export interface GetAnalyticsRulesRequest {
|
|
1121
|
+
/** Filter rules by rule_tag */
|
|
1122
|
+
rule_tag?: string;
|
|
1123
|
+
}
|
|
1124
|
+
export declare const GetAnalyticsRulesRequest: S.Schema<GetAnalyticsRulesRequest>;
|
|
1125
|
+
export type GetAnalyticsRulesResponseBodyList = Array<AnalyticsRule>;
|
|
1126
|
+
export declare const GetAnalyticsRulesResponseBodyList: S.Schema<GetAnalyticsRulesResponseBodyList>;
|
|
1127
|
+
export type GetAnalyticsRulesResponse = GetAnalyticsRulesResponseBodyList;
|
|
1128
|
+
export declare const GetAnalyticsRulesResponse: S.Schema<GetAnalyticsRulesResponse>;
|
|
1129
|
+
export interface GetAnalyticsStatusRequest {
|
|
1130
|
+
}
|
|
1131
|
+
export declare const GetAnalyticsStatusRequest: S.Schema<GetAnalyticsStatusRequest>;
|
|
1132
|
+
export interface AnalyticsStatus {
|
|
1133
|
+
popular_prefix_queries?: number;
|
|
1134
|
+
nohits_prefix_queries?: number;
|
|
1135
|
+
log_prefix_queries?: number;
|
|
1136
|
+
query_log_events?: number;
|
|
1137
|
+
query_counter_events?: number;
|
|
1138
|
+
doc_log_events?: number;
|
|
1139
|
+
doc_counter_events?: number;
|
|
1140
|
+
}
|
|
1141
|
+
export declare const AnalyticsStatus: S.Schema<AnalyticsStatus>;
|
|
1142
|
+
export interface GetAPIStatsRequest {
|
|
1143
|
+
}
|
|
1144
|
+
export declare const GetAPIStatsRequest: S.Schema<GetAPIStatsRequest>;
|
|
1145
|
+
export interface APIStatsResponse {
|
|
1146
|
+
delete_latency_ms?: number;
|
|
1147
|
+
delete_requests_per_second?: number;
|
|
1148
|
+
import_latency_ms?: number;
|
|
1149
|
+
import_requests_per_second?: number;
|
|
1150
|
+
latency_ms?: unknown;
|
|
1151
|
+
overloaded_requests_per_second?: number;
|
|
1152
|
+
pending_write_batches?: number;
|
|
1153
|
+
requests_per_second?: unknown;
|
|
1154
|
+
search_latency_ms?: number;
|
|
1155
|
+
search_requests_per_second?: number;
|
|
1156
|
+
total_requests_per_second?: number;
|
|
1157
|
+
write_latency_ms?: number;
|
|
1158
|
+
write_requests_per_second?: number;
|
|
1159
|
+
}
|
|
1160
|
+
export declare const APIStatsResponse: S.Schema<APIStatsResponse>;
|
|
1161
|
+
export interface GetCollectionRequest {
|
|
1162
|
+
/** The name of the collection to retrieve */
|
|
1163
|
+
collectionName: string;
|
|
1164
|
+
}
|
|
1165
|
+
export declare const GetCollectionRequest: S.Schema<GetCollectionRequest>;
|
|
1166
|
+
/** A list of fields for querying, filtering and faceting */
|
|
1167
|
+
export type GetCollectionResponseFieldsList = Array<Field>;
|
|
1168
|
+
export declare const GetCollectionResponseFieldsList: S.Schema<GetCollectionResponseFieldsList>;
|
|
1169
|
+
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
1170
|
+
export type GetCollectionResponseTokenSeparatorsList = Array<string>;
|
|
1171
|
+
export declare const GetCollectionResponseTokenSeparatorsList: S.Schema<GetCollectionResponseTokenSeparatorsList>;
|
|
1172
|
+
/** List of synonym set names to associate with this collection */
|
|
1173
|
+
export type GetCollectionResponseSynonymSetsList = Array<string>;
|
|
1174
|
+
export declare const GetCollectionResponseSynonymSetsList: S.Schema<GetCollectionResponseSynonymSetsList>;
|
|
1175
|
+
/** List of symbols or special characters to be indexed. */
|
|
1176
|
+
export type GetCollectionResponseSymbolsToIndexList = Array<string>;
|
|
1177
|
+
export declare const GetCollectionResponseSymbolsToIndexList: S.Schema<GetCollectionResponseSymbolsToIndexList>;
|
|
1178
|
+
export interface GetCollectionResponse {
|
|
1179
|
+
/** Name of the collection */
|
|
1180
|
+
name: string;
|
|
1181
|
+
/** A list of fields for querying, filtering and faceting */
|
|
1182
|
+
fields: GetCollectionResponseFieldsList;
|
|
1183
|
+
/** The name of an int32 / float field that determines the order in which the search results are ranked when a sort_by clause is not provided during searching. This field must indicate some kind of popularity. */
|
|
1184
|
+
default_sorting_field?: string;
|
|
1185
|
+
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
1186
|
+
token_separators?: GetCollectionResponseTokenSeparatorsList;
|
|
1187
|
+
/** List of synonym set names to associate with this collection */
|
|
1188
|
+
synonym_sets?: GetCollectionResponseSynonymSetsList;
|
|
1189
|
+
/** Enables experimental support at a collection level for nested object or object array fields. This field is only available if the Typesense server is version `0.24.0.rcn34` or later. */
|
|
1190
|
+
enable_nested_fields?: boolean;
|
|
1191
|
+
/** List of symbols or special characters to be indexed. */
|
|
1192
|
+
symbols_to_index?: GetCollectionResponseSymbolsToIndexList;
|
|
1193
|
+
voice_query_model?: VoiceQueryModelCollectionConfig;
|
|
1194
|
+
/** Optional details about the collection, e.g., when it was created, who created it etc. */
|
|
1195
|
+
metadata?: unknown;
|
|
1196
|
+
/** Number of documents in the collection */
|
|
1197
|
+
num_documents: number;
|
|
1198
|
+
/** Timestamp of when the collection was created (Unix epoch in seconds) */
|
|
1199
|
+
created_at: number;
|
|
1200
|
+
}
|
|
1201
|
+
export declare const GetCollectionResponse: S.Schema<GetCollectionResponse>;
|
|
1202
|
+
export interface GetCollectionsRequestGetCollectionsParameters {
|
|
1203
|
+
/** Comma-separated list of fields from the collection to exclude from the response */
|
|
1204
|
+
exclude_fields?: string;
|
|
1205
|
+
/** Number of collections to fetch. Default: returns all collections. */
|
|
1206
|
+
limit?: number;
|
|
1207
|
+
/** Identifies the starting point to return collections when paginating. */
|
|
1208
|
+
offset?: number;
|
|
1209
|
+
}
|
|
1210
|
+
export declare const GetCollectionsRequestGetCollectionsParameters: S.Schema<GetCollectionsRequestGetCollectionsParameters>;
|
|
1211
|
+
export interface GetCollectionsRequest {
|
|
1212
|
+
getCollectionsParameters?: GetCollectionsRequestGetCollectionsParameters;
|
|
1213
|
+
}
|
|
1214
|
+
export declare const GetCollectionsRequest: S.Schema<GetCollectionsRequest>;
|
|
1215
|
+
/** A list of fields for querying, filtering and faceting */
|
|
1216
|
+
export type CollectionResponseFieldsList = Array<Field>;
|
|
1217
|
+
export declare const CollectionResponseFieldsList: S.Schema<CollectionResponseFieldsList>;
|
|
1218
|
+
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
1219
|
+
export type CollectionResponseTokenSeparatorsList = Array<string>;
|
|
1220
|
+
export declare const CollectionResponseTokenSeparatorsList: S.Schema<CollectionResponseTokenSeparatorsList>;
|
|
1221
|
+
/** List of synonym set names to associate with this collection */
|
|
1222
|
+
export type CollectionResponseSynonymSetsList = Array<string>;
|
|
1223
|
+
export declare const CollectionResponseSynonymSetsList: S.Schema<CollectionResponseSynonymSetsList>;
|
|
1224
|
+
/** List of symbols or special characters to be indexed. */
|
|
1225
|
+
export type CollectionResponseSymbolsToIndexList = Array<string>;
|
|
1226
|
+
export declare const CollectionResponseSymbolsToIndexList: S.Schema<CollectionResponseSymbolsToIndexList>;
|
|
1227
|
+
export interface CollectionResponse {
|
|
1228
|
+
/** Name of the collection */
|
|
1229
|
+
name: string;
|
|
1230
|
+
/** A list of fields for querying, filtering and faceting */
|
|
1231
|
+
fields: CollectionResponseFieldsList;
|
|
1232
|
+
/** The name of an int32 / float field that determines the order in which the search results are ranked when a sort_by clause is not provided during searching. This field must indicate some kind of popularity. */
|
|
1233
|
+
default_sorting_field?: string;
|
|
1234
|
+
/** List of symbols or special characters to be used for splitting the text into individual words in addition to space and new-line characters. */
|
|
1235
|
+
token_separators?: CollectionResponseTokenSeparatorsList;
|
|
1236
|
+
/** List of synonym set names to associate with this collection */
|
|
1237
|
+
synonym_sets?: CollectionResponseSynonymSetsList;
|
|
1238
|
+
/** Enables experimental support at a collection level for nested object or object array fields. This field is only available if the Typesense server is version `0.24.0.rcn34` or later. */
|
|
1239
|
+
enable_nested_fields?: boolean;
|
|
1240
|
+
/** List of symbols or special characters to be indexed. */
|
|
1241
|
+
symbols_to_index?: CollectionResponseSymbolsToIndexList;
|
|
1242
|
+
voice_query_model?: VoiceQueryModelCollectionConfig;
|
|
1243
|
+
/** Optional details about the collection, e.g., when it was created, who created it etc. */
|
|
1244
|
+
metadata?: unknown;
|
|
1245
|
+
/** Number of documents in the collection */
|
|
1246
|
+
num_documents: number;
|
|
1247
|
+
/** Timestamp of when the collection was created (Unix epoch in seconds) */
|
|
1248
|
+
created_at: number;
|
|
1249
|
+
}
|
|
1250
|
+
export declare const CollectionResponse: S.Schema<CollectionResponse>;
|
|
1251
|
+
export type GetCollectionsResponseBodyList = Array<CollectionResponse>;
|
|
1252
|
+
export declare const GetCollectionsResponseBodyList: S.Schema<GetCollectionsResponseBodyList>;
|
|
1253
|
+
export type GetCollectionsResponse = GetCollectionsResponseBodyList;
|
|
1254
|
+
export declare const GetCollectionsResponse: S.Schema<GetCollectionsResponse>;
|
|
1255
|
+
export interface GetConversationModelRequest {
|
|
1256
|
+
/** The id of the conversation model to retrieve */
|
|
1257
|
+
modelId: string;
|
|
1258
|
+
}
|
|
1259
|
+
export declare const GetConversationModelRequest: S.Schema<GetConversationModelRequest>;
|
|
1260
|
+
export interface GetConversationModelResponse {
|
|
1261
|
+
/** An explicit id for the model, otherwise the API will return a response with an auto-generated conversation model id. */
|
|
1262
|
+
id: string;
|
|
1263
|
+
/** Name of the LLM model offered by OpenAI, Cloudflare or vLLM */
|
|
1264
|
+
model_name: string;
|
|
1265
|
+
/** The LLM service's API Key */
|
|
1266
|
+
api_key?: string | import("effect/Redacted").Redacted<string>;
|
|
1267
|
+
/** Typesense collection that stores the historical conversations */
|
|
1268
|
+
history_collection: string;
|
|
1269
|
+
/** LLM service's account ID (only applicable for Cloudflare) */
|
|
1270
|
+
account_id?: string;
|
|
1271
|
+
/** The system prompt that contains special instructions to the LLM */
|
|
1272
|
+
system_prompt?: string;
|
|
1273
|
+
/** Time interval in seconds after which the messages would be deleted. Default: 86400 (24 hours) */
|
|
1274
|
+
ttl?: number;
|
|
1275
|
+
/** The maximum number of bytes to send to the LLM in every API call. Consult the LLM's documentation on the number of bytes supported in the context window. */
|
|
1276
|
+
max_bytes: number;
|
|
1277
|
+
/** URL of vLLM service */
|
|
1278
|
+
vllm_url?: string;
|
|
1279
|
+
}
|
|
1280
|
+
export declare const GetConversationModelResponse: S.Schema<GetConversationModelResponse>;
|
|
1281
|
+
export interface GetCurationSetRequest {
|
|
1282
|
+
/** The name of the curation set to retrieve */
|
|
1283
|
+
curationSetName: string;
|
|
1284
|
+
}
|
|
1285
|
+
export declare const GetCurationSetRequest: S.Schema<GetCurationSetRequest>;
|
|
1286
|
+
/** List of tag values to associate with this curation rule. */
|
|
1287
|
+
export type CurationRuleTagsList = Array<string>;
|
|
1288
|
+
export declare const CurationRuleTagsList: S.Schema<CurationRuleTagsList>;
|
|
1289
|
+
/** Indicates whether the match on the query term should be `exact` or `contains`. If we want to match all queries that contained the word `apple`, we will use the `contains` match instead. */
|
|
1290
|
+
export type CurationRuleMatch = "exact" | "contains";
|
|
1291
|
+
export declare const CurationRuleMatch: any;
|
|
1292
|
+
export interface CurationRule {
|
|
1293
|
+
/** List of tag values to associate with this curation rule. */
|
|
1294
|
+
tags?: CurationRuleTagsList;
|
|
1295
|
+
/** Indicates what search queries should be curated */
|
|
1296
|
+
query?: string;
|
|
1297
|
+
/** Indicates whether the match on the query term should be `exact` or `contains`. If we want to match all queries that contained the word `apple`, we will use the `contains` match instead. */
|
|
1298
|
+
match?: CurationRuleMatch | (string & {});
|
|
1299
|
+
/** Indicates that the curation should apply when the filter_by parameter in a search query exactly matches the string specified here (including backticks, spaces, brackets, etc). */
|
|
1300
|
+
filter_by?: string;
|
|
1301
|
+
}
|
|
1302
|
+
export declare const CurationRule: S.Schema<CurationRule>;
|
|
1303
|
+
export interface CurationInclude {
|
|
1304
|
+
/** document id that should be included */
|
|
1305
|
+
id: string;
|
|
1306
|
+
/** position number where document should be included in the search results */
|
|
1307
|
+
position: number;
|
|
1308
|
+
}
|
|
1309
|
+
export declare const CurationInclude: S.Schema<CurationInclude>;
|
|
1310
|
+
/** List of document `id`s that should be included in the search results with their corresponding `position`s. */
|
|
1311
|
+
export type CurationItemCreateSchemaIncludesList = Array<CurationInclude>;
|
|
1312
|
+
export declare const CurationItemCreateSchemaIncludesList: S.Schema<CurationItemCreateSchemaIncludesList>;
|
|
1313
|
+
export interface CurationExclude {
|
|
1314
|
+
/** document id that should be excluded from the search results. */
|
|
1315
|
+
id: string;
|
|
1316
|
+
}
|
|
1317
|
+
export declare const CurationExclude: S.Schema<CurationExclude>;
|
|
1318
|
+
/** List of document `id`s that should be excluded from the search results. */
|
|
1319
|
+
export type CurationItemCreateSchemaExcludesList = Array<CurationExclude>;
|
|
1320
|
+
export declare const CurationItemCreateSchemaExcludesList: S.Schema<CurationItemCreateSchemaExcludesList>;
|
|
1321
|
+
export interface CurationItemCreateSchema {
|
|
1322
|
+
rule: CurationRule;
|
|
1323
|
+
/** List of document `id`s that should be included in the search results with their corresponding `position`s. */
|
|
1324
|
+
includes?: CurationItemCreateSchemaIncludesList;
|
|
1325
|
+
/** List of document `id`s that should be excluded from the search results. */
|
|
1326
|
+
excludes?: CurationItemCreateSchemaExcludesList;
|
|
1327
|
+
/** A filter by clause that is applied to any search query that matches the curation rule. */
|
|
1328
|
+
filter_by?: string;
|
|
1329
|
+
/** Indicates whether search query tokens that exist in the curation's rule should be removed from the search query. */
|
|
1330
|
+
remove_matched_tokens?: boolean;
|
|
1331
|
+
/** Return a custom JSON object in the Search API response, when this rule is triggered. This can can be used to display a pre-defined message (eg: a promotion banner) on the front-end when a particular rule is triggered. */
|
|
1332
|
+
metadata?: unknown;
|
|
1333
|
+
/** A sort by clause that is applied to any search query that matches the curation rule. */
|
|
1334
|
+
sort_by?: string;
|
|
1335
|
+
/** Replaces the current search query with this value, when the search query matches the curation rule. */
|
|
1336
|
+
replace_query?: string;
|
|
1337
|
+
/** When set to true, the filter conditions of the query is applied to the curated records as well. Default: false. */
|
|
1338
|
+
filter_curated_hits?: boolean;
|
|
1339
|
+
/** A Unix timestamp that indicates the date/time from which the curation will be active. You can use this to create rules that start applying from a future point in time. */
|
|
1340
|
+
effective_from_ts?: number;
|
|
1341
|
+
/** A Unix timestamp that indicates the date/time until which the curation will be active. You can use this to create rules that stop applying after a period of time. */
|
|
1342
|
+
effective_to_ts?: number;
|
|
1343
|
+
/** When set to true, curation processing will stop at the first matching rule. When set to false curation processing will continue and multiple curation actions will be triggered in sequence. Curations are processed in the lexical sort order of their id field. */
|
|
1344
|
+
stop_processing?: boolean;
|
|
1345
|
+
/** ID of the curation item */
|
|
1346
|
+
id?: string;
|
|
1347
|
+
}
|
|
1348
|
+
export declare const CurationItemCreateSchema: S.Schema<CurationItemCreateSchema>;
|
|
1349
|
+
/** Array of curation items */
|
|
1350
|
+
export type GetCurationSetResponseItemsList = Array<CurationItemCreateSchema>;
|
|
1351
|
+
export declare const GetCurationSetResponseItemsList: S.Schema<GetCurationSetResponseItemsList>;
|
|
1352
|
+
export interface GetCurationSetResponse {
|
|
1353
|
+
/** Array of curation items */
|
|
1354
|
+
items: GetCurationSetResponseItemsList;
|
|
1355
|
+
/** Optional description for the curation set */
|
|
1356
|
+
description?: string;
|
|
1357
|
+
name: string;
|
|
1358
|
+
}
|
|
1359
|
+
export declare const GetCurationSetResponse: S.Schema<GetCurationSetResponse>;
|
|
1360
|
+
export interface GetCurationSetItemRequest {
|
|
1361
|
+
/** The name of the curation set */
|
|
1362
|
+
curationSetName: string;
|
|
1363
|
+
/** The id of the curation item to retrieve */
|
|
1364
|
+
itemId: string;
|
|
1365
|
+
}
|
|
1366
|
+
export declare const GetCurationSetItemRequest: S.Schema<GetCurationSetItemRequest>;
|
|
1367
|
+
/** List of document `id`s that should be included in the search results with their corresponding `position`s. */
|
|
1368
|
+
export type GetCurationSetItemResponseIncludesList = Array<CurationInclude>;
|
|
1369
|
+
export declare const GetCurationSetItemResponseIncludesList: S.Schema<GetCurationSetItemResponseIncludesList>;
|
|
1370
|
+
/** List of document `id`s that should be excluded from the search results. */
|
|
1371
|
+
export type GetCurationSetItemResponseExcludesList = Array<CurationExclude>;
|
|
1372
|
+
export declare const GetCurationSetItemResponseExcludesList: S.Schema<GetCurationSetItemResponseExcludesList>;
|
|
1373
|
+
export interface GetCurationSetItemResponse {
|
|
1374
|
+
rule: CurationRule;
|
|
1375
|
+
/** List of document `id`s that should be included in the search results with their corresponding `position`s. */
|
|
1376
|
+
includes?: GetCurationSetItemResponseIncludesList;
|
|
1377
|
+
/** List of document `id`s that should be excluded from the search results. */
|
|
1378
|
+
excludes?: GetCurationSetItemResponseExcludesList;
|
|
1379
|
+
/** A filter by clause that is applied to any search query that matches the curation rule. */
|
|
1380
|
+
filter_by?: string;
|
|
1381
|
+
/** Indicates whether search query tokens that exist in the curation's rule should be removed from the search query. */
|
|
1382
|
+
remove_matched_tokens?: boolean;
|
|
1383
|
+
/** Return a custom JSON object in the Search API response, when this rule is triggered. This can can be used to display a pre-defined message (eg: a promotion banner) on the front-end when a particular rule is triggered. */
|
|
1384
|
+
metadata?: unknown;
|
|
1385
|
+
/** A sort by clause that is applied to any search query that matches the curation rule. */
|
|
1386
|
+
sort_by?: string;
|
|
1387
|
+
/** Replaces the current search query with this value, when the search query matches the curation rule. */
|
|
1388
|
+
replace_query?: string;
|
|
1389
|
+
/** When set to true, the filter conditions of the query is applied to the curated records as well. Default: false. */
|
|
1390
|
+
filter_curated_hits?: boolean;
|
|
1391
|
+
/** A Unix timestamp that indicates the date/time from which the curation will be active. You can use this to create rules that start applying from a future point in time. */
|
|
1392
|
+
effective_from_ts?: number;
|
|
1393
|
+
/** A Unix timestamp that indicates the date/time until which the curation will be active. You can use this to create rules that stop applying after a period of time. */
|
|
1394
|
+
effective_to_ts?: number;
|
|
1395
|
+
/** When set to true, curation processing will stop at the first matching rule. When set to false curation processing will continue and multiple curation actions will be triggered in sequence. Curations are processed in the lexical sort order of their id field. */
|
|
1396
|
+
stop_processing?: boolean;
|
|
1397
|
+
/** ID of the curation item */
|
|
1398
|
+
id: string;
|
|
1399
|
+
}
|
|
1400
|
+
export declare const GetCurationSetItemResponse: S.Schema<GetCurationSetItemResponse>;
|
|
1401
|
+
export interface GetCurationSetItemsRequest {
|
|
1402
|
+
/** The name of the curation set to retrieve items for */
|
|
1403
|
+
curationSetName: string;
|
|
1404
|
+
}
|
|
1405
|
+
export declare const GetCurationSetItemsRequest: S.Schema<GetCurationSetItemsRequest>;
|
|
1406
|
+
/** List of document `id`s that should be included in the search results with their corresponding `position`s. */
|
|
1407
|
+
export type CurationItemSchemaIncludesList = Array<CurationInclude>;
|
|
1408
|
+
export declare const CurationItemSchemaIncludesList: S.Schema<CurationItemSchemaIncludesList>;
|
|
1409
|
+
/** List of document `id`s that should be excluded from the search results. */
|
|
1410
|
+
export type CurationItemSchemaExcludesList = Array<CurationExclude>;
|
|
1411
|
+
export declare const CurationItemSchemaExcludesList: S.Schema<CurationItemSchemaExcludesList>;
|
|
1412
|
+
export interface CurationItemSchema {
|
|
1413
|
+
rule: CurationRule;
|
|
1414
|
+
/** List of document `id`s that should be included in the search results with their corresponding `position`s. */
|
|
1415
|
+
includes?: CurationItemSchemaIncludesList;
|
|
1416
|
+
/** List of document `id`s that should be excluded from the search results. */
|
|
1417
|
+
excludes?: CurationItemSchemaExcludesList;
|
|
1418
|
+
/** A filter by clause that is applied to any search query that matches the curation rule. */
|
|
1419
|
+
filter_by?: string;
|
|
1420
|
+
/** Indicates whether search query tokens that exist in the curation's rule should be removed from the search query. */
|
|
1421
|
+
remove_matched_tokens?: boolean;
|
|
1422
|
+
/** Return a custom JSON object in the Search API response, when this rule is triggered. This can can be used to display a pre-defined message (eg: a promotion banner) on the front-end when a particular rule is triggered. */
|
|
1423
|
+
metadata?: unknown;
|
|
1424
|
+
/** A sort by clause that is applied to any search query that matches the curation rule. */
|
|
1425
|
+
sort_by?: string;
|
|
1426
|
+
/** Replaces the current search query with this value, when the search query matches the curation rule. */
|
|
1427
|
+
replace_query?: string;
|
|
1428
|
+
/** When set to true, the filter conditions of the query is applied to the curated records as well. Default: false. */
|
|
1429
|
+
filter_curated_hits?: boolean;
|
|
1430
|
+
/** A Unix timestamp that indicates the date/time from which the curation will be active. You can use this to create rules that start applying from a future point in time. */
|
|
1431
|
+
effective_from_ts?: number;
|
|
1432
|
+
/** A Unix timestamp that indicates the date/time until which the curation will be active. You can use this to create rules that stop applying after a period of time. */
|
|
1433
|
+
effective_to_ts?: number;
|
|
1434
|
+
/** When set to true, curation processing will stop at the first matching rule. When set to false curation processing will continue and multiple curation actions will be triggered in sequence. Curations are processed in the lexical sort order of their id field. */
|
|
1435
|
+
stop_processing?: boolean;
|
|
1436
|
+
/** ID of the curation item */
|
|
1437
|
+
id: string;
|
|
1438
|
+
}
|
|
1439
|
+
export declare const CurationItemSchema: S.Schema<CurationItemSchema>;
|
|
1440
|
+
export type GetCurationSetItemsResponseBodyList = Array<CurationItemSchema>;
|
|
1441
|
+
export declare const GetCurationSetItemsResponseBodyList: S.Schema<GetCurationSetItemsResponseBodyList>;
|
|
1442
|
+
export type GetCurationSetItemsResponse = GetCurationSetItemsResponseBodyList;
|
|
1443
|
+
export declare const GetCurationSetItemsResponse: S.Schema<GetCurationSetItemsResponse>;
|
|
1444
|
+
export interface GetCurationSetsRequest {
|
|
1445
|
+
}
|
|
1446
|
+
export declare const GetCurationSetsRequest: S.Schema<GetCurationSetsRequest>;
|
|
1447
|
+
/** Array of curation items */
|
|
1448
|
+
export type CurationSetSchemaItemsList = Array<CurationItemCreateSchema>;
|
|
1449
|
+
export declare const CurationSetSchemaItemsList: S.Schema<CurationSetSchemaItemsList>;
|
|
1450
|
+
export interface CurationSetSchema {
|
|
1451
|
+
/** Array of curation items */
|
|
1452
|
+
items: CurationSetSchemaItemsList;
|
|
1453
|
+
/** Optional description for the curation set */
|
|
1454
|
+
description?: string;
|
|
1455
|
+
name: string;
|
|
1456
|
+
}
|
|
1457
|
+
export declare const CurationSetSchema: S.Schema<CurationSetSchema>;
|
|
1458
|
+
export type GetCurationSetsResponseBodyList = Array<CurationSetSchema>;
|
|
1459
|
+
export declare const GetCurationSetsResponseBodyList: S.Schema<GetCurationSetsResponseBodyList>;
|
|
1460
|
+
export type GetCurationSetsResponse = GetCurationSetsResponseBodyList;
|
|
1461
|
+
export declare const GetCurationSetsResponse: S.Schema<GetCurationSetsResponse>;
|
|
1462
|
+
export interface GetDocumentRequest {
|
|
1463
|
+
/** The name of the collection to search for the document under */
|
|
1464
|
+
collectionName: string;
|
|
1465
|
+
/** The Document ID */
|
|
1466
|
+
documentId: string;
|
|
1467
|
+
}
|
|
1468
|
+
export declare const GetDocumentRequest: S.Schema<GetDocumentRequest>;
|
|
1469
|
+
export type GetDocumentResponse = unknown;
|
|
1470
|
+
export declare const GetDocumentResponse: S.Schema<GetDocumentResponse>;
|
|
1471
|
+
export interface GetKeyRequest {
|
|
1472
|
+
/** The ID of the key to retrieve */
|
|
1473
|
+
keyId: number;
|
|
1474
|
+
}
|
|
1475
|
+
export declare const GetKeyRequest: S.Schema<GetKeyRequest>;
|
|
1476
|
+
export type GetKeyResponseActionsList = Array<string>;
|
|
1477
|
+
export declare const GetKeyResponseActionsList: S.Schema<GetKeyResponseActionsList>;
|
|
1478
|
+
export type GetKeyResponseCollectionsList = Array<string>;
|
|
1479
|
+
export declare const GetKeyResponseCollectionsList: S.Schema<GetKeyResponseCollectionsList>;
|
|
1480
|
+
export interface GetKeyResponse {
|
|
1481
|
+
value?: string;
|
|
1482
|
+
description: string;
|
|
1483
|
+
actions: GetKeyResponseActionsList;
|
|
1484
|
+
collections: GetKeyResponseCollectionsList;
|
|
1485
|
+
expires_at?: number;
|
|
1486
|
+
id?: number;
|
|
1487
|
+
value_prefix?: string;
|
|
1488
|
+
}
|
|
1489
|
+
export declare const GetKeyResponse: S.Schema<GetKeyResponse>;
|
|
1490
|
+
export interface GetKeysRequest {
|
|
1491
|
+
}
|
|
1492
|
+
export declare const GetKeysRequest: S.Schema<GetKeysRequest>;
|
|
1493
|
+
export type ApiKeyActionsList = Array<string>;
|
|
1494
|
+
export declare const ApiKeyActionsList: S.Schema<ApiKeyActionsList>;
|
|
1495
|
+
export type ApiKeyCollectionsList = Array<string>;
|
|
1496
|
+
export declare const ApiKeyCollectionsList: S.Schema<ApiKeyCollectionsList>;
|
|
1497
|
+
export interface ApiKey {
|
|
1498
|
+
value?: string;
|
|
1499
|
+
description: string;
|
|
1500
|
+
actions: ApiKeyActionsList;
|
|
1501
|
+
collections: ApiKeyCollectionsList;
|
|
1502
|
+
expires_at?: number;
|
|
1503
|
+
id?: number;
|
|
1504
|
+
value_prefix?: string;
|
|
1505
|
+
}
|
|
1506
|
+
export declare const ApiKey: S.Schema<ApiKey>;
|
|
1507
|
+
export type ApiKeysResponseKeysList = Array<ApiKey>;
|
|
1508
|
+
export declare const ApiKeysResponseKeysList: S.Schema<ApiKeysResponseKeysList>;
|
|
1509
|
+
export interface ApiKeysResponse {
|
|
1510
|
+
keys: ApiKeysResponseKeysList;
|
|
1511
|
+
}
|
|
1512
|
+
export declare const ApiKeysResponse: S.Schema<ApiKeysResponse>;
|
|
1513
|
+
export interface GetMetricsRequest {
|
|
1514
|
+
}
|
|
1515
|
+
export declare const GetMetricsRequest: S.Schema<GetMetricsRequest>;
|
|
1516
|
+
export type GetMetricsResponse = unknown;
|
|
1517
|
+
export declare const GetMetricsResponse: S.Schema<GetMetricsResponse>;
|
|
1518
|
+
export interface GetNLSearchModelRequest {
|
|
1519
|
+
/** The ID of the NL search model to retrieve */
|
|
1520
|
+
modelId: string;
|
|
1521
|
+
}
|
|
1522
|
+
export declare const GetNLSearchModelRequest: S.Schema<GetNLSearchModelRequest>;
|
|
1523
|
+
/** Stop sequences for the NL model (Google-specific) */
|
|
1524
|
+
export type GetNLSearchModelResponseStopSequencesList = Array<string>;
|
|
1525
|
+
export declare const GetNLSearchModelResponseStopSequencesList: S.Schema<GetNLSearchModelResponseStopSequencesList>;
|
|
1526
|
+
export interface GetNLSearchModelResponse {
|
|
1527
|
+
/** Name of the NL model to use */
|
|
1528
|
+
model_name?: string;
|
|
1529
|
+
/** API key for the NL model service */
|
|
1530
|
+
api_key?: string | import("effect/Redacted").Redacted<string>;
|
|
1531
|
+
/** Custom API URL for the NL model service */
|
|
1532
|
+
api_url?: string;
|
|
1533
|
+
/** Maximum number of bytes to process */
|
|
1534
|
+
max_bytes?: number;
|
|
1535
|
+
/** Temperature parameter for the NL model */
|
|
1536
|
+
temperature?: number;
|
|
1537
|
+
/** System prompt for the NL model */
|
|
1538
|
+
system_prompt?: string;
|
|
1539
|
+
/** Top-p parameter for the NL model (Google-specific) */
|
|
1540
|
+
top_p?: number;
|
|
1541
|
+
/** Top-k parameter for the NL model (Google-specific) */
|
|
1542
|
+
top_k?: number;
|
|
1543
|
+
/** Stop sequences for the NL model (Google-specific) */
|
|
1544
|
+
stop_sequences?: GetNLSearchModelResponseStopSequencesList;
|
|
1545
|
+
/** API version for the NL model service */
|
|
1546
|
+
api_version?: string;
|
|
1547
|
+
/** Project ID for GCP Vertex AI */
|
|
1548
|
+
project_id?: string;
|
|
1549
|
+
/** Access token for GCP Vertex AI */
|
|
1550
|
+
access_token?: string | import("effect/Redacted").Redacted<string>;
|
|
1551
|
+
/** Refresh token for GCP Vertex AI */
|
|
1552
|
+
refresh_token?: string | import("effect/Redacted").Redacted<string>;
|
|
1553
|
+
/** Client ID for GCP Vertex AI */
|
|
1554
|
+
client_id?: string;
|
|
1555
|
+
/** Client secret for GCP Vertex AI */
|
|
1556
|
+
client_secret?: string | import("effect/Redacted").Redacted<string>;
|
|
1557
|
+
/** Region for GCP Vertex AI */
|
|
1558
|
+
region?: string;
|
|
1559
|
+
/** Maximum output tokens for GCP Vertex AI */
|
|
1560
|
+
max_output_tokens?: number;
|
|
1561
|
+
/** Account ID for Cloudflare-specific models */
|
|
1562
|
+
account_id?: string;
|
|
1563
|
+
/** Optional ID for the NL search model */
|
|
1564
|
+
id: string;
|
|
1565
|
+
}
|
|
1566
|
+
export declare const GetNLSearchModelResponse: S.Schema<GetNLSearchModelResponse>;
|
|
1567
|
+
export interface GetPresetRequest {
|
|
1568
|
+
/** The ID of the preset to retrieve. */
|
|
1569
|
+
presetId: string;
|
|
1570
|
+
}
|
|
1571
|
+
export declare const GetPresetRequest: S.Schema<GetPresetRequest>;
|
|
1572
|
+
export type GetPresetResponseValue = SearchParameters | MultiSearchSearchesParameter;
|
|
1573
|
+
export declare const GetPresetResponseValue: any;
|
|
1574
|
+
export interface GetPresetResponse {
|
|
1575
|
+
value: GetPresetResponseValue;
|
|
1576
|
+
name: string;
|
|
1577
|
+
}
|
|
1578
|
+
export declare const GetPresetResponse: S.Schema<GetPresetResponse>;
|
|
1579
|
+
export interface GetSchemaChangesRequest {
|
|
1580
|
+
}
|
|
1581
|
+
export declare const GetSchemaChangesRequest: S.Schema<GetSchemaChangesRequest>;
|
|
1582
|
+
export interface SchemaChangeStatus {
|
|
1583
|
+
/** Name of the collection being modified */
|
|
1584
|
+
collection?: string;
|
|
1585
|
+
/** Number of documents that have been validated */
|
|
1586
|
+
validated_docs?: number;
|
|
1587
|
+
/** Number of documents that have been altered */
|
|
1588
|
+
altered_docs?: number;
|
|
1589
|
+
}
|
|
1590
|
+
export declare const SchemaChangeStatus: S.Schema<SchemaChangeStatus>;
|
|
1591
|
+
export type GetSchemaChangesResponseBodyList = Array<SchemaChangeStatus>;
|
|
1592
|
+
export declare const GetSchemaChangesResponseBodyList: S.Schema<GetSchemaChangesResponseBodyList>;
|
|
1593
|
+
export type GetSchemaChangesResponse = GetSchemaChangesResponseBodyList;
|
|
1594
|
+
export declare const GetSchemaChangesResponse: S.Schema<GetSchemaChangesResponse>;
|
|
1595
|
+
export interface GetStemmingDictionaryRequest {
|
|
1596
|
+
/** The ID of the dictionary to retrieve */
|
|
1597
|
+
dictionaryId: string;
|
|
1598
|
+
}
|
|
1599
|
+
export declare const GetStemmingDictionaryRequest: S.Schema<GetStemmingDictionaryRequest>;
|
|
1600
|
+
export interface StemmingDictionaryWordsItem {
|
|
1601
|
+
/** The word form to be stemmed */
|
|
1602
|
+
word: string;
|
|
1603
|
+
/** The root form of the word */
|
|
1604
|
+
root: string;
|
|
1605
|
+
}
|
|
1606
|
+
export declare const StemmingDictionaryWordsItem: S.Schema<StemmingDictionaryWordsItem>;
|
|
1607
|
+
/** List of word mappings in the dictionary */
|
|
1608
|
+
export type StemmingDictionaryWordsList = Array<StemmingDictionaryWordsItem>;
|
|
1609
|
+
export declare const StemmingDictionaryWordsList: S.Schema<StemmingDictionaryWordsList>;
|
|
1610
|
+
export interface StemmingDictionary {
|
|
1611
|
+
/** Unique identifier for the dictionary */
|
|
1612
|
+
id: string;
|
|
1613
|
+
/** List of word mappings in the dictionary */
|
|
1614
|
+
words: StemmingDictionaryWordsList;
|
|
1615
|
+
}
|
|
1616
|
+
export declare const StemmingDictionary: S.Schema<StemmingDictionary>;
|
|
1617
|
+
export interface GetStopwordsSetRequest {
|
|
1618
|
+
/** The ID of the stopwords set to retrieve. */
|
|
1619
|
+
setId: string;
|
|
1620
|
+
}
|
|
1621
|
+
export declare const GetStopwordsSetRequest: S.Schema<GetStopwordsSetRequest>;
|
|
1622
|
+
export type StopwordsSetSchemaStopwordsList = Array<string>;
|
|
1623
|
+
export declare const StopwordsSetSchemaStopwordsList: S.Schema<StopwordsSetSchemaStopwordsList>;
|
|
1624
|
+
export interface StopwordsSetSchema {
|
|
1625
|
+
id: string;
|
|
1626
|
+
stopwords: StopwordsSetSchemaStopwordsList;
|
|
1627
|
+
locale?: string;
|
|
1628
|
+
}
|
|
1629
|
+
export declare const StopwordsSetSchema: S.Schema<StopwordsSetSchema>;
|
|
1630
|
+
export interface StopwordsSetRetrieveSchema {
|
|
1631
|
+
stopwords: StopwordsSetSchema;
|
|
1632
|
+
}
|
|
1633
|
+
export declare const StopwordsSetRetrieveSchema: S.Schema<StopwordsSetRetrieveSchema>;
|
|
1634
|
+
export interface GetStopwordsSetsRequest {
|
|
1635
|
+
}
|
|
1636
|
+
export declare const GetStopwordsSetsRequest: S.Schema<GetStopwordsSetsRequest>;
|
|
1637
|
+
export type StopwordsSetsRetrieveAllSchemaStopwordsList = Array<StopwordsSetSchema>;
|
|
1638
|
+
export declare const StopwordsSetsRetrieveAllSchemaStopwordsList: S.Schema<StopwordsSetsRetrieveAllSchemaStopwordsList>;
|
|
1639
|
+
export interface StopwordsSetsRetrieveAllSchema {
|
|
1640
|
+
stopwords: StopwordsSetsRetrieveAllSchemaStopwordsList;
|
|
1641
|
+
}
|
|
1642
|
+
export declare const StopwordsSetsRetrieveAllSchema: S.Schema<StopwordsSetsRetrieveAllSchema>;
|
|
1643
|
+
export interface GetSynonymSetRequest {
|
|
1644
|
+
/** The name of the synonym set to retrieve */
|
|
1645
|
+
synonymSetName: string;
|
|
1646
|
+
}
|
|
1647
|
+
export declare const GetSynonymSetRequest: S.Schema<GetSynonymSetRequest>;
|
|
1648
|
+
/** Array of words that should be considered as synonyms */
|
|
1649
|
+
export type SynonymItemSchemaSynonymsList = Array<string>;
|
|
1650
|
+
export declare const SynonymItemSchemaSynonymsList: S.Schema<SynonymItemSchemaSynonymsList>;
|
|
1651
|
+
/** By default, special characters are dropped from synonyms. Use this attribute to specify which special characters should be indexed as is */
|
|
1652
|
+
export type SynonymItemSchemaSymbolsToIndexList = Array<string>;
|
|
1653
|
+
export declare const SynonymItemSchemaSymbolsToIndexList: S.Schema<SynonymItemSchemaSymbolsToIndexList>;
|
|
1654
|
+
export interface SynonymItemSchema {
|
|
1655
|
+
/** Unique identifier for the synonym item */
|
|
1656
|
+
id: string;
|
|
1657
|
+
/** Array of words that should be considered as synonyms */
|
|
1658
|
+
synonyms: SynonymItemSchemaSynonymsList;
|
|
1659
|
+
/** For 1-way synonyms, indicates the root word that words in the synonyms parameter map to */
|
|
1660
|
+
root?: string;
|
|
1661
|
+
/** Locale for the synonym, leave blank to use the standard tokenizer */
|
|
1662
|
+
locale?: string;
|
|
1663
|
+
/** By default, special characters are dropped from synonyms. Use this attribute to specify which special characters should be indexed as is */
|
|
1664
|
+
symbols_to_index?: SynonymItemSchemaSymbolsToIndexList;
|
|
1665
|
+
}
|
|
1666
|
+
export declare const SynonymItemSchema: S.Schema<SynonymItemSchema>;
|
|
1667
|
+
/** Array of synonym items */
|
|
1668
|
+
export type GetSynonymSetResponseItemsList = Array<SynonymItemSchema>;
|
|
1669
|
+
export declare const GetSynonymSetResponseItemsList: S.Schema<GetSynonymSetResponseItemsList>;
|
|
1670
|
+
export interface GetSynonymSetResponse {
|
|
1671
|
+
/** Array of synonym items */
|
|
1672
|
+
items: GetSynonymSetResponseItemsList;
|
|
1673
|
+
/** Name of the synonym set */
|
|
1674
|
+
name: string;
|
|
1675
|
+
}
|
|
1676
|
+
export declare const GetSynonymSetResponse: S.Schema<GetSynonymSetResponse>;
|
|
1677
|
+
export interface GetSynonymSetItemRequest {
|
|
1678
|
+
/** The name of the synonym set */
|
|
1679
|
+
synonymSetName: string;
|
|
1680
|
+
/** The id of the synonym item to retrieve */
|
|
1681
|
+
itemId: string;
|
|
1682
|
+
}
|
|
1683
|
+
export declare const GetSynonymSetItemRequest: S.Schema<GetSynonymSetItemRequest>;
|
|
1684
|
+
/** Array of words that should be considered as synonyms */
|
|
1685
|
+
export type GetSynonymSetItemResponseSynonymsList = Array<string>;
|
|
1686
|
+
export declare const GetSynonymSetItemResponseSynonymsList: S.Schema<GetSynonymSetItemResponseSynonymsList>;
|
|
1687
|
+
/** By default, special characters are dropped from synonyms. Use this attribute to specify which special characters should be indexed as is */
|
|
1688
|
+
export type GetSynonymSetItemResponseSymbolsToIndexList = Array<string>;
|
|
1689
|
+
export declare const GetSynonymSetItemResponseSymbolsToIndexList: S.Schema<GetSynonymSetItemResponseSymbolsToIndexList>;
|
|
1690
|
+
export interface GetSynonymSetItemResponse {
|
|
1691
|
+
/** Unique identifier for the synonym item */
|
|
1692
|
+
id: string;
|
|
1693
|
+
/** Array of words that should be considered as synonyms */
|
|
1694
|
+
synonyms: GetSynonymSetItemResponseSynonymsList;
|
|
1695
|
+
/** For 1-way synonyms, indicates the root word that words in the synonyms parameter map to */
|
|
1696
|
+
root?: string;
|
|
1697
|
+
/** Locale for the synonym, leave blank to use the standard tokenizer */
|
|
1698
|
+
locale?: string;
|
|
1699
|
+
/** By default, special characters are dropped from synonyms. Use this attribute to specify which special characters should be indexed as is */
|
|
1700
|
+
symbols_to_index?: GetSynonymSetItemResponseSymbolsToIndexList;
|
|
1701
|
+
}
|
|
1702
|
+
export declare const GetSynonymSetItemResponse: S.Schema<GetSynonymSetItemResponse>;
|
|
1703
|
+
export interface GetSynonymSetItemsRequest {
|
|
1704
|
+
/** The name of the synonym set to retrieve items for */
|
|
1705
|
+
synonymSetName: string;
|
|
1706
|
+
}
|
|
1707
|
+
export declare const GetSynonymSetItemsRequest: S.Schema<GetSynonymSetItemsRequest>;
|
|
1708
|
+
export type GetSynonymSetItemsResponseBodyList = Array<SynonymItemSchema>;
|
|
1709
|
+
export declare const GetSynonymSetItemsResponseBodyList: S.Schema<GetSynonymSetItemsResponseBodyList>;
|
|
1710
|
+
export type GetSynonymSetItemsResponse = GetSynonymSetItemsResponseBodyList;
|
|
1711
|
+
export declare const GetSynonymSetItemsResponse: S.Schema<GetSynonymSetItemsResponse>;
|
|
1712
|
+
export interface GetSynonymSetsRequest {
|
|
1713
|
+
}
|
|
1714
|
+
export declare const GetSynonymSetsRequest: S.Schema<GetSynonymSetsRequest>;
|
|
1715
|
+
/** Array of synonym items */
|
|
1716
|
+
export type SynonymSetSchemaItemsList = Array<SynonymItemSchema>;
|
|
1717
|
+
export declare const SynonymSetSchemaItemsList: S.Schema<SynonymSetSchemaItemsList>;
|
|
1718
|
+
export interface SynonymSetSchema {
|
|
1719
|
+
/** Array of synonym items */
|
|
1720
|
+
items: SynonymSetSchemaItemsList;
|
|
1721
|
+
/** Name of the synonym set */
|
|
1722
|
+
name: string;
|
|
1723
|
+
}
|
|
1724
|
+
export declare const SynonymSetSchema: S.Schema<SynonymSetSchema>;
|
|
1725
|
+
export type GetSynonymSetsResponseBodyList = Array<SynonymSetSchema>;
|
|
1726
|
+
export declare const GetSynonymSetsResponseBodyList: S.Schema<GetSynonymSetsResponseBodyList>;
|
|
1727
|
+
export type GetSynonymSetsResponse = GetSynonymSetsResponseBodyList;
|
|
1728
|
+
export declare const GetSynonymSetsResponse: S.Schema<GetSynonymSetsResponse>;
|
|
1729
|
+
export interface HealthRequest {
|
|
1730
|
+
}
|
|
1731
|
+
export declare const HealthRequest: S.Schema<HealthRequest>;
|
|
1732
|
+
export interface HealthStatus {
|
|
1733
|
+
ok: boolean;
|
|
1734
|
+
}
|
|
1735
|
+
export declare const HealthStatus: S.Schema<HealthStatus>;
|
|
1736
|
+
export type IndexAction = "create" | "update" | "upsert" | "emplace";
|
|
1737
|
+
export declare const IndexAction: any;
|
|
1738
|
+
export type DirtyValues = "coerce_or_reject" | "coerce_or_drop" | "drop" | "reject";
|
|
1739
|
+
export declare const DirtyValues: any;
|
|
1740
|
+
export interface ImportDocumentsRequestImportDocumentsParameters {
|
|
1741
|
+
batch_size?: number;
|
|
1742
|
+
/** Returning the id of the imported documents. If you want the import response to return the ingested document's id in the response, you can use the return_id parameter. */
|
|
1743
|
+
return_id?: boolean;
|
|
1744
|
+
remote_embedding_batch_size?: number;
|
|
1745
|
+
return_doc?: boolean;
|
|
1746
|
+
action?: IndexAction | (string & {});
|
|
1747
|
+
dirty_values?: DirtyValues | (string & {});
|
|
1748
|
+
}
|
|
1749
|
+
export declare const ImportDocumentsRequestImportDocumentsParameters: S.Schema<ImportDocumentsRequestImportDocumentsParameters>;
|
|
1750
|
+
export interface ImportDocumentsRequest {
|
|
1751
|
+
/** The name of the collection */
|
|
1752
|
+
collectionName: string;
|
|
1753
|
+
importDocumentsParameters?: ImportDocumentsRequestImportDocumentsParameters;
|
|
1754
|
+
}
|
|
1755
|
+
export declare const ImportDocumentsRequest: S.Schema<ImportDocumentsRequest>;
|
|
1756
|
+
export interface ImportDocumentsResponse {
|
|
1757
|
+
}
|
|
1758
|
+
export declare const ImportDocumentsResponse: S.Schema<ImportDocumentsResponse>;
|
|
1759
|
+
export interface ImportStemmingDictionaryRequest {
|
|
1760
|
+
/** The ID to assign to the dictionary */
|
|
1761
|
+
id: string;
|
|
1762
|
+
body: string;
|
|
1763
|
+
}
|
|
1764
|
+
export declare const ImportStemmingDictionaryRequest: S.Schema<ImportStemmingDictionaryRequest>;
|
|
1765
|
+
export interface ImportStemmingDictionaryResponse {
|
|
1766
|
+
}
|
|
1767
|
+
export declare const ImportStemmingDictionaryResponse: S.Schema<ImportStemmingDictionaryResponse>;
|
|
1768
|
+
export interface ListDocumentRequest {
|
|
1769
|
+
/** The name of the collection to add the document to */
|
|
1770
|
+
collectionName: string;
|
|
1771
|
+
/** Additional action to perform */
|
|
1772
|
+
action?: IndexAction | (string & {});
|
|
1773
|
+
/** Dealing with Dirty Data */
|
|
1774
|
+
dirty_values?: DirtyValues | (string & {});
|
|
1775
|
+
}
|
|
1776
|
+
export declare const ListDocumentRequest: S.Schema<ListDocumentRequest>;
|
|
1777
|
+
export type ListDocumentResponse = unknown;
|
|
1778
|
+
export declare const ListDocumentResponse: S.Schema<ListDocumentResponse>;
|
|
1779
|
+
export interface ListStemmingDictionariesRequest {
|
|
1780
|
+
}
|
|
1781
|
+
export declare const ListStemmingDictionariesRequest: S.Schema<ListStemmingDictionariesRequest>;
|
|
1782
|
+
export type ListStemmingDictionariesResponseDictionariesList = Array<string>;
|
|
1783
|
+
export declare const ListStemmingDictionariesResponseDictionariesList: S.Schema<ListStemmingDictionariesResponseDictionariesList>;
|
|
1784
|
+
export interface ListStemmingDictionariesResponse {
|
|
1785
|
+
dictionaries?: ListStemmingDictionariesResponseDictionariesList;
|
|
1786
|
+
}
|
|
1787
|
+
export declare const ListStemmingDictionariesResponse: S.Schema<ListStemmingDictionariesResponse>;
|
|
1788
|
+
export interface SearchCollectionRequest {
|
|
1789
|
+
/** The name of the collection to search for the document under */
|
|
1790
|
+
collectionName: string;
|
|
1791
|
+
searchParameters: SearchParameters;
|
|
1792
|
+
}
|
|
1793
|
+
export declare const SearchCollectionRequest: S.Schema<SearchCollectionRequest>;
|
|
1794
|
+
export interface FacetCountsCountsItem {
|
|
1795
|
+
count?: number;
|
|
1796
|
+
highlighted?: string;
|
|
1797
|
+
value?: string;
|
|
1798
|
+
parent?: unknown;
|
|
1799
|
+
}
|
|
1800
|
+
export declare const FacetCountsCountsItem: S.Schema<FacetCountsCountsItem>;
|
|
1801
|
+
export type FacetCountsCountsList = Array<FacetCountsCountsItem>;
|
|
1802
|
+
export declare const FacetCountsCountsList: S.Schema<FacetCountsCountsList>;
|
|
1803
|
+
export interface FacetCountsStats {
|
|
1804
|
+
max?: number;
|
|
1805
|
+
min?: number;
|
|
1806
|
+
sum?: number;
|
|
1807
|
+
total_values?: number;
|
|
1808
|
+
avg?: number;
|
|
1809
|
+
}
|
|
1810
|
+
export declare const FacetCountsStats: S.Schema<FacetCountsStats>;
|
|
1811
|
+
export interface FacetCounts {
|
|
1812
|
+
counts?: FacetCountsCountsList;
|
|
1813
|
+
field_name?: string;
|
|
1814
|
+
sampled?: boolean;
|
|
1815
|
+
stats?: FacetCountsStats;
|
|
1816
|
+
}
|
|
1817
|
+
export declare const FacetCounts: S.Schema<FacetCounts>;
|
|
1818
|
+
export type SearchResultFacetCountsList = Array<FacetCounts>;
|
|
1819
|
+
export declare const SearchResultFacetCountsList: S.Schema<SearchResultFacetCountsList>;
|
|
1820
|
+
export type SearchGroupedHitGroupKeyList = Array<unknown>;
|
|
1821
|
+
export declare const SearchGroupedHitGroupKeyList: S.Schema<SearchGroupedHitGroupKeyList>;
|
|
1822
|
+
/** Present only for (array) string[] fields */
|
|
1823
|
+
export type SearchHighlightSnippetsList = Array<string>;
|
|
1824
|
+
export declare const SearchHighlightSnippetsList: S.Schema<SearchHighlightSnippetsList>;
|
|
1825
|
+
/** Full field value with highlighting, present only for (array) string[] fields */
|
|
1826
|
+
export type SearchHighlightValuesList = Array<string>;
|
|
1827
|
+
export declare const SearchHighlightValuesList: S.Schema<SearchHighlightValuesList>;
|
|
1828
|
+
/** The indices property will be present only for string[] fields and will contain the corresponding indices of the snippets in the search field */
|
|
1829
|
+
export type SearchHighlightIndicesList = Array<number>;
|
|
1830
|
+
export declare const SearchHighlightIndicesList: S.Schema<SearchHighlightIndicesList>;
|
|
1831
|
+
export type SearchHighlightMatchedTokensList = Array<unknown>;
|
|
1832
|
+
export declare const SearchHighlightMatchedTokensList: S.Schema<SearchHighlightMatchedTokensList>;
|
|
1833
|
+
export interface SearchHighlight {
|
|
1834
|
+
field?: string;
|
|
1835
|
+
/** Present only for (non-array) string fields */
|
|
1836
|
+
snippet?: string;
|
|
1837
|
+
/** Present only for (array) string[] fields */
|
|
1838
|
+
snippets?: SearchHighlightSnippetsList;
|
|
1839
|
+
/** Full field value with highlighting, present only for (non-array) string fields */
|
|
1840
|
+
value?: string;
|
|
1841
|
+
/** Full field value with highlighting, present only for (array) string[] fields */
|
|
1842
|
+
values?: SearchHighlightValuesList;
|
|
1843
|
+
/** The indices property will be present only for string[] fields and will contain the corresponding indices of the snippets in the search field */
|
|
1844
|
+
indices?: SearchHighlightIndicesList;
|
|
1845
|
+
matched_tokens?: SearchHighlightMatchedTokensList;
|
|
1846
|
+
}
|
|
1847
|
+
export declare const SearchHighlight: S.Schema<SearchHighlight>;
|
|
1848
|
+
/** (Deprecated) Contains highlighted portions of the search fields */
|
|
1849
|
+
export type SearchResultHitHighlightsList = Array<SearchHighlight>;
|
|
1850
|
+
export declare const SearchResultHitHighlightsList: S.Schema<SearchResultHitHighlightsList>;
|
|
1851
|
+
/** Highlighted version of the matching document */
|
|
1852
|
+
export type SearchResultHitHighlightMap = {
|
|
1853
|
+
[key: string]: unknown | undefined;
|
|
1854
|
+
};
|
|
1855
|
+
export declare const SearchResultHitHighlightMap: S.Schema<SearchResultHitHighlightMap>;
|
|
1856
|
+
/** Can be any key-value pair */
|
|
1857
|
+
export type SearchResultHitDocumentMap = {
|
|
1858
|
+
[key: string]: unknown | undefined;
|
|
1859
|
+
};
|
|
1860
|
+
export declare const SearchResultHitDocumentMap: S.Schema<SearchResultHitDocumentMap>;
|
|
1861
|
+
export interface SearchResultHitTextMatchInfo {
|
|
1862
|
+
best_field_score?: string;
|
|
1863
|
+
best_field_weight?: number;
|
|
1864
|
+
fields_matched?: number;
|
|
1865
|
+
num_tokens_dropped?: number;
|
|
1866
|
+
score?: string;
|
|
1867
|
+
tokens_matched?: number;
|
|
1868
|
+
typo_prefix_score?: number;
|
|
1869
|
+
}
|
|
1870
|
+
export declare const SearchResultHitTextMatchInfo: S.Schema<SearchResultHitTextMatchInfo>;
|
|
1871
|
+
/** Can be any key-value pair */
|
|
1872
|
+
export type SearchResultHitGeoDistanceMetersMap = {
|
|
1873
|
+
[key: string]: number | undefined;
|
|
1874
|
+
};
|
|
1875
|
+
export declare const SearchResultHitGeoDistanceMetersMap: S.Schema<SearchResultHitGeoDistanceMetersMap>;
|
|
1876
|
+
/** Information about hybrid search scoring */
|
|
1877
|
+
export interface SearchResultHitHybridSearchInfo {
|
|
1878
|
+
/** Combined score from rank fusion of text and vector search */
|
|
1879
|
+
rank_fusion_score?: number;
|
|
1880
|
+
}
|
|
1881
|
+
export declare const SearchResultHitHybridSearchInfo: S.Schema<SearchResultHitHybridSearchInfo>;
|
|
1882
|
+
export interface SearchResultHit {
|
|
1883
|
+
/** (Deprecated) Contains highlighted portions of the search fields */
|
|
1884
|
+
highlights?: SearchResultHitHighlightsList;
|
|
1885
|
+
/** Highlighted version of the matching document */
|
|
1886
|
+
highlight?: SearchResultHitHighlightMap;
|
|
1887
|
+
/** Can be any key-value pair */
|
|
1888
|
+
document?: SearchResultHitDocumentMap;
|
|
1889
|
+
text_match?: number;
|
|
1890
|
+
text_match_info?: SearchResultHitTextMatchInfo;
|
|
1891
|
+
/** Can be any key-value pair */
|
|
1892
|
+
geo_distance_meters?: SearchResultHitGeoDistanceMetersMap;
|
|
1893
|
+
/** Distance between the query vector and matching document's vector value */
|
|
1894
|
+
vector_distance?: number;
|
|
1895
|
+
/** Information about hybrid search scoring */
|
|
1896
|
+
hybrid_search_info?: SearchResultHitHybridSearchInfo;
|
|
1897
|
+
/** Returned only for union query response. Indicates the index of the query which this document matched to. */
|
|
1898
|
+
search_index?: number;
|
|
1899
|
+
}
|
|
1900
|
+
export declare const SearchResultHit: S.Schema<SearchResultHit>;
|
|
1901
|
+
/** The documents that matched the search query */
|
|
1902
|
+
export type SearchGroupedHitHitsList = Array<SearchResultHit>;
|
|
1903
|
+
export declare const SearchGroupedHitHitsList: S.Schema<SearchGroupedHitHitsList>;
|
|
1904
|
+
export interface SearchGroupedHit {
|
|
1905
|
+
found?: number;
|
|
1906
|
+
group_key: SearchGroupedHitGroupKeyList;
|
|
1907
|
+
/** The documents that matched the search query */
|
|
1908
|
+
hits: SearchGroupedHitHitsList;
|
|
1909
|
+
}
|
|
1910
|
+
export declare const SearchGroupedHit: S.Schema<SearchGroupedHit>;
|
|
1911
|
+
export type SearchResultGroupedHitsList = Array<SearchGroupedHit>;
|
|
1912
|
+
export declare const SearchResultGroupedHitsList: S.Schema<SearchResultGroupedHitsList>;
|
|
1913
|
+
/** The documents that matched the search query */
|
|
1914
|
+
export type SearchResultHitsList = Array<SearchResultHit>;
|
|
1915
|
+
export declare const SearchResultHitsList: S.Schema<SearchResultHitsList>;
|
|
1916
|
+
export interface SearchRequestParamsVoiceQuery {
|
|
1917
|
+
transcribed_query?: string;
|
|
1918
|
+
}
|
|
1919
|
+
export declare const SearchRequestParamsVoiceQuery: S.Schema<SearchRequestParamsVoiceQuery>;
|
|
1920
|
+
export interface SearchRequestParams {
|
|
1921
|
+
collection_name: string;
|
|
1922
|
+
first_q?: string;
|
|
1923
|
+
q: string;
|
|
1924
|
+
per_page: number;
|
|
1925
|
+
voice_query?: SearchRequestParamsVoiceQuery;
|
|
1926
|
+
}
|
|
1927
|
+
export declare const SearchRequestParams: S.Schema<SearchRequestParams>;
|
|
1928
|
+
export type SearchResultConversationConversationHistoryList = Array<unknown>;
|
|
1929
|
+
export declare const SearchResultConversationConversationHistoryList: S.Schema<SearchResultConversationConversationHistoryList>;
|
|
1930
|
+
export interface SearchResultConversation {
|
|
1931
|
+
answer: string;
|
|
1932
|
+
conversation_history: SearchResultConversationConversationHistoryList;
|
|
1933
|
+
conversation_id: string;
|
|
1934
|
+
query: string;
|
|
1935
|
+
}
|
|
1936
|
+
export declare const SearchResultConversation: S.Schema<SearchResultConversation>;
|
|
1937
|
+
/** Returned only for union query response. */
|
|
1938
|
+
export type SearchResultUnionRequestParamsList = Array<SearchRequestParams>;
|
|
1939
|
+
export declare const SearchResultUnionRequestParamsList: S.Schema<SearchResultUnionRequestParamsList>;
|
|
1940
|
+
/** Custom JSON object that can be returned in the search response */
|
|
1941
|
+
export type SearchResultMetadataMap = {
|
|
1942
|
+
[key: string]: unknown | undefined;
|
|
1943
|
+
};
|
|
1944
|
+
export declare const SearchResultMetadataMap: S.Schema<SearchResultMetadataMap>;
|
|
1945
|
+
export interface SearchResult {
|
|
1946
|
+
facet_counts?: SearchResultFacetCountsList;
|
|
1947
|
+
/** The number of documents found */
|
|
1948
|
+
found?: number;
|
|
1949
|
+
found_docs?: number;
|
|
1950
|
+
/** The number of milliseconds the search took */
|
|
1951
|
+
search_time_ms?: number;
|
|
1952
|
+
/** The total number of documents in the collection */
|
|
1953
|
+
out_of?: number;
|
|
1954
|
+
/** Whether the search was cut off */
|
|
1955
|
+
search_cutoff?: boolean;
|
|
1956
|
+
/** The search result page number */
|
|
1957
|
+
page?: number;
|
|
1958
|
+
grouped_hits?: SearchResultGroupedHitsList;
|
|
1959
|
+
/** The documents that matched the search query */
|
|
1960
|
+
hits?: SearchResultHitsList;
|
|
1961
|
+
request_params?: SearchRequestParams;
|
|
1962
|
+
conversation?: SearchResultConversation;
|
|
1963
|
+
/** Returned only for union query response. */
|
|
1964
|
+
union_request_params?: SearchResultUnionRequestParamsList;
|
|
1965
|
+
/** Custom JSON object that can be returned in the search response */
|
|
1966
|
+
metadata?: SearchResultMetadataMap;
|
|
1967
|
+
}
|
|
1968
|
+
export declare const SearchResult: S.Schema<SearchResult>;
|
|
1969
|
+
/** Parameters for the multi search API. */
|
|
1970
|
+
export interface MultiSearchParameters {
|
|
1971
|
+
/** The query text to search for in the collection. Use * as the search string to return all documents. This is typically useful when used in conjunction with filter_by. */
|
|
1972
|
+
q?: string;
|
|
1973
|
+
/** A list of `string` fields that should be queried against. Multiple fields are separated with a comma. */
|
|
1974
|
+
query_by?: string;
|
|
1975
|
+
/** The relative weight to give each `query_by` field when ranking results. This can be used to boost fields in priority, when looking for matches. Multiple fields are separated with a comma. */
|
|
1976
|
+
query_by_weights?: string;
|
|
1977
|
+
/** In a multi-field matching context, this parameter determines how the representative text match score of a record is calculated. Possible values are max_score (default) or max_weight. */
|
|
1978
|
+
text_match_type?: string;
|
|
1979
|
+
/** Boolean field to indicate that the last word in the query should be treated as a prefix, and not as a whole word. This is used for building autocomplete and instant search interfaces. Defaults to true. */
|
|
1980
|
+
prefix?: string;
|
|
1981
|
+
/** If infix index is enabled for this field, infix searching can be done on a per-field basis by sending a comma separated string parameter called infix to the search query. This parameter can have 3 values; `off` infix search is disabled, which is default `always` infix search is performed along with regular search `fallback` infix search is performed if regular search does not produce results */
|
|
1982
|
+
infix?: string;
|
|
1983
|
+
/** There are also 2 parameters that allow you to control the extent of infix searching max_extra_prefix and max_extra_suffix which specify the maximum number of symbols before or after the query that can be present in the token. For example query "K2100" has 2 extra symbols in "6PK2100". By default, any number of prefixes/suffixes can be present for a match. */
|
|
1984
|
+
max_extra_prefix?: number;
|
|
1985
|
+
/** There are also 2 parameters that allow you to control the extent of infix searching max_extra_prefix and max_extra_suffix which specify the maximum number of symbols before or after the query that can be present in the token. For example query "K2100" has 2 extra symbols in "6PK2100". By default, any number of prefixes/suffixes can be present for a match. */
|
|
1986
|
+
max_extra_suffix?: number;
|
|
1987
|
+
/** Filter conditions for refining youropen api validator search results. Separate multiple conditions with &&. */
|
|
1988
|
+
filter_by?: string;
|
|
1989
|
+
/** A list of numerical fields and their corresponding sort orders that will be used for ordering your results. Up to 3 sort fields can be specified. The text similarity score is exposed as a special `_text_match` field that you can use in the list of sorting fields. If no `sort_by` parameter is specified, results are sorted by `_text_match:desc,default_sorting_field:desc` */
|
|
1990
|
+
sort_by?: string;
|
|
1991
|
+
/** A list of fields that will be used for faceting your results on. Separate multiple fields with a comma. */
|
|
1992
|
+
facet_by?: string;
|
|
1993
|
+
/** Maximum number of facet values to be returned. */
|
|
1994
|
+
max_facet_values?: number;
|
|
1995
|
+
/** Facet values that are returned can now be filtered via this parameter. The matching facet text is also highlighted. For example, when faceting by `category`, you can set `facet_query=category:shoe` to return only facet values that contain the prefix "shoe". */
|
|
1996
|
+
facet_query?: string;
|
|
1997
|
+
/** The number of typographical errors (1 or 2) that would be tolerated. Default: 2 */
|
|
1998
|
+
num_typos?: string;
|
|
1999
|
+
/** Results from this specific page number would be fetched. */
|
|
2000
|
+
page?: number;
|
|
2001
|
+
/** Number of results to fetch per page. Default: 10 */
|
|
2002
|
+
per_page?: number;
|
|
2003
|
+
/** Number of hits to fetch. Can be used as an alternative to the per_page parameter. Default: 10. */
|
|
2004
|
+
limit?: number;
|
|
2005
|
+
/** Identifies the starting point to return hits from a result set. Can be used as an alternative to the page parameter. */
|
|
2006
|
+
offset?: number;
|
|
2007
|
+
/** You can aggregate search results into groups or buckets by specify one or more `group_by` fields. Separate multiple fields with a comma. To group on a particular field, it must be a faceted field. */
|
|
2008
|
+
group_by?: string;
|
|
2009
|
+
/** Maximum number of hits to be returned for every group. If the `group_limit` is set as `K` then only the top K hits in each group are returned in the response. Default: 3 */
|
|
2010
|
+
group_limit?: number;
|
|
2011
|
+
/** Setting this parameter to true will place all documents that have a null value in the group_by field, into a single group. Setting this parameter to false, will cause each document with a null value in the group_by field to not be grouped with other documents. Default: true */
|
|
2012
|
+
group_missing_values?: boolean;
|
|
2013
|
+
/** List of fields from the document to include in the search result */
|
|
2014
|
+
include_fields?: string;
|
|
2015
|
+
/** List of fields from the document to exclude in the search result */
|
|
2016
|
+
exclude_fields?: string;
|
|
2017
|
+
/** List of fields which should be highlighted fully without snippeting */
|
|
2018
|
+
highlight_full_fields?: string;
|
|
2019
|
+
/** The number of tokens that should surround the highlighted text on each side. Default: 4 */
|
|
2020
|
+
highlight_affix_num_tokens?: number;
|
|
2021
|
+
/** The start tag used for the highlighted snippets. Default: `<mark>` */
|
|
2022
|
+
highlight_start_tag?: string;
|
|
2023
|
+
/** The end tag used for the highlighted snippets. Default: `</mark>` */
|
|
2024
|
+
highlight_end_tag?: string;
|
|
2025
|
+
/** Field values under this length will be fully highlighted, instead of showing a snippet of relevant portion. Default: 30 */
|
|
2026
|
+
snippet_threshold?: number;
|
|
2027
|
+
/** If the number of results found for a specific query is less than this number, Typesense will attempt to drop the tokens in the query until enough results are found. Tokens that have the least individual hits are dropped first. Set to 0 to disable. Default: 10 */
|
|
2028
|
+
drop_tokens_threshold?: number;
|
|
2029
|
+
drop_tokens_mode?: DropTokensMode | (string & {});
|
|
2030
|
+
/** If the number of results found for a specific query is less than this number, Typesense will attempt to look for tokens with more typos until enough results are found. Default: 100 */
|
|
2031
|
+
typo_tokens_threshold?: number;
|
|
2032
|
+
/** Set this parameter to false to disable typos on alphanumerical query tokens. Default: true. */
|
|
2033
|
+
enable_typos_for_alpha_numerical_tokens?: boolean;
|
|
2034
|
+
/** Whether the filter_by condition of the search query should be applicable to curated results (curation definitions, pinned hits, hidden hits, etc.). Default: false */
|
|
2035
|
+
filter_curated_hits?: boolean;
|
|
2036
|
+
/** If you have some synonyms defined but want to disable all of them for a particular search query, set enable_synonyms to false. Default: true */
|
|
2037
|
+
enable_synonyms?: boolean;
|
|
2038
|
+
/** Flag for enabling/disabling analytics aggregation for specific search queries (for e.g. those originating from a test script). */
|
|
2039
|
+
enable_analytics?: boolean;
|
|
2040
|
+
/** Allow synonym resolution on word prefixes in the query. Default: false */
|
|
2041
|
+
synonym_prefix?: boolean;
|
|
2042
|
+
/** Allow synonym resolution on typo-corrected words in the query. Default: 0 */
|
|
2043
|
+
synonym_num_typos?: number;
|
|
2044
|
+
/** A list of records to unconditionally include in the search results at specific positions. An example use case would be to feature or promote certain items on the top of search results. A list of `record_id:hit_position`. Eg: to include a record with ID 123 at Position 1 and another record with ID 456 at Position 5, you'd specify `123:1,456:5`. You could also use the Curation feature to override search results based on rules. Curations are applied first, followed by `pinned_hits` and finally `hidden_hits`. */
|
|
2045
|
+
pinned_hits?: string;
|
|
2046
|
+
/** A list of records to unconditionally hide from search results. A list of `record_id`s to hide. Eg: to hide records with IDs 123 and 456, you'd specify `123,456`. You could also use the Curation feature to override search results based on rules. Curations are applied first, followed by `pinned_hits` and finally `hidden_hits`. */
|
|
2047
|
+
hidden_hits?: string;
|
|
2048
|
+
/** Comma separated list of tags to trigger the curations rules that match the tags. */
|
|
2049
|
+
curation_tags?: string;
|
|
2050
|
+
/** A list of custom fields that must be highlighted even if you don't query for them */
|
|
2051
|
+
highlight_fields?: string;
|
|
2052
|
+
/** You can index content from any logographic language into Typesense if you are able to segment / split the text into space-separated words yourself before indexing and querying. Set this parameter to true to do the same */
|
|
2053
|
+
pre_segmented_query?: boolean;
|
|
2054
|
+
/** Search using a bunch of search parameters by setting this parameter to the name of the existing Preset. */
|
|
2055
|
+
preset?: string;
|
|
2056
|
+
/** If you have some curation sets defined but want to disable all of them during query time, you can do that by setting this parameter to false */
|
|
2057
|
+
enable_curations?: boolean;
|
|
2058
|
+
/** Set this parameter to true to ensure that an exact match is ranked above the others */
|
|
2059
|
+
prioritize_exact_match?: boolean;
|
|
2060
|
+
/** Make Typesense prioritize documents where the query words appear earlier in the text. */
|
|
2061
|
+
prioritize_token_position?: boolean;
|
|
2062
|
+
/** Make Typesense prioritize documents where the query words appear in more number of fields. */
|
|
2063
|
+
prioritize_num_matching_fields?: boolean;
|
|
2064
|
+
/** Make Typesense disable typos for numerical tokens. */
|
|
2065
|
+
enable_typos_for_numerical_tokens?: boolean;
|
|
2066
|
+
/** Setting this to true will make Typesense consider all prefixes and typo corrections of the words in the query without stopping early when enough results are found (drop_tokens_threshold and typo_tokens_threshold configurations are ignored). */
|
|
2067
|
+
exhaustive_search?: boolean;
|
|
2068
|
+
/** Typesense will attempt to return results early if the cutoff time has elapsed. This is not a strict guarantee and facet computation is not bound by this parameter. */
|
|
2069
|
+
search_cutoff_ms?: number;
|
|
2070
|
+
/** Enable server side caching of search query results. By default, caching is disabled. */
|
|
2071
|
+
use_cache?: boolean;
|
|
2072
|
+
/** The duration (in seconds) that determines how long the search query is cached. This value can be set on a per-query basis. Default: 60. */
|
|
2073
|
+
cache_ttl?: number;
|
|
2074
|
+
/** Minimum word length for 1-typo correction to be applied. The value of num_typos is still treated as the maximum allowed typos. */
|
|
2075
|
+
min_len_1typo?: number;
|
|
2076
|
+
/** Minimum word length for 2-typo correction to be applied. The value of num_typos is still treated as the maximum allowed typos. */
|
|
2077
|
+
min_len_2typo?: number;
|
|
2078
|
+
/** Vector query expression for fetching documents "closest" to a given query/document vector. */
|
|
2079
|
+
vector_query?: string;
|
|
2080
|
+
/** Timeout (in milliseconds) for fetching remote embeddings. */
|
|
2081
|
+
remote_embedding_timeout_ms?: number;
|
|
2082
|
+
/** Number of times to retry fetching remote embeddings. */
|
|
2083
|
+
remote_embedding_num_tries?: number;
|
|
2084
|
+
/** Choose the underlying faceting strategy used. Comma separated string of allows values: exhaustive, top_values or automatic (default). */
|
|
2085
|
+
facet_strategy?: string;
|
|
2086
|
+
/** Name of the stopwords set to apply for this search, the keywords present in the set will be removed from the search query. */
|
|
2087
|
+
stopwords?: string;
|
|
2088
|
+
/** Comma separated string of nested facet fields whose parent object should be returned in facet response. */
|
|
2089
|
+
facet_return_parent?: string;
|
|
2090
|
+
/** The base64 encoded audio file in 16 khz 16-bit WAV format. */
|
|
2091
|
+
voice_query?: string;
|
|
2092
|
+
/** Enable conversational search. */
|
|
2093
|
+
conversation?: boolean;
|
|
2094
|
+
/** The Id of Conversation Model to be used. */
|
|
2095
|
+
conversation_model_id?: string;
|
|
2096
|
+
/** The Id of a previous conversation to continue, this tells Typesense to include prior context when communicating with the LLM. */
|
|
2097
|
+
conversation_id?: string;
|
|
2098
|
+
/** Controls whether Typesense should validate if the fields exist in the schema. When set to false, Typesense will not throw an error if a field is missing. This is useful for programmatic grouping where not all fields may exist. */
|
|
2099
|
+
validate_field_names?: boolean;
|
|
2100
|
+
}
|
|
2101
|
+
export declare const MultiSearchParameters: S.Schema<MultiSearchParameters>;
|
|
2102
|
+
export type SearchMultiRequestSearchesList = Array<MultiSearchCollectionParameters>;
|
|
2103
|
+
export declare const SearchMultiRequestSearchesList: S.Schema<SearchMultiRequestSearchesList>;
|
|
2104
|
+
export interface SearchMultiRequest {
|
|
2105
|
+
multiSearchParameters: MultiSearchParameters;
|
|
2106
|
+
/** When true, merges the search results from each search query into a single ordered set of hits. */
|
|
2107
|
+
union?: boolean;
|
|
2108
|
+
searches: SearchMultiRequestSearchesList;
|
|
2109
|
+
}
|
|
2110
|
+
export declare const SearchMultiRequest: S.Schema<SearchMultiRequest>;
|
|
2111
|
+
export type MultiSearchResultItemFacetCountsList = Array<FacetCounts>;
|
|
2112
|
+
export declare const MultiSearchResultItemFacetCountsList: S.Schema<MultiSearchResultItemFacetCountsList>;
|
|
2113
|
+
export type MultiSearchResultItemGroupedHitsList = Array<SearchGroupedHit>;
|
|
2114
|
+
export declare const MultiSearchResultItemGroupedHitsList: S.Schema<MultiSearchResultItemGroupedHitsList>;
|
|
2115
|
+
/** The documents that matched the search query */
|
|
2116
|
+
export type MultiSearchResultItemHitsList = Array<SearchResultHit>;
|
|
2117
|
+
export declare const MultiSearchResultItemHitsList: S.Schema<MultiSearchResultItemHitsList>;
|
|
2118
|
+
/** Returned only for union query response. */
|
|
2119
|
+
export type MultiSearchResultItemUnionRequestParamsList = Array<SearchRequestParams>;
|
|
2120
|
+
export declare const MultiSearchResultItemUnionRequestParamsList: S.Schema<MultiSearchResultItemUnionRequestParamsList>;
|
|
2121
|
+
/** Custom JSON object that can be returned in the search response */
|
|
2122
|
+
export type MultiSearchResultItemMetadataMap = {
|
|
2123
|
+
[key: string]: unknown | undefined;
|
|
2124
|
+
};
|
|
2125
|
+
export declare const MultiSearchResultItemMetadataMap: S.Schema<MultiSearchResultItemMetadataMap>;
|
|
2126
|
+
export interface MultiSearchResultItem {
|
|
2127
|
+
facet_counts?: MultiSearchResultItemFacetCountsList;
|
|
2128
|
+
/** The number of documents found */
|
|
2129
|
+
found?: number;
|
|
2130
|
+
found_docs?: number;
|
|
2131
|
+
/** The number of milliseconds the search took */
|
|
2132
|
+
search_time_ms?: number;
|
|
2133
|
+
/** The total number of documents in the collection */
|
|
2134
|
+
out_of?: number;
|
|
2135
|
+
/** Whether the search was cut off */
|
|
2136
|
+
search_cutoff?: boolean;
|
|
2137
|
+
/** The search result page number */
|
|
2138
|
+
page?: number;
|
|
2139
|
+
grouped_hits?: MultiSearchResultItemGroupedHitsList;
|
|
2140
|
+
/** The documents that matched the search query */
|
|
2141
|
+
hits?: MultiSearchResultItemHitsList;
|
|
2142
|
+
request_params?: SearchRequestParams;
|
|
2143
|
+
conversation?: SearchResultConversation;
|
|
2144
|
+
/** Returned only for union query response. */
|
|
2145
|
+
union_request_params?: MultiSearchResultItemUnionRequestParamsList;
|
|
2146
|
+
/** Custom JSON object that can be returned in the search response */
|
|
2147
|
+
metadata?: MultiSearchResultItemMetadataMap;
|
|
2148
|
+
/** HTTP error code */
|
|
2149
|
+
code?: number;
|
|
2150
|
+
/** Error description */
|
|
2151
|
+
error?: string;
|
|
2152
|
+
}
|
|
2153
|
+
export declare const MultiSearchResultItem: S.Schema<MultiSearchResultItem>;
|
|
2154
|
+
export type MultiSearchResultResultsList = Array<MultiSearchResultItem>;
|
|
2155
|
+
export declare const MultiSearchResultResultsList: S.Schema<MultiSearchResultResultsList>;
|
|
2156
|
+
export interface MultiSearchResult {
|
|
2157
|
+
results: MultiSearchResultResultsList;
|
|
2158
|
+
conversation?: SearchResultConversation;
|
|
2159
|
+
}
|
|
2160
|
+
export declare const MultiSearchResult: S.Schema<MultiSearchResult>;
|
|
2161
|
+
export interface TakeSnapshotRequest {
|
|
2162
|
+
/** The directory on the server where the snapshot should be saved. */
|
|
2163
|
+
snapshot_path: string;
|
|
2164
|
+
}
|
|
2165
|
+
export declare const TakeSnapshotRequest: S.Schema<TakeSnapshotRequest>;
|
|
2166
|
+
export interface ToggleSlowRequestLogRequest {
|
|
2167
|
+
log_slow_requests_time_ms: number;
|
|
2168
|
+
}
|
|
2169
|
+
export declare const ToggleSlowRequestLogRequest: S.Schema<ToggleSlowRequestLogRequest>;
|
|
2170
|
+
/** A list of fields for querying, filtering and faceting */
|
|
2171
|
+
export type UpdateCollectionRequestFieldsList = Array<Field>;
|
|
2172
|
+
export declare const UpdateCollectionRequestFieldsList: S.Schema<UpdateCollectionRequestFieldsList>;
|
|
2173
|
+
/** List of synonym set names to associate with this collection */
|
|
2174
|
+
export type UpdateCollectionRequestSynonymSetsList = Array<string>;
|
|
2175
|
+
export declare const UpdateCollectionRequestSynonymSetsList: S.Schema<UpdateCollectionRequestSynonymSetsList>;
|
|
2176
|
+
export interface UpdateCollectionRequest {
|
|
2177
|
+
/** The name of the collection to update */
|
|
2178
|
+
collectionName: string;
|
|
2179
|
+
/** A list of fields for querying, filtering and faceting */
|
|
2180
|
+
fields?: UpdateCollectionRequestFieldsList;
|
|
2181
|
+
/** List of synonym set names to associate with this collection */
|
|
2182
|
+
synonym_sets?: UpdateCollectionRequestSynonymSetsList;
|
|
2183
|
+
/** Optional details about the collection, e.g., when it was created, who created it etc. */
|
|
2184
|
+
metadata?: unknown;
|
|
2185
|
+
}
|
|
2186
|
+
export declare const UpdateCollectionRequest: S.Schema<UpdateCollectionRequest>;
|
|
2187
|
+
/** A list of fields for querying, filtering and faceting */
|
|
2188
|
+
export type CollectionUpdateSchemaFieldsList = Array<Field>;
|
|
2189
|
+
export declare const CollectionUpdateSchemaFieldsList: S.Schema<CollectionUpdateSchemaFieldsList>;
|
|
2190
|
+
/** List of synonym set names to associate with this collection */
|
|
2191
|
+
export type CollectionUpdateSchemaSynonymSetsList = Array<string>;
|
|
2192
|
+
export declare const CollectionUpdateSchemaSynonymSetsList: S.Schema<CollectionUpdateSchemaSynonymSetsList>;
|
|
2193
|
+
export interface CollectionUpdateSchema {
|
|
2194
|
+
/** A list of fields for querying, filtering and faceting */
|
|
2195
|
+
fields?: CollectionUpdateSchemaFieldsList;
|
|
2196
|
+
/** List of synonym set names to associate with this collection */
|
|
2197
|
+
synonym_sets?: CollectionUpdateSchemaSynonymSetsList;
|
|
2198
|
+
/** Optional details about the collection, e.g., when it was created, who created it etc. */
|
|
2199
|
+
metadata?: unknown;
|
|
2200
|
+
}
|
|
2201
|
+
export declare const CollectionUpdateSchema: S.Schema<CollectionUpdateSchema>;
|
|
2202
|
+
export interface UpdateConversationModelRequest {
|
|
2203
|
+
/** The id of the conversation model to update */
|
|
2204
|
+
modelId: string;
|
|
2205
|
+
/** An explicit id for the model, otherwise the API will return a response with an auto-generated conversation model id. */
|
|
2206
|
+
id?: string;
|
|
2207
|
+
/** Name of the LLM model offered by OpenAI, Cloudflare or vLLM */
|
|
2208
|
+
model_name?: string;
|
|
2209
|
+
/** The LLM service's API Key */
|
|
2210
|
+
api_key?: string | import("effect/Redacted").Redacted<string>;
|
|
2211
|
+
/** Typesense collection that stores the historical conversations */
|
|
2212
|
+
history_collection?: string;
|
|
2213
|
+
/** LLM service's account ID (only applicable for Cloudflare) */
|
|
2214
|
+
account_id?: string;
|
|
2215
|
+
/** The system prompt that contains special instructions to the LLM */
|
|
2216
|
+
system_prompt?: string;
|
|
2217
|
+
/** Time interval in seconds after which the messages would be deleted. Default: 86400 (24 hours) */
|
|
2218
|
+
ttl?: number;
|
|
2219
|
+
/** The maximum number of bytes to send to the LLM in every API call. Consult the LLM's documentation on the number of bytes supported in the context window. */
|
|
2220
|
+
max_bytes?: number;
|
|
2221
|
+
/** URL of vLLM service */
|
|
2222
|
+
vllm_url?: string;
|
|
2223
|
+
}
|
|
2224
|
+
export declare const UpdateConversationModelRequest: S.Schema<UpdateConversationModelRequest>;
|
|
2225
|
+
export interface UpdateConversationModelResponse {
|
|
2226
|
+
/** An explicit id for the model, otherwise the API will return a response with an auto-generated conversation model id. */
|
|
2227
|
+
id: string;
|
|
2228
|
+
/** Name of the LLM model offered by OpenAI, Cloudflare or vLLM */
|
|
2229
|
+
model_name: string;
|
|
2230
|
+
/** The LLM service's API Key */
|
|
2231
|
+
api_key?: string | import("effect/Redacted").Redacted<string>;
|
|
2232
|
+
/** Typesense collection that stores the historical conversations */
|
|
2233
|
+
history_collection: string;
|
|
2234
|
+
/** LLM service's account ID (only applicable for Cloudflare) */
|
|
2235
|
+
account_id?: string;
|
|
2236
|
+
/** The system prompt that contains special instructions to the LLM */
|
|
2237
|
+
system_prompt?: string;
|
|
2238
|
+
/** Time interval in seconds after which the messages would be deleted. Default: 86400 (24 hours) */
|
|
2239
|
+
ttl?: number;
|
|
2240
|
+
/** The maximum number of bytes to send to the LLM in every API call. Consult the LLM's documentation on the number of bytes supported in the context window. */
|
|
2241
|
+
max_bytes: number;
|
|
2242
|
+
/** URL of vLLM service */
|
|
2243
|
+
vllm_url?: string;
|
|
2244
|
+
}
|
|
2245
|
+
export declare const UpdateConversationModelResponse: S.Schema<UpdateConversationModelResponse>;
|
|
2246
|
+
export interface UpdateDocumentRequest {
|
|
2247
|
+
/** The name of the collection to search for the document under */
|
|
2248
|
+
collectionName: string;
|
|
2249
|
+
/** The Document ID */
|
|
2250
|
+
documentId: string;
|
|
2251
|
+
/** Dealing with Dirty Data */
|
|
2252
|
+
dirty_values?: DirtyValues | (string & {});
|
|
2253
|
+
}
|
|
2254
|
+
export declare const UpdateDocumentRequest: S.Schema<UpdateDocumentRequest>;
|
|
2255
|
+
export type UpdateDocumentResponse = unknown;
|
|
2256
|
+
export declare const UpdateDocumentResponse: S.Schema<UpdateDocumentResponse>;
|
|
2257
|
+
export interface UpdateDocumentsRequestUpdateDocumentsParameters {
|
|
2258
|
+
filter_by?: string;
|
|
2259
|
+
}
|
|
2260
|
+
export declare const UpdateDocumentsRequestUpdateDocumentsParameters: S.Schema<UpdateDocumentsRequestUpdateDocumentsParameters>;
|
|
2261
|
+
export interface UpdateDocumentsRequest {
|
|
2262
|
+
/** The name of the collection to update documents in */
|
|
2263
|
+
collectionName: string;
|
|
2264
|
+
updateDocumentsParameters?: UpdateDocumentsRequestUpdateDocumentsParameters;
|
|
2265
|
+
}
|
|
2266
|
+
export declare const UpdateDocumentsRequest: S.Schema<UpdateDocumentsRequest>;
|
|
2267
|
+
export interface UpdateDocumentsResponse {
|
|
2268
|
+
/** The number of documents that have been updated */
|
|
2269
|
+
num_updated: number;
|
|
2270
|
+
}
|
|
2271
|
+
export declare const UpdateDocumentsResponse: S.Schema<UpdateDocumentsResponse>;
|
|
2272
|
+
/** Stop sequences for the NL model (Google-specific) */
|
|
2273
|
+
export type UpdateNLSearchModelRequestStopSequencesList = Array<string>;
|
|
2274
|
+
export declare const UpdateNLSearchModelRequestStopSequencesList: S.Schema<UpdateNLSearchModelRequestStopSequencesList>;
|
|
2275
|
+
export interface UpdateNLSearchModelRequest {
|
|
2276
|
+
/** The ID of the NL search model to update */
|
|
2277
|
+
modelId: string;
|
|
2278
|
+
/** Name of the NL model to use */
|
|
2279
|
+
model_name?: string;
|
|
2280
|
+
/** API key for the NL model service */
|
|
2281
|
+
api_key?: string | import("effect/Redacted").Redacted<string>;
|
|
2282
|
+
/** Custom API URL for the NL model service */
|
|
2283
|
+
api_url?: string;
|
|
2284
|
+
/** Maximum number of bytes to process */
|
|
2285
|
+
max_bytes?: number;
|
|
2286
|
+
/** Temperature parameter for the NL model */
|
|
2287
|
+
temperature?: number;
|
|
2288
|
+
/** System prompt for the NL model */
|
|
2289
|
+
system_prompt?: string;
|
|
2290
|
+
/** Top-p parameter for the NL model (Google-specific) */
|
|
2291
|
+
top_p?: number;
|
|
2292
|
+
/** Top-k parameter for the NL model (Google-specific) */
|
|
2293
|
+
top_k?: number;
|
|
2294
|
+
/** Stop sequences for the NL model (Google-specific) */
|
|
2295
|
+
stop_sequences?: UpdateNLSearchModelRequestStopSequencesList;
|
|
2296
|
+
/** API version for the NL model service */
|
|
2297
|
+
api_version?: string;
|
|
2298
|
+
/** Project ID for GCP Vertex AI */
|
|
2299
|
+
project_id?: string;
|
|
2300
|
+
/** Access token for GCP Vertex AI */
|
|
2301
|
+
access_token?: string | import("effect/Redacted").Redacted<string>;
|
|
2302
|
+
/** Refresh token for GCP Vertex AI */
|
|
2303
|
+
refresh_token?: string | import("effect/Redacted").Redacted<string>;
|
|
2304
|
+
/** Client ID for GCP Vertex AI */
|
|
2305
|
+
client_id?: string;
|
|
2306
|
+
/** Client secret for GCP Vertex AI */
|
|
2307
|
+
client_secret?: string | import("effect/Redacted").Redacted<string>;
|
|
2308
|
+
/** Region for GCP Vertex AI */
|
|
2309
|
+
region?: string;
|
|
2310
|
+
/** Maximum output tokens for GCP Vertex AI */
|
|
2311
|
+
max_output_tokens?: number;
|
|
2312
|
+
/** Account ID for Cloudflare-specific models */
|
|
2313
|
+
account_id?: string;
|
|
2314
|
+
/** Optional ID for the NL search model */
|
|
2315
|
+
id?: string;
|
|
2316
|
+
}
|
|
2317
|
+
export declare const UpdateNLSearchModelRequest: S.Schema<UpdateNLSearchModelRequest>;
|
|
2318
|
+
/** Stop sequences for the NL model (Google-specific) */
|
|
2319
|
+
export type UpdateNLSearchModelResponseStopSequencesList = Array<string>;
|
|
2320
|
+
export declare const UpdateNLSearchModelResponseStopSequencesList: S.Schema<UpdateNLSearchModelResponseStopSequencesList>;
|
|
2321
|
+
export interface UpdateNLSearchModelResponse {
|
|
2322
|
+
/** Name of the NL model to use */
|
|
2323
|
+
model_name?: string;
|
|
2324
|
+
/** API key for the NL model service */
|
|
2325
|
+
api_key?: string | import("effect/Redacted").Redacted<string>;
|
|
2326
|
+
/** Custom API URL for the NL model service */
|
|
2327
|
+
api_url?: string;
|
|
2328
|
+
/** Maximum number of bytes to process */
|
|
2329
|
+
max_bytes?: number;
|
|
2330
|
+
/** Temperature parameter for the NL model */
|
|
2331
|
+
temperature?: number;
|
|
2332
|
+
/** System prompt for the NL model */
|
|
2333
|
+
system_prompt?: string;
|
|
2334
|
+
/** Top-p parameter for the NL model (Google-specific) */
|
|
2335
|
+
top_p?: number;
|
|
2336
|
+
/** Top-k parameter for the NL model (Google-specific) */
|
|
2337
|
+
top_k?: number;
|
|
2338
|
+
/** Stop sequences for the NL model (Google-specific) */
|
|
2339
|
+
stop_sequences?: UpdateNLSearchModelResponseStopSequencesList;
|
|
2340
|
+
/** API version for the NL model service */
|
|
2341
|
+
api_version?: string;
|
|
2342
|
+
/** Project ID for GCP Vertex AI */
|
|
2343
|
+
project_id?: string;
|
|
2344
|
+
/** Access token for GCP Vertex AI */
|
|
2345
|
+
access_token?: string | import("effect/Redacted").Redacted<string>;
|
|
2346
|
+
/** Refresh token for GCP Vertex AI */
|
|
2347
|
+
refresh_token?: string | import("effect/Redacted").Redacted<string>;
|
|
2348
|
+
/** Client ID for GCP Vertex AI */
|
|
2349
|
+
client_id?: string;
|
|
2350
|
+
/** Client secret for GCP Vertex AI */
|
|
2351
|
+
client_secret?: string | import("effect/Redacted").Redacted<string>;
|
|
2352
|
+
/** Region for GCP Vertex AI */
|
|
2353
|
+
region?: string;
|
|
2354
|
+
/** Maximum output tokens for GCP Vertex AI */
|
|
2355
|
+
max_output_tokens?: number;
|
|
2356
|
+
/** Account ID for Cloudflare-specific models */
|
|
2357
|
+
account_id?: string;
|
|
2358
|
+
/** Optional ID for the NL search model */
|
|
2359
|
+
id: string;
|
|
2360
|
+
}
|
|
2361
|
+
export declare const UpdateNLSearchModelResponse: S.Schema<UpdateNLSearchModelResponse>;
|
|
2362
|
+
export interface UpsertAliasRequest {
|
|
2363
|
+
/** The name of the alias to create/update */
|
|
2364
|
+
aliasName: string;
|
|
2365
|
+
/** Name of the collection you wish to map the alias to */
|
|
2366
|
+
collection_name: string;
|
|
2367
|
+
}
|
|
2368
|
+
export declare const UpsertAliasRequest: S.Schema<UpsertAliasRequest>;
|
|
2369
|
+
export type UpsertAnalyticsRuleRequestParamsMetaFieldsList = Array<string>;
|
|
2370
|
+
export declare const UpsertAnalyticsRuleRequestParamsMetaFieldsList: S.Schema<UpsertAnalyticsRuleRequestParamsMetaFieldsList>;
|
|
2371
|
+
export interface UpsertAnalyticsRuleRequestParams {
|
|
2372
|
+
destination_collection?: string;
|
|
2373
|
+
limit?: number;
|
|
2374
|
+
capture_search_requests?: boolean;
|
|
2375
|
+
meta_fields?: UpsertAnalyticsRuleRequestParamsMetaFieldsList;
|
|
2376
|
+
expand_query?: boolean;
|
|
2377
|
+
counter_field?: string;
|
|
2378
|
+
weight?: number;
|
|
2379
|
+
}
|
|
2380
|
+
export declare const UpsertAnalyticsRuleRequestParams: S.Schema<UpsertAnalyticsRuleRequestParams>;
|
|
2381
|
+
export interface UpsertAnalyticsRuleRequest {
|
|
2382
|
+
/** The name of the analytics rule to upsert */
|
|
2383
|
+
ruleName: string;
|
|
2384
|
+
name?: string;
|
|
2385
|
+
rule_tag?: string;
|
|
2386
|
+
params?: UpsertAnalyticsRuleRequestParams;
|
|
2387
|
+
}
|
|
2388
|
+
export declare const UpsertAnalyticsRuleRequest: S.Schema<UpsertAnalyticsRuleRequest>;
|
|
2389
|
+
export type UpsertAnalyticsRuleResponseParamsMetaFieldsList = Array<string>;
|
|
2390
|
+
export declare const UpsertAnalyticsRuleResponseParamsMetaFieldsList: S.Schema<UpsertAnalyticsRuleResponseParamsMetaFieldsList>;
|
|
2391
|
+
export interface UpsertAnalyticsRuleResponseParams {
|
|
2392
|
+
destination_collection?: string;
|
|
2393
|
+
limit?: number;
|
|
2394
|
+
capture_search_requests?: boolean;
|
|
2395
|
+
meta_fields?: UpsertAnalyticsRuleResponseParamsMetaFieldsList;
|
|
2396
|
+
expand_query?: boolean;
|
|
2397
|
+
counter_field?: string;
|
|
2398
|
+
weight?: number;
|
|
2399
|
+
}
|
|
2400
|
+
export declare const UpsertAnalyticsRuleResponseParams: S.Schema<UpsertAnalyticsRuleResponseParams>;
|
|
2401
|
+
export interface UpsertAnalyticsRuleResponse {
|
|
2402
|
+
name: string;
|
|
2403
|
+
type: AnalyticsRuleType;
|
|
2404
|
+
collection: string;
|
|
2405
|
+
event_type: string;
|
|
2406
|
+
rule_tag?: string;
|
|
2407
|
+
params?: UpsertAnalyticsRuleResponseParams;
|
|
2408
|
+
}
|
|
2409
|
+
export declare const UpsertAnalyticsRuleResponse: S.Schema<UpsertAnalyticsRuleResponse>;
|
|
2410
|
+
/** Array of curation items */
|
|
2411
|
+
export type UpsertCurationSetRequestItemsList = Array<CurationItemCreateSchema>;
|
|
2412
|
+
export declare const UpsertCurationSetRequestItemsList: S.Schema<UpsertCurationSetRequestItemsList>;
|
|
2413
|
+
export interface UpsertCurationSetRequest {
|
|
2414
|
+
/** The name of the curation set to create/update */
|
|
2415
|
+
curationSetName: string;
|
|
2416
|
+
/** Array of curation items */
|
|
2417
|
+
items: UpsertCurationSetRequestItemsList;
|
|
2418
|
+
/** Optional description for the curation set */
|
|
2419
|
+
description?: string;
|
|
2420
|
+
}
|
|
2421
|
+
export declare const UpsertCurationSetRequest: S.Schema<UpsertCurationSetRequest>;
|
|
2422
|
+
/** Array of curation items */
|
|
2423
|
+
export type UpsertCurationSetResponseItemsList = Array<CurationItemCreateSchema>;
|
|
2424
|
+
export declare const UpsertCurationSetResponseItemsList: S.Schema<UpsertCurationSetResponseItemsList>;
|
|
2425
|
+
export interface UpsertCurationSetResponse {
|
|
2426
|
+
/** Array of curation items */
|
|
2427
|
+
items: UpsertCurationSetResponseItemsList;
|
|
2428
|
+
/** Optional description for the curation set */
|
|
2429
|
+
description?: string;
|
|
2430
|
+
name: string;
|
|
2431
|
+
}
|
|
2432
|
+
export declare const UpsertCurationSetResponse: S.Schema<UpsertCurationSetResponse>;
|
|
2433
|
+
/** List of document `id`s that should be included in the search results with their corresponding `position`s. */
|
|
2434
|
+
export type UpsertCurationSetItemRequestIncludesList = Array<CurationInclude>;
|
|
2435
|
+
export declare const UpsertCurationSetItemRequestIncludesList: S.Schema<UpsertCurationSetItemRequestIncludesList>;
|
|
2436
|
+
/** List of document `id`s that should be excluded from the search results. */
|
|
2437
|
+
export type UpsertCurationSetItemRequestExcludesList = Array<CurationExclude>;
|
|
2438
|
+
export declare const UpsertCurationSetItemRequestExcludesList: S.Schema<UpsertCurationSetItemRequestExcludesList>;
|
|
2439
|
+
export interface UpsertCurationSetItemRequest {
|
|
2440
|
+
/** The name of the curation set */
|
|
2441
|
+
curationSetName: string;
|
|
2442
|
+
/** The id of the curation item to upsert */
|
|
2443
|
+
itemId: string;
|
|
2444
|
+
rule: CurationRule;
|
|
2445
|
+
/** List of document `id`s that should be included in the search results with their corresponding `position`s. */
|
|
2446
|
+
includes?: UpsertCurationSetItemRequestIncludesList;
|
|
2447
|
+
/** List of document `id`s that should be excluded from the search results. */
|
|
2448
|
+
excludes?: UpsertCurationSetItemRequestExcludesList;
|
|
2449
|
+
/** A filter by clause that is applied to any search query that matches the curation rule. */
|
|
2450
|
+
filter_by?: string;
|
|
2451
|
+
/** Indicates whether search query tokens that exist in the curation's rule should be removed from the search query. */
|
|
2452
|
+
remove_matched_tokens?: boolean;
|
|
2453
|
+
/** Return a custom JSON object in the Search API response, when this rule is triggered. This can can be used to display a pre-defined message (eg: a promotion banner) on the front-end when a particular rule is triggered. */
|
|
2454
|
+
metadata?: unknown;
|
|
2455
|
+
/** A sort by clause that is applied to any search query that matches the curation rule. */
|
|
2456
|
+
sort_by?: string;
|
|
2457
|
+
/** Replaces the current search query with this value, when the search query matches the curation rule. */
|
|
2458
|
+
replace_query?: string;
|
|
2459
|
+
/** When set to true, the filter conditions of the query is applied to the curated records as well. Default: false. */
|
|
2460
|
+
filter_curated_hits?: boolean;
|
|
2461
|
+
/** A Unix timestamp that indicates the date/time from which the curation will be active. You can use this to create rules that start applying from a future point in time. */
|
|
2462
|
+
effective_from_ts?: number;
|
|
2463
|
+
/** A Unix timestamp that indicates the date/time until which the curation will be active. You can use this to create rules that stop applying after a period of time. */
|
|
2464
|
+
effective_to_ts?: number;
|
|
2465
|
+
/** When set to true, curation processing will stop at the first matching rule. When set to false curation processing will continue and multiple curation actions will be triggered in sequence. Curations are processed in the lexical sort order of their id field. */
|
|
2466
|
+
stop_processing?: boolean;
|
|
2467
|
+
/** ID of the curation item */
|
|
2468
|
+
id?: string;
|
|
2469
|
+
}
|
|
2470
|
+
export declare const UpsertCurationSetItemRequest: S.Schema<UpsertCurationSetItemRequest>;
|
|
2471
|
+
/** List of document `id`s that should be included in the search results with their corresponding `position`s. */
|
|
2472
|
+
export type UpsertCurationSetItemResponseIncludesList = Array<CurationInclude>;
|
|
2473
|
+
export declare const UpsertCurationSetItemResponseIncludesList: S.Schema<UpsertCurationSetItemResponseIncludesList>;
|
|
2474
|
+
/** List of document `id`s that should be excluded from the search results. */
|
|
2475
|
+
export type UpsertCurationSetItemResponseExcludesList = Array<CurationExclude>;
|
|
2476
|
+
export declare const UpsertCurationSetItemResponseExcludesList: S.Schema<UpsertCurationSetItemResponseExcludesList>;
|
|
2477
|
+
export interface UpsertCurationSetItemResponse {
|
|
2478
|
+
rule: CurationRule;
|
|
2479
|
+
/** List of document `id`s that should be included in the search results with their corresponding `position`s. */
|
|
2480
|
+
includes?: UpsertCurationSetItemResponseIncludesList;
|
|
2481
|
+
/** List of document `id`s that should be excluded from the search results. */
|
|
2482
|
+
excludes?: UpsertCurationSetItemResponseExcludesList;
|
|
2483
|
+
/** A filter by clause that is applied to any search query that matches the curation rule. */
|
|
2484
|
+
filter_by?: string;
|
|
2485
|
+
/** Indicates whether search query tokens that exist in the curation's rule should be removed from the search query. */
|
|
2486
|
+
remove_matched_tokens?: boolean;
|
|
2487
|
+
/** Return a custom JSON object in the Search API response, when this rule is triggered. This can can be used to display a pre-defined message (eg: a promotion banner) on the front-end when a particular rule is triggered. */
|
|
2488
|
+
metadata?: unknown;
|
|
2489
|
+
/** A sort by clause that is applied to any search query that matches the curation rule. */
|
|
2490
|
+
sort_by?: string;
|
|
2491
|
+
/** Replaces the current search query with this value, when the search query matches the curation rule. */
|
|
2492
|
+
replace_query?: string;
|
|
2493
|
+
/** When set to true, the filter conditions of the query is applied to the curated records as well. Default: false. */
|
|
2494
|
+
filter_curated_hits?: boolean;
|
|
2495
|
+
/** A Unix timestamp that indicates the date/time from which the curation will be active. You can use this to create rules that start applying from a future point in time. */
|
|
2496
|
+
effective_from_ts?: number;
|
|
2497
|
+
/** A Unix timestamp that indicates the date/time until which the curation will be active. You can use this to create rules that stop applying after a period of time. */
|
|
2498
|
+
effective_to_ts?: number;
|
|
2499
|
+
/** When set to true, curation processing will stop at the first matching rule. When set to false curation processing will continue and multiple curation actions will be triggered in sequence. Curations are processed in the lexical sort order of their id field. */
|
|
2500
|
+
stop_processing?: boolean;
|
|
2501
|
+
/** ID of the curation item */
|
|
2502
|
+
id: string;
|
|
2503
|
+
}
|
|
2504
|
+
export declare const UpsertCurationSetItemResponse: S.Schema<UpsertCurationSetItemResponse>;
|
|
2505
|
+
export type UpsertPresetRequestValue = SearchParameters | MultiSearchSearchesParameter;
|
|
2506
|
+
export declare const UpsertPresetRequestValue: any;
|
|
2507
|
+
export interface UpsertPresetRequest {
|
|
2508
|
+
/** The name of the preset set to upsert. */
|
|
2509
|
+
presetId: string;
|
|
2510
|
+
value: UpsertPresetRequestValue;
|
|
2511
|
+
}
|
|
2512
|
+
export declare const UpsertPresetRequest: S.Schema<UpsertPresetRequest>;
|
|
2513
|
+
export type UpsertPresetResponseValue = SearchParameters | MultiSearchSearchesParameter;
|
|
2514
|
+
export declare const UpsertPresetResponseValue: any;
|
|
2515
|
+
export interface UpsertPresetResponse {
|
|
2516
|
+
value: UpsertPresetResponseValue;
|
|
2517
|
+
name: string;
|
|
2518
|
+
}
|
|
2519
|
+
export declare const UpsertPresetResponse: S.Schema<UpsertPresetResponse>;
|
|
2520
|
+
export type UpsertStopwordsSetRequestStopwordsList = Array<string>;
|
|
2521
|
+
export declare const UpsertStopwordsSetRequestStopwordsList: S.Schema<UpsertStopwordsSetRequestStopwordsList>;
|
|
2522
|
+
export interface UpsertStopwordsSetRequest {
|
|
2523
|
+
/** The ID of the stopwords set to upsert. */
|
|
2524
|
+
setId: string;
|
|
2525
|
+
stopwords: UpsertStopwordsSetRequestStopwordsList;
|
|
2526
|
+
locale?: string;
|
|
2527
|
+
}
|
|
2528
|
+
export declare const UpsertStopwordsSetRequest: S.Schema<UpsertStopwordsSetRequest>;
|
|
2529
|
+
/** Array of synonym items */
|
|
2530
|
+
export type UpsertSynonymSetRequestItemsList = Array<SynonymItemSchema>;
|
|
2531
|
+
export declare const UpsertSynonymSetRequestItemsList: S.Schema<UpsertSynonymSetRequestItemsList>;
|
|
2532
|
+
export interface UpsertSynonymSetRequest {
|
|
2533
|
+
/** The name of the synonym set to create/update */
|
|
2534
|
+
synonymSetName: string;
|
|
2535
|
+
/** Array of synonym items */
|
|
2536
|
+
items: UpsertSynonymSetRequestItemsList;
|
|
2537
|
+
}
|
|
2538
|
+
export declare const UpsertSynonymSetRequest: S.Schema<UpsertSynonymSetRequest>;
|
|
2539
|
+
/** Array of synonym items */
|
|
2540
|
+
export type UpsertSynonymSetResponseItemsList = Array<SynonymItemSchema>;
|
|
2541
|
+
export declare const UpsertSynonymSetResponseItemsList: S.Schema<UpsertSynonymSetResponseItemsList>;
|
|
2542
|
+
export interface UpsertSynonymSetResponse {
|
|
2543
|
+
/** Array of synonym items */
|
|
2544
|
+
items: UpsertSynonymSetResponseItemsList;
|
|
2545
|
+
/** Name of the synonym set */
|
|
2546
|
+
name: string;
|
|
2547
|
+
}
|
|
2548
|
+
export declare const UpsertSynonymSetResponse: S.Schema<UpsertSynonymSetResponse>;
|
|
2549
|
+
/** Array of words that should be considered as synonyms */
|
|
2550
|
+
export type UpsertSynonymSetItemRequestSynonymsList = Array<string>;
|
|
2551
|
+
export declare const UpsertSynonymSetItemRequestSynonymsList: S.Schema<UpsertSynonymSetItemRequestSynonymsList>;
|
|
2552
|
+
/** By default, special characters are dropped from synonyms. Use this attribute to specify which special characters should be indexed as is */
|
|
2553
|
+
export type UpsertSynonymSetItemRequestSymbolsToIndexList = Array<string>;
|
|
2554
|
+
export declare const UpsertSynonymSetItemRequestSymbolsToIndexList: S.Schema<UpsertSynonymSetItemRequestSymbolsToIndexList>;
|
|
2555
|
+
export interface UpsertSynonymSetItemRequest {
|
|
2556
|
+
/** The name of the synonym set */
|
|
2557
|
+
synonymSetName: string;
|
|
2558
|
+
/** The id of the synonym item to upsert */
|
|
2559
|
+
itemId: string;
|
|
2560
|
+
/** Array of words that should be considered as synonyms */
|
|
2561
|
+
synonyms: UpsertSynonymSetItemRequestSynonymsList;
|
|
2562
|
+
/** For 1-way synonyms, indicates the root word that words in the synonyms parameter map to */
|
|
2563
|
+
root?: string;
|
|
2564
|
+
/** Locale for the synonym, leave blank to use the standard tokenizer */
|
|
2565
|
+
locale?: string;
|
|
2566
|
+
/** By default, special characters are dropped from synonyms. Use this attribute to specify which special characters should be indexed as is */
|
|
2567
|
+
symbols_to_index?: UpsertSynonymSetItemRequestSymbolsToIndexList;
|
|
2568
|
+
}
|
|
2569
|
+
export declare const UpsertSynonymSetItemRequest: S.Schema<UpsertSynonymSetItemRequest>;
|
|
2570
|
+
/** Array of words that should be considered as synonyms */
|
|
2571
|
+
export type UpsertSynonymSetItemResponseSynonymsList = Array<string>;
|
|
2572
|
+
export declare const UpsertSynonymSetItemResponseSynonymsList: S.Schema<UpsertSynonymSetItemResponseSynonymsList>;
|
|
2573
|
+
/** By default, special characters are dropped from synonyms. Use this attribute to specify which special characters should be indexed as is */
|
|
2574
|
+
export type UpsertSynonymSetItemResponseSymbolsToIndexList = Array<string>;
|
|
2575
|
+
export declare const UpsertSynonymSetItemResponseSymbolsToIndexList: S.Schema<UpsertSynonymSetItemResponseSymbolsToIndexList>;
|
|
2576
|
+
export interface UpsertSynonymSetItemResponse {
|
|
2577
|
+
/** Unique identifier for the synonym item */
|
|
2578
|
+
id: string;
|
|
2579
|
+
/** Array of words that should be considered as synonyms */
|
|
2580
|
+
synonyms: UpsertSynonymSetItemResponseSynonymsList;
|
|
2581
|
+
/** For 1-way synonyms, indicates the root word that words in the synonyms parameter map to */
|
|
2582
|
+
root?: string;
|
|
2583
|
+
/** Locale for the synonym, leave blank to use the standard tokenizer */
|
|
2584
|
+
locale?: string;
|
|
2585
|
+
/** By default, special characters are dropped from synonyms. Use this attribute to specify which special characters should be indexed as is */
|
|
2586
|
+
symbols_to_index?: UpsertSynonymSetItemResponseSymbolsToIndexList;
|
|
2587
|
+
}
|
|
2588
|
+
export declare const UpsertSynonymSetItemResponse: S.Schema<UpsertSynonymSetItemResponse>;
|
|
2589
|
+
export interface VoteRequest {
|
|
2590
|
+
}
|
|
2591
|
+
export declare const VoteRequest: S.Schema<VoteRequest>;
|
|
2592
|
+
export type ClearCacheError = TypesenseOpError;
|
|
2593
|
+
/** Clear the cached responses of search requests in the LRU cache. Clear the cached responses of search requests that are sent with `use_cache` parameter in the LRU cache. */
|
|
2594
|
+
export declare const clearCache: API.OperationMethod<ClearCacheRequest, SuccessStatus, ClearCacheError, TypesenseOpContext>;
|
|
2595
|
+
export type CompactDbError = TypesenseOpError;
|
|
2596
|
+
/** Compacting the on-disk database Typesense uses RocksDB to store your documents on the disk. If you do frequent writes or updates, you could benefit from running a compaction of the underlying RocksDB database. This could reduce the size of the database and decrease read latency. While the database will not block during this operation, we recommend running it during off-peak hours. */
|
|
2597
|
+
export declare const compactDb: API.OperationMethod<CompactDbRequest, SuccessStatus, CompactDbError, TypesenseOpContext>;
|
|
2598
|
+
export type CreateAnalyticsEventError = BadRequest | TypesenseOpError;
|
|
2599
|
+
/** Create an analytics event Submit a single analytics event. The event must correspond to an existing analytics rule by name. */
|
|
2600
|
+
export declare const createAnalyticsEvent: API.OperationMethod<CreateAnalyticsEventRequest, AnalyticsEventCreateResponse, CreateAnalyticsEventError, TypesenseOpContext>;
|
|
2601
|
+
export type CreateAnalyticsRuleError = BadRequest | TypesenseOpError;
|
|
2602
|
+
/** Create analytics rule(s) Create one or more analytics rules. You can send a single rule object or an array of rule objects. */
|
|
2603
|
+
export declare const createAnalyticsRule: API.OperationMethod<CreateAnalyticsRuleRequest, CreateAnalyticsRuleResponse, CreateAnalyticsRuleError, TypesenseOpContext>;
|
|
2604
|
+
export type CreateCollectionError = BadRequest | Conflict | TypesenseOpError;
|
|
2605
|
+
/** Create a new collection When a collection is created, we give it a name and describe the fields that will be indexed from the documents added to the collection. */
|
|
2606
|
+
export declare const createCollection: API.OperationMethod<CreateCollectionRequest, CreateCollectionResponse, CreateCollectionError, TypesenseOpContext>;
|
|
2607
|
+
export type CreateConversationModelError = BadRequest | TypesenseOpError;
|
|
2608
|
+
/** Create a conversation model Create a Conversation Model */
|
|
2609
|
+
export declare const createConversationModel: API.OperationMethod<CreateConversationModelRequest, CreateConversationModelResponse, CreateConversationModelError, TypesenseOpContext>;
|
|
2610
|
+
export type CreateKeyError = BadRequest | Conflict | TypesenseOpError;
|
|
2611
|
+
/** Create an API Key Create an API Key with fine-grain access control. You can restrict access on both a per-collection and per-action level. The generated key is returned only during creation. You want to store this key carefully in a secure place. */
|
|
2612
|
+
export declare const createKey: API.OperationMethod<CreateKeyRequest, CreateKeyResponse, CreateKeyError, TypesenseOpContext>;
|
|
2613
|
+
export type CreateNLSearchModelError = BadRequest | TypesenseOpError;
|
|
2614
|
+
/** Create a NL search model Create a new NL search model. */
|
|
2615
|
+
export declare const createNLSearchModel: API.OperationMethod<CreateNLSearchModelRequest, CreateNLSearchModelResponse, CreateNLSearchModelError, TypesenseOpContext>;
|
|
2616
|
+
export type DebugError = TypesenseOpError;
|
|
2617
|
+
/** Print debugging information Print debugging information */
|
|
2618
|
+
export declare const debug: API.OperationMethod<DebugRequest, DebugResponse, DebugError, TypesenseOpContext>;
|
|
2619
|
+
export type DeleteAliasError = NotFound | TypesenseOpError;
|
|
2620
|
+
/** Delete an alias */
|
|
2621
|
+
export declare const deleteAlias: API.OperationMethod<DeleteAliasRequest, CollectionAlias, DeleteAliasError, TypesenseOpContext>;
|
|
2622
|
+
export type DeleteAnalyticsRuleError = NotFound | TypesenseOpError;
|
|
2623
|
+
/** Delete an analytics rule Permanently deletes an analytics rule, given it's name */
|
|
2624
|
+
export declare const deleteAnalyticsRule: API.OperationMethod<DeleteAnalyticsRuleRequest, DeleteAnalyticsRuleResponse, DeleteAnalyticsRuleError, TypesenseOpContext>;
|
|
2625
|
+
export type DeleteCollectionError = NotFound | TypesenseOpError;
|
|
2626
|
+
/** Delete a collection Permanently drops a collection. This action cannot be undone. For large collections, this might have an impact on read latencies. */
|
|
2627
|
+
export declare const deleteCollection: API.OperationMethod<DeleteCollectionRequest, DeleteCollectionResponse, DeleteCollectionError, TypesenseOpContext>;
|
|
2628
|
+
export type DeleteConversationModelError = NotFound | TypesenseOpError;
|
|
2629
|
+
/** Delete a conversation model Delete a conversation model */
|
|
2630
|
+
export declare const deleteConversationModel: API.OperationMethod<DeleteConversationModelRequest, DeleteConversationModelResponse, DeleteConversationModelError, TypesenseOpContext>;
|
|
2631
|
+
export type DeleteCurationSetError = NotFound | TypesenseOpError;
|
|
2632
|
+
/** Delete a curation set Delete a specific curation set by its name */
|
|
2633
|
+
export declare const deleteCurationSet: API.OperationMethod<DeleteCurationSetRequest, CurationSetDeleteSchema, DeleteCurationSetError, TypesenseOpContext>;
|
|
2634
|
+
export type DeleteCurationSetItemError = NotFound | TypesenseOpError;
|
|
2635
|
+
/** Delete a curation set item Delete a specific curation item by its id */
|
|
2636
|
+
export declare const deleteCurationSetItem: API.OperationMethod<DeleteCurationSetItemRequest, CurationItemDeleteSchema, DeleteCurationSetItemError, TypesenseOpContext>;
|
|
2637
|
+
export type DeleteDocumentError = NotFound | TypesenseOpError;
|
|
2638
|
+
/** Delete a document Delete an individual document from a collection by using its ID. */
|
|
2639
|
+
export declare const deleteDocument: API.OperationMethod<DeleteDocumentRequest, DeleteDocumentResponse, DeleteDocumentError, TypesenseOpContext>;
|
|
2640
|
+
export type DeleteDocumentsError = NotFound | TypesenseOpError;
|
|
2641
|
+
/** Delete a bunch of documents Delete a bunch of documents that match a specific filter condition. Use the `batch_size` parameter to control the number of documents that should deleted at a time. A larger value will speed up deletions, but will impact performance of other operations running on the server. */
|
|
2642
|
+
export declare const deleteDocuments: API.OperationMethod<DeleteDocumentsRequest, DeleteDocumentsResponse, DeleteDocumentsError, TypesenseOpContext>;
|
|
2643
|
+
export type DeleteKeyError = BadRequest | NotFound | TypesenseOpError;
|
|
2644
|
+
/** Delete an API key given its ID. */
|
|
2645
|
+
export declare const deleteKey: API.OperationMethod<DeleteKeyRequest, ApiKeyDeleteResponse, DeleteKeyError, TypesenseOpContext>;
|
|
2646
|
+
export type DeleteNLSearchModelError = NotFound | TypesenseOpError;
|
|
2647
|
+
/** Delete a NL search model Delete a specific NL search model by its ID. */
|
|
2648
|
+
export declare const deleteNLSearchModel: API.OperationMethod<DeleteNLSearchModelRequest, NLSearchModelDeleteSchema, DeleteNLSearchModelError, TypesenseOpContext>;
|
|
2649
|
+
export type DeletePresetError = NotFound | TypesenseOpError;
|
|
2650
|
+
/** Delete a preset. Permanently deletes a preset, given it's name. */
|
|
2651
|
+
export declare const deletePreset: API.OperationMethod<DeletePresetRequest, PresetDeleteSchema, DeletePresetError, TypesenseOpContext>;
|
|
2652
|
+
export type DeleteStopwordsSetError = NotFound | TypesenseOpError;
|
|
2653
|
+
/** Delete a stopwords set. Permanently deletes a stopwords set, given it's name. */
|
|
2654
|
+
export declare const deleteStopwordsSet: API.OperationMethod<DeleteStopwordsSetRequest, DeleteStopwordsSetResponse, DeleteStopwordsSetError, TypesenseOpContext>;
|
|
2655
|
+
export type DeleteSynonymSetError = NotFound | TypesenseOpError;
|
|
2656
|
+
/** Delete a synonym set Delete a specific synonym set by its name */
|
|
2657
|
+
export declare const deleteSynonymSet: API.OperationMethod<DeleteSynonymSetRequest, SynonymSetDeleteSchema, DeleteSynonymSetError, TypesenseOpContext>;
|
|
2658
|
+
export type DeleteSynonymSetItemError = NotFound | TypesenseOpError;
|
|
2659
|
+
/** Delete a synonym set item Delete a specific synonym item by its id */
|
|
2660
|
+
export declare const deleteSynonymSetItem: API.OperationMethod<DeleteSynonymSetItemRequest, SynonymItemDeleteSchema, DeleteSynonymSetItemError, TypesenseOpContext>;
|
|
2661
|
+
export type ExportDocumentsError = NotFound | TypesenseOpError;
|
|
2662
|
+
/** Export all documents in a collection Export all documents in a collection in JSON lines format. */
|
|
2663
|
+
export declare const exportDocuments: API.OperationMethod<ExportDocumentsRequest, ExportDocumentsResponse, ExportDocumentsError, TypesenseOpContext>;
|
|
2664
|
+
export type FlushAnalyticsError = TypesenseOpError;
|
|
2665
|
+
/** Flush in-memory analytics to disk Triggers a flush of analytics data to persistent storage. */
|
|
2666
|
+
export declare const flushAnalytics: API.OperationMethod<FlushAnalyticsRequest, AnalyticsEventCreateResponse, FlushAnalyticsError, TypesenseOpContext>;
|
|
2667
|
+
export type GetAliasError = NotFound | TypesenseOpError;
|
|
2668
|
+
/** Retrieve an alias Find out which collection an alias points to by fetching it */
|
|
2669
|
+
export declare const getAlias: API.OperationMethod<GetAliasRequest, CollectionAlias, GetAliasError, TypesenseOpContext>;
|
|
2670
|
+
export type GetAliasesError = TypesenseOpError;
|
|
2671
|
+
/** List all aliases List all aliases and the corresponding collections that they map to. */
|
|
2672
|
+
export declare const getAliases: API.OperationMethod<GetAliasesRequest, CollectionAliasesResponse, GetAliasesError, TypesenseOpContext>;
|
|
2673
|
+
export type GetAllConversationModelsError = TypesenseOpError;
|
|
2674
|
+
/** List all conversation models Retrieve all conversation models */
|
|
2675
|
+
export declare const getAllConversationModels: API.OperationMethod<GetAllConversationModelsRequest, GetAllConversationModelsResponse, GetAllConversationModelsError, TypesenseOpContext>;
|
|
2676
|
+
export type GetAllNLSearchModelsError = TypesenseOpError;
|
|
2677
|
+
/** List all NL search models Retrieve all NL search models. */
|
|
2678
|
+
export declare const getAllNLSearchModels: API.OperationMethod<GetAllNLSearchModelsRequest, GetAllNLSearchModelsResponse, GetAllNLSearchModelsError, TypesenseOpContext>;
|
|
2679
|
+
export type GetAllPresetsError = TypesenseOpError;
|
|
2680
|
+
/** Retrieves all presets. Retrieve the details of all presets */
|
|
2681
|
+
export declare const getAllPresets: API.OperationMethod<GetAllPresetsRequest, PresetsRetrieveSchema, GetAllPresetsError, TypesenseOpContext>;
|
|
2682
|
+
export type GetAnalyticsEventsError = BadRequest | TypesenseOpError;
|
|
2683
|
+
/** Retrieve analytics events Retrieve the most recent events for a user and rule. */
|
|
2684
|
+
export declare const getAnalyticsEvents: API.OperationMethod<GetAnalyticsEventsRequest, AnalyticsEventsResponse, GetAnalyticsEventsError, TypesenseOpContext>;
|
|
2685
|
+
export type GetAnalyticsRuleError = NotFound | TypesenseOpError;
|
|
2686
|
+
/** Retrieves an analytics rule Retrieve the details of an analytics rule, given it's name */
|
|
2687
|
+
export declare const getAnalyticsRule: API.OperationMethod<GetAnalyticsRuleRequest, GetAnalyticsRuleResponse, GetAnalyticsRuleError, TypesenseOpContext>;
|
|
2688
|
+
export type GetAnalyticsRulesError = TypesenseOpError;
|
|
2689
|
+
/** Retrieve analytics rules Retrieve all analytics rules. Use the optional rule_tag filter to narrow down results. */
|
|
2690
|
+
export declare const getAnalyticsRules: API.OperationMethod<GetAnalyticsRulesRequest, GetAnalyticsRulesResponse, GetAnalyticsRulesError, TypesenseOpContext>;
|
|
2691
|
+
export type GetAnalyticsStatusError = TypesenseOpError;
|
|
2692
|
+
/** Get analytics subsystem status Returns sizes of internal analytics buffers and queues. */
|
|
2693
|
+
export declare const getAnalyticsStatus: API.OperationMethod<GetAnalyticsStatusRequest, AnalyticsStatus, GetAnalyticsStatusError, TypesenseOpContext>;
|
|
2694
|
+
export type GetAPIStatsError = TypesenseOpError;
|
|
2695
|
+
/** Get stats about API endpoints. Retrieve the stats about API endpoints. */
|
|
2696
|
+
export declare const getAPIStats: API.OperationMethod<GetAPIStatsRequest, APIStatsResponse, GetAPIStatsError, TypesenseOpContext>;
|
|
2697
|
+
export type GetCollectionError = NotFound | TypesenseOpError;
|
|
2698
|
+
/** Retrieve a single collection Retrieve the details of a collection, given its name. */
|
|
2699
|
+
export declare const getCollection: API.OperationMethod<GetCollectionRequest, GetCollectionResponse, GetCollectionError, TypesenseOpContext>;
|
|
2700
|
+
export type GetCollectionsError = TypesenseOpError;
|
|
2701
|
+
/** List all collections Returns a summary of all your collections. The collections are returned sorted by creation date, with the most recent collections appearing first. */
|
|
2702
|
+
export declare const getCollections: API.OperationMethod<GetCollectionsRequest, GetCollectionsResponse, GetCollectionsError, TypesenseOpContext>;
|
|
2703
|
+
export type GetConversationModelError = NotFound | TypesenseOpError;
|
|
2704
|
+
/** Retrieve a conversation model Retrieve a conversation model */
|
|
2705
|
+
export declare const getConversationModel: API.OperationMethod<GetConversationModelRequest, GetConversationModelResponse, GetConversationModelError, TypesenseOpContext>;
|
|
2706
|
+
export type GetCurationSetError = NotFound | TypesenseOpError;
|
|
2707
|
+
/** Retrieve a curation set Retrieve a specific curation set by its name */
|
|
2708
|
+
export declare const getCurationSet: API.OperationMethod<GetCurationSetRequest, GetCurationSetResponse, GetCurationSetError, TypesenseOpContext>;
|
|
2709
|
+
export type GetCurationSetItemError = NotFound | TypesenseOpError;
|
|
2710
|
+
/** Retrieve a curation set item Retrieve a specific curation item by its id */
|
|
2711
|
+
export declare const getCurationSetItem: API.OperationMethod<GetCurationSetItemRequest, GetCurationSetItemResponse, GetCurationSetItemError, TypesenseOpContext>;
|
|
2712
|
+
export type GetCurationSetItemsError = NotFound | TypesenseOpError;
|
|
2713
|
+
/** List items in a curation set Retrieve all curation items in a set */
|
|
2714
|
+
export declare const getCurationSetItems: API.OperationMethod<GetCurationSetItemsRequest, GetCurationSetItemsResponse, GetCurationSetItemsError, TypesenseOpContext>;
|
|
2715
|
+
export type GetCurationSetsError = TypesenseOpError;
|
|
2716
|
+
/** List all curation sets Retrieve all curation sets */
|
|
2717
|
+
export declare const getCurationSets: API.OperationMethod<GetCurationSetsRequest, GetCurationSetsResponse, GetCurationSetsError, TypesenseOpContext>;
|
|
2718
|
+
export type GetDocumentError = NotFound | TypesenseOpError;
|
|
2719
|
+
/** Retrieve a document Fetch an individual document from a collection by using its ID. */
|
|
2720
|
+
export declare const getDocument: API.OperationMethod<GetDocumentRequest, GetDocumentResponse, GetDocumentError, TypesenseOpContext>;
|
|
2721
|
+
export type GetKeyError = NotFound | TypesenseOpError;
|
|
2722
|
+
/** 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. */
|
|
2723
|
+
export declare const getKey: API.OperationMethod<GetKeyRequest, GetKeyResponse, GetKeyError, TypesenseOpContext>;
|
|
2724
|
+
export type GetKeysError = TypesenseOpError;
|
|
2725
|
+
/** Retrieve (metadata about) all keys. */
|
|
2726
|
+
export declare const getKeys: API.OperationMethod<GetKeysRequest, ApiKeysResponse, GetKeysError, TypesenseOpContext>;
|
|
2727
|
+
export type GetMetricsError = TypesenseOpError;
|
|
2728
|
+
/** Get current RAM, CPU, Disk & Network usage metrics. Retrieve the metrics. */
|
|
2729
|
+
export declare const getMetrics: API.OperationMethod<GetMetricsRequest, GetMetricsResponse, GetMetricsError, TypesenseOpContext>;
|
|
2730
|
+
export type GetNLSearchModelError = NotFound | TypesenseOpError;
|
|
2731
|
+
/** Retrieve a NL search model Retrieve a specific NL search model by its ID. */
|
|
2732
|
+
export declare const getNLSearchModel: API.OperationMethod<GetNLSearchModelRequest, GetNLSearchModelResponse, GetNLSearchModelError, TypesenseOpContext>;
|
|
2733
|
+
export type GetPresetError = NotFound | TypesenseOpError;
|
|
2734
|
+
/** Retrieves a preset. Retrieve the details of a preset, given it's name. */
|
|
2735
|
+
export declare const getPreset: API.OperationMethod<GetPresetRequest, GetPresetResponse, GetPresetError, TypesenseOpContext>;
|
|
2736
|
+
export type GetSchemaChangesError = TypesenseOpError;
|
|
2737
|
+
/** 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. */
|
|
2738
|
+
export declare const getSchemaChanges: API.OperationMethod<GetSchemaChangesRequest, GetSchemaChangesResponse, GetSchemaChangesError, TypesenseOpContext>;
|
|
2739
|
+
export type GetStemmingDictionaryError = NotFound | TypesenseOpError;
|
|
2740
|
+
/** Retrieve a stemming dictionary Fetch details of a specific stemming dictionary. */
|
|
2741
|
+
export declare const getStemmingDictionary: API.OperationMethod<GetStemmingDictionaryRequest, StemmingDictionary, GetStemmingDictionaryError, TypesenseOpContext>;
|
|
2742
|
+
export type GetStopwordsSetError = NotFound | TypesenseOpError;
|
|
2743
|
+
/** Retrieves a stopwords set. Retrieve the details of a stopwords set, given it's name. */
|
|
2744
|
+
export declare const getStopwordsSet: API.OperationMethod<GetStopwordsSetRequest, StopwordsSetRetrieveSchema, GetStopwordsSetError, TypesenseOpContext>;
|
|
2745
|
+
export type GetStopwordsSetsError = TypesenseOpError;
|
|
2746
|
+
/** Retrieves all stopwords sets. Retrieve the details of all stopwords sets */
|
|
2747
|
+
export declare const getStopwordsSets: API.OperationMethod<GetStopwordsSetsRequest, StopwordsSetsRetrieveAllSchema, GetStopwordsSetsError, TypesenseOpContext>;
|
|
2748
|
+
export type GetSynonymSetError = NotFound | TypesenseOpError;
|
|
2749
|
+
/** Retrieve a synonym set Retrieve a specific synonym set by its name */
|
|
2750
|
+
export declare const getSynonymSet: API.OperationMethod<GetSynonymSetRequest, GetSynonymSetResponse, GetSynonymSetError, TypesenseOpContext>;
|
|
2751
|
+
export type GetSynonymSetItemError = NotFound | TypesenseOpError;
|
|
2752
|
+
/** Retrieve a synonym set item Retrieve a specific synonym item by its id */
|
|
2753
|
+
export declare const getSynonymSetItem: API.OperationMethod<GetSynonymSetItemRequest, GetSynonymSetItemResponse, GetSynonymSetItemError, TypesenseOpContext>;
|
|
2754
|
+
export type GetSynonymSetItemsError = NotFound | TypesenseOpError;
|
|
2755
|
+
/** List items in a synonym set Retrieve all synonym items in a set */
|
|
2756
|
+
export declare const getSynonymSetItems: API.OperationMethod<GetSynonymSetItemsRequest, GetSynonymSetItemsResponse, GetSynonymSetItemsError, TypesenseOpContext>;
|
|
2757
|
+
export type GetSynonymSetsError = TypesenseOpError;
|
|
2758
|
+
/** List all synonym sets Retrieve all synonym sets */
|
|
2759
|
+
export declare const getSynonymSets: API.OperationMethod<GetSynonymSetsRequest, GetSynonymSetsResponse, GetSynonymSetsError, TypesenseOpContext>;
|
|
2760
|
+
export type HealthError = TypesenseOpError;
|
|
2761
|
+
/** Checks if Typesense server is ready to accept requests. Checks if Typesense server is ready to accept requests. */
|
|
2762
|
+
export declare const health: API.OperationMethod<HealthRequest, HealthStatus, HealthError, TypesenseOpContext>;
|
|
2763
|
+
export type ImportDocumentsError = BadRequest | NotFound | TypesenseOpError;
|
|
2764
|
+
/** 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. */
|
|
2765
|
+
export declare const importDocuments: API.OperationMethod<ImportDocumentsRequest, ImportDocumentsResponse, ImportDocumentsError, TypesenseOpContext>;
|
|
2766
|
+
export type ImportStemmingDictionaryError = BadRequest | TypesenseOpError;
|
|
2767
|
+
/** Import a stemming dictionary Upload a JSONL file containing word mappings to create or update a stemming dictionary. */
|
|
2768
|
+
export declare const importStemmingDictionary: API.OperationMethod<ImportStemmingDictionaryRequest, ImportStemmingDictionaryResponse, ImportStemmingDictionaryError, TypesenseOpContext>;
|
|
2769
|
+
export type ListDocumentError = NotFound | TypesenseOpError;
|
|
2770
|
+
/** Index a document A document to be indexed in a given collection must conform to the schema of the collection. */
|
|
2771
|
+
export declare const listDocument: API.OperationMethod<ListDocumentRequest, ListDocumentResponse, ListDocumentError, TypesenseOpContext>;
|
|
2772
|
+
export type ListStemmingDictionariesError = TypesenseOpError;
|
|
2773
|
+
/** List all stemming dictionaries Retrieve a list of all available stemming dictionaries. */
|
|
2774
|
+
export declare const listStemmingDictionaries: API.OperationMethod<ListStemmingDictionariesRequest, ListStemmingDictionariesResponse, ListStemmingDictionariesError, TypesenseOpContext>;
|
|
2775
|
+
export type SearchCollectionError = BadRequest | NotFound | TypesenseOpError;
|
|
2776
|
+
/** Search for documents in a collection Search for documents in a collection that match the search criteria. */
|
|
2777
|
+
export declare const searchCollection: API.OperationMethod<SearchCollectionRequest, SearchResult, SearchCollectionError, TypesenseOpContext>;
|
|
2778
|
+
export type SearchMultiError = BadRequest | TypesenseOpError;
|
|
2779
|
+
/** 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. */
|
|
2780
|
+
export declare const searchMulti: API.OperationMethod<SearchMultiRequest, MultiSearchResult, SearchMultiError, TypesenseOpContext>;
|
|
2781
|
+
export type TakeSnapshotError = TypesenseOpError;
|
|
2782
|
+
/** 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. */
|
|
2783
|
+
export declare const takeSnapshot: API.OperationMethod<TakeSnapshotRequest, SuccessStatus, TakeSnapshotError, TypesenseOpContext>;
|
|
2784
|
+
export type ToggleSlowRequestLogError = TypesenseOpError;
|
|
2785
|
+
/** Toggle Slow Request Log Enable logging of requests that take over a defined threshold of time. Default is `-1` which disables slow request logging. Slow requests are logged to the primary log file, with the prefix SLOW REQUEST. */
|
|
2786
|
+
export declare const toggleSlowRequestLog: API.OperationMethod<ToggleSlowRequestLogRequest, SuccessStatus, ToggleSlowRequestLogError, TypesenseOpContext>;
|
|
2787
|
+
export type UpdateCollectionError = BadRequest | NotFound | TypesenseOpError;
|
|
2788
|
+
/** Update a collection Update a collection's schema to modify the fields and their types. */
|
|
2789
|
+
export declare const updateCollection: API.OperationMethod<UpdateCollectionRequest, CollectionUpdateSchema, UpdateCollectionError, TypesenseOpContext>;
|
|
2790
|
+
export type UpdateConversationModelError = BadRequest | NotFound | TypesenseOpError;
|
|
2791
|
+
/** Update a conversation model Update a conversation model */
|
|
2792
|
+
export declare const updateConversationModel: API.OperationMethod<UpdateConversationModelRequest, UpdateConversationModelResponse, UpdateConversationModelError, TypesenseOpContext>;
|
|
2793
|
+
export type UpdateDocumentError = NotFound | TypesenseOpError;
|
|
2794
|
+
/** Update a document Update an individual document from a collection by using its ID. The update can be partial. */
|
|
2795
|
+
export declare const updateDocument: API.OperationMethod<UpdateDocumentRequest, UpdateDocumentResponse, UpdateDocumentError, TypesenseOpContext>;
|
|
2796
|
+
export type UpdateDocumentsError = BadRequest | NotFound | TypesenseOpError;
|
|
2797
|
+
/** Update documents with conditional query The filter_by query parameter is used to filter to specify a condition against which the documents are matched. The request body contains the fields that should be updated for any documents that match the filter condition. This endpoint is only available if the Typesense server is version `0.25.0.rc12` or later. */
|
|
2798
|
+
export declare const updateDocuments: API.OperationMethod<UpdateDocumentsRequest, UpdateDocumentsResponse, UpdateDocumentsError, TypesenseOpContext>;
|
|
2799
|
+
export type UpdateNLSearchModelError = BadRequest | NotFound | TypesenseOpError;
|
|
2800
|
+
/** Update a NL search model Update an existing NL search model. */
|
|
2801
|
+
export declare const updateNLSearchModel: API.OperationMethod<UpdateNLSearchModelRequest, UpdateNLSearchModelResponse, UpdateNLSearchModelError, TypesenseOpContext>;
|
|
2802
|
+
export type UpsertAliasError = BadRequest | NotFound | TypesenseOpError;
|
|
2803
|
+
/** Create or update a collection alias Create or update a collection alias. An alias is a virtual collection name that points to a real collection. If you're familiar with symbolic links on Linux, it's very similar to that. Aliases are useful when you want to reindex your data in the background on a new collection and switch your application to it without any changes to your code. */
|
|
2804
|
+
export declare const upsertAlias: API.OperationMethod<UpsertAliasRequest, CollectionAlias, UpsertAliasError, TypesenseOpContext>;
|
|
2805
|
+
export type UpsertAnalyticsRuleError = BadRequest | TypesenseOpError;
|
|
2806
|
+
/** Upserts an analytics rule Upserts an analytics rule with the given name. */
|
|
2807
|
+
export declare const upsertAnalyticsRule: API.OperationMethod<UpsertAnalyticsRuleRequest, UpsertAnalyticsRuleResponse, UpsertAnalyticsRuleError, TypesenseOpContext>;
|
|
2808
|
+
export type UpsertCurationSetError = BadRequest | TypesenseOpError;
|
|
2809
|
+
/** Create or update a curation set Create or update a curation set with the given name */
|
|
2810
|
+
export declare const upsertCurationSet: API.OperationMethod<UpsertCurationSetRequest, UpsertCurationSetResponse, UpsertCurationSetError, TypesenseOpContext>;
|
|
2811
|
+
export type UpsertCurationSetItemError = BadRequest | TypesenseOpError;
|
|
2812
|
+
/** Create or update a curation set item Create or update a curation set item with the given id */
|
|
2813
|
+
export declare const upsertCurationSetItem: API.OperationMethod<UpsertCurationSetItemRequest, UpsertCurationSetItemResponse, UpsertCurationSetItemError, TypesenseOpContext>;
|
|
2814
|
+
export type UpsertPresetError = BadRequest | TypesenseOpError;
|
|
2815
|
+
/** Upserts a preset. Create or update an existing preset. */
|
|
2816
|
+
export declare const upsertPreset: API.OperationMethod<UpsertPresetRequest, UpsertPresetResponse, UpsertPresetError, TypesenseOpContext>;
|
|
2817
|
+
export type UpsertStopwordsSetError = BadRequest | TypesenseOpError;
|
|
2818
|
+
/** Upserts a stopwords set. When an analytics rule is created, we give it a name and describe the type, the source collections and the destination collection. */
|
|
2819
|
+
export declare const upsertStopwordsSet: API.OperationMethod<UpsertStopwordsSetRequest, StopwordsSetSchema, UpsertStopwordsSetError, TypesenseOpContext>;
|
|
2820
|
+
export type UpsertSynonymSetError = BadRequest | TypesenseOpError;
|
|
2821
|
+
/** Create or update a synonym set Create or update a synonym set with the given name */
|
|
2822
|
+
export declare const upsertSynonymSet: API.OperationMethod<UpsertSynonymSetRequest, UpsertSynonymSetResponse, UpsertSynonymSetError, TypesenseOpContext>;
|
|
2823
|
+
export type UpsertSynonymSetItemError = BadRequest | TypesenseOpError;
|
|
2824
|
+
/** Create or update a synonym set item Create or update a synonym set item with the given id */
|
|
2825
|
+
export declare const upsertSynonymSetItem: API.OperationMethod<UpsertSynonymSetItemRequest, UpsertSynonymSetItemResponse, UpsertSynonymSetItemError, TypesenseOpContext>;
|
|
2826
|
+
export type VoteError = TypesenseOpError;
|
|
2827
|
+
/** Triggers a follower node to initiate the raft voting process, which triggers leader re-election. Triggers a follower node to initiate the raft voting process, which triggers leader re-election. The follower node that you run this operation against will become the new leader, once this command succeeds. */
|
|
2828
|
+
export declare const vote: API.OperationMethod<VoteRequest, SuccessStatus, VoteError, TypesenseOpContext>;
|
|
2829
|
+
//# sourceMappingURL=typesense.d.ts.map
|