@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
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
import { NotFound } from "../errors.ts";
|
|
5
|
-
|
|
6
|
-
// Input Schema
|
|
7
|
-
export interface DeleteNLSearchModelInput {
|
|
8
|
-
modelId: string;
|
|
9
|
-
}
|
|
10
|
-
export const DeleteNLSearchModelInput =
|
|
11
|
-
/*@__PURE__*/ Schema.Struct({
|
|
12
|
-
modelId: Schema.String.pipe(T.PathParam()),
|
|
13
|
-
}).pipe(
|
|
14
|
-
T.Http({ method: "DELETE", path: "/nl_search_models/{modelId}" }),
|
|
15
|
-
) as unknown as Schema.Codec<DeleteNLSearchModelInput>;
|
|
16
|
-
|
|
17
|
-
// Output Schema
|
|
18
|
-
export interface DeleteNLSearchModelOutput {
|
|
19
|
-
id: string;
|
|
20
|
-
}
|
|
21
|
-
export const DeleteNLSearchModelOutput =
|
|
22
|
-
/*@__PURE__*/ Schema.Struct({
|
|
23
|
-
id: Schema.String,
|
|
24
|
-
}) as unknown as Schema.Codec<DeleteNLSearchModelOutput>;
|
|
25
|
-
|
|
26
|
-
// The operation
|
|
27
|
-
/**
|
|
28
|
-
* Delete a NL search model
|
|
29
|
-
*
|
|
30
|
-
* Delete a specific NL search model by its ID.
|
|
31
|
-
*
|
|
32
|
-
* @param modelId - The ID of the NL search model to delete
|
|
33
|
-
*/
|
|
34
|
-
export const deleteNLSearchModel = /*@__PURE__*/ API.make(() => ({
|
|
35
|
-
inputSchema: DeleteNLSearchModelInput,
|
|
36
|
-
outputSchema: DeleteNLSearchModelOutput,
|
|
37
|
-
errors: [NotFound] as const,
|
|
38
|
-
}));
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
import { NotFound } from "../errors.ts";
|
|
5
|
-
|
|
6
|
-
// Input Schema
|
|
7
|
-
export interface DeletePresetInput {
|
|
8
|
-
presetId: string;
|
|
9
|
-
}
|
|
10
|
-
export const DeletePresetInput = /*@__PURE__*/ Schema.Struct({
|
|
11
|
-
presetId: Schema.String.pipe(T.PathParam()),
|
|
12
|
-
}).pipe(
|
|
13
|
-
T.Http({ method: "DELETE", path: "/presets/{presetId}" }),
|
|
14
|
-
) as unknown as Schema.Codec<DeletePresetInput>;
|
|
15
|
-
|
|
16
|
-
// Output Schema
|
|
17
|
-
export interface DeletePresetOutput {
|
|
18
|
-
name: string;
|
|
19
|
-
}
|
|
20
|
-
export const DeletePresetOutput = /*@__PURE__*/ Schema.Struct({
|
|
21
|
-
name: Schema.String,
|
|
22
|
-
}) as unknown as Schema.Codec<DeletePresetOutput>;
|
|
23
|
-
|
|
24
|
-
// The operation
|
|
25
|
-
/**
|
|
26
|
-
* Delete a preset.
|
|
27
|
-
*
|
|
28
|
-
* Permanently deletes a preset, given it's name.
|
|
29
|
-
*
|
|
30
|
-
* @param presetId - The ID of the preset to delete.
|
|
31
|
-
*/
|
|
32
|
-
export const deletePreset = /*@__PURE__*/ API.make(() => ({
|
|
33
|
-
inputSchema: DeletePresetInput,
|
|
34
|
-
outputSchema: DeletePresetOutput,
|
|
35
|
-
errors: [NotFound] as const,
|
|
36
|
-
}));
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
import { NotFound } from "../errors.ts";
|
|
5
|
-
|
|
6
|
-
// Input Schema
|
|
7
|
-
export interface DeleteStopwordsSetInput {
|
|
8
|
-
setId: string;
|
|
9
|
-
}
|
|
10
|
-
export const DeleteStopwordsSetInput =
|
|
11
|
-
/*@__PURE__*/ Schema.Struct({
|
|
12
|
-
setId: Schema.String.pipe(T.PathParam()),
|
|
13
|
-
}).pipe(
|
|
14
|
-
T.Http({ method: "DELETE", path: "/stopwords/{setId}" }),
|
|
15
|
-
) as unknown as Schema.Codec<DeleteStopwordsSetInput>;
|
|
16
|
-
|
|
17
|
-
// Output Schema
|
|
18
|
-
export interface DeleteStopwordsSetOutput {
|
|
19
|
-
id: string;
|
|
20
|
-
}
|
|
21
|
-
export const DeleteStopwordsSetOutput =
|
|
22
|
-
/*@__PURE__*/ Schema.Struct({
|
|
23
|
-
id: Schema.String,
|
|
24
|
-
}) as unknown as Schema.Codec<DeleteStopwordsSetOutput>;
|
|
25
|
-
|
|
26
|
-
// The operation
|
|
27
|
-
/**
|
|
28
|
-
* Delete a stopwords set.
|
|
29
|
-
*
|
|
30
|
-
* Permanently deletes a stopwords set, given it's name.
|
|
31
|
-
*
|
|
32
|
-
* @param setId - The ID of the stopwords set to delete.
|
|
33
|
-
*/
|
|
34
|
-
export const deleteStopwordsSet = /*@__PURE__*/ API.make(() => ({
|
|
35
|
-
inputSchema: DeleteStopwordsSetInput,
|
|
36
|
-
outputSchema: DeleteStopwordsSetOutput,
|
|
37
|
-
errors: [NotFound] as const,
|
|
38
|
-
}));
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
import { NotFound } from "../errors.ts";
|
|
5
|
-
|
|
6
|
-
// Input Schema
|
|
7
|
-
export interface DeleteSynonymSetInput {
|
|
8
|
-
synonymSetName: string;
|
|
9
|
-
}
|
|
10
|
-
export const DeleteSynonymSetInput = /*@__PURE__*/ Schema.Struct({
|
|
11
|
-
synonymSetName: Schema.String.pipe(T.PathParam()),
|
|
12
|
-
}).pipe(
|
|
13
|
-
T.Http({ method: "DELETE", path: "/synonym_sets/{synonymSetName}" }),
|
|
14
|
-
) as unknown as Schema.Codec<DeleteSynonymSetInput>;
|
|
15
|
-
|
|
16
|
-
// Output Schema
|
|
17
|
-
export interface DeleteSynonymSetOutput {
|
|
18
|
-
name: string;
|
|
19
|
-
}
|
|
20
|
-
export const DeleteSynonymSetOutput = /*@__PURE__*/ Schema.Struct({
|
|
21
|
-
name: Schema.String,
|
|
22
|
-
}) as unknown as Schema.Codec<DeleteSynonymSetOutput>;
|
|
23
|
-
|
|
24
|
-
// The operation
|
|
25
|
-
/**
|
|
26
|
-
* Delete a synonym set
|
|
27
|
-
*
|
|
28
|
-
* Delete a specific synonym set by its name
|
|
29
|
-
*
|
|
30
|
-
* @param synonymSetName - The name of the synonym set to delete
|
|
31
|
-
*/
|
|
32
|
-
export const deleteSynonymSet = /*@__PURE__*/ API.make(() => ({
|
|
33
|
-
inputSchema: DeleteSynonymSetInput,
|
|
34
|
-
outputSchema: DeleteSynonymSetOutput,
|
|
35
|
-
errors: [NotFound] as const,
|
|
36
|
-
}));
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
import { NotFound } from "../errors.ts";
|
|
5
|
-
|
|
6
|
-
// Input Schema
|
|
7
|
-
export interface DeleteSynonymSetItemInput {
|
|
8
|
-
synonymSetName: string;
|
|
9
|
-
itemId: string;
|
|
10
|
-
}
|
|
11
|
-
export const DeleteSynonymSetItemInput =
|
|
12
|
-
/*@__PURE__*/ Schema.Struct({
|
|
13
|
-
synonymSetName: Schema.String.pipe(T.PathParam()),
|
|
14
|
-
itemId: Schema.String.pipe(T.PathParam()),
|
|
15
|
-
}).pipe(
|
|
16
|
-
T.Http({
|
|
17
|
-
method: "DELETE",
|
|
18
|
-
path: "/synonym_sets/{synonymSetName}/items/{itemId}",
|
|
19
|
-
}),
|
|
20
|
-
) as unknown as Schema.Codec<DeleteSynonymSetItemInput>;
|
|
21
|
-
|
|
22
|
-
// Output Schema
|
|
23
|
-
export interface DeleteSynonymSetItemOutput {
|
|
24
|
-
id: string;
|
|
25
|
-
}
|
|
26
|
-
export const DeleteSynonymSetItemOutput =
|
|
27
|
-
/*@__PURE__*/ Schema.Struct({
|
|
28
|
-
id: Schema.String,
|
|
29
|
-
}) as unknown as Schema.Codec<DeleteSynonymSetItemOutput>;
|
|
30
|
-
|
|
31
|
-
// The operation
|
|
32
|
-
/**
|
|
33
|
-
* Delete a synonym set item
|
|
34
|
-
*
|
|
35
|
-
* Delete a specific synonym item by its id
|
|
36
|
-
*
|
|
37
|
-
* @param synonymSetName - The name of the synonym set
|
|
38
|
-
* @param itemId - The id of the synonym item to delete
|
|
39
|
-
*/
|
|
40
|
-
export const deleteSynonymSetItem = /*@__PURE__*/ API.make(() => ({
|
|
41
|
-
inputSchema: DeleteSynonymSetItemInput,
|
|
42
|
-
outputSchema: DeleteSynonymSetItemOutput,
|
|
43
|
-
errors: [NotFound] as const,
|
|
44
|
-
}));
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
import { NotFound } from "../errors.ts";
|
|
5
|
-
|
|
6
|
-
// Input Schema
|
|
7
|
-
export interface ExportDocumentsInput {
|
|
8
|
-
collectionName: string;
|
|
9
|
-
exportDocumentsParameters?: string;
|
|
10
|
-
}
|
|
11
|
-
export const ExportDocumentsInput = /*@__PURE__*/ Schema.Struct({
|
|
12
|
-
collectionName: Schema.String.pipe(T.PathParam()),
|
|
13
|
-
exportDocumentsParameters: Schema.optional(Schema.String),
|
|
14
|
-
}).pipe(
|
|
15
|
-
T.Http({
|
|
16
|
-
method: "GET",
|
|
17
|
-
path: "/collections/{collectionName}/documents/export",
|
|
18
|
-
}),
|
|
19
|
-
) as unknown as Schema.Codec<ExportDocumentsInput>;
|
|
20
|
-
|
|
21
|
-
// Output Schema
|
|
22
|
-
export type ExportDocumentsOutput = void;
|
|
23
|
-
export const ExportDocumentsOutput =
|
|
24
|
-
/*@__PURE__*/ Schema.Void as unknown as Schema.Codec<ExportDocumentsOutput>;
|
|
25
|
-
|
|
26
|
-
// The operation
|
|
27
|
-
/**
|
|
28
|
-
* Export all documents in a collection
|
|
29
|
-
*
|
|
30
|
-
* Export all documents in a collection in JSON lines format.
|
|
31
|
-
*
|
|
32
|
-
* @param collectionName - The name of the collection
|
|
33
|
-
*/
|
|
34
|
-
export const exportDocuments = /*@__PURE__*/ API.make(() => ({
|
|
35
|
-
inputSchema: ExportDocumentsInput,
|
|
36
|
-
outputSchema: ExportDocumentsOutput,
|
|
37
|
-
errors: [NotFound] as const,
|
|
38
|
-
}));
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
|
|
5
|
-
// Input Schema
|
|
6
|
-
export interface FlushAnalyticsInput {}
|
|
7
|
-
export const FlushAnalyticsInput = /*@__PURE__*/ Schema.Struct({}).pipe(
|
|
8
|
-
T.Http({ method: "POST", path: "/analytics/flush" }),
|
|
9
|
-
) as unknown as Schema.Codec<FlushAnalyticsInput>;
|
|
10
|
-
|
|
11
|
-
// Output Schema
|
|
12
|
-
export interface FlushAnalyticsOutput {
|
|
13
|
-
ok: boolean;
|
|
14
|
-
}
|
|
15
|
-
export const FlushAnalyticsOutput = /*@__PURE__*/ Schema.Struct({
|
|
16
|
-
ok: Schema.Boolean,
|
|
17
|
-
}) as unknown as Schema.Codec<FlushAnalyticsOutput>;
|
|
18
|
-
|
|
19
|
-
// The operation
|
|
20
|
-
/**
|
|
21
|
-
* Flush in-memory analytics to disk
|
|
22
|
-
*
|
|
23
|
-
* Triggers a flush of analytics data to persistent storage.
|
|
24
|
-
*/
|
|
25
|
-
export const flushAnalytics = /*@__PURE__*/ API.make(() => ({
|
|
26
|
-
inputSchema: FlushAnalyticsInput,
|
|
27
|
-
outputSchema: FlushAnalyticsOutput,
|
|
28
|
-
}));
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
import { NotFound } from "../errors.ts";
|
|
5
|
-
|
|
6
|
-
// Input Schema
|
|
7
|
-
export interface GetAliasInput {
|
|
8
|
-
aliasName: string;
|
|
9
|
-
}
|
|
10
|
-
export const GetAliasInput = /*@__PURE__*/ Schema.Struct({
|
|
11
|
-
aliasName: Schema.String.pipe(T.PathParam()),
|
|
12
|
-
}).pipe(
|
|
13
|
-
T.Http({ method: "GET", path: "/aliases/{aliasName}" }),
|
|
14
|
-
) as unknown as Schema.Codec<GetAliasInput>;
|
|
15
|
-
|
|
16
|
-
// Output Schema
|
|
17
|
-
export interface GetAliasOutput {
|
|
18
|
-
name: string;
|
|
19
|
-
collection_name: string;
|
|
20
|
-
}
|
|
21
|
-
export const GetAliasOutput = /*@__PURE__*/ Schema.Struct({
|
|
22
|
-
name: Schema.String,
|
|
23
|
-
collection_name: Schema.String,
|
|
24
|
-
}) as unknown as Schema.Codec<GetAliasOutput>;
|
|
25
|
-
|
|
26
|
-
// The operation
|
|
27
|
-
/**
|
|
28
|
-
* Retrieve an alias
|
|
29
|
-
*
|
|
30
|
-
* Find out which collection an alias points to by fetching it
|
|
31
|
-
*
|
|
32
|
-
* @param aliasName - The name of the alias to retrieve
|
|
33
|
-
*/
|
|
34
|
-
export const getAlias = /*@__PURE__*/ API.make(() => ({
|
|
35
|
-
inputSchema: GetAliasInput,
|
|
36
|
-
outputSchema: GetAliasOutput,
|
|
37
|
-
errors: [NotFound] as const,
|
|
38
|
-
}));
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
|
|
5
|
-
// Input Schema
|
|
6
|
-
export interface GetAliasesInput {}
|
|
7
|
-
export const GetAliasesInput = /*@__PURE__*/ Schema.Struct({}).pipe(
|
|
8
|
-
T.Http({ method: "GET", path: "/aliases" }),
|
|
9
|
-
) as unknown as Schema.Codec<GetAliasesInput>;
|
|
10
|
-
|
|
11
|
-
// Output Schema
|
|
12
|
-
export interface GetAliasesOutput {
|
|
13
|
-
aliases: { name: string; collection_name: string }[];
|
|
14
|
-
}
|
|
15
|
-
export const GetAliasesOutput = /*@__PURE__*/ Schema.Struct({
|
|
16
|
-
aliases: Schema.Array(
|
|
17
|
-
Schema.Struct({
|
|
18
|
-
name: Schema.String,
|
|
19
|
-
collection_name: Schema.String,
|
|
20
|
-
}),
|
|
21
|
-
),
|
|
22
|
-
}) as unknown as Schema.Codec<GetAliasesOutput>;
|
|
23
|
-
|
|
24
|
-
// The operation
|
|
25
|
-
/**
|
|
26
|
-
* List all aliases
|
|
27
|
-
*
|
|
28
|
-
* List all aliases and the corresponding collections that they map to.
|
|
29
|
-
*/
|
|
30
|
-
export const getAliases = /*@__PURE__*/ API.make(() => ({
|
|
31
|
-
inputSchema: GetAliasesInput,
|
|
32
|
-
outputSchema: GetAliasesOutput,
|
|
33
|
-
}));
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
import { BadRequest } from "../errors.ts";
|
|
5
|
-
|
|
6
|
-
// Input Schema
|
|
7
|
-
export interface GetAnalyticsEventsInput {
|
|
8
|
-
user_id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
n: number;
|
|
11
|
-
}
|
|
12
|
-
export const GetAnalyticsEventsInput =
|
|
13
|
-
/*@__PURE__*/ Schema.Struct({
|
|
14
|
-
user_id: Schema.String,
|
|
15
|
-
name: Schema.String,
|
|
16
|
-
n: Schema.Number,
|
|
17
|
-
}).pipe(
|
|
18
|
-
T.Http({ method: "GET", path: "/analytics/events" }),
|
|
19
|
-
) as unknown as Schema.Codec<GetAnalyticsEventsInput>;
|
|
20
|
-
|
|
21
|
-
// Output Schema
|
|
22
|
-
export interface GetAnalyticsEventsOutput {
|
|
23
|
-
events: {
|
|
24
|
-
name?: string;
|
|
25
|
-
event_type?: string;
|
|
26
|
-
collection?: string;
|
|
27
|
-
timestamp?: number;
|
|
28
|
-
user_id?: string;
|
|
29
|
-
doc_id?: string;
|
|
30
|
-
doc_ids?: string[];
|
|
31
|
-
query?: string;
|
|
32
|
-
}[];
|
|
33
|
-
}
|
|
34
|
-
export const GetAnalyticsEventsOutput =
|
|
35
|
-
/*@__PURE__*/ Schema.Struct({
|
|
36
|
-
events: Schema.Array(
|
|
37
|
-
Schema.Struct({
|
|
38
|
-
name: Schema.optional(Schema.String),
|
|
39
|
-
event_type: Schema.optional(Schema.String),
|
|
40
|
-
collection: Schema.optional(Schema.String),
|
|
41
|
-
timestamp: Schema.optional(Schema.Number),
|
|
42
|
-
user_id: Schema.optional(Schema.String),
|
|
43
|
-
doc_id: Schema.optional(Schema.String),
|
|
44
|
-
doc_ids: Schema.optional(Schema.Array(Schema.String)),
|
|
45
|
-
query: Schema.optional(Schema.String),
|
|
46
|
-
}),
|
|
47
|
-
),
|
|
48
|
-
}) as unknown as Schema.Codec<GetAnalyticsEventsOutput>;
|
|
49
|
-
|
|
50
|
-
// The operation
|
|
51
|
-
/**
|
|
52
|
-
* Retrieve analytics events
|
|
53
|
-
*
|
|
54
|
-
* Retrieve the most recent events for a user and rule.
|
|
55
|
-
*
|
|
56
|
-
* @param name - Analytics rule name
|
|
57
|
-
* @param n - Number of events to return (max 1000)
|
|
58
|
-
*/
|
|
59
|
-
export const getAnalyticsEvents = /*@__PURE__*/ API.make(() => ({
|
|
60
|
-
inputSchema: GetAnalyticsEventsInput,
|
|
61
|
-
outputSchema: GetAnalyticsEventsOutput,
|
|
62
|
-
errors: [BadRequest] as const,
|
|
63
|
-
}));
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
|
|
5
|
-
// Input Schema
|
|
6
|
-
export interface GetAnalyticsStatusInput {}
|
|
7
|
-
export const GetAnalyticsStatusInput =
|
|
8
|
-
/*@__PURE__*/ Schema.Struct({}).pipe(
|
|
9
|
-
T.Http({ method: "GET", path: "/analytics/status" }),
|
|
10
|
-
) as unknown as Schema.Codec<GetAnalyticsStatusInput>;
|
|
11
|
-
|
|
12
|
-
// Output Schema
|
|
13
|
-
export interface GetAnalyticsStatusOutput {
|
|
14
|
-
popular_prefix_queries?: number;
|
|
15
|
-
nohits_prefix_queries?: number;
|
|
16
|
-
log_prefix_queries?: number;
|
|
17
|
-
query_log_events?: number;
|
|
18
|
-
query_counter_events?: number;
|
|
19
|
-
doc_log_events?: number;
|
|
20
|
-
doc_counter_events?: number;
|
|
21
|
-
}
|
|
22
|
-
export const GetAnalyticsStatusOutput =
|
|
23
|
-
/*@__PURE__*/ Schema.Struct({
|
|
24
|
-
popular_prefix_queries: Schema.optional(Schema.Number),
|
|
25
|
-
nohits_prefix_queries: Schema.optional(Schema.Number),
|
|
26
|
-
log_prefix_queries: Schema.optional(Schema.Number),
|
|
27
|
-
query_log_events: Schema.optional(Schema.Number),
|
|
28
|
-
query_counter_events: Schema.optional(Schema.Number),
|
|
29
|
-
doc_log_events: Schema.optional(Schema.Number),
|
|
30
|
-
doc_counter_events: Schema.optional(Schema.Number),
|
|
31
|
-
}) as unknown as Schema.Codec<GetAnalyticsStatusOutput>;
|
|
32
|
-
|
|
33
|
-
// The operation
|
|
34
|
-
/**
|
|
35
|
-
* Get analytics subsystem status
|
|
36
|
-
*
|
|
37
|
-
* Returns sizes of internal analytics buffers and queues.
|
|
38
|
-
*/
|
|
39
|
-
export const getAnalyticsStatus = /*@__PURE__*/ API.make(() => ({
|
|
40
|
-
inputSchema: GetAnalyticsStatusInput,
|
|
41
|
-
outputSchema: GetAnalyticsStatusOutput,
|
|
42
|
-
}));
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
import { NotFound } from "../errors.ts";
|
|
5
|
-
import { SensitiveOutputString } from "../sensitive.ts";
|
|
6
|
-
import * as Redacted from "effect/Redacted";
|
|
7
|
-
|
|
8
|
-
// Input Schema
|
|
9
|
-
export interface GetCollectionInput {
|
|
10
|
-
collectionName: string;
|
|
11
|
-
}
|
|
12
|
-
export const GetCollectionInput = /*@__PURE__*/ Schema.Struct({
|
|
13
|
-
collectionName: Schema.String.pipe(T.PathParam()),
|
|
14
|
-
}).pipe(
|
|
15
|
-
T.Http({ method: "GET", path: "/collections/{collectionName}" }),
|
|
16
|
-
) as unknown as Schema.Codec<GetCollectionInput>;
|
|
17
|
-
|
|
18
|
-
// Output Schema
|
|
19
|
-
export interface GetCollectionOutput {
|
|
20
|
-
name: string;
|
|
21
|
-
fields: {
|
|
22
|
-
name: string;
|
|
23
|
-
type: string;
|
|
24
|
-
optional?: boolean;
|
|
25
|
-
facet?: boolean;
|
|
26
|
-
index?: boolean;
|
|
27
|
-
locale?: string;
|
|
28
|
-
sort?: boolean;
|
|
29
|
-
infix?: boolean;
|
|
30
|
-
reference?: string;
|
|
31
|
-
async_reference?: boolean;
|
|
32
|
-
num_dim?: number;
|
|
33
|
-
drop?: boolean;
|
|
34
|
-
store?: boolean;
|
|
35
|
-
vec_dist?: string;
|
|
36
|
-
range_index?: boolean;
|
|
37
|
-
stem?: boolean;
|
|
38
|
-
stem_dictionary?: string;
|
|
39
|
-
token_separators?: string[];
|
|
40
|
-
symbols_to_index?: string[];
|
|
41
|
-
embed?: {
|
|
42
|
-
from: string[];
|
|
43
|
-
model_config: {
|
|
44
|
-
model_name: string;
|
|
45
|
-
api_key?: Redacted.Redacted<string>;
|
|
46
|
-
url?: string;
|
|
47
|
-
access_token?: Redacted.Redacted<string>;
|
|
48
|
-
refresh_token?: Redacted.Redacted<string>;
|
|
49
|
-
client_id?: string;
|
|
50
|
-
client_secret?: Redacted.Redacted<string>;
|
|
51
|
-
project_id?: string;
|
|
52
|
-
indexing_prefix?: string;
|
|
53
|
-
query_prefix?: string;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
}[];
|
|
57
|
-
default_sorting_field?: string;
|
|
58
|
-
token_separators?: string[];
|
|
59
|
-
synonym_sets?: string[];
|
|
60
|
-
enable_nested_fields?: boolean;
|
|
61
|
-
symbols_to_index?: string[];
|
|
62
|
-
voice_query_model?: { model_name?: string };
|
|
63
|
-
metadata?: unknown;
|
|
64
|
-
num_documents: number;
|
|
65
|
-
created_at: number;
|
|
66
|
-
}
|
|
67
|
-
export const GetCollectionOutput = /*@__PURE__*/ Schema.Struct({
|
|
68
|
-
name: Schema.String,
|
|
69
|
-
fields: Schema.Array(
|
|
70
|
-
Schema.Struct({
|
|
71
|
-
name: Schema.String,
|
|
72
|
-
type: Schema.String,
|
|
73
|
-
optional: Schema.optional(Schema.Boolean),
|
|
74
|
-
facet: Schema.optional(Schema.Boolean),
|
|
75
|
-
index: Schema.optional(Schema.Boolean),
|
|
76
|
-
locale: Schema.optional(Schema.String),
|
|
77
|
-
sort: Schema.optional(Schema.Boolean),
|
|
78
|
-
infix: Schema.optional(Schema.Boolean),
|
|
79
|
-
reference: Schema.optional(Schema.String),
|
|
80
|
-
async_reference: Schema.optional(Schema.Boolean),
|
|
81
|
-
num_dim: Schema.optional(Schema.Number),
|
|
82
|
-
drop: Schema.optional(Schema.Boolean),
|
|
83
|
-
store: Schema.optional(Schema.Boolean),
|
|
84
|
-
vec_dist: Schema.optional(Schema.String),
|
|
85
|
-
range_index: Schema.optional(Schema.Boolean),
|
|
86
|
-
stem: Schema.optional(Schema.Boolean),
|
|
87
|
-
stem_dictionary: Schema.optional(Schema.String),
|
|
88
|
-
token_separators: Schema.optional(Schema.Array(Schema.String)),
|
|
89
|
-
symbols_to_index: Schema.optional(Schema.Array(Schema.String)),
|
|
90
|
-
embed: Schema.optional(
|
|
91
|
-
Schema.Struct({
|
|
92
|
-
from: Schema.Array(Schema.String),
|
|
93
|
-
model_config: Schema.Struct({
|
|
94
|
-
model_name: Schema.String,
|
|
95
|
-
api_key: Schema.optional(SensitiveOutputString),
|
|
96
|
-
url: Schema.optional(Schema.String),
|
|
97
|
-
access_token: Schema.optional(SensitiveOutputString),
|
|
98
|
-
refresh_token: Schema.optional(SensitiveOutputString),
|
|
99
|
-
client_id: Schema.optional(Schema.String),
|
|
100
|
-
client_secret: Schema.optional(SensitiveOutputString),
|
|
101
|
-
project_id: Schema.optional(Schema.String),
|
|
102
|
-
indexing_prefix: Schema.optional(Schema.String),
|
|
103
|
-
query_prefix: Schema.optional(Schema.String),
|
|
104
|
-
}),
|
|
105
|
-
}),
|
|
106
|
-
),
|
|
107
|
-
}),
|
|
108
|
-
),
|
|
109
|
-
default_sorting_field: Schema.optional(Schema.String),
|
|
110
|
-
token_separators: Schema.optional(Schema.Array(Schema.String)),
|
|
111
|
-
synonym_sets: Schema.optional(Schema.Array(Schema.String)),
|
|
112
|
-
enable_nested_fields: Schema.optional(Schema.Boolean),
|
|
113
|
-
symbols_to_index: Schema.optional(Schema.Array(Schema.String)),
|
|
114
|
-
voice_query_model: Schema.optional(
|
|
115
|
-
Schema.Struct({
|
|
116
|
-
model_name: Schema.optional(Schema.String),
|
|
117
|
-
}),
|
|
118
|
-
),
|
|
119
|
-
metadata: Schema.optional(Schema.Unknown),
|
|
120
|
-
num_documents: Schema.Number,
|
|
121
|
-
created_at: Schema.Number,
|
|
122
|
-
}) as unknown as Schema.Codec<GetCollectionOutput>;
|
|
123
|
-
|
|
124
|
-
// The operation
|
|
125
|
-
/**
|
|
126
|
-
* Retrieve a single collection
|
|
127
|
-
*
|
|
128
|
-
* Retrieve the details of a collection, given its name.
|
|
129
|
-
*
|
|
130
|
-
* @param collectionName - The name of the collection to retrieve
|
|
131
|
-
*/
|
|
132
|
-
export const getCollection = /*@__PURE__*/ API.make(() => ({
|
|
133
|
-
inputSchema: GetCollectionInput,
|
|
134
|
-
outputSchema: GetCollectionOutput,
|
|
135
|
-
errors: [NotFound] as const,
|
|
136
|
-
}));
|