@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,33 @@
|
|
|
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 DeleteCurationSetInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
8
|
+
{
|
|
9
|
+
curationSetName: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
},
|
|
11
|
+
).pipe(T.Http({ method: "DELETE", path: "/curation_sets/{curationSetName}" }));
|
|
12
|
+
export type DeleteCurationSetInput = typeof DeleteCurationSetInput.Type;
|
|
13
|
+
|
|
14
|
+
// Output Schema
|
|
15
|
+
export const DeleteCurationSetOutput =
|
|
16
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
17
|
+
name: Schema.String,
|
|
18
|
+
});
|
|
19
|
+
export type DeleteCurationSetOutput = typeof DeleteCurationSetOutput.Type;
|
|
20
|
+
|
|
21
|
+
// The operation
|
|
22
|
+
/**
|
|
23
|
+
* Delete a curation set
|
|
24
|
+
*
|
|
25
|
+
* Delete a specific curation set by its name
|
|
26
|
+
*
|
|
27
|
+
* @param curationSetName - The name of the curation set to delete
|
|
28
|
+
*/
|
|
29
|
+
export const deleteCurationSet = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
30
|
+
inputSchema: DeleteCurationSetInput,
|
|
31
|
+
outputSchema: DeleteCurationSetOutput,
|
|
32
|
+
errors: [NotFound] as const,
|
|
33
|
+
}));
|
|
@@ -0,0 +1,42 @@
|
|
|
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 DeleteCurationSetItemInput =
|
|
8
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
|
+
curationSetName: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
itemId: Schema.String.pipe(T.PathParam()),
|
|
11
|
+
}).pipe(
|
|
12
|
+
T.Http({
|
|
13
|
+
method: "DELETE",
|
|
14
|
+
path: "/curation_sets/{curationSetName}/items/{itemId}",
|
|
15
|
+
}),
|
|
16
|
+
);
|
|
17
|
+
export type DeleteCurationSetItemInput = typeof DeleteCurationSetItemInput.Type;
|
|
18
|
+
|
|
19
|
+
// Output Schema
|
|
20
|
+
export const DeleteCurationSetItemOutput =
|
|
21
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
22
|
+
id: Schema.String,
|
|
23
|
+
});
|
|
24
|
+
export type DeleteCurationSetItemOutput =
|
|
25
|
+
typeof DeleteCurationSetItemOutput.Type;
|
|
26
|
+
|
|
27
|
+
// The operation
|
|
28
|
+
/**
|
|
29
|
+
* Delete a curation set item
|
|
30
|
+
*
|
|
31
|
+
* Delete a specific curation item by its id
|
|
32
|
+
*
|
|
33
|
+
* @param curationSetName - The name of the curation set
|
|
34
|
+
* @param itemId - The id of the curation item to delete
|
|
35
|
+
*/
|
|
36
|
+
export const deleteCurationSetItem = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
37
|
+
() => ({
|
|
38
|
+
inputSchema: DeleteCurationSetItemInput,
|
|
39
|
+
outputSchema: DeleteCurationSetItemOutput,
|
|
40
|
+
errors: [NotFound] as const,
|
|
41
|
+
}),
|
|
42
|
+
);
|
|
@@ -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 DeleteDocumentInput = /*@__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: "DELETE",
|
|
13
|
+
path: "/collections/{collectionName}/documents/{documentId}",
|
|
14
|
+
}),
|
|
15
|
+
);
|
|
16
|
+
export type DeleteDocumentInput = typeof DeleteDocumentInput.Type;
|
|
17
|
+
|
|
18
|
+
// Output Schema
|
|
19
|
+
export const DeleteDocumentOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
20
|
+
export type DeleteDocumentOutput = typeof DeleteDocumentOutput.Type;
|
|
21
|
+
|
|
22
|
+
// The operation
|
|
23
|
+
/**
|
|
24
|
+
* Delete a document
|
|
25
|
+
*
|
|
26
|
+
* Delete 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 deleteDocument = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
32
|
+
inputSchema: DeleteDocumentInput,
|
|
33
|
+
outputSchema: DeleteDocumentOutput,
|
|
34
|
+
errors: [NotFound] as const,
|
|
35
|
+
}));
|
|
@@ -0,0 +1,33 @@
|
|
|
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 DeleteDocumentsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
collectionName: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
deleteDocumentsParameters: Schema.optional(Schema.String),
|
|
10
|
+
}).pipe(
|
|
11
|
+
T.Http({ method: "DELETE", path: "/collections/{collectionName}/documents" }),
|
|
12
|
+
);
|
|
13
|
+
export type DeleteDocumentsInput = typeof DeleteDocumentsInput.Type;
|
|
14
|
+
|
|
15
|
+
// Output Schema
|
|
16
|
+
export const DeleteDocumentsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
17
|
+
num_deleted: Schema.Number,
|
|
18
|
+
});
|
|
19
|
+
export type DeleteDocumentsOutput = typeof DeleteDocumentsOutput.Type;
|
|
20
|
+
|
|
21
|
+
// The operation
|
|
22
|
+
/**
|
|
23
|
+
* Delete a bunch of documents
|
|
24
|
+
*
|
|
25
|
+
* Delete a bunch of documents that match a specific filter condition. Use the `batch_size` parameter to control the number of documents that should deleted at a time. A larger value will speed up deletions, but will impact performance of other operations running on the server.
|
|
26
|
+
*
|
|
27
|
+
* @param collectionName - The name of the collection to delete documents from
|
|
28
|
+
*/
|
|
29
|
+
export const deleteDocuments = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
30
|
+
inputSchema: DeleteDocumentsInput,
|
|
31
|
+
outputSchema: DeleteDocumentsOutput,
|
|
32
|
+
errors: [NotFound] as const,
|
|
33
|
+
}));
|
|
@@ -0,0 +1,28 @@
|
|
|
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 DeleteKeyInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
keyId: Schema.Number.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(T.Http({ method: "DELETE", path: "/keys/{keyId}" }));
|
|
10
|
+
export type DeleteKeyInput = typeof DeleteKeyInput.Type;
|
|
11
|
+
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const DeleteKeyOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14
|
+
id: Schema.Number,
|
|
15
|
+
});
|
|
16
|
+
export type DeleteKeyOutput = typeof DeleteKeyOutput.Type;
|
|
17
|
+
|
|
18
|
+
// The operation
|
|
19
|
+
/**
|
|
20
|
+
* Delete an API key given its ID.
|
|
21
|
+
*
|
|
22
|
+
* @param keyId - The ID of the key to delete
|
|
23
|
+
*/
|
|
24
|
+
export const deleteKey = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
25
|
+
inputSchema: DeleteKeyInput,
|
|
26
|
+
outputSchema: DeleteKeyOutput,
|
|
27
|
+
errors: [BadRequest, NotFound] as const,
|
|
28
|
+
}));
|
|
@@ -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
|
+
import { NotFound } from "../errors.ts";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const DeleteNLSearchModelInput =
|
|
8
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
|
+
modelId: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
}).pipe(T.Http({ method: "DELETE", path: "/nl_search_models/{modelId}" }));
|
|
11
|
+
export type DeleteNLSearchModelInput = typeof DeleteNLSearchModelInput.Type;
|
|
12
|
+
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const DeleteNLSearchModelOutput =
|
|
15
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
|
+
id: Schema.String,
|
|
17
|
+
});
|
|
18
|
+
export type DeleteNLSearchModelOutput = typeof DeleteNLSearchModelOutput.Type;
|
|
19
|
+
|
|
20
|
+
// The operation
|
|
21
|
+
/**
|
|
22
|
+
* Delete a NL search model
|
|
23
|
+
*
|
|
24
|
+
* Delete a specific NL search model by its ID.
|
|
25
|
+
*
|
|
26
|
+
* @param modelId - The ID of the NL search model to delete
|
|
27
|
+
*/
|
|
28
|
+
export const deleteNLSearchModel = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
29
|
+
inputSchema: DeleteNLSearchModelInput,
|
|
30
|
+
outputSchema: DeleteNLSearchModelOutput,
|
|
31
|
+
errors: [NotFound] as const,
|
|
32
|
+
}));
|
|
@@ -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
|
+
import { NotFound } from "../errors.ts";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const DeletePresetInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
presetId: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(T.Http({ method: "DELETE", path: "/presets/{presetId}" }));
|
|
10
|
+
export type DeletePresetInput = typeof DeletePresetInput.Type;
|
|
11
|
+
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const DeletePresetOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14
|
+
name: Schema.String,
|
|
15
|
+
});
|
|
16
|
+
export type DeletePresetOutput = typeof DeletePresetOutput.Type;
|
|
17
|
+
|
|
18
|
+
// The operation
|
|
19
|
+
/**
|
|
20
|
+
* Delete a preset.
|
|
21
|
+
*
|
|
22
|
+
* Permanently deletes a preset, given it's name.
|
|
23
|
+
*
|
|
24
|
+
* @param presetId - The ID of the preset to delete.
|
|
25
|
+
*/
|
|
26
|
+
export const deletePreset = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
27
|
+
inputSchema: DeletePresetInput,
|
|
28
|
+
outputSchema: DeletePresetOutput,
|
|
29
|
+
errors: [NotFound] as const,
|
|
30
|
+
}));
|
|
@@ -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
|
+
import { NotFound } from "../errors.ts";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const DeleteStopwordsSetInput =
|
|
8
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
|
+
setId: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
}).pipe(T.Http({ method: "DELETE", path: "/stopwords/{setId}" }));
|
|
11
|
+
export type DeleteStopwordsSetInput = typeof DeleteStopwordsSetInput.Type;
|
|
12
|
+
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const DeleteStopwordsSetOutput =
|
|
15
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
|
+
id: Schema.String,
|
|
17
|
+
});
|
|
18
|
+
export type DeleteStopwordsSetOutput = typeof DeleteStopwordsSetOutput.Type;
|
|
19
|
+
|
|
20
|
+
// The operation
|
|
21
|
+
/**
|
|
22
|
+
* Delete a stopwords set.
|
|
23
|
+
*
|
|
24
|
+
* Permanently deletes a stopwords set, given it's name.
|
|
25
|
+
*
|
|
26
|
+
* @param setId - The ID of the stopwords set to delete.
|
|
27
|
+
*/
|
|
28
|
+
export const deleteStopwordsSet = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
29
|
+
inputSchema: DeleteStopwordsSetInput,
|
|
30
|
+
outputSchema: DeleteStopwordsSetOutput,
|
|
31
|
+
errors: [NotFound] as const,
|
|
32
|
+
}));
|
|
@@ -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
|
+
import { NotFound } from "../errors.ts";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const DeleteSynonymSetInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
synonymSetName: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(T.Http({ method: "DELETE", path: "/synonym_sets/{synonymSetName}" }));
|
|
10
|
+
export type DeleteSynonymSetInput = typeof DeleteSynonymSetInput.Type;
|
|
11
|
+
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const DeleteSynonymSetOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
14
|
+
{
|
|
15
|
+
name: Schema.String,
|
|
16
|
+
},
|
|
17
|
+
);
|
|
18
|
+
export type DeleteSynonymSetOutput = typeof DeleteSynonymSetOutput.Type;
|
|
19
|
+
|
|
20
|
+
// The operation
|
|
21
|
+
/**
|
|
22
|
+
* Delete a synonym set
|
|
23
|
+
*
|
|
24
|
+
* Delete a specific synonym set by its name
|
|
25
|
+
*
|
|
26
|
+
* @param synonymSetName - The name of the synonym set to delete
|
|
27
|
+
*/
|
|
28
|
+
export const deleteSynonymSet = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
29
|
+
inputSchema: DeleteSynonymSetInput,
|
|
30
|
+
outputSchema: DeleteSynonymSetOutput,
|
|
31
|
+
errors: [NotFound] as const,
|
|
32
|
+
}));
|
|
@@ -0,0 +1,41 @@
|
|
|
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 DeleteSynonymSetItemInput =
|
|
8
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
|
+
synonymSetName: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
itemId: Schema.String.pipe(T.PathParam()),
|
|
11
|
+
}).pipe(
|
|
12
|
+
T.Http({
|
|
13
|
+
method: "DELETE",
|
|
14
|
+
path: "/synonym_sets/{synonymSetName}/items/{itemId}",
|
|
15
|
+
}),
|
|
16
|
+
);
|
|
17
|
+
export type DeleteSynonymSetItemInput = typeof DeleteSynonymSetItemInput.Type;
|
|
18
|
+
|
|
19
|
+
// Output Schema
|
|
20
|
+
export const DeleteSynonymSetItemOutput =
|
|
21
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
22
|
+
id: Schema.String,
|
|
23
|
+
});
|
|
24
|
+
export type DeleteSynonymSetItemOutput = typeof DeleteSynonymSetItemOutput.Type;
|
|
25
|
+
|
|
26
|
+
// The operation
|
|
27
|
+
/**
|
|
28
|
+
* Delete a synonym set item
|
|
29
|
+
*
|
|
30
|
+
* Delete a specific synonym item by its id
|
|
31
|
+
*
|
|
32
|
+
* @param synonymSetName - The name of the synonym set
|
|
33
|
+
* @param itemId - The id of the synonym item to delete
|
|
34
|
+
*/
|
|
35
|
+
export const deleteSynonymSetItem = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
36
|
+
() => ({
|
|
37
|
+
inputSchema: DeleteSynonymSetItemInput,
|
|
38
|
+
outputSchema: DeleteSynonymSetItemOutput,
|
|
39
|
+
errors: [NotFound] as const,
|
|
40
|
+
}),
|
|
41
|
+
);
|
|
@@ -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 ExportDocumentsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
collectionName: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
exportDocumentsParameters: Schema.optional(Schema.String),
|
|
10
|
+
}).pipe(
|
|
11
|
+
T.Http({
|
|
12
|
+
method: "GET",
|
|
13
|
+
path: "/collections/{collectionName}/documents/export",
|
|
14
|
+
}),
|
|
15
|
+
);
|
|
16
|
+
export type ExportDocumentsInput = typeof ExportDocumentsInput.Type;
|
|
17
|
+
|
|
18
|
+
// Output Schema
|
|
19
|
+
export const ExportDocumentsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Void;
|
|
20
|
+
export type ExportDocumentsOutput = typeof ExportDocumentsOutput.Type;
|
|
21
|
+
|
|
22
|
+
// The operation
|
|
23
|
+
/**
|
|
24
|
+
* Export all documents in a collection
|
|
25
|
+
*
|
|
26
|
+
* Export all documents in a collection in JSON lines format.
|
|
27
|
+
*
|
|
28
|
+
* @param collectionName - The name of the collection
|
|
29
|
+
*/
|
|
30
|
+
export const exportDocuments = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
31
|
+
inputSchema: ExportDocumentsInput,
|
|
32
|
+
outputSchema: ExportDocumentsOutput,
|
|
33
|
+
errors: [NotFound] as const,
|
|
34
|
+
}));
|
|
@@ -0,0 +1,26 @@
|
|
|
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 FlushAnalyticsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
7
|
+
{},
|
|
8
|
+
).pipe(T.Http({ method: "POST", path: "/analytics/flush" }));
|
|
9
|
+
export type FlushAnalyticsInput = typeof FlushAnalyticsInput.Type;
|
|
10
|
+
|
|
11
|
+
// Output Schema
|
|
12
|
+
export const FlushAnalyticsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
|
+
ok: Schema.Boolean,
|
|
14
|
+
});
|
|
15
|
+
export type FlushAnalyticsOutput = typeof FlushAnalyticsOutput.Type;
|
|
16
|
+
|
|
17
|
+
// The operation
|
|
18
|
+
/**
|
|
19
|
+
* Flush in-memory analytics to disk
|
|
20
|
+
*
|
|
21
|
+
* Triggers a flush of analytics data to persistent storage.
|
|
22
|
+
*/
|
|
23
|
+
export const flushAnalytics = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
24
|
+
inputSchema: FlushAnalyticsInput,
|
|
25
|
+
outputSchema: FlushAnalyticsOutput,
|
|
26
|
+
}));
|
|
@@ -0,0 +1,31 @@
|
|
|
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 GetAliasInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
aliasName: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(T.Http({ method: "GET", path: "/aliases/{aliasName}" }));
|
|
10
|
+
export type GetAliasInput = typeof GetAliasInput.Type;
|
|
11
|
+
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const GetAliasOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14
|
+
name: Schema.String,
|
|
15
|
+
collection_name: Schema.String,
|
|
16
|
+
});
|
|
17
|
+
export type GetAliasOutput = typeof GetAliasOutput.Type;
|
|
18
|
+
|
|
19
|
+
// The operation
|
|
20
|
+
/**
|
|
21
|
+
* Retrieve an alias
|
|
22
|
+
*
|
|
23
|
+
* Find out which collection an alias points to by fetching it
|
|
24
|
+
*
|
|
25
|
+
* @param aliasName - The name of the alias to retrieve
|
|
26
|
+
*/
|
|
27
|
+
export const getAlias = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
28
|
+
inputSchema: GetAliasInput,
|
|
29
|
+
outputSchema: GetAliasOutput,
|
|
30
|
+
errors: [NotFound] as const,
|
|
31
|
+
}));
|
|
@@ -0,0 +1,31 @@
|
|
|
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 GetAliasesInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
7
|
+
{},
|
|
8
|
+
).pipe(T.Http({ method: "GET", path: "/aliases" }));
|
|
9
|
+
export type GetAliasesInput = typeof GetAliasesInput.Type;
|
|
10
|
+
|
|
11
|
+
// Output Schema
|
|
12
|
+
export const GetAliasesOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
|
+
aliases: Schema.Array(
|
|
14
|
+
Schema.Struct({
|
|
15
|
+
name: Schema.String,
|
|
16
|
+
collection_name: Schema.String,
|
|
17
|
+
}),
|
|
18
|
+
),
|
|
19
|
+
});
|
|
20
|
+
export type GetAliasesOutput = typeof GetAliasesOutput.Type;
|
|
21
|
+
|
|
22
|
+
// The operation
|
|
23
|
+
/**
|
|
24
|
+
* List all aliases
|
|
25
|
+
*
|
|
26
|
+
* List all aliases and the corresponding collections that they map to.
|
|
27
|
+
*/
|
|
28
|
+
export const getAliases = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
29
|
+
inputSchema: GetAliasesInput,
|
|
30
|
+
outputSchema: GetAliasesOutput,
|
|
31
|
+
}));
|
|
@@ -0,0 +1,46 @@
|
|
|
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 GetAnalyticsEventsInput =
|
|
8
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
|
+
user_id: Schema.String,
|
|
10
|
+
name: Schema.String,
|
|
11
|
+
n: Schema.Number,
|
|
12
|
+
}).pipe(T.Http({ method: "GET", path: "/analytics/events" }));
|
|
13
|
+
export type GetAnalyticsEventsInput = typeof GetAnalyticsEventsInput.Type;
|
|
14
|
+
|
|
15
|
+
// Output Schema
|
|
16
|
+
export const GetAnalyticsEventsOutput =
|
|
17
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
18
|
+
events: Schema.Array(
|
|
19
|
+
Schema.Struct({
|
|
20
|
+
name: Schema.optional(Schema.String),
|
|
21
|
+
event_type: Schema.optional(Schema.String),
|
|
22
|
+
collection: Schema.optional(Schema.String),
|
|
23
|
+
timestamp: Schema.optional(Schema.Number),
|
|
24
|
+
user_id: Schema.optional(Schema.String),
|
|
25
|
+
doc_id: Schema.optional(Schema.String),
|
|
26
|
+
doc_ids: Schema.optional(Schema.Array(Schema.String)),
|
|
27
|
+
query: Schema.optional(Schema.String),
|
|
28
|
+
}),
|
|
29
|
+
),
|
|
30
|
+
});
|
|
31
|
+
export type GetAnalyticsEventsOutput = typeof GetAnalyticsEventsOutput.Type;
|
|
32
|
+
|
|
33
|
+
// The operation
|
|
34
|
+
/**
|
|
35
|
+
* Retrieve analytics events
|
|
36
|
+
*
|
|
37
|
+
* Retrieve the most recent events for a user and rule.
|
|
38
|
+
*
|
|
39
|
+
* @param name - Analytics rule name
|
|
40
|
+
* @param n - Number of events to return (max 1000)
|
|
41
|
+
*/
|
|
42
|
+
export const getAnalyticsEvents = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
43
|
+
inputSchema: GetAnalyticsEventsInput,
|
|
44
|
+
outputSchema: GetAnalyticsEventsOutput,
|
|
45
|
+
errors: [BadRequest] as const,
|
|
46
|
+
}));
|
|
@@ -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 GetAnalyticsStatusInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
8
|
+
T.Http({ method: "GET", path: "/analytics/status" }),
|
|
9
|
+
);
|
|
10
|
+
export type GetAnalyticsStatusInput = typeof GetAnalyticsStatusInput.Type;
|
|
11
|
+
|
|
12
|
+
// Output Schema
|
|
13
|
+
export const GetAnalyticsStatusOutput =
|
|
14
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
|
+
popular_prefix_queries: Schema.optional(Schema.Number),
|
|
16
|
+
nohits_prefix_queries: Schema.optional(Schema.Number),
|
|
17
|
+
log_prefix_queries: Schema.optional(Schema.Number),
|
|
18
|
+
query_log_events: Schema.optional(Schema.Number),
|
|
19
|
+
query_counter_events: Schema.optional(Schema.Number),
|
|
20
|
+
doc_log_events: Schema.optional(Schema.Number),
|
|
21
|
+
doc_counter_events: Schema.optional(Schema.Number),
|
|
22
|
+
});
|
|
23
|
+
export type GetAnalyticsStatusOutput = typeof GetAnalyticsStatusOutput.Type;
|
|
24
|
+
|
|
25
|
+
// The operation
|
|
26
|
+
/**
|
|
27
|
+
* Get analytics subsystem status
|
|
28
|
+
*
|
|
29
|
+
* Returns sizes of internal analytics buffers and queues.
|
|
30
|
+
*/
|
|
31
|
+
export const getAnalyticsStatus = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
32
|
+
inputSchema: GetAnalyticsStatusInput,
|
|
33
|
+
outputSchema: GetAnalyticsStatusOutput,
|
|
34
|
+
}));
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
import { SensitiveString } from "../sensitive.ts";
|
|
6
|
+
|
|
7
|
+
// Input Schema
|
|
8
|
+
export const GetCollectionInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
|
+
collectionName: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
}).pipe(T.Http({ method: "GET", path: "/collections/{collectionName}" }));
|
|
11
|
+
export type GetCollectionInput = typeof GetCollectionInput.Type;
|
|
12
|
+
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const GetCollectionOutput = /*@__PURE__*/ /*#__PURE__*/ 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
|
+
export type GetCollectionOutput = typeof GetCollectionOutput.Type;
|
|
71
|
+
|
|
72
|
+
// The operation
|
|
73
|
+
/**
|
|
74
|
+
* Retrieve a single collection
|
|
75
|
+
*
|
|
76
|
+
* Retrieve the details of a collection, given its name.
|
|
77
|
+
*
|
|
78
|
+
* @param collectionName - The name of the collection to retrieve
|
|
79
|
+
*/
|
|
80
|
+
export const getCollection = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
81
|
+
inputSchema: GetCollectionInput,
|
|
82
|
+
outputSchema: GetCollectionOutput,
|
|
83
|
+
errors: [NotFound] as const,
|
|
84
|
+
}));
|