@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,30 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { BadRequest } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface UpsertCurationSetInput {
|
|
8
|
+
curationSetName: string;
|
|
9
|
+
items: {
|
|
10
|
+
rule: {
|
|
11
|
+
tags?: string[];
|
|
12
|
+
query?: string;
|
|
13
|
+
match?: "exact" | "contains";
|
|
14
|
+
filter_by?: string;
|
|
15
|
+
};
|
|
16
|
+
includes?: { id: string; position: number }[];
|
|
17
|
+
excludes?: { id: string }[];
|
|
18
|
+
filter_by?: string;
|
|
19
|
+
remove_matched_tokens?: boolean;
|
|
20
|
+
metadata?: unknown;
|
|
21
|
+
sort_by?: string;
|
|
22
|
+
replace_query?: string;
|
|
23
|
+
filter_curated_hits?: boolean;
|
|
24
|
+
effective_from_ts?: number;
|
|
25
|
+
effective_to_ts?: number;
|
|
26
|
+
stop_processing?: boolean;
|
|
27
|
+
id?: string;
|
|
28
|
+
}[];
|
|
29
|
+
description?: string;
|
|
30
|
+
}
|
|
7
31
|
export const UpsertCurationSetInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
8
32
|
{
|
|
9
33
|
curationSetName: Schema.String.pipe(T.PathParam()),
|
|
@@ -44,10 +68,35 @@ export const UpsertCurationSetInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
44
68
|
),
|
|
45
69
|
description: Schema.optional(Schema.String),
|
|
46
70
|
},
|
|
47
|
-
).pipe(
|
|
48
|
-
|
|
71
|
+
).pipe(
|
|
72
|
+
T.Http({ method: "PUT", path: "/curation_sets/{curationSetName}" }),
|
|
73
|
+
) as unknown as Schema.Codec<UpsertCurationSetInput>;
|
|
49
74
|
|
|
50
75
|
// Output Schema
|
|
76
|
+
export interface UpsertCurationSetOutput {
|
|
77
|
+
items: {
|
|
78
|
+
rule: {
|
|
79
|
+
tags?: string[];
|
|
80
|
+
query?: string;
|
|
81
|
+
match?: "exact" | "contains";
|
|
82
|
+
filter_by?: string;
|
|
83
|
+
};
|
|
84
|
+
includes?: { id: string; position: number }[];
|
|
85
|
+
excludes?: { id: string }[];
|
|
86
|
+
filter_by?: string;
|
|
87
|
+
remove_matched_tokens?: boolean;
|
|
88
|
+
metadata?: unknown;
|
|
89
|
+
sort_by?: string;
|
|
90
|
+
replace_query?: string;
|
|
91
|
+
filter_curated_hits?: boolean;
|
|
92
|
+
effective_from_ts?: number;
|
|
93
|
+
effective_to_ts?: number;
|
|
94
|
+
stop_processing?: boolean;
|
|
95
|
+
id?: string;
|
|
96
|
+
}[];
|
|
97
|
+
description?: string;
|
|
98
|
+
name: string;
|
|
99
|
+
}
|
|
51
100
|
export const UpsertCurationSetOutput =
|
|
52
101
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
53
102
|
items: Schema.Array(
|
|
@@ -87,8 +136,7 @@ export const UpsertCurationSetOutput =
|
|
|
87
136
|
),
|
|
88
137
|
description: Schema.optional(Schema.String),
|
|
89
138
|
name: Schema.String,
|
|
90
|
-
})
|
|
91
|
-
export type UpsertCurationSetOutput = typeof UpsertCurationSetOutput.Type;
|
|
139
|
+
}) as unknown as Schema.Codec<UpsertCurationSetOutput>;
|
|
92
140
|
|
|
93
141
|
// The operation
|
|
94
142
|
/**
|
|
@@ -4,6 +4,28 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { BadRequest } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface UpsertCurationSetItemInput {
|
|
8
|
+
curationSetName: string;
|
|
9
|
+
itemId: string;
|
|
10
|
+
rule: {
|
|
11
|
+
tags?: string[];
|
|
12
|
+
query?: string;
|
|
13
|
+
match?: "exact" | "contains";
|
|
14
|
+
filter_by?: string;
|
|
15
|
+
};
|
|
16
|
+
includes?: { id: string; position: number }[];
|
|
17
|
+
excludes?: { id: string }[];
|
|
18
|
+
filter_by?: string;
|
|
19
|
+
remove_matched_tokens?: boolean;
|
|
20
|
+
metadata?: unknown;
|
|
21
|
+
sort_by?: string;
|
|
22
|
+
replace_query?: string;
|
|
23
|
+
filter_curated_hits?: boolean;
|
|
24
|
+
effective_from_ts?: number;
|
|
25
|
+
effective_to_ts?: number;
|
|
26
|
+
stop_processing?: boolean;
|
|
27
|
+
id?: string;
|
|
28
|
+
}
|
|
7
29
|
export const UpsertCurationSetItemInput =
|
|
8
30
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
31
|
curationSetName: Schema.String.pipe(T.PathParam()),
|
|
@@ -44,10 +66,29 @@ export const UpsertCurationSetItemInput =
|
|
|
44
66
|
method: "PUT",
|
|
45
67
|
path: "/curation_sets/{curationSetName}/items/{itemId}",
|
|
46
68
|
}),
|
|
47
|
-
)
|
|
48
|
-
export type UpsertCurationSetItemInput = typeof UpsertCurationSetItemInput.Type;
|
|
69
|
+
) as unknown as Schema.Codec<UpsertCurationSetItemInput>;
|
|
49
70
|
|
|
50
71
|
// Output Schema
|
|
72
|
+
export interface UpsertCurationSetItemOutput {
|
|
73
|
+
rule: {
|
|
74
|
+
tags?: string[];
|
|
75
|
+
query?: string;
|
|
76
|
+
match?: "exact" | "contains";
|
|
77
|
+
filter_by?: string;
|
|
78
|
+
};
|
|
79
|
+
includes?: { id: string; position: number }[];
|
|
80
|
+
excludes?: { id: string }[];
|
|
81
|
+
filter_by?: string;
|
|
82
|
+
remove_matched_tokens?: boolean;
|
|
83
|
+
metadata?: unknown;
|
|
84
|
+
sort_by?: string;
|
|
85
|
+
replace_query?: string;
|
|
86
|
+
filter_curated_hits?: boolean;
|
|
87
|
+
effective_from_ts?: number;
|
|
88
|
+
effective_to_ts?: number;
|
|
89
|
+
stop_processing?: boolean;
|
|
90
|
+
id: string;
|
|
91
|
+
}
|
|
51
92
|
export const UpsertCurationSetItemOutput =
|
|
52
93
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
53
94
|
rule: Schema.Struct({
|
|
@@ -81,9 +122,7 @@ export const UpsertCurationSetItemOutput =
|
|
|
81
122
|
effective_to_ts: Schema.optional(Schema.Number),
|
|
82
123
|
stop_processing: Schema.optional(Schema.Boolean),
|
|
83
124
|
id: Schema.String,
|
|
84
|
-
})
|
|
85
|
-
export type UpsertCurationSetItemOutput =
|
|
86
|
-
typeof UpsertCurationSetItemOutput.Type;
|
|
125
|
+
}) as unknown as Schema.Codec<UpsertCurationSetItemOutput>;
|
|
87
126
|
|
|
88
127
|
// The operation
|
|
89
128
|
/**
|
|
@@ -4,18 +4,320 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { BadRequest } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface UpsertPresetInput {
|
|
8
|
+
presetId: string;
|
|
9
|
+
value:
|
|
10
|
+
| {
|
|
11
|
+
q?: string;
|
|
12
|
+
query_by?: string;
|
|
13
|
+
validate_field_names?: boolean;
|
|
14
|
+
nl_query?: boolean;
|
|
15
|
+
nl_model_id?: string;
|
|
16
|
+
query_by_weights?: string;
|
|
17
|
+
text_match_type?: string;
|
|
18
|
+
prefix?: string;
|
|
19
|
+
infix?: string;
|
|
20
|
+
max_extra_prefix?: number;
|
|
21
|
+
max_extra_suffix?: number;
|
|
22
|
+
filter_by?: string;
|
|
23
|
+
max_filter_by_candidates?: number;
|
|
24
|
+
sort_by?: string;
|
|
25
|
+
facet_by?: string;
|
|
26
|
+
max_facet_values?: number;
|
|
27
|
+
facet_query?: string;
|
|
28
|
+
num_typos?: string;
|
|
29
|
+
page?: number;
|
|
30
|
+
per_page?: number;
|
|
31
|
+
limit?: number;
|
|
32
|
+
offset?: number;
|
|
33
|
+
group_by?: string;
|
|
34
|
+
group_limit?: number;
|
|
35
|
+
group_missing_values?: boolean;
|
|
36
|
+
include_fields?: string;
|
|
37
|
+
exclude_fields?: string;
|
|
38
|
+
highlight_full_fields?: string;
|
|
39
|
+
highlight_affix_num_tokens?: number;
|
|
40
|
+
highlight_start_tag?: string;
|
|
41
|
+
highlight_end_tag?: string;
|
|
42
|
+
enable_highlight_v1?: boolean;
|
|
43
|
+
enable_analytics?: boolean;
|
|
44
|
+
snippet_threshold?: number;
|
|
45
|
+
synonym_sets?: string;
|
|
46
|
+
drop_tokens_threshold?: number;
|
|
47
|
+
drop_tokens_mode?: "right_to_left" | "left_to_right" | "both_sides:3";
|
|
48
|
+
typo_tokens_threshold?: number;
|
|
49
|
+
enable_typos_for_alpha_numerical_tokens?: boolean;
|
|
50
|
+
filter_curated_hits?: boolean;
|
|
51
|
+
enable_synonyms?: boolean;
|
|
52
|
+
synonym_prefix?: boolean;
|
|
53
|
+
synonym_num_typos?: number;
|
|
54
|
+
pinned_hits?: string;
|
|
55
|
+
hidden_hits?: string;
|
|
56
|
+
curation_tags?: string;
|
|
57
|
+
highlight_fields?: string;
|
|
58
|
+
split_join_tokens?: string;
|
|
59
|
+
pre_segmented_query?: boolean;
|
|
60
|
+
preset?: string;
|
|
61
|
+
enable_curations?: boolean;
|
|
62
|
+
prioritize_exact_match?: boolean;
|
|
63
|
+
max_candidates?: number;
|
|
64
|
+
prioritize_token_position?: boolean;
|
|
65
|
+
prioritize_num_matching_fields?: boolean;
|
|
66
|
+
enable_typos_for_numerical_tokens?: boolean;
|
|
67
|
+
exhaustive_search?: boolean;
|
|
68
|
+
search_cutoff_ms?: number;
|
|
69
|
+
use_cache?: boolean;
|
|
70
|
+
cache_ttl?: number;
|
|
71
|
+
min_len_1typo?: number;
|
|
72
|
+
min_len_2typo?: number;
|
|
73
|
+
vector_query?: string;
|
|
74
|
+
remote_embedding_timeout_ms?: number;
|
|
75
|
+
remote_embedding_num_tries?: number;
|
|
76
|
+
facet_strategy?: string;
|
|
77
|
+
stopwords?: string;
|
|
78
|
+
facet_return_parent?: string;
|
|
79
|
+
voice_query?: string;
|
|
80
|
+
conversation?: boolean;
|
|
81
|
+
conversation_model_id?: string;
|
|
82
|
+
conversation_id?: string;
|
|
83
|
+
}
|
|
84
|
+
| {
|
|
85
|
+
union?: boolean;
|
|
86
|
+
searches: {
|
|
87
|
+
q?: string;
|
|
88
|
+
query_by?: string;
|
|
89
|
+
query_by_weights?: string;
|
|
90
|
+
text_match_type?: string;
|
|
91
|
+
prefix?: string;
|
|
92
|
+
infix?: string;
|
|
93
|
+
max_extra_prefix?: number;
|
|
94
|
+
max_extra_suffix?: number;
|
|
95
|
+
filter_by?: string;
|
|
96
|
+
sort_by?: string;
|
|
97
|
+
facet_by?: string;
|
|
98
|
+
max_facet_values?: number;
|
|
99
|
+
facet_query?: string;
|
|
100
|
+
num_typos?: string;
|
|
101
|
+
page?: number;
|
|
102
|
+
per_page?: number;
|
|
103
|
+
limit?: number;
|
|
104
|
+
offset?: number;
|
|
105
|
+
group_by?: string;
|
|
106
|
+
group_limit?: number;
|
|
107
|
+
group_missing_values?: boolean;
|
|
108
|
+
include_fields?: string;
|
|
109
|
+
exclude_fields?: string;
|
|
110
|
+
highlight_full_fields?: string;
|
|
111
|
+
highlight_affix_num_tokens?: number;
|
|
112
|
+
highlight_start_tag?: string;
|
|
113
|
+
highlight_end_tag?: string;
|
|
114
|
+
snippet_threshold?: number;
|
|
115
|
+
drop_tokens_threshold?: number;
|
|
116
|
+
drop_tokens_mode?: "right_to_left" | "left_to_right" | "both_sides:3";
|
|
117
|
+
typo_tokens_threshold?: number;
|
|
118
|
+
enable_typos_for_alpha_numerical_tokens?: boolean;
|
|
119
|
+
filter_curated_hits?: boolean;
|
|
120
|
+
enable_synonyms?: boolean;
|
|
121
|
+
enable_analytics?: boolean;
|
|
122
|
+
synonym_prefix?: boolean;
|
|
123
|
+
synonym_num_typos?: number;
|
|
124
|
+
pinned_hits?: string;
|
|
125
|
+
hidden_hits?: string;
|
|
126
|
+
curation_tags?: string;
|
|
127
|
+
highlight_fields?: string;
|
|
128
|
+
pre_segmented_query?: boolean;
|
|
129
|
+
preset?: string;
|
|
130
|
+
enable_curations?: boolean;
|
|
131
|
+
prioritize_exact_match?: boolean;
|
|
132
|
+
prioritize_token_position?: boolean;
|
|
133
|
+
prioritize_num_matching_fields?: boolean;
|
|
134
|
+
enable_typos_for_numerical_tokens?: boolean;
|
|
135
|
+
exhaustive_search?: boolean;
|
|
136
|
+
search_cutoff_ms?: number;
|
|
137
|
+
use_cache?: boolean;
|
|
138
|
+
cache_ttl?: number;
|
|
139
|
+
min_len_1typo?: number;
|
|
140
|
+
min_len_2typo?: number;
|
|
141
|
+
vector_query?: string;
|
|
142
|
+
remote_embedding_timeout_ms?: number;
|
|
143
|
+
remote_embedding_num_tries?: number;
|
|
144
|
+
facet_strategy?: string;
|
|
145
|
+
stopwords?: string;
|
|
146
|
+
facet_return_parent?: string;
|
|
147
|
+
voice_query?: string;
|
|
148
|
+
conversation?: boolean;
|
|
149
|
+
conversation_model_id?: string;
|
|
150
|
+
conversation_id?: string;
|
|
151
|
+
validate_field_names?: boolean;
|
|
152
|
+
collection?: string;
|
|
153
|
+
"x-typesense-api-key"?: string;
|
|
154
|
+
rerank_hybrid_matches?: boolean;
|
|
155
|
+
}[];
|
|
156
|
+
};
|
|
157
|
+
}
|
|
7
158
|
export const UpsertPresetInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
159
|
presetId: Schema.String.pipe(T.PathParam()),
|
|
9
160
|
value: Schema.Unknown,
|
|
10
|
-
}).pipe(
|
|
11
|
-
|
|
161
|
+
}).pipe(
|
|
162
|
+
T.Http({ method: "PUT", path: "/presets/{presetId}" }),
|
|
163
|
+
) as unknown as Schema.Codec<UpsertPresetInput>;
|
|
12
164
|
|
|
13
165
|
// Output Schema
|
|
166
|
+
export interface UpsertPresetOutput {
|
|
167
|
+
value:
|
|
168
|
+
| {
|
|
169
|
+
q?: string;
|
|
170
|
+
query_by?: string;
|
|
171
|
+
validate_field_names?: boolean;
|
|
172
|
+
nl_query?: boolean;
|
|
173
|
+
nl_model_id?: string;
|
|
174
|
+
query_by_weights?: string;
|
|
175
|
+
text_match_type?: string;
|
|
176
|
+
prefix?: string;
|
|
177
|
+
infix?: string;
|
|
178
|
+
max_extra_prefix?: number;
|
|
179
|
+
max_extra_suffix?: number;
|
|
180
|
+
filter_by?: string;
|
|
181
|
+
max_filter_by_candidates?: number;
|
|
182
|
+
sort_by?: string;
|
|
183
|
+
facet_by?: string;
|
|
184
|
+
max_facet_values?: number;
|
|
185
|
+
facet_query?: string;
|
|
186
|
+
num_typos?: string;
|
|
187
|
+
page?: number;
|
|
188
|
+
per_page?: number;
|
|
189
|
+
limit?: number;
|
|
190
|
+
offset?: number;
|
|
191
|
+
group_by?: string;
|
|
192
|
+
group_limit?: number;
|
|
193
|
+
group_missing_values?: boolean;
|
|
194
|
+
include_fields?: string;
|
|
195
|
+
exclude_fields?: string;
|
|
196
|
+
highlight_full_fields?: string;
|
|
197
|
+
highlight_affix_num_tokens?: number;
|
|
198
|
+
highlight_start_tag?: string;
|
|
199
|
+
highlight_end_tag?: string;
|
|
200
|
+
enable_highlight_v1?: boolean;
|
|
201
|
+
enable_analytics?: boolean;
|
|
202
|
+
snippet_threshold?: number;
|
|
203
|
+
synonym_sets?: string;
|
|
204
|
+
drop_tokens_threshold?: number;
|
|
205
|
+
drop_tokens_mode?: "right_to_left" | "left_to_right" | "both_sides:3";
|
|
206
|
+
typo_tokens_threshold?: number;
|
|
207
|
+
enable_typos_for_alpha_numerical_tokens?: boolean;
|
|
208
|
+
filter_curated_hits?: boolean;
|
|
209
|
+
enable_synonyms?: boolean;
|
|
210
|
+
synonym_prefix?: boolean;
|
|
211
|
+
synonym_num_typos?: number;
|
|
212
|
+
pinned_hits?: string;
|
|
213
|
+
hidden_hits?: string;
|
|
214
|
+
curation_tags?: string;
|
|
215
|
+
highlight_fields?: string;
|
|
216
|
+
split_join_tokens?: string;
|
|
217
|
+
pre_segmented_query?: boolean;
|
|
218
|
+
preset?: string;
|
|
219
|
+
enable_curations?: boolean;
|
|
220
|
+
prioritize_exact_match?: boolean;
|
|
221
|
+
max_candidates?: number;
|
|
222
|
+
prioritize_token_position?: boolean;
|
|
223
|
+
prioritize_num_matching_fields?: boolean;
|
|
224
|
+
enable_typos_for_numerical_tokens?: boolean;
|
|
225
|
+
exhaustive_search?: boolean;
|
|
226
|
+
search_cutoff_ms?: number;
|
|
227
|
+
use_cache?: boolean;
|
|
228
|
+
cache_ttl?: number;
|
|
229
|
+
min_len_1typo?: number;
|
|
230
|
+
min_len_2typo?: number;
|
|
231
|
+
vector_query?: string;
|
|
232
|
+
remote_embedding_timeout_ms?: number;
|
|
233
|
+
remote_embedding_num_tries?: number;
|
|
234
|
+
facet_strategy?: string;
|
|
235
|
+
stopwords?: string;
|
|
236
|
+
facet_return_parent?: string;
|
|
237
|
+
voice_query?: string;
|
|
238
|
+
conversation?: boolean;
|
|
239
|
+
conversation_model_id?: string;
|
|
240
|
+
conversation_id?: string;
|
|
241
|
+
}
|
|
242
|
+
| {
|
|
243
|
+
union?: boolean;
|
|
244
|
+
searches: {
|
|
245
|
+
q?: string;
|
|
246
|
+
query_by?: string;
|
|
247
|
+
query_by_weights?: string;
|
|
248
|
+
text_match_type?: string;
|
|
249
|
+
prefix?: string;
|
|
250
|
+
infix?: string;
|
|
251
|
+
max_extra_prefix?: number;
|
|
252
|
+
max_extra_suffix?: number;
|
|
253
|
+
filter_by?: string;
|
|
254
|
+
sort_by?: string;
|
|
255
|
+
facet_by?: string;
|
|
256
|
+
max_facet_values?: number;
|
|
257
|
+
facet_query?: string;
|
|
258
|
+
num_typos?: string;
|
|
259
|
+
page?: number;
|
|
260
|
+
per_page?: number;
|
|
261
|
+
limit?: number;
|
|
262
|
+
offset?: number;
|
|
263
|
+
group_by?: string;
|
|
264
|
+
group_limit?: number;
|
|
265
|
+
group_missing_values?: boolean;
|
|
266
|
+
include_fields?: string;
|
|
267
|
+
exclude_fields?: string;
|
|
268
|
+
highlight_full_fields?: string;
|
|
269
|
+
highlight_affix_num_tokens?: number;
|
|
270
|
+
highlight_start_tag?: string;
|
|
271
|
+
highlight_end_tag?: string;
|
|
272
|
+
snippet_threshold?: number;
|
|
273
|
+
drop_tokens_threshold?: number;
|
|
274
|
+
drop_tokens_mode?: "right_to_left" | "left_to_right" | "both_sides:3";
|
|
275
|
+
typo_tokens_threshold?: number;
|
|
276
|
+
enable_typos_for_alpha_numerical_tokens?: boolean;
|
|
277
|
+
filter_curated_hits?: boolean;
|
|
278
|
+
enable_synonyms?: boolean;
|
|
279
|
+
enable_analytics?: boolean;
|
|
280
|
+
synonym_prefix?: boolean;
|
|
281
|
+
synonym_num_typos?: number;
|
|
282
|
+
pinned_hits?: string;
|
|
283
|
+
hidden_hits?: string;
|
|
284
|
+
curation_tags?: string;
|
|
285
|
+
highlight_fields?: string;
|
|
286
|
+
pre_segmented_query?: boolean;
|
|
287
|
+
preset?: string;
|
|
288
|
+
enable_curations?: boolean;
|
|
289
|
+
prioritize_exact_match?: boolean;
|
|
290
|
+
prioritize_token_position?: boolean;
|
|
291
|
+
prioritize_num_matching_fields?: boolean;
|
|
292
|
+
enable_typos_for_numerical_tokens?: boolean;
|
|
293
|
+
exhaustive_search?: boolean;
|
|
294
|
+
search_cutoff_ms?: number;
|
|
295
|
+
use_cache?: boolean;
|
|
296
|
+
cache_ttl?: number;
|
|
297
|
+
min_len_1typo?: number;
|
|
298
|
+
min_len_2typo?: number;
|
|
299
|
+
vector_query?: string;
|
|
300
|
+
remote_embedding_timeout_ms?: number;
|
|
301
|
+
remote_embedding_num_tries?: number;
|
|
302
|
+
facet_strategy?: string;
|
|
303
|
+
stopwords?: string;
|
|
304
|
+
facet_return_parent?: string;
|
|
305
|
+
voice_query?: string;
|
|
306
|
+
conversation?: boolean;
|
|
307
|
+
conversation_model_id?: string;
|
|
308
|
+
conversation_id?: string;
|
|
309
|
+
validate_field_names?: boolean;
|
|
310
|
+
collection?: string;
|
|
311
|
+
"x-typesense-api-key"?: string;
|
|
312
|
+
rerank_hybrid_matches?: boolean;
|
|
313
|
+
}[];
|
|
314
|
+
};
|
|
315
|
+
name: string;
|
|
316
|
+
}
|
|
14
317
|
export const UpsertPresetOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
318
|
value: Schema.Unknown,
|
|
16
319
|
name: Schema.String,
|
|
17
|
-
})
|
|
18
|
-
export type UpsertPresetOutput = typeof UpsertPresetOutput.Type;
|
|
320
|
+
}) as unknown as Schema.Codec<UpsertPresetOutput>;
|
|
19
321
|
|
|
20
322
|
// The operation
|
|
21
323
|
/**
|
|
@@ -4,22 +4,32 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { BadRequest } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface UpsertStopwordsSetInput {
|
|
8
|
+
setId: string;
|
|
9
|
+
stopwords: string[];
|
|
10
|
+
locale?: string;
|
|
11
|
+
}
|
|
7
12
|
export const UpsertStopwordsSetInput =
|
|
8
13
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
14
|
setId: Schema.String.pipe(T.PathParam()),
|
|
10
15
|
stopwords: Schema.Array(Schema.String),
|
|
11
16
|
locale: Schema.optional(Schema.String),
|
|
12
|
-
}).pipe(
|
|
13
|
-
|
|
17
|
+
}).pipe(
|
|
18
|
+
T.Http({ method: "PUT", path: "/stopwords/{setId}" }),
|
|
19
|
+
) as unknown as Schema.Codec<UpsertStopwordsSetInput>;
|
|
14
20
|
|
|
15
21
|
// Output Schema
|
|
22
|
+
export interface UpsertStopwordsSetOutput {
|
|
23
|
+
id: string;
|
|
24
|
+
stopwords: string[];
|
|
25
|
+
locale?: string;
|
|
26
|
+
}
|
|
16
27
|
export const UpsertStopwordsSetOutput =
|
|
17
28
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
18
29
|
id: Schema.String,
|
|
19
30
|
stopwords: Schema.Array(Schema.String),
|
|
20
31
|
locale: Schema.optional(Schema.String),
|
|
21
|
-
})
|
|
22
|
-
export type UpsertStopwordsSetOutput = typeof UpsertStopwordsSetOutput.Type;
|
|
32
|
+
}) as unknown as Schema.Codec<UpsertStopwordsSetOutput>;
|
|
23
33
|
|
|
24
34
|
// The operation
|
|
25
35
|
/**
|
|
@@ -4,6 +4,16 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { BadRequest } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface UpsertSynonymSetInput {
|
|
8
|
+
synonymSetName: string;
|
|
9
|
+
items: {
|
|
10
|
+
id: string;
|
|
11
|
+
synonyms: string[];
|
|
12
|
+
root?: string;
|
|
13
|
+
locale?: string;
|
|
14
|
+
symbols_to_index?: string[];
|
|
15
|
+
}[];
|
|
16
|
+
}
|
|
7
17
|
export const UpsertSynonymSetInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
18
|
synonymSetName: Schema.String.pipe(T.PathParam()),
|
|
9
19
|
items: Schema.Array(
|
|
@@ -15,10 +25,21 @@ export const UpsertSynonymSetInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
15
25
|
symbols_to_index: Schema.optional(Schema.Array(Schema.String)),
|
|
16
26
|
}),
|
|
17
27
|
),
|
|
18
|
-
}).pipe(
|
|
19
|
-
|
|
28
|
+
}).pipe(
|
|
29
|
+
T.Http({ method: "PUT", path: "/synonym_sets/{synonymSetName}" }),
|
|
30
|
+
) as unknown as Schema.Codec<UpsertSynonymSetInput>;
|
|
20
31
|
|
|
21
32
|
// Output Schema
|
|
33
|
+
export interface UpsertSynonymSetOutput {
|
|
34
|
+
items: {
|
|
35
|
+
id: string;
|
|
36
|
+
synonyms: string[];
|
|
37
|
+
root?: string;
|
|
38
|
+
locale?: string;
|
|
39
|
+
symbols_to_index?: string[];
|
|
40
|
+
}[];
|
|
41
|
+
name: string;
|
|
42
|
+
}
|
|
22
43
|
export const UpsertSynonymSetOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
23
44
|
{
|
|
24
45
|
items: Schema.Array(
|
|
@@ -32,8 +53,7 @@ export const UpsertSynonymSetOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
32
53
|
),
|
|
33
54
|
name: Schema.String,
|
|
34
55
|
},
|
|
35
|
-
)
|
|
36
|
-
export type UpsertSynonymSetOutput = typeof UpsertSynonymSetOutput.Type;
|
|
56
|
+
) as unknown as Schema.Codec<UpsertSynonymSetOutput>;
|
|
37
57
|
|
|
38
58
|
// The operation
|
|
39
59
|
/**
|
|
@@ -4,6 +4,14 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { BadRequest } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface UpsertSynonymSetItemInput {
|
|
8
|
+
synonymSetName: string;
|
|
9
|
+
itemId: string;
|
|
10
|
+
synonyms: string[];
|
|
11
|
+
root?: string;
|
|
12
|
+
locale?: string;
|
|
13
|
+
symbols_to_index?: string[];
|
|
14
|
+
}
|
|
7
15
|
export const UpsertSynonymSetItemInput =
|
|
8
16
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
17
|
synonymSetName: Schema.String.pipe(T.PathParam()),
|
|
@@ -17,10 +25,16 @@ export const UpsertSynonymSetItemInput =
|
|
|
17
25
|
method: "PUT",
|
|
18
26
|
path: "/synonym_sets/{synonymSetName}/items/{itemId}",
|
|
19
27
|
}),
|
|
20
|
-
)
|
|
21
|
-
export type UpsertSynonymSetItemInput = typeof UpsertSynonymSetItemInput.Type;
|
|
28
|
+
) as unknown as Schema.Codec<UpsertSynonymSetItemInput>;
|
|
22
29
|
|
|
23
30
|
// Output Schema
|
|
31
|
+
export interface UpsertSynonymSetItemOutput {
|
|
32
|
+
id: string;
|
|
33
|
+
synonyms: string[];
|
|
34
|
+
root?: string;
|
|
35
|
+
locale?: string;
|
|
36
|
+
symbols_to_index?: string[];
|
|
37
|
+
}
|
|
24
38
|
export const UpsertSynonymSetItemOutput =
|
|
25
39
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
26
40
|
id: Schema.String,
|
|
@@ -28,8 +42,7 @@ export const UpsertSynonymSetItemOutput =
|
|
|
28
42
|
root: Schema.optional(Schema.String),
|
|
29
43
|
locale: Schema.optional(Schema.String),
|
|
30
44
|
symbols_to_index: Schema.optional(Schema.Array(Schema.String)),
|
|
31
|
-
})
|
|
32
|
-
export type UpsertSynonymSetItemOutput = typeof UpsertSynonymSetItemOutput.Type;
|
|
45
|
+
}) as unknown as Schema.Codec<UpsertSynonymSetItemOutput>;
|
|
33
46
|
|
|
34
47
|
// The operation
|
|
35
48
|
/**
|
package/src/operations/vote.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 VoteInput {}
|
|
6
7
|
export const VoteInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
7
8
|
T.Http({ method: "POST", path: "/operations/vote" }),
|
|
8
|
-
)
|
|
9
|
-
export type VoteInput = typeof VoteInput.Type;
|
|
9
|
+
) as unknown as Schema.Codec<VoteInput>;
|
|
10
10
|
|
|
11
11
|
// Output Schema
|
|
12
|
+
export interface VoteOutput {
|
|
13
|
+
success: boolean;
|
|
14
|
+
}
|
|
12
15
|
export const VoteOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
16
|
success: Schema.Boolean,
|
|
14
|
-
})
|
|
15
|
-
export type VoteOutput = typeof VoteOutput.Type;
|
|
17
|
+
}) as unknown as Schema.Codec<VoteOutput>;
|
|
16
18
|
|
|
17
19
|
// The operation
|
|
18
20
|
/**
|