@distilled.cloud/typesense 0.30.2 → 1.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/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,64 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import * as Redacted from "effect/Redacted";
|
|
3
|
-
export interface GetCollectionsInput {
|
|
4
|
-
getCollectionsParameters?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const GetCollectionsInput: Schema.Codec<GetCollectionsInput>;
|
|
7
|
-
export type GetCollectionsOutput = {
|
|
8
|
-
name: string;
|
|
9
|
-
fields: {
|
|
10
|
-
name: string;
|
|
11
|
-
type: string;
|
|
12
|
-
optional?: boolean;
|
|
13
|
-
facet?: boolean;
|
|
14
|
-
index?: boolean;
|
|
15
|
-
locale?: string;
|
|
16
|
-
sort?: boolean;
|
|
17
|
-
infix?: boolean;
|
|
18
|
-
reference?: string;
|
|
19
|
-
async_reference?: boolean;
|
|
20
|
-
num_dim?: number;
|
|
21
|
-
drop?: boolean;
|
|
22
|
-
store?: boolean;
|
|
23
|
-
vec_dist?: string;
|
|
24
|
-
range_index?: boolean;
|
|
25
|
-
stem?: boolean;
|
|
26
|
-
stem_dictionary?: string;
|
|
27
|
-
token_separators?: string[];
|
|
28
|
-
symbols_to_index?: string[];
|
|
29
|
-
embed?: {
|
|
30
|
-
from: string[];
|
|
31
|
-
model_config: {
|
|
32
|
-
model_name: string;
|
|
33
|
-
api_key?: Redacted.Redacted<string>;
|
|
34
|
-
url?: string;
|
|
35
|
-
access_token?: Redacted.Redacted<string>;
|
|
36
|
-
refresh_token?: Redacted.Redacted<string>;
|
|
37
|
-
client_id?: string;
|
|
38
|
-
client_secret?: Redacted.Redacted<string>;
|
|
39
|
-
project_id?: string;
|
|
40
|
-
indexing_prefix?: string;
|
|
41
|
-
query_prefix?: string;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
}[];
|
|
45
|
-
default_sorting_field?: string;
|
|
46
|
-
token_separators?: string[];
|
|
47
|
-
synonym_sets?: string[];
|
|
48
|
-
enable_nested_fields?: boolean;
|
|
49
|
-
symbols_to_index?: string[];
|
|
50
|
-
voice_query_model?: {
|
|
51
|
-
model_name?: string;
|
|
52
|
-
};
|
|
53
|
-
metadata?: unknown;
|
|
54
|
-
num_documents: number;
|
|
55
|
-
created_at: number;
|
|
56
|
-
}[];
|
|
57
|
-
export declare const GetCollectionsOutput: Schema.Codec<GetCollectionsOutput>;
|
|
58
|
-
/**
|
|
59
|
-
* List all collections
|
|
60
|
-
*
|
|
61
|
-
* Returns a summary of all your collections. The collections are returned sorted by creation date, with the most recent collections appearing first.
|
|
62
|
-
*/
|
|
63
|
-
export declare const getCollections: import("@distilled.cloud/core/client").OperationMethod<GetCollectionsInput, GetCollectionsOutput, never, import("../credentials.ts").Credentials, never>;
|
|
64
|
-
//# sourceMappingURL=getCollections.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getCollections.d.ts","sourceRoot":"","sources":["../../src/operations/getCollections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,KAAK,QAAQ,MAAM,iBAAiB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E,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;gBAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;gBACnB,aAAa,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;gBAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;gBACpB,eAAe,CAAC,EAAE,MAAM,CAAC;gBACzB,YAAY,CAAC,EAAE,MAAM,CAAC;aACvB,CAAC;SACH,CAAC;KACH,EAAE,CAAC;IACJ,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,iBAAiB,CAAC,EAAE;QAAE,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;CACpB,EAAE,CAAC;AACJ,eAAO,MAAM,oBAAoB,EAyDjB,MAAM,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;AAGnD;;;;GAIG;AACH,eAAO,MAAM,cAAc,0JAGxB,CAAC"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.js";
|
|
3
|
-
import * as T from "../traits.js";
|
|
4
|
-
import { SensitiveOutputString } from "../sensitive.js";
|
|
5
|
-
import * as Redacted from "effect/Redacted";
|
|
6
|
-
export const GetCollectionsInput = /*@__PURE__*/ Schema.Struct({
|
|
7
|
-
getCollectionsParameters: Schema.optional(Schema.String),
|
|
8
|
-
}).pipe(T.Http({ method: "GET", path: "/collections" }));
|
|
9
|
-
export const GetCollectionsOutput = /*@__PURE__*/ Schema.Array(Schema.Struct({
|
|
10
|
-
name: Schema.String,
|
|
11
|
-
fields: Schema.Array(Schema.Struct({
|
|
12
|
-
name: Schema.String,
|
|
13
|
-
type: Schema.String,
|
|
14
|
-
optional: Schema.optional(Schema.Boolean),
|
|
15
|
-
facet: Schema.optional(Schema.Boolean),
|
|
16
|
-
index: Schema.optional(Schema.Boolean),
|
|
17
|
-
locale: Schema.optional(Schema.String),
|
|
18
|
-
sort: Schema.optional(Schema.Boolean),
|
|
19
|
-
infix: Schema.optional(Schema.Boolean),
|
|
20
|
-
reference: Schema.optional(Schema.String),
|
|
21
|
-
async_reference: Schema.optional(Schema.Boolean),
|
|
22
|
-
num_dim: Schema.optional(Schema.Number),
|
|
23
|
-
drop: Schema.optional(Schema.Boolean),
|
|
24
|
-
store: Schema.optional(Schema.Boolean),
|
|
25
|
-
vec_dist: Schema.optional(Schema.String),
|
|
26
|
-
range_index: Schema.optional(Schema.Boolean),
|
|
27
|
-
stem: Schema.optional(Schema.Boolean),
|
|
28
|
-
stem_dictionary: Schema.optional(Schema.String),
|
|
29
|
-
token_separators: Schema.optional(Schema.Array(Schema.String)),
|
|
30
|
-
symbols_to_index: Schema.optional(Schema.Array(Schema.String)),
|
|
31
|
-
embed: Schema.optional(Schema.Struct({
|
|
32
|
-
from: Schema.Array(Schema.String),
|
|
33
|
-
model_config: Schema.Struct({
|
|
34
|
-
model_name: Schema.String,
|
|
35
|
-
api_key: Schema.optional(SensitiveOutputString),
|
|
36
|
-
url: Schema.optional(Schema.String),
|
|
37
|
-
access_token: Schema.optional(SensitiveOutputString),
|
|
38
|
-
refresh_token: Schema.optional(SensitiveOutputString),
|
|
39
|
-
client_id: Schema.optional(Schema.String),
|
|
40
|
-
client_secret: Schema.optional(SensitiveOutputString),
|
|
41
|
-
project_id: Schema.optional(Schema.String),
|
|
42
|
-
indexing_prefix: Schema.optional(Schema.String),
|
|
43
|
-
query_prefix: Schema.optional(Schema.String),
|
|
44
|
-
}),
|
|
45
|
-
})),
|
|
46
|
-
})),
|
|
47
|
-
default_sorting_field: Schema.optional(Schema.String),
|
|
48
|
-
token_separators: Schema.optional(Schema.Array(Schema.String)),
|
|
49
|
-
synonym_sets: Schema.optional(Schema.Array(Schema.String)),
|
|
50
|
-
enable_nested_fields: Schema.optional(Schema.Boolean),
|
|
51
|
-
symbols_to_index: Schema.optional(Schema.Array(Schema.String)),
|
|
52
|
-
voice_query_model: Schema.optional(Schema.Struct({
|
|
53
|
-
model_name: Schema.optional(Schema.String),
|
|
54
|
-
})),
|
|
55
|
-
metadata: Schema.optional(Schema.Unknown),
|
|
56
|
-
num_documents: Schema.Number,
|
|
57
|
-
created_at: Schema.Number,
|
|
58
|
-
}));
|
|
59
|
-
// The operation
|
|
60
|
-
/**
|
|
61
|
-
* List all collections
|
|
62
|
-
*
|
|
63
|
-
* Returns a summary of all your collections. The collections are returned sorted by creation date, with the most recent collections appearing first.
|
|
64
|
-
*/
|
|
65
|
-
export const getCollections = /*@__PURE__*/ API.make(() => ({
|
|
66
|
-
inputSchema: GetCollectionsInput,
|
|
67
|
-
outputSchema: GetCollectionsOutput,
|
|
68
|
-
}));
|
|
69
|
-
//# sourceMappingURL=getCollections.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getCollections.js","sourceRoot":"","sources":["../../src/operations/getCollections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAM5C,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC7D,wBAAwB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACzD,CAAC,CAAC,IAAI,CACL,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AQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACrD,gBAAgB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC9D,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC1D,oBAAoB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;IACrD,gBAAgB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC9D,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAChC,MAAM,CAAC,MAAM,CAAC;QACZ,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KAC3C,CAAC,CACH;IACD,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;IACzC,aAAa,EAAE,MAAM,CAAC,MAAM;IAC5B,UAAU,EAAE,MAAM,CAAC,MAAM;CAC1B,CAAC,CAC8C,CAAC;AAEnD,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1D,WAAW,EAAE,mBAAmB;IAChC,YAAY,EAAE,oBAAoB;CACnC,CAAC,CAAC,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { NotFound } from "../errors.ts";
|
|
3
|
-
export interface GetDocumentInput {
|
|
4
|
-
collectionName: string;
|
|
5
|
-
documentId: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const GetDocumentInput: Schema.Codec<GetDocumentInput>;
|
|
8
|
-
export type GetDocumentOutput = unknown;
|
|
9
|
-
export declare const GetDocumentOutput: Schema.Codec<GetDocumentOutput>;
|
|
10
|
-
/**
|
|
11
|
-
* Retrieve a document
|
|
12
|
-
*
|
|
13
|
-
* Fetch an individual document from a collection by using its ID.
|
|
14
|
-
*
|
|
15
|
-
* @param collectionName - The name of the collection to search for the document under
|
|
16
|
-
* @param documentId - The Document ID
|
|
17
|
-
*/
|
|
18
|
-
export declare const getDocument: import("@distilled.cloud/core/client").OperationMethod<GetDocumentInput, unknown, NotFound, import("../credentials.ts").Credentials, never>;
|
|
19
|
-
//# sourceMappingURL=getDocument.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getDocument.d.ts","sourceRoot":"","sources":["../../src/operations/getDocument.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,MAAM,WAAW,gBAAgB;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;CACpB;AACD,eAAO,MAAM,gBAAgB,EAQb,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;AAG/C,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC;AACxC,eAAO,MAAM,iBAAiB,EACe,MAAM,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;AAG7E;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,6IAIrB,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.js";
|
|
3
|
-
import * as T from "../traits.js";
|
|
4
|
-
import { NotFound } from "../errors.js";
|
|
5
|
-
export const GetDocumentInput = /*@__PURE__*/ Schema.Struct({
|
|
6
|
-
collectionName: Schema.String.pipe(T.PathParam()),
|
|
7
|
-
documentId: Schema.String.pipe(T.PathParam()),
|
|
8
|
-
}).pipe(T.Http({
|
|
9
|
-
method: "GET",
|
|
10
|
-
path: "/collections/{collectionName}/documents/{documentId}",
|
|
11
|
-
}));
|
|
12
|
-
export const GetDocumentOutput =
|
|
13
|
-
/*@__PURE__*/ Schema.Unknown;
|
|
14
|
-
// The operation
|
|
15
|
-
/**
|
|
16
|
-
* Retrieve a document
|
|
17
|
-
*
|
|
18
|
-
* Fetch an individual document from a collection by using its ID.
|
|
19
|
-
*
|
|
20
|
-
* @param collectionName - The name of the collection to search for the document under
|
|
21
|
-
* @param documentId - The Document ID
|
|
22
|
-
*/
|
|
23
|
-
export const getDocument = /*@__PURE__*/ API.make(() => ({
|
|
24
|
-
inputSchema: GetDocumentInput,
|
|
25
|
-
outputSchema: GetDocumentOutput,
|
|
26
|
-
errors: [NotFound],
|
|
27
|
-
}));
|
|
28
|
-
//# sourceMappingURL=getDocument.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getDocument.js","sourceRoot":"","sources":["../../src/operations/getDocument.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAOxC,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1D,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACjD,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAC9C,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,sDAAsD;CAC7D,CAAC,CAC0C,CAAC;AAI/C,MAAM,CAAC,MAAM,iBAAiB;AAC5B,aAAa,CAAC,MAAM,CAAC,OAAqD,CAAC;AAE7E,gBAAgB;AAChB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACvD,WAAW,EAAE,gBAAgB;IAC7B,YAAY,EAAE,iBAAiB;IAC/B,MAAM,EAAE,CAAC,QAAQ,CAAU;CAC5B,CAAC,CAAC,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { NotFound } from "../errors.ts";
|
|
3
|
-
export interface GetKeyInput {
|
|
4
|
-
keyId: number;
|
|
5
|
-
}
|
|
6
|
-
export declare const GetKeyInput: Schema.Codec<GetKeyInput>;
|
|
7
|
-
export interface GetKeyOutput {
|
|
8
|
-
value?: string;
|
|
9
|
-
description: string;
|
|
10
|
-
actions: string[];
|
|
11
|
-
collections: string[];
|
|
12
|
-
expires_at?: number;
|
|
13
|
-
id?: number;
|
|
14
|
-
value_prefix?: string;
|
|
15
|
-
}
|
|
16
|
-
export declare const GetKeyOutput: Schema.Codec<GetKeyOutput>;
|
|
17
|
-
/**
|
|
18
|
-
* Retrieve (metadata about) a key
|
|
19
|
-
*
|
|
20
|
-
* Retrieve (metadata about) a key. Only the key prefix is returned when you retrieve a key. Due to security reasons, only the create endpoint returns the full API key.
|
|
21
|
-
*
|
|
22
|
-
* @param keyId - The ID of the key to retrieve
|
|
23
|
-
*/
|
|
24
|
-
export declare const getKey: import("@distilled.cloud/core/client").OperationMethod<GetKeyInput, GetKeyOutput, NotFound, import("../credentials.ts").Credentials, never>;
|
|
25
|
-
//# sourceMappingURL=getKey.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getKey.d.ts","sourceRoot":"","sources":["../../src/operations/getKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf;AACD,eAAO,MAAM,WAAW,EAIR,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;AAG1C,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AACD,eAAO,MAAM,YAAY,EAQR,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;AAG5C;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,6IAIhB,CAAC"}
|
package/lib/operations/getKey.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.js";
|
|
3
|
-
import * as T from "../traits.js";
|
|
4
|
-
import { NotFound } from "../errors.js";
|
|
5
|
-
export const GetKeyInput = /*@__PURE__*/ Schema.Struct({
|
|
6
|
-
keyId: Schema.Number.pipe(T.PathParam()),
|
|
7
|
-
}).pipe(T.Http({ method: "GET", path: "/keys/{keyId}" }));
|
|
8
|
-
export const GetKeyOutput = /*@__PURE__*/ Schema.Struct({
|
|
9
|
-
value: Schema.optional(Schema.String),
|
|
10
|
-
description: Schema.String,
|
|
11
|
-
actions: Schema.Array(Schema.String),
|
|
12
|
-
collections: Schema.Array(Schema.String),
|
|
13
|
-
expires_at: Schema.optional(Schema.Number),
|
|
14
|
-
id: Schema.optional(Schema.Number),
|
|
15
|
-
value_prefix: Schema.optional(Schema.String),
|
|
16
|
-
});
|
|
17
|
-
// The operation
|
|
18
|
-
/**
|
|
19
|
-
* Retrieve (metadata about) a key
|
|
20
|
-
*
|
|
21
|
-
* Retrieve (metadata about) a key. Only the key prefix is returned when you retrieve a key. Due to security reasons, only the create endpoint returns the full API key.
|
|
22
|
-
*
|
|
23
|
-
* @param keyId - The ID of the key to retrieve
|
|
24
|
-
*/
|
|
25
|
-
export const getKey = /*@__PURE__*/ API.make(() => ({
|
|
26
|
-
inputSchema: GetKeyInput,
|
|
27
|
-
outputSchema: GetKeyOutput,
|
|
28
|
-
errors: [NotFound],
|
|
29
|
-
}));
|
|
30
|
-
//# sourceMappingURL=getKey.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getKey.js","sourceRoot":"","sources":["../../src/operations/getKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAMxC,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACrD,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CACzC,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CACT,CAAC;AAY1C,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACtD,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACrC,WAAW,EAAE,MAAM,CAAC,MAAM;IAC1B,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1C,EAAE,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAClC,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CAC7C,CAA0C,CAAC;AAE5C,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAClD,WAAW,EAAE,WAAW;IACxB,YAAY,EAAE,YAAY;IAC1B,MAAM,EAAE,CAAC,QAAQ,CAAU;CAC5B,CAAC,CAAC,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
export interface GetKeysInput {
|
|
3
|
-
}
|
|
4
|
-
export declare const GetKeysInput: Schema.Codec<GetKeysInput>;
|
|
5
|
-
export interface GetKeysOutput {
|
|
6
|
-
keys: {
|
|
7
|
-
value?: string;
|
|
8
|
-
description: string;
|
|
9
|
-
actions: string[];
|
|
10
|
-
collections: string[];
|
|
11
|
-
expires_at?: number;
|
|
12
|
-
id?: number;
|
|
13
|
-
value_prefix?: string;
|
|
14
|
-
}[];
|
|
15
|
-
}
|
|
16
|
-
export declare const GetKeysOutput: Schema.Codec<GetKeysOutput>;
|
|
17
|
-
/**
|
|
18
|
-
* Retrieve (metadata about) all keys.
|
|
19
|
-
*/
|
|
20
|
-
export declare const getKeys: import("@distilled.cloud/core/client").OperationMethod<GetKeysInput, GetKeysOutput, never, import("../credentials.ts").Credentials, never>;
|
|
21
|
-
//# sourceMappingURL=getKeys.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getKeys.d.ts","sourceRoot":"","sources":["../../src/operations/getKeys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,YAAY;CAAG;AAChC,eAAO,MAAM,YAAY,EAET,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;AAG3C,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE;QACJ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,MAAM,EAAE,CAAC;QAClB,WAAW,EAAE,MAAM,EAAE,CAAC;QACtB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,EAAE,CAAC;CACL;AACD,eAAO,MAAM,aAAa,EAYT,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;AAG7C;;GAEG;AACH,eAAO,MAAM,OAAO,4IAGjB,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.js";
|
|
3
|
-
import * as T from "../traits.js";
|
|
4
|
-
export const GetKeysInput = /*@__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/keys" }));
|
|
5
|
-
export const GetKeysOutput = /*@__PURE__*/ Schema.Struct({
|
|
6
|
-
keys: Schema.Array(Schema.Struct({
|
|
7
|
-
value: Schema.optional(Schema.String),
|
|
8
|
-
description: Schema.String,
|
|
9
|
-
actions: Schema.Array(Schema.String),
|
|
10
|
-
collections: Schema.Array(Schema.String),
|
|
11
|
-
expires_at: Schema.optional(Schema.Number),
|
|
12
|
-
id: Schema.optional(Schema.Number),
|
|
13
|
-
value_prefix: Schema.optional(Schema.String),
|
|
14
|
-
})),
|
|
15
|
-
});
|
|
16
|
-
// The operation
|
|
17
|
-
/**
|
|
18
|
-
* Retrieve (metadata about) all keys.
|
|
19
|
-
*/
|
|
20
|
-
export const getKeys = /*@__PURE__*/ API.make(() => ({
|
|
21
|
-
inputSchema: GetKeysInput,
|
|
22
|
-
outputSchema: GetKeysOutput,
|
|
23
|
-
}));
|
|
24
|
-
//# sourceMappingUR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aAAa;CAC5B,CAAC,CAAC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
export interface GetSchemaChangesInput {
|
|
3
|
-
}
|
|
4
|
-
export declare const GetSchemaChangesInput: Schema.Codec<GetSchemaChangesInput>;
|
|
5
|
-
export type GetSchemaChangesOutput = {
|
|
6
|
-
collection?: string;
|
|
7
|
-
validated_docs?: number;
|
|
8
|
-
altered_docs?: number;
|
|
9
|
-
}[];
|
|
10
|
-
export declare const GetSchemaChangesOutput: Schema.Codec<GetSchemaChangesOutput>;
|
|
11
|
-
/**
|
|
12
|
-
* Get the status of in-progress schema change operations
|
|
13
|
-
*
|
|
14
|
-
* Returns the status of any ongoing schema change operations. If no schema changes are in progress, returns an empty response.
|
|
15
|
-
*/
|
|
16
|
-
export declare const getSchemaChanges: import("@distilled.cloud/core/client").OperationMethod<GetSchemaChangesInput, GetSchemaChangesOutput, never, import("../credentials.ts").Credentials, never>;
|
|
17
|
-
//# sourceMappingURL=getSchemaChanges.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getSchemaChanges.d.ts","sourceRoot":"","sources":["../../src/operations/getSchemaChanges.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,qBAAqB;CAAG;AACzC,eAAO,MAAM,qBAAqB,EAElB,MAAM,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;AAGpD,MAAM,MAAM,sBAAsB,GAAG;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,EAAE,CAAC;AACJ,eAAO,MAAM,sBAAsB,EAMnB,MAAM,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;AAGrD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,8JAG1B,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.js";
|
|
3
|
-
import * as T from "../traits.js";
|
|
4
|
-
export const GetSchemaChangesInput = /*@__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/operations/schema_changes" }));
|
|
5
|
-
export const GetSchemaChangesOutput = /*@__PURE__*/ Schema.Array(Schema.Struct({
|
|
6
|
-
collection: Schema.optional(Schema.String),
|
|
7
|
-
validated_docs: Schema.optional(Schema.Number),
|
|
8
|
-
altered_docs: Schema.optional(Schema.Number),
|
|
9
|
-
}));
|
|
10
|
-
// The operation
|
|
11
|
-
/**
|
|
12
|
-
* Get the status of in-progress schema change operations
|
|
13
|
-
*
|
|
14
|
-
* Returns the status of any ongoing schema change operations. If no schema changes are in progress, returns an empty response.
|
|
15
|
-
*/
|
|
16
|
-
export const getSchemaChanges = /*@__PURE__*/ API.make(() => ({
|
|
17
|
-
inputSchema: GetSchemaChangesInput,
|
|
18
|
-
outputSchema: GetSchemaChangesOutput,
|
|
19
|
-
}));
|
|
20
|
-
//# sourceMappingURL=getSchemaChanges.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getSchemaChanges.js","sourceRoot":"","sources":["../../src/operations/getSchemaChanges.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAIlC,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CACvE,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,4BAA4B,EAAE,CAAC,CACZ,CAAC;AAQpD,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,MAAM,CAAC,KAAK,CAC9D,MAAM,CAAC,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1C,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC9C,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CAC7C,CAAC,CACgD,CAAC;AAErD,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC5D,WAAW,EAAE,qBAAqB;IAClC,YAAY,EAAE,sBAAsB;CACrC,CAAC,CAAC,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { NotFound } from "../errors.ts";
|
|
3
|
-
export interface GetStemmingDictionaryInput {
|
|
4
|
-
dictionaryId: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const GetStemmingDictionaryInput: Schema.Codec<GetStemmingDictionaryInput>;
|
|
7
|
-
export interface GetStemmingDictionaryOutput {
|
|
8
|
-
id: string;
|
|
9
|
-
words: {
|
|
10
|
-
word: string;
|
|
11
|
-
root: string;
|
|
12
|
-
}[];
|
|
13
|
-
}
|
|
14
|
-
export declare const GetStemmingDictionaryOutput: Schema.Codec<GetStemmingDictionaryOutput>;
|
|
15
|
-
/**
|
|
16
|
-
* Retrieve a stemming dictionary
|
|
17
|
-
*
|
|
18
|
-
* Fetch details of a specific stemming dictionary.
|
|
19
|
-
*
|
|
20
|
-
* @param dictionaryId - The ID of the dictionary to retrieve
|
|
21
|
-
*/
|
|
22
|
-
export declare const getStemmingDictionary: import("@distilled.cloud/core/client").OperationMethod<GetStemmingDictionaryInput, GetStemmingDictionaryOutput, NotFound, import("../credentials.ts").Credentials, never>;
|
|
23
|
-
//# sourceMappingURL=getStemmingDictionary.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getStemmingDictionary.d.ts","sourceRoot":"","sources":["../../src/operations/getStemmingDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,MAAM,WAAW,0BAA0B;IACzC,YAAY,EAAE,MAAM,CAAC;CACtB;AACD,eAAO,MAAM,0BAA0B,EAKrB,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;AAG3D,MAAM,WAAW,2BAA2B;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACzC;AACD,eAAO,MAAM,2BAA2B,EASrB,MAAM,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC;AAG7D;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,2KAI/B,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.js";
|
|
3
|
-
import * as T from "../traits.js";
|
|
4
|
-
import { NotFound } from "../errors.js";
|
|
5
|
-
export const GetStemmingDictionaryInput =
|
|
6
|
-
/*@__PURE__*/ Schema.Struct({
|
|
7
|
-
dictionaryId: Schema.String.pipe(T.PathParam()),
|
|
8
|
-
}).pipe(T.Http({ method: "GET", path: "/stemming/dictionaries/{dictionaryId}" }));
|
|
9
|
-
export const GetStemmingDictionaryOutput =
|
|
10
|
-
/*@__PURE__*/ Schema.Struct({
|
|
11
|
-
id: Schema.String,
|
|
12
|
-
words: Schema.Array(Schema.Struct({
|
|
13
|
-
word: Schema.String,
|
|
14
|
-
root: Schema.String,
|
|
15
|
-
})),
|
|
16
|
-
});
|
|
17
|
-
// The operation
|
|
18
|
-
/**
|
|
19
|
-
* Retrieve a stemming dictionary
|
|
20
|
-
*
|
|
21
|
-
* Fetch details of a specific stemming dictionary.
|
|
22
|
-
*
|
|
23
|
-
* @param dictionaryId - The ID of the dictionary to retrieve
|
|
24
|
-
*/
|
|
25
|
-
export const getStemmingDictionary = /*@__PURE__*/ API.make(() => ({
|
|
26
|
-
inputSchema: GetStemmingDictionaryInput,
|
|
27
|
-
outputSchema: GetStemmingDictionaryOutput,
|
|
28
|
-
errors: [NotFound],
|
|
29
|
-
}));
|
|
30
|
-
//# sourceMappingURL=getStemmingDictionary.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getStemmingDictionary.js","sourceRoot":"","sources":["../../src/operations/getStemmingDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAMxC,MAAM,CAAC,MAAM,0BAA0B;AACrC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAChD,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,uCAAuC,EAAE,CAAC,CAClB,CAAC;AAO3D,MAAM,CAAC,MAAM,2BAA2B;AACtC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,EAAE,EAAE,MAAM,CAAC,MAAM;IACjB,KAAK,EAAE,MAAM,CAAC,KAAK,CACjB,MAAM,CAAC,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,IAAI,EAAE,MAAM,CAAC,MAAM;KACpB,CAAC,CACH;CACF,CAAyD,CAAC;AAE7D,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACjE,WAAW,EAAE,0BAA0B;IACvC,YAAY,EAAE,2BAA2B;IACzC,MAAM,EAAE,CAAC,QAAQ,CAAU;CAC5B,CAAC,CAAC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
export interface HealthInput {
|
|
3
|
-
}
|
|
4
|
-
export declare const HealthInput: Schema.Codec<HealthInput>;
|
|
5
|
-
export interface HealthOutput {
|
|
6
|
-
ok: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const HealthOutput: Schema.Codec<HealthOutput>;
|
|
9
|
-
/**
|
|
10
|
-
* Checks if Typesense server is ready to accept requests.
|
|
11
|
-
*/
|
|
12
|
-
export declare const health: import("@distilled.cloud/core/client").OperationMethod<HealthInput, HealthOutput, never, import("../credentials.ts").Credentials, never>;
|
|
13
|
-
//# sourceMappingURL=health.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"health.d.ts","sourceRoot":"","sources":["../../src/operations/health.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,WAAW;CAAG;AAC/B,eAAO,MAAM,WAAW,EAER,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;AAG1C,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,OAAO,CAAC;CACb;AACD,eAAO,MAAM,YAAY,EAER,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;AAG5C;;GAEG;AACH,eAAO,MAAM,MAAM,0IAGhB,CAAC"}
|
package/lib/operations/health.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.js";
|
|
3
|
-
import * as T from "../traits.js";
|
|
4
|
-
export const HealthInput = /*@__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "GET", path: "/health" }));
|
|
5
|
-
export const HealthOutput = /*@__PURE__*/ Schema.Struct({
|
|
6
|
-
ok: Schema.Boolean,
|
|
7
|
-
});
|
|
8
|
-
// The operation
|
|
9
|
-
/**
|
|
10
|
-
* Checks if Typesense server is ready to accept requests.
|
|
11
|
-
*/
|
|
12
|
-
export const health = /*@__PURE__*/ API.make(() => ({
|
|
13
|
-
inputSchema: HealthInput,
|
|
14
|
-
outputSchema: HealthOutput,
|
|
15
|
-
}));
|
|
16
|
-
//# sourceMappingURL=health.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"health.js","sourceRoot":"","sources":["../../src/operations/health.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAIlC,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CAC7D,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CACH,CAAC;AAM1C,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACtD,EAAE,EAAE,MAAM,CAAC,OAAO;CACnB,CAA0C,CAAC;AAE5C,gBAAgB;AAChB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAClD,WAAW,EAAE,WAAW;IACxB,YAAY,EAAE,YAAY;CAC3B,CAAC,CAAC,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { BadRequest, NotFound } from "../errors.ts";
|
|
3
|
-
export interface ImportDocumentsInput {
|
|
4
|
-
collectionName: string;
|
|
5
|
-
importDocumentsParameters?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const ImportDocumentsInput: Schema.Codec<ImportDocumentsInput>;
|
|
8
|
-
export type ImportDocumentsOutput = void;
|
|
9
|
-
export declare const ImportDocumentsOutput: Schema.Codec<ImportDocumentsOutput>;
|
|
10
|
-
/**
|
|
11
|
-
* Import documents into a collection
|
|
12
|
-
*
|
|
13
|
-
* The documents to be imported must be formatted in a newline delimited JSON structure. You can feed the output file from a Typesense export operation directly as import.
|
|
14
|
-
*
|
|
15
|
-
* @param collectionName - The name of the collection
|
|
16
|
-
*/
|
|
17
|
-
export declare const importDocuments: import("@distilled.cloud/core/client").OperationMethod<ImportDocumentsInput, void, BadRequest | NotFound, import("../credentials.ts").Credentials, never>;
|
|
18
|
-
//# sourceMappingURL=importDocuments.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"importDocuments.d.ts","sourceRoot":"","sources":["../../src/operations/importDocuments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGpD,MAAM,WAAW,oBAAoB;IACnC,cAAc,EAAE,MAAM,CAAC;IACvB,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACpC;AACD,eAAO,MAAM,oBAAoB,EAQjB,MAAM,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;AAGnD,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC;AACzC,eAAO,MAAM,qBAAqB,EACQ,MAAM,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;AAG9E;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,2JAIzB,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.js";
|
|
3
|
-
import * as T from "../traits.js";
|
|
4
|
-
import { BadRequest, NotFound } from "../errors.js";
|
|
5
|
-
export const ImportDocumentsInput = /*@__PURE__*/ Schema.Struct({
|
|
6
|
-
collectionName: Schema.String.pipe(T.PathParam()),
|
|
7
|
-
importDocumentsParameters: Schema.optional(Schema.String),
|
|
8
|
-
}).pipe(T.Http({
|
|
9
|
-
method: "POST",
|
|
10
|
-
path: "/collections/{collectionName}/documents/import",
|
|
11
|
-
}));
|
|
12
|
-
export const ImportDocumentsOutput =
|
|
13
|
-
/*@__PURE__*/ Schema.Void;
|
|
14
|
-
// The operation
|
|
15
|
-
/**
|
|
16
|
-
* Import documents into a collection
|
|
17
|
-
*
|
|
18
|
-
* The documents to be imported must be formatted in a newline delimited JSON structure. You can feed the output file from a Typesense export operation directly as import.
|
|
19
|
-
*
|
|
20
|
-
* @param collectionName - The name of the collection
|
|
21
|
-
*/
|
|
22
|
-
export const importDocuments = /*@__PURE__*/ API.make(() => ({
|
|
23
|
-
inputSchema: ImportDocumentsInput,
|
|
24
|
-
outputSchema: ImportDocumentsOutput,
|
|
25
|
-
errors: [BadRequest, NotFound],
|
|
26
|
-
}));
|
|
27
|
-
//# sourceMappingURL=importDocuments.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"importDocuments.js","sourceRoot":"","sources":["../../src/operations/importDocuments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAOpD,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC9D,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACjD,yBAAyB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CAC1D,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,gDAAgD;CACvD,CAAC,CAC8C,CAAC;AAInD,MAAM,CAAC,MAAM,qBAAqB;AAChC,aAAa,CAAC,MAAM,CAAC,IAAsD,CAAC;AAE9E,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC3D,WAAW,EAAE,oBAAoB;IACjC,YAAY,EAAE,qBAAqB;IACnC,MAAM,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAU;CACxC,CAAC,CAAC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { BadRequest } from "../errors.ts";
|
|
3
|
-
export interface ImportStemmingDictionaryInput {
|
|
4
|
-
id: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const ImportStemmingDictionaryInput: Schema.Codec<ImportStemmingDictionaryInput>;
|
|
7
|
-
export type ImportStemmingDictionaryOutput = void;
|
|
8
|
-
export declare const ImportStemmingDictionaryOutput: Schema.Codec<ImportStemmingDictionaryOutput>;
|
|
9
|
-
/**
|
|
10
|
-
* Import a stemming dictionary
|
|
11
|
-
*
|
|
12
|
-
* Upload a JSONL file containing word mappings to create or update a stemming dictionary.
|
|
13
|
-
*
|
|
14
|
-
* @param id - The ID to assign to the dictionary
|
|
15
|
-
*/
|
|
16
|
-
export declare const importStemmingDictionary: import("@distilled.cloud/core/client").OperationMethod<ImportStemmingDictionaryInput, void, BadRequest, import("../credentials.ts").Credentials, never>;
|
|
17
|
-
//# sourceMappingURL=importStemmingDictionary.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"importStemmingDictionary.d.ts","sourceRoot":"","sources":["../../src/operations/importStemmingDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,MAAM,WAAW,6BAA6B;IAC5C,EAAE,EAAE,MAAM,CAAC;CACZ;AACD,eAAO,MAAM,6BAA6B,EAKxB,MAAM,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;AAG9D,MAAM,MAAM,8BAA8B,GAAG,IAAI,CAAC;AAClD,eAAO,MAAM,8BAA8B,EACD,MAAM,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;AAGvF;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,yJAIlC,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.js";
|
|
3
|
-
import * as T from "../traits.js";
|
|
4
|
-
import { BadRequest } from "../errors.js";
|
|
5
|
-
export const ImportStemmingDictionaryInput =
|
|
6
|
-
/*@__PURE__*/ Schema.Struct({
|
|
7
|
-
id: Schema.String,
|
|
8
|
-
}).pipe(T.Http({ method: "POST", path: "/stemming/dictionaries/import" }));
|
|
9
|
-
export const ImportStemmingDictionaryOutput =
|
|
10
|
-
/*@__PURE__*/ Schema.Void;
|
|
11
|
-
// The operation
|
|
12
|
-
/**
|
|
13
|
-
* Import a stemming dictionary
|
|
14
|
-
*
|
|
15
|
-
* Upload a JSONL file containing word mappings to create or update a stemming dictionary.
|
|
16
|
-
*
|
|
17
|
-
* @param id - The ID to assign to the dictionary
|
|
18
|
-
*/
|
|
19
|
-
export const importStemmingDictionary = /*@__PURE__*/ API.make(() => ({
|
|
20
|
-
inputSchema: ImportStemmingDictionaryInput,
|
|
21
|
-
outputSchema: ImportStemmingDictionaryOutput,
|
|
22
|
-
errors: [BadRequest],
|
|
23
|
-
}));
|
|
24
|
-
//# sourceMappingURL=importStemmingDictionary.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"importStemmingDictionary.js","sourceRoot":"","sources":["../../src/operations/importStemmingDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAM1C,MAAM,CAAC,MAAM,6BAA6B;AACxC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,EAAE,EAAE,MAAM,CAAC,MAAM;CAClB,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,+BAA+B,EAAE,CAAC,CACR,CAAC;AAI9D,MAAM,CAAC,MAAM,8BAA8B;AACzC,aAAa,CAAC,MAAM,CAAC,IAA+D,CAAC;AAEvF,gBAAgB;AAChB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACpE,WAAW,EAAE,6BAA6B;IAC1C,YAAY,EAAE,8BAA8B;IAC5C,MAAM,EAAE,CAAC,UAAU,CAAU;CAC9B,CAAC,CAAC,CAAC"}
|