@webda/core 2.0.0-beta.2 → 2.0.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/application.d.ts +5 -21
- package/lib/application.js +71 -84
- package/lib/application.js.map +1 -1
- package/lib/application.spec.js +121 -140
- package/lib/application.spec.js.map +1 -1
- package/lib/core.d.ts +44 -45
- package/lib/core.js +239 -320
- package/lib/core.js.map +1 -1
- package/lib/core.spec.js +326 -391
- package/lib/core.spec.js.map +1 -1
- package/lib/index.d.ts +49 -45
- package/lib/index.js +54 -67
- package/lib/index.js.map +1 -1
- package/lib/models/aclmodel.d.ts +2 -2
- package/lib/models/aclmodel.js +63 -90
- package/lib/models/aclmodel.js.map +1 -1
- package/lib/models/aclmodel.spec.js +128 -151
- package/lib/models/aclmodel.spec.js.map +1 -1
- package/lib/models/coremodel.d.ts +39 -17
- package/lib/models/coremodel.js +160 -117
- package/lib/models/coremodel.js.map +1 -1
- package/lib/models/coremodel.spec.js +143 -107
- package/lib/models/coremodel.spec.js.map +1 -1
- package/lib/models/deployment.js +1 -2
- package/lib/models/ident.d.ts +3 -3
- package/lib/models/ident.js +4 -9
- package/lib/models/ident.js.map +1 -1
- package/lib/models/ident.spec.js +9 -11
- package/lib/models/ident.spec.js.map +1 -1
- package/lib/models/ownermodel.d.ts +2 -2
- package/lib/models/ownermodel.js +39 -62
- package/lib/models/ownermodel.js.map +1 -1
- package/lib/models/ownermodel.spec.js +126 -166
- package/lib/models/ownermodel.spec.js.map +1 -1
- package/lib/models/rolemodel.d.ts +2 -2
- package/lib/models/rolemodel.js +24 -40
- package/lib/models/rolemodel.js.map +1 -1
- package/lib/models/rolemodel.spec.js +44 -61
- package/lib/models/rolemodel.spec.js.map +1 -1
- package/lib/models/user.d.ts +9 -9
- package/lib/models/user.js +3 -8
- package/lib/models/user.js.map +1 -1
- package/lib/models/user.spec.js +14 -16
- package/lib/models/user.spec.js.map +1 -1
- package/lib/queues/filequeue.d.ts +2 -2
- package/lib/queues/filequeue.js +72 -93
- package/lib/queues/filequeue.js.map +1 -1
- package/lib/queues/filequeue.spec.js +53 -70
- package/lib/queues/filequeue.spec.js.map +1 -1
- package/lib/queues/memoryqueue.d.ts +2 -2
- package/lib/queues/memoryqueue.js +37 -61
- package/lib/queues/memoryqueue.js.map +1 -1
- package/lib/queues/memoryqueue.spec.js +142 -165
- package/lib/queues/memoryqueue.spec.js.map +1 -1
- package/lib/queues/pubsubservice.d.ts +2 -2
- package/lib/queues/pubsubservice.js +3 -7
- package/lib/queues/pubsubservice.js.map +1 -1
- package/lib/queues/queue.spec.d.ts +1 -1
- package/lib/queues/queue.spec.js +42 -56
- package/lib/queues/queue.spec.js.map +1 -1
- package/lib/queues/queueservice.d.ts +4 -4
- package/lib/queues/queueservice.js +52 -67
- package/lib/queues/queueservice.js.map +1 -1
- package/lib/router.d.ts +3 -3
- package/lib/router.js +46 -47
- package/lib/router.js.map +1 -1
- package/lib/router.spec.js +64 -61
- package/lib/router.spec.js.map +1 -1
- package/lib/services/asyncevents.d.ts +2 -2
- package/lib/services/asyncevents.js +44 -64
- package/lib/services/asyncevents.js.map +1 -1
- package/lib/services/asyncevents.spec.js +81 -98
- package/lib/services/asyncevents.spec.js.map +1 -1
- package/lib/services/authentication.d.ts +28 -19
- package/lib/services/authentication.js +542 -574
- package/lib/services/authentication.js.map +1 -1
- package/lib/services/authentication.spec.js +411 -447
- package/lib/services/authentication.spec.js.map +1 -1
- package/lib/services/binary.d.ts +9 -7
- package/lib/services/binary.js +213 -245
- package/lib/services/binary.js.map +1 -1
- package/lib/services/binary.spec.d.ts +3 -3
- package/lib/services/binary.spec.js +390 -443
- package/lib/services/binary.spec.js.map +1 -1
- package/lib/services/cloudbinary.d.ts +3 -3
- package/lib/services/cloudbinary.js +45 -70
- package/lib/services/cloudbinary.js.map +1 -1
- package/lib/services/cloudbinary.spec.d.ts +3 -3
- package/lib/services/cloudbinary.spec.js +133 -162
- package/lib/services/cloudbinary.spec.js.map +1 -1
- package/lib/services/configuration.d.ts +6 -3
- package/lib/services/configuration.js +78 -103
- package/lib/services/configuration.js.map +1 -1
- package/lib/services/configuration.spec.js +63 -83
- package/lib/services/configuration.spec.js.map +1 -1
- package/lib/services/cron.d.ts +3 -2
- package/lib/services/cron.js +9 -13
- package/lib/services/cron.js.map +1 -1
- package/lib/services/cron.spec.js +18 -21
- package/lib/services/cron.spec.js.map +1 -1
- package/lib/services/cryptoservice.d.ts +258 -0
- package/lib/services/cryptoservice.js +312 -0
- package/lib/services/cryptoservice.js.map +1 -0
- package/lib/services/cryptoservice.spec.d.ts +1 -0
- package/lib/services/cryptoservice.spec.js +137 -0
- package/lib/services/cryptoservice.spec.js.map +1 -0
- package/lib/services/debugmailer.d.ts +1 -1
- package/lib/services/debugmailer.js +13 -34
- package/lib/services/debugmailer.js.map +1 -1
- package/lib/services/debugmailer.spec.js +16 -29
- package/lib/services/debugmailer.spec.js.map +1 -1
- package/lib/services/echo.d.ts +2 -2
- package/lib/services/echo.js +15 -31
- package/lib/services/echo.js.map +1 -1
- package/lib/services/echo.spec.js +27 -40
- package/lib/services/echo.spec.js.map +1 -1
- package/lib/services/filebinary.d.ts +10 -5
- package/lib/services/filebinary.js +171 -205
- package/lib/services/filebinary.js.map +1 -1
- package/lib/services/filebinary.spec.d.ts +2 -1
- package/lib/services/filebinary.spec.js +106 -117
- package/lib/services/filebinary.spec.js.map +1 -1
- package/lib/services/fileconfiguration.d.ts +2 -2
- package/lib/services/fileconfiguration.js +25 -43
- package/lib/services/fileconfiguration.js.map +1 -1
- package/lib/services/fileconfiguration.spec.js +79 -109
- package/lib/services/fileconfiguration.spec.js.map +1 -1
- package/lib/services/invitationservice.d.ts +10 -10
- package/lib/services/invitationservice.js +275 -313
- package/lib/services/invitationservice.js.map +1 -1
- package/lib/services/invitationservice.spec.js +443 -449
- package/lib/services/invitationservice.spec.js.map +1 -1
- package/lib/services/kubernetesconfiguration.d.ts +2 -2
- package/lib/services/kubernetesconfiguration.js +41 -59
- package/lib/services/kubernetesconfiguration.js.map +1 -1
- package/lib/services/kubernetesconfiguration.spec.js +80 -98
- package/lib/services/kubernetesconfiguration.spec.js.map +1 -1
- package/lib/services/mailer.d.ts +4 -4
- package/lib/services/mailer.js +62 -86
- package/lib/services/mailer.js.map +1 -1
- package/lib/services/mailer.spec.js +86 -127
- package/lib/services/mailer.spec.js.map +1 -1
- package/lib/services/notificationservice.d.ts +4 -4
- package/lib/services/notificationservice.js +23 -42
- package/lib/services/notificationservice.js.map +1 -1
- package/lib/services/notificationservice.spec.js +47 -73
- package/lib/services/notificationservice.spec.js.map +1 -1
- package/lib/services/oauth.d.ts +32 -6
- package/lib/services/oauth.js +73 -78
- package/lib/services/oauth.js.map +1 -1
- package/lib/services/oauth.spec.js +128 -148
- package/lib/services/oauth.spec.js.map +1 -1
- package/lib/services/proxy.d.ts +74 -0
- package/lib/services/proxy.js +126 -0
- package/lib/services/proxy.js.map +1 -0
- package/lib/services/proxy.spec.d.ts +1 -0
- package/lib/services/proxy.spec.js +59 -0
- package/lib/services/proxy.spec.js.map +1 -0
- package/lib/services/resource.d.ts +2 -2
- package/lib/services/resource.js +12 -18
- package/lib/services/resource.js.map +1 -1
- package/lib/services/resource.spec.js +67 -99
- package/lib/services/resource.spec.js.map +1 -1
- package/lib/services/service.d.ts +29 -6
- package/lib/services/service.js +69 -39
- package/lib/services/service.js.map +1 -1
- package/lib/services/service.spec.js +62 -67
- package/lib/services/service.spec.js.map +1 -1
- package/lib/services/version.d.ts +1 -1
- package/lib/services/version.js +3 -8
- package/lib/services/version.js.map +1 -1
- package/lib/services/version.spec.js +11 -24
- package/lib/services/version.spec.js.map +1 -1
- package/lib/stores/aggregator.d.ts +3 -3
- package/lib/stores/aggregator.js +37 -57
- package/lib/stores/aggregator.js.map +1 -1
- package/lib/stores/file.d.ts +3 -3
- package/lib/stores/file.js +93 -131
- package/lib/stores/file.js.map +1 -1
- package/lib/stores/file.spec.d.ts +2 -2
- package/lib/stores/file.spec.js +262 -289
- package/lib/stores/file.spec.js.map +1 -1
- package/lib/stores/mapper.d.ts +4 -4
- package/lib/stores/mapper.js +111 -137
- package/lib/stores/mapper.js.map +1 -1
- package/lib/stores/mapper.spec.js +133 -150
- package/lib/stores/mapper.spec.js.map +1 -1
- package/lib/stores/memory.d.ts +67 -6
- package/lib/stores/memory.js +155 -117
- package/lib/stores/memory.js.map +1 -1
- package/lib/stores/memory.spec.d.ts +3 -2
- package/lib/stores/memory.spec.js +127 -105
- package/lib/stores/memory.spec.js.map +1 -1
- package/lib/stores/store.d.ts +40 -16
- package/lib/stores/store.js +847 -830
- package/lib/stores/store.js.map +1 -1
- package/lib/stores/store.spec.d.ts +6 -4
- package/lib/stores/store.spec.js +628 -647
- package/lib/stores/store.spec.js.map +1 -1
- package/lib/stores/webdaql/WebdaQLLexer.d.ts +4 -4
- package/lib/stores/webdaql/WebdaQLLexer.js +9 -13
- package/lib/stores/webdaql/WebdaQLLexer.js.map +1 -1
- package/lib/stores/webdaql/WebdaQLParserLexer.d.ts +4 -4
- package/lib/stores/webdaql/WebdaQLParserLexer.js +9 -13
- package/lib/stores/webdaql/WebdaQLParserLexer.js.map +1 -1
- package/lib/stores/webdaql/WebdaQLParserListener.d.ts +2 -2
- package/lib/stores/webdaql/WebdaQLParserListener.js +1 -2
- package/lib/stores/webdaql/WebdaQLParserListener.js.map +1 -1
- package/lib/stores/webdaql/WebdaQLParserParser.d.ts +10 -10
- package/lib/stores/webdaql/WebdaQLParserParser.js +62 -91
- package/lib/stores/webdaql/WebdaQLParserParser.js.map +1 -1
- package/lib/stores/webdaql/WebdaQLParserVisitor.d.ts +2 -2
- package/lib/stores/webdaql/WebdaQLParserVisitor.js +1 -2
- package/lib/stores/webdaql/WebdaQLParserVisitor.js.map +1 -1
- package/lib/stores/webdaql/query.d.ts +4 -5
- package/lib/stores/webdaql/query.js +16 -19
- package/lib/stores/webdaql/query.js.map +1 -1
- package/lib/stores/webdaql/query.spec.js +30 -32
- package/lib/stores/webdaql/query.spec.js.map +1 -1
- package/lib/test.d.ts +3 -3
- package/lib/test.js +74 -94
- package/lib/test.js.map +1 -1
- package/lib/unpackedapplication.d.ts +1 -1
- package/lib/unpackedapplication.js +44 -38
- package/lib/unpackedapplication.js.map +1 -1
- package/lib/utils/abstractdeployer.js +1 -5
- package/lib/utils/abstractdeployer.js.map +1 -1
- package/lib/utils/abstractdeployer.spec.js +6 -8
- package/lib/utils/abstractdeployer.spec.js.map +1 -1
- package/lib/utils/context.d.ts +61 -29
- package/lib/utils/context.js +133 -127
- package/lib/utils/context.js.map +1 -1
- package/lib/utils/context.spec.js +144 -153
- package/lib/utils/context.spec.js.map +1 -1
- package/lib/utils/cookie.d.ts +66 -45
- package/lib/utils/cookie.js +69 -158
- package/lib/utils/cookie.js.map +1 -1
- package/lib/utils/cookie.spec.js +220 -238
- package/lib/utils/cookie.spec.js.map +1 -1
- package/lib/utils/esm.d.ts +4 -0
- package/lib/utils/esm.js +10 -0
- package/lib/utils/esm.js.map +1 -0
- package/lib/utils/httpcontext.d.ts +3 -0
- package/lib/utils/httpcontext.js +48 -65
- package/lib/utils/httpcontext.js.map +1 -1
- package/lib/utils/httpcontext.spec.js +37 -56
- package/lib/utils/httpcontext.spec.js.map +1 -1
- package/lib/utils/logger.d.ts +2 -2
- package/lib/utils/logger.js +15 -28
- package/lib/utils/logger.js.map +1 -1
- package/lib/utils/logger.spec.js +9 -11
- package/lib/utils/logger.spec.js.map +1 -1
- package/lib/utils/serializers.js +17 -20
- package/lib/utils/serializers.js.map +1 -1
- package/lib/utils/serializers.spec.js +43 -44
- package/lib/utils/serializers.spec.js.map +1 -1
- package/lib/utils/session.d.ts +120 -0
- package/lib/utils/session.js +155 -0
- package/lib/utils/session.js.map +1 -0
- package/lib/utils/session.spec.d.ts +1 -0
- package/lib/utils/session.spec.js +66 -0
- package/lib/utils/session.spec.js.map +1 -0
- package/lib/utils/waiter.d.ts +1 -1
- package/lib/utils/waiter.js +32 -52
- package/lib/utils/waiter.js.map +1 -1
- package/lib/utils/waiter.spec.js +75 -92
- package/lib/utils/waiter.spec.js.map +1 -1
- package/package.json +22 -14
- package/test/config-invitation.json +1 -3
- package/test/config.json +3 -3
- package/test/config.old.json +1 -2
- package/test/moddas/annotatedservice.js +5 -5
- package/test/moddas/debugmailer.js +2 -3
- package/test/moddas/fakeservice.js +2 -3
- package/test/moddas/voidstore.js +6 -4
- package/test/models/ident.js +2 -6
- package/test/models/task.js +3 -7
- package/test/package.json +2 -1
- package/webda.module.json +895 -189
package/webda.module.json
CHANGED
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
"webda/authentication": "lib/services/authentication:Authentication",
|
|
6
6
|
"webda/configurationservice": "lib/services/configuration:default",
|
|
7
7
|
"webda/consolelogger": "lib/utils/logger:ConsoleLoggerService",
|
|
8
|
+
"webda/cookiesessionmanager": "lib/utils/session:CookieSessionManager",
|
|
8
9
|
"webda/cronservice": "lib/services/cron:CronService",
|
|
10
|
+
"webda/cryptoservice": "lib/services/cryptoservice:default",
|
|
9
11
|
"webda/debugmailer": "lib/services/debugmailer:default",
|
|
10
12
|
"webda/echoservice": "lib/services/echo:EchoService",
|
|
11
13
|
"webda/filebinary": "lib/services/filebinary:FileBinary",
|
|
@@ -21,6 +23,7 @@
|
|
|
21
23
|
"webda/memoryqueue": "lib/queues/memoryqueue:MemoryQueue",
|
|
22
24
|
"webda/memorystore": "lib/stores/memory:MemoryStore",
|
|
23
25
|
"webda/multinotificationservice": "lib/services/notificationservice:default",
|
|
26
|
+
"webda/proxyservice": "lib/services/proxy:ProxyService",
|
|
24
27
|
"webda/resourceservice": "lib/services/resource:default",
|
|
25
28
|
"webda/versionservice": "lib/services/version:VersionService"
|
|
26
29
|
},
|
|
@@ -32,7 +35,7 @@
|
|
|
32
35
|
"webda/ident": "lib/models/ident:Ident",
|
|
33
36
|
"webda/ownermodel": "lib/models/ownermodel:OwnerModel",
|
|
34
37
|
"webda/securecookie": "lib/utils/cookie:SecureCookie",
|
|
35
|
-
"webda/
|
|
38
|
+
"webda/session": "lib/utils/session:Session",
|
|
36
39
|
"webda/user": "lib/models/user:User"
|
|
37
40
|
},
|
|
38
41
|
"deployers": {},
|
|
@@ -67,118 +70,430 @@
|
|
|
67
70
|
"description": "UUID of the object"
|
|
68
71
|
}
|
|
69
72
|
},
|
|
70
|
-
"required": [
|
|
73
|
+
"required": [
|
|
74
|
+
"uuid"
|
|
75
|
+
],
|
|
71
76
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
72
77
|
"title": "OwnerModel"
|
|
73
78
|
},
|
|
74
|
-
"webda/
|
|
79
|
+
"webda/cryptoservice": {
|
|
75
80
|
"type": "object",
|
|
76
81
|
"properties": {
|
|
77
|
-
"
|
|
82
|
+
"type": {
|
|
78
83
|
"type": "string",
|
|
79
|
-
"
|
|
80
|
-
"description": "Creation date",
|
|
81
|
-
"readOnly": true
|
|
84
|
+
"description": "Type of the service"
|
|
82
85
|
},
|
|
83
|
-
"
|
|
86
|
+
"url": {
|
|
84
87
|
"type": "string",
|
|
85
|
-
"
|
|
86
|
-
"description": "Last update date",
|
|
87
|
-
"readOnly": true
|
|
88
|
+
"description": "To expose JWKS"
|
|
88
89
|
},
|
|
89
|
-
"
|
|
90
|
-
"type": "
|
|
91
|
-
"description": "
|
|
92
|
-
"readOnly": true
|
|
93
|
-
},
|
|
94
|
-
"public": {
|
|
95
|
-
"type": "boolean",
|
|
96
|
-
"description": "Define if the object is publicly readable",
|
|
97
|
-
"default": false
|
|
98
|
-
},
|
|
99
|
-
"uuid": {
|
|
100
|
-
"type": "string",
|
|
101
|
-
"description": "UUID of the object"
|
|
90
|
+
"keyActiveLifespan": {
|
|
91
|
+
"type": "number",
|
|
92
|
+
"description": "Number of hours a key should be used for encryption\n\nif auto-rotate is not set this"
|
|
102
93
|
},
|
|
103
|
-
"
|
|
104
|
-
"type": "
|
|
105
|
-
"
|
|
94
|
+
"keyLifespan": {
|
|
95
|
+
"type": "number",
|
|
96
|
+
"description": "Number of hours allowed to decrypt data encrypted with this key"
|
|
106
97
|
},
|
|
107
|
-
"
|
|
108
|
-
"type": "
|
|
98
|
+
"autoRotate": {
|
|
99
|
+
"type": "number",
|
|
100
|
+
"description": "Try to rotate keys when they expire in days"
|
|
109
101
|
},
|
|
110
|
-
"
|
|
111
|
-
"type": "
|
|
112
|
-
"
|
|
113
|
-
|
|
102
|
+
"autoCreate": {
|
|
103
|
+
"type": "boolean",
|
|
104
|
+
"description": "Create first set of key if does not exist"
|
|
105
|
+
},
|
|
106
|
+
"asymetricType": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"enum": [
|
|
109
|
+
"rsa",
|
|
110
|
+
"dsa",
|
|
111
|
+
"ec",
|
|
112
|
+
"ed25519",
|
|
113
|
+
"ed448",
|
|
114
|
+
"x25519",
|
|
115
|
+
"x448",
|
|
116
|
+
"dh"
|
|
117
|
+
],
|
|
118
|
+
"description": "Type of asymetric key\n\nhttps://nodejs.org/api/crypto.html#cryptogeneratekeypairsynctype-options https://nodejs.org/docs/latest-v14.x/api/crypto.html#crypto_crypto_generatekeypairsync_type_options"
|
|
114
119
|
},
|
|
115
|
-
"
|
|
116
|
-
"type": "
|
|
117
|
-
"
|
|
120
|
+
"asymetricOptions": {
|
|
121
|
+
"type": "object",
|
|
122
|
+
"properties": {
|
|
123
|
+
"modulusLength": {
|
|
124
|
+
"type": "number",
|
|
125
|
+
"default": 2048
|
|
126
|
+
},
|
|
127
|
+
"namedCurve": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"description": "Only if asymetricType \"ec\""
|
|
130
|
+
},
|
|
131
|
+
"publicKeyEncoding": {
|
|
132
|
+
"type": "object",
|
|
133
|
+
"properties": {
|
|
134
|
+
"type": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"enum": [
|
|
137
|
+
"spki",
|
|
138
|
+
"pkcs1"
|
|
139
|
+
],
|
|
140
|
+
"default": "spki"
|
|
141
|
+
},
|
|
142
|
+
"format": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"const": "pem"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"privateKeyEncoding": {
|
|
149
|
+
"type": "object",
|
|
150
|
+
"properties": {
|
|
151
|
+
"type": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"enum": [
|
|
154
|
+
"pkcs1",
|
|
155
|
+
"pkcs8",
|
|
156
|
+
"sec1"
|
|
157
|
+
],
|
|
158
|
+
"description": "https://nodejs.org/docs/latest-v14.x/api/crypto.html#crypto_keyobject_export_options",
|
|
159
|
+
"default": "pkcs8"
|
|
160
|
+
},
|
|
161
|
+
"format": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"const": "pem"
|
|
164
|
+
},
|
|
165
|
+
"cipher": {
|
|
166
|
+
"type": "string"
|
|
167
|
+
},
|
|
168
|
+
"passphrase": {
|
|
169
|
+
"type": "string"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"description": "Options for asymetric generation"
|
|
118
175
|
},
|
|
119
|
-
"
|
|
176
|
+
"symetricKeyLength": {
|
|
120
177
|
"type": "number",
|
|
121
|
-
"
|
|
122
|
-
"readOnly": true
|
|
178
|
+
"default": 256
|
|
123
179
|
},
|
|
124
|
-
"
|
|
180
|
+
"symetricCipher": {
|
|
125
181
|
"type": "string",
|
|
126
|
-
"
|
|
127
|
-
"description": "When the ident was validated",
|
|
128
|
-
"readOnly": true
|
|
182
|
+
"default": "aes-256-ctr"
|
|
129
183
|
},
|
|
130
|
-
"
|
|
131
|
-
"type": "
|
|
132
|
-
"
|
|
184
|
+
"jwt": {
|
|
185
|
+
"type": "object",
|
|
186
|
+
"properties": {
|
|
187
|
+
"secretOrPublicKey": {
|
|
188
|
+
"anyOf": [
|
|
189
|
+
{
|
|
190
|
+
"type": "string"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"type": "object",
|
|
194
|
+
"properties": {
|
|
195
|
+
"BYTES_PER_ELEMENT": {
|
|
196
|
+
"type": "number"
|
|
197
|
+
},
|
|
198
|
+
"buffer": {
|
|
199
|
+
"$ref": "#/definitions/ArrayBufferLike"
|
|
200
|
+
},
|
|
201
|
+
"byteLength": {
|
|
202
|
+
"type": "number"
|
|
203
|
+
},
|
|
204
|
+
"byteOffset": {
|
|
205
|
+
"type": "number"
|
|
206
|
+
},
|
|
207
|
+
"length": {
|
|
208
|
+
"type": "number"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"required": [
|
|
212
|
+
"BYTES_PER_ELEMENT",
|
|
213
|
+
"buffer",
|
|
214
|
+
"byteLength",
|
|
215
|
+
"byteOffset",
|
|
216
|
+
"length"
|
|
217
|
+
],
|
|
218
|
+
"description": "Raw data is stored in instances of the Buffer class. A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized. Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex'"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"type": "object",
|
|
222
|
+
"properties": {
|
|
223
|
+
"key": {
|
|
224
|
+
"type": "string"
|
|
225
|
+
},
|
|
226
|
+
"passphrase": {
|
|
227
|
+
"type": "string"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"required": [
|
|
231
|
+
"key",
|
|
232
|
+
"passphrase"
|
|
233
|
+
]
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"description": "Secret to use with JWT"
|
|
237
|
+
},
|
|
238
|
+
"algorithm": {
|
|
239
|
+
"type": "string",
|
|
240
|
+
"enum": [
|
|
241
|
+
"HS256",
|
|
242
|
+
"HS384",
|
|
243
|
+
"HS512",
|
|
244
|
+
"RS256",
|
|
245
|
+
"RS384",
|
|
246
|
+
"RS512",
|
|
247
|
+
"PS256",
|
|
248
|
+
"PS384",
|
|
249
|
+
"PS512",
|
|
250
|
+
"ES256",
|
|
251
|
+
"ES384",
|
|
252
|
+
"ES512"
|
|
253
|
+
],
|
|
254
|
+
"description": "Algorithm for JWT token",
|
|
255
|
+
"default": "HS256"
|
|
256
|
+
},
|
|
257
|
+
"expiresIn": {
|
|
258
|
+
"type": [
|
|
259
|
+
"number",
|
|
260
|
+
"string"
|
|
261
|
+
],
|
|
262
|
+
"description": "expressed in seconds or a string describing a time span zeit/ms.\n\nEg: 60, \"2 days\", \"10h\", \"7d\". A numeric value is interpreted as a seconds count. If you use a string be sure you provide the time units (days, hours, etc), otherwise milliseconds unit is used by default (\"120\" is equal to \"120ms\")."
|
|
263
|
+
},
|
|
264
|
+
"audience": {
|
|
265
|
+
"type": "string",
|
|
266
|
+
"description": "Audience for the jwt"
|
|
267
|
+
},
|
|
268
|
+
"issuer": {
|
|
269
|
+
"type": "string",
|
|
270
|
+
"description": "Issuer of the token"
|
|
271
|
+
},
|
|
272
|
+
"subject": {
|
|
273
|
+
"type": "string",
|
|
274
|
+
"description": "Subject for JWT"
|
|
275
|
+
},
|
|
276
|
+
"keyid": {}
|
|
277
|
+
},
|
|
278
|
+
"description": "Default JWT options"
|
|
279
|
+
},
|
|
280
|
+
"openapi": {
|
|
281
|
+
"type": "object",
|
|
282
|
+
"additionalProperties": true
|
|
133
283
|
}
|
|
134
284
|
},
|
|
135
|
-
"required": [
|
|
136
|
-
|
|
285
|
+
"required": [
|
|
286
|
+
"asymetricType",
|
|
287
|
+
"keyActiveLifespan",
|
|
288
|
+
"keyLifespan",
|
|
289
|
+
"type"
|
|
290
|
+
],
|
|
137
291
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
138
|
-
"
|
|
292
|
+
"definitions": {
|
|
293
|
+
"ArrayBufferLike": {
|
|
294
|
+
"anyOf": [
|
|
295
|
+
{
|
|
296
|
+
"type": "object",
|
|
297
|
+
"properties": {
|
|
298
|
+
"byteLength": {
|
|
299
|
+
"type": "number"
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
"required": [
|
|
303
|
+
"byteLength"
|
|
304
|
+
]
|
|
305
|
+
},
|
|
306
|
+
{}
|
|
307
|
+
]
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"title": "CryptoService"
|
|
139
311
|
},
|
|
140
|
-
"webda/
|
|
312
|
+
"webda/cookiesessionmanager": {
|
|
141
313
|
"type": "object",
|
|
142
314
|
"properties": {
|
|
143
|
-
"
|
|
144
|
-
"type": "string",
|
|
145
|
-
"format": "date-time",
|
|
146
|
-
"description": "Creation date",
|
|
147
|
-
"readOnly": true
|
|
148
|
-
},
|
|
149
|
-
"_lastUpdate": {
|
|
315
|
+
"type": {
|
|
150
316
|
"type": "string",
|
|
151
|
-
"
|
|
152
|
-
"description": "Last update date",
|
|
153
|
-
"readOnly": true
|
|
317
|
+
"description": "Type of the service"
|
|
154
318
|
},
|
|
155
|
-
"
|
|
319
|
+
"url": {
|
|
156
320
|
"type": "string",
|
|
157
|
-
"description": "
|
|
158
|
-
"readOnly": true
|
|
159
|
-
},
|
|
160
|
-
"public": {
|
|
161
|
-
"type": "boolean",
|
|
162
|
-
"description": "Define if the object is publicly readable",
|
|
163
|
-
"default": false
|
|
321
|
+
"description": "URL on which to serve the content"
|
|
164
322
|
},
|
|
165
|
-
"
|
|
166
|
-
"type": "
|
|
167
|
-
"
|
|
323
|
+
"jwt": {
|
|
324
|
+
"type": "object",
|
|
325
|
+
"properties": {
|
|
326
|
+
"secretOrPublicKey": {
|
|
327
|
+
"anyOf": [
|
|
328
|
+
{
|
|
329
|
+
"type": "string"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"type": "object",
|
|
333
|
+
"properties": {
|
|
334
|
+
"BYTES_PER_ELEMENT": {
|
|
335
|
+
"type": "number"
|
|
336
|
+
},
|
|
337
|
+
"buffer": {
|
|
338
|
+
"$ref": "#/definitions/ArrayBufferLike"
|
|
339
|
+
},
|
|
340
|
+
"byteLength": {
|
|
341
|
+
"type": "number"
|
|
342
|
+
},
|
|
343
|
+
"byteOffset": {
|
|
344
|
+
"type": "number"
|
|
345
|
+
},
|
|
346
|
+
"length": {
|
|
347
|
+
"type": "number"
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
"required": [
|
|
351
|
+
"BYTES_PER_ELEMENT",
|
|
352
|
+
"buffer",
|
|
353
|
+
"byteLength",
|
|
354
|
+
"byteOffset",
|
|
355
|
+
"length"
|
|
356
|
+
],
|
|
357
|
+
"description": "Raw data is stored in instances of the Buffer class. A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized. Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex'"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"type": "object",
|
|
361
|
+
"properties": {
|
|
362
|
+
"key": {
|
|
363
|
+
"type": "string"
|
|
364
|
+
},
|
|
365
|
+
"passphrase": {
|
|
366
|
+
"type": "string"
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
"required": [
|
|
370
|
+
"key",
|
|
371
|
+
"passphrase"
|
|
372
|
+
]
|
|
373
|
+
}
|
|
374
|
+
],
|
|
375
|
+
"description": "Secret to use with JWT"
|
|
376
|
+
},
|
|
377
|
+
"algorithm": {
|
|
378
|
+
"type": "string",
|
|
379
|
+
"enum": [
|
|
380
|
+
"HS256",
|
|
381
|
+
"HS384",
|
|
382
|
+
"HS512",
|
|
383
|
+
"RS256",
|
|
384
|
+
"RS384",
|
|
385
|
+
"RS512",
|
|
386
|
+
"PS256",
|
|
387
|
+
"PS384",
|
|
388
|
+
"PS512",
|
|
389
|
+
"ES256",
|
|
390
|
+
"ES384",
|
|
391
|
+
"ES512"
|
|
392
|
+
],
|
|
393
|
+
"description": "Algorithm for JWT token",
|
|
394
|
+
"default": "HS256"
|
|
395
|
+
},
|
|
396
|
+
"expiresIn": {
|
|
397
|
+
"type": [
|
|
398
|
+
"number",
|
|
399
|
+
"string"
|
|
400
|
+
],
|
|
401
|
+
"description": "expressed in seconds or a string describing a time span zeit/ms.\n\nEg: 60, \"2 days\", \"10h\", \"7d\". A numeric value is interpreted as a seconds count. If you use a string be sure you provide the time units (days, hours, etc), otherwise milliseconds unit is used by default (\"120\" is equal to \"120ms\")."
|
|
402
|
+
},
|
|
403
|
+
"audience": {
|
|
404
|
+
"type": "string",
|
|
405
|
+
"description": "Audience for the jwt"
|
|
406
|
+
},
|
|
407
|
+
"issuer": {
|
|
408
|
+
"type": "string",
|
|
409
|
+
"description": "Issuer of the token"
|
|
410
|
+
},
|
|
411
|
+
"subject": {
|
|
412
|
+
"type": "string",
|
|
413
|
+
"description": "Subject for JWT"
|
|
414
|
+
},
|
|
415
|
+
"keyid": {}
|
|
416
|
+
},
|
|
417
|
+
"description": "Options for issue JWT token"
|
|
168
418
|
},
|
|
169
|
-
"
|
|
170
|
-
"type": "
|
|
171
|
-
"
|
|
419
|
+
"cookie": {
|
|
420
|
+
"type": "object",
|
|
421
|
+
"properties": {
|
|
422
|
+
"domain": {
|
|
423
|
+
"type": "string",
|
|
424
|
+
"description": "Specifies the value for the {@link https://tools.ietf.org/html/rfc6265#section-5.2.3|Domain Set-Cookie attribute } . By default, no domain is set, and most clients will consider the cookie to apply to only the current domain.",
|
|
425
|
+
"default": "to request hostname"
|
|
426
|
+
},
|
|
427
|
+
"expires": {
|
|
428
|
+
"type": "string",
|
|
429
|
+
"format": "date-time",
|
|
430
|
+
"description": "Specifies the `Date` object to be the value for the {@link https://tools.ietf.org/html/rfc6265#section-5.2.1|`Expires` `Set-Cookie` attribute } . By default, no expiration is set, and most clients will consider this a \"non-persistent cookie\" and will delete it on a condition like exiting a web browser application.\n\n*Note* the {@link https://tools.ietf.org/html/rfc6265#section-5.3|cookie storage model specification } \nstates that if both `expires` and `maxAge` are set, then `maxAge` takes precedence, but it is possible not all clients by obey this, so if both are set, they should point to the same date and time."
|
|
431
|
+
},
|
|
432
|
+
"httpOnly": {
|
|
433
|
+
"type": "boolean",
|
|
434
|
+
"description": "Specifies the boolean value for the {@link https://tools.ietf.org/html/rfc6265#section-5.2.6|`HttpOnly` `Set-Cookie` attribute } . When truthy, the `HttpOnly` attribute is set, otherwise it is not. By default, the `HttpOnly` attribute is not set.\n\n*Note* be careful when setting this to true, as compliant clients will not allow client-side JavaScript to see the cookie in `document.cookie`.",
|
|
435
|
+
"default": true
|
|
436
|
+
},
|
|
437
|
+
"maxAge": {
|
|
438
|
+
"type": "number",
|
|
439
|
+
"description": "Specifies the number (in seconds) to be the value for the `Max-Age` `Set-Cookie` attribute. The given number will be converted to an integer by rounding down. By default, no maximum age is set.\n\n*Note* the {@link https://tools.ietf.org/html/rfc6265#section-5.3|cookie storage model specification } \nstates that if both `expires` and `maxAge` are set, then `maxAge` takes precedence, but it is possible not all clients by obey this, so if both are set, they should point to the same date and time.",
|
|
440
|
+
"minimum": 1,
|
|
441
|
+
"default": "86400 * 7"
|
|
442
|
+
},
|
|
443
|
+
"path": {
|
|
444
|
+
"type": "string",
|
|
445
|
+
"description": "Specifies the value for the {@link https://tools.ietf.org/html/rfc6265#section-5.2.4|`Path` `Set-Cookie` attribute } . By default, the path is considered the \"default path\".",
|
|
446
|
+
"default": "/"
|
|
447
|
+
},
|
|
448
|
+
"sameSite": {
|
|
449
|
+
"type": "string",
|
|
450
|
+
"enum": [
|
|
451
|
+
"none",
|
|
452
|
+
"strict",
|
|
453
|
+
"lax"
|
|
454
|
+
],
|
|
455
|
+
"description": "Specifies the boolean or string to be the value for the {@link https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-03#section-4.1.2.7|`SameSite` `Set-Cookie` attribute } .\n\n- `true` will set the `SameSite` attribute to `Strict` for strict same site enforcement.\n- `false` will not set the `SameSite` attribute.\n- `'lax'` will set the `SameSite` attribute to Lax for lax same site enforcement.\n- `'strict'` will set the `SameSite` attribute to Strict for strict same site enforcement. - `'none'` will set the SameSite attribute to None for an explicit cross-site cookie.\n\nMore information about the different enforcement levels can be found in {@link https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-03#section-4.1.2.7|the specification } .\n\n*note* This is an attribute that has not yet been fully standardized, and may change in the future. This also means many clients may ignore this attribute until they understand it.",
|
|
456
|
+
"default": "lax"
|
|
457
|
+
},
|
|
458
|
+
"secure": {
|
|
459
|
+
"type": "boolean",
|
|
460
|
+
"description": "If not set will be true if https request and false otherwise If defined it will be set to the value"
|
|
461
|
+
},
|
|
462
|
+
"name": {
|
|
463
|
+
"type": "string",
|
|
464
|
+
"description": "Name of the cookie"
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
"description": "Cookie configuration for session"
|
|
172
468
|
},
|
|
173
|
-
"
|
|
174
|
-
"type": "
|
|
175
|
-
"
|
|
469
|
+
"openapi": {
|
|
470
|
+
"type": "object",
|
|
471
|
+
"additionalProperties": true
|
|
176
472
|
}
|
|
177
473
|
},
|
|
178
|
-
"required": [
|
|
179
|
-
|
|
474
|
+
"required": [
|
|
475
|
+
"type"
|
|
476
|
+
],
|
|
180
477
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
181
|
-
"
|
|
478
|
+
"definitions": {
|
|
479
|
+
"ArrayBufferLike": {
|
|
480
|
+
"anyOf": [
|
|
481
|
+
{
|
|
482
|
+
"type": "object",
|
|
483
|
+
"properties": {
|
|
484
|
+
"byteLength": {
|
|
485
|
+
"type": "number"
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
"required": [
|
|
489
|
+
"byteLength"
|
|
490
|
+
]
|
|
491
|
+
},
|
|
492
|
+
{}
|
|
493
|
+
]
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
"title": "CookieSessionManager"
|
|
182
497
|
},
|
|
183
498
|
"webda/asyncevents": {
|
|
184
499
|
"type": "object",
|
|
@@ -187,6 +502,10 @@
|
|
|
187
502
|
"type": "string",
|
|
188
503
|
"description": "Type of the service"
|
|
189
504
|
},
|
|
505
|
+
"url": {
|
|
506
|
+
"type": "string",
|
|
507
|
+
"description": "URL on which to serve the content"
|
|
508
|
+
},
|
|
190
509
|
"queues": {
|
|
191
510
|
"type": "object",
|
|
192
511
|
"additionalProperties": {
|
|
@@ -197,9 +516,15 @@
|
|
|
197
516
|
"sync": {
|
|
198
517
|
"type": "boolean",
|
|
199
518
|
"description": "Make the event sending asynchronous"
|
|
519
|
+
},
|
|
520
|
+
"openapi": {
|
|
521
|
+
"type": "object",
|
|
522
|
+
"additionalProperties": true
|
|
200
523
|
}
|
|
201
524
|
},
|
|
202
|
-
"required": [
|
|
525
|
+
"required": [
|
|
526
|
+
"type"
|
|
527
|
+
],
|
|
203
528
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
204
529
|
"title": "AsyncEvents"
|
|
205
530
|
},
|
|
@@ -219,7 +544,6 @@
|
|
|
219
544
|
"readOnly": true
|
|
220
545
|
}
|
|
221
546
|
},
|
|
222
|
-
"required": [],
|
|
223
547
|
"description": "Basic Object in Webda\n\nIt is used to define a data stored Any variable starting with _ can only be set by the server Any variable starting with __ won't be exported outside of the server",
|
|
224
548
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
225
549
|
"title": "CoreModel"
|
|
@@ -245,7 +569,6 @@
|
|
|
245
569
|
"readOnly": true
|
|
246
570
|
}
|
|
247
571
|
},
|
|
248
|
-
"required": [],
|
|
249
572
|
"description": "Object that contains ACL to define its own permissions",
|
|
250
573
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
251
574
|
"title": "AclModel"
|
|
@@ -257,8 +580,26 @@
|
|
|
257
580
|
"type": "string",
|
|
258
581
|
"description": "Type of the service"
|
|
259
582
|
},
|
|
583
|
+
"url": {
|
|
584
|
+
"type": "string",
|
|
585
|
+
"description": "URL on which to serve the content"
|
|
586
|
+
},
|
|
260
587
|
"workerDelayer": {
|
|
261
|
-
"
|
|
588
|
+
"type": "object",
|
|
589
|
+
"properties": {
|
|
590
|
+
"interval": {
|
|
591
|
+
"type": "number",
|
|
592
|
+
"description": "Interval"
|
|
593
|
+
},
|
|
594
|
+
"type": {
|
|
595
|
+
"type": "string",
|
|
596
|
+
"description": "Type of delayer registered in WaitDelayerFactoryRegistry"
|
|
597
|
+
}
|
|
598
|
+
},
|
|
599
|
+
"required": [
|
|
600
|
+
"interval",
|
|
601
|
+
"type"
|
|
602
|
+
],
|
|
262
603
|
"description": "Delayer between two failed attempts to process messages"
|
|
263
604
|
},
|
|
264
605
|
"workerParallelism": {
|
|
@@ -279,12 +620,32 @@
|
|
|
279
620
|
"folder": {
|
|
280
621
|
"type": "string",
|
|
281
622
|
"description": "Where to store the queue"
|
|
623
|
+
},
|
|
624
|
+
"openapi": {
|
|
625
|
+
"type": "object",
|
|
626
|
+
"additionalProperties": true
|
|
282
627
|
}
|
|
283
628
|
},
|
|
284
|
-
"required": [
|
|
629
|
+
"required": [
|
|
630
|
+
"folder",
|
|
631
|
+
"maxConsumers",
|
|
632
|
+
"type"
|
|
633
|
+
],
|
|
285
634
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
286
|
-
"
|
|
287
|
-
|
|
635
|
+
"title": "FileQueue"
|
|
636
|
+
},
|
|
637
|
+
"webda/memoryqueue": {
|
|
638
|
+
"type": "object",
|
|
639
|
+
"properties": {
|
|
640
|
+
"type": {
|
|
641
|
+
"type": "string",
|
|
642
|
+
"description": "Type of the service"
|
|
643
|
+
},
|
|
644
|
+
"url": {
|
|
645
|
+
"type": "string",
|
|
646
|
+
"description": "URL on which to serve the content"
|
|
647
|
+
},
|
|
648
|
+
"workerDelayer": {
|
|
288
649
|
"type": "object",
|
|
289
650
|
"properties": {
|
|
290
651
|
"interval": {
|
|
@@ -296,21 +657,10 @@
|
|
|
296
657
|
"description": "Type of delayer registered in WaitDelayerFactoryRegistry"
|
|
297
658
|
}
|
|
298
659
|
},
|
|
299
|
-
"required": [
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
"title": "FileQueue"
|
|
304
|
-
},
|
|
305
|
-
"webda/memoryqueue": {
|
|
306
|
-
"type": "object",
|
|
307
|
-
"properties": {
|
|
308
|
-
"type": {
|
|
309
|
-
"type": "string",
|
|
310
|
-
"description": "Type of the service"
|
|
311
|
-
},
|
|
312
|
-
"workerDelayer": {
|
|
313
|
-
"$ref": "#/definitions/WaitDelayerDefinition",
|
|
660
|
+
"required": [
|
|
661
|
+
"interval",
|
|
662
|
+
"type"
|
|
663
|
+
],
|
|
314
664
|
"description": "Delayer between two failed attempts to process messages"
|
|
315
665
|
},
|
|
316
666
|
"workerParallelism": {
|
|
@@ -327,27 +677,17 @@
|
|
|
327
677
|
"type": "number",
|
|
328
678
|
"description": "Number of seconds before droping message",
|
|
329
679
|
"default": 30
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
"required": ["maxConsumers", "type"],
|
|
333
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
334
|
-
"definitions": {
|
|
335
|
-
"WaitDelayerDefinition": {
|
|
680
|
+
},
|
|
681
|
+
"openapi": {
|
|
336
682
|
"type": "object",
|
|
337
|
-
"
|
|
338
|
-
"interval": {
|
|
339
|
-
"type": "number",
|
|
340
|
-
"description": "Interval"
|
|
341
|
-
},
|
|
342
|
-
"type": {
|
|
343
|
-
"type": "string",
|
|
344
|
-
"description": "Type of delayer registered in WaitDelayerFactoryRegistry"
|
|
345
|
-
}
|
|
346
|
-
},
|
|
347
|
-
"required": ["interval", "type"],
|
|
348
|
-
"description": "WaitDelayer definition"
|
|
683
|
+
"additionalProperties": true
|
|
349
684
|
}
|
|
350
685
|
},
|
|
686
|
+
"required": [
|
|
687
|
+
"maxConsumers",
|
|
688
|
+
"type"
|
|
689
|
+
],
|
|
690
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
351
691
|
"title": "MemoryQueue"
|
|
352
692
|
},
|
|
353
693
|
"webda/multinotificationservice": {
|
|
@@ -357,6 +697,10 @@
|
|
|
357
697
|
"type": "string",
|
|
358
698
|
"description": "Type of the service"
|
|
359
699
|
},
|
|
700
|
+
"url": {
|
|
701
|
+
"type": "string",
|
|
702
|
+
"description": "URL on which to serve the content"
|
|
703
|
+
},
|
|
360
704
|
"senders": {
|
|
361
705
|
"type": "array",
|
|
362
706
|
"items": {
|
|
@@ -368,9 +712,16 @@
|
|
|
368
712
|
"type": "boolean",
|
|
369
713
|
"description": "Define if it sends one or several notification per user",
|
|
370
714
|
"default": false
|
|
715
|
+
},
|
|
716
|
+
"openapi": {
|
|
717
|
+
"type": "object",
|
|
718
|
+
"additionalProperties": true
|
|
371
719
|
}
|
|
372
720
|
},
|
|
373
|
-
"required": [
|
|
721
|
+
"required": [
|
|
722
|
+
"senders",
|
|
723
|
+
"type"
|
|
724
|
+
],
|
|
374
725
|
"description": "Parameters for multi notification service",
|
|
375
726
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
376
727
|
"title": "MultiNotificationService"
|
|
@@ -382,6 +733,10 @@
|
|
|
382
733
|
"type": "string",
|
|
383
734
|
"description": "Type of the service"
|
|
384
735
|
},
|
|
736
|
+
"url": {
|
|
737
|
+
"type": "string",
|
|
738
|
+
"description": "URL on which to serve the content"
|
|
739
|
+
},
|
|
385
740
|
"templates": {
|
|
386
741
|
"type": "string",
|
|
387
742
|
"description": "Specify which foldeer contains templates",
|
|
@@ -403,9 +758,17 @@
|
|
|
403
758
|
},
|
|
404
759
|
"SES": {
|
|
405
760
|
"description": "SES AWS Bean if transport === \"ses\""
|
|
761
|
+
},
|
|
762
|
+
"openapi": {
|
|
763
|
+
"type": "object",
|
|
764
|
+
"additionalProperties": true
|
|
406
765
|
}
|
|
407
766
|
},
|
|
408
|
-
"required": [
|
|
767
|
+
"required": [
|
|
768
|
+
"SES",
|
|
769
|
+
"sender",
|
|
770
|
+
"type"
|
|
771
|
+
],
|
|
409
772
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
410
773
|
"title": "Mailer"
|
|
411
774
|
},
|
|
@@ -416,6 +779,11 @@
|
|
|
416
779
|
"type": "string",
|
|
417
780
|
"description": "Type of the service"
|
|
418
781
|
},
|
|
782
|
+
"url": {
|
|
783
|
+
"type": "string",
|
|
784
|
+
"description": "URL on which to serve the content",
|
|
785
|
+
"default": "/auth"
|
|
786
|
+
},
|
|
419
787
|
"identStore": {
|
|
420
788
|
"type": "string",
|
|
421
789
|
"description": "Idents store for authentication identifiers",
|
|
@@ -426,10 +794,6 @@
|
|
|
426
794
|
"description": "User store for authentication users",
|
|
427
795
|
"default": "users"
|
|
428
796
|
},
|
|
429
|
-
"url": {
|
|
430
|
-
"type": "string",
|
|
431
|
-
"default": "/auth"
|
|
432
|
-
},
|
|
433
797
|
"email": {
|
|
434
798
|
"type": "object",
|
|
435
799
|
"properties": {
|
|
@@ -456,7 +820,12 @@
|
|
|
456
820
|
"default": 3
|
|
457
821
|
}
|
|
458
822
|
},
|
|
459
|
-
"required": [
|
|
823
|
+
"required": [
|
|
824
|
+
"postValidation",
|
|
825
|
+
"skipEmailValidation",
|
|
826
|
+
"delay",
|
|
827
|
+
"failedLoginBeforeDelay"
|
|
828
|
+
],
|
|
460
829
|
"description": "Enable the email authentication"
|
|
461
830
|
},
|
|
462
831
|
"password": {
|
|
@@ -488,9 +857,20 @@
|
|
|
488
857
|
"registerRedirect": {
|
|
489
858
|
"type": "string",
|
|
490
859
|
"description": "Redirect to this page once email is validate to finish the registration process"
|
|
860
|
+
},
|
|
861
|
+
"openapi": {
|
|
862
|
+
"type": "object",
|
|
863
|
+
"additionalProperties": true
|
|
491
864
|
}
|
|
492
865
|
},
|
|
493
|
-
"required": [
|
|
866
|
+
"required": [
|
|
867
|
+
"failureRedirect",
|
|
868
|
+
"password",
|
|
869
|
+
"registerRedirect",
|
|
870
|
+
"salt",
|
|
871
|
+
"successRedirect",
|
|
872
|
+
"type"
|
|
873
|
+
],
|
|
494
874
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
495
875
|
"title": "Authentication"
|
|
496
876
|
},
|
|
@@ -501,6 +881,10 @@
|
|
|
501
881
|
"type": "string",
|
|
502
882
|
"description": "Type of the service"
|
|
503
883
|
},
|
|
884
|
+
"url": {
|
|
885
|
+
"type": "string",
|
|
886
|
+
"description": "URL on which to serve the content"
|
|
887
|
+
},
|
|
504
888
|
"checkInterval": {
|
|
505
889
|
"type": "number",
|
|
506
890
|
"description": "Check configuration every {checkInterval} seconds"
|
|
@@ -511,9 +895,17 @@
|
|
|
511
895
|
},
|
|
512
896
|
"default": {
|
|
513
897
|
"description": "Default configuration to use"
|
|
898
|
+
},
|
|
899
|
+
"openapi": {
|
|
900
|
+
"type": "object",
|
|
901
|
+
"additionalProperties": true
|
|
514
902
|
}
|
|
515
903
|
},
|
|
516
|
-
"required": [
|
|
904
|
+
"required": [
|
|
905
|
+
"default",
|
|
906
|
+
"source",
|
|
907
|
+
"type"
|
|
908
|
+
],
|
|
517
909
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
518
910
|
"title": "ConfigurationService"
|
|
519
911
|
},
|
|
@@ -523,12 +915,22 @@
|
|
|
523
915
|
"type": {
|
|
524
916
|
"type": "string",
|
|
525
917
|
"description": "Type of the service"
|
|
918
|
+
},
|
|
919
|
+
"url": {
|
|
920
|
+
"type": "string",
|
|
921
|
+
"description": "URL on which to serve the content"
|
|
922
|
+
},
|
|
923
|
+
"openapi": {
|
|
924
|
+
"type": "object",
|
|
925
|
+
"additionalProperties": true
|
|
526
926
|
}
|
|
527
927
|
},
|
|
528
|
-
"required": [
|
|
928
|
+
"required": [
|
|
929
|
+
"type"
|
|
930
|
+
],
|
|
529
931
|
"description": "Interface to specify the Service parameters",
|
|
530
932
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
531
|
-
"title": "
|
|
933
|
+
"title": "CronService"
|
|
532
934
|
},
|
|
533
935
|
"webda/debugmailer": {
|
|
534
936
|
"type": "object",
|
|
@@ -536,9 +938,19 @@
|
|
|
536
938
|
"type": {
|
|
537
939
|
"type": "string",
|
|
538
940
|
"description": "Type of the service"
|
|
941
|
+
},
|
|
942
|
+
"url": {
|
|
943
|
+
"type": "string",
|
|
944
|
+
"description": "URL on which to serve the content"
|
|
945
|
+
},
|
|
946
|
+
"openapi": {
|
|
947
|
+
"type": "object",
|
|
948
|
+
"additionalProperties": true
|
|
539
949
|
}
|
|
540
950
|
},
|
|
541
|
-
"required": [
|
|
951
|
+
"required": [
|
|
952
|
+
"type"
|
|
953
|
+
],
|
|
542
954
|
"description": "Interface to specify the Service parameters",
|
|
543
955
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
544
956
|
"title": "DebugMailer"
|
|
@@ -549,10 +961,34 @@
|
|
|
549
961
|
"type": {
|
|
550
962
|
"type": "string",
|
|
551
963
|
"description": "Type of the service"
|
|
964
|
+
},
|
|
965
|
+
"url": {
|
|
966
|
+
"type": "string",
|
|
967
|
+
"description": "Url to expose the service"
|
|
968
|
+
},
|
|
969
|
+
"mime": {
|
|
970
|
+
"type": "string",
|
|
971
|
+
"description": "Mime of the result"
|
|
972
|
+
},
|
|
973
|
+
"result": {
|
|
974
|
+
"anyOf": [
|
|
975
|
+
{
|
|
976
|
+
"type": "string"
|
|
977
|
+
},
|
|
978
|
+
{}
|
|
979
|
+
],
|
|
980
|
+
"description": "result to write on the url"
|
|
981
|
+
},
|
|
982
|
+
"openapi": {
|
|
983
|
+
"type": "object",
|
|
984
|
+
"additionalProperties": true
|
|
552
985
|
}
|
|
553
986
|
},
|
|
554
|
-
"required": [
|
|
555
|
-
|
|
987
|
+
"required": [
|
|
988
|
+
"result",
|
|
989
|
+
"type",
|
|
990
|
+
"url"
|
|
991
|
+
],
|
|
556
992
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
557
993
|
"title": "EchoService"
|
|
558
994
|
},
|
|
@@ -563,6 +999,10 @@
|
|
|
563
999
|
"type": "string",
|
|
564
1000
|
"description": "Type of the service"
|
|
565
1001
|
},
|
|
1002
|
+
"url": {
|
|
1003
|
+
"type": "string",
|
|
1004
|
+
"description": "URL on which to serve the content"
|
|
1005
|
+
},
|
|
566
1006
|
"map": {
|
|
567
1007
|
"type": "object",
|
|
568
1008
|
"additionalProperties": {
|
|
@@ -603,15 +1043,33 @@
|
|
|
603
1043
|
"description": "Restrict some APIs"
|
|
604
1044
|
}
|
|
605
1045
|
},
|
|
606
|
-
"required": [
|
|
1046
|
+
"required": [
|
|
1047
|
+
"url"
|
|
1048
|
+
],
|
|
607
1049
|
"description": "Expose the service to http"
|
|
608
1050
|
},
|
|
1051
|
+
"prefix": {
|
|
1052
|
+
"type": "string"
|
|
1053
|
+
},
|
|
609
1054
|
"folder": {
|
|
610
1055
|
"type": "string",
|
|
611
1056
|
"description": "Define the folder to store objects in"
|
|
1057
|
+
},
|
|
1058
|
+
"maxSize": {
|
|
1059
|
+
"type": "number",
|
|
1060
|
+
"description": "Maximum size to handle",
|
|
1061
|
+
"default": "10Mb"
|
|
1062
|
+
},
|
|
1063
|
+
"openapi": {
|
|
1064
|
+
"type": "object",
|
|
1065
|
+
"additionalProperties": true
|
|
612
1066
|
}
|
|
613
1067
|
},
|
|
614
|
-
"required": [
|
|
1068
|
+
"required": [
|
|
1069
|
+
"folder",
|
|
1070
|
+
"map",
|
|
1071
|
+
"type"
|
|
1072
|
+
],
|
|
615
1073
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
616
1074
|
"title": "FileBinary"
|
|
617
1075
|
},
|
|
@@ -622,6 +1080,10 @@
|
|
|
622
1080
|
"type": "string",
|
|
623
1081
|
"description": "Type of the service"
|
|
624
1082
|
},
|
|
1083
|
+
"url": {
|
|
1084
|
+
"type": "string",
|
|
1085
|
+
"description": "URL on which to serve the content"
|
|
1086
|
+
},
|
|
625
1087
|
"checkInterval": {
|
|
626
1088
|
"type": "number",
|
|
627
1089
|
"description": "Check configuration every {checkInterval} seconds"
|
|
@@ -632,9 +1094,17 @@
|
|
|
632
1094
|
},
|
|
633
1095
|
"default": {
|
|
634
1096
|
"description": "Default configuration to use"
|
|
1097
|
+
},
|
|
1098
|
+
"openapi": {
|
|
1099
|
+
"type": "object",
|
|
1100
|
+
"additionalProperties": true
|
|
635
1101
|
}
|
|
636
1102
|
},
|
|
637
|
-
"required": [
|
|
1103
|
+
"required": [
|
|
1104
|
+
"default",
|
|
1105
|
+
"source",
|
|
1106
|
+
"type"
|
|
1107
|
+
],
|
|
638
1108
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
639
1109
|
"title": "FileConfiguration"
|
|
640
1110
|
},
|
|
@@ -645,6 +1115,10 @@
|
|
|
645
1115
|
"type": "string",
|
|
646
1116
|
"description": "Type of the service"
|
|
647
1117
|
},
|
|
1118
|
+
"url": {
|
|
1119
|
+
"type": "string",
|
|
1120
|
+
"description": "URL on which to serve the content"
|
|
1121
|
+
},
|
|
648
1122
|
"authenticationService": {
|
|
649
1123
|
"type": "string",
|
|
650
1124
|
"description": "Name of the bean to use for Authentication",
|
|
@@ -693,6 +1167,10 @@
|
|
|
693
1167
|
"notification": {
|
|
694
1168
|
"type": "string",
|
|
695
1169
|
"description": "Email template to send to the user"
|
|
1170
|
+
},
|
|
1171
|
+
"openapi": {
|
|
1172
|
+
"type": "object",
|
|
1173
|
+
"additionalProperties": true
|
|
696
1174
|
}
|
|
697
1175
|
},
|
|
698
1176
|
"required": [
|
|
@@ -717,6 +1195,10 @@
|
|
|
717
1195
|
"type": "string",
|
|
718
1196
|
"description": "Type of the service"
|
|
719
1197
|
},
|
|
1198
|
+
"url": {
|
|
1199
|
+
"type": "string",
|
|
1200
|
+
"description": "URL on which to serve the content"
|
|
1201
|
+
},
|
|
720
1202
|
"checkInterval": {
|
|
721
1203
|
"type": "number",
|
|
722
1204
|
"description": "Check configuration every {checkInterval} seconds"
|
|
@@ -727,12 +1209,53 @@
|
|
|
727
1209
|
},
|
|
728
1210
|
"default": {
|
|
729
1211
|
"description": "Default configuration to use"
|
|
1212
|
+
},
|
|
1213
|
+
"openapi": {
|
|
1214
|
+
"type": "object",
|
|
1215
|
+
"additionalProperties": true
|
|
730
1216
|
}
|
|
731
1217
|
},
|
|
732
|
-
"required": [
|
|
1218
|
+
"required": [
|
|
1219
|
+
"default",
|
|
1220
|
+
"source",
|
|
1221
|
+
"type"
|
|
1222
|
+
],
|
|
733
1223
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
734
1224
|
"title": "KubernetesConfigurationService"
|
|
735
1225
|
},
|
|
1226
|
+
"webda/proxyservice": {
|
|
1227
|
+
"type": "object",
|
|
1228
|
+
"properties": {
|
|
1229
|
+
"type": {
|
|
1230
|
+
"type": "string",
|
|
1231
|
+
"description": "Type of the service"
|
|
1232
|
+
},
|
|
1233
|
+
"url": {
|
|
1234
|
+
"type": "string",
|
|
1235
|
+
"description": "URL to expose"
|
|
1236
|
+
},
|
|
1237
|
+
"backend": {
|
|
1238
|
+
"type": "string",
|
|
1239
|
+
"description": "URL to proxy to"
|
|
1240
|
+
},
|
|
1241
|
+
"requireAuthentication": {
|
|
1242
|
+
"type": "boolean",
|
|
1243
|
+
"description": "Helper to refuse any request if user is not auth"
|
|
1244
|
+
},
|
|
1245
|
+
"openapi": {
|
|
1246
|
+
"type": "object",
|
|
1247
|
+
"additionalProperties": true
|
|
1248
|
+
}
|
|
1249
|
+
},
|
|
1250
|
+
"required": [
|
|
1251
|
+
"backend",
|
|
1252
|
+
"requireAuthentication",
|
|
1253
|
+
"type"
|
|
1254
|
+
],
|
|
1255
|
+
"description": "Proxy to a backend service",
|
|
1256
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1257
|
+
"title": "ProxyService"
|
|
1258
|
+
},
|
|
736
1259
|
"webda/resourceservice": {
|
|
737
1260
|
"type": "object",
|
|
738
1261
|
"properties": {
|
|
@@ -754,9 +1277,25 @@
|
|
|
754
1277
|
"type": "boolean",
|
|
755
1278
|
"description": "Add the / root to redirect to /{url}",
|
|
756
1279
|
"default": false
|
|
1280
|
+
},
|
|
1281
|
+
"index": {
|
|
1282
|
+
"type": "string",
|
|
1283
|
+
"description": "Index file",
|
|
1284
|
+
"default": "index.html"
|
|
1285
|
+
},
|
|
1286
|
+
"indexFallback": {
|
|
1287
|
+
"type": "boolean",
|
|
1288
|
+
"description": "Return the index file for any unfound resource Useful for single page application",
|
|
1289
|
+
"default": true
|
|
1290
|
+
},
|
|
1291
|
+
"openapi": {
|
|
1292
|
+
"type": "object",
|
|
1293
|
+
"additionalProperties": true
|
|
757
1294
|
}
|
|
758
1295
|
},
|
|
759
|
-
"required": [
|
|
1296
|
+
"required": [
|
|
1297
|
+
"type"
|
|
1298
|
+
],
|
|
760
1299
|
"description": "ResourceService parameters",
|
|
761
1300
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
762
1301
|
"title": "ResourceService"
|
|
@@ -768,16 +1307,23 @@
|
|
|
768
1307
|
"type": "string",
|
|
769
1308
|
"description": "Type of the service"
|
|
770
1309
|
},
|
|
1310
|
+
"url": {
|
|
1311
|
+
"type": "string",
|
|
1312
|
+
"description": "URL on which to serve the content",
|
|
1313
|
+
"default": "/version"
|
|
1314
|
+
},
|
|
771
1315
|
"version": {
|
|
772
1316
|
"type": "string",
|
|
773
1317
|
"description": "To force version otherwise would read from package.json"
|
|
774
1318
|
},
|
|
775
|
-
"
|
|
776
|
-
"type": "
|
|
777
|
-
"
|
|
1319
|
+
"openapi": {
|
|
1320
|
+
"type": "object",
|
|
1321
|
+
"additionalProperties": true
|
|
778
1322
|
}
|
|
779
1323
|
},
|
|
780
|
-
"required": [
|
|
1324
|
+
"required": [
|
|
1325
|
+
"type"
|
|
1326
|
+
],
|
|
781
1327
|
"description": "Version parameters",
|
|
782
1328
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
783
1329
|
"title": "VersionService"
|
|
@@ -789,6 +1335,10 @@
|
|
|
789
1335
|
"type": "string",
|
|
790
1336
|
"description": "Type of the service"
|
|
791
1337
|
},
|
|
1338
|
+
"url": {
|
|
1339
|
+
"type": "string",
|
|
1340
|
+
"description": "URL on which to serve the content"
|
|
1341
|
+
},
|
|
792
1342
|
"fields": {
|
|
793
1343
|
"type": "array",
|
|
794
1344
|
"items": {
|
|
@@ -820,9 +1370,22 @@
|
|
|
820
1370
|
"cascade": {
|
|
821
1371
|
"type": "boolean",
|
|
822
1372
|
"description": "Delete source if target object is deleted"
|
|
1373
|
+
},
|
|
1374
|
+
"openapi": {
|
|
1375
|
+
"type": "object",
|
|
1376
|
+
"additionalProperties": true
|
|
823
1377
|
}
|
|
824
1378
|
},
|
|
825
|
-
"required": [
|
|
1379
|
+
"required": [
|
|
1380
|
+
"async",
|
|
1381
|
+
"attribute",
|
|
1382
|
+
"cascade",
|
|
1383
|
+
"fields",
|
|
1384
|
+
"source",
|
|
1385
|
+
"target",
|
|
1386
|
+
"targetAttribute",
|
|
1387
|
+
"type"
|
|
1388
|
+
],
|
|
826
1389
|
"description": "Mapper configuration",
|
|
827
1390
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
828
1391
|
"title": "Mapper"
|
|
@@ -834,6 +1397,10 @@
|
|
|
834
1397
|
"type": "string",
|
|
835
1398
|
"description": "Type of the service"
|
|
836
1399
|
},
|
|
1400
|
+
"url": {
|
|
1401
|
+
"type": "string",
|
|
1402
|
+
"description": "URL on which to serve the content"
|
|
1403
|
+
},
|
|
837
1404
|
"fields": {
|
|
838
1405
|
"type": "array",
|
|
839
1406
|
"items": {
|
|
@@ -869,19 +1436,37 @@
|
|
|
869
1436
|
"key": {
|
|
870
1437
|
"type": "string",
|
|
871
1438
|
"default": "index"
|
|
1439
|
+
},
|
|
1440
|
+
"openapi": {
|
|
1441
|
+
"type": "object",
|
|
1442
|
+
"additionalProperties": true
|
|
872
1443
|
}
|
|
873
1444
|
},
|
|
874
|
-
"required": [
|
|
1445
|
+
"required": [
|
|
1446
|
+
"async",
|
|
1447
|
+
"attribute",
|
|
1448
|
+
"cascade",
|
|
1449
|
+
"fields",
|
|
1450
|
+
"key",
|
|
1451
|
+
"source",
|
|
1452
|
+
"target",
|
|
1453
|
+
"targetAttribute",
|
|
1454
|
+
"type"
|
|
1455
|
+
],
|
|
875
1456
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
876
1457
|
"title": "Aggregator"
|
|
877
1458
|
},
|
|
878
|
-
"webda/
|
|
1459
|
+
"webda/memorystore": {
|
|
879
1460
|
"type": "object",
|
|
880
1461
|
"properties": {
|
|
881
1462
|
"type": {
|
|
882
1463
|
"type": "string",
|
|
883
1464
|
"description": "Type of the service"
|
|
884
1465
|
},
|
|
1466
|
+
"url": {
|
|
1467
|
+
"type": "string",
|
|
1468
|
+
"description": "URL on which to serve the content"
|
|
1469
|
+
},
|
|
885
1470
|
"model": {
|
|
886
1471
|
"type": "string",
|
|
887
1472
|
"description": "Webda model to use within the Store",
|
|
@@ -892,35 +1477,56 @@
|
|
|
892
1477
|
"description": "async delete"
|
|
893
1478
|
},
|
|
894
1479
|
"expose": {
|
|
895
|
-
"
|
|
896
|
-
{
|
|
897
|
-
"$ref": "#/definitions/ExposeParameters"
|
|
898
|
-
},
|
|
899
|
-
{
|
|
900
|
-
"type": "boolean"
|
|
901
|
-
},
|
|
902
|
-
{
|
|
903
|
-
"type": "string"
|
|
904
|
-
}
|
|
905
|
-
],
|
|
1480
|
+
"$ref": "#/definitions/ExposeParameters",
|
|
906
1481
|
"description": "Expose the service to an urls"
|
|
907
1482
|
},
|
|
908
1483
|
"strict": {
|
|
909
1484
|
"type": "boolean",
|
|
910
1485
|
"description": "Allow to load object that does not have the type data",
|
|
911
|
-
"deprecated": 2,
|
|
912
1486
|
"default": true
|
|
913
1487
|
},
|
|
914
|
-
"
|
|
915
|
-
"type": "
|
|
916
|
-
"description": "
|
|
1488
|
+
"slowQueryThreshold": {
|
|
1489
|
+
"type": "number",
|
|
1490
|
+
"description": "Slow query threshold",
|
|
1491
|
+
"default": 30000
|
|
917
1492
|
},
|
|
918
|
-
"
|
|
919
|
-
"type":
|
|
920
|
-
"
|
|
1493
|
+
"persistence": {
|
|
1494
|
+
"type": "object",
|
|
1495
|
+
"properties": {
|
|
1496
|
+
"path": {
|
|
1497
|
+
"type": "string",
|
|
1498
|
+
"description": "File path to save to"
|
|
1499
|
+
},
|
|
1500
|
+
"key": {
|
|
1501
|
+
"type": "string",
|
|
1502
|
+
"description": "Encryption key for AES encryption"
|
|
1503
|
+
},
|
|
1504
|
+
"delay": {
|
|
1505
|
+
"type": "number",
|
|
1506
|
+
"description": "By default only save once every 1s if modified",
|
|
1507
|
+
"default": 1000
|
|
1508
|
+
},
|
|
1509
|
+
"cipher": {
|
|
1510
|
+
"type": "string",
|
|
1511
|
+
"description": "cipher to use"
|
|
1512
|
+
}
|
|
1513
|
+
},
|
|
1514
|
+
"required": [
|
|
1515
|
+
"path"
|
|
1516
|
+
],
|
|
1517
|
+
"description": "Persist the data in a file"
|
|
1518
|
+
},
|
|
1519
|
+
"openapi": {
|
|
1520
|
+
"type": "object",
|
|
1521
|
+
"additionalProperties": true
|
|
921
1522
|
}
|
|
922
1523
|
},
|
|
923
|
-
"required": [
|
|
1524
|
+
"required": [
|
|
1525
|
+
"asyncDelete",
|
|
1526
|
+
"slowQueryThreshold",
|
|
1527
|
+
"type"
|
|
1528
|
+
],
|
|
1529
|
+
"description": "Memory store",
|
|
924
1530
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
925
1531
|
"definitions": {
|
|
926
1532
|
"ExposeParameters": {
|
|
@@ -949,23 +1555,40 @@
|
|
|
949
1555
|
"delete": {
|
|
950
1556
|
"type": "boolean",
|
|
951
1557
|
"description": "Do not expose the DELETE"
|
|
1558
|
+
},
|
|
1559
|
+
"query": {
|
|
1560
|
+
"type": "boolean",
|
|
1561
|
+
"description": "Do not expose the query endpoint"
|
|
952
1562
|
}
|
|
953
1563
|
},
|
|
954
1564
|
"description": "You can restrict any part of the CRUD",
|
|
955
1565
|
"default": {}
|
|
1566
|
+
},
|
|
1567
|
+
"queryMethod": {
|
|
1568
|
+
"type": "string",
|
|
1569
|
+
"enum": [
|
|
1570
|
+
"PUT",
|
|
1571
|
+
"GET"
|
|
1572
|
+
],
|
|
1573
|
+
"description": "For confidentiality sometimes you might prefer to expose query through PUT To avoid GET logging",
|
|
1574
|
+
"default": "GET"
|
|
956
1575
|
}
|
|
957
1576
|
}
|
|
958
1577
|
}
|
|
959
1578
|
},
|
|
960
|
-
"title": "
|
|
1579
|
+
"title": "MemoryStore"
|
|
961
1580
|
},
|
|
962
|
-
"webda/
|
|
1581
|
+
"webda/filestore": {
|
|
963
1582
|
"type": "object",
|
|
964
1583
|
"properties": {
|
|
965
1584
|
"type": {
|
|
966
1585
|
"type": "string",
|
|
967
1586
|
"description": "Type of the service"
|
|
968
1587
|
},
|
|
1588
|
+
"url": {
|
|
1589
|
+
"type": "string",
|
|
1590
|
+
"description": "URL on which to serve the content"
|
|
1591
|
+
},
|
|
969
1592
|
"model": {
|
|
970
1593
|
"type": "string",
|
|
971
1594
|
"description": "Webda model to use within the Store",
|
|
@@ -976,28 +1599,46 @@
|
|
|
976
1599
|
"description": "async delete"
|
|
977
1600
|
},
|
|
978
1601
|
"expose": {
|
|
979
|
-
"
|
|
980
|
-
{
|
|
981
|
-
"$ref": "#/definitions/ExposeParameters"
|
|
982
|
-
},
|
|
983
|
-
{
|
|
984
|
-
"type": "boolean"
|
|
985
|
-
},
|
|
986
|
-
{
|
|
987
|
-
"type": "string"
|
|
988
|
-
}
|
|
989
|
-
],
|
|
1602
|
+
"$ref": "#/definitions/ExposeParameters",
|
|
990
1603
|
"description": "Expose the service to an urls"
|
|
991
1604
|
},
|
|
992
1605
|
"strict": {
|
|
993
1606
|
"type": "boolean",
|
|
994
1607
|
"description": "Allow to load object that does not have the type data",
|
|
995
|
-
"deprecated": 2,
|
|
996
1608
|
"default": true
|
|
1609
|
+
},
|
|
1610
|
+
"slowQueryThreshold": {
|
|
1611
|
+
"type": "number",
|
|
1612
|
+
"description": "Slow query threshold",
|
|
1613
|
+
"default": 30000
|
|
1614
|
+
},
|
|
1615
|
+
"folder": {
|
|
1616
|
+
"type": "string",
|
|
1617
|
+
"description": "Local path where to store all `json` files"
|
|
1618
|
+
},
|
|
1619
|
+
"beautify": {
|
|
1620
|
+
"type": [
|
|
1621
|
+
"string",
|
|
1622
|
+
"number"
|
|
1623
|
+
],
|
|
1624
|
+
"description": "Parameter sent to JSON.stringify when storing the json"
|
|
1625
|
+
},
|
|
1626
|
+
"noCache": {
|
|
1627
|
+
"type": "boolean",
|
|
1628
|
+
"description": "Disable memory cache\n\nUseful if several process update storage files",
|
|
1629
|
+
"default": false
|
|
1630
|
+
},
|
|
1631
|
+
"openapi": {
|
|
1632
|
+
"type": "object",
|
|
1633
|
+
"additionalProperties": true
|
|
997
1634
|
}
|
|
998
1635
|
},
|
|
999
|
-
"required": [
|
|
1000
|
-
|
|
1636
|
+
"required": [
|
|
1637
|
+
"asyncDelete",
|
|
1638
|
+
"folder",
|
|
1639
|
+
"slowQueryThreshold",
|
|
1640
|
+
"type"
|
|
1641
|
+
],
|
|
1001
1642
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1002
1643
|
"definitions": {
|
|
1003
1644
|
"ExposeParameters": {
|
|
@@ -1026,15 +1667,28 @@
|
|
|
1026
1667
|
"delete": {
|
|
1027
1668
|
"type": "boolean",
|
|
1028
1669
|
"description": "Do not expose the DELETE"
|
|
1670
|
+
},
|
|
1671
|
+
"query": {
|
|
1672
|
+
"type": "boolean",
|
|
1673
|
+
"description": "Do not expose the query endpoint"
|
|
1029
1674
|
}
|
|
1030
1675
|
},
|
|
1031
1676
|
"description": "You can restrict any part of the CRUD",
|
|
1032
1677
|
"default": {}
|
|
1678
|
+
},
|
|
1679
|
+
"queryMethod": {
|
|
1680
|
+
"type": "string",
|
|
1681
|
+
"enum": [
|
|
1682
|
+
"PUT",
|
|
1683
|
+
"GET"
|
|
1684
|
+
],
|
|
1685
|
+
"description": "For confidentiality sometimes you might prefer to expose query through PUT To avoid GET logging",
|
|
1686
|
+
"default": "GET"
|
|
1033
1687
|
}
|
|
1034
1688
|
}
|
|
1035
1689
|
}
|
|
1036
1690
|
},
|
|
1037
|
-
"title": "
|
|
1691
|
+
"title": "FileStore"
|
|
1038
1692
|
},
|
|
1039
1693
|
"webda/memorylogger": {
|
|
1040
1694
|
"type": "object",
|
|
@@ -1043,20 +1697,37 @@
|
|
|
1043
1697
|
"type": "string",
|
|
1044
1698
|
"description": "Type of the service"
|
|
1045
1699
|
},
|
|
1700
|
+
"url": {
|
|
1701
|
+
"type": "string",
|
|
1702
|
+
"description": "URL on which to serve the content"
|
|
1703
|
+
},
|
|
1046
1704
|
"logLevel": {
|
|
1047
1705
|
"$ref": "#/definitions/WorkerLogLevel",
|
|
1048
1706
|
"description": "Specify the log level of this service"
|
|
1049
1707
|
},
|
|
1050
1708
|
"limit": {
|
|
1051
1709
|
"type": "number"
|
|
1710
|
+
},
|
|
1711
|
+
"openapi": {
|
|
1712
|
+
"type": "object",
|
|
1713
|
+
"additionalProperties": true
|
|
1052
1714
|
}
|
|
1053
1715
|
},
|
|
1054
|
-
"required": [
|
|
1716
|
+
"required": [
|
|
1717
|
+
"logLevel",
|
|
1718
|
+
"type"
|
|
1719
|
+
],
|
|
1055
1720
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1056
1721
|
"definitions": {
|
|
1057
1722
|
"WorkerLogLevel": {
|
|
1058
1723
|
"type": "string",
|
|
1059
|
-
"enum": [
|
|
1724
|
+
"enum": [
|
|
1725
|
+
"ERROR",
|
|
1726
|
+
"WARN",
|
|
1727
|
+
"INFO",
|
|
1728
|
+
"DEBUG",
|
|
1729
|
+
"TRACE"
|
|
1730
|
+
],
|
|
1060
1731
|
"description": "LogLevel as intersection to compare with integer values"
|
|
1061
1732
|
}
|
|
1062
1733
|
},
|
|
@@ -1069,20 +1740,37 @@
|
|
|
1069
1740
|
"type": "string",
|
|
1070
1741
|
"description": "Type of the service"
|
|
1071
1742
|
},
|
|
1743
|
+
"url": {
|
|
1744
|
+
"type": "string",
|
|
1745
|
+
"description": "URL on which to serve the content"
|
|
1746
|
+
},
|
|
1072
1747
|
"logLevel": {
|
|
1073
1748
|
"$ref": "#/definitions/WorkerLogLevel",
|
|
1074
1749
|
"description": "Specify the log level of this service"
|
|
1075
1750
|
},
|
|
1076
1751
|
"format": {
|
|
1077
1752
|
"type": "string"
|
|
1753
|
+
},
|
|
1754
|
+
"openapi": {
|
|
1755
|
+
"type": "object",
|
|
1756
|
+
"additionalProperties": true
|
|
1078
1757
|
}
|
|
1079
1758
|
},
|
|
1080
|
-
"required": [
|
|
1759
|
+
"required": [
|
|
1760
|
+
"logLevel",
|
|
1761
|
+
"type"
|
|
1762
|
+
],
|
|
1081
1763
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1082
1764
|
"definitions": {
|
|
1083
1765
|
"WorkerLogLevel": {
|
|
1084
1766
|
"type": "string",
|
|
1085
|
-
"enum": [
|
|
1767
|
+
"enum": [
|
|
1768
|
+
"ERROR",
|
|
1769
|
+
"WARN",
|
|
1770
|
+
"INFO",
|
|
1771
|
+
"DEBUG",
|
|
1772
|
+
"TRACE"
|
|
1773
|
+
],
|
|
1086
1774
|
"description": "LogLevel as intersection to compare with integer values"
|
|
1087
1775
|
}
|
|
1088
1776
|
},
|
|
@@ -1095,6 +1783,10 @@
|
|
|
1095
1783
|
"type": "string",
|
|
1096
1784
|
"description": "Type of the service"
|
|
1097
1785
|
},
|
|
1786
|
+
"url": {
|
|
1787
|
+
"type": "string",
|
|
1788
|
+
"description": "URL on which to serve the content"
|
|
1789
|
+
},
|
|
1098
1790
|
"logLevel": {
|
|
1099
1791
|
"$ref": "#/definitions/WorkerLogLevel",
|
|
1100
1792
|
"description": "Specify the log level of this service"
|
|
@@ -1107,18 +1799,32 @@
|
|
|
1107
1799
|
},
|
|
1108
1800
|
"sizeLimit": {
|
|
1109
1801
|
"type": "number"
|
|
1802
|
+
},
|
|
1803
|
+
"openapi": {
|
|
1804
|
+
"type": "object",
|
|
1805
|
+
"additionalProperties": true
|
|
1110
1806
|
}
|
|
1111
1807
|
},
|
|
1112
|
-
"required": [
|
|
1808
|
+
"required": [
|
|
1809
|
+
"file",
|
|
1810
|
+
"logLevel",
|
|
1811
|
+
"type"
|
|
1812
|
+
],
|
|
1113
1813
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1114
1814
|
"definitions": {
|
|
1115
1815
|
"WorkerLogLevel": {
|
|
1116
1816
|
"type": "string",
|
|
1117
|
-
"enum": [
|
|
1817
|
+
"enum": [
|
|
1818
|
+
"ERROR",
|
|
1819
|
+
"WARN",
|
|
1820
|
+
"INFO",
|
|
1821
|
+
"DEBUG",
|
|
1822
|
+
"TRACE"
|
|
1823
|
+
],
|
|
1118
1824
|
"description": "LogLevel as intersection to compare with integer values"
|
|
1119
1825
|
}
|
|
1120
1826
|
},
|
|
1121
1827
|
"title": "FileLogger"
|
|
1122
1828
|
}
|
|
1123
1829
|
}
|
|
1124
|
-
}
|
|
1830
|
+
}
|