@distilled.cloud/typesense 0.0.0 → 0.15.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/README.md +66 -6
- package/lib/category.d.ts +5 -0
- package/lib/category.d.ts.map +1 -0
- package/lib/category.js +5 -0
- package/lib/category.js.map +1 -0
- package/lib/client.d.ts +11 -0
- package/lib/client.d.ts.map +1 -0
- package/lib/client.js +50 -0
- package/lib/client.js.map +1 -0
- package/lib/credentials.d.ts +20 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +29 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +31 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +23 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +16 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +16 -0
- package/lib/index.js.map +1 -0
- package/lib/operations/clearCache.d.ts +16 -0
- package/lib/operations/clearCache.d.ts.map +1 -0
- package/lib/operations/clearCache.js +20 -0
- package/lib/operations/clearCache.js.map +1 -0
- package/lib/operations/compactDb.d.ts +16 -0
- package/lib/operations/compactDb.d.ts.map +1 -0
- package/lib/operations/compactDb.js +20 -0
- package/lib/operations/compactDb.js.map +1 -0
- package/lib/operations/createAnalyticsEvent.d.ts +37 -0
- package/lib/operations/createAnalyticsEvent.d.ts.map +1 -0
- package/lib/operations/createAnalyticsEvent.js +34 -0
- package/lib/operations/createAnalyticsEvent.js.map +1 -0
- package/lib/operations/createAnalyticsRule.d.ts +13 -0
- package/lib/operations/createAnalyticsRule.d.ts.map +1 -0
- package/lib/operations/createAnalyticsRule.js +22 -0
- package/lib/operations/createAnalyticsRule.js.map +1 -0
- package/lib/operations/createCollection.d.ts +205 -0
- package/lib/operations/createCollection.d.ts.map +1 -0
- package/lib/operations/createCollection.js +117 -0
- package/lib/operations/createCollection.js.map +1 -0
- package/lib/operations/createConversationModel.d.ts +17 -0
- package/lib/operations/createConversationModel.d.ts.map +1 -0
- package/lib/operations/createConversationModel.js +24 -0
- package/lib/operations/createConversationModel.js.map +1 -0
- package/lib/operations/createKey.d.ts +41 -0
- package/lib/operations/createKey.d.ts.map +1 -0
- package/lib/operations/createKey.js +34 -0
- package/lib/operations/createKey.js.map +1 -0
- package/lib/operations/createNLSearchModel.d.ts +17 -0
- package/lib/operations/createNLSearchModel.d.ts.map +1 -0
- package/lib/operations/createNLSearchModel.js +24 -0
- package/lib/operations/createNLSearchModel.js.map +1 -0
- package/lib/operations/debug.d.ts +14 -0
- package/lib/operations/debug.d.ts.map +1 -0
- package/lib/operations/debug.js +18 -0
- package/lib/operations/debug.js.map +1 -0
- package/lib/operations/deleteAlias.d.ts +23 -0
- package/lib/operations/deleteAlias.d.ts.map +1 -0
- package/lib/operations/deleteAlias.js +25 -0
- package/lib/operations/deleteAlias.js.map +1 -0
- package/lib/operations/deleteAnalyticsRule.d.ts +49 -0
- package/lib/operations/deleteAnalyticsRule.d.ts.map +1 -0
- package/lib/operations/deleteAnalyticsRule.js +46 -0
- package/lib/operations/deleteAnalyticsRule.js.map +1 -0
- package/lib/operations/deleteCollection.d.ts +117 -0
- package/lib/operations/deleteCollection.d.ts.map +1 -0
- package/lib/operations/deleteCollection.js +74 -0
- package/lib/operations/deleteCollection.js.map +1 -0
- package/lib/operations/deleteConversationModel.d.ts +21 -0
- package/lib/operations/deleteConversationModel.d.ts.map +1 -0
- package/lib/operations/deleteConversationModel.js +26 -0
- package/lib/operations/deleteConversationModel.js.map +1 -0
- package/lib/operations/deleteCurationSet.d.ts +23 -0
- package/lib/operations/deleteCurationSet.d.ts.map +1 -0
- package/lib/operations/deleteCurationSet.js +27 -0
- package/lib/operations/deleteCurationSet.js.map +1 -0
- package/lib/operations/deleteCurationSetItem.d.ts +26 -0
- package/lib/operations/deleteCurationSetItem.d.ts.map +1 -0
- package/lib/operations/deleteCurationSetItem.js +33 -0
- package/lib/operations/deleteCurationSetItem.js.map +1 -0
- package/lib/operations/deleteDocument.d.ts +22 -0
- package/lib/operations/deleteDocument.d.ts.map +1 -0
- package/lib/operations/deleteDocument.js +29 -0
- package/lib/operations/deleteDocument.js.map +1 -0
- package/lib/operations/deleteDocuments.d.ts +25 -0
- package/lib/operations/deleteDocuments.d.ts.map +1 -0
- package/lib/operations/deleteDocuments.js +27 -0
- package/lib/operations/deleteDocuments.js.map +1 -0
- package/lib/operations/deleteKey.d.ts +21 -0
- package/lib/operations/deleteKey.d.ts.map +1 -0
- package/lib/operations/deleteKey.js +24 -0
- package/lib/operations/deleteKey.js.map +1 -0
- package/lib/operations/deleteNLSearchModel.d.ts +23 -0
- package/lib/operations/deleteNLSearchModel.d.ts.map +1 -0
- package/lib/operations/deleteNLSearchModel.js +28 -0
- package/lib/operations/deleteNLSearchModel.js.map +1 -0
- package/lib/operations/deletePreset.d.ts +23 -0
- package/lib/operations/deletePreset.d.ts.map +1 -0
- package/lib/operations/deletePreset.js +26 -0
- package/lib/operations/deletePreset.js.map +1 -0
- package/lib/operations/deleteStopwordsSet.d.ts +23 -0
- package/lib/operations/deleteStopwordsSet.d.ts.map +1 -0
- package/lib/operations/deleteStopwordsSet.js +28 -0
- package/lib/operations/deleteStopwordsSet.js.map +1 -0
- package/lib/operations/deleteSynonymSet.d.ts +23 -0
- package/lib/operations/deleteSynonymSet.d.ts.map +1 -0
- package/lib/operations/deleteSynonymSet.js +26 -0
- package/lib/operations/deleteSynonymSet.js.map +1 -0
- package/lib/operations/deleteSynonymSetItem.d.ts +26 -0
- package/lib/operations/deleteSynonymSetItem.d.ts.map +1 -0
- package/lib/operations/deleteSynonymSetItem.js +33 -0
- package/lib/operations/deleteSynonymSetItem.js.map +1 -0
- package/lib/operations/exportDocuments.d.ts +21 -0
- package/lib/operations/exportDocuments.d.ts.map +1 -0
- package/lib/operations/exportDocuments.js +28 -0
- package/lib/operations/exportDocuments.js.map +1 -0
- package/lib/operations/flushAnalytics.d.ts +16 -0
- package/lib/operations/flushAnalytics.d.ts.map +1 -0
- package/lib/operations/flushAnalytics.js +20 -0
- package/lib/operations/flushAnalytics.js.map +1 -0
- package/lib/operations/getAlias.d.ts +25 -0
- package/lib/operations/getAlias.d.ts.map +1 -0
- package/lib/operations/getAlias.js +27 -0
- package/lib/operations/getAlias.js.map +1 -0
- package/lib/operations/getAliases.d.ts +22 -0
- package/lib/operations/getAliases.d.ts.map +1 -0
- package/lib/operations/getAliases.js +23 -0
- package/lib/operations/getAliases.js.map +1 -0
- package/lib/operations/getAnalyticsEvents.d.ts +46 -0
- package/lib/operations/getAnalyticsEvents.d.ts.map +1 -0
- package/lib/operations/getAnalyticsEvents.js +40 -0
- package/lib/operations/getAnalyticsEvents.js.map +1 -0
- package/lib/operations/getAnalyticsStatus.d.ts +28 -0
- package/lib/operations/getAnalyticsStatus.d.ts.map +1 -0
- package/lib/operations/getAnalyticsStatus.js +28 -0
- package/lib/operations/getAnalyticsStatus.js.map +1 -0
- package/lib/operations/getCollection.d.ts +117 -0
- package/lib/operations/getCollection.d.ts.map +1 -0
- package/lib/operations/getCollection.js +74 -0
- package/lib/operations/getCollection.js.map +1 -0
- package/lib/operations/getCollections.d.ts +114 -0
- package/lib/operations/getCollections.d.ts.map +1 -0
- package/lib/operations/getCollections.js +70 -0
- package/lib/operations/getCollections.js.map +1 -0
- package/lib/operations/getDocument.d.ts +22 -0
- package/lib/operations/getDocument.d.ts.map +1 -0
- package/lib/operations/getDocument.js +29 -0
- package/lib/operations/getDocument.js.map +1 -0
- package/lib/operations/getKey.d.ts +35 -0
- package/lib/operations/getKey.d.ts.map +1 -0
- package/lib/operations/getKey.js +32 -0
- package/lib/operations/getKey.js.map +1 -0
- package/lib/operations/getKeys.d.ts +30 -0
- package/lib/operations/getKeys.d.ts.map +1 -0
- package/lib/operations/getKeys.js +26 -0
- package/lib/operations/getKeys.js.map +1 -0
- package/lib/operations/getSchemaChanges.d.ts +20 -0
- package/lib/operations/getSchemaChanges.d.ts.map +1 -0
- package/lib/operations/getSchemaChanges.js +22 -0
- package/lib/operations/getSchemaChanges.js.map +1 -0
- package/lib/operations/getStemmingDictionary.d.ts +31 -0
- package/lib/operations/getStemmingDictionary.d.ts.map +1 -0
- package/lib/operations/getStemmingDictionary.js +32 -0
- package/lib/operations/getStemmingDictionary.js.map +1 -0
- package/lib/operations/health.d.ts +14 -0
- package/lib/operations/health.d.ts.map +1 -0
- package/lib/operations/health.js +18 -0
- package/lib/operations/health.js.map +1 -0
- package/lib/operations/importDocuments.d.ts +21 -0
- package/lib/operations/importDocuments.d.ts.map +1 -0
- package/lib/operations/importDocuments.js +28 -0
- package/lib/operations/importDocuments.js.map +1 -0
- package/lib/operations/importStemmingDictionary.d.ts +19 -0
- package/lib/operations/importStemmingDictionary.d.ts.map +1 -0
- package/lib/operations/importStemmingDictionary.js +26 -0
- package/lib/operations/importStemmingDictionary.js.map +1 -0
- package/lib/operations/index.d.ts +80 -0
- package/lib/operations/index.d.ts.map +1 -0
- package/lib/operations/index.js +80 -0
- package/lib/operations/index.js.map +1 -0
- package/lib/operations/indexDocument.d.ts +25 -0
- package/lib/operations/indexDocument.d.ts.map +1 -0
- package/lib/operations/indexDocument.js +28 -0
- package/lib/operations/indexDocument.js.map +1 -0
- package/lib/operations/listStemmingDictionaries.d.ts +16 -0
- package/lib/operations/listStemmingDictionaries.d.ts.map +1 -0
- package/lib/operations/listStemmingDictionaries.js +22 -0
- package/lib/operations/listStemmingDictionaries.js.map +1 -0
- package/lib/operations/multiSearch.d.ts +415 -0
- package/lib/operations/multiSearch.d.ts.map +1 -0
- package/lib/operations/multiSearch.js +214 -0
- package/lib/operations/multiSearch.js.map +1 -0
- package/lib/operations/retrieveAPIStats.d.ts +40 -0
- package/lib/operations/retrieveAPIStats.d.ts.map +1 -0
- package/lib/operations/retrieveAPIStats.js +32 -0
- package/lib/operations/retrieveAPIStats.js.map +1 -0
- package/lib/operations/retrieveAllConversationModels.d.ts +16 -0
- package/lib/operations/retrieveAllConversationModels.d.ts.map +1 -0
- package/lib/operations/retrieveAllConversationModels.js +23 -0
- package/lib/operations/retrieveAllConversationModels.js.map +1 -0
- package/lib/operations/retrieveAllNLSearchModels.d.ts +16 -0
- package/lib/operations/retrieveAllNLSearchModels.d.ts.map +1 -0
- package/lib/operations/retrieveAllNLSearchModels.js +22 -0
- package/lib/operations/retrieveAllNLSearchModels.js.map +1 -0
- package/lib/operations/retrieveAllPresets.d.ts +22 -0
- package/lib/operations/retrieveAllPresets.d.ts.map +1 -0
- package/lib/operations/retrieveAllPresets.js +25 -0
- package/lib/operations/retrieveAllPresets.js.map +1 -0
- package/lib/operations/retrieveAnalyticsRule.d.ts +49 -0
- package/lib/operations/retrieveAnalyticsRule.d.ts.map +1 -0
- package/lib/operations/retrieveAnalyticsRule.js +46 -0
- package/lib/operations/retrieveAnalyticsRule.js.map +1 -0
- package/lib/operations/retrieveAnalyticsRules.d.ts +48 -0
- package/lib/operations/retrieveAnalyticsRules.d.ts.map +1 -0
- package/lib/operations/retrieveAnalyticsRules.js +44 -0
- package/lib/operations/retrieveAnalyticsRules.js.map +1 -0
- package/lib/operations/retrieveConversationModel.d.ts +21 -0
- package/lib/operations/retrieveConversationModel.d.ts.map +1 -0
- package/lib/operations/retrieveConversationModel.js +26 -0
- package/lib/operations/retrieveConversationModel.js.map +1 -0
- package/lib/operations/retrieveCurationSet.d.ts +75 -0
- package/lib/operations/retrieveCurationSet.d.ts.map +1 -0
- package/lib/operations/retrieveCurationSet.js +54 -0
- package/lib/operations/retrieveCurationSet.js.map +1 -0
- package/lib/operations/retrieveCurationSetItem.d.ts +70 -0
- package/lib/operations/retrieveCurationSetItem.d.ts.map +1 -0
- package/lib/operations/retrieveCurationSetItem.js +55 -0
- package/lib/operations/retrieveCurationSetItem.js.map +1 -0
- package/lib/operations/retrieveCurationSetItems.d.ts +67 -0
- package/lib/operations/retrieveCurationSetItems.d.ts.map +1 -0
- package/lib/operations/retrieveCurationSetItems.js +50 -0
- package/lib/operations/retrieveCurationSetItems.js.map +1 -0
- package/lib/operations/retrieveCurationSets.d.ts +68 -0
- package/lib/operations/retrieveCurationSets.d.ts.map +1 -0
- package/lib/operations/retrieveCurationSets.js +48 -0
- package/lib/operations/retrieveCurationSets.js.map +1 -0
- package/lib/operations/retrieveMetrics.d.ts +12 -0
- package/lib/operations/retrieveMetrics.d.ts.map +1 -0
- package/lib/operations/retrieveMetrics.js +18 -0
- package/lib/operations/retrieveMetrics.js.map +1 -0
- package/lib/operations/retrieveNLSearchModel.d.ts +23 -0
- package/lib/operations/retrieveNLSearchModel.d.ts.map +1 -0
- package/lib/operations/retrieveNLSearchModel.js +28 -0
- package/lib/operations/retrieveNLSearchModel.js.map +1 -0
- package/lib/operations/retrievePreset.d.ts +25 -0
- package/lib/operations/retrievePreset.d.ts.map +1 -0
- package/lib/operations/retrievePreset.js +27 -0
- package/lib/operations/retrievePreset.js.map +1 -0
- package/lib/operations/retrieveStopwordsSet.d.ts +31 -0
- package/lib/operations/retrieveStopwordsSet.d.ts.map +1 -0
- package/lib/operations/retrieveStopwordsSet.js +32 -0
- package/lib/operations/retrieveStopwordsSet.js.map +1 -0
- package/lib/operations/retrieveStopwordsSets.d.ts +24 -0
- package/lib/operations/retrieveStopwordsSets.d.ts.map +1 -0
- package/lib/operations/retrieveStopwordsSets.js +26 -0
- package/lib/operations/retrieveStopwordsSets.js.map +1 -0
- package/lib/operations/retrieveSynonymSet.d.ts +37 -0
- package/lib/operations/retrieveSynonymSet.d.ts.map +1 -0
- package/lib/operations/retrieveSynonymSet.js +35 -0
- package/lib/operations/retrieveSynonymSet.js.map +1 -0
- package/lib/operations/retrieveSynonymSetItem.d.ts +34 -0
- package/lib/operations/retrieveSynonymSetItem.d.ts.map +1 -0
- package/lib/operations/retrieveSynonymSetItem.js +37 -0
- package/lib/operations/retrieveSynonymSetItem.js.map +1 -0
- package/lib/operations/retrieveSynonymSetItems.d.ts +31 -0
- package/lib/operations/retrieveSynonymSetItems.d.ts.map +1 -0
- package/lib/operations/retrieveSynonymSetItems.js +32 -0
- package/lib/operations/retrieveSynonymSetItems.js.map +1 -0
- package/lib/operations/retrieveSynonymSets.d.ts +30 -0
- package/lib/operations/retrieveSynonymSets.d.ts.map +1 -0
- package/lib/operations/retrieveSynonymSets.js +29 -0
- package/lib/operations/retrieveSynonymSets.js.map +1 -0
- package/lib/operations/searchCollection.d.ts +257 -0
- package/lib/operations/searchCollection.d.ts.map +1 -0
- package/lib/operations/searchCollection.js +139 -0
- package/lib/operations/searchCollection.js.map +1 -0
- package/lib/operations/takeSnapshot.d.ts +22 -0
- package/lib/operations/takeSnapshot.d.ts.map +1 -0
- package/lib/operations/takeSnapshot.js +24 -0
- package/lib/operations/takeSnapshot.js.map +1 -0
- package/lib/operations/toggleSlowRequestLog.d.ts +20 -0
- package/lib/operations/toggleSlowRequestLog.d.ts.map +1 -0
- package/lib/operations/toggleSlowRequestLog.js +24 -0
- package/lib/operations/toggleSlowRequestLog.js.map +1 -0
- package/lib/operations/updateCollection.d.ts +173 -0
- package/lib/operations/updateCollection.d.ts.map +1 -0
- package/lib/operations/updateCollection.js +102 -0
- package/lib/operations/updateCollection.js.map +1 -0
- package/lib/operations/updateConversationModel.d.ts +39 -0
- package/lib/operations/updateConversationModel.d.ts.map +1 -0
- package/lib/operations/updateConversationModel.js +36 -0
- package/lib/operations/updateConversationModel.js.map +1 -0
- package/lib/operations/updateDocument.d.ts +25 -0
- package/lib/operations/updateDocument.d.ts.map +1 -0
- package/lib/operations/updateDocument.js +31 -0
- package/lib/operations/updateDocument.js.map +1 -0
- package/lib/operations/updateDocuments.d.ts +25 -0
- package/lib/operations/updateDocuments.d.ts.map +1 -0
- package/lib/operations/updateDocuments.js +27 -0
- package/lib/operations/updateDocuments.js.map +1 -0
- package/lib/operations/updateNLSearchModel.d.ts +23 -0
- package/lib/operations/updateNLSearchModel.d.ts.map +1 -0
- package/lib/operations/updateNLSearchModel.js +28 -0
- package/lib/operations/updateNLSearchModel.js.map +1 -0
- package/lib/operations/upsertAlias.d.ts +27 -0
- package/lib/operations/upsertAlias.d.ts.map +1 -0
- package/lib/operations/upsertAlias.js +28 -0
- package/lib/operations/upsertAlias.js.map +1 -0
- package/lib/operations/upsertAnalyticsRule.d.ts +71 -0
- package/lib/operations/upsertAnalyticsRule.d.ts.map +1 -0
- package/lib/operations/upsertAnalyticsRule.js +57 -0
- package/lib/operations/upsertAnalyticsRule.js.map +1 -0
- package/lib/operations/upsertCurationSet.d.ts +127 -0
- package/lib/operations/upsertCurationSet.d.ts.map +1 -0
- package/lib/operations/upsertCurationSet.js +79 -0
- package/lib/operations/upsertCurationSet.js.map +1 -0
- package/lib/operations/upsertCurationSetItem.d.ts +116 -0
- package/lib/operations/upsertCurationSetItem.d.ts.map +1 -0
- package/lib/operations/upsertCurationSetItem.js +78 -0
- package/lib/operations/upsertCurationSetItem.js.map +1 -0
- package/lib/operations/upsertPreset.d.ts +27 -0
- package/lib/operations/upsertPreset.d.ts.map +1 -0
- package/lib/operations/upsertPreset.js +28 -0
- package/lib/operations/upsertPreset.js.map +1 -0
- package/lib/operations/upsertStopwordsSet.d.ts +31 -0
- package/lib/operations/upsertStopwordsSet.d.ts.map +1 -0
- package/lib/operations/upsertStopwordsSet.js +32 -0
- package/lib/operations/upsertStopwordsSet.js.map +1 -0
- package/lib/operations/upsertSynonymSet.d.ts +51 -0
- package/lib/operations/upsertSynonymSet.d.ts.map +1 -0
- package/lib/operations/upsertSynonymSet.js +40 -0
- package/lib/operations/upsertSynonymSet.js.map +1 -0
- package/lib/operations/upsertSynonymSetItem.d.ts +42 -0
- package/lib/operations/upsertSynonymSetItem.d.ts.map +1 -0
- package/lib/operations/upsertSynonymSetItem.js +41 -0
- package/lib/operations/upsertSynonymSetItem.js.map +1 -0
- package/lib/operations/vote.d.ts +16 -0
- package/lib/operations/vote.d.ts.map +1 -0
- package/lib/operations/vote.js +20 -0
- package/lib/operations/vote.js.map +1 -0
- package/lib/retry.d.ts +22 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +21 -0
- package/lib/retry.js.map +1 -0
- package/lib/sensitive.d.ts +5 -0
- package/lib/sensitive.d.ts.map +1 -0
- package/lib/sensitive.js +5 -0
- package/lib/sensitive.js.map +1 -0
- package/lib/traits.d.ts +5 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +5 -0
- package/lib/traits.js.map +1 -0
- package/package.json +81 -7
- package/src/category.ts +4 -0
- package/src/client.ts +61 -0
- package/src/credentials.ts +43 -0
- package/src/errors.ts +47 -0
- package/src/index.ts +15 -0
- package/src/operations/clearCache.ts +26 -0
- package/src/operations/compactDb.ts +26 -0
- package/src/operations/createAnalyticsEvent.ts +40 -0
- package/src/operations/createAnalyticsRule.ts +28 -0
- package/src/operations/createCollection.ts +135 -0
- package/src/operations/createConversationModel.ts +34 -0
- package/src/operations/createKey.ts +38 -0
- package/src/operations/createNLSearchModel.ts +30 -0
- package/src/operations/debug.ts +24 -0
- package/src/operations/deleteAlias.ts +29 -0
- package/src/operations/deleteAnalyticsRule.ts +52 -0
- package/src/operations/deleteCollection.ts +86 -0
- package/src/operations/deleteConversationModel.ts +36 -0
- package/src/operations/deleteCurationSet.ts +33 -0
- package/src/operations/deleteCurationSetItem.ts +42 -0
- package/src/operations/deleteDocument.ts +35 -0
- package/src/operations/deleteDocuments.ts +33 -0
- package/src/operations/deleteKey.ts +28 -0
- package/src/operations/deleteNLSearchModel.ts +32 -0
- package/src/operations/deletePreset.ts +30 -0
- package/src/operations/deleteStopwordsSet.ts +32 -0
- package/src/operations/deleteSynonymSet.ts +32 -0
- package/src/operations/deleteSynonymSetItem.ts +41 -0
- package/src/operations/exportDocuments.ts +34 -0
- package/src/operations/flushAnalytics.ts +26 -0
- package/src/operations/getAlias.ts +31 -0
- package/src/operations/getAliases.ts +31 -0
- package/src/operations/getAnalyticsEvents.ts +46 -0
- package/src/operations/getAnalyticsStatus.ts +34 -0
- package/src/operations/getCollection.ts +84 -0
- package/src/operations/getCollections.ts +82 -0
- package/src/operations/getDocument.ts +35 -0
- package/src/operations/getKey.ts +36 -0
- package/src/operations/getKeys.ts +34 -0
- package/src/operations/getSchemaChanges.ts +30 -0
- package/src/operations/getStemmingDictionary.ts +43 -0
- package/src/operations/health.ts +24 -0
- package/src/operations/importDocuments.ts +34 -0
- package/src/operations/importStemmingDictionary.ts +34 -0
- package/src/operations/index.ts +79 -0
- package/src/operations/indexDocument.ts +34 -0
- package/src/operations/listStemmingDictionaries.ts +32 -0
- package/src/operations/multiSearch.ts +288 -0
- package/src/operations/retrieveAPIStats.ts +40 -0
- package/src/operations/retrieveAllConversationModels.ts +33 -0
- package/src/operations/retrieveAllNLSearchModels.ts +34 -0
- package/src/operations/retrieveAllPresets.ts +33 -0
- package/src/operations/retrieveAnalyticsRule.ts +55 -0
- package/src/operations/retrieveAnalyticsRules.ts +56 -0
- package/src/operations/retrieveConversationModel.ts +34 -0
- package/src/operations/retrieveCurationSet.ts +68 -0
- package/src/operations/retrieveCurationSetItem.ts +73 -0
- package/src/operations/retrieveCurationSetItems.ts +70 -0
- package/src/operations/retrieveCurationSets.ts +68 -0
- package/src/operations/retrieveMetrics.ts +24 -0
- package/src/operations/retrieveNLSearchModel.ts +35 -0
- package/src/operations/retrievePreset.ts +31 -0
- package/src/operations/retrieveStopwordsSet.ts +38 -0
- package/src/operations/retrieveStopwordsSets.ts +37 -0
- package/src/operations/retrieveSynonymSet.ts +41 -0
- package/src/operations/retrieveSynonymSetItem.ts +47 -0
- package/src/operations/retrieveSynonymSetItems.ts +44 -0
- package/src/operations/retrieveSynonymSets.ts +39 -0
- package/src/operations/searchCollection.ts +209 -0
- package/src/operations/takeSnapshot.ts +28 -0
- package/src/operations/toggleSlowRequestLog.ts +30 -0
- package/src/operations/updateCollection.ts +116 -0
- package/src/operations/updateConversationModel.ts +44 -0
- package/src/operations/updateDocument.ts +37 -0
- package/src/operations/updateDocuments.ts +33 -0
- package/src/operations/updateNLSearchModel.ts +32 -0
- package/src/operations/upsertAlias.ts +32 -0
- package/src/operations/upsertAnalyticsRule.ts +65 -0
- package/src/operations/upsertCurationSet.ts +105 -0
- package/src/operations/upsertCurationSetItem.ts +103 -0
- package/src/operations/upsertPreset.ts +32 -0
- package/src/operations/upsertStopwordsSet.ts +36 -0
- package/src/operations/upsertSynonymSet.ts +50 -0
- package/src/operations/upsertSynonymSetItem.ts +49 -0
- package/src/operations/vote.ts +26 -0
- package/src/retry.ts +35 -0
- package/src/sensitive.ts +4 -0
- package/src/traits.ts +4 -0
- package/bun.lock +0 -26
- package/index.ts +0 -1
- package/tsconfig.json +0 -29
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { BadRequest, NotFound } from "../errors.ts";
|
|
3
|
+
export declare const SearchCollectionInput: Schema.Struct<{
|
|
4
|
+
readonly collectionName: Schema.String;
|
|
5
|
+
readonly searchParameters: Schema.String;
|
|
6
|
+
}>;
|
|
7
|
+
export type SearchCollectionInput = typeof SearchCollectionInput.Type;
|
|
8
|
+
export declare const SearchCollectionOutput: Schema.Struct<{
|
|
9
|
+
readonly facet_counts: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
10
|
+
readonly counts: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
11
|
+
readonly count: Schema.optional<Schema.Number>;
|
|
12
|
+
readonly highlighted: Schema.optional<Schema.String>;
|
|
13
|
+
readonly value: Schema.optional<Schema.String>;
|
|
14
|
+
readonly parent: Schema.optional<Schema.Unknown>;
|
|
15
|
+
}>>>;
|
|
16
|
+
readonly field_name: Schema.optional<Schema.String>;
|
|
17
|
+
readonly sampled: Schema.optional<Schema.Boolean>;
|
|
18
|
+
readonly stats: Schema.optional<Schema.Struct<{
|
|
19
|
+
readonly max: Schema.optional<Schema.Number>;
|
|
20
|
+
readonly min: Schema.optional<Schema.Number>;
|
|
21
|
+
readonly sum: Schema.optional<Schema.Number>;
|
|
22
|
+
readonly total_values: Schema.optional<Schema.Number>;
|
|
23
|
+
readonly avg: Schema.optional<Schema.Number>;
|
|
24
|
+
}>>;
|
|
25
|
+
}>>>;
|
|
26
|
+
readonly found: Schema.optional<Schema.Number>;
|
|
27
|
+
readonly found_docs: Schema.optional<Schema.Number>;
|
|
28
|
+
readonly search_time_ms: Schema.optional<Schema.Number>;
|
|
29
|
+
readonly out_of: Schema.optional<Schema.Number>;
|
|
30
|
+
readonly search_cutoff: Schema.optional<Schema.Boolean>;
|
|
31
|
+
readonly page: Schema.optional<Schema.Number>;
|
|
32
|
+
readonly grouped_hits: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
33
|
+
readonly found: Schema.optional<Schema.Number>;
|
|
34
|
+
readonly group_key: Schema.$Array<Schema.Unknown>;
|
|
35
|
+
readonly hits: Schema.$Array<Schema.Struct<{
|
|
36
|
+
readonly highlights: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
37
|
+
readonly field: Schema.optional<Schema.String>;
|
|
38
|
+
readonly snippet: Schema.optional<Schema.String>;
|
|
39
|
+
readonly snippets: Schema.optional<Schema.$Array<Schema.String>>;
|
|
40
|
+
readonly value: Schema.optional<Schema.String>;
|
|
41
|
+
readonly values: Schema.optional<Schema.$Array<Schema.String>>;
|
|
42
|
+
readonly indices: Schema.optional<Schema.$Array<Schema.Number>>;
|
|
43
|
+
readonly matched_tokens: Schema.optional<Schema.$Array<Schema.Unknown>>;
|
|
44
|
+
}>>>;
|
|
45
|
+
readonly highlight: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
46
|
+
readonly document: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
47
|
+
readonly text_match: Schema.optional<Schema.Number>;
|
|
48
|
+
readonly text_match_info: Schema.optional<Schema.Struct<{
|
|
49
|
+
readonly best_field_score: Schema.optional<Schema.String>;
|
|
50
|
+
readonly best_field_weight: Schema.optional<Schema.Number>;
|
|
51
|
+
readonly fields_matched: Schema.optional<Schema.Number>;
|
|
52
|
+
readonly num_tokens_dropped: Schema.optional<Schema.Number>;
|
|
53
|
+
readonly score: Schema.optional<Schema.String>;
|
|
54
|
+
readonly tokens_matched: Schema.optional<Schema.Number>;
|
|
55
|
+
readonly typo_prefix_score: Schema.optional<Schema.Number>;
|
|
56
|
+
}>>;
|
|
57
|
+
readonly geo_distance_meters: Schema.optional<Schema.$Record<Schema.String, Schema.Number>>;
|
|
58
|
+
readonly vector_distance: Schema.optional<Schema.Number>;
|
|
59
|
+
readonly hybrid_search_info: Schema.optional<Schema.Struct<{
|
|
60
|
+
readonly rank_fusion_score: Schema.optional<Schema.Number>;
|
|
61
|
+
}>>;
|
|
62
|
+
readonly search_index: Schema.optional<Schema.Number>;
|
|
63
|
+
}>>;
|
|
64
|
+
}>>>;
|
|
65
|
+
readonly hits: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
66
|
+
readonly highlights: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
67
|
+
readonly field: Schema.optional<Schema.String>;
|
|
68
|
+
readonly snippet: Schema.optional<Schema.String>;
|
|
69
|
+
readonly snippets: Schema.optional<Schema.$Array<Schema.String>>;
|
|
70
|
+
readonly value: Schema.optional<Schema.String>;
|
|
71
|
+
readonly values: Schema.optional<Schema.$Array<Schema.String>>;
|
|
72
|
+
readonly indices: Schema.optional<Schema.$Array<Schema.Number>>;
|
|
73
|
+
readonly matched_tokens: Schema.optional<Schema.$Array<Schema.Unknown>>;
|
|
74
|
+
}>>>;
|
|
75
|
+
readonly highlight: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
76
|
+
readonly document: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
77
|
+
readonly text_match: Schema.optional<Schema.Number>;
|
|
78
|
+
readonly text_match_info: Schema.optional<Schema.Struct<{
|
|
79
|
+
readonly best_field_score: Schema.optional<Schema.String>;
|
|
80
|
+
readonly best_field_weight: Schema.optional<Schema.Number>;
|
|
81
|
+
readonly fields_matched: Schema.optional<Schema.Number>;
|
|
82
|
+
readonly num_tokens_dropped: Schema.optional<Schema.Number>;
|
|
83
|
+
readonly score: Schema.optional<Schema.String>;
|
|
84
|
+
readonly tokens_matched: Schema.optional<Schema.Number>;
|
|
85
|
+
readonly typo_prefix_score: Schema.optional<Schema.Number>;
|
|
86
|
+
}>>;
|
|
87
|
+
readonly geo_distance_meters: Schema.optional<Schema.$Record<Schema.String, Schema.Number>>;
|
|
88
|
+
readonly vector_distance: Schema.optional<Schema.Number>;
|
|
89
|
+
readonly hybrid_search_info: Schema.optional<Schema.Struct<{
|
|
90
|
+
readonly rank_fusion_score: Schema.optional<Schema.Number>;
|
|
91
|
+
}>>;
|
|
92
|
+
readonly search_index: Schema.optional<Schema.Number>;
|
|
93
|
+
}>>>;
|
|
94
|
+
readonly request_params: Schema.optional<Schema.Struct<{
|
|
95
|
+
readonly collection_name: Schema.String;
|
|
96
|
+
readonly first_q: Schema.optional<Schema.String>;
|
|
97
|
+
readonly q: Schema.String;
|
|
98
|
+
readonly per_page: Schema.Number;
|
|
99
|
+
readonly voice_query: Schema.optional<Schema.Struct<{
|
|
100
|
+
readonly transcribed_query: Schema.optional<Schema.String>;
|
|
101
|
+
}>>;
|
|
102
|
+
}>>;
|
|
103
|
+
readonly conversation: Schema.optional<Schema.Struct<{
|
|
104
|
+
readonly answer: Schema.String;
|
|
105
|
+
readonly conversation_history: Schema.$Array<Schema.Unknown>;
|
|
106
|
+
readonly conversation_id: Schema.String;
|
|
107
|
+
readonly query: Schema.String;
|
|
108
|
+
}>>;
|
|
109
|
+
readonly union_request_params: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
110
|
+
readonly collection_name: Schema.String;
|
|
111
|
+
readonly first_q: Schema.optional<Schema.String>;
|
|
112
|
+
readonly q: Schema.String;
|
|
113
|
+
readonly per_page: Schema.Number;
|
|
114
|
+
readonly voice_query: Schema.optional<Schema.Struct<{
|
|
115
|
+
readonly transcribed_query: Schema.optional<Schema.String>;
|
|
116
|
+
}>>;
|
|
117
|
+
}>>>;
|
|
118
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
119
|
+
}>;
|
|
120
|
+
export type SearchCollectionOutput = typeof SearchCollectionOutput.Type;
|
|
121
|
+
/**
|
|
122
|
+
* Search for documents in a collection
|
|
123
|
+
*
|
|
124
|
+
* Search for documents in a collection that match the search criteria.
|
|
125
|
+
*
|
|
126
|
+
* @param collectionName - The name of the collection to search for the document under
|
|
127
|
+
*/
|
|
128
|
+
export declare const searchCollection: import("@distilled.cloud/core/client").OperationMethod<{
|
|
129
|
+
readonly collectionName: string;
|
|
130
|
+
readonly searchParameters: string;
|
|
131
|
+
}, {
|
|
132
|
+
readonly conversation?: {
|
|
133
|
+
readonly answer: string;
|
|
134
|
+
readonly conversation_history: readonly unknown[];
|
|
135
|
+
readonly conversation_id: string;
|
|
136
|
+
readonly query: string;
|
|
137
|
+
} | undefined;
|
|
138
|
+
readonly facet_counts?: readonly {
|
|
139
|
+
readonly counts?: readonly {
|
|
140
|
+
readonly count?: number | undefined;
|
|
141
|
+
readonly highlighted?: string | undefined;
|
|
142
|
+
readonly parent?: unknown;
|
|
143
|
+
readonly value?: string | undefined;
|
|
144
|
+
}[] | undefined;
|
|
145
|
+
readonly field_name?: string | undefined;
|
|
146
|
+
readonly sampled?: boolean | undefined;
|
|
147
|
+
readonly stats?: {
|
|
148
|
+
readonly avg?: number | undefined;
|
|
149
|
+
readonly max?: number | undefined;
|
|
150
|
+
readonly min?: number | undefined;
|
|
151
|
+
readonly sum?: number | undefined;
|
|
152
|
+
readonly total_values?: number | undefined;
|
|
153
|
+
} | undefined;
|
|
154
|
+
}[] | undefined;
|
|
155
|
+
readonly found?: number | undefined;
|
|
156
|
+
readonly found_docs?: number | undefined;
|
|
157
|
+
readonly grouped_hits?: readonly {
|
|
158
|
+
readonly found?: number | undefined;
|
|
159
|
+
readonly group_key: readonly unknown[];
|
|
160
|
+
readonly hits: readonly {
|
|
161
|
+
readonly document?: {
|
|
162
|
+
readonly [x: string]: unknown;
|
|
163
|
+
} | undefined;
|
|
164
|
+
readonly geo_distance_meters?: {
|
|
165
|
+
readonly [x: string]: number;
|
|
166
|
+
} | undefined;
|
|
167
|
+
readonly highlight?: {
|
|
168
|
+
readonly [x: string]: unknown;
|
|
169
|
+
} | undefined;
|
|
170
|
+
readonly highlights?: readonly {
|
|
171
|
+
readonly field?: string | undefined;
|
|
172
|
+
readonly indices?: readonly number[] | undefined;
|
|
173
|
+
readonly matched_tokens?: readonly unknown[] | undefined;
|
|
174
|
+
readonly snippet?: string | undefined;
|
|
175
|
+
readonly snippets?: readonly string[] | undefined;
|
|
176
|
+
readonly value?: string | undefined;
|
|
177
|
+
readonly values?: readonly string[] | undefined;
|
|
178
|
+
}[] | undefined;
|
|
179
|
+
readonly hybrid_search_info?: {
|
|
180
|
+
readonly rank_fusion_score?: number | undefined;
|
|
181
|
+
} | undefined;
|
|
182
|
+
readonly search_index?: number | undefined;
|
|
183
|
+
readonly text_match?: number | undefined;
|
|
184
|
+
readonly text_match_info?: {
|
|
185
|
+
readonly best_field_score?: string | undefined;
|
|
186
|
+
readonly best_field_weight?: number | undefined;
|
|
187
|
+
readonly fields_matched?: number | undefined;
|
|
188
|
+
readonly num_tokens_dropped?: number | undefined;
|
|
189
|
+
readonly score?: string | undefined;
|
|
190
|
+
readonly tokens_matched?: number | undefined;
|
|
191
|
+
readonly typo_prefix_score?: number | undefined;
|
|
192
|
+
} | undefined;
|
|
193
|
+
readonly vector_distance?: number | undefined;
|
|
194
|
+
}[];
|
|
195
|
+
}[] | undefined;
|
|
196
|
+
readonly hits?: readonly {
|
|
197
|
+
readonly document?: {
|
|
198
|
+
readonly [x: string]: unknown;
|
|
199
|
+
} | undefined;
|
|
200
|
+
readonly geo_distance_meters?: {
|
|
201
|
+
readonly [x: string]: number;
|
|
202
|
+
} | undefined;
|
|
203
|
+
readonly highlight?: {
|
|
204
|
+
readonly [x: string]: unknown;
|
|
205
|
+
} | undefined;
|
|
206
|
+
readonly highlights?: readonly {
|
|
207
|
+
readonly field?: string | undefined;
|
|
208
|
+
readonly indices?: readonly number[] | undefined;
|
|
209
|
+
readonly matched_tokens?: readonly unknown[] | undefined;
|
|
210
|
+
readonly snippet?: string | undefined;
|
|
211
|
+
readonly snippets?: readonly string[] | undefined;
|
|
212
|
+
readonly value?: string | undefined;
|
|
213
|
+
readonly values?: readonly string[] | undefined;
|
|
214
|
+
}[] | undefined;
|
|
215
|
+
readonly hybrid_search_info?: {
|
|
216
|
+
readonly rank_fusion_score?: number | undefined;
|
|
217
|
+
} | undefined;
|
|
218
|
+
readonly search_index?: number | undefined;
|
|
219
|
+
readonly text_match?: number | undefined;
|
|
220
|
+
readonly text_match_info?: {
|
|
221
|
+
readonly best_field_score?: string | undefined;
|
|
222
|
+
readonly best_field_weight?: number | undefined;
|
|
223
|
+
readonly fields_matched?: number | undefined;
|
|
224
|
+
readonly num_tokens_dropped?: number | undefined;
|
|
225
|
+
readonly score?: string | undefined;
|
|
226
|
+
readonly tokens_matched?: number | undefined;
|
|
227
|
+
readonly typo_prefix_score?: number | undefined;
|
|
228
|
+
} | undefined;
|
|
229
|
+
readonly vector_distance?: number | undefined;
|
|
230
|
+
}[] | undefined;
|
|
231
|
+
readonly metadata?: {
|
|
232
|
+
readonly [x: string]: unknown;
|
|
233
|
+
} | undefined;
|
|
234
|
+
readonly out_of?: number | undefined;
|
|
235
|
+
readonly page?: number | undefined;
|
|
236
|
+
readonly request_params?: {
|
|
237
|
+
readonly collection_name: string;
|
|
238
|
+
readonly first_q?: string | undefined;
|
|
239
|
+
readonly per_page: number;
|
|
240
|
+
readonly q: string;
|
|
241
|
+
readonly voice_query?: {
|
|
242
|
+
readonly transcribed_query?: string | undefined;
|
|
243
|
+
} | undefined;
|
|
244
|
+
} | undefined;
|
|
245
|
+
readonly search_cutoff?: boolean | undefined;
|
|
246
|
+
readonly search_time_ms?: number | undefined;
|
|
247
|
+
readonly union_request_params?: readonly {
|
|
248
|
+
readonly collection_name: string;
|
|
249
|
+
readonly first_q?: string | undefined;
|
|
250
|
+
readonly per_page: number;
|
|
251
|
+
readonly q: string;
|
|
252
|
+
readonly voice_query?: {
|
|
253
|
+
readonly transcribed_query?: string | undefined;
|
|
254
|
+
} | undefined;
|
|
255
|
+
}[] | undefined;
|
|
256
|
+
}, BadRequest | NotFound, import("~/credentials.ts").Credentials>;
|
|
257
|
+
//# sourceMappingURL=searchCollection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchCollection.d.ts","sourceRoot":"","sources":["../../src/operations/searchCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGpD,eAAO,MAAM,qBAAqB;;;EAQjC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC;AAGtE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+KlC,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,IAAI,CAAC;AAGxE;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iEAI1B,CAAC"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.js";
|
|
3
|
+
import * as T from "../traits.js";
|
|
4
|
+
import { BadRequest, NotFound } from "../errors.js";
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const SearchCollectionInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
collectionName: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
searchParameters: Schema.String,
|
|
9
|
+
}).pipe(T.Http({
|
|
10
|
+
method: "GET",
|
|
11
|
+
path: "/collections/{collectionName}/documents/search",
|
|
12
|
+
}));
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const SearchCollectionOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
|
+
facet_counts: Schema.optional(Schema.Array(Schema.Struct({
|
|
16
|
+
counts: Schema.optional(Schema.Array(Schema.Struct({
|
|
17
|
+
count: Schema.optional(Schema.Number),
|
|
18
|
+
highlighted: Schema.optional(Schema.String),
|
|
19
|
+
value: Schema.optional(Schema.String),
|
|
20
|
+
parent: Schema.optional(Schema.Unknown),
|
|
21
|
+
}))),
|
|
22
|
+
field_name: Schema.optional(Schema.String),
|
|
23
|
+
sampled: Schema.optional(Schema.Boolean),
|
|
24
|
+
stats: Schema.optional(Schema.Struct({
|
|
25
|
+
max: Schema.optional(Schema.Number),
|
|
26
|
+
min: Schema.optional(Schema.Number),
|
|
27
|
+
sum: Schema.optional(Schema.Number),
|
|
28
|
+
total_values: Schema.optional(Schema.Number),
|
|
29
|
+
avg: Schema.optional(Schema.Number),
|
|
30
|
+
})),
|
|
31
|
+
}))),
|
|
32
|
+
found: Schema.optional(Schema.Number),
|
|
33
|
+
found_docs: Schema.optional(Schema.Number),
|
|
34
|
+
search_time_ms: Schema.optional(Schema.Number),
|
|
35
|
+
out_of: Schema.optional(Schema.Number),
|
|
36
|
+
search_cutoff: Schema.optional(Schema.Boolean),
|
|
37
|
+
page: Schema.optional(Schema.Number),
|
|
38
|
+
grouped_hits: Schema.optional(Schema.Array(Schema.Struct({
|
|
39
|
+
found: Schema.optional(Schema.Number),
|
|
40
|
+
group_key: Schema.Array(Schema.Unknown),
|
|
41
|
+
hits: Schema.Array(Schema.Struct({
|
|
42
|
+
highlights: Schema.optional(Schema.Array(Schema.Struct({
|
|
43
|
+
field: Schema.optional(Schema.String),
|
|
44
|
+
snippet: Schema.optional(Schema.String),
|
|
45
|
+
snippets: Schema.optional(Schema.Array(Schema.String)),
|
|
46
|
+
value: Schema.optional(Schema.String),
|
|
47
|
+
values: Schema.optional(Schema.Array(Schema.String)),
|
|
48
|
+
indices: Schema.optional(Schema.Array(Schema.Number)),
|
|
49
|
+
matched_tokens: Schema.optional(Schema.Array(Schema.Unknown)),
|
|
50
|
+
}))),
|
|
51
|
+
highlight: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
52
|
+
document: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
53
|
+
text_match: Schema.optional(Schema.Number),
|
|
54
|
+
text_match_info: Schema.optional(Schema.Struct({
|
|
55
|
+
best_field_score: Schema.optional(Schema.String),
|
|
56
|
+
best_field_weight: Schema.optional(Schema.Number),
|
|
57
|
+
fields_matched: Schema.optional(Schema.Number),
|
|
58
|
+
num_tokens_dropped: Schema.optional(Schema.Number),
|
|
59
|
+
score: Schema.optional(Schema.String),
|
|
60
|
+
tokens_matched: Schema.optional(Schema.Number),
|
|
61
|
+
typo_prefix_score: Schema.optional(Schema.Number),
|
|
62
|
+
})),
|
|
63
|
+
geo_distance_meters: Schema.optional(Schema.Record(Schema.String, Schema.Number)),
|
|
64
|
+
vector_distance: Schema.optional(Schema.Number),
|
|
65
|
+
hybrid_search_info: Schema.optional(Schema.Struct({
|
|
66
|
+
rank_fusion_score: Schema.optional(Schema.Number),
|
|
67
|
+
})),
|
|
68
|
+
search_index: Schema.optional(Schema.Number),
|
|
69
|
+
})),
|
|
70
|
+
}))),
|
|
71
|
+
hits: Schema.optional(Schema.Array(Schema.Struct({
|
|
72
|
+
highlights: Schema.optional(Schema.Array(Schema.Struct({
|
|
73
|
+
field: Schema.optional(Schema.String),
|
|
74
|
+
snippet: Schema.optional(Schema.String),
|
|
75
|
+
snippets: Schema.optional(Schema.Array(Schema.String)),
|
|
76
|
+
value: Schema.optional(Schema.String),
|
|
77
|
+
values: Schema.optional(Schema.Array(Schema.String)),
|
|
78
|
+
indices: Schema.optional(Schema.Array(Schema.Number)),
|
|
79
|
+
matched_tokens: Schema.optional(Schema.Array(Schema.Unknown)),
|
|
80
|
+
}))),
|
|
81
|
+
highlight: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
82
|
+
document: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
83
|
+
text_match: Schema.optional(Schema.Number),
|
|
84
|
+
text_match_info: Schema.optional(Schema.Struct({
|
|
85
|
+
best_field_score: Schema.optional(Schema.String),
|
|
86
|
+
best_field_weight: Schema.optional(Schema.Number),
|
|
87
|
+
fields_matched: Schema.optional(Schema.Number),
|
|
88
|
+
num_tokens_dropped: Schema.optional(Schema.Number),
|
|
89
|
+
score: Schema.optional(Schema.String),
|
|
90
|
+
tokens_matched: Schema.optional(Schema.Number),
|
|
91
|
+
typo_prefix_score: Schema.optional(Schema.Number),
|
|
92
|
+
})),
|
|
93
|
+
geo_distance_meters: Schema.optional(Schema.Record(Schema.String, Schema.Number)),
|
|
94
|
+
vector_distance: Schema.optional(Schema.Number),
|
|
95
|
+
hybrid_search_info: Schema.optional(Schema.Struct({
|
|
96
|
+
rank_fusion_score: Schema.optional(Schema.Number),
|
|
97
|
+
})),
|
|
98
|
+
search_index: Schema.optional(Schema.Number),
|
|
99
|
+
}))),
|
|
100
|
+
request_params: Schema.optional(Schema.Struct({
|
|
101
|
+
collection_name: Schema.String,
|
|
102
|
+
first_q: Schema.optional(Schema.String),
|
|
103
|
+
q: Schema.String,
|
|
104
|
+
per_page: Schema.Number,
|
|
105
|
+
voice_query: Schema.optional(Schema.Struct({
|
|
106
|
+
transcribed_query: Schema.optional(Schema.String),
|
|
107
|
+
})),
|
|
108
|
+
})),
|
|
109
|
+
conversation: Schema.optional(Schema.Struct({
|
|
110
|
+
answer: Schema.String,
|
|
111
|
+
conversation_history: Schema.Array(Schema.Unknown),
|
|
112
|
+
conversation_id: Schema.String,
|
|
113
|
+
query: Schema.String,
|
|
114
|
+
})),
|
|
115
|
+
union_request_params: Schema.optional(Schema.Array(Schema.Struct({
|
|
116
|
+
collection_name: Schema.String,
|
|
117
|
+
first_q: Schema.optional(Schema.String),
|
|
118
|
+
q: Schema.String,
|
|
119
|
+
per_page: Schema.Number,
|
|
120
|
+
voice_query: Schema.optional(Schema.Struct({
|
|
121
|
+
transcribed_query: Schema.optional(Schema.String),
|
|
122
|
+
})),
|
|
123
|
+
}))),
|
|
124
|
+
metadata: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
125
|
+
});
|
|
126
|
+
// The operation
|
|
127
|
+
/**
|
|
128
|
+
* Search for documents in a collection
|
|
129
|
+
*
|
|
130
|
+
* Search for documents in a collection that match the search criteria.
|
|
131
|
+
*
|
|
132
|
+
* @param collectionName - The name of the collection to search for the document under
|
|
133
|
+
*/
|
|
134
|
+
export const searchCollection = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
135
|
+
inputSchema: SearchCollectionInput,
|
|
136
|
+
outputSchema: SearchCollectionOutput,
|
|
137
|
+
errors: [BadRequest, NotFound],
|
|
138
|
+
}));
|
|
139
|
+
//# sourceMappingURL=searchCollection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchCollection.js","sourceRoot":"","sources":["../../src/operations/searchCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAe;AACf,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC7E,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACjD,gBAAgB,EAAE,MAAM,C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C,CAAC;CACxE,CACF,CAAC;AAGF,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1E,WAAW,EAAE,qBAAqB;IAClC,YAAY,EAAE,sBAAsB;IACpC,MAAM,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAU;CACxC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const TakeSnapshotInput: Schema.Struct<{
|
|
3
|
+
readonly snapshot_path: Schema.String;
|
|
4
|
+
}>;
|
|
5
|
+
export type TakeSnapshotInput = typeof TakeSnapshotInput.Type;
|
|
6
|
+
export declare const TakeSnapshotOutput: Schema.Struct<{
|
|
7
|
+
readonly success: Schema.Boolean;
|
|
8
|
+
}>;
|
|
9
|
+
export type TakeSnapshotOutput = typeof TakeSnapshotOutput.Type;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a point-in-time snapshot of a Typesense node's state and data in the specified directory.
|
|
12
|
+
*
|
|
13
|
+
* 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.
|
|
14
|
+
*
|
|
15
|
+
* @param snapshot_path - The directory on the server where the snapshot should be saved.
|
|
16
|
+
*/
|
|
17
|
+
export declare const takeSnapshot: import("@distilled.cloud/core/client").OperationMethod<{
|
|
18
|
+
readonly snapshot_path: string;
|
|
19
|
+
}, {
|
|
20
|
+
readonly success: boolean;
|
|
21
|
+
}, never, import("~/credentials.ts").Credentials>;
|
|
22
|
+
//# sourceMappingURL=takeSnapshot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"takeSnapshot.d.ts","sourceRoot":"","sources":["../../src/operations/takeSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,iBAAiB;;EAEmC,CAAC;AAClE,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAC;AAG9D,eAAO,MAAM,kBAAkB;;EAE7B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAC;AAGhE;;;;;;GAMG;AACH,eAAO,MAAM,YAAY;;;;iDAGtB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.js";
|
|
3
|
+
import * as T from "../traits.js";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const TakeSnapshotInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
snapshot_path: Schema.String,
|
|
7
|
+
}).pipe(T.Http({ method: "POST", path: "/operations/snapshot" }));
|
|
8
|
+
// Output Schema
|
|
9
|
+
export const TakeSnapshotOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
10
|
+
success: Schema.Boolean,
|
|
11
|
+
});
|
|
12
|
+
// The operation
|
|
13
|
+
/**
|
|
14
|
+
* Creates a point-in-time snapshot of a Typesense node's state and data in the specified directory.
|
|
15
|
+
*
|
|
16
|
+
* 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.
|
|
17
|
+
*
|
|
18
|
+
* @param snapshot_path - The directory on the server where the snapshot should be saved.
|
|
19
|
+
*/
|
|
20
|
+
export const takeSnapshot = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
21
|
+
inputSchema: TakeSnapshotInput,
|
|
22
|
+
outputSchema: TakeSnapshotOutput,
|
|
23
|
+
}));
|
|
24
|
+
//# sourceMappingURL=takeSnapshot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"takeSnapshot.js","sourceRoot":"","sources":["../../src/operations/takeSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,eAAe;AACf,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACzE,aAAa,EAAE,MAAM,CAAC,MAAM;CAC7B,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC,CAAC,CAAC;AAGlE,gBAAgB;AAChB,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1E,OAAO,EAAE,MAAM,CAAC,OAAO;CACxB,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACtE,WAAW,EAAE,iBAAiB;IAC9B,YAAY,EAAE,kBAAkB;CACjC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const ToggleSlowRequestLogInput: Schema.Struct<{
|
|
3
|
+
readonly "log-slow-requests-time-ms": Schema.Number;
|
|
4
|
+
}>;
|
|
5
|
+
export type ToggleSlowRequestLogInput = typeof ToggleSlowRequestLogInput.Type;
|
|
6
|
+
export declare const ToggleSlowRequestLogOutput: Schema.Struct<{
|
|
7
|
+
readonly success: Schema.Boolean;
|
|
8
|
+
}>;
|
|
9
|
+
export type ToggleSlowRequestLogOutput = typeof ToggleSlowRequestLogOutput.Type;
|
|
10
|
+
/**
|
|
11
|
+
* Toggle Slow Request Log
|
|
12
|
+
*
|
|
13
|
+
* 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.
|
|
14
|
+
*/
|
|
15
|
+
export declare const toggleSlowRequestLog: import("@distilled.cloud/core/client").OperationMethod<{
|
|
16
|
+
readonly "log-slow-requests-time-ms": number;
|
|
17
|
+
}, {
|
|
18
|
+
readonly success: boolean;
|
|
19
|
+
}, never, import("~/credentials.ts").Credentials>;
|
|
20
|
+
//# sourceMappingURL=toggleSlowRequestLog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggleSlowRequestLog.d.ts","sourceRoot":"","sources":["../../src/operations/toggleSlowRequestLog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,yBAAyB;;EAGgB,CAAC;AACvD,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,IAAI,CAAC;AAG9E,eAAO,MAAM,0BAA0B;;EAGnC,CAAC;AACL,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,IAAI,CAAC;AAGhF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;;iDAKhC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.js";
|
|
3
|
+
import * as T from "../traits.js";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const ToggleSlowRequestLogInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
"log-slow-requests-time-ms": Schema.Number,
|
|
8
|
+
}).pipe(T.Http({ method: "POST", path: "/config" }));
|
|
9
|
+
// Output Schema
|
|
10
|
+
export const ToggleSlowRequestLogOutput =
|
|
11
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
12
|
+
success: Schema.Boolean,
|
|
13
|
+
});
|
|
14
|
+
// The operation
|
|
15
|
+
/**
|
|
16
|
+
* Toggle Slow Request Log
|
|
17
|
+
*
|
|
18
|
+
* 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.
|
|
19
|
+
*/
|
|
20
|
+
export const toggleSlowRequestLog = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
21
|
+
inputSchema: ToggleSlowRequestLogInput,
|
|
22
|
+
outputSchema: ToggleSlowRequestLogOutput,
|
|
23
|
+
}));
|
|
24
|
+
//# sourceMappingURL=toggleSlowRequestLog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggleSlowRequestLog.js","sourceRoot":"","sources":["../../src/operations/toggleSlowRequestLog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAElC,eAAe;AACf,MAAM,CAAC,MAAM,yBAAyB;AACpC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,2BAA2B,EAAE,MAAM,CAAC,MAAM;CAC3C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC;AAGvD,gBAAgB;AAChB,MAAM,CAAC,MAAM,0BAA0B;AACrC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC,OAAO;CACxB,CAAC,CAAC;AAGL,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CACtE,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,yBAAyB;IACtC,YAAY,EAAE,0BAA0B;CACzC,CAAC,CACH,CAAC"}
|