@distilled.cloud/typesense 0.27.0 → 0.28.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/lib/operations/clearCache.d.ts +8 -9
- package/lib/operations/clearCache.d.ts.map +1 -1
- package/lib/operations/clearCache.js +0 -2
- package/lib/operations/clearCache.js.map +1 -1
- package/lib/operations/compactDb.d.ts +8 -9
- package/lib/operations/compactDb.d.ts.map +1 -1
- package/lib/operations/compactDb.js +0 -2
- package/lib/operations/compactDb.js.map +1 -1
- package/lib/operations/createAnalyticsEvent.d.ts +17 -29
- package/lib/operations/createAnalyticsEvent.d.ts.map +1 -1
- package/lib/operations/createAnalyticsEvent.js +0 -2
- package/lib/operations/createAnalyticsEvent.js.map +1 -1
- package/lib/operations/createAnalyticsRule.d.ts +38 -5
- package/lib/operations/createAnalyticsRule.d.ts.map +1 -1
- package/lib/operations/createAnalyticsRule.js +49 -3
- package/lib/operations/createAnalyticsRule.js.map +1 -1
- package/lib/operations/createCollection.d.ts +102 -197
- package/lib/operations/createCollection.d.ts.map +1 -1
- package/lib/operations/createCollection.js +6 -7
- package/lib/operations/createCollection.js.map +1 -1
- package/lib/operations/createConversationModel.d.ts +18 -29
- package/lib/operations/createConversationModel.d.ts.map +1 -1
- package/lib/operations/createConversationModel.js +1 -2
- package/lib/operations/createConversationModel.js.map +1 -1
- package/lib/operations/createKey.d.ts +19 -33
- package/lib/operations/createKey.d.ts.map +1 -1
- package/lib/operations/createKey.js +0 -2
- package/lib/operations/createKey.js.map +1 -1
- package/lib/operations/createNLSearchModel.d.ts +28 -49
- package/lib/operations/createNLSearchModel.d.ts.map +1 -1
- package/lib/operations/createNLSearchModel.js +1 -2
- package/lib/operations/createNLSearchModel.js.map +1 -1
- package/lib/operations/debug.d.ts +8 -9
- package/lib/operations/debug.d.ts.map +1 -1
- package/lib/operations/debug.js +0 -2
- package/lib/operations/debug.js.map +1 -1
- package/lib/operations/deleteAlias.d.ts +10 -15
- package/lib/operations/deleteAlias.d.ts.map +1 -1
- package/lib/operations/deleteAlias.js +0 -2
- package/lib/operations/deleteAlias.js.map +1 -1
- package/lib/operations/deleteAnalyticsRule.d.ts +22 -39
- package/lib/operations/deleteAnalyticsRule.d.ts.map +1 -1
- package/lib/operations/deleteAnalyticsRule.js +0 -2
- package/lib/operations/deleteAnalyticsRule.js.map +1 -1
- package/lib/operations/deleteCollection.d.ts +57 -107
- package/lib/operations/deleteCollection.d.ts.map +1 -1
- package/lib/operations/deleteCollection.js +6 -7
- package/lib/operations/deleteCollection.js.map +1 -1
- package/lib/operations/deleteConversationModel.d.ts +9 -13
- package/lib/operations/deleteConversationModel.d.ts.map +1 -1
- package/lib/operations/deleteConversationModel.js +0 -2
- package/lib/operations/deleteConversationModel.js.map +1 -1
- package/lib/operations/deleteCurationSet.d.ts +9 -13
- package/lib/operations/deleteCurationSet.d.ts.map +1 -1
- package/lib/operations/deleteCurationSet.js +0 -2
- package/lib/operations/deleteCurationSet.js.map +1 -1
- package/lib/operations/deleteCurationSetItem.d.ts +10 -15
- package/lib/operations/deleteCurationSetItem.d.ts.map +1 -1
- package/lib/operations/deleteCurationSetItem.js +0 -2
- package/lib/operations/deleteCurationSetItem.js.map +1 -1
- package/lib/operations/deleteDocument.d.ts +8 -11
- package/lib/operations/deleteDocument.d.ts.map +1 -1
- package/lib/operations/deleteDocument.js +2 -3
- package/lib/operations/deleteDocument.js.map +1 -1
- package/lib/operations/deleteDocuments.d.ts +10 -15
- package/lib/operations/deleteDocuments.d.ts.map +1 -1
- package/lib/operations/deleteDocuments.js +0 -2
- package/lib/operations/deleteDocuments.js.map +1 -1
- package/lib/operations/deleteKey.d.ts +9 -13
- package/lib/operations/deleteKey.d.ts.map +1 -1
- package/lib/operations/deleteKey.js +0 -2
- package/lib/operations/deleteKey.js.map +1 -1
- package/lib/operations/deleteNLSearchModel.d.ts +9 -13
- package/lib/operations/deleteNLSearchModel.d.ts.map +1 -1
- package/lib/operations/deleteNLSearchModel.js +0 -2
- package/lib/operations/deleteNLSearchModel.js.map +1 -1
- package/lib/operations/deletePreset.d.ts +9 -13
- package/lib/operations/deletePreset.d.ts.map +1 -1
- package/lib/operations/deletePreset.js +0 -2
- package/lib/operations/deletePreset.js.map +1 -1
- package/lib/operations/deleteStopwordsSet.d.ts +9 -13
- package/lib/operations/deleteStopwordsSet.d.ts.map +1 -1
- package/lib/operations/deleteStopwordsSet.js +0 -2
- package/lib/operations/deleteStopwordsSet.js.map +1 -1
- package/lib/operations/deleteSynonymSet.d.ts +9 -13
- package/lib/operations/deleteSynonymSet.d.ts.map +1 -1
- package/lib/operations/deleteSynonymSet.js +0 -2
- package/lib/operations/deleteSynonymSet.js.map +1 -1
- package/lib/operations/deleteSynonymSetItem.d.ts +10 -15
- package/lib/operations/deleteSynonymSetItem.d.ts.map +1 -1
- package/lib/operations/deleteSynonymSetItem.js +0 -2
- package/lib/operations/deleteSynonymSetItem.js.map +1 -1
- package/lib/operations/exportDocuments.d.ts +8 -11
- package/lib/operations/exportDocuments.d.ts.map +1 -1
- package/lib/operations/exportDocuments.js +2 -3
- package/lib/operations/exportDocuments.js.map +1 -1
- package/lib/operations/flushAnalytics.d.ts +8 -9
- package/lib/operations/flushAnalytics.d.ts.map +1 -1
- package/lib/operations/flushAnalytics.js +0 -2
- package/lib/operations/flushAnalytics.js.map +1 -1
- package/lib/operations/getAlias.d.ts +10 -15
- package/lib/operations/getAlias.d.ts.map +1 -1
- package/lib/operations/getAlias.js +0 -2
- package/lib/operations/getAlias.js.map +1 -1
- package/lib/operations/getAliases.d.ts +11 -15
- package/lib/operations/getAliases.d.ts.map +1 -1
- package/lib/operations/getAliases.js +0 -2
- package/lib/operations/getAliases.js.map +1 -1
- package/lib/operations/getAnalyticsEvents.d.ts +20 -35
- package/lib/operations/getAnalyticsEvents.d.ts.map +1 -1
- package/lib/operations/getAnalyticsEvents.js +0 -2
- package/lib/operations/getAnalyticsEvents.js.map +1 -1
- package/lib/operations/getAnalyticsStatus.d.ts +14 -21
- package/lib/operations/getAnalyticsStatus.d.ts.map +1 -1
- package/lib/operations/getAnalyticsStatus.js +0 -2
- package/lib/operations/getAnalyticsStatus.js.map +1 -1
- package/lib/operations/getCollection.d.ts +57 -107
- package/lib/operations/getCollection.d.ts.map +1 -1
- package/lib/operations/getCollection.js +6 -7
- package/lib/operations/getCollection.js.map +1 -1
- package/lib/operations/getCollections.d.ts +57 -107
- package/lib/operations/getCollections.d.ts.map +1 -1
- package/lib/operations/getCollections.js +6 -7
- package/lib/operations/getCollections.js.map +1 -1
- package/lib/operations/getDocument.d.ts +8 -11
- package/lib/operations/getDocument.d.ts.map +1 -1
- package/lib/operations/getDocument.js +2 -3
- package/lib/operations/getDocument.js.map +1 -1
- package/lib/operations/getKey.d.ts +15 -25
- package/lib/operations/getKey.d.ts.map +1 -1
- package/lib/operations/getKey.js +0 -2
- package/lib/operations/getKey.js.map +1 -1
- package/lib/operations/getKeys.d.ts +16 -25
- package/lib/operations/getKeys.d.ts.map +1 -1
- package/lib/operations/getKeys.js +0 -2
- package/lib/operations/getKeys.js.map +1 -1
- package/lib/operations/getSchemaChanges.d.ts +10 -13
- package/lib/operations/getSchemaChanges.d.ts.map +1 -1
- package/lib/operations/getSchemaChanges.js +0 -2
- package/lib/operations/getSchemaChanges.js.map +1 -1
- package/lib/operations/getStemmingDictionary.d.ts +13 -21
- package/lib/operations/getStemmingDictionary.d.ts.map +1 -1
- package/lib/operations/getStemmingDictionary.js +0 -2
- package/lib/operations/getStemmingDictionary.js.map +1 -1
- package/lib/operations/health.d.ts +8 -9
- package/lib/operations/health.d.ts.map +1 -1
- package/lib/operations/health.js +0 -2
- package/lib/operations/health.js.map +1 -1
- package/lib/operations/importDocuments.d.ts +8 -11
- package/lib/operations/importDocuments.d.ts.map +1 -1
- package/lib/operations/importDocuments.js +2 -3
- package/lib/operations/importDocuments.js.map +1 -1
- package/lib/operations/importStemmingDictionary.d.ts +7 -9
- package/lib/operations/importStemmingDictionary.d.ts.map +1 -1
- package/lib/operations/importStemmingDictionary.js +0 -2
- package/lib/operations/importStemmingDictionary.js.map +1 -1
- package/lib/operations/indexDocument.d.ts +9 -13
- package/lib/operations/indexDocument.d.ts.map +1 -1
- package/lib/operations/indexDocument.js +2 -3
- package/lib/operations/indexDocument.js.map +1 -1
- package/lib/operations/listStemmingDictionaries.d.ts +8 -9
- package/lib/operations/listStemmingDictionaries.d.ts.map +1 -1
- package/lib/operations/listStemmingDictionaries.js +0 -2
- package/lib/operations/listStemmingDictionaries.js.map +1 -1
- package/lib/operations/multiSearch.d.ts +199 -407
- package/lib/operations/multiSearch.d.ts.map +1 -1
- package/lib/operations/multiSearch.js +0 -2
- package/lib/operations/multiSearch.js.map +1 -1
- package/lib/operations/retrieveAPIStats.d.ts +20 -33
- package/lib/operations/retrieveAPIStats.d.ts.map +1 -1
- package/lib/operations/retrieveAPIStats.js +0 -2
- package/lib/operations/retrieveAPIStats.js.map +1 -1
- package/lib/operations/retrieveAllConversationModels.d.ts +8 -9
- package/lib/operations/retrieveAllConversationModels.d.ts.map +1 -1
- package/lib/operations/retrieveAllConversationModels.js +0 -2
- package/lib/operations/retrieveAllConversationModels.js.map +1 -1
- package/lib/operations/retrieveAllNLSearchModels.d.ts +8 -9
- package/lib/operations/retrieveAllNLSearchModels.d.ts.map +1 -1
- package/lib/operations/retrieveAllNLSearchModels.js +0 -2
- package/lib/operations/retrieveAllNLSearchModels.js.map +1 -1
- package/lib/operations/retrieveAllPresets.d.ts +156 -15
- package/lib/operations/retrieveAllPresets.d.ts.map +1 -1
- package/lib/operations/retrieveAllPresets.js +0 -2
- package/lib/operations/retrieveAllPresets.js.map +1 -1
- package/lib/operations/retrieveAnalyticsRule.d.ts +22 -39
- package/lib/operations/retrieveAnalyticsRule.d.ts.map +1 -1
- package/lib/operations/retrieveAnalyticsRule.js +0 -2
- package/lib/operations/retrieveAnalyticsRule.js.map +1 -1
- package/lib/operations/retrieveAnalyticsRules.d.ts +22 -39
- package/lib/operations/retrieveAnalyticsRules.d.ts.map +1 -1
- package/lib/operations/retrieveAnalyticsRules.js +0 -2
- package/lib/operations/retrieveAnalyticsRules.js.map +1 -1
- package/lib/operations/retrieveConversationModel.d.ts +9 -13
- package/lib/operations/retrieveConversationModel.d.ts.map +1 -1
- package/lib/operations/retrieveConversationModel.js +0 -2
- package/lib/operations/retrieveConversationModel.js.map +1 -1
- package/lib/operations/retrieveCurationSet.d.ts +35 -65
- package/lib/operations/retrieveCurationSet.d.ts.map +1 -1
- package/lib/operations/retrieveCurationSet.js +0 -2
- package/lib/operations/retrieveCurationSet.js.map +1 -1
- package/lib/operations/retrieveCurationSetItem.d.ts +32 -59
- package/lib/operations/retrieveCurationSetItem.d.ts.map +1 -1
- package/lib/operations/retrieveCurationSetItem.js +0 -2
- package/lib/operations/retrieveCurationSetItem.js.map +1 -1
- package/lib/operations/retrieveCurationSetItems.d.ts +31 -57
- package/lib/operations/retrieveCurationSetItems.d.ts.map +1 -1
- package/lib/operations/retrieveCurationSetItems.js +0 -2
- package/lib/operations/retrieveCurationSetItems.js.map +1 -1
- package/lib/operations/retrieveCurationSets.d.ts +34 -61
- package/lib/operations/retrieveCurationSets.d.ts.map +1 -1
- package/lib/operations/retrieveCurationSets.js +0 -2
- package/lib/operations/retrieveCurationSets.js.map +1 -1
- package/lib/operations/retrieveMetrics.d.ts +6 -5
- package/lib/operations/retrieveMetrics.d.ts.map +1 -1
- package/lib/operations/retrieveMetrics.js +2 -3
- package/lib/operations/retrieveMetrics.js.map +1 -1
- package/lib/operations/retrieveNLSearchModel.d.ts +9 -13
- package/lib/operations/retrieveNLSearchModel.d.ts.map +1 -1
- package/lib/operations/retrieveNLSearchModel.js +0 -2
- package/lib/operations/retrieveNLSearchModel.js.map +1 -1
- package/lib/operations/retrievePreset.d.ts +155 -15
- package/lib/operations/retrievePreset.d.ts.map +1 -1
- package/lib/operations/retrievePreset.js +0 -2
- package/lib/operations/retrievePreset.js.map +1 -1
- package/lib/operations/retrieveStopwordsSet.d.ts +13 -21
- package/lib/operations/retrieveStopwordsSet.d.ts.map +1 -1
- package/lib/operations/retrieveStopwordsSet.js +0 -2
- package/lib/operations/retrieveStopwordsSet.js.map +1 -1
- package/lib/operations/retrieveStopwordsSets.d.ts +12 -17
- package/lib/operations/retrieveStopwordsSets.d.ts.map +1 -1
- package/lib/operations/retrieveStopwordsSets.js +0 -2
- package/lib/operations/retrieveStopwordsSets.js.map +1 -1
- package/lib/operations/retrieveSynonymSet.d.ts +16 -27
- package/lib/operations/retrieveSynonymSet.d.ts.map +1 -1
- package/lib/operations/retrieveSynonymSet.js +0 -2
- package/lib/operations/retrieveSynonymSet.js.map +1 -1
- package/lib/operations/retrieveSynonymSetItem.d.ts +14 -23
- package/lib/operations/retrieveSynonymSetItem.d.ts.map +1 -1
- package/lib/operations/retrieveSynonymSetItem.js +0 -2
- package/lib/operations/retrieveSynonymSetItem.js.map +1 -1
- package/lib/operations/retrieveSynonymSetItems.d.ts +13 -21
- package/lib/operations/retrieveSynonymSetItems.d.ts.map +1 -1
- package/lib/operations/retrieveSynonymSetItems.js +0 -2
- package/lib/operations/retrieveSynonymSetItems.js.map +1 -1
- package/lib/operations/retrieveSynonymSets.d.ts +15 -23
- package/lib/operations/retrieveSynonymSets.d.ts.map +1 -1
- package/lib/operations/retrieveSynonymSets.js +0 -2
- package/lib/operations/retrieveSynonymSets.js.map +1 -1
- package/lib/operations/searchCollection.d.ts +119 -247
- package/lib/operations/searchCollection.d.ts.map +1 -1
- package/lib/operations/searchCollection.js +0 -2
- package/lib/operations/searchCollection.js.map +1 -1
- package/lib/operations/takeSnapshot.d.ts +9 -13
- package/lib/operations/takeSnapshot.d.ts.map +1 -1
- package/lib/operations/takeSnapshot.js +0 -2
- package/lib/operations/takeSnapshot.js.map +1 -1
- package/lib/operations/toggleSlowRequestLog.d.ts +9 -13
- package/lib/operations/toggleSlowRequestLog.d.ts.map +1 -1
- package/lib/operations/toggleSlowRequestLog.js +0 -2
- package/lib/operations/toggleSlowRequestLog.js.map +1 -1
- package/lib/operations/updateCollection.d.ts +85 -163
- package/lib/operations/updateCollection.d.ts.map +1 -1
- package/lib/operations/updateCollection.js +10 -11
- package/lib/operations/updateCollection.js.map +1 -1
- package/lib/operations/updateConversationModel.d.ts +19 -31
- package/lib/operations/updateConversationModel.d.ts.map +1 -1
- package/lib/operations/updateConversationModel.js +1 -2
- package/lib/operations/updateConversationModel.js.map +1 -1
- package/lib/operations/updateDocument.d.ts +9 -13
- package/lib/operations/updateDocument.d.ts.map +1 -1
- package/lib/operations/updateDocument.js +2 -3
- package/lib/operations/updateDocument.js.map +1 -1
- package/lib/operations/updateDocuments.d.ts +10 -15
- package/lib/operations/updateDocuments.d.ts.map +1 -1
- package/lib/operations/updateDocuments.js +0 -2
- package/lib/operations/updateDocuments.js.map +1 -1
- package/lib/operations/updateNLSearchModel.d.ts +9 -13
- package/lib/operations/updateNLSearchModel.d.ts.map +1 -1
- package/lib/operations/updateNLSearchModel.js +0 -2
- package/lib/operations/updateNLSearchModel.js.map +1 -1
- package/lib/operations/upsertAlias.d.ts +11 -17
- package/lib/operations/upsertAlias.d.ts.map +1 -1
- package/lib/operations/upsertAlias.js +0 -2
- package/lib/operations/upsertAlias.js.map +1 -1
- package/lib/operations/upsertAnalyticsRule.d.ts +33 -61
- package/lib/operations/upsertAnalyticsRule.d.ts.map +1 -1
- package/lib/operations/upsertAnalyticsRule.js +0 -2
- package/lib/operations/upsertAnalyticsRule.js.map +1 -1
- package/lib/operations/upsertCurationSet.d.ts +61 -117
- package/lib/operations/upsertCurationSet.d.ts.map +1 -1
- package/lib/operations/upsertCurationSet.js +0 -2
- package/lib/operations/upsertCurationSet.js.map +1 -1
- package/lib/operations/upsertCurationSetItem.d.ts +55 -105
- package/lib/operations/upsertCurationSetItem.d.ts.map +1 -1
- package/lib/operations/upsertCurationSetItem.js +0 -2
- package/lib/operations/upsertCurationSetItem.js.map +1 -1
- package/lib/operations/upsertPreset.d.ts +301 -17
- package/lib/operations/upsertPreset.d.ts.map +1 -1
- package/lib/operations/upsertPreset.js +0 -2
- package/lib/operations/upsertPreset.js.map +1 -1
- package/lib/operations/upsertStopwordsSet.d.ts +13 -21
- package/lib/operations/upsertStopwordsSet.d.ts.map +1 -1
- package/lib/operations/upsertStopwordsSet.js +0 -2
- package/lib/operations/upsertStopwordsSet.js.map +1 -1
- package/lib/operations/upsertSynonymSet.d.ts +23 -41
- package/lib/operations/upsertSynonymSet.d.ts.map +1 -1
- package/lib/operations/upsertSynonymSet.js +0 -2
- package/lib/operations/upsertSynonymSet.js.map +1 -1
- package/lib/operations/upsertSynonymSetItem.d.ts +18 -31
- package/lib/operations/upsertSynonymSetItem.d.ts.map +1 -1
- package/lib/operations/upsertSynonymSetItem.js +0 -2
- package/lib/operations/upsertSynonymSetItem.js.map +1 -1
- package/lib/operations/vote.d.ts +8 -9
- package/lib/operations/vote.d.ts.map +1 -1
- package/lib/operations/vote.js +0 -2
- package/lib/operations/vote.js.map +1 -1
- package/package.json +2 -2
- package/src/operations/clearCache.ts +8 -4
- package/src/operations/compactDb.ts +8 -4
- package/src/operations/createAnalyticsEvent.ts +18 -4
- package/src/operations/createAnalyticsRule.ts +93 -4
- package/src/operations/createCollection.ts +104 -9
- package/src/operations/createConversationModel.ts +19 -6
- package/src/operations/createKey.ts +20 -4
- package/src/operations/createNLSearchModel.ts +29 -4
- package/src/operations/debug.ts +6 -4
- package/src/operations/deleteAlias.ts +11 -4
- package/src/operations/deleteAnalyticsRule.ts +23 -4
- package/src/operations/deleteCollection.ts +61 -9
- package/src/operations/deleteConversationModel.ts +8 -6
- package/src/operations/deleteCurationSet.ts +10 -4
- package/src/operations/deleteCurationSetItem.ts +9 -5
- package/src/operations/deleteDocument.ts +8 -4
- package/src/operations/deleteDocuments.ts +9 -4
- package/src/operations/deleteKey.ts +10 -4
- package/src/operations/deleteNLSearchModel.ts +10 -4
- package/src/operations/deletePreset.ts +10 -4
- package/src/operations/deleteStopwordsSet.ts +10 -4
- package/src/operations/deleteSynonymSet.ts +10 -4
- package/src/operations/deleteSynonymSetItem.ts +9 -4
- package/src/operations/exportDocuments.ts +8 -4
- package/src/operations/flushAnalytics.ts +8 -4
- package/src/operations/getAlias.ts +11 -4
- package/src/operations/getAliases.ts +8 -4
- package/src/operations/getAnalyticsEvents.ts +21 -4
- package/src/operations/getAnalyticsStatus.ts +12 -4
- package/src/operations/getCollection.ts +61 -9
- package/src/operations/getCollections.ts +61 -9
- package/src/operations/getDocument.ts +8 -4
- package/src/operations/getKey.ts +16 -4
- package/src/operations/getKeys.ts +14 -4
- package/src/operations/getSchemaChanges.ts +10 -4
- package/src/operations/getStemmingDictionary.ts +9 -5
- package/src/operations/health.ts +6 -4
- package/src/operations/importDocuments.ts +8 -4
- package/src/operations/importStemmingDictionary.ts +8 -6
- package/src/operations/indexDocument.ts +9 -4
- package/src/operations/listStemmingDictionaries.ts +6 -6
- package/src/operations/multiSearch.ts +192 -4
- package/src/operations/retrieveAPIStats.ts +20 -4
- package/src/operations/retrieveAllConversationModels.ts +4 -6
- package/src/operations/retrieveAllNLSearchModels.ts +4 -6
- package/src/operations/retrieveAllPresets.ts +159 -4
- package/src/operations/retrieveAnalyticsRule.ts +23 -5
- package/src/operations/retrieveAnalyticsRules.ts +23 -6
- package/src/operations/retrieveConversationModel.ts +10 -6
- package/src/operations/retrieveCurationSet.ts +31 -4
- package/src/operations/retrieveCurationSetItem.ts +26 -6
- package/src/operations/retrieveCurationSetItems.ts +25 -6
- package/src/operations/retrieveCurationSets.ts +27 -4
- package/src/operations/retrieveMetrics.ts +7 -4
- package/src/operations/retrieveNLSearchModel.ts +10 -5
- package/src/operations/retrievePreset.ts +158 -4
- package/src/operations/retrieveStopwordsSet.ts +10 -4
- package/src/operations/retrieveStopwordsSets.ts +6 -5
- package/src/operations/retrieveSynonymSet.ts +17 -4
- package/src/operations/retrieveSynonymSetItem.ts +13 -6
- package/src/operations/retrieveSynonymSetItems.ts +12 -6
- package/src/operations/retrieveSynonymSets.ts +13 -4
- package/src/operations/searchCollection.ts +110 -4
- package/src/operations/takeSnapshot.ts +10 -4
- package/src/operations/toggleSlowRequestLog.ts +10 -4
- package/src/operations/updateCollection.ts +138 -52
- package/src/operations/updateConversationModel.ts +20 -6
- package/src/operations/updateDocument.ts +9 -4
- package/src/operations/updateDocuments.ts +9 -4
- package/src/operations/updateNLSearchModel.ts +10 -4
- package/src/operations/upsertAlias.ts +12 -4
- package/src/operations/upsertAnalyticsRule.ts +34 -4
- package/src/operations/upsertCurationSet.ts +52 -4
- package/src/operations/upsertCurationSetItem.ts +44 -5
- package/src/operations/upsertPreset.ts +306 -4
- package/src/operations/upsertStopwordsSet.ts +14 -4
- package/src/operations/upsertSynonymSet.ts +24 -4
- package/src/operations/upsertSynonymSetItem.ts +17 -4
- package/src/operations/vote.ts +6 -4
|
@@ -1,123 +1,123 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { BadRequest, NotFound } from "../errors.ts";
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
}
|
|
120
|
-
export
|
|
3
|
+
export interface SearchCollectionInput {
|
|
4
|
+
collectionName: string;
|
|
5
|
+
searchParameters: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const SearchCollectionInput: Schema.Codec<SearchCollectionInput>;
|
|
8
|
+
export interface SearchCollectionOutput {
|
|
9
|
+
facet_counts?: {
|
|
10
|
+
counts?: {
|
|
11
|
+
count?: number;
|
|
12
|
+
highlighted?: string;
|
|
13
|
+
value?: string;
|
|
14
|
+
parent?: unknown;
|
|
15
|
+
}[];
|
|
16
|
+
field_name?: string;
|
|
17
|
+
sampled?: boolean;
|
|
18
|
+
stats?: {
|
|
19
|
+
max?: number;
|
|
20
|
+
min?: number;
|
|
21
|
+
sum?: number;
|
|
22
|
+
total_values?: number;
|
|
23
|
+
avg?: number;
|
|
24
|
+
};
|
|
25
|
+
}[];
|
|
26
|
+
found?: number;
|
|
27
|
+
found_docs?: number;
|
|
28
|
+
search_time_ms?: number;
|
|
29
|
+
out_of?: number;
|
|
30
|
+
search_cutoff?: boolean;
|
|
31
|
+
page?: number;
|
|
32
|
+
grouped_hits?: {
|
|
33
|
+
found?: number;
|
|
34
|
+
group_key: unknown[];
|
|
35
|
+
hits: {
|
|
36
|
+
highlights?: {
|
|
37
|
+
field?: string;
|
|
38
|
+
snippet?: string;
|
|
39
|
+
snippets?: string[];
|
|
40
|
+
value?: string;
|
|
41
|
+
values?: string[];
|
|
42
|
+
indices?: number[];
|
|
43
|
+
matched_tokens?: unknown[];
|
|
44
|
+
}[];
|
|
45
|
+
highlight?: Record<string, unknown>;
|
|
46
|
+
document?: Record<string, unknown>;
|
|
47
|
+
text_match?: number;
|
|
48
|
+
text_match_info?: {
|
|
49
|
+
best_field_score?: string;
|
|
50
|
+
best_field_weight?: number;
|
|
51
|
+
fields_matched?: number;
|
|
52
|
+
num_tokens_dropped?: number;
|
|
53
|
+
score?: string;
|
|
54
|
+
tokens_matched?: number;
|
|
55
|
+
typo_prefix_score?: number;
|
|
56
|
+
};
|
|
57
|
+
geo_distance_meters?: Record<string, number>;
|
|
58
|
+
vector_distance?: number;
|
|
59
|
+
hybrid_search_info?: {
|
|
60
|
+
rank_fusion_score?: number;
|
|
61
|
+
};
|
|
62
|
+
search_index?: number;
|
|
63
|
+
}[];
|
|
64
|
+
}[];
|
|
65
|
+
hits?: {
|
|
66
|
+
highlights?: {
|
|
67
|
+
field?: string;
|
|
68
|
+
snippet?: string;
|
|
69
|
+
snippets?: string[];
|
|
70
|
+
value?: string;
|
|
71
|
+
values?: string[];
|
|
72
|
+
indices?: number[];
|
|
73
|
+
matched_tokens?: unknown[];
|
|
74
|
+
}[];
|
|
75
|
+
highlight?: Record<string, unknown>;
|
|
76
|
+
document?: Record<string, unknown>;
|
|
77
|
+
text_match?: number;
|
|
78
|
+
text_match_info?: {
|
|
79
|
+
best_field_score?: string;
|
|
80
|
+
best_field_weight?: number;
|
|
81
|
+
fields_matched?: number;
|
|
82
|
+
num_tokens_dropped?: number;
|
|
83
|
+
score?: string;
|
|
84
|
+
tokens_matched?: number;
|
|
85
|
+
typo_prefix_score?: number;
|
|
86
|
+
};
|
|
87
|
+
geo_distance_meters?: Record<string, number>;
|
|
88
|
+
vector_distance?: number;
|
|
89
|
+
hybrid_search_info?: {
|
|
90
|
+
rank_fusion_score?: number;
|
|
91
|
+
};
|
|
92
|
+
search_index?: number;
|
|
93
|
+
}[];
|
|
94
|
+
request_params?: {
|
|
95
|
+
collection_name: string;
|
|
96
|
+
first_q?: string;
|
|
97
|
+
q: string;
|
|
98
|
+
per_page: number;
|
|
99
|
+
voice_query?: {
|
|
100
|
+
transcribed_query?: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
conversation?: {
|
|
104
|
+
answer: string;
|
|
105
|
+
conversation_history: unknown[];
|
|
106
|
+
conversation_id: string;
|
|
107
|
+
query: string;
|
|
108
|
+
};
|
|
109
|
+
union_request_params?: {
|
|
110
|
+
collection_name: string;
|
|
111
|
+
first_q?: string;
|
|
112
|
+
q: string;
|
|
113
|
+
per_page: number;
|
|
114
|
+
voice_query?: {
|
|
115
|
+
transcribed_query?: string;
|
|
116
|
+
};
|
|
117
|
+
}[];
|
|
118
|
+
metadata?: Record<string, unknown>;
|
|
119
|
+
}
|
|
120
|
+
export declare const SearchCollectionOutput: Schema.Codec<SearchCollectionOutput>;
|
|
121
121
|
/**
|
|
122
122
|
* Search for documents in a collection
|
|
123
123
|
*
|
|
@@ -125,133 +125,5 @@ export type SearchCollectionOutput = typeof SearchCollectionOutput.Type;
|
|
|
125
125
|
*
|
|
126
126
|
* @param collectionName - The name of the collection to search for the document under
|
|
127
127
|
*/
|
|
128
|
-
export declare const searchCollection: import("@distilled.cloud/core/client").OperationMethod<
|
|
129
|
-
readonly collectionName: string;
|
|
130
|
-
readonly searchParameters: string;
|
|
131
|
-
}, {
|
|
132
|
-
readonly facet_counts?: readonly {
|
|
133
|
-
readonly counts?: readonly {
|
|
134
|
-
readonly count?: number | undefined;
|
|
135
|
-
readonly highlighted?: string | undefined;
|
|
136
|
-
readonly value?: string | undefined;
|
|
137
|
-
readonly parent?: unknown;
|
|
138
|
-
}[] | undefined;
|
|
139
|
-
readonly field_name?: string | undefined;
|
|
140
|
-
readonly sampled?: boolean | undefined;
|
|
141
|
-
readonly stats?: {
|
|
142
|
-
readonly max?: number | undefined;
|
|
143
|
-
readonly min?: number | undefined;
|
|
144
|
-
readonly sum?: number | undefined;
|
|
145
|
-
readonly total_values?: number | undefined;
|
|
146
|
-
readonly avg?: number | undefined;
|
|
147
|
-
} | undefined;
|
|
148
|
-
}[] | undefined;
|
|
149
|
-
readonly found?: number | undefined;
|
|
150
|
-
readonly found_docs?: number | undefined;
|
|
151
|
-
readonly search_time_ms?: number | undefined;
|
|
152
|
-
readonly out_of?: number | undefined;
|
|
153
|
-
readonly search_cutoff?: boolean | undefined;
|
|
154
|
-
readonly page?: number | undefined;
|
|
155
|
-
readonly grouped_hits?: readonly {
|
|
156
|
-
readonly found?: number | undefined;
|
|
157
|
-
readonly group_key: readonly unknown[];
|
|
158
|
-
readonly hits: readonly {
|
|
159
|
-
readonly highlights?: readonly {
|
|
160
|
-
readonly field?: string | undefined;
|
|
161
|
-
readonly snippet?: string | undefined;
|
|
162
|
-
readonly snippets?: readonly string[] | undefined;
|
|
163
|
-
readonly value?: string | undefined;
|
|
164
|
-
readonly values?: readonly string[] | undefined;
|
|
165
|
-
readonly indices?: readonly number[] | undefined;
|
|
166
|
-
readonly matched_tokens?: readonly unknown[] | undefined;
|
|
167
|
-
}[] | undefined;
|
|
168
|
-
readonly highlight?: {
|
|
169
|
-
readonly [x: string]: unknown;
|
|
170
|
-
} | undefined;
|
|
171
|
-
readonly document?: {
|
|
172
|
-
readonly [x: string]: unknown;
|
|
173
|
-
} | undefined;
|
|
174
|
-
readonly text_match?: number | undefined;
|
|
175
|
-
readonly text_match_info?: {
|
|
176
|
-
readonly best_field_score?: string | undefined;
|
|
177
|
-
readonly best_field_weight?: number | undefined;
|
|
178
|
-
readonly fields_matched?: number | undefined;
|
|
179
|
-
readonly num_tokens_dropped?: number | undefined;
|
|
180
|
-
readonly score?: string | undefined;
|
|
181
|
-
readonly tokens_matched?: number | undefined;
|
|
182
|
-
readonly typo_prefix_score?: number | undefined;
|
|
183
|
-
} | undefined;
|
|
184
|
-
readonly geo_distance_meters?: {
|
|
185
|
-
readonly [x: string]: number;
|
|
186
|
-
} | undefined;
|
|
187
|
-
readonly vector_distance?: number | undefined;
|
|
188
|
-
readonly hybrid_search_info?: {
|
|
189
|
-
readonly rank_fusion_score?: number | undefined;
|
|
190
|
-
} | undefined;
|
|
191
|
-
readonly search_index?: number | undefined;
|
|
192
|
-
}[];
|
|
193
|
-
}[] | undefined;
|
|
194
|
-
readonly hits?: readonly {
|
|
195
|
-
readonly highlights?: readonly {
|
|
196
|
-
readonly field?: string | undefined;
|
|
197
|
-
readonly snippet?: string | undefined;
|
|
198
|
-
readonly snippets?: readonly string[] | undefined;
|
|
199
|
-
readonly value?: string | undefined;
|
|
200
|
-
readonly values?: readonly string[] | undefined;
|
|
201
|
-
readonly indices?: readonly number[] | undefined;
|
|
202
|
-
readonly matched_tokens?: readonly unknown[] | undefined;
|
|
203
|
-
}[] | undefined;
|
|
204
|
-
readonly highlight?: {
|
|
205
|
-
readonly [x: string]: unknown;
|
|
206
|
-
} | undefined;
|
|
207
|
-
readonly document?: {
|
|
208
|
-
readonly [x: string]: unknown;
|
|
209
|
-
} | undefined;
|
|
210
|
-
readonly text_match?: number | undefined;
|
|
211
|
-
readonly text_match_info?: {
|
|
212
|
-
readonly best_field_score?: string | undefined;
|
|
213
|
-
readonly best_field_weight?: number | undefined;
|
|
214
|
-
readonly fields_matched?: number | undefined;
|
|
215
|
-
readonly num_tokens_dropped?: number | undefined;
|
|
216
|
-
readonly score?: string | undefined;
|
|
217
|
-
readonly tokens_matched?: number | undefined;
|
|
218
|
-
readonly typo_prefix_score?: number | undefined;
|
|
219
|
-
} | undefined;
|
|
220
|
-
readonly geo_distance_meters?: {
|
|
221
|
-
readonly [x: string]: number;
|
|
222
|
-
} | undefined;
|
|
223
|
-
readonly vector_distance?: number | undefined;
|
|
224
|
-
readonly hybrid_search_info?: {
|
|
225
|
-
readonly rank_fusion_score?: number | undefined;
|
|
226
|
-
} | undefined;
|
|
227
|
-
readonly search_index?: number | undefined;
|
|
228
|
-
}[] | undefined;
|
|
229
|
-
readonly request_params?: {
|
|
230
|
-
readonly collection_name: string;
|
|
231
|
-
readonly first_q?: string | undefined;
|
|
232
|
-
readonly q: string;
|
|
233
|
-
readonly per_page: number;
|
|
234
|
-
readonly voice_query?: {
|
|
235
|
-
readonly transcribed_query?: string | undefined;
|
|
236
|
-
} | undefined;
|
|
237
|
-
} | undefined;
|
|
238
|
-
readonly conversation?: {
|
|
239
|
-
readonly answer: string;
|
|
240
|
-
readonly conversation_history: readonly unknown[];
|
|
241
|
-
readonly conversation_id: string;
|
|
242
|
-
readonly query: string;
|
|
243
|
-
} | undefined;
|
|
244
|
-
readonly union_request_params?: readonly {
|
|
245
|
-
readonly collection_name: string;
|
|
246
|
-
readonly first_q?: string | undefined;
|
|
247
|
-
readonly q: string;
|
|
248
|
-
readonly per_page: number;
|
|
249
|
-
readonly voice_query?: {
|
|
250
|
-
readonly transcribed_query?: string | undefined;
|
|
251
|
-
} | undefined;
|
|
252
|
-
}[] | undefined;
|
|
253
|
-
readonly metadata?: {
|
|
254
|
-
readonly [x: string]: unknown;
|
|
255
|
-
} | undefined;
|
|
256
|
-
}, BadRequest | NotFound, import("~/credentials.ts").Credentials, never>;
|
|
128
|
+
export declare const searchCollection: import("@distilled.cloud/core/client").OperationMethod<SearchCollectionInput, SearchCollectionOutput, BadRequest | NotFound, import("../credentials.ts").Credentials, never>;
|
|
257
129
|
//# sourceMappingURL=searchCollection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchCollection.d.ts","sourceRoot":"","sources":["../../src/operations/searchCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGpD,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"searchCollection.d.ts","sourceRoot":"","sources":["../../src/operations/searchCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGpD,MAAM,WAAW,qBAAqB;IACpC,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AACD,eAAO,MAAM,qBAAqB,EAQlB,MAAM,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;AAGpD,MAAM,WAAW,sBAAsB;IACrC,YAAY,CAAC,EAAE;QACb,MAAM,CAAC,EAAE;YACP,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,MAAM,CAAC,EAAE,OAAO,CAAC;SAClB,EAAE,CAAC;QACJ,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,KAAK,CAAC,EAAE;YACN,GAAG,CAAC,EAAE,MAAM,CAAC;YACb,GAAG,CAAC,EAAE,MAAM,CAAC;YACb,GAAG,CAAC,EAAE,MAAM,CAAC;YACb,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,GAAG,CAAC,EAAE,MAAM,CAAC;SACd,CAAC;KACH,EAAE,CAAC;IACJ,KAAK,CAAC,EA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C;QACxB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,CAAC,EAAE,MAAM,CAAC;QACV,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE;YAAE,iBAAiB,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KAC9C,CAAC;IACF,YAAY,CAAC,EAAE;QACb,MAAM,EAAE,MAAM,CAAC;QACf,oBAAoB,EAAE,OAAO,EAAE,CAAC;QAChC,eAAe,EAAE,MAAM,CAAC;QACxB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,oBAAoB,CAAC,EAAE;QACrB,eAAe,EAAE,MAAM,CAAC;QACxB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,CAAC,EAAE,MAAM,CAAC;QACV,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE;YAAE,iBAAiB,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KAC9C,EAAE,CAAC;IACJ,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AACD,eAAO,MAAM,sBAAsB,EA+KnB,MAAM,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;AAGrD;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,8KAI1B,CAAC"}
|
|
@@ -2,7 +2,6 @@ import * as Schema from "effect/Schema";
|
|
|
2
2
|
import { API } from "../client.js";
|
|
3
3
|
import * as T from "../traits.js";
|
|
4
4
|
import { BadRequest, NotFound } from "../errors.js";
|
|
5
|
-
// Input Schema
|
|
6
5
|
export const SearchCollectionInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
6
|
collectionName: Schema.String.pipe(T.PathParam()),
|
|
8
7
|
searchParameters: Schema.String,
|
|
@@ -10,7 +9,6 @@ export const SearchCollectionInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
10
9
|
method: "GET",
|
|
11
10
|
path: "/collections/{collectionName}/documents/search",
|
|
12
11
|
}));
|
|
13
|
-
// Output Schema
|
|
14
12
|
export const SearchCollectionOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
13
|
facet_counts: Schema.optional(Schema.Array(Schema.Struct({
|
|
16
14
|
counts: Schema.optional(Schema.Array(Schema.Struct({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchCollection.js","sourceRoot":"","sources":["../../src/operations/searchCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"searchCollection.js","sourceRoot":"","sources":["../../src/operations/searchCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAOpD,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC7E,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACjD,gBAAgB,EAAE,MAAM,CAAC,MAAM;CAChC,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,gDAAgD;CACvD,CAAC,CAC+C,CAAC;AA2GpD,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAC7E;IACE,YAAY,EAAE,MAAM,CAAC,QAAQ,C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xC,CAAC,CAAC,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
export
|
|
2
|
+
export interface TakeSnapshotInput {
|
|
3
|
+
snapshot_path: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const TakeSnapshotInput: Schema.Codec<TakeSnapshotInput>;
|
|
6
|
+
export interface TakeSnapshotOutput {
|
|
7
|
+
success: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const TakeSnapshotOutput: Schema.Codec<TakeSnapshotOutput>;
|
|
10
10
|
/**
|
|
11
11
|
* Creates a point-in-time snapshot of a Typesense node's state and data in the specified directory.
|
|
12
12
|
*
|
|
@@ -14,9 +14,5 @@ export type TakeSnapshotOutput = typeof TakeSnapshotOutput.Type;
|
|
|
14
14
|
*
|
|
15
15
|
* @param snapshot_path - The directory on the server where the snapshot should be saved.
|
|
16
16
|
*/
|
|
17
|
-
export declare const takeSnapshot: import("@distilled.cloud/core/client").OperationMethod<
|
|
18
|
-
readonly snapshot_path: string;
|
|
19
|
-
}, {
|
|
20
|
-
readonly success: boolean;
|
|
21
|
-
}, never, import("~/credentials.ts").Credentials, never>;
|
|
17
|
+
export declare const takeSnapshot: import("@distilled.cloud/core/client").OperationMethod<TakeSnapshotInput, TakeSnapshotOutput, never, import("../credentials.ts").Credentials, never>;
|
|
22
18
|
//# sourceMappingURL=takeSnapshot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"takeSnapshot.d.ts","sourceRoot":"","sources":["../../src/operations/takeSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,
|
|
1
|
+
{"version":3,"file":"takeSnapshot.d.ts","sourceRoot":"","sources":["../../src/operations/takeSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,iBAAiB;IAChC,aAAa,EAAE,MAAM,CAAC;CACvB;AACD,eAAO,MAAM,iBAAiB,EAId,MAAM,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;AAGhD,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;CAClB;AACD,eAAO,MAAM,kBAAkB,EAEd,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;AAGlD;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,sJAGtB,CAAC"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { API } from "../client.js";
|
|
3
3
|
import * as T from "../traits.js";
|
|
4
|
-
// Input Schema
|
|
5
4
|
export const TakeSnapshotInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
5
|
snapshot_path: Schema.String,
|
|
7
6
|
}).pipe(T.Http({ method: "POST", path: "/operations/snapshot" }));
|
|
8
|
-
// Output Schema
|
|
9
7
|
export const TakeSnapshotOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
10
8
|
success: Schema.Boolean,
|
|
11
9
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"takeSnapshot.js","sourceRoot":"","sources":["../../src/operations/takeSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"takeSnapshot.js","sourceRoot":"","sources":["../../src/operations/takeSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAMlC,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACzE,aAAa,EAAE,MAAM,CAAC,MAAM;CAC7B,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC,CACX,CAAC;AAMhD,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1E,OAAO,EAAE,MAAM,CAAC,OAAO;CACxB,CAAgD,CAAC;AAElD,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACtE,WAAW,EAAE,iBAAiB;IAC9B,YAAY,EAAE,kBAAkB;CACjC,CAAC,CAAC,CAAC"}
|
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
export
|
|
2
|
+
export interface ToggleSlowRequestLogInput {
|
|
3
|
+
"log-slow-requests-time-ms": number;
|
|
4
|
+
}
|
|
5
|
+
export declare const ToggleSlowRequestLogInput: Schema.Codec<ToggleSlowRequestLogInput>;
|
|
6
|
+
export interface ToggleSlowRequestLogOutput {
|
|
7
|
+
success: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const ToggleSlowRequestLogOutput: Schema.Codec<ToggleSlowRequestLogOutput>;
|
|
10
10
|
/**
|
|
11
11
|
* Toggle Slow Request Log
|
|
12
12
|
*
|
|
13
13
|
* Enable logging of requests that take over a defined threshold of time. Default is `-1` which disables slow request logging. Slow requests are logged to the primary log file, with the prefix SLOW REQUEST.
|
|
14
14
|
*/
|
|
15
|
-
export declare const toggleSlowRequestLog: import("@distilled.cloud/core/client").OperationMethod<
|
|
16
|
-
readonly "log-slow-requests-time-ms": number;
|
|
17
|
-
}, {
|
|
18
|
-
readonly success: boolean;
|
|
19
|
-
}, never, import("~/credentials.ts").Credentials, never>;
|
|
15
|
+
export declare const toggleSlowRequestLog: import("@distilled.cloud/core/client").OperationMethod<ToggleSlowRequestLogInput, ToggleSlowRequestLogOutput, never, import("../credentials.ts").Credentials, never>;
|
|
20
16
|
//# sourceMappingURL=toggleSlowRequestLog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggleSlowRequestLog.d.ts","sourceRoot":"","sources":["../../src/operations/toggleSlowRequestLog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,
|
|
1
|
+
{"version":3,"file":"toggleSlowRequestLog.d.ts","sourceRoot":"","sources":["../../src/operations/toggleSlowRequestLog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,yBAAyB;IACxC,2BAA2B,EAAE,MAAM,CAAC;CACrC;AACD,eAAO,MAAM,yBAAyB,EAKpB,MAAM,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;AAG1D,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,OAAO,CAAC;CAClB;AACD,eAAO,MAAM,0BAA0B,EAGpB,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;AAG5D;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,sKAKhC,CAAC"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { API } from "../client.js";
|
|
3
3
|
import * as T from "../traits.js";
|
|
4
|
-
// Input Schema
|
|
5
4
|
export const ToggleSlowRequestLogInput =
|
|
6
5
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
6
|
"log-slow-requests-time-ms": Schema.Number,
|
|
8
7
|
}).pipe(T.Http({ method: "POST", path: "/config" }));
|
|
9
|
-
// Output Schema
|
|
10
8
|
export const ToggleSlowRequestLogOutput =
|
|
11
9
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
12
10
|
success: Schema.Boolean,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggleSlowRequestLog.js","sourceRoot":"","sources":["../../src/operations/toggleSlowRequestLog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"toggleSlowRequestLog.js","sourceRoot":"","sources":["../../src/operations/toggleSlowRequestLog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAMlC,MAAM,CAAC,MAAM,yBAAyB;AACpC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,2BAA2B,EAAE,MAAM,CAAC,MAAM;CAC3C,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CACU,CAAC;AAM1D,MAAM,CAAC,MAAM,0BAA0B;AACrC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC,OAAO;CACxB,CAAwD,CAAC;AAE5D,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CACtE,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,yBAAyB;IACtC,YAAY,EAAE,0BAA0B;CACzC,CAAC,CACH,CAAC"}
|