@distilled.cloud/typesense 0.30.2 → 1.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/credentials.d.ts +7 -0
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +17 -0
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +14 -3
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +3 -2
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +7 -10
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +7 -10
- package/lib/index.js.map +1 -1
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +31 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +4 -4
- package/lib/retry.js +4 -4
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +3 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/typesense.d.ts +2817 -0
- package/lib/services/typesense.d.ts.map +1 -0
- package/lib/services/typesense.js +2917 -0
- package/lib/services/typesense.js.map +1 -0
- package/lib/traits.d.ts +8 -2
- package/lib/traits.d.ts.map +1 -1
- package/lib/traits.js +8 -2
- package/lib/traits.js.map +1 -1
- package/package.json +31 -51
- package/src/credentials.ts +26 -0
- package/src/errors.ts +16 -3
- package/src/index.ts +11 -10
- package/src/protocol.ts +52 -0
- package/src/retry.ts +4 -4
- package/src/services/index.ts +2 -0
- package/src/services/typesense.ts +6837 -0
- package/src/traits.ts +41 -2
- package/README.md +0 -75
- package/lib/category.d.ts +0 -5
- package/lib/category.d.ts.map +0 -1
- package/lib/category.js +0 -5
- package/lib/category.js.map +0 -1
- package/lib/client.d.ts +0 -11
- package/lib/client.d.ts.map +0 -1
- package/lib/client.js +0 -56
- package/lib/client.js.map +0 -1
- package/lib/operations/clearCache.d.ts +0 -15
- package/lib/operations/clearCache.d.ts.map +0 -1
- package/lib/operations/clearCache.js +0 -18
- package/lib/operations/clearCache.js.map +0 -1
- package/lib/operations/compactDb.d.ts +0 -15
- package/lib/operations/compactDb.d.ts.map +0 -1
- package/lib/operations/compactDb.js +0 -18
- package/lib/operations/compactDb.js.map +0 -1
- package/lib/operations/createAnalyticsEvent.d.ts +0 -25
- package/lib/operations/createAnalyticsEvent.d.ts.map +0 -1
- package/lib/operations/createAnalyticsEvent.js +0 -32
- package/lib/operations/createAnalyticsEvent.js.map +0 -1
- package/lib/operations/createAnalyticsRule.d.ts +0 -46
- package/lib/operations/createAnalyticsRule.d.ts.map +0 -1
- package/lib/operations/createAnalyticsRule.js +0 -68
- package/lib/operations/createAnalyticsRule.js.map +0 -1
- package/lib/operations/createCollection.d.ts +0 -110
- package/lib/operations/createCollection.d.ts.map +0 -1
- package/lib/operations/createCollection.js +0 -116
- package/lib/operations/createCollection.js.map +0 -1
- package/lib/operations/createConversationModel.d.ts +0 -26
- package/lib/operations/createConversationModel.d.ts.map +0 -1
- package/lib/operations/createConversationModel.js +0 -34
- package/lib/operations/createConversationModel.js.map +0 -1
- package/lib/operations/createKey.d.ts +0 -27
- package/lib/operations/createKey.d.ts.map +0 -1
- package/lib/operations/createKey.js +0 -32
- package/lib/operations/createKey.js.map +0 -1
- package/lib/operations/createNLSearchModel.d.ts +0 -36
- package/lib/operations/createNLSearchModel.d.ts.map +0 -1
- package/lib/operations/createNLSearchModel.js +0 -44
- package/lib/operations/createNLSearchModel.js.map +0 -1
- package/lib/operations/debug.d.ts +0 -13
- package/lib/operations/debug.d.ts.map +0 -1
- package/lib/operations/debug.js +0 -16
- package/lib/operations/debug.js.map +0 -1
- package/lib/operations/deleteAlias.d.ts +0 -18
- package/lib/operations/deleteAlias.d.ts.map +0 -1
- package/lib/operations/deleteAlias.js +0 -23
- package/lib/operations/deleteAlias.js.map +0 -1
- package/lib/operations/deleteAnalyticsRule.d.ts +0 -32
- package/lib/operations/deleteAnalyticsRule.d.ts.map +0 -1
- package/lib/operations/deleteAnalyticsRule.js +0 -44
- package/lib/operations/deleteAnalyticsRule.js.map +0 -1
- package/lib/operations/deleteCollection.d.ts +0 -67
- package/lib/operations/deleteCollection.d.ts.map +0 -1
- package/lib/operations/deleteCollection.js +0 -73
- package/lib/operations/deleteCollection.js.map +0 -1
- package/lib/operations/deleteConversationModel.d.ts +0 -17
- package/lib/operations/deleteConversationModel.d.ts.map +0 -1
- package/lib/operations/deleteConversationModel.js +0 -24
- package/lib/operations/deleteConversationModel.js.map +0 -1
- package/lib/operations/deleteCurationSet.d.ts +0 -19
- package/lib/operations/deleteCurationSet.d.ts.map +0 -1
- package/lib/operations/deleteCurationSet.js +0 -25
- package/lib/operations/deleteCurationSet.js.map +0 -1
- package/lib/operations/deleteCurationSetItem.d.ts +0 -21
- package/lib/operations/deleteCurationSetItem.d.ts.map +0 -1
- package/lib/operations/deleteCurationSetItem.js +0 -31
- package/lib/operations/deleteCurationSetItem.js.map +0 -1
- package/lib/operations/deleteDocument.d.ts +0 -19
- package/lib/operations/deleteDocument.d.ts.map +0 -1
- package/lib/operations/deleteDocument.js +0 -28
- package/lib/operations/deleteDocument.js.map +0 -1
- package/lib/operations/deleteDocuments.d.ts +0 -20
- package/lib/operations/deleteDocuments.d.ts.map +0 -1
- package/lib/operations/deleteDocuments.js +0 -25
- package/lib/operations/deleteDocuments.js.map +0 -1
- package/lib/operations/deleteKey.d.ts +0 -17
- package/lib/operations/deleteKey.d.ts.map +0 -1
- package/lib/operations/deleteKey.js +0 -22
- package/lib/operations/deleteKey.js.map +0 -1
- package/lib/operations/deleteNLSearchModel.d.ts +0 -19
- package/lib/operations/deleteNLSearchModel.d.ts.map +0 -1
- package/lib/operations/deleteNLSearchModel.js +0 -26
- package/lib/operations/deleteNLSearchModel.js.map +0 -1
- package/lib/operations/deletePreset.d.ts +0 -19
- package/lib/operations/deletePreset.d.ts.map +0 -1
- package/lib/operations/deletePreset.js +0 -24
- package/lib/operations/deletePreset.js.map +0 -1
- package/lib/operations/deleteStopwordsSet.d.ts +0 -19
- package/lib/operations/deleteStopwordsSet.d.ts.map +0 -1
- package/lib/operations/deleteStopwordsSet.js +0 -26
- package/lib/operations/deleteStopwordsSet.js.map +0 -1
- package/lib/operations/deleteSynonymSet.d.ts +0 -19
- package/lib/operations/deleteSynonymSet.d.ts.map +0 -1
- package/lib/operations/deleteSynonymSet.js +0 -24
- package/lib/operations/deleteSynonymSet.js.map +0 -1
- package/lib/operations/deleteSynonymSetItem.d.ts +0 -21
- package/lib/operations/deleteSynonymSetItem.d.ts.map +0 -1
- package/lib/operations/deleteSynonymSetItem.js +0 -31
- package/lib/operations/deleteSynonymSetItem.js.map +0 -1
- package/lib/operations/exportDocuments.d.ts +0 -18
- package/lib/operations/exportDocuments.d.ts.map +0 -1
- package/lib/operations/exportDocuments.js +0 -27
- package/lib/operations/exportDocuments.js.map +0 -1
- package/lib/operations/flushAnalytics.d.ts +0 -15
- package/lib/operations/flushAnalytics.d.ts.map +0 -1
- package/lib/operations/flushAnalytics.js +0 -18
- package/lib/operations/flushAnalytics.js.map +0 -1
- package/lib/operations/getAlias.d.ts +0 -20
- package/lib/operations/getAlias.d.ts.map +0 -1
- package/lib/operations/getAlias.js +0 -25
- package/lib/operations/getAlias.js.map +0 -1
- package/lib/operations/getAliases.d.ts +0 -18
- package/lib/operations/getAliases.d.ts.map +0 -1
- package/lib/operations/getAliases.js +0 -21
- package/lib/operations/getAliases.js.map +0 -1
- package/lib/operations/getAnalyticsEvents.d.ts +0 -31
- package/lib/operations/getAnalyticsEvents.d.ts.map +0 -1
- package/lib/operations/getAnalyticsEvents.js +0 -38
- package/lib/operations/getAnalyticsEvents.js.map +0 -1
- package/lib/operations/getAnalyticsStatus.d.ts +0 -21
- package/lib/operations/getAnalyticsStatus.d.ts.map +0 -1
- package/lib/operations/getAnalyticsStatus.js +0 -26
- package/lib/operations/getAnalyticsStatus.js.map +0 -1
- package/lib/operations/getCollection.d.ts +0 -67
- package/lib/operations/getCollection.d.ts.map +0 -1
- package/lib/operations/getCollection.js +0 -73
- package/lib/operations/getCollection.js.map +0 -1
- package/lib/operations/getCollections.d.ts +0 -64
- package/lib/operations/getCollections.d.ts.map +0 -1
- package/lib/operations/getCollections.js +0 -69
- package/lib/operations/getCollections.js.map +0 -1
- package/lib/operations/getDocument.d.ts +0 -19
- package/lib/operations/getDocument.d.ts.map +0 -1
- package/lib/operations/getDocument.js +0 -28
- package/lib/operations/getDocument.js.map +0 -1
- package/lib/operations/getKey.d.ts +0 -25
- package/lib/operations/getKey.d.ts.map +0 -1
- package/lib/operations/getKey.js +0 -30
- package/lib/operations/getKey.js.map +0 -1
- package/lib/operations/getKeys.d.ts +0 -21
- package/lib/operations/getKeys.d.ts.map +0 -1
- package/lib/operations/getKeys.js +0 -24
- package/lib/operations/getKeys.js.map +0 -1
- package/lib/operations/getSchemaChanges.d.ts +0 -17
- package/lib/operations/getSchemaChanges.d.ts.map +0 -1
- package/lib/operations/getSchemaChanges.js +0 -20
- package/lib/operations/getSchemaChanges.js.map +0 -1
- package/lib/operations/getStemmingDictionary.d.ts +0 -23
- package/lib/operations/getStemmingDictionary.d.ts.map +0 -1
- package/lib/operations/getStemmingDictionary.js +0 -30
- package/lib/operations/getStemmingDictionary.js.map +0 -1
- package/lib/operations/health.d.ts +0 -13
- package/lib/operations/health.d.ts.map +0 -1
- package/lib/operations/health.js +0 -16
- package/lib/operations/health.js.map +0 -1
- package/lib/operations/importDocuments.d.ts +0 -18
- package/lib/operations/importDocuments.d.ts.map +0 -1
- package/lib/operations/importDocuments.js +0 -27
- package/lib/operations/importDocuments.js.map +0 -1
- package/lib/operations/importStemmingDictionary.d.ts +0 -17
- package/lib/operations/importStemmingDictionary.d.ts.map +0 -1
- package/lib/operations/importStemmingDictionary.js +0 -24
- package/lib/operations/importStemmingDictionary.js.map +0 -1
- package/lib/operations/index.d.ts +0 -80
- package/lib/operations/index.d.ts.map +0 -1
- package/lib/operations/index.js +0 -80
- package/lib/operations/index.js.map +0 -1
- package/lib/operations/indexDocument.d.ts +0 -21
- package/lib/operations/indexDocument.d.ts.map +0 -1
- package/lib/operations/indexDocument.js +0 -27
- package/lib/operations/indexDocument.js.map +0 -1
- package/lib/operations/listStemmingDictionaries.d.ts +0 -15
- package/lib/operations/listStemmingDictionaries.d.ts.map +0 -1
- package/lib/operations/listStemmingDictionaries.js +0 -20
- package/lib/operations/listStemmingDictionaries.js.map +0 -1
- package/lib/operations/multiSearch.d.ts +0 -207
- package/lib/operations/multiSearch.d.ts.map +0 -1
- package/lib/operations/multiSearch.js +0 -212
- package/lib/operations/multiSearch.js.map +0 -1
- package/lib/operations/retrieveAPIStats.d.ts +0 -27
- package/lib/operations/retrieveAPIStats.d.ts.map +0 -1
- package/lib/operations/retrieveAPIStats.js +0 -30
- package/lib/operations/retrieveAPIStats.js.map +0 -1
- package/lib/operations/retrieveAllConversationModels.d.ts +0 -15
- package/lib/operations/retrieveAllConversationModels.d.ts.map +0 -1
- package/lib/operations/retrieveAllConversationModels.js +0 -21
- package/lib/operations/retrieveAllConversationModels.js.map +0 -1
- package/lib/operations/retrieveAllNLSearchModels.d.ts +0 -15
- package/lib/operations/retrieveAllNLSearchModels.d.ts.map +0 -1
- package/lib/operations/retrieveAllNLSearchModels.js +0 -20
- package/lib/operations/retrieveAllNLSearchModels.js.map +0 -1
- package/lib/operations/retrieveAllPresets.d.ts +0 -163
- package/lib/operations/retrieveAllPresets.d.ts.map +0 -1
- package/lib/operations/retrieveAllPresets.js +0 -23
- package/lib/operations/retrieveAllPresets.js.map +0 -1
- package/lib/operations/retrieveAnalyticsRule.d.ts +0 -32
- package/lib/operations/retrieveAnalyticsRule.d.ts.map +0 -1
- package/lib/operations/retrieveAnalyticsRule.js +0 -44
- package/lib/operations/retrieveAnalyticsRule.js.map +0 -1
- package/lib/operations/retrieveAnalyticsRules.d.ts +0 -31
- package/lib/operations/retrieveAnalyticsRules.d.ts.map +0 -1
- package/lib/operations/retrieveAnalyticsRules.js +0 -42
- package/lib/operations/retrieveAnalyticsRules.js.map +0 -1
- package/lib/operations/retrieveConversationModel.d.ts +0 -17
- package/lib/operations/retrieveConversationModel.d.ts.map +0 -1
- package/lib/operations/retrieveConversationModel.js +0 -24
- package/lib/operations/retrieveConversationModel.js.map +0 -1
- package/lib/operations/retrieveCurationSet.d.ts +0 -45
- package/lib/operations/retrieveCurationSet.d.ts.map +0 -1
- package/lib/operations/retrieveCurationSet.js +0 -52
- package/lib/operations/retrieveCurationSet.js.map +0 -1
- package/lib/operations/retrieveCurationSetItem.d.ts +0 -43
- package/lib/operations/retrieveCurationSetItem.d.ts.map +0 -1
- package/lib/operations/retrieveCurationSetItem.js +0 -53
- package/lib/operations/retrieveCurationSetItem.js.map +0 -1
- package/lib/operations/retrieveCurationSetItems.d.ts +0 -41
- package/lib/operations/retrieveCurationSetItems.d.ts.map +0 -1
- package/lib/operations/retrieveCurationSetItems.js +0 -48
- package/lib/operations/retrieveCurationSetItems.js.map +0 -1
- package/lib/operations/retrieveCurationSets.d.ts +0 -41
- package/lib/operations/retrieveCurationSets.d.ts.map +0 -1
- package/lib/operations/retrieveCurationSets.js +0 -46
- package/lib/operations/retrieveCurationSets.js.map +0 -1
- package/lib/operations/retrieveMetrics.d.ts +0 -13
- package/lib/operations/retrieveMetrics.d.ts.map +0 -1
- package/lib/operations/retrieveMetrics.js +0 -17
- package/lib/operations/retrieveMetrics.js.map +0 -1
- package/lib/operations/retrieveNLSearchModel.d.ts +0 -19
- package/lib/operations/retrieveNLSearchModel.d.ts.map +0 -1
- package/lib/operations/retrieveNLSearchModel.js +0 -26
- package/lib/operations/retrieveNLSearchModel.js.map +0 -1
- package/lib/operations/retrievePreset.d.ts +0 -165
- package/lib/operations/retrievePreset.d.ts.map +0 -1
- package/lib/operations/retrievePreset.js +0 -25
- package/lib/operations/retrievePreset.js.map +0 -1
- package/lib/operations/retrieveStopwordsSet.d.ts +0 -23
- package/lib/operations/retrieveStopwordsSet.d.ts.map +0 -1
- package/lib/operations/retrieveStopwordsSet.js +0 -30
- package/lib/operations/retrieveStopwordsSet.js.map +0 -1
- package/lib/operations/retrieveStopwordsSets.d.ts +0 -19
- package/lib/operations/retrieveStopwordsSets.d.ts.map +0 -1
- package/lib/operations/retrieveStopwordsSets.js +0 -24
- package/lib/operations/retrieveStopwordsSets.js.map +0 -1
- package/lib/operations/retrieveSynonymSet.d.ts +0 -26
- package/lib/operations/retrieveSynonymSet.d.ts.map +0 -1
- package/lib/operations/retrieveSynonymSet.js +0 -33
- package/lib/operations/retrieveSynonymSet.js.map +0 -1
- package/lib/operations/retrieveSynonymSetItem.d.ts +0 -25
- package/lib/operations/retrieveSynonymSetItem.d.ts.map +0 -1
- package/lib/operations/retrieveSynonymSetItem.js +0 -35
- package/lib/operations/retrieveSynonymSetItem.js.map +0 -1
- package/lib/operations/retrieveSynonymSetItems.d.ts +0 -23
- package/lib/operations/retrieveSynonymSetItems.d.ts.map +0 -1
- package/lib/operations/retrieveSynonymSetItems.js +0 -30
- package/lib/operations/retrieveSynonymSetItems.js.map +0 -1
- package/lib/operations/retrieveSynonymSets.d.ts +0 -22
- package/lib/operations/retrieveSynonymSets.d.ts.map +0 -1
- package/lib/operations/retrieveSynonymSets.js +0 -27
- package/lib/operations/retrieveSynonymSets.js.map +0 -1
- package/lib/operations/searchCollection.d.ts +0 -129
- package/lib/operations/searchCollection.d.ts.map +0 -1
- package/lib/operations/searchCollection.js +0 -137
- package/lib/operations/searchCollection.js.map +0 -1
- package/lib/operations/takeSnapshot.d.ts +0 -18
- package/lib/operations/takeSnapshot.d.ts.map +0 -1
- package/lib/operations/takeSnapshot.js +0 -22
- package/lib/operations/takeSnapshot.js.map +0 -1
- package/lib/operations/toggleSlowRequestLog.d.ts +0 -16
- package/lib/operations/toggleSlowRequestLog.d.ts.map +0 -1
- package/lib/operations/toggleSlowRequestLog.js +0 -22
- package/lib/operations/toggleSlowRequestLog.js.map +0 -1
- package/lib/operations/updateCollection.d.ts +0 -95
- package/lib/operations/updateCollection.d.ts.map +0 -1
- package/lib/operations/updateCollection.js +0 -101
- package/lib/operations/updateCollection.js.map +0 -1
- package/lib/operations/updateConversationModel.d.ts +0 -27
- package/lib/operations/updateConversationModel.d.ts.map +0 -1
- package/lib/operations/updateConversationModel.js +0 -35
- package/lib/operations/updateConversationModel.js.map +0 -1
- package/lib/operations/updateDocument.d.ts +0 -21
- package/lib/operations/updateDocument.d.ts.map +0 -1
- package/lib/operations/updateDocument.js +0 -30
- package/lib/operations/updateDocument.js.map +0 -1
- package/lib/operations/updateDocuments.d.ts +0 -20
- package/lib/operations/updateDocuments.d.ts.map +0 -1
- package/lib/operations/updateDocuments.js +0 -25
- package/lib/operations/updateDocuments.js.map +0 -1
- package/lib/operations/updateNLSearchModel.d.ts +0 -19
- package/lib/operations/updateNLSearchModel.d.ts.map +0 -1
- package/lib/operations/updateNLSearchModel.js +0 -26
- package/lib/operations/updateNLSearchModel.js.map +0 -1
- package/lib/operations/upsertAlias.d.ts +0 -21
- package/lib/operations/upsertAlias.d.ts.map +0 -1
- package/lib/operations/upsertAlias.js +0 -26
- package/lib/operations/upsertAlias.js.map +0 -1
- package/lib/operations/upsertAnalyticsRule.d.ts +0 -43
- package/lib/operations/upsertAnalyticsRule.d.ts.map +0 -1
- package/lib/operations/upsertAnalyticsRule.js +0 -55
- package/lib/operations/upsertAnalyticsRule.js.map +0 -1
- package/lib/operations/upsertCurationSet.d.ts +0 -71
- package/lib/operations/upsertCurationSet.d.ts.map +0 -1
- package/lib/operations/upsertCurationSet.js +0 -77
- package/lib/operations/upsertCurationSet.js.map +0 -1
- package/lib/operations/upsertCurationSetItem.d.ts +0 -66
- package/lib/operations/upsertCurationSetItem.d.ts.map +0 -1
- package/lib/operations/upsertCurationSetItem.js +0 -76
- package/lib/operations/upsertCurationSetItem.js.map +0 -1
- package/lib/operations/upsertPreset.d.ts +0 -311
- package/lib/operations/upsertPreset.d.ts.map +0 -1
- package/lib/operations/upsertPreset.js +0 -26
- package/lib/operations/upsertPreset.js.map +0 -1
- package/lib/operations/upsertStopwordsSet.d.ts +0 -23
- package/lib/operations/upsertStopwordsSet.d.ts.map +0 -1
- package/lib/operations/upsertStopwordsSet.js +0 -30
- package/lib/operations/upsertStopwordsSet.js.map +0 -1
- package/lib/operations/upsertSynonymSet.d.ts +0 -33
- package/lib/operations/upsertSynonymSet.d.ts.map +0 -1
- package/lib/operations/upsertSynonymSet.js +0 -38
- package/lib/operations/upsertSynonymSet.js.map +0 -1
- package/lib/operations/upsertSynonymSetItem.d.ts +0 -29
- package/lib/operations/upsertSynonymSetItem.d.ts.map +0 -1
- package/lib/operations/upsertSynonymSetItem.js +0 -39
- package/lib/operations/upsertSynonymSetItem.js.map +0 -1
- package/lib/operations/vote.d.ts +0 -15
- package/lib/operations/vote.d.ts.map +0 -1
- package/lib/operations/vote.js +0 -18
- package/lib/operations/vote.js.map +0 -1
- package/lib/sensitive.d.ts +0 -5
- package/lib/sensitive.d.ts.map +0 -1
- package/lib/sensitive.js +0 -5
- package/lib/sensitive.js.map +0 -1
- package/src/category.ts +0 -4
- package/src/client.ts +0 -71
- package/src/operations/clearCache.ts +0 -28
- package/src/operations/compactDb.ts +0 -28
- package/src/operations/createAnalyticsEvent.ts +0 -52
- package/src/operations/createAnalyticsRule.ts +0 -117
- package/src/operations/createCollection.ts +0 -228
- package/src/operations/createConversationModel.ts +0 -54
- package/src/operations/createKey.ts +0 -54
- package/src/operations/createNLSearchModel.ts +0 -74
- package/src/operations/debug.ts +0 -26
- package/src/operations/deleteAlias.ts +0 -36
- package/src/operations/deleteAnalyticsRule.ts +0 -71
- package/src/operations/deleteCollection.ts +0 -136
- package/src/operations/deleteConversationModel.ts +0 -36
- package/src/operations/deleteCurationSet.ts +0 -37
- package/src/operations/deleteCurationSetItem.ts +0 -44
- package/src/operations/deleteDocument.ts +0 -39
- package/src/operations/deleteDocuments.ts +0 -38
- package/src/operations/deleteKey.ts +0 -34
- package/src/operations/deleteNLSearchModel.ts +0 -38
- package/src/operations/deletePreset.ts +0 -36
- package/src/operations/deleteStopwordsSet.ts +0 -38
- package/src/operations/deleteSynonymSet.ts +0 -36
- package/src/operations/deleteSynonymSetItem.ts +0 -44
- package/src/operations/exportDocuments.ts +0 -38
- package/src/operations/flushAnalytics.ts +0 -28
- package/src/operations/getAlias.ts +0 -38
- package/src/operations/getAliases.ts +0 -33
- package/src/operations/getAnalyticsEvents.ts +0 -63
- package/src/operations/getAnalyticsStatus.ts +0 -42
- package/src/operations/getCollection.ts +0 -136
- package/src/operations/getCollections.ts +0 -134
- package/src/operations/getDocument.ts +0 -39
- package/src/operations/getKey.ts +0 -48
- package/src/operations/getKeys.ts +0 -44
- package/src/operations/getSchemaChanges.ts +0 -34
- package/src/operations/getStemmingDictionary.ts +0 -45
- package/src/operations/health.ts +0 -26
- package/src/operations/importDocuments.ts +0 -38
- package/src/operations/importStemmingDictionary.ts +0 -34
- package/src/operations/index.ts +0 -79
- package/src/operations/indexDocument.ts +0 -39
- package/src/operations/listStemmingDictionaries.ts +0 -30
- package/src/operations/multiSearch.ts +0 -476
- package/src/operations/retrieveAPIStats.ts +0 -52
- package/src/operations/retrieveAllConversationModels.ts +0 -31
- package/src/operations/retrieveAllNLSearchModels.ts +0 -30
- package/src/operations/retrieveAllPresets.ts +0 -188
- package/src/operations/retrieveAnalyticsRule.ts +0 -71
- package/src/operations/retrieveAnalyticsRules.ts +0 -71
- package/src/operations/retrieveConversationModel.ts +0 -36
- package/src/operations/retrieveCurationSet.ts +0 -95
- package/src/operations/retrieveCurationSetItem.ts +0 -91
- package/src/operations/retrieveCurationSetItems.ts +0 -87
- package/src/operations/retrieveCurationSets.ts +0 -89
- package/src/operations/retrieveMetrics.ts +0 -25
- package/src/operations/retrieveNLSearchModel.ts +0 -38
- package/src/operations/retrievePreset.ts +0 -185
- package/src/operations/retrieveStopwordsSet.ts +0 -42
- package/src/operations/retrieveStopwordsSets.ts +0 -36
- package/src/operations/retrieveSynonymSet.ts +0 -54
- package/src/operations/retrieveSynonymSetItem.ts +0 -52
- package/src/operations/retrieveSynonymSetItems.ts +0 -48
- package/src/operations/retrieveSynonymSets.ts +0 -48
- package/src/operations/searchCollection.ts +0 -309
- package/src/operations/takeSnapshot.ts +0 -34
- package/src/operations/toggleSlowRequestLog.ts +0 -34
- package/src/operations/updateCollection.ts +0 -200
- package/src/operations/updateConversationModel.ts +0 -56
- package/src/operations/updateDocument.ts +0 -42
- package/src/operations/updateDocuments.ts +0 -38
- package/src/operations/updateNLSearchModel.ts +0 -38
- package/src/operations/upsertAlias.ts +0 -40
- package/src/operations/upsertAnalyticsRule.ts +0 -95
- package/src/operations/upsertCurationSet.ts +0 -151
- package/src/operations/upsertCurationSetItem.ts +0 -140
- package/src/operations/upsertPreset.ts +0 -334
- package/src/operations/upsertStopwordsSet.ts +0 -46
- package/src/operations/upsertSynonymSet.ts +0 -68
- package/src/operations/upsertSynonymSetItem.ts +0 -60
- package/src/operations/vote.ts +0 -28
- package/src/sensitive.ts +0 -4
package/src/traits.ts
CHANGED
|
@@ -1,4 +1,43 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Typesense SDK trait surface — hand-written.
|
|
3
|
+
*
|
|
4
|
+
* Re-exports the generic protocol traits from core so generated operations
|
|
5
|
+
* import everything from one place. Typesense's protocol is plain
|
|
6
|
+
* key-header REST with no envelope, so there are no provider-specific
|
|
7
|
+
* traits.
|
|
3
8
|
*/
|
|
4
|
-
export
|
|
9
|
+
export {
|
|
10
|
+
SensitiveValue,
|
|
11
|
+
RawResponse,
|
|
12
|
+
RawResponseRoot,
|
|
13
|
+
sensitiveValueSymbol,
|
|
14
|
+
rawResponseSymbol,
|
|
15
|
+
rawResponseRootSymbol,
|
|
16
|
+
} from "@distilled.cloud/core/protocol-rest";
|
|
17
|
+
export {
|
|
18
|
+
Body,
|
|
19
|
+
Header,
|
|
20
|
+
Query,
|
|
21
|
+
Label,
|
|
22
|
+
Http,
|
|
23
|
+
ResponseCode,
|
|
24
|
+
HttpBody,
|
|
25
|
+
FormDataFile,
|
|
26
|
+
KeyDictionary,
|
|
27
|
+
UnionCases,
|
|
28
|
+
applyErrorMatchers,
|
|
29
|
+
getErrorMatchers,
|
|
30
|
+
type HttpTrait,
|
|
31
|
+
type ErrorMatcher,
|
|
32
|
+
bodySymbol,
|
|
33
|
+
headerSymbol,
|
|
34
|
+
querySymbol,
|
|
35
|
+
labelSymbol,
|
|
36
|
+
httpSymbol,
|
|
37
|
+
responseCodeSymbol,
|
|
38
|
+
httpBodySymbol,
|
|
39
|
+
formDataFileSymbol,
|
|
40
|
+
keyDictionarySymbol,
|
|
41
|
+
unionCasesSymbol,
|
|
42
|
+
errorMatchersSymbol,
|
|
43
|
+
} from "@distilled.cloud/core/trait";
|
package/README.md
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
# @distilled.cloud/typesense
|
|
2
|
-
|
|
3
|
-
Effect-native Typesense SDK generated from the [Typesense OpenAPI specification](https://github.com/typesense/typesense-api-spec). Manage collections, documents, search, synonyms, curation, analytics, API keys, and cluster operations with exhaustive error typing.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install @distilled.cloud/typesense effect
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Quick Start
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { Effect, Layer } from "effect";
|
|
15
|
-
import * as FetchHttpClient from "effect/unstable/http/FetchHttpClient";
|
|
16
|
-
import { getCollections } from "@distilled.cloud/typesense/Operations";
|
|
17
|
-
import { CredentialsFromEnv } from "@distilled.cloud/typesense";
|
|
18
|
-
|
|
19
|
-
const program = Effect.gen(function* () {
|
|
20
|
-
const collections = yield* getCollections({});
|
|
21
|
-
return collections;
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
const TypesenseLive = Layer.mergeAll(FetchHttpClient.layer, CredentialsFromEnv);
|
|
25
|
-
|
|
26
|
-
program.pipe(Effect.provide(TypesenseLive), Effect.runPromise);
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## Configuration
|
|
30
|
-
|
|
31
|
-
Set the following environment variables:
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
TYPESENSE_API_KEY=your-api-key
|
|
35
|
-
TYPESENSE_API_URL=http://localhost:8108
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
`TYPESENSE_API_URL` should point to your Typesense server (e.g. `http://localhost:8108` for self-hosted, or your per-cluster URL for [Typesense Cloud](https://cloud.typesense.org)). Authentication uses the `X-TYPESENSE-API-KEY` header.
|
|
39
|
-
|
|
40
|
-
## Error Handling
|
|
41
|
-
|
|
42
|
-
```typescript
|
|
43
|
-
import { Effect } from "effect";
|
|
44
|
-
import { getCollection } from "@distilled.cloud/typesense/Operations";
|
|
45
|
-
import { UnknownTypesenseError } from "@distilled.cloud/typesense/Errors";
|
|
46
|
-
|
|
47
|
-
getCollection({ collectionName: "missing" }).pipe(
|
|
48
|
-
Effect.catchTags({
|
|
49
|
-
NotFound: () => Effect.succeed(null),
|
|
50
|
-
UnknownTypesenseError: (e) =>
|
|
51
|
-
Effect.fail(new Error(`Unknown: ${e.message}`)),
|
|
52
|
-
}),
|
|
53
|
-
);
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
## Services
|
|
57
|
-
|
|
58
|
-
- **Collections** — `getCollections`, `createCollection`, `getCollection`, `updateCollection`, `deleteCollection`
|
|
59
|
-
- **Documents** — `indexDocument`, `getDocument`, `updateDocument`, `deleteDocument`, `updateDocuments`, `deleteDocuments`, `importDocuments`, `exportDocuments`
|
|
60
|
-
- **Search** — `searchCollection`, `multiSearch`
|
|
61
|
-
- **Aliases** — `getAliases`, `getAlias`, `upsertAlias`, `deleteAlias`
|
|
62
|
-
- **Synonyms** — `retrieveSynonymSets`, `upsertSynonymSet`, `retrieveSynonymSet`, `deleteSynonymSet`, plus per-item operations
|
|
63
|
-
- **Curation Sets** — `retrieveCurationSets`, `upsertCurationSet`, `retrieveCurationSet`, `deleteCurationSet`, plus per-item operations
|
|
64
|
-
- **Presets** — `retrieveAllPresets`, `upsertPreset`, `retrievePreset`, `deletePreset`
|
|
65
|
-
- **Stopwords** — `retrieveStopwordsSets`, `upsertStopwordsSet`, `retrieveStopwordsSet`, `deleteStopwordsSet`
|
|
66
|
-
- **Stemming** — `listStemmingDictionaries`, `getStemmingDictionary`, `importStemmingDictionary`
|
|
67
|
-
- **Analytics** — `retrieveAnalyticsRules`, `upsertAnalyticsRule`, `retrieveAnalyticsRule`, `deleteAnalyticsRule`, `createAnalyticsEvent`, `getAnalyticsEvents`, `getAnalyticsStatus`, `flushAnalytics`
|
|
68
|
-
- **API Keys** — `getKeys`, `createKey`, `getKey`, `deleteKey`
|
|
69
|
-
- **NL Search Models** — `retrieveAllNLSearchModels`, `createNLSearchModel`, `retrieveNLSearchModel`, `updateNLSearchModel`, `deleteNLSearchModel`
|
|
70
|
-
- **Conversation Models** — `retrieveAllConversationModels`, `createConversationModel`, `retrieveConversationModel`, `updateConversationModel`, `deleteConversationModel`
|
|
71
|
-
- **Cluster Operations** — `health`, `retrieveMetrics`, `retrieveAPIStats`, `clearCache`, `compactDb`, `takeSnapshot`, `toggleSlowRequestLog`, `getSchemaChanges`, `vote`, `debug`
|
|
72
|
-
|
|
73
|
-
## License
|
|
74
|
-
|
|
75
|
-
MIT
|
package/lib/category.d.ts
DELETED
package/lib/category.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../src/category.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,gCAAgC,CAAC"}
|
package/lib/category.js
DELETED
package/lib/category.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"category.js","sourceRoot":"","sources":["../src/category.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,gCAAgC,CAAC"}
|
package/lib/client.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
export { UnknownTypesenseError } from "./errors.ts";
|
|
3
|
-
import { Credentials } from "./credentials.ts";
|
|
4
|
-
/**
|
|
5
|
-
* Typesense API client.
|
|
6
|
-
*/
|
|
7
|
-
export declare const API: {
|
|
8
|
-
make: <I extends Schema.Top, O extends Schema.Top, const E extends readonly import("@distilled.cloud/core/client").ApiErrorClass[] = readonly []>(configFn: () => import("@distilled.cloud/core/client").OperationConfig<I, O, E>) => import("@distilled.cloud/core/client").OperationMethod<Schema.Schema.Type<I>, Schema.Schema.Type<O>, InstanceType<E[number]>, Credentials, never>;
|
|
9
|
-
makePaginated: <I extends Schema.Top, O extends Schema.Top, const E extends readonly import("@distilled.cloud/core/client").ApiErrorClass[] = readonly []>(configFn: () => import("@distilled.cloud/core/client").PaginatedOperationConfig<I, O, E>, paginateFn?: import("@distilled.cloud/core/pagination").PaginationStrategy) => import("@distilled.cloud/core/client").PaginatedOperationMethod<Schema.Schema.Type<I>, Schema.Schema.Type<O>, InstanceType<E[number]>, Credentials, never>;
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=client.d.ts.map
|
package/lib/client.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAWxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAsC/C;;GAEG;AACH,eAAO,MAAM,GAAG;;;CASd,CAAC"}
|
package/lib/client.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Typesense API Client.
|
|
3
|
-
*
|
|
4
|
-
* Wraps the shared REST client from sdk-core with Typesense-specific
|
|
5
|
-
* error matching and credential handling.
|
|
6
|
-
*/
|
|
7
|
-
import * as Effect from "effect/Effect";
|
|
8
|
-
import * as Redacted from "effect/Redacted";
|
|
9
|
-
import * as Schema from "effect/Schema";
|
|
10
|
-
import { makeAPI } from "@distilled.cloud/core/client";
|
|
11
|
-
import { parseRetryAfterForStatus } from "@distilled.cloud/core/retry-after";
|
|
12
|
-
import { Retry } from "./retry.js";
|
|
13
|
-
import { HTTP_STATUS_MAP, UnknownTypesenseError, TypesenseParseError, } from "./errors.js";
|
|
14
|
-
// Re-export for backwards compatibility
|
|
15
|
-
export { UnknownTypesenseError } from "./errors.js";
|
|
16
|
-
import { Credentials } from "./credentials.js";
|
|
17
|
-
// API Error Response Schema (Typesense ApiResponse: { message: string })
|
|
18
|
-
const ApiErrorResponse = Schema.Struct({
|
|
19
|
-
message: Schema.String,
|
|
20
|
-
});
|
|
21
|
-
/**
|
|
22
|
-
* Match a Typesense API error response to the appropriate error class based on HTTP status.
|
|
23
|
-
*/
|
|
24
|
-
const matchError = (status, errorBody, _errors, headers) => {
|
|
25
|
-
try {
|
|
26
|
-
const parsed = Schema.decodeUnknownSync(ApiErrorResponse)(errorBody);
|
|
27
|
-
const ErrorClass = HTTP_STATUS_MAP[status];
|
|
28
|
-
if (ErrorClass) {
|
|
29
|
-
return Effect.fail(new ErrorClass({
|
|
30
|
-
message: parsed.message ?? "",
|
|
31
|
-
retryAfter: parseRetryAfterForStatus(status, headers),
|
|
32
|
-
}));
|
|
33
|
-
}
|
|
34
|
-
return Effect.fail(new UnknownTypesenseError({
|
|
35
|
-
message: parsed.message,
|
|
36
|
-
body: errorBody,
|
|
37
|
-
}));
|
|
38
|
-
}
|
|
39
|
-
catch {
|
|
40
|
-
return Effect.fail(new UnknownTypesenseError({ body: errorBody }));
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Typesense API client.
|
|
45
|
-
*/
|
|
46
|
-
export const API = makeAPI({
|
|
47
|
-
credentials: Credentials,
|
|
48
|
-
getBaseUrl: (creds) => creds.apiBaseUrl,
|
|
49
|
-
getAuthHeaders: (creds) => ({
|
|
50
|
-
"X-TYPESENSE-API-KEY": Redacted.value(creds.apiKey),
|
|
51
|
-
}),
|
|
52
|
-
matchError,
|
|
53
|
-
ParseError: TypesenseParseError,
|
|
54
|
-
retry: Retry,
|
|
55
|
-
});
|
|
56
|
-
//# sourceMappingURL=client.js.map
|
package/lib/client.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,aAAa,CAAC;AAErB,wCAAwC;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,yEAAyE;AACzE,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC;IACrC,OAAO,EAAE,MAAM,CAAC,MAAM;CACvB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,UAAU,GAAG,CACjB,MAAc,EACd,SAAkB,EAClB,OAA4B,EAC5B,OAA4C,EACb,EAAE;IACjC,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC;QACrE,MAAM,UAAU,GAAI,eAAuB,CAAC,MAAM,CAAC,CAAC;QACpD,IAAI,UAAU,EAAE,CAAC;YACf,OAAO,MAAM,CAAC,IAAI,CAChB,IAAI,UAAU,CAAC;gBACb,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,EAAE;gBAC7B,UAAU,EAAE,wBAAwB,CAAC,MAAM,EAAE,OAAO,CAAC;aACtD,CAAC,CACH,CAAC;QACJ,CAAC;QACD,OAAO,MAAM,CAAC,IAAI,CAChB,IAAI,qBAAqB,CAAC;YACxB,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,IAAI,EAAE,SAAS;SAChB,CAAC,CACH,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,qBAAqB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC;IACrE,CAAC;AACH,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,OAAO,CAAc;IACtC,WAAW,EAAE,WAAkB;IAC/B,UAAU,EAAE,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU;IAC5C,cAAc,EAAE,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC;QAC/B,qBAAqB,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC;KACpD,CAAC;IACF,UAAU;IACV,UAAU,EAAE,mBAA0B;IACtC,KAAK,EAAE,KAAY;CACpB,CAAC,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
export interface ClearCacheInput {
|
|
3
|
-
}
|
|
4
|
-
export declare const ClearCacheInput: Schema.Codec<ClearCacheInput>;
|
|
5
|
-
export interface ClearCacheOutput {
|
|
6
|
-
success: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const ClearCacheOutput: Schema.Codec<ClearCacheOutput>;
|
|
9
|
-
/**
|
|
10
|
-
* Clear the cached responses of search requests in the LRU cache.
|
|
11
|
-
*
|
|
12
|
-
* Clear the cached responses of search requests that are sent with `use_cache` parameter in the LRU cache.
|
|
13
|
-
*/
|
|
14
|
-
export declare const clearCache: import("@distilled.cloud/core/client").OperationMethod<ClearCacheInput, ClearCacheOutput, never, import("../credentials.ts").Credentials, never>;
|
|
15
|
-
//# sourceMappingURL=clearCache.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clearCache.d.ts","sourceRoot":"","sources":["../../src/operations/clearCache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,eAAe;CAAG;AACnC,eAAO,MAAM,eAAe,EAEZ,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;AAG9C,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;CAClB;AACD,eAAO,MAAM,gBAAgB,EAEZ,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;AAGhD;;;;GAIG;AACH,eAAO,MAAM,UAAU,kJAGpB,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.js";
|
|
3
|
-
import * as T from "../traits.js";
|
|
4
|
-
export const ClearCacheInput = /*@__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "POST", path: "/operations/cache/clear" }));
|
|
5
|
-
export const ClearCacheOutput = /*@__PURE__*/ Schema.Struct({
|
|
6
|
-
success: Schema.Boolean,
|
|
7
|
-
});
|
|
8
|
-
// The operation
|
|
9
|
-
/**
|
|
10
|
-
* Clear the cached responses of search requests in the LRU cache.
|
|
11
|
-
*
|
|
12
|
-
* Clear the cached responses of search requests that are sent with `use_cache` parameter in the LRU cache.
|
|
13
|
-
*/
|
|
14
|
-
export const clearCache = /*@__PURE__*/ API.make(() => ({
|
|
15
|
-
inputSchema: ClearCacheInput,
|
|
16
|
-
outputSchema: ClearCacheOutput,
|
|
17
|
-
}));
|
|
18
|
-
//# sourceMappingURL=clearCache.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clearCache.js","sourceRoot":"","sources":["../../src/operations/clearCache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAIlC,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CACjE,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAyB,EAAE,CAAC,CAChB,CAAC;AAM9C,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1D,OAAO,EAAE,MAAM,CAAC,OAAO;CACxB,CAA8C,CAAC;AAEhD,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACtD,WAAW,EAAE,eAAe;IAC5B,YAAY,EAAE,gBAAgB;CAC/B,CAAC,CAAC,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
export interface CompactDbInput {
|
|
3
|
-
}
|
|
4
|
-
export declare const CompactDbInput: Schema.Codec<CompactDbInput>;
|
|
5
|
-
export interface CompactDbOutput {
|
|
6
|
-
success: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const CompactDbOutput: Schema.Codec<CompactDbOutput>;
|
|
9
|
-
/**
|
|
10
|
-
* Compacting the on-disk database
|
|
11
|
-
*
|
|
12
|
-
* Typesense uses RocksDB to store your documents on the disk. If you do frequent writes or updates, you could benefit from running a compaction of the underlying RocksDB database. This could reduce the size of the database and decrease read latency. While the database will not block during this operation, we recommend running it during off-peak hours.
|
|
13
|
-
*/
|
|
14
|
-
export declare const compactDb: import("@distilled.cloud/core/client").OperationMethod<CompactDbInput, CompactDbOutput, never, import("../credentials.ts").Credentials, never>;
|
|
15
|
-
//# sourceMappingURL=compactDb.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compactDb.d.ts","sourceRoot":"","sources":["../../src/operations/compactDb.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,MAAM,WAAW,cAAc;CAAG;AAClC,eAAO,MAAM,cAAc,EAEX,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;AAG7C,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,OAAO,CAAC;CAClB;AACD,eAAO,MAAM,eAAe,EAEX,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;AAG/C;;;;GAIG;AACH,eAAO,MAAM,SAAS,gJAGnB,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.js";
|
|
3
|
-
import * as T from "../traits.js";
|
|
4
|
-
export const CompactDbInput = /*@__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "POST", path: "/operations/db/compact" }));
|
|
5
|
-
export const CompactDbOutput = /*@__PURE__*/ Schema.Struct({
|
|
6
|
-
success: Schema.Boolean,
|
|
7
|
-
});
|
|
8
|
-
// The operation
|
|
9
|
-
/**
|
|
10
|
-
* Compacting the on-disk database
|
|
11
|
-
*
|
|
12
|
-
* Typesense uses RocksDB to store your documents on the disk. If you do frequent writes or updates, you could benefit from running a compaction of the underlying RocksDB database. This could reduce the size of the database and decrease read latency. While the database will not block during this operation, we recommend running it during off-peak hours.
|
|
13
|
-
*/
|
|
14
|
-
export const compactDb = /*@__PURE__*/ API.make(() => ({
|
|
15
|
-
inputSchema: CompactDbInput,
|
|
16
|
-
outputSchema: CompactDbOutput,
|
|
17
|
-
}));
|
|
18
|
-
//# sourceMappingURL=compactDb.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compactDb.js","sourceRoot":"","sources":["../../src/operations/compactDb.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAIlC,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CAChE,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC,CAChB,CAAC;AAM7C,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACzD,OAAO,EAAE,MAAM,CAAC,OAAO;CACxB,CAA6C,CAAC;AAE/C,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACrD,WAAW,EAAE,cAAc;IAC3B,YAAY,EAAE,eAAe;CAC9B,CAAC,CAAC,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { BadRequest } from "../errors.ts";
|
|
3
|
-
export interface CreateAnalyticsEventInput {
|
|
4
|
-
name: string;
|
|
5
|
-
event_type: string;
|
|
6
|
-
data: {
|
|
7
|
-
user_id?: string;
|
|
8
|
-
doc_id?: string;
|
|
9
|
-
doc_ids?: string[];
|
|
10
|
-
q?: string;
|
|
11
|
-
analytics_tag?: string;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
export declare const CreateAnalyticsEventInput: Schema.Codec<CreateAnalyticsEventInput>;
|
|
15
|
-
export interface CreateAnalyticsEventOutput {
|
|
16
|
-
ok: boolean;
|
|
17
|
-
}
|
|
18
|
-
export declare const CreateAnalyticsEventOutput: Schema.Codec<CreateAnalyticsEventOutput>;
|
|
19
|
-
/**
|
|
20
|
-
* Create an analytics event
|
|
21
|
-
*
|
|
22
|
-
* Submit a single analytics event. The event must correspond to an existing analytics rule by name.
|
|
23
|
-
*/
|
|
24
|
-
export declare const createAnalyticsEvent: import("@distilled.cloud/core/client").OperationMethod<CreateAnalyticsEventInput, CreateAnalyticsEventOutput, BadRequest, import("../credentials.ts").Credentials, never>;
|
|
25
|
-
//# sourceMappingURL=createAnalyticsEvent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createAnalyticsEvent.d.ts","sourceRoot":"","sources":["../../src/operations/createAnalyticsEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE;QACJ,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB,CAAC,CAAC,EAAE,MAAM,CAAC;QACX,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;CACH;AACD,eAAO,MAAM,yBAAyB,EAapB,MAAM,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;AAG1D,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,OAAO,CAAC;CACb;AACD,eAAO,MAAM,0BAA0B,EAGpB,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;AAG5D;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,2KAI9B,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.js";
|
|
3
|
-
import * as T from "../traits.js";
|
|
4
|
-
import { BadRequest } from "../errors.js";
|
|
5
|
-
export const CreateAnalyticsEventInput =
|
|
6
|
-
/*@__PURE__*/ Schema.Struct({
|
|
7
|
-
name: Schema.String,
|
|
8
|
-
event_type: Schema.String,
|
|
9
|
-
data: Schema.Struct({
|
|
10
|
-
user_id: Schema.optional(Schema.String),
|
|
11
|
-
doc_id: Schema.optional(Schema.String),
|
|
12
|
-
doc_ids: Schema.optional(Schema.Array(Schema.String)),
|
|
13
|
-
q: Schema.optional(Schema.String),
|
|
14
|
-
analytics_tag: Schema.optional(Schema.String),
|
|
15
|
-
}),
|
|
16
|
-
}).pipe(T.Http({ method: "POST", path: "/analytics/events" }));
|
|
17
|
-
export const CreateAnalyticsEventOutput =
|
|
18
|
-
/*@__PURE__*/ Schema.Struct({
|
|
19
|
-
ok: Schema.Boolean,
|
|
20
|
-
});
|
|
21
|
-
// The operation
|
|
22
|
-
/**
|
|
23
|
-
* Create an analytics event
|
|
24
|
-
*
|
|
25
|
-
* Submit a single analytics event. The event must correspond to an existing analytics rule by name.
|
|
26
|
-
*/
|
|
27
|
-
export const createAnalyticsEvent = /*@__PURE__*/ API.make(() => ({
|
|
28
|
-
inputSchema: CreateAnalyticsEventInput,
|
|
29
|
-
outputSchema: CreateAnalyticsEventOutput,
|
|
30
|
-
errors: [BadRequest],
|
|
31
|
-
}));
|
|
32
|
-
//# sourceMappingURL=createAnalyticsEvent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createAnalyticsEvent.js","sourceRoot":"","sources":["../../src/operations/createAnalyticsEvent.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,MAAM,CAAC,MAAM,yBAAyB;AACpC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC,MAAM;IACnB,UAAU,EAAE,MAAM,CAAC,MAAM;IACzB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACvC,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACtC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACrD,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACjC,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC,CACA,CAAC;AAM1D,MAAM,CAAC,MAAM,0BAA0B;AACrC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1B,EAAE,EAAE,MAAM,CAAC,OAAO;CACnB,CAAwD,CAAC;AAE5D,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAChE,WAAW,EAAE,yBAAyB;IACtC,YAAY,EAAE,0BAA0B;IACxC,MAAM,EAAE,CAAC,UAAU,CAAU;CAC9B,CAAC,CAAC,CAAC"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { BadRequest } from "../errors.ts";
|
|
3
|
-
export interface CreateAnalyticsRuleInput {
|
|
4
|
-
}
|
|
5
|
-
export declare const CreateAnalyticsRuleInput: Schema.Codec<CreateAnalyticsRuleInput>;
|
|
6
|
-
export type CreateAnalyticsRuleOutput = {
|
|
7
|
-
name: string;
|
|
8
|
-
type: "popular_queries" | "nohits_queries" | "counter" | "log";
|
|
9
|
-
collection: string;
|
|
10
|
-
event_type: string;
|
|
11
|
-
rule_tag?: string;
|
|
12
|
-
params?: {
|
|
13
|
-
destination_collection?: string;
|
|
14
|
-
limit?: number;
|
|
15
|
-
capture_search_requests?: boolean;
|
|
16
|
-
meta_fields?: string[];
|
|
17
|
-
expand_query?: boolean;
|
|
18
|
-
counter_field?: string;
|
|
19
|
-
weight?: number;
|
|
20
|
-
};
|
|
21
|
-
} | ({
|
|
22
|
-
name: string;
|
|
23
|
-
type: "popular_queries" | "nohits_queries" | "counter" | "log";
|
|
24
|
-
collection: string;
|
|
25
|
-
event_type: string;
|
|
26
|
-
rule_tag?: string;
|
|
27
|
-
params?: {
|
|
28
|
-
destination_collection?: string;
|
|
29
|
-
limit?: number;
|
|
30
|
-
capture_search_requests?: boolean;
|
|
31
|
-
meta_fields?: string[];
|
|
32
|
-
expand_query?: boolean;
|
|
33
|
-
counter_field?: string;
|
|
34
|
-
weight?: number;
|
|
35
|
-
};
|
|
36
|
-
} | {
|
|
37
|
-
error?: string;
|
|
38
|
-
})[];
|
|
39
|
-
export declare const CreateAnalyticsRuleOutput: Schema.Codec<CreateAnalyticsRuleOutput>;
|
|
40
|
-
/**
|
|
41
|
-
* Create analytics rule(s)
|
|
42
|
-
*
|
|
43
|
-
* Create one or more analytics rules. You can send a single rule object or an array of rule objects.
|
|
44
|
-
*/
|
|
45
|
-
export declare const createAnalyticsRule: import("@distilled.cloud/core/client").OperationMethod<CreateAnalyticsRuleInput, CreateAnalyticsRuleOutput, BadRequest, import("../credentials.ts").Credentials, never>;
|
|
46
|
-
//# sourceMappingURL=createAnalyticsRule.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createAnalyticsRule.d.ts","sourceRoot":"","s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AC;QACvB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;CACH,GACD;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CACrB,EAAE,CAAC;AACR,eAAO,MAAM,yBAAyB,EAuDnB,MAAM,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;AAG3D;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,yKAI7B,CAAC"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.js";
|
|
3
|
-
import * as T from "../traits.js";
|
|
4
|
-
import { BadRequest } from "../errors.js";
|
|
5
|
-
export const CreateAnalyticsRuleInput =
|
|
6
|
-
/*@__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "POST", path: "/analytics/rules" }));
|
|
7
|
-
export const CreateAnalyticsRuleOutput =
|
|
8
|
-
/*@__PURE__*/ Schema.Union([
|
|
9
|
-
Schema.Struct({
|
|
10
|
-
name: Schema.String,
|
|
11
|
-
type: Schema.Literals([
|
|
12
|
-
"popular_queries",
|
|
13
|
-
"nohits_queries",
|
|
14
|
-
"counter",
|
|
15
|
-
"log",
|
|
16
|
-
]),
|
|
17
|
-
collection: Schema.String,
|
|
18
|
-
event_type: Schema.String,
|
|
19
|
-
rule_tag: Schema.optional(Schema.String),
|
|
20
|
-
params: Schema.optional(Schema.Struct({
|
|
21
|
-
destination_collection: Schema.optional(Schema.String),
|
|
22
|
-
limit: Schema.optional(Schema.Number),
|
|
23
|
-
capture_search_requests: Schema.optional(Schema.Boolean),
|
|
24
|
-
meta_fields: Schema.optional(Schema.Array(Schema.String)),
|
|
25
|
-
expand_query: Schema.optional(Schema.Boolean),
|
|
26
|
-
counter_field: Schema.optional(Schema.String),
|
|
27
|
-
weight: Schema.optional(Schema.Number),
|
|
28
|
-
})),
|
|
29
|
-
}),
|
|
30
|
-
Schema.Array(Schema.Union([
|
|
31
|
-
Schema.Struct({
|
|
32
|
-
name: Schema.String,
|
|
33
|
-
type: Schema.Literals([
|
|
34
|
-
"popular_queries",
|
|
35
|
-
"nohits_queries",
|
|
36
|
-
"counter",
|
|
37
|
-
"log",
|
|
38
|
-
]),
|
|
39
|
-
collection: Schema.String,
|
|
40
|
-
event_type: Schema.String,
|
|
41
|
-
rule_tag: Schema.optional(Schema.String),
|
|
42
|
-
params: Schema.optional(Schema.Struct({
|
|
43
|
-
destination_collection: Schema.optional(Schema.String),
|
|
44
|
-
limit: Schema.optional(Schema.Number),
|
|
45
|
-
capture_search_requests: Schema.optional(Schema.Boolean),
|
|
46
|
-
meta_fields: Schema.optional(Schema.Array(Schema.String)),
|
|
47
|
-
expand_query: Schema.optional(Schema.Boolean),
|
|
48
|
-
counter_field: Schema.optional(Schema.String),
|
|
49
|
-
weight: Schema.optional(Schema.Number),
|
|
50
|
-
})),
|
|
51
|
-
}),
|
|
52
|
-
Schema.Struct({
|
|
53
|
-
error: Schema.optional(Schema.String),
|
|
54
|
-
}),
|
|
55
|
-
])),
|
|
56
|
-
]);
|
|
57
|
-
// The operation
|
|
58
|
-
/**
|
|
59
|
-
* Create analytics rule(s)
|
|
60
|
-
*
|
|
61
|
-
* Create one or more analytics rules. You can send a single rule object or an array of rule objects.
|
|
62
|
-
*/
|
|
63
|
-
export const createAnalyticsRule = /*@__PURE__*/ API.make(() => ({
|
|
64
|
-
inputSchema: CreateAnalyticsRuleInput,
|
|
65
|
-
outputSchema: CreateAnalyticsRuleOutput,
|
|
66
|
-
errors: [BadRequest],
|
|
67
|
-
}));
|
|
68
|
-
//# sourceMappingURL=createAnalyticsRule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createAnalyticsRule.js","sourceRoot":"","sources":["../../src/operations/createAnalyticsRule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,CAAC,MAAM,cAA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C,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC/D,WAAW,EAAE,wBAAwB;IACrC,YAAY,EAAE,yBAAyB;IACvC,MAAM,EAAE,CAAC,UAAU,CAAU;CAC9B,CAAC,CAAC,CAAC"}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { BadRequest, Conflict } from "../errors.ts";
|
|
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>;
|
|
104
|
-
/**
|
|
105
|
-
* Create a new collection
|
|
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.
|
|
108
|
-
*/
|
|
109
|
-
export declare const createCollection: import("@distilled.cloud/core/client").OperationMethod<CreateCollectionInput, CreateCollectionOutput, BadRequest | Conflict, import("../credentials.ts").Credentials, never>;
|
|
110
|
-
//# sourceMappingURL=createCollection.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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;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