@distilled.cloud/typesense 0.27.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/operations/clearCache.d.ts +8 -9
- package/lib/operations/clearCache.d.ts.map +1 -1
- package/lib/operations/clearCache.js +0 -2
- package/lib/operations/clearCache.js.map +1 -1
- package/lib/operations/compactDb.d.ts +8 -9
- package/lib/operations/compactDb.d.ts.map +1 -1
- package/lib/operations/compactDb.js +0 -2
- package/lib/operations/compactDb.js.map +1 -1
- package/lib/operations/createAnalyticsEvent.d.ts +17 -29
- package/lib/operations/createAnalyticsEvent.d.ts.map +1 -1
- package/lib/operations/createAnalyticsEvent.js +0 -2
- package/lib/operations/createAnalyticsEvent.js.map +1 -1
- package/lib/operations/createAnalyticsRule.d.ts +38 -5
- package/lib/operations/createAnalyticsRule.d.ts.map +1 -1
- package/lib/operations/createAnalyticsRule.js +49 -3
- package/lib/operations/createAnalyticsRule.js.map +1 -1
- package/lib/operations/createCollection.d.ts +102 -197
- package/lib/operations/createCollection.d.ts.map +1 -1
- package/lib/operations/createCollection.js +6 -7
- package/lib/operations/createCollection.js.map +1 -1
- package/lib/operations/createConversationModel.d.ts +18 -29
- package/lib/operations/createConversationModel.d.ts.map +1 -1
- package/lib/operations/createConversationModel.js +1 -2
- package/lib/operations/createConversationModel.js.map +1 -1
- package/lib/operations/createKey.d.ts +19 -33
- package/lib/operations/createKey.d.ts.map +1 -1
- package/lib/operations/createKey.js +0 -2
- package/lib/operations/createKey.js.map +1 -1
- package/lib/operations/createNLSearchModel.d.ts +28 -49
- package/lib/operations/createNLSearchModel.d.ts.map +1 -1
- package/lib/operations/createNLSearchModel.js +1 -2
- package/lib/operations/createNLSearchModel.js.map +1 -1
- package/lib/operations/debug.d.ts +8 -9
- package/lib/operations/debug.d.ts.map +1 -1
- package/lib/operations/debug.js +0 -2
- package/lib/operations/debug.js.map +1 -1
- package/lib/operations/deleteAlias.d.ts +10 -15
- package/lib/operations/deleteAlias.d.ts.map +1 -1
- package/lib/operations/deleteAlias.js +0 -2
- package/lib/operations/deleteAlias.js.map +1 -1
- package/lib/operations/deleteAnalyticsRule.d.ts +22 -39
- package/lib/operations/deleteAnalyticsRule.d.ts.map +1 -1
- package/lib/operations/deleteAnalyticsRule.js +0 -2
- package/lib/operations/deleteAnalyticsRule.js.map +1 -1
- package/lib/operations/deleteCollection.d.ts +57 -107
- package/lib/operations/deleteCollection.d.ts.map +1 -1
- package/lib/operations/deleteCollection.js +6 -7
- package/lib/operations/deleteCollection.js.map +1 -1
- package/lib/operations/deleteConversationModel.d.ts +9 -13
- package/lib/operations/deleteConversationModel.d.ts.map +1 -1
- package/lib/operations/deleteConversationModel.js +0 -2
- package/lib/operations/deleteConversationModel.js.map +1 -1
- package/lib/operations/deleteCurationSet.d.ts +9 -13
- package/lib/operations/deleteCurationSet.d.ts.map +1 -1
- package/lib/operations/deleteCurationSet.js +0 -2
- package/lib/operations/deleteCurationSet.js.map +1 -1
- package/lib/operations/deleteCurationSetItem.d.ts +10 -15
- package/lib/operations/deleteCurationSetItem.d.ts.map +1 -1
- package/lib/operations/deleteCurationSetItem.js +0 -2
- package/lib/operations/deleteCurationSetItem.js.map +1 -1
- package/lib/operations/deleteDocument.d.ts +8 -11
- package/lib/operations/deleteDocument.d.ts.map +1 -1
- package/lib/operations/deleteDocument.js +2 -3
- package/lib/operations/deleteDocument.js.map +1 -1
- package/lib/operations/deleteDocuments.d.ts +10 -15
- package/lib/operations/deleteDocuments.d.ts.map +1 -1
- package/lib/operations/deleteDocuments.js +0 -2
- package/lib/operations/deleteDocuments.js.map +1 -1
- package/lib/operations/deleteKey.d.ts +9 -13
- package/lib/operations/deleteKey.d.ts.map +1 -1
- package/lib/operations/deleteKey.js +0 -2
- package/lib/operations/deleteKey.js.map +1 -1
- package/lib/operations/deleteNLSearchModel.d.ts +9 -13
- package/lib/operations/deleteNLSearchModel.d.ts.map +1 -1
- package/lib/operations/deleteNLSearchModel.js +0 -2
- package/lib/operations/deleteNLSearchModel.js.map +1 -1
- package/lib/operations/deletePreset.d.ts +9 -13
- package/lib/operations/deletePreset.d.ts.map +1 -1
- package/lib/operations/deletePreset.js +0 -2
- package/lib/operations/deletePreset.js.map +1 -1
- package/lib/operations/deleteStopwordsSet.d.ts +9 -13
- package/lib/operations/deleteStopwordsSet.d.ts.map +1 -1
- package/lib/operations/deleteStopwordsSet.js +0 -2
- package/lib/operations/deleteStopwordsSet.js.map +1 -1
- package/lib/operations/deleteSynonymSet.d.ts +9 -13
- package/lib/operations/deleteSynonymSet.d.ts.map +1 -1
- package/lib/operations/deleteSynonymSet.js +0 -2
- package/lib/operations/deleteSynonymSet.js.map +1 -1
- package/lib/operations/deleteSynonymSetItem.d.ts +10 -15
- package/lib/operations/deleteSynonymSetItem.d.ts.map +1 -1
- package/lib/operations/deleteSynonymSetItem.js +0 -2
- package/lib/operations/deleteSynonymSetItem.js.map +1 -1
- package/lib/operations/exportDocuments.d.ts +8 -11
- package/lib/operations/exportDocuments.d.ts.map +1 -1
- package/lib/operations/exportDocuments.js +2 -3
- package/lib/operations/exportDocuments.js.map +1 -1
- package/lib/operations/flushAnalytics.d.ts +8 -9
- package/lib/operations/flushAnalytics.d.ts.map +1 -1
- package/lib/operations/flushAnalytics.js +0 -2
- package/lib/operations/flushAnalytics.js.map +1 -1
- package/lib/operations/getAlias.d.ts +10 -15
- package/lib/operations/getAlias.d.ts.map +1 -1
- package/lib/operations/getAlias.js +0 -2
- package/lib/operations/getAlias.js.map +1 -1
- package/lib/operations/getAliases.d.ts +11 -15
- package/lib/operations/getAliases.d.ts.map +1 -1
- package/lib/operations/getAliases.js +0 -2
- package/lib/operations/getAliases.js.map +1 -1
- package/lib/operations/getAnalyticsEvents.d.ts +20 -35
- package/lib/operations/getAnalyticsEvents.d.ts.map +1 -1
- package/lib/operations/getAnalyticsEvents.js +0 -2
- package/lib/operations/getAnalyticsEvents.js.map +1 -1
- package/lib/operations/getAnalyticsStatus.d.ts +14 -21
- package/lib/operations/getAnalyticsStatus.d.ts.map +1 -1
- package/lib/operations/getAnalyticsStatus.js +0 -2
- package/lib/operations/getAnalyticsStatus.js.map +1 -1
- package/lib/operations/getCollection.d.ts +57 -107
- package/lib/operations/getCollection.d.ts.map +1 -1
- package/lib/operations/getCollection.js +6 -7
- package/lib/operations/getCollection.js.map +1 -1
- package/lib/operations/getCollections.d.ts +57 -107
- package/lib/operations/getCollections.d.ts.map +1 -1
- package/lib/operations/getCollections.js +6 -7
- package/lib/operations/getCollections.js.map +1 -1
- package/lib/operations/getDocument.d.ts +8 -11
- package/lib/operations/getDocument.d.ts.map +1 -1
- package/lib/operations/getDocument.js +2 -3
- package/lib/operations/getDocument.js.map +1 -1
- package/lib/operations/getKey.d.ts +15 -25
- package/lib/operations/getKey.d.ts.map +1 -1
- package/lib/operations/getKey.js +0 -2
- package/lib/operations/getKey.js.map +1 -1
- package/lib/operations/getKeys.d.ts +16 -25
- package/lib/operations/getKeys.d.ts.map +1 -1
- package/lib/operations/getKeys.js +0 -2
- package/lib/operations/getKeys.js.map +1 -1
- package/lib/operations/getSchemaChanges.d.ts +10 -13
- package/lib/operations/getSchemaChanges.d.ts.map +1 -1
- package/lib/operations/getSchemaChanges.js +0 -2
- package/lib/operations/getSchemaChanges.js.map +1 -1
- package/lib/operations/getStemmingDictionary.d.ts +13 -21
- package/lib/operations/getStemmingDictionary.d.ts.map +1 -1
- package/lib/operations/getStemmingDictionary.js +0 -2
- package/lib/operations/getStemmingDictionary.js.map +1 -1
- package/lib/operations/health.d.ts +8 -9
- package/lib/operations/health.d.ts.map +1 -1
- package/lib/operations/health.js +0 -2
- package/lib/operations/health.js.map +1 -1
- package/lib/operations/importDocuments.d.ts +8 -11
- package/lib/operations/importDocuments.d.ts.map +1 -1
- package/lib/operations/importDocuments.js +2 -3
- package/lib/operations/importDocuments.js.map +1 -1
- package/lib/operations/importStemmingDictionary.d.ts +7 -9
- package/lib/operations/importStemmingDictionary.d.ts.map +1 -1
- package/lib/operations/importStemmingDictionary.js +0 -2
- package/lib/operations/importStemmingDictionary.js.map +1 -1
- package/lib/operations/indexDocument.d.ts +9 -13
- package/lib/operations/indexDocument.d.ts.map +1 -1
- package/lib/operations/indexDocument.js +2 -3
- package/lib/operations/indexDocument.js.map +1 -1
- package/lib/operations/listStemmingDictionaries.d.ts +8 -9
- package/lib/operations/listStemmingDictionaries.d.ts.map +1 -1
- package/lib/operations/listStemmingDictionaries.js +0 -2
- package/lib/operations/listStemmingDictionaries.js.map +1 -1
- package/lib/operations/multiSearch.d.ts +199 -407
- package/lib/operations/multiSearch.d.ts.map +1 -1
- package/lib/operations/multiSearch.js +0 -2
- package/lib/operations/multiSearch.js.map +1 -1
- package/lib/operations/retrieveAPIStats.d.ts +20 -33
- package/lib/operations/retrieveAPIStats.d.ts.map +1 -1
- package/lib/operations/retrieveAPIStats.js +0 -2
- package/lib/operations/retrieveAPIStats.js.map +1 -1
- package/lib/operations/retrieveAllConversationModels.d.ts +8 -9
- package/lib/operations/retrieveAllConversationModels.d.ts.map +1 -1
- package/lib/operations/retrieveAllConversationModels.js +0 -2
- package/lib/operations/retrieveAllConversationModels.js.map +1 -1
- package/lib/operations/retrieveAllNLSearchModels.d.ts +8 -9
- package/lib/operations/retrieveAllNLSearchModels.d.ts.map +1 -1
- package/lib/operations/retrieveAllNLSearchModels.js +0 -2
- package/lib/operations/retrieveAllNLSearchModels.js.map +1 -1
- package/lib/operations/retrieveAllPresets.d.ts +156 -15
- package/lib/operations/retrieveAllPresets.d.ts.map +1 -1
- package/lib/operations/retrieveAllPresets.js +0 -2
- package/lib/operations/retrieveAllPresets.js.map +1 -1
- package/lib/operations/retrieveAnalyticsRule.d.ts +22 -39
- package/lib/operations/retrieveAnalyticsRule.d.ts.map +1 -1
- package/lib/operations/retrieveAnalyticsRule.js +0 -2
- package/lib/operations/retrieveAnalyticsRule.js.map +1 -1
- package/lib/operations/retrieveAnalyticsRules.d.ts +22 -39
- package/lib/operations/retrieveAnalyticsRules.d.ts.map +1 -1
- package/lib/operations/retrieveAnalyticsRules.js +0 -2
- package/lib/operations/retrieveAnalyticsRules.js.map +1 -1
- package/lib/operations/retrieveConversationModel.d.ts +9 -13
- package/lib/operations/retrieveConversationModel.d.ts.map +1 -1
- package/lib/operations/retrieveConversationModel.js +0 -2
- package/lib/operations/retrieveConversationModel.js.map +1 -1
- package/lib/operations/retrieveCurationSet.d.ts +35 -65
- package/lib/operations/retrieveCurationSet.d.ts.map +1 -1
- package/lib/operations/retrieveCurationSet.js +0 -2
- package/lib/operations/retrieveCurationSet.js.map +1 -1
- package/lib/operations/retrieveCurationSetItem.d.ts +32 -59
- package/lib/operations/retrieveCurationSetItem.d.ts.map +1 -1
- package/lib/operations/retrieveCurationSetItem.js +0 -2
- package/lib/operations/retrieveCurationSetItem.js.map +1 -1
- package/lib/operations/retrieveCurationSetItems.d.ts +31 -57
- package/lib/operations/retrieveCurationSetItems.d.ts.map +1 -1
- package/lib/operations/retrieveCurationSetItems.js +0 -2
- package/lib/operations/retrieveCurationSetItems.js.map +1 -1
- package/lib/operations/retrieveCurationSets.d.ts +34 -61
- package/lib/operations/retrieveCurationSets.d.ts.map +1 -1
- package/lib/operations/retrieveCurationSets.js +0 -2
- package/lib/operations/retrieveCurationSets.js.map +1 -1
- package/lib/operations/retrieveMetrics.d.ts +6 -5
- package/lib/operations/retrieveMetrics.d.ts.map +1 -1
- package/lib/operations/retrieveMetrics.js +2 -3
- package/lib/operations/retrieveMetrics.js.map +1 -1
- package/lib/operations/retrieveNLSearchModel.d.ts +9 -13
- package/lib/operations/retrieveNLSearchModel.d.ts.map +1 -1
- package/lib/operations/retrieveNLSearchModel.js +0 -2
- package/lib/operations/retrieveNLSearchModel.js.map +1 -1
- package/lib/operations/retrievePreset.d.ts +155 -15
- package/lib/operations/retrievePreset.d.ts.map +1 -1
- package/lib/operations/retrievePreset.js +0 -2
- package/lib/operations/retrievePreset.js.map +1 -1
- package/lib/operations/retrieveStopwordsSet.d.ts +13 -21
- package/lib/operations/retrieveStopwordsSet.d.ts.map +1 -1
- package/lib/operations/retrieveStopwordsSet.js +0 -2
- package/lib/operations/retrieveStopwordsSet.js.map +1 -1
- package/lib/operations/retrieveStopwordsSets.d.ts +12 -17
- package/lib/operations/retrieveStopwordsSets.d.ts.map +1 -1
- package/lib/operations/retrieveStopwordsSets.js +0 -2
- package/lib/operations/retrieveStopwordsSets.js.map +1 -1
- package/lib/operations/retrieveSynonymSet.d.ts +16 -27
- package/lib/operations/retrieveSynonymSet.d.ts.map +1 -1
- package/lib/operations/retrieveSynonymSet.js +0 -2
- package/lib/operations/retrieveSynonymSet.js.map +1 -1
- package/lib/operations/retrieveSynonymSetItem.d.ts +14 -23
- package/lib/operations/retrieveSynonymSetItem.d.ts.map +1 -1
- package/lib/operations/retrieveSynonymSetItem.js +0 -2
- package/lib/operations/retrieveSynonymSetItem.js.map +1 -1
- package/lib/operations/retrieveSynonymSetItems.d.ts +13 -21
- package/lib/operations/retrieveSynonymSetItems.d.ts.map +1 -1
- package/lib/operations/retrieveSynonymSetItems.js +0 -2
- package/lib/operations/retrieveSynonymSetItems.js.map +1 -1
- package/lib/operations/retrieveSynonymSets.d.ts +15 -23
- package/lib/operations/retrieveSynonymSets.d.ts.map +1 -1
- package/lib/operations/retrieveSynonymSets.js +0 -2
- package/lib/operations/retrieveSynonymSets.js.map +1 -1
- package/lib/operations/searchCollection.d.ts +119 -247
- package/lib/operations/searchCollection.d.ts.map +1 -1
- package/lib/operations/searchCollection.js +0 -2
- package/lib/operations/searchCollection.js.map +1 -1
- package/lib/operations/takeSnapshot.d.ts +9 -13
- package/lib/operations/takeSnapshot.d.ts.map +1 -1
- package/lib/operations/takeSnapshot.js +0 -2
- package/lib/operations/takeSnapshot.js.map +1 -1
- package/lib/operations/toggleSlowRequestLog.d.ts +9 -13
- package/lib/operations/toggleSlowRequestLog.d.ts.map +1 -1
- package/lib/operations/toggleSlowRequestLog.js +0 -2
- package/lib/operations/toggleSlowRequestLog.js.map +1 -1
- package/lib/operations/updateCollection.d.ts +85 -163
- package/lib/operations/updateCollection.d.ts.map +1 -1
- package/lib/operations/updateCollection.js +10 -11
- package/lib/operations/updateCollection.js.map +1 -1
- package/lib/operations/updateConversationModel.d.ts +19 -31
- package/lib/operations/updateConversationModel.d.ts.map +1 -1
- package/lib/operations/updateConversationModel.js +1 -2
- package/lib/operations/updateConversationModel.js.map +1 -1
- package/lib/operations/updateDocument.d.ts +9 -13
- package/lib/operations/updateDocument.d.ts.map +1 -1
- package/lib/operations/updateDocument.js +2 -3
- package/lib/operations/updateDocument.js.map +1 -1
- package/lib/operations/updateDocuments.d.ts +10 -15
- package/lib/operations/updateDocuments.d.ts.map +1 -1
- package/lib/operations/updateDocuments.js +0 -2
- package/lib/operations/updateDocuments.js.map +1 -1
- package/lib/operations/updateNLSearchModel.d.ts +9 -13
- package/lib/operations/updateNLSearchModel.d.ts.map +1 -1
- package/lib/operations/updateNLSearchModel.js +0 -2
- package/lib/operations/updateNLSearchModel.js.map +1 -1
- package/lib/operations/upsertAlias.d.ts +11 -17
- package/lib/operations/upsertAlias.d.ts.map +1 -1
- package/lib/operations/upsertAlias.js +0 -2
- package/lib/operations/upsertAlias.js.map +1 -1
- package/lib/operations/upsertAnalyticsRule.d.ts +33 -61
- package/lib/operations/upsertAnalyticsRule.d.ts.map +1 -1
- package/lib/operations/upsertAnalyticsRule.js +0 -2
- package/lib/operations/upsertAnalyticsRule.js.map +1 -1
- package/lib/operations/upsertCurationSet.d.ts +61 -117
- package/lib/operations/upsertCurationSet.d.ts.map +1 -1
- package/lib/operations/upsertCurationSet.js +0 -2
- package/lib/operations/upsertCurationSet.js.map +1 -1
- package/lib/operations/upsertCurationSetItem.d.ts +55 -105
- package/lib/operations/upsertCurationSetItem.d.ts.map +1 -1
- package/lib/operations/upsertCurationSetItem.js +0 -2
- package/lib/operations/upsertCurationSetItem.js.map +1 -1
- package/lib/operations/upsertPreset.d.ts +301 -17
- package/lib/operations/upsertPreset.d.ts.map +1 -1
- package/lib/operations/upsertPreset.js +0 -2
- package/lib/operations/upsertPreset.js.map +1 -1
- package/lib/operations/upsertStopwordsSet.d.ts +13 -21
- package/lib/operations/upsertStopwordsSet.d.ts.map +1 -1
- package/lib/operations/upsertStopwordsSet.js +0 -2
- package/lib/operations/upsertStopwordsSet.js.map +1 -1
- package/lib/operations/upsertSynonymSet.d.ts +23 -41
- package/lib/operations/upsertSynonymSet.d.ts.map +1 -1
- package/lib/operations/upsertSynonymSet.js +0 -2
- package/lib/operations/upsertSynonymSet.js.map +1 -1
- package/lib/operations/upsertSynonymSetItem.d.ts +18 -31
- package/lib/operations/upsertSynonymSetItem.d.ts.map +1 -1
- package/lib/operations/upsertSynonymSetItem.js +0 -2
- package/lib/operations/upsertSynonymSetItem.js.map +1 -1
- package/lib/operations/vote.d.ts +8 -9
- package/lib/operations/vote.d.ts.map +1 -1
- package/lib/operations/vote.js +0 -2
- package/lib/operations/vote.js.map +1 -1
- package/package.json +2 -2
- package/src/operations/clearCache.ts +8 -4
- package/src/operations/compactDb.ts +8 -4
- package/src/operations/createAnalyticsEvent.ts +18 -4
- package/src/operations/createAnalyticsRule.ts +93 -4
- package/src/operations/createCollection.ts +104 -9
- package/src/operations/createConversationModel.ts +19 -6
- package/src/operations/createKey.ts +20 -4
- package/src/operations/createNLSearchModel.ts +29 -4
- package/src/operations/debug.ts +6 -4
- package/src/operations/deleteAlias.ts +11 -4
- package/src/operations/deleteAnalyticsRule.ts +23 -4
- package/src/operations/deleteCollection.ts +61 -9
- package/src/operations/deleteConversationModel.ts +8 -6
- package/src/operations/deleteCurationSet.ts +10 -4
- package/src/operations/deleteCurationSetItem.ts +9 -5
- package/src/operations/deleteDocument.ts +8 -4
- package/src/operations/deleteDocuments.ts +9 -4
- package/src/operations/deleteKey.ts +10 -4
- package/src/operations/deleteNLSearchModel.ts +10 -4
- package/src/operations/deletePreset.ts +10 -4
- package/src/operations/deleteStopwordsSet.ts +10 -4
- package/src/operations/deleteSynonymSet.ts +10 -4
- package/src/operations/deleteSynonymSetItem.ts +9 -4
- package/src/operations/exportDocuments.ts +8 -4
- package/src/operations/flushAnalytics.ts +8 -4
- package/src/operations/getAlias.ts +11 -4
- package/src/operations/getAliases.ts +8 -4
- package/src/operations/getAnalyticsEvents.ts +21 -4
- package/src/operations/getAnalyticsStatus.ts +12 -4
- package/src/operations/getCollection.ts +61 -9
- package/src/operations/getCollections.ts +61 -9
- package/src/operations/getDocument.ts +8 -4
- package/src/operations/getKey.ts +16 -4
- package/src/operations/getKeys.ts +14 -4
- package/src/operations/getSchemaChanges.ts +10 -4
- package/src/operations/getStemmingDictionary.ts +9 -5
- package/src/operations/health.ts +6 -4
- package/src/operations/importDocuments.ts +8 -4
- package/src/operations/importStemmingDictionary.ts +8 -6
- package/src/operations/indexDocument.ts +9 -4
- package/src/operations/listStemmingDictionaries.ts +6 -6
- package/src/operations/multiSearch.ts +192 -4
- package/src/operations/retrieveAPIStats.ts +20 -4
- package/src/operations/retrieveAllConversationModels.ts +4 -6
- package/src/operations/retrieveAllNLSearchModels.ts +4 -6
- package/src/operations/retrieveAllPresets.ts +159 -4
- package/src/operations/retrieveAnalyticsRule.ts +23 -5
- package/src/operations/retrieveAnalyticsRules.ts +23 -6
- package/src/operations/retrieveConversationModel.ts +10 -6
- package/src/operations/retrieveCurationSet.ts +31 -4
- package/src/operations/retrieveCurationSetItem.ts +26 -6
- package/src/operations/retrieveCurationSetItems.ts +25 -6
- package/src/operations/retrieveCurationSets.ts +27 -4
- package/src/operations/retrieveMetrics.ts +7 -4
- package/src/operations/retrieveNLSearchModel.ts +10 -5
- package/src/operations/retrievePreset.ts +158 -4
- package/src/operations/retrieveStopwordsSet.ts +10 -4
- package/src/operations/retrieveStopwordsSets.ts +6 -5
- package/src/operations/retrieveSynonymSet.ts +17 -4
- package/src/operations/retrieveSynonymSetItem.ts +13 -6
- package/src/operations/retrieveSynonymSetItems.ts +12 -6
- package/src/operations/retrieveSynonymSets.ts +13 -4
- package/src/operations/searchCollection.ts +110 -4
- package/src/operations/takeSnapshot.ts +10 -4
- package/src/operations/toggleSlowRequestLog.ts +10 -4
- package/src/operations/updateCollection.ts +138 -52
- package/src/operations/updateConversationModel.ts +20 -6
- package/src/operations/updateDocument.ts +9 -4
- package/src/operations/updateDocuments.ts +9 -4
- package/src/operations/updateNLSearchModel.ts +10 -4
- package/src/operations/upsertAlias.ts +12 -4
- package/src/operations/upsertAnalyticsRule.ts +34 -4
- package/src/operations/upsertCurationSet.ts +52 -4
- package/src/operations/upsertCurationSetItem.ts +44 -5
- package/src/operations/upsertPreset.ts +306 -4
- package/src/operations/upsertStopwordsSet.ts +14 -4
- package/src/operations/upsertSynonymSet.ts +24 -4
- package/src/operations/upsertSynonymSetItem.ts +17 -4
- package/src/operations/vote.ts +6 -4
|
@@ -4,18 +4,20 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { BadRequest } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface ImportStemmingDictionaryInput {
|
|
8
|
+
id: string;
|
|
9
|
+
}
|
|
7
10
|
export const ImportStemmingDictionaryInput =
|
|
8
11
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
12
|
id: Schema.String,
|
|
10
|
-
}).pipe(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
}).pipe(
|
|
14
|
+
T.Http({ method: "POST", path: "/stemming/dictionaries/import" }),
|
|
15
|
+
) as unknown as Schema.Codec<ImportStemmingDictionaryInput>;
|
|
13
16
|
|
|
14
17
|
// Output Schema
|
|
18
|
+
export type ImportStemmingDictionaryOutput = void;
|
|
15
19
|
export const ImportStemmingDictionaryOutput =
|
|
16
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Void
|
|
17
|
-
export type ImportStemmingDictionaryOutput =
|
|
18
|
-
typeof ImportStemmingDictionaryOutput.Type;
|
|
20
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Void as unknown as Schema.Codec<ImportStemmingDictionaryOutput>;
|
|
19
21
|
|
|
20
22
|
// The operation
|
|
21
23
|
/**
|
|
@@ -4,18 +4,23 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface IndexDocumentInput {
|
|
8
|
+
collectionName: string;
|
|
9
|
+
action?: string;
|
|
10
|
+
dirty_values?: string;
|
|
11
|
+
}
|
|
7
12
|
export const IndexDocumentInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
13
|
collectionName: Schema.String.pipe(T.PathParam()),
|
|
9
14
|
action: Schema.optional(Schema.String),
|
|
10
15
|
dirty_values: Schema.optional(Schema.String),
|
|
11
16
|
}).pipe(
|
|
12
17
|
T.Http({ method: "POST", path: "/collections/{collectionName}/documents" }),
|
|
13
|
-
)
|
|
14
|
-
export type IndexDocumentInput = typeof IndexDocumentInput.Type;
|
|
18
|
+
) as unknown as Schema.Codec<IndexDocumentInput>;
|
|
15
19
|
|
|
16
20
|
// Output Schema
|
|
17
|
-
export
|
|
18
|
-
export
|
|
21
|
+
export type IndexDocumentOutput = unknown;
|
|
22
|
+
export const IndexDocumentOutput =
|
|
23
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Codec<IndexDocumentOutput>;
|
|
19
24
|
|
|
20
25
|
// The operation
|
|
21
26
|
/**
|
|
@@ -3,20 +3,20 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
|
+
export interface ListStemmingDictionariesInput {}
|
|
6
7
|
export const ListStemmingDictionariesInput =
|
|
7
8
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
8
9
|
T.Http({ method: "GET", path: "/stemming/dictionaries" }),
|
|
9
|
-
)
|
|
10
|
-
export type ListStemmingDictionariesInput =
|
|
11
|
-
typeof ListStemmingDictionariesInput.Type;
|
|
10
|
+
) as unknown as Schema.Codec<ListStemmingDictionariesInput>;
|
|
12
11
|
|
|
13
12
|
// Output Schema
|
|
13
|
+
export interface ListStemmingDictionariesOutput {
|
|
14
|
+
dictionaries?: string[];
|
|
15
|
+
}
|
|
14
16
|
export const ListStemmingDictionariesOutput =
|
|
15
17
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
18
|
dictionaries: Schema.optional(Schema.Array(Schema.String)),
|
|
17
|
-
})
|
|
18
|
-
export type ListStemmingDictionariesOutput =
|
|
19
|
-
typeof ListStemmingDictionariesOutput.Type;
|
|
19
|
+
}) as unknown as Schema.Codec<ListStemmingDictionariesOutput>;
|
|
20
20
|
|
|
21
21
|
// The operation
|
|
22
22
|
/**
|
|
@@ -4,6 +4,80 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { BadRequest } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface MultiSearchInput {
|
|
8
|
+
multiSearchParameters: string;
|
|
9
|
+
union?: boolean;
|
|
10
|
+
searches: {
|
|
11
|
+
q?: string;
|
|
12
|
+
query_by?: string;
|
|
13
|
+
query_by_weights?: string;
|
|
14
|
+
text_match_type?: string;
|
|
15
|
+
prefix?: string;
|
|
16
|
+
infix?: string;
|
|
17
|
+
max_extra_prefix?: number;
|
|
18
|
+
max_extra_suffix?: number;
|
|
19
|
+
filter_by?: string;
|
|
20
|
+
sort_by?: string;
|
|
21
|
+
facet_by?: string;
|
|
22
|
+
max_facet_values?: number;
|
|
23
|
+
facet_query?: string;
|
|
24
|
+
num_typos?: string;
|
|
25
|
+
page?: number;
|
|
26
|
+
per_page?: number;
|
|
27
|
+
limit?: number;
|
|
28
|
+
offset?: number;
|
|
29
|
+
group_by?: string;
|
|
30
|
+
group_limit?: number;
|
|
31
|
+
group_missing_values?: boolean;
|
|
32
|
+
include_fields?: string;
|
|
33
|
+
exclude_fields?: string;
|
|
34
|
+
highlight_full_fields?: string;
|
|
35
|
+
highlight_affix_num_tokens?: number;
|
|
36
|
+
highlight_start_tag?: string;
|
|
37
|
+
highlight_end_tag?: string;
|
|
38
|
+
snippet_threshold?: number;
|
|
39
|
+
drop_tokens_threshold?: number;
|
|
40
|
+
drop_tokens_mode?: "right_to_left" | "left_to_right" | "both_sides:3";
|
|
41
|
+
typo_tokens_threshold?: number;
|
|
42
|
+
enable_typos_for_alpha_numerical_tokens?: boolean;
|
|
43
|
+
filter_curated_hits?: boolean;
|
|
44
|
+
enable_synonyms?: boolean;
|
|
45
|
+
enable_analytics?: boolean;
|
|
46
|
+
synonym_prefix?: boolean;
|
|
47
|
+
synonym_num_typos?: number;
|
|
48
|
+
pinned_hits?: string;
|
|
49
|
+
hidden_hits?: string;
|
|
50
|
+
curation_tags?: string;
|
|
51
|
+
highlight_fields?: string;
|
|
52
|
+
pre_segmented_query?: boolean;
|
|
53
|
+
preset?: string;
|
|
54
|
+
enable_curations?: boolean;
|
|
55
|
+
prioritize_exact_match?: boolean;
|
|
56
|
+
prioritize_token_position?: boolean;
|
|
57
|
+
prioritize_num_matching_fields?: boolean;
|
|
58
|
+
enable_typos_for_numerical_tokens?: boolean;
|
|
59
|
+
exhaustive_search?: boolean;
|
|
60
|
+
search_cutoff_ms?: number;
|
|
61
|
+
use_cache?: boolean;
|
|
62
|
+
cache_ttl?: number;
|
|
63
|
+
min_len_1typo?: number;
|
|
64
|
+
min_len_2typo?: number;
|
|
65
|
+
vector_query?: string;
|
|
66
|
+
remote_embedding_timeout_ms?: number;
|
|
67
|
+
remote_embedding_num_tries?: number;
|
|
68
|
+
facet_strategy?: string;
|
|
69
|
+
stopwords?: string;
|
|
70
|
+
facet_return_parent?: string;
|
|
71
|
+
voice_query?: string;
|
|
72
|
+
conversation?: boolean;
|
|
73
|
+
conversation_model_id?: string;
|
|
74
|
+
conversation_id?: string;
|
|
75
|
+
validate_field_names?: boolean;
|
|
76
|
+
collection?: string;
|
|
77
|
+
"x-typesense-api-key"?: string;
|
|
78
|
+
rerank_hybrid_matches?: boolean;
|
|
79
|
+
}[];
|
|
80
|
+
}
|
|
7
81
|
export const MultiSearchInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
82
|
multiSearchParameters: Schema.String,
|
|
9
83
|
union: Schema.optional(Schema.Boolean),
|
|
@@ -81,10 +155,125 @@ export const MultiSearchInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
81
155
|
rerank_hybrid_matches: Schema.optional(Schema.Boolean),
|
|
82
156
|
}),
|
|
83
157
|
),
|
|
84
|
-
}).pipe(
|
|
85
|
-
|
|
158
|
+
}).pipe(
|
|
159
|
+
T.Http({ method: "POST", path: "/multi_search" }),
|
|
160
|
+
) as unknown as Schema.Codec<MultiSearchInput>;
|
|
86
161
|
|
|
87
162
|
// Output Schema
|
|
163
|
+
export interface MultiSearchOutput {
|
|
164
|
+
results: {
|
|
165
|
+
facet_counts?: {
|
|
166
|
+
counts?: {
|
|
167
|
+
count?: number;
|
|
168
|
+
highlighted?: string;
|
|
169
|
+
value?: string;
|
|
170
|
+
parent?: unknown;
|
|
171
|
+
}[];
|
|
172
|
+
field_name?: string;
|
|
173
|
+
sampled?: boolean;
|
|
174
|
+
stats?: {
|
|
175
|
+
max?: number;
|
|
176
|
+
min?: number;
|
|
177
|
+
sum?: number;
|
|
178
|
+
total_values?: number;
|
|
179
|
+
avg?: number;
|
|
180
|
+
};
|
|
181
|
+
}[];
|
|
182
|
+
found?: number;
|
|
183
|
+
found_docs?: number;
|
|
184
|
+
search_time_ms?: number;
|
|
185
|
+
out_of?: number;
|
|
186
|
+
search_cutoff?: boolean;
|
|
187
|
+
page?: number;
|
|
188
|
+
grouped_hits?: {
|
|
189
|
+
found?: number;
|
|
190
|
+
group_key: unknown[];
|
|
191
|
+
hits: {
|
|
192
|
+
highlights?: {
|
|
193
|
+
field?: string;
|
|
194
|
+
snippet?: string;
|
|
195
|
+
snippets?: string[];
|
|
196
|
+
value?: string;
|
|
197
|
+
values?: string[];
|
|
198
|
+
indices?: number[];
|
|
199
|
+
matched_tokens?: unknown[];
|
|
200
|
+
}[];
|
|
201
|
+
highlight?: Record<string, unknown>;
|
|
202
|
+
document?: Record<string, unknown>;
|
|
203
|
+
text_match?: number;
|
|
204
|
+
text_match_info?: {
|
|
205
|
+
best_field_score?: string;
|
|
206
|
+
best_field_weight?: number;
|
|
207
|
+
fields_matched?: number;
|
|
208
|
+
num_tokens_dropped?: number;
|
|
209
|
+
score?: string;
|
|
210
|
+
tokens_matched?: number;
|
|
211
|
+
typo_prefix_score?: number;
|
|
212
|
+
};
|
|
213
|
+
geo_distance_meters?: Record<string, number>;
|
|
214
|
+
vector_distance?: number;
|
|
215
|
+
hybrid_search_info?: { rank_fusion_score?: number };
|
|
216
|
+
search_index?: number;
|
|
217
|
+
}[];
|
|
218
|
+
}[];
|
|
219
|
+
hits?: {
|
|
220
|
+
highlights?: {
|
|
221
|
+
field?: string;
|
|
222
|
+
snippet?: string;
|
|
223
|
+
snippets?: string[];
|
|
224
|
+
value?: string;
|
|
225
|
+
values?: string[];
|
|
226
|
+
indices?: number[];
|
|
227
|
+
matched_tokens?: unknown[];
|
|
228
|
+
}[];
|
|
229
|
+
highlight?: Record<string, unknown>;
|
|
230
|
+
document?: Record<string, unknown>;
|
|
231
|
+
text_match?: number;
|
|
232
|
+
text_match_info?: {
|
|
233
|
+
best_field_score?: string;
|
|
234
|
+
best_field_weight?: number;
|
|
235
|
+
fields_matched?: number;
|
|
236
|
+
num_tokens_dropped?: number;
|
|
237
|
+
score?: string;
|
|
238
|
+
tokens_matched?: number;
|
|
239
|
+
typo_prefix_score?: number;
|
|
240
|
+
};
|
|
241
|
+
geo_distance_meters?: Record<string, number>;
|
|
242
|
+
vector_distance?: number;
|
|
243
|
+
hybrid_search_info?: { rank_fusion_score?: number };
|
|
244
|
+
search_index?: number;
|
|
245
|
+
}[];
|
|
246
|
+
request_params?: {
|
|
247
|
+
collection_name: string;
|
|
248
|
+
first_q?: string;
|
|
249
|
+
q: string;
|
|
250
|
+
per_page: number;
|
|
251
|
+
voice_query?: { transcribed_query?: string };
|
|
252
|
+
};
|
|
253
|
+
conversation?: {
|
|
254
|
+
answer: string;
|
|
255
|
+
conversation_history: unknown[];
|
|
256
|
+
conversation_id: string;
|
|
257
|
+
query: string;
|
|
258
|
+
};
|
|
259
|
+
union_request_params?: {
|
|
260
|
+
collection_name: string;
|
|
261
|
+
first_q?: string;
|
|
262
|
+
q: string;
|
|
263
|
+
per_page: number;
|
|
264
|
+
voice_query?: { transcribed_query?: string };
|
|
265
|
+
}[];
|
|
266
|
+
metadata?: Record<string, unknown>;
|
|
267
|
+
code?: number;
|
|
268
|
+
error?: string;
|
|
269
|
+
}[];
|
|
270
|
+
conversation?: {
|
|
271
|
+
answer: string;
|
|
272
|
+
conversation_history: unknown[];
|
|
273
|
+
conversation_id: string;
|
|
274
|
+
query: string;
|
|
275
|
+
};
|
|
276
|
+
}
|
|
88
277
|
export const MultiSearchOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
89
278
|
results: Schema.Array(
|
|
90
279
|
Schema.Struct({
|
|
@@ -272,8 +461,7 @@ export const MultiSearchOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
272
461
|
query: Schema.String,
|
|
273
462
|
}),
|
|
274
463
|
),
|
|
275
|
-
})
|
|
276
|
-
export type MultiSearchOutput = typeof MultiSearchOutput.Type;
|
|
464
|
+
}) as unknown as Schema.Codec<MultiSearchOutput>;
|
|
277
465
|
|
|
278
466
|
// The operation
|
|
279
467
|
/**
|
|
@@ -3,12 +3,29 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
|
+
export interface RetrieveAPIStatsInput {}
|
|
6
7
|
export const RetrieveAPIStatsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
7
8
|
{},
|
|
8
|
-
).pipe(
|
|
9
|
-
|
|
9
|
+
).pipe(
|
|
10
|
+
T.Http({ method: "GET", path: "/stats.json" }),
|
|
11
|
+
) as unknown as Schema.Codec<RetrieveAPIStatsInput>;
|
|
10
12
|
|
|
11
13
|
// Output Schema
|
|
14
|
+
export interface RetrieveAPIStatsOutput {
|
|
15
|
+
delete_latency_ms?: number;
|
|
16
|
+
delete_requests_per_second?: number;
|
|
17
|
+
import_latency_ms?: number;
|
|
18
|
+
import_requests_per_second?: number;
|
|
19
|
+
latency_ms?: unknown;
|
|
20
|
+
overloaded_requests_per_second?: number;
|
|
21
|
+
pending_write_batches?: number;
|
|
22
|
+
requests_per_second?: unknown;
|
|
23
|
+
search_latency_ms?: number;
|
|
24
|
+
search_requests_per_second?: number;
|
|
25
|
+
total_requests_per_second?: number;
|
|
26
|
+
write_latency_ms?: number;
|
|
27
|
+
write_requests_per_second?: number;
|
|
28
|
+
}
|
|
12
29
|
export const RetrieveAPIStatsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
13
30
|
{
|
|
14
31
|
delete_latency_ms: Schema.optional(Schema.Number),
|
|
@@ -25,8 +42,7 @@ export const RetrieveAPIStatsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
25
42
|
write_latency_ms: Schema.optional(Schema.Number),
|
|
26
43
|
write_requests_per_second: Schema.optional(Schema.Number),
|
|
27
44
|
},
|
|
28
|
-
)
|
|
29
|
-
export type RetrieveAPIStatsOutput = typeof RetrieveAPIStatsOutput.Type;
|
|
45
|
+
) as unknown as Schema.Codec<RetrieveAPIStatsOutput>;
|
|
30
46
|
|
|
31
47
|
// The operation
|
|
32
48
|
/**
|
|
@@ -3,22 +3,20 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
|
+
export interface RetrieveAllConversationModelsInput {}
|
|
6
7
|
export const RetrieveAllConversationModelsInput =
|
|
7
8
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
8
9
|
T.Http({ method: "GET", path: "/conversations/models" }),
|
|
9
|
-
)
|
|
10
|
-
export type RetrieveAllConversationModelsInput =
|
|
11
|
-
typeof RetrieveAllConversationModelsInput.Type;
|
|
10
|
+
) as unknown as Schema.Codec<RetrieveAllConversationModelsInput>;
|
|
12
11
|
|
|
13
12
|
// Output Schema
|
|
13
|
+
export type RetrieveAllConversationModelsOutput = { id: string }[];
|
|
14
14
|
export const RetrieveAllConversationModelsOutput =
|
|
15
15
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
16
16
|
Schema.Struct({
|
|
17
17
|
id: Schema.String,
|
|
18
18
|
}),
|
|
19
|
-
)
|
|
20
|
-
export type RetrieveAllConversationModelsOutput =
|
|
21
|
-
typeof RetrieveAllConversationModelsOutput.Type;
|
|
19
|
+
) as unknown as Schema.Codec<RetrieveAllConversationModelsOutput>;
|
|
22
20
|
|
|
23
21
|
// The operation
|
|
24
22
|
/**
|
|
@@ -3,22 +3,20 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
|
+
export interface RetrieveAllNLSearchModelsInput {}
|
|
6
7
|
export const RetrieveAllNLSearchModelsInput =
|
|
7
8
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
8
9
|
T.Http({ method: "GET", path: "/nl_search_models" }),
|
|
9
|
-
)
|
|
10
|
-
export type RetrieveAllNLSearchModelsInput =
|
|
11
|
-
typeof RetrieveAllNLSearchModelsInput.Type;
|
|
10
|
+
) as unknown as Schema.Codec<RetrieveAllNLSearchModelsInput>;
|
|
12
11
|
|
|
13
12
|
// Output Schema
|
|
13
|
+
export type RetrieveAllNLSearchModelsOutput = { id: string }[];
|
|
14
14
|
export const RetrieveAllNLSearchModelsOutput =
|
|
15
15
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
16
16
|
Schema.Struct({
|
|
17
17
|
id: Schema.String,
|
|
18
18
|
}),
|
|
19
|
-
)
|
|
20
|
-
export type RetrieveAllNLSearchModelsOutput =
|
|
21
|
-
typeof RetrieveAllNLSearchModelsOutput.Type;
|
|
19
|
+
) as unknown as Schema.Codec<RetrieveAllNLSearchModelsOutput>;
|
|
22
20
|
|
|
23
21
|
// The operation
|
|
24
22
|
/**
|
|
@@ -3,13 +3,169 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
|
+
export interface RetrieveAllPresetsInput {}
|
|
6
7
|
export const RetrieveAllPresetsInput =
|
|
7
8
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
8
9
|
T.Http({ method: "GET", path: "/presets" }),
|
|
9
|
-
)
|
|
10
|
-
export type RetrieveAllPresetsInput = typeof RetrieveAllPresetsInput.Type;
|
|
10
|
+
) as unknown as Schema.Codec<RetrieveAllPresetsInput>;
|
|
11
11
|
|
|
12
12
|
// Output Schema
|
|
13
|
+
export interface RetrieveAllPresetsOutput {
|
|
14
|
+
presets: {
|
|
15
|
+
value:
|
|
16
|
+
| {
|
|
17
|
+
q?: string;
|
|
18
|
+
query_by?: string;
|
|
19
|
+
validate_field_names?: boolean;
|
|
20
|
+
nl_query?: boolean;
|
|
21
|
+
nl_model_id?: string;
|
|
22
|
+
query_by_weights?: string;
|
|
23
|
+
text_match_type?: string;
|
|
24
|
+
prefix?: string;
|
|
25
|
+
infix?: string;
|
|
26
|
+
max_extra_prefix?: number;
|
|
27
|
+
max_extra_suffix?: number;
|
|
28
|
+
filter_by?: string;
|
|
29
|
+
max_filter_by_candidates?: number;
|
|
30
|
+
sort_by?: string;
|
|
31
|
+
facet_by?: string;
|
|
32
|
+
max_facet_values?: number;
|
|
33
|
+
facet_query?: string;
|
|
34
|
+
num_typos?: string;
|
|
35
|
+
page?: number;
|
|
36
|
+
per_page?: number;
|
|
37
|
+
limit?: number;
|
|
38
|
+
offset?: number;
|
|
39
|
+
group_by?: string;
|
|
40
|
+
group_limit?: number;
|
|
41
|
+
group_missing_values?: boolean;
|
|
42
|
+
include_fields?: string;
|
|
43
|
+
exclude_fields?: string;
|
|
44
|
+
highlight_full_fields?: string;
|
|
45
|
+
highlight_affix_num_tokens?: number;
|
|
46
|
+
highlight_start_tag?: string;
|
|
47
|
+
highlight_end_tag?: string;
|
|
48
|
+
enable_highlight_v1?: boolean;
|
|
49
|
+
enable_analytics?: boolean;
|
|
50
|
+
snippet_threshold?: number;
|
|
51
|
+
synonym_sets?: string;
|
|
52
|
+
drop_tokens_threshold?: number;
|
|
53
|
+
drop_tokens_mode?: "right_to_left" | "left_to_right" | "both_sides:3";
|
|
54
|
+
typo_tokens_threshold?: number;
|
|
55
|
+
enable_typos_for_alpha_numerical_tokens?: boolean;
|
|
56
|
+
filter_curated_hits?: boolean;
|
|
57
|
+
enable_synonyms?: boolean;
|
|
58
|
+
synonym_prefix?: boolean;
|
|
59
|
+
synonym_num_typos?: number;
|
|
60
|
+
pinned_hits?: string;
|
|
61
|
+
hidden_hits?: string;
|
|
62
|
+
curation_tags?: string;
|
|
63
|
+
highlight_fields?: string;
|
|
64
|
+
split_join_tokens?: string;
|
|
65
|
+
pre_segmented_query?: boolean;
|
|
66
|
+
preset?: string;
|
|
67
|
+
enable_curations?: boolean;
|
|
68
|
+
prioritize_exact_match?: boolean;
|
|
69
|
+
max_candidates?: number;
|
|
70
|
+
prioritize_token_position?: boolean;
|
|
71
|
+
prioritize_num_matching_fields?: boolean;
|
|
72
|
+
enable_typos_for_numerical_tokens?: boolean;
|
|
73
|
+
exhaustive_search?: boolean;
|
|
74
|
+
search_cutoff_ms?: number;
|
|
75
|
+
use_cache?: boolean;
|
|
76
|
+
cache_ttl?: number;
|
|
77
|
+
min_len_1typo?: number;
|
|
78
|
+
min_len_2typo?: number;
|
|
79
|
+
vector_query?: string;
|
|
80
|
+
remote_embedding_timeout_ms?: number;
|
|
81
|
+
remote_embedding_num_tries?: number;
|
|
82
|
+
facet_strategy?: string;
|
|
83
|
+
stopwords?: string;
|
|
84
|
+
facet_return_parent?: string;
|
|
85
|
+
voice_query?: string;
|
|
86
|
+
conversation?: boolean;
|
|
87
|
+
conversation_model_id?: string;
|
|
88
|
+
conversation_id?: string;
|
|
89
|
+
}
|
|
90
|
+
| {
|
|
91
|
+
union?: boolean;
|
|
92
|
+
searches: {
|
|
93
|
+
q?: string;
|
|
94
|
+
query_by?: string;
|
|
95
|
+
query_by_weights?: string;
|
|
96
|
+
text_match_type?: string;
|
|
97
|
+
prefix?: string;
|
|
98
|
+
infix?: string;
|
|
99
|
+
max_extra_prefix?: number;
|
|
100
|
+
max_extra_suffix?: number;
|
|
101
|
+
filter_by?: string;
|
|
102
|
+
sort_by?: string;
|
|
103
|
+
facet_by?: string;
|
|
104
|
+
max_facet_values?: number;
|
|
105
|
+
facet_query?: string;
|
|
106
|
+
num_typos?: string;
|
|
107
|
+
page?: number;
|
|
108
|
+
per_page?: number;
|
|
109
|
+
limit?: number;
|
|
110
|
+
offset?: number;
|
|
111
|
+
group_by?: string;
|
|
112
|
+
group_limit?: number;
|
|
113
|
+
group_missing_values?: boolean;
|
|
114
|
+
include_fields?: string;
|
|
115
|
+
exclude_fields?: string;
|
|
116
|
+
highlight_full_fields?: string;
|
|
117
|
+
highlight_affix_num_tokens?: number;
|
|
118
|
+
highlight_start_tag?: string;
|
|
119
|
+
highlight_end_tag?: string;
|
|
120
|
+
snippet_threshold?: number;
|
|
121
|
+
drop_tokens_threshold?: number;
|
|
122
|
+
drop_tokens_mode?:
|
|
123
|
+
| "right_to_left"
|
|
124
|
+
| "left_to_right"
|
|
125
|
+
| "both_sides:3";
|
|
126
|
+
typo_tokens_threshold?: number;
|
|
127
|
+
enable_typos_for_alpha_numerical_tokens?: boolean;
|
|
128
|
+
filter_curated_hits?: boolean;
|
|
129
|
+
enable_synonyms?: boolean;
|
|
130
|
+
enable_analytics?: boolean;
|
|
131
|
+
synonym_prefix?: boolean;
|
|
132
|
+
synonym_num_typos?: number;
|
|
133
|
+
pinned_hits?: string;
|
|
134
|
+
hidden_hits?: string;
|
|
135
|
+
curation_tags?: string;
|
|
136
|
+
highlight_fields?: string;
|
|
137
|
+
pre_segmented_query?: boolean;
|
|
138
|
+
preset?: string;
|
|
139
|
+
enable_curations?: boolean;
|
|
140
|
+
prioritize_exact_match?: boolean;
|
|
141
|
+
prioritize_token_position?: boolean;
|
|
142
|
+
prioritize_num_matching_fields?: boolean;
|
|
143
|
+
enable_typos_for_numerical_tokens?: boolean;
|
|
144
|
+
exhaustive_search?: boolean;
|
|
145
|
+
search_cutoff_ms?: number;
|
|
146
|
+
use_cache?: boolean;
|
|
147
|
+
cache_ttl?: number;
|
|
148
|
+
min_len_1typo?: number;
|
|
149
|
+
min_len_2typo?: number;
|
|
150
|
+
vector_query?: string;
|
|
151
|
+
remote_embedding_timeout_ms?: number;
|
|
152
|
+
remote_embedding_num_tries?: number;
|
|
153
|
+
facet_strategy?: string;
|
|
154
|
+
stopwords?: string;
|
|
155
|
+
facet_return_parent?: string;
|
|
156
|
+
voice_query?: string;
|
|
157
|
+
conversation?: boolean;
|
|
158
|
+
conversation_model_id?: string;
|
|
159
|
+
conversation_id?: string;
|
|
160
|
+
validate_field_names?: boolean;
|
|
161
|
+
collection?: string;
|
|
162
|
+
"x-typesense-api-key"?: string;
|
|
163
|
+
rerank_hybrid_matches?: boolean;
|
|
164
|
+
}[];
|
|
165
|
+
};
|
|
166
|
+
name: string;
|
|
167
|
+
}[];
|
|
168
|
+
}
|
|
13
169
|
export const RetrieveAllPresetsOutput =
|
|
14
170
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
171
|
presets: Schema.Array(
|
|
@@ -18,8 +174,7 @@ export const RetrieveAllPresetsOutput =
|
|
|
18
174
|
name: Schema.String,
|
|
19
175
|
}),
|
|
20
176
|
),
|
|
21
|
-
})
|
|
22
|
-
export type RetrieveAllPresetsOutput = typeof RetrieveAllPresetsOutput.Type;
|
|
177
|
+
}) as unknown as Schema.Codec<RetrieveAllPresetsOutput>;
|
|
23
178
|
|
|
24
179
|
// The operation
|
|
25
180
|
/**
|
|
@@ -4,13 +4,33 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface RetrieveAnalyticsRuleInput {
|
|
8
|
+
ruleName: string;
|
|
9
|
+
}
|
|
7
10
|
export const RetrieveAnalyticsRuleInput =
|
|
8
11
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
12
|
ruleName: Schema.String.pipe(T.PathParam()),
|
|
10
|
-
}).pipe(
|
|
11
|
-
|
|
13
|
+
}).pipe(
|
|
14
|
+
T.Http({ method: "GET", path: "/analytics/rules/{ruleName}" }),
|
|
15
|
+
) as unknown as Schema.Codec<RetrieveAnalyticsRuleInput>;
|
|
12
16
|
|
|
13
17
|
// Output Schema
|
|
18
|
+
export interface RetrieveAnalyticsRuleOutput {
|
|
19
|
+
name: string;
|
|
20
|
+
type: "popular_queries" | "nohits_queries" | "counter" | "log";
|
|
21
|
+
collection: string;
|
|
22
|
+
event_type: string;
|
|
23
|
+
rule_tag?: string;
|
|
24
|
+
params?: {
|
|
25
|
+
destination_collection?: string;
|
|
26
|
+
limit?: number;
|
|
27
|
+
capture_search_requests?: boolean;
|
|
28
|
+
meta_fields?: string[];
|
|
29
|
+
expand_query?: boolean;
|
|
30
|
+
counter_field?: string;
|
|
31
|
+
weight?: number;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
14
34
|
export const RetrieveAnalyticsRuleOutput =
|
|
15
35
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
36
|
name: Schema.String,
|
|
@@ -34,9 +54,7 @@ export const RetrieveAnalyticsRuleOutput =
|
|
|
34
54
|
weight: Schema.optional(Schema.Number),
|
|
35
55
|
}),
|
|
36
56
|
),
|
|
37
|
-
})
|
|
38
|
-
export type RetrieveAnalyticsRuleOutput =
|
|
39
|
-
typeof RetrieveAnalyticsRuleOutput.Type;
|
|
57
|
+
}) as unknown as Schema.Codec<RetrieveAnalyticsRuleOutput>;
|
|
40
58
|
|
|
41
59
|
// The operation
|
|
42
60
|
/**
|
|
@@ -3,14 +3,33 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
|
+
export interface RetrieveAnalyticsRulesInput {
|
|
7
|
+
rule_tag?: string;
|
|
8
|
+
}
|
|
6
9
|
export const RetrieveAnalyticsRulesInput =
|
|
7
10
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
11
|
rule_tag: Schema.optional(Schema.String),
|
|
9
|
-
}).pipe(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
}).pipe(
|
|
13
|
+
T.Http({ method: "GET", path: "/analytics/rules" }),
|
|
14
|
+
) as unknown as Schema.Codec<RetrieveAnalyticsRulesInput>;
|
|
12
15
|
|
|
13
16
|
// Output Schema
|
|
17
|
+
export type RetrieveAnalyticsRulesOutput = {
|
|
18
|
+
name: string;
|
|
19
|
+
type: "popular_queries" | "nohits_queries" | "counter" | "log";
|
|
20
|
+
collection: string;
|
|
21
|
+
event_type: string;
|
|
22
|
+
rule_tag?: string;
|
|
23
|
+
params?: {
|
|
24
|
+
destination_collection?: string;
|
|
25
|
+
limit?: number;
|
|
26
|
+
capture_search_requests?: boolean;
|
|
27
|
+
meta_fields?: string[];
|
|
28
|
+
expand_query?: boolean;
|
|
29
|
+
counter_field?: string;
|
|
30
|
+
weight?: number;
|
|
31
|
+
};
|
|
32
|
+
}[];
|
|
14
33
|
export const RetrieveAnalyticsRulesOutput =
|
|
15
34
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
16
35
|
Schema.Struct({
|
|
@@ -36,9 +55,7 @@ export const RetrieveAnalyticsRulesOutput =
|
|
|
36
55
|
}),
|
|
37
56
|
),
|
|
38
57
|
}),
|
|
39
|
-
)
|
|
40
|
-
export type RetrieveAnalyticsRulesOutput =
|
|
41
|
-
typeof RetrieveAnalyticsRulesOutput.Type;
|
|
58
|
+
) as unknown as Schema.Codec<RetrieveAnalyticsRulesOutput>;
|
|
42
59
|
|
|
43
60
|
// The operation
|
|
44
61
|
/**
|