@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
|
@@ -3,8 +3,20 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
import { BadRequest } from "../errors.ts";
|
|
5
5
|
import { SensitiveString } from "../sensitive.ts";
|
|
6
|
+
import * as Redacted from "effect/Redacted";
|
|
6
7
|
|
|
7
8
|
// Input Schema
|
|
9
|
+
export interface CreateConversationModelInput {
|
|
10
|
+
id?: string;
|
|
11
|
+
model_name: string;
|
|
12
|
+
api_key?: string | Redacted.Redacted<string>;
|
|
13
|
+
history_collection: string;
|
|
14
|
+
account_id?: string;
|
|
15
|
+
system_prompt?: string;
|
|
16
|
+
ttl?: number;
|
|
17
|
+
max_bytes: number;
|
|
18
|
+
vllm_url?: string;
|
|
19
|
+
}
|
|
8
20
|
export const CreateConversationModelInput =
|
|
9
21
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
10
22
|
id: Schema.optional(Schema.String),
|
|
@@ -16,17 +28,18 @@ export const CreateConversationModelInput =
|
|
|
16
28
|
ttl: Schema.optional(Schema.Number),
|
|
17
29
|
max_bytes: Schema.Number,
|
|
18
30
|
vllm_url: Schema.optional(Schema.String),
|
|
19
|
-
}).pipe(
|
|
20
|
-
|
|
21
|
-
|
|
31
|
+
}).pipe(
|
|
32
|
+
T.Http({ method: "POST", path: "/conversations/models" }),
|
|
33
|
+
) as unknown as Schema.Codec<CreateConversationModelInput>;
|
|
22
34
|
|
|
23
35
|
// Output Schema
|
|
36
|
+
export interface CreateConversationModelOutput {
|
|
37
|
+
id: string;
|
|
38
|
+
}
|
|
24
39
|
export const CreateConversationModelOutput =
|
|
25
40
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
26
41
|
id: Schema.String,
|
|
27
|
-
})
|
|
28
|
-
export type CreateConversationModelOutput =
|
|
29
|
-
typeof CreateConversationModelOutput.Type;
|
|
42
|
+
}) as unknown as Schema.Codec<CreateConversationModelOutput>;
|
|
30
43
|
|
|
31
44
|
// The operation
|
|
32
45
|
/**
|
|
@@ -4,16 +4,33 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { BadRequest, Conflict } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface CreateKeyInput {
|
|
8
|
+
value?: string;
|
|
9
|
+
description: string;
|
|
10
|
+
actions: string[];
|
|
11
|
+
collections: string[];
|
|
12
|
+
expires_at?: number;
|
|
13
|
+
}
|
|
7
14
|
export const CreateKeyInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
15
|
value: Schema.optional(Schema.String),
|
|
9
16
|
description: Schema.String,
|
|
10
17
|
actions: Schema.Array(Schema.String),
|
|
11
18
|
collections: Schema.Array(Schema.String),
|
|
12
19
|
expires_at: Schema.optional(Schema.Number),
|
|
13
|
-
}).pipe(
|
|
14
|
-
|
|
20
|
+
}).pipe(
|
|
21
|
+
T.Http({ method: "POST", path: "/keys" }),
|
|
22
|
+
) as unknown as Schema.Codec<CreateKeyInput>;
|
|
15
23
|
|
|
16
24
|
// Output Schema
|
|
25
|
+
export interface CreateKeyOutput {
|
|
26
|
+
value?: string;
|
|
27
|
+
description: string;
|
|
28
|
+
actions: string[];
|
|
29
|
+
collections: string[];
|
|
30
|
+
expires_at?: number;
|
|
31
|
+
id?: number;
|
|
32
|
+
value_prefix?: string;
|
|
33
|
+
}
|
|
17
34
|
export const CreateKeyOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
18
35
|
value: Schema.optional(Schema.String),
|
|
19
36
|
description: Schema.String,
|
|
@@ -22,8 +39,7 @@ export const CreateKeyOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
22
39
|
expires_at: Schema.optional(Schema.Number),
|
|
23
40
|
id: Schema.optional(Schema.Number),
|
|
24
41
|
value_prefix: Schema.optional(Schema.String),
|
|
25
|
-
})
|
|
26
|
-
export type CreateKeyOutput = typeof CreateKeyOutput.Type;
|
|
42
|
+
}) as unknown as Schema.Codec<CreateKeyOutput>;
|
|
27
43
|
|
|
28
44
|
// The operation
|
|
29
45
|
/**
|
|
@@ -3,8 +3,30 @@ import { API } from "../client.ts";
|
|
|
3
3
|
import * as T from "../traits.ts";
|
|
4
4
|
import { BadRequest } from "../errors.ts";
|
|
5
5
|
import { SensitiveString } from "../sensitive.ts";
|
|
6
|
+
import * as Redacted from "effect/Redacted";
|
|
6
7
|
|
|
7
8
|
// Input Schema
|
|
9
|
+
export interface CreateNLSearchModelInput {
|
|
10
|
+
model_name?: string;
|
|
11
|
+
api_key?: string | Redacted.Redacted<string>;
|
|
12
|
+
api_url?: string;
|
|
13
|
+
max_bytes?: number;
|
|
14
|
+
temperature?: number;
|
|
15
|
+
system_prompt?: string;
|
|
16
|
+
top_p?: number;
|
|
17
|
+
top_k?: number;
|
|
18
|
+
stop_sequences?: string[];
|
|
19
|
+
api_version?: string;
|
|
20
|
+
project_id?: string;
|
|
21
|
+
access_token?: string | Redacted.Redacted<string>;
|
|
22
|
+
refresh_token?: string | Redacted.Redacted<string>;
|
|
23
|
+
client_id?: string;
|
|
24
|
+
client_secret?: string | Redacted.Redacted<string>;
|
|
25
|
+
region?: string;
|
|
26
|
+
max_output_tokens?: number;
|
|
27
|
+
account_id?: string;
|
|
28
|
+
id?: string;
|
|
29
|
+
}
|
|
8
30
|
export const CreateNLSearchModelInput =
|
|
9
31
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
10
32
|
model_name: Schema.optional(Schema.String),
|
|
@@ -26,15 +48,18 @@ export const CreateNLSearchModelInput =
|
|
|
26
48
|
max_output_tokens: Schema.optional(Schema.Number),
|
|
27
49
|
account_id: Schema.optional(Schema.String),
|
|
28
50
|
id: Schema.optional(Schema.String),
|
|
29
|
-
}).pipe(
|
|
30
|
-
|
|
51
|
+
}).pipe(
|
|
52
|
+
T.Http({ method: "POST", path: "/nl_search_models" }),
|
|
53
|
+
) as unknown as Schema.Codec<CreateNLSearchModelInput>;
|
|
31
54
|
|
|
32
55
|
// Output Schema
|
|
56
|
+
export interface CreateNLSearchModelOutput {
|
|
57
|
+
id: string;
|
|
58
|
+
}
|
|
33
59
|
export const CreateNLSearchModelOutput =
|
|
34
60
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
35
61
|
id: Schema.String,
|
|
36
|
-
})
|
|
37
|
-
export type CreateNLSearchModelOutput = typeof CreateNLSearchModelOutput.Type;
|
|
62
|
+
}) as unknown as Schema.Codec<CreateNLSearchModelOutput>;
|
|
38
63
|
|
|
39
64
|
// The operation
|
|
40
65
|
/**
|
package/src/operations/debug.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 DebugInput {}
|
|
6
7
|
export const DebugInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
7
8
|
T.Http({ method: "GET", path: "/debug" }),
|
|
8
|
-
)
|
|
9
|
-
export type DebugInput = typeof DebugInput.Type;
|
|
9
|
+
) as unknown as Schema.Codec<DebugInput>;
|
|
10
10
|
|
|
11
11
|
// Output Schema
|
|
12
|
+
export interface DebugOutput {
|
|
13
|
+
version?: string;
|
|
14
|
+
}
|
|
12
15
|
export const DebugOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
16
|
version: Schema.optional(Schema.String),
|
|
14
|
-
})
|
|
15
|
-
export type DebugOutput = typeof DebugOutput.Type;
|
|
17
|
+
}) as unknown as Schema.Codec<DebugOutput>;
|
|
16
18
|
|
|
17
19
|
// The operation
|
|
18
20
|
/**
|
|
@@ -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 DeleteAliasInput {
|
|
8
|
+
aliasName: string;
|
|
9
|
+
}
|
|
7
10
|
export const DeleteAliasInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
11
|
aliasName: Schema.String.pipe(T.PathParam()),
|
|
9
|
-
}).pipe(
|
|
10
|
-
|
|
12
|
+
}).pipe(
|
|
13
|
+
T.Http({ method: "DELETE", path: "/aliases/{aliasName}" }),
|
|
14
|
+
) as unknown as Schema.Codec<DeleteAliasInput>;
|
|
11
15
|
|
|
12
16
|
// Output Schema
|
|
17
|
+
export interface DeleteAliasOutput {
|
|
18
|
+
name: string;
|
|
19
|
+
collection_name: string;
|
|
20
|
+
}
|
|
13
21
|
export const DeleteAliasOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14
22
|
name: Schema.String,
|
|
15
23
|
collection_name: Schema.String,
|
|
16
|
-
})
|
|
17
|
-
export type DeleteAliasOutput = typeof DeleteAliasOutput.Type;
|
|
24
|
+
}) as unknown as Schema.Codec<DeleteAliasOutput>;
|
|
18
25
|
|
|
19
26
|
// The operation
|
|
20
27
|
/**
|
|
@@ -4,13 +4,33 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface DeleteAnalyticsRuleInput {
|
|
8
|
+
ruleName: string;
|
|
9
|
+
}
|
|
7
10
|
export const DeleteAnalyticsRuleInput =
|
|
8
11
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
12
|
ruleName: Schema.String.pipe(T.PathParam()),
|
|
10
|
-
}).pipe(
|
|
11
|
-
|
|
13
|
+
}).pipe(
|
|
14
|
+
T.Http({ method: "DELETE", path: "/analytics/rules/{ruleName}" }),
|
|
15
|
+
) as unknown as Schema.Codec<DeleteAnalyticsRuleInput>;
|
|
12
16
|
|
|
13
17
|
// Output Schema
|
|
18
|
+
export interface DeleteAnalyticsRuleOutput {
|
|
19
|
+
name: string;
|
|
20
|
+
type: "popular_queries" | "nohits_queries" | "counter" | "log";
|
|
21
|
+
collection: string;
|
|
22
|
+
event_type: string;
|
|
23
|
+
rule_tag?: string;
|
|
24
|
+
params?: {
|
|
25
|
+
destination_collection?: string;
|
|
26
|
+
limit?: number;
|
|
27
|
+
capture_search_requests?: boolean;
|
|
28
|
+
meta_fields?: string[];
|
|
29
|
+
expand_query?: boolean;
|
|
30
|
+
counter_field?: string;
|
|
31
|
+
weight?: number;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
14
34
|
export const DeleteAnalyticsRuleOutput =
|
|
15
35
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
36
|
name: Schema.String,
|
|
@@ -34,8 +54,7 @@ export const DeleteAnalyticsRuleOutput =
|
|
|
34
54
|
weight: Schema.optional(Schema.Number),
|
|
35
55
|
}),
|
|
36
56
|
),
|
|
37
|
-
})
|
|
38
|
-
export type DeleteAnalyticsRuleOutput = typeof DeleteAnalyticsRuleOutput.Type;
|
|
57
|
+
}) as unknown as Schema.Codec<DeleteAnalyticsRuleOutput>;
|
|
39
58
|
|
|
40
59
|
// The operation
|
|
41
60
|
/**
|
|
@@ -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 DeleteCollectionInput {
|
|
10
|
+
collectionName: string;
|
|
11
|
+
}
|
|
8
12
|
export const DeleteCollectionInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
13
|
collectionName: Schema.String.pipe(T.PathParam()),
|
|
10
|
-
}).pipe(
|
|
11
|
-
|
|
14
|
+
}).pipe(
|
|
15
|
+
T.Http({ method: "DELETE", path: "/collections/{collectionName}" }),
|
|
16
|
+
) as unknown as Schema.Codec<DeleteCollectionInput>;
|
|
12
17
|
|
|
13
18
|
// Output Schema
|
|
19
|
+
export interface DeleteCollectionOutput {
|
|
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 DeleteCollectionOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
15
68
|
{
|
|
16
69
|
name: Schema.String,
|
|
@@ -40,12 +93,12 @@ export const DeleteCollectionOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
40
93
|
from: Schema.Array(Schema.String),
|
|
41
94
|
model_config: Schema.Struct({
|
|
42
95
|
model_name: Schema.String,
|
|
43
|
-
api_key: Schema.optional(
|
|
96
|
+
api_key: Schema.optional(SensitiveOutputString),
|
|
44
97
|
url: Schema.optional(Schema.String),
|
|
45
|
-
access_token: Schema.optional(
|
|
46
|
-
refresh_token: Schema.optional(
|
|
98
|
+
access_token: Schema.optional(SensitiveOutputString),
|
|
99
|
+
refresh_token: Schema.optional(SensitiveOutputString),
|
|
47
100
|
client_id: Schema.optional(Schema.String),
|
|
48
|
-
client_secret: Schema.optional(
|
|
101
|
+
client_secret: Schema.optional(SensitiveOutputString),
|
|
49
102
|
project_id: Schema.optional(Schema.String),
|
|
50
103
|
indexing_prefix: Schema.optional(Schema.String),
|
|
51
104
|
query_prefix: Schema.optional(Schema.String),
|
|
@@ -68,8 +121,7 @@ export const DeleteCollectionOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
68
121
|
num_documents: Schema.Number,
|
|
69
122
|
created_at: Schema.Number,
|
|
70
123
|
},
|
|
71
|
-
)
|
|
72
|
-
export type DeleteCollectionOutput = typeof DeleteCollectionOutput.Type;
|
|
124
|
+
) as unknown as Schema.Codec<DeleteCollectionOutput>;
|
|
73
125
|
|
|
74
126
|
// The operation
|
|
75
127
|
/**
|
|
@@ -4,22 +4,24 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface DeleteConversationModelInput {
|
|
8
|
+
modelId: string;
|
|
9
|
+
}
|
|
7
10
|
export const DeleteConversationModelInput =
|
|
8
11
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
12
|
modelId: Schema.String.pipe(T.PathParam()),
|
|
10
13
|
}).pipe(
|
|
11
14
|
T.Http({ method: "DELETE", path: "/conversations/models/{modelId}" }),
|
|
12
|
-
)
|
|
13
|
-
export type DeleteConversationModelInput =
|
|
14
|
-
typeof DeleteConversationModelInput.Type;
|
|
15
|
+
) as unknown as Schema.Codec<DeleteConversationModelInput>;
|
|
15
16
|
|
|
16
17
|
// Output Schema
|
|
18
|
+
export interface DeleteConversationModelOutput {
|
|
19
|
+
id: string;
|
|
20
|
+
}
|
|
17
21
|
export const DeleteConversationModelOutput =
|
|
18
22
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
19
23
|
id: Schema.String,
|
|
20
|
-
})
|
|
21
|
-
export type DeleteConversationModelOutput =
|
|
22
|
-
typeof DeleteConversationModelOutput.Type;
|
|
24
|
+
}) as unknown as Schema.Codec<DeleteConversationModelOutput>;
|
|
23
25
|
|
|
24
26
|
// The operation
|
|
25
27
|
/**
|
|
@@ -4,19 +4,25 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface DeleteCurationSetInput {
|
|
8
|
+
curationSetName: string;
|
|
9
|
+
}
|
|
7
10
|
export const DeleteCurationSetInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
8
11
|
{
|
|
9
12
|
curationSetName: Schema.String.pipe(T.PathParam()),
|
|
10
13
|
},
|
|
11
|
-
).pipe(
|
|
12
|
-
|
|
14
|
+
).pipe(
|
|
15
|
+
T.Http({ method: "DELETE", path: "/curation_sets/{curationSetName}" }),
|
|
16
|
+
) as unknown as Schema.Codec<DeleteCurationSetInput>;
|
|
13
17
|
|
|
14
18
|
// Output Schema
|
|
19
|
+
export interface DeleteCurationSetOutput {
|
|
20
|
+
name: string;
|
|
21
|
+
}
|
|
15
22
|
export const DeleteCurationSetOutput =
|
|
16
23
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
17
24
|
name: Schema.String,
|
|
18
|
-
})
|
|
19
|
-
export type DeleteCurationSetOutput = typeof DeleteCurationSetOutput.Type;
|
|
25
|
+
}) as unknown as Schema.Codec<DeleteCurationSetOutput>;
|
|
20
26
|
|
|
21
27
|
// The operation
|
|
22
28
|
/**
|
|
@@ -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 DeleteCurationSetItemInput {
|
|
8
|
+
curationSetName: string;
|
|
9
|
+
itemId: string;
|
|
10
|
+
}
|
|
7
11
|
export const DeleteCurationSetItemInput =
|
|
8
12
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
13
|
curationSetName: Schema.String.pipe(T.PathParam()),
|
|
@@ -13,16 +17,16 @@ export const DeleteCurationSetItemInput =
|
|
|
13
17
|
method: "DELETE",
|
|
14
18
|
path: "/curation_sets/{curationSetName}/items/{itemId}",
|
|
15
19
|
}),
|
|
16
|
-
)
|
|
17
|
-
export type DeleteCurationSetItemInput = typeof DeleteCurationSetItemInput.Type;
|
|
20
|
+
) as unknown as Schema.Codec<DeleteCurationSetItemInput>;
|
|
18
21
|
|
|
19
22
|
// Output Schema
|
|
23
|
+
export interface DeleteCurationSetItemOutput {
|
|
24
|
+
id: string;
|
|
25
|
+
}
|
|
20
26
|
export const DeleteCurationSetItemOutput =
|
|
21
27
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
22
28
|
id: Schema.String,
|
|
23
|
-
})
|
|
24
|
-
export type DeleteCurationSetItemOutput =
|
|
25
|
-
typeof DeleteCurationSetItemOutput.Type;
|
|
29
|
+
}) as unknown as Schema.Codec<DeleteCurationSetItemOutput>;
|
|
26
30
|
|
|
27
31
|
// The operation
|
|
28
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 DeleteDocumentInput {
|
|
8
|
+
collectionName: string;
|
|
9
|
+
documentId: string;
|
|
10
|
+
}
|
|
7
11
|
export const DeleteDocumentInput = /*@__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 DeleteDocumentInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
12
16
|
method: "DELETE",
|
|
13
17
|
path: "/collections/{collectionName}/documents/{documentId}",
|
|
14
18
|
}),
|
|
15
|
-
)
|
|
16
|
-
export type DeleteDocumentInput = typeof DeleteDocumentInput.Type;
|
|
19
|
+
) as unknown as Schema.Codec<DeleteDocumentInput>;
|
|
17
20
|
|
|
18
21
|
// Output Schema
|
|
19
|
-
export
|
|
20
|
-
export
|
|
22
|
+
export type DeleteDocumentOutput = unknown;
|
|
23
|
+
export const DeleteDocumentOutput =
|
|
24
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Codec<DeleteDocumentOutput>;
|
|
21
25
|
|
|
22
26
|
// The operation
|
|
23
27
|
/**
|
|
@@ -4,19 +4,24 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface DeleteDocumentsInput {
|
|
8
|
+
collectionName: string;
|
|
9
|
+
deleteDocumentsParameters?: string;
|
|
10
|
+
}
|
|
7
11
|
export const DeleteDocumentsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
12
|
collectionName: Schema.String.pipe(T.PathParam()),
|
|
9
13
|
deleteDocumentsParameters: Schema.optional(Schema.String),
|
|
10
14
|
}).pipe(
|
|
11
15
|
T.Http({ method: "DELETE", path: "/collections/{collectionName}/documents" }),
|
|
12
|
-
)
|
|
13
|
-
export type DeleteDocumentsInput = typeof DeleteDocumentsInput.Type;
|
|
16
|
+
) as unknown as Schema.Codec<DeleteDocumentsInput>;
|
|
14
17
|
|
|
15
18
|
// Output Schema
|
|
19
|
+
export interface DeleteDocumentsOutput {
|
|
20
|
+
num_deleted: number;
|
|
21
|
+
}
|
|
16
22
|
export const DeleteDocumentsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
17
23
|
num_deleted: Schema.Number,
|
|
18
|
-
})
|
|
19
|
-
export type DeleteDocumentsOutput = typeof DeleteDocumentsOutput.Type;
|
|
24
|
+
}) as unknown as Schema.Codec<DeleteDocumentsOutput>;
|
|
20
25
|
|
|
21
26
|
// The operation
|
|
22
27
|
/**
|
|
@@ -4,16 +4,22 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { BadRequest, NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface DeleteKeyInput {
|
|
8
|
+
keyId: number;
|
|
9
|
+
}
|
|
7
10
|
export const DeleteKeyInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
11
|
keyId: Schema.Number.pipe(T.PathParam()),
|
|
9
|
-
}).pipe(
|
|
10
|
-
|
|
12
|
+
}).pipe(
|
|
13
|
+
T.Http({ method: "DELETE", path: "/keys/{keyId}" }),
|
|
14
|
+
) as unknown as Schema.Codec<DeleteKeyInput>;
|
|
11
15
|
|
|
12
16
|
// Output Schema
|
|
17
|
+
export interface DeleteKeyOutput {
|
|
18
|
+
id: number;
|
|
19
|
+
}
|
|
13
20
|
export const DeleteKeyOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14
21
|
id: Schema.Number,
|
|
15
|
-
})
|
|
16
|
-
export type DeleteKeyOutput = typeof DeleteKeyOutput.Type;
|
|
22
|
+
}) as unknown as Schema.Codec<DeleteKeyOutput>;
|
|
17
23
|
|
|
18
24
|
// The operation
|
|
19
25
|
/**
|
|
@@ -4,18 +4,24 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface DeleteNLSearchModelInput {
|
|
8
|
+
modelId: string;
|
|
9
|
+
}
|
|
7
10
|
export const DeleteNLSearchModelInput =
|
|
8
11
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
12
|
modelId: Schema.String.pipe(T.PathParam()),
|
|
10
|
-
}).pipe(
|
|
11
|
-
|
|
13
|
+
}).pipe(
|
|
14
|
+
T.Http({ method: "DELETE", path: "/nl_search_models/{modelId}" }),
|
|
15
|
+
) as unknown as Schema.Codec<DeleteNLSearchModelInput>;
|
|
12
16
|
|
|
13
17
|
// Output Schema
|
|
18
|
+
export interface DeleteNLSearchModelOutput {
|
|
19
|
+
id: string;
|
|
20
|
+
}
|
|
14
21
|
export const DeleteNLSearchModelOutput =
|
|
15
22
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
23
|
id: Schema.String,
|
|
17
|
-
})
|
|
18
|
-
export type DeleteNLSearchModelOutput = typeof DeleteNLSearchModelOutput.Type;
|
|
24
|
+
}) as unknown as Schema.Codec<DeleteNLSearchModelOutput>;
|
|
19
25
|
|
|
20
26
|
// The operation
|
|
21
27
|
/**
|
|
@@ -4,16 +4,22 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface DeletePresetInput {
|
|
8
|
+
presetId: string;
|
|
9
|
+
}
|
|
7
10
|
export const DeletePresetInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
11
|
presetId: Schema.String.pipe(T.PathParam()),
|
|
9
|
-
}).pipe(
|
|
10
|
-
|
|
12
|
+
}).pipe(
|
|
13
|
+
T.Http({ method: "DELETE", path: "/presets/{presetId}" }),
|
|
14
|
+
) as unknown as Schema.Codec<DeletePresetInput>;
|
|
11
15
|
|
|
12
16
|
// Output Schema
|
|
17
|
+
export interface DeletePresetOutput {
|
|
18
|
+
name: string;
|
|
19
|
+
}
|
|
13
20
|
export const DeletePresetOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14
21
|
name: Schema.String,
|
|
15
|
-
})
|
|
16
|
-
export type DeletePresetOutput = typeof DeletePresetOutput.Type;
|
|
22
|
+
}) as unknown as Schema.Codec<DeletePresetOutput>;
|
|
17
23
|
|
|
18
24
|
// The operation
|
|
19
25
|
/**
|
|
@@ -4,18 +4,24 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface DeleteStopwordsSetInput {
|
|
8
|
+
setId: string;
|
|
9
|
+
}
|
|
7
10
|
export const DeleteStopwordsSetInput =
|
|
8
11
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
12
|
setId: Schema.String.pipe(T.PathParam()),
|
|
10
|
-
}).pipe(
|
|
11
|
-
|
|
13
|
+
}).pipe(
|
|
14
|
+
T.Http({ method: "DELETE", path: "/stopwords/{setId}" }),
|
|
15
|
+
) as unknown as Schema.Codec<DeleteStopwordsSetInput>;
|
|
12
16
|
|
|
13
17
|
// Output Schema
|
|
18
|
+
export interface DeleteStopwordsSetOutput {
|
|
19
|
+
id: string;
|
|
20
|
+
}
|
|
14
21
|
export const DeleteStopwordsSetOutput =
|
|
15
22
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
23
|
id: Schema.String,
|
|
17
|
-
})
|
|
18
|
-
export type DeleteStopwordsSetOutput = typeof DeleteStopwordsSetOutput.Type;
|
|
24
|
+
}) as unknown as Schema.Codec<DeleteStopwordsSetOutput>;
|
|
19
25
|
|
|
20
26
|
// The operation
|
|
21
27
|
/**
|
|
@@ -4,18 +4,24 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface DeleteSynonymSetInput {
|
|
8
|
+
synonymSetName: string;
|
|
9
|
+
}
|
|
7
10
|
export const DeleteSynonymSetInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
11
|
synonymSetName: Schema.String.pipe(T.PathParam()),
|
|
9
|
-
}).pipe(
|
|
10
|
-
|
|
12
|
+
}).pipe(
|
|
13
|
+
T.Http({ method: "DELETE", path: "/synonym_sets/{synonymSetName}" }),
|
|
14
|
+
) as unknown as Schema.Codec<DeleteSynonymSetInput>;
|
|
11
15
|
|
|
12
16
|
// Output Schema
|
|
17
|
+
export interface DeleteSynonymSetOutput {
|
|
18
|
+
name: string;
|
|
19
|
+
}
|
|
13
20
|
export const DeleteSynonymSetOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
14
21
|
{
|
|
15
22
|
name: Schema.String,
|
|
16
23
|
},
|
|
17
|
-
)
|
|
18
|
-
export type DeleteSynonymSetOutput = typeof DeleteSynonymSetOutput.Type;
|
|
24
|
+
) as unknown as Schema.Codec<DeleteSynonymSetOutput>;
|
|
19
25
|
|
|
20
26
|
// The operation
|
|
21
27
|
/**
|