@distilled.cloud/typesense 0.27.0 → 0.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/operations/clearCache.d.ts +8 -9
- package/lib/operations/clearCache.d.ts.map +1 -1
- package/lib/operations/clearCache.js +0 -2
- package/lib/operations/clearCache.js.map +1 -1
- package/lib/operations/compactDb.d.ts +8 -9
- package/lib/operations/compactDb.d.ts.map +1 -1
- package/lib/operations/compactDb.js +0 -2
- package/lib/operations/compactDb.js.map +1 -1
- package/lib/operations/createAnalyticsEvent.d.ts +17 -29
- package/lib/operations/createAnalyticsEvent.d.ts.map +1 -1
- package/lib/operations/createAnalyticsEvent.js +0 -2
- package/lib/operations/createAnalyticsEvent.js.map +1 -1
- package/lib/operations/createAnalyticsRule.d.ts +38 -5
- package/lib/operations/createAnalyticsRule.d.ts.map +1 -1
- package/lib/operations/createAnalyticsRule.js +49 -3
- package/lib/operations/createAnalyticsRule.js.map +1 -1
- package/lib/operations/createCollection.d.ts +102 -197
- package/lib/operations/createCollection.d.ts.map +1 -1
- package/lib/operations/createCollection.js +6 -7
- package/lib/operations/createCollection.js.map +1 -1
- package/lib/operations/createConversationModel.d.ts +18 -29
- package/lib/operations/createConversationModel.d.ts.map +1 -1
- package/lib/operations/createConversationModel.js +1 -2
- package/lib/operations/createConversationModel.js.map +1 -1
- package/lib/operations/createKey.d.ts +19 -33
- package/lib/operations/createKey.d.ts.map +1 -1
- package/lib/operations/createKey.js +0 -2
- package/lib/operations/createKey.js.map +1 -1
- package/lib/operations/createNLSearchModel.d.ts +28 -49
- package/lib/operations/createNLSearchModel.d.ts.map +1 -1
- package/lib/operations/createNLSearchModel.js +1 -2
- package/lib/operations/createNLSearchModel.js.map +1 -1
- package/lib/operations/debug.d.ts +8 -9
- package/lib/operations/debug.d.ts.map +1 -1
- package/lib/operations/debug.js +0 -2
- package/lib/operations/debug.js.map +1 -1
- package/lib/operations/deleteAlias.d.ts +10 -15
- package/lib/operations/deleteAlias.d.ts.map +1 -1
- package/lib/operations/deleteAlias.js +0 -2
- package/lib/operations/deleteAlias.js.map +1 -1
- package/lib/operations/deleteAnalyticsRule.d.ts +22 -39
- package/lib/operations/deleteAnalyticsRule.d.ts.map +1 -1
- package/lib/operations/deleteAnalyticsRule.js +0 -2
- package/lib/operations/deleteAnalyticsRule.js.map +1 -1
- package/lib/operations/deleteCollection.d.ts +57 -107
- package/lib/operations/deleteCollection.d.ts.map +1 -1
- package/lib/operations/deleteCollection.js +6 -7
- package/lib/operations/deleteCollection.js.map +1 -1
- package/lib/operations/deleteConversationModel.d.ts +9 -13
- package/lib/operations/deleteConversationModel.d.ts.map +1 -1
- package/lib/operations/deleteConversationModel.js +0 -2
- package/lib/operations/deleteConversationModel.js.map +1 -1
- package/lib/operations/deleteCurationSet.d.ts +9 -13
- package/lib/operations/deleteCurationSet.d.ts.map +1 -1
- package/lib/operations/deleteCurationSet.js +0 -2
- package/lib/operations/deleteCurationSet.js.map +1 -1
- package/lib/operations/deleteCurationSetItem.d.ts +10 -15
- package/lib/operations/deleteCurationSetItem.d.ts.map +1 -1
- package/lib/operations/deleteCurationSetItem.js +0 -2
- package/lib/operations/deleteCurationSetItem.js.map +1 -1
- package/lib/operations/deleteDocument.d.ts +8 -11
- package/lib/operations/deleteDocument.d.ts.map +1 -1
- package/lib/operations/deleteDocument.js +2 -3
- package/lib/operations/deleteDocument.js.map +1 -1
- package/lib/operations/deleteDocuments.d.ts +10 -15
- package/lib/operations/deleteDocuments.d.ts.map +1 -1
- package/lib/operations/deleteDocuments.js +0 -2
- package/lib/operations/deleteDocuments.js.map +1 -1
- package/lib/operations/deleteKey.d.ts +9 -13
- package/lib/operations/deleteKey.d.ts.map +1 -1
- package/lib/operations/deleteKey.js +0 -2
- package/lib/operations/deleteKey.js.map +1 -1
- package/lib/operations/deleteNLSearchModel.d.ts +9 -13
- package/lib/operations/deleteNLSearchModel.d.ts.map +1 -1
- package/lib/operations/deleteNLSearchModel.js +0 -2
- package/lib/operations/deleteNLSearchModel.js.map +1 -1
- package/lib/operations/deletePreset.d.ts +9 -13
- package/lib/operations/deletePreset.d.ts.map +1 -1
- package/lib/operations/deletePreset.js +0 -2
- package/lib/operations/deletePreset.js.map +1 -1
- package/lib/operations/deleteStopwordsSet.d.ts +9 -13
- package/lib/operations/deleteStopwordsSet.d.ts.map +1 -1
- package/lib/operations/deleteStopwordsSet.js +0 -2
- package/lib/operations/deleteStopwordsSet.js.map +1 -1
- package/lib/operations/deleteSynonymSet.d.ts +9 -13
- package/lib/operations/deleteSynonymSet.d.ts.map +1 -1
- package/lib/operations/deleteSynonymSet.js +0 -2
- package/lib/operations/deleteSynonymSet.js.map +1 -1
- package/lib/operations/deleteSynonymSetItem.d.ts +10 -15
- package/lib/operations/deleteSynonymSetItem.d.ts.map +1 -1
- package/lib/operations/deleteSynonymSetItem.js +0 -2
- package/lib/operations/deleteSynonymSetItem.js.map +1 -1
- package/lib/operations/exportDocuments.d.ts +8 -11
- package/lib/operations/exportDocuments.d.ts.map +1 -1
- package/lib/operations/exportDocuments.js +2 -3
- package/lib/operations/exportDocuments.js.map +1 -1
- package/lib/operations/flushAnalytics.d.ts +8 -9
- package/lib/operations/flushAnalytics.d.ts.map +1 -1
- package/lib/operations/flushAnalytics.js +0 -2
- package/lib/operations/flushAnalytics.js.map +1 -1
- package/lib/operations/getAlias.d.ts +10 -15
- package/lib/operations/getAlias.d.ts.map +1 -1
- package/lib/operations/getAlias.js +0 -2
- package/lib/operations/getAlias.js.map +1 -1
- package/lib/operations/getAliases.d.ts +11 -15
- package/lib/operations/getAliases.d.ts.map +1 -1
- package/lib/operations/getAliases.js +0 -2
- package/lib/operations/getAliases.js.map +1 -1
- package/lib/operations/getAnalyticsEvents.d.ts +20 -35
- package/lib/operations/getAnalyticsEvents.d.ts.map +1 -1
- package/lib/operations/getAnalyticsEvents.js +0 -2
- package/lib/operations/getAnalyticsEvents.js.map +1 -1
- package/lib/operations/getAnalyticsStatus.d.ts +14 -21
- package/lib/operations/getAnalyticsStatus.d.ts.map +1 -1
- package/lib/operations/getAnalyticsStatus.js +0 -2
- package/lib/operations/getAnalyticsStatus.js.map +1 -1
- package/lib/operations/getCollection.d.ts +57 -107
- package/lib/operations/getCollection.d.ts.map +1 -1
- package/lib/operations/getCollection.js +6 -7
- package/lib/operations/getCollection.js.map +1 -1
- package/lib/operations/getCollections.d.ts +57 -107
- package/lib/operations/getCollections.d.ts.map +1 -1
- package/lib/operations/getCollections.js +6 -7
- package/lib/operations/getCollections.js.map +1 -1
- package/lib/operations/getDocument.d.ts +8 -11
- package/lib/operations/getDocument.d.ts.map +1 -1
- package/lib/operations/getDocument.js +2 -3
- package/lib/operations/getDocument.js.map +1 -1
- package/lib/operations/getKey.d.ts +15 -25
- package/lib/operations/getKey.d.ts.map +1 -1
- package/lib/operations/getKey.js +0 -2
- package/lib/operations/getKey.js.map +1 -1
- package/lib/operations/getKeys.d.ts +16 -25
- package/lib/operations/getKeys.d.ts.map +1 -1
- package/lib/operations/getKeys.js +0 -2
- package/lib/operations/getKeys.js.map +1 -1
- package/lib/operations/getSchemaChanges.d.ts +10 -13
- package/lib/operations/getSchemaChanges.d.ts.map +1 -1
- package/lib/operations/getSchemaChanges.js +0 -2
- package/lib/operations/getSchemaChanges.js.map +1 -1
- package/lib/operations/getStemmingDictionary.d.ts +13 -21
- package/lib/operations/getStemmingDictionary.d.ts.map +1 -1
- package/lib/operations/getStemmingDictionary.js +0 -2
- package/lib/operations/getStemmingDictionary.js.map +1 -1
- package/lib/operations/health.d.ts +8 -9
- package/lib/operations/health.d.ts.map +1 -1
- package/lib/operations/health.js +0 -2
- package/lib/operations/health.js.map +1 -1
- package/lib/operations/importDocuments.d.ts +8 -11
- package/lib/operations/importDocuments.d.ts.map +1 -1
- package/lib/operations/importDocuments.js +2 -3
- package/lib/operations/importDocuments.js.map +1 -1
- package/lib/operations/importStemmingDictionary.d.ts +7 -9
- package/lib/operations/importStemmingDictionary.d.ts.map +1 -1
- package/lib/operations/importStemmingDictionary.js +0 -2
- package/lib/operations/importStemmingDictionary.js.map +1 -1
- package/lib/operations/indexDocument.d.ts +9 -13
- package/lib/operations/indexDocument.d.ts.map +1 -1
- package/lib/operations/indexDocument.js +2 -3
- package/lib/operations/indexDocument.js.map +1 -1
- package/lib/operations/listStemmingDictionaries.d.ts +8 -9
- package/lib/operations/listStemmingDictionaries.d.ts.map +1 -1
- package/lib/operations/listStemmingDictionaries.js +0 -2
- package/lib/operations/listStemmingDictionaries.js.map +1 -1
- package/lib/operations/multiSearch.d.ts +199 -407
- package/lib/operations/multiSearch.d.ts.map +1 -1
- package/lib/operations/multiSearch.js +0 -2
- package/lib/operations/multiSearch.js.map +1 -1
- package/lib/operations/retrieveAPIStats.d.ts +20 -33
- package/lib/operations/retrieveAPIStats.d.ts.map +1 -1
- package/lib/operations/retrieveAPIStats.js +0 -2
- package/lib/operations/retrieveAPIStats.js.map +1 -1
- package/lib/operations/retrieveAllConversationModels.d.ts +8 -9
- package/lib/operations/retrieveAllConversationModels.d.ts.map +1 -1
- package/lib/operations/retrieveAllConversationModels.js +0 -2
- package/lib/operations/retrieveAllConversationModels.js.map +1 -1
- package/lib/operations/retrieveAllNLSearchModels.d.ts +8 -9
- package/lib/operations/retrieveAllNLSearchModels.d.ts.map +1 -1
- package/lib/operations/retrieveAllNLSearchModels.js +0 -2
- package/lib/operations/retrieveAllNLSearchModels.js.map +1 -1
- package/lib/operations/retrieveAllPresets.d.ts +156 -15
- package/lib/operations/retrieveAllPresets.d.ts.map +1 -1
- package/lib/operations/retrieveAllPresets.js +0 -2
- package/lib/operations/retrieveAllPresets.js.map +1 -1
- package/lib/operations/retrieveAnalyticsRule.d.ts +22 -39
- package/lib/operations/retrieveAnalyticsRule.d.ts.map +1 -1
- package/lib/operations/retrieveAnalyticsRule.js +0 -2
- package/lib/operations/retrieveAnalyticsRule.js.map +1 -1
- package/lib/operations/retrieveAnalyticsRules.d.ts +22 -39
- package/lib/operations/retrieveAnalyticsRules.d.ts.map +1 -1
- package/lib/operations/retrieveAnalyticsRules.js +0 -2
- package/lib/operations/retrieveAnalyticsRules.js.map +1 -1
- package/lib/operations/retrieveConversationModel.d.ts +9 -13
- package/lib/operations/retrieveConversationModel.d.ts.map +1 -1
- package/lib/operations/retrieveConversationModel.js +0 -2
- package/lib/operations/retrieveConversationModel.js.map +1 -1
- package/lib/operations/retrieveCurationSet.d.ts +35 -65
- package/lib/operations/retrieveCurationSet.d.ts.map +1 -1
- package/lib/operations/retrieveCurationSet.js +0 -2
- package/lib/operations/retrieveCurationSet.js.map +1 -1
- package/lib/operations/retrieveCurationSetItem.d.ts +32 -59
- package/lib/operations/retrieveCurationSetItem.d.ts.map +1 -1
- package/lib/operations/retrieveCurationSetItem.js +0 -2
- package/lib/operations/retrieveCurationSetItem.js.map +1 -1
- package/lib/operations/retrieveCurationSetItems.d.ts +31 -57
- package/lib/operations/retrieveCurationSetItems.d.ts.map +1 -1
- package/lib/operations/retrieveCurationSetItems.js +0 -2
- package/lib/operations/retrieveCurationSetItems.js.map +1 -1
- package/lib/operations/retrieveCurationSets.d.ts +34 -61
- package/lib/operations/retrieveCurationSets.d.ts.map +1 -1
- package/lib/operations/retrieveCurationSets.js +0 -2
- package/lib/operations/retrieveCurationSets.js.map +1 -1
- package/lib/operations/retrieveMetrics.d.ts +6 -5
- package/lib/operations/retrieveMetrics.d.ts.map +1 -1
- package/lib/operations/retrieveMetrics.js +2 -3
- package/lib/operations/retrieveMetrics.js.map +1 -1
- package/lib/operations/retrieveNLSearchModel.d.ts +9 -13
- package/lib/operations/retrieveNLSearchModel.d.ts.map +1 -1
- package/lib/operations/retrieveNLSearchModel.js +0 -2
- package/lib/operations/retrieveNLSearchModel.js.map +1 -1
- package/lib/operations/retrievePreset.d.ts +155 -15
- package/lib/operations/retrievePreset.d.ts.map +1 -1
- package/lib/operations/retrievePreset.js +0 -2
- package/lib/operations/retrievePreset.js.map +1 -1
- package/lib/operations/retrieveStopwordsSet.d.ts +13 -21
- package/lib/operations/retrieveStopwordsSet.d.ts.map +1 -1
- package/lib/operations/retrieveStopwordsSet.js +0 -2
- package/lib/operations/retrieveStopwordsSet.js.map +1 -1
- package/lib/operations/retrieveStopwordsSets.d.ts +12 -17
- package/lib/operations/retrieveStopwordsSets.d.ts.map +1 -1
- package/lib/operations/retrieveStopwordsSets.js +0 -2
- package/lib/operations/retrieveStopwordsSets.js.map +1 -1
- package/lib/operations/retrieveSynonymSet.d.ts +16 -27
- package/lib/operations/retrieveSynonymSet.d.ts.map +1 -1
- package/lib/operations/retrieveSynonymSet.js +0 -2
- package/lib/operations/retrieveSynonymSet.js.map +1 -1
- package/lib/operations/retrieveSynonymSetItem.d.ts +14 -23
- package/lib/operations/retrieveSynonymSetItem.d.ts.map +1 -1
- package/lib/operations/retrieveSynonymSetItem.js +0 -2
- package/lib/operations/retrieveSynonymSetItem.js.map +1 -1
- package/lib/operations/retrieveSynonymSetItems.d.ts +13 -21
- package/lib/operations/retrieveSynonymSetItems.d.ts.map +1 -1
- package/lib/operations/retrieveSynonymSetItems.js +0 -2
- package/lib/operations/retrieveSynonymSetItems.js.map +1 -1
- package/lib/operations/retrieveSynonymSets.d.ts +15 -23
- package/lib/operations/retrieveSynonymSets.d.ts.map +1 -1
- package/lib/operations/retrieveSynonymSets.js +0 -2
- package/lib/operations/retrieveSynonymSets.js.map +1 -1
- package/lib/operations/searchCollection.d.ts +119 -247
- package/lib/operations/searchCollection.d.ts.map +1 -1
- package/lib/operations/searchCollection.js +0 -2
- package/lib/operations/searchCollection.js.map +1 -1
- package/lib/operations/takeSnapshot.d.ts +9 -13
- package/lib/operations/takeSnapshot.d.ts.map +1 -1
- package/lib/operations/takeSnapshot.js +0 -2
- package/lib/operations/takeSnapshot.js.map +1 -1
- package/lib/operations/toggleSlowRequestLog.d.ts +9 -13
- package/lib/operations/toggleSlowRequestLog.d.ts.map +1 -1
- package/lib/operations/toggleSlowRequestLog.js +0 -2
- package/lib/operations/toggleSlowRequestLog.js.map +1 -1
- package/lib/operations/updateCollection.d.ts +85 -163
- package/lib/operations/updateCollection.d.ts.map +1 -1
- package/lib/operations/updateCollection.js +10 -11
- package/lib/operations/updateCollection.js.map +1 -1
- package/lib/operations/updateConversationModel.d.ts +19 -31
- package/lib/operations/updateConversationModel.d.ts.map +1 -1
- package/lib/operations/updateConversationModel.js +1 -2
- package/lib/operations/updateConversationModel.js.map +1 -1
- package/lib/operations/updateDocument.d.ts +9 -13
- package/lib/operations/updateDocument.d.ts.map +1 -1
- package/lib/operations/updateDocument.js +2 -3
- package/lib/operations/updateDocument.js.map +1 -1
- package/lib/operations/updateDocuments.d.ts +10 -15
- package/lib/operations/updateDocuments.d.ts.map +1 -1
- package/lib/operations/updateDocuments.js +0 -2
- package/lib/operations/updateDocuments.js.map +1 -1
- package/lib/operations/updateNLSearchModel.d.ts +9 -13
- package/lib/operations/updateNLSearchModel.d.ts.map +1 -1
- package/lib/operations/updateNLSearchModel.js +0 -2
- package/lib/operations/updateNLSearchModel.js.map +1 -1
- package/lib/operations/upsertAlias.d.ts +11 -17
- package/lib/operations/upsertAlias.d.ts.map +1 -1
- package/lib/operations/upsertAlias.js +0 -2
- package/lib/operations/upsertAlias.js.map +1 -1
- package/lib/operations/upsertAnalyticsRule.d.ts +33 -61
- package/lib/operations/upsertAnalyticsRule.d.ts.map +1 -1
- package/lib/operations/upsertAnalyticsRule.js +0 -2
- package/lib/operations/upsertAnalyticsRule.js.map +1 -1
- package/lib/operations/upsertCurationSet.d.ts +61 -117
- package/lib/operations/upsertCurationSet.d.ts.map +1 -1
- package/lib/operations/upsertCurationSet.js +0 -2
- package/lib/operations/upsertCurationSet.js.map +1 -1
- package/lib/operations/upsertCurationSetItem.d.ts +55 -105
- package/lib/operations/upsertCurationSetItem.d.ts.map +1 -1
- package/lib/operations/upsertCurationSetItem.js +0 -2
- package/lib/operations/upsertCurationSetItem.js.map +1 -1
- package/lib/operations/upsertPreset.d.ts +301 -17
- package/lib/operations/upsertPreset.d.ts.map +1 -1
- package/lib/operations/upsertPreset.js +0 -2
- package/lib/operations/upsertPreset.js.map +1 -1
- package/lib/operations/upsertStopwordsSet.d.ts +13 -21
- package/lib/operations/upsertStopwordsSet.d.ts.map +1 -1
- package/lib/operations/upsertStopwordsSet.js +0 -2
- package/lib/operations/upsertStopwordsSet.js.map +1 -1
- package/lib/operations/upsertSynonymSet.d.ts +23 -41
- package/lib/operations/upsertSynonymSet.d.ts.map +1 -1
- package/lib/operations/upsertSynonymSet.js +0 -2
- package/lib/operations/upsertSynonymSet.js.map +1 -1
- package/lib/operations/upsertSynonymSetItem.d.ts +18 -31
- package/lib/operations/upsertSynonymSetItem.d.ts.map +1 -1
- package/lib/operations/upsertSynonymSetItem.js +0 -2
- package/lib/operations/upsertSynonymSetItem.js.map +1 -1
- package/lib/operations/vote.d.ts +8 -9
- package/lib/operations/vote.d.ts.map +1 -1
- package/lib/operations/vote.js +0 -2
- package/lib/operations/vote.js.map +1 -1
- package/package.json +2 -2
- package/src/operations/clearCache.ts +8 -4
- package/src/operations/compactDb.ts +8 -4
- package/src/operations/createAnalyticsEvent.ts +18 -4
- package/src/operations/createAnalyticsRule.ts +93 -4
- package/src/operations/createCollection.ts +104 -9
- package/src/operations/createConversationModel.ts +19 -6
- package/src/operations/createKey.ts +20 -4
- package/src/operations/createNLSearchModel.ts +29 -4
- package/src/operations/debug.ts +6 -4
- package/src/operations/deleteAlias.ts +11 -4
- package/src/operations/deleteAnalyticsRule.ts +23 -4
- package/src/operations/deleteCollection.ts +61 -9
- package/src/operations/deleteConversationModel.ts +8 -6
- package/src/operations/deleteCurationSet.ts +10 -4
- package/src/operations/deleteCurationSetItem.ts +9 -5
- package/src/operations/deleteDocument.ts +8 -4
- package/src/operations/deleteDocuments.ts +9 -4
- package/src/operations/deleteKey.ts +10 -4
- package/src/operations/deleteNLSearchModel.ts +10 -4
- package/src/operations/deletePreset.ts +10 -4
- package/src/operations/deleteStopwordsSet.ts +10 -4
- package/src/operations/deleteSynonymSet.ts +10 -4
- package/src/operations/deleteSynonymSetItem.ts +9 -4
- package/src/operations/exportDocuments.ts +8 -4
- package/src/operations/flushAnalytics.ts +8 -4
- package/src/operations/getAlias.ts +11 -4
- package/src/operations/getAliases.ts +8 -4
- package/src/operations/getAnalyticsEvents.ts +21 -4
- package/src/operations/getAnalyticsStatus.ts +12 -4
- package/src/operations/getCollection.ts +61 -9
- package/src/operations/getCollections.ts +61 -9
- package/src/operations/getDocument.ts +8 -4
- package/src/operations/getKey.ts +16 -4
- package/src/operations/getKeys.ts +14 -4
- package/src/operations/getSchemaChanges.ts +10 -4
- package/src/operations/getStemmingDictionary.ts +9 -5
- package/src/operations/health.ts +6 -4
- package/src/operations/importDocuments.ts +8 -4
- package/src/operations/importStemmingDictionary.ts +8 -6
- package/src/operations/indexDocument.ts +9 -4
- package/src/operations/listStemmingDictionaries.ts +6 -6
- package/src/operations/multiSearch.ts +192 -4
- package/src/operations/retrieveAPIStats.ts +20 -4
- package/src/operations/retrieveAllConversationModels.ts +4 -6
- package/src/operations/retrieveAllNLSearchModels.ts +4 -6
- package/src/operations/retrieveAllPresets.ts +159 -4
- package/src/operations/retrieveAnalyticsRule.ts +23 -5
- package/src/operations/retrieveAnalyticsRules.ts +23 -6
- package/src/operations/retrieveConversationModel.ts +10 -6
- package/src/operations/retrieveCurationSet.ts +31 -4
- package/src/operations/retrieveCurationSetItem.ts +26 -6
- package/src/operations/retrieveCurationSetItems.ts +25 -6
- package/src/operations/retrieveCurationSets.ts +27 -4
- package/src/operations/retrieveMetrics.ts +7 -4
- package/src/operations/retrieveNLSearchModel.ts +10 -5
- package/src/operations/retrievePreset.ts +158 -4
- package/src/operations/retrieveStopwordsSet.ts +10 -4
- package/src/operations/retrieveStopwordsSets.ts +6 -5
- package/src/operations/retrieveSynonymSet.ts +17 -4
- package/src/operations/retrieveSynonymSetItem.ts +13 -6
- package/src/operations/retrieveSynonymSetItems.ts +12 -6
- package/src/operations/retrieveSynonymSets.ts +13 -4
- package/src/operations/searchCollection.ts +110 -4
- package/src/operations/takeSnapshot.ts +10 -4
- package/src/operations/toggleSlowRequestLog.ts +10 -4
- package/src/operations/updateCollection.ts +138 -52
- package/src/operations/updateConversationModel.ts +20 -6
- package/src/operations/updateDocument.ts +9 -4
- package/src/operations/updateDocuments.ts +9 -4
- package/src/operations/updateNLSearchModel.ts +10 -4
- package/src/operations/upsertAlias.ts +12 -4
- package/src/operations/upsertAnalyticsRule.ts +34 -4
- package/src/operations/upsertCurationSet.ts +52 -4
- package/src/operations/upsertCurationSetItem.ts +44 -5
- package/src/operations/upsertPreset.ts +306 -4
- package/src/operations/upsertStopwordsSet.ts +14 -4
- package/src/operations/upsertSynonymSet.ts +24 -4
- package/src/operations/upsertSynonymSetItem.ts +17 -4
- package/src/operations/vote.ts +6 -4
|
@@ -1,60 +1,61 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { NotFound } from "../errors.ts";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
3
|
+
import * as Redacted from "effect/Redacted";
|
|
4
|
+
export interface GetCollectionInput {
|
|
5
|
+
collectionName: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const GetCollectionInput: Schema.Codec<GetCollectionInput>;
|
|
8
|
+
export interface GetCollectionOutput {
|
|
9
|
+
name: string;
|
|
10
|
+
fields: {
|
|
11
|
+
name: string;
|
|
12
|
+
type: string;
|
|
13
|
+
optional?: boolean;
|
|
14
|
+
facet?: boolean;
|
|
15
|
+
index?: boolean;
|
|
16
|
+
locale?: string;
|
|
17
|
+
sort?: boolean;
|
|
18
|
+
infix?: boolean;
|
|
19
|
+
reference?: string;
|
|
20
|
+
async_reference?: boolean;
|
|
21
|
+
num_dim?: number;
|
|
22
|
+
drop?: boolean;
|
|
23
|
+
store?: boolean;
|
|
24
|
+
vec_dist?: string;
|
|
25
|
+
range_index?: boolean;
|
|
26
|
+
stem?: boolean;
|
|
27
|
+
stem_dictionary?: string;
|
|
28
|
+
token_separators?: string[];
|
|
29
|
+
symbols_to_index?: string[];
|
|
30
|
+
embed?: {
|
|
31
|
+
from: string[];
|
|
32
|
+
model_config: {
|
|
33
|
+
model_name: string;
|
|
34
|
+
api_key?: Redacted.Redacted<string>;
|
|
35
|
+
url?: string;
|
|
36
|
+
access_token?: Redacted.Redacted<string>;
|
|
37
|
+
refresh_token?: Redacted.Redacted<string>;
|
|
38
|
+
client_id?: string;
|
|
39
|
+
client_secret?: Redacted.Redacted<string>;
|
|
40
|
+
project_id?: string;
|
|
41
|
+
indexing_prefix?: string;
|
|
42
|
+
query_prefix?: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
}[];
|
|
46
|
+
default_sorting_field?: string;
|
|
47
|
+
token_separators?: string[];
|
|
48
|
+
synonym_sets?: string[];
|
|
49
|
+
enable_nested_fields?: boolean;
|
|
50
|
+
symbols_to_index?: string[];
|
|
51
|
+
voice_query_model?: {
|
|
52
|
+
model_name?: string;
|
|
53
|
+
};
|
|
54
|
+
metadata?: unknown;
|
|
55
|
+
num_documents: number;
|
|
56
|
+
created_at: number;
|
|
57
|
+
}
|
|
58
|
+
export declare const GetCollectionOutput: Schema.Codec<GetCollectionOutput>;
|
|
58
59
|
/**
|
|
59
60
|
* Retrieve a single collection
|
|
60
61
|
*
|
|
@@ -62,56 +63,5 @@ export type GetCollectionOutput = typeof GetCollectionOutput.Type;
|
|
|
62
63
|
*
|
|
63
64
|
* @param collectionName - The name of the collection to retrieve
|
|
64
65
|
*/
|
|
65
|
-
export declare const getCollection: import("@distilled.cloud/core/client").OperationMethod<
|
|
66
|
-
readonly collectionName: string;
|
|
67
|
-
}, {
|
|
68
|
-
readonly name: string;
|
|
69
|
-
readonly fields: readonly {
|
|
70
|
-
readonly name: string;
|
|
71
|
-
readonly type: string;
|
|
72
|
-
readonly optional?: boolean | undefined;
|
|
73
|
-
readonly facet?: boolean | undefined;
|
|
74
|
-
readonly index?: boolean | undefined;
|
|
75
|
-
readonly locale?: string | undefined;
|
|
76
|
-
readonly sort?: boolean | undefined;
|
|
77
|
-
readonly infix?: boolean | undefined;
|
|
78
|
-
readonly reference?: string | undefined;
|
|
79
|
-
readonly async_reference?: boolean | undefined;
|
|
80
|
-
readonly num_dim?: number | undefined;
|
|
81
|
-
readonly drop?: boolean | undefined;
|
|
82
|
-
readonly store?: boolean | undefined;
|
|
83
|
-
readonly vec_dist?: string | undefined;
|
|
84
|
-
readonly range_index?: boolean | undefined;
|
|
85
|
-
readonly stem?: boolean | undefined;
|
|
86
|
-
readonly stem_dictionary?: string | undefined;
|
|
87
|
-
readonly token_separators?: readonly string[] | undefined;
|
|
88
|
-
readonly symbols_to_index?: readonly string[] | undefined;
|
|
89
|
-
readonly embed?: {
|
|
90
|
-
readonly from: readonly string[];
|
|
91
|
-
readonly model_config: {
|
|
92
|
-
readonly model_name: string;
|
|
93
|
-
readonly api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
94
|
-
readonly url?: string | undefined;
|
|
95
|
-
readonly access_token?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
96
|
-
readonly refresh_token?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
97
|
-
readonly client_id?: string | undefined;
|
|
98
|
-
readonly client_secret?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
99
|
-
readonly project_id?: string | undefined;
|
|
100
|
-
readonly indexing_prefix?: string | undefined;
|
|
101
|
-
readonly query_prefix?: string | undefined;
|
|
102
|
-
};
|
|
103
|
-
} | undefined;
|
|
104
|
-
}[];
|
|
105
|
-
readonly default_sorting_field?: string | undefined;
|
|
106
|
-
readonly token_separators?: readonly string[] | undefined;
|
|
107
|
-
readonly synonym_sets?: readonly string[] | undefined;
|
|
108
|
-
readonly enable_nested_fields?: boolean | undefined;
|
|
109
|
-
readonly symbols_to_index?: readonly string[] | undefined;
|
|
110
|
-
readonly voice_query_model?: {
|
|
111
|
-
readonly model_name?: string | undefined;
|
|
112
|
-
} | undefined;
|
|
113
|
-
readonly metadata?: unknown;
|
|
114
|
-
readonly num_documents: number;
|
|
115
|
-
readonly created_at: number;
|
|
116
|
-
}, NotFound, import("~/credentials.ts").Credentials, never>;
|
|
66
|
+
export declare const getCollection: import("@distilled.cloud/core/client").OperationMethod<GetCollectionInput, GetCollectionOutput, NotFound, import("../credentials.ts").Credentials, never>;
|
|
117
67
|
//# sourceMappingURL=getCollection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCollection.d.ts","sourceRoot":"","sources":["../../src/operations/getCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"getCollection.d.ts","sourceRoot":"","sources":["../../src/operations/getCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAE,MAA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M,CAAC,CAAC;gBACzC,aAAa,CAAC,EAAE,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;AACD,eAAO,MAAM,mBAAmB,EAuDf,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;AAGnD;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,2JAIvB,CAAC"}
|
|
@@ -2,12 +2,11 @@ import * as Schema from "effect/Schema";
|
|
|
2
2
|
import { API } from "../client.js";
|
|
3
3
|
import * as T from "../traits.js";
|
|
4
4
|
import { NotFound } from "../errors.js";
|
|
5
|
-
import {
|
|
6
|
-
|
|
5
|
+
import { SensitiveOutputString } from "../sensitive.js";
|
|
6
|
+
import * as Redacted from "effect/Redacted";
|
|
7
7
|
export const GetCollectionInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
8
|
collectionName: Schema.String.pipe(T.PathParam()),
|
|
9
9
|
}).pipe(T.Http({ method: "GET", path: "/collections/{collectionName}" }));
|
|
10
|
-
// Output Schema
|
|
11
10
|
export const GetCollectionOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
12
11
|
name: Schema.String,
|
|
13
12
|
fields: Schema.Array(Schema.Struct({
|
|
@@ -34,12 +33,12 @@ export const GetCollectionOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
34
33
|
from: Schema.Array(Schema.String),
|
|
35
34
|
model_config: Schema.Struct({
|
|
36
35
|
model_name: Schema.String,
|
|
37
|
-
api_key: Schema.optional(
|
|
36
|
+
api_key: Schema.optional(SensitiveOutputString),
|
|
38
37
|
url: Schema.optional(Schema.String),
|
|
39
|
-
access_token: Schema.optional(
|
|
40
|
-
refresh_token: Schema.optional(
|
|
38
|
+
access_token: Schema.optional(SensitiveOutputString),
|
|
39
|
+
refresh_token: Schema.optional(SensitiveOutputString),
|
|
41
40
|
client_id: Schema.optional(Schema.String),
|
|
42
|
-
client_secret: Schema.optional(
|
|
41
|
+
client_secret: Schema.optional(SensitiveOutputString),
|
|
43
42
|
project_id: Schema.optional(Schema.String),
|
|
44
43
|
indexing_prefix: Schema.optional(Schema.String),
|
|
45
44
|
query_prefix: Schema.optional(Schema.String),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCollection.js","sourceRoot":"","sources":["../../src/operations/getCollection.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;AACxC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"getCollection.js","sourceRoot":"","sources":["../../src/operations/getCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,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I,CAAC,GAAG,EAAE,CAAC,CAAC;IACvE,WAAW,EAAE,kBAAkB;IAC/B,YAAY,EAAE,mBAAmB;IACjC,MAAM,EAAE,CAAC,QAAQ,CAAU;CAC5B,CAAC,CAAC,CAAC"}
|
|
@@ -1,114 +1,64 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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>;
|
|
57
58
|
/**
|
|
58
59
|
* List all collections
|
|
59
60
|
*
|
|
60
61
|
* Returns a summary of all your collections. The collections are returned sorted by creation date, with the most recent collections appearing first.
|
|
61
62
|
*/
|
|
62
|
-
export declare const getCollections: import("@distilled.cloud/core/client").OperationMethod<
|
|
63
|
-
readonly getCollectionsParameters?: string | undefined;
|
|
64
|
-
}, readonly {
|
|
65
|
-
readonly name: string;
|
|
66
|
-
readonly fields: readonly {
|
|
67
|
-
readonly name: string;
|
|
68
|
-
readonly type: string;
|
|
69
|
-
readonly optional?: boolean | undefined;
|
|
70
|
-
readonly facet?: boolean | undefined;
|
|
71
|
-
readonly index?: boolean | undefined;
|
|
72
|
-
readonly locale?: string | undefined;
|
|
73
|
-
readonly sort?: boolean | undefined;
|
|
74
|
-
readonly infix?: boolean | undefined;
|
|
75
|
-
readonly reference?: string | undefined;
|
|
76
|
-
readonly async_reference?: boolean | undefined;
|
|
77
|
-
readonly num_dim?: number | undefined;
|
|
78
|
-
readonly drop?: boolean | undefined;
|
|
79
|
-
readonly store?: boolean | undefined;
|
|
80
|
-
readonly vec_dist?: string | undefined;
|
|
81
|
-
readonly range_index?: boolean | undefined;
|
|
82
|
-
readonly stem?: boolean | undefined;
|
|
83
|
-
readonly stem_dictionary?: string | undefined;
|
|
84
|
-
readonly token_separators?: readonly string[] | undefined;
|
|
85
|
-
readonly symbols_to_index?: readonly string[] | undefined;
|
|
86
|
-
readonly embed?: {
|
|
87
|
-
readonly from: readonly string[];
|
|
88
|
-
readonly model_config: {
|
|
89
|
-
readonly model_name: string;
|
|
90
|
-
readonly api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
91
|
-
readonly url?: string | undefined;
|
|
92
|
-
readonly access_token?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
93
|
-
readonly refresh_token?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
94
|
-
readonly client_id?: string | undefined;
|
|
95
|
-
readonly client_secret?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
96
|
-
readonly project_id?: string | undefined;
|
|
97
|
-
readonly indexing_prefix?: string | undefined;
|
|
98
|
-
readonly query_prefix?: string | undefined;
|
|
99
|
-
};
|
|
100
|
-
} | undefined;
|
|
101
|
-
}[];
|
|
102
|
-
readonly default_sorting_field?: string | undefined;
|
|
103
|
-
readonly token_separators?: readonly string[] | undefined;
|
|
104
|
-
readonly synonym_sets?: readonly string[] | undefined;
|
|
105
|
-
readonly enable_nested_fields?: boolean | undefined;
|
|
106
|
-
readonly symbols_to_index?: readonly string[] | undefined;
|
|
107
|
-
readonly voice_query_model?: {
|
|
108
|
-
readonly model_name?: string | undefined;
|
|
109
|
-
} | undefined;
|
|
110
|
-
readonly metadata?: unknown;
|
|
111
|
-
readonly num_documents: number;
|
|
112
|
-
readonly created_at: number;
|
|
113
|
-
}[], never, import("~/credentials.ts").Credentials, never>;
|
|
63
|
+
export declare const getCollections: import("@distilled.cloud/core/client").OperationMethod<GetCollectionsInput, GetCollectionsOutput, never, import("../credentials.ts").Credentials, never>;
|
|
114
64
|
//# sourceMappingURL=getCollections.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCollections.d.ts","sourceRoot":"","sources":["../../src/operations/getCollections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;
|
|
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,CAAC;AAG5C,MAAM,WAAW,mBAAmB;IAClC,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AACD,eAAO,MAAM,mBAAmB,EAIhB,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;AAGlD,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,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AAC,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,12 +1,11 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { API } from "../client.js";
|
|
3
3
|
import * as T from "../traits.js";
|
|
4
|
-
import {
|
|
5
|
-
|
|
4
|
+
import { SensitiveOutputString } from "../sensitive.js";
|
|
5
|
+
import * as Redacted from "effect/Redacted";
|
|
6
6
|
export const GetCollectionsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
7
|
getCollectionsParameters: Schema.optional(Schema.String),
|
|
8
8
|
}).pipe(T.Http({ method: "GET", path: "/collections" }));
|
|
9
|
-
// Output Schema
|
|
10
9
|
export const GetCollectionsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
|
|
11
10
|
name: Schema.String,
|
|
12
11
|
fields: Schema.Array(Schema.Struct({
|
|
@@ -33,12 +32,12 @@ export const GetCollectionsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Sch
|
|
|
33
32
|
from: Schema.Array(Schema.String),
|
|
34
33
|
model_config: Schema.Struct({
|
|
35
34
|
model_name: Schema.String,
|
|
36
|
-
api_key: Schema.optional(
|
|
35
|
+
api_key: Schema.optional(SensitiveOutputString),
|
|
37
36
|
url: Schema.optional(Schema.String),
|
|
38
|
-
access_token: Schema.optional(
|
|
39
|
-
refresh_token: Schema.optional(
|
|
37
|
+
access_token: Schema.optional(SensitiveOutputString),
|
|
38
|
+
refresh_token: Schema.optional(SensitiveOutputString),
|
|
40
39
|
client_id: Schema.optional(Schema.String),
|
|
41
|
-
client_secret: Schema.optional(
|
|
40
|
+
client_secret: Schema.optional(SensitiveOutputString),
|
|
42
41
|
project_id: Schema.optional(Schema.String),
|
|
43
42
|
indexing_prefix: Schema.optional(Schema.String),
|
|
44
43
|
query_prefix: Schema.optional(Schema.String),
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3E,wBAAwB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACzD,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CACA,CAAC;AAmDlD,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,KAAK,CAC1E,MAAM,C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AAM,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,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACxE,WAAW,EAAE,mBAAmB;IAChC,YAAY,EAAE,oBAAoB;CACnC,CAAC,CAAC,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { NotFound } from "../errors.ts";
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
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
10
|
/**
|
|
11
11
|
* Retrieve a document
|
|
12
12
|
*
|
|
@@ -15,8 +15,5 @@ export type GetDocumentOutput = typeof GetDocumentOutput.Type;
|
|
|
15
15
|
* @param collectionName - The name of the collection to search for the document under
|
|
16
16
|
* @param documentId - The Document ID
|
|
17
17
|
*/
|
|
18
|
-
export declare const getDocument: import("@distilled.cloud/core/client").OperationMethod<
|
|
19
|
-
readonly collectionName: string;
|
|
20
|
-
readonly documentId: string;
|
|
21
|
-
}, unknown, NotFound, import("~/credentials.ts").Credentials, never>;
|
|
18
|
+
export declare const getDocument: import("@distilled.cloud/core/client").OperationMethod<GetDocumentInput, unknown, NotFound, import("../credentials.ts").Credentials, never>;
|
|
22
19
|
//# sourceMappingURL=getDocument.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,EAC6B,MAAM,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;AAG3F;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,6IAIrB,CAAC"}
|
|
@@ -2,7 +2,6 @@ import * as Schema from "effect/Schema";
|
|
|
2
2
|
import { API } from "../client.js";
|
|
3
3
|
import * as T from "../traits.js";
|
|
4
4
|
import { NotFound } from "../errors.js";
|
|
5
|
-
// Input Schema
|
|
6
5
|
export const GetDocumentInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
6
|
collectionName: Schema.String.pipe(T.PathParam()),
|
|
8
7
|
documentId: Schema.String.pipe(T.PathParam()),
|
|
@@ -10,8 +9,8 @@ export const GetDocumentInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
10
9
|
method: "GET",
|
|
11
10
|
path: "/collections/{collectionName}/documents/{documentId}",
|
|
12
11
|
}));
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
export const GetDocumentOutput =
|
|
13
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
15
14
|
// The operation
|
|
16
15
|
/**
|
|
17
16
|
* Retrieve a document
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxE,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,aAAa,CAAC,MAAM,CAAC,OAAqD,CAAC;AAE3F,gBAAgB;AAChB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACrE,WAAW,EAAE,gBAAgB;IAC7B,YAAY,EAAE,iBAAiB;IAC/B,MAAM,EAAE,CAAC,QAAQ,CAAU;CAC5B,CAAC,CAAC,CAAC"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { NotFound } from "../errors.ts";
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
export
|
|
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
17
|
/**
|
|
18
18
|
* Retrieve (metadata about) a key
|
|
19
19
|
*
|
|
@@ -21,15 +21,5 @@ export type GetKeyOutput = typeof GetKeyOutput.Type;
|
|
|
21
21
|
*
|
|
22
22
|
* @param keyId - The ID of the key to retrieve
|
|
23
23
|
*/
|
|
24
|
-
export declare const getKey: import("@distilled.cloud/core/client").OperationMethod<
|
|
25
|
-
readonly keyId: number;
|
|
26
|
-
}, {
|
|
27
|
-
readonly value?: string | undefined;
|
|
28
|
-
readonly description: string;
|
|
29
|
-
readonly actions: readonly string[];
|
|
30
|
-
readonly collections: readonly string[];
|
|
31
|
-
readonly expires_at?: number | undefined;
|
|
32
|
-
readonly id?: number | undefined;
|
|
33
|
-
readonly value_prefix?: string | undefined;
|
|
34
|
-
}, NotFound, import("~/credentials.ts").Credentials, never>;
|
|
24
|
+
export declare const getKey: import("@distilled.cloud/core/client").OperationMethod<GetKeyInput, GetKeyOutput, NotFound, import("../credentials.ts").Credentials, never>;
|
|
35
25
|
//# sourceMappingURL=getKey.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,eAAO,MAAM,WAAW
|
|
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
CHANGED
|
@@ -2,11 +2,9 @@ import * as Schema from "effect/Schema";
|
|
|
2
2
|
import { API } from "../client.js";
|
|
3
3
|
import * as T from "../traits.js";
|
|
4
4
|
import { NotFound } from "../errors.js";
|
|
5
|
-
// Input Schema
|
|
6
5
|
export const GetKeyInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
6
|
keyId: Schema.Number.pipe(T.PathParam()),
|
|
8
7
|
}).pipe(T.Http({ method: "GET", path: "/keys/{keyId}" }));
|
|
9
|
-
// Output Schema
|
|
10
8
|
export const GetKeyOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
11
9
|
value: Schema.optional(Schema.String),
|
|
12
10
|
description: Schema.String,
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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,MAA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