@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,82 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.ts";
|
|
3
|
+
import * as T from "../traits.ts";
|
|
4
|
+
import { SensitiveString } from "../sensitive.ts";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const GetCollectionsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
getCollectionsParameters: Schema.optional(Schema.String),
|
|
9
|
+
}).pipe(T.Http({ method: "GET", path: "/collections" }));
|
|
10
|
+
export type GetCollectionsInput = typeof GetCollectionsInput.Type;
|
|
11
|
+
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const GetCollectionsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
14
|
+
Schema.Struct({
|
|
15
|
+
name: Schema.String,
|
|
16
|
+
fields: Schema.Array(
|
|
17
|
+
Schema.Struct({
|
|
18
|
+
name: Schema.String,
|
|
19
|
+
type: Schema.String,
|
|
20
|
+
optional: Schema.optional(Schema.Boolean),
|
|
21
|
+
facet: Schema.optional(Schema.Boolean),
|
|
22
|
+
index: Schema.optional(Schema.Boolean),
|
|
23
|
+
locale: Schema.optional(Schema.String),
|
|
24
|
+
sort: Schema.optional(Schema.Boolean),
|
|
25
|
+
infix: Schema.optional(Schema.Boolean),
|
|
26
|
+
reference: Schema.optional(Schema.String),
|
|
27
|
+
async_reference: Schema.optional(Schema.Boolean),
|
|
28
|
+
num_dim: Schema.optional(Schema.Number),
|
|
29
|
+
drop: Schema.optional(Schema.Boolean),
|
|
30
|
+
store: Schema.optional(Schema.Boolean),
|
|
31
|
+
vec_dist: Schema.optional(Schema.String),
|
|
32
|
+
range_index: Schema.optional(Schema.Boolean),
|
|
33
|
+
stem: Schema.optional(Schema.Boolean),
|
|
34
|
+
stem_dictionary: Schema.optional(Schema.String),
|
|
35
|
+
token_separators: Schema.optional(Schema.Array(Schema.String)),
|
|
36
|
+
symbols_to_index: Schema.optional(Schema.Array(Schema.String)),
|
|
37
|
+
embed: Schema.optional(
|
|
38
|
+
Schema.Struct({
|
|
39
|
+
from: Schema.Array(Schema.String),
|
|
40
|
+
model_config: Schema.Struct({
|
|
41
|
+
model_name: Schema.String,
|
|
42
|
+
api_key: Schema.optional(SensitiveString),
|
|
43
|
+
url: Schema.optional(Schema.String),
|
|
44
|
+
access_token: Schema.optional(SensitiveString),
|
|
45
|
+
refresh_token: Schema.optional(SensitiveString),
|
|
46
|
+
client_id: Schema.optional(Schema.String),
|
|
47
|
+
client_secret: Schema.optional(SensitiveString),
|
|
48
|
+
project_id: Schema.optional(Schema.String),
|
|
49
|
+
indexing_prefix: Schema.optional(Schema.String),
|
|
50
|
+
query_prefix: Schema.optional(Schema.String),
|
|
51
|
+
}),
|
|
52
|
+
}),
|
|
53
|
+
),
|
|
54
|
+
}),
|
|
55
|
+
),
|
|
56
|
+
default_sorting_field: Schema.optional(Schema.String),
|
|
57
|
+
token_separators: Schema.optional(Schema.Array(Schema.String)),
|
|
58
|
+
synonym_sets: Schema.optional(Schema.Array(Schema.String)),
|
|
59
|
+
enable_nested_fields: Schema.optional(Schema.Boolean),
|
|
60
|
+
symbols_to_index: Schema.optional(Schema.Array(Schema.String)),
|
|
61
|
+
voice_query_model: Schema.optional(
|
|
62
|
+
Schema.Struct({
|
|
63
|
+
model_name: Schema.optional(Schema.String),
|
|
64
|
+
}),
|
|
65
|
+
),
|
|
66
|
+
metadata: Schema.optional(Schema.Unknown),
|
|
67
|
+
num_documents: Schema.Number,
|
|
68
|
+
created_at: Schema.Number,
|
|
69
|
+
}),
|
|
70
|
+
);
|
|
71
|
+
export type GetCollectionsOutput = typeof GetCollectionsOutput.Type;
|
|
72
|
+
|
|
73
|
+
// The operation
|
|
74
|
+
/**
|
|
75
|
+
* List all collections
|
|
76
|
+
*
|
|
77
|
+
* Returns a summary of all your collections. The collections are returned sorted by creation date, with the most recent collections appearing first.
|
|
78
|
+
*/
|
|
79
|
+
export const getCollections = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
80
|
+
inputSchema: GetCollectionsInput,
|
|
81
|
+
outputSchema: GetCollectionsOutput,
|
|
82
|
+
}));
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.ts";
|
|
3
|
+
import * as T from "../traits.ts";
|
|
4
|
+
import { NotFound } from "../errors.ts";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const GetDocumentInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
collectionName: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
documentId: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
}).pipe(
|
|
11
|
+
T.Http({
|
|
12
|
+
method: "GET",
|
|
13
|
+
path: "/collections/{collectionName}/documents/{documentId}",
|
|
14
|
+
}),
|
|
15
|
+
);
|
|
16
|
+
export type GetDocumentInput = typeof GetDocumentInput.Type;
|
|
17
|
+
|
|
18
|
+
// Output Schema
|
|
19
|
+
export const GetDocumentOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
20
|
+
export type GetDocumentOutput = typeof GetDocumentOutput.Type;
|
|
21
|
+
|
|
22
|
+
// The operation
|
|
23
|
+
/**
|
|
24
|
+
* Retrieve a document
|
|
25
|
+
*
|
|
26
|
+
* Fetch an individual document from a collection by using its ID.
|
|
27
|
+
*
|
|
28
|
+
* @param collectionName - The name of the collection to search for the document under
|
|
29
|
+
* @param documentId - The Document ID
|
|
30
|
+
*/
|
|
31
|
+
export const getDocument = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
32
|
+
inputSchema: GetDocumentInput,
|
|
33
|
+
outputSchema: GetDocumentOutput,
|
|
34
|
+
errors: [NotFound] as const,
|
|
35
|
+
}));
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.ts";
|
|
3
|
+
import * as T from "../traits.ts";
|
|
4
|
+
import { NotFound } from "../errors.ts";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const GetKeyInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
keyId: Schema.Number.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(T.Http({ method: "GET", path: "/keys/{keyId}" }));
|
|
10
|
+
export type GetKeyInput = typeof GetKeyInput.Type;
|
|
11
|
+
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const GetKeyOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14
|
+
value: Schema.optional(Schema.String),
|
|
15
|
+
description: Schema.String,
|
|
16
|
+
actions: Schema.Array(Schema.String),
|
|
17
|
+
collections: Schema.Array(Schema.String),
|
|
18
|
+
expires_at: Schema.optional(Schema.Number),
|
|
19
|
+
id: Schema.optional(Schema.Number),
|
|
20
|
+
value_prefix: Schema.optional(Schema.String),
|
|
21
|
+
});
|
|
22
|
+
export type GetKeyOutput = typeof GetKeyOutput.Type;
|
|
23
|
+
|
|
24
|
+
// The operation
|
|
25
|
+
/**
|
|
26
|
+
* Retrieve (metadata about) a key
|
|
27
|
+
*
|
|
28
|
+
* Retrieve (metadata about) a key. Only the key prefix is returned when you retrieve a key. Due to security reasons, only the create endpoint returns the full API key.
|
|
29
|
+
*
|
|
30
|
+
* @param keyId - The ID of the key to retrieve
|
|
31
|
+
*/
|
|
32
|
+
export const getKey = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
33
|
+
inputSchema: GetKeyInput,
|
|
34
|
+
outputSchema: GetKeyOutput,
|
|
35
|
+
errors: [NotFound] as const,
|
|
36
|
+
}));
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.ts";
|
|
3
|
+
import * as T from "../traits.ts";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const GetKeysInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
7
|
+
T.Http({ method: "GET", path: "/keys" }),
|
|
8
|
+
);
|
|
9
|
+
export type GetKeysInput = typeof GetKeysInput.Type;
|
|
10
|
+
|
|
11
|
+
// Output Schema
|
|
12
|
+
export const GetKeysOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
|
+
keys: Schema.Array(
|
|
14
|
+
Schema.Struct({
|
|
15
|
+
value: Schema.optional(Schema.String),
|
|
16
|
+
description: Schema.String,
|
|
17
|
+
actions: Schema.Array(Schema.String),
|
|
18
|
+
collections: Schema.Array(Schema.String),
|
|
19
|
+
expires_at: Schema.optional(Schema.Number),
|
|
20
|
+
id: Schema.optional(Schema.Number),
|
|
21
|
+
value_prefix: Schema.optional(Schema.String),
|
|
22
|
+
}),
|
|
23
|
+
),
|
|
24
|
+
});
|
|
25
|
+
export type GetKeysOutput = typeof GetKeysOutput.Type;
|
|
26
|
+
|
|
27
|
+
// The operation
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve (metadata about) all keys.
|
|
30
|
+
*/
|
|
31
|
+
export const getKeys = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
32
|
+
inputSchema: GetKeysInput,
|
|
33
|
+
outputSchema: GetKeysOutput,
|
|
34
|
+
}));
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.ts";
|
|
3
|
+
import * as T from "../traits.ts";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const GetSchemaChangesInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
7
|
+
{},
|
|
8
|
+
).pipe(T.Http({ method: "GET", path: "/operations/schema_changes" }));
|
|
9
|
+
export type GetSchemaChangesInput = typeof GetSchemaChangesInput.Type;
|
|
10
|
+
|
|
11
|
+
// Output Schema
|
|
12
|
+
export const GetSchemaChangesOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
13
|
+
Schema.Struct({
|
|
14
|
+
collection: Schema.optional(Schema.String),
|
|
15
|
+
validated_docs: Schema.optional(Schema.Number),
|
|
16
|
+
altered_docs: Schema.optional(Schema.Number),
|
|
17
|
+
}),
|
|
18
|
+
);
|
|
19
|
+
export type GetSchemaChangesOutput = typeof GetSchemaChangesOutput.Type;
|
|
20
|
+
|
|
21
|
+
// The operation
|
|
22
|
+
/**
|
|
23
|
+
* Get the status of in-progress schema change operations
|
|
24
|
+
*
|
|
25
|
+
* Returns the status of any ongoing schema change operations. If no schema changes are in progress, returns an empty response.
|
|
26
|
+
*/
|
|
27
|
+
export const getSchemaChanges = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
28
|
+
inputSchema: GetSchemaChangesInput,
|
|
29
|
+
outputSchema: GetSchemaChangesOutput,
|
|
30
|
+
}));
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.ts";
|
|
3
|
+
import * as T from "../traits.ts";
|
|
4
|
+
import { NotFound } from "../errors.ts";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const GetStemmingDictionaryInput =
|
|
8
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
|
+
dictionaryId: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
}).pipe(
|
|
11
|
+
T.Http({ method: "GET", path: "/stemming/dictionaries/{dictionaryId}" }),
|
|
12
|
+
);
|
|
13
|
+
export type GetStemmingDictionaryInput = typeof GetStemmingDictionaryInput.Type;
|
|
14
|
+
|
|
15
|
+
// Output Schema
|
|
16
|
+
export const GetStemmingDictionaryOutput =
|
|
17
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
18
|
+
id: Schema.String,
|
|
19
|
+
words: Schema.Array(
|
|
20
|
+
Schema.Struct({
|
|
21
|
+
word: Schema.String,
|
|
22
|
+
root: Schema.String,
|
|
23
|
+
}),
|
|
24
|
+
),
|
|
25
|
+
});
|
|
26
|
+
export type GetStemmingDictionaryOutput =
|
|
27
|
+
typeof GetStemmingDictionaryOutput.Type;
|
|
28
|
+
|
|
29
|
+
// The operation
|
|
30
|
+
/**
|
|
31
|
+
* Retrieve a stemming dictionary
|
|
32
|
+
*
|
|
33
|
+
* Fetch details of a specific stemming dictionary.
|
|
34
|
+
*
|
|
35
|
+
* @param dictionaryId - The ID of the dictionary to retrieve
|
|
36
|
+
*/
|
|
37
|
+
export const getStemmingDictionary = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
38
|
+
() => ({
|
|
39
|
+
inputSchema: GetStemmingDictionaryInput,
|
|
40
|
+
outputSchema: GetStemmingDictionaryOutput,
|
|
41
|
+
errors: [NotFound] as const,
|
|
42
|
+
}),
|
|
43
|
+
);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.ts";
|
|
3
|
+
import * as T from "../traits.ts";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const HealthInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
7
|
+
T.Http({ method: "GET", path: "/health" }),
|
|
8
|
+
);
|
|
9
|
+
export type HealthInput = typeof HealthInput.Type;
|
|
10
|
+
|
|
11
|
+
// Output Schema
|
|
12
|
+
export const HealthOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
|
+
ok: Schema.Boolean,
|
|
14
|
+
});
|
|
15
|
+
export type HealthOutput = typeof HealthOutput.Type;
|
|
16
|
+
|
|
17
|
+
// The operation
|
|
18
|
+
/**
|
|
19
|
+
* Checks if Typesense server is ready to accept requests.
|
|
20
|
+
*/
|
|
21
|
+
export const health = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
22
|
+
inputSchema: HealthInput,
|
|
23
|
+
outputSchema: HealthOutput,
|
|
24
|
+
}));
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.ts";
|
|
3
|
+
import * as T from "../traits.ts";
|
|
4
|
+
import { BadRequest, NotFound } from "../errors.ts";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const ImportDocumentsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
collectionName: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
importDocumentsParameters: Schema.optional(Schema.String),
|
|
10
|
+
}).pipe(
|
|
11
|
+
T.Http({
|
|
12
|
+
method: "POST",
|
|
13
|
+
path: "/collections/{collectionName}/documents/import",
|
|
14
|
+
}),
|
|
15
|
+
);
|
|
16
|
+
export type ImportDocumentsInput = typeof ImportDocumentsInput.Type;
|
|
17
|
+
|
|
18
|
+
// Output Schema
|
|
19
|
+
export const ImportDocumentsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Void;
|
|
20
|
+
export type ImportDocumentsOutput = typeof ImportDocumentsOutput.Type;
|
|
21
|
+
|
|
22
|
+
// The operation
|
|
23
|
+
/**
|
|
24
|
+
* Import documents into a collection
|
|
25
|
+
*
|
|
26
|
+
* The documents to be imported must be formatted in a newline delimited JSON structure. You can feed the output file from a Typesense export operation directly as import.
|
|
27
|
+
*
|
|
28
|
+
* @param collectionName - The name of the collection
|
|
29
|
+
*/
|
|
30
|
+
export const importDocuments = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
31
|
+
inputSchema: ImportDocumentsInput,
|
|
32
|
+
outputSchema: ImportDocumentsOutput,
|
|
33
|
+
errors: [BadRequest, NotFound] as const,
|
|
34
|
+
}));
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.ts";
|
|
3
|
+
import * as T from "../traits.ts";
|
|
4
|
+
import { BadRequest } from "../errors.ts";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const ImportStemmingDictionaryInput =
|
|
8
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
|
+
id: Schema.String,
|
|
10
|
+
}).pipe(T.Http({ method: "POST", path: "/stemming/dictionaries/import" }));
|
|
11
|
+
export type ImportStemmingDictionaryInput =
|
|
12
|
+
typeof ImportStemmingDictionaryInput.Type;
|
|
13
|
+
|
|
14
|
+
// Output Schema
|
|
15
|
+
export const ImportStemmingDictionaryOutput =
|
|
16
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Void;
|
|
17
|
+
export type ImportStemmingDictionaryOutput =
|
|
18
|
+
typeof ImportStemmingDictionaryOutput.Type;
|
|
19
|
+
|
|
20
|
+
// The operation
|
|
21
|
+
/**
|
|
22
|
+
* Import a stemming dictionary
|
|
23
|
+
*
|
|
24
|
+
* Upload a JSONL file containing word mappings to create or update a stemming dictionary.
|
|
25
|
+
*
|
|
26
|
+
* @param id - The ID to assign to the dictionary
|
|
27
|
+
*/
|
|
28
|
+
export const importStemmingDictionary = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
29
|
+
() => ({
|
|
30
|
+
inputSchema: ImportStemmingDictionaryInput,
|
|
31
|
+
outputSchema: ImportStemmingDictionaryOutput,
|
|
32
|
+
errors: [BadRequest] as const,
|
|
33
|
+
}),
|
|
34
|
+
);
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export * from "./getCollections.ts";
|
|
2
|
+
export * from "./createCollection.ts";
|
|
3
|
+
export * from "./getCollection.ts";
|
|
4
|
+
export * from "./updateCollection.ts";
|
|
5
|
+
export * from "./deleteCollection.ts";
|
|
6
|
+
export * from "./indexDocument.ts";
|
|
7
|
+
export * from "./updateDocuments.ts";
|
|
8
|
+
export * from "./deleteDocuments.ts";
|
|
9
|
+
export * from "./searchCollection.ts";
|
|
10
|
+
export * from "./retrieveSynonymSets.ts";
|
|
11
|
+
export * from "./retrieveSynonymSet.ts";
|
|
12
|
+
export * from "./upsertSynonymSet.ts";
|
|
13
|
+
export * from "./deleteSynonymSet.ts";
|
|
14
|
+
export * from "./retrieveSynonymSetItems.ts";
|
|
15
|
+
export * from "./retrieveSynonymSetItem.ts";
|
|
16
|
+
export * from "./upsertSynonymSetItem.ts";
|
|
17
|
+
export * from "./deleteSynonymSetItem.ts";
|
|
18
|
+
export * from "./retrieveCurationSets.ts";
|
|
19
|
+
export * from "./retrieveCurationSet.ts";
|
|
20
|
+
export * from "./upsertCurationSet.ts";
|
|
21
|
+
export * from "./deleteCurationSet.ts";
|
|
22
|
+
export * from "./retrieveCurationSetItems.ts";
|
|
23
|
+
export * from "./retrieveCurationSetItem.ts";
|
|
24
|
+
export * from "./upsertCurationSetItem.ts";
|
|
25
|
+
export * from "./deleteCurationSetItem.ts";
|
|
26
|
+
export * from "./exportDocuments.ts";
|
|
27
|
+
export * from "./importDocuments.ts";
|
|
28
|
+
export * from "./getDocument.ts";
|
|
29
|
+
export * from "./updateDocument.ts";
|
|
30
|
+
export * from "./deleteDocument.ts";
|
|
31
|
+
export * from "./retrieveAllConversationModels.ts";
|
|
32
|
+
export * from "./createConversationModel.ts";
|
|
33
|
+
export * from "./retrieveConversationModel.ts";
|
|
34
|
+
export * from "./updateConversationModel.ts";
|
|
35
|
+
export * from "./deleteConversationModel.ts";
|
|
36
|
+
export * from "./getKeys.ts";
|
|
37
|
+
export * from "./createKey.ts";
|
|
38
|
+
export * from "./getKey.ts";
|
|
39
|
+
export * from "./deleteKey.ts";
|
|
40
|
+
export * from "./getAliases.ts";
|
|
41
|
+
export * from "./getAlias.ts";
|
|
42
|
+
export * from "./upsertAlias.ts";
|
|
43
|
+
export * from "./deleteAlias.ts";
|
|
44
|
+
export * from "./debug.ts";
|
|
45
|
+
export * from "./health.ts";
|
|
46
|
+
export * from "./getSchemaChanges.ts";
|
|
47
|
+
export * from "./takeSnapshot.ts";
|
|
48
|
+
export * from "./vote.ts";
|
|
49
|
+
export * from "./clearCache.ts";
|
|
50
|
+
export * from "./compactDb.ts";
|
|
51
|
+
export * from "./toggleSlowRequestLog.ts";
|
|
52
|
+
export * from "./multiSearch.ts";
|
|
53
|
+
export * from "./getAnalyticsEvents.ts";
|
|
54
|
+
export * from "./createAnalyticsEvent.ts";
|
|
55
|
+
export * from "./flushAnalytics.ts";
|
|
56
|
+
export * from "./getAnalyticsStatus.ts";
|
|
57
|
+
export * from "./retrieveAnalyticsRules.ts";
|
|
58
|
+
export * from "./createAnalyticsRule.ts";
|
|
59
|
+
export * from "./retrieveAnalyticsRule.ts";
|
|
60
|
+
export * from "./upsertAnalyticsRule.ts";
|
|
61
|
+
export * from "./deleteAnalyticsRule.ts";
|
|
62
|
+
export * from "./retrieveMetrics.ts";
|
|
63
|
+
export * from "./retrieveAPIStats.ts";
|
|
64
|
+
export * from "./retrieveStopwordsSets.ts";
|
|
65
|
+
export * from "./retrieveStopwordsSet.ts";
|
|
66
|
+
export * from "./upsertStopwordsSet.ts";
|
|
67
|
+
export * from "./deleteStopwordsSet.ts";
|
|
68
|
+
export * from "./retrieveAllPresets.ts";
|
|
69
|
+
export * from "./retrievePreset.ts";
|
|
70
|
+
export * from "./upsertPreset.ts";
|
|
71
|
+
export * from "./deletePreset.ts";
|
|
72
|
+
export * from "./listStemmingDictionaries.ts";
|
|
73
|
+
export * from "./getStemmingDictionary.ts";
|
|
74
|
+
export * from "./importStemmingDictionary.ts";
|
|
75
|
+
export * from "./retrieveAllNLSearchModels.ts";
|
|
76
|
+
export * from "./createNLSearchModel.ts";
|
|
77
|
+
export * from "./retrieveNLSearchModel.ts";
|
|
78
|
+
export * from "./updateNLSearchModel.ts";
|
|
79
|
+
export * from "./deleteNLSearchModel.ts";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.ts";
|
|
3
|
+
import * as T from "../traits.ts";
|
|
4
|
+
import { NotFound } from "../errors.ts";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const IndexDocumentInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
collectionName: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
action: Schema.optional(Schema.String),
|
|
10
|
+
dirty_values: Schema.optional(Schema.String),
|
|
11
|
+
}).pipe(
|
|
12
|
+
T.Http({ method: "POST", path: "/collections/{collectionName}/documents" }),
|
|
13
|
+
);
|
|
14
|
+
export type IndexDocumentInput = typeof IndexDocumentInput.Type;
|
|
15
|
+
|
|
16
|
+
// Output Schema
|
|
17
|
+
export const IndexDocumentOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
18
|
+
export type IndexDocumentOutput = typeof IndexDocumentOutput.Type;
|
|
19
|
+
|
|
20
|
+
// The operation
|
|
21
|
+
/**
|
|
22
|
+
* Index a document
|
|
23
|
+
*
|
|
24
|
+
* A document to be indexed in a given collection must conform to the schema of the collection.
|
|
25
|
+
*
|
|
26
|
+
* @param collectionName - The name of the collection to add the document to
|
|
27
|
+
* @param action - Additional action to perform
|
|
28
|
+
* @param dirty_values - Dealing with Dirty Data
|
|
29
|
+
*/
|
|
30
|
+
export const indexDocument = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
31
|
+
inputSchema: IndexDocumentInput,
|
|
32
|
+
outputSchema: IndexDocumentOutput,
|
|
33
|
+
errors: [NotFound] as const,
|
|
34
|
+
}));
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.ts";
|
|
3
|
+
import * as T from "../traits.ts";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const ListStemmingDictionariesInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
8
|
+
T.Http({ method: "GET", path: "/stemming/dictionaries" }),
|
|
9
|
+
);
|
|
10
|
+
export type ListStemmingDictionariesInput =
|
|
11
|
+
typeof ListStemmingDictionariesInput.Type;
|
|
12
|
+
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const ListStemmingDictionariesOutput =
|
|
15
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
|
+
dictionaries: Schema.optional(Schema.Array(Schema.String)),
|
|
17
|
+
});
|
|
18
|
+
export type ListStemmingDictionariesOutput =
|
|
19
|
+
typeof ListStemmingDictionariesOutput.Type;
|
|
20
|
+
|
|
21
|
+
// The operation
|
|
22
|
+
/**
|
|
23
|
+
* List all stemming dictionaries
|
|
24
|
+
*
|
|
25
|
+
* Retrieve a list of all available stemming dictionaries.
|
|
26
|
+
*/
|
|
27
|
+
export const listStemmingDictionaries = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
28
|
+
() => ({
|
|
29
|
+
inputSchema: ListStemmingDictionariesInput,
|
|
30
|
+
outputSchema: ListStemmingDictionariesOutput,
|
|
31
|
+
}),
|
|
32
|
+
);
|