@graftland/plugin-remote 0.3.3 → 0.4.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.
Files changed (323) hide show
  1. package/README.md +18 -54
  2. package/README.zh-CN.md +17 -51
  3. package/README.zh-TW.md +17 -51
  4. package/dist/Auth.d.ts.map +1 -1
  5. package/dist/Auth.js.map +1 -1
  6. package/dist/Config.d.ts +1151 -0
  7. package/dist/Config.d.ts.map +1 -0
  8. package/dist/Config.js +183 -0
  9. package/dist/Config.js.map +1 -0
  10. package/dist/Contract.d.ts +1 -1
  11. package/dist/Contract.d.ts.map +1 -1
  12. package/dist/Contract.js +32 -1
  13. package/dist/Contract.js.map +1 -1
  14. package/dist/Instance.d.ts.map +1 -1
  15. package/dist/Instance.js.map +1 -1
  16. package/dist/Testing.d.ts +1 -1
  17. package/dist/Testing.d.ts.map +1 -1
  18. package/dist/Testing.js.map +1 -1
  19. package/dist/Transport.d.ts +1 -1
  20. package/dist/Transport.d.ts.map +1 -1
  21. package/dist/Transport.js.map +1 -1
  22. package/dist/cli.d.ts +4 -0
  23. package/dist/cli.d.ts.map +1 -0
  24. package/dist/cli.js +25 -0
  25. package/dist/cli.js.map +1 -0
  26. package/dist/host/auth/bearer.d.ts.map +1 -1
  27. package/dist/host/auth/bearer.js +4 -2
  28. package/dist/host/auth/bearer.js.map +1 -1
  29. package/dist/host/auth/jwt.d.ts.map +1 -1
  30. package/dist/host/auth/jwt.js +4 -2
  31. package/dist/host/auth/jwt.js.map +1 -1
  32. package/dist/host/auth/mtls.d.ts +3 -7
  33. package/dist/host/auth/mtls.d.ts.map +1 -1
  34. package/dist/host/auth/mtls.js +13 -14
  35. package/dist/host/auth/mtls.js.map +1 -1
  36. package/dist/host/auth/none.d.ts +1 -1
  37. package/dist/host/auth/none.js +7 -5
  38. package/dist/host/auth/none.js.map +1 -1
  39. package/dist/host/command.d.ts +1 -1
  40. package/dist/host/command.d.ts.map +1 -1
  41. package/dist/host/command.js +11 -9
  42. package/dist/host/command.js.map +1 -1
  43. package/dist/host/local.d.ts.map +1 -1
  44. package/dist/host/local.js +9 -30
  45. package/dist/host/local.js.map +1 -1
  46. package/dist/host/unix.d.ts +1 -1
  47. package/dist/host/unix.d.ts.map +1 -1
  48. package/dist/host/unix.js +13 -9
  49. package/dist/host/unix.js.map +1 -1
  50. package/dist/host/websocket.d.ts +1 -1
  51. package/dist/host/websocket.d.ts.map +1 -1
  52. package/dist/host/websocket.js +11 -8
  53. package/dist/host/websocket.js.map +1 -1
  54. package/dist/host/worker.d.ts +1 -1
  55. package/dist/host/worker.d.ts.map +1 -1
  56. package/dist/host/worker.js +13 -9
  57. package/dist/host/worker.js.map +1 -1
  58. package/dist/index.d.ts +6 -8
  59. package/dist/index.d.ts.map +1 -1
  60. package/dist/index.js +30 -64
  61. package/dist/index.js.map +1 -1
  62. package/dist/internal/Certificates.js.map +1 -1
  63. package/dist/internal/FailureGroup.js +6 -6
  64. package/dist/internal/FailureGroup.js.map +1 -1
  65. package/dist/internal/Peer.js.map +1 -1
  66. package/dist/internal/{ServeLifecycle.js → RunnerLifecycle.js} +6 -6
  67. package/dist/internal/RunnerLifecycle.js.map +1 -0
  68. package/dist/internal/Supervisor.js.map +1 -1
  69. package/dist/internal/assembly.d.ts +3 -3
  70. package/dist/internal/assembly.js +8 -8
  71. package/dist/internal/assembly.js.map +1 -1
  72. package/dist/internal/auth/config.d.ts +27 -0
  73. package/dist/internal/auth/config.d.ts.map +1 -0
  74. package/dist/internal/auth/config.js +29 -0
  75. package/dist/internal/auth/config.js.map +1 -0
  76. package/dist/internal/auth/mtls.js.map +1 -1
  77. package/dist/internal/auth/token.js.map +1 -1
  78. package/dist/internal/auth/tokenCredentials.d.ts +1 -1
  79. package/dist/internal/auth/tokenCredentials.d.ts.map +1 -1
  80. package/dist/internal/auth/tokenCredentials.js +1 -1
  81. package/dist/internal/auth/tokenCredentials.js.map +1 -1
  82. package/dist/internal/child.js +3 -3
  83. package/dist/internal/child.js.map +1 -1
  84. package/dist/internal/childMain.js +47 -0
  85. package/dist/internal/childMain.js.map +1 -0
  86. package/dist/internal/childRuntime.js +8 -8
  87. package/dist/internal/childRuntime.js.map +1 -1
  88. package/dist/internal/cleanup.js +3 -3
  89. package/dist/internal/cleanup.js.map +1 -1
  90. package/dist/internal/contract.js.map +1 -1
  91. package/dist/internal/credentials.d.ts +3 -2
  92. package/dist/internal/credentials.d.ts.map +1 -1
  93. package/dist/internal/credentials.js +1 -1
  94. package/dist/internal/credentials.js.map +1 -1
  95. package/dist/internal/directTransport.js.map +1 -1
  96. package/dist/internal/entry.d.ts +104 -26
  97. package/dist/internal/entry.d.ts.map +1 -1
  98. package/dist/internal/entry.js +22 -9
  99. package/dist/internal/entry.js.map +1 -1
  100. package/dist/internal/entryConfig.d.ts +2 -202
  101. package/dist/internal/entryConfig.js +2 -136
  102. package/dist/internal/entryConfig.js.map +1 -1
  103. package/dist/internal/execution.d.ts +4 -4
  104. package/dist/internal/execution.js +11 -11
  105. package/dist/internal/execution.js.map +1 -1
  106. package/dist/internal/follow.js +1 -1
  107. package/dist/internal/follow.js.map +1 -1
  108. package/dist/internal/forkTree.js.map +1 -1
  109. package/dist/internal/host/local.js.map +1 -1
  110. package/dist/internal/host/runner.js +4 -4
  111. package/dist/internal/host/runner.js.map +1 -1
  112. package/dist/internal/host.js +2 -2
  113. package/dist/internal/host.js.map +1 -1
  114. package/dist/internal/importer.js +1 -1
  115. package/dist/internal/importer.js.map +1 -1
  116. package/dist/internal/listenerStartup.js +1 -1
  117. package/dist/internal/listenerStartup.js.map +1 -1
  118. package/dist/internal/loadModule.js.map +1 -1
  119. package/dist/internal/platform.js +1 -9
  120. package/dist/internal/port.d.ts +1 -1
  121. package/dist/internal/port.js +2 -2
  122. package/dist/internal/port.js.map +1 -1
  123. package/dist/internal/runner/Bootstrap.js.map +1 -1
  124. package/dist/internal/runner/Connection.d.ts +3 -2
  125. package/dist/internal/runner/Connection.js +6 -6
  126. package/dist/internal/runner/Connection.js.map +1 -1
  127. package/dist/internal/runner/Execution.js +6 -6
  128. package/dist/internal/runner/Execution.js.map +1 -1
  129. package/dist/internal/runner/Local.js +1 -1
  130. package/dist/internal/runner/Local.js.map +1 -1
  131. package/dist/internal/runner/Lock.js.map +1 -1
  132. package/dist/internal/runner/Multiplex.js.map +1 -1
  133. package/dist/internal/runner/Packages.js.map +1 -1
  134. package/dist/internal/runner/ProcessObservation.js.map +1 -1
  135. package/dist/internal/runner/Processes.js.map +1 -1
  136. package/dist/internal/runner/Retention.js.map +1 -1
  137. package/dist/internal/runner/Store.js.map +1 -1
  138. package/dist/internal/runner/Supervisor.js +5 -5
  139. package/dist/internal/runner/Supervisor.js.map +1 -1
  140. package/dist/internal/runner/Watchdog.js.map +1 -1
  141. package/dist/internal/runner/Wire.d.ts +1 -1
  142. package/dist/internal/runner/Wire.js.map +1 -1
  143. package/dist/internal/runner/accept.js +2 -2
  144. package/dist/internal/runner/accept.js.map +1 -1
  145. package/dist/internal/runner/command.js +1 -1
  146. package/dist/internal/runner/command.js.map +1 -1
  147. package/dist/internal/runner/connectionEnded.js +1 -1
  148. package/dist/internal/runner/connectionEnded.js.map +1 -1
  149. package/dist/internal/runner/model.d.ts.map +1 -1
  150. package/dist/internal/runner/model.js.map +1 -1
  151. package/dist/internal/services.d.ts.map +1 -1
  152. package/dist/internal/services.js +1 -1
  153. package/dist/internal/services.js.map +1 -1
  154. package/dist/internal/socketChannel.js.map +1 -1
  155. package/dist/internal/stdioChannel.js.map +1 -1
  156. package/dist/internal/supervisorPlugin.js +48 -1
  157. package/dist/internal/supervisorPlugin.js.map +1 -1
  158. package/dist/internal/transportOptions.d.ts.map +1 -1
  159. package/dist/internal/watchdogMain.js +5 -3
  160. package/dist/internal/watchdogMain.js.map +1 -1
  161. package/dist/internal/websocket.js.map +1 -1
  162. package/dist/internal/websocketServer.js +1 -1
  163. package/dist/internal/websocketServer.js.map +1 -1
  164. package/dist/internal/workerChannel.js.map +1 -1
  165. package/dist/internal/workerMain.js +13 -6
  166. package/dist/internal/workerMain.js.map +1 -1
  167. package/dist/runner/auth/bearer.d.ts +3 -5
  168. package/dist/runner/auth/bearer.d.ts.map +1 -1
  169. package/dist/runner/auth/bearer.js +13 -11
  170. package/dist/runner/auth/bearer.js.map +1 -1
  171. package/dist/runner/auth/jwt.d.ts +4 -18
  172. package/dist/runner/auth/jwt.d.ts.map +1 -1
  173. package/dist/runner/auth/jwt.js +16 -28
  174. package/dist/runner/auth/jwt.js.map +1 -1
  175. package/dist/runner/auth/mtls.d.ts +3 -6
  176. package/dist/runner/auth/mtls.d.ts.map +1 -1
  177. package/dist/runner/auth/mtls.js +13 -29
  178. package/dist/runner/auth/mtls.js.map +1 -1
  179. package/dist/runner/auth/none.d.ts +1 -1
  180. package/dist/runner/auth/none.js +7 -5
  181. package/dist/runner/auth/none.js.map +1 -1
  182. package/dist/runner/index.d.ts +3 -308
  183. package/dist/runner/index.d.ts.map +1 -1
  184. package/dist/runner/index.js +62 -30
  185. package/dist/runner/index.js.map +1 -1
  186. package/dist/runner/stdio.d.ts +1 -1
  187. package/dist/runner/stdio.d.ts.map +1 -1
  188. package/dist/runner/stdio.js +11 -9
  189. package/dist/runner/stdio.js.map +1 -1
  190. package/dist/runner/unix.d.ts +1 -1
  191. package/dist/runner/unix.d.ts.map +1 -1
  192. package/dist/runner/unix.js +10 -8
  193. package/dist/runner/unix.js.map +1 -1
  194. package/dist/runner/websocket.d.ts +1 -1
  195. package/dist/runner/websocket.d.ts.map +1 -1
  196. package/dist/runner/websocket.js +12 -10
  197. package/dist/runner/websocket.js.map +1 -1
  198. package/package.json +14 -12
  199. package/schema.json +2269 -0
  200. package/src/Auth.ts +8 -2
  201. package/src/Config.ts +196 -0
  202. package/src/Contract.ts +12 -3
  203. package/src/Instance.ts +1 -0
  204. package/src/Testing.ts +6 -4
  205. package/src/Transport.ts +12 -3
  206. package/src/cli.ts +60 -0
  207. package/src/host/auth/bearer.ts +1 -0
  208. package/src/host/auth/jwt.ts +1 -0
  209. package/src/host/auth/mtls.ts +7 -12
  210. package/src/host/auth/none.ts +3 -1
  211. package/src/host/command.ts +8 -5
  212. package/src/host/local.ts +4 -2
  213. package/src/host/unix.ts +11 -7
  214. package/src/host/websocket.ts +10 -7
  215. package/src/host/worker.ts +8 -5
  216. package/src/index.ts +36 -23
  217. package/src/internal/Certificates.ts +1 -0
  218. package/src/internal/FailureGroup.ts +5 -3
  219. package/src/internal/Peer.ts +1 -0
  220. package/src/internal/{ServeLifecycle.ts → RunnerLifecycle.ts} +7 -5
  221. package/src/internal/Supervisor.ts +5 -4
  222. package/src/internal/assembly.ts +11 -9
  223. package/src/internal/auth/config.ts +44 -0
  224. package/src/internal/auth/mtls.ts +1 -0
  225. package/src/internal/auth/token.ts +1 -0
  226. package/src/internal/auth/tokenCredentials.ts +4 -2
  227. package/src/internal/child.ts +8 -6
  228. package/src/{bin.ts → internal/childMain.ts} +16 -61
  229. package/src/internal/childRuntime.ts +12 -10
  230. package/src/internal/cleanup.ts +3 -2
  231. package/src/internal/contract.ts +1 -0
  232. package/src/internal/credentials.ts +3 -1
  233. package/src/internal/directTransport.ts +9 -2
  234. package/src/internal/entry.ts +53 -16
  235. package/src/internal/entryConfig.ts +10 -132
  236. package/src/internal/execution.ts +17 -15
  237. package/src/internal/follow.ts +2 -1
  238. package/src/internal/forkTree.ts +2 -1
  239. package/src/internal/host/local.ts +1 -0
  240. package/src/internal/host/runner.ts +7 -5
  241. package/src/internal/host.ts +9 -8
  242. package/src/internal/importer.ts +3 -2
  243. package/src/internal/listenerStartup.ts +4 -2
  244. package/src/internal/loadModule.ts +1 -0
  245. package/src/internal/platform.ts +1 -12
  246. package/src/internal/port.ts +11 -6
  247. package/src/internal/runner/Bootstrap.ts +1 -0
  248. package/src/internal/runner/Connection.ts +13 -11
  249. package/src/internal/runner/Execution.ts +14 -13
  250. package/src/internal/runner/Local.ts +3 -2
  251. package/src/internal/runner/Lock.ts +1 -0
  252. package/src/internal/runner/Multiplex.ts +2 -1
  253. package/src/internal/runner/Packages.ts +7 -5
  254. package/src/internal/runner/ProcessObservation.ts +2 -1
  255. package/src/internal/runner/Processes.ts +3 -1
  256. package/src/internal/runner/Retention.ts +1 -0
  257. package/src/internal/runner/Store.ts +3 -2
  258. package/src/internal/runner/Supervisor.ts +22 -20
  259. package/src/internal/runner/Watchdog.ts +3 -1
  260. package/src/internal/runner/Wire.ts +13 -12
  261. package/src/internal/runner/accept.ts +6 -5
  262. package/src/internal/runner/command.ts +3 -2
  263. package/src/internal/runner/connectionEnded.ts +2 -1
  264. package/src/internal/runner/model.ts +5 -3
  265. package/src/internal/services.ts +9 -2
  266. package/src/internal/socketChannel.ts +2 -1
  267. package/src/internal/stdioChannel.ts +4 -2
  268. package/src/internal/supervisorPlugin.ts +10 -8
  269. package/src/internal/transportOptions.ts +1 -0
  270. package/src/internal/watchdogMain.ts +5 -3
  271. package/src/internal/websocket.ts +5 -2
  272. package/src/internal/websocketServer.ts +6 -4
  273. package/src/internal/workerChannel.ts +1 -0
  274. package/src/internal/workerMain.ts +21 -5
  275. package/src/runner/auth/bearer.ts +10 -6
  276. package/src/runner/auth/jwt.ts +10 -41
  277. package/src/runner/auth/mtls.ts +6 -3
  278. package/src/runner/auth/none.ts +3 -1
  279. package/src/runner/index.ts +102 -11
  280. package/src/runner/stdio.ts +15 -10
  281. package/src/runner/unix.ts +7 -4
  282. package/src/runner/websocket.ts +9 -7
  283. package/dist/Auth-BElTC9_X.js +0 -6
  284. package/dist/Bootstrap-H9gDsgsC.js +0 -9
  285. package/dist/ConfigDirectory-BCC6q2R4.js +0 -5
  286. package/dist/Contract-DsJtisvL.js +0 -83
  287. package/dist/Errors-DYhsGZcZ.js +0 -58
  288. package/dist/FailureGroup-BgT73AaR.js +0 -63
  289. package/dist/Framing-G9eSaeLb.js +0 -61
  290. package/dist/Graft-B71CPA2Y.js +0 -996
  291. package/dist/Packages-AgoCGotL.js +0 -108
  292. package/dist/Peer-DXeVrGBh.js +0 -342
  293. package/dist/ProcessObservation-gLgGirYv.js +0 -38
  294. package/dist/ServeLifecycle-Bd1FPJ6e.js +0 -24
  295. package/dist/Transport-DULzpsgR.js +0 -6
  296. package/dist/WatchdogProtocol-BZmVxrBP.js +0 -17
  297. package/dist/bin.js +0 -28276
  298. package/dist/bin.js.map +0 -1
  299. package/dist/childRuntime-Bm3iSg_N.js +0 -192
  300. package/dist/command-9zrHdbwT.js +0 -7
  301. package/dist/connectionEnded-BwcxQ7W8.js +0 -54
  302. package/dist/directTransport-DrexuPSm.js +0 -5
  303. package/dist/entry-psOpX3Bj.js +0 -736
  304. package/dist/importer-Cvf88eAY.js +0 -344
  305. package/dist/internal/ServeLifecycle.js.map +0 -1
  306. package/dist/internal/entryConfig.d.ts.map +0 -1
  307. package/dist/internal/platform.js.map +0 -1
  308. package/dist/internal/release.js +0 -25
  309. package/dist/internal/release.js.map +0 -1
  310. package/dist/internal/serve.js +0 -60
  311. package/dist/internal/serve.js.map +0 -1
  312. package/dist/port--3x2zJ4D.js +0 -285
  313. package/dist/release-DfZPuIcK.js +0 -23
  314. package/dist/rolldown-runtime-DYf_mQCB.js +0 -34
  315. package/dist/socketChannel-CJvL2DiB.js +0 -3658
  316. package/dist/supervisorPlugin-t6Z6PrhD.js +0 -733
  317. package/dist/token-CYBNNlhS.js +0 -17
  318. package/dist/tokenCredentials-CbCuk-Rt.js +0 -31
  319. package/dist/websocketServer-NQhODlEt.js +0 -60
  320. package/dist/workerChannel-C8hhBJzA.js +0 -27
  321. package/src/internal/release.ts +0 -72
  322. package/src/internal/serve.ts +0 -119
  323. /package/dist/{bin.d.ts → internal/childMain.d.ts} +0 -0
