kuzzle 2.49.1 → 2.50.0-beta.3
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/dist/bin/check-node-version.js +11 -0
- package/dist/bin/copy-protobuf.js +17 -0
- package/dist/lib/api/controllers/adminController.d.ts +51 -0
- package/dist/lib/api/controllers/adminController.js +191 -0
- package/{lib → dist/lib}/api/controllers/authController.d.ts +20 -40
- package/{lib → dist/lib}/api/controllers/authController.js +23 -24
- package/dist/lib/api/controllers/bulkController.d.ts +46 -0
- package/dist/lib/api/controllers/bulkController.js +132 -0
- package/dist/lib/api/controllers/clusterController.d.ts +6 -0
- package/{lib → dist/lib}/api/controllers/clusterController.js +7 -11
- package/dist/lib/api/controllers/collectionController.d.ts +136 -0
- package/dist/lib/api/controllers/collectionController.js +356 -0
- package/dist/lib/api/controllers/documentController.d.ts +181 -0
- package/dist/lib/api/controllers/documentController.js +768 -0
- package/dist/lib/api/controllers/index.d.ts +12 -0
- package/{lib → dist/lib}/api/controllers/index.js +13 -14
- package/dist/lib/api/controllers/indexController.d.ts +65 -0
- package/dist/lib/api/controllers/indexController.js +139 -0
- package/dist/lib/api/controllers/memoryStorageController.d.ts +8 -0
- package/dist/lib/api/controllers/memoryStorageController.js +867 -0
- package/dist/lib/api/controllers/realtimeController.d.ts +47 -0
- package/dist/lib/api/controllers/realtimeController.js +128 -0
- package/dist/lib/api/controllers/securityController.d.ts +423 -0
- package/dist/lib/api/controllers/securityController.js +1139 -0
- package/dist/lib/api/controllers/serverController.d.ts +82 -0
- package/dist/lib/api/controllers/serverController.js +321 -0
- package/dist/lib/api/documentExtractor.d.ts +9 -0
- package/dist/lib/api/documentExtractor.js +274 -0
- package/dist/lib/api/funnel.d.ts +183 -0
- package/dist/lib/api/funnel.js +821 -0
- package/dist/lib/api/httpRoutes.d.ts +17 -0
- package/dist/lib/api/httpRoutes.js +1496 -0
- package/dist/lib/api/rateLimiter.d.ts +18 -0
- package/dist/lib/api/rateLimiter.js +74 -0
- package/{lib → dist/lib}/api/request/kuzzleRequest.d.ts +2 -2
- package/{lib → dist/lib}/api/request/requestContext.d.ts +2 -1
- package/dist/lib/cluster/command.d.ts +73 -0
- package/dist/lib/cluster/command.js +236 -0
- package/dist/lib/cluster/index.d.ts +2 -0
- package/{lib → dist/lib}/cluster/index.js +1 -2
- package/dist/lib/cluster/node.d.ts +278 -0
- package/dist/lib/cluster/node.js +876 -0
- package/dist/lib/cluster/publisher.d.ts +188 -0
- package/dist/lib/cluster/publisher.js +347 -0
- package/dist/lib/cluster/subscriber.d.ts +269 -0
- package/dist/lib/cluster/subscriber.js +555 -0
- package/dist/lib/cluster/workers/IDCardRenewer.d.ts +13 -0
- package/dist/lib/cluster/workers/IDCardRenewer.js +120 -0
- package/{lib → dist/lib}/config/documentEventAliases.d.ts +1 -2
- package/dist/lib/config/index.d.ts +5 -0
- package/dist/lib/config/index.js +244 -0
- package/dist/lib/config/sdkCompatibility.json +9 -0
- package/dist/lib/core/auth/formatProcessing.d.ts +30 -0
- package/dist/lib/core/auth/formatProcessing.js +55 -0
- package/dist/lib/core/auth/passportResponse.d.ts +15 -0
- package/{lib → dist/lib}/core/auth/passportResponse.js +24 -30
- package/dist/lib/core/auth/passportWrapper.d.ts +28 -0
- package/dist/lib/core/auth/passportWrapper.js +126 -0
- package/{lib → dist/lib}/core/backend/backendConfig.js +2 -2
- package/{lib → dist/lib}/core/backend/backendErrors.js +9 -12
- package/dist/lib/core/cache/cacheEngine.d.ts +15 -0
- package/dist/lib/core/cache/cacheEngine.js +205 -0
- package/dist/lib/core/network/accessLogger.d.ts +29 -0
- package/dist/lib/core/network/accessLogger.js +250 -0
- package/dist/lib/core/network/clientConnection.d.ts +15 -0
- package/{lib → dist/lib}/core/network/clientConnection.js +17 -24
- package/dist/lib/core/network/context.d.ts +42 -0
- package/dist/lib/core/network/context.js +57 -0
- package/dist/lib/core/network/entryPoint.d.ts +62 -0
- package/dist/lib/core/network/entryPoint.js +261 -0
- package/dist/lib/core/network/httpRouter/index.d.ts +85 -0
- package/dist/lib/core/network/httpRouter/index.js +258 -0
- package/dist/lib/core/network/httpRouter/routeHandler.d.ts +46 -0
- package/dist/lib/core/network/httpRouter/routeHandler.js +101 -0
- package/dist/lib/core/network/httpRouter/routePart.d.ts +35 -0
- package/dist/lib/core/network/httpRouter/routePart.js +117 -0
- package/dist/lib/core/network/protocolManifest.d.ts +6 -0
- package/{lib → dist/lib}/core/network/protocolManifest.js +5 -9
- package/dist/lib/core/network/protocols/httpMessage.d.ts +22 -0
- package/dist/lib/core/network/protocols/httpMessage.js +62 -0
- package/dist/lib/core/network/protocols/httpwsProtocol.d.ts +171 -0
- package/dist/lib/core/network/protocols/httpwsProtocol.js +921 -0
- package/dist/lib/core/network/protocols/internalProtocol.d.ts +27 -0
- package/dist/lib/core/network/protocols/internalProtocol.js +82 -0
- package/dist/lib/core/network/protocols/mqttProtocol.d.ts +39 -0
- package/dist/lib/core/network/protocols/mqttProtocol.js +219 -0
- package/dist/lib/core/network/protocols/protocol.d.ts +26 -0
- package/dist/lib/core/network/protocols/protocol.js +74 -0
- package/dist/lib/core/network/router.d.ts +49 -0
- package/dist/lib/core/network/router.js +193 -0
- package/dist/lib/core/plugin/plugin.d.ts +56 -0
- package/dist/lib/core/plugin/plugin.js +282 -0
- package/{lib → dist/lib}/core/plugin/pluginContext.js +2 -2
- package/dist/lib/core/plugin/pluginManifest.d.ts +5 -0
- package/{lib → dist/lib}/core/plugin/pluginManifest.js +16 -27
- package/dist/lib/core/plugin/pluginRepository.d.ts +53 -0
- package/dist/lib/core/plugin/pluginRepository.js +112 -0
- package/dist/lib/core/plugin/pluginsManager.d.ts +190 -0
- package/dist/lib/core/plugin/pluginsManager.js +817 -0
- package/dist/lib/core/plugin/privilegedContext.d.ts +14 -0
- package/{lib → dist/lib}/core/plugin/privilegedContext.js +10 -14
- package/dist/lib/core/realtime/actionEnum.d.ts +25 -0
- package/{lib → dist/lib}/core/realtime/actionEnum.js +7 -10
- package/dist/lib/core/realtime/index.d.ts +8 -0
- package/{lib → dist/lib}/core/realtime/index.js +9 -13
- package/dist/lib/core/realtime/notification/document.d.ts +34 -0
- package/dist/lib/core/realtime/notification/document.js +98 -0
- package/dist/lib/core/realtime/notification/index.d.ts +3 -0
- package/{lib → dist/lib}/core/realtime/notification/index.js +4 -5
- package/dist/lib/core/realtime/notification/server.d.ts +17 -0
- package/{lib → dist/lib}/core/realtime/notification/server.js +8 -10
- package/dist/lib/core/realtime/notification/user.d.ts +29 -0
- package/dist/lib/core/realtime/notification/user.js +66 -0
- package/dist/lib/core/realtime/notifier.d.ts +171 -0
- package/dist/lib/core/realtime/notifier.js +405 -0
- package/dist/lib/core/security/index.d.ts +14 -0
- package/{lib → dist/lib}/core/security/index.js +15 -19
- package/dist/lib/core/security/roleRepository.d.ts +143 -0
- package/dist/lib/core/security/roleRepository.js +445 -0
- package/dist/lib/core/security/securityLoader.d.ts +24 -0
- package/dist/lib/core/security/securityLoader.js +125 -0
- package/{lib → dist/lib}/core/security/tokenRepository.js +1 -1
- package/dist/lib/core/security/userRepository.d.ts +81 -0
- package/dist/lib/core/security/userRepository.js +346 -0
- package/dist/lib/core/shared/abstractManifest.d.ts +27 -0
- package/dist/lib/core/shared/abstractManifest.js +85 -0
- package/dist/lib/core/shared/sdk/impersonatedSdk.d.ts +7 -0
- package/dist/lib/core/shared/sdk/impersonatedSdk.js +80 -0
- package/{lib → dist/lib}/core/shared/store.d.ts +2 -2
- package/dist/lib/core/statistics/statistics.d.ts +94 -0
- package/dist/lib/core/statistics/statistics.js +287 -0
- package/dist/lib/core/storage/clientAdapter.d.ts +62 -0
- package/dist/lib/core/storage/clientAdapter.js +756 -0
- package/dist/lib/core/storage/storageEngine.d.ts +13 -0
- package/dist/lib/core/storage/storageEngine.js +52 -0
- package/dist/lib/core/validation/baseType.d.ts +35 -0
- package/dist/lib/core/validation/baseType.js +70 -0
- package/dist/lib/core/validation/types/anything.d.ts +10 -0
- package/{lib → dist/lib}/core/validation/types/anything.js +7 -10
- package/dist/lib/core/validation/types/boolean.d.ts +16 -0
- package/{lib → dist/lib}/core/validation/types/boolean.js +18 -23
- package/dist/lib/core/validation/types/date.d.ts +17 -0
- package/dist/lib/core/validation/types/date.js +215 -0
- package/dist/lib/core/validation/types/email.d.ts +17 -0
- package/dist/lib/core/validation/types/email.js +80 -0
- package/dist/lib/core/validation/types/enum.d.ts +17 -0
- package/dist/lib/core/validation/types/enum.js +70 -0
- package/dist/lib/core/validation/types/geoPoint.d.ts +17 -0
- package/{lib → dist/lib}/core/validation/types/geoPoint.js +19 -24
- package/dist/lib/core/validation/types/geoShape.d.ts +31 -0
- package/dist/lib/core/validation/types/geoShape.js +280 -0
- package/dist/lib/core/validation/types/integer.d.ts +7 -0
- package/{lib → dist/lib}/core/validation/types/integer.js +21 -27
- package/dist/lib/core/validation/types/ipAddress.d.ts +17 -0
- package/dist/lib/core/validation/types/ipAddress.js +73 -0
- package/dist/lib/core/validation/types/numeric.d.ts +17 -0
- package/dist/lib/core/validation/types/numeric.js +84 -0
- package/dist/lib/core/validation/types/object.d.ts +24 -0
- package/dist/lib/core/validation/types/object.js +74 -0
- package/dist/lib/core/validation/types/string.d.ts +17 -0
- package/dist/lib/core/validation/types/string.js +85 -0
- package/dist/lib/core/validation/types/url.d.ts +17 -0
- package/dist/lib/core/validation/types/url.js +73 -0
- package/dist/lib/core/validation/validation.d.ts +113 -0
- package/dist/lib/core/validation/validation.js +692 -0
- package/dist/lib/kerror/codes/0-core.json +194 -0
- package/dist/lib/kerror/codes/1-services.json +351 -0
- package/dist/lib/kerror/codes/2-api.json +195 -0
- package/dist/lib/kerror/codes/3-network.json +151 -0
- package/dist/lib/kerror/codes/4-plugin.json +498 -0
- package/dist/lib/kerror/codes/5-validation.json +158 -0
- package/dist/lib/kerror/codes/6-protocol.json +28 -0
- package/dist/lib/kerror/codes/7-security.json +283 -0
- package/dist/lib/kerror/codes/8-cluster.json +16 -0
- package/dist/lib/kerror/codes/index.d.ts +24 -0
- package/dist/lib/kerror/codes/index.js +140 -0
- package/{lib → dist/lib}/kerror/index.d.ts +5 -5
- package/{lib → dist/lib}/kuzzle/Logger.d.ts +6 -0
- package/{lib → dist/lib}/kuzzle/Logger.js +26 -5
- package/dist/lib/kuzzle/dumpGenerator.d.ts +14 -0
- package/dist/lib/kuzzle/dumpGenerator.js +180 -0
- package/dist/lib/kuzzle/event/pipeRunner.d.ts +30 -0
- package/dist/lib/kuzzle/event/pipeRunner.js +119 -0
- package/dist/lib/kuzzle/event/waterfall.d.ts +2 -0
- package/dist/lib/kuzzle/event/waterfall.js +90 -0
- package/dist/lib/kuzzle/internalIndexHandler.d.ts +186 -0
- package/dist/lib/kuzzle/internalIndexHandler.js +174 -0
- package/{lib → dist/lib}/kuzzle/kuzzle.d.ts +6 -7
- package/{lib → dist/lib}/kuzzle/kuzzle.js +5 -2
- package/dist/lib/kuzzle/kuzzleStateEnum.d.ts +20 -0
- package/{lib → dist/lib}/kuzzle/kuzzleStateEnum.js +5 -8
- package/dist/lib/kuzzle/vault.d.ts +2 -0
- package/dist/lib/kuzzle/vault.js +63 -0
- package/dist/lib/model/security/rights.d.ts +8 -0
- package/{lib → dist/lib}/model/security/rights.js +4 -8
- package/{lib → dist/lib}/model/security/role.d.ts +1 -1
- package/{lib → dist/lib}/model/security/user.d.ts +1 -0
- package/dist/lib/model/storage/apiKey.d.ts +49 -0
- package/dist/lib/model/storage/apiKey.js +126 -0
- package/dist/lib/model/storage/baseModel.d.ts +100 -0
- package/dist/lib/model/storage/baseModel.js +211 -0
- package/dist/lib/service/cache/redis.d.ts +74 -0
- package/dist/lib/service/cache/redis.js +237 -0
- package/dist/lib/service/service.d.ts +30 -0
- package/dist/lib/service/service.js +74 -0
- package/{lib → dist/lib}/service/storage/7/elasticsearch.d.ts +2 -2
- package/{lib → dist/lib}/service/storage/7/elasticsearch.js +23 -25
- package/dist/lib/service/storage/7/esWrapper.d.ts +19 -0
- package/dist/lib/service/storage/7/esWrapper.js +245 -0
- package/{lib → dist/lib}/service/storage/8/elasticsearch.js +23 -25
- package/dist/lib/service/storage/8/esWrapper.d.ts +19 -0
- package/dist/lib/service/storage/8/esWrapper.js +245 -0
- package/{lib → dist/lib}/types/Plugin.d.ts +1 -1
- package/{lib/types → dist/lib/types/controllers}/Controller.d.ts +2 -2
- package/{lib/types → dist/lib/types/controllers}/ControllerDefinition.d.ts +1 -1
- package/dist/lib/types/controllers/adminControlller.type.d.ts +5 -0
- package/dist/lib/types/controllers/adminControlller.type.js +3 -0
- package/dist/lib/types/controllers/authController.type.d.ts +5 -0
- package/dist/lib/types/controllers/authController.type.js +3 -0
- package/dist/lib/types/core/auth/formatProcessing.type.d.ts +7 -0
- package/dist/lib/types/core/auth/formatProcessing.type.js +3 -0
- package/{lib → dist/lib}/types/index.d.ts +3 -3
- package/{lib → dist/lib}/types/index.js +3 -3
- package/dist/lib/util/assertType.d.ts +41 -0
- package/{lib → dist/lib}/util/assertType.js +38 -56
- package/dist/lib/util/asyncStore.d.ts +38 -0
- package/dist/lib/util/asyncStore.js +70 -0
- package/dist/lib/util/bytes.d.ts +2 -0
- package/dist/lib/util/bytes.js +33 -0
- package/dist/lib/util/debug.d.ts +2 -0
- package/{lib → dist/lib}/util/debug.js +15 -23
- package/dist/lib/util/deprecate.d.ts +1 -0
- package/dist/lib/util/deprecate.js +64 -0
- package/dist/lib/util/didYouMean.d.ts +2 -0
- package/{lib → dist/lib}/util/didYouMean.js +9 -15
- package/dist/lib/util/extractFields.d.ts +17 -0
- package/{lib → dist/lib}/util/extractFields.js +18 -32
- package/dist/lib/util/memoize.d.ts +7 -0
- package/{lib → dist/lib}/util/memoize.js +14 -21
- package/dist/lib/util/promback.d.ts +13 -0
- package/dist/lib/util/promback.js +60 -0
- package/dist/lib/util/requestAssertions.d.ts +10 -0
- package/dist/lib/util/requestAssertions.js +143 -0
- package/dist/lib/util/safeObject.d.ts +3 -0
- package/{lib → dist/lib}/util/safeObject.js +7 -13
- package/dist/lib/util/stackTrace.d.ts +19 -0
- package/{lib → dist/lib}/util/stackTrace.js +35 -41
- package/dist/lib/util/wildcard.d.ts +1 -0
- package/{lib → dist/lib}/util/wildcard.js +21 -30
- package/dist/package.json +120 -0
- package/package.json +45 -58
- package/bin/start-kuzzle-server +0 -126
- package/check-node-version.js +0 -17
- package/lib/api/controllers/adminController.js +0 -229
- package/lib/api/controllers/bulkController.js +0 -210
- package/lib/api/controllers/collectionController.js +0 -502
- package/lib/api/controllers/documentController.js +0 -1156
- package/lib/api/controllers/indexController.js +0 -179
- package/lib/api/controllers/memoryStorageController.js +0 -1023
- package/lib/api/controllers/realtimeController.js +0 -155
- package/lib/api/controllers/securityController.js +0 -1571
- package/lib/api/controllers/serverController.js +0 -381
- package/lib/api/documentExtractor.js +0 -309
- package/lib/api/funnel.js +0 -1143
- package/lib/api/httpRoutes.js +0 -1547
- package/lib/api/rateLimiter.js +0 -87
- package/lib/cluster/command.js +0 -284
- package/lib/cluster/node.js +0 -1203
- package/lib/cluster/publisher.js +0 -386
- package/lib/cluster/subscriber.js +0 -776
- package/lib/cluster/workers/IDCardRenewer.js +0 -144
- package/lib/config/index.js +0 -351
- package/lib/config/sdkCompatibility.json +0 -9
- package/lib/core/auth/formatProcessing.js +0 -66
- package/lib/core/auth/passportWrapper.js +0 -126
- package/lib/core/cache/cacheEngine.js +0 -278
- package/lib/core/network/accessLogger.js +0 -322
- package/lib/core/network/context.js +0 -80
- package/lib/core/network/entryPoint.js +0 -358
- package/lib/core/network/httpRouter/index.js +0 -316
- package/lib/core/network/httpRouter/routeHandler.js +0 -111
- package/lib/core/network/httpRouter/routePart.js +0 -147
- package/lib/core/network/protocols/httpMessage.js +0 -69
- package/lib/core/network/protocols/httpwsProtocol.js +0 -1254
- package/lib/core/network/protocols/internalProtocol.js +0 -109
- package/lib/core/network/protocols/mqttProtocol.js +0 -291
- package/lib/core/network/protocols/protocol.js +0 -102
- package/lib/core/network/router.js +0 -255
- package/lib/core/plugin/plugin.js +0 -436
- package/lib/core/plugin/pluginRepository.js +0 -132
- package/lib/core/plugin/pluginsManager.js +0 -1244
- package/lib/core/realtime/notification/document.js +0 -108
- package/lib/core/realtime/notification/user.js +0 -70
- package/lib/core/realtime/notifier.js +0 -541
- package/lib/core/security/README.md +0 -223
- package/lib/core/security/roleRepository.js +0 -569
- package/lib/core/security/securityLoader.js +0 -174
- package/lib/core/security/userRepository.js +0 -446
- package/lib/core/shared/README.md +0 -3
- package/lib/core/shared/abstractManifest.js +0 -102
- package/lib/core/shared/sdk/impersonatedSdk.js +0 -94
- package/lib/core/statistics/index.js +0 -24
- package/lib/core/statistics/statistics.js +0 -373
- package/lib/core/storage/clientAdapter.js +0 -1045
- package/lib/core/storage/storageEngine.js +0 -63
- package/lib/core/validation/baseType.js +0 -80
- package/lib/core/validation/index.js +0 -24
- package/lib/core/validation/types/date.js +0 -284
- package/lib/core/validation/types/email.js +0 -92
- package/lib/core/validation/types/enum.js +0 -100
- package/lib/core/validation/types/geoShape.js +0 -370
- package/lib/core/validation/types/ipAddress.js +0 -83
- package/lib/core/validation/types/numeric.js +0 -108
- package/lib/core/validation/types/object.js +0 -88
- package/lib/core/validation/types/string.js +0 -110
- package/lib/core/validation/types/url.js +0 -83
- package/lib/core/validation/validation.js +0 -1180
- package/lib/kerror/codes/0-core.json +0 -194
- package/lib/kerror/codes/1-services.json +0 -351
- package/lib/kerror/codes/2-api.json +0 -195
- package/lib/kerror/codes/3-network.json +0 -151
- package/lib/kerror/codes/4-plugin.json +0 -498
- package/lib/kerror/codes/5-validation.json +0 -158
- package/lib/kerror/codes/6-protocol.json +0 -28
- package/lib/kerror/codes/7-security.json +0 -283
- package/lib/kerror/codes/8-cluster.json +0 -16
- package/lib/kerror/codes/index.js +0 -208
- package/lib/kuzzle/dumpGenerator.js +0 -259
- package/lib/kuzzle/event/pipeRunner.js +0 -144
- package/lib/kuzzle/event/waterfall.js +0 -101
- package/lib/kuzzle/internalIndexHandler.js +0 -234
- package/lib/kuzzle/vault.js +0 -89
- package/lib/model/storage/apiKey.js +0 -158
- package/lib/model/storage/baseModel.js +0 -275
- package/lib/service/cache/redis.js +0 -282
- package/lib/service/service.js +0 -84
- package/lib/service/storage/7/esWrapper.js +0 -303
- package/lib/service/storage/8/esWrapper.js +0 -303
- package/lib/util/asyncStore.js +0 -112
- package/lib/util/bytes.js +0 -36
- package/lib/util/deprecate.js +0 -82
- package/lib/util/promback.js +0 -66
- package/lib/util/readYamlFile.d.ts +0 -2
- package/lib/util/readYamlFile.js +0 -10
- package/lib/util/requestAssertions.js +0 -157
- /package/{index.d.ts → dist/index.d.ts} +0 -0
- /package/{index.js → dist/index.js} +0 -0
- /package/{lib → dist/lib}/api/controllers/baseController.d.ts +0 -0
- /package/{lib → dist/lib}/api/controllers/baseController.js +0 -0
- /package/{lib → dist/lib}/api/controllers/debugController.d.ts +0 -0
- /package/{lib → dist/lib}/api/controllers/debugController.js +0 -0
- /package/{lib → dist/lib}/api/openapi/OpenApiManager.d.ts +0 -0
- /package/{lib → dist/lib}/api/openapi/OpenApiManager.js +0 -0
- /package/{lib → dist/lib}/api/openapi/index.d.ts +0 -0
- /package/{lib → dist/lib}/api/openapi/index.js +0 -0
- /package/{lib → dist/lib}/api/openapi/openApiGenerator.d.ts +0 -0
- /package/{lib → dist/lib}/api/openapi/openApiGenerator.js +0 -0
- /package/{lib → dist/lib}/api/request/index.d.ts +0 -0
- /package/{lib → dist/lib}/api/request/index.js +0 -0
- /package/{lib → dist/lib}/api/request/kuzzleRequest.js +0 -0
- /package/{lib → dist/lib}/api/request/requestContext.js +0 -0
- /package/{lib → dist/lib}/api/request/requestInput.d.ts +0 -0
- /package/{lib → dist/lib}/api/request/requestInput.js +0 -0
- /package/{lib → dist/lib}/api/request/requestResponse.d.ts +0 -0
- /package/{lib → dist/lib}/api/request/requestResponse.js +0 -0
- /package/{lib → dist/lib}/cluster/idCardHandler.d.ts +0 -0
- /package/{lib → dist/lib}/cluster/idCardHandler.js +0 -0
- /package/{lib → dist/lib}/cluster/protobuf/command.proto +0 -0
- /package/{lib → dist/lib}/cluster/protobuf/sync.proto +0 -0
- /package/{lib → dist/lib}/cluster/state.d.ts +0 -0
- /package/{lib → dist/lib}/cluster/state.js +0 -0
- /package/{lib → dist/lib}/config/default.config.d.ts +0 -0
- /package/{lib → dist/lib}/config/default.config.js +0 -0
- /package/{lib → dist/lib}/config/documentEventAliases.js +0 -0
- /package/{lib → dist/lib}/core/auth/tokenManager.d.ts +0 -0
- /package/{lib → dist/lib}/core/auth/tokenManager.js +0 -0
- /package/{lib → dist/lib}/core/backend/applicationManager.d.ts +0 -0
- /package/{lib → dist/lib}/core/backend/applicationManager.js +0 -0
- /package/{lib → dist/lib}/core/backend/backend.d.ts +0 -0
- /package/{lib → dist/lib}/core/backend/backend.js +0 -0
- /package/{lib → dist/lib}/core/backend/backendCluster.d.ts +0 -0
- /package/{lib → dist/lib}/core/backend/backendCluster.js +0 -0
- /package/{lib → dist/lib}/core/backend/backendConfig.d.ts +0 -0
- /package/{lib → dist/lib}/core/backend/backendController.d.ts +0 -0
- /package/{lib → dist/lib}/core/backend/backendController.js +0 -0
- /package/{lib → dist/lib}/core/backend/backendErrors.d.ts +0 -0
- /package/{lib → dist/lib}/core/backend/backendHook.d.ts +0 -0
- /package/{lib → dist/lib}/core/backend/backendHook.js +0 -0
- /package/{lib → dist/lib}/core/backend/backendImport.d.ts +0 -0
- /package/{lib → dist/lib}/core/backend/backendImport.js +0 -0
- /package/{lib → dist/lib}/core/backend/backendOpenApi.d.ts +0 -0
- /package/{lib → dist/lib}/core/backend/backendOpenApi.js +0 -0
- /package/{lib → dist/lib}/core/backend/backendPipe.d.ts +0 -0
- /package/{lib → dist/lib}/core/backend/backendPipe.js +0 -0
- /package/{lib → dist/lib}/core/backend/backendPlugin.d.ts +0 -0
- /package/{lib → dist/lib}/core/backend/backendPlugin.js +0 -0
- /package/{lib → dist/lib}/core/backend/backendStorage.d.ts +0 -0
- /package/{lib → dist/lib}/core/backend/backendStorage.js +0 -0
- /package/{lib → dist/lib}/core/backend/backendSubscription.d.ts +0 -0
- /package/{lib → dist/lib}/core/backend/backendSubscription.js +0 -0
- /package/{lib → dist/lib}/core/backend/backendVault.d.ts +0 -0
- /package/{lib → dist/lib}/core/backend/backendVault.js +0 -0
- /package/{lib → dist/lib}/core/backend/index.d.ts +0 -0
- /package/{lib → dist/lib}/core/backend/index.js +0 -0
- /package/{lib → dist/lib}/core/backend/internalLogger.d.ts +0 -0
- /package/{lib → dist/lib}/core/backend/internalLogger.js +0 -0
- /package/{lib → dist/lib}/core/cache/cacheDbEnum.d.ts +0 -0
- /package/{lib → dist/lib}/core/cache/cacheDbEnum.js +0 -0
- /package/{lib → dist/lib}/core/debug/kuzzleDebugger.d.ts +0 -0
- /package/{lib → dist/lib}/core/debug/kuzzleDebugger.js +0 -0
- /package/{lib → dist/lib}/core/plugin/pluginContext.d.ts +0 -0
- /package/{lib → dist/lib}/core/realtime/channel.d.ts +0 -0
- /package/{lib → dist/lib}/core/realtime/channel.js +0 -0
- /package/{lib → dist/lib}/core/realtime/connectionRooms.d.ts +0 -0
- /package/{lib → dist/lib}/core/realtime/connectionRooms.js +0 -0
- /package/{lib → dist/lib}/core/realtime/hotelClerk.d.ts +0 -0
- /package/{lib → dist/lib}/core/realtime/hotelClerk.js +0 -0
- /package/{lib → dist/lib}/core/realtime/room.d.ts +0 -0
- /package/{lib → dist/lib}/core/realtime/room.js +0 -0
- /package/{lib → dist/lib}/core/realtime/subscription.d.ts +0 -0
- /package/{lib → dist/lib}/core/realtime/subscription.js +0 -0
- /package/{lib → dist/lib}/core/security/profileRepository.d.ts +0 -0
- /package/{lib → dist/lib}/core/security/profileRepository.js +0 -0
- /package/{lib → dist/lib}/core/security/tokenRepository.d.ts +0 -0
- /package/{lib → dist/lib}/core/shared/KoncordeWrapper.d.ts +0 -0
- /package/{lib → dist/lib}/core/shared/KoncordeWrapper.js +0 -0
- /package/{lib → dist/lib}/core/shared/ObjectRepository.d.ts +0 -0
- /package/{lib → dist/lib}/core/shared/ObjectRepository.js +0 -0
- /package/{lib → dist/lib}/core/shared/sdk/embeddedSdk.d.ts +0 -0
- /package/{lib → dist/lib}/core/shared/sdk/embeddedSdk.js +0 -0
- /package/{lib → dist/lib}/core/shared/sdk/funnelProtocol.d.ts +0 -0
- /package/{lib → dist/lib}/core/shared/sdk/funnelProtocol.js +0 -0
- /package/{lib → dist/lib}/core/shared/store.js +0 -0
- /package/{lib → dist/lib}/core/storage/indexCache.d.ts +0 -0
- /package/{lib → dist/lib}/core/storage/indexCache.js +0 -0
- /package/{lib → dist/lib}/core/storage/storeScopeEnum.d.ts +0 -0
- /package/{lib → dist/lib}/core/storage/storeScopeEnum.js +0 -0
- /package/{lib → dist/lib}/kerror/errors/badRequestError.d.ts +0 -0
- /package/{lib → dist/lib}/kerror/errors/badRequestError.js +0 -0
- /package/{lib → dist/lib}/kerror/errors/externalServiceError.d.ts +0 -0
- /package/{lib → dist/lib}/kerror/errors/externalServiceError.js +0 -0
- /package/{lib → dist/lib}/kerror/errors/forbiddenError.d.ts +0 -0
- /package/{lib → dist/lib}/kerror/errors/forbiddenError.js +0 -0
- /package/{lib → dist/lib}/kerror/errors/gatewayTimeoutError.d.ts +0 -0
- /package/{lib → dist/lib}/kerror/errors/gatewayTimeoutError.js +0 -0
- /package/{lib → dist/lib}/kerror/errors/index.d.ts +0 -0
- /package/{lib → dist/lib}/kerror/errors/index.js +0 -0
- /package/{lib → dist/lib}/kerror/errors/internalError.d.ts +0 -0
- /package/{lib → dist/lib}/kerror/errors/internalError.js +0 -0
- /package/{lib → dist/lib}/kerror/errors/kuzzleError.d.ts +0 -0
- /package/{lib → dist/lib}/kerror/errors/kuzzleError.js +0 -0
- /package/{lib → dist/lib}/kerror/errors/multipleErrorsError.d.ts +0 -0
- /package/{lib → dist/lib}/kerror/errors/multipleErrorsError.js +0 -0
- /package/{lib → dist/lib}/kerror/errors/notFoundError.d.ts +0 -0
- /package/{lib → dist/lib}/kerror/errors/notFoundError.js +0 -0
- /package/{lib → dist/lib}/kerror/errors/partialError.d.ts +0 -0
- /package/{lib → dist/lib}/kerror/errors/partialError.js +0 -0
- /package/{lib → dist/lib}/kerror/errors/pluginImplementationError.d.ts +0 -0
- /package/{lib → dist/lib}/kerror/errors/pluginImplementationError.js +0 -0
- /package/{lib → dist/lib}/kerror/errors/preconditionError.d.ts +0 -0
- /package/{lib → dist/lib}/kerror/errors/preconditionError.js +0 -0
- /package/{lib → dist/lib}/kerror/errors/serviceUnavailableError.d.ts +0 -0
- /package/{lib → dist/lib}/kerror/errors/serviceUnavailableError.js +0 -0
- /package/{lib → dist/lib}/kerror/errors/sizeLimitError.d.ts +0 -0
- /package/{lib → dist/lib}/kerror/errors/sizeLimitError.js +0 -0
- /package/{lib → dist/lib}/kerror/errors/tooManyRequestsError.d.ts +0 -0
- /package/{lib → dist/lib}/kerror/errors/tooManyRequestsError.js +0 -0
- /package/{lib → dist/lib}/kerror/errors/unauthorizedError.d.ts +0 -0
- /package/{lib → dist/lib}/kerror/errors/unauthorizedError.js +0 -0
- /package/{lib → dist/lib}/kerror/index.js +0 -0
- /package/{lib → dist/lib}/kuzzle/event/KuzzleEventEmitter.d.ts +0 -0
- /package/{lib → dist/lib}/kuzzle/event/KuzzleEventEmitter.js +0 -0
- /package/{lib → dist/lib}/kuzzle/index.d.ts +0 -0
- /package/{lib → dist/lib}/kuzzle/index.js +0 -0
- /package/{lib → dist/lib}/model/security/profile.d.ts +0 -0
- /package/{lib → dist/lib}/model/security/profile.js +0 -0
- /package/{lib → dist/lib}/model/security/role.js +0 -0
- /package/{lib → dist/lib}/model/security/token.d.ts +0 -0
- /package/{lib → dist/lib}/model/security/token.js +0 -0
- /package/{lib → dist/lib}/model/security/user.js +0 -0
- /package/{lib → dist/lib}/service/storage/8/elasticsearch.d.ts +0 -0
- /package/{lib → dist/lib}/service/storage/Elasticsearch.d.ts +0 -0
- /package/{lib → dist/lib}/service/storage/Elasticsearch.js +0 -0
- /package/{lib → dist/lib}/service/storage/commons/queryTranslator.d.ts +0 -0
- /package/{lib → dist/lib}/service/storage/commons/queryTranslator.js +0 -0
- /package/{lib → dist/lib}/types/ClientConnection.d.ts +0 -0
- /package/{lib → dist/lib}/types/ClientConnection.js +0 -0
- /package/{lib → dist/lib}/types/Deprecation.d.ts +0 -0
- /package/{lib → dist/lib}/types/Deprecation.js +0 -0
- /package/{lib → dist/lib}/types/EventHandler.d.ts +0 -0
- /package/{lib → dist/lib}/types/EventHandler.js +0 -0
- /package/{lib → dist/lib}/types/Global.d.ts +0 -0
- /package/{lib → dist/lib}/types/Global.js +0 -0
- /package/{lib → dist/lib}/types/HttpMessage.d.ts +0 -0
- /package/{lib → dist/lib}/types/HttpMessage.js +0 -0
- /package/{lib → dist/lib}/types/HttpStream.d.ts +0 -0
- /package/{lib → dist/lib}/types/HttpStream.js +0 -0
- /package/{lib → dist/lib}/types/Kuzzle.d.ts +0 -0
- /package/{lib → dist/lib}/types/Kuzzle.js +0 -0
- /package/{lib → dist/lib}/types/KuzzleDocument.d.ts +0 -0
- /package/{lib → dist/lib}/types/KuzzleDocument.js +0 -0
- /package/{lib → dist/lib}/types/OpenApiDefinition.d.ts +0 -0
- /package/{lib → dist/lib}/types/OpenApiDefinition.js +0 -0
- /package/{lib → dist/lib}/types/PasswordPolicy.d.ts +0 -0
- /package/{lib → dist/lib}/types/PasswordPolicy.js +0 -0
- /package/{lib → dist/lib}/types/Plugin.js +0 -0
- /package/{lib → dist/lib}/types/PluginManifest.d.ts +0 -0
- /package/{lib → dist/lib}/types/PluginManifest.js +0 -0
- /package/{lib → dist/lib}/types/Policy.d.ts +0 -0
- /package/{lib → dist/lib}/types/Policy.js +0 -0
- /package/{lib → dist/lib}/types/PolicyRestrictions.d.ts +0 -0
- /package/{lib → dist/lib}/types/PolicyRestrictions.js +0 -0
- /package/{lib → dist/lib}/types/ProfileDefinition.d.ts +0 -0
- /package/{lib → dist/lib}/types/ProfileDefinition.js +0 -0
- /package/{lib → dist/lib}/types/RoleDefinition.d.ts +0 -0
- /package/{lib → dist/lib}/types/RoleDefinition.js +0 -0
- /package/{lib → dist/lib}/types/StrategyDefinition.d.ts +0 -0
- /package/{lib → dist/lib}/types/StrategyDefinition.js +0 -0
- /package/{lib → dist/lib}/types/Target.d.ts +0 -0
- /package/{lib → dist/lib}/types/Target.js +0 -0
- /package/{lib → dist/lib}/types/Token.d.ts +0 -0
- /package/{lib → dist/lib}/types/Token.js +0 -0
- /package/{lib → dist/lib}/types/User.d.ts +0 -0
- /package/{lib → dist/lib}/types/User.js +0 -0
- /package/{lib → dist/lib}/types/config/DumpConfiguration.d.ts +0 -0
- /package/{lib → dist/lib}/types/config/DumpConfiguration.js +0 -0
- /package/{lib → dist/lib}/types/config/HttpConfiguration.d.ts +0 -0
- /package/{lib → dist/lib}/types/config/HttpConfiguration.js +0 -0
- /package/{lib → dist/lib}/types/config/KuzzleConfiguration.d.ts +0 -0
- /package/{lib → dist/lib}/types/config/KuzzleConfiguration.js +0 -0
- /package/{lib → dist/lib}/types/config/LimitsConfiguration.d.ts +0 -0
- /package/{lib → dist/lib}/types/config/LimitsConfiguration.js +0 -0
- /package/{lib → dist/lib}/types/config/PluginsConfiguration.d.ts +0 -0
- /package/{lib → dist/lib}/types/config/PluginsConfiguration.js +0 -0
- /package/{lib → dist/lib}/types/config/SecurityConfiguration.d.ts +0 -0
- /package/{lib → dist/lib}/types/config/SecurityConfiguration.js +0 -0
- /package/{lib → dist/lib}/types/config/ServerConfiguration.d.ts +0 -0
- /package/{lib → dist/lib}/types/config/ServerConfiguration.js +0 -0
- /package/{lib → dist/lib}/types/config/ServicesConfiguration.d.ts +0 -0
- /package/{lib → dist/lib}/types/config/ServicesConfiguration.js +0 -0
- /package/{lib → dist/lib}/types/config/internalCache/InternalCacheRedisConfiguration.d.ts +0 -0
- /package/{lib → dist/lib}/types/config/internalCache/InternalCacheRedisConfiguration.js +0 -0
- /package/{lib → dist/lib}/types/config/publicCache/PublicCacheRedisConfiguration.d.ts +0 -0
- /package/{lib → dist/lib}/types/config/publicCache/PublicCacheRedisConfiguration.js +0 -0
- /package/{lib → dist/lib}/types/config/storageEngine/StorageEngineElasticsearchConfiguration.d.ts +0 -0
- /package/{lib → dist/lib}/types/config/storageEngine/StorageEngineElasticsearchConfiguration.js +0 -0
- /package/{lib/types → dist/lib/types/controllers}/Controller.js +0 -0
- /package/{lib/types → dist/lib/types/controllers}/ControllerDefinition.js +0 -0
- /package/{lib/types → dist/lib/types/controllers}/ControllerRights.d.ts +0 -0
- /package/{lib/types → dist/lib/types/controllers}/ControllerRights.js +0 -0
- /package/{lib → dist/lib}/types/errors/ErrorDefinition.d.ts +0 -0
- /package/{lib → dist/lib}/types/errors/ErrorDefinition.js +0 -0
- /package/{lib → dist/lib}/types/errors/ErrorDomains.d.ts +0 -0
- /package/{lib → dist/lib}/types/errors/ErrorDomains.js +0 -0
- /package/{lib → dist/lib}/types/events/EventGenericDocument.d.ts +0 -0
- /package/{lib → dist/lib}/types/events/EventGenericDocument.js +0 -0
- /package/{lib → dist/lib}/types/events/EventProtocol.d.ts +0 -0
- /package/{lib → dist/lib}/types/events/EventProtocol.js +0 -0
- /package/{lib → dist/lib}/types/realtime/RealtimeScope.d.ts +0 -0
- /package/{lib → dist/lib}/types/realtime/RealtimeScope.js +0 -0
- /package/{lib → dist/lib}/types/realtime/RealtimeUsers.d.ts +0 -0
- /package/{lib → dist/lib}/types/realtime/RealtimeUsers.js +0 -0
- /package/{lib → dist/lib}/types/realtime/RoomList.d.ts +0 -0
- /package/{lib → dist/lib}/types/realtime/RoomList.js +0 -0
- /package/{lib → dist/lib}/types/shared/StoreCollectionsDefinition.d.ts +0 -0
- /package/{lib → dist/lib}/types/shared/StoreCollectionsDefinition.js +0 -0
- /package/{lib → dist/lib}/types/storage/7/Elasticsearch.d.ts +0 -0
- /package/{lib → dist/lib}/types/storage/7/Elasticsearch.js +0 -0
- /package/{lib → dist/lib}/types/storage/8/Elasticsearch.d.ts +0 -0
- /package/{lib → dist/lib}/types/storage/8/Elasticsearch.js +0 -0
- /package/{lib → dist/lib}/util/Inflector.d.ts +0 -0
- /package/{lib → dist/lib}/util/Inflector.js +0 -0
- /package/{lib → dist/lib}/util/array.d.ts +0 -0
- /package/{lib → dist/lib}/util/array.js +0 -0
- /package/{lib → dist/lib}/util/async.d.ts +0 -0
- /package/{lib → dist/lib}/util/async.js +0 -0
- /package/{lib → dist/lib}/util/bufferedPassThrough.d.ts +0 -0
- /package/{lib → dist/lib}/util/bufferedPassThrough.js +0 -0
- /package/{lib → dist/lib}/util/crypto.d.ts +0 -0
- /package/{lib → dist/lib}/util/crypto.js +0 -0
- /package/{lib → dist/lib}/util/dump-collection.d.ts +0 -0
- /package/{lib → dist/lib}/util/dump-collection.js +0 -0
- /package/{lib → dist/lib}/util/esRequest.d.ts +0 -0
- /package/{lib → dist/lib}/util/esRequest.js +0 -0
- /package/{lib → dist/lib}/util/koncordeCompat.d.ts +0 -0
- /package/{lib → dist/lib}/util/koncordeCompat.js +0 -0
- /package/{lib → dist/lib}/util/mutex.d.ts +0 -0
- /package/{lib → dist/lib}/util/mutex.js +0 -0
- /package/{lib → dist/lib}/util/name-generator.d.ts +0 -0
- /package/{lib → dist/lib}/util/name-generator.js +0 -0
- /package/{lib → dist/lib}/util/time.d.ts +0 -0
- /package/{lib → dist/lib}/util/time.js +0 -0
|
@@ -0,0 +1,498 @@
|
|
|
1
|
+
{
|
|
2
|
+
"code": 4,
|
|
3
|
+
"subDomains": {
|
|
4
|
+
"assert": {
|
|
5
|
+
"code": 1,
|
|
6
|
+
"errors": {
|
|
7
|
+
"invalid_plugins_dir": {
|
|
8
|
+
"description": "The enabled plugins directory cannot be opened",
|
|
9
|
+
"code": 1,
|
|
10
|
+
"message": "Unable to read plugins directory \"%s\"; %s.",
|
|
11
|
+
"class": "InternalError"
|
|
12
|
+
},
|
|
13
|
+
"cannot_load": {
|
|
14
|
+
"description": "Kuzzle is unable to load a plugin",
|
|
15
|
+
"code": 2,
|
|
16
|
+
"message": "Unable to load plugin from path \"%s\"; %s.",
|
|
17
|
+
"class": "PluginImplementationError"
|
|
18
|
+
},
|
|
19
|
+
"invalid_hook": {
|
|
20
|
+
"description": "A hook must point to either a function named directly exposed by the plugin, or a function. This error is thrown when a hook property is configured with neither of these values",
|
|
21
|
+
"code": 3,
|
|
22
|
+
"message": "Unable to configure a hook for the event \"%s\": \"%s\" should be a function. %s",
|
|
23
|
+
"class": "PluginImplementationError"
|
|
24
|
+
},
|
|
25
|
+
"invalid_pipe": {
|
|
26
|
+
"description": "A pipe must point to either a function named directly exposed by the plugin, or a function. This error is thrown when a hook property is configured with neither of these values",
|
|
27
|
+
"code": 4,
|
|
28
|
+
"message": "Unable to configure a pipe for the event \"%s\": \"%s\" should be a function. %s",
|
|
29
|
+
"class": "PluginImplementationError"
|
|
30
|
+
},
|
|
31
|
+
"init_not_found": {
|
|
32
|
+
"description": "The plugin does not have an 'init' function",
|
|
33
|
+
"code": 5,
|
|
34
|
+
"message": "Plugin \"%s\": No \"init\" method found.",
|
|
35
|
+
"class": "PluginImplementationError"
|
|
36
|
+
},
|
|
37
|
+
"privileged_not_supported": {
|
|
38
|
+
"description": "The 'privileged' flag has been set in Kuzzle's configuration for that plugin, but not in the plugin's manifest",
|
|
39
|
+
"code": 6,
|
|
40
|
+
"message": "The plugin \"%s\" is configured to run in privileged mode, but it does not seem to support it.",
|
|
41
|
+
"class": "PluginImplementationError"
|
|
42
|
+
},
|
|
43
|
+
"privileged_not_set": {
|
|
44
|
+
"description": "The 'privileged' flag has been set in the plugin's manifest file, but it needs also to be added in Kuzzle's configuration",
|
|
45
|
+
"code": 7,
|
|
46
|
+
"message": "The plugin \"%s\" needs to run in privileged mode to work, you have to explicitly set \"privileged: true\" in its configuration.",
|
|
47
|
+
"class": "PluginImplementationError"
|
|
48
|
+
},
|
|
49
|
+
"not_a_constructor": {
|
|
50
|
+
"description": "The exposed plugin is not a constructor",
|
|
51
|
+
"code": 8,
|
|
52
|
+
"message": "Plugin \"%s\" is not a constructor.",
|
|
53
|
+
"class": "PluginImplementationError"
|
|
54
|
+
},
|
|
55
|
+
"name_already_exists": {
|
|
56
|
+
"description": "Another plugin with the same name has already been loaded",
|
|
57
|
+
"code": 9,
|
|
58
|
+
"message": "A plugin named %s already exists",
|
|
59
|
+
"class": "PluginImplementationError"
|
|
60
|
+
},
|
|
61
|
+
"invalid_plugin_name": {
|
|
62
|
+
"description": "The plugin name is invalid. Plugin names can only contain lowercase letters and dashes.",
|
|
63
|
+
"code": 10,
|
|
64
|
+
"message": "Plugin name \"%s\" is invalid. Plugin names must be in kebab-case.",
|
|
65
|
+
"class": "PluginImplementationError"
|
|
66
|
+
},
|
|
67
|
+
"no_name_provided": {
|
|
68
|
+
"description": "The plugin does not have a constructor method and no name has been provided.",
|
|
69
|
+
"code": 11,
|
|
70
|
+
"message": "Cannot infer plugin name. No constructor method and no name provided",
|
|
71
|
+
"class": "PluginImplementationError"
|
|
72
|
+
},
|
|
73
|
+
"invalid_controller_definition": {
|
|
74
|
+
"description": "The controller definition is incorrect.",
|
|
75
|
+
"code": 12,
|
|
76
|
+
"message": "Incorrect \"%s\" controller definition: %s",
|
|
77
|
+
"class": "PluginImplementationError"
|
|
78
|
+
},
|
|
79
|
+
"invalid_application_name": {
|
|
80
|
+
"description": "The application name is invalid. Application names can only contain lowercase letters and dashes.",
|
|
81
|
+
"code": 13,
|
|
82
|
+
"message": "Application name \"%s\" is invalid. Application names must be in kebab-case.",
|
|
83
|
+
"class": "PluginImplementationError"
|
|
84
|
+
},
|
|
85
|
+
"duplicated_api_definition": {
|
|
86
|
+
"description": "You cannot use the \"api\" and the \"controllers\" objects at the same time. Use the \"api\" object to define controllers.",
|
|
87
|
+
"code": 14,
|
|
88
|
+
"message": "Cannot define new controllers in the \"api\" and the \"controllers\" objects at the same time",
|
|
89
|
+
"class": "PluginImplementationError"
|
|
90
|
+
},
|
|
91
|
+
"plugin_not_found": {
|
|
92
|
+
"description": "The request plugin does not exists or have not been loaded yet.",
|
|
93
|
+
"code": 15,
|
|
94
|
+
"message": "Plugin \"%s\" not found.%s",
|
|
95
|
+
"class": "NotFoundError"
|
|
96
|
+
},
|
|
97
|
+
"invalid_openapi_schema": {
|
|
98
|
+
"description": "OpenAPI specification is invalid",
|
|
99
|
+
"code": 16,
|
|
100
|
+
"message": "Invalid OpenAPI specification: \"%s\"",
|
|
101
|
+
"class": "PluginImplementationError"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"runtime": {
|
|
106
|
+
"code": 2,
|
|
107
|
+
"errors": {
|
|
108
|
+
"failed_init": {
|
|
109
|
+
"description": "An exception was thrown by a plugin's init function",
|
|
110
|
+
"code": 1,
|
|
111
|
+
"message": "Something went wrong during initialization of \"%s\" plugin. Set \"plugins.common.failsafeMode\" to true to bypass plugin initialization.",
|
|
112
|
+
"class": "PluginImplementationError"
|
|
113
|
+
},
|
|
114
|
+
"unexpected_error": {
|
|
115
|
+
"description": "Embeds an unexpected plugin error into a standardized KuzzleError object",
|
|
116
|
+
"code": 2,
|
|
117
|
+
"message": "Caught an unexpected plugin error: %s",
|
|
118
|
+
"class": "PluginImplementationError"
|
|
119
|
+
},
|
|
120
|
+
"pipe_timeout": {
|
|
121
|
+
"description": "A pipe function execution took more than the configured server limit",
|
|
122
|
+
"code": 3,
|
|
123
|
+
"message": "Plugin \"%s\": timeout error. A pipe on the event \"%s\" exceeded the timeout delay (%sms). Aborting.",
|
|
124
|
+
"class": "GatewayTimeoutError",
|
|
125
|
+
"deprecated": "2.2.0"
|
|
126
|
+
},
|
|
127
|
+
"too_many_pipes": {
|
|
128
|
+
"description": "The number of running pipes exceeds the configured capacity (see configuration files). This may be caused by pipes being too slow, or by an insufficient number of Kuzzle nodes.",
|
|
129
|
+
"code": 4,
|
|
130
|
+
"message": "Request discarded: maximum number of executing pipe functions reached.",
|
|
131
|
+
"class": "ServiceUnavailableError"
|
|
132
|
+
},
|
|
133
|
+
"already_started": {
|
|
134
|
+
"description": "Features definition cannot be changed after startup.",
|
|
135
|
+
"code": 5,
|
|
136
|
+
"message": "Cannot use property \"%s\" when application is already running",
|
|
137
|
+
"class": "PluginImplementationError"
|
|
138
|
+
},
|
|
139
|
+
"unavailable_before_start": {
|
|
140
|
+
"description": "The property is only accessible after application startup.",
|
|
141
|
+
"code": 6,
|
|
142
|
+
"message": "Cannot use property \"%s\" before application startup",
|
|
143
|
+
"class": "PluginImplementationError"
|
|
144
|
+
},
|
|
145
|
+
"unknown_pipe": {
|
|
146
|
+
"description": "The provided pipe identifier is unknown.",
|
|
147
|
+
"code": 7,
|
|
148
|
+
"message": "Unknown pipe ID \"%s\"",
|
|
149
|
+
"class": "PluginImplementationError"
|
|
150
|
+
},
|
|
151
|
+
"unexpected_installation_error": {
|
|
152
|
+
"description": "Embeds an unexpected installation error into a standardized KuzzleError object.",
|
|
153
|
+
"code": 8,
|
|
154
|
+
"message": "Caught an unexpected error while executing installation \"%s\": %s",
|
|
155
|
+
"class": "PluginImplementationError"
|
|
156
|
+
},
|
|
157
|
+
"incompatible": {
|
|
158
|
+
"description": "Some features incompatible are being used at the same time",
|
|
159
|
+
"code": 9,
|
|
160
|
+
"message": "\"%s\" and \"%s\" are incompatible. Please use only one of these features at the same time.",
|
|
161
|
+
"class": "PluginImplementationError"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"strategy": {
|
|
166
|
+
"code": 3,
|
|
167
|
+
"errors": {
|
|
168
|
+
"invalid_description": {
|
|
169
|
+
"description": "The strategy.description field must be an object",
|
|
170
|
+
"code": 1,
|
|
171
|
+
"message": "%s expected the strategy description to be an object, got: %s.",
|
|
172
|
+
"class": "PluginImplementationError"
|
|
173
|
+
},
|
|
174
|
+
"invalid_methods": {
|
|
175
|
+
"description": "The strategy.methods field must be an object",
|
|
176
|
+
"code": 2,
|
|
177
|
+
"message": "%s expected a \"methods\" property of type \"object\", got: %s.",
|
|
178
|
+
"class": "PluginImplementationError"
|
|
179
|
+
},
|
|
180
|
+
"invalid_method_type": {
|
|
181
|
+
"description": "Method definitions in the strategy.methods configuration must be of type string",
|
|
182
|
+
"code": 3,
|
|
183
|
+
"message": "%s expected a \"%s\" property of type \"string\", got: %s.",
|
|
184
|
+
"class": "PluginImplementationError"
|
|
185
|
+
},
|
|
186
|
+
"missing_method_function": {
|
|
187
|
+
"description": "A required strategy method is missing",
|
|
188
|
+
"code": 4,
|
|
189
|
+
"message": "%s the strategy method \"%s\" must point to an exposed function.",
|
|
190
|
+
"class": "PluginImplementationError"
|
|
191
|
+
},
|
|
192
|
+
"invalid_config": {
|
|
193
|
+
"description": "The strategy.config field must be an object",
|
|
194
|
+
"code": 5,
|
|
195
|
+
"message": "%s expected a \"config\" property of type \"object\", got: %s.",
|
|
196
|
+
"class": "PluginImplementationError"
|
|
197
|
+
},
|
|
198
|
+
"unexpected_constructor": {
|
|
199
|
+
"description": "The (deprecated) constructor property can only be set if there is no authenticator defined",
|
|
200
|
+
"code": 6,
|
|
201
|
+
"message": "%s the \"authenticator\" and \"constructor\" parameters cannot both be set.",
|
|
202
|
+
"class": "PluginImplementationError"
|
|
203
|
+
},
|
|
204
|
+
"invalid_constructor": {
|
|
205
|
+
"description": "The strategy.constructor field must be a constructor",
|
|
206
|
+
"code": 7,
|
|
207
|
+
"message": "%s invalid \"constructor\" property value: constructor expected.",
|
|
208
|
+
"class": "PluginImplementationError"
|
|
209
|
+
},
|
|
210
|
+
"invalid_authenticator": {
|
|
211
|
+
"description": "The strategy.authenticator field must be a string",
|
|
212
|
+
"code": 8,
|
|
213
|
+
"message": "%s expected an \"authenticator\" property of type \"string\", got: %s.",
|
|
214
|
+
"class": "PluginImplementationError"
|
|
215
|
+
},
|
|
216
|
+
"unknown_authenticator": {
|
|
217
|
+
"description": "This strategy uses an authenticator that hasn't been declared in this.authenticators",
|
|
218
|
+
"code": 9,
|
|
219
|
+
"message": "%s unknown authenticator: %s.",
|
|
220
|
+
"class": "PluginImplementationError"
|
|
221
|
+
},
|
|
222
|
+
"invalid_option": {
|
|
223
|
+
"description": "If defined, the \"strategy.config.strategyOptions\" and \"strategy.config.authenticateOptions\" properties must be objects",
|
|
224
|
+
"code": 10,
|
|
225
|
+
"message": "%s expected the \"%s\" property to be of type \"object\", got: %s.",
|
|
226
|
+
"class": "PluginImplementationError"
|
|
227
|
+
},
|
|
228
|
+
"invalid_fields": {
|
|
229
|
+
"description": "The field strategy.config.fields must be an array or null",
|
|
230
|
+
"code": 11,
|
|
231
|
+
"message": "%s expected the \"fields\" property to be of type \"array\", got: %s.",
|
|
232
|
+
"class": "PluginImplementationError"
|
|
233
|
+
},
|
|
234
|
+
"invalid_definition": {
|
|
235
|
+
"description": "The strategies property must be a non-empty object",
|
|
236
|
+
"code": 12,
|
|
237
|
+
"message": "%s the exposed \"strategies\" plugin property must be a non-empty object.",
|
|
238
|
+
"class": "PluginImplementationError"
|
|
239
|
+
},
|
|
240
|
+
"failed_registration": {
|
|
241
|
+
"description": "Passportjs rejected this strategy (see the message for more information)",
|
|
242
|
+
"code": 13,
|
|
243
|
+
"message": "Failed to register strategy \"%s\": %s",
|
|
244
|
+
"class": "PluginImplementationError"
|
|
245
|
+
},
|
|
246
|
+
"invalid_verify_return": {
|
|
247
|
+
"description": "The \"verify\" method must return a promise",
|
|
248
|
+
"code": 14,
|
|
249
|
+
"message": "%s The \"verify\" method is expected to return a Promise, got: %s.",
|
|
250
|
+
"class": "PluginImplementationError"
|
|
251
|
+
},
|
|
252
|
+
"invalid_verify_resolve": {
|
|
253
|
+
"description": "The \"verify\" strategy method resolved to a non-object return value",
|
|
254
|
+
"code": 15,
|
|
255
|
+
"message": "%s invalid authentication strategy result (expected an object).",
|
|
256
|
+
"class": "PluginImplementationError"
|
|
257
|
+
},
|
|
258
|
+
"invalid_kuid": {
|
|
259
|
+
"description": "The \"verify\" method returned an invalid kuid",
|
|
260
|
+
"code": 16,
|
|
261
|
+
"message": "%s invalid authentication kuid returned: expected a string, got a %s.",
|
|
262
|
+
"class": "PluginImplementationError"
|
|
263
|
+
},
|
|
264
|
+
"unknown_kuid": {
|
|
265
|
+
"description": "The \"verify\" method returned an unknown kuid",
|
|
266
|
+
"code": 17,
|
|
267
|
+
"message": "%s returned an unknown Kuzzle user identifier.",
|
|
268
|
+
"class": "PluginImplementationError"
|
|
269
|
+
},
|
|
270
|
+
"unauthorized_removal": {
|
|
271
|
+
"description": "Tried to remove a strategy owned by another plugin",
|
|
272
|
+
"code": 18,
|
|
273
|
+
"message": "Cannot remove strategy %s: owned by another plugin.",
|
|
274
|
+
"class": "PluginImplementationError"
|
|
275
|
+
},
|
|
276
|
+
"strategy_not_found": {
|
|
277
|
+
"description": "Attempted to remove a non-existent authentication strategy",
|
|
278
|
+
"code": 19,
|
|
279
|
+
"message": "Cannot remove strategy %s: strategy does not exist.",
|
|
280
|
+
"class": "NotFoundError"
|
|
281
|
+
},
|
|
282
|
+
"missing_user": {
|
|
283
|
+
"description": "A strategy plugin approved credentials without providing a user object to Kuzzle",
|
|
284
|
+
"code": 20,
|
|
285
|
+
"message": "%s",
|
|
286
|
+
"class": "UnauthorizedError"
|
|
287
|
+
},
|
|
288
|
+
"missing_optional_method": {
|
|
289
|
+
"description": "An optional method has not been implemented for this strategy",
|
|
290
|
+
"code": 21,
|
|
291
|
+
"message": "\"%s\" method is optional. The %s strategy plugin has not yet implemented it.",
|
|
292
|
+
"class": "PluginImplementationError"
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
"controller": {
|
|
297
|
+
"code": 4,
|
|
298
|
+
"errors": {
|
|
299
|
+
"invalid_description": {
|
|
300
|
+
"description": "The controller description must be an object",
|
|
301
|
+
"code": 1,
|
|
302
|
+
"message": "%s Invalid controller description type (expected object, got: \"%s\").",
|
|
303
|
+
"class": "PluginImplementationError"
|
|
304
|
+
},
|
|
305
|
+
"invalid_action": {
|
|
306
|
+
"description": "A controller action must be a function name, or a function",
|
|
307
|
+
"code": 2,
|
|
308
|
+
"message": "%s Action for \"%s\" is neither a function nor a function name. %s",
|
|
309
|
+
"class": "PluginImplementationError"
|
|
310
|
+
},
|
|
311
|
+
"unexpected_route_property": {
|
|
312
|
+
"description": "An unexpected property has been found in a controller route definition",
|
|
313
|
+
"code": 3,
|
|
314
|
+
"message": "%s Unexpected property \"%s\" in route definition. %s",
|
|
315
|
+
"class": "PluginImplementationError"
|
|
316
|
+
},
|
|
317
|
+
"invalid_route_property": {
|
|
318
|
+
"description": "Invalid route property format (must be a non-empty string)",
|
|
319
|
+
"code": 4,
|
|
320
|
+
"message": "%s \"%s\" must be a non-empty string.",
|
|
321
|
+
"class": "PluginImplementationError"
|
|
322
|
+
},
|
|
323
|
+
"undefined_controller": {
|
|
324
|
+
"description": "A HTTP route points to an non-existent controller",
|
|
325
|
+
"code": 5,
|
|
326
|
+
"message": "%s Undefined controller \"%s\". %s",
|
|
327
|
+
"class": "PluginImplementationError"
|
|
328
|
+
},
|
|
329
|
+
"undefined_action": {
|
|
330
|
+
"description": "A HTTP route points to an non-existent controller action",
|
|
331
|
+
"code": 6,
|
|
332
|
+
"message": "%s Undefined action \"%s\". %s",
|
|
333
|
+
"class": "PluginImplementationError"
|
|
334
|
+
},
|
|
335
|
+
"unsupported_verb": {
|
|
336
|
+
"description": "A HTTP route is using an unsupported HTTP verb",
|
|
337
|
+
"code": 7,
|
|
338
|
+
"message": "%s Only the following http verbs are allowed: \"%s\". %s",
|
|
339
|
+
"class": "PluginImplementationError"
|
|
340
|
+
},
|
|
341
|
+
"unserializable_response": {
|
|
342
|
+
"description": "A plugin controller action returned a non-serializable response",
|
|
343
|
+
"code": 8,
|
|
344
|
+
"message": "Unable to serialize response. Are you trying to return the request?",
|
|
345
|
+
"class": "PluginImplementationError"
|
|
346
|
+
},
|
|
347
|
+
"invalid_action_response": {
|
|
348
|
+
"description": "API actions added by plugins must return a promise",
|
|
349
|
+
"code": 9,
|
|
350
|
+
"message": "Unexpected return value from action \"%s:%s\": expected a Promise",
|
|
351
|
+
"class": "PluginImplementationError"
|
|
352
|
+
},
|
|
353
|
+
"invalid_openapi_schema": {
|
|
354
|
+
"description": "OpenAPI specification is invalid",
|
|
355
|
+
"code": 10,
|
|
356
|
+
"message": "Invalid OpenAPI specification in \"%s:%s\", %s : %s",
|
|
357
|
+
"class": "PluginImplementationError"
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
"manifest": {
|
|
362
|
+
"code": 5,
|
|
363
|
+
"errors": {
|
|
364
|
+
"cannot_load": {
|
|
365
|
+
"description": "Unable to load the plugin's manifest file",
|
|
366
|
+
"code": 1,
|
|
367
|
+
"message": "[%s] Unable to load the file 'manifest.json': %s",
|
|
368
|
+
"class": "PluginImplementationError"
|
|
369
|
+
},
|
|
370
|
+
"version_mismatch": {
|
|
371
|
+
"description": "Current Kuzzle's version does not match the plugin's requirements",
|
|
372
|
+
"code": 2,
|
|
373
|
+
"message": "[%s] Version mismatch: current Kuzzle version %s does not match the manifest requirements (%s).",
|
|
374
|
+
"class": "PluginImplementationError"
|
|
375
|
+
},
|
|
376
|
+
"invalid_name_type": {
|
|
377
|
+
"description": "Invalid plugin's name",
|
|
378
|
+
"code": 3,
|
|
379
|
+
"message": "[%s] Invalid \"name\" property: expected a non-empty string.",
|
|
380
|
+
"class": "PluginImplementationError"
|
|
381
|
+
},
|
|
382
|
+
"invalid_name": {
|
|
383
|
+
"description": "Invalid characters in a plugin's name",
|
|
384
|
+
"code": 4,
|
|
385
|
+
"message": "[%s] Invalid plugin name. The name must be comprised only of letters, numbers, hyphens and underscores.",
|
|
386
|
+
"class": "PluginImplementationError"
|
|
387
|
+
},
|
|
388
|
+
"missing_name": {
|
|
389
|
+
"description": "A plugin name is required",
|
|
390
|
+
"code": 5,
|
|
391
|
+
"message": "[%s] A \"name\" property is required.",
|
|
392
|
+
"class": "PluginImplementationError"
|
|
393
|
+
},
|
|
394
|
+
"invalid_errors": {
|
|
395
|
+
"description": "The 'errors' property format is invalid",
|
|
396
|
+
"code": 6,
|
|
397
|
+
"message": "[%s] errors field in manifest.json badly formatted: %s",
|
|
398
|
+
"class": "PluginImplementationError"
|
|
399
|
+
},
|
|
400
|
+
"invalid_privileged": {
|
|
401
|
+
"description": "The \"privileged\" property is invalid",
|
|
402
|
+
"code": 7,
|
|
403
|
+
"message": "[%s] Invalid \"privileged\" property: expected a boolean, got a %s.",
|
|
404
|
+
"class": "PluginImplementationError"
|
|
405
|
+
},
|
|
406
|
+
"missing_package": {
|
|
407
|
+
"description": "The plugin is missing a 'package.json' file (run 'npm init' to create one)",
|
|
408
|
+
"code": 8,
|
|
409
|
+
"message": "[%s] No package.json file found.",
|
|
410
|
+
"class": "PluginImplementationError"
|
|
411
|
+
},
|
|
412
|
+
"missing_package_name": {
|
|
413
|
+
"description": "A 'name' property in the 'package.json' file is required by Kuzzle, as it is used as the plugin's unique name",
|
|
414
|
+
"code": 9,
|
|
415
|
+
"message": "[%s] No \"name\" property provided in package.json.",
|
|
416
|
+
"class": "PluginImplementationError"
|
|
417
|
+
},
|
|
418
|
+
"missing_version": {
|
|
419
|
+
"description": "Plugin manifest must provide a kuzzleVersion parameter, with the range of compatible Kuzzle versions",
|
|
420
|
+
"code": 10,
|
|
421
|
+
"message": "[%s] A \"kuzzleVersion\" property is required",
|
|
422
|
+
"class": "PluginImplementationError"
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
"context": {
|
|
427
|
+
"code": 6,
|
|
428
|
+
"errors": {
|
|
429
|
+
"missing_collection": {
|
|
430
|
+
"description": "The 'collection' argument is required, but none was provided",
|
|
431
|
+
"code": 1,
|
|
432
|
+
"message": "Missing collection argument.",
|
|
433
|
+
"class": "PluginImplementationError"
|
|
434
|
+
},
|
|
435
|
+
"unavailable_realtime": {
|
|
436
|
+
"description": "Due to technical limitations, subscribe and unsubscribe methods are only available through the embedded SDK.",
|
|
437
|
+
"code": 2,
|
|
438
|
+
"message": "The method \"realtime:%s\" is unavailable with execute(). Use the embedded SDK instead.",
|
|
439
|
+
"class": "PluginImplementationError"
|
|
440
|
+
},
|
|
441
|
+
"invalid_user": {
|
|
442
|
+
"description": "The user object provided to the sdk.as() method is not a valid user with a least an '_id' property",
|
|
443
|
+
"code": 3,
|
|
444
|
+
"message": "You must provide a valid User object when adding context with as().",
|
|
445
|
+
"class": "PluginImplementationError"
|
|
446
|
+
},
|
|
447
|
+
"invalid_callback": {
|
|
448
|
+
"description": "A non-function callback has been provided",
|
|
449
|
+
"code": 4,
|
|
450
|
+
"message": "Invalid argument: Expected callback to be a function, received \"%s\".",
|
|
451
|
+
"class": "PluginImplementationError"
|
|
452
|
+
},
|
|
453
|
+
"missing_request": {
|
|
454
|
+
"description": "A Request object is required, but none was supplied",
|
|
455
|
+
"code": 5,
|
|
456
|
+
"message": "Invalid argument: a Request object must be supplied.",
|
|
457
|
+
"class": "PluginImplementationError"
|
|
458
|
+
},
|
|
459
|
+
"missing_request_data": {
|
|
460
|
+
"description": "A Request object and/or request data must be provided",
|
|
461
|
+
"code": 6,
|
|
462
|
+
"message": "A Request object and/or request data must be provided.",
|
|
463
|
+
"class": "PluginImplementationError"
|
|
464
|
+
},
|
|
465
|
+
"invalid_event": {
|
|
466
|
+
"description": "Invalid event name (colons are not allowed in event names)",
|
|
467
|
+
"deprecated": "2.2.0",
|
|
468
|
+
"code": 7,
|
|
469
|
+
"message": "Custom event invalid name (%s). Colons are not allowed in custom events.",
|
|
470
|
+
"class": "PluginImplementationError"
|
|
471
|
+
},
|
|
472
|
+
"missing_authenticator": {
|
|
473
|
+
"description": "Missing \"strategy.config.authenticator\" property",
|
|
474
|
+
"code": 8,
|
|
475
|
+
"message": "[%s] Strategy %s: dynamic strategy registration can only be done using an \"authenticator\" option (see https://tinyurl.com/y7boozbk).",
|
|
476
|
+
"class": "PluginImplementationError"
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
"authenticators": {
|
|
481
|
+
"code": 7,
|
|
482
|
+
"errors": {
|
|
483
|
+
"not_an_object": {
|
|
484
|
+
"description": "The \"authenticators\" property must be an object",
|
|
485
|
+
"code": 1,
|
|
486
|
+
"message": "%s the exposed \"authenticators\" plugin property must be of type \"object\".",
|
|
487
|
+
"class": "PluginImplementationError"
|
|
488
|
+
},
|
|
489
|
+
"invalid_authenticator": {
|
|
490
|
+
"description": "Authenticators exposed in the \"authenticators\" object must be constructors",
|
|
491
|
+
"code": 2,
|
|
492
|
+
"message": "%s invalid authenticator.%s property: expected a constructor.",
|
|
493
|
+
"class": "PluginImplementationError"
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
{
|
|
2
|
+
"code": 5,
|
|
3
|
+
"subDomains": {
|
|
4
|
+
"assert": {
|
|
5
|
+
"code": 1,
|
|
6
|
+
"errors": {
|
|
7
|
+
"missing_nested_spec": {
|
|
8
|
+
"description": "All levels of an object have to be defined in the specification",
|
|
9
|
+
"code": 1,
|
|
10
|
+
"message": "All levels of an object have to be defined in the specification.",
|
|
11
|
+
"class": "PreconditionError"
|
|
12
|
+
},
|
|
13
|
+
"unexpected_children": {
|
|
14
|
+
"description": "The field configuration does not allow children fields",
|
|
15
|
+
"code": 2,
|
|
16
|
+
"message": "The field type \"%s\" is not allowed to have children fields.",
|
|
17
|
+
"class": "PreconditionError"
|
|
18
|
+
},
|
|
19
|
+
"missing_parent": {
|
|
20
|
+
"description": "Missing parent field",
|
|
21
|
+
"code": 3,
|
|
22
|
+
"message": "The parent field of the field \"%s\" is not defined.",
|
|
23
|
+
"class": "PreconditionError"
|
|
24
|
+
},
|
|
25
|
+
"unexpected_properties": {
|
|
26
|
+
"description": "Unexpected properties found",
|
|
27
|
+
"code": 4,
|
|
28
|
+
"message": "The object \"%s\" contains unexpected properties (allowed: %s).",
|
|
29
|
+
"class": "PreconditionError"
|
|
30
|
+
},
|
|
31
|
+
"missing_type": {
|
|
32
|
+
"description": "The property \"type\" is required",
|
|
33
|
+
"code": 5,
|
|
34
|
+
"message": "Missing property \"type\" in field \"%s\".",
|
|
35
|
+
"class": "PreconditionError"
|
|
36
|
+
},
|
|
37
|
+
"unknown_type": {
|
|
38
|
+
"description": "Unknown \"type\" defined",
|
|
39
|
+
"code": 6,
|
|
40
|
+
"message": "In \"%s\": unknown type \"%s\".",
|
|
41
|
+
"class": "PreconditionError"
|
|
42
|
+
},
|
|
43
|
+
"missing_value": {
|
|
44
|
+
"description": "The \"value\" field is required",
|
|
45
|
+
"code": 7,
|
|
46
|
+
"message": "Missing property \"value\" in field \"%s\".",
|
|
47
|
+
"class": "PreconditionError"
|
|
48
|
+
},
|
|
49
|
+
"invalid_type": {
|
|
50
|
+
"description": "Wrong parameter type",
|
|
51
|
+
"code": 8,
|
|
52
|
+
"message": "Wrong type for parameter \"%s\" (expected: %s).",
|
|
53
|
+
"class": "PreconditionError"
|
|
54
|
+
},
|
|
55
|
+
"not_multivalued": {
|
|
56
|
+
"description": "Expected the field to be multivalued",
|
|
57
|
+
"code": 9,
|
|
58
|
+
"message": "Field \"%s\": cannot set a property \"%s\" if the field is not multivalued.",
|
|
59
|
+
"class": "PreconditionError"
|
|
60
|
+
},
|
|
61
|
+
"invalid_range": {
|
|
62
|
+
"description": "A range has been defined with its lower bound greater than its upper one",
|
|
63
|
+
"code": 10,
|
|
64
|
+
"message": "Property \"%s\": invalid range (%s > %s).",
|
|
65
|
+
"class": "PreconditionError"
|
|
66
|
+
},
|
|
67
|
+
"invalid_specifications": {
|
|
68
|
+
"description": "The provided specifications are invalid",
|
|
69
|
+
"code": 11,
|
|
70
|
+
"message": "Errors occured with the provided specifications:\n%s",
|
|
71
|
+
"class": "BadRequestError"
|
|
72
|
+
},
|
|
73
|
+
"not_found": {
|
|
74
|
+
"description": "Attempted to access to a non-existent collection specifications",
|
|
75
|
+
"code": 12,
|
|
76
|
+
"message": "No specifications defined for index %s and collection %s",
|
|
77
|
+
"class": "NotFoundError"
|
|
78
|
+
},
|
|
79
|
+
"invalid_filters": {
|
|
80
|
+
"description": "The Koncorde filters provided as a validator are invalid",
|
|
81
|
+
"code": 13,
|
|
82
|
+
"message": "Invalid filters validator: %s",
|
|
83
|
+
"class": "BadRequestError"
|
|
84
|
+
},
|
|
85
|
+
"incorrect_validation_format": {
|
|
86
|
+
"description": "The Koncorde filters provided as a validator are invalid",
|
|
87
|
+
"code": 14,
|
|
88
|
+
"message": "Incorrect validation format stored for collection \"%s\": missing \"%s\" property.",
|
|
89
|
+
"class": "InternalError"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"types": {
|
|
94
|
+
"code": 2,
|
|
95
|
+
"errors": {
|
|
96
|
+
"invalid_date_format": {
|
|
97
|
+
"description": "One or multiple date format types are invalid",
|
|
98
|
+
"code": 1,
|
|
99
|
+
"message": "The following date types are invalid: %s.",
|
|
100
|
+
"class": "PreconditionError"
|
|
101
|
+
},
|
|
102
|
+
"invalid_date": {
|
|
103
|
+
"description": "The date value is invalid and cannot be parsed",
|
|
104
|
+
"code": 2,
|
|
105
|
+
"message": "Cannot parse the date value: \"%s\".",
|
|
106
|
+
"class": "PreconditionError"
|
|
107
|
+
},
|
|
108
|
+
"missing_enum_values": {
|
|
109
|
+
"description": "The \"enum\" type requires a \"values\" property holding the list of the enum values",
|
|
110
|
+
"code": 3,
|
|
111
|
+
"message": "The \"enum\" type requires a \"values\" property holding the list of the enum values.",
|
|
112
|
+
"class": "PreconditionError"
|
|
113
|
+
},
|
|
114
|
+
"invalid_geoshape": {
|
|
115
|
+
"description": "One or multiple geoshape types are invalid",
|
|
116
|
+
"code": 4,
|
|
117
|
+
"message": "The following shapes are invalid: %s.",
|
|
118
|
+
"class": "PreconditionError"
|
|
119
|
+
},
|
|
120
|
+
"missing_type_name": {
|
|
121
|
+
"description": "Type definitions must have a \"typeName\" defined",
|
|
122
|
+
"code": 5,
|
|
123
|
+
"message": "Missing property \"typeName\"",
|
|
124
|
+
"class": "PluginImplementationError"
|
|
125
|
+
},
|
|
126
|
+
"missing_function": {
|
|
127
|
+
"description": "A required function is missing from the new validation data type",
|
|
128
|
+
"code": 6,
|
|
129
|
+
"message": "The type \"%s\" must implement a function \"%s\".",
|
|
130
|
+
"class": "PluginImplementationError"
|
|
131
|
+
},
|
|
132
|
+
"already_exists": {
|
|
133
|
+
"description": "Duplicate data type definition",
|
|
134
|
+
"code": 7,
|
|
135
|
+
"message": "The type \"%s\" already exists.",
|
|
136
|
+
"class": "PluginImplementationError"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"check": {
|
|
141
|
+
"code": 3,
|
|
142
|
+
"errors": {
|
|
143
|
+
"failed_document": {
|
|
144
|
+
"description": "Document rejected because it does not validate the collection specifications",
|
|
145
|
+
"code": 1,
|
|
146
|
+
"message": "Failed to validate document: %s",
|
|
147
|
+
"class": "BadRequestError"
|
|
148
|
+
},
|
|
149
|
+
"failed_field": {
|
|
150
|
+
"description": "Document rejected because one of its field does not validate the collection specifications",
|
|
151
|
+
"code": 2,
|
|
152
|
+
"message": "Validation failed. Field \"%s\": %s",
|
|
153
|
+
"class": "BadRequestError"
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|