@distilled.cloud/typesense 0.30.2 → 1.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/credentials.d.ts +7 -0
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +17 -0
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +14 -3
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +3 -2
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +7 -10
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +7 -10
- package/lib/index.js.map +1 -1
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +31 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +4 -4
- package/lib/retry.js +4 -4
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +3 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/typesense.d.ts +2817 -0
- package/lib/services/typesense.d.ts.map +1 -0
- package/lib/services/typesense.js +2917 -0
- package/lib/services/typesense.js.map +1 -0
- package/lib/traits.d.ts +8 -2
- package/lib/traits.d.ts.map +1 -1
- package/lib/traits.js +8 -2
- package/lib/traits.js.map +1 -1
- package/package.json +31 -51
- package/src/credentials.ts +26 -0
- package/src/errors.ts +16 -3
- package/src/index.ts +11 -10
- package/src/protocol.ts +52 -0
- package/src/retry.ts +4 -4
- package/src/services/index.ts +2 -0
- package/src/services/typesense.ts +6837 -0
- package/src/traits.ts +41 -2
- package/README.md +0 -75
- package/lib/category.d.ts +0 -5
- package/lib/category.d.ts.map +0 -1
- package/lib/category.js +0 -5
- package/lib/category.js.map +0 -1
- package/lib/client.d.ts +0 -11
- package/lib/client.d.ts.map +0 -1
- package/lib/client.js +0 -56
- package/lib/client.js.map +0 -1
- package/lib/operations/clearCache.d.ts +0 -15
- package/lib/operations/clearCache.d.ts.map +0 -1
- package/lib/operations/clearCache.js +0 -18
- package/lib/operations/clearCache.js.map +0 -1
- package/lib/operations/compactDb.d.ts +0 -15
- package/lib/operations/compactDb.d.ts.map +0 -1
- package/lib/operations/compactDb.js +0 -18
- package/lib/operations/compactDb.js.map +0 -1
- package/lib/operations/createAnalyticsEvent.d.ts +0 -25
- package/lib/operations/createAnalyticsEvent.d.ts.map +0 -1
- package/lib/operations/createAnalyticsEvent.js +0 -32
- package/lib/operations/createAnalyticsEvent.js.map +0 -1
- package/lib/operations/createAnalyticsRule.d.ts +0 -46
- package/lib/operations/createAnalyticsRule.d.ts.map +0 -1
- package/lib/operations/createAnalyticsRule.js +0 -68
- package/lib/operations/createAnalyticsRule.js.map +0 -1
- package/lib/operations/createCollection.d.ts +0 -110
- package/lib/operations/createCollection.d.ts.map +0 -1
- package/lib/operations/createCollection.js +0 -116
- package/lib/operations/createCollection.js.map +0 -1
- package/lib/operations/createConversationModel.d.ts +0 -26
- package/lib/operations/createConversationModel.d.ts.map +0 -1
- package/lib/operations/createConversationModel.js +0 -34
- package/lib/operations/createConversationModel.js.map +0 -1
- package/lib/operations/createKey.d.ts +0 -27
- package/lib/operations/createKey.d.ts.map +0 -1
- package/lib/operations/createKey.js +0 -32
- package/lib/operations/createKey.js.map +0 -1
- package/lib/operations/createNLSearchModel.d.ts +0 -36
- package/lib/operations/createNLSearchModel.d.ts.map +0 -1
- package/lib/operations/createNLSearchModel.js +0 -44
- package/lib/operations/createNLSearchModel.js.map +0 -1
- package/lib/operations/debug.d.ts +0 -13
- package/lib/operations/debug.d.ts.map +0 -1
- package/lib/operations/debug.js +0 -16
- package/lib/operations/debug.js.map +0 -1
- package/lib/operations/deleteAlias.d.ts +0 -18
- package/lib/operations/deleteAlias.d.ts.map +0 -1
- package/lib/operations/deleteAlias.js +0 -23
- package/lib/operations/deleteAlias.js.map +0 -1
- package/lib/operations/deleteAnalyticsRule.d.ts +0 -32
- package/lib/operations/deleteAnalyticsRule.d.ts.map +0 -1
- package/lib/operations/deleteAnalyticsRule.js +0 -44
- package/lib/operations/deleteAnalyticsRule.js.map +0 -1
- package/lib/operations/deleteCollection.d.ts +0 -67
- package/lib/operations/deleteCollection.d.ts.map +0 -1
- package/lib/operations/deleteCollection.js +0 -73
- package/lib/operations/deleteCollection.js.map +0 -1
- package/lib/operations/deleteConversationModel.d.ts +0 -17
- package/lib/operations/deleteConversationModel.d.ts.map +0 -1
- package/lib/operations/deleteConversationModel.js +0 -24
- package/lib/operations/deleteConversationModel.js.map +0 -1
- package/lib/operations/deleteCurationSet.d.ts +0 -19
- package/lib/operations/deleteCurationSet.d.ts.map +0 -1
- package/lib/operations/deleteCurationSet.js +0 -25
- package/lib/operations/deleteCurationSet.js.map +0 -1
- package/lib/operations/deleteCurationSetItem.d.ts +0 -21
- package/lib/operations/deleteCurationSetItem.d.ts.map +0 -1
- package/lib/operations/deleteCurationSetItem.js +0 -31
- package/lib/operations/deleteCurationSetItem.js.map +0 -1
- package/lib/operations/deleteDocument.d.ts +0 -19
- package/lib/operations/deleteDocument.d.ts.map +0 -1
- package/lib/operations/deleteDocument.js +0 -28
- package/lib/operations/deleteDocument.js.map +0 -1
- package/lib/operations/deleteDocuments.d.ts +0 -20
- package/lib/operations/deleteDocuments.d.ts.map +0 -1
- package/lib/operations/deleteDocuments.js +0 -25
- package/lib/operations/deleteDocuments.js.map +0 -1
- package/lib/operations/deleteKey.d.ts +0 -17
- package/lib/operations/deleteKey.d.ts.map +0 -1
- package/lib/operations/deleteKey.js +0 -22
- package/lib/operations/deleteKey.js.map +0 -1
- package/lib/operations/deleteNLSearchModel.d.ts +0 -19
- package/lib/operations/deleteNLSearchModel.d.ts.map +0 -1
- package/lib/operations/deleteNLSearchModel.js +0 -26
- package/lib/operations/deleteNLSearchModel.js.map +0 -1
- package/lib/operations/deletePreset.d.ts +0 -19
- package/lib/operations/deletePreset.d.ts.map +0 -1
- package/lib/operations/deletePreset.js +0 -24
- package/lib/operations/deletePreset.js.map +0 -1
- package/lib/operations/deleteStopwordsSet.d.ts +0 -19
- package/lib/operations/deleteStopwordsSet.d.ts.map +0 -1
- package/lib/operations/deleteStopwordsSet.js +0 -26
- package/lib/operations/deleteStopwordsSet.js.map +0 -1
- package/lib/operations/deleteSynonymSet.d.ts +0 -19
- package/lib/operations/deleteSynonymSet.d.ts.map +0 -1
- package/lib/operations/deleteSynonymSet.js +0 -24
- package/lib/operations/deleteSynonymSet.js.map +0 -1
- package/lib/operations/deleteSynonymSetItem.d.ts +0 -21
- package/lib/operations/deleteSynonymSetItem.d.ts.map +0 -1
- package/lib/operations/deleteSynonymSetItem.js +0 -31
- package/lib/operations/deleteSynonymSetItem.js.map +0 -1
- package/lib/operations/exportDocuments.d.ts +0 -18
- package/lib/operations/exportDocuments.d.ts.map +0 -1
- package/lib/operations/exportDocuments.js +0 -27
- package/lib/operations/exportDocuments.js.map +0 -1
- package/lib/operations/flushAnalytics.d.ts +0 -15
- package/lib/operations/flushAnalytics.d.ts.map +0 -1
- package/lib/operations/flushAnalytics.js +0 -18
- package/lib/operations/flushAnalytics.js.map +0 -1
- package/lib/operations/getAlias.d.ts +0 -20
- package/lib/operations/getAlias.d.ts.map +0 -1
- package/lib/operations/getAlias.js +0 -25
- package/lib/operations/getAlias.js.map +0 -1
- package/lib/operations/getAliases.d.ts +0 -18
- package/lib/operations/getAliases.d.ts.map +0 -1
- package/lib/operations/getAliases.js +0 -21
- package/lib/operations/getAliases.js.map +0 -1
- package/lib/operations/getAnalyticsEvents.d.ts +0 -31
- package/lib/operations/getAnalyticsEvents.d.ts.map +0 -1
- package/lib/operations/getAnalyticsEvents.js +0 -38
- package/lib/operations/getAnalyticsEvents.js.map +0 -1
- package/lib/operations/getAnalyticsStatus.d.ts +0 -21
- package/lib/operations/getAnalyticsStatus.d.ts.map +0 -1
- package/lib/operations/getAnalyticsStatus.js +0 -26
- package/lib/operations/getAnalyticsStatus.js.map +0 -1
- package/lib/operations/getCollection.d.ts +0 -67
- package/lib/operations/getCollection.d.ts.map +0 -1
- package/lib/operations/getCollection.js +0 -73
- package/lib/operations/getCollection.js.map +0 -1
- package/lib/operations/getCollections.d.ts +0 -64
- package/lib/operations/getCollections.d.ts.map +0 -1
- package/lib/operations/getCollections.js +0 -69
- package/lib/operations/getCollections.js.map +0 -1
- package/lib/operations/getDocument.d.ts +0 -19
- package/lib/operations/getDocument.d.ts.map +0 -1
- package/lib/operations/getDocument.js +0 -28
- package/lib/operations/getDocument.js.map +0 -1
- package/lib/operations/getKey.d.ts +0 -25
- package/lib/operations/getKey.d.ts.map +0 -1
- package/lib/operations/getKey.js +0 -30
- package/lib/operations/getKey.js.map +0 -1
- package/lib/operations/getKeys.d.ts +0 -21
- package/lib/operations/getKeys.d.ts.map +0 -1
- package/lib/operations/getKeys.js +0 -24
- package/lib/operations/getKeys.js.map +0 -1
- package/lib/operations/getSchemaChanges.d.ts +0 -17
- package/lib/operations/getSchemaChanges.d.ts.map +0 -1
- package/lib/operations/getSchemaChanges.js +0 -20
- package/lib/operations/getSchemaChanges.js.map +0 -1
- package/lib/operations/getStemmingDictionary.d.ts +0 -23
- package/lib/operations/getStemmingDictionary.d.ts.map +0 -1
- package/lib/operations/getStemmingDictionary.js +0 -30
- package/lib/operations/getStemmingDictionary.js.map +0 -1
- package/lib/operations/health.d.ts +0 -13
- package/lib/operations/health.d.ts.map +0 -1
- package/lib/operations/health.js +0 -16
- package/lib/operations/health.js.map +0 -1
- package/lib/operations/importDocuments.d.ts +0 -18
- package/lib/operations/importDocuments.d.ts.map +0 -1
- package/lib/operations/importDocuments.js +0 -27
- package/lib/operations/importDocuments.js.map +0 -1
- package/lib/operations/importStemmingDictionary.d.ts +0 -17
- package/lib/operations/importStemmingDictionary.d.ts.map +0 -1
- package/lib/operations/importStemmingDictionary.js +0 -24
- package/lib/operations/importStemmingDictionary.js.map +0 -1
- package/lib/operations/index.d.ts +0 -80
- package/lib/operations/index.d.ts.map +0 -1
- package/lib/operations/index.js +0 -80
- package/lib/operations/index.js.map +0 -1
- package/lib/operations/indexDocument.d.ts +0 -21
- package/lib/operations/indexDocument.d.ts.map +0 -1
- package/lib/operations/indexDocument.js +0 -27
- package/lib/operations/indexDocument.js.map +0 -1
- package/lib/operations/listStemmingDictionaries.d.ts +0 -15
- package/lib/operations/listStemmingDictionaries.d.ts.map +0 -1
- package/lib/operations/listStemmingDictionaries.js +0 -20
- package/lib/operations/listStemmingDictionaries.js.map +0 -1
- package/lib/operations/multiSearch.d.ts +0 -207
- package/lib/operations/multiSearch.d.ts.map +0 -1
- package/lib/operations/multiSearch.js +0 -212
- package/lib/operations/multiSearch.js.map +0 -1
- package/lib/operations/retrieveAPIStats.d.ts +0 -27
- package/lib/operations/retrieveAPIStats.d.ts.map +0 -1
- package/lib/operations/retrieveAPIStats.js +0 -30
- package/lib/operations/retrieveAPIStats.js.map +0 -1
- package/lib/operations/retrieveAllConversationModels.d.ts +0 -15
- package/lib/operations/retrieveAllConversationModels.d.ts.map +0 -1
- package/lib/operations/retrieveAllConversationModels.js +0 -21
- package/lib/operations/retrieveAllConversationModels.js.map +0 -1
- package/lib/operations/retrieveAllNLSearchModels.d.ts +0 -15
- package/lib/operations/retrieveAllNLSearchModels.d.ts.map +0 -1
- package/lib/operations/retrieveAllNLSearchModels.js +0 -20
- package/lib/operations/retrieveAllNLSearchModels.js.map +0 -1
- package/lib/operations/retrieveAllPresets.d.ts +0 -163
- package/lib/operations/retrieveAllPresets.d.ts.map +0 -1
- package/lib/operations/retrieveAllPresets.js +0 -23
- package/lib/operations/retrieveAllPresets.js.map +0 -1
- package/lib/operations/retrieveAnalyticsRule.d.ts +0 -32
- package/lib/operations/retrieveAnalyticsRule.d.ts.map +0 -1
- package/lib/operations/retrieveAnalyticsRule.js +0 -44
- package/lib/operations/retrieveAnalyticsRule.js.map +0 -1
- package/lib/operations/retrieveAnalyticsRules.d.ts +0 -31
- package/lib/operations/retrieveAnalyticsRules.d.ts.map +0 -1
- package/lib/operations/retrieveAnalyticsRules.js +0 -42
- package/lib/operations/retrieveAnalyticsRules.js.map +0 -1
- package/lib/operations/retrieveConversationModel.d.ts +0 -17
- package/lib/operations/retrieveConversationModel.d.ts.map +0 -1
- package/lib/operations/retrieveConversationModel.js +0 -24
- package/lib/operations/retrieveConversationModel.js.map +0 -1
- package/lib/operations/retrieveCurationSet.d.ts +0 -45
- package/lib/operations/retrieveCurationSet.d.ts.map +0 -1
- package/lib/operations/retrieveCurationSet.js +0 -52
- package/lib/operations/retrieveCurationSet.js.map +0 -1
- package/lib/operations/retrieveCurationSetItem.d.ts +0 -43
- package/lib/operations/retrieveCurationSetItem.d.ts.map +0 -1
- package/lib/operations/retrieveCurationSetItem.js +0 -53
- package/lib/operations/retrieveCurationSetItem.js.map +0 -1
- package/lib/operations/retrieveCurationSetItems.d.ts +0 -41
- package/lib/operations/retrieveCurationSetItems.d.ts.map +0 -1
- package/lib/operations/retrieveCurationSetItems.js +0 -48
- package/lib/operations/retrieveCurationSetItems.js.map +0 -1
- package/lib/operations/retrieveCurationSets.d.ts +0 -41
- package/lib/operations/retrieveCurationSets.d.ts.map +0 -1
- package/lib/operations/retrieveCurationSets.js +0 -46
- package/lib/operations/retrieveCurationSets.js.map +0 -1
- package/lib/operations/retrieveMetrics.d.ts +0 -13
- package/lib/operations/retrieveMetrics.d.ts.map +0 -1
- package/lib/operations/retrieveMetrics.js +0 -17
- package/lib/operations/retrieveMetrics.js.map +0 -1
- package/lib/operations/retrieveNLSearchModel.d.ts +0 -19
- package/lib/operations/retrieveNLSearchModel.d.ts.map +0 -1
- package/lib/operations/retrieveNLSearchModel.js +0 -26
- package/lib/operations/retrieveNLSearchModel.js.map +0 -1
- package/lib/operations/retrievePreset.d.ts +0 -165
- package/lib/operations/retrievePreset.d.ts.map +0 -1
- package/lib/operations/retrievePreset.js +0 -25
- package/lib/operations/retrievePreset.js.map +0 -1
- package/lib/operations/retrieveStopwordsSet.d.ts +0 -23
- package/lib/operations/retrieveStopwordsSet.d.ts.map +0 -1
- package/lib/operations/retrieveStopwordsSet.js +0 -30
- package/lib/operations/retrieveStopwordsSet.js.map +0 -1
- package/lib/operations/retrieveStopwordsSets.d.ts +0 -19
- package/lib/operations/retrieveStopwordsSets.d.ts.map +0 -1
- package/lib/operations/retrieveStopwordsSets.js +0 -24
- package/lib/operations/retrieveStopwordsSets.js.map +0 -1
- package/lib/operations/retrieveSynonymSet.d.ts +0 -26
- package/lib/operations/retrieveSynonymSet.d.ts.map +0 -1
- package/lib/operations/retrieveSynonymSet.js +0 -33
- package/lib/operations/retrieveSynonymSet.js.map +0 -1
- package/lib/operations/retrieveSynonymSetItem.d.ts +0 -25
- package/lib/operations/retrieveSynonymSetItem.d.ts.map +0 -1
- package/lib/operations/retrieveSynonymSetItem.js +0 -35
- package/lib/operations/retrieveSynonymSetItem.js.map +0 -1
- package/lib/operations/retrieveSynonymSetItems.d.ts +0 -23
- package/lib/operations/retrieveSynonymSetItems.d.ts.map +0 -1
- package/lib/operations/retrieveSynonymSetItems.js +0 -30
- package/lib/operations/retrieveSynonymSetItems.js.map +0 -1
- package/lib/operations/retrieveSynonymSets.d.ts +0 -22
- package/lib/operations/retrieveSynonymSets.d.ts.map +0 -1
- package/lib/operations/retrieveSynonymSets.js +0 -27
- package/lib/operations/retrieveSynonymSets.js.map +0 -1
- package/lib/operations/searchCollection.d.ts +0 -129
- package/lib/operations/searchCollection.d.ts.map +0 -1
- package/lib/operations/searchCollection.js +0 -137
- package/lib/operations/searchCollection.js.map +0 -1
- package/lib/operations/takeSnapshot.d.ts +0 -18
- package/lib/operations/takeSnapshot.d.ts.map +0 -1
- package/lib/operations/takeSnapshot.js +0 -22
- package/lib/operations/takeSnapshot.js.map +0 -1
- package/lib/operations/toggleSlowRequestLog.d.ts +0 -16
- package/lib/operations/toggleSlowRequestLog.d.ts.map +0 -1
- package/lib/operations/toggleSlowRequestLog.js +0 -22
- package/lib/operations/toggleSlowRequestLog.js.map +0 -1
- package/lib/operations/updateCollection.d.ts +0 -95
- package/lib/operations/updateCollection.d.ts.map +0 -1
- package/lib/operations/updateCollection.js +0 -101
- package/lib/operations/updateCollection.js.map +0 -1
- package/lib/operations/updateConversationModel.d.ts +0 -27
- package/lib/operations/updateConversationModel.d.ts.map +0 -1
- package/lib/operations/updateConversationModel.js +0 -35
- package/lib/operations/updateConversationModel.js.map +0 -1
- package/lib/operations/updateDocument.d.ts +0 -21
- package/lib/operations/updateDocument.d.ts.map +0 -1
- package/lib/operations/updateDocument.js +0 -30
- package/lib/operations/updateDocument.js.map +0 -1
- package/lib/operations/updateDocuments.d.ts +0 -20
- package/lib/operations/updateDocuments.d.ts.map +0 -1
- package/lib/operations/updateDocuments.js +0 -25
- package/lib/operations/updateDocuments.js.map +0 -1
- package/lib/operations/updateNLSearchModel.d.ts +0 -19
- package/lib/operations/updateNLSearchModel.d.ts.map +0 -1
- package/lib/operations/updateNLSearchModel.js +0 -26
- package/lib/operations/updateNLSearchModel.js.map +0 -1
- package/lib/operations/upsertAlias.d.ts +0 -21
- package/lib/operations/upsertAlias.d.ts.map +0 -1
- package/lib/operations/upsertAlias.js +0 -26
- package/lib/operations/upsertAlias.js.map +0 -1
- package/lib/operations/upsertAnalyticsRule.d.ts +0 -43
- package/lib/operations/upsertAnalyticsRule.d.ts.map +0 -1
- package/lib/operations/upsertAnalyticsRule.js +0 -55
- package/lib/operations/upsertAnalyticsRule.js.map +0 -1
- package/lib/operations/upsertCurationSet.d.ts +0 -71
- package/lib/operations/upsertCurationSet.d.ts.map +0 -1
- package/lib/operations/upsertCurationSet.js +0 -77
- package/lib/operations/upsertCurationSet.js.map +0 -1
- package/lib/operations/upsertCurationSetItem.d.ts +0 -66
- package/lib/operations/upsertCurationSetItem.d.ts.map +0 -1
- package/lib/operations/upsertCurationSetItem.js +0 -76
- package/lib/operations/upsertCurationSetItem.js.map +0 -1
- package/lib/operations/upsertPreset.d.ts +0 -311
- package/lib/operations/upsertPreset.d.ts.map +0 -1
- package/lib/operations/upsertPreset.js +0 -26
- package/lib/operations/upsertPreset.js.map +0 -1
- package/lib/operations/upsertStopwordsSet.d.ts +0 -23
- package/lib/operations/upsertStopwordsSet.d.ts.map +0 -1
- package/lib/operations/upsertStopwordsSet.js +0 -30
- package/lib/operations/upsertStopwordsSet.js.map +0 -1
- package/lib/operations/upsertSynonymSet.d.ts +0 -33
- package/lib/operations/upsertSynonymSet.d.ts.map +0 -1
- package/lib/operations/upsertSynonymSet.js +0 -38
- package/lib/operations/upsertSynonymSet.js.map +0 -1
- package/lib/operations/upsertSynonymSetItem.d.ts +0 -29
- package/lib/operations/upsertSynonymSetItem.d.ts.map +0 -1
- package/lib/operations/upsertSynonymSetItem.js +0 -39
- package/lib/operations/upsertSynonymSetItem.js.map +0 -1
- package/lib/operations/vote.d.ts +0 -15
- package/lib/operations/vote.d.ts.map +0 -1
- package/lib/operations/vote.js +0 -18
- package/lib/operations/vote.js.map +0 -1
- package/lib/sensitive.d.ts +0 -5
- package/lib/sensitive.d.ts.map +0 -1
- package/lib/sensitive.js +0 -5
- package/lib/sensitive.js.map +0 -1
- package/src/category.ts +0 -4
- package/src/client.ts +0 -71
- package/src/operations/clearCache.ts +0 -28
- package/src/operations/compactDb.ts +0 -28
- package/src/operations/createAnalyticsEvent.ts +0 -52
- package/src/operations/createAnalyticsRule.ts +0 -117
- package/src/operations/createCollection.ts +0 -228
- package/src/operations/createConversationModel.ts +0 -54
- package/src/operations/createKey.ts +0 -54
- package/src/operations/createNLSearchModel.ts +0 -74
- package/src/operations/debug.ts +0 -26
- package/src/operations/deleteAlias.ts +0 -36
- package/src/operations/deleteAnalyticsRule.ts +0 -71
- package/src/operations/deleteCollection.ts +0 -136
- package/src/operations/deleteConversationModel.ts +0 -36
- package/src/operations/deleteCurationSet.ts +0 -37
- package/src/operations/deleteCurationSetItem.ts +0 -44
- package/src/operations/deleteDocument.ts +0 -39
- package/src/operations/deleteDocuments.ts +0 -38
- package/src/operations/deleteKey.ts +0 -34
- package/src/operations/deleteNLSearchModel.ts +0 -38
- package/src/operations/deletePreset.ts +0 -36
- package/src/operations/deleteStopwordsSet.ts +0 -38
- package/src/operations/deleteSynonymSet.ts +0 -36
- package/src/operations/deleteSynonymSetItem.ts +0 -44
- package/src/operations/exportDocuments.ts +0 -38
- package/src/operations/flushAnalytics.ts +0 -28
- package/src/operations/getAlias.ts +0 -38
- package/src/operations/getAliases.ts +0 -33
- package/src/operations/getAnalyticsEvents.ts +0 -63
- package/src/operations/getAnalyticsStatus.ts +0 -42
- package/src/operations/getCollection.ts +0 -136
- package/src/operations/getCollections.ts +0 -134
- package/src/operations/getDocument.ts +0 -39
- package/src/operations/getKey.ts +0 -48
- package/src/operations/getKeys.ts +0 -44
- package/src/operations/getSchemaChanges.ts +0 -34
- package/src/operations/getStemmingDictionary.ts +0 -45
- package/src/operations/health.ts +0 -26
- package/src/operations/importDocuments.ts +0 -38
- package/src/operations/importStemmingDictionary.ts +0 -34
- package/src/operations/index.ts +0 -79
- package/src/operations/indexDocument.ts +0 -39
- package/src/operations/listStemmingDictionaries.ts +0 -30
- package/src/operations/multiSearch.ts +0 -476
- package/src/operations/retrieveAPIStats.ts +0 -52
- package/src/operations/retrieveAllConversationModels.ts +0 -31
- package/src/operations/retrieveAllNLSearchModels.ts +0 -30
- package/src/operations/retrieveAllPresets.ts +0 -188
- package/src/operations/retrieveAnalyticsRule.ts +0 -71
- package/src/operations/retrieveAnalyticsRules.ts +0 -71
- package/src/operations/retrieveConversationModel.ts +0 -36
- package/src/operations/retrieveCurationSet.ts +0 -95
- package/src/operations/retrieveCurationSetItem.ts +0 -91
- package/src/operations/retrieveCurationSetItems.ts +0 -87
- package/src/operations/retrieveCurationSets.ts +0 -89
- package/src/operations/retrieveMetrics.ts +0 -25
- package/src/operations/retrieveNLSearchModel.ts +0 -38
- package/src/operations/retrievePreset.ts +0 -185
- package/src/operations/retrieveStopwordsSet.ts +0 -42
- package/src/operations/retrieveStopwordsSets.ts +0 -36
- package/src/operations/retrieveSynonymSet.ts +0 -54
- package/src/operations/retrieveSynonymSetItem.ts +0 -52
- package/src/operations/retrieveSynonymSetItems.ts +0 -48
- package/src/operations/retrieveSynonymSets.ts +0 -48
- package/src/operations/searchCollection.ts +0 -309
- package/src/operations/takeSnapshot.ts +0 -34
- package/src/operations/toggleSlowRequestLog.ts +0 -34
- package/src/operations/updateCollection.ts +0 -200
- package/src/operations/updateConversationModel.ts +0 -56
- package/src/operations/updateDocument.ts +0 -42
- package/src/operations/updateDocuments.ts +0 -38
- package/src/operations/updateNLSearchModel.ts +0 -38
- package/src/operations/upsertAlias.ts +0 -40
- package/src/operations/upsertAnalyticsRule.ts +0 -95
- package/src/operations/upsertCurationSet.ts +0 -151
- package/src/operations/upsertCurationSetItem.ts +0 -140
- package/src/operations/upsertPreset.ts +0 -334
- package/src/operations/upsertStopwordsSet.ts +0 -46
- package/src/operations/upsertSynonymSet.ts +0 -68
- package/src/operations/upsertSynonymSetItem.ts +0 -60
- package/src/operations/vote.ts +0 -28
- package/src/sensitive.ts +0 -4
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
import { SensitiveOutputString } from "../sensitive.ts";
|
|
5
|
-
import * as Redacted from "effect/Redacted";
|
|
6
|
-
|
|
7
|
-
// Input Schema
|
|
8
|
-
export interface GetCollectionsInput {
|
|
9
|
-
getCollectionsParameters?: string;
|
|
10
|
-
}
|
|
11
|
-
export const GetCollectionsInput = /*@__PURE__*/ Schema.Struct({
|
|
12
|
-
getCollectionsParameters: Schema.optional(Schema.String),
|
|
13
|
-
}).pipe(
|
|
14
|
-
T.Http({ method: "GET", path: "/collections" }),
|
|
15
|
-
) as unknown as Schema.Codec<GetCollectionsInput>;
|
|
16
|
-
|
|
17
|
-
// Output Schema
|
|
18
|
-
export type GetCollectionsOutput = {
|
|
19
|
-
name: string;
|
|
20
|
-
fields: {
|
|
21
|
-
name: string;
|
|
22
|
-
type: string;
|
|
23
|
-
optional?: boolean;
|
|
24
|
-
facet?: boolean;
|
|
25
|
-
index?: boolean;
|
|
26
|
-
locale?: string;
|
|
27
|
-
sort?: boolean;
|
|
28
|
-
infix?: boolean;
|
|
29
|
-
reference?: string;
|
|
30
|
-
async_reference?: boolean;
|
|
31
|
-
num_dim?: number;
|
|
32
|
-
drop?: boolean;
|
|
33
|
-
store?: boolean;
|
|
34
|
-
vec_dist?: string;
|
|
35
|
-
range_index?: boolean;
|
|
36
|
-
stem?: boolean;
|
|
37
|
-
stem_dictionary?: string;
|
|
38
|
-
token_separators?: string[];
|
|
39
|
-
symbols_to_index?: string[];
|
|
40
|
-
embed?: {
|
|
41
|
-
from: string[];
|
|
42
|
-
model_config: {
|
|
43
|
-
model_name: string;
|
|
44
|
-
api_key?: Redacted.Redacted<string>;
|
|
45
|
-
url?: string;
|
|
46
|
-
access_token?: Redacted.Redacted<string>;
|
|
47
|
-
refresh_token?: Redacted.Redacted<string>;
|
|
48
|
-
client_id?: string;
|
|
49
|
-
client_secret?: Redacted.Redacted<string>;
|
|
50
|
-
project_id?: string;
|
|
51
|
-
indexing_prefix?: string;
|
|
52
|
-
query_prefix?: string;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
}[];
|
|
56
|
-
default_sorting_field?: string;
|
|
57
|
-
token_separators?: string[];
|
|
58
|
-
synonym_sets?: string[];
|
|
59
|
-
enable_nested_fields?: boolean;
|
|
60
|
-
symbols_to_index?: string[];
|
|
61
|
-
voice_query_model?: { model_name?: string };
|
|
62
|
-
metadata?: unknown;
|
|
63
|
-
num_documents: number;
|
|
64
|
-
created_at: number;
|
|
65
|
-
}[];
|
|
66
|
-
export const GetCollectionsOutput = /*@__PURE__*/ Schema.Array(
|
|
67
|
-
Schema.Struct({
|
|
68
|
-
name: Schema.String,
|
|
69
|
-
fields: Schema.Array(
|
|
70
|
-
Schema.Struct({
|
|
71
|
-
name: Schema.String,
|
|
72
|
-
type: Schema.String,
|
|
73
|
-
optional: Schema.optional(Schema.Boolean),
|
|
74
|
-
facet: Schema.optional(Schema.Boolean),
|
|
75
|
-
index: Schema.optional(Schema.Boolean),
|
|
76
|
-
locale: Schema.optional(Schema.String),
|
|
77
|
-
sort: Schema.optional(Schema.Boolean),
|
|
78
|
-
infix: Schema.optional(Schema.Boolean),
|
|
79
|
-
reference: Schema.optional(Schema.String),
|
|
80
|
-
async_reference: Schema.optional(Schema.Boolean),
|
|
81
|
-
num_dim: Schema.optional(Schema.Number),
|
|
82
|
-
drop: Schema.optional(Schema.Boolean),
|
|
83
|
-
store: Schema.optional(Schema.Boolean),
|
|
84
|
-
vec_dist: Schema.optional(Schema.String),
|
|
85
|
-
range_index: Schema.optional(Schema.Boolean),
|
|
86
|
-
stem: Schema.optional(Schema.Boolean),
|
|
87
|
-
stem_dictionary: Schema.optional(Schema.String),
|
|
88
|
-
token_separators: Schema.optional(Schema.Array(Schema.String)),
|
|
89
|
-
symbols_to_index: Schema.optional(Schema.Array(Schema.String)),
|
|
90
|
-
embed: Schema.optional(
|
|
91
|
-
Schema.Struct({
|
|
92
|
-
from: Schema.Array(Schema.String),
|
|
93
|
-
model_config: Schema.Struct({
|
|
94
|
-
model_name: Schema.String,
|
|
95
|
-
api_key: Schema.optional(SensitiveOutputString),
|
|
96
|
-
url: Schema.optional(Schema.String),
|
|
97
|
-
access_token: Schema.optional(SensitiveOutputString),
|
|
98
|
-
refresh_token: Schema.optional(SensitiveOutputString),
|
|
99
|
-
client_id: Schema.optional(Schema.String),
|
|
100
|
-
client_secret: Schema.optional(SensitiveOutputString),
|
|
101
|
-
project_id: Schema.optional(Schema.String),
|
|
102
|
-
indexing_prefix: Schema.optional(Schema.String),
|
|
103
|
-
query_prefix: Schema.optional(Schema.String),
|
|
104
|
-
}),
|
|
105
|
-
}),
|
|
106
|
-
),
|
|
107
|
-
}),
|
|
108
|
-
),
|
|
109
|
-
default_sorting_field: Schema.optional(Schema.String),
|
|
110
|
-
token_separators: Schema.optional(Schema.Array(Schema.String)),
|
|
111
|
-
synonym_sets: Schema.optional(Schema.Array(Schema.String)),
|
|
112
|
-
enable_nested_fields: Schema.optional(Schema.Boolean),
|
|
113
|
-
symbols_to_index: Schema.optional(Schema.Array(Schema.String)),
|
|
114
|
-
voice_query_model: Schema.optional(
|
|
115
|
-
Schema.Struct({
|
|
116
|
-
model_name: Schema.optional(Schema.String),
|
|
117
|
-
}),
|
|
118
|
-
),
|
|
119
|
-
metadata: Schema.optional(Schema.Unknown),
|
|
120
|
-
num_documents: Schema.Number,
|
|
121
|
-
created_at: Schema.Number,
|
|
122
|
-
}),
|
|
123
|
-
) as unknown as Schema.Codec<GetCollectionsOutput>;
|
|
124
|
-
|
|
125
|
-
// The operation
|
|
126
|
-
/**
|
|
127
|
-
* List all collections
|
|
128
|
-
*
|
|
129
|
-
* Returns a summary of all your collections. The collections are returned sorted by creation date, with the most recent collections appearing first.
|
|
130
|
-
*/
|
|
131
|
-
export const getCollections = /*@__PURE__*/ API.make(() => ({
|
|
132
|
-
inputSchema: GetCollectionsInput,
|
|
133
|
-
outputSchema: GetCollectionsOutput,
|
|
134
|
-
}));
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
import { NotFound } from "../errors.ts";
|
|
5
|
-
|
|
6
|
-
// Input Schema
|
|
7
|
-
export interface GetDocumentInput {
|
|
8
|
-
collectionName: string;
|
|
9
|
-
documentId: string;
|
|
10
|
-
}
|
|
11
|
-
export const GetDocumentInput = /*@__PURE__*/ Schema.Struct({
|
|
12
|
-
collectionName: Schema.String.pipe(T.PathParam()),
|
|
13
|
-
documentId: Schema.String.pipe(T.PathParam()),
|
|
14
|
-
}).pipe(
|
|
15
|
-
T.Http({
|
|
16
|
-
method: "GET",
|
|
17
|
-
path: "/collections/{collectionName}/documents/{documentId}",
|
|
18
|
-
}),
|
|
19
|
-
) as unknown as Schema.Codec<GetDocumentInput>;
|
|
20
|
-
|
|
21
|
-
// Output Schema
|
|
22
|
-
export type GetDocumentOutput = unknown;
|
|
23
|
-
export const GetDocumentOutput =
|
|
24
|
-
/*@__PURE__*/ Schema.Unknown as unknown as Schema.Codec<GetDocumentOutput>;
|
|
25
|
-
|
|
26
|
-
// The operation
|
|
27
|
-
/**
|
|
28
|
-
* Retrieve a document
|
|
29
|
-
*
|
|
30
|
-
* Fetch an individual document from a collection by using its ID.
|
|
31
|
-
*
|
|
32
|
-
* @param collectionName - The name of the collection to search for the document under
|
|
33
|
-
* @param documentId - The Document ID
|
|
34
|
-
*/
|
|
35
|
-
export const getDocument = /*@__PURE__*/ API.make(() => ({
|
|
36
|
-
inputSchema: GetDocumentInput,
|
|
37
|
-
outputSchema: GetDocumentOutput,
|
|
38
|
-
errors: [NotFound] as const,
|
|
39
|
-
}));
|
package/src/operations/getKey.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
import { NotFound } from "../errors.ts";
|
|
5
|
-
|
|
6
|
-
// Input Schema
|
|
7
|
-
export interface GetKeyInput {
|
|
8
|
-
keyId: number;
|
|
9
|
-
}
|
|
10
|
-
export const GetKeyInput = /*@__PURE__*/ Schema.Struct({
|
|
11
|
-
keyId: Schema.Number.pipe(T.PathParam()),
|
|
12
|
-
}).pipe(
|
|
13
|
-
T.Http({ method: "GET", path: "/keys/{keyId}" }),
|
|
14
|
-
) as unknown as Schema.Codec<GetKeyInput>;
|
|
15
|
-
|
|
16
|
-
// Output Schema
|
|
17
|
-
export interface GetKeyOutput {
|
|
18
|
-
value?: string;
|
|
19
|
-
description: string;
|
|
20
|
-
actions: string[];
|
|
21
|
-
collections: string[];
|
|
22
|
-
expires_at?: number;
|
|
23
|
-
id?: number;
|
|
24
|
-
value_prefix?: string;
|
|
25
|
-
}
|
|
26
|
-
export const GetKeyOutput = /*@__PURE__*/ Schema.Struct({
|
|
27
|
-
value: Schema.optional(Schema.String),
|
|
28
|
-
description: Schema.String,
|
|
29
|
-
actions: Schema.Array(Schema.String),
|
|
30
|
-
collections: Schema.Array(Schema.String),
|
|
31
|
-
expires_at: Schema.optional(Schema.Number),
|
|
32
|
-
id: Schema.optional(Schema.Number),
|
|
33
|
-
value_prefix: Schema.optional(Schema.String),
|
|
34
|
-
}) as unknown as Schema.Codec<GetKeyOutput>;
|
|
35
|
-
|
|
36
|
-
// The operation
|
|
37
|
-
/**
|
|
38
|
-
* Retrieve (metadata about) a key
|
|
39
|
-
*
|
|
40
|
-
* Retrieve (metadata about) a key. Only the key prefix is returned when you retrieve a key. Due to security reasons, only the create endpoint returns the full API key.
|
|
41
|
-
*
|
|
42
|
-
* @param keyId - The ID of the key to retrieve
|
|
43
|
-
*/
|
|
44
|
-
export const getKey = /*@__PURE__*/ API.make(() => ({
|
|
45
|
-
inputSchema: GetKeyInput,
|
|
46
|
-
outputSchema: GetKeyOutput,
|
|
47
|
-
errors: [NotFound] as const,
|
|
48
|
-
}));
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
|
|
5
|
-
// Input Schema
|
|
6
|
-
export interface GetKeysInput {}
|
|
7
|
-
export const GetKeysInput = /*@__PURE__*/ Schema.Struct({}).pipe(
|
|
8
|
-
T.Http({ method: "GET", path: "/keys" }),
|
|
9
|
-
) as unknown as Schema.Codec<GetKeysInput>;
|
|
10
|
-
|
|
11
|
-
// Output Schema
|
|
12
|
-
export interface GetKeysOutput {
|
|
13
|
-
keys: {
|
|
14
|
-
value?: string;
|
|
15
|
-
description: string;
|
|
16
|
-
actions: string[];
|
|
17
|
-
collections: string[];
|
|
18
|
-
expires_at?: number;
|
|
19
|
-
id?: number;
|
|
20
|
-
value_prefix?: string;
|
|
21
|
-
}[];
|
|
22
|
-
}
|
|
23
|
-
export const GetKeysOutput = /*@__PURE__*/ Schema.Struct({
|
|
24
|
-
keys: Schema.Array(
|
|
25
|
-
Schema.Struct({
|
|
26
|
-
value: Schema.optional(Schema.String),
|
|
27
|
-
description: Schema.String,
|
|
28
|
-
actions: Schema.Array(Schema.String),
|
|
29
|
-
collections: Schema.Array(Schema.String),
|
|
30
|
-
expires_at: Schema.optional(Schema.Number),
|
|
31
|
-
id: Schema.optional(Schema.Number),
|
|
32
|
-
value_prefix: Schema.optional(Schema.String),
|
|
33
|
-
}),
|
|
34
|
-
),
|
|
35
|
-
}) as unknown as Schema.Codec<GetKeysOutput>;
|
|
36
|
-
|
|
37
|
-
// The operation
|
|
38
|
-
/**
|
|
39
|
-
* Retrieve (metadata about) all keys.
|
|
40
|
-
*/
|
|
41
|
-
export const getKeys = /*@__PURE__*/ API.make(() => ({
|
|
42
|
-
inputSchema: GetKeysInput,
|
|
43
|
-
outputSchema: GetKeysOutput,
|
|
44
|
-
}));
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
|
|
5
|
-
// Input Schema
|
|
6
|
-
export interface GetSchemaChangesInput {}
|
|
7
|
-
export const GetSchemaChangesInput = /*@__PURE__*/ Schema.Struct({}).pipe(
|
|
8
|
-
T.Http({ method: "GET", path: "/operations/schema_changes" }),
|
|
9
|
-
) as unknown as Schema.Codec<GetSchemaChangesInput>;
|
|
10
|
-
|
|
11
|
-
// Output Schema
|
|
12
|
-
export type GetSchemaChangesOutput = {
|
|
13
|
-
collection?: string;
|
|
14
|
-
validated_docs?: number;
|
|
15
|
-
altered_docs?: number;
|
|
16
|
-
}[];
|
|
17
|
-
export const GetSchemaChangesOutput = /*@__PURE__*/ Schema.Array(
|
|
18
|
-
Schema.Struct({
|
|
19
|
-
collection: Schema.optional(Schema.String),
|
|
20
|
-
validated_docs: Schema.optional(Schema.Number),
|
|
21
|
-
altered_docs: Schema.optional(Schema.Number),
|
|
22
|
-
}),
|
|
23
|
-
) as unknown as Schema.Codec<GetSchemaChangesOutput>;
|
|
24
|
-
|
|
25
|
-
// The operation
|
|
26
|
-
/**
|
|
27
|
-
* Get the status of in-progress schema change operations
|
|
28
|
-
*
|
|
29
|
-
* Returns the status of any ongoing schema change operations. If no schema changes are in progress, returns an empty response.
|
|
30
|
-
*/
|
|
31
|
-
export const getSchemaChanges = /*@__PURE__*/ API.make(() => ({
|
|
32
|
-
inputSchema: GetSchemaChangesInput,
|
|
33
|
-
outputSchema: GetSchemaChangesOutput,
|
|
34
|
-
}));
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
import { NotFound } from "../errors.ts";
|
|
5
|
-
|
|
6
|
-
// Input Schema
|
|
7
|
-
export interface GetStemmingDictionaryInput {
|
|
8
|
-
dictionaryId: string;
|
|
9
|
-
}
|
|
10
|
-
export const GetStemmingDictionaryInput =
|
|
11
|
-
/*@__PURE__*/ Schema.Struct({
|
|
12
|
-
dictionaryId: Schema.String.pipe(T.PathParam()),
|
|
13
|
-
}).pipe(
|
|
14
|
-
T.Http({ method: "GET", path: "/stemming/dictionaries/{dictionaryId}" }),
|
|
15
|
-
) as unknown as Schema.Codec<GetStemmingDictionaryInput>;
|
|
16
|
-
|
|
17
|
-
// Output Schema
|
|
18
|
-
export interface GetStemmingDictionaryOutput {
|
|
19
|
-
id: string;
|
|
20
|
-
words: { word: string; root: string }[];
|
|
21
|
-
}
|
|
22
|
-
export const GetStemmingDictionaryOutput =
|
|
23
|
-
/*@__PURE__*/ Schema.Struct({
|
|
24
|
-
id: Schema.String,
|
|
25
|
-
words: Schema.Array(
|
|
26
|
-
Schema.Struct({
|
|
27
|
-
word: Schema.String,
|
|
28
|
-
root: Schema.String,
|
|
29
|
-
}),
|
|
30
|
-
),
|
|
31
|
-
}) as unknown as Schema.Codec<GetStemmingDictionaryOutput>;
|
|
32
|
-
|
|
33
|
-
// The operation
|
|
34
|
-
/**
|
|
35
|
-
* Retrieve a stemming dictionary
|
|
36
|
-
*
|
|
37
|
-
* Fetch details of a specific stemming dictionary.
|
|
38
|
-
*
|
|
39
|
-
* @param dictionaryId - The ID of the dictionary to retrieve
|
|
40
|
-
*/
|
|
41
|
-
export const getStemmingDictionary = /*@__PURE__*/ API.make(() => ({
|
|
42
|
-
inputSchema: GetStemmingDictionaryInput,
|
|
43
|
-
outputSchema: GetStemmingDictionaryOutput,
|
|
44
|
-
errors: [NotFound] as const,
|
|
45
|
-
}));
|
package/src/operations/health.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
|
|
5
|
-
// Input Schema
|
|
6
|
-
export interface HealthInput {}
|
|
7
|
-
export const HealthInput = /*@__PURE__*/ Schema.Struct({}).pipe(
|
|
8
|
-
T.Http({ method: "GET", path: "/health" }),
|
|
9
|
-
) as unknown as Schema.Codec<HealthInput>;
|
|
10
|
-
|
|
11
|
-
// Output Schema
|
|
12
|
-
export interface HealthOutput {
|
|
13
|
-
ok: boolean;
|
|
14
|
-
}
|
|
15
|
-
export const HealthOutput = /*@__PURE__*/ Schema.Struct({
|
|
16
|
-
ok: Schema.Boolean,
|
|
17
|
-
}) as unknown as Schema.Codec<HealthOutput>;
|
|
18
|
-
|
|
19
|
-
// The operation
|
|
20
|
-
/**
|
|
21
|
-
* Checks if Typesense server is ready to accept requests.
|
|
22
|
-
*/
|
|
23
|
-
export const health = /*@__PURE__*/ API.make(() => ({
|
|
24
|
-
inputSchema: HealthInput,
|
|
25
|
-
outputSchema: HealthOutput,
|
|
26
|
-
}));
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
import { BadRequest, NotFound } from "../errors.ts";
|
|
5
|
-
|
|
6
|
-
// Input Schema
|
|
7
|
-
export interface ImportDocumentsInput {
|
|
8
|
-
collectionName: string;
|
|
9
|
-
importDocumentsParameters?: string;
|
|
10
|
-
}
|
|
11
|
-
export const ImportDocumentsInput = /*@__PURE__*/ Schema.Struct({
|
|
12
|
-
collectionName: Schema.String.pipe(T.PathParam()),
|
|
13
|
-
importDocumentsParameters: Schema.optional(Schema.String),
|
|
14
|
-
}).pipe(
|
|
15
|
-
T.Http({
|
|
16
|
-
method: "POST",
|
|
17
|
-
path: "/collections/{collectionName}/documents/import",
|
|
18
|
-
}),
|
|
19
|
-
) as unknown as Schema.Codec<ImportDocumentsInput>;
|
|
20
|
-
|
|
21
|
-
// Output Schema
|
|
22
|
-
export type ImportDocumentsOutput = void;
|
|
23
|
-
export const ImportDocumentsOutput =
|
|
24
|
-
/*@__PURE__*/ Schema.Void as unknown as Schema.Codec<ImportDocumentsOutput>;
|
|
25
|
-
|
|
26
|
-
// The operation
|
|
27
|
-
/**
|
|
28
|
-
* Import documents into a collection
|
|
29
|
-
*
|
|
30
|
-
* The documents to be imported must be formatted in a newline delimited JSON structure. You can feed the output file from a Typesense export operation directly as import.
|
|
31
|
-
*
|
|
32
|
-
* @param collectionName - The name of the collection
|
|
33
|
-
*/
|
|
34
|
-
export const importDocuments = /*@__PURE__*/ API.make(() => ({
|
|
35
|
-
inputSchema: ImportDocumentsInput,
|
|
36
|
-
outputSchema: ImportDocumentsOutput,
|
|
37
|
-
errors: [BadRequest, NotFound] as const,
|
|
38
|
-
}));
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
import { BadRequest } from "../errors.ts";
|
|
5
|
-
|
|
6
|
-
// Input Schema
|
|
7
|
-
export interface ImportStemmingDictionaryInput {
|
|
8
|
-
id: string;
|
|
9
|
-
}
|
|
10
|
-
export const ImportStemmingDictionaryInput =
|
|
11
|
-
/*@__PURE__*/ Schema.Struct({
|
|
12
|
-
id: Schema.String,
|
|
13
|
-
}).pipe(
|
|
14
|
-
T.Http({ method: "POST", path: "/stemming/dictionaries/import" }),
|
|
15
|
-
) as unknown as Schema.Codec<ImportStemmingDictionaryInput>;
|
|
16
|
-
|
|
17
|
-
// Output Schema
|
|
18
|
-
export type ImportStemmingDictionaryOutput = void;
|
|
19
|
-
export const ImportStemmingDictionaryOutput =
|
|
20
|
-
/*@__PURE__*/ Schema.Void as unknown as Schema.Codec<ImportStemmingDictionaryOutput>;
|
|
21
|
-
|
|
22
|
-
// The operation
|
|
23
|
-
/**
|
|
24
|
-
* Import a stemming dictionary
|
|
25
|
-
*
|
|
26
|
-
* Upload a JSONL file containing word mappings to create or update a stemming dictionary.
|
|
27
|
-
*
|
|
28
|
-
* @param id - The ID to assign to the dictionary
|
|
29
|
-
*/
|
|
30
|
-
export const importStemmingDictionary = /*@__PURE__*/ API.make(() => ({
|
|
31
|
-
inputSchema: ImportStemmingDictionaryInput,
|
|
32
|
-
outputSchema: ImportStemmingDictionaryOutput,
|
|
33
|
-
errors: [BadRequest] as const,
|
|
34
|
-
}));
|
package/src/operations/index.ts
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
export * from "./getCollections.ts";
|
|
2
|
-
export * from "./createCollection.ts";
|
|
3
|
-
export * from "./getCollection.ts";
|
|
4
|
-
export * from "./updateCollection.ts";
|
|
5
|
-
export * from "./deleteCollection.ts";
|
|
6
|
-
export * from "./indexDocument.ts";
|
|
7
|
-
export * from "./updateDocuments.ts";
|
|
8
|
-
export * from "./deleteDocuments.ts";
|
|
9
|
-
export * from "./searchCollection.ts";
|
|
10
|
-
export * from "./retrieveSynonymSets.ts";
|
|
11
|
-
export * from "./retrieveSynonymSet.ts";
|
|
12
|
-
export * from "./upsertSynonymSet.ts";
|
|
13
|
-
export * from "./deleteSynonymSet.ts";
|
|
14
|
-
export * from "./retrieveSynonymSetItems.ts";
|
|
15
|
-
export * from "./retrieveSynonymSetItem.ts";
|
|
16
|
-
export * from "./upsertSynonymSetItem.ts";
|
|
17
|
-
export * from "./deleteSynonymSetItem.ts";
|
|
18
|
-
export * from "./retrieveCurationSets.ts";
|
|
19
|
-
export * from "./retrieveCurationSet.ts";
|
|
20
|
-
export * from "./upsertCurationSet.ts";
|
|
21
|
-
export * from "./deleteCurationSet.ts";
|
|
22
|
-
export * from "./retrieveCurationSetItems.ts";
|
|
23
|
-
export * from "./retrieveCurationSetItem.ts";
|
|
24
|
-
export * from "./upsertCurationSetItem.ts";
|
|
25
|
-
export * from "./deleteCurationSetItem.ts";
|
|
26
|
-
export * from "./exportDocuments.ts";
|
|
27
|
-
export * from "./importDocuments.ts";
|
|
28
|
-
export * from "./getDocument.ts";
|
|
29
|
-
export * from "./updateDocument.ts";
|
|
30
|
-
export * from "./deleteDocument.ts";
|
|
31
|
-
export * from "./retrieveAllConversationModels.ts";
|
|
32
|
-
export * from "./createConversationModel.ts";
|
|
33
|
-
export * from "./retrieveConversationModel.ts";
|
|
34
|
-
export * from "./updateConversationModel.ts";
|
|
35
|
-
export * from "./deleteConversationModel.ts";
|
|
36
|
-
export * from "./getKeys.ts";
|
|
37
|
-
export * from "./createKey.ts";
|
|
38
|
-
export * from "./getKey.ts";
|
|
39
|
-
export * from "./deleteKey.ts";
|
|
40
|
-
export * from "./getAliases.ts";
|
|
41
|
-
export * from "./getAlias.ts";
|
|
42
|
-
export * from "./upsertAlias.ts";
|
|
43
|
-
export * from "./deleteAlias.ts";
|
|
44
|
-
export * from "./debug.ts";
|
|
45
|
-
export * from "./health.ts";
|
|
46
|
-
export * from "./getSchemaChanges.ts";
|
|
47
|
-
export * from "./takeSnapshot.ts";
|
|
48
|
-
export * from "./vote.ts";
|
|
49
|
-
export * from "./clearCache.ts";
|
|
50
|
-
export * from "./compactDb.ts";
|
|
51
|
-
export * from "./toggleSlowRequestLog.ts";
|
|
52
|
-
export * from "./multiSearch.ts";
|
|
53
|
-
export * from "./getAnalyticsEvents.ts";
|
|
54
|
-
export * from "./createAnalyticsEvent.ts";
|
|
55
|
-
export * from "./flushAnalytics.ts";
|
|
56
|
-
export * from "./getAnalyticsStatus.ts";
|
|
57
|
-
export * from "./retrieveAnalyticsRules.ts";
|
|
58
|
-
export * from "./createAnalyticsRule.ts";
|
|
59
|
-
export * from "./retrieveAnalyticsRule.ts";
|
|
60
|
-
export * from "./upsertAnalyticsRule.ts";
|
|
61
|
-
export * from "./deleteAnalyticsRule.ts";
|
|
62
|
-
export * from "./retrieveMetrics.ts";
|
|
63
|
-
export * from "./retrieveAPIStats.ts";
|
|
64
|
-
export * from "./retrieveStopwordsSets.ts";
|
|
65
|
-
export * from "./retrieveStopwordsSet.ts";
|
|
66
|
-
export * from "./upsertStopwordsSet.ts";
|
|
67
|
-
export * from "./deleteStopwordsSet.ts";
|
|
68
|
-
export * from "./retrieveAllPresets.ts";
|
|
69
|
-
export * from "./retrievePreset.ts";
|
|
70
|
-
export * from "./upsertPreset.ts";
|
|
71
|
-
export * from "./deletePreset.ts";
|
|
72
|
-
export * from "./listStemmingDictionaries.ts";
|
|
73
|
-
export * from "./getStemmingDictionary.ts";
|
|
74
|
-
export * from "./importStemmingDictionary.ts";
|
|
75
|
-
export * from "./retrieveAllNLSearchModels.ts";
|
|
76
|
-
export * from "./createNLSearchModel.ts";
|
|
77
|
-
export * from "./retrieveNLSearchModel.ts";
|
|
78
|
-
export * from "./updateNLSearchModel.ts";
|
|
79
|
-
export * from "./deleteNLSearchModel.ts";
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
import { NotFound } from "../errors.ts";
|
|
5
|
-
|
|
6
|
-
// Input Schema
|
|
7
|
-
export interface IndexDocumentInput {
|
|
8
|
-
collectionName: string;
|
|
9
|
-
action?: string;
|
|
10
|
-
dirty_values?: string;
|
|
11
|
-
}
|
|
12
|
-
export const IndexDocumentInput = /*@__PURE__*/ Schema.Struct({
|
|
13
|
-
collectionName: Schema.String.pipe(T.PathParam()),
|
|
14
|
-
action: Schema.optional(Schema.String),
|
|
15
|
-
dirty_values: Schema.optional(Schema.String),
|
|
16
|
-
}).pipe(
|
|
17
|
-
T.Http({ method: "POST", path: "/collections/{collectionName}/documents" }),
|
|
18
|
-
) as unknown as Schema.Codec<IndexDocumentInput>;
|
|
19
|
-
|
|
20
|
-
// Output Schema
|
|
21
|
-
export type IndexDocumentOutput = unknown;
|
|
22
|
-
export const IndexDocumentOutput =
|
|
23
|
-
/*@__PURE__*/ Schema.Unknown as unknown as Schema.Codec<IndexDocumentOutput>;
|
|
24
|
-
|
|
25
|
-
// The operation
|
|
26
|
-
/**
|
|
27
|
-
* Index a document
|
|
28
|
-
*
|
|
29
|
-
* A document to be indexed in a given collection must conform to the schema of the collection.
|
|
30
|
-
*
|
|
31
|
-
* @param collectionName - The name of the collection to add the document to
|
|
32
|
-
* @param action - Additional action to perform
|
|
33
|
-
* @param dirty_values - Dealing with Dirty Data
|
|
34
|
-
*/
|
|
35
|
-
export const indexDocument = /*@__PURE__*/ API.make(() => ({
|
|
36
|
-
inputSchema: IndexDocumentInput,
|
|
37
|
-
outputSchema: IndexDocumentOutput,
|
|
38
|
-
errors: [NotFound] as const,
|
|
39
|
-
}));
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { API } from "../client.ts";
|
|
3
|
-
import * as T from "../traits.ts";
|
|
4
|
-
|
|
5
|
-
// Input Schema
|
|
6
|
-
export interface ListStemmingDictionariesInput {}
|
|
7
|
-
export const ListStemmingDictionariesInput =
|
|
8
|
-
/*@__PURE__*/ Schema.Struct({}).pipe(
|
|
9
|
-
T.Http({ method: "GET", path: "/stemming/dictionaries" }),
|
|
10
|
-
) as unknown as Schema.Codec<ListStemmingDictionariesInput>;
|
|
11
|
-
|
|
12
|
-
// Output Schema
|
|
13
|
-
export interface ListStemmingDictionariesOutput {
|
|
14
|
-
dictionaries?: string[];
|
|
15
|
-
}
|
|
16
|
-
export const ListStemmingDictionariesOutput =
|
|
17
|
-
/*@__PURE__*/ Schema.Struct({
|
|
18
|
-
dictionaries: Schema.optional(Schema.Array(Schema.String)),
|
|
19
|
-
}) as unknown as Schema.Codec<ListStemmingDictionariesOutput>;
|
|
20
|
-
|
|
21
|
-
// The operation
|
|
22
|
-
/**
|
|
23
|
-
* List all stemming dictionaries
|
|
24
|
-
*
|
|
25
|
-
* Retrieve a list of all available stemming dictionaries.
|
|
26
|
-
*/
|
|
27
|
-
export const listStemmingDictionaries = /*@__PURE__*/ API.make(() => ({
|
|
28
|
-
inputSchema: ListStemmingDictionariesInput,
|
|
29
|
-
outputSchema: ListStemmingDictionariesOutput,
|
|
30
|
-
}));
|