@distilled.cloud/typesense 0.30.3 → 1.0.0-rc.2
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/credentials.d.ts +7 -0
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +17 -0
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +14 -3
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +3 -2
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +7 -10
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +7 -10
- package/lib/index.js.map +1 -1
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +31 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +4 -4
- package/lib/retry.js +4 -4
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +3 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/typesense.d.ts +2817 -0
- package/lib/services/typesense.d.ts.map +1 -0
- package/lib/services/typesense.js +2917 -0
- package/lib/services/typesense.js.map +1 -0
- package/lib/traits.d.ts +8 -2
- package/lib/traits.d.ts.map +1 -1
- package/lib/traits.js +8 -2
- package/lib/traits.js.map +1 -1
- package/package.json +31 -51
- package/src/credentials.ts +26 -0
- package/src/errors.ts +16 -3
- package/src/index.ts +11 -10
- package/src/protocol.ts +52 -0
- package/src/retry.ts +4 -4
- package/src/services/index.ts +2 -0
- package/src/services/typesense.ts +6837 -0
- package/src/traits.ts +41 -2
- package/README.md +0 -75
- package/lib/category.d.ts +0 -5
- package/lib/category.d.ts.map +0 -1
- package/lib/category.js +0 -5
- package/lib/category.js.map +0 -1
- package/lib/client.d.ts +0 -11
- package/lib/client.d.ts.map +0 -1
- package/lib/client.js +0 -56
- package/lib/client.js.map +0 -1
- package/lib/operations/clearCache.d.ts +0 -15
- package/lib/operations/clearCache.d.ts.map +0 -1
- package/lib/operations/clearCache.js +0 -18
- package/lib/operations/clearCache.js.map +0 -1
- package/lib/operations/compactDb.d.ts +0 -15
- package/lib/operations/compactDb.d.ts.map +0 -1
- package/lib/operations/compactDb.js +0 -18
- package/lib/operations/compactDb.js.map +0 -1
- package/lib/operations/createAnalyticsEvent.d.ts +0 -25
- package/lib/operations/createAnalyticsEvent.d.ts.map +0 -1
- package/lib/operations/createAnalyticsEvent.js +0 -32
- package/lib/operations/createAnalyticsEvent.js.map +0 -1
- package/lib/operations/createAnalyticsRule.d.ts +0 -46
- package/lib/operations/createAnalyticsRule.d.ts.map +0 -1
- package/lib/operations/createAnalyticsRule.js +0 -68
- package/lib/operations/createAnalyticsRule.js.map +0 -1
- package/lib/operations/createCollection.d.ts +0 -110
- package/lib/operations/createCollection.d.ts.map +0 -1
- package/lib/operations/createCollection.js +0 -116
- package/lib/operations/createCollection.js.map +0 -1
- package/lib/operations/createConversationModel.d.ts +0 -26
- package/lib/operations/createConversationModel.d.ts.map +0 -1
- package/lib/operations/createConversationModel.js +0 -34
- package/lib/operations/createConversationModel.js.map +0 -1
- package/lib/operations/createKey.d.ts +0 -27
- package/lib/operations/createKey.d.ts.map +0 -1
- package/lib/operations/createKey.js +0 -32
- package/lib/operations/createKey.js.map +0 -1
- package/lib/operations/createNLSearchModel.d.ts +0 -36
- package/lib/operations/createNLSearchModel.d.ts.map +0 -1
- package/lib/operations/createNLSearchModel.js +0 -44
- package/lib/operations/createNLSearchModel.js.map +0 -1
- package/lib/operations/debug.d.ts +0 -13
- package/lib/operations/debug.d.ts.map +0 -1
- package/lib/operations/debug.js +0 -16
- package/lib/operations/debug.js.map +0 -1
- package/lib/operations/deleteAlias.d.ts +0 -18
- package/lib/operations/deleteAlias.d.ts.map +0 -1
- package/lib/operations/deleteAlias.js +0 -23
- package/lib/operations/deleteAlias.js.map +0 -1
- package/lib/operations/deleteAnalyticsRule.d.ts +0 -32
- package/lib/operations/deleteAnalyticsRule.d.ts.map +0 -1
- package/lib/operations/deleteAnalyticsRule.js +0 -44
- package/lib/operations/deleteAnalyticsRule.js.map +0 -1
- package/lib/operations/deleteCollection.d.ts +0 -67
- package/lib/operations/deleteCollection.d.ts.map +0 -1
- package/lib/operations/deleteCollection.js +0 -73
- package/lib/operations/deleteCollection.js.map +0 -1
- package/lib/operations/deleteConversationModel.d.ts +0 -17
- package/lib/operations/deleteConversationModel.d.ts.map +0 -1
- package/lib/operations/deleteConversationModel.js +0 -24
- package/lib/operations/deleteConversationModel.js.map +0 -1
- package/lib/operations/deleteCurationSet.d.ts +0 -19
- package/lib/operations/deleteCurationSet.d.ts.map +0 -1
- package/lib/operations/deleteCurationSet.js +0 -25
- package/lib/operations/deleteCurationSet.js.map +0 -1
- package/lib/operations/deleteCurationSetItem.d.ts +0 -21
- package/lib/operations/deleteCurationSetItem.d.ts.map +0 -1
- package/lib/operations/deleteCurationSetItem.js +0 -31
- package/lib/operations/deleteCurationSetItem.js.map +0 -1
- package/lib/operations/deleteDocument.d.ts +0 -19
- package/lib/operations/deleteDocument.d.ts.map +0 -1
- package/lib/operations/deleteDocument.js +0 -28
- package/lib/operations/deleteDocument.js.map +0 -1
- package/lib/operations/deleteDocuments.d.ts +0 -20
- package/lib/operations/deleteDocuments.d.ts.map +0 -1
- package/lib/operations/deleteDocuments.js +0 -25
- package/lib/operations/deleteDocuments.js.map +0 -1
- package/lib/operations/deleteKey.d.ts +0 -17
- package/lib/operations/deleteKey.d.ts.map +0 -1
- package/lib/operations/deleteKey.js +0 -22
- package/lib/operations/deleteKey.js.map +0 -1
- package/lib/operations/deleteNLSearchModel.d.ts +0 -19
- package/lib/operations/deleteNLSearchModel.d.ts.map +0 -1
- package/lib/operations/deleteNLSearchModel.js +0 -26
- package/lib/operations/deleteNLSearchModel.js.map +0 -1
- package/lib/operations/deletePreset.d.ts +0 -19
- package/lib/operations/deletePreset.d.ts.map +0 -1
- package/lib/operations/deletePreset.js +0 -24
- package/lib/operations/deletePreset.js.map +0 -1
- package/lib/operations/deleteStopwordsSet.d.ts +0 -19
- package/lib/operations/deleteStopwordsSet.d.ts.map +0 -1
- package/lib/operations/deleteStopwordsSet.js +0 -26
- package/lib/operations/deleteStopwordsSet.js.map +0 -1
- package/lib/operations/deleteSynonymSet.d.ts +0 -19
- package/lib/operations/deleteSynonymSet.d.ts.map +0 -1
- package/lib/operations/deleteSynonymSet.js +0 -24
- package/lib/operations/deleteSynonymSet.js.map +0 -1
- package/lib/operations/deleteSynonymSetItem.d.ts +0 -21
- package/lib/operations/deleteSynonymSetItem.d.ts.map +0 -1
- package/lib/operations/deleteSynonymSetItem.js +0 -31
- package/lib/operations/deleteSynonymSetItem.js.map +0 -1
- package/lib/operations/exportDocuments.d.ts +0 -18
- package/lib/operations/exportDocuments.d.ts.map +0 -1
- package/lib/operations/exportDocuments.js +0 -27
- package/lib/operations/exportDocuments.js.map +0 -1
- package/lib/operations/flushAnalytics.d.ts +0 -15
- package/lib/operations/flushAnalytics.d.ts.map +0 -1
- package/lib/operations/flushAnalytics.js +0 -18
- package/lib/operations/flushAnalytics.js.map +0 -1
- package/lib/operations/getAlias.d.ts +0 -20
- package/lib/operations/getAlias.d.ts.map +0 -1
- package/lib/operations/getAlias.js +0 -25
- package/lib/operations/getAlias.js.map +0 -1
- package/lib/operations/getAliases.d.ts +0 -18
- package/lib/operations/getAliases.d.ts.map +0 -1
- package/lib/operations/getAliases.js +0 -21
- package/lib/operations/getAliases.js.map +0 -1
- package/lib/operations/getAnalyticsEvents.d.ts +0 -31
- package/lib/operations/getAnalyticsEvents.d.ts.map +0 -1
- package/lib/operations/getAnalyticsEvents.js +0 -38
- package/lib/operations/getAnalyticsEvents.js.map +0 -1
- package/lib/operations/getAnalyticsStatus.d.ts +0 -21
- package/lib/operations/getAnalyticsStatus.d.ts.map +0 -1
- package/lib/operations/getAnalyticsStatus.js +0 -26
- package/lib/operations/getAnalyticsStatus.js.map +0 -1
- package/lib/operations/getCollection.d.ts +0 -67
- package/lib/operations/getCollection.d.ts.map +0 -1
- package/lib/operations/getCollection.js +0 -73
- package/lib/operations/getCollection.js.map +0 -1
- package/lib/operations/getCollections.d.ts +0 -64
- package/lib/operations/getCollections.d.ts.map +0 -1
- package/lib/operations/getCollections.js +0 -69
- package/lib/operations/getCollections.js.map +0 -1
- package/lib/operations/getDocument.d.ts +0 -19
- package/lib/operations/getDocument.d.ts.map +0 -1
- package/lib/operations/getDocument.js +0 -28
- package/lib/operations/getDocument.js.map +0 -1
- package/lib/operations/getKey.d.ts +0 -25
- package/lib/operations/getKey.d.ts.map +0 -1
- package/lib/operations/getKey.js +0 -30
- package/lib/operations/getKey.js.map +0 -1
- package/lib/operations/getKeys.d.ts +0 -21
- package/lib/operations/getKeys.d.ts.map +0 -1
- package/lib/operations/getKeys.js +0 -24
- package/lib/operations/getKeys.js.map +0 -1
- package/lib/operations/getSchemaChanges.d.ts +0 -17
- package/lib/operations/getSchemaChanges.d.ts.map +0 -1
- package/lib/operations/getSchemaChanges.js +0 -20
- package/lib/operations/getSchemaChanges.js.map +0 -1
- package/lib/operations/getStemmingDictionary.d.ts +0 -23
- package/lib/operations/getStemmingDictionary.d.ts.map +0 -1
- package/lib/operations/getStemmingDictionary.js +0 -30
- package/lib/operations/getStemmingDictionary.js.map +0 -1
- package/lib/operations/health.d.ts +0 -13
- package/lib/operations/health.d.ts.map +0 -1
- package/lib/operations/health.js +0 -16
- package/lib/operations/health.js.map +0 -1
- package/lib/operations/importDocuments.d.ts +0 -18
- package/lib/operations/importDocuments.d.ts.map +0 -1
- package/lib/operations/importDocuments.js +0 -27
- package/lib/operations/importDocuments.js.map +0 -1
- package/lib/operations/importStemmingDictionary.d.ts +0 -17
- package/lib/operations/importStemmingDictionary.d.ts.map +0 -1
- package/lib/operations/importStemmingDictionary.js +0 -24
- package/lib/operations/importStemmingDictionary.js.map +0 -1
- package/lib/operations/index.d.ts +0 -80
- package/lib/operations/index.d.ts.map +0 -1
- package/lib/operations/index.js +0 -80
- package/lib/operations/index.js.map +0 -1
- package/lib/operations/indexDocument.d.ts +0 -21
- package/lib/operations/indexDocument.d.ts.map +0 -1
- package/lib/operations/indexDocument.js +0 -27
- package/lib/operations/indexDocument.js.map +0 -1
- package/lib/operations/listStemmingDictionaries.d.ts +0 -15
- package/lib/operations/listStemmingDictionaries.d.ts.map +0 -1
- package/lib/operations/listStemmingDictionaries.js +0 -20
- package/lib/operations/listStemmingDictionaries.js.map +0 -1
- package/lib/operations/multiSearch.d.ts +0 -207
- package/lib/operations/multiSearch.d.ts.map +0 -1
- package/lib/operations/multiSearch.js +0 -212
- package/lib/operations/multiSearch.js.map +0 -1
- package/lib/operations/retrieveAPIStats.d.ts +0 -27
- package/lib/operations/retrieveAPIStats.d.ts.map +0 -1
- package/lib/operations/retrieveAPIStats.js +0 -30
- package/lib/operations/retrieveAPIStats.js.map +0 -1
- package/lib/operations/retrieveAllConversationModels.d.ts +0 -15
- package/lib/operations/retrieveAllConversationModels.d.ts.map +0 -1
- package/lib/operations/retrieveAllConversationModels.js +0 -21
- package/lib/operations/retrieveAllConversationModels.js.map +0 -1
- package/lib/operations/retrieveAllNLSearchModels.d.ts +0 -15
- package/lib/operations/retrieveAllNLSearchModels.d.ts.map +0 -1
- package/lib/operations/retrieveAllNLSearchModels.js +0 -20
- package/lib/operations/retrieveAllNLSearchModels.js.map +0 -1
- package/lib/operations/retrieveAllPresets.d.ts +0 -163
- package/lib/operations/retrieveAllPresets.d.ts.map +0 -1
- package/lib/operations/retrieveAllPresets.js +0 -23
- package/lib/operations/retrieveAllPresets.js.map +0 -1
- package/lib/operations/retrieveAnalyticsRule.d.ts +0 -32
- package/lib/operations/retrieveAnalyticsRule.d.ts.map +0 -1
- package/lib/operations/retrieveAnalyticsRule.js +0 -44
- package/lib/operations/retrieveAnalyticsRule.js.map +0 -1
- package/lib/operations/retrieveAnalyticsRules.d.ts +0 -31
- package/lib/operations/retrieveAnalyticsRules.d.ts.map +0 -1
- package/lib/operations/retrieveAnalyticsRules.js +0 -42
- package/lib/operations/retrieveAnalyticsRules.js.map +0 -1
- package/lib/operations/retrieveConversationModel.d.ts +0 -17
- package/lib/operations/retrieveConversationModel.d.ts.map +0 -1
- package/lib/operations/retrieveConversationModel.js +0 -24
- package/lib/operations/retrieveConversationModel.js.map +0 -1
- package/lib/operations/retrieveCurationSet.d.ts +0 -45
- package/lib/operations/retrieveCurationSet.d.ts.map +0 -1
- package/lib/operations/retrieveCurationSet.js +0 -52
- package/lib/operations/retrieveCurationSet.js.map +0 -1
- package/lib/operations/retrieveCurationSetItem.d.ts +0 -43
- package/lib/operations/retrieveCurationSetItem.d.ts.map +0 -1
- package/lib/operations/retrieveCurationSetItem.js +0 -53
- package/lib/operations/retrieveCurationSetItem.js.map +0 -1
- package/lib/operations/retrieveCurationSetItems.d.ts +0 -41
- package/lib/operations/retrieveCurationSetItems.d.ts.map +0 -1
- package/lib/operations/retrieveCurationSetItems.js +0 -48
- package/lib/operations/retrieveCurationSetItems.js.map +0 -1
- package/lib/operations/retrieveCurationSets.d.ts +0 -41
- package/lib/operations/retrieveCurationSets.d.ts.map +0 -1
- package/lib/operations/retrieveCurationSets.js +0 -46
- package/lib/operations/retrieveCurationSets.js.map +0 -1
- package/lib/operations/retrieveMetrics.d.ts +0 -13
- package/lib/operations/retrieveMetrics.d.ts.map +0 -1
- package/lib/operations/retrieveMetrics.js +0 -17
- package/lib/operations/retrieveMetrics.js.map +0 -1
- package/lib/operations/retrieveNLSearchModel.d.ts +0 -19
- package/lib/operations/retrieveNLSearchModel.d.ts.map +0 -1
- package/lib/operations/retrieveNLSearchModel.js +0 -26
- package/lib/operations/retrieveNLSearchModel.js.map +0 -1
- package/lib/operations/retrievePreset.d.ts +0 -165
- package/lib/operations/retrievePreset.d.ts.map +0 -1
- package/lib/operations/retrievePreset.js +0 -25
- package/lib/operations/retrievePreset.js.map +0 -1
- package/lib/operations/retrieveStopwordsSet.d.ts +0 -23
- package/lib/operations/retrieveStopwordsSet.d.ts.map +0 -1
- package/lib/operations/retrieveStopwordsSet.js +0 -30
- package/lib/operations/retrieveStopwordsSet.js.map +0 -1
- package/lib/operations/retrieveStopwordsSets.d.ts +0 -19
- package/lib/operations/retrieveStopwordsSets.d.ts.map +0 -1
- package/lib/operations/retrieveStopwordsSets.js +0 -24
- package/lib/operations/retrieveStopwordsSets.js.map +0 -1
- package/lib/operations/retrieveSynonymSet.d.ts +0 -26
- package/lib/operations/retrieveSynonymSet.d.ts.map +0 -1
- package/lib/operations/retrieveSynonymSet.js +0 -33
- package/lib/operations/retrieveSynonymSet.js.map +0 -1
- package/lib/operations/retrieveSynonymSetItem.d.ts +0 -25
- package/lib/operations/retrieveSynonymSetItem.d.ts.map +0 -1
- package/lib/operations/retrieveSynonymSetItem.js +0 -35
- package/lib/operations/retrieveSynonymSetItem.js.map +0 -1
- package/lib/operations/retrieveSynonymSetItems.d.ts +0 -23
- package/lib/operations/retrieveSynonymSetItems.d.ts.map +0 -1
- package/lib/operations/retrieveSynonymSetItems.js +0 -30
- package/lib/operations/retrieveSynonymSetItems.js.map +0 -1
- package/lib/operations/retrieveSynonymSets.d.ts +0 -22
- package/lib/operations/retrieveSynonymSets.d.ts.map +0 -1
- package/lib/operations/retrieveSynonymSets.js +0 -27
- package/lib/operations/retrieveSynonymSets.js.map +0 -1
- package/lib/operations/searchCollection.d.ts +0 -129
- package/lib/operations/searchCollection.d.ts.map +0 -1
- package/lib/operations/searchCollection.js +0 -137
- package/lib/operations/searchCollection.js.map +0 -1
- package/lib/operations/takeSnapshot.d.ts +0 -18
- package/lib/operations/takeSnapshot.d.ts.map +0 -1
- package/lib/operations/takeSnapshot.js +0 -22
- package/lib/operations/takeSnapshot.js.map +0 -1
- package/lib/operations/toggleSlowRequestLog.d.ts +0 -16
- package/lib/operations/toggleSlowRequestLog.d.ts.map +0 -1
- package/lib/operations/toggleSlowRequestLog.js +0 -22
- package/lib/operations/toggleSlowRequestLog.js.map +0 -1
- package/lib/operations/updateCollection.d.ts +0 -95
- package/lib/operations/updateCollection.d.ts.map +0 -1
- package/lib/operations/updateCollection.js +0 -101
- package/lib/operations/updateCollection.js.map +0 -1
- package/lib/operations/updateConversationModel.d.ts +0 -27
- package/lib/operations/updateConversationModel.d.ts.map +0 -1
- package/lib/operations/updateConversationModel.js +0 -35
- package/lib/operations/updateConversationModel.js.map +0 -1
- package/lib/operations/updateDocument.d.ts +0 -21
- package/lib/operations/updateDocument.d.ts.map +0 -1
- package/lib/operations/updateDocument.js +0 -30
- package/lib/operations/updateDocument.js.map +0 -1
- package/lib/operations/updateDocuments.d.ts +0 -20
- package/lib/operations/updateDocuments.d.ts.map +0 -1
- package/lib/operations/updateDocuments.js +0 -25
- package/lib/operations/updateDocuments.js.map +0 -1
- package/lib/operations/updateNLSearchModel.d.ts +0 -19
- package/lib/operations/updateNLSearchModel.d.ts.map +0 -1
- package/lib/operations/updateNLSearchModel.js +0 -26
- package/lib/operations/updateNLSearchModel.js.map +0 -1
- package/lib/operations/upsertAlias.d.ts +0 -21
- package/lib/operations/upsertAlias.d.ts.map +0 -1
- package/lib/operations/upsertAlias.js +0 -26
- package/lib/operations/upsertAlias.js.map +0 -1
- package/lib/operations/upsertAnalyticsRule.d.ts +0 -43
- package/lib/operations/upsertAnalyticsRule.d.ts.map +0 -1
- package/lib/operations/upsertAnalyticsRule.js +0 -55
- package/lib/operations/upsertAnalyticsRule.js.map +0 -1
- package/lib/operations/upsertCurationSet.d.ts +0 -71
- package/lib/operations/upsertCurationSet.d.ts.map +0 -1
- package/lib/operations/upsertCurationSet.js +0 -77
- package/lib/operations/upsertCurationSet.js.map +0 -1
- package/lib/operations/upsertCurationSetItem.d.ts +0 -66
- package/lib/operations/upsertCurationSetItem.d.ts.map +0 -1
- package/lib/operations/upsertCurationSetItem.js +0 -76
- package/lib/operations/upsertCurationSetItem.js.map +0 -1
- package/lib/operations/upsertPreset.d.ts +0 -311
- package/lib/operations/upsertPreset.d.ts.map +0 -1
- package/lib/operations/upsertPreset.js +0 -26
- package/lib/operations/upsertPreset.js.map +0 -1
- package/lib/operations/upsertStopwordsSet.d.ts +0 -23
- package/lib/operations/upsertStopwordsSet.d.ts.map +0 -1
- package/lib/operations/upsertStopwordsSet.js +0 -30
- package/lib/operations/upsertStopwordsSet.js.map +0 -1
- package/lib/operations/upsertSynonymSet.d.ts +0 -33
- package/lib/operations/upsertSynonymSet.d.ts.map +0 -1
- package/lib/operations/upsertSynonymSet.js +0 -38
- package/lib/operations/upsertSynonymSet.js.map +0 -1
- package/lib/operations/upsertSynonymSetItem.d.ts +0 -29
- package/lib/operations/upsertSynonymSetItem.d.ts.map +0 -1
- package/lib/operations/upsertSynonymSetItem.js +0 -39
- package/lib/operations/upsertSynonymSetItem.js.map +0 -1
- package/lib/operations/vote.d.ts +0 -15
- package/lib/operations/vote.d.ts.map +0 -1
- package/lib/operations/vote.js +0 -18
- package/lib/operations/vote.js.map +0 -1
- package/lib/sensitive.d.ts +0 -5
- package/lib/sensitive.d.ts.map +0 -1
- package/lib/sensitive.js +0 -5
- package/lib/sensitive.js.map +0 -1
- package/src/category.ts +0 -4
- package/src/client.ts +0 -71
- package/src/operations/clearCache.ts +0 -28
- package/src/operations/compactDb.ts +0 -28
- package/src/operations/createAnalyticsEvent.ts +0 -52
- package/src/operations/createAnalyticsRule.ts +0 -117
- package/src/operations/createCollection.ts +0 -228
- package/src/operations/createConversationModel.ts +0 -54
- package/src/operations/createKey.ts +0 -54
- package/src/operations/createNLSearchModel.ts +0 -74
- package/src/operations/debug.ts +0 -26
- package/src/operations/deleteAlias.ts +0 -36
- package/src/operations/deleteAnalyticsRule.ts +0 -71
- package/src/operations/deleteCollection.ts +0 -136
- package/src/operations/deleteConversationModel.ts +0 -36
- package/src/operations/deleteCurationSet.ts +0 -37
- package/src/operations/deleteCurationSetItem.ts +0 -44
- package/src/operations/deleteDocument.ts +0 -39
- package/src/operations/deleteDocuments.ts +0 -38
- package/src/operations/deleteKey.ts +0 -34
- package/src/operations/deleteNLSearchModel.ts +0 -38
- package/src/operations/deletePreset.ts +0 -36
- package/src/operations/deleteStopwordsSet.ts +0 -38
- package/src/operations/deleteSynonymSet.ts +0 -36
- package/src/operations/deleteSynonymSetItem.ts +0 -44
- package/src/operations/exportDocuments.ts +0 -38
- package/src/operations/flushAnalytics.ts +0 -28
- package/src/operations/getAlias.ts +0 -38
- package/src/operations/getAliases.ts +0 -33
- package/src/operations/getAnalyticsEvents.ts +0 -63
- package/src/operations/getAnalyticsStatus.ts +0 -42
- package/src/operations/getCollection.ts +0 -136
- package/src/operations/getCollections.ts +0 -134
- package/src/operations/getDocument.ts +0 -39
- package/src/operations/getKey.ts +0 -48
- package/src/operations/getKeys.ts +0 -44
- package/src/operations/getSchemaChanges.ts +0 -34
- package/src/operations/getStemmingDictionary.ts +0 -45
- package/src/operations/health.ts +0 -26
- package/src/operations/importDocuments.ts +0 -38
- package/src/operations/importStemmingDictionary.ts +0 -34
- package/src/operations/index.ts +0 -79
- package/src/operations/indexDocument.ts +0 -39
- package/src/operations/listStemmingDictionaries.ts +0 -30
- package/src/operations/multiSearch.ts +0 -476
- package/src/operations/retrieveAPIStats.ts +0 -52
- package/src/operations/retrieveAllConversationModels.ts +0 -31
- package/src/operations/retrieveAllNLSearchModels.ts +0 -30
- package/src/operations/retrieveAllPresets.ts +0 -188
- package/src/operations/retrieveAnalyticsRule.ts +0 -71
- package/src/operations/retrieveAnalyticsRules.ts +0 -71
- package/src/operations/retrieveConversationModel.ts +0 -36
- package/src/operations/retrieveCurationSet.ts +0 -95
- package/src/operations/retrieveCurationSetItem.ts +0 -91
- package/src/operations/retrieveCurationSetItems.ts +0 -87
- package/src/operations/retrieveCurationSets.ts +0 -89
- package/src/operations/retrieveMetrics.ts +0 -25
- package/src/operations/retrieveNLSearchModel.ts +0 -38
- package/src/operations/retrievePreset.ts +0 -185
- package/src/operations/retrieveStopwordsSet.ts +0 -42
- package/src/operations/retrieveStopwordsSets.ts +0 -36
- package/src/operations/retrieveSynonymSet.ts +0 -54
- package/src/operations/retrieveSynonymSetItem.ts +0 -52
- package/src/operations/retrieveSynonymSetItems.ts +0 -48
- package/src/operations/retrieveSynonymSets.ts +0 -48
- package/src/operations/searchCollection.ts +0 -309
- package/src/operations/takeSnapshot.ts +0 -34
- package/src/operations/toggleSlowRequestLog.ts +0 -34
- package/src/operations/updateCollection.ts +0 -200
- package/src/operations/updateConversationModel.ts +0 -56
- package/src/operations/updateDocument.ts +0 -42
- package/src/operations/updateDocuments.ts +0 -38
- package/src/operations/updateNLSearchModel.ts +0 -38
- package/src/operations/upsertAlias.ts +0 -40
- package/src/operations/upsertAnalyticsRule.ts +0 -95
- package/src/operations/upsertCurationSet.ts +0 -151
- package/src/operations/upsertCurationSetItem.ts +0 -140
- package/src/operations/upsertPreset.ts +0 -334
- package/src/operations/upsertStopwordsSet.ts +0 -46
- package/src/operations/upsertSynonymSet.ts +0 -68
- package/src/operations/upsertSynonymSetItem.ts +0 -60
- package/src/operations/vote.ts +0 -28
- package/src/sensitive.ts +0 -4
|
@@ -0,0 +1,2917 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs. Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as T from "../traits.js";
|
|
5
|
+
import { TypesenseProtocol, } from "../protocol.js";
|
|
6
|
+
import * as Retry from "../retry.js";
|
|
7
|
+
export class BadRequest extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
8
|
+
/*@__PURE__*/ S.TaggedErrorClass()("BadRequest", {
|
|
9
|
+
code: S.Number,
|
|
10
|
+
message: S.String,
|
|
11
|
+
}), [{ status: 400 }]) {
|
|
12
|
+
}
|
|
13
|
+
export class Conflict extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
14
|
+
/*@__PURE__*/ S.TaggedErrorClass()("Conflict", {
|
|
15
|
+
code: S.Number,
|
|
16
|
+
message: S.String,
|
|
17
|
+
}), [{ status: 409 }]) {
|
|
18
|
+
}
|
|
19
|
+
export class NotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
20
|
+
/*@__PURE__*/ S.TaggedErrorClass()("NotFound", {
|
|
21
|
+
code: S.Number,
|
|
22
|
+
message: S.String,
|
|
23
|
+
}), [{ status: 404 }]) {
|
|
24
|
+
}
|
|
25
|
+
export const ClearCacheRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/operations/cache/clear", code: 200 }))).annotate({
|
|
26
|
+
identifier: "ClearCacheRequest",
|
|
27
|
+
});
|
|
28
|
+
export const SuccessStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
29
|
+
success: S.Boolean,
|
|
30
|
+
})).annotate({ identifier: "SuccessStatus" });
|
|
31
|
+
export const CompactDbRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/operations/db/compact", code: 200 }))).annotate({
|
|
32
|
+
identifier: "CompactDbRequest",
|
|
33
|
+
});
|
|
34
|
+
export const CreateAnalyticsEventRequestDataDocIdsList = /*@__PURE__*/ S.Array(S.String);
|
|
35
|
+
export const CreateAnalyticsEventRequestData = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
36
|
+
user_id: S.optional(S.String),
|
|
37
|
+
doc_id: S.optional(S.String),
|
|
38
|
+
doc_ids: S.optional(CreateAnalyticsEventRequestDataDocIdsList),
|
|
39
|
+
q: S.optional(S.String),
|
|
40
|
+
analytics_tag: S.optional(S.String),
|
|
41
|
+
})).annotate({
|
|
42
|
+
identifier: "CreateAnalyticsEventRequestData",
|
|
43
|
+
});
|
|
44
|
+
export const CreateAnalyticsEventRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
45
|
+
name: S.String,
|
|
46
|
+
event_type: S.String,
|
|
47
|
+
data: CreateAnalyticsEventRequestData,
|
|
48
|
+
}).pipe(T.Http({ method: "POST", uri: "/analytics/events", code: 200 }))).annotate({
|
|
49
|
+
identifier: "CreateAnalyticsEventRequest",
|
|
50
|
+
});
|
|
51
|
+
export const AnalyticsEventCreateResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
52
|
+
ok: S.Boolean,
|
|
53
|
+
})).annotate({
|
|
54
|
+
identifier: "AnalyticsEventCreateResponse",
|
|
55
|
+
});
|
|
56
|
+
export const AnalyticsRuleType = /*@__PURE__*/ S.String;
|
|
57
|
+
export const AnalyticsRuleCreateParamsMetaFieldsList = /*@__PURE__*/ S.Array(S.String);
|
|
58
|
+
export const AnalyticsRuleCreateParams = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
59
|
+
destination_collection: S.optional(S.String),
|
|
60
|
+
limit: S.optional(S.Number),
|
|
61
|
+
capture_search_requests: S.optional(S.Boolean),
|
|
62
|
+
meta_fields: S.optional(AnalyticsRuleCreateParamsMetaFieldsList),
|
|
63
|
+
expand_query: S.optional(S.Boolean),
|
|
64
|
+
counter_field: S.optional(S.String),
|
|
65
|
+
weight: S.optional(S.Number),
|
|
66
|
+
})).annotate({
|
|
67
|
+
identifier: "AnalyticsRuleCreateParams",
|
|
68
|
+
});
|
|
69
|
+
export const AnalyticsRuleCreate = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
70
|
+
name: S.String,
|
|
71
|
+
type: AnalyticsRuleType,
|
|
72
|
+
collection: S.String,
|
|
73
|
+
event_type: S.String,
|
|
74
|
+
rule_tag: S.optional(S.String),
|
|
75
|
+
params: S.optional(AnalyticsRuleCreateParams),
|
|
76
|
+
})).annotate({
|
|
77
|
+
identifier: "AnalyticsRuleCreate",
|
|
78
|
+
});
|
|
79
|
+
export const CreateAnalyticsRuleRequestBodyCase1List = /*@__PURE__*/ S.Array(AnalyticsRuleCreate);
|
|
80
|
+
export const CreateAnalyticsRuleRequestBody = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
|
|
81
|
+
["name", "type", "collection", "event_type", "rule_tag", "params"],
|
|
82
|
+
[],
|
|
83
|
+
]));
|
|
84
|
+
export const CreateAnalyticsRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
85
|
+
body: CreateAnalyticsRuleRequestBody.pipe(T.HttpBody()),
|
|
86
|
+
}).pipe(T.Http({ method: "POST", uri: "/analytics/rules", code: 200 }))).annotate({
|
|
87
|
+
identifier: "CreateAnalyticsRuleRequest",
|
|
88
|
+
});
|
|
89
|
+
export const AnalyticsRuleParamsMetaFieldsList = /*@__PURE__*/ S.Array(S.String);
|
|
90
|
+
export const AnalyticsRuleParams = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
91
|
+
destination_collection: S.optional(S.String),
|
|
92
|
+
limit: S.optional(S.Number),
|
|
93
|
+
capture_search_requests: S.optional(S.Boolean),
|
|
94
|
+
meta_fields: S.optional(AnalyticsRuleParamsMetaFieldsList),
|
|
95
|
+
expand_query: S.optional(S.Boolean),
|
|
96
|
+
counter_field: S.optional(S.String),
|
|
97
|
+
weight: S.optional(S.Number),
|
|
98
|
+
})).annotate({
|
|
99
|
+
identifier: "AnalyticsRuleParams",
|
|
100
|
+
});
|
|
101
|
+
export const AnalyticsRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
102
|
+
name: S.String,
|
|
103
|
+
type: AnalyticsRuleType,
|
|
104
|
+
collection: S.String,
|
|
105
|
+
event_type: S.String,
|
|
106
|
+
rule_tag: S.optional(S.String),
|
|
107
|
+
params: S.optional(AnalyticsRuleParams),
|
|
108
|
+
})).annotate({ identifier: "AnalyticsRule" });
|
|
109
|
+
export const CreateAnalyticsRuleResponseBodyCase1ItemCase1 =
|
|
110
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
111
|
+
error: S.optional(S.String),
|
|
112
|
+
})).annotate({
|
|
113
|
+
identifier: "CreateAnalyticsRuleResponseBodyCase1ItemCase1",
|
|
114
|
+
});
|
|
115
|
+
export const CreateAnalyticsRuleResponseBodyCase1Item =
|
|
116
|
+
/*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
|
|
117
|
+
["name", "type", "collection", "event_type", "rule_tag", "params"],
|
|
118
|
+
["error"],
|
|
119
|
+
]));
|
|
120
|
+
export const CreateAnalyticsRuleResponseBodyCase1List = /*@__PURE__*/ S.Array(CreateAnalyticsRuleResponseBodyCase1Item);
|
|
121
|
+
export const CreateAnalyticsRuleResponseBody = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
|
|
122
|
+
["name", "type", "collection", "event_type", "rule_tag", "params"],
|
|
123
|
+
[],
|
|
124
|
+
]));
|
|
125
|
+
export const CreateAnalyticsRuleResponse = /*@__PURE__*/ S.suspend(() => CreateAnalyticsRuleResponseBody.pipe(T.RawResponseRoot())).annotate({
|
|
126
|
+
identifier: "CreateAnalyticsRuleResponse",
|
|
127
|
+
});
|
|
128
|
+
export const FieldTokenSeparatorsList = /*@__PURE__*/ S.Array(S.String);
|
|
129
|
+
export const FieldSymbolsToIndexList = /*@__PURE__*/ S.Array(S.String);
|
|
130
|
+
export const FieldEmbedFromList = /*@__PURE__*/ S.Array(S.String);
|
|
131
|
+
export const FieldEmbedModelConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
132
|
+
model_name: S.String,
|
|
133
|
+
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
134
|
+
url: S.optional(S.String),
|
|
135
|
+
access_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
136
|
+
refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
137
|
+
client_id: S.optional(S.String),
|
|
138
|
+
client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
139
|
+
project_id: S.optional(S.String),
|
|
140
|
+
indexing_prefix: S.optional(S.String),
|
|
141
|
+
query_prefix: S.optional(S.String),
|
|
142
|
+
})).annotate({
|
|
143
|
+
identifier: "FieldEmbedModelConfig",
|
|
144
|
+
});
|
|
145
|
+
export const FieldEmbed = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
146
|
+
from: FieldEmbedFromList,
|
|
147
|
+
model_config: FieldEmbedModelConfig,
|
|
148
|
+
})).annotate({ identifier: "FieldEmbed" });
|
|
149
|
+
export const Field = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
150
|
+
name: S.String,
|
|
151
|
+
type: S.String,
|
|
152
|
+
optional: S.optional(S.Boolean),
|
|
153
|
+
facet: S.optional(S.Boolean),
|
|
154
|
+
index: S.optional(S.Boolean),
|
|
155
|
+
locale: S.optional(S.String),
|
|
156
|
+
sort: S.optional(S.Boolean),
|
|
157
|
+
infix: S.optional(S.Boolean),
|
|
158
|
+
reference: S.optional(S.String),
|
|
159
|
+
async_reference: S.optional(S.Boolean),
|
|
160
|
+
num_dim: S.optional(S.Number),
|
|
161
|
+
drop: S.optional(S.Boolean),
|
|
162
|
+
store: S.optional(S.Boolean),
|
|
163
|
+
vec_dist: S.optional(S.String),
|
|
164
|
+
range_index: S.optional(S.Boolean),
|
|
165
|
+
stem: S.optional(S.Boolean),
|
|
166
|
+
stem_dictionary: S.optional(S.String),
|
|
167
|
+
token_separators: S.optional(FieldTokenSeparatorsList),
|
|
168
|
+
symbols_to_index: S.optional(FieldSymbolsToIndexList),
|
|
169
|
+
embed: S.optional(FieldEmbed),
|
|
170
|
+
})).annotate({ identifier: "Field" });
|
|
171
|
+
export const CreateCollectionRequestFieldsList = /*@__PURE__*/ S.Array(Field);
|
|
172
|
+
export const CreateCollectionRequestTokenSeparatorsList = /*@__PURE__*/ S.Array(S.String);
|
|
173
|
+
export const CreateCollectionRequestSynonymSetsList = /*@__PURE__*/ S.Array(S.String);
|
|
174
|
+
export const CreateCollectionRequestSymbolsToIndexList = /*@__PURE__*/ S.Array(S.String);
|
|
175
|
+
export const VoiceQueryModelCollectionConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
176
|
+
model_name: S.optional(S.String),
|
|
177
|
+
})).annotate({
|
|
178
|
+
identifier: "VoiceQueryModelCollectionConfig",
|
|
179
|
+
});
|
|
180
|
+
export const CreateCollectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
181
|
+
name: S.String,
|
|
182
|
+
fields: CreateCollectionRequestFieldsList,
|
|
183
|
+
default_sorting_field: S.optional(S.String),
|
|
184
|
+
token_separators: S.optional(CreateCollectionRequestTokenSeparatorsList),
|
|
185
|
+
synonym_sets: S.optional(CreateCollectionRequestSynonymSetsList),
|
|
186
|
+
enable_nested_fields: S.optional(S.Boolean),
|
|
187
|
+
symbols_to_index: S.optional(CreateCollectionRequestSymbolsToIndexList),
|
|
188
|
+
voice_query_model: S.optional(VoiceQueryModelCollectionConfig),
|
|
189
|
+
metadata: S.optional(S.Unknown),
|
|
190
|
+
}).pipe(T.Http({ method: "POST", uri: "/collections", code: 200 }))).annotate({
|
|
191
|
+
identifier: "CreateCollectionRequest",
|
|
192
|
+
});
|
|
193
|
+
export const CreateCollectionResponseFieldsList = /*@__PURE__*/ S.Array(Field);
|
|
194
|
+
export const CreateCollectionResponseTokenSeparatorsList =
|
|
195
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
196
|
+
export const CreateCollectionResponseSynonymSetsList = /*@__PURE__*/ S.Array(S.String);
|
|
197
|
+
export const CreateCollectionResponseSymbolsToIndexList = /*@__PURE__*/ S.Array(S.String);
|
|
198
|
+
export const CreateCollectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
199
|
+
name: S.String,
|
|
200
|
+
fields: CreateCollectionResponseFieldsList,
|
|
201
|
+
default_sorting_field: S.optional(S.String),
|
|
202
|
+
token_separators: S.optional(CreateCollectionResponseTokenSeparatorsList),
|
|
203
|
+
synonym_sets: S.optional(CreateCollectionResponseSynonymSetsList),
|
|
204
|
+
enable_nested_fields: S.optional(S.Boolean),
|
|
205
|
+
symbols_to_index: S.optional(CreateCollectionResponseSymbolsToIndexList),
|
|
206
|
+
voice_query_model: S.optional(VoiceQueryModelCollectionConfig),
|
|
207
|
+
metadata: S.optional(S.Unknown),
|
|
208
|
+
num_documents: S.Number,
|
|
209
|
+
created_at: S.Number,
|
|
210
|
+
})).annotate({
|
|
211
|
+
identifier: "CreateCollectionResponse",
|
|
212
|
+
});
|
|
213
|
+
export const CreateConversationModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
214
|
+
id: S.optional(S.String),
|
|
215
|
+
model_name: S.String,
|
|
216
|
+
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
217
|
+
history_collection: S.String,
|
|
218
|
+
account_id: S.optional(S.String),
|
|
219
|
+
system_prompt: S.optional(S.String),
|
|
220
|
+
ttl: S.optional(S.Number),
|
|
221
|
+
max_bytes: S.Number,
|
|
222
|
+
vllm_url: S.optional(S.String),
|
|
223
|
+
}).pipe(T.Http({ method: "POST", uri: "/conversations/models", code: 200 }))).annotate({
|
|
224
|
+
identifier: "CreateConversationModelRequest",
|
|
225
|
+
});
|
|
226
|
+
export const CreateConversationModelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
227
|
+
id: S.String,
|
|
228
|
+
model_name: S.String,
|
|
229
|
+
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
230
|
+
history_collection: S.String,
|
|
231
|
+
account_id: S.optional(S.String),
|
|
232
|
+
system_prompt: S.optional(S.String),
|
|
233
|
+
ttl: S.optional(S.Number),
|
|
234
|
+
max_bytes: S.Number,
|
|
235
|
+
vllm_url: S.optional(S.String),
|
|
236
|
+
})).annotate({
|
|
237
|
+
identifier: "CreateConversationModelResponse",
|
|
238
|
+
});
|
|
239
|
+
export const CreateKeyRequestActionsList = /*@__PURE__*/ S.Array(S.String);
|
|
240
|
+
export const CreateKeyRequestCollectionsList = /*@__PURE__*/ S.Array(S.String);
|
|
241
|
+
export const CreateKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
242
|
+
value: S.optional(S.String),
|
|
243
|
+
description: S.String,
|
|
244
|
+
actions: CreateKeyRequestActionsList,
|
|
245
|
+
collections: CreateKeyRequestCollectionsList,
|
|
246
|
+
expires_at: S.optional(S.Number),
|
|
247
|
+
}).pipe(T.Http({ method: "POST", uri: "/keys", code: 200 }))).annotate({
|
|
248
|
+
identifier: "CreateKeyRequest",
|
|
249
|
+
});
|
|
250
|
+
export const CreateKeyResponseActionsList = /*@__PURE__*/ S.Array(S.String);
|
|
251
|
+
export const CreateKeyResponseCollectionsList = /*@__PURE__*/ S.Array(S.String);
|
|
252
|
+
export const CreateKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
253
|
+
value: S.optional(S.String),
|
|
254
|
+
description: S.String,
|
|
255
|
+
actions: CreateKeyResponseActionsList,
|
|
256
|
+
collections: CreateKeyResponseCollectionsList,
|
|
257
|
+
expires_at: S.optional(S.Number),
|
|
258
|
+
id: S.optional(S.Number),
|
|
259
|
+
value_prefix: S.optional(S.String),
|
|
260
|
+
})).annotate({
|
|
261
|
+
identifier: "CreateKeyResponse",
|
|
262
|
+
});
|
|
263
|
+
export const CreateNLSearchModelRequestStopSequencesList =
|
|
264
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
265
|
+
export const CreateNLSearchModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
266
|
+
model_name: S.optional(S.String),
|
|
267
|
+
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
268
|
+
api_url: S.optional(S.String),
|
|
269
|
+
max_bytes: S.optional(S.Number),
|
|
270
|
+
temperature: S.optional(S.Number),
|
|
271
|
+
system_prompt: S.optional(S.String),
|
|
272
|
+
top_p: S.optional(S.Number),
|
|
273
|
+
top_k: S.optional(S.Number),
|
|
274
|
+
stop_sequences: S.optional(CreateNLSearchModelRequestStopSequencesList),
|
|
275
|
+
api_version: S.optional(S.String),
|
|
276
|
+
project_id: S.optional(S.String),
|
|
277
|
+
access_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
278
|
+
refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
279
|
+
client_id: S.optional(S.String),
|
|
280
|
+
client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
281
|
+
region: S.optional(S.String),
|
|
282
|
+
max_output_tokens: S.optional(S.Number),
|
|
283
|
+
account_id: S.optional(S.String),
|
|
284
|
+
id: S.optional(S.String),
|
|
285
|
+
}).pipe(T.Http({ method: "POST", uri: "/nl_search_models", code: 200 }))).annotate({
|
|
286
|
+
identifier: "CreateNLSearchModelRequest",
|
|
287
|
+
});
|
|
288
|
+
export const CreateNLSearchModelResponseStopSequencesList =
|
|
289
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
290
|
+
export const CreateNLSearchModelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
291
|
+
model_name: S.optional(S.String),
|
|
292
|
+
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
293
|
+
api_url: S.optional(S.String),
|
|
294
|
+
max_bytes: S.optional(S.Number),
|
|
295
|
+
temperature: S.optional(S.Number),
|
|
296
|
+
system_prompt: S.optional(S.String),
|
|
297
|
+
top_p: S.optional(S.Number),
|
|
298
|
+
top_k: S.optional(S.Number),
|
|
299
|
+
stop_sequences: S.optional(CreateNLSearchModelResponseStopSequencesList),
|
|
300
|
+
api_version: S.optional(S.String),
|
|
301
|
+
project_id: S.optional(S.String),
|
|
302
|
+
access_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
303
|
+
refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
304
|
+
client_id: S.optional(S.String),
|
|
305
|
+
client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
306
|
+
region: S.optional(S.String),
|
|
307
|
+
max_output_tokens: S.optional(S.Number),
|
|
308
|
+
account_id: S.optional(S.String),
|
|
309
|
+
id: S.String,
|
|
310
|
+
})).annotate({
|
|
311
|
+
identifier: "CreateNLSearchModelResponse",
|
|
312
|
+
});
|
|
313
|
+
export const DebugRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/debug", code: 200 }))).annotate({ identifier: "DebugRequest" });
|
|
314
|
+
export const DebugResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
315
|
+
version: S.optional(S.String),
|
|
316
|
+
})).annotate({ identifier: "DebugResponse" });
|
|
317
|
+
export const DeleteAliasRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
318
|
+
aliasName: S.String.pipe(T.Label()),
|
|
319
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/aliases/{aliasName}", code: 200 }))).annotate({
|
|
320
|
+
identifier: "DeleteAliasRequest",
|
|
321
|
+
});
|
|
322
|
+
export const CollectionAlias = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
323
|
+
name: S.String,
|
|
324
|
+
collection_name: S.String,
|
|
325
|
+
})).annotate({
|
|
326
|
+
identifier: "CollectionAlias",
|
|
327
|
+
});
|
|
328
|
+
export const DeleteAnalyticsRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
329
|
+
ruleName: S.String.pipe(T.Label()),
|
|
330
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/analytics/rules/{ruleName}", code: 200 }))).annotate({
|
|
331
|
+
identifier: "DeleteAnalyticsRuleRequest",
|
|
332
|
+
});
|
|
333
|
+
export const DeleteAnalyticsRuleResponseParamsMetaFieldsList =
|
|
334
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
335
|
+
export const DeleteAnalyticsRuleResponseParams = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
336
|
+
destination_collection: S.optional(S.String),
|
|
337
|
+
limit: S.optional(S.Number),
|
|
338
|
+
capture_search_requests: S.optional(S.Boolean),
|
|
339
|
+
meta_fields: S.optional(DeleteAnalyticsRuleResponseParamsMetaFieldsList),
|
|
340
|
+
expand_query: S.optional(S.Boolean),
|
|
341
|
+
counter_field: S.optional(S.String),
|
|
342
|
+
weight: S.optional(S.Number),
|
|
343
|
+
})).annotate({
|
|
344
|
+
identifier: "DeleteAnalyticsRuleResponseParams",
|
|
345
|
+
});
|
|
346
|
+
export const DeleteAnalyticsRuleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
347
|
+
name: S.String,
|
|
348
|
+
type: AnalyticsRuleType,
|
|
349
|
+
collection: S.String,
|
|
350
|
+
event_type: S.String,
|
|
351
|
+
rule_tag: S.optional(S.String),
|
|
352
|
+
params: S.optional(DeleteAnalyticsRuleResponseParams),
|
|
353
|
+
})).annotate({
|
|
354
|
+
identifier: "DeleteAnalyticsRuleResponse",
|
|
355
|
+
});
|
|
356
|
+
export const DeleteCollectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
357
|
+
collectionName: S.String.pipe(T.Label()),
|
|
358
|
+
}).pipe(T.Http({
|
|
359
|
+
method: "DELETE",
|
|
360
|
+
uri: "/collections/{collectionName}",
|
|
361
|
+
code: 200,
|
|
362
|
+
}))).annotate({
|
|
363
|
+
identifier: "DeleteCollectionRequest",
|
|
364
|
+
});
|
|
365
|
+
export const DeleteCollectionResponseFieldsList = /*@__PURE__*/ S.Array(Field);
|
|
366
|
+
export const DeleteCollectionResponseTokenSeparatorsList =
|
|
367
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
368
|
+
export const DeleteCollectionResponseSynonymSetsList = /*@__PURE__*/ S.Array(S.String);
|
|
369
|
+
export const DeleteCollectionResponseSymbolsToIndexList = /*@__PURE__*/ S.Array(S.String);
|
|
370
|
+
export const DeleteCollectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
371
|
+
name: S.String,
|
|
372
|
+
fields: DeleteCollectionResponseFieldsList,
|
|
373
|
+
default_sorting_field: S.optional(S.String),
|
|
374
|
+
token_separators: S.optional(DeleteCollectionResponseTokenSeparatorsList),
|
|
375
|
+
synonym_sets: S.optional(DeleteCollectionResponseSynonymSetsList),
|
|
376
|
+
enable_nested_fields: S.optional(S.Boolean),
|
|
377
|
+
symbols_to_index: S.optional(DeleteCollectionResponseSymbolsToIndexList),
|
|
378
|
+
voice_query_model: S.optional(VoiceQueryModelCollectionConfig),
|
|
379
|
+
metadata: S.optional(S.Unknown),
|
|
380
|
+
num_documents: S.Number,
|
|
381
|
+
created_at: S.Number,
|
|
382
|
+
})).annotate({
|
|
383
|
+
identifier: "DeleteCollectionResponse",
|
|
384
|
+
});
|
|
385
|
+
export const DeleteConversationModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
386
|
+
modelId: S.String.pipe(T.Label()),
|
|
387
|
+
}).pipe(T.Http({
|
|
388
|
+
method: "DELETE",
|
|
389
|
+
uri: "/conversations/models/{modelId}",
|
|
390
|
+
code: 200,
|
|
391
|
+
}))).annotate({
|
|
392
|
+
identifier: "DeleteConversationModelRequest",
|
|
393
|
+
});
|
|
394
|
+
export const DeleteConversationModelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
395
|
+
id: S.String,
|
|
396
|
+
model_name: S.String,
|
|
397
|
+
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
398
|
+
history_collection: S.String,
|
|
399
|
+
account_id: S.optional(S.String),
|
|
400
|
+
system_prompt: S.optional(S.String),
|
|
401
|
+
ttl: S.optional(S.Number),
|
|
402
|
+
max_bytes: S.Number,
|
|
403
|
+
vllm_url: S.optional(S.String),
|
|
404
|
+
})).annotate({
|
|
405
|
+
identifier: "DeleteConversationModelResponse",
|
|
406
|
+
});
|
|
407
|
+
export const DeleteCurationSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
408
|
+
curationSetName: S.String.pipe(T.Label()),
|
|
409
|
+
}).pipe(T.Http({
|
|
410
|
+
method: "DELETE",
|
|
411
|
+
uri: "/curation_sets/{curationSetName}",
|
|
412
|
+
code: 200,
|
|
413
|
+
}))).annotate({
|
|
414
|
+
identifier: "DeleteCurationSetRequest",
|
|
415
|
+
});
|
|
416
|
+
export const CurationSetDeleteSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
417
|
+
name: S.String,
|
|
418
|
+
})).annotate({
|
|
419
|
+
identifier: "CurationSetDeleteSchema",
|
|
420
|
+
});
|
|
421
|
+
export const DeleteCurationSetItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
422
|
+
curationSetName: S.String.pipe(T.Label()),
|
|
423
|
+
itemId: S.String.pipe(T.Label()),
|
|
424
|
+
}).pipe(T.Http({
|
|
425
|
+
method: "DELETE",
|
|
426
|
+
uri: "/curation_sets/{curationSetName}/items/{itemId}",
|
|
427
|
+
code: 200,
|
|
428
|
+
}))).annotate({
|
|
429
|
+
identifier: "DeleteCurationSetItemRequest",
|
|
430
|
+
});
|
|
431
|
+
export const CurationItemDeleteSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
432
|
+
id: S.String,
|
|
433
|
+
})).annotate({
|
|
434
|
+
identifier: "CurationItemDeleteSchema",
|
|
435
|
+
});
|
|
436
|
+
export const DeleteDocumentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
437
|
+
collectionName: S.String.pipe(T.Label()),
|
|
438
|
+
documentId: S.String.pipe(T.Label()),
|
|
439
|
+
}).pipe(T.Http({
|
|
440
|
+
method: "DELETE",
|
|
441
|
+
uri: "/collections/{collectionName}/documents/{documentId}",
|
|
442
|
+
code: 200,
|
|
443
|
+
}))).annotate({
|
|
444
|
+
identifier: "DeleteDocumentRequest",
|
|
445
|
+
});
|
|
446
|
+
export const DeleteDocumentResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
447
|
+
identifier: "DeleteDocumentResponse",
|
|
448
|
+
});
|
|
449
|
+
export const DeleteDocumentsRequestDeleteDocumentsParameters =
|
|
450
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
451
|
+
filter_by: S.String,
|
|
452
|
+
batch_size: S.optional(S.Number),
|
|
453
|
+
ignore_not_found: S.optional(S.Boolean),
|
|
454
|
+
truncate: S.optional(S.Boolean),
|
|
455
|
+
})).annotate({
|
|
456
|
+
identifier: "DeleteDocumentsRequestDeleteDocumentsParameters",
|
|
457
|
+
});
|
|
458
|
+
export const DeleteDocumentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
459
|
+
collectionName: S.String.pipe(T.Label()),
|
|
460
|
+
deleteDocumentsParameters: S.optional(DeleteDocumentsRequestDeleteDocumentsParameters.pipe(T.Query())),
|
|
461
|
+
}).pipe(T.Http({
|
|
462
|
+
method: "DELETE",
|
|
463
|
+
uri: "/collections/{collectionName}/documents",
|
|
464
|
+
code: 200,
|
|
465
|
+
}))).annotate({
|
|
466
|
+
identifier: "DeleteDocumentsRequest",
|
|
467
|
+
});
|
|
468
|
+
export const DeleteDocumentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
469
|
+
num_deleted: S.Number,
|
|
470
|
+
})).annotate({
|
|
471
|
+
identifier: "DeleteDocumentsResponse",
|
|
472
|
+
});
|
|
473
|
+
export const DeleteKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
474
|
+
keyId: S.Number.pipe(T.Label()),
|
|
475
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/keys/{keyId}", code: 200 }))).annotate({
|
|
476
|
+
identifier: "DeleteKeyRequest",
|
|
477
|
+
});
|
|
478
|
+
export const ApiKeyDeleteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
479
|
+
id: S.Number,
|
|
480
|
+
})).annotate({
|
|
481
|
+
identifier: "ApiKeyDeleteResponse",
|
|
482
|
+
});
|
|
483
|
+
export const DeleteNLSearchModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
484
|
+
modelId: S.String.pipe(T.Label()),
|
|
485
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/nl_search_models/{modelId}", code: 200 }))).annotate({
|
|
486
|
+
identifier: "DeleteNLSearchModelRequest",
|
|
487
|
+
});
|
|
488
|
+
export const NLSearchModelDeleteSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
489
|
+
id: S.String,
|
|
490
|
+
})).annotate({
|
|
491
|
+
identifier: "NLSearchModelDeleteSchema",
|
|
492
|
+
});
|
|
493
|
+
export const DeletePresetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
494
|
+
presetId: S.String.pipe(T.Label()),
|
|
495
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/presets/{presetId}", code: 200 }))).annotate({
|
|
496
|
+
identifier: "DeletePresetRequest",
|
|
497
|
+
});
|
|
498
|
+
export const PresetDeleteSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
499
|
+
name: S.String,
|
|
500
|
+
})).annotate({
|
|
501
|
+
identifier: "PresetDeleteSchema",
|
|
502
|
+
});
|
|
503
|
+
export const DeleteStopwordsSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
504
|
+
setId: S.String.pipe(T.Label()),
|
|
505
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/stopwords/{setId}", code: 200 }))).annotate({
|
|
506
|
+
identifier: "DeleteStopwordsSetRequest",
|
|
507
|
+
});
|
|
508
|
+
export const DeleteStopwordsSetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
509
|
+
id: S.String,
|
|
510
|
+
})).annotate({
|
|
511
|
+
identifier: "DeleteStopwordsSetResponse",
|
|
512
|
+
});
|
|
513
|
+
export const DeleteSynonymSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
514
|
+
synonymSetName: S.String.pipe(T.Label()),
|
|
515
|
+
}).pipe(T.Http({
|
|
516
|
+
method: "DELETE",
|
|
517
|
+
uri: "/synonym_sets/{synonymSetName}",
|
|
518
|
+
code: 200,
|
|
519
|
+
}))).annotate({
|
|
520
|
+
identifier: "DeleteSynonymSetRequest",
|
|
521
|
+
});
|
|
522
|
+
export const SynonymSetDeleteSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
523
|
+
name: S.String,
|
|
524
|
+
})).annotate({
|
|
525
|
+
identifier: "SynonymSetDeleteSchema",
|
|
526
|
+
});
|
|
527
|
+
export const DeleteSynonymSetItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
528
|
+
synonymSetName: S.String.pipe(T.Label()),
|
|
529
|
+
itemId: S.String.pipe(T.Label()),
|
|
530
|
+
}).pipe(T.Http({
|
|
531
|
+
method: "DELETE",
|
|
532
|
+
uri: "/synonym_sets/{synonymSetName}/items/{itemId}",
|
|
533
|
+
code: 200,
|
|
534
|
+
}))).annotate({
|
|
535
|
+
identifier: "DeleteSynonymSetItemRequest",
|
|
536
|
+
});
|
|
537
|
+
export const SynonymItemDeleteSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
538
|
+
id: S.String,
|
|
539
|
+
})).annotate({
|
|
540
|
+
identifier: "SynonymItemDeleteSchema",
|
|
541
|
+
});
|
|
542
|
+
export const ExportDocumentsRequestExportDocumentsParameters =
|
|
543
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
544
|
+
filter_by: S.optional(S.String),
|
|
545
|
+
include_fields: S.optional(S.String),
|
|
546
|
+
exclude_fields: S.optional(S.String),
|
|
547
|
+
})).annotate({
|
|
548
|
+
identifier: "ExportDocumentsRequestExportDocumentsParameters",
|
|
549
|
+
});
|
|
550
|
+
export const ExportDocumentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
551
|
+
collectionName: S.String.pipe(T.Label()),
|
|
552
|
+
exportDocumentsParameters: S.optional(ExportDocumentsRequestExportDocumentsParameters.pipe(T.Query())),
|
|
553
|
+
}).pipe(T.Http({
|
|
554
|
+
method: "GET",
|
|
555
|
+
uri: "/collections/{collectionName}/documents/export",
|
|
556
|
+
code: 200,
|
|
557
|
+
}))).annotate({
|
|
558
|
+
identifier: "ExportDocumentsRequest",
|
|
559
|
+
});
|
|
560
|
+
export const ExportDocumentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
561
|
+
identifier: "ExportDocumentsResponse",
|
|
562
|
+
});
|
|
563
|
+
export const FlushAnalyticsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/analytics/flush", code: 200 }))).annotate({
|
|
564
|
+
identifier: "FlushAnalyticsRequest",
|
|
565
|
+
});
|
|
566
|
+
export const GetAliasRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
567
|
+
aliasName: S.String.pipe(T.Label()),
|
|
568
|
+
}).pipe(T.Http({ method: "GET", uri: "/aliases/{aliasName}", code: 200 }))).annotate({
|
|
569
|
+
identifier: "GetAliasRequest",
|
|
570
|
+
});
|
|
571
|
+
export const GetAliasesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/aliases", code: 200 }))).annotate({
|
|
572
|
+
identifier: "GetAliasesRequest",
|
|
573
|
+
});
|
|
574
|
+
export const CollectionAliasesResponseAliasesList = /*@__PURE__*/ S.Array(CollectionAlias);
|
|
575
|
+
export const CollectionAliasesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
576
|
+
aliases: CollectionAliasesResponseAliasesList,
|
|
577
|
+
})).annotate({
|
|
578
|
+
identifier: "CollectionAliasesResponse",
|
|
579
|
+
});
|
|
580
|
+
export const GetAnalyticsEventsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
581
|
+
user_id: S.String.pipe(T.Query()),
|
|
582
|
+
name: S.String.pipe(T.Query()),
|
|
583
|
+
n: S.Number.pipe(T.Query()),
|
|
584
|
+
}).pipe(T.Http({ method: "GET", uri: "/analytics/events", code: 200 }))).annotate({
|
|
585
|
+
identifier: "GetAnalyticsEventsRequest",
|
|
586
|
+
});
|
|
587
|
+
export const AnalyticsEventsResponseEventsItemDocIdsList =
|
|
588
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
589
|
+
export const AnalyticsEventsResponseEventsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
590
|
+
name: S.optional(S.String),
|
|
591
|
+
event_type: S.optional(S.String),
|
|
592
|
+
collection: S.optional(S.String),
|
|
593
|
+
timestamp: S.optional(S.Number),
|
|
594
|
+
user_id: S.optional(S.String),
|
|
595
|
+
doc_id: S.optional(S.String),
|
|
596
|
+
doc_ids: S.optional(AnalyticsEventsResponseEventsItemDocIdsList),
|
|
597
|
+
query: S.optional(S.String),
|
|
598
|
+
})).annotate({
|
|
599
|
+
identifier: "AnalyticsEventsResponseEventsItem",
|
|
600
|
+
});
|
|
601
|
+
export const AnalyticsEventsResponseEventsList = /*@__PURE__*/ S.Array(AnalyticsEventsResponseEventsItem);
|
|
602
|
+
export const AnalyticsEventsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
603
|
+
events: AnalyticsEventsResponseEventsList,
|
|
604
|
+
})).annotate({
|
|
605
|
+
identifier: "AnalyticsEventsResponse",
|
|
606
|
+
});
|
|
607
|
+
export const GetAnalyticsStatusRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/analytics/status", code: 200 }))).annotate({
|
|
608
|
+
identifier: "GetAnalyticsStatusRequest",
|
|
609
|
+
});
|
|
610
|
+
export const AnalyticsStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
611
|
+
popular_prefix_queries: S.optional(S.Number),
|
|
612
|
+
nohits_prefix_queries: S.optional(S.Number),
|
|
613
|
+
log_prefix_queries: S.optional(S.Number),
|
|
614
|
+
query_log_events: S.optional(S.Number),
|
|
615
|
+
query_counter_events: S.optional(S.Number),
|
|
616
|
+
doc_log_events: S.optional(S.Number),
|
|
617
|
+
doc_counter_events: S.optional(S.Number),
|
|
618
|
+
})).annotate({
|
|
619
|
+
identifier: "AnalyticsStatus",
|
|
620
|
+
});
|
|
621
|
+
export const GetCollectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
622
|
+
collectionName: S.String.pipe(T.Label()),
|
|
623
|
+
}).pipe(T.Http({ method: "GET", uri: "/collections/{collectionName}", code: 200 }))).annotate({
|
|
624
|
+
identifier: "GetCollectionRequest",
|
|
625
|
+
});
|
|
626
|
+
export const GetCollectionResponseFieldsList = /*@__PURE__*/ S.Array(Field);
|
|
627
|
+
export const GetCollectionResponseTokenSeparatorsList = /*@__PURE__*/ S.Array(S.String);
|
|
628
|
+
export const GetCollectionResponseSynonymSetsList = /*@__PURE__*/ S.Array(S.String);
|
|
629
|
+
export const GetCollectionResponseSymbolsToIndexList = /*@__PURE__*/ S.Array(S.String);
|
|
630
|
+
export const GetCollectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
631
|
+
name: S.String,
|
|
632
|
+
fields: GetCollectionResponseFieldsList,
|
|
633
|
+
default_sorting_field: S.optional(S.String),
|
|
634
|
+
token_separators: S.optional(GetCollectionResponseTokenSeparatorsList),
|
|
635
|
+
synonym_sets: S.optional(GetCollectionResponseSynonymSetsList),
|
|
636
|
+
enable_nested_fields: S.optional(S.Boolean),
|
|
637
|
+
symbols_to_index: S.optional(GetCollectionResponseSymbolsToIndexList),
|
|
638
|
+
voice_query_model: S.optional(VoiceQueryModelCollectionConfig),
|
|
639
|
+
metadata: S.optional(S.Unknown),
|
|
640
|
+
num_documents: S.Number,
|
|
641
|
+
created_at: S.Number,
|
|
642
|
+
})).annotate({
|
|
643
|
+
identifier: "GetCollectionResponse",
|
|
644
|
+
});
|
|
645
|
+
export const GetCollectionsRequestGetCollectionsParameters =
|
|
646
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
647
|
+
exclude_fields: S.optional(S.String),
|
|
648
|
+
limit: S.optional(S.Number),
|
|
649
|
+
offset: S.optional(S.Number),
|
|
650
|
+
})).annotate({
|
|
651
|
+
identifier: "GetCollectionsRequestGetCollectionsParameters",
|
|
652
|
+
});
|
|
653
|
+
export const GetCollectionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
654
|
+
getCollectionsParameters: S.optional(GetCollectionsRequestGetCollectionsParameters.pipe(T.Query())),
|
|
655
|
+
}).pipe(T.Http({ method: "GET", uri: "/collections", code: 200 }))).annotate({
|
|
656
|
+
identifier: "GetCollectionsRequest",
|
|
657
|
+
});
|
|
658
|
+
export const CollectionResponseFieldsList = /*@__PURE__*/ S.Array(Field);
|
|
659
|
+
export const CollectionResponseTokenSeparatorsList = /*@__PURE__*/ S.Array(S.String);
|
|
660
|
+
export const CollectionResponseSynonymSetsList = /*@__PURE__*/ S.Array(S.String);
|
|
661
|
+
export const CollectionResponseSymbolsToIndexList = /*@__PURE__*/ S.Array(S.String);
|
|
662
|
+
export const CollectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
663
|
+
name: S.String,
|
|
664
|
+
fields: CollectionResponseFieldsList,
|
|
665
|
+
default_sorting_field: S.optional(S.String),
|
|
666
|
+
token_separators: S.optional(CollectionResponseTokenSeparatorsList),
|
|
667
|
+
synonym_sets: S.optional(CollectionResponseSynonymSetsList),
|
|
668
|
+
enable_nested_fields: S.optional(S.Boolean),
|
|
669
|
+
symbols_to_index: S.optional(CollectionResponseSymbolsToIndexList),
|
|
670
|
+
voice_query_model: S.optional(VoiceQueryModelCollectionConfig),
|
|
671
|
+
metadata: S.optional(S.Unknown),
|
|
672
|
+
num_documents: S.Number,
|
|
673
|
+
created_at: S.Number,
|
|
674
|
+
})).annotate({
|
|
675
|
+
identifier: "CollectionResponse",
|
|
676
|
+
});
|
|
677
|
+
export const GetCollectionsResponseBodyList = /*@__PURE__*/ S.Array(CollectionResponse);
|
|
678
|
+
export const GetCollectionsResponse = /*@__PURE__*/ S.suspend(() => GetCollectionsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
679
|
+
identifier: "GetCollectionsResponse",
|
|
680
|
+
});
|
|
681
|
+
export const GetDocumentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
682
|
+
collectionName: S.String.pipe(T.Label()),
|
|
683
|
+
documentId: S.String.pipe(T.Label()),
|
|
684
|
+
}).pipe(T.Http({
|
|
685
|
+
method: "GET",
|
|
686
|
+
uri: "/collections/{collectionName}/documents/{documentId}",
|
|
687
|
+
code: 200,
|
|
688
|
+
}))).annotate({
|
|
689
|
+
identifier: "GetDocumentRequest",
|
|
690
|
+
});
|
|
691
|
+
export const GetDocumentResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
692
|
+
identifier: "GetDocumentResponse",
|
|
693
|
+
});
|
|
694
|
+
export const GetKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
695
|
+
keyId: S.Number.pipe(T.Label()),
|
|
696
|
+
}).pipe(T.Http({ method: "GET", uri: "/keys/{keyId}", code: 200 }))).annotate({ identifier: "GetKeyRequest" });
|
|
697
|
+
export const GetKeyResponseActionsList = /*@__PURE__*/ S.Array(S.String);
|
|
698
|
+
export const GetKeyResponseCollectionsList = /*@__PURE__*/ S.Array(S.String);
|
|
699
|
+
export const GetKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
700
|
+
value: S.optional(S.String),
|
|
701
|
+
description: S.String,
|
|
702
|
+
actions: GetKeyResponseActionsList,
|
|
703
|
+
collections: GetKeyResponseCollectionsList,
|
|
704
|
+
expires_at: S.optional(S.Number),
|
|
705
|
+
id: S.optional(S.Number),
|
|
706
|
+
value_prefix: S.optional(S.String),
|
|
707
|
+
})).annotate({ identifier: "GetKeyResponse" });
|
|
708
|
+
export const GetKeysRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/keys", code: 200 }))).annotate({ identifier: "GetKeysRequest" });
|
|
709
|
+
export const ApiKeyActionsList = /*@__PURE__*/ S.Array(S.String);
|
|
710
|
+
export const ApiKeyCollectionsList = /*@__PURE__*/ S.Array(S.String);
|
|
711
|
+
export const ApiKey = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
712
|
+
value: S.optional(S.String),
|
|
713
|
+
description: S.String,
|
|
714
|
+
actions: ApiKeyActionsList,
|
|
715
|
+
collections: ApiKeyCollectionsList,
|
|
716
|
+
expires_at: S.optional(S.Number),
|
|
717
|
+
id: S.optional(S.Number),
|
|
718
|
+
value_prefix: S.optional(S.String),
|
|
719
|
+
})).annotate({ identifier: "ApiKey" });
|
|
720
|
+
export const ApiKeysResponseKeysList = /*@__PURE__*/ S.Array(ApiKey);
|
|
721
|
+
export const ApiKeysResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
722
|
+
keys: ApiKeysResponseKeysList,
|
|
723
|
+
})).annotate({
|
|
724
|
+
identifier: "ApiKeysResponse",
|
|
725
|
+
});
|
|
726
|
+
export const GetSchemaChangesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/operations/schema_changes", code: 200 }))).annotate({
|
|
727
|
+
identifier: "GetSchemaChangesRequest",
|
|
728
|
+
});
|
|
729
|
+
export const SchemaChangeStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
730
|
+
collection: S.optional(S.String),
|
|
731
|
+
validated_docs: S.optional(S.Number),
|
|
732
|
+
altered_docs: S.optional(S.Number),
|
|
733
|
+
})).annotate({
|
|
734
|
+
identifier: "SchemaChangeStatus",
|
|
735
|
+
});
|
|
736
|
+
export const GetSchemaChangesResponseBodyList = /*@__PURE__*/ S.Array(SchemaChangeStatus);
|
|
737
|
+
export const GetSchemaChangesResponse = /*@__PURE__*/ S.suspend(() => GetSchemaChangesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
738
|
+
identifier: "GetSchemaChangesResponse",
|
|
739
|
+
});
|
|
740
|
+
export const GetStemmingDictionaryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
741
|
+
dictionaryId: S.String.pipe(T.Label()),
|
|
742
|
+
}).pipe(T.Http({
|
|
743
|
+
method: "GET",
|
|
744
|
+
uri: "/stemming/dictionaries/{dictionaryId}",
|
|
745
|
+
code: 200,
|
|
746
|
+
}))).annotate({
|
|
747
|
+
identifier: "GetStemmingDictionaryRequest",
|
|
748
|
+
});
|
|
749
|
+
export const StemmingDictionaryWordsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
750
|
+
word: S.String,
|
|
751
|
+
root: S.String,
|
|
752
|
+
})).annotate({
|
|
753
|
+
identifier: "StemmingDictionaryWordsItem",
|
|
754
|
+
});
|
|
755
|
+
export const StemmingDictionaryWordsList = /*@__PURE__*/ S.Array(StemmingDictionaryWordsItem);
|
|
756
|
+
export const StemmingDictionary = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
757
|
+
id: S.String,
|
|
758
|
+
words: StemmingDictionaryWordsList,
|
|
759
|
+
})).annotate({
|
|
760
|
+
identifier: "StemmingDictionary",
|
|
761
|
+
});
|
|
762
|
+
export const HealthRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/health", code: 200 }))).annotate({ identifier: "HealthRequest" });
|
|
763
|
+
export const HealthStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
764
|
+
ok: S.Boolean,
|
|
765
|
+
})).annotate({ identifier: "HealthStatus" });
|
|
766
|
+
export const IndexAction = /*@__PURE__*/ S.String;
|
|
767
|
+
export const DirtyValues = /*@__PURE__*/ S.String;
|
|
768
|
+
export const ImportDocumentsRequestImportDocumentsParameters =
|
|
769
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
770
|
+
batch_size: S.optional(S.Number),
|
|
771
|
+
return_id: S.optional(S.Boolean),
|
|
772
|
+
remote_embedding_batch_size: S.optional(S.Number),
|
|
773
|
+
return_doc: S.optional(S.Boolean),
|
|
774
|
+
action: S.optional(IndexAction),
|
|
775
|
+
dirty_values: S.optional(DirtyValues),
|
|
776
|
+
})).annotate({
|
|
777
|
+
identifier: "ImportDocumentsRequestImportDocumentsParameters",
|
|
778
|
+
});
|
|
779
|
+
export const ImportDocumentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
780
|
+
collectionName: S.String.pipe(T.Label()),
|
|
781
|
+
importDocumentsParameters: S.optional(ImportDocumentsRequestImportDocumentsParameters.pipe(T.Query())),
|
|
782
|
+
}).pipe(T.Http({
|
|
783
|
+
method: "POST",
|
|
784
|
+
uri: "/collections/{collectionName}/documents/import",
|
|
785
|
+
code: 200,
|
|
786
|
+
}))).annotate({
|
|
787
|
+
identifier: "ImportDocumentsRequest",
|
|
788
|
+
});
|
|
789
|
+
export const ImportDocumentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
790
|
+
identifier: "ImportDocumentsResponse",
|
|
791
|
+
});
|
|
792
|
+
export const ImportStemmingDictionaryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
793
|
+
id: S.String.pipe(T.Query()),
|
|
794
|
+
body: S.String.pipe(T.HttpBody()),
|
|
795
|
+
}).pipe(T.Http({ method: "POST", uri: "/stemming/dictionaries/import", code: 200 }))).annotate({
|
|
796
|
+
identifier: "ImportStemmingDictionaryRequest",
|
|
797
|
+
});
|
|
798
|
+
export const ImportStemmingDictionaryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
799
|
+
identifier: "ImportStemmingDictionaryResponse",
|
|
800
|
+
});
|
|
801
|
+
export const IndexDocumentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
802
|
+
collectionName: S.String.pipe(T.Label()),
|
|
803
|
+
action: S.optional(IndexAction.pipe(T.Query())),
|
|
804
|
+
dirty_values: S.optional(DirtyValues.pipe(T.Query())),
|
|
805
|
+
}).pipe(T.Http({
|
|
806
|
+
method: "POST",
|
|
807
|
+
uri: "/collections/{collectionName}/documents",
|
|
808
|
+
code: 200,
|
|
809
|
+
}))).annotate({
|
|
810
|
+
identifier: "IndexDocumentRequest",
|
|
811
|
+
});
|
|
812
|
+
export const IndexDocumentResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
813
|
+
identifier: "IndexDocumentResponse",
|
|
814
|
+
});
|
|
815
|
+
export const ListStemmingDictionariesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/stemming/dictionaries", code: 200 }))).annotate({
|
|
816
|
+
identifier: "ListStemmingDictionariesRequest",
|
|
817
|
+
});
|
|
818
|
+
export const ListStemmingDictionariesResponseDictionariesList =
|
|
819
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
820
|
+
export const ListStemmingDictionariesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
821
|
+
dictionaries: S.optional(ListStemmingDictionariesResponseDictionariesList),
|
|
822
|
+
})).annotate({
|
|
823
|
+
identifier: "ListStemmingDictionariesResponse",
|
|
824
|
+
});
|
|
825
|
+
export const DropTokensMode = /*@__PURE__*/ S.String;
|
|
826
|
+
export const MultiSearchParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
827
|
+
q: S.optional(S.String),
|
|
828
|
+
query_by: S.optional(S.String),
|
|
829
|
+
query_by_weights: S.optional(S.String),
|
|
830
|
+
text_match_type: S.optional(S.String),
|
|
831
|
+
prefix: S.optional(S.String),
|
|
832
|
+
infix: S.optional(S.String),
|
|
833
|
+
max_extra_prefix: S.optional(S.Number),
|
|
834
|
+
max_extra_suffix: S.optional(S.Number),
|
|
835
|
+
filter_by: S.optional(S.String),
|
|
836
|
+
sort_by: S.optional(S.String),
|
|
837
|
+
facet_by: S.optional(S.String),
|
|
838
|
+
max_facet_values: S.optional(S.Number),
|
|
839
|
+
facet_query: S.optional(S.String),
|
|
840
|
+
num_typos: S.optional(S.String),
|
|
841
|
+
page: S.optional(S.Number),
|
|
842
|
+
per_page: S.optional(S.Number),
|
|
843
|
+
limit: S.optional(S.Number),
|
|
844
|
+
offset: S.optional(S.Number),
|
|
845
|
+
group_by: S.optional(S.String),
|
|
846
|
+
group_limit: S.optional(S.Number),
|
|
847
|
+
group_missing_values: S.optional(S.Boolean),
|
|
848
|
+
include_fields: S.optional(S.String),
|
|
849
|
+
exclude_fields: S.optional(S.String),
|
|
850
|
+
highlight_full_fields: S.optional(S.String),
|
|
851
|
+
highlight_affix_num_tokens: S.optional(S.Number),
|
|
852
|
+
highlight_start_tag: S.optional(S.String),
|
|
853
|
+
highlight_end_tag: S.optional(S.String),
|
|
854
|
+
snippet_threshold: S.optional(S.Number),
|
|
855
|
+
drop_tokens_threshold: S.optional(S.Number),
|
|
856
|
+
drop_tokens_mode: S.optional(DropTokensMode),
|
|
857
|
+
typo_tokens_threshold: S.optional(S.Number),
|
|
858
|
+
enable_typos_for_alpha_numerical_tokens: S.optional(S.Boolean),
|
|
859
|
+
filter_curated_hits: S.optional(S.Boolean),
|
|
860
|
+
enable_synonyms: S.optional(S.Boolean),
|
|
861
|
+
enable_analytics: S.optional(S.Boolean),
|
|
862
|
+
synonym_prefix: S.optional(S.Boolean),
|
|
863
|
+
synonym_num_typos: S.optional(S.Number),
|
|
864
|
+
pinned_hits: S.optional(S.String),
|
|
865
|
+
hidden_hits: S.optional(S.String),
|
|
866
|
+
curation_tags: S.optional(S.String),
|
|
867
|
+
highlight_fields: S.optional(S.String),
|
|
868
|
+
pre_segmented_query: S.optional(S.Boolean),
|
|
869
|
+
preset: S.optional(S.String),
|
|
870
|
+
enable_curations: S.optional(S.Boolean),
|
|
871
|
+
prioritize_exact_match: S.optional(S.Boolean),
|
|
872
|
+
prioritize_token_position: S.optional(S.Boolean),
|
|
873
|
+
prioritize_num_matching_fields: S.optional(S.Boolean),
|
|
874
|
+
enable_typos_for_numerical_tokens: S.optional(S.Boolean),
|
|
875
|
+
exhaustive_search: S.optional(S.Boolean),
|
|
876
|
+
search_cutoff_ms: S.optional(S.Number),
|
|
877
|
+
use_cache: S.optional(S.Boolean),
|
|
878
|
+
cache_ttl: S.optional(S.Number),
|
|
879
|
+
min_len_1typo: S.optional(S.Number),
|
|
880
|
+
min_len_2typo: S.optional(S.Number),
|
|
881
|
+
vector_query: S.optional(S.String),
|
|
882
|
+
remote_embedding_timeout_ms: S.optional(S.Number),
|
|
883
|
+
remote_embedding_num_tries: S.optional(S.Number),
|
|
884
|
+
facet_strategy: S.optional(S.String),
|
|
885
|
+
stopwords: S.optional(S.String),
|
|
886
|
+
facet_return_parent: S.optional(S.String),
|
|
887
|
+
voice_query: S.optional(S.String),
|
|
888
|
+
conversation: S.optional(S.Boolean),
|
|
889
|
+
conversation_model_id: S.optional(S.String),
|
|
890
|
+
conversation_id: S.optional(S.String),
|
|
891
|
+
validate_field_names: S.optional(S.Boolean),
|
|
892
|
+
})).annotate({
|
|
893
|
+
identifier: "MultiSearchParameters",
|
|
894
|
+
});
|
|
895
|
+
export const MultiSearchCollectionParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
896
|
+
q: S.optional(S.String),
|
|
897
|
+
query_by: S.optional(S.String),
|
|
898
|
+
query_by_weights: S.optional(S.String),
|
|
899
|
+
text_match_type: S.optional(S.String),
|
|
900
|
+
prefix: S.optional(S.String),
|
|
901
|
+
infix: S.optional(S.String),
|
|
902
|
+
max_extra_prefix: S.optional(S.Number),
|
|
903
|
+
max_extra_suffix: S.optional(S.Number),
|
|
904
|
+
filter_by: S.optional(S.String),
|
|
905
|
+
sort_by: S.optional(S.String),
|
|
906
|
+
facet_by: S.optional(S.String),
|
|
907
|
+
max_facet_values: S.optional(S.Number),
|
|
908
|
+
facet_query: S.optional(S.String),
|
|
909
|
+
num_typos: S.optional(S.String),
|
|
910
|
+
page: S.optional(S.Number),
|
|
911
|
+
per_page: S.optional(S.Number),
|
|
912
|
+
limit: S.optional(S.Number),
|
|
913
|
+
offset: S.optional(S.Number),
|
|
914
|
+
group_by: S.optional(S.String),
|
|
915
|
+
group_limit: S.optional(S.Number),
|
|
916
|
+
group_missing_values: S.optional(S.Boolean),
|
|
917
|
+
include_fields: S.optional(S.String),
|
|
918
|
+
exclude_fields: S.optional(S.String),
|
|
919
|
+
highlight_full_fields: S.optional(S.String),
|
|
920
|
+
highlight_affix_num_tokens: S.optional(S.Number),
|
|
921
|
+
highlight_start_tag: S.optional(S.String),
|
|
922
|
+
highlight_end_tag: S.optional(S.String),
|
|
923
|
+
snippet_threshold: S.optional(S.Number),
|
|
924
|
+
drop_tokens_threshold: S.optional(S.Number),
|
|
925
|
+
drop_tokens_mode: S.optional(DropTokensMode),
|
|
926
|
+
typo_tokens_threshold: S.optional(S.Number),
|
|
927
|
+
enable_typos_for_alpha_numerical_tokens: S.optional(S.Boolean),
|
|
928
|
+
filter_curated_hits: S.optional(S.Boolean),
|
|
929
|
+
enable_synonyms: S.optional(S.Boolean),
|
|
930
|
+
enable_analytics: S.optional(S.Boolean),
|
|
931
|
+
synonym_prefix: S.optional(S.Boolean),
|
|
932
|
+
synonym_num_typos: S.optional(S.Number),
|
|
933
|
+
pinned_hits: S.optional(S.String),
|
|
934
|
+
hidden_hits: S.optional(S.String),
|
|
935
|
+
curation_tags: S.optional(S.String),
|
|
936
|
+
highlight_fields: S.optional(S.String),
|
|
937
|
+
pre_segmented_query: S.optional(S.Boolean),
|
|
938
|
+
preset: S.optional(S.String),
|
|
939
|
+
enable_curations: S.optional(S.Boolean),
|
|
940
|
+
prioritize_exact_match: S.optional(S.Boolean),
|
|
941
|
+
prioritize_token_position: S.optional(S.Boolean),
|
|
942
|
+
prioritize_num_matching_fields: S.optional(S.Boolean),
|
|
943
|
+
enable_typos_for_numerical_tokens: S.optional(S.Boolean),
|
|
944
|
+
exhaustive_search: S.optional(S.Boolean),
|
|
945
|
+
search_cutoff_ms: S.optional(S.Number),
|
|
946
|
+
use_cache: S.optional(S.Boolean),
|
|
947
|
+
cache_ttl: S.optional(S.Number),
|
|
948
|
+
min_len_1typo: S.optional(S.Number),
|
|
949
|
+
min_len_2typo: S.optional(S.Number),
|
|
950
|
+
vector_query: S.optional(S.String),
|
|
951
|
+
remote_embedding_timeout_ms: S.optional(S.Number),
|
|
952
|
+
remote_embedding_num_tries: S.optional(S.Number),
|
|
953
|
+
facet_strategy: S.optional(S.String),
|
|
954
|
+
stopwords: S.optional(S.String),
|
|
955
|
+
facet_return_parent: S.optional(S.String),
|
|
956
|
+
voice_query: S.optional(S.String),
|
|
957
|
+
conversation: S.optional(S.Boolean),
|
|
958
|
+
conversation_model_id: S.optional(S.String),
|
|
959
|
+
conversation_id: S.optional(S.String),
|
|
960
|
+
validate_field_names: S.optional(S.Boolean),
|
|
961
|
+
collection: S.optional(S.String),
|
|
962
|
+
x_typesense_api_key: S.optional(S.String.pipe(T.Body("x-typesense-api-key"))),
|
|
963
|
+
rerank_hybrid_matches: S.optional(S.Boolean),
|
|
964
|
+
})).annotate({
|
|
965
|
+
identifier: "MultiSearchCollectionParameters",
|
|
966
|
+
});
|
|
967
|
+
export const MultiSearchRequestSearchesList = /*@__PURE__*/ S.Array(MultiSearchCollectionParameters);
|
|
968
|
+
export const MultiSearchRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
969
|
+
multiSearchParameters: MultiSearchParameters.pipe(T.Query()),
|
|
970
|
+
union: S.optional(S.Boolean),
|
|
971
|
+
searches: MultiSearchRequestSearchesList,
|
|
972
|
+
}).pipe(T.Http({ method: "POST", uri: "/multi_search", code: 200 }))).annotate({
|
|
973
|
+
identifier: "MultiSearchRequest",
|
|
974
|
+
});
|
|
975
|
+
export const FacetCountsCountsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
976
|
+
count: S.optional(S.Number),
|
|
977
|
+
highlighted: S.optional(S.String),
|
|
978
|
+
value: S.optional(S.String),
|
|
979
|
+
parent: S.optional(S.Unknown),
|
|
980
|
+
})).annotate({
|
|
981
|
+
identifier: "FacetCountsCountsItem",
|
|
982
|
+
});
|
|
983
|
+
export const FacetCountsCountsList = /*@__PURE__*/ S.Array(FacetCountsCountsItem);
|
|
984
|
+
export const FacetCountsStats = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
985
|
+
max: S.optional(S.Number),
|
|
986
|
+
min: S.optional(S.Number),
|
|
987
|
+
sum: S.optional(S.Number),
|
|
988
|
+
total_values: S.optional(S.Number),
|
|
989
|
+
avg: S.optional(S.Number),
|
|
990
|
+
})).annotate({
|
|
991
|
+
identifier: "FacetCountsStats",
|
|
992
|
+
});
|
|
993
|
+
export const FacetCounts = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
994
|
+
counts: S.optional(FacetCountsCountsList),
|
|
995
|
+
field_name: S.optional(S.String),
|
|
996
|
+
sampled: S.optional(S.Boolean),
|
|
997
|
+
stats: S.optional(FacetCountsStats),
|
|
998
|
+
})).annotate({ identifier: "FacetCounts" });
|
|
999
|
+
export const MultiSearchResultItemFacetCountsList = /*@__PURE__*/ S.Array(FacetCounts);
|
|
1000
|
+
export const SearchGroupedHitGroupKeyList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
1001
|
+
export const SearchHighlightSnippetsList = /*@__PURE__*/ S.Array(S.String);
|
|
1002
|
+
export const SearchHighlightValuesList = /*@__PURE__*/ S.Array(S.String);
|
|
1003
|
+
export const SearchHighlightIndicesList = /*@__PURE__*/ S.Array(S.Number);
|
|
1004
|
+
export const SearchHighlightMatchedTokensList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
1005
|
+
export const SearchHighlight = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1006
|
+
field: S.optional(S.String),
|
|
1007
|
+
snippet: S.optional(S.String),
|
|
1008
|
+
snippets: S.optional(SearchHighlightSnippetsList),
|
|
1009
|
+
value: S.optional(S.String),
|
|
1010
|
+
values: S.optional(SearchHighlightValuesList),
|
|
1011
|
+
indices: S.optional(SearchHighlightIndicesList),
|
|
1012
|
+
matched_tokens: S.optional(SearchHighlightMatchedTokensList),
|
|
1013
|
+
})).annotate({
|
|
1014
|
+
identifier: "SearchHighlight",
|
|
1015
|
+
});
|
|
1016
|
+
export const SearchResultHitHighlightsList = /*@__PURE__*/ S.Array(SearchHighlight);
|
|
1017
|
+
export const SearchResultHitHighlightMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
1018
|
+
export const SearchResultHitDocumentMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
1019
|
+
export const SearchResultHitTextMatchInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1020
|
+
best_field_score: S.optional(S.String),
|
|
1021
|
+
best_field_weight: S.optional(S.Number),
|
|
1022
|
+
fields_matched: S.optional(S.Number),
|
|
1023
|
+
num_tokens_dropped: S.optional(S.Number),
|
|
1024
|
+
score: S.optional(S.String),
|
|
1025
|
+
tokens_matched: S.optional(S.Number),
|
|
1026
|
+
typo_prefix_score: S.optional(S.Number),
|
|
1027
|
+
})).annotate({
|
|
1028
|
+
identifier: "SearchResultHitTextMatchInfo",
|
|
1029
|
+
});
|
|
1030
|
+
export const SearchResultHitGeoDistanceMetersMap = /*@__PURE__*/ S.Record(S.String, S.Number);
|
|
1031
|
+
export const SearchResultHitHybridSearchInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1032
|
+
rank_fusion_score: S.optional(S.Number),
|
|
1033
|
+
})).annotate({
|
|
1034
|
+
identifier: "SearchResultHitHybridSearchInfo",
|
|
1035
|
+
});
|
|
1036
|
+
export const SearchResultHit = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1037
|
+
highlights: S.optional(SearchResultHitHighlightsList),
|
|
1038
|
+
highlight: S.optional(SearchResultHitHighlightMap),
|
|
1039
|
+
document: S.optional(SearchResultHitDocumentMap),
|
|
1040
|
+
text_match: S.optional(S.Number),
|
|
1041
|
+
text_match_info: S.optional(SearchResultHitTextMatchInfo),
|
|
1042
|
+
geo_distance_meters: S.optional(SearchResultHitGeoDistanceMetersMap),
|
|
1043
|
+
vector_distance: S.optional(S.Number),
|
|
1044
|
+
hybrid_search_info: S.optional(SearchResultHitHybridSearchInfo),
|
|
1045
|
+
search_index: S.optional(S.Number),
|
|
1046
|
+
})).annotate({
|
|
1047
|
+
identifier: "SearchResultHit",
|
|
1048
|
+
});
|
|
1049
|
+
export const SearchGroupedHitHitsList = /*@__PURE__*/ S.Array(SearchResultHit);
|
|
1050
|
+
export const SearchGroupedHit = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1051
|
+
found: S.optional(S.Number),
|
|
1052
|
+
group_key: SearchGroupedHitGroupKeyList,
|
|
1053
|
+
hits: SearchGroupedHitHitsList,
|
|
1054
|
+
})).annotate({
|
|
1055
|
+
identifier: "SearchGroupedHit",
|
|
1056
|
+
});
|
|
1057
|
+
export const MultiSearchResultItemGroupedHitsList = /*@__PURE__*/ S.Array(SearchGroupedHit);
|
|
1058
|
+
export const MultiSearchResultItemHitsList = /*@__PURE__*/ S.Array(SearchResultHit);
|
|
1059
|
+
export const SearchRequestParamsVoiceQuery = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1060
|
+
transcribed_query: S.optional(S.String),
|
|
1061
|
+
})).annotate({
|
|
1062
|
+
identifier: "SearchRequestParamsVoiceQuery",
|
|
1063
|
+
});
|
|
1064
|
+
export const SearchRequestParams = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1065
|
+
collection_name: S.String,
|
|
1066
|
+
first_q: S.optional(S.String),
|
|
1067
|
+
q: S.String,
|
|
1068
|
+
per_page: S.Number,
|
|
1069
|
+
voice_query: S.optional(SearchRequestParamsVoiceQuery),
|
|
1070
|
+
})).annotate({
|
|
1071
|
+
identifier: "SearchRequestParams",
|
|
1072
|
+
});
|
|
1073
|
+
export const SearchResultConversationConversationHistoryList =
|
|
1074
|
+
/*@__PURE__*/ S.Array(S.Unknown);
|
|
1075
|
+
export const SearchResultConversation = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1076
|
+
answer: S.String,
|
|
1077
|
+
conversation_history: SearchResultConversationConversationHistoryList,
|
|
1078
|
+
conversation_id: S.String,
|
|
1079
|
+
query: S.String,
|
|
1080
|
+
})).annotate({
|
|
1081
|
+
identifier: "SearchResultConversation",
|
|
1082
|
+
});
|
|
1083
|
+
export const MultiSearchResultItemUnionRequestParamsList =
|
|
1084
|
+
/*@__PURE__*/ S.Array(SearchRequestParams);
|
|
1085
|
+
export const MultiSearchResultItemMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
1086
|
+
export const MultiSearchResultItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1087
|
+
facet_counts: S.optional(MultiSearchResultItemFacetCountsList),
|
|
1088
|
+
found: S.optional(S.Number),
|
|
1089
|
+
found_docs: S.optional(S.Number),
|
|
1090
|
+
search_time_ms: S.optional(S.Number),
|
|
1091
|
+
out_of: S.optional(S.Number),
|
|
1092
|
+
search_cutoff: S.optional(S.Boolean),
|
|
1093
|
+
page: S.optional(S.Number),
|
|
1094
|
+
grouped_hits: S.optional(MultiSearchResultItemGroupedHitsList),
|
|
1095
|
+
hits: S.optional(MultiSearchResultItemHitsList),
|
|
1096
|
+
request_params: S.optional(SearchRequestParams),
|
|
1097
|
+
conversation: S.optional(SearchResultConversation),
|
|
1098
|
+
union_request_params: S.optional(MultiSearchResultItemUnionRequestParamsList),
|
|
1099
|
+
metadata: S.optional(MultiSearchResultItemMetadataMap),
|
|
1100
|
+
code: S.optional(S.Number),
|
|
1101
|
+
error: S.optional(S.String),
|
|
1102
|
+
})).annotate({
|
|
1103
|
+
identifier: "MultiSearchResultItem",
|
|
1104
|
+
});
|
|
1105
|
+
export const MultiSearchResultResultsList = /*@__PURE__*/ S.Array(MultiSearchResultItem);
|
|
1106
|
+
export const MultiSearchResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1107
|
+
results: MultiSearchResultResultsList,
|
|
1108
|
+
conversation: S.optional(SearchResultConversation),
|
|
1109
|
+
})).annotate({
|
|
1110
|
+
identifier: "MultiSearchResult",
|
|
1111
|
+
});
|
|
1112
|
+
export const RetrieveAllConversationModelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/conversations/models", code: 200 }))).annotate({
|
|
1113
|
+
identifier: "RetrieveAllConversationModelsRequest",
|
|
1114
|
+
});
|
|
1115
|
+
export const ConversationModelSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1116
|
+
id: S.String,
|
|
1117
|
+
model_name: S.String,
|
|
1118
|
+
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1119
|
+
history_collection: S.String,
|
|
1120
|
+
account_id: S.optional(S.String),
|
|
1121
|
+
system_prompt: S.optional(S.String),
|
|
1122
|
+
ttl: S.optional(S.Number),
|
|
1123
|
+
max_bytes: S.Number,
|
|
1124
|
+
vllm_url: S.optional(S.String),
|
|
1125
|
+
})).annotate({
|
|
1126
|
+
identifier: "ConversationModelSchema",
|
|
1127
|
+
});
|
|
1128
|
+
export const RetrieveAllConversationModelsResponseBodyList =
|
|
1129
|
+
/*@__PURE__*/ S.Array(ConversationModelSchema);
|
|
1130
|
+
export const RetrieveAllConversationModelsResponse = /*@__PURE__*/ S.suspend(() => RetrieveAllConversationModelsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1131
|
+
identifier: "RetrieveAllConversationModelsResponse",
|
|
1132
|
+
});
|
|
1133
|
+
export const RetrieveAllNLSearchModelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/nl_search_models", code: 200 }))).annotate({
|
|
1134
|
+
identifier: "RetrieveAllNLSearchModelsRequest",
|
|
1135
|
+
});
|
|
1136
|
+
export const NLSearchModelSchemaStopSequencesList = /*@__PURE__*/ S.Array(S.String);
|
|
1137
|
+
export const NLSearchModelSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1138
|
+
model_name: S.optional(S.String),
|
|
1139
|
+
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1140
|
+
api_url: S.optional(S.String),
|
|
1141
|
+
max_bytes: S.optional(S.Number),
|
|
1142
|
+
temperature: S.optional(S.Number),
|
|
1143
|
+
system_prompt: S.optional(S.String),
|
|
1144
|
+
top_p: S.optional(S.Number),
|
|
1145
|
+
top_k: S.optional(S.Number),
|
|
1146
|
+
stop_sequences: S.optional(NLSearchModelSchemaStopSequencesList),
|
|
1147
|
+
api_version: S.optional(S.String),
|
|
1148
|
+
project_id: S.optional(S.String),
|
|
1149
|
+
access_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1150
|
+
refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1151
|
+
client_id: S.optional(S.String),
|
|
1152
|
+
client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1153
|
+
region: S.optional(S.String),
|
|
1154
|
+
max_output_tokens: S.optional(S.Number),
|
|
1155
|
+
account_id: S.optional(S.String),
|
|
1156
|
+
id: S.String,
|
|
1157
|
+
})).annotate({
|
|
1158
|
+
identifier: "NLSearchModelSchema",
|
|
1159
|
+
});
|
|
1160
|
+
export const RetrieveAllNLSearchModelsResponseBodyList = /*@__PURE__*/ S.Array(NLSearchModelSchema);
|
|
1161
|
+
export const RetrieveAllNLSearchModelsResponse = /*@__PURE__*/ S.suspend(() => RetrieveAllNLSearchModelsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1162
|
+
identifier: "RetrieveAllNLSearchModelsResponse",
|
|
1163
|
+
});
|
|
1164
|
+
export const RetrieveAllPresetsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/presets", code: 200 }))).annotate({
|
|
1165
|
+
identifier: "RetrieveAllPresetsRequest",
|
|
1166
|
+
});
|
|
1167
|
+
export const SearchParameters = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1168
|
+
q: S.optional(S.String),
|
|
1169
|
+
query_by: S.optional(S.String),
|
|
1170
|
+
validate_field_names: S.optional(S.Boolean),
|
|
1171
|
+
nl_query: S.optional(S.Boolean),
|
|
1172
|
+
nl_model_id: S.optional(S.String),
|
|
1173
|
+
query_by_weights: S.optional(S.String),
|
|
1174
|
+
text_match_type: S.optional(S.String),
|
|
1175
|
+
prefix: S.optional(S.String),
|
|
1176
|
+
infix: S.optional(S.String),
|
|
1177
|
+
max_extra_prefix: S.optional(S.Number),
|
|
1178
|
+
max_extra_suffix: S.optional(S.Number),
|
|
1179
|
+
filter_by: S.optional(S.String),
|
|
1180
|
+
max_filter_by_candidates: S.optional(S.Number),
|
|
1181
|
+
sort_by: S.optional(S.String),
|
|
1182
|
+
facet_by: S.optional(S.String),
|
|
1183
|
+
max_facet_values: S.optional(S.Number),
|
|
1184
|
+
facet_query: S.optional(S.String),
|
|
1185
|
+
num_typos: S.optional(S.String),
|
|
1186
|
+
page: S.optional(S.Number),
|
|
1187
|
+
per_page: S.optional(S.Number),
|
|
1188
|
+
limit: S.optional(S.Number),
|
|
1189
|
+
offset: S.optional(S.Number),
|
|
1190
|
+
group_by: S.optional(S.String),
|
|
1191
|
+
group_limit: S.optional(S.Number),
|
|
1192
|
+
group_missing_values: S.optional(S.Boolean),
|
|
1193
|
+
include_fields: S.optional(S.String),
|
|
1194
|
+
exclude_fields: S.optional(S.String),
|
|
1195
|
+
highlight_full_fields: S.optional(S.String),
|
|
1196
|
+
highlight_affix_num_tokens: S.optional(S.Number),
|
|
1197
|
+
highlight_start_tag: S.optional(S.String),
|
|
1198
|
+
highlight_end_tag: S.optional(S.String),
|
|
1199
|
+
enable_highlight_v1: S.optional(S.Boolean),
|
|
1200
|
+
enable_analytics: S.optional(S.Boolean),
|
|
1201
|
+
snippet_threshold: S.optional(S.Number),
|
|
1202
|
+
synonym_sets: S.optional(S.String),
|
|
1203
|
+
drop_tokens_threshold: S.optional(S.Number),
|
|
1204
|
+
drop_tokens_mode: S.optional(DropTokensMode),
|
|
1205
|
+
typo_tokens_threshold: S.optional(S.Number),
|
|
1206
|
+
enable_typos_for_alpha_numerical_tokens: S.optional(S.Boolean),
|
|
1207
|
+
filter_curated_hits: S.optional(S.Boolean),
|
|
1208
|
+
enable_synonyms: S.optional(S.Boolean),
|
|
1209
|
+
synonym_prefix: S.optional(S.Boolean),
|
|
1210
|
+
synonym_num_typos: S.optional(S.Number),
|
|
1211
|
+
pinned_hits: S.optional(S.String),
|
|
1212
|
+
hidden_hits: S.optional(S.String),
|
|
1213
|
+
curation_tags: S.optional(S.String),
|
|
1214
|
+
highlight_fields: S.optional(S.String),
|
|
1215
|
+
split_join_tokens: S.optional(S.String),
|
|
1216
|
+
pre_segmented_query: S.optional(S.Boolean),
|
|
1217
|
+
preset: S.optional(S.String),
|
|
1218
|
+
enable_curations: S.optional(S.Boolean),
|
|
1219
|
+
prioritize_exact_match: S.optional(S.Boolean),
|
|
1220
|
+
max_candidates: S.optional(S.Number),
|
|
1221
|
+
prioritize_token_position: S.optional(S.Boolean),
|
|
1222
|
+
prioritize_num_matching_fields: S.optional(S.Boolean),
|
|
1223
|
+
enable_typos_for_numerical_tokens: S.optional(S.Boolean),
|
|
1224
|
+
exhaustive_search: S.optional(S.Boolean),
|
|
1225
|
+
search_cutoff_ms: S.optional(S.Number),
|
|
1226
|
+
use_cache: S.optional(S.Boolean),
|
|
1227
|
+
cache_ttl: S.optional(S.Number),
|
|
1228
|
+
min_len_1typo: S.optional(S.Number),
|
|
1229
|
+
min_len_2typo: S.optional(S.Number),
|
|
1230
|
+
vector_query: S.optional(S.String),
|
|
1231
|
+
remote_embedding_timeout_ms: S.optional(S.Number),
|
|
1232
|
+
remote_embedding_num_tries: S.optional(S.Number),
|
|
1233
|
+
facet_strategy: S.optional(S.String),
|
|
1234
|
+
stopwords: S.optional(S.String),
|
|
1235
|
+
facet_return_parent: S.optional(S.String),
|
|
1236
|
+
voice_query: S.optional(S.String),
|
|
1237
|
+
conversation: S.optional(S.Boolean),
|
|
1238
|
+
conversation_model_id: S.optional(S.String),
|
|
1239
|
+
conversation_id: S.optional(S.String),
|
|
1240
|
+
})).annotate({
|
|
1241
|
+
identifier: "SearchParameters",
|
|
1242
|
+
});
|
|
1243
|
+
export const MultiSearchSearchesParameterSearchesList = /*@__PURE__*/ S.Array(MultiSearchCollectionParameters);
|
|
1244
|
+
export const MultiSearchSearchesParameter = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1245
|
+
union: S.optional(S.Boolean),
|
|
1246
|
+
searches: MultiSearchSearchesParameterSearchesList,
|
|
1247
|
+
})).annotate({
|
|
1248
|
+
identifier: "MultiSearchSearchesParameter",
|
|
1249
|
+
});
|
|
1250
|
+
export const PresetSchemaValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
|
|
1251
|
+
[
|
|
1252
|
+
"q",
|
|
1253
|
+
"query_by",
|
|
1254
|
+
"validate_field_names",
|
|
1255
|
+
"nl_query",
|
|
1256
|
+
"nl_model_id",
|
|
1257
|
+
"query_by_weights",
|
|
1258
|
+
"text_match_type",
|
|
1259
|
+
"prefix",
|
|
1260
|
+
"infix",
|
|
1261
|
+
"max_extra_prefix",
|
|
1262
|
+
"max_extra_suffix",
|
|
1263
|
+
"filter_by",
|
|
1264
|
+
"max_filter_by_candidates",
|
|
1265
|
+
"sort_by",
|
|
1266
|
+
"facet_by",
|
|
1267
|
+
"max_facet_values",
|
|
1268
|
+
"facet_query",
|
|
1269
|
+
"num_typos",
|
|
1270
|
+
"page",
|
|
1271
|
+
"per_page",
|
|
1272
|
+
"limit",
|
|
1273
|
+
"offset",
|
|
1274
|
+
"group_by",
|
|
1275
|
+
"group_limit",
|
|
1276
|
+
"group_missing_values",
|
|
1277
|
+
"include_fields",
|
|
1278
|
+
"exclude_fields",
|
|
1279
|
+
"highlight_full_fields",
|
|
1280
|
+
"highlight_affix_num_tokens",
|
|
1281
|
+
"highlight_start_tag",
|
|
1282
|
+
"highlight_end_tag",
|
|
1283
|
+
"enable_highlight_v1",
|
|
1284
|
+
"enable_analytics",
|
|
1285
|
+
"snippet_threshold",
|
|
1286
|
+
"synonym_sets",
|
|
1287
|
+
"drop_tokens_threshold",
|
|
1288
|
+
"drop_tokens_mode",
|
|
1289
|
+
"typo_tokens_threshold",
|
|
1290
|
+
"enable_typos_for_alpha_numerical_tokens",
|
|
1291
|
+
"filter_curated_hits",
|
|
1292
|
+
"enable_synonyms",
|
|
1293
|
+
"synonym_prefix",
|
|
1294
|
+
"synonym_num_typos",
|
|
1295
|
+
"pinned_hits",
|
|
1296
|
+
"hidden_hits",
|
|
1297
|
+
"curation_tags",
|
|
1298
|
+
"highlight_fields",
|
|
1299
|
+
"split_join_tokens",
|
|
1300
|
+
"pre_segmented_query",
|
|
1301
|
+
"preset",
|
|
1302
|
+
"enable_curations",
|
|
1303
|
+
"prioritize_exact_match",
|
|
1304
|
+
"max_candidates",
|
|
1305
|
+
"prioritize_token_position",
|
|
1306
|
+
"prioritize_num_matching_fields",
|
|
1307
|
+
"enable_typos_for_numerical_tokens",
|
|
1308
|
+
"exhaustive_search",
|
|
1309
|
+
"search_cutoff_ms",
|
|
1310
|
+
"use_cache",
|
|
1311
|
+
"cache_ttl",
|
|
1312
|
+
"min_len_1typo",
|
|
1313
|
+
"min_len_2typo",
|
|
1314
|
+
"vector_query",
|
|
1315
|
+
"remote_embedding_timeout_ms",
|
|
1316
|
+
"remote_embedding_num_tries",
|
|
1317
|
+
"facet_strategy",
|
|
1318
|
+
"stopwords",
|
|
1319
|
+
"facet_return_parent",
|
|
1320
|
+
"voice_query",
|
|
1321
|
+
"conversation",
|
|
1322
|
+
"conversation_model_id",
|
|
1323
|
+
"conversation_id",
|
|
1324
|
+
],
|
|
1325
|
+
["union", "searches"],
|
|
1326
|
+
]));
|
|
1327
|
+
export const PresetSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1328
|
+
value: PresetSchemaValue,
|
|
1329
|
+
name: S.String,
|
|
1330
|
+
})).annotate({ identifier: "PresetSchema" });
|
|
1331
|
+
export const PresetsRetrieveSchemaPresetsList = /*@__PURE__*/ S.Array(PresetSchema);
|
|
1332
|
+
export const PresetsRetrieveSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1333
|
+
presets: PresetsRetrieveSchemaPresetsList,
|
|
1334
|
+
})).annotate({
|
|
1335
|
+
identifier: "PresetsRetrieveSchema",
|
|
1336
|
+
});
|
|
1337
|
+
export const RetrieveAnalyticsRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1338
|
+
ruleName: S.String.pipe(T.Label()),
|
|
1339
|
+
}).pipe(T.Http({ method: "GET", uri: "/analytics/rules/{ruleName}", code: 200 }))).annotate({
|
|
1340
|
+
identifier: "RetrieveAnalyticsRuleRequest",
|
|
1341
|
+
});
|
|
1342
|
+
export const RetrieveAnalyticsRuleResponseParamsMetaFieldsList =
|
|
1343
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
1344
|
+
export const RetrieveAnalyticsRuleResponseParams = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1345
|
+
destination_collection: S.optional(S.String),
|
|
1346
|
+
limit: S.optional(S.Number),
|
|
1347
|
+
capture_search_requests: S.optional(S.Boolean),
|
|
1348
|
+
meta_fields: S.optional(RetrieveAnalyticsRuleResponseParamsMetaFieldsList),
|
|
1349
|
+
expand_query: S.optional(S.Boolean),
|
|
1350
|
+
counter_field: S.optional(S.String),
|
|
1351
|
+
weight: S.optional(S.Number),
|
|
1352
|
+
})).annotate({
|
|
1353
|
+
identifier: "RetrieveAnalyticsRuleResponseParams",
|
|
1354
|
+
});
|
|
1355
|
+
export const RetrieveAnalyticsRuleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1356
|
+
name: S.String,
|
|
1357
|
+
type: AnalyticsRuleType,
|
|
1358
|
+
collection: S.String,
|
|
1359
|
+
event_type: S.String,
|
|
1360
|
+
rule_tag: S.optional(S.String),
|
|
1361
|
+
params: S.optional(RetrieveAnalyticsRuleResponseParams),
|
|
1362
|
+
})).annotate({
|
|
1363
|
+
identifier: "RetrieveAnalyticsRuleResponse",
|
|
1364
|
+
});
|
|
1365
|
+
export const RetrieveAnalyticsRulesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1366
|
+
rule_tag: S.optional(S.String.pipe(T.Query())),
|
|
1367
|
+
}).pipe(T.Http({ method: "GET", uri: "/analytics/rules", code: 200 }))).annotate({
|
|
1368
|
+
identifier: "RetrieveAnalyticsRulesRequest",
|
|
1369
|
+
});
|
|
1370
|
+
export const RetrieveAnalyticsRulesResponseBodyList = /*@__PURE__*/ S.Array(AnalyticsRule);
|
|
1371
|
+
export const RetrieveAnalyticsRulesResponse = /*@__PURE__*/ S.suspend(() => RetrieveAnalyticsRulesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1372
|
+
identifier: "RetrieveAnalyticsRulesResponse",
|
|
1373
|
+
});
|
|
1374
|
+
export const RetrieveAPIStatsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/stats.json", code: 200 }))).annotate({
|
|
1375
|
+
identifier: "RetrieveAPIStatsRequest",
|
|
1376
|
+
});
|
|
1377
|
+
export const APIStatsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1378
|
+
delete_latency_ms: S.optional(S.Number),
|
|
1379
|
+
delete_requests_per_second: S.optional(S.Number),
|
|
1380
|
+
import_latency_ms: S.optional(S.Number),
|
|
1381
|
+
import_requests_per_second: S.optional(S.Number),
|
|
1382
|
+
latency_ms: S.optional(S.Unknown),
|
|
1383
|
+
overloaded_requests_per_second: S.optional(S.Number),
|
|
1384
|
+
pending_write_batches: S.optional(S.Number),
|
|
1385
|
+
requests_per_second: S.optional(S.Unknown),
|
|
1386
|
+
search_latency_ms: S.optional(S.Number),
|
|
1387
|
+
search_requests_per_second: S.optional(S.Number),
|
|
1388
|
+
total_requests_per_second: S.optional(S.Number),
|
|
1389
|
+
write_latency_ms: S.optional(S.Number),
|
|
1390
|
+
write_requests_per_second: S.optional(S.Number),
|
|
1391
|
+
})).annotate({
|
|
1392
|
+
identifier: "APIStatsResponse",
|
|
1393
|
+
});
|
|
1394
|
+
export const RetrieveConversationModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1395
|
+
modelId: S.String.pipe(T.Label()),
|
|
1396
|
+
}).pipe(T.Http({
|
|
1397
|
+
method: "GET",
|
|
1398
|
+
uri: "/conversations/models/{modelId}",
|
|
1399
|
+
code: 200,
|
|
1400
|
+
}))).annotate({
|
|
1401
|
+
identifier: "RetrieveConversationModelRequest",
|
|
1402
|
+
});
|
|
1403
|
+
export const RetrieveConversationModelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1404
|
+
id: S.String,
|
|
1405
|
+
model_name: S.String,
|
|
1406
|
+
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1407
|
+
history_collection: S.String,
|
|
1408
|
+
account_id: S.optional(S.String),
|
|
1409
|
+
system_prompt: S.optional(S.String),
|
|
1410
|
+
ttl: S.optional(S.Number),
|
|
1411
|
+
max_bytes: S.Number,
|
|
1412
|
+
vllm_url: S.optional(S.String),
|
|
1413
|
+
})).annotate({
|
|
1414
|
+
identifier: "RetrieveConversationModelResponse",
|
|
1415
|
+
});
|
|
1416
|
+
export const RetrieveCurationSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1417
|
+
curationSetName: S.String.pipe(T.Label()),
|
|
1418
|
+
}).pipe(T.Http({
|
|
1419
|
+
method: "GET",
|
|
1420
|
+
uri: "/curation_sets/{curationSetName}",
|
|
1421
|
+
code: 200,
|
|
1422
|
+
}))).annotate({
|
|
1423
|
+
identifier: "RetrieveCurationSetRequest",
|
|
1424
|
+
});
|
|
1425
|
+
export const CurationRuleTagsList = /*@__PURE__*/ S.Array(S.String);
|
|
1426
|
+
export const CurationRuleMatch = /*@__PURE__*/ S.String;
|
|
1427
|
+
export const CurationRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1428
|
+
tags: S.optional(CurationRuleTagsList),
|
|
1429
|
+
query: S.optional(S.String),
|
|
1430
|
+
match: S.optional(CurationRuleMatch),
|
|
1431
|
+
filter_by: S.optional(S.String),
|
|
1432
|
+
})).annotate({ identifier: "CurationRule" });
|
|
1433
|
+
export const CurationInclude = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1434
|
+
id: S.String,
|
|
1435
|
+
position: S.Number,
|
|
1436
|
+
})).annotate({
|
|
1437
|
+
identifier: "CurationInclude",
|
|
1438
|
+
});
|
|
1439
|
+
export const CurationItemCreateSchemaIncludesList = /*@__PURE__*/ S.Array(CurationInclude);
|
|
1440
|
+
export const CurationExclude = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1441
|
+
id: S.String,
|
|
1442
|
+
})).annotate({
|
|
1443
|
+
identifier: "CurationExclude",
|
|
1444
|
+
});
|
|
1445
|
+
export const CurationItemCreateSchemaExcludesList = /*@__PURE__*/ S.Array(CurationExclude);
|
|
1446
|
+
export const CurationItemCreateSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1447
|
+
rule: CurationRule,
|
|
1448
|
+
includes: S.optional(CurationItemCreateSchemaIncludesList),
|
|
1449
|
+
excludes: S.optional(CurationItemCreateSchemaExcludesList),
|
|
1450
|
+
filter_by: S.optional(S.String),
|
|
1451
|
+
remove_matched_tokens: S.optional(S.Boolean),
|
|
1452
|
+
metadata: S.optional(S.Unknown),
|
|
1453
|
+
sort_by: S.optional(S.String),
|
|
1454
|
+
replace_query: S.optional(S.String),
|
|
1455
|
+
filter_curated_hits: S.optional(S.Boolean),
|
|
1456
|
+
effective_from_ts: S.optional(S.Number),
|
|
1457
|
+
effective_to_ts: S.optional(S.Number),
|
|
1458
|
+
stop_processing: S.optional(S.Boolean),
|
|
1459
|
+
id: S.optional(S.String),
|
|
1460
|
+
})).annotate({
|
|
1461
|
+
identifier: "CurationItemCreateSchema",
|
|
1462
|
+
});
|
|
1463
|
+
export const RetrieveCurationSetResponseItemsList = /*@__PURE__*/ S.Array(CurationItemCreateSchema);
|
|
1464
|
+
export const RetrieveCurationSetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1465
|
+
items: RetrieveCurationSetResponseItemsList,
|
|
1466
|
+
description: S.optional(S.String),
|
|
1467
|
+
name: S.String,
|
|
1468
|
+
})).annotate({
|
|
1469
|
+
identifier: "RetrieveCurationSetResponse",
|
|
1470
|
+
});
|
|
1471
|
+
export const RetrieveCurationSetItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1472
|
+
curationSetName: S.String.pipe(T.Label()),
|
|
1473
|
+
itemId: S.String.pipe(T.Label()),
|
|
1474
|
+
}).pipe(T.Http({
|
|
1475
|
+
method: "GET",
|
|
1476
|
+
uri: "/curation_sets/{curationSetName}/items/{itemId}",
|
|
1477
|
+
code: 200,
|
|
1478
|
+
}))).annotate({
|
|
1479
|
+
identifier: "RetrieveCurationSetItemRequest",
|
|
1480
|
+
});
|
|
1481
|
+
export const RetrieveCurationSetItemResponseIncludesList =
|
|
1482
|
+
/*@__PURE__*/ S.Array(CurationInclude);
|
|
1483
|
+
export const RetrieveCurationSetItemResponseExcludesList =
|
|
1484
|
+
/*@__PURE__*/ S.Array(CurationExclude);
|
|
1485
|
+
export const RetrieveCurationSetItemResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1486
|
+
rule: CurationRule,
|
|
1487
|
+
includes: S.optional(RetrieveCurationSetItemResponseIncludesList),
|
|
1488
|
+
excludes: S.optional(RetrieveCurationSetItemResponseExcludesList),
|
|
1489
|
+
filter_by: S.optional(S.String),
|
|
1490
|
+
remove_matched_tokens: S.optional(S.Boolean),
|
|
1491
|
+
metadata: S.optional(S.Unknown),
|
|
1492
|
+
sort_by: S.optional(S.String),
|
|
1493
|
+
replace_query: S.optional(S.String),
|
|
1494
|
+
filter_curated_hits: S.optional(S.Boolean),
|
|
1495
|
+
effective_from_ts: S.optional(S.Number),
|
|
1496
|
+
effective_to_ts: S.optional(S.Number),
|
|
1497
|
+
stop_processing: S.optional(S.Boolean),
|
|
1498
|
+
id: S.String,
|
|
1499
|
+
})).annotate({
|
|
1500
|
+
identifier: "RetrieveCurationSetItemResponse",
|
|
1501
|
+
});
|
|
1502
|
+
export const RetrieveCurationSetItemsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1503
|
+
curationSetName: S.String.pipe(T.Label()),
|
|
1504
|
+
}).pipe(T.Http({
|
|
1505
|
+
method: "GET",
|
|
1506
|
+
uri: "/curation_sets/{curationSetName}/items",
|
|
1507
|
+
code: 200,
|
|
1508
|
+
}))).annotate({
|
|
1509
|
+
identifier: "RetrieveCurationSetItemsRequest",
|
|
1510
|
+
});
|
|
1511
|
+
export const CurationItemSchemaIncludesList = /*@__PURE__*/ S.Array(CurationInclude);
|
|
1512
|
+
export const CurationItemSchemaExcludesList = /*@__PURE__*/ S.Array(CurationExclude);
|
|
1513
|
+
export const CurationItemSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1514
|
+
rule: CurationRule,
|
|
1515
|
+
includes: S.optional(CurationItemSchemaIncludesList),
|
|
1516
|
+
excludes: S.optional(CurationItemSchemaExcludesList),
|
|
1517
|
+
filter_by: S.optional(S.String),
|
|
1518
|
+
remove_matched_tokens: S.optional(S.Boolean),
|
|
1519
|
+
metadata: S.optional(S.Unknown),
|
|
1520
|
+
sort_by: S.optional(S.String),
|
|
1521
|
+
replace_query: S.optional(S.String),
|
|
1522
|
+
filter_curated_hits: S.optional(S.Boolean),
|
|
1523
|
+
effective_from_ts: S.optional(S.Number),
|
|
1524
|
+
effective_to_ts: S.optional(S.Number),
|
|
1525
|
+
stop_processing: S.optional(S.Boolean),
|
|
1526
|
+
id: S.String,
|
|
1527
|
+
})).annotate({
|
|
1528
|
+
identifier: "CurationItemSchema",
|
|
1529
|
+
});
|
|
1530
|
+
export const RetrieveCurationSetItemsResponseBodyList = /*@__PURE__*/ S.Array(CurationItemSchema);
|
|
1531
|
+
export const RetrieveCurationSetItemsResponse = /*@__PURE__*/ S.suspend(() => RetrieveCurationSetItemsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1532
|
+
identifier: "RetrieveCurationSetItemsResponse",
|
|
1533
|
+
});
|
|
1534
|
+
export const RetrieveCurationSetsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/curation_sets", code: 200 }))).annotate({
|
|
1535
|
+
identifier: "RetrieveCurationSetsRequest",
|
|
1536
|
+
});
|
|
1537
|
+
export const CurationSetSchemaItemsList = /*@__PURE__*/ S.Array(CurationItemCreateSchema);
|
|
1538
|
+
export const CurationSetSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1539
|
+
items: CurationSetSchemaItemsList,
|
|
1540
|
+
description: S.optional(S.String),
|
|
1541
|
+
name: S.String,
|
|
1542
|
+
})).annotate({
|
|
1543
|
+
identifier: "CurationSetSchema",
|
|
1544
|
+
});
|
|
1545
|
+
export const RetrieveCurationSetsResponseBodyList = /*@__PURE__*/ S.Array(CurationSetSchema);
|
|
1546
|
+
export const RetrieveCurationSetsResponse = /*@__PURE__*/ S.suspend(() => RetrieveCurationSetsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1547
|
+
identifier: "RetrieveCurationSetsResponse",
|
|
1548
|
+
});
|
|
1549
|
+
export const RetrieveMetricsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/metrics.json", code: 200 }))).annotate({
|
|
1550
|
+
identifier: "RetrieveMetricsRequest",
|
|
1551
|
+
});
|
|
1552
|
+
export const RetrieveMetricsResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
1553
|
+
identifier: "RetrieveMetricsResponse",
|
|
1554
|
+
});
|
|
1555
|
+
export const RetrieveNLSearchModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1556
|
+
modelId: S.String.pipe(T.Label()),
|
|
1557
|
+
}).pipe(T.Http({ method: "GET", uri: "/nl_search_models/{modelId}", code: 200 }))).annotate({
|
|
1558
|
+
identifier: "RetrieveNLSearchModelRequest",
|
|
1559
|
+
});
|
|
1560
|
+
export const RetrieveNLSearchModelResponseStopSequencesList =
|
|
1561
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
1562
|
+
export const RetrieveNLSearchModelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1563
|
+
model_name: S.optional(S.String),
|
|
1564
|
+
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1565
|
+
api_url: S.optional(S.String),
|
|
1566
|
+
max_bytes: S.optional(S.Number),
|
|
1567
|
+
temperature: S.optional(S.Number),
|
|
1568
|
+
system_prompt: S.optional(S.String),
|
|
1569
|
+
top_p: S.optional(S.Number),
|
|
1570
|
+
top_k: S.optional(S.Number),
|
|
1571
|
+
stop_sequences: S.optional(RetrieveNLSearchModelResponseStopSequencesList),
|
|
1572
|
+
api_version: S.optional(S.String),
|
|
1573
|
+
project_id: S.optional(S.String),
|
|
1574
|
+
access_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1575
|
+
refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1576
|
+
client_id: S.optional(S.String),
|
|
1577
|
+
client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1578
|
+
region: S.optional(S.String),
|
|
1579
|
+
max_output_tokens: S.optional(S.Number),
|
|
1580
|
+
account_id: S.optional(S.String),
|
|
1581
|
+
id: S.String,
|
|
1582
|
+
})).annotate({
|
|
1583
|
+
identifier: "RetrieveNLSearchModelResponse",
|
|
1584
|
+
});
|
|
1585
|
+
export const RetrievePresetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1586
|
+
presetId: S.String.pipe(T.Label()),
|
|
1587
|
+
}).pipe(T.Http({ method: "GET", uri: "/presets/{presetId}", code: 200 }))).annotate({
|
|
1588
|
+
identifier: "RetrievePresetRequest",
|
|
1589
|
+
});
|
|
1590
|
+
export const RetrievePresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
|
|
1591
|
+
[
|
|
1592
|
+
"q",
|
|
1593
|
+
"query_by",
|
|
1594
|
+
"validate_field_names",
|
|
1595
|
+
"nl_query",
|
|
1596
|
+
"nl_model_id",
|
|
1597
|
+
"query_by_weights",
|
|
1598
|
+
"text_match_type",
|
|
1599
|
+
"prefix",
|
|
1600
|
+
"infix",
|
|
1601
|
+
"max_extra_prefix",
|
|
1602
|
+
"max_extra_suffix",
|
|
1603
|
+
"filter_by",
|
|
1604
|
+
"max_filter_by_candidates",
|
|
1605
|
+
"sort_by",
|
|
1606
|
+
"facet_by",
|
|
1607
|
+
"max_facet_values",
|
|
1608
|
+
"facet_query",
|
|
1609
|
+
"num_typos",
|
|
1610
|
+
"page",
|
|
1611
|
+
"per_page",
|
|
1612
|
+
"limit",
|
|
1613
|
+
"offset",
|
|
1614
|
+
"group_by",
|
|
1615
|
+
"group_limit",
|
|
1616
|
+
"group_missing_values",
|
|
1617
|
+
"include_fields",
|
|
1618
|
+
"exclude_fields",
|
|
1619
|
+
"highlight_full_fields",
|
|
1620
|
+
"highlight_affix_num_tokens",
|
|
1621
|
+
"highlight_start_tag",
|
|
1622
|
+
"highlight_end_tag",
|
|
1623
|
+
"enable_highlight_v1",
|
|
1624
|
+
"enable_analytics",
|
|
1625
|
+
"snippet_threshold",
|
|
1626
|
+
"synonym_sets",
|
|
1627
|
+
"drop_tokens_threshold",
|
|
1628
|
+
"drop_tokens_mode",
|
|
1629
|
+
"typo_tokens_threshold",
|
|
1630
|
+
"enable_typos_for_alpha_numerical_tokens",
|
|
1631
|
+
"filter_curated_hits",
|
|
1632
|
+
"enable_synonyms",
|
|
1633
|
+
"synonym_prefix",
|
|
1634
|
+
"synonym_num_typos",
|
|
1635
|
+
"pinned_hits",
|
|
1636
|
+
"hidden_hits",
|
|
1637
|
+
"curation_tags",
|
|
1638
|
+
"highlight_fields",
|
|
1639
|
+
"split_join_tokens",
|
|
1640
|
+
"pre_segmented_query",
|
|
1641
|
+
"preset",
|
|
1642
|
+
"enable_curations",
|
|
1643
|
+
"prioritize_exact_match",
|
|
1644
|
+
"max_candidates",
|
|
1645
|
+
"prioritize_token_position",
|
|
1646
|
+
"prioritize_num_matching_fields",
|
|
1647
|
+
"enable_typos_for_numerical_tokens",
|
|
1648
|
+
"exhaustive_search",
|
|
1649
|
+
"search_cutoff_ms",
|
|
1650
|
+
"use_cache",
|
|
1651
|
+
"cache_ttl",
|
|
1652
|
+
"min_len_1typo",
|
|
1653
|
+
"min_len_2typo",
|
|
1654
|
+
"vector_query",
|
|
1655
|
+
"remote_embedding_timeout_ms",
|
|
1656
|
+
"remote_embedding_num_tries",
|
|
1657
|
+
"facet_strategy",
|
|
1658
|
+
"stopwords",
|
|
1659
|
+
"facet_return_parent",
|
|
1660
|
+
"voice_query",
|
|
1661
|
+
"conversation",
|
|
1662
|
+
"conversation_model_id",
|
|
1663
|
+
"conversation_id",
|
|
1664
|
+
],
|
|
1665
|
+
["union", "searches"],
|
|
1666
|
+
]));
|
|
1667
|
+
export const RetrievePresetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1668
|
+
value: RetrievePresetResponseValue,
|
|
1669
|
+
name: S.String,
|
|
1670
|
+
})).annotate({
|
|
1671
|
+
identifier: "RetrievePresetResponse",
|
|
1672
|
+
});
|
|
1673
|
+
export const RetrieveStopwordsSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1674
|
+
setId: S.String.pipe(T.Label()),
|
|
1675
|
+
}).pipe(T.Http({ method: "GET", uri: "/stopwords/{setId}", code: 200 }))).annotate({
|
|
1676
|
+
identifier: "RetrieveStopwordsSetRequest",
|
|
1677
|
+
});
|
|
1678
|
+
export const StopwordsSetSchemaStopwordsList = /*@__PURE__*/ S.Array(S.String);
|
|
1679
|
+
export const StopwordsSetSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1680
|
+
id: S.String,
|
|
1681
|
+
stopwords: StopwordsSetSchemaStopwordsList,
|
|
1682
|
+
locale: S.optional(S.String),
|
|
1683
|
+
})).annotate({
|
|
1684
|
+
identifier: "StopwordsSetSchema",
|
|
1685
|
+
});
|
|
1686
|
+
export const StopwordsSetRetrieveSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1687
|
+
stopwords: StopwordsSetSchema,
|
|
1688
|
+
})).annotate({
|
|
1689
|
+
identifier: "StopwordsSetRetrieveSchema",
|
|
1690
|
+
});
|
|
1691
|
+
export const RetrieveStopwordsSetsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/stopwords", code: 200 }))).annotate({
|
|
1692
|
+
identifier: "RetrieveStopwordsSetsRequest",
|
|
1693
|
+
});
|
|
1694
|
+
export const StopwordsSetsRetrieveAllSchemaStopwordsList =
|
|
1695
|
+
/*@__PURE__*/ S.Array(StopwordsSetSchema);
|
|
1696
|
+
export const StopwordsSetsRetrieveAllSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1697
|
+
stopwords: StopwordsSetsRetrieveAllSchemaStopwordsList,
|
|
1698
|
+
})).annotate({
|
|
1699
|
+
identifier: "StopwordsSetsRetrieveAllSchema",
|
|
1700
|
+
});
|
|
1701
|
+
export const RetrieveSynonymSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1702
|
+
synonymSetName: S.String.pipe(T.Label()),
|
|
1703
|
+
}).pipe(T.Http({ method: "GET", uri: "/synonym_sets/{synonymSetName}", code: 200 }))).annotate({
|
|
1704
|
+
identifier: "RetrieveSynonymSetRequest",
|
|
1705
|
+
});
|
|
1706
|
+
export const SynonymItemSchemaSynonymsList = /*@__PURE__*/ S.Array(S.String);
|
|
1707
|
+
export const SynonymItemSchemaSymbolsToIndexList = /*@__PURE__*/ S.Array(S.String);
|
|
1708
|
+
export const SynonymItemSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1709
|
+
id: S.String,
|
|
1710
|
+
synonyms: SynonymItemSchemaSynonymsList,
|
|
1711
|
+
root: S.optional(S.String),
|
|
1712
|
+
locale: S.optional(S.String),
|
|
1713
|
+
symbols_to_index: S.optional(SynonymItemSchemaSymbolsToIndexList),
|
|
1714
|
+
})).annotate({
|
|
1715
|
+
identifier: "SynonymItemSchema",
|
|
1716
|
+
});
|
|
1717
|
+
export const RetrieveSynonymSetResponseItemsList = /*@__PURE__*/ S.Array(SynonymItemSchema);
|
|
1718
|
+
export const RetrieveSynonymSetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1719
|
+
items: RetrieveSynonymSetResponseItemsList,
|
|
1720
|
+
name: S.String,
|
|
1721
|
+
})).annotate({
|
|
1722
|
+
identifier: "RetrieveSynonymSetResponse",
|
|
1723
|
+
});
|
|
1724
|
+
export const RetrieveSynonymSetItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1725
|
+
synonymSetName: S.String.pipe(T.Label()),
|
|
1726
|
+
itemId: S.String.pipe(T.Label()),
|
|
1727
|
+
}).pipe(T.Http({
|
|
1728
|
+
method: "GET",
|
|
1729
|
+
uri: "/synonym_sets/{synonymSetName}/items/{itemId}",
|
|
1730
|
+
code: 200,
|
|
1731
|
+
}))).annotate({
|
|
1732
|
+
identifier: "RetrieveSynonymSetItemRequest",
|
|
1733
|
+
});
|
|
1734
|
+
export const RetrieveSynonymSetItemResponseSynonymsList = /*@__PURE__*/ S.Array(S.String);
|
|
1735
|
+
export const RetrieveSynonymSetItemResponseSymbolsToIndexList =
|
|
1736
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
1737
|
+
export const RetrieveSynonymSetItemResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1738
|
+
id: S.String,
|
|
1739
|
+
synonyms: RetrieveSynonymSetItemResponseSynonymsList,
|
|
1740
|
+
root: S.optional(S.String),
|
|
1741
|
+
locale: S.optional(S.String),
|
|
1742
|
+
symbols_to_index: S.optional(RetrieveSynonymSetItemResponseSymbolsToIndexList),
|
|
1743
|
+
})).annotate({
|
|
1744
|
+
identifier: "RetrieveSynonymSetItemResponse",
|
|
1745
|
+
});
|
|
1746
|
+
export const RetrieveSynonymSetItemsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1747
|
+
synonymSetName: S.String.pipe(T.Label()),
|
|
1748
|
+
}).pipe(T.Http({
|
|
1749
|
+
method: "GET",
|
|
1750
|
+
uri: "/synonym_sets/{synonymSetName}/items",
|
|
1751
|
+
code: 200,
|
|
1752
|
+
}))).annotate({
|
|
1753
|
+
identifier: "RetrieveSynonymSetItemsRequest",
|
|
1754
|
+
});
|
|
1755
|
+
export const RetrieveSynonymSetItemsResponseBodyList = /*@__PURE__*/ S.Array(SynonymItemSchema);
|
|
1756
|
+
export const RetrieveSynonymSetItemsResponse = /*@__PURE__*/ S.suspend(() => RetrieveSynonymSetItemsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1757
|
+
identifier: "RetrieveSynonymSetItemsResponse",
|
|
1758
|
+
});
|
|
1759
|
+
export const RetrieveSynonymSetsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/synonym_sets", code: 200 }))).annotate({
|
|
1760
|
+
identifier: "RetrieveSynonymSetsRequest",
|
|
1761
|
+
});
|
|
1762
|
+
export const SynonymSetSchemaItemsList = /*@__PURE__*/ S.Array(SynonymItemSchema);
|
|
1763
|
+
export const SynonymSetSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1764
|
+
items: SynonymSetSchemaItemsList,
|
|
1765
|
+
name: S.String,
|
|
1766
|
+
})).annotate({
|
|
1767
|
+
identifier: "SynonymSetSchema",
|
|
1768
|
+
});
|
|
1769
|
+
export const RetrieveSynonymSetsResponseBodyList = /*@__PURE__*/ S.Array(SynonymSetSchema);
|
|
1770
|
+
export const RetrieveSynonymSetsResponse = /*@__PURE__*/ S.suspend(() => RetrieveSynonymSetsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1771
|
+
identifier: "RetrieveSynonymSetsResponse",
|
|
1772
|
+
});
|
|
1773
|
+
export const SearchCollectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1774
|
+
collectionName: S.String.pipe(T.Label()),
|
|
1775
|
+
searchParameters: SearchParameters.pipe(T.Query()),
|
|
1776
|
+
}).pipe(T.Http({
|
|
1777
|
+
method: "GET",
|
|
1778
|
+
uri: "/collections/{collectionName}/documents/search",
|
|
1779
|
+
code: 200,
|
|
1780
|
+
}))).annotate({
|
|
1781
|
+
identifier: "SearchCollectionRequest",
|
|
1782
|
+
});
|
|
1783
|
+
export const SearchResultFacetCountsList = /*@__PURE__*/ S.Array(FacetCounts);
|
|
1784
|
+
export const SearchResultGroupedHitsList = /*@__PURE__*/ S.Array(SearchGroupedHit);
|
|
1785
|
+
export const SearchResultHitsList = /*@__PURE__*/ S.Array(SearchResultHit);
|
|
1786
|
+
export const SearchResultUnionRequestParamsList = /*@__PURE__*/ S.Array(SearchRequestParams);
|
|
1787
|
+
export const SearchResultMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
1788
|
+
export const SearchResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1789
|
+
facet_counts: S.optional(SearchResultFacetCountsList),
|
|
1790
|
+
found: S.optional(S.Number),
|
|
1791
|
+
found_docs: S.optional(S.Number),
|
|
1792
|
+
search_time_ms: S.optional(S.Number),
|
|
1793
|
+
out_of: S.optional(S.Number),
|
|
1794
|
+
search_cutoff: S.optional(S.Boolean),
|
|
1795
|
+
page: S.optional(S.Number),
|
|
1796
|
+
grouped_hits: S.optional(SearchResultGroupedHitsList),
|
|
1797
|
+
hits: S.optional(SearchResultHitsList),
|
|
1798
|
+
request_params: S.optional(SearchRequestParams),
|
|
1799
|
+
conversation: S.optional(SearchResultConversation),
|
|
1800
|
+
union_request_params: S.optional(SearchResultUnionRequestParamsList),
|
|
1801
|
+
metadata: S.optional(SearchResultMetadataMap),
|
|
1802
|
+
})).annotate({ identifier: "SearchResult" });
|
|
1803
|
+
export const TakeSnapshotRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1804
|
+
snapshot_path: S.String.pipe(T.Query()),
|
|
1805
|
+
}).pipe(T.Http({ method: "POST", uri: "/operations/snapshot", code: 200 }))).annotate({
|
|
1806
|
+
identifier: "TakeSnapshotRequest",
|
|
1807
|
+
});
|
|
1808
|
+
export const ToggleSlowRequestLogRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1809
|
+
log_slow_requests_time_ms: S.Number.pipe(T.Body("log-slow-requests-time-ms")),
|
|
1810
|
+
}).pipe(T.Http({ method: "POST", uri: "/config", code: 200 }))).annotate({
|
|
1811
|
+
identifier: "ToggleSlowRequestLogRequest",
|
|
1812
|
+
});
|
|
1813
|
+
export const UpdateCollectionRequestFieldsList = /*@__PURE__*/ S.Array(Field);
|
|
1814
|
+
export const UpdateCollectionRequestSynonymSetsList = /*@__PURE__*/ S.Array(S.String);
|
|
1815
|
+
export const UpdateCollectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1816
|
+
collectionName: S.String.pipe(T.Label()),
|
|
1817
|
+
fields: S.optional(UpdateCollectionRequestFieldsList),
|
|
1818
|
+
synonym_sets: S.optional(UpdateCollectionRequestSynonymSetsList),
|
|
1819
|
+
metadata: S.optional(S.Unknown),
|
|
1820
|
+
}).pipe(T.Http({
|
|
1821
|
+
method: "PATCH",
|
|
1822
|
+
uri: "/collections/{collectionName}",
|
|
1823
|
+
code: 200,
|
|
1824
|
+
}))).annotate({
|
|
1825
|
+
identifier: "UpdateCollectionRequest",
|
|
1826
|
+
});
|
|
1827
|
+
export const CollectionUpdateSchemaFieldsList = /*@__PURE__*/ S.Array(Field);
|
|
1828
|
+
export const CollectionUpdateSchemaSynonymSetsList = /*@__PURE__*/ S.Array(S.String);
|
|
1829
|
+
export const CollectionUpdateSchema = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1830
|
+
fields: S.optional(CollectionUpdateSchemaFieldsList),
|
|
1831
|
+
synonym_sets: S.optional(CollectionUpdateSchemaSynonymSetsList),
|
|
1832
|
+
metadata: S.optional(S.Unknown),
|
|
1833
|
+
})).annotate({
|
|
1834
|
+
identifier: "CollectionUpdateSchema",
|
|
1835
|
+
});
|
|
1836
|
+
export const UpdateConversationModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1837
|
+
modelId: S.String.pipe(T.Label()),
|
|
1838
|
+
id: S.optional(S.String),
|
|
1839
|
+
model_name: S.optional(S.String),
|
|
1840
|
+
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1841
|
+
history_collection: S.optional(S.String),
|
|
1842
|
+
account_id: S.optional(S.String),
|
|
1843
|
+
system_prompt: S.optional(S.String),
|
|
1844
|
+
ttl: S.optional(S.Number),
|
|
1845
|
+
max_bytes: S.optional(S.Number),
|
|
1846
|
+
vllm_url: S.optional(S.String),
|
|
1847
|
+
}).pipe(T.Http({
|
|
1848
|
+
method: "PUT",
|
|
1849
|
+
uri: "/conversations/models/{modelId}",
|
|
1850
|
+
code: 200,
|
|
1851
|
+
}))).annotate({
|
|
1852
|
+
identifier: "UpdateConversationModelRequest",
|
|
1853
|
+
});
|
|
1854
|
+
export const UpdateConversationModelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1855
|
+
id: S.String,
|
|
1856
|
+
model_name: S.String,
|
|
1857
|
+
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1858
|
+
history_collection: S.String,
|
|
1859
|
+
account_id: S.optional(S.String),
|
|
1860
|
+
system_prompt: S.optional(S.String),
|
|
1861
|
+
ttl: S.optional(S.Number),
|
|
1862
|
+
max_bytes: S.Number,
|
|
1863
|
+
vllm_url: S.optional(S.String),
|
|
1864
|
+
})).annotate({
|
|
1865
|
+
identifier: "UpdateConversationModelResponse",
|
|
1866
|
+
});
|
|
1867
|
+
export const UpdateDocumentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1868
|
+
collectionName: S.String.pipe(T.Label()),
|
|
1869
|
+
documentId: S.String.pipe(T.Label()),
|
|
1870
|
+
dirty_values: S.optional(DirtyValues.pipe(T.Query())),
|
|
1871
|
+
}).pipe(T.Http({
|
|
1872
|
+
method: "PATCH",
|
|
1873
|
+
uri: "/collections/{collectionName}/documents/{documentId}",
|
|
1874
|
+
code: 200,
|
|
1875
|
+
}))).annotate({
|
|
1876
|
+
identifier: "UpdateDocumentRequest",
|
|
1877
|
+
});
|
|
1878
|
+
export const UpdateDocumentResponse = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
1879
|
+
identifier: "UpdateDocumentResponse",
|
|
1880
|
+
});
|
|
1881
|
+
export const UpdateDocumentsRequestUpdateDocumentsParameters =
|
|
1882
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1883
|
+
filter_by: S.optional(S.String),
|
|
1884
|
+
})).annotate({
|
|
1885
|
+
identifier: "UpdateDocumentsRequestUpdateDocumentsParameters",
|
|
1886
|
+
});
|
|
1887
|
+
export const UpdateDocumentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1888
|
+
collectionName: S.String.pipe(T.Label()),
|
|
1889
|
+
updateDocumentsParameters: S.optional(UpdateDocumentsRequestUpdateDocumentsParameters.pipe(T.Query())),
|
|
1890
|
+
}).pipe(T.Http({
|
|
1891
|
+
method: "PATCH",
|
|
1892
|
+
uri: "/collections/{collectionName}/documents",
|
|
1893
|
+
code: 200,
|
|
1894
|
+
}))).annotate({
|
|
1895
|
+
identifier: "UpdateDocumentsRequest",
|
|
1896
|
+
});
|
|
1897
|
+
export const UpdateDocumentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1898
|
+
num_updated: S.Number,
|
|
1899
|
+
})).annotate({
|
|
1900
|
+
identifier: "UpdateDocumentsResponse",
|
|
1901
|
+
});
|
|
1902
|
+
export const UpdateNLSearchModelRequestStopSequencesList =
|
|
1903
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
1904
|
+
export const UpdateNLSearchModelRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1905
|
+
modelId: S.String.pipe(T.Label()),
|
|
1906
|
+
model_name: S.optional(S.String),
|
|
1907
|
+
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1908
|
+
api_url: S.optional(S.String),
|
|
1909
|
+
max_bytes: S.optional(S.Number),
|
|
1910
|
+
temperature: S.optional(S.Number),
|
|
1911
|
+
system_prompt: S.optional(S.String),
|
|
1912
|
+
top_p: S.optional(S.Number),
|
|
1913
|
+
top_k: S.optional(S.Number),
|
|
1914
|
+
stop_sequences: S.optional(UpdateNLSearchModelRequestStopSequencesList),
|
|
1915
|
+
api_version: S.optional(S.String),
|
|
1916
|
+
project_id: S.optional(S.String),
|
|
1917
|
+
access_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1918
|
+
refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1919
|
+
client_id: S.optional(S.String),
|
|
1920
|
+
client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1921
|
+
region: S.optional(S.String),
|
|
1922
|
+
max_output_tokens: S.optional(S.Number),
|
|
1923
|
+
account_id: S.optional(S.String),
|
|
1924
|
+
id: S.optional(S.String),
|
|
1925
|
+
}).pipe(T.Http({ method: "PUT", uri: "/nl_search_models/{modelId}", code: 200 }))).annotate({
|
|
1926
|
+
identifier: "UpdateNLSearchModelRequest",
|
|
1927
|
+
});
|
|
1928
|
+
export const UpdateNLSearchModelResponseStopSequencesList =
|
|
1929
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
1930
|
+
export const UpdateNLSearchModelResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1931
|
+
model_name: S.optional(S.String),
|
|
1932
|
+
api_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1933
|
+
api_url: S.optional(S.String),
|
|
1934
|
+
max_bytes: S.optional(S.Number),
|
|
1935
|
+
temperature: S.optional(S.Number),
|
|
1936
|
+
system_prompt: S.optional(S.String),
|
|
1937
|
+
top_p: S.optional(S.Number),
|
|
1938
|
+
top_k: S.optional(S.Number),
|
|
1939
|
+
stop_sequences: S.optional(UpdateNLSearchModelResponseStopSequencesList),
|
|
1940
|
+
api_version: S.optional(S.String),
|
|
1941
|
+
project_id: S.optional(S.String),
|
|
1942
|
+
access_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1943
|
+
refresh_token: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1944
|
+
client_id: S.optional(S.String),
|
|
1945
|
+
client_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1946
|
+
region: S.optional(S.String),
|
|
1947
|
+
max_output_tokens: S.optional(S.Number),
|
|
1948
|
+
account_id: S.optional(S.String),
|
|
1949
|
+
id: S.String,
|
|
1950
|
+
})).annotate({
|
|
1951
|
+
identifier: "UpdateNLSearchModelResponse",
|
|
1952
|
+
});
|
|
1953
|
+
export const UpsertAliasRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1954
|
+
aliasName: S.String.pipe(T.Label()),
|
|
1955
|
+
collection_name: S.String,
|
|
1956
|
+
}).pipe(T.Http({ method: "PUT", uri: "/aliases/{aliasName}", code: 200 }))).annotate({
|
|
1957
|
+
identifier: "UpsertAliasRequest",
|
|
1958
|
+
});
|
|
1959
|
+
export const UpsertAnalyticsRuleRequestParamsMetaFieldsList =
|
|
1960
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
1961
|
+
export const UpsertAnalyticsRuleRequestParams = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1962
|
+
destination_collection: S.optional(S.String),
|
|
1963
|
+
limit: S.optional(S.Number),
|
|
1964
|
+
capture_search_requests: S.optional(S.Boolean),
|
|
1965
|
+
meta_fields: S.optional(UpsertAnalyticsRuleRequestParamsMetaFieldsList),
|
|
1966
|
+
expand_query: S.optional(S.Boolean),
|
|
1967
|
+
counter_field: S.optional(S.String),
|
|
1968
|
+
weight: S.optional(S.Number),
|
|
1969
|
+
})).annotate({
|
|
1970
|
+
identifier: "UpsertAnalyticsRuleRequestParams",
|
|
1971
|
+
});
|
|
1972
|
+
export const UpsertAnalyticsRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1973
|
+
ruleName: S.String.pipe(T.Label()),
|
|
1974
|
+
name: S.optional(S.String),
|
|
1975
|
+
rule_tag: S.optional(S.String),
|
|
1976
|
+
params: S.optional(UpsertAnalyticsRuleRequestParams),
|
|
1977
|
+
}).pipe(T.Http({ method: "PUT", uri: "/analytics/rules/{ruleName}", code: 200 }))).annotate({
|
|
1978
|
+
identifier: "UpsertAnalyticsRuleRequest",
|
|
1979
|
+
});
|
|
1980
|
+
export const UpsertAnalyticsRuleResponseParamsMetaFieldsList =
|
|
1981
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
1982
|
+
export const UpsertAnalyticsRuleResponseParams = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1983
|
+
destination_collection: S.optional(S.String),
|
|
1984
|
+
limit: S.optional(S.Number),
|
|
1985
|
+
capture_search_requests: S.optional(S.Boolean),
|
|
1986
|
+
meta_fields: S.optional(UpsertAnalyticsRuleResponseParamsMetaFieldsList),
|
|
1987
|
+
expand_query: S.optional(S.Boolean),
|
|
1988
|
+
counter_field: S.optional(S.String),
|
|
1989
|
+
weight: S.optional(S.Number),
|
|
1990
|
+
})).annotate({
|
|
1991
|
+
identifier: "UpsertAnalyticsRuleResponseParams",
|
|
1992
|
+
});
|
|
1993
|
+
export const UpsertAnalyticsRuleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1994
|
+
name: S.String,
|
|
1995
|
+
type: AnalyticsRuleType,
|
|
1996
|
+
collection: S.String,
|
|
1997
|
+
event_type: S.String,
|
|
1998
|
+
rule_tag: S.optional(S.String),
|
|
1999
|
+
params: S.optional(UpsertAnalyticsRuleResponseParams),
|
|
2000
|
+
})).annotate({
|
|
2001
|
+
identifier: "UpsertAnalyticsRuleResponse",
|
|
2002
|
+
});
|
|
2003
|
+
export const UpsertCurationSetRequestItemsList = /*@__PURE__*/ S.Array(CurationItemCreateSchema);
|
|
2004
|
+
export const UpsertCurationSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2005
|
+
curationSetName: S.String.pipe(T.Label()),
|
|
2006
|
+
items: UpsertCurationSetRequestItemsList,
|
|
2007
|
+
description: S.optional(S.String),
|
|
2008
|
+
}).pipe(T.Http({
|
|
2009
|
+
method: "PUT",
|
|
2010
|
+
uri: "/curation_sets/{curationSetName}",
|
|
2011
|
+
code: 200,
|
|
2012
|
+
}))).annotate({
|
|
2013
|
+
identifier: "UpsertCurationSetRequest",
|
|
2014
|
+
});
|
|
2015
|
+
export const UpsertCurationSetResponseItemsList = /*@__PURE__*/ S.Array(CurationItemCreateSchema);
|
|
2016
|
+
export const UpsertCurationSetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2017
|
+
items: UpsertCurationSetResponseItemsList,
|
|
2018
|
+
description: S.optional(S.String),
|
|
2019
|
+
name: S.String,
|
|
2020
|
+
})).annotate({
|
|
2021
|
+
identifier: "UpsertCurationSetResponse",
|
|
2022
|
+
});
|
|
2023
|
+
export const UpsertCurationSetItemRequestIncludesList = /*@__PURE__*/ S.Array(CurationInclude);
|
|
2024
|
+
export const UpsertCurationSetItemRequestExcludesList = /*@__PURE__*/ S.Array(CurationExclude);
|
|
2025
|
+
export const UpsertCurationSetItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2026
|
+
curationSetName: S.String.pipe(T.Label()),
|
|
2027
|
+
itemId: S.String.pipe(T.Label()),
|
|
2028
|
+
rule: CurationRule,
|
|
2029
|
+
includes: S.optional(UpsertCurationSetItemRequestIncludesList),
|
|
2030
|
+
excludes: S.optional(UpsertCurationSetItemRequestExcludesList),
|
|
2031
|
+
filter_by: S.optional(S.String),
|
|
2032
|
+
remove_matched_tokens: S.optional(S.Boolean),
|
|
2033
|
+
metadata: S.optional(S.Unknown),
|
|
2034
|
+
sort_by: S.optional(S.String),
|
|
2035
|
+
replace_query: S.optional(S.String),
|
|
2036
|
+
filter_curated_hits: S.optional(S.Boolean),
|
|
2037
|
+
effective_from_ts: S.optional(S.Number),
|
|
2038
|
+
effective_to_ts: S.optional(S.Number),
|
|
2039
|
+
stop_processing: S.optional(S.Boolean),
|
|
2040
|
+
id: S.optional(S.String),
|
|
2041
|
+
}).pipe(T.Http({
|
|
2042
|
+
method: "PUT",
|
|
2043
|
+
uri: "/curation_sets/{curationSetName}/items/{itemId}",
|
|
2044
|
+
code: 200,
|
|
2045
|
+
}))).annotate({
|
|
2046
|
+
identifier: "UpsertCurationSetItemRequest",
|
|
2047
|
+
});
|
|
2048
|
+
export const UpsertCurationSetItemResponseIncludesList = /*@__PURE__*/ S.Array(CurationInclude);
|
|
2049
|
+
export const UpsertCurationSetItemResponseExcludesList = /*@__PURE__*/ S.Array(CurationExclude);
|
|
2050
|
+
export const UpsertCurationSetItemResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2051
|
+
rule: CurationRule,
|
|
2052
|
+
includes: S.optional(UpsertCurationSetItemResponseIncludesList),
|
|
2053
|
+
excludes: S.optional(UpsertCurationSetItemResponseExcludesList),
|
|
2054
|
+
filter_by: S.optional(S.String),
|
|
2055
|
+
remove_matched_tokens: S.optional(S.Boolean),
|
|
2056
|
+
metadata: S.optional(S.Unknown),
|
|
2057
|
+
sort_by: S.optional(S.String),
|
|
2058
|
+
replace_query: S.optional(S.String),
|
|
2059
|
+
filter_curated_hits: S.optional(S.Boolean),
|
|
2060
|
+
effective_from_ts: S.optional(S.Number),
|
|
2061
|
+
effective_to_ts: S.optional(S.Number),
|
|
2062
|
+
stop_processing: S.optional(S.Boolean),
|
|
2063
|
+
id: S.String,
|
|
2064
|
+
})).annotate({
|
|
2065
|
+
identifier: "UpsertCurationSetItemResponse",
|
|
2066
|
+
});
|
|
2067
|
+
export const UpsertPresetRequestValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
|
|
2068
|
+
[
|
|
2069
|
+
"q",
|
|
2070
|
+
"query_by",
|
|
2071
|
+
"validate_field_names",
|
|
2072
|
+
"nl_query",
|
|
2073
|
+
"nl_model_id",
|
|
2074
|
+
"query_by_weights",
|
|
2075
|
+
"text_match_type",
|
|
2076
|
+
"prefix",
|
|
2077
|
+
"infix",
|
|
2078
|
+
"max_extra_prefix",
|
|
2079
|
+
"max_extra_suffix",
|
|
2080
|
+
"filter_by",
|
|
2081
|
+
"max_filter_by_candidates",
|
|
2082
|
+
"sort_by",
|
|
2083
|
+
"facet_by",
|
|
2084
|
+
"max_facet_values",
|
|
2085
|
+
"facet_query",
|
|
2086
|
+
"num_typos",
|
|
2087
|
+
"page",
|
|
2088
|
+
"per_page",
|
|
2089
|
+
"limit",
|
|
2090
|
+
"offset",
|
|
2091
|
+
"group_by",
|
|
2092
|
+
"group_limit",
|
|
2093
|
+
"group_missing_values",
|
|
2094
|
+
"include_fields",
|
|
2095
|
+
"exclude_fields",
|
|
2096
|
+
"highlight_full_fields",
|
|
2097
|
+
"highlight_affix_num_tokens",
|
|
2098
|
+
"highlight_start_tag",
|
|
2099
|
+
"highlight_end_tag",
|
|
2100
|
+
"enable_highlight_v1",
|
|
2101
|
+
"enable_analytics",
|
|
2102
|
+
"snippet_threshold",
|
|
2103
|
+
"synonym_sets",
|
|
2104
|
+
"drop_tokens_threshold",
|
|
2105
|
+
"drop_tokens_mode",
|
|
2106
|
+
"typo_tokens_threshold",
|
|
2107
|
+
"enable_typos_for_alpha_numerical_tokens",
|
|
2108
|
+
"filter_curated_hits",
|
|
2109
|
+
"enable_synonyms",
|
|
2110
|
+
"synonym_prefix",
|
|
2111
|
+
"synonym_num_typos",
|
|
2112
|
+
"pinned_hits",
|
|
2113
|
+
"hidden_hits",
|
|
2114
|
+
"curation_tags",
|
|
2115
|
+
"highlight_fields",
|
|
2116
|
+
"split_join_tokens",
|
|
2117
|
+
"pre_segmented_query",
|
|
2118
|
+
"preset",
|
|
2119
|
+
"enable_curations",
|
|
2120
|
+
"prioritize_exact_match",
|
|
2121
|
+
"max_candidates",
|
|
2122
|
+
"prioritize_token_position",
|
|
2123
|
+
"prioritize_num_matching_fields",
|
|
2124
|
+
"enable_typos_for_numerical_tokens",
|
|
2125
|
+
"exhaustive_search",
|
|
2126
|
+
"search_cutoff_ms",
|
|
2127
|
+
"use_cache",
|
|
2128
|
+
"cache_ttl",
|
|
2129
|
+
"min_len_1typo",
|
|
2130
|
+
"min_len_2typo",
|
|
2131
|
+
"vector_query",
|
|
2132
|
+
"remote_embedding_timeout_ms",
|
|
2133
|
+
"remote_embedding_num_tries",
|
|
2134
|
+
"facet_strategy",
|
|
2135
|
+
"stopwords",
|
|
2136
|
+
"facet_return_parent",
|
|
2137
|
+
"voice_query",
|
|
2138
|
+
"conversation",
|
|
2139
|
+
"conversation_model_id",
|
|
2140
|
+
"conversation_id",
|
|
2141
|
+
],
|
|
2142
|
+
["union", "searches"],
|
|
2143
|
+
]));
|
|
2144
|
+
export const UpsertPresetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2145
|
+
presetId: S.String.pipe(T.Label()),
|
|
2146
|
+
value: UpsertPresetRequestValue,
|
|
2147
|
+
}).pipe(T.Http({ method: "PUT", uri: "/presets/{presetId}", code: 200 }))).annotate({
|
|
2148
|
+
identifier: "UpsertPresetRequest",
|
|
2149
|
+
});
|
|
2150
|
+
export const UpsertPresetResponseValue = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([
|
|
2151
|
+
[
|
|
2152
|
+
"q",
|
|
2153
|
+
"query_by",
|
|
2154
|
+
"validate_field_names",
|
|
2155
|
+
"nl_query",
|
|
2156
|
+
"nl_model_id",
|
|
2157
|
+
"query_by_weights",
|
|
2158
|
+
"text_match_type",
|
|
2159
|
+
"prefix",
|
|
2160
|
+
"infix",
|
|
2161
|
+
"max_extra_prefix",
|
|
2162
|
+
"max_extra_suffix",
|
|
2163
|
+
"filter_by",
|
|
2164
|
+
"max_filter_by_candidates",
|
|
2165
|
+
"sort_by",
|
|
2166
|
+
"facet_by",
|
|
2167
|
+
"max_facet_values",
|
|
2168
|
+
"facet_query",
|
|
2169
|
+
"num_typos",
|
|
2170
|
+
"page",
|
|
2171
|
+
"per_page",
|
|
2172
|
+
"limit",
|
|
2173
|
+
"offset",
|
|
2174
|
+
"group_by",
|
|
2175
|
+
"group_limit",
|
|
2176
|
+
"group_missing_values",
|
|
2177
|
+
"include_fields",
|
|
2178
|
+
"exclude_fields",
|
|
2179
|
+
"highlight_full_fields",
|
|
2180
|
+
"highlight_affix_num_tokens",
|
|
2181
|
+
"highlight_start_tag",
|
|
2182
|
+
"highlight_end_tag",
|
|
2183
|
+
"enable_highlight_v1",
|
|
2184
|
+
"enable_analytics",
|
|
2185
|
+
"snippet_threshold",
|
|
2186
|
+
"synonym_sets",
|
|
2187
|
+
"drop_tokens_threshold",
|
|
2188
|
+
"drop_tokens_mode",
|
|
2189
|
+
"typo_tokens_threshold",
|
|
2190
|
+
"enable_typos_for_alpha_numerical_tokens",
|
|
2191
|
+
"filter_curated_hits",
|
|
2192
|
+
"enable_synonyms",
|
|
2193
|
+
"synonym_prefix",
|
|
2194
|
+
"synonym_num_typos",
|
|
2195
|
+
"pinned_hits",
|
|
2196
|
+
"hidden_hits",
|
|
2197
|
+
"curation_tags",
|
|
2198
|
+
"highlight_fields",
|
|
2199
|
+
"split_join_tokens",
|
|
2200
|
+
"pre_segmented_query",
|
|
2201
|
+
"preset",
|
|
2202
|
+
"enable_curations",
|
|
2203
|
+
"prioritize_exact_match",
|
|
2204
|
+
"max_candidates",
|
|
2205
|
+
"prioritize_token_position",
|
|
2206
|
+
"prioritize_num_matching_fields",
|
|
2207
|
+
"enable_typos_for_numerical_tokens",
|
|
2208
|
+
"exhaustive_search",
|
|
2209
|
+
"search_cutoff_ms",
|
|
2210
|
+
"use_cache",
|
|
2211
|
+
"cache_ttl",
|
|
2212
|
+
"min_len_1typo",
|
|
2213
|
+
"min_len_2typo",
|
|
2214
|
+
"vector_query",
|
|
2215
|
+
"remote_embedding_timeout_ms",
|
|
2216
|
+
"remote_embedding_num_tries",
|
|
2217
|
+
"facet_strategy",
|
|
2218
|
+
"stopwords",
|
|
2219
|
+
"facet_return_parent",
|
|
2220
|
+
"voice_query",
|
|
2221
|
+
"conversation",
|
|
2222
|
+
"conversation_model_id",
|
|
2223
|
+
"conversation_id",
|
|
2224
|
+
],
|
|
2225
|
+
["union", "searches"],
|
|
2226
|
+
]));
|
|
2227
|
+
export const UpsertPresetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2228
|
+
value: UpsertPresetResponseValue,
|
|
2229
|
+
name: S.String,
|
|
2230
|
+
})).annotate({
|
|
2231
|
+
identifier: "UpsertPresetResponse",
|
|
2232
|
+
});
|
|
2233
|
+
export const UpsertStopwordsSetRequestStopwordsList = /*@__PURE__*/ S.Array(S.String);
|
|
2234
|
+
export const UpsertStopwordsSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2235
|
+
setId: S.String.pipe(T.Label()),
|
|
2236
|
+
stopwords: UpsertStopwordsSetRequestStopwordsList,
|
|
2237
|
+
locale: S.optional(S.String),
|
|
2238
|
+
}).pipe(T.Http({ method: "PUT", uri: "/stopwords/{setId}", code: 200 }))).annotate({
|
|
2239
|
+
identifier: "UpsertStopwordsSetRequest",
|
|
2240
|
+
});
|
|
2241
|
+
export const UpsertSynonymSetRequestItemsList = /*@__PURE__*/ S.Array(SynonymItemSchema);
|
|
2242
|
+
export const UpsertSynonymSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2243
|
+
synonymSetName: S.String.pipe(T.Label()),
|
|
2244
|
+
items: UpsertSynonymSetRequestItemsList,
|
|
2245
|
+
}).pipe(T.Http({ method: "PUT", uri: "/synonym_sets/{synonymSetName}", code: 200 }))).annotate({
|
|
2246
|
+
identifier: "UpsertSynonymSetRequest",
|
|
2247
|
+
});
|
|
2248
|
+
export const UpsertSynonymSetResponseItemsList = /*@__PURE__*/ S.Array(SynonymItemSchema);
|
|
2249
|
+
export const UpsertSynonymSetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2250
|
+
items: UpsertSynonymSetResponseItemsList,
|
|
2251
|
+
name: S.String,
|
|
2252
|
+
})).annotate({
|
|
2253
|
+
identifier: "UpsertSynonymSetResponse",
|
|
2254
|
+
});
|
|
2255
|
+
export const UpsertSynonymSetItemRequestSynonymsList = /*@__PURE__*/ S.Array(S.String);
|
|
2256
|
+
export const UpsertSynonymSetItemRequestSymbolsToIndexList =
|
|
2257
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
2258
|
+
export const UpsertSynonymSetItemRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2259
|
+
synonymSetName: S.String.pipe(T.Label()),
|
|
2260
|
+
itemId: S.String.pipe(T.Label()),
|
|
2261
|
+
synonyms: UpsertSynonymSetItemRequestSynonymsList,
|
|
2262
|
+
root: S.optional(S.String),
|
|
2263
|
+
locale: S.optional(S.String),
|
|
2264
|
+
symbols_to_index: S.optional(UpsertSynonymSetItemRequestSymbolsToIndexList),
|
|
2265
|
+
}).pipe(T.Http({
|
|
2266
|
+
method: "PUT",
|
|
2267
|
+
uri: "/synonym_sets/{synonymSetName}/items/{itemId}",
|
|
2268
|
+
code: 200,
|
|
2269
|
+
}))).annotate({
|
|
2270
|
+
identifier: "UpsertSynonymSetItemRequest",
|
|
2271
|
+
});
|
|
2272
|
+
export const UpsertSynonymSetItemResponseSynonymsList = /*@__PURE__*/ S.Array(S.String);
|
|
2273
|
+
export const UpsertSynonymSetItemResponseSymbolsToIndexList =
|
|
2274
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
2275
|
+
export const UpsertSynonymSetItemResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2276
|
+
id: S.String,
|
|
2277
|
+
synonyms: UpsertSynonymSetItemResponseSynonymsList,
|
|
2278
|
+
root: S.optional(S.String),
|
|
2279
|
+
locale: S.optional(S.String),
|
|
2280
|
+
symbols_to_index: S.optional(UpsertSynonymSetItemResponseSymbolsToIndexList),
|
|
2281
|
+
})).annotate({
|
|
2282
|
+
identifier: "UpsertSynonymSetItemResponse",
|
|
2283
|
+
});
|
|
2284
|
+
export const VoteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/operations/vote", code: 200 }))).annotate({ identifier: "VoteRequest" });
|
|
2285
|
+
/** Clear the cached responses of search requests in the LRU cache. Clear the cached responses of search requests that are sent with `use_cache` parameter in the LRU cache. */
|
|
2286
|
+
export const clearCache = /*@__PURE__*/ API.make(() => ({
|
|
2287
|
+
input: ClearCacheRequest,
|
|
2288
|
+
output: SuccessStatus,
|
|
2289
|
+
errors: [],
|
|
2290
|
+
protocol: TypesenseProtocol,
|
|
2291
|
+
retry: Retry.Retry,
|
|
2292
|
+
}));
|
|
2293
|
+
/** Compacting the on-disk database Typesense uses RocksDB to store your documents on the disk. If you do frequent writes or updates, you could benefit from running a compaction of the underlying RocksDB database. This could reduce the size of the database and decrease read latency. While the database will not block during this operation, we recommend running it during off-peak hours. */
|
|
2294
|
+
export const compactDb = /*@__PURE__*/ API.make(() => ({
|
|
2295
|
+
input: CompactDbRequest,
|
|
2296
|
+
output: SuccessStatus,
|
|
2297
|
+
errors: [],
|
|
2298
|
+
protocol: TypesenseProtocol,
|
|
2299
|
+
retry: Retry.Retry,
|
|
2300
|
+
}));
|
|
2301
|
+
/** Create an analytics event Submit a single analytics event. The event must correspond to an existing analytics rule by name. */
|
|
2302
|
+
export const createAnalyticsEvent = /*@__PURE__*/ API.make(() => ({
|
|
2303
|
+
input: CreateAnalyticsEventRequest,
|
|
2304
|
+
output: AnalyticsEventCreateResponse,
|
|
2305
|
+
errors: [BadRequest],
|
|
2306
|
+
protocol: TypesenseProtocol,
|
|
2307
|
+
retry: Retry.Retry,
|
|
2308
|
+
}));
|
|
2309
|
+
/** Create analytics rule(s) Create one or more analytics rules. You can send a single rule object or an array of rule objects. */
|
|
2310
|
+
export const createAnalyticsRule = /*@__PURE__*/ API.make(() => ({
|
|
2311
|
+
input: CreateAnalyticsRuleRequest,
|
|
2312
|
+
output: CreateAnalyticsRuleResponse,
|
|
2313
|
+
errors: [BadRequest],
|
|
2314
|
+
protocol: TypesenseProtocol,
|
|
2315
|
+
retry: Retry.Retry,
|
|
2316
|
+
}));
|
|
2317
|
+
/** Create a new collection When a collection is created, we give it a name and describe the fields that will be indexed from the documents added to the collection. */
|
|
2318
|
+
export const createCollection = /*@__PURE__*/ API.make(() => ({
|
|
2319
|
+
input: CreateCollectionRequest,
|
|
2320
|
+
output: CreateCollectionResponse,
|
|
2321
|
+
errors: [BadRequest, Conflict],
|
|
2322
|
+
protocol: TypesenseProtocol,
|
|
2323
|
+
retry: Retry.Retry,
|
|
2324
|
+
}));
|
|
2325
|
+
/** Create a conversation model Create a Conversation Model */
|
|
2326
|
+
export const createConversationModel = /*@__PURE__*/ API.make(() => ({
|
|
2327
|
+
input: CreateConversationModelRequest,
|
|
2328
|
+
output: CreateConversationModelResponse,
|
|
2329
|
+
errors: [BadRequest],
|
|
2330
|
+
protocol: TypesenseProtocol,
|
|
2331
|
+
retry: Retry.Retry,
|
|
2332
|
+
}));
|
|
2333
|
+
/** Create an API Key Create an API Key with fine-grain access control. You can restrict access on both a per-collection and per-action level. The generated key is returned only during creation. You want to store this key carefully in a secure place. */
|
|
2334
|
+
export const createKey = /*@__PURE__*/ API.make(() => ({
|
|
2335
|
+
input: CreateKeyRequest,
|
|
2336
|
+
output: CreateKeyResponse,
|
|
2337
|
+
errors: [BadRequest, Conflict],
|
|
2338
|
+
protocol: TypesenseProtocol,
|
|
2339
|
+
retry: Retry.Retry,
|
|
2340
|
+
}));
|
|
2341
|
+
/** Create a NL search model Create a new NL search model. */
|
|
2342
|
+
export const createNLSearchModel = /*@__PURE__*/ API.make(() => ({
|
|
2343
|
+
input: CreateNLSearchModelRequest,
|
|
2344
|
+
output: CreateNLSearchModelResponse,
|
|
2345
|
+
errors: [BadRequest],
|
|
2346
|
+
protocol: TypesenseProtocol,
|
|
2347
|
+
retry: Retry.Retry,
|
|
2348
|
+
}));
|
|
2349
|
+
/** Print debugging information Print debugging information */
|
|
2350
|
+
export const debug = /*@__PURE__*/ API.make(() => ({
|
|
2351
|
+
input: DebugRequest,
|
|
2352
|
+
output: DebugResponse,
|
|
2353
|
+
errors: [],
|
|
2354
|
+
protocol: TypesenseProtocol,
|
|
2355
|
+
retry: Retry.Retry,
|
|
2356
|
+
}));
|
|
2357
|
+
/** Delete an alias */
|
|
2358
|
+
export const deleteAlias = /*@__PURE__*/ API.make(() => ({
|
|
2359
|
+
input: DeleteAliasRequest,
|
|
2360
|
+
output: CollectionAlias,
|
|
2361
|
+
errors: [NotFound],
|
|
2362
|
+
protocol: TypesenseProtocol,
|
|
2363
|
+
retry: Retry.Retry,
|
|
2364
|
+
}));
|
|
2365
|
+
/** Delete an analytics rule Permanently deletes an analytics rule, given it's name */
|
|
2366
|
+
export const deleteAnalyticsRule = /*@__PURE__*/ API.make(() => ({
|
|
2367
|
+
input: DeleteAnalyticsRuleRequest,
|
|
2368
|
+
output: DeleteAnalyticsRuleResponse,
|
|
2369
|
+
errors: [NotFound],
|
|
2370
|
+
protocol: TypesenseProtocol,
|
|
2371
|
+
retry: Retry.Retry,
|
|
2372
|
+
}));
|
|
2373
|
+
/** Delete a collection Permanently drops a collection. This action cannot be undone. For large collections, this might have an impact on read latencies. */
|
|
2374
|
+
export const deleteCollection = /*@__PURE__*/ API.make(() => ({
|
|
2375
|
+
input: DeleteCollectionRequest,
|
|
2376
|
+
output: DeleteCollectionResponse,
|
|
2377
|
+
errors: [NotFound],
|
|
2378
|
+
protocol: TypesenseProtocol,
|
|
2379
|
+
retry: Retry.Retry,
|
|
2380
|
+
}));
|
|
2381
|
+
/** Delete a conversation model Delete a conversation model */
|
|
2382
|
+
export const deleteConversationModel = /*@__PURE__*/ API.make(() => ({
|
|
2383
|
+
input: DeleteConversationModelRequest,
|
|
2384
|
+
output: DeleteConversationModelResponse,
|
|
2385
|
+
errors: [NotFound],
|
|
2386
|
+
protocol: TypesenseProtocol,
|
|
2387
|
+
retry: Retry.Retry,
|
|
2388
|
+
}));
|
|
2389
|
+
/** Delete a curation set Delete a specific curation set by its name */
|
|
2390
|
+
export const deleteCurationSet = /*@__PURE__*/ API.make(() => ({
|
|
2391
|
+
input: DeleteCurationSetRequest,
|
|
2392
|
+
output: CurationSetDeleteSchema,
|
|
2393
|
+
errors: [NotFound],
|
|
2394
|
+
protocol: TypesenseProtocol,
|
|
2395
|
+
retry: Retry.Retry,
|
|
2396
|
+
}));
|
|
2397
|
+
/** Delete a curation set item Delete a specific curation item by its id */
|
|
2398
|
+
export const deleteCurationSetItem = /*@__PURE__*/ API.make(() => ({
|
|
2399
|
+
input: DeleteCurationSetItemRequest,
|
|
2400
|
+
output: CurationItemDeleteSchema,
|
|
2401
|
+
errors: [NotFound],
|
|
2402
|
+
protocol: TypesenseProtocol,
|
|
2403
|
+
retry: Retry.Retry,
|
|
2404
|
+
}));
|
|
2405
|
+
/** Delete a document Delete an individual document from a collection by using its ID. */
|
|
2406
|
+
export const deleteDocument = /*@__PURE__*/ API.make(() => ({
|
|
2407
|
+
input: DeleteDocumentRequest,
|
|
2408
|
+
output: DeleteDocumentResponse,
|
|
2409
|
+
errors: [NotFound],
|
|
2410
|
+
protocol: TypesenseProtocol,
|
|
2411
|
+
retry: Retry.Retry,
|
|
2412
|
+
}));
|
|
2413
|
+
/** Delete a bunch of documents Delete a bunch of documents that match a specific filter condition. Use the `batch_size` parameter to control the number of documents that should deleted at a time. A larger value will speed up deletions, but will impact performance of other operations running on the server. */
|
|
2414
|
+
export const deleteDocuments = /*@__PURE__*/ API.make(() => ({
|
|
2415
|
+
input: DeleteDocumentsRequest,
|
|
2416
|
+
output: DeleteDocumentsResponse,
|
|
2417
|
+
errors: [NotFound],
|
|
2418
|
+
protocol: TypesenseProtocol,
|
|
2419
|
+
retry: Retry.Retry,
|
|
2420
|
+
}));
|
|
2421
|
+
/** Delete an API key given its ID. */
|
|
2422
|
+
export const deleteKey = /*@__PURE__*/ API.make(() => ({
|
|
2423
|
+
input: DeleteKeyRequest,
|
|
2424
|
+
output: ApiKeyDeleteResponse,
|
|
2425
|
+
errors: [BadRequest, NotFound],
|
|
2426
|
+
protocol: TypesenseProtocol,
|
|
2427
|
+
retry: Retry.Retry,
|
|
2428
|
+
}));
|
|
2429
|
+
/** Delete a NL search model Delete a specific NL search model by its ID. */
|
|
2430
|
+
export const deleteNLSearchModel = /*@__PURE__*/ API.make(() => ({
|
|
2431
|
+
input: DeleteNLSearchModelRequest,
|
|
2432
|
+
output: NLSearchModelDeleteSchema,
|
|
2433
|
+
errors: [NotFound],
|
|
2434
|
+
protocol: TypesenseProtocol,
|
|
2435
|
+
retry: Retry.Retry,
|
|
2436
|
+
}));
|
|
2437
|
+
/** Delete a preset. Permanently deletes a preset, given it's name. */
|
|
2438
|
+
export const deletePreset = /*@__PURE__*/ API.make(() => ({
|
|
2439
|
+
input: DeletePresetRequest,
|
|
2440
|
+
output: PresetDeleteSchema,
|
|
2441
|
+
errors: [NotFound],
|
|
2442
|
+
protocol: TypesenseProtocol,
|
|
2443
|
+
retry: Retry.Retry,
|
|
2444
|
+
}));
|
|
2445
|
+
/** Delete a stopwords set. Permanently deletes a stopwords set, given it's name. */
|
|
2446
|
+
export const deleteStopwordsSet = /*@__PURE__*/ API.make(() => ({
|
|
2447
|
+
input: DeleteStopwordsSetRequest,
|
|
2448
|
+
output: DeleteStopwordsSetResponse,
|
|
2449
|
+
errors: [NotFound],
|
|
2450
|
+
protocol: TypesenseProtocol,
|
|
2451
|
+
retry: Retry.Retry,
|
|
2452
|
+
}));
|
|
2453
|
+
/** Delete a synonym set Delete a specific synonym set by its name */
|
|
2454
|
+
export const deleteSynonymSet = /*@__PURE__*/ API.make(() => ({
|
|
2455
|
+
input: DeleteSynonymSetRequest,
|
|
2456
|
+
output: SynonymSetDeleteSchema,
|
|
2457
|
+
errors: [NotFound],
|
|
2458
|
+
protocol: TypesenseProtocol,
|
|
2459
|
+
retry: Retry.Retry,
|
|
2460
|
+
}));
|
|
2461
|
+
/** Delete a synonym set item Delete a specific synonym item by its id */
|
|
2462
|
+
export const deleteSynonymSetItem = /*@__PURE__*/ API.make(() => ({
|
|
2463
|
+
input: DeleteSynonymSetItemRequest,
|
|
2464
|
+
output: SynonymItemDeleteSchema,
|
|
2465
|
+
errors: [NotFound],
|
|
2466
|
+
protocol: TypesenseProtocol,
|
|
2467
|
+
retry: Retry.Retry,
|
|
2468
|
+
}));
|
|
2469
|
+
/** Export all documents in a collection Export all documents in a collection in JSON lines format. */
|
|
2470
|
+
export const exportDocuments = /*@__PURE__*/ API.make(() => ({
|
|
2471
|
+
input: ExportDocumentsRequest,
|
|
2472
|
+
output: ExportDocumentsResponse,
|
|
2473
|
+
errors: [NotFound],
|
|
2474
|
+
protocol: TypesenseProtocol,
|
|
2475
|
+
retry: Retry.Retry,
|
|
2476
|
+
}));
|
|
2477
|
+
/** Flush in-memory analytics to disk Triggers a flush of analytics data to persistent storage. */
|
|
2478
|
+
export const flushAnalytics = /*@__PURE__*/ API.make(() => ({
|
|
2479
|
+
input: FlushAnalyticsRequest,
|
|
2480
|
+
output: AnalyticsEventCreateResponse,
|
|
2481
|
+
errors: [],
|
|
2482
|
+
protocol: TypesenseProtocol,
|
|
2483
|
+
retry: Retry.Retry,
|
|
2484
|
+
}));
|
|
2485
|
+
/** Retrieve an alias Find out which collection an alias points to by fetching it */
|
|
2486
|
+
export const getAlias = /*@__PURE__*/ API.make(() => ({
|
|
2487
|
+
input: GetAliasRequest,
|
|
2488
|
+
output: CollectionAlias,
|
|
2489
|
+
errors: [NotFound],
|
|
2490
|
+
protocol: TypesenseProtocol,
|
|
2491
|
+
retry: Retry.Retry,
|
|
2492
|
+
}));
|
|
2493
|
+
/** List all aliases List all aliases and the corresponding collections that they map to. */
|
|
2494
|
+
export const getAliases = /*@__PURE__*/ API.make(() => ({
|
|
2495
|
+
input: GetAliasesRequest,
|
|
2496
|
+
output: CollectionAliasesResponse,
|
|
2497
|
+
errors: [],
|
|
2498
|
+
protocol: TypesenseProtocol,
|
|
2499
|
+
retry: Retry.Retry,
|
|
2500
|
+
}));
|
|
2501
|
+
/** Retrieve analytics events Retrieve the most recent events for a user and rule. */
|
|
2502
|
+
export const getAnalyticsEvents = /*@__PURE__*/ API.make(() => ({
|
|
2503
|
+
input: GetAnalyticsEventsRequest,
|
|
2504
|
+
output: AnalyticsEventsResponse,
|
|
2505
|
+
errors: [BadRequest],
|
|
2506
|
+
protocol: TypesenseProtocol,
|
|
2507
|
+
retry: Retry.Retry,
|
|
2508
|
+
}));
|
|
2509
|
+
/** Get analytics subsystem status Returns sizes of internal analytics buffers and queues. */
|
|
2510
|
+
export const getAnalyticsStatus = /*@__PURE__*/ API.make(() => ({
|
|
2511
|
+
input: GetAnalyticsStatusRequest,
|
|
2512
|
+
output: AnalyticsStatus,
|
|
2513
|
+
errors: [],
|
|
2514
|
+
protocol: TypesenseProtocol,
|
|
2515
|
+
retry: Retry.Retry,
|
|
2516
|
+
}));
|
|
2517
|
+
/** Retrieve a single collection Retrieve the details of a collection, given its name. */
|
|
2518
|
+
export const getCollection = /*@__PURE__*/ API.make(() => ({
|
|
2519
|
+
input: GetCollectionRequest,
|
|
2520
|
+
output: GetCollectionResponse,
|
|
2521
|
+
errors: [NotFound],
|
|
2522
|
+
protocol: TypesenseProtocol,
|
|
2523
|
+
retry: Retry.Retry,
|
|
2524
|
+
}));
|
|
2525
|
+
/** List all collections Returns a summary of all your collections. The collections are returned sorted by creation date, with the most recent collections appearing first. */
|
|
2526
|
+
export const getCollections = /*@__PURE__*/ API.make(() => ({
|
|
2527
|
+
input: GetCollectionsRequest,
|
|
2528
|
+
output: GetCollectionsResponse,
|
|
2529
|
+
errors: [],
|
|
2530
|
+
protocol: TypesenseProtocol,
|
|
2531
|
+
retry: Retry.Retry,
|
|
2532
|
+
}));
|
|
2533
|
+
/** Retrieve a document Fetch an individual document from a collection by using its ID. */
|
|
2534
|
+
export const getDocument = /*@__PURE__*/ API.make(() => ({
|
|
2535
|
+
input: GetDocumentRequest,
|
|
2536
|
+
output: GetDocumentResponse,
|
|
2537
|
+
errors: [NotFound],
|
|
2538
|
+
protocol: TypesenseProtocol,
|
|
2539
|
+
retry: Retry.Retry,
|
|
2540
|
+
}));
|
|
2541
|
+
/** Retrieve (metadata about) a key Retrieve (metadata about) a key. Only the key prefix is returned when you retrieve a key. Due to security reasons, only the create endpoint returns the full API key. */
|
|
2542
|
+
export const getKey = /*@__PURE__*/ API.make(() => ({
|
|
2543
|
+
input: GetKeyRequest,
|
|
2544
|
+
output: GetKeyResponse,
|
|
2545
|
+
errors: [NotFound],
|
|
2546
|
+
protocol: TypesenseProtocol,
|
|
2547
|
+
retry: Retry.Retry,
|
|
2548
|
+
}));
|
|
2549
|
+
/** Retrieve (metadata about) all keys. */
|
|
2550
|
+
export const getKeys = /*@__PURE__*/ API.make(() => ({
|
|
2551
|
+
input: GetKeysRequest,
|
|
2552
|
+
output: ApiKeysResponse,
|
|
2553
|
+
errors: [],
|
|
2554
|
+
protocol: TypesenseProtocol,
|
|
2555
|
+
retry: Retry.Retry,
|
|
2556
|
+
}));
|
|
2557
|
+
/** Get the status of in-progress schema change operations Returns the status of any ongoing schema change operations. If no schema changes are in progress, returns an empty response. */
|
|
2558
|
+
export const getSchemaChanges = /*@__PURE__*/ API.make(() => ({
|
|
2559
|
+
input: GetSchemaChangesRequest,
|
|
2560
|
+
output: GetSchemaChangesResponse,
|
|
2561
|
+
errors: [],
|
|
2562
|
+
protocol: TypesenseProtocol,
|
|
2563
|
+
retry: Retry.Retry,
|
|
2564
|
+
}));
|
|
2565
|
+
/** Retrieve a stemming dictionary Fetch details of a specific stemming dictionary. */
|
|
2566
|
+
export const getStemmingDictionary = /*@__PURE__*/ API.make(() => ({
|
|
2567
|
+
input: GetStemmingDictionaryRequest,
|
|
2568
|
+
output: StemmingDictionary,
|
|
2569
|
+
errors: [NotFound],
|
|
2570
|
+
protocol: TypesenseProtocol,
|
|
2571
|
+
retry: Retry.Retry,
|
|
2572
|
+
}));
|
|
2573
|
+
/** Checks if Typesense server is ready to accept requests. Checks if Typesense server is ready to accept requests. */
|
|
2574
|
+
export const health = /*@__PURE__*/ API.make(() => ({
|
|
2575
|
+
input: HealthRequest,
|
|
2576
|
+
output: HealthStatus,
|
|
2577
|
+
errors: [],
|
|
2578
|
+
protocol: TypesenseProtocol,
|
|
2579
|
+
retry: Retry.Retry,
|
|
2580
|
+
}));
|
|
2581
|
+
/** Import documents into a collection The documents to be imported must be formatted in a newline delimited JSON structure. You can feed the output file from a Typesense export operation directly as import. */
|
|
2582
|
+
export const importDocuments = /*@__PURE__*/ API.make(() => ({
|
|
2583
|
+
input: ImportDocumentsRequest,
|
|
2584
|
+
output: ImportDocumentsResponse,
|
|
2585
|
+
errors: [BadRequest, NotFound],
|
|
2586
|
+
protocol: TypesenseProtocol,
|
|
2587
|
+
retry: Retry.Retry,
|
|
2588
|
+
}));
|
|
2589
|
+
/** Import a stemming dictionary Upload a JSONL file containing word mappings to create or update a stemming dictionary. */
|
|
2590
|
+
export const importStemmingDictionary = /*@__PURE__*/ API.make(() => ({
|
|
2591
|
+
input: ImportStemmingDictionaryRequest,
|
|
2592
|
+
output: ImportStemmingDictionaryResponse,
|
|
2593
|
+
errors: [BadRequest],
|
|
2594
|
+
protocol: TypesenseProtocol,
|
|
2595
|
+
retry: Retry.Retry,
|
|
2596
|
+
}));
|
|
2597
|
+
/** Index a document A document to be indexed in a given collection must conform to the schema of the collection. */
|
|
2598
|
+
export const indexDocument = /*@__PURE__*/ API.make(() => ({
|
|
2599
|
+
input: IndexDocumentRequest,
|
|
2600
|
+
output: IndexDocumentResponse,
|
|
2601
|
+
errors: [NotFound],
|
|
2602
|
+
protocol: TypesenseProtocol,
|
|
2603
|
+
retry: Retry.Retry,
|
|
2604
|
+
}));
|
|
2605
|
+
/** List all stemming dictionaries Retrieve a list of all available stemming dictionaries. */
|
|
2606
|
+
export const listStemmingDictionaries = /*@__PURE__*/ API.make(() => ({
|
|
2607
|
+
input: ListStemmingDictionariesRequest,
|
|
2608
|
+
output: ListStemmingDictionariesResponse,
|
|
2609
|
+
errors: [],
|
|
2610
|
+
protocol: TypesenseProtocol,
|
|
2611
|
+
retry: Retry.Retry,
|
|
2612
|
+
}));
|
|
2613
|
+
/** send multiple search requests in a single HTTP request This is especially useful to avoid round-trip network latencies incurred otherwise if each of these requests are sent in separate HTTP requests. You can also use this feature to do a federated search across multiple collections in a single HTTP request. */
|
|
2614
|
+
export const multiSearch = /*@__PURE__*/ API.make(() => ({
|
|
2615
|
+
input: MultiSearchRequest,
|
|
2616
|
+
output: MultiSearchResult,
|
|
2617
|
+
errors: [BadRequest],
|
|
2618
|
+
protocol: TypesenseProtocol,
|
|
2619
|
+
retry: Retry.Retry,
|
|
2620
|
+
}));
|
|
2621
|
+
/** List all conversation models Retrieve all conversation models */
|
|
2622
|
+
export const retrieveAllConversationModels = /*@__PURE__*/ API.make(() => ({
|
|
2623
|
+
input: RetrieveAllConversationModelsRequest,
|
|
2624
|
+
output: RetrieveAllConversationModelsResponse,
|
|
2625
|
+
errors: [],
|
|
2626
|
+
protocol: TypesenseProtocol,
|
|
2627
|
+
retry: Retry.Retry,
|
|
2628
|
+
}));
|
|
2629
|
+
/** List all NL search models Retrieve all NL search models. */
|
|
2630
|
+
export const retrieveAllNLSearchModels = /*@__PURE__*/ API.make(() => ({
|
|
2631
|
+
input: RetrieveAllNLSearchModelsRequest,
|
|
2632
|
+
output: RetrieveAllNLSearchModelsResponse,
|
|
2633
|
+
errors: [],
|
|
2634
|
+
protocol: TypesenseProtocol,
|
|
2635
|
+
retry: Retry.Retry,
|
|
2636
|
+
}));
|
|
2637
|
+
/** Retrieves all presets. Retrieve the details of all presets */
|
|
2638
|
+
export const retrieveAllPresets = /*@__PURE__*/ API.make(() => ({
|
|
2639
|
+
input: RetrieveAllPresetsRequest,
|
|
2640
|
+
output: PresetsRetrieveSchema,
|
|
2641
|
+
errors: [],
|
|
2642
|
+
protocol: TypesenseProtocol,
|
|
2643
|
+
retry: Retry.Retry,
|
|
2644
|
+
}));
|
|
2645
|
+
/** Retrieves an analytics rule Retrieve the details of an analytics rule, given it's name */
|
|
2646
|
+
export const retrieveAnalyticsRule = /*@__PURE__*/ API.make(() => ({
|
|
2647
|
+
input: RetrieveAnalyticsRuleRequest,
|
|
2648
|
+
output: RetrieveAnalyticsRuleResponse,
|
|
2649
|
+
errors: [NotFound],
|
|
2650
|
+
protocol: TypesenseProtocol,
|
|
2651
|
+
retry: Retry.Retry,
|
|
2652
|
+
}));
|
|
2653
|
+
/** Retrieve analytics rules Retrieve all analytics rules. Use the optional rule_tag filter to narrow down results. */
|
|
2654
|
+
export const retrieveAnalyticsRules = /*@__PURE__*/ API.make(() => ({
|
|
2655
|
+
input: RetrieveAnalyticsRulesRequest,
|
|
2656
|
+
output: RetrieveAnalyticsRulesResponse,
|
|
2657
|
+
errors: [],
|
|
2658
|
+
protocol: TypesenseProtocol,
|
|
2659
|
+
retry: Retry.Retry,
|
|
2660
|
+
}));
|
|
2661
|
+
/** Get stats about API endpoints. Retrieve the stats about API endpoints. */
|
|
2662
|
+
export const retrieveAPIStats = /*@__PURE__*/ API.make(() => ({
|
|
2663
|
+
input: RetrieveAPIStatsRequest,
|
|
2664
|
+
output: APIStatsResponse,
|
|
2665
|
+
errors: [],
|
|
2666
|
+
protocol: TypesenseProtocol,
|
|
2667
|
+
retry: Retry.Retry,
|
|
2668
|
+
}));
|
|
2669
|
+
/** Retrieve a conversation model Retrieve a conversation model */
|
|
2670
|
+
export const retrieveConversationModel = /*@__PURE__*/ API.make(() => ({
|
|
2671
|
+
input: RetrieveConversationModelRequest,
|
|
2672
|
+
output: RetrieveConversationModelResponse,
|
|
2673
|
+
errors: [NotFound],
|
|
2674
|
+
protocol: TypesenseProtocol,
|
|
2675
|
+
retry: Retry.Retry,
|
|
2676
|
+
}));
|
|
2677
|
+
/** Retrieve a curation set Retrieve a specific curation set by its name */
|
|
2678
|
+
export const retrieveCurationSet = /*@__PURE__*/ API.make(() => ({
|
|
2679
|
+
input: RetrieveCurationSetRequest,
|
|
2680
|
+
output: RetrieveCurationSetResponse,
|
|
2681
|
+
errors: [NotFound],
|
|
2682
|
+
protocol: TypesenseProtocol,
|
|
2683
|
+
retry: Retry.Retry,
|
|
2684
|
+
}));
|
|
2685
|
+
/** Retrieve a curation set item Retrieve a specific curation item by its id */
|
|
2686
|
+
export const retrieveCurationSetItem = /*@__PURE__*/ API.make(() => ({
|
|
2687
|
+
input: RetrieveCurationSetItemRequest,
|
|
2688
|
+
output: RetrieveCurationSetItemResponse,
|
|
2689
|
+
errors: [NotFound],
|
|
2690
|
+
protocol: TypesenseProtocol,
|
|
2691
|
+
retry: Retry.Retry,
|
|
2692
|
+
}));
|
|
2693
|
+
/** List items in a curation set Retrieve all curation items in a set */
|
|
2694
|
+
export const retrieveCurationSetItems = /*@__PURE__*/ API.make(() => ({
|
|
2695
|
+
input: RetrieveCurationSetItemsRequest,
|
|
2696
|
+
output: RetrieveCurationSetItemsResponse,
|
|
2697
|
+
errors: [NotFound],
|
|
2698
|
+
protocol: TypesenseProtocol,
|
|
2699
|
+
retry: Retry.Retry,
|
|
2700
|
+
}));
|
|
2701
|
+
/** List all curation sets Retrieve all curation sets */
|
|
2702
|
+
export const retrieveCurationSets = /*@__PURE__*/ API.make(() => ({
|
|
2703
|
+
input: RetrieveCurationSetsRequest,
|
|
2704
|
+
output: RetrieveCurationSetsResponse,
|
|
2705
|
+
errors: [],
|
|
2706
|
+
protocol: TypesenseProtocol,
|
|
2707
|
+
retry: Retry.Retry,
|
|
2708
|
+
}));
|
|
2709
|
+
/** Get current RAM, CPU, Disk & Network usage metrics. Retrieve the metrics. */
|
|
2710
|
+
export const retrieveMetrics = /*@__PURE__*/ API.make(() => ({
|
|
2711
|
+
input: RetrieveMetricsRequest,
|
|
2712
|
+
output: RetrieveMetricsResponse,
|
|
2713
|
+
errors: [],
|
|
2714
|
+
protocol: TypesenseProtocol,
|
|
2715
|
+
retry: Retry.Retry,
|
|
2716
|
+
}));
|
|
2717
|
+
/** Retrieve a NL search model Retrieve a specific NL search model by its ID. */
|
|
2718
|
+
export const retrieveNLSearchModel = /*@__PURE__*/ API.make(() => ({
|
|
2719
|
+
input: RetrieveNLSearchModelRequest,
|
|
2720
|
+
output: RetrieveNLSearchModelResponse,
|
|
2721
|
+
errors: [NotFound],
|
|
2722
|
+
protocol: TypesenseProtocol,
|
|
2723
|
+
retry: Retry.Retry,
|
|
2724
|
+
}));
|
|
2725
|
+
/** Retrieves a preset. Retrieve the details of a preset, given it's name. */
|
|
2726
|
+
export const retrievePreset = /*@__PURE__*/ API.make(() => ({
|
|
2727
|
+
input: RetrievePresetRequest,
|
|
2728
|
+
output: RetrievePresetResponse,
|
|
2729
|
+
errors: [NotFound],
|
|
2730
|
+
protocol: TypesenseProtocol,
|
|
2731
|
+
retry: Retry.Retry,
|
|
2732
|
+
}));
|
|
2733
|
+
/** Retrieves a stopwords set. Retrieve the details of a stopwords set, given it's name. */
|
|
2734
|
+
export const retrieveStopwordsSet = /*@__PURE__*/ API.make(() => ({
|
|
2735
|
+
input: RetrieveStopwordsSetRequest,
|
|
2736
|
+
output: StopwordsSetRetrieveSchema,
|
|
2737
|
+
errors: [NotFound],
|
|
2738
|
+
protocol: TypesenseProtocol,
|
|
2739
|
+
retry: Retry.Retry,
|
|
2740
|
+
}));
|
|
2741
|
+
/** Retrieves all stopwords sets. Retrieve the details of all stopwords sets */
|
|
2742
|
+
export const retrieveStopwordsSets = /*@__PURE__*/ API.make(() => ({
|
|
2743
|
+
input: RetrieveStopwordsSetsRequest,
|
|
2744
|
+
output: StopwordsSetsRetrieveAllSchema,
|
|
2745
|
+
errors: [],
|
|
2746
|
+
protocol: TypesenseProtocol,
|
|
2747
|
+
retry: Retry.Retry,
|
|
2748
|
+
}));
|
|
2749
|
+
/** Retrieve a synonym set Retrieve a specific synonym set by its name */
|
|
2750
|
+
export const retrieveSynonymSet = /*@__PURE__*/ API.make(() => ({
|
|
2751
|
+
input: RetrieveSynonymSetRequest,
|
|
2752
|
+
output: RetrieveSynonymSetResponse,
|
|
2753
|
+
errors: [NotFound],
|
|
2754
|
+
protocol: TypesenseProtocol,
|
|
2755
|
+
retry: Retry.Retry,
|
|
2756
|
+
}));
|
|
2757
|
+
/** Retrieve a synonym set item Retrieve a specific synonym item by its id */
|
|
2758
|
+
export const retrieveSynonymSetItem = /*@__PURE__*/ API.make(() => ({
|
|
2759
|
+
input: RetrieveSynonymSetItemRequest,
|
|
2760
|
+
output: RetrieveSynonymSetItemResponse,
|
|
2761
|
+
errors: [NotFound],
|
|
2762
|
+
protocol: TypesenseProtocol,
|
|
2763
|
+
retry: Retry.Retry,
|
|
2764
|
+
}));
|
|
2765
|
+
/** List items in a synonym set Retrieve all synonym items in a set */
|
|
2766
|
+
export const retrieveSynonymSetItems = /*@__PURE__*/ API.make(() => ({
|
|
2767
|
+
input: RetrieveSynonymSetItemsRequest,
|
|
2768
|
+
output: RetrieveSynonymSetItemsResponse,
|
|
2769
|
+
errors: [NotFound],
|
|
2770
|
+
protocol: TypesenseProtocol,
|
|
2771
|
+
retry: Retry.Retry,
|
|
2772
|
+
}));
|
|
2773
|
+
/** List all synonym sets Retrieve all synonym sets */
|
|
2774
|
+
export const retrieveSynonymSets = /*@__PURE__*/ API.make(() => ({
|
|
2775
|
+
input: RetrieveSynonymSetsRequest,
|
|
2776
|
+
output: RetrieveSynonymSetsResponse,
|
|
2777
|
+
errors: [],
|
|
2778
|
+
protocol: TypesenseProtocol,
|
|
2779
|
+
retry: Retry.Retry,
|
|
2780
|
+
}));
|
|
2781
|
+
/** Search for documents in a collection Search for documents in a collection that match the search criteria. */
|
|
2782
|
+
export const searchCollection = /*@__PURE__*/ API.make(() => ({
|
|
2783
|
+
input: SearchCollectionRequest,
|
|
2784
|
+
output: SearchResult,
|
|
2785
|
+
errors: [BadRequest, NotFound],
|
|
2786
|
+
protocol: TypesenseProtocol,
|
|
2787
|
+
retry: Retry.Retry,
|
|
2788
|
+
}));
|
|
2789
|
+
/** Creates a point-in-time snapshot of a Typesense node's state and data in the specified directory. Creates a point-in-time snapshot of a Typesense node's state and data in the specified directory. You can then backup the snapshot directory that gets created and later restore it as a data directory, as needed. */
|
|
2790
|
+
export const takeSnapshot = /*@__PURE__*/ API.make(() => ({
|
|
2791
|
+
input: TakeSnapshotRequest,
|
|
2792
|
+
output: SuccessStatus,
|
|
2793
|
+
errors: [],
|
|
2794
|
+
protocol: TypesenseProtocol,
|
|
2795
|
+
retry: Retry.Retry,
|
|
2796
|
+
}));
|
|
2797
|
+
/** Toggle Slow Request Log Enable logging of requests that take over a defined threshold of time. Default is `-1` which disables slow request logging. Slow requests are logged to the primary log file, with the prefix SLOW REQUEST. */
|
|
2798
|
+
export const toggleSlowRequestLog = /*@__PURE__*/ API.make(() => ({
|
|
2799
|
+
input: ToggleSlowRequestLogRequest,
|
|
2800
|
+
output: SuccessStatus,
|
|
2801
|
+
errors: [],
|
|
2802
|
+
protocol: TypesenseProtocol,
|
|
2803
|
+
retry: Retry.Retry,
|
|
2804
|
+
}));
|
|
2805
|
+
/** Update a collection Update a collection's schema to modify the fields and their types. */
|
|
2806
|
+
export const updateCollection = /*@__PURE__*/ API.make(() => ({
|
|
2807
|
+
input: UpdateCollectionRequest,
|
|
2808
|
+
output: CollectionUpdateSchema,
|
|
2809
|
+
errors: [BadRequest, NotFound],
|
|
2810
|
+
protocol: TypesenseProtocol,
|
|
2811
|
+
retry: Retry.Retry,
|
|
2812
|
+
}));
|
|
2813
|
+
/** Update a conversation model Update a conversation model */
|
|
2814
|
+
export const updateConversationModel = /*@__PURE__*/ API.make(() => ({
|
|
2815
|
+
input: UpdateConversationModelRequest,
|
|
2816
|
+
output: UpdateConversationModelResponse,
|
|
2817
|
+
errors: [BadRequest, NotFound],
|
|
2818
|
+
protocol: TypesenseProtocol,
|
|
2819
|
+
retry: Retry.Retry,
|
|
2820
|
+
}));
|
|
2821
|
+
/** Update a document Update an individual document from a collection by using its ID. The update can be partial. */
|
|
2822
|
+
export const updateDocument = /*@__PURE__*/ API.make(() => ({
|
|
2823
|
+
input: UpdateDocumentRequest,
|
|
2824
|
+
output: UpdateDocumentResponse,
|
|
2825
|
+
errors: [NotFound],
|
|
2826
|
+
protocol: TypesenseProtocol,
|
|
2827
|
+
retry: Retry.Retry,
|
|
2828
|
+
}));
|
|
2829
|
+
/** Update documents with conditional query The filter_by query parameter is used to filter to specify a condition against which the documents are matched. The request body contains the fields that should be updated for any documents that match the filter condition. This endpoint is only available if the Typesense server is version `0.25.0.rc12` or later. */
|
|
2830
|
+
export const updateDocuments = /*@__PURE__*/ API.make(() => ({
|
|
2831
|
+
input: UpdateDocumentsRequest,
|
|
2832
|
+
output: UpdateDocumentsResponse,
|
|
2833
|
+
errors: [BadRequest, NotFound],
|
|
2834
|
+
protocol: TypesenseProtocol,
|
|
2835
|
+
retry: Retry.Retry,
|
|
2836
|
+
}));
|
|
2837
|
+
/** Update a NL search model Update an existing NL search model. */
|
|
2838
|
+
export const updateNLSearchModel = /*@__PURE__*/ API.make(() => ({
|
|
2839
|
+
input: UpdateNLSearchModelRequest,
|
|
2840
|
+
output: UpdateNLSearchModelResponse,
|
|
2841
|
+
errors: [BadRequest, NotFound],
|
|
2842
|
+
protocol: TypesenseProtocol,
|
|
2843
|
+
retry: Retry.Retry,
|
|
2844
|
+
}));
|
|
2845
|
+
/** Create or update a collection alias Create or update a collection alias. An alias is a virtual collection name that points to a real collection. If you're familiar with symbolic links on Linux, it's very similar to that. Aliases are useful when you want to reindex your data in the background on a new collection and switch your application to it without any changes to your code. */
|
|
2846
|
+
export const upsertAlias = /*@__PURE__*/ API.make(() => ({
|
|
2847
|
+
input: UpsertAliasRequest,
|
|
2848
|
+
output: CollectionAlias,
|
|
2849
|
+
errors: [BadRequest, NotFound],
|
|
2850
|
+
protocol: TypesenseProtocol,
|
|
2851
|
+
retry: Retry.Retry,
|
|
2852
|
+
}));
|
|
2853
|
+
/** Upserts an analytics rule Upserts an analytics rule with the given name. */
|
|
2854
|
+
export const upsertAnalyticsRule = /*@__PURE__*/ API.make(() => ({
|
|
2855
|
+
input: UpsertAnalyticsRuleRequest,
|
|
2856
|
+
output: UpsertAnalyticsRuleResponse,
|
|
2857
|
+
errors: [BadRequest],
|
|
2858
|
+
protocol: TypesenseProtocol,
|
|
2859
|
+
retry: Retry.Retry,
|
|
2860
|
+
}));
|
|
2861
|
+
/** Create or update a curation set Create or update a curation set with the given name */
|
|
2862
|
+
export const upsertCurationSet = /*@__PURE__*/ API.make(() => ({
|
|
2863
|
+
input: UpsertCurationSetRequest,
|
|
2864
|
+
output: UpsertCurationSetResponse,
|
|
2865
|
+
errors: [BadRequest],
|
|
2866
|
+
protocol: TypesenseProtocol,
|
|
2867
|
+
retry: Retry.Retry,
|
|
2868
|
+
}));
|
|
2869
|
+
/** Create or update a curation set item Create or update a curation set item with the given id */
|
|
2870
|
+
export const upsertCurationSetItem = /*@__PURE__*/ API.make(() => ({
|
|
2871
|
+
input: UpsertCurationSetItemRequest,
|
|
2872
|
+
output: UpsertCurationSetItemResponse,
|
|
2873
|
+
errors: [BadRequest],
|
|
2874
|
+
protocol: TypesenseProtocol,
|
|
2875
|
+
retry: Retry.Retry,
|
|
2876
|
+
}));
|
|
2877
|
+
/** Upserts a preset. Create or update an existing preset. */
|
|
2878
|
+
export const upsertPreset = /*@__PURE__*/ API.make(() => ({
|
|
2879
|
+
input: UpsertPresetRequest,
|
|
2880
|
+
output: UpsertPresetResponse,
|
|
2881
|
+
errors: [BadRequest],
|
|
2882
|
+
protocol: TypesenseProtocol,
|
|
2883
|
+
retry: Retry.Retry,
|
|
2884
|
+
}));
|
|
2885
|
+
/** Upserts a stopwords set. When an analytics rule is created, we give it a name and describe the type, the source collections and the destination collection. */
|
|
2886
|
+
export const upsertStopwordsSet = /*@__PURE__*/ API.make(() => ({
|
|
2887
|
+
input: UpsertStopwordsSetRequest,
|
|
2888
|
+
output: StopwordsSetSchema,
|
|
2889
|
+
errors: [BadRequest],
|
|
2890
|
+
protocol: TypesenseProtocol,
|
|
2891
|
+
retry: Retry.Retry,
|
|
2892
|
+
}));
|
|
2893
|
+
/** Create or update a synonym set Create or update a synonym set with the given name */
|
|
2894
|
+
export const upsertSynonymSet = /*@__PURE__*/ API.make(() => ({
|
|
2895
|
+
input: UpsertSynonymSetRequest,
|
|
2896
|
+
output: UpsertSynonymSetResponse,
|
|
2897
|
+
errors: [BadRequest],
|
|
2898
|
+
protocol: TypesenseProtocol,
|
|
2899
|
+
retry: Retry.Retry,
|
|
2900
|
+
}));
|
|
2901
|
+
/** Create or update a synonym set item Create or update a synonym set item with the given id */
|
|
2902
|
+
export const upsertSynonymSetItem = /*@__PURE__*/ API.make(() => ({
|
|
2903
|
+
input: UpsertSynonymSetItemRequest,
|
|
2904
|
+
output: UpsertSynonymSetItemResponse,
|
|
2905
|
+
errors: [BadRequest],
|
|
2906
|
+
protocol: TypesenseProtocol,
|
|
2907
|
+
retry: Retry.Retry,
|
|
2908
|
+
}));
|
|
2909
|
+
/** Triggers a follower node to initiate the raft voting process, which triggers leader re-election. Triggers a follower node to initiate the raft voting process, which triggers leader re-election. The follower node that you run this operation against will become the new leader, once this command succeeds. */
|
|
2910
|
+
export const vote = /*@__PURE__*/ API.make(() => ({
|
|
2911
|
+
input: VoteRequest,
|
|
2912
|
+
output: SuccessStatus,
|
|
2913
|
+
errors: [],
|
|
2914
|
+
protocol: TypesenseProtocol,
|
|
2915
|
+
retry: Retry.Retry,
|
|
2916
|
+
}));
|
|
2917
|
+
//# sourceMappingURL=typesense.js.map
|