@distilled.cloud/typesense 0.0.0 → 0.14.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,35 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { NotFound } from "../errors.ts";
|
|
3
|
+
export declare const GetKeyInput: Schema.Struct<{
|
|
4
|
+
readonly keyId: Schema.Number;
|
|
5
|
+
}>;
|
|
6
|
+
export type GetKeyInput = typeof GetKeyInput.Type;
|
|
7
|
+
export declare const GetKeyOutput: Schema.Struct<{
|
|
8
|
+
readonly value: Schema.optional<Schema.String>;
|
|
9
|
+
readonly description: Schema.String;
|
|
10
|
+
readonly actions: Schema.$Array<Schema.String>;
|
|
11
|
+
readonly collections: Schema.$Array<Schema.String>;
|
|
12
|
+
readonly expires_at: Schema.optional<Schema.Number>;
|
|
13
|
+
readonly id: Schema.optional<Schema.Number>;
|
|
14
|
+
readonly value_prefix: Schema.optional<Schema.String>;
|
|
15
|
+
}>;
|
|
16
|
+
export type GetKeyOutput = typeof GetKeyOutput.Type;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieve (metadata about) a key
|
|
19
|
+
*
|
|
20
|
+
* 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.
|
|
21
|
+
*
|
|
22
|
+
* @param keyId - The ID of the key to retrieve
|
|
23
|
+
*/
|
|
24
|
+
export declare const getKey: import("@distilled.cloud/core/client").OperationMethod<{
|
|
25
|
+
readonly keyId: number;
|
|
26
|
+
}, {
|
|
27
|
+
readonly actions: readonly string[];
|
|
28
|
+
readonly collections: readonly string[];
|
|
29
|
+
readonly description: string;
|
|
30
|
+
readonly expires_at?: number | undefined;
|
|
31
|
+
readonly id?: number | undefined;
|
|
32
|
+
readonly value?: string | undefined;
|
|
33
|
+
readonly value_prefix?: string | undefined;
|
|
34
|
+
}, NotFound, import("~/credentials.ts").Credentials>;
|
|
35
|
+
//# sourceMappingURL=getKey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getKey.d.ts","sourceRoot":"","sources":["../../src/operations/getKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,eAAO,MAAM,WAAW;;EAEiC,CAAC;AAC1D,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,IAAI,CAAC;AAGlD,eAAO,MAAM,YAAY;;;;;;;;EAQvB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,IAAI,CAAC;AAGpD;;;;;;GAMG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;oDAIhB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.js";
|
|
3
|
+
import * as T from "../traits.js";
|
|
4
|
+
import { NotFound } from "../errors.js";
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const GetKeyInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
keyId: Schema.Number.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({ method: "GET", path: "/keys/{keyId}" }));
|
|
9
|
+
// Output Schema
|
|
10
|
+
export const GetKeyOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
11
|
+
value: Schema.optional(Schema.String),
|
|
12
|
+
description: Schema.String,
|
|
13
|
+
actions: Schema.Array(Schema.String),
|
|
14
|
+
collections: Schema.Array(Schema.String),
|
|
15
|
+
expires_at: Schema.optional(Schema.Number),
|
|
16
|
+
id: Schema.optional(Schema.Number),
|
|
17
|
+
value_prefix: Schema.optional(Schema.String),
|
|
18
|
+
});
|
|
19
|
+
// The operation
|
|
20
|
+
/**
|
|
21
|
+
* Retrieve (metadata about) a key
|
|
22
|
+
*
|
|
23
|
+
* 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.
|
|
24
|
+
*
|
|
25
|
+
* @param keyId - The ID of the key to retrieve
|
|
26
|
+
*/
|
|
27
|
+
export const getKey = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
28
|
+
inputSchema: GetKeyInput,
|
|
29
|
+
outputSchema: GetKeyOutput,
|
|
30
|
+
errors: [NotFound],
|
|
31
|
+
}));
|
|
32
|
+
//# sourceMappingURL=getKey.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getKey.js","sourceRoot":"","sources":["../../src/operations/getKey.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,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,eAAe;AACf,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACnE,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CACzC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC,CAAC;AAG1D,gBAAgB;AAChB,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACpE,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACrC,WAAW,EAAE,MAAM,CAAC,MAAM;IAC1B,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1C,EAAE,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAClC,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CAC7C,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAChE,WAAW,EAAE,WAAW;IACxB,YAAY,EAAE,YAAY;IAC1B,MAAM,EAAE,CAAC,QAAQ,CAAU;CAC5B,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetKeysInput: Schema.Struct<{}>;
|
|
3
|
+
export type GetKeysInput = typeof GetKeysInput.Type;
|
|
4
|
+
export declare const GetKeysOutput: Schema.Struct<{
|
|
5
|
+
readonly keys: Schema.$Array<Schema.Struct<{
|
|
6
|
+
readonly value: Schema.optional<Schema.String>;
|
|
7
|
+
readonly description: Schema.String;
|
|
8
|
+
readonly actions: Schema.$Array<Schema.String>;
|
|
9
|
+
readonly collections: Schema.$Array<Schema.String>;
|
|
10
|
+
readonly expires_at: Schema.optional<Schema.Number>;
|
|
11
|
+
readonly id: Schema.optional<Schema.Number>;
|
|
12
|
+
readonly value_prefix: Schema.optional<Schema.String>;
|
|
13
|
+
}>>;
|
|
14
|
+
}>;
|
|
15
|
+
export type GetKeysOutput = typeof GetKeysOutput.Type;
|
|
16
|
+
/**
|
|
17
|
+
* Retrieve (metadata about) all keys.
|
|
18
|
+
*/
|
|
19
|
+
export declare const getKeys: import("@distilled.cloud/core/client").OperationMethod<{}, {
|
|
20
|
+
readonly keys: readonly {
|
|
21
|
+
readonly actions: readonly string[];
|
|
22
|
+
readonly collections: readonly string[];
|
|
23
|
+
readonly description: string;
|
|
24
|
+
readonly expires_at?: number | undefined;
|
|
25
|
+
readonly id?: number | undefined;
|
|
26
|
+
readonly value?: string | undefined;
|
|
27
|
+
readonly value_prefix?: string | undefined;
|
|
28
|
+
}[];
|
|
29
|
+
}, never, import("~/credentials.ts").Credentials>;
|
|
30
|
+
//# sourceMappingURL=getKeys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getKeys.d.ts","sourceRoot":"","sources":["../../src/operations/getKeys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,YAAY,mBAExB,CAAC;AACF,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,IAAI,CAAC;AAGpD,eAAO,MAAM,aAAa;;;;;;;;;;EAYxB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC,IAAI,CAAC;AAGtD;;GAEG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;iDAGjB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 GetKeysInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/keys" }));
|
|
6
|
+
// Output Schema
|
|
7
|
+
export const GetKeysOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
keys: Schema.Array(Schema.Struct({
|
|
9
|
+
value: Schema.optional(Schema.String),
|
|
10
|
+
description: Schema.String,
|
|
11
|
+
actions: Schema.Array(Schema.String),
|
|
12
|
+
collections: Schema.Array(Schema.String),
|
|
13
|
+
expires_at: Schema.optional(Schema.Number),
|
|
14
|
+
id: Schema.optional(Schema.Number),
|
|
15
|
+
value_prefix: Schema.optional(Schema.String),
|
|
16
|
+
})),
|
|
17
|
+
});
|
|
18
|
+
// The operation
|
|
19
|
+
/**
|
|
20
|
+
* Retrieve (metadata about) all keys.
|
|
21
|
+
*/
|
|
22
|
+
export const getKeys = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
23
|
+
inputSchema: GetKeysInput,
|
|
24
|
+
outputSchema: GetKeysOutput,
|
|
25
|
+
}));
|
|
26
|
+
//# sourceMappingURL=getKeys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getKeys.js","sourceRoot":"","sources":["../../src/operations/getKeys.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,YAAY,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CAC5E,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CACzC,CAAC;AAGF,gBAAgB;AAChB,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACrE,IAAI,EAAE,MAAM,CAAC,KAAK,CAChB,MAAM,CAAC,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACrC,WAAW,EAAE,MAAM,CAAC,MAAM;QAC1B,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;QACpC,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;QACxC,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC1C,EAAE,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAClC,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KAC7C,CAAC,CACH;CACF,CAAC,CAAC;AAGH,gBAAgB;AAChB;;GAEG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACjE,WAAW,EAAE,YAAY;IACzB,YAAY,EAAE,aAAa;CAC5B,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetSchemaChangesInput: Schema.Struct<{}>;
|
|
3
|
+
export type GetSchemaChangesInput = typeof GetSchemaChangesInput.Type;
|
|
4
|
+
export declare const GetSchemaChangesOutput: Schema.$Array<Schema.Struct<{
|
|
5
|
+
readonly collection: Schema.optional<Schema.String>;
|
|
6
|
+
readonly validated_docs: Schema.optional<Schema.Number>;
|
|
7
|
+
readonly altered_docs: Schema.optional<Schema.Number>;
|
|
8
|
+
}>>;
|
|
9
|
+
export type GetSchemaChangesOutput = typeof GetSchemaChangesOutput.Type;
|
|
10
|
+
/**
|
|
11
|
+
* Get the status of in-progress schema change operations
|
|
12
|
+
*
|
|
13
|
+
* Returns the status of any ongoing schema change operations. If no schema changes are in progress, returns an empty response.
|
|
14
|
+
*/
|
|
15
|
+
export declare const getSchemaChanges: import("@distilled.cloud/core/client").OperationMethod<{}, readonly {
|
|
16
|
+
readonly altered_docs?: number | undefined;
|
|
17
|
+
readonly collection?: string | undefined;
|
|
18
|
+
readonly validated_docs?: number | undefined;
|
|
19
|
+
}[], never, import("~/credentials.ts").Credentials>;
|
|
20
|
+
//# sourceMappingURL=getSchemaChanges.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSchemaChanges.d.ts","sourceRoot":"","sources":["../../src/operations/getSchemaChanges.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,qBAAqB,mBAEmC,CAAC;AACtE,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC;AAGtE,eAAO,MAAM,sBAAsB;;;;GAMlC,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,IAAI,CAAC;AAGxE;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;;;;mDAG1B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 GetSchemaChangesInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/operations/schema_changes" }));
|
|
6
|
+
// Output Schema
|
|
7
|
+
export const GetSchemaChangesOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
|
|
8
|
+
collection: Schema.optional(Schema.String),
|
|
9
|
+
validated_docs: Schema.optional(Schema.Number),
|
|
10
|
+
altered_docs: Schema.optional(Schema.Number),
|
|
11
|
+
}));
|
|
12
|
+
// The operation
|
|
13
|
+
/**
|
|
14
|
+
* Get the status of in-progress schema change operations
|
|
15
|
+
*
|
|
16
|
+
* Returns the status of any ongoing schema change operations. If no schema changes are in progress, returns an empty response.
|
|
17
|
+
*/
|
|
18
|
+
export const getSchemaChanges = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
19
|
+
inputSchema: GetSchemaChangesInput,
|
|
20
|
+
outputSchema: GetSchemaChangesOutput,
|
|
21
|
+
}));
|
|
22
|
+
//# sourceMappingURL=getSchemaChanges.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSchemaChanges.js","sourceRoot":"","sources":["../../src/operations/getSchemaChanges.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,qBAAqB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAC5E,EAAE,CACH,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,4BAA4B,EAAE,CAAC,CAAC,CAAC;AAGtE,gBAAgB;AAChB,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,KAAK,CAC5E,MAAM,CAAC,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1C,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC9C,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CAC7C,CAAC,CACH,CAAC;AAGF,gBAAgB;AAChB;;;;GAIG;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;CACrC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { NotFound } from "../errors.ts";
|
|
3
|
+
export declare const GetStemmingDictionaryInput: Schema.Struct<{
|
|
4
|
+
readonly dictionaryId: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export type GetStemmingDictionaryInput = typeof GetStemmingDictionaryInput.Type;
|
|
7
|
+
export declare const GetStemmingDictionaryOutput: Schema.Struct<{
|
|
8
|
+
readonly id: Schema.String;
|
|
9
|
+
readonly words: Schema.$Array<Schema.Struct<{
|
|
10
|
+
readonly word: Schema.String;
|
|
11
|
+
readonly root: Schema.String;
|
|
12
|
+
}>>;
|
|
13
|
+
}>;
|
|
14
|
+
export type GetStemmingDictionaryOutput = typeof GetStemmingDictionaryOutput.Type;
|
|
15
|
+
/**
|
|
16
|
+
* Retrieve a stemming dictionary
|
|
17
|
+
*
|
|
18
|
+
* Fetch details of a specific stemming dictionary.
|
|
19
|
+
*
|
|
20
|
+
* @param dictionaryId - The ID of the dictionary to retrieve
|
|
21
|
+
*/
|
|
22
|
+
export declare const getStemmingDictionary: import("@distilled.cloud/core/client").OperationMethod<{
|
|
23
|
+
readonly dictionaryId: string;
|
|
24
|
+
}, {
|
|
25
|
+
readonly id: string;
|
|
26
|
+
readonly words: readonly {
|
|
27
|
+
readonly root: string;
|
|
28
|
+
readonly word: string;
|
|
29
|
+
}[];
|
|
30
|
+
}, NotFound, import("~/credentials.ts").Credentials>;
|
|
31
|
+
//# sourceMappingURL=getStemmingDictionary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStemmingDictionary.d.ts","sourceRoot":"","sources":["../../src/operations/getStemmingDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,eAAO,MAAM,0BAA0B;;EAKpC,CAAC;AACJ,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,IAAI,CAAC;AAGhF,eAAO,MAAM,2BAA2B;;;;;;EASpC,CAAC;AACL,MAAM,MAAM,2BAA2B,GACrC,OAAO,2BAA2B,CAAC,IAAI,CAAC;AAG1C;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;oDAMjC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.js";
|
|
3
|
+
import * as T from "../traits.js";
|
|
4
|
+
import { NotFound } from "../errors.js";
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const GetStemmingDictionaryInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
dictionaryId: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(T.Http({ method: "GET", path: "/stemming/dictionaries/{dictionaryId}" }));
|
|
10
|
+
// Output Schema
|
|
11
|
+
export const GetStemmingDictionaryOutput =
|
|
12
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
|
+
id: Schema.String,
|
|
14
|
+
words: Schema.Array(Schema.Struct({
|
|
15
|
+
word: Schema.String,
|
|
16
|
+
root: Schema.String,
|
|
17
|
+
})),
|
|
18
|
+
});
|
|
19
|
+
// The operation
|
|
20
|
+
/**
|
|
21
|
+
* Retrieve a stemming dictionary
|
|
22
|
+
*
|
|
23
|
+
* Fetch details of a specific stemming dictionary.
|
|
24
|
+
*
|
|
25
|
+
* @param dictionaryId - The ID of the dictionary to retrieve
|
|
26
|
+
*/
|
|
27
|
+
export const getStemmingDictionary = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
28
|
+
inputSchema: GetStemmingDictionaryInput,
|
|
29
|
+
outputSchema: GetStemmingDictionaryOutput,
|
|
30
|
+
errors: [NotFound],
|
|
31
|
+
}));
|
|
32
|
+
//# sourceMappingURL=getStemmingDictionary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStemmingDictionary.js","sourceRoot":"","sources":["../../src/operations/getStemmingDictionary.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,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,eAAe;AACf,MAAM,CAAC,MAAM,0BAA0B;AACrC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAChD,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,uCAAuC,EAAE,CAAC,CACzE,CAAC;AAGJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,2BAA2B;AACtC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,EAAE,EAAE,MAAM,CAAC,MAAM;IACjB,KAAK,EAAE,MAAM,CAAC,KAAK,CACjB,MAAM,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,IAAI,EAAE,MAAM,CAAC,MAAM;KACpB,CAAC,CACH;CACF,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CACvE,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,0BAA0B;IACvC,YAAY,EAAE,2BAA2B;IACzC,MAAM,EAAE,CAAC,QAAQ,CAAU;CAC5B,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const HealthInput: Schema.Struct<{}>;
|
|
3
|
+
export type HealthInput = typeof HealthInput.Type;
|
|
4
|
+
export declare const HealthOutput: Schema.Struct<{
|
|
5
|
+
readonly ok: Schema.Boolean;
|
|
6
|
+
}>;
|
|
7
|
+
export type HealthOutput = typeof HealthOutput.Type;
|
|
8
|
+
/**
|
|
9
|
+
* Checks if Typesense server is ready to accept requests.
|
|
10
|
+
*/
|
|
11
|
+
export declare const health: import("@distilled.cloud/core/client").OperationMethod<{}, {
|
|
12
|
+
readonly ok: boolean;
|
|
13
|
+
}, never, import("~/credentials.ts").Credentials>;
|
|
14
|
+
//# sourceMappingURL=health.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"health.d.ts","sourceRoot":"","sources":["../../src/operations/health.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,WAAW,mBAEvB,CAAC;AACF,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,IAAI,CAAC;AAGlD,eAAO,MAAM,YAAY;;EAEvB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,IAAI,CAAC;AAGpD;;GAEG;AACH,eAAO,MAAM,MAAM;;iDAGhB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 HealthInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/health" }));
|
|
6
|
+
// Output Schema
|
|
7
|
+
export const HealthOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
ok: Schema.Boolean,
|
|
9
|
+
});
|
|
10
|
+
// The operation
|
|
11
|
+
/**
|
|
12
|
+
* Checks if Typesense server is ready to accept requests.
|
|
13
|
+
*/
|
|
14
|
+
export const health = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
15
|
+
inputSchema: HealthInput,
|
|
16
|
+
outputSchema: HealthOutput,
|
|
17
|
+
}));
|
|
18
|
+
//# sourceMappingURL=health.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"health.js","sourceRoot":"","sources":["../../src/operations/health.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,WAAW,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CAC3E,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAC3C,CAAC;AAGF,gBAAgB;AAChB,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACpE,EAAE,EAAE,MAAM,CAAC,OAAO;CACnB,CAAC,CAAC;AAGH,gBAAgB;AAChB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAChE,WAAW,EAAE,WAAW;IACxB,YAAY,EAAE,YAAY;CAC3B,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { BadRequest, NotFound } from "../errors.ts";
|
|
3
|
+
export declare const ImportDocumentsInput: Schema.Struct<{
|
|
4
|
+
readonly collectionName: Schema.String;
|
|
5
|
+
readonly importDocumentsParameters: Schema.optional<Schema.String>;
|
|
6
|
+
}>;
|
|
7
|
+
export type ImportDocumentsInput = typeof ImportDocumentsInput.Type;
|
|
8
|
+
export declare const ImportDocumentsOutput: Schema.Void;
|
|
9
|
+
export type ImportDocumentsOutput = typeof ImportDocumentsOutput.Type;
|
|
10
|
+
/**
|
|
11
|
+
* Import documents into a collection
|
|
12
|
+
*
|
|
13
|
+
* 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.
|
|
14
|
+
*
|
|
15
|
+
* @param collectionName - The name of the collection
|
|
16
|
+
*/
|
|
17
|
+
export declare const importDocuments: import("@distilled.cloud/core/client").OperationMethod<{
|
|
18
|
+
readonly collectionName: string;
|
|
19
|
+
readonly importDocumentsParameters?: string | undefined;
|
|
20
|
+
}, void, BadRequest | NotFound, import("~/credentials.ts").Credentials>;
|
|
21
|
+
//# sourceMappingURL=importDocuments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"importDocuments.d.ts","sourceRoot":"","sources":["../../src/operations/importDocuments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGpD,eAAO,MAAM,oBAAoB;;;EAQhC,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAC;AAGpE,eAAO,MAAM,qBAAqB,aAA0C,CAAC;AAC7E,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC;AAGtE;;;;;;GAMG;AACH,eAAO,MAAM,eAAe;;;uEAIzB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 ImportDocumentsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
collectionName: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
importDocumentsParameters: Schema.optional(Schema.String),
|
|
9
|
+
}).pipe(T.Http({
|
|
10
|
+
method: "POST",
|
|
11
|
+
path: "/collections/{collectionName}/documents/import",
|
|
12
|
+
}));
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const ImportDocumentsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Void;
|
|
15
|
+
// The operation
|
|
16
|
+
/**
|
|
17
|
+
* Import documents into a collection
|
|
18
|
+
*
|
|
19
|
+
* 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.
|
|
20
|
+
*
|
|
21
|
+
* @param collectionName - The name of the collection
|
|
22
|
+
*/
|
|
23
|
+
export const importDocuments = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
24
|
+
inputSchema: ImportDocumentsInput,
|
|
25
|
+
outputSchema: ImportDocumentsOutput,
|
|
26
|
+
errors: [BadRequest, NotFound],
|
|
27
|
+
}));
|
|
28
|
+
//# sourceMappingURL=importDocuments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"importDocuments.js","sourceRoot":"","sources":["../../src/operations/importDocuments.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,oBAAoB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC5E,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACjD,yBAAyB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CAC1D,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,gDAAgD;CACvD,CAAC,CACH,CAAC;AAGF,gBAAgB;AAChB,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC;AAG7E,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACzE,WAAW,EAAE,oBAAoB;IACjC,YAAY,EAAE,qBAAqB;IACnC,MAAM,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAU;CACxC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { BadRequest } from "../errors.ts";
|
|
3
|
+
export declare const ImportStemmingDictionaryInput: Schema.Struct<{
|
|
4
|
+
readonly id: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export type ImportStemmingDictionaryInput = typeof ImportStemmingDictionaryInput.Type;
|
|
7
|
+
export declare const ImportStemmingDictionaryOutput: Schema.Void;
|
|
8
|
+
export type ImportStemmingDictionaryOutput = typeof ImportStemmingDictionaryOutput.Type;
|
|
9
|
+
/**
|
|
10
|
+
* Import a stemming dictionary
|
|
11
|
+
*
|
|
12
|
+
* Upload a JSONL file containing word mappings to create or update a stemming dictionary.
|
|
13
|
+
*
|
|
14
|
+
* @param id - The ID to assign to the dictionary
|
|
15
|
+
*/
|
|
16
|
+
export declare const importStemmingDictionary: import("@distilled.cloud/core/client").OperationMethod<{
|
|
17
|
+
readonly id: string;
|
|
18
|
+
}, void, BadRequest, import("~/credentials.ts").Credentials>;
|
|
19
|
+
//# sourceMappingURL=importStemmingDictionary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"importStemmingDictionary.d.ts","sourceRoot":"","sources":["../../src/operations/importStemmingDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,eAAO,MAAM,6BAA6B;;EAGkC,CAAC;AAC7E,MAAM,MAAM,6BAA6B,GACvC,OAAO,6BAA6B,CAAC,IAAI,CAAC;AAG5C,eAAO,MAAM,8BAA8B,aACF,CAAC;AAC1C,MAAM,MAAM,8BAA8B,GACxC,OAAO,8BAA8B,CAAC,IAAI,CAAC;AAG7C;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB;;4DAMpC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.js";
|
|
3
|
+
import * as T from "../traits.js";
|
|
4
|
+
import { BadRequest } from "../errors.js";
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const ImportStemmingDictionaryInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
id: Schema.String,
|
|
9
|
+
}).pipe(T.Http({ method: "POST", path: "/stemming/dictionaries/import" }));
|
|
10
|
+
// Output Schema
|
|
11
|
+
export const ImportStemmingDictionaryOutput =
|
|
12
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Void;
|
|
13
|
+
// The operation
|
|
14
|
+
/**
|
|
15
|
+
* Import a stemming dictionary
|
|
16
|
+
*
|
|
17
|
+
* Upload a JSONL file containing word mappings to create or update a stemming dictionary.
|
|
18
|
+
*
|
|
19
|
+
* @param id - The ID to assign to the dictionary
|
|
20
|
+
*/
|
|
21
|
+
export const importStemmingDictionary = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
22
|
+
inputSchema: ImportStemmingDictionaryInput,
|
|
23
|
+
outputSchema: ImportStemmingDictionaryOutput,
|
|
24
|
+
errors: [BadRequest],
|
|
25
|
+
}));
|
|
26
|
+
//# sourceMappingURL=importStemmingDictionary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"importStemmingDictionary.js","sourceRoot":"","sources":["../../src/operations/importStemmingDictionary.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,MAAM,cAAc,CAAC;AAE1C,eAAe;AACf,MAAM,CAAC,MAAM,6BAA6B;AACxC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,EAAE,EAAE,MAAM,CAAC,MAAM;CAClB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,+BAA+B,EAAE,CAAC,CAAC,CAAC;AAI7E,gBAAgB;AAChB,MAAM,CAAC,MAAM,8BAA8B;AACzC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC;AAI1C,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAC1E,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,6BAA6B;IAC1C,YAAY,EAAE,8BAA8B;IAC5C,MAAM,EAAE,CAAC,UAAU,CAAU;CAC9B,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
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";
|
|
80
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/operations/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
export * from "./getCollections.js";
|
|
2
|
+
export * from "./createCollection.js";
|
|
3
|
+
export * from "./getCollection.js";
|
|
4
|
+
export * from "./updateCollection.js";
|
|
5
|
+
export * from "./deleteCollection.js";
|
|
6
|
+
export * from "./indexDocument.js";
|
|
7
|
+
export * from "./updateDocuments.js";
|
|
8
|
+
export * from "./deleteDocuments.js";
|
|
9
|
+
export * from "./searchCollection.js";
|
|
10
|
+
export * from "./retrieveSynonymSets.js";
|
|
11
|
+
export * from "./retrieveSynonymSet.js";
|
|
12
|
+
export * from "./upsertSynonymSet.js";
|
|
13
|
+
export * from "./deleteSynonymSet.js";
|
|
14
|
+
export * from "./retrieveSynonymSetItems.js";
|
|
15
|
+
export * from "./retrieveSynonymSetItem.js";
|
|
16
|
+
export * from "./upsertSynonymSetItem.js";
|
|
17
|
+
export * from "./deleteSynonymSetItem.js";
|
|
18
|
+
export * from "./retrieveCurationSets.js";
|
|
19
|
+
export * from "./retrieveCurationSet.js";
|
|
20
|
+
export * from "./upsertCurationSet.js";
|
|
21
|
+
export * from "./deleteCurationSet.js";
|
|
22
|
+
export * from "./retrieveCurationSetItems.js";
|
|
23
|
+
export * from "./retrieveCurationSetItem.js";
|
|
24
|
+
export * from "./upsertCurationSetItem.js";
|
|
25
|
+
export * from "./deleteCurationSetItem.js";
|
|
26
|
+
export * from "./exportDocuments.js";
|
|
27
|
+
export * from "./importDocuments.js";
|
|
28
|
+
export * from "./getDocument.js";
|
|
29
|
+
export * from "./updateDocument.js";
|
|
30
|
+
export * from "./deleteDocument.js";
|
|
31
|
+
export * from "./retrieveAllConversationModels.js";
|
|
32
|
+
export * from "./createConversationModel.js";
|
|
33
|
+
export * from "./retrieveConversationModel.js";
|
|
34
|
+
export * from "./updateConversationModel.js";
|
|
35
|
+
export * from "./deleteConversationModel.js";
|
|
36
|
+
export * from "./getKeys.js";
|
|
37
|
+
export * from "./createKey.js";
|
|
38
|
+
export * from "./getKey.js";
|
|
39
|
+
export * from "./deleteKey.js";
|
|
40
|
+
export * from "./getAliases.js";
|
|
41
|
+
export * from "./getAlias.js";
|
|
42
|
+
export * from "./upsertAlias.js";
|
|
43
|
+
export * from "./deleteAlias.js";
|
|
44
|
+
export * from "./debug.js";
|
|
45
|
+
export * from "./health.js";
|
|
46
|
+
export * from "./getSchemaChanges.js";
|
|
47
|
+
export * from "./takeSnapshot.js";
|
|
48
|
+
export * from "./vote.js";
|
|
49
|
+
export * from "./clearCache.js";
|
|
50
|
+
export * from "./compactDb.js";
|
|
51
|
+
export * from "./toggleSlowRequestLog.js";
|
|
52
|
+
export * from "./multiSearch.js";
|
|
53
|
+
export * from "./getAnalyticsEvents.js";
|
|
54
|
+
export * from "./createAnalyticsEvent.js";
|
|
55
|
+
export * from "./flushAnalytics.js";
|
|
56
|
+
export * from "./getAnalyticsStatus.js";
|
|
57
|
+
export * from "./retrieveAnalyticsRules.js";
|
|
58
|
+
export * from "./createAnalyticsRule.js";
|
|
59
|
+
export * from "./retrieveAnalyticsRule.js";
|
|
60
|
+
export * from "./upsertAnalyticsRule.js";
|
|
61
|
+
export * from "./deleteAnalyticsRule.js";
|
|
62
|
+
export * from "./retrieveMetrics.js";
|
|
63
|
+
export * from "./retrieveAPIStats.js";
|
|
64
|
+
export * from "./retrieveStopwordsSets.js";
|
|
65
|
+
export * from "./retrieveStopwordsSet.js";
|
|
66
|
+
export * from "./upsertStopwordsSet.js";
|
|
67
|
+
export * from "./deleteStopwordsSet.js";
|
|
68
|
+
export * from "./retrieveAllPresets.js";
|
|
69
|
+
export * from "./retrievePreset.js";
|
|
70
|
+
export * from "./upsertPreset.js";
|
|
71
|
+
export * from "./deletePreset.js";
|
|
72
|
+
export * from "./listStemmingDictionaries.js";
|
|
73
|
+
export * from "./getStemmingDictionary.js";
|
|
74
|
+
export * from "./importStemmingDictionary.js";
|
|
75
|
+
export * from "./retrieveAllNLSearchModels.js";
|
|
76
|
+
export * from "./createNLSearchModel.js";
|
|
77
|
+
export * from "./retrieveNLSearchModel.js";
|
|
78
|
+
export * from "./updateNLSearchModel.js";
|
|
79
|
+
export * from "./deleteNLSearchModel.js";
|
|
80
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/operations/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { NotFound } from "../errors.ts";
|
|
3
|
+
export declare const IndexDocumentInput: Schema.Struct<{
|
|
4
|
+
readonly collectionName: Schema.String;
|
|
5
|
+
readonly action: Schema.optional<Schema.String>;
|
|
6
|
+
readonly dirty_values: Schema.optional<Schema.String>;
|
|
7
|
+
}>;
|
|
8
|
+
export type IndexDocumentInput = typeof IndexDocumentInput.Type;
|
|
9
|
+
export declare const IndexDocumentOutput: Schema.Unknown;
|
|
10
|
+
export type IndexDocumentOutput = typeof IndexDocumentOutput.Type;
|
|
11
|
+
/**
|
|
12
|
+
* Index a document
|
|
13
|
+
*
|
|
14
|
+
* A document to be indexed in a given collection must conform to the schema of the collection.
|
|
15
|
+
*
|
|
16
|
+
* @param collectionName - The name of the collection to add the document to
|
|
17
|
+
* @param action - Additional action to perform
|
|
18
|
+
* @param dirty_values - Dealing with Dirty Data
|
|
19
|
+
*/
|
|
20
|
+
export declare const indexDocument: import("@distilled.cloud/core/client").OperationMethod<{
|
|
21
|
+
readonly action?: string | undefined;
|
|
22
|
+
readonly collectionName: string;
|
|
23
|
+
readonly dirty_values?: string | undefined;
|
|
24
|
+
}, unknown, NotFound, import("~/credentials.ts").Credentials>;
|
|
25
|
+
//# sourceMappingURL=indexDocument.d.ts.map
|