package/schema.json ADDED
@@ -0,0 +1,2269 @@
1
+ [
2
+ {
3
+ "names": [
4
+ "remote",
5
+ "@graftland/plugin-remote"
6
+ ],
7
+ "schema": {
8
+ "type": "object",
9
+ "properties": {
10
+ "contract": {
11
+ "type": "string"
12
+ },
13
+ "connect": {
14
+ "anyOf": [
15
+ {
16
+ "type": "object",
17
+ "properties": {
18
+ "url": {
19
+ "type": "string"
20
+ },
21
+ "unix": {
22
+ "not": {}
23
+ },
24
+ "command": {
25
+ "not": {}
26
+ },
27
+ "stdio": {
28
+ "not": {}
29
+ },
30
+ "local": {
31
+ "not": {}
32
+ },
33
+ "worker": {
34
+ "not": {}
35
+ },
36
+ "transport": {
37
+ "not": {}
38
+ },
39
+ "instance": {
40
+ "type": "string"
41
+ },
42
+ "lease": {
43
+ "type": "string"
44
+ },
45
+ "margin": {
46
+ "type": "string"
47
+ },
48
+ "expect": {
49
+ "type": "object",
50
+ "properties": {
51
+ "version": {
52
+ "type": "string"
53
+ },
54
+ "digest": {
55
+ "type": "string"
56
+ }
57
+ },
58
+ "additionalProperties": false
59
+ },
60
+ "auth": {
61
+ "anyOf": [
62
+ {
63
+ "type": "object",
64
+ "properties": {
65
+ "name": {
66
+ "type": "string"
67
+ },
68
+ "config": {},
69
+ "mtls": {
70
+ "not": {}
71
+ },
72
+ "bearer": {
73
+ "not": {}
74
+ },
75
+ "jwt": {
76
+ "not": {}
77
+ },
78
+ "none": {
79
+ "not": {}
80
+ }
81
+ },
82
+ "required": [
83
+ "name"
84
+ ],
85
+ "additionalProperties": false
86
+ },
87
+ {
88
+ "type": "object",
89
+ "properties": {
90
+ "name": {
91
+ "not": {}
92
+ },
93
+ "config": {
94
+ "not": {}
95
+ },
96
+ "mtls": {
97
+ "type": "object",
98
+ "properties": {
99
+ "cert": {
100
+ "type": "string"
101
+ },
102
+ "key": {
103
+ "type": "string"
104
+ }
105
+ },
106
+ "required": [
107
+ "cert",
108
+ "key"
109
+ ],
110
+ "additionalProperties": false
111
+ },
112
+ "bearer": {
113
+ "not": {}
114
+ },
115
+ "jwt": {
116
+ "not": {}
117
+ },
118
+ "none": {
119
+ "not": {}
120
+ }
121
+ },
122
+ "required": [
123
+ "mtls"
124
+ ],
125
+ "additionalProperties": false
126
+ },
127
+ {
128
+ "type": "object",
129
+ "properties": {
130
+ "name": {
131
+ "not": {}
132
+ },
133
+ "config": {
134
+ "not": {}
135
+ },
136
+ "mtls": {
137
+ "not": {}
138
+ },
139
+ "bearer": {
140
+ "type": "object",
141
+ "properties": {
142
+ "token": {
143
+ "anyOf": [
144
+ {
145
+ "type": "string"
146
+ },
147
+ {
148
+ "type": "object",
149
+ "properties": {
150
+ "file": {
151
+ "type": "string"
152
+ }
153
+ },
154
+ "required": [
155
+ "file"
156
+ ],
157
+ "additionalProperties": false
158
+ }
159
+ ]
160
+ }
161
+ },
162
+ "required": [
163
+ "token"
164
+ ],
165
+ "additionalProperties": false
166
+ },
167
+ "jwt": {
168
+ "not": {}
169
+ },
170
+ "none": {
171
+ "not": {}
172
+ }
173
+ },
174
+ "required": [
175
+ "bearer"
176
+ ],
177
+ "additionalProperties": false
178
+ },
179
+ {
180
+ "type": "object",
181
+ "properties": {
182
+ "name": {
183
+ "not": {}
184
+ },
185
+ "config": {
186
+ "not": {}
187
+ },
188
+ "mtls": {
189
+ "not": {}
190
+ },
191
+ "bearer": {
192
+ "not": {}
193
+ },
194
+ "jwt": {
195
+ "type": "object",
196
+ "properties": {
197
+ "token": {
198
+ "anyOf": [
199
+ {
200
+ "type": "string"
201
+ },
202
+ {
203
+ "type": "object",
204
+ "properties": {
205
+ "file": {
206
+ "type": "string"
207
+ }
208
+ },
209
+ "required": [
210
+ "file"
211
+ ],
212
+ "additionalProperties": false
213
+ }
214
+ ]
215
+ }
216
+ },
217
+ "required": [
218
+ "token"
219
+ ],
220
+ "additionalProperties": false
221
+ },
222
+ "none": {
223
+ "not": {}
224
+ }
225
+ },
226
+ "required": [
227
+ "jwt"
228
+ ],
229
+ "additionalProperties": false
230
+ },
231
+ {
232
+ "type": "object",
233
+ "properties": {
234
+ "name": {
235
+ "not": {}
236
+ },
237
+ "config": {
238
+ "not": {}
239
+ },
240
+ "mtls": {
241
+ "not": {}
242
+ },
243
+ "bearer": {
244
+ "not": {}
245
+ },
246
+ "jwt": {
247
+ "not": {}
248
+ },
249
+ "none": {
250
+ "type": "object",
251
+ "properties": {
252
+ "identity": {
253
+ "type": "string"
254
+ }
255
+ },
256
+ "additionalProperties": false
257
+ }
258
+ },
259
+ "required": [
260
+ "none"
261
+ ],
262
+ "additionalProperties": false
263
+ }
264
+ ]
265
+ },
266
+ "ca": {
267
+ "type": "string"
268
+ },
269
+ "servername": {
270
+ "type": "string"
271
+ }
272
+ },
273
+ "required": [
274
+ "url"
275
+ ],
276
+ "additionalProperties": false
277
+ },
278
+ {
279
+ "type": "object",
280
+ "properties": {
281
+ "url": {
282
+ "not": {}
283
+ },
284
+ "unix": {
285
+ "type": "string"
286
+ },
287
+ "command": {
288
+ "not": {}
289
+ },
290
+ "stdio": {
291
+ "not": {}
292
+ },
293
+ "local": {
294
+ "not": {}
295
+ },
296
+ "worker": {
297
+ "not": {}
298
+ },
299
+ "transport": {
300
+ "not": {}
301
+ },
302
+ "instance": {
303
+ "type": "string"
304
+ },
305
+ "lease": {
306
+ "type": "string"
307
+ },
308
+ "margin": {
309
+ "type": "string"
310
+ },
311
+ "expect": {
312
+ "type": "object",
313
+ "properties": {
314
+ "version": {
315
+ "type": "string"
316
+ },
317
+ "digest": {
318
+ "type": "string"
319
+ }
320
+ },
321
+ "additionalProperties": false
322
+ },
323
+ "auth": {
324
+ "anyOf": [
325
+ {
326
+ "type": "object",
327
+ "properties": {
328
+ "name": {
329
+ "type": "string"
330
+ },
331
+ "config": {},
332
+ "mtls": {
333
+ "not": {}
334
+ },
335
+ "bearer": {
336
+ "not": {}
337
+ },
338
+ "jwt": {
339
+ "not": {}
340
+ },
341
+ "none": {
342
+ "not": {}
343
+ }
344
+ },
345
+ "required": [
346
+ "name"
347
+ ],
348
+ "additionalProperties": false
349
+ },
350
+ {
351
+ "type": "object",
352
+ "properties": {
353
+ "name": {
354
+ "not": {}
355
+ },
356
+ "config": {
357
+ "not": {}
358
+ },
359
+ "mtls": {
360
+ "type": "object",
361
+ "properties": {
362
+ "cert": {
363
+ "type": "string"
364
+ },
365
+ "key": {
366
+ "type": "string"
367
+ }
368
+ },
369
+ "required": [
370
+ "cert",
371
+ "key"
372
+ ],
373
+ "additionalProperties": false
374
+ },
375
+ "bearer": {
376
+ "not": {}
377
+ },
378
+ "jwt": {
379
+ "not": {}
380
+ },
381
+ "none": {
382
+ "not": {}
383
+ }
384
+ },
385
+ "required": [
386
+ "mtls"
387
+ ],
388
+ "additionalProperties": false
389
+ },
390
+ {
391
+ "type": "object",
392
+ "properties": {
393
+ "name": {
394
+ "not": {}
395
+ },
396
+ "config": {
397
+ "not": {}
398
+ },
399
+ "mtls": {
400
+ "not": {}
401
+ },
402
+ "bearer": {
403
+ "type": "object",
404
+ "properties": {
405
+ "token": {
406
+ "anyOf": [
407
+ {
408
+ "type": "string"
409
+ },
410
+ {
411
+ "type": "object",
412
+ "properties": {
413
+ "file": {
414
+ "type": "string"
415
+ }
416
+ },
417
+ "required": [
418
+ "file"
419
+ ],
420
+ "additionalProperties": false
421
+ }
422
+ ]
423
+ }
424
+ },
425
+ "required": [
426
+ "token"
427
+ ],
428
+ "additionalProperties": false
429
+ },
430
+ "jwt": {
431
+ "not": {}
432
+ },
433
+ "none": {
434
+ "not": {}
435
+ }
436
+ },
437
+ "required": [
438
+ "bearer"
439
+ ],
440
+ "additionalProperties": false
441
+ },
442
+ {
443
+ "type": "object",
444
+ "properties": {
445
+ "name": {
446
+ "not": {}
447
+ },
448
+ "config": {
449
+ "not": {}
450
+ },
451
+ "mtls": {
452
+ "not": {}
453
+ },
454
+ "bearer": {
455
+ "not": {}
456
+ },
457
+ "jwt": {
458
+ "type": "object",
459
+ "properties": {
460
+ "token": {
461
+ "anyOf": [
462
+ {
463
+ "type": "string"
464
+ },
465
+ {
466
+ "type": "object",
467
+ "properties": {
468
+ "file": {
469
+ "type": "string"
470
+ }
471
+ },
472
+ "required": [
473
+ "file"
474
+ ],
475
+ "additionalProperties": false
476
+ }
477
+ ]
478
+ }
479
+ },
480
+ "required": [
481
+ "token"
482
+ ],
483
+ "additionalProperties": false
484
+ },
485
+ "none": {
486
+ "not": {}
487
+ }
488
+ },
489
+ "required": [
490
+ "jwt"
491
+ ],
492
+ "additionalProperties": false
493
+ },
494
+ {
495
+ "type": "object",
496
+ "properties": {
497
+ "name": {
498
+ "not": {}
499
+ },
500
+ "config": {
501
+ "not": {}
502
+ },
503
+ "mtls": {
504
+ "not": {}
505
+ },
506
+ "bearer": {
507
+ "not": {}
508
+ },
509
+ "jwt": {
510
+ "not": {}
511
+ },
512
+ "none": {
513
+ "type": "object",
514
+ "properties": {
515
+ "identity": {
516
+ "type": "string"
517
+ }
518
+ },
519
+ "additionalProperties": false
520
+ }
521
+ },
522
+ "required": [
523
+ "none"
524
+ ],
525
+ "additionalProperties": false
526
+ }
527
+ ]
528
+ }
529
+ },
530
+ "required": [
531
+ "unix"
532
+ ],
533
+ "additionalProperties": false
534
+ },
535
+ {
536
+ "type": "object",
537
+ "properties": {
538
+ "url": {
539
+ "not": {}
540
+ },
541
+ "unix": {
542
+ "not": {}
543
+ },
544
+ "command": {
545
+ "type": "array",
546
+ "minItems": 1,
547
+ "items": [
548
+ {
549
+ "type": "string"
550
+ }
551
+ ],
552
+ "additionalItems": {
553
+ "type": "string"
554
+ }
555
+ },
556
+ "stdio": {
557
+ "not": {}
558
+ },
559
+ "local": {
560
+ "not": {}
561
+ },
562
+ "worker": {
563
+ "not": {}
564
+ },
565
+ "transport": {
566
+ "not": {}
567
+ },
568
+ "instance": {
569
+ "type": "string"
570
+ },
571
+ "lease": {
572
+ "type": "string"
573
+ },
574
+ "margin": {
575
+ "type": "string"
576
+ },
577
+ "expect": {
578
+ "type": "object",
579
+ "properties": {
580
+ "version": {
581
+ "type": "string"
582
+ },
583
+ "digest": {
584
+ "type": "string"
585
+ }
586
+ },
587
+ "additionalProperties": false
588
+ },
589
+ "auth": {
590
+ "not": {}
591
+ },
592
+ "cwd": {
593
+ "type": "string"
594
+ },
595
+ "env": {
596
+ "type": "object",
597
+ "additionalProperties": {
598
+ "type": "string"
599
+ }
600
+ }
601
+ },
602
+ "required": [
603
+ "command"
604
+ ],
605
+ "additionalProperties": false
606
+ },
607
+ {
608
+ "type": "object",
609
+ "properties": {
610
+ "url": {
611
+ "not": {}
612
+ },
613
+ "unix": {
614
+ "not": {}
615
+ },
616
+ "command": {
617
+ "not": {}
618
+ },
619
+ "stdio": {
620
+ "not": {}
621
+ },
622
+ "local": {
623
+ "type": "object",
624
+ "properties": {
625
+ "command": {
626
+ "type": "array",
627
+ "minItems": 1,
628
+ "items": [
629
+ {
630
+ "type": "string"
631
+ }
632
+ ],
633
+ "additionalItems": {
634
+ "type": "string"
635
+ }
636
+ }
637
+ },
638
+ "additionalProperties": false
639
+ },
640
+ "worker": {
641
+ "not": {}
642
+ },
643
+ "transport": {
644
+ "not": {}
645
+ },
646
+ "auth": {
647
+ "not": {}
648
+ }
649
+ },
650
+ "required": [
651
+ "local"
652
+ ],
653
+ "additionalProperties": false
654
+ },
655
+ {
656
+ "type": "object",
657
+ "properties": {
658
+ "url": {
659
+ "not": {}
660
+ },
661
+ "unix": {
662
+ "not": {}
663
+ },
664
+ "command": {
665
+ "not": {}
666
+ },
667
+ "stdio": {
668
+ "not": {}
669
+ },
670
+ "local": {
671
+ "not": {}
672
+ },
673
+ "worker": {
674
+ "type": "object",
675
+ "properties": {
676
+ "execArgv": {
677
+ "type": "array",
678
+ "items": {
679
+ "type": "string"
680
+ }
681
+ }
682
+ },
683
+ "additionalProperties": false
684
+ },
685
+ "transport": {
686
+ "not": {}
687
+ },
688
+ "auth": {
689
+ "not": {}
690
+ }
691
+ },
692
+ "required": [
693
+ "worker"
694
+ ],
695
+ "additionalProperties": false
696
+ },
697
+ {
698
+ "type": "object",
699
+ "properties": {
700
+ "url": {
701
+ "not": {}
702
+ },
703
+ "unix": {
704
+ "not": {}
705
+ },
706
+ "command": {
707
+ "not": {}
708
+ },
709
+ "stdio": {
710
+ "not": {}
711
+ },
712
+ "local": {
713
+ "not": {}
714
+ },
715
+ "worker": {
716
+ "not": {}
717
+ },
718
+ "transport": {
719
+ "type": "object",
720
+ "properties": {
721
+ "name": {
722
+ "type": "string"
723
+ },
724
+ "config": {}
725
+ },
726
+ "required": [
727
+ "name"
728
+ ],
729
+ "additionalProperties": false
730
+ },
731
+ "instance": {
732
+ "type": "string"
733
+ },
734
+ "lease": {
735
+ "type": "string"
736
+ },
737
+ "margin": {
738
+ "type": "string"
739
+ },
740
+ "expect": {
741
+ "type": "object",
742
+ "properties": {
743
+ "version": {
744
+ "type": "string"
745
+ },
746
+ "digest": {
747
+ "type": "string"
748
+ }
749
+ },
750
+ "additionalProperties": false
751
+ },
752
+ "auth": {
753
+ "anyOf": [
754
+ {
755
+ "type": "object",
756
+ "properties": {
757
+ "name": {
758
+ "type": "string"
759
+ },
760
+ "config": {},
761
+ "mtls": {
762
+ "not": {}
763
+ },
764
+ "bearer": {
765
+ "not": {}
766
+ },
767
+ "jwt": {
768
+ "not": {}
769
+ },
770
+ "none": {
771
+ "not": {}
772
+ }
773
+ },
774
+ "required": [
775
+ "name"
776
+ ],
777
+ "additionalProperties": false
778
+ },
779
+ {
780
+ "type": "object",
781
+ "properties": {
782
+ "name": {
783
+ "not": {}
784
+ },
785
+ "config": {
786
+ "not": {}
787
+ },
788
+ "mtls": {
789
+ "type": "object",
790
+ "properties": {
791
+ "cert": {
792
+ "type": "string"
793
+ },
794
+ "key": {
795
+ "type": "string"
796
+ }
797
+ },
798
+ "required": [
799
+ "cert",
800
+ "key"
801
+ ],
802
+ "additionalProperties": false
803
+ },
804
+ "bearer": {
805
+ "not": {}
806
+ },
807
+ "jwt": {
808
+ "not": {}
809
+ },
810
+ "none": {
811
+ "not": {}
812
+ }
813
+ },
814
+ "required": [
815
+ "mtls"
816
+ ],
817
+ "additionalProperties": false
818
+ },
819
+ {
820
+ "type": "object",
821
+ "properties": {
822
+ "name": {
823
+ "not": {}
824
+ },
825
+ "config": {
826
+ "not": {}
827
+ },
828
+ "mtls": {
829
+ "not": {}
830
+ },
831
+ "bearer": {
832
+ "type": "object",
833
+ "properties": {
834
+ "token": {
835
+ "anyOf": [
836
+ {
837
+ "type": "string"
838
+ },
839
+ {
840
+ "type": "object",
841
+ "properties": {
842
+ "file": {
843
+ "type": "string"
844
+ }
845
+ },
846
+ "required": [
847
+ "file"
848
+ ],
849
+ "additionalProperties": false
850
+ }
851
+ ]
852
+ }
853
+ },
854
+ "required": [
855
+ "token"
856
+ ],
857
+ "additionalProperties": false
858
+ },
859
+ "jwt": {
860
+ "not": {}
861
+ },
862
+ "none": {
863
+ "not": {}
864
+ }
865
+ },
866
+ "required": [
867
+ "bearer"
868
+ ],
869
+ "additionalProperties": false
870
+ },
871
+ {
872
+ "type": "object",
873
+ "properties": {
874
+ "name": {
875
+ "not": {}
876
+ },
877
+ "config": {
878
+ "not": {}
879
+ },
880
+ "mtls": {
881
+ "not": {}
882
+ },
883
+ "bearer": {
884
+ "not": {}
885
+ },
886
+ "jwt": {
887
+ "type": "object",
888
+ "properties": {
889
+ "token": {
890
+ "anyOf": [
891
+ {
892
+ "type": "string"
893
+ },
894
+ {
895
+ "type": "object",
896
+ "properties": {
897
+ "file": {
898
+ "type": "string"
899
+ }
900
+ },
901
+ "required": [
902
+ "file"
903
+ ],
904
+ "additionalProperties": false
905
+ }
906
+ ]
907
+ }
908
+ },
909
+ "required": [
910
+ "token"
911
+ ],
912
+ "additionalProperties": false
913
+ },
914
+ "none": {
915
+ "not": {}
916
+ }
917
+ },
918
+ "required": [
919
+ "jwt"
920
+ ],
921
+ "additionalProperties": false
922
+ },
923
+ {
924
+ "type": "object",
925
+ "properties": {
926
+ "name": {
927
+ "not": {}
928
+ },
929
+ "config": {
930
+ "not": {}
931
+ },
932
+ "mtls": {
933
+ "not": {}
934
+ },
935
+ "bearer": {
936
+ "not": {}
937
+ },
938
+ "jwt": {
939
+ "not": {}
940
+ },
941
+ "none": {
942
+ "type": "object",
943
+ "properties": {
944
+ "identity": {
945
+ "type": "string"
946
+ }
947
+ },
948
+ "additionalProperties": false
949
+ }
950
+ },
951
+ "required": [
952
+ "none"
953
+ ],
954
+ "additionalProperties": false
955
+ }
956
+ ]
957
+ }
958
+ },
959
+ "required": [
960
+ "transport"
961
+ ],
962
+ "additionalProperties": false
963
+ }
964
+ ]
965
+ },
966
+ "config": {}
967
+ },
968
+ "required": [
969
+ "contract",
970
+ "connect"
971
+ ],
972
+ "additionalProperties": false
973
+ },
974
+ "required": true
975
+ },
976
+ {
977
+ "names": [
978
+ "remote/runner",
979
+ "@graftland/plugin-remote/runner"
980
+ ],
981
+ "schema": {
982
+ "type": "object",
983
+ "properties": {
984
+ "root": {
985
+ "type": "string"
986
+ },
987
+ "state": {
988
+ "type": "string"
989
+ },
990
+ "lease": {
991
+ "type": "string"
992
+ },
993
+ "grace": {
994
+ "type": "string"
995
+ },
996
+ "listen": {
997
+ "type": "array",
998
+ "items": {
999
+ "anyOf": [
1000
+ {
1001
+ "type": "object",
1002
+ "properties": {
1003
+ "url": {
1004
+ "type": "string",
1005
+ "pattern": "^ws:\\/\\/"
1006
+ },
1007
+ "unix": {
1008
+ "not": {}
1009
+ },
1010
+ "command": {
1011
+ "not": {}
1012
+ },
1013
+ "stdio": {
1014
+ "not": {}
1015
+ },
1016
+ "local": {
1017
+ "not": {}
1018
+ },
1019
+ "worker": {
1020
+ "not": {}
1021
+ },
1022
+ "transport": {
1023
+ "not": {}
1024
+ },
1025
+ "auth": {
1026
+ "anyOf": [
1027
+ {
1028
+ "type": "object",
1029
+ "properties": {
1030
+ "name": {
1031
+ "type": "string"
1032
+ },
1033
+ "config": {},
1034
+ "mtls": {
1035
+ "not": {}
1036
+ },
1037
+ "bearer": {
1038
+ "not": {}
1039
+ },
1040
+ "jwt": {
1041
+ "not": {}
1042
+ },
1043
+ "none": {
1044
+ "not": {}
1045
+ }
1046
+ },
1047
+ "required": [
1048
+ "name"
1049
+ ],
1050
+ "additionalProperties": false
1051
+ },
1052
+ {
1053
+ "type": "object",
1054
+ "properties": {
1055
+ "name": {
1056
+ "not": {}
1057
+ },
1058
+ "config": {
1059
+ "not": {}
1060
+ },
1061
+ "mtls": {
1062
+ "type": "object",
1063
+ "properties": {
1064
+ "ca": {
1065
+ "type": "string"
1066
+ }
1067
+ },
1068
+ "required": [
1069
+ "ca"
1070
+ ],
1071
+ "additionalProperties": false
1072
+ },
1073
+ "bearer": {
1074
+ "not": {}
1075
+ },
1076
+ "jwt": {
1077
+ "not": {}
1078
+ },
1079
+ "none": {
1080
+ "not": {}
1081
+ }
1082
+ },
1083
+ "required": [
1084
+ "mtls"
1085
+ ],
1086
+ "additionalProperties": false
1087
+ },
1088
+ {
1089
+ "type": "object",
1090
+ "properties": {
1091
+ "name": {
1092
+ "not": {}
1093
+ },
1094
+ "config": {
1095
+ "not": {}
1096
+ },
1097
+ "mtls": {
1098
+ "not": {}
1099
+ },
1100
+ "bearer": {
1101
+ "type": "object",
1102
+ "properties": {
1103
+ "tokens": {
1104
+ "type": "string"
1105
+ }
1106
+ },
1107
+ "required": [
1108
+ "tokens"
1109
+ ],
1110
+ "additionalProperties": false
1111
+ },
1112
+ "jwt": {
1113
+ "not": {}
1114
+ },
1115
+ "none": {
1116
+ "not": {}
1117
+ }
1118
+ },
1119
+ "required": [
1120
+ "bearer"
1121
+ ],
1122
+ "additionalProperties": false
1123
+ },
1124
+ {
1125
+ "type": "object",
1126
+ "properties": {
1127
+ "name": {
1128
+ "not": {}
1129
+ },
1130
+ "config": {
1131
+ "not": {}
1132
+ },
1133
+ "mtls": {
1134
+ "not": {}
1135
+ },
1136
+ "bearer": {
1137
+ "not": {}
1138
+ },
1139
+ "jwt": {
1140
+ "type": "object",
1141
+ "properties": {
1142
+ "issuer": {
1143
+ "type": "string",
1144
+ "minLength": 1
1145
+ },
1146
+ "audience": {
1147
+ "type": "array",
1148
+ "minItems": 1,
1149
+ "items": [
1150
+ {
1151
+ "type": "string",
1152
+ "minLength": 1
1153
+ }
1154
+ ],
1155
+ "additionalItems": {
1156
+ "type": "string",
1157
+ "minLength": 1
1158
+ }
1159
+ },
1160
+ "algorithms": {
1161
+ "type": "array",
1162
+ "minItems": 1,
1163
+ "items": [
1164
+ {
1165
+ "type": "string",
1166
+ "enum": [
1167
+ "RS256",
1168
+ "RS384",
1169
+ "RS512",
1170
+ "PS256",
1171
+ "PS384",
1172
+ "PS512",
1173
+ "ES256",
1174
+ "ES384",
1175
+ "ES512",
1176
+ "EdDSA"
1177
+ ]
1178
+ }
1179
+ ],
1180
+ "additionalItems": {
1181
+ "type": "string",
1182
+ "enum": [
1183
+ "RS256",
1184
+ "RS384",
1185
+ "RS512",
1186
+ "PS256",
1187
+ "PS384",
1188
+ "PS512",
1189
+ "ES256",
1190
+ "ES384",
1191
+ "ES512",
1192
+ "EdDSA"
1193
+ ]
1194
+ }
1195
+ },
1196
+ "identityClaim": {
1197
+ "type": "string",
1198
+ "minLength": 1
1199
+ },
1200
+ "clockTolerance": {
1201
+ "type": "string"
1202
+ },
1203
+ "keys": {
1204
+ "anyOf": [
1205
+ {
1206
+ "type": "object",
1207
+ "properties": {
1208
+ "jwksUrl": {
1209
+ "type": "string"
1210
+ },
1211
+ "publicKey": {
1212
+ "not": {}
1213
+ }
1214
+ },
1215
+ "required": [
1216
+ "jwksUrl"
1217
+ ],
1218
+ "additionalProperties": false
1219
+ },
1220
+ {
1221
+ "type": "object",
1222
+ "properties": {
1223
+ "publicKey": {
1224
+ "type": "string"
1225
+ },
1226
+ "jwksUrl": {
1227
+ "not": {}
1228
+ }
1229
+ },
1230
+ "required": [
1231
+ "publicKey"
1232
+ ],
1233
+ "additionalProperties": false
1234
+ }
1235
+ ]
1236
+ }
1237
+ },
1238
+ "required": [
1239
+ "issuer",
1240
+ "audience",
1241
+ "algorithms",
1242
+ "keys"
1243
+ ],
1244
+ "additionalProperties": false
1245
+ },
1246
+ "none": {
1247
+ "not": {}
1248
+ }
1249
+ },
1250
+ "required": [
1251
+ "jwt"
1252
+ ],
1253
+ "additionalProperties": false
1254
+ },
1255
+ {
1256
+ "type": "object",
1257
+ "properties": {
1258
+ "name": {
1259
+ "not": {}
1260
+ },
1261
+ "config": {
1262
+ "not": {}
1263
+ },
1264
+ "mtls": {
1265
+ "not": {}
1266
+ },
1267
+ "bearer": {
1268
+ "not": {}
1269
+ },
1270
+ "jwt": {
1271
+ "not": {}
1272
+ },
1273
+ "none": {
1274
+ "type": "object",
1275
+ "properties": {
1276
+ "identity": {
1277
+ "type": "string"
1278
+ }
1279
+ },
1280
+ "additionalProperties": false
1281
+ }
1282
+ },
1283
+ "required": [
1284
+ "none"
1285
+ ],
1286
+ "additionalProperties": false
1287
+ }
1288
+ ]
1289
+ },
1290
+ "cert": {
1291
+ "not": {}
1292
+ },
1293
+ "key": {
1294
+ "not": {}
1295
+ }
1296
+ },
1297
+ "required": [
1298
+ "url"
1299
+ ],
1300
+ "additionalProperties": false
1301
+ },
1302
+ {
1303
+ "type": "object",
1304
+ "properties": {
1305
+ "url": {
1306
+ "type": "string",
1307
+ "pattern": "^wss:\\/\\/"
1308
+ },
1309
+ "unix": {
1310
+ "not": {}
1311
+ },
1312
+ "command": {
1313
+ "not": {}
1314
+ },
1315
+ "stdio": {
1316
+ "not": {}
1317
+ },
1318
+ "local": {
1319
+ "not": {}
1320
+ },
1321
+ "worker": {
1322
+ "not": {}
1323
+ },
1324
+ "transport": {
1325
+ "not": {}
1326
+ },
1327
+ "auth": {
1328
+ "anyOf": [
1329
+ {
1330
+ "type": "object",
1331
+ "properties": {
1332
+ "name": {
1333
+ "type": "string"
1334
+ },
1335
+ "config": {},
1336
+ "mtls": {
1337
+ "not": {}
1338
+ },
1339
+ "bearer": {
1340
+ "not": {}
1341
+ },
1342
+ "jwt": {
1343
+ "not": {}
1344
+ },
1345
+ "none": {
1346
+ "not": {}
1347
+ }
1348
+ },
1349
+ "required": [
1350
+ "name"
1351
+ ],
1352
+ "additionalProperties": false
1353
+ },
1354
+ {
1355
+ "type": "object",
1356
+ "properties": {
1357
+ "name": {
1358
+ "not": {}
1359
+ },
1360
+ "config": {
1361
+ "not": {}
1362
+ },
1363
+ "mtls": {
1364
+ "type": "object",
1365
+ "properties": {
1366
+ "ca": {
1367
+ "type": "string"
1368
+ }
1369
+ },
1370
+ "required": [
1371
+ "ca"
1372
+ ],
1373
+ "additionalProperties": false
1374
+ },
1375
+ "bearer": {
1376
+ "not": {}
1377
+ },
1378
+ "jwt": {
1379
+ "not": {}
1380
+ },
1381
+ "none": {
1382
+ "not": {}
1383
+ }
1384
+ },
1385
+ "required": [
1386
+ "mtls"
1387
+ ],
1388
+ "additionalProperties": false
1389
+ },
1390
+ {
1391
+ "type": "object",
1392
+ "properties": {
1393
+ "name": {
1394
+ "not": {}
1395
+ },
1396
+ "config": {
1397
+ "not": {}
1398
+ },
1399
+ "mtls": {
1400
+ "not": {}
1401
+ },
1402
+ "bearer": {
1403
+ "type": "object",
1404
+ "properties": {
1405
+ "tokens": {
1406
+ "type": "string"
1407
+ }
1408
+ },
1409
+ "required": [
1410
+ "tokens"
1411
+ ],
1412
+ "additionalProperties": false
1413
+ },
1414
+ "jwt": {
1415
+ "not": {}
1416
+ },
1417
+ "none": {
1418
+ "not": {}
1419
+ }
1420
+ },
1421
+ "required": [
1422
+ "bearer"
1423
+ ],
1424
+ "additionalProperties": false
1425
+ },
1426
+ {
1427
+ "type": "object",
1428
+ "properties": {
1429
+ "name": {
1430
+ "not": {}
1431
+ },
1432
+ "config": {
1433
+ "not": {}
1434
+ },
1435
+ "mtls": {
1436
+ "not": {}
1437
+ },
1438
+ "bearer": {
1439
+ "not": {}
1440
+ },
1441
+ "jwt": {
1442
+ "type": "object",
1443
+ "properties": {
1444
+ "issuer": {
1445
+ "type": "string",
1446
+ "minLength": 1
1447
+ },
1448
+ "audience": {
1449
+ "type": "array",
1450
+ "minItems": 1,
1451
+ "items": [
1452
+ {
1453
+ "type": "string",
1454
+ "minLength": 1
1455
+ }
1456
+ ],
1457
+ "additionalItems": {
1458
+ "type": "string",
1459
+ "minLength": 1
1460
+ }
1461
+ },
1462
+ "algorithms": {
1463
+ "type": "array",
1464
+ "minItems": 1,
1465
+ "items": [
1466
+ {
1467
+ "type": "string",
1468
+ "enum": [
1469
+ "RS256",
1470
+ "RS384",
1471
+ "RS512",
1472
+ "PS256",
1473
+ "PS384",
1474
+ "PS512",
1475
+ "ES256",
1476
+ "ES384",
1477
+ "ES512",
1478
+ "EdDSA"
1479
+ ]
1480
+ }
1481
+ ],
1482
+ "additionalItems": {
1483
+ "type": "string",
1484
+ "enum": [
1485
+ "RS256",
1486
+ "RS384",
1487
+ "RS512",
1488
+ "PS256",
1489
+ "PS384",
1490
+ "PS512",
1491
+ "ES256",
1492
+ "ES384",
1493
+ "ES512",
1494
+ "EdDSA"
1495
+ ]
1496
+ }
1497
+ },
1498
+ "identityClaim": {
1499
+ "type": "string",
1500
+ "minLength": 1
1501
+ },
1502
+ "clockTolerance": {
1503
+ "type": "string"
1504
+ },
1505
+ "keys": {
1506
+ "anyOf": [
1507
+ {
1508
+ "type": "object",
1509
+ "properties": {
1510
+ "jwksUrl": {
1511
+ "type": "string"
1512
+ },
1513
+ "publicKey": {
1514
+ "not": {}
1515
+ }
1516
+ },
1517
+ "required": [
1518
+ "jwksUrl"
1519
+ ],
1520
+ "additionalProperties": false
1521
+ },
1522
+ {
1523
+ "type": "object",
1524
+ "properties": {
1525
+ "publicKey": {
1526
+ "type": "string"
1527
+ },
1528
+ "jwksUrl": {
1529
+ "not": {}
1530
+ }
1531
+ },
1532
+ "required": [
1533
+ "publicKey"
1534
+ ],
1535
+ "additionalProperties": false
1536
+ }
1537
+ ]
1538
+ }
1539
+ },
1540
+ "required": [
1541
+ "issuer",
1542
+ "audience",
1543
+ "algorithms",
1544
+ "keys"
1545
+ ],
1546
+ "additionalProperties": false
1547
+ },
1548
+ "none": {
1549
+ "not": {}
1550
+ }
1551
+ },
1552
+ "required": [
1553
+ "jwt"
1554
+ ],
1555
+ "additionalProperties": false
1556
+ },
1557
+ {
1558
+ "type": "object",
1559
+ "properties": {
1560
+ "name": {
1561
+ "not": {}
1562
+ },
1563
+ "config": {
1564
+ "not": {}
1565
+ },
1566
+ "mtls": {
1567
+ "not": {}
1568
+ },
1569
+ "bearer": {
1570
+ "not": {}
1571
+ },
1572
+ "jwt": {
1573
+ "not": {}
1574
+ },
1575
+ "none": {
1576
+ "type": "object",
1577
+ "properties": {
1578
+ "identity": {
1579
+ "type": "string"
1580
+ }
1581
+ },
1582
+ "additionalProperties": false
1583
+ }
1584
+ },
1585
+ "required": [
1586
+ "none"
1587
+ ],
1588
+ "additionalProperties": false
1589
+ }
1590
+ ]
1591
+ },
1592
+ "cert": {
1593
+ "type": "string"
1594
+ },
1595
+ "key": {
1596
+ "type": "string"
1597
+ }
1598
+ },
1599
+ "required": [
1600
+ "url",
1601
+ "cert",
1602
+ "key"
1603
+ ],
1604
+ "additionalProperties": false
1605
+ },
1606
+ {
1607
+ "type": "object",
1608
+ "properties": {
1609
+ "url": {
1610
+ "not": {}
1611
+ },
1612
+ "unix": {
1613
+ "type": "string"
1614
+ },
1615
+ "command": {
1616
+ "not": {}
1617
+ },
1618
+ "stdio": {
1619
+ "not": {}
1620
+ },
1621
+ "local": {
1622
+ "not": {}
1623
+ },
1624
+ "worker": {
1625
+ "not": {}
1626
+ },
1627
+ "transport": {
1628
+ "not": {}
1629
+ },
1630
+ "auth": {
1631
+ "anyOf": [
1632
+ {
1633
+ "type": "object",
1634
+ "properties": {
1635
+ "name": {
1636
+ "type": "string"
1637
+ },
1638
+ "config": {},
1639
+ "mtls": {
1640
+ "not": {}
1641
+ },
1642
+ "bearer": {
1643
+ "not": {}
1644
+ },
1645
+ "jwt": {
1646
+ "not": {}
1647
+ },
1648
+ "none": {
1649
+ "not": {}
1650
+ }
1651
+ },
1652
+ "required": [
1653
+ "name"
1654
+ ],
1655
+ "additionalProperties": false
1656
+ },
1657
+ {
1658
+ "type": "object",
1659
+ "properties": {
1660
+ "name": {
1661
+ "not": {}
1662
+ },
1663
+ "config": {
1664
+ "not": {}
1665
+ },
1666
+ "mtls": {
1667
+ "type": "object",
1668
+ "properties": {
1669
+ "ca": {
1670
+ "type": "string"
1671
+ }
1672
+ },
1673
+ "required": [
1674
+ "ca"
1675
+ ],
1676
+ "additionalProperties": false
1677
+ },
1678
+ "bearer": {
1679
+ "not": {}
1680
+ },
1681
+ "jwt": {
1682
+ "not": {}
1683
+ },
1684
+ "none": {
1685
+ "not": {}
1686
+ }
1687
+ },
1688
+ "required": [
1689
+ "mtls"
1690
+ ],
1691
+ "additionalProperties": false
1692
+ },
1693
+ {
1694
+ "type": "object",
1695
+ "properties": {
1696
+ "name": {
1697
+ "not": {}
1698
+ },
1699
+ "config": {
1700
+ "not": {}
1701
+ },
1702
+ "mtls": {
1703
+ "not": {}
1704
+ },
1705
+ "bearer": {
1706
+ "type": "object",
1707
+ "properties": {
1708
+ "tokens": {
1709
+ "type": "string"
1710
+ }
1711
+ },
1712
+ "required": [
1713
+ "tokens"
1714
+ ],
1715
+ "additionalProperties": false
1716
+ },
1717
+ "jwt": {
1718
+ "not": {}
1719
+ },
1720
+ "none": {
1721
+ "not": {}
1722
+ }
1723
+ },
1724
+ "required": [
1725
+ "bearer"
1726
+ ],
1727
+ "additionalProperties": false
1728
+ },
1729
+ {
1730
+ "type": "object",
1731
+ "properties": {
1732
+ "name": {
1733
+ "not": {}
1734
+ },
1735
+ "config": {
1736
+ "not": {}
1737
+ },
1738
+ "mtls": {
1739
+ "not": {}
1740
+ },
1741
+ "bearer": {
1742
+ "not": {}
1743
+ },
1744
+ "jwt": {
1745
+ "type": "object",
1746
+ "properties": {
1747
+ "issuer": {
1748
+ "type": "string",
1749
+ "minLength": 1
1750
+ },
1751
+ "audience": {
1752
+ "type": "array",
1753
+ "minItems": 1,
1754
+ "items": [
1755
+ {
1756
+ "type": "string",
1757
+ "minLength": 1
1758
+ }
1759
+ ],
1760
+ "additionalItems": {
1761
+ "type": "string",
1762
+ "minLength": 1
1763
+ }
1764
+ },
1765
+ "algorithms": {
1766
+ "type": "array",
1767
+ "minItems": 1,
1768
+ "items": [
1769
+ {
1770
+ "type": "string",
1771
+ "enum": [
1772
+ "RS256",
1773
+ "RS384",
1774
+ "RS512",
1775
+ "PS256",
1776
+ "PS384",
1777
+ "PS512",
1778
+ "ES256",
1779
+ "ES384",
1780
+ "ES512",
1781
+ "EdDSA"
1782
+ ]
1783
+ }
1784
+ ],
1785
+ "additionalItems": {
1786
+ "type": "string",
1787
+ "enum": [
1788
+ "RS256",
1789
+ "RS384",
1790
+ "RS512",
1791
+ "PS256",
1792
+ "PS384",
1793
+ "PS512",
1794
+ "ES256",
1795
+ "ES384",
1796
+ "ES512",
1797
+ "EdDSA"
1798
+ ]
1799
+ }
1800
+ },
1801
+ "identityClaim": {
1802
+ "type": "string",
1803
+ "minLength": 1
1804
+ },
1805
+ "clockTolerance": {
1806
+ "type": "string"
1807
+ },
1808
+ "keys": {
1809
+ "anyOf": [
1810
+ {
1811
+ "type": "object",
1812
+ "properties": {
1813
+ "jwksUrl": {
1814
+ "type": "string"
1815
+ },
1816
+ "publicKey": {
1817
+ "not": {}
1818
+ }
1819
+ },
1820
+ "required": [
1821
+ "jwksUrl"
1822
+ ],
1823
+ "additionalProperties": false
1824
+ },
1825
+ {
1826
+ "type": "object",
1827
+ "properties": {
1828
+ "publicKey": {
1829
+ "type": "string"
1830
+ },
1831
+ "jwksUrl": {
1832
+ "not": {}
1833
+ }
1834
+ },
1835
+ "required": [
1836
+ "publicKey"
1837
+ ],
1838
+ "additionalProperties": false
1839
+ }
1840
+ ]
1841
+ }
1842
+ },
1843
+ "required": [
1844
+ "issuer",
1845
+ "audience",
1846
+ "algorithms",
1847
+ "keys"
1848
+ ],
1849
+ "additionalProperties": false
1850
+ },
1851
+ "none": {
1852
+ "not": {}
1853
+ }
1854
+ },
1855
+ "required": [
1856
+ "jwt"
1857
+ ],
1858
+ "additionalProperties": false
1859
+ },
1860
+ {
1861
+ "type": "object",
1862
+ "properties": {
1863
+ "name": {
1864
+ "not": {}
1865
+ },
1866
+ "config": {
1867
+ "not": {}
1868
+ },
1869
+ "mtls": {
1870
+ "not": {}
1871
+ },
1872
+ "bearer": {
1873
+ "not": {}
1874
+ },
1875
+ "jwt": {
1876
+ "not": {}
1877
+ },
1878
+ "none": {
1879
+ "type": "object",
1880
+ "properties": {
1881
+ "identity": {
1882
+ "type": "string"
1883
+ }
1884
+ },
1885
+ "additionalProperties": false
1886
+ }
1887
+ },
1888
+ "required": [
1889
+ "none"
1890
+ ],
1891
+ "additionalProperties": false
1892
+ }
1893
+ ]
1894
+ }
1895
+ },
1896
+ "required": [
1897
+ "unix"
1898
+ ],
1899
+ "additionalProperties": false
1900
+ },
1901
+ {
1902
+ "type": "object",
1903
+ "properties": {
1904
+ "url": {
1905
+ "not": {}
1906
+ },
1907
+ "unix": {
1908
+ "not": {}
1909
+ },
1910
+ "command": {
1911
+ "not": {}
1912
+ },
1913
+ "stdio": {
1914
+ "type": "boolean",
1915
+ "enum": [
1916
+ true
1917
+ ]
1918
+ },
1919
+ "local": {
1920
+ "not": {}
1921
+ },
1922
+ "worker": {
1923
+ "not": {}
1924
+ },
1925
+ "transport": {
1926
+ "not": {}
1927
+ },
1928
+ "auth": {
1929
+ "not": {}
1930
+ },
1931
+ "identity": {
1932
+ "type": "string"
1933
+ }
1934
+ },
1935
+ "required": [
1936
+ "stdio"
1937
+ ],
1938
+ "additionalProperties": false
1939
+ },
1940
+ {
1941
+ "type": "object",
1942
+ "properties": {
1943
+ "url": {
1944
+ "not": {}
1945
+ },
1946
+ "unix": {
1947
+ "not": {}
1948
+ },
1949
+ "command": {
1950
+ "not": {}
1951
+ },
1952
+ "stdio": {
1953
+ "not": {}
1954
+ },
1955
+ "local": {
1956
+ "not": {}
1957
+ },
1958
+ "worker": {
1959
+ "not": {}
1960
+ },
1961
+ "transport": {
1962
+ "type": "object",
1963
+ "properties": {
1964
+ "name": {
1965
+ "type": "string"
1966
+ },
1967
+ "config": {}
1968
+ },
1969
+ "required": [
1970
+ "name"
1971
+ ],
1972
+ "additionalProperties": false
1973
+ },
1974
+ "auth": {
1975
+ "anyOf": [
1976
+ {
1977
+ "type": "object",
1978
+ "properties": {
1979
+ "name": {
1980
+ "type": "string"
1981
+ },
1982
+ "config": {},
1983
+ "mtls": {
1984
+ "not": {}
1985
+ },
1986
+ "bearer": {
1987
+ "not": {}
1988
+ },
1989
+ "jwt": {
1990
+ "not": {}
1991
+ },
1992
+ "none": {
1993
+ "not": {}
1994
+ }
1995
+ },
1996
+ "required": [
1997
+ "name"
1998
+ ],
1999
+ "additionalProperties": false
2000
+ },
2001
+ {
2002
+ "type": "object",
2003
+ "properties": {
2004
+ "name": {
2005
+ "not": {}
2006
+ },
2007
+ "config": {
2008
+ "not": {}
2009
+ },
2010
+ "mtls": {
2011
+ "type": "object",
2012
+ "properties": {
2013
+ "ca": {
2014
+ "type": "string"
2015
+ }
2016
+ },
2017
+ "required": [
2018
+ "ca"
2019
+ ],
2020
+ "additionalProperties": false
2021
+ },
2022
+ "bearer": {
2023
+ "not": {}
2024
+ },
2025
+ "jwt": {
2026
+ "not": {}
2027
+ },
2028
+ "none": {
2029
+ "not": {}
2030
+ }
2031
+ },
2032
+ "required": [
2033
+ "mtls"
2034
+ ],
2035
+ "additionalProperties": false
2036
+ },
2037
+ {
2038
+ "type": "object",
2039
+ "properties": {
2040
+ "name": {
2041
+ "not": {}
2042
+ },
2043
+ "config": {
2044
+ "not": {}
2045
+ },
2046
+ "mtls": {
2047
+ "not": {}
2048
+ },
2049
+ "bearer": {
2050
+ "type": "object",
2051
+ "properties": {
2052
+ "tokens": {
2053
+ "type": "string"
2054
+ }
2055
+ },
2056
+ "required": [
2057
+ "tokens"
2058
+ ],
2059
+ "additionalProperties": false
2060
+ },
2061
+ "jwt": {
2062
+ "not": {}
2063
+ },
2064
+ "none": {
2065
+ "not": {}
2066
+ }
2067
+ },
2068
+ "required": [
2069
+ "bearer"
2070
+ ],
2071
+ "additionalProperties": false
2072
+ },
2073
+ {
2074
+ "type": "object",
2075
+ "properties": {
2076
+ "name": {
2077
+ "not": {}
2078
+ },
2079
+ "config": {
2080
+ "not": {}
2081
+ },
2082
+ "mtls": {
2083
+ "not": {}
2084
+ },
2085
+ "bearer": {
2086
+ "not": {}
2087
+ },
2088
+ "jwt": {
2089
+ "type": "object",
2090
+ "properties": {
2091
+ "issuer": {
2092
+ "type": "string",
2093
+ "minLength": 1
2094
+ },
2095
+ "audience": {
2096
+ "type": "array",
2097
+ "minItems": 1,
2098
+ "items": [
2099
+ {
2100
+ "type": "string",
2101
+ "minLength": 1
2102
+ }
2103
+ ],
2104
+ "additionalItems": {
2105
+ "type": "string",
2106
+ "minLength": 1
2107
+ }
2108
+ },
2109
+ "algorithms": {
2110
+ "type": "array",
2111
+ "minItems": 1,
2112
+ "items": [
2113
+ {
2114
+ "type": "string",
2115
+ "enum": [
2116
+ "RS256",
2117
+ "RS384",
2118
+ "RS512",
2119
+ "PS256",
2120
+ "PS384",
2121
+ "PS512",
2122
+ "ES256",
2123
+ "ES384",
2124
+ "ES512",
2125
+ "EdDSA"
2126
+ ]
2127
+ }
2128
+ ],
2129
+ "additionalItems": {
2130
+ "type": "string",
2131
+ "enum": [
2132
+ "RS256",
2133
+ "RS384",
2134
+ "RS512",
2135
+ "PS256",
2136
+ "PS384",
2137
+ "PS512",
2138
+ "ES256",
2139
+ "ES384",
2140
+ "ES512",
2141
+ "EdDSA"
2142
+ ]
2143
+ }
2144
+ },
2145
+ "identityClaim": {
2146
+ "type": "string",
2147
+ "minLength": 1
2148
+ },
2149
+ "clockTolerance": {
2150
+ "type": "string"
2151
+ },
2152
+ "keys": {
2153
+ "anyOf": [
2154
+ {
2155
+ "type": "object",
2156
+ "properties": {
2157
+ "jwksUrl": {
2158
+ "type": "string"
2159
+ },
2160
+ "publicKey": {
2161
+ "not": {}
2162
+ }
2163
+ },
2164
+ "required": [
2165
+ "jwksUrl"
2166
+ ],
2167
+ "additionalProperties": false
2168
+ },
2169
+ {
2170
+ "type": "object",
2171
+ "properties": {
2172
+ "publicKey": {
2173
+ "type": "string"
2174
+ },
2175
+ "jwksUrl": {
2176
+ "not": {}
2177
+ }
2178
+ },
2179
+ "required": [
2180
+ "publicKey"
2181
+ ],
2182
+ "additionalProperties": false
2183
+ }
2184
+ ]
2185
+ }
2186
+ },
2187
+ "required": [
2188
+ "issuer",
2189
+ "audience",
2190
+ "algorithms",
2191
+ "keys"
2192
+ ],
2193
+ "additionalProperties": false
2194
+ },
2195
+ "none": {
2196
+ "not": {}
2197
+ }
2198
+ },
2199
+ "required": [
2200
+ "jwt"
2201
+ ],
2202
+ "additionalProperties": false
2203
+ },
2204
+ {
2205
+ "type": "object",
2206
+ "properties": {
2207
+ "name": {
2208
+ "not": {}
2209
+ },
2210
+ "config": {
2211
+ "not": {}
2212
+ },
2213
+ "mtls": {
2214
+ "not": {}
2215
+ },
2216
+ "bearer": {
2217
+ "not": {}
2218
+ },
2219
+ "jwt": {
2220
+ "not": {}
2221
+ },
2222
+ "none": {
2223
+ "type": "object",
2224
+ "properties": {
2225
+ "identity": {
2226
+ "type": "string"
2227
+ }
2228
+ },
2229
+ "additionalProperties": false
2230
+ }
2231
+ },
2232
+ "required": [
2233
+ "none"
2234
+ ],
2235
+ "additionalProperties": false
2236
+ }
2237
+ ]
2238
+ }
2239
+ },
2240
+ "required": [
2241
+ "transport"
2242
+ ],
2243
+ "additionalProperties": false
2244
+ }
2245
+ ]
2246
+ }
2247
+ }
2248
+ },
2249
+ "required": [
2250
+ "root",
2251
+ "state",
2252
+ "listen"
2253
+ ],
2254
+ "additionalProperties": false
2255
+ },
2256
+ "required": true
2257
+ },
2258
+ {
2259
+ "names": [
2260
+ "remote/cli",
2261
+ "@graftland/plugin-remote/cli"
2262
+ ],
2263
+ "schema": {
2264
+ "not": {
2265
+ "type": "null"
2266
+ }
2267
+ }
2268
+ }
2269
+ ]