@distilled.cloud/typesense 0.27.0 → 0.28.1
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
|
@@ -4,6 +4,10 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface DeleteSynonymSetItemInput {
|
|
8
|
+
synonymSetName: string;
|
|
9
|
+
itemId: string;
|
|
10
|
+
}
|
|
7
11
|
export const DeleteSynonymSetItemInput =
|
|
8
12
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
13
|
synonymSetName: Schema.String.pipe(T.PathParam()),
|
|
@@ -13,15 +17,16 @@ export const DeleteSynonymSetItemInput =
|
|
|
13
17
|
method: "DELETE",
|
|
14
18
|
path: "/synonym_sets/{synonymSetName}/items/{itemId}",
|
|
15
19
|
}),
|
|
16
|
-
)
|
|
17
|
-
export type DeleteSynonymSetItemInput = typeof DeleteSynonymSetItemInput.Type;
|
|
20
|
+
) as unknown as Schema.Codec<DeleteSynonymSetItemInput>;
|
|
18
21
|
|
|
19
22
|
// Output Schema
|
|
23
|
+
export interface DeleteSynonymSetItemOutput {
|
|
24
|
+
id: string;
|
|
25
|
+
}
|
|
20
26
|
export const DeleteSynonymSetItemOutput =
|
|
21
27
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
22
28
|
id: Schema.String,
|
|
23
|
-
})
|
|
24
|
-
export type DeleteSynonymSetItemOutput = typeof DeleteSynonymSetItemOutput.Type;
|
|
29
|
+
}) as unknown as Schema.Codec<DeleteSynonymSetItemOutput>;
|
|
25
30
|
|
|
26
31
|
// The operation
|
|
27
32
|
/**
|
|
@@ -4,6 +4,10 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface ExportDocumentsInput {
|
|
8
|
+
collectionName: string;
|
|
9
|
+
exportDocumentsParameters?: string;
|
|
10
|
+
}
|
|
7
11
|
export const ExportDocumentsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
12
|
collectionName: Schema.String.pipe(T.PathParam()),
|
|
9
13
|
exportDocumentsParameters: Schema.optional(Schema.String),
|
|
@@ -12,12 +16,12 @@ export const ExportDocumentsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
12
16
|
method: "GET",
|
|
13
17
|
path: "/collections/{collectionName}/documents/export",
|
|
14
18
|
}),
|
|
15
|
-
)
|
|
16
|
-
export type ExportDocumentsInput = typeof ExportDocumentsInput.Type;
|
|
19
|
+
) as unknown as Schema.Codec<ExportDocumentsInput>;
|
|
17
20
|
|
|
18
21
|
// Output Schema
|
|
19
|
-
export
|
|
20
|
-
export
|
|
22
|
+
export type ExportDocumentsOutput = void;
|
|
23
|
+
export const ExportDocumentsOutput =
|
|
24
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Void as unknown as Schema.Codec<ExportDocumentsOutput>;
|
|
21
25
|
|
|
22
26
|
// The operation
|
|
23
27
|
/**
|
|
@@ -3,16 +3,20 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
|
+
export interface FlushAnalyticsInput {}
|
|
6
7
|
export const FlushAnalyticsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
7
8
|
{},
|
|
8
|
-
).pipe(
|
|
9
|
-
|
|
9
|
+
).pipe(
|
|
10
|
+
T.Http({ method: "POST", path: "/analytics/flush" }),
|
|
11
|
+
) as unknown as Schema.Codec<FlushAnalyticsInput>;
|
|
10
12
|
|
|
11
13
|
// Output Schema
|
|
14
|
+
export interface FlushAnalyticsOutput {
|
|
15
|
+
ok: boolean;
|
|
16
|
+
}
|
|
12
17
|
export const FlushAnalyticsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
18
|
ok: Schema.Boolean,
|
|
14
|
-
})
|
|
15
|
-
export type FlushAnalyticsOutput = typeof FlushAnalyticsOutput.Type;
|
|
19
|
+
}) as unknown as Schema.Codec<FlushAnalyticsOutput>;
|
|
16
20
|
|
|
17
21
|
// The operation
|
|
18
22
|
/**
|
|
@@ -4,17 +4,24 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface GetAliasInput {
|
|
8
|
+
aliasName: string;
|
|
9
|
+
}
|
|
7
10
|
export const GetAliasInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
11
|
aliasName: Schema.String.pipe(T.PathParam()),
|
|
9
|
-
}).pipe(
|
|
10
|
-
|
|
12
|
+
}).pipe(
|
|
13
|
+
T.Http({ method: "GET", path: "/aliases/{aliasName}" }),
|
|
14
|
+
) as unknown as Schema.Codec<GetAliasInput>;
|
|
11
15
|
|
|
12
16
|
// Output Schema
|
|
17
|
+
export interface GetAliasOutput {
|
|
18
|
+
name: string;
|
|
19
|
+
collection_name: string;
|
|
20
|
+
}
|
|
13
21
|
export const GetAliasOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14
22
|
name: Schema.String,
|
|
15
23
|
collection_name: Schema.String,
|
|
16
|
-
})
|
|
17
|
-
export type GetAliasOutput = typeof GetAliasOutput.Type;
|
|
24
|
+
}) as unknown as Schema.Codec<GetAliasOutput>;
|
|
18
25
|
|
|
19
26
|
// The operation
|
|
20
27
|
/**
|
|
@@ -3,12 +3,17 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
|
+
export interface GetAliasesInput {}
|
|
6
7
|
export const GetAliasesInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
7
8
|
{},
|
|
8
|
-
).pipe(
|
|
9
|
-
|
|
9
|
+
).pipe(
|
|
10
|
+
T.Http({ method: "GET", path: "/aliases" }),
|
|
11
|
+
) as unknown as Schema.Codec<GetAliasesInput>;
|
|
10
12
|
|
|
11
13
|
// Output Schema
|
|
14
|
+
export interface GetAliasesOutput {
|
|
15
|
+
aliases: { name: string; collection_name: string }[];
|
|
16
|
+
}
|
|
12
17
|
export const GetAliasesOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
18
|
aliases: Schema.Array(
|
|
14
19
|
Schema.Struct({
|
|
@@ -16,8 +21,7 @@ export const GetAliasesOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
16
21
|
collection_name: Schema.String,
|
|
17
22
|
}),
|
|
18
23
|
),
|
|
19
|
-
})
|
|
20
|
-
export type GetAliasesOutput = typeof GetAliasesOutput.Type;
|
|
24
|
+
}) as unknown as Schema.Codec<GetAliasesOutput>;
|
|
21
25
|
|
|
22
26
|
// The operation
|
|
23
27
|
/**
|
|
@@ -4,15 +4,33 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { BadRequest } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface GetAnalyticsEventsInput {
|
|
8
|
+
user_id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
n: number;
|
|
11
|
+
}
|
|
7
12
|
export const GetAnalyticsEventsInput =
|
|
8
13
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
14
|
user_id: Schema.String,
|
|
10
15
|
name: Schema.String,
|
|
11
16
|
n: Schema.Number,
|
|
12
|
-
}).pipe(
|
|
13
|
-
|
|
17
|
+
}).pipe(
|
|
18
|
+
T.Http({ method: "GET", path: "/analytics/events" }),
|
|
19
|
+
) as unknown as Schema.Codec<GetAnalyticsEventsInput>;
|
|
14
20
|
|
|
15
21
|
// Output Schema
|
|
22
|
+
export interface GetAnalyticsEventsOutput {
|
|
23
|
+
events: {
|
|
24
|
+
name?: string;
|
|
25
|
+
event_type?: string;
|
|
26
|
+
collection?: string;
|
|
27
|
+
timestamp?: number;
|
|
28
|
+
user_id?: string;
|
|
29
|
+
doc_id?: string;
|
|
30
|
+
doc_ids?: string[];
|
|
31
|
+
query?: string;
|
|
32
|
+
}[];
|
|
33
|
+
}
|
|
16
34
|
export const GetAnalyticsEventsOutput =
|
|
17
35
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
18
36
|
events: Schema.Array(
|
|
@@ -27,8 +45,7 @@ export const GetAnalyticsEventsOutput =
|
|
|
27
45
|
query: Schema.optional(Schema.String),
|
|
28
46
|
}),
|
|
29
47
|
),
|
|
30
|
-
})
|
|
31
|
-
export type GetAnalyticsEventsOutput = typeof GetAnalyticsEventsOutput.Type;
|
|
48
|
+
}) as unknown as Schema.Codec<GetAnalyticsEventsOutput>;
|
|
32
49
|
|
|
33
50
|
// The operation
|
|
34
51
|
/**
|
|
@@ -3,13 +3,22 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
|
+
export interface GetAnalyticsStatusInput {}
|
|
6
7
|
export const GetAnalyticsStatusInput =
|
|
7
8
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
8
9
|
T.Http({ method: "GET", path: "/analytics/status" }),
|
|
9
|
-
)
|
|
10
|
-
export type GetAnalyticsStatusInput = typeof GetAnalyticsStatusInput.Type;
|
|
10
|
+
) as unknown as Schema.Codec<GetAnalyticsStatusInput>;
|
|
11
11
|
|
|
12
12
|
// Output Schema
|
|
13
|
+
export interface GetAnalyticsStatusOutput {
|
|
14
|
+
popular_prefix_queries?: number;
|
|
15
|
+
nohits_prefix_queries?: number;
|
|
16
|
+
log_prefix_queries?: number;
|
|
17
|
+
query_log_events?: number;
|
|
18
|
+
query_counter_events?: number;
|
|
19
|
+
doc_log_events?: number;
|
|
20
|
+
doc_counter_events?: number;
|
|
21
|
+
}
|
|
13
22
|
export const GetAnalyticsStatusOutput =
|
|
14
23
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
24
|
popular_prefix_queries: Schema.optional(Schema.Number),
|
|
@@ -19,8 +28,7 @@ export const GetAnalyticsStatusOutput =
|
|
|
19
28
|
query_counter_events: Schema.optional(Schema.Number),
|
|
20
29
|
doc_log_events: Schema.optional(Schema.Number),
|
|
21
30
|
doc_counter_events: Schema.optional(Schema.Number),
|
|
22
|
-
})
|
|
23
|
-
export type GetAnalyticsStatusOutput = typeof GetAnalyticsStatusOutput.Type;
|
|
31
|
+
}) as unknown as Schema.Codec<GetAnalyticsStatusOutput>;
|
|
24
32
|
|
|
25
33
|
// The operation
|
|
26
34
|
/**
|
|
@@ -2,15 +2,68 @@ import * as Schema from "effect/Schema";
|
|
|
2
2
|
import { API } from "../client.ts";
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
|
-
import {
|
|
5
|
+
import { SensitiveOutputString } from "../sensitive.ts";
|
|
6
|
+
import * as Redacted from "effect/Redacted";
|
|
6
7
|
|
|
7
8
|
// Input Schema
|
|
9
|
+
export interface GetCollectionInput {
|
|
10
|
+
collectionName: string;
|
|
11
|
+
}
|
|
8
12
|
export const GetCollectionInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
13
|
collectionName: Schema.String.pipe(T.PathParam()),
|
|
10
|
-
}).pipe(
|
|
11
|
-
|
|
14
|
+
}).pipe(
|
|
15
|
+
T.Http({ method: "GET", path: "/collections/{collectionName}" }),
|
|
16
|
+
) as unknown as Schema.Codec<GetCollectionInput>;
|
|
12
17
|
|
|
13
18
|
// Output Schema
|
|
19
|
+
export interface GetCollectionOutput {
|
|
20
|
+
name: string;
|
|
21
|
+
fields: {
|
|
22
|
+
name: string;
|
|
23
|
+
type: string;
|
|
24
|
+
optional?: boolean;
|
|
25
|
+
facet?: boolean;
|
|
26
|
+
index?: boolean;
|
|
27
|
+
locale?: string;
|
|
28
|
+
sort?: boolean;
|
|
29
|
+
infix?: boolean;
|
|
30
|
+
reference?: string;
|
|
31
|
+
async_reference?: boolean;
|
|
32
|
+
num_dim?: number;
|
|
33
|
+
drop?: boolean;
|
|
34
|
+
store?: boolean;
|
|
35
|
+
vec_dist?: string;
|
|
36
|
+
range_index?: boolean;
|
|
37
|
+
stem?: boolean;
|
|
38
|
+
stem_dictionary?: string;
|
|
39
|
+
token_separators?: string[];
|
|
40
|
+
symbols_to_index?: string[];
|
|
41
|
+
embed?: {
|
|
42
|
+
from: string[];
|
|
43
|
+
model_config: {
|
|
44
|
+
model_name: string;
|
|
45
|
+
api_key?: Redacted.Redacted<string>;
|
|
46
|
+
url?: string;
|
|
47
|
+
access_token?: Redacted.Redacted<string>;
|
|
48
|
+
refresh_token?: Redacted.Redacted<string>;
|
|
49
|
+
client_id?: string;
|
|
50
|
+
client_secret?: Redacted.Redacted<string>;
|
|
51
|
+
project_id?: string;
|
|
52
|
+
indexing_prefix?: string;
|
|
53
|
+
query_prefix?: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
}[];
|
|
57
|
+
default_sorting_field?: string;
|
|
58
|
+
token_separators?: string[];
|
|
59
|
+
synonym_sets?: string[];
|
|
60
|
+
enable_nested_fields?: boolean;
|
|
61
|
+
symbols_to_index?: string[];
|
|
62
|
+
voice_query_model?: { model_name?: string };
|
|
63
|
+
metadata?: unknown;
|
|
64
|
+
num_documents: number;
|
|
65
|
+
created_at: number;
|
|
66
|
+
}
|
|
14
67
|
export const GetCollectionOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
68
|
name: Schema.String,
|
|
16
69
|
fields: Schema.Array(
|
|
@@ -39,12 +92,12 @@ export const GetCollectionOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
39
92
|
from: Schema.Array(Schema.String),
|
|
40
93
|
model_config: Schema.Struct({
|
|
41
94
|
model_name: Schema.String,
|
|
42
|
-
api_key: Schema.optional(
|
|
95
|
+
api_key: Schema.optional(SensitiveOutputString),
|
|
43
96
|
url: Schema.optional(Schema.String),
|
|
44
|
-
access_token: Schema.optional(
|
|
45
|
-
refresh_token: Schema.optional(
|
|
97
|
+
access_token: Schema.optional(SensitiveOutputString),
|
|
98
|
+
refresh_token: Schema.optional(SensitiveOutputString),
|
|
46
99
|
client_id: Schema.optional(Schema.String),
|
|
47
|
-
client_secret: Schema.optional(
|
|
100
|
+
client_secret: Schema.optional(SensitiveOutputString),
|
|
48
101
|
project_id: Schema.optional(Schema.String),
|
|
49
102
|
indexing_prefix: Schema.optional(Schema.String),
|
|
50
103
|
query_prefix: Schema.optional(Schema.String),
|
|
@@ -66,8 +119,7 @@ export const GetCollectionOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
66
119
|
metadata: Schema.optional(Schema.Unknown),
|
|
67
120
|
num_documents: Schema.Number,
|
|
68
121
|
created_at: Schema.Number,
|
|
69
|
-
})
|
|
70
|
-
export type GetCollectionOutput = typeof GetCollectionOutput.Type;
|
|
122
|
+
}) as unknown as Schema.Codec<GetCollectionOutput>;
|
|
71
123
|
|
|
72
124
|
// The operation
|
|
73
125
|
/**
|
|
@@ -1,15 +1,68 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { API } from "../client.ts";
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
|
-
import {
|
|
4
|
+
import { SensitiveOutputString } from "../sensitive.ts";
|
|
5
|
+
import * as Redacted from "effect/Redacted";
|
|
5
6
|
|
|
6
7
|
// Input Schema
|
|
8
|
+
export interface GetCollectionsInput {
|
|
9
|
+
getCollectionsParameters?: string;
|
|
10
|
+
}
|
|
7
11
|
export const GetCollectionsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
12
|
getCollectionsParameters: Schema.optional(Schema.String),
|
|
9
|
-
}).pipe(
|
|
10
|
-
|
|
13
|
+
}).pipe(
|
|
14
|
+
T.Http({ method: "GET", path: "/collections" }),
|
|
15
|
+
) as unknown as Schema.Codec<GetCollectionsInput>;
|
|
11
16
|
|
|
12
17
|
// Output Schema
|
|
18
|
+
export type GetCollectionsOutput = {
|
|
19
|
+
name: string;
|
|
20
|
+
fields: {
|
|
21
|
+
name: string;
|
|
22
|
+
type: string;
|
|
23
|
+
optional?: boolean;
|
|
24
|
+
facet?: boolean;
|
|
25
|
+
index?: boolean;
|
|
26
|
+
locale?: string;
|
|
27
|
+
sort?: boolean;
|
|
28
|
+
infix?: boolean;
|
|
29
|
+
reference?: string;
|
|
30
|
+
async_reference?: boolean;
|
|
31
|
+
num_dim?: number;
|
|
32
|
+
drop?: boolean;
|
|
33
|
+
store?: boolean;
|
|
34
|
+
vec_dist?: string;
|
|
35
|
+
range_index?: boolean;
|
|
36
|
+
stem?: boolean;
|
|
37
|
+
stem_dictionary?: string;
|
|
38
|
+
token_separators?: string[];
|
|
39
|
+
symbols_to_index?: string[];
|
|
40
|
+
embed?: {
|
|
41
|
+
from: string[];
|
|
42
|
+
model_config: {
|
|
43
|
+
model_name: string;
|
|
44
|
+
api_key?: Redacted.Redacted<string>;
|
|
45
|
+
url?: string;
|
|
46
|
+
access_token?: Redacted.Redacted<string>;
|
|
47
|
+
refresh_token?: Redacted.Redacted<string>;
|
|
48
|
+
client_id?: string;
|
|
49
|
+
client_secret?: Redacted.Redacted<string>;
|
|
50
|
+
project_id?: string;
|
|
51
|
+
indexing_prefix?: string;
|
|
52
|
+
query_prefix?: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
}[];
|
|
56
|
+
default_sorting_field?: string;
|
|
57
|
+
token_separators?: string[];
|
|
58
|
+
synonym_sets?: string[];
|
|
59
|
+
enable_nested_fields?: boolean;
|
|
60
|
+
symbols_to_index?: string[];
|
|
61
|
+
voice_query_model?: { model_name?: string };
|
|
62
|
+
metadata?: unknown;
|
|
63
|
+
num_documents: number;
|
|
64
|
+
created_at: number;
|
|
65
|
+
}[];
|
|
13
66
|
export const GetCollectionsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
14
67
|
Schema.Struct({
|
|
15
68
|
name: Schema.String,
|
|
@@ -39,12 +92,12 @@ export const GetCollectionsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
39
92
|
from: Schema.Array(Schema.String),
|
|
40
93
|
model_config: Schema.Struct({
|
|
41
94
|
model_name: Schema.String,
|
|
42
|
-
api_key: Schema.optional(
|
|
95
|
+
api_key: Schema.optional(SensitiveOutputString),
|
|
43
96
|
url: Schema.optional(Schema.String),
|
|
44
|
-
access_token: Schema.optional(
|
|
45
|
-
refresh_token: Schema.optional(
|
|
97
|
+
access_token: Schema.optional(SensitiveOutputString),
|
|
98
|
+
refresh_token: Schema.optional(SensitiveOutputString),
|
|
46
99
|
client_id: Schema.optional(Schema.String),
|
|
47
|
-
client_secret: Schema.optional(
|
|
100
|
+
client_secret: Schema.optional(SensitiveOutputString),
|
|
48
101
|
project_id: Schema.optional(Schema.String),
|
|
49
102
|
indexing_prefix: Schema.optional(Schema.String),
|
|
50
103
|
query_prefix: Schema.optional(Schema.String),
|
|
@@ -67,8 +120,7 @@ export const GetCollectionsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
67
120
|
num_documents: Schema.Number,
|
|
68
121
|
created_at: Schema.Number,
|
|
69
122
|
}),
|
|
70
|
-
)
|
|
71
|
-
export type GetCollectionsOutput = typeof GetCollectionsOutput.Type;
|
|
123
|
+
) as unknown as Schema.Codec<GetCollectionsOutput>;
|
|
72
124
|
|
|
73
125
|
// The operation
|
|
74
126
|
/**
|
|
@@ -4,6 +4,10 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface GetDocumentInput {
|
|
8
|
+
collectionName: string;
|
|
9
|
+
documentId: string;
|
|
10
|
+
}
|
|
7
11
|
export const GetDocumentInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
12
|
collectionName: Schema.String.pipe(T.PathParam()),
|
|
9
13
|
documentId: Schema.String.pipe(T.PathParam()),
|
|
@@ -12,12 +16,12 @@ export const GetDocumentInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
12
16
|
method: "GET",
|
|
13
17
|
path: "/collections/{collectionName}/documents/{documentId}",
|
|
14
18
|
}),
|
|
15
|
-
)
|
|
16
|
-
export type GetDocumentInput = typeof GetDocumentInput.Type;
|
|
19
|
+
) as unknown as Schema.Codec<GetDocumentInput>;
|
|
17
20
|
|
|
18
21
|
// Output Schema
|
|
19
|
-
export
|
|
20
|
-
export
|
|
22
|
+
export type GetDocumentOutput = unknown;
|
|
23
|
+
export const GetDocumentOutput =
|
|
24
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Codec<GetDocumentOutput>;
|
|
21
25
|
|
|
22
26
|
// The operation
|
|
23
27
|
/**
|
package/src/operations/getKey.ts
CHANGED
|
@@ -4,12 +4,25 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface GetKeyInput {
|
|
8
|
+
keyId: number;
|
|
9
|
+
}
|
|
7
10
|
export const GetKeyInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
11
|
keyId: Schema.Number.pipe(T.PathParam()),
|
|
9
|
-
}).pipe(
|
|
10
|
-
|
|
12
|
+
}).pipe(
|
|
13
|
+
T.Http({ method: "GET", path: "/keys/{keyId}" }),
|
|
14
|
+
) as unknown as Schema.Codec<GetKeyInput>;
|
|
11
15
|
|
|
12
16
|
// Output Schema
|
|
17
|
+
export interface GetKeyOutput {
|
|
18
|
+
value?: string;
|
|
19
|
+
description: string;
|
|
20
|
+
actions: string[];
|
|
21
|
+
collections: string[];
|
|
22
|
+
expires_at?: number;
|
|
23
|
+
id?: number;
|
|
24
|
+
value_prefix?: string;
|
|
25
|
+
}
|
|
13
26
|
export const GetKeyOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14
27
|
value: Schema.optional(Schema.String),
|
|
15
28
|
description: Schema.String,
|
|
@@ -18,8 +31,7 @@ export const GetKeyOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
18
31
|
expires_at: Schema.optional(Schema.Number),
|
|
19
32
|
id: Schema.optional(Schema.Number),
|
|
20
33
|
value_prefix: Schema.optional(Schema.String),
|
|
21
|
-
})
|
|
22
|
-
export type GetKeyOutput = typeof GetKeyOutput.Type;
|
|
34
|
+
}) as unknown as Schema.Codec<GetKeyOutput>;
|
|
23
35
|
|
|
24
36
|
// The operation
|
|
25
37
|
/**
|
|
@@ -3,12 +3,23 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
|
+
export interface GetKeysInput {}
|
|
6
7
|
export const GetKeysInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
7
8
|
T.Http({ method: "GET", path: "/keys" }),
|
|
8
|
-
)
|
|
9
|
-
export type GetKeysInput = typeof GetKeysInput.Type;
|
|
9
|
+
) as unknown as Schema.Codec<GetKeysInput>;
|
|
10
10
|
|
|
11
11
|
// Output Schema
|
|
12
|
+
export interface GetKeysOutput {
|
|
13
|
+
keys: {
|
|
14
|
+
value?: string;
|
|
15
|
+
description: string;
|
|
16
|
+
actions: string[];
|
|
17
|
+
collections: string[];
|
|
18
|
+
expires_at?: number;
|
|
19
|
+
id?: number;
|
|
20
|
+
value_prefix?: string;
|
|
21
|
+
}[];
|
|
22
|
+
}
|
|
12
23
|
export const GetKeysOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
24
|
keys: Schema.Array(
|
|
14
25
|
Schema.Struct({
|
|
@@ -21,8 +32,7 @@ export const GetKeysOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
21
32
|
value_prefix: Schema.optional(Schema.String),
|
|
22
33
|
}),
|
|
23
34
|
),
|
|
24
|
-
})
|
|
25
|
-
export type GetKeysOutput = typeof GetKeysOutput.Type;
|
|
35
|
+
}) as unknown as Schema.Codec<GetKeysOutput>;
|
|
26
36
|
|
|
27
37
|
// The operation
|
|
28
38
|
/**
|
|
@@ -3,20 +3,26 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
|
+
export interface GetSchemaChangesInput {}
|
|
6
7
|
export const GetSchemaChangesInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
7
8
|
{},
|
|
8
|
-
).pipe(
|
|
9
|
-
|
|
9
|
+
).pipe(
|
|
10
|
+
T.Http({ method: "GET", path: "/operations/schema_changes" }),
|
|
11
|
+
) as unknown as Schema.Codec<GetSchemaChangesInput>;
|
|
10
12
|
|
|
11
13
|
// Output Schema
|
|
14
|
+
export type GetSchemaChangesOutput = {
|
|
15
|
+
collection?: string;
|
|
16
|
+
validated_docs?: number;
|
|
17
|
+
altered_docs?: number;
|
|
18
|
+
}[];
|
|
12
19
|
export const GetSchemaChangesOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
13
20
|
Schema.Struct({
|
|
14
21
|
collection: Schema.optional(Schema.String),
|
|
15
22
|
validated_docs: Schema.optional(Schema.Number),
|
|
16
23
|
altered_docs: Schema.optional(Schema.Number),
|
|
17
24
|
}),
|
|
18
|
-
)
|
|
19
|
-
export type GetSchemaChangesOutput = typeof GetSchemaChangesOutput.Type;
|
|
25
|
+
) as unknown as Schema.Codec<GetSchemaChangesOutput>;
|
|
20
26
|
|
|
21
27
|
// The operation
|
|
22
28
|
/**
|
|
@@ -4,15 +4,21 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface GetStemmingDictionaryInput {
|
|
8
|
+
dictionaryId: string;
|
|
9
|
+
}
|
|
7
10
|
export const GetStemmingDictionaryInput =
|
|
8
11
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
12
|
dictionaryId: Schema.String.pipe(T.PathParam()),
|
|
10
13
|
}).pipe(
|
|
11
14
|
T.Http({ method: "GET", path: "/stemming/dictionaries/{dictionaryId}" }),
|
|
12
|
-
)
|
|
13
|
-
export type GetStemmingDictionaryInput = typeof GetStemmingDictionaryInput.Type;
|
|
15
|
+
) as unknown as Schema.Codec<GetStemmingDictionaryInput>;
|
|
14
16
|
|
|
15
17
|
// Output Schema
|
|
18
|
+
export interface GetStemmingDictionaryOutput {
|
|
19
|
+
id: string;
|
|
20
|
+
words: { word: string; root: string }[];
|
|
21
|
+
}
|
|
16
22
|
export const GetStemmingDictionaryOutput =
|
|
17
23
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
18
24
|
id: Schema.String,
|
|
@@ -22,9 +28,7 @@ export const GetStemmingDictionaryOutput =
|
|
|
22
28
|
root: Schema.String,
|
|
23
29
|
}),
|
|
24
30
|
),
|
|
25
|
-
})
|
|
26
|
-
export type GetStemmingDictionaryOutput =
|
|
27
|
-
typeof GetStemmingDictionaryOutput.Type;
|
|
31
|
+
}) as unknown as Schema.Codec<GetStemmingDictionaryOutput>;
|
|
28
32
|
|
|
29
33
|
// The operation
|
|
30
34
|
/**
|
package/src/operations/health.ts
CHANGED
|
@@ -3,16 +3,18 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
|
+
export interface HealthInput {}
|
|
6
7
|
export const HealthInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
7
8
|
T.Http({ method: "GET", path: "/health" }),
|
|
8
|
-
)
|
|
9
|
-
export type HealthInput = typeof HealthInput.Type;
|
|
9
|
+
) as unknown as Schema.Codec<HealthInput>;
|
|
10
10
|
|
|
11
11
|
// Output Schema
|
|
12
|
+
export interface HealthOutput {
|
|
13
|
+
ok: boolean;
|
|
14
|
+
}
|
|
12
15
|
export const HealthOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
16
|
ok: Schema.Boolean,
|
|
14
|
-
})
|
|
15
|
-
export type HealthOutput = typeof HealthOutput.Type;
|
|
17
|
+
}) as unknown as Schema.Codec<HealthOutput>;
|
|
16
18
|
|
|
17
19
|
// The operation
|
|
18
20
|
/**
|
|
@@ -4,6 +4,10 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { BadRequest, NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface ImportDocumentsInput {
|
|
8
|
+
collectionName: string;
|
|
9
|
+
importDocumentsParameters?: string;
|
|
10
|
+
}
|
|
7
11
|
export const ImportDocumentsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
12
|
collectionName: Schema.String.pipe(T.PathParam()),
|
|
9
13
|
importDocumentsParameters: Schema.optional(Schema.String),
|
|
@@ -12,12 +16,12 @@ export const ImportDocumentsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
12
16
|
method: "POST",
|
|
13
17
|
path: "/collections/{collectionName}/documents/import",
|
|
14
18
|
}),
|
|
15
|
-
)
|
|
16
|
-
export type ImportDocumentsInput = typeof ImportDocumentsInput.Type;
|
|
19
|
+
) as unknown as Schema.Codec<ImportDocumentsInput>;
|
|
17
20
|
|
|
18
21
|
// Output Schema
|
|
19
|
-
export
|
|
20
|
-
export
|
|
22
|
+
export type ImportDocumentsOutput = void;
|
|
23
|
+
export const ImportDocumentsOutput =
|
|
24
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Void as unknown as Schema.Codec<ImportDocumentsOutput>;
|
|
21
25
|
|
|
22
26
|
// The operation
|
|
23
27
|
/**
|