@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,21 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { BadRequest, NotFound } from "../errors.ts";
|
|
3
|
+
export declare const DeleteKeyInput: Schema.Struct<{
|
|
4
|
+
readonly keyId: Schema.Number;
|
|
5
|
+
}>;
|
|
6
|
+
export type DeleteKeyInput = typeof DeleteKeyInput.Type;
|
|
7
|
+
export declare const DeleteKeyOutput: Schema.Struct<{
|
|
8
|
+
readonly id: Schema.Number;
|
|
9
|
+
}>;
|
|
10
|
+
export type DeleteKeyOutput = typeof DeleteKeyOutput.Type;
|
|
11
|
+
/**
|
|
12
|
+
* Delete an API key given its ID.
|
|
13
|
+
*
|
|
14
|
+
* @param keyId - The ID of the key to delete
|
|
15
|
+
*/
|
|
16
|
+
export declare const deleteKey: import("@distilled.cloud/core/client").OperationMethod<{
|
|
17
|
+
readonly keyId: number;
|
|
18
|
+
}, {
|
|
19
|
+
readonly id: number;
|
|
20
|
+
}, BadRequest | NotFound, import("~/credentials.ts").Credentials>;
|
|
21
|
+
//# sourceMappingURL=deleteKey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteKey.d.ts","sourceRoot":"","sources":["../../src/operations/deleteKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGpD,eAAO,MAAM,cAAc;;EAEiC,CAAC;AAC7D,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,IAAI,CAAC;AAGxD,eAAO,MAAM,eAAe;;EAE1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,IAAI,CAAC;AAG1D;;;;GAIG;AACH,eAAO,MAAM,SAAS;;;;iEAInB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.js";
|
|
3
|
+
import * as T from "../traits.js";
|
|
4
|
+
import { BadRequest, NotFound } from "../errors.js";
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const DeleteKeyInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
keyId: Schema.Number.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({ method: "DELETE", path: "/keys/{keyId}" }));
|
|
9
|
+
// Output Schema
|
|
10
|
+
export const DeleteKeyOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
11
|
+
id: Schema.Number,
|
|
12
|
+
});
|
|
13
|
+
// The operation
|
|
14
|
+
/**
|
|
15
|
+
* Delete an API key given its ID.
|
|
16
|
+
*
|
|
17
|
+
* @param keyId - The ID of the key to delete
|
|
18
|
+
*/
|
|
19
|
+
export const deleteKey = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
20
|
+
inputSchema: DeleteKeyInput,
|
|
21
|
+
outputSchema: DeleteKeyOutput,
|
|
22
|
+
errors: [BadRequest, NotFound],
|
|
23
|
+
}));
|
|
24
|
+
//# sourceMappingURL=deleteKey.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteKey.js","sourceRoot":"","sources":["../../src/operations/deleteKey.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,cAAc,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACtE,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,QAAQ,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC,CAAC;AAG7D,gBAAgB;AAChB,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACvE,EAAE,EAAE,MAAM,CAAC,MAAM;CAClB,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACnE,WAAW,EAAE,cAAc;IAC3B,YAAY,EAAE,eAAe;IAC7B,MAAM,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAU;CACxC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { NotFound } from "../errors.ts";
|
|
3
|
+
export declare const DeleteNLSearchModelInput: Schema.Struct<{
|
|
4
|
+
readonly modelId: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export type DeleteNLSearchModelInput = typeof DeleteNLSearchModelInput.Type;
|
|
7
|
+
export declare const DeleteNLSearchModelOutput: Schema.Struct<{
|
|
8
|
+
readonly id: Schema.String;
|
|
9
|
+
}>;
|
|
10
|
+
export type DeleteNLSearchModelOutput = typeof DeleteNLSearchModelOutput.Type;
|
|
11
|
+
/**
|
|
12
|
+
* Delete a NL search model
|
|
13
|
+
*
|
|
14
|
+
* Delete a specific NL search model by its ID.
|
|
15
|
+
*
|
|
16
|
+
* @param modelId - The ID of the NL search model to delete
|
|
17
|
+
*/
|
|
18
|
+
export declare const deleteNLSearchModel: import("@distilled.cloud/core/client").OperationMethod<{
|
|
19
|
+
readonly modelId: string;
|
|
20
|
+
}, {
|
|
21
|
+
readonly id: string;
|
|
22
|
+
}, NotFound, import("~/credentials.ts").Credentials>;
|
|
23
|
+
//# sourceMappingURL=deleteNLSearchModel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteNLSearchModel.d.ts","sourceRoot":"","sources":["../../src/operations/deleteNLSearchModel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,eAAO,MAAM,wBAAwB;;EAGuC,CAAC;AAC7E,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,IAAI,CAAC;AAG5E,eAAO,MAAM,yBAAyB;;EAGlC,CAAC;AACL,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,IAAI,CAAC;AAG9E;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;;;oDAI7B,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 { NotFound } from "../errors.js";
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const DeleteNLSearchModelInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
modelId: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(T.Http({ method: "DELETE", path: "/nl_search_models/{modelId}" }));
|
|
10
|
+
// Output Schema
|
|
11
|
+
export const DeleteNLSearchModelOutput =
|
|
12
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
|
+
id: Schema.String,
|
|
14
|
+
});
|
|
15
|
+
// The operation
|
|
16
|
+
/**
|
|
17
|
+
* Delete a NL search model
|
|
18
|
+
*
|
|
19
|
+
* Delete a specific NL search model by its ID.
|
|
20
|
+
*
|
|
21
|
+
* @param modelId - The ID of the NL search model to delete
|
|
22
|
+
*/
|
|
23
|
+
export const deleteNLSearchModel = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
24
|
+
inputSchema: DeleteNLSearchModelInput,
|
|
25
|
+
outputSchema: DeleteNLSearchModelOutput,
|
|
26
|
+
errors: [NotFound],
|
|
27
|
+
}));
|
|
28
|
+
//# sourceMappingURL=deleteNLSearchModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteNLSearchModel.js","sourceRoot":"","sources":["../../src/operations/deleteNLSearchModel.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,wBAAwB;AACnC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAC3C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,6BAA6B,EAAE,CAAC,CAAC,CAAC;AAG7E,gBAAgB;AAChB,MAAM,CAAC,MAAM,yBAAyB;AACpC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,EAAE,EAAE,MAAM,CAAC,MAAM;CAClB,CAAC,CAAC;AAGL,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC7E,WAAW,EAAE,wBAAwB;IACrC,YAAY,EAAE,yBAAyB;IACvC,MAAM,EAAE,CAAC,QAAQ,CAAU;CAC5B,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { NotFound } from "../errors.ts";
|
|
3
|
+
export declare const DeletePresetInput: Schema.Struct<{
|
|
4
|
+
readonly presetId: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export type DeletePresetInput = typeof DeletePresetInput.Type;
|
|
7
|
+
export declare const DeletePresetOutput: Schema.Struct<{
|
|
8
|
+
readonly name: Schema.String;
|
|
9
|
+
}>;
|
|
10
|
+
export type DeletePresetOutput = typeof DeletePresetOutput.Type;
|
|
11
|
+
/**
|
|
12
|
+
* Delete a preset.
|
|
13
|
+
*
|
|
14
|
+
* Permanently deletes a preset, given it's name.
|
|
15
|
+
*
|
|
16
|
+
* @param presetId - The ID of the preset to delete.
|
|
17
|
+
*/
|
|
18
|
+
export declare const deletePreset: import("@distilled.cloud/core/client").OperationMethod<{
|
|
19
|
+
readonly presetId: string;
|
|
20
|
+
}, {
|
|
21
|
+
readonly name: string;
|
|
22
|
+
}, NotFound, import("~/credentials.ts").Credentials>;
|
|
23
|
+
//# sourceMappingURL=deletePreset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deletePreset.d.ts","sourceRoot":"","sources":["../../src/operations/deletePreset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,eAAO,MAAM,iBAAiB;;EAEoC,CAAC;AACnE,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAC;AAG9D,eAAO,MAAM,kBAAkB;;EAE7B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAC;AAGhE;;;;;;GAMG;AACH,eAAO,MAAM,YAAY;;;;oDAItB,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 { NotFound } from "../errors.js";
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const DeletePresetInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
presetId: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({ method: "DELETE", path: "/presets/{presetId}" }));
|
|
9
|
+
// Output Schema
|
|
10
|
+
export const DeletePresetOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
11
|
+
name: Schema.String,
|
|
12
|
+
});
|
|
13
|
+
// The operation
|
|
14
|
+
/**
|
|
15
|
+
* Delete a preset.
|
|
16
|
+
*
|
|
17
|
+
* Permanently deletes a preset, given it's name.
|
|
18
|
+
*
|
|
19
|
+
* @param presetId - The ID of the preset to delete.
|
|
20
|
+
*/
|
|
21
|
+
export const deletePreset = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
22
|
+
inputSchema: DeletePresetInput,
|
|
23
|
+
outputSchema: DeletePresetOutput,
|
|
24
|
+
errors: [NotFound],
|
|
25
|
+
}));
|
|
26
|
+
//# sourceMappingURL=deletePreset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deletePreset.js","sourceRoot":"","sources":["../../src/operations/deletePreset.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,iBAAiB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACzE,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAC5C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC,CAAC,CAAC;AAGnE,gBAAgB;AAChB,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1E,IAAI,EAAE,MAAM,CAAC,MAAM;CACpB,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACtE,WAAW,EAAE,iBAAiB;IAC9B,YAAY,EAAE,kBAAkB;IAChC,MAAM,EAAE,CAAC,QAAQ,CAAU;CAC5B,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { NotFound } from "../errors.ts";
|
|
3
|
+
export declare const DeleteStopwordsSetInput: Schema.Struct<{
|
|
4
|
+
readonly setId: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export type DeleteStopwordsSetInput = typeof DeleteStopwordsSetInput.Type;
|
|
7
|
+
export declare const DeleteStopwordsSetOutput: Schema.Struct<{
|
|
8
|
+
readonly id: Schema.String;
|
|
9
|
+
}>;
|
|
10
|
+
export type DeleteStopwordsSetOutput = typeof DeleteStopwordsSetOutput.Type;
|
|
11
|
+
/**
|
|
12
|
+
* Delete a stopwords set.
|
|
13
|
+
*
|
|
14
|
+
* Permanently deletes a stopwords set, given it's name.
|
|
15
|
+
*
|
|
16
|
+
* @param setId - The ID of the stopwords set to delete.
|
|
17
|
+
*/
|
|
18
|
+
export declare const deleteStopwordsSet: import("@distilled.cloud/core/client").OperationMethod<{
|
|
19
|
+
readonly setId: string;
|
|
20
|
+
}, {
|
|
21
|
+
readonly id: string;
|
|
22
|
+
}, NotFound, import("~/credentials.ts").Credentials>;
|
|
23
|
+
//# sourceMappingURL=deleteStopwordsSet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteStopwordsSet.d.ts","sourceRoot":"","sources":["../../src/operations/deleteStopwordsSet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,eAAO,MAAM,uBAAuB;;EAG+B,CAAC;AACpE,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,IAAI,CAAC;AAG1E,eAAO,MAAM,wBAAwB;;EAGjC,CAAC;AACL,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,IAAI,CAAC;AAG5E;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;;;;oDAI5B,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 { NotFound } from "../errors.js";
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const DeleteStopwordsSetInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
setId: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(T.Http({ method: "DELETE", path: "/stopwords/{setId}" }));
|
|
10
|
+
// Output Schema
|
|
11
|
+
export const DeleteStopwordsSetOutput =
|
|
12
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
|
+
id: Schema.String,
|
|
14
|
+
});
|
|
15
|
+
// The operation
|
|
16
|
+
/**
|
|
17
|
+
* Delete a stopwords set.
|
|
18
|
+
*
|
|
19
|
+
* Permanently deletes a stopwords set, given it's name.
|
|
20
|
+
*
|
|
21
|
+
* @param setId - The ID of the stopwords set to delete.
|
|
22
|
+
*/
|
|
23
|
+
export const deleteStopwordsSet = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
24
|
+
inputSchema: DeleteStopwordsSetInput,
|
|
25
|
+
outputSchema: DeleteStopwordsSetOutput,
|
|
26
|
+
errors: [NotFound],
|
|
27
|
+
}));
|
|
28
|
+
//# sourceMappingURL=deleteStopwordsSet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteStopwordsSet.js","sourceRoot":"","sources":["../../src/operations/deleteStopwordsSet.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,uBAAuB;AAClC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,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,QAAQ,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC,CAAC,CAAC;AAGpE,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB;AACnC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,EAAE,EAAE,MAAM,CAAC,MAAM;CAClB,CAAC,CAAC;AAGL,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC5E,WAAW,EAAE,uBAAuB;IACpC,YAAY,EAAE,wBAAwB;IACtC,MAAM,EAAE,CAAC,QAAQ,CAAU;CAC5B,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { NotFound } from "../errors.ts";
|
|
3
|
+
export declare const DeleteSynonymSetInput: Schema.Struct<{
|
|
4
|
+
readonly synonymSetName: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export type DeleteSynonymSetInput = typeof DeleteSynonymSetInput.Type;
|
|
7
|
+
export declare const DeleteSynonymSetOutput: Schema.Struct<{
|
|
8
|
+
readonly name: Schema.String;
|
|
9
|
+
}>;
|
|
10
|
+
export type DeleteSynonymSetOutput = typeof DeleteSynonymSetOutput.Type;
|
|
11
|
+
/**
|
|
12
|
+
* Delete a synonym set
|
|
13
|
+
*
|
|
14
|
+
* Delete a specific synonym set by its name
|
|
15
|
+
*
|
|
16
|
+
* @param synonymSetName - The name of the synonym set to delete
|
|
17
|
+
*/
|
|
18
|
+
export declare const deleteSynonymSet: import("@distilled.cloud/core/client").OperationMethod<{
|
|
19
|
+
readonly synonymSetName: string;
|
|
20
|
+
}, {
|
|
21
|
+
readonly name: string;
|
|
22
|
+
}, NotFound, import("~/credentials.ts").Credentials>;
|
|
23
|
+
//# sourceMappingURL=deleteSynonymSet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteSynonymSet.d.ts","sourceRoot":"","sources":["../../src/operations/deleteSynonymSet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,eAAO,MAAM,qBAAqB;;EAE2C,CAAC;AAC9E,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC;AAGtE,eAAO,MAAM,sBAAsB;;EAIlC,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,IAAI,CAAC;AAGxE;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;;;;oDAI1B,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 { NotFound } from "../errors.js";
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const DeleteSynonymSetInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
synonymSetName: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({ method: "DELETE", path: "/synonym_sets/{synonymSetName}" }));
|
|
9
|
+
// Output Schema
|
|
10
|
+
export const DeleteSynonymSetOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
11
|
+
name: Schema.String,
|
|
12
|
+
});
|
|
13
|
+
// The operation
|
|
14
|
+
/**
|
|
15
|
+
* Delete a synonym set
|
|
16
|
+
*
|
|
17
|
+
* Delete a specific synonym set by its name
|
|
18
|
+
*
|
|
19
|
+
* @param synonymSetName - The name of the synonym set to delete
|
|
20
|
+
*/
|
|
21
|
+
export const deleteSynonymSet = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
22
|
+
inputSchema: DeleteSynonymSetInput,
|
|
23
|
+
outputSchema: DeleteSynonymSetOutput,
|
|
24
|
+
errors: [NotFound],
|
|
25
|
+
}));
|
|
26
|
+
//# sourceMappingURL=deleteSynonymSet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteSynonymSet.js","sourceRoot":"","sources":["../../src/operations/deleteSynonymSet.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,qBAAqB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC7E,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAClD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,gCAAgC,EAAE,CAAC,CAAC,CAAC;AAG9E,gBAAgB;AAChB,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAC7E;IACE,IAAI,EAAE,MAAM,CAAC,MAAM;CACpB,CACF,CAAC;AAGF,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1E,WAAW,EAAE,qBAAqB;IAClC,YAAY,EAAE,sBAAsB;IACpC,MAAM,EAAE,CAAC,QAAQ,CAAU;CAC5B,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { NotFound } from "../errors.ts";
|
|
3
|
+
export declare const DeleteSynonymSetItemInput: Schema.Struct<{
|
|
4
|
+
readonly synonymSetName: Schema.String;
|
|
5
|
+
readonly itemId: Schema.String;
|
|
6
|
+
}>;
|
|
7
|
+
export type DeleteSynonymSetItemInput = typeof DeleteSynonymSetItemInput.Type;
|
|
8
|
+
export declare const DeleteSynonymSetItemOutput: Schema.Struct<{
|
|
9
|
+
readonly id: Schema.String;
|
|
10
|
+
}>;
|
|
11
|
+
export type DeleteSynonymSetItemOutput = typeof DeleteSynonymSetItemOutput.Type;
|
|
12
|
+
/**
|
|
13
|
+
* Delete a synonym set item
|
|
14
|
+
*
|
|
15
|
+
* Delete a specific synonym item by its id
|
|
16
|
+
*
|
|
17
|
+
* @param synonymSetName - The name of the synonym set
|
|
18
|
+
* @param itemId - The id of the synonym item to delete
|
|
19
|
+
*/
|
|
20
|
+
export declare const deleteSynonymSetItem: import("@distilled.cloud/core/client").OperationMethod<{
|
|
21
|
+
readonly itemId: string;
|
|
22
|
+
readonly synonymSetName: string;
|
|
23
|
+
}, {
|
|
24
|
+
readonly id: string;
|
|
25
|
+
}, NotFound, import("~/credentials.ts").Credentials>;
|
|
26
|
+
//# sourceMappingURL=deleteSynonymSetItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteSynonymSetItem.d.ts","sourceRoot":"","sources":["../../src/operations/deleteSynonymSetItem.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,eAAO,MAAM,yBAAyB;;;EASnC,CAAC;AACJ,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,IAAI,CAAC;AAG9E,eAAO,MAAM,0BAA0B;;EAGnC,CAAC;AACL,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,IAAI,CAAC;AAGhF;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB;;;;;oDAMhC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 DeleteSynonymSetItemInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
synonymSetName: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
itemId: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
}).pipe(T.Http({
|
|
11
|
+
method: "DELETE",
|
|
12
|
+
path: "/synonym_sets/{synonymSetName}/items/{itemId}",
|
|
13
|
+
}));
|
|
14
|
+
// Output Schema
|
|
15
|
+
export const DeleteSynonymSetItemOutput =
|
|
16
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
17
|
+
id: Schema.String,
|
|
18
|
+
});
|
|
19
|
+
// The operation
|
|
20
|
+
/**
|
|
21
|
+
* Delete a synonym set item
|
|
22
|
+
*
|
|
23
|
+
* Delete a specific synonym item by its id
|
|
24
|
+
*
|
|
25
|
+
* @param synonymSetName - The name of the synonym set
|
|
26
|
+
* @param itemId - The id of the synonym item to delete
|
|
27
|
+
*/
|
|
28
|
+
export const deleteSynonymSetItem = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
29
|
+
inputSchema: DeleteSynonymSetItemInput,
|
|
30
|
+
outputSchema: DeleteSynonymSetItemOutput,
|
|
31
|
+
errors: [NotFound],
|
|
32
|
+
}));
|
|
33
|
+
//# sourceMappingURL=deleteSynonymSetItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteSynonymSetItem.js","sourceRoot":"","sources":["../../src/operations/deleteSynonymSetItem.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,yBAAyB;AACpC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACjD,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAC1C,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,+CAA+C;CACtD,CAAC,CACH,CAAC;AAGJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,0BAA0B;AACrC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,EAAE,EAAE,MAAM,CAAC,MAAM;CAClB,CAAC,CAAC;AAGL,gBAAgB;AAChB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CACtE,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,yBAAyB;IACtC,YAAY,EAAE,0BAA0B;IACxC,MAAM,EAAE,CAAC,QAAQ,CAAU;CAC5B,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { NotFound } from "../errors.ts";
|
|
3
|
+
export declare const ExportDocumentsInput: Schema.Struct<{
|
|
4
|
+
readonly collectionName: Schema.String;
|
|
5
|
+
readonly exportDocumentsParameters: Schema.optional<Schema.String>;
|
|
6
|
+
}>;
|
|
7
|
+
export type ExportDocumentsInput = typeof ExportDocumentsInput.Type;
|
|
8
|
+
export declare const ExportDocumentsOutput: Schema.Void;
|
|
9
|
+
export type ExportDocumentsOutput = typeof ExportDocumentsOutput.Type;
|
|
10
|
+
/**
|
|
11
|
+
* Export all documents in a collection
|
|
12
|
+
*
|
|
13
|
+
* Export all documents in a collection in JSON lines format.
|
|
14
|
+
*
|
|
15
|
+
* @param collectionName - The name of the collection
|
|
16
|
+
*/
|
|
17
|
+
export declare const exportDocuments: import("@distilled.cloud/core/client").OperationMethod<{
|
|
18
|
+
readonly collectionName: string;
|
|
19
|
+
readonly exportDocumentsParameters?: string | undefined;
|
|
20
|
+
}, void, NotFound, import("~/credentials.ts").Credentials>;
|
|
21
|
+
//# sourceMappingURL=exportDocuments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exportDocuments.d.ts","sourceRoot":"","sources":["../../src/operations/exportDocuments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,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;;;0DAIzB,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 { NotFound } from "../errors.js";
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const ExportDocumentsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
collectionName: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
exportDocumentsParameters: Schema.optional(Schema.String),
|
|
9
|
+
}).pipe(T.Http({
|
|
10
|
+
method: "GET",
|
|
11
|
+
path: "/collections/{collectionName}/documents/export",
|
|
12
|
+
}));
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const ExportDocumentsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Void;
|
|
15
|
+
// The operation
|
|
16
|
+
/**
|
|
17
|
+
* Export all documents in a collection
|
|
18
|
+
*
|
|
19
|
+
* Export all documents in a collection in JSON lines format.
|
|
20
|
+
*
|
|
21
|
+
* @param collectionName - The name of the collection
|
|
22
|
+
*/
|
|
23
|
+
export const exportDocuments = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
24
|
+
inputSchema: ExportDocumentsInput,
|
|
25
|
+
outputSchema: ExportDocumentsOutput,
|
|
26
|
+
errors: [NotFound],
|
|
27
|
+
}));
|
|
28
|
+
//# sourceMappingURL=exportDocuments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exportDocuments.js","sourceRoot":"","sources":["../../src/operations/exportDocuments.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,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,KAAK;IACb,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,QAAQ,CAAU;CAC5B,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const FlushAnalyticsInput: Schema.Struct<{}>;
|
|
3
|
+
export type FlushAnalyticsInput = typeof FlushAnalyticsInput.Type;
|
|
4
|
+
export declare const FlushAnalyticsOutput: Schema.Struct<{
|
|
5
|
+
readonly ok: Schema.Boolean;
|
|
6
|
+
}>;
|
|
7
|
+
export type FlushAnalyticsOutput = typeof FlushAnalyticsOutput.Type;
|
|
8
|
+
/**
|
|
9
|
+
* Flush in-memory analytics to disk
|
|
10
|
+
*
|
|
11
|
+
* Triggers a flush of analytics data to persistent storage.
|
|
12
|
+
*/
|
|
13
|
+
export declare const flushAnalytics: import("@distilled.cloud/core/client").OperationMethod<{}, {
|
|
14
|
+
readonly ok: boolean;
|
|
15
|
+
}, never, import("~/credentials.ts").Credentials>;
|
|
16
|
+
//# sourceMappingURL=flushAnalytics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flushAnalytics.d.ts","sourceRoot":"","sources":["../../src/operations/flushAnalytics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,mBAAmB,mBAE4B,CAAC;AAC7D,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAGlE,eAAO,MAAM,oBAAoB;;EAE/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAC;AAGpE;;;;GAIG;AACH,eAAO,MAAM,cAAc;;iDAGxB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 FlushAnalyticsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "POST", path: "/analytics/flush" }));
|
|
6
|
+
// Output Schema
|
|
7
|
+
export const FlushAnalyticsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
ok: Schema.Boolean,
|
|
9
|
+
});
|
|
10
|
+
// The operation
|
|
11
|
+
/**
|
|
12
|
+
* Flush in-memory analytics to disk
|
|
13
|
+
*
|
|
14
|
+
* Triggers a flush of analytics data to persistent storage.
|
|
15
|
+
*/
|
|
16
|
+
export const flushAnalytics = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
17
|
+
inputSchema: FlushAnalyticsInput,
|
|
18
|
+
outputSchema: FlushAnalyticsOutput,
|
|
19
|
+
}));
|
|
20
|
+
//# sourceMappingURL=flushAnalytics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flushAnalytics.js","sourceRoot":"","sources":["../../src/operations/flushAnalytics.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,mBAAmB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAC1E,EAAE,CACH,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC;AAG7D,gBAAgB;AAChB,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC5E,EAAE,EAAE,MAAM,CAAC,OAAO;CACnB,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACxE,WAAW,EAAE,mBAAmB;IAChC,YAAY,EAAE,oBAAoB;CACnC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { NotFound } from "../errors.ts";
|
|
3
|
+
export declare const GetAliasInput: Schema.Struct<{
|
|
4
|
+
readonly aliasName: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export type GetAliasInput = typeof GetAliasInput.Type;
|
|
7
|
+
export declare const GetAliasOutput: Schema.Struct<{
|
|
8
|
+
readonly name: Schema.String;
|
|
9
|
+
readonly collection_name: Schema.String;
|
|
10
|
+
}>;
|
|
11
|
+
export type GetAliasOutput = typeof GetAliasOutput.Type;
|
|
12
|
+
/**
|
|
13
|
+
* Retrieve an alias
|
|
14
|
+
*
|
|
15
|
+
* Find out which collection an alias points to by fetching it
|
|
16
|
+
*
|
|
17
|
+
* @param aliasName - The name of the alias to retrieve
|
|
18
|
+
*/
|
|
19
|
+
export declare const getAlias: import("@distilled.cloud/core/client").OperationMethod<{
|
|
20
|
+
readonly aliasName: string;
|
|
21
|
+
}, {
|
|
22
|
+
readonly collection_name: string;
|
|
23
|
+
readonly name: string;
|
|
24
|
+
}, NotFound, import("~/credentials.ts").Credentials>;
|
|
25
|
+
//# sourceMappingURL=getAlias.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAlias.d.ts","sourceRoot":"","sources":["../../src/operations/getAlias.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,eAAO,MAAM,aAAa;;EAEsC,CAAC;AACjE,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC,IAAI,CAAC;AAGtD,eAAO,MAAM,cAAc;;;EAGzB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,IAAI,CAAC;AAGxD;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ;;;;;oDAIlB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 GetAliasInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
aliasName: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({ method: "GET", path: "/aliases/{aliasName}" }));
|
|
9
|
+
// Output Schema
|
|
10
|
+
export const GetAliasOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
11
|
+
name: Schema.String,
|
|
12
|
+
collection_name: Schema.String,
|
|
13
|
+
});
|
|
14
|
+
// The operation
|
|
15
|
+
/**
|
|
16
|
+
* Retrieve an alias
|
|
17
|
+
*
|
|
18
|
+
* Find out which collection an alias points to by fetching it
|
|
19
|
+
*
|
|
20
|
+
* @param aliasName - The name of the alias to retrieve
|
|
21
|
+
*/
|
|
22
|
+
export const getAlias = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
23
|
+
inputSchema: GetAliasInput,
|
|
24
|
+
outputSchema: GetAliasOutput,
|
|
25
|
+
errors: [NotFound],
|
|
26
|
+
}));
|
|
27
|
+
//# sourceMappingURL=getAlias.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAlias.js","sourceRoot":"","sources":["../../src/operations/getAlias.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,aAAa,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACrE,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAC7C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC,CAAC,CAAC;AAGjE,gBAAgB;AAChB,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACtE,IAAI,EAAE,MAAM,CAAC,MAAM;IACnB,eAAe,EAAE,MAAM,CAAC,MAAM;CAC/B,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAClE,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;IAC5B,MAAM,EAAE,CAAC,QAAQ,CAAU;CAC5B,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const GetAliasesInput: Schema.Struct<{}>;
|
|
3
|
+
export type GetAliasesInput = typeof GetAliasesInput.Type;
|
|
4
|
+
export declare const GetAliasesOutput: Schema.Struct<{
|
|
5
|
+
readonly aliases: Schema.$Array<Schema.Struct<{
|
|
6
|
+
readonly name: Schema.String;
|
|
7
|
+
readonly collection_name: Schema.String;
|
|
8
|
+
}>>;
|
|
9
|
+
}>;
|
|
10
|
+
export type GetAliasesOutput = typeof GetAliasesOutput.Type;
|
|
11
|
+
/**
|
|
12
|
+
* List all aliases
|
|
13
|
+
*
|
|
14
|
+
* List all aliases and the corresponding collections that they map to.
|
|
15
|
+
*/
|
|
16
|
+
export declare const getAliases: import("@distilled.cloud/core/client").OperationMethod<{}, {
|
|
17
|
+
readonly aliases: readonly {
|
|
18
|
+
readonly collection_name: string;
|
|
19
|
+
readonly name: string;
|
|
20
|
+
}[];
|
|
21
|
+
}, never, import("~/credentials.ts").Credentials>;
|
|
22
|
+
//# sourceMappingURL=getAliases.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAliases.d.ts","sourceRoot":"","sources":["../../src/operations/getAliases.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,eAAe,mBAEuB,CAAC;AACpD,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,IAAI,CAAC;AAG1D,eAAO,MAAM,gBAAgB;;;;;EAO3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC,IAAI,CAAC;AAG5D;;;;GAIG;AACH,eAAO,MAAM,UAAU;;;;;iDAGpB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 GetAliasesInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/aliases" }));
|
|
6
|
+
// Output Schema
|
|
7
|
+
export const GetAliasesOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
aliases: Schema.Array(Schema.Struct({
|
|
9
|
+
name: Schema.String,
|
|
10
|
+
collection_name: Schema.String,
|
|
11
|
+
})),
|
|
12
|
+
});
|
|
13
|
+
// The operation
|
|
14
|
+
/**
|
|
15
|
+
* List all aliases
|
|
16
|
+
*
|
|
17
|
+
* List all aliases and the corresponding collections that they map to.
|
|
18
|
+
*/
|
|
19
|
+
export const getAliases = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
20
|
+
inputSchema: GetAliasesInput,
|
|
21
|
+
outputSchema: GetAliasesOutput,
|
|
22
|
+
}));
|
|
23
|
+
//# sourceMappingURL=getAliases.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAliases.js","sourceRoot":"","sources":["../../src/operations/getAliases.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,eAAe,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CACtE,EAAE,CACH,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC;AAGpD,gBAAgB;AAChB,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxE,OAAO,EAAE,MAAM,CAAC,KAAK,CACnB,MAAM,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,eAAe,EAAE,MAAM,CAAC,MAAM;KAC/B,CAAC,CACH;CACF,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACpE,WAAW,EAAE,eAAe;IAC5B,YAAY,EAAE,gBAAgB;CAC/B,CAAC,CAAC,CAAC"}
|