@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,205 +1,110 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { BadRequest, Conflict } from "../errors.ts";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
export declare const
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
3
|
+
import * as Redacted from "effect/Redacted";
|
|
4
|
+
export interface CreateCollectionInput {
|
|
5
|
+
name: string;
|
|
6
|
+
fields: {
|
|
7
|
+
name: string;
|
|
8
|
+
type: string;
|
|
9
|
+
optional?: boolean;
|
|
10
|
+
facet?: boolean;
|
|
11
|
+
index?: boolean;
|
|
12
|
+
locale?: string;
|
|
13
|
+
sort?: boolean;
|
|
14
|
+
infix?: boolean;
|
|
15
|
+
reference?: string;
|
|
16
|
+
async_reference?: boolean;
|
|
17
|
+
num_dim?: number;
|
|
18
|
+
drop?: boolean;
|
|
19
|
+
store?: boolean;
|
|
20
|
+
vec_dist?: string;
|
|
21
|
+
range_index?: boolean;
|
|
22
|
+
stem?: boolean;
|
|
23
|
+
stem_dictionary?: string;
|
|
24
|
+
token_separators?: string[];
|
|
25
|
+
symbols_to_index?: string[];
|
|
26
|
+
embed?: {
|
|
27
|
+
from: string[];
|
|
28
|
+
model_config: {
|
|
29
|
+
model_name: string;
|
|
30
|
+
api_key?: string | Redacted.Redacted<string>;
|
|
31
|
+
url?: string;
|
|
32
|
+
access_token?: string | Redacted.Redacted<string>;
|
|
33
|
+
refresh_token?: string | Redacted.Redacted<string>;
|
|
34
|
+
client_id?: string;
|
|
35
|
+
client_secret?: string | Redacted.Redacted<string>;
|
|
36
|
+
project_id?: string;
|
|
37
|
+
indexing_prefix?: string;
|
|
38
|
+
query_prefix?: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
}[];
|
|
42
|
+
default_sorting_field?: string;
|
|
43
|
+
token_separators?: string[];
|
|
44
|
+
synonym_sets?: string[];
|
|
45
|
+
enable_nested_fields?: boolean;
|
|
46
|
+
symbols_to_index?: string[];
|
|
47
|
+
voice_query_model?: {
|
|
48
|
+
model_name?: string;
|
|
49
|
+
};
|
|
50
|
+
metadata?: unknown;
|
|
51
|
+
}
|
|
52
|
+
export declare const CreateCollectionInput: Schema.Codec<CreateCollectionInput>;
|
|
53
|
+
export interface CreateCollectionOutput {
|
|
54
|
+
name: string;
|
|
55
|
+
fields: {
|
|
56
|
+
name: string;
|
|
57
|
+
type: string;
|
|
58
|
+
optional?: boolean;
|
|
59
|
+
facet?: boolean;
|
|
60
|
+
index?: boolean;
|
|
61
|
+
locale?: string;
|
|
62
|
+
sort?: boolean;
|
|
63
|
+
infix?: boolean;
|
|
64
|
+
reference?: string;
|
|
65
|
+
async_reference?: boolean;
|
|
66
|
+
num_dim?: number;
|
|
67
|
+
drop?: boolean;
|
|
68
|
+
store?: boolean;
|
|
69
|
+
vec_dist?: string;
|
|
70
|
+
range_index?: boolean;
|
|
71
|
+
stem?: boolean;
|
|
72
|
+
stem_dictionary?: string;
|
|
73
|
+
token_separators?: string[];
|
|
74
|
+
symbols_to_index?: string[];
|
|
75
|
+
embed?: {
|
|
76
|
+
from: string[];
|
|
77
|
+
model_config: {
|
|
78
|
+
model_name: string;
|
|
79
|
+
api_key?: Redacted.Redacted<string>;
|
|
80
|
+
url?: string;
|
|
81
|
+
access_token?: Redacted.Redacted<string>;
|
|
82
|
+
refresh_token?: Redacted.Redacted<string>;
|
|
83
|
+
client_id?: string;
|
|
84
|
+
client_secret?: Redacted.Redacted<string>;
|
|
85
|
+
project_id?: string;
|
|
86
|
+
indexing_prefix?: string;
|
|
87
|
+
query_prefix?: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
}[];
|
|
91
|
+
default_sorting_field?: string;
|
|
92
|
+
token_separators?: string[];
|
|
93
|
+
synonym_sets?: string[];
|
|
94
|
+
enable_nested_fields?: boolean;
|
|
95
|
+
symbols_to_index?: string[];
|
|
96
|
+
voice_query_model?: {
|
|
97
|
+
model_name?: string;
|
|
98
|
+
};
|
|
99
|
+
metadata?: unknown;
|
|
100
|
+
num_documents: number;
|
|
101
|
+
created_at: number;
|
|
102
|
+
}
|
|
103
|
+
export declare const CreateCollectionOutput: Schema.Codec<CreateCollectionOutput>;
|
|
103
104
|
/**
|
|
104
105
|
* Create a new collection
|
|
105
106
|
*
|
|
106
107
|
* When a collection is created, we give it a name and describe the fields that will be indexed from the documents added to the collection.
|
|
107
108
|
*/
|
|
108
|
-
export declare const createCollection: import("@distilled.cloud/core/client").OperationMethod<
|
|
109
|
-
readonly name: string;
|
|
110
|
-
readonly fields: readonly {
|
|
111
|
-
readonly name: string;
|
|
112
|
-
readonly type: string;
|
|
113
|
-
readonly optional?: boolean | undefined;
|
|
114
|
-
readonly facet?: boolean | undefined;
|
|
115
|
-
readonly index?: boolean | undefined;
|
|
116
|
-
readonly locale?: string | undefined;
|
|
117
|
-
readonly sort?: boolean | undefined;
|
|
118
|
-
readonly infix?: boolean | undefined;
|
|
119
|
-
readonly reference?: string | undefined;
|
|
120
|
-
readonly async_reference?: boolean | undefined;
|
|
121
|
-
readonly num_dim?: number | undefined;
|
|
122
|
-
readonly drop?: boolean | undefined;
|
|
123
|
-
readonly store?: boolean | undefined;
|
|
124
|
-
readonly vec_dist?: string | undefined;
|
|
125
|
-
readonly range_index?: boolean | undefined;
|
|
126
|
-
readonly stem?: boolean | undefined;
|
|
127
|
-
readonly stem_dictionary?: string | undefined;
|
|
128
|
-
readonly token_separators?: readonly string[] | undefined;
|
|
129
|
-
readonly symbols_to_index?: readonly string[] | undefined;
|
|
130
|
-
readonly embed?: {
|
|
131
|
-
readonly from: readonly string[];
|
|
132
|
-
readonly model_config: {
|
|
133
|
-
readonly model_name: string;
|
|
134
|
-
readonly api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
135
|
-
readonly url?: string | undefined;
|
|
136
|
-
readonly access_token?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
137
|
-
readonly refresh_token?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
138
|
-
readonly client_id?: string | undefined;
|
|
139
|
-
readonly client_secret?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
140
|
-
readonly project_id?: string | undefined;
|
|
141
|
-
readonly indexing_prefix?: string | undefined;
|
|
142
|
-
readonly query_prefix?: string | undefined;
|
|
143
|
-
};
|
|
144
|
-
} | undefined;
|
|
145
|
-
}[];
|
|
146
|
-
readonly default_sorting_field?: string | undefined;
|
|
147
|
-
readonly token_separators?: readonly string[] | undefined;
|
|
148
|
-
readonly synonym_sets?: readonly string[] | undefined;
|
|
149
|
-
readonly enable_nested_fields?: boolean | undefined;
|
|
150
|
-
readonly symbols_to_index?: readonly string[] | undefined;
|
|
151
|
-
readonly voice_query_model?: {
|
|
152
|
-
readonly model_name?: string | undefined;
|
|
153
|
-
} | undefined;
|
|
154
|
-
readonly metadata?: unknown;
|
|
155
|
-
}, {
|
|
156
|
-
readonly name: string;
|
|
157
|
-
readonly fields: readonly {
|
|
158
|
-
readonly name: string;
|
|
159
|
-
readonly type: string;
|
|
160
|
-
readonly optional?: boolean | undefined;
|
|
161
|
-
readonly facet?: boolean | undefined;
|
|
162
|
-
readonly index?: boolean | undefined;
|
|
163
|
-
readonly locale?: string | undefined;
|
|
164
|
-
readonly sort?: boolean | undefined;
|
|
165
|
-
readonly infix?: boolean | undefined;
|
|
166
|
-
readonly reference?: string | undefined;
|
|
167
|
-
readonly async_reference?: boolean | undefined;
|
|
168
|
-
readonly num_dim?: number | undefined;
|
|
169
|
-
readonly drop?: boolean | undefined;
|
|
170
|
-
readonly store?: boolean | undefined;
|
|
171
|
-
readonly vec_dist?: string | undefined;
|
|
172
|
-
readonly range_index?: boolean | undefined;
|
|
173
|
-
readonly stem?: boolean | undefined;
|
|
174
|
-
readonly stem_dictionary?: string | undefined;
|
|
175
|
-
readonly token_separators?: readonly string[] | undefined;
|
|
176
|
-
readonly symbols_to_index?: readonly string[] | undefined;
|
|
177
|
-
readonly embed?: {
|
|
178
|
-
readonly from: readonly string[];
|
|
179
|
-
readonly model_config: {
|
|
180
|
-
readonly model_name: string;
|
|
181
|
-
readonly api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
182
|
-
readonly url?: string | undefined;
|
|
183
|
-
readonly access_token?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
184
|
-
readonly refresh_token?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
185
|
-
readonly client_id?: string | undefined;
|
|
186
|
-
readonly client_secret?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
187
|
-
readonly project_id?: string | undefined;
|
|
188
|
-
readonly indexing_prefix?: string | undefined;
|
|
189
|
-
readonly query_prefix?: string | undefined;
|
|
190
|
-
};
|
|
191
|
-
} | undefined;
|
|
192
|
-
}[];
|
|
193
|
-
readonly default_sorting_field?: string | undefined;
|
|
194
|
-
readonly token_separators?: readonly string[] | undefined;
|
|
195
|
-
readonly synonym_sets?: readonly string[] | undefined;
|
|
196
|
-
readonly enable_nested_fields?: boolean | undefined;
|
|
197
|
-
readonly symbols_to_index?: readonly string[] | undefined;
|
|
198
|
-
readonly voice_query_model?: {
|
|
199
|
-
readonly model_name?: string | undefined;
|
|
200
|
-
} | undefined;
|
|
201
|
-
readonly metadata?: unknown;
|
|
202
|
-
readonly num_documents: number;
|
|
203
|
-
readonly created_at: number;
|
|
204
|
-
}, BadRequest | Conflict, import("~/credentials.ts").Credentials, never>;
|
|
109
|
+
export declare const createCollection: import("@distilled.cloud/core/client").OperationMethod<CreateCollectionInput, CreateCollectionOutput, BadRequest | Conflict, import("../credentials.ts").Credentials, never>;
|
|
205
110
|
//# sourceMappingURL=createCollection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createCollection.d.ts","sourceRoot":"","sources":["../../src/operations/createCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"createCollection.d.ts","sourceRoot":"","sources":["../../src/operations/createCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAG5C,MAAM,WAAW,qBAAqB;IACpC,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,CAAC,EAAE,OAAO,CAAC;QACf,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,IAAI,CAAC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AE,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,sBAAsB,EAyDnB,MAAM,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;AAGrD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,8KAI1B,CAAC"}
|
|
@@ -2,8 +2,8 @@ import * as Schema from "effect/Schema";
|
|
|
2
2
|
import { API } from "../client.js";
|
|
3
3
|
import * as T from "../traits.js";
|
|
4
4
|
import { BadRequest, Conflict } from "../errors.js";
|
|
5
|
-
import { SensitiveString } from "../sensitive.js";
|
|
6
|
-
|
|
5
|
+
import { SensitiveString, SensitiveOutputString } from "../sensitive.js";
|
|
6
|
+
import * as Redacted from "effect/Redacted";
|
|
7
7
|
export const CreateCollectionInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
8
|
name: Schema.String,
|
|
9
9
|
fields: Schema.Array(Schema.Struct({
|
|
@@ -52,7 +52,6 @@ export const CreateCollectionInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
52
52
|
})),
|
|
53
53
|
metadata: Schema.optional(Schema.Unknown),
|
|
54
54
|
}).pipe(T.Http({ method: "POST", path: "/collections" }));
|
|
55
|
-
// Output Schema
|
|
56
55
|
export const CreateCollectionOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
57
56
|
name: Schema.String,
|
|
58
57
|
fields: Schema.Array(Schema.Struct({
|
|
@@ -79,12 +78,12 @@ export const CreateCollectionOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
79
78
|
from: Schema.Array(Schema.String),
|
|
80
79
|
model_config: Schema.Struct({
|
|
81
80
|
model_name: Schema.String,
|
|
82
|
-
api_key: Schema.optional(
|
|
81
|
+
api_key: Schema.optional(SensitiveOutputString),
|
|
83
82
|
url: Schema.optional(Schema.String),
|
|
84
|
-
access_token: Schema.optional(
|
|
85
|
-
refresh_token: Schema.optional(
|
|
83
|
+
access_token: Schema.optional(SensitiveOutputString),
|
|
84
|
+
refresh_token: Schema.optional(SensitiveOutputString),
|
|
86
85
|
client_id: Schema.optional(Schema.String),
|
|
87
|
-
client_secret: Schema.optional(
|
|
86
|
+
client_secret: Schema.optional(SensitiveOutputString),
|
|
88
87
|
project_id: Schema.optional(Schema.String),
|
|
89
88
|
indexing_prefix: Schema.optional(Schema.String),
|
|
90
89
|
query_prefix: Schema.optional(Schema.String),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createCollection.js","sourceRoot":"","sources":["../../src/operations/createCollection.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;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"createCollection.js","sourceRoot":"","sources":["../../src/operations/createCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GA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AC,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,CACiD,CAAC;AAErD,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1E,WAAW,EAAE,qBAAqB;IAClC,YAAY,EAAE,sBAAsB;IACpC,MAAM,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAU;CACxC,CAAC,CAAC,CAAC"}
|
|
@@ -1,37 +1,26 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { BadRequest } from "../errors.ts";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export declare const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
3
|
+
import * as Redacted from "effect/Redacted";
|
|
4
|
+
export interface CreateConversationModelInput {
|
|
5
|
+
id?: string;
|
|
6
|
+
model_name: string;
|
|
7
|
+
api_key?: string | Redacted.Redacted<string>;
|
|
8
|
+
history_collection: string;
|
|
9
|
+
account_id?: string;
|
|
10
|
+
system_prompt?: string;
|
|
11
|
+
ttl?: number;
|
|
12
|
+
max_bytes: number;
|
|
13
|
+
vllm_url?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const CreateConversationModelInput: Schema.Codec<CreateConversationModelInput>;
|
|
16
|
+
export interface CreateConversationModelOutput {
|
|
17
|
+
id: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const CreateConversationModelOutput: Schema.Codec<CreateConversationModelOutput>;
|
|
19
20
|
/**
|
|
20
21
|
* Create a conversation model
|
|
21
22
|
*
|
|
22
23
|
* Create a Conversation Model
|
|
23
24
|
*/
|
|
24
|
-
export declare const createConversationModel: import("@distilled.cloud/core/client").OperationMethod<
|
|
25
|
-
readonly id?: string | undefined;
|
|
26
|
-
readonly model_name: string;
|
|
27
|
-
readonly api_key?: string | import("effect/Redacted").Redacted<string> | undefined;
|
|
28
|
-
readonly history_collection: string;
|
|
29
|
-
readonly account_id?: string | undefined;
|
|
30
|
-
readonly system_prompt?: string | undefined;
|
|
31
|
-
readonly ttl?: number | undefined;
|
|
32
|
-
readonly max_bytes: number;
|
|
33
|
-
readonly vllm_url?: string | undefined;
|
|
34
|
-
}, {
|
|
35
|
-
readonly id: string;
|
|
36
|
-
}, BadRequest, import("~/credentials.ts").Credentials, never>;
|
|
25
|
+
export declare const createConversationModel: import("@distilled.cloud/core/client").OperationMethod<CreateConversationModelInput, CreateConversationModelOutput, BadRequest, import("../credentials.ts").Credentials, never>;
|
|
37
26
|
//# sourceMappingURL=createConversationModel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createConversationModel.d.ts","sourceRoot":"","sources":["../../src/operations/createConversationModel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"createConversationModel.d.ts","sourceRoot":"","sources":["../../src/operations/createConversationModel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAG5C,MAAM,WAAW,4BAA4B;IAC3C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC7C,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,eAAO,MAAM,4BAA4B,EAavB,MAAM,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC;AAG7D,MAAM,WAAW,6BAA6B;IAC5C,EAAE,EAAE,MAAM,CAAC;CACZ;AACD,eAAO,MAAM,6BAA6B,EAGvB,MAAM,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;AAG/D;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,iLAMnC,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { API } from "../client.js";
|
|
|
3
3
|
import * as T from "../traits.js";
|
|
4
4
|
import { BadRequest } from "../errors.js";
|
|
5
5
|
import { SensitiveString } from "../sensitive.js";
|
|
6
|
-
|
|
6
|
+
import * as Redacted from "effect/Redacted";
|
|
7
7
|
export const CreateConversationModelInput =
|
|
8
8
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
9
|
id: Schema.optional(Schema.String),
|
|
@@ -16,7 +16,6 @@ export const CreateConversationModelInput =
|
|
|
16
16
|
max_bytes: Schema.Number,
|
|
17
17
|
vllm_url: Schema.optional(Schema.String),
|
|
18
18
|
}).pipe(T.Http({ method: "POST", path: "/conversations/models" }));
|
|
19
|
-
// Output Schema
|
|
20
19
|
export const CreateConversationModelOutput =
|
|
21
20
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
22
21
|
id: Schema.String,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createConversationModel.js","sourceRoot":"","sources":["../../src/operations/createConversationModel.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;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"createConversationModel.js","sourceRoot":"","sources":["../../src/operations/createConversationModel.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;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAc5C,MAAM,CAAC,MAAM,4BAA4B;AACvC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,EAAE,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAClC,UAAU,EAAE,MAAM,CAAC,MAAM;IACzB,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC;IACzC,kBAAkB,EAAE,MAAM,CAAC,MAAM;IACjC,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1C,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC7C,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACnC,SAAS,EAAE,MAAM,CAAC,MAAM;IACxB,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACzC,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,CAAC,CACD,CAAC;AAM7D,MAAM,CAAC,MAAM,6BAA6B;AACxC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,EAAE,EAAE,MAAM,CAAC,MAAM;CAClB,CAA2D,CAAC;AAE/D,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CACzE,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,4BAA4B;IACzC,YAAY,EAAE,6BAA6B;IAC3C,MAAM,EAAE,CAAC,UAAU,CAAU;CAC9B,CAAC,CACH,CAAC"}
|
|
@@ -1,41 +1,27 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { BadRequest, Conflict } from "../errors.ts";
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
export
|
|
3
|
+
export interface CreateKeyInput {
|
|
4
|
+
value?: string;
|
|
5
|
+
description: string;
|
|
6
|
+
actions: string[];
|
|
7
|
+
collections: string[];
|
|
8
|
+
expires_at?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const CreateKeyInput: Schema.Codec<CreateKeyInput>;
|
|
11
|
+
export interface CreateKeyOutput {
|
|
12
|
+
value?: string;
|
|
13
|
+
description: string;
|
|
14
|
+
actions: string[];
|
|
15
|
+
collections: string[];
|
|
16
|
+
expires_at?: number;
|
|
17
|
+
id?: number;
|
|
18
|
+
value_prefix?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const CreateKeyOutput: Schema.Codec<CreateKeyOutput>;
|
|
21
21
|
/**
|
|
22
22
|
* Create an API Key
|
|
23
23
|
*
|
|
24
24
|
* Create an API Key with fine-grain access control. You can restrict access on both a per-collection and per-action level. The generated key is returned only during creation. You want to store this key carefully in a secure place.
|
|
25
25
|
*/
|
|
26
|
-
export declare const createKey: import("@distilled.cloud/core/client").OperationMethod<
|
|
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
|
-
}, {
|
|
33
|
-
readonly value?: string | undefined;
|
|
34
|
-
readonly description: string;
|
|
35
|
-
readonly actions: readonly string[];
|
|
36
|
-
readonly collections: readonly string[];
|
|
37
|
-
readonly expires_at?: number | undefined;
|
|
38
|
-
readonly id?: number | undefined;
|
|
39
|
-
readonly value_prefix?: string | undefined;
|
|
40
|
-
}, BadRequest | Conflict, import("~/credentials.ts").Credentials, never>;
|
|
26
|
+
export declare const createKey: import("@distilled.cloud/core/client").OperationMethod<CreateKeyInput, CreateKeyOutput, BadRequest | Conflict, import("../credentials.ts").Credentials, never>;
|
|
41
27
|
//# sourceMappingURL=createKey.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createKey.d.ts","sourceRoot":"","sources":["../../src/operations/createKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGpD,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"createKey.d.ts","sourceRoot":"","sources":["../../src/operations/createKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGpD,MAAM,WAAW,cAAc;IAC7B,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;CACrB;AACD,eAAO,MAAM,cAAc,EAQX,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;AAG7C,MAAM,WAAW,eAAe;IAC9B,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,eAAe,EAQX,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;AAG/C;;;;GAIG;AACH,eAAO,MAAM,SAAS,gKAInB,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 { BadRequest, Conflict } from "../errors.js";
|
|
5
|
-
// Input Schema
|
|
6
5
|
export const CreateKeyInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
6
|
value: Schema.optional(Schema.String),
|
|
8
7
|
description: Schema.String,
|
|
@@ -10,7 +9,6 @@ export const CreateKeyInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
10
9
|
collections: Schema.Array(Schema.String),
|
|
11
10
|
expires_at: Schema.optional(Schema.Number),
|
|
12
11
|
}).pipe(T.Http({ method: "POST", path: "/keys" }));
|
|
13
|
-
// Output Schema
|
|
14
12
|
export const CreateKeyOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
13
|
value: Schema.optional(Schema.String),
|
|
16
14
|
description: Schema.String,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createKey.js","sourceRoot":"","sources":["../../src/operations/createKey.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;
|
|
1
|
+
{"version":3,"file":"createKey.js","sourceRoot":"","sources":["../../src/operations/createKey.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;AAUpD,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACtE,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;CAC3C,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CACC,CAAC;AAY7C,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACvE,KAAK,EAAE,MAAM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