@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,188 +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 RetrieveAllPresetsInput {}
|
|
7
|
-
export const RetrieveAllPresetsInput =
|
|
8
|
-
/*@__PURE__*/ Schema.Struct({}).pipe(
|
|
9
|
-
T.Http({ method: "GET", path: "/presets" }),
|
|
10
|
-
) as unknown as Schema.Codec<RetrieveAllPresetsInput>;
|
|
11
|
-
|
|
12
|
-
// Output Schema
|
|
13
|
-
export interface RetrieveAllPresetsOutput {
|
|
14
|
-
presets: {
|
|
15
|
-
value:
|
|
16
|
-
| {
|
|
17
|
-
q?: string;
|
|
18
|
-
query_by?: string;
|
|
19
|
-
validate_field_names?: boolean;
|
|
20
|
-
nl_query?: boolean;
|
|
21
|
-
nl_model_id?: string;
|
|
22
|
-
query_by_weights?: string;
|
|
23
|
-
text_match_type?: string;
|
|
24
|
-
prefix?: string;
|
|
25
|
-
infix?: string;
|
|
26
|
-
max_extra_prefix?: number;
|
|
27
|
-
max_extra_suffix?: number;
|
|
28
|
-
filter_by?: string;
|
|
29
|
-
max_filter_by_candidates?: number;
|
|
30
|
-
sort_by?: string;
|
|
31
|
-
facet_by?: string;
|
|
32
|
-
max_facet_values?: number;
|
|
33
|
-
facet_query?: string;
|
|
34
|
-
num_typos?: string;
|
|
35
|
-
page?: number;
|
|
36
|
-
per_page?: number;
|
|
37
|
-
limit?: number;
|
|
38
|
-
offset?: number;
|
|
39
|
-
group_by?: string;
|
|
40
|
-
group_limit?: number;
|
|
41
|
-
group_missing_values?: boolean;
|
|
42
|
-
include_fields?: string;
|
|
43
|
-
exclude_fields?: string;
|
|
44
|
-
highlight_full_fields?: string;
|
|
45
|
-
highlight_affix_num_tokens?: number;
|
|
46
|
-
highlight_start_tag?: string;
|
|
47
|
-
highlight_end_tag?: string;
|
|
48
|
-
enable_highlight_v1?: boolean;
|
|
49
|
-
enable_analytics?: boolean;
|
|
50
|
-
snippet_threshold?: number;
|
|
51
|
-
synonym_sets?: string;
|
|
52
|
-
drop_tokens_threshold?: number;
|
|
53
|
-
drop_tokens_mode?: "right_to_left" | "left_to_right" | "both_sides:3";
|
|
54
|
-
typo_tokens_threshold?: number;
|
|
55
|
-
enable_typos_for_alpha_numerical_tokens?: boolean;
|
|
56
|
-
filter_curated_hits?: boolean;
|
|
57
|
-
enable_synonyms?: boolean;
|
|
58
|
-
synonym_prefix?: boolean;
|
|
59
|
-
synonym_num_typos?: number;
|
|
60
|
-
pinned_hits?: string;
|
|
61
|
-
hidden_hits?: string;
|
|
62
|
-
curation_tags?: string;
|
|
63
|
-
highlight_fields?: string;
|
|
64
|
-
split_join_tokens?: string;
|
|
65
|
-
pre_segmented_query?: boolean;
|
|
66
|
-
preset?: string;
|
|
67
|
-
enable_curations?: boolean;
|
|
68
|
-
prioritize_exact_match?: boolean;
|
|
69
|
-
max_candidates?: number;
|
|
70
|
-
prioritize_token_position?: boolean;
|
|
71
|
-
prioritize_num_matching_fields?: boolean;
|
|
72
|
-
enable_typos_for_numerical_tokens?: boolean;
|
|
73
|
-
exhaustive_search?: boolean;
|
|
74
|
-
search_cutoff_ms?: number;
|
|
75
|
-
use_cache?: boolean;
|
|
76
|
-
cache_ttl?: number;
|
|
77
|
-
min_len_1typo?: number;
|
|
78
|
-
min_len_2typo?: number;
|
|
79
|
-
vector_query?: string;
|
|
80
|
-
remote_embedding_timeout_ms?: number;
|
|
81
|
-
remote_embedding_num_tries?: number;
|
|
82
|
-
facet_strategy?: string;
|
|
83
|
-
stopwords?: string;
|
|
84
|
-
facet_return_parent?: string;
|
|
85
|
-
voice_query?: string;
|
|
86
|
-
conversation?: boolean;
|
|
87
|
-
conversation_model_id?: string;
|
|
88
|
-
conversation_id?: string;
|
|
89
|
-
}
|
|
90
|
-
| {
|
|
91
|
-
union?: boolean;
|
|
92
|
-
searches: {
|
|
93
|
-
q?: string;
|
|
94
|
-
query_by?: string;
|
|
95
|
-
query_by_weights?: string;
|
|
96
|
-
text_match_type?: string;
|
|
97
|
-
prefix?: string;
|
|
98
|
-
infix?: string;
|
|
99
|
-
max_extra_prefix?: number;
|
|
100
|
-
max_extra_suffix?: number;
|
|
101
|
-
filter_by?: string;
|
|
102
|
-
sort_by?: string;
|
|
103
|
-
facet_by?: string;
|
|
104
|
-
max_facet_values?: number;
|
|
105
|
-
facet_query?: string;
|
|
106
|
-
num_typos?: string;
|
|
107
|
-
page?: number;
|
|
108
|
-
per_page?: number;
|
|
109
|
-
limit?: number;
|
|
110
|
-
offset?: number;
|
|
111
|
-
group_by?: string;
|
|
112
|
-
group_limit?: number;
|
|
113
|
-
group_missing_values?: boolean;
|
|
114
|
-
include_fields?: string;
|
|
115
|
-
exclude_fields?: string;
|
|
116
|
-
highlight_full_fields?: string;
|
|
117
|
-
highlight_affix_num_tokens?: number;
|
|
118
|
-
highlight_start_tag?: string;
|
|
119
|
-
highlight_end_tag?: string;
|
|
120
|
-
snippet_threshold?: number;
|
|
121
|
-
drop_tokens_threshold?: number;
|
|
122
|
-
drop_tokens_mode?:
|
|
123
|
-
| "right_to_left"
|
|
124
|
-
| "left_to_right"
|
|
125
|
-
| "both_sides:3";
|
|
126
|
-
typo_tokens_threshold?: number;
|
|
127
|
-
enable_typos_for_alpha_numerical_tokens?: boolean;
|
|
128
|
-
filter_curated_hits?: boolean;
|
|
129
|
-
enable_synonyms?: boolean;
|
|
130
|
-
enable_analytics?: boolean;
|
|
131
|
-
synonym_prefix?: boolean;
|
|
132
|
-
synonym_num_typos?: number;
|
|
133
|
-
pinned_hits?: string;
|
|
134
|
-
hidden_hits?: string;
|
|
135
|
-
curation_tags?: string;
|
|
136
|
-
highlight_fields?: string;
|
|
137
|
-
pre_segmented_query?: boolean;
|
|
138
|
-
preset?: string;
|
|
139
|
-
enable_curations?: boolean;
|
|
140
|
-
prioritize_exact_match?: boolean;
|
|
141
|
-
prioritize_token_position?: boolean;
|
|
142
|
-
prioritize_num_matching_fields?: boolean;
|
|
143
|
-
enable_typos_for_numerical_tokens?: boolean;
|
|
144
|
-
exhaustive_search?: boolean;
|
|
145
|
-
search_cutoff_ms?: number;
|
|
146
|
-
use_cache?: boolean;
|
|
147
|
-
cache_ttl?: number;
|
|
148
|
-
min_len_1typo?: number;
|
|
149
|
-
min_len_2typo?: number;
|
|
150
|
-
vector_query?: string;
|
|
151
|
-
remote_embedding_timeout_ms?: number;
|
|
152
|
-
remote_embedding_num_tries?: number;
|
|
153
|
-
facet_strategy?: string;
|
|
154
|
-
stopwords?: string;
|
|
155
|
-
facet_return_parent?: string;
|
|
156
|
-
voice_query?: string;
|
|
157
|
-
conversation?: boolean;
|
|
158
|
-
conversation_model_id?: string;
|
|
159
|
-
conversation_id?: string;
|
|
160
|
-
validate_field_names?: boolean;
|
|
161
|
-
collection?: string;
|
|
162
|
-
"x-typesense-api-key"?: string;
|
|
163
|
-
rerank_hybrid_matches?: boolean;
|
|
164
|
-
}[];
|
|
165
|
-
};
|
|
166
|
-
name: string;
|
|
167
|
-
}[];
|
|
168
|
-
}
|
|
169
|
-
export const RetrieveAllPresetsOutput =
|
|
170
|
-
/*@__PURE__*/ Schema.Struct({
|
|
171
|
-
presets: Schema.Array(
|
|
172
|
-
Schema.Struct({
|
|
173
|
-
value: Schema.Unknown,
|
|
174
|
-
name: Schema.String,
|
|
175
|
-
}),
|
|
176
|
-
),
|
|
177
|
-
}) as unknown as Schema.Codec<RetrieveAllPresetsOutput>;
|
|
178
|
-
|
|
179
|
-
// The operation
|
|
180
|
-
/**
|
|
181
|
-
* Retrieves all presets.
|
|
182
|
-
*
|
|
183
|
-
* Retrieve the details of all presets
|
|
184
|
-
*/
|
|
185
|
-
export const retrieveAllPresets = /*@__PURE__*/ API.make(() => ({
|
|
186
|
-
inputSchema: RetrieveAllPresetsInput,
|
|
187
|
-
outputSchema: RetrieveAllPresetsOutput,
|
|
188
|
-
}));
|
|
@@ -1,71 +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 RetrieveAnalyticsRuleInput {
|
|
8
|
-
ruleName: string;
|
|
9
|
-
}
|
|
10
|
-
export const RetrieveAnalyticsRuleInput =
|
|
11
|
-
/*@__PURE__*/ Schema.Struct({
|
|
12
|
-
ruleName: Schema.String.pipe(T.PathParam()),
|
|
13
|
-
}).pipe(
|
|
14
|
-
T.Http({ method: "GET", path: "/analytics/rules/{ruleName}" }),
|
|
15
|
-
) as unknown as Schema.Codec<RetrieveAnalyticsRuleInput>;
|
|
16
|
-
|
|
17
|
-
// Output Schema
|
|
18
|
-
export interface RetrieveAnalyticsRuleOutput {
|
|
19
|
-
name: string;
|
|
20
|
-
type: "popular_queries" | "nohits_queries" | "counter" | "log";
|
|
21
|
-
collection: string;
|
|
22
|
-
event_type: string;
|
|
23
|
-
rule_tag?: string;
|
|
24
|
-
params?: {
|
|
25
|
-
destination_collection?: string;
|
|
26
|
-
limit?: number;
|
|
27
|
-
capture_search_requests?: boolean;
|
|
28
|
-
meta_fields?: string[];
|
|
29
|
-
expand_query?: boolean;
|
|
30
|
-
counter_field?: string;
|
|
31
|
-
weight?: number;
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
export const RetrieveAnalyticsRuleOutput =
|
|
35
|
-
/*@__PURE__*/ Schema.Struct({
|
|
36
|
-
name: Schema.String,
|
|
37
|
-
type: Schema.Literals([
|
|
38
|
-
"popular_queries",
|
|
39
|
-
"nohits_queries",
|
|
40
|
-
"counter",
|
|
41
|
-
"log",
|
|
42
|
-
]),
|
|
43
|
-
collection: Schema.String,
|
|
44
|
-
event_type: Schema.String,
|
|
45
|
-
rule_tag: Schema.optional(Schema.String),
|
|
46
|
-
params: Schema.optional(
|
|
47
|
-
Schema.Struct({
|
|
48
|
-
destination_collection: Schema.optional(Schema.String),
|
|
49
|
-
limit: Schema.optional(Schema.Number),
|
|
50
|
-
capture_search_requests: Schema.optional(Schema.Boolean),
|
|
51
|
-
meta_fields: Schema.optional(Schema.Array(Schema.String)),
|
|
52
|
-
expand_query: Schema.optional(Schema.Boolean),
|
|
53
|
-
counter_field: Schema.optional(Schema.String),
|
|
54
|
-
weight: Schema.optional(Schema.Number),
|
|
55
|
-
}),
|
|
56
|
-
),
|
|
57
|
-
}) as unknown as Schema.Codec<RetrieveAnalyticsRuleOutput>;
|
|
58
|
-
|
|
59
|
-
// The operation
|
|
60
|
-
/**
|
|
61
|
-
* Retrieves an analytics rule
|
|
62
|
-
*
|
|
63
|
-
* Retrieve the details of an analytics rule, given it's name
|
|
64
|
-
*
|
|
65
|
-
* @param ruleName - The name of the analytics rule to retrieve
|
|
66
|
-
*/
|
|
67
|
-
export const retrieveAnalyticsRule = /*@__PURE__*/ API.make(() => ({
|
|
68
|
-
inputSchema: RetrieveAnalyticsRuleInput,
|
|
69
|
-
outputSchema: RetrieveAnalyticsRuleOutput,
|
|
70
|
-
errors: [NotFound] as const,
|
|
71
|
-
}));
|
|
@@ -1,71 +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 RetrieveAnalyticsRulesInput {
|
|
7
|
-
rule_tag?: string;
|
|
8
|
-
}
|
|
9
|
-
export const RetrieveAnalyticsRulesInput =
|
|
10
|
-
/*@__PURE__*/ Schema.Struct({
|
|
11
|
-
rule_tag: Schema.optional(Schema.String),
|
|
12
|
-
}).pipe(
|
|
13
|
-
T.Http({ method: "GET", path: "/analytics/rules" }),
|
|
14
|
-
) as unknown as Schema.Codec<RetrieveAnalyticsRulesInput>;
|
|
15
|
-
|
|
16
|
-
// Output Schema
|
|
17
|
-
export type RetrieveAnalyticsRulesOutput = {
|
|
18
|
-
name: string;
|
|
19
|
-
type: "popular_queries" | "nohits_queries" | "counter" | "log";
|
|
20
|
-
collection: string;
|
|
21
|
-
event_type: string;
|
|
22
|
-
rule_tag?: string;
|
|
23
|
-
params?: {
|
|
24
|
-
destination_collection?: string;
|
|
25
|
-
limit?: number;
|
|
26
|
-
capture_search_requests?: boolean;
|
|
27
|
-
meta_fields?: string[];
|
|
28
|
-
expand_query?: boolean;
|
|
29
|
-
counter_field?: string;
|
|
30
|
-
weight?: number;
|
|
31
|
-
};
|
|
32
|
-
}[];
|
|
33
|
-
export const RetrieveAnalyticsRulesOutput =
|
|
34
|
-
/*@__PURE__*/ Schema.Array(
|
|
35
|
-
Schema.Struct({
|
|
36
|
-
name: Schema.String,
|
|
37
|
-
type: Schema.Literals([
|
|
38
|
-
"popular_queries",
|
|
39
|
-
"nohits_queries",
|
|
40
|
-
"counter",
|
|
41
|
-
"log",
|
|
42
|
-
]),
|
|
43
|
-
collection: Schema.String,
|
|
44
|
-
event_type: Schema.String,
|
|
45
|
-
rule_tag: Schema.optional(Schema.String),
|
|
46
|
-
params: Schema.optional(
|
|
47
|
-
Schema.Struct({
|
|
48
|
-
destination_collection: Schema.optional(Schema.String),
|
|
49
|
-
limit: Schema.optional(Schema.Number),
|
|
50
|
-
capture_search_requests: Schema.optional(Schema.Boolean),
|
|
51
|
-
meta_fields: Schema.optional(Schema.Array(Schema.String)),
|
|
52
|
-
expand_query: Schema.optional(Schema.Boolean),
|
|
53
|
-
counter_field: Schema.optional(Schema.String),
|
|
54
|
-
weight: Schema.optional(Schema.Number),
|
|
55
|
-
}),
|
|
56
|
-
),
|
|
57
|
-
}),
|
|
58
|
-
) as unknown as Schema.Codec<RetrieveAnalyticsRulesOutput>;
|
|
59
|
-
|
|
60
|
-
// The operation
|
|
61
|
-
/**
|
|
62
|
-
* Retrieve analytics rules
|
|
63
|
-
*
|
|
64
|
-
* Retrieve all analytics rules. Use the optional rule_tag filter to narrow down results.
|
|
65
|
-
*
|
|
66
|
-
* @param rule_tag - Filter rules by rule_tag
|
|
67
|
-
*/
|
|
68
|
-
export const retrieveAnalyticsRules = /*@__PURE__*/ API.make(() => ({
|
|
69
|
-
inputSchema: RetrieveAnalyticsRulesInput,
|
|
70
|
-
outputSchema: RetrieveAnalyticsRulesOutput,
|
|
71
|
-
}));
|
|
@@ -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 RetrieveConversationModelInput {
|
|
8
|
-
modelId: string;
|
|
9
|
-
}
|
|
10
|
-
export const RetrieveConversationModelInput =
|
|
11
|
-
/*@__PURE__*/ Schema.Struct({
|
|
12
|
-
modelId: Schema.String.pipe(T.PathParam()),
|
|
13
|
-
}).pipe(
|
|
14
|
-
T.Http({ method: "GET", path: "/conversations/models/{modelId}" }),
|
|
15
|
-
) as unknown as Schema.Codec<RetrieveConversationModelInput>;
|
|
16
|
-
|
|
17
|
-
// Output Schema
|
|
18
|
-
export interface RetrieveConversationModelOutput {
|
|
19
|
-
id: string;
|
|
20
|
-
}
|
|
21
|
-
export const RetrieveConversationModelOutput =
|
|
22
|
-
/*@__PURE__*/ Schema.Struct({
|
|
23
|
-
id: Schema.String,
|
|
24
|
-
}) as unknown as Schema.Codec<RetrieveConversationModelOutput>;
|
|
25
|
-
|
|
26
|
-
// The operation
|
|
27
|
-
/**
|
|
28
|
-
* Retrieve a conversation model
|
|
29
|
-
*
|
|
30
|
-
* @param modelId - The id of the conversation model to retrieve
|
|
31
|
-
*/
|
|
32
|
-
export const retrieveConversationModel = /*@__PURE__*/ API.make(() => ({
|
|
33
|
-
inputSchema: RetrieveConversationModelInput,
|
|
34
|
-
outputSchema: RetrieveConversationModelOutput,
|
|
35
|
-
errors: [NotFound] as const,
|
|
36
|
-
}));
|
|
@@ -1,95 +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 RetrieveCurationSetInput {
|
|
8
|
-
curationSetName: string;
|
|
9
|
-
}
|
|
10
|
-
export const RetrieveCurationSetInput =
|
|
11
|
-
/*@__PURE__*/ Schema.Struct({
|
|
12
|
-
curationSetName: Schema.String.pipe(T.PathParam()),
|
|
13
|
-
}).pipe(
|
|
14
|
-
T.Http({ method: "GET", path: "/curation_sets/{curationSetName}" }),
|
|
15
|
-
) as unknown as Schema.Codec<RetrieveCurationSetInput>;
|
|
16
|
-
|
|
17
|
-
// Output Schema
|
|
18
|
-
export interface RetrieveCurationSetOutput {
|
|
19
|
-
items: {
|
|
20
|
-
rule: {
|
|
21
|
-
tags?: string[];
|
|
22
|
-
query?: string;
|
|
23
|
-
match?: "exact" | "contains";
|
|
24
|
-
filter_by?: string;
|
|
25
|
-
};
|
|
26
|
-
includes?: { id: string; position: number }[];
|
|
27
|
-
excludes?: { id: string }[];
|
|
28
|
-
filter_by?: string;
|
|
29
|
-
remove_matched_tokens?: boolean;
|
|
30
|
-
metadata?: unknown;
|
|
31
|
-
sort_by?: string;
|
|
32
|
-
replace_query?: string;
|
|
33
|
-
filter_curated_hits?: boolean;
|
|
34
|
-
effective_from_ts?: number;
|
|
35
|
-
effective_to_ts?: number;
|
|
36
|
-
stop_processing?: boolean;
|
|
37
|
-
id?: string;
|
|
38
|
-
}[];
|
|
39
|
-
description?: string;
|
|
40
|
-
name: string;
|
|
41
|
-
}
|
|
42
|
-
export const RetrieveCurationSetOutput =
|
|
43
|
-
/*@__PURE__*/ Schema.Struct({
|
|
44
|
-
items: Schema.Array(
|
|
45
|
-
Schema.Struct({
|
|
46
|
-
rule: Schema.Struct({
|
|
47
|
-
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
48
|
-
query: Schema.optional(Schema.String),
|
|
49
|
-
match: Schema.optional(Schema.Literals(["exact", "contains"])),
|
|
50
|
-
filter_by: Schema.optional(Schema.String),
|
|
51
|
-
}),
|
|
52
|
-
includes: Schema.optional(
|
|
53
|
-
Schema.Array(
|
|
54
|
-
Schema.Struct({
|
|
55
|
-
id: Schema.String,
|
|
56
|
-
position: Schema.Number,
|
|
57
|
-
}),
|
|
58
|
-
),
|
|
59
|
-
),
|
|
60
|
-
excludes: Schema.optional(
|
|
61
|
-
Schema.Array(
|
|
62
|
-
Schema.Struct({
|
|
63
|
-
id: Schema.String,
|
|
64
|
-
}),
|
|
65
|
-
),
|
|
66
|
-
),
|
|
67
|
-
filter_by: Schema.optional(Schema.String),
|
|
68
|
-
remove_matched_tokens: Schema.optional(Schema.Boolean),
|
|
69
|
-
metadata: Schema.optional(Schema.Unknown),
|
|
70
|
-
sort_by: Schema.optional(Schema.String),
|
|
71
|
-
replace_query: Schema.optional(Schema.String),
|
|
72
|
-
filter_curated_hits: Schema.optional(Schema.Boolean),
|
|
73
|
-
effective_from_ts: Schema.optional(Schema.Number),
|
|
74
|
-
effective_to_ts: Schema.optional(Schema.Number),
|
|
75
|
-
stop_processing: Schema.optional(Schema.Boolean),
|
|
76
|
-
id: Schema.optional(Schema.String),
|
|
77
|
-
}),
|
|
78
|
-
),
|
|
79
|
-
description: Schema.optional(Schema.String),
|
|
80
|
-
name: Schema.String,
|
|
81
|
-
}) as unknown as Schema.Codec<RetrieveCurationSetOutput>;
|
|
82
|
-
|
|
83
|
-
// The operation
|
|
84
|
-
/**
|
|
85
|
-
* Retrieve a curation set
|
|
86
|
-
*
|
|
87
|
-
* Retrieve a specific curation set by its name
|
|
88
|
-
*
|
|
89
|
-
* @param curationSetName - The name of the curation set to retrieve
|
|
90
|
-
*/
|
|
91
|
-
export const retrieveCurationSet = /*@__PURE__*/ API.make(() => ({
|
|
92
|
-
inputSchema: RetrieveCurationSetInput,
|
|
93
|
-
outputSchema: RetrieveCurationSetOutput,
|
|
94
|
-
errors: [NotFound] as const,
|
|
95
|
-
}));
|
|
@@ -1,91 +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 RetrieveCurationSetItemInput {
|
|
8
|
-
curationSetName: string;
|
|
9
|
-
itemId: string;
|
|
10
|
-
}
|
|
11
|
-
export const RetrieveCurationSetItemInput =
|
|
12
|
-
/*@__PURE__*/ Schema.Struct({
|
|
13
|
-
curationSetName: Schema.String.pipe(T.PathParam()),
|
|
14
|
-
itemId: Schema.String.pipe(T.PathParam()),
|
|
15
|
-
}).pipe(
|
|
16
|
-
T.Http({
|
|
17
|
-
method: "GET",
|
|
18
|
-
path: "/curation_sets/{curationSetName}/items/{itemId}",
|
|
19
|
-
}),
|
|
20
|
-
) as unknown as Schema.Codec<RetrieveCurationSetItemInput>;
|
|
21
|
-
|
|
22
|
-
// Output Schema
|
|
23
|
-
export interface RetrieveCurationSetItemOutput {
|
|
24
|
-
rule: {
|
|
25
|
-
tags?: string[];
|
|
26
|
-
query?: string;
|
|
27
|
-
match?: "exact" | "contains";
|
|
28
|
-
filter_by?: string;
|
|
29
|
-
};
|
|
30
|
-
includes?: { id: string; position: number }[];
|
|
31
|
-
excludes?: { id: string }[];
|
|
32
|
-
filter_by?: string;
|
|
33
|
-
remove_matched_tokens?: boolean;
|
|
34
|
-
metadata?: unknown;
|
|
35
|
-
sort_by?: string;
|
|
36
|
-
replace_query?: string;
|
|
37
|
-
filter_curated_hits?: boolean;
|
|
38
|
-
effective_from_ts?: number;
|
|
39
|
-
effective_to_ts?: number;
|
|
40
|
-
stop_processing?: boolean;
|
|
41
|
-
id: string;
|
|
42
|
-
}
|
|
43
|
-
export const RetrieveCurationSetItemOutput =
|
|
44
|
-
/*@__PURE__*/ Schema.Struct({
|
|
45
|
-
rule: Schema.Struct({
|
|
46
|
-
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
47
|
-
query: Schema.optional(Schema.String),
|
|
48
|
-
match: Schema.optional(Schema.Literals(["exact", "contains"])),
|
|
49
|
-
filter_by: Schema.optional(Schema.String),
|
|
50
|
-
}),
|
|
51
|
-
includes: Schema.optional(
|
|
52
|
-
Schema.Array(
|
|
53
|
-
Schema.Struct({
|
|
54
|
-
id: Schema.String,
|
|
55
|
-
position: Schema.Number,
|
|
56
|
-
}),
|
|
57
|
-
),
|
|
58
|
-
),
|
|
59
|
-
excludes: Schema.optional(
|
|
60
|
-
Schema.Array(
|
|
61
|
-
Schema.Struct({
|
|
62
|
-
id: Schema.String,
|
|
63
|
-
}),
|
|
64
|
-
),
|
|
65
|
-
),
|
|
66
|
-
filter_by: Schema.optional(Schema.String),
|
|
67
|
-
remove_matched_tokens: Schema.optional(Schema.Boolean),
|
|
68
|
-
metadata: Schema.optional(Schema.Unknown),
|
|
69
|
-
sort_by: Schema.optional(Schema.String),
|
|
70
|
-
replace_query: Schema.optional(Schema.String),
|
|
71
|
-
filter_curated_hits: Schema.optional(Schema.Boolean),
|
|
72
|
-
effective_from_ts: Schema.optional(Schema.Number),
|
|
73
|
-
effective_to_ts: Schema.optional(Schema.Number),
|
|
74
|
-
stop_processing: Schema.optional(Schema.Boolean),
|
|
75
|
-
id: Schema.String,
|
|
76
|
-
}) as unknown as Schema.Codec<RetrieveCurationSetItemOutput>;
|
|
77
|
-
|
|
78
|
-
// The operation
|
|
79
|
-
/**
|
|
80
|
-
* Retrieve a curation set item
|
|
81
|
-
*
|
|
82
|
-
* Retrieve a specific curation item by its id
|
|
83
|
-
*
|
|
84
|
-
* @param curationSetName - The name of the curation set
|
|
85
|
-
* @param itemId - The id of the curation item to retrieve
|
|
86
|
-
*/
|
|
87
|
-
export const retrieveCurationSetItem = /*@__PURE__*/ API.make(() => ({
|
|
88
|
-
inputSchema: RetrieveCurationSetItemInput,
|
|
89
|
-
outputSchema: RetrieveCurationSetItemOutput,
|
|
90
|
-
errors: [NotFound] as const,
|
|
91
|
-
}));
|
|
@@ -1,87 +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 RetrieveCurationSetItemsInput {
|
|
8
|
-
curationSetName: string;
|
|
9
|
-
}
|
|
10
|
-
export const RetrieveCurationSetItemsInput =
|
|
11
|
-
/*@__PURE__*/ Schema.Struct({
|
|
12
|
-
curationSetName: Schema.String.pipe(T.PathParam()),
|
|
13
|
-
}).pipe(
|
|
14
|
-
T.Http({ method: "GET", path: "/curation_sets/{curationSetName}/items" }),
|
|
15
|
-
) as unknown as Schema.Codec<RetrieveCurationSetItemsInput>;
|
|
16
|
-
|
|
17
|
-
// Output Schema
|
|
18
|
-
export type RetrieveCurationSetItemsOutput = {
|
|
19
|
-
rule: {
|
|
20
|
-
tags?: string[];
|
|
21
|
-
query?: string;
|
|
22
|
-
match?: "exact" | "contains";
|
|
23
|
-
filter_by?: string;
|
|
24
|
-
};
|
|
25
|
-
includes?: { id: string; position: number }[];
|
|
26
|
-
excludes?: { id: string }[];
|
|
27
|
-
filter_by?: string;
|
|
28
|
-
remove_matched_tokens?: boolean;
|
|
29
|
-
metadata?: unknown;
|
|
30
|
-
sort_by?: string;
|
|
31
|
-
replace_query?: string;
|
|
32
|
-
filter_curated_hits?: boolean;
|
|
33
|
-
effective_from_ts?: number;
|
|
34
|
-
effective_to_ts?: number;
|
|
35
|
-
stop_processing?: boolean;
|
|
36
|
-
id: string;
|
|
37
|
-
}[];
|
|
38
|
-
export const RetrieveCurationSetItemsOutput =
|
|
39
|
-
/*@__PURE__*/ Schema.Array(
|
|
40
|
-
Schema.Struct({
|
|
41
|
-
rule: Schema.Struct({
|
|
42
|
-
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
43
|
-
query: Schema.optional(Schema.String),
|
|
44
|
-
match: Schema.optional(Schema.Literals(["exact", "contains"])),
|
|
45
|
-
filter_by: Schema.optional(Schema.String),
|
|
46
|
-
}),
|
|
47
|
-
includes: Schema.optional(
|
|
48
|
-
Schema.Array(
|
|
49
|
-
Schema.Struct({
|
|
50
|
-
id: Schema.String,
|
|
51
|
-
position: Schema.Number,
|
|
52
|
-
}),
|
|
53
|
-
),
|
|
54
|
-
),
|
|
55
|
-
excludes: Schema.optional(
|
|
56
|
-
Schema.Array(
|
|
57
|
-
Schema.Struct({
|
|
58
|
-
id: Schema.String,
|
|
59
|
-
}),
|
|
60
|
-
),
|
|
61
|
-
),
|
|
62
|
-
filter_by: Schema.optional(Schema.String),
|
|
63
|
-
remove_matched_tokens: Schema.optional(Schema.Boolean),
|
|
64
|
-
metadata: Schema.optional(Schema.Unknown),
|
|
65
|
-
sort_by: Schema.optional(Schema.String),
|
|
66
|
-
replace_query: Schema.optional(Schema.String),
|
|
67
|
-
filter_curated_hits: Schema.optional(Schema.Boolean),
|
|
68
|
-
effective_from_ts: Schema.optional(Schema.Number),
|
|
69
|
-
effective_to_ts: Schema.optional(Schema.Number),
|
|
70
|
-
stop_processing: Schema.optional(Schema.Boolean),
|
|
71
|
-
id: Schema.String,
|
|
72
|
-
}),
|
|
73
|
-
) as unknown as Schema.Codec<RetrieveCurationSetItemsOutput>;
|
|
74
|
-
|
|
75
|
-
// The operation
|
|
76
|
-
/**
|
|
77
|
-
* List items in a curation set
|
|
78
|
-
*
|
|
79
|
-
* Retrieve all curation items in a set
|
|
80
|
-
*
|
|
81
|
-
* @param curationSetName - The name of the curation set to retrieve items for
|
|
82
|
-
*/
|
|
83
|
-
export const retrieveCurationSetItems = /*@__PURE__*/ API.make(() => ({
|
|
84
|
-
inputSchema: RetrieveCurationSetItemsInput,
|
|
85
|
-
outputSchema: RetrieveCurationSetItemsOutput,
|
|
86
|
-
errors: [NotFound] as const,
|
|
87
|
-
}));
|