@qlever-llc/trellis 0.10.17 → 0.19.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/esm/auth/mod.d.ts +1 -1
  2. package/esm/auth/mod.d.ts.map +1 -1
  3. package/esm/auth/mod.js +1 -1
  4. package/esm/auth/protocol.d.ts +416 -398
  5. package/esm/auth/protocol.d.ts.map +1 -1
  6. package/esm/auth/protocol.js +35 -33
  7. package/esm/codec.d.ts +1 -0
  8. package/esm/codec.d.ts.map +1 -1
  9. package/esm/codec.js +1 -0
  10. package/esm/contract_support/canonical.d.ts +3 -0
  11. package/esm/contract_support/canonical.d.ts.map +1 -1
  12. package/esm/contract_support/canonical.js +3 -0
  13. package/esm/contract_support/mod.d.ts +28 -4
  14. package/esm/contract_support/mod.d.ts.map +1 -1
  15. package/esm/contract_support/mod.js +85 -4
  16. package/esm/contract_support/protocol.d.ts +92 -7
  17. package/esm/contract_support/protocol.d.ts.map +1 -1
  18. package/esm/contract_support/protocol.js +40 -6
  19. package/esm/errors/index.d.ts +9 -9
  20. package/esm/generated-sdk/auth/api.d.ts +4 -1
  21. package/esm/generated-sdk/auth/api.d.ts.map +1 -1
  22. package/esm/generated-sdk/auth/api.js +6 -1
  23. package/esm/generated-sdk/auth/client.d.ts +47 -32
  24. package/esm/generated-sdk/auth/client.d.ts.map +1 -1
  25. package/esm/generated-sdk/auth/contract.d.ts +1 -1
  26. package/esm/generated-sdk/auth/contract.d.ts.map +1 -1
  27. package/esm/generated-sdk/auth/contract.js +1570 -1202
  28. package/esm/generated-sdk/auth/schemas.d.ts +1757 -1759
  29. package/esm/generated-sdk/auth/schemas.d.ts.map +1 -1
  30. package/esm/generated-sdk/auth/schemas.js +963 -768
  31. package/esm/generated-sdk/auth/types.d.ts +292 -302
  32. package/esm/generated-sdk/auth/types.d.ts.map +1 -1
  33. package/esm/generated-sdk/auth/types.js +1 -1
  34. package/esm/generated-sdk/health/client.d.ts +4 -4
  35. package/esm/generated-sdk/health/client.d.ts.map +1 -1
  36. package/esm/generated-sdk/health/contract.d.ts +1 -1
  37. package/esm/generated-sdk/health/contract.d.ts.map +1 -1
  38. package/esm/generated-sdk/health/contract.js +2 -10
  39. package/esm/generated-sdk/health/schemas.d.ts +1 -14
  40. package/esm/generated-sdk/health/schemas.d.ts.map +1 -1
  41. package/esm/generated-sdk/health/schemas.js +1 -9
  42. package/esm/generated-sdk/health/types.d.ts +3 -5
  43. package/esm/generated-sdk/health/types.d.ts.map +1 -1
  44. package/esm/generated-sdk/health/types.js +1 -2
  45. package/esm/generated-sdk/jobs/api.d.ts +13 -0
  46. package/esm/generated-sdk/jobs/api.d.ts.map +1 -1
  47. package/esm/generated-sdk/jobs/client.d.ts +6 -4
  48. package/esm/generated-sdk/jobs/client.d.ts.map +1 -1
  49. package/esm/generated-sdk/jobs/contract.d.ts +14 -1
  50. package/esm/generated-sdk/jobs/contract.d.ts.map +1 -1
  51. package/esm/generated-sdk/jobs/contract.js +268 -1
  52. package/esm/generated-sdk/jobs/owned_api.d.ts +13 -0
  53. package/esm/generated-sdk/jobs/owned_api.d.ts.map +1 -1
  54. package/esm/generated-sdk/jobs/owned_api.js +20 -1
  55. package/esm/generated-sdk/jobs/schemas.d.ts +437 -0
  56. package/esm/generated-sdk/jobs/schemas.d.ts.map +1 -1
  57. package/esm/generated-sdk/jobs/schemas.js +211 -0
  58. package/esm/generated-sdk/jobs/types.d.ts +123 -1
  59. package/esm/generated-sdk/jobs/types.d.ts.map +1 -1
  60. package/esm/generated-sdk/jobs/types.js +1 -1
  61. package/esm/generated-sdk/state/client.d.ts +4 -4
  62. package/esm/generated-sdk/state/client.d.ts.map +1 -1
  63. package/esm/generated-sdk/trellis-core/api.d.ts +4 -1
  64. package/esm/generated-sdk/trellis-core/api.d.ts.map +1 -1
  65. package/esm/generated-sdk/trellis-core/api.js +6 -1
  66. package/esm/generated-sdk/trellis-core/client.d.ts +28 -3
  67. package/esm/generated-sdk/trellis-core/client.d.ts.map +1 -1
  68. package/esm/generated-sdk/trellis-core/contract.d.ts +1 -1
  69. package/esm/generated-sdk/trellis-core/contract.d.ts.map +1 -1
  70. package/esm/generated-sdk/trellis-core/contract.js +91 -1
  71. package/esm/generated-sdk/trellis-core/schemas.d.ts +113 -0
  72. package/esm/generated-sdk/trellis-core/schemas.d.ts.map +1 -1
  73. package/esm/generated-sdk/trellis-core/schemas.js +81 -0
  74. package/esm/generated-sdk/trellis-core/types.d.ts +23 -1
  75. package/esm/generated-sdk/trellis-core/types.d.ts.map +1 -1
  76. package/esm/generated-sdk/trellis-core/types.js +1 -1
  77. package/esm/health.d.ts +1 -1
  78. package/esm/health.d.ts.map +1 -1
  79. package/esm/health.js +1 -1
  80. package/esm/index.d.ts +2 -2
  81. package/esm/index.d.ts.map +1 -1
  82. package/esm/index.js +1 -1
  83. package/esm/jobs.d.ts +69 -3
  84. package/esm/jobs.d.ts.map +1 -1
  85. package/esm/jobs.js +92 -3
  86. package/esm/server/health.d.ts +2 -6
  87. package/esm/server/health.d.ts.map +1 -1
  88. package/esm/server/health_schemas.d.ts +0 -8
  89. package/esm/server/health_schemas.d.ts.map +1 -1
  90. package/esm/server/health_schemas.js +0 -5
  91. package/esm/server/internal_jobs/bindings.d.ts +11 -0
  92. package/esm/server/internal_jobs/bindings.d.ts.map +1 -1
  93. package/esm/server/internal_jobs/job-manager.d.ts +44 -1
  94. package/esm/server/internal_jobs/job-manager.d.ts.map +1 -1
  95. package/esm/server/internal_jobs/job-manager.js +361 -51
  96. package/esm/server/internal_jobs/key-coordinator.d.ts +260 -0
  97. package/esm/server/internal_jobs/key-coordinator.d.ts.map +1 -0
  98. package/esm/server/internal_jobs/key-coordinator.js +580 -0
  99. package/esm/server/internal_jobs/projection.d.ts.map +1 -1
  100. package/esm/server/internal_jobs/projection.js +2 -0
  101. package/esm/server/internal_jobs/runtime-worker.d.ts +5 -1
  102. package/esm/server/internal_jobs/runtime-worker.d.ts.map +1 -1
  103. package/esm/server/internal_jobs/runtime-worker.js +14 -2
  104. package/esm/server/internal_jobs/types.d.ts +5 -5
  105. package/esm/server/internal_jobs/types.d.ts.map +1 -1
  106. package/esm/server/internal_jobs/types.js +6 -0
  107. package/esm/server/service.d.ts +8 -3
  108. package/esm/server/service.d.ts.map +1 -1
  109. package/esm/server/service.js +127 -6
  110. package/esm/service/drizzle.d.ts +27 -0
  111. package/esm/service/drizzle.d.ts.map +1 -0
  112. package/esm/service/drizzle.js +84 -0
  113. package/esm/service/mod.d.ts +1 -1
  114. package/esm/service/mod.d.ts.map +1 -1
  115. package/esm/service/mod.js +1 -1
  116. package/esm/service/outbox_inbox.d.ts.map +1 -1
  117. package/esm/service/outbox_inbox.js +13 -2
  118. package/esm/trellis.d.ts +24 -8
  119. package/esm/trellis.d.ts.map +1 -1
  120. package/esm/trellis.js +44 -22
  121. package/package.json +14 -2
  122. package/script/auth/mod.d.ts +1 -1
  123. package/script/auth/mod.d.ts.map +1 -1
  124. package/script/auth/mod.js +22 -6
  125. package/script/auth/protocol.d.ts +416 -398
  126. package/script/auth/protocol.d.ts.map +1 -1
  127. package/script/auth/protocol.js +40 -37
  128. package/script/codec.d.ts +1 -0
  129. package/script/codec.d.ts.map +1 -1
  130. package/script/codec.js +1 -0
  131. package/script/contract_support/canonical.d.ts +3 -0
  132. package/script/contract_support/canonical.d.ts.map +1 -1
  133. package/script/contract_support/canonical.js +3 -0
  134. package/script/contract_support/mod.d.ts +28 -4
  135. package/script/contract_support/mod.d.ts.map +1 -1
  136. package/script/contract_support/mod.js +90 -4
  137. package/script/contract_support/protocol.d.ts +92 -7
  138. package/script/contract_support/protocol.d.ts.map +1 -1
  139. package/script/contract_support/protocol.js +41 -7
  140. package/script/errors/index.d.ts +9 -9
  141. package/script/generated-sdk/auth/api.d.ts +4 -1
  142. package/script/generated-sdk/auth/api.d.ts.map +1 -1
  143. package/script/generated-sdk/auth/api.js +6 -1
  144. package/script/generated-sdk/auth/client.d.ts +47 -32
  145. package/script/generated-sdk/auth/client.d.ts.map +1 -1
  146. package/script/generated-sdk/auth/contract.d.ts +1 -1
  147. package/script/generated-sdk/auth/contract.d.ts.map +1 -1
  148. package/script/generated-sdk/auth/contract.js +1570 -1202
  149. package/script/generated-sdk/auth/schemas.d.ts +1757 -1759
  150. package/script/generated-sdk/auth/schemas.d.ts.map +1 -1
  151. package/script/generated-sdk/auth/schemas.js +963 -768
  152. package/script/generated-sdk/auth/types.d.ts +292 -302
  153. package/script/generated-sdk/auth/types.d.ts.map +1 -1
  154. package/script/generated-sdk/auth/types.js +1 -1
  155. package/script/generated-sdk/health/client.d.ts +4 -4
  156. package/script/generated-sdk/health/client.d.ts.map +1 -1
  157. package/script/generated-sdk/health/contract.d.ts +1 -1
  158. package/script/generated-sdk/health/contract.d.ts.map +1 -1
  159. package/script/generated-sdk/health/contract.js +2 -10
  160. package/script/generated-sdk/health/schemas.d.ts +1 -14
  161. package/script/generated-sdk/health/schemas.d.ts.map +1 -1
  162. package/script/generated-sdk/health/schemas.js +1 -9
  163. package/script/generated-sdk/health/types.d.ts +3 -5
  164. package/script/generated-sdk/health/types.d.ts.map +1 -1
  165. package/script/generated-sdk/health/types.js +1 -2
  166. package/script/generated-sdk/jobs/api.d.ts +13 -0
  167. package/script/generated-sdk/jobs/api.d.ts.map +1 -1
  168. package/script/generated-sdk/jobs/client.d.ts +6 -4
  169. package/script/generated-sdk/jobs/client.d.ts.map +1 -1
  170. package/script/generated-sdk/jobs/contract.d.ts +14 -1
  171. package/script/generated-sdk/jobs/contract.d.ts.map +1 -1
  172. package/script/generated-sdk/jobs/contract.js +268 -1
  173. package/script/generated-sdk/jobs/owned_api.d.ts +13 -0
  174. package/script/generated-sdk/jobs/owned_api.d.ts.map +1 -1
  175. package/script/generated-sdk/jobs/owned_api.js +19 -0
  176. package/script/generated-sdk/jobs/schemas.d.ts +437 -0
  177. package/script/generated-sdk/jobs/schemas.d.ts.map +1 -1
  178. package/script/generated-sdk/jobs/schemas.js +212 -1
  179. package/script/generated-sdk/jobs/types.d.ts +123 -1
  180. package/script/generated-sdk/jobs/types.d.ts.map +1 -1
  181. package/script/generated-sdk/jobs/types.js +1 -1
  182. package/script/generated-sdk/state/client.d.ts +4 -4
  183. package/script/generated-sdk/state/client.d.ts.map +1 -1
  184. package/script/generated-sdk/trellis-core/api.d.ts +4 -1
  185. package/script/generated-sdk/trellis-core/api.d.ts.map +1 -1
  186. package/script/generated-sdk/trellis-core/api.js +6 -1
  187. package/script/generated-sdk/trellis-core/client.d.ts +28 -3
  188. package/script/generated-sdk/trellis-core/client.d.ts.map +1 -1
  189. package/script/generated-sdk/trellis-core/contract.d.ts +1 -1
  190. package/script/generated-sdk/trellis-core/contract.d.ts.map +1 -1
  191. package/script/generated-sdk/trellis-core/contract.js +91 -1
  192. package/script/generated-sdk/trellis-core/schemas.d.ts +113 -0
  193. package/script/generated-sdk/trellis-core/schemas.d.ts.map +1 -1
  194. package/script/generated-sdk/trellis-core/schemas.js +81 -0
  195. package/script/generated-sdk/trellis-core/types.d.ts +23 -1
  196. package/script/generated-sdk/trellis-core/types.d.ts.map +1 -1
  197. package/script/generated-sdk/trellis-core/types.js +1 -1
  198. package/script/health.d.ts +1 -1
  199. package/script/health.d.ts.map +1 -1
  200. package/script/health.js +1 -2
  201. package/script/index.d.ts +2 -2
  202. package/script/index.d.ts.map +1 -1
  203. package/script/index.js +2 -3
  204. package/script/jobs.d.ts +69 -3
  205. package/script/jobs.d.ts.map +1 -1
  206. package/script/jobs.js +93 -3
  207. package/script/server/health.d.ts +2 -6
  208. package/script/server/health.d.ts.map +1 -1
  209. package/script/server/health_schemas.d.ts +0 -8
  210. package/script/server/health_schemas.d.ts.map +1 -1
  211. package/script/server/health_schemas.js +1 -6
  212. package/script/server/internal_jobs/bindings.d.ts +11 -0
  213. package/script/server/internal_jobs/bindings.d.ts.map +1 -1
  214. package/script/server/internal_jobs/job-manager.d.ts +44 -1
  215. package/script/server/internal_jobs/job-manager.d.ts.map +1 -1
  216. package/script/server/internal_jobs/job-manager.js +361 -51
  217. package/script/server/internal_jobs/key-coordinator.d.ts +260 -0
  218. package/script/server/internal_jobs/key-coordinator.d.ts.map +1 -0
  219. package/script/server/internal_jobs/key-coordinator.js +593 -0
  220. package/script/server/internal_jobs/projection.d.ts.map +1 -1
  221. package/script/server/internal_jobs/projection.js +2 -0
  222. package/script/server/internal_jobs/runtime-worker.d.ts +5 -1
  223. package/script/server/internal_jobs/runtime-worker.d.ts.map +1 -1
  224. package/script/server/internal_jobs/runtime-worker.js +14 -2
  225. package/script/server/internal_jobs/types.d.ts +5 -5
  226. package/script/server/internal_jobs/types.d.ts.map +1 -1
  227. package/script/server/internal_jobs/types.js +6 -0
  228. package/script/server/service.d.ts +8 -3
  229. package/script/server/service.d.ts.map +1 -1
  230. package/script/server/service.js +126 -5
  231. package/script/service/drizzle.d.ts +27 -0
  232. package/script/service/drizzle.d.ts.map +1 -0
  233. package/script/service/drizzle.js +88 -0
  234. package/script/service/mod.d.ts +1 -1
  235. package/script/service/mod.d.ts.map +1 -1
  236. package/script/service/mod.js +1 -2
  237. package/script/service/outbox_inbox.d.ts.map +1 -1
  238. package/script/service/outbox_inbox.js +13 -2
  239. package/script/trellis.d.ts +24 -8
  240. package/script/trellis.d.ts.map +1 -1
  241. package/script/trellis.js +44 -22
  242. package/src/auth/mod.ts +28 -2
  243. package/src/auth/protocol.ts +72 -37
  244. package/src/codec.ts +1 -0
  245. package/src/contract_support/canonical.ts +3 -0
  246. package/src/contract_support/mod.ts +158 -5
  247. package/src/contract_support/protocol.ts +56 -9
  248. package/src/health.ts +0 -1
  249. package/src/index.ts +2 -1
  250. package/src/jobs.ts +138 -1
  251. package/src/sdk/_generated/auth/api.ts +9 -2
  252. package/src/sdk/_generated/auth/client.ts +85 -78
  253. package/src/sdk/_generated/auth/contract.ts +1803 -1435
  254. package/src/sdk/_generated/auth/schemas.ts +1166 -971
  255. package/src/sdk/_generated/auth/types.ts +330 -314
  256. package/src/sdk/_generated/core/api.ts +9 -2
  257. package/src/sdk/_generated/core/client.ts +41 -2
  258. package/src/sdk/_generated/core/contract.ts +91 -1
  259. package/src/sdk/_generated/core/schemas.ts +81 -0
  260. package/src/sdk/_generated/core/types.ts +23 -1
  261. package/src/sdk/_generated/health/client.ts +6 -6
  262. package/src/sdk/_generated/health/contract.ts +2 -10
  263. package/src/sdk/_generated/health/schemas.ts +1 -9
  264. package/src/sdk/_generated/health/types.ts +6 -2
  265. package/src/sdk/_generated/jobs/client.ts +17 -6
  266. package/src/sdk/_generated/jobs/contract.ts +269 -1
  267. package/src/sdk/_generated/jobs/owned_api.ts +21 -0
  268. package/src/sdk/_generated/jobs/schemas.ts +213 -0
  269. package/src/sdk/_generated/jobs/types.ts +116 -1
  270. package/src/sdk/_generated/state/client.ts +6 -6
  271. package/src/server/health.ts +2 -6
  272. package/src/server/health_schemas.ts +0 -6
  273. package/src/server/internal_jobs/bindings.ts +11 -0
  274. package/src/server/internal_jobs/job-manager.ts +436 -16
  275. package/src/server/internal_jobs/key-coordinator.ts +955 -0
  276. package/src/server/internal_jobs/projection.ts +2 -0
  277. package/src/server/internal_jobs/runtime-worker.ts +17 -1
  278. package/src/server/internal_jobs/types.ts +6 -0
  279. package/src/server/service.ts +168 -9
  280. package/src/service/drizzle.ts +125 -0
  281. package/src/service/mod.ts +0 -1
  282. package/src/service/outbox_inbox.ts +16 -6
  283. package/src/trellis.ts +76 -27
@@ -227,29 +227,14 @@ exports.AuthCatalogIssuesResolveResponseSchema = {
227
227
  "type": "object",
228
228
  };
229
229
  exports.AuthConnectionsClosedEventSchema = {
230
- "allOf": [{
231
- "properties": {
232
- "header": {
233
- "properties": {
234
- "id": { "type": "string" },
235
- "time": { "format": "date-time", "type": "string" },
236
- },
237
- "required": ["id", "time"],
238
- "type": "object",
239
- },
240
- },
241
- "required": ["header"],
242
- "type": "object",
243
- }, {
244
- "properties": {
245
- "id": { "type": "string" },
246
- "origin": { "type": "string" },
247
- "sessionKey": { "type": "string" },
248
- "userNkey": { "type": "string" },
249
- },
250
- "required": ["origin", "id", "sessionKey", "userNkey"],
251
- "type": "object",
252
- }],
230
+ "properties": {
231
+ "id": { "type": "string" },
232
+ "origin": { "type": "string" },
233
+ "sessionKey": { "type": "string" },
234
+ "userNkey": { "type": "string" },
235
+ },
236
+ "required": ["origin", "id", "sessionKey", "userNkey"],
237
+ "type": "object",
253
238
  };
254
239
  exports.AuthConnectionsKickRequestSchema = {
255
240
  "properties": { "userNkey": { "type": "string" } },
@@ -262,29 +247,14 @@ exports.AuthConnectionsKickResponseSchema = {
262
247
  "type": "object",
263
248
  };
264
249
  exports.AuthConnectionsKickedEventSchema = {
265
- "allOf": [{
266
- "properties": {
267
- "header": {
268
- "properties": {
269
- "id": { "type": "string" },
270
- "time": { "format": "date-time", "type": "string" },
271
- },
272
- "required": ["id", "time"],
273
- "type": "object",
274
- },
275
- },
276
- "required": ["header"],
277
- "type": "object",
278
- }, {
279
- "properties": {
280
- "id": { "type": "string" },
281
- "kickedBy": { "type": "string" },
282
- "origin": { "type": "string" },
283
- "userNkey": { "type": "string" },
284
- },
285
- "required": ["origin", "id", "userNkey", "kickedBy"],
286
- "type": "object",
287
- }],
250
+ "properties": {
251
+ "id": { "type": "string" },
252
+ "kickedBy": { "type": "string" },
253
+ "origin": { "type": "string" },
254
+ "userNkey": { "type": "string" },
255
+ },
256
+ "required": ["origin", "id", "userNkey", "kickedBy"],
257
+ "type": "object",
288
258
  };
289
259
  exports.AuthConnectionsListRequestSchema = {
290
260
  "properties": {
@@ -473,29 +443,14 @@ exports.AuthConnectionsListResponseSchema = {
473
443
  "type": "object",
474
444
  };
475
445
  exports.AuthConnectionsOpenedEventSchema = {
476
- "allOf": [{
477
- "properties": {
478
- "header": {
479
- "properties": {
480
- "id": { "type": "string" },
481
- "time": { "format": "date-time", "type": "string" },
482
- },
483
- "required": ["id", "time"],
484
- "type": "object",
485
- },
486
- },
487
- "required": ["header"],
488
- "type": "object",
489
- }, {
490
- "properties": {
491
- "id": { "type": "string" },
492
- "origin": { "type": "string" },
493
- "sessionKey": { "type": "string" },
494
- "userNkey": { "type": "string" },
495
- },
496
- "required": ["origin", "id", "sessionKey", "userNkey"],
497
- "type": "object",
498
- }],
446
+ "properties": {
447
+ "id": { "type": "string" },
448
+ "origin": { "type": "string" },
449
+ "sessionKey": { "type": "string" },
450
+ "userNkey": { "type": "string" },
451
+ },
452
+ "required": ["origin", "id", "sessionKey", "userNkey"],
453
+ "type": "object",
499
454
  };
500
455
  exports.AuthDeploymentAuthorityAcceptMigrationRequestSchema = {
501
456
  "properties": {
@@ -519,83 +474,87 @@ exports.AuthDeploymentAuthorityAcceptResponseSchema = {
519
474
  "type": "array",
520
475
  },
521
476
  "needs": {
522
- "items": {
523
- "anyOf": [{
477
+ "properties": {
478
+ "capabilities": {
479
+ "items": {
524
480
  "properties": {
525
- "contractId": { "minLength": 1, "type": "string" },
526
- "kind": { "const": "contract", "type": "string" },
481
+ "capability": { "minLength": 1, "type": "string" },
527
482
  "required": { "type": "boolean" },
528
483
  },
529
- "required": ["kind", "contractId", "required"],
484
+ "required": ["capability", "required"],
530
485
  "type": "object",
531
- }, {
486
+ },
487
+ "type": "array",
488
+ },
489
+ "contracts": {
490
+ "items": {
532
491
  "properties": {
533
- "kind": { "const": "surface", "type": "string" },
492
+ "contractId": { "minLength": 1, "type": "string" },
534
493
  "required": { "type": "boolean" },
535
- "surface": {
536
- "properties": {
537
- "action": {
538
- "anyOf": [
539
- { "const": "call", "type": "string" },
540
- { "const": "publish", "type": "string" },
541
- { "const": "subscribe", "type": "string" },
542
- { "const": "observe", "type": "string" },
543
- { "const": "cancel", "type": "string" },
544
- ],
545
- },
546
- "contractId": { "minLength": 1, "type": "string" },
547
- "kind": {
548
- "anyOf": [
549
- { "const": "rpc", "type": "string" },
550
- { "const": "operation", "type": "string" },
551
- { "const": "event", "type": "string" },
552
- { "const": "feed", "type": "string" },
553
- ],
554
- },
555
- "name": { "minLength": 1, "type": "string" },
556
- },
557
- "required": ["contractId", "kind", "name"],
558
- "type": "object",
559
- },
560
494
  },
561
- "required": ["kind", "surface", "required"],
495
+ "required": ["contractId", "required"],
562
496
  "type": "object",
563
- }, {
497
+ },
498
+ "type": "array",
499
+ },
500
+ "resources": {
501
+ "items": {
564
502
  "properties": {
565
- "capability": { "minLength": 1, "type": "string" },
566
- "kind": { "const": "capability", "type": "string" },
503
+ "alias": { "minLength": 1, "type": "string" },
504
+ "definition": { "type": "object" },
505
+ "kind": {
506
+ "anyOf": [
507
+ { "const": "kv", "type": "string" },
508
+ { "const": "store", "type": "string" },
509
+ { "const": "jobs", "type": "string" },
510
+ { "const": "event-consumer", "type": "string" },
511
+ { "const": "transfer", "type": "string" },
512
+ ],
513
+ },
567
514
  "required": { "type": "boolean" },
568
515
  },
569
- "required": ["kind", "capability", "required"],
516
+ "required": ["kind", "alias", "required"],
570
517
  "type": "object",
571
- }, {
518
+ },
519
+ "type": "array",
520
+ },
521
+ "surfaces": {
522
+ "items": {
572
523
  "properties": {
573
- "kind": { "const": "resource", "type": "string" },
574
- "required": { "type": "boolean" },
575
- "resource": {
576
- "properties": {
577
- "alias": { "minLength": 1, "type": "string" },
578
- "definition": { "type": "object" },
579
- "kind": {
580
- "anyOf": [
581
- { "const": "kv", "type": "string" },
582
- { "const": "store", "type": "string" },
583
- { "const": "jobs", "type": "string" },
584
- { "const": "event-consumer", "type": "string" },
585
- { "const": "transfer", "type": "string" },
586
- ],
587
- },
588
- "required": { "type": "boolean" },
589
- },
590
- "required": ["kind", "alias", "required"],
591
- "type": "object",
524
+ "action": {
525
+ "anyOf": [
526
+ { "const": "call", "type": "string" },
527
+ { "const": "publish", "type": "string" },
528
+ { "const": "subscribe", "type": "string" },
529
+ { "const": "observe", "type": "string" },
530
+ { "const": "cancel", "type": "string" },
531
+ ],
532
+ },
533
+ "contractId": { "minLength": 1, "type": "string" },
534
+ "kind": {
535
+ "anyOf": [
536
+ { "const": "rpc", "type": "string" },
537
+ { "const": "operation", "type": "string" },
538
+ { "const": "event", "type": "string" },
539
+ { "const": "feed", "type": "string" },
540
+ ],
592
541
  },
542
+ "name": { "minLength": 1, "type": "string" },
543
+ "required": { "type": "boolean" },
593
544
  },
594
- "required": ["kind", "resource", "required"],
545
+ "required": ["contractId", "kind", "name", "required"],
595
546
  "type": "object",
596
- }],
547
+ },
548
+ "type": "array",
549
+ },
597
550
  },
598
- "type": "array",
551
+ "required": [
552
+ "contracts",
553
+ "surfaces",
554
+ "capabilities",
555
+ "resources",
556
+ ],
557
+ "type": "object",
599
558
  },
600
559
  "resources": {
601
560
  "items": {
@@ -705,83 +664,87 @@ exports.AuthDeploymentAuthorityGetResponseSchema = {
705
664
  "type": "array",
706
665
  },
707
666
  "needs": {
708
- "items": {
709
- "anyOf": [{
667
+ "properties": {
668
+ "capabilities": {
669
+ "items": {
710
670
  "properties": {
711
- "contractId": { "minLength": 1, "type": "string" },
712
- "kind": { "const": "contract", "type": "string" },
671
+ "capability": { "minLength": 1, "type": "string" },
713
672
  "required": { "type": "boolean" },
714
673
  },
715
- "required": ["kind", "contractId", "required"],
674
+ "required": ["capability", "required"],
716
675
  "type": "object",
717
- }, {
676
+ },
677
+ "type": "array",
678
+ },
679
+ "contracts": {
680
+ "items": {
718
681
  "properties": {
719
- "kind": { "const": "surface", "type": "string" },
682
+ "contractId": { "minLength": 1, "type": "string" },
720
683
  "required": { "type": "boolean" },
721
- "surface": {
722
- "properties": {
723
- "action": {
724
- "anyOf": [
725
- { "const": "call", "type": "string" },
726
- { "const": "publish", "type": "string" },
727
- { "const": "subscribe", "type": "string" },
728
- { "const": "observe", "type": "string" },
729
- { "const": "cancel", "type": "string" },
730
- ],
731
- },
732
- "contractId": { "minLength": 1, "type": "string" },
733
- "kind": {
734
- "anyOf": [
735
- { "const": "rpc", "type": "string" },
736
- { "const": "operation", "type": "string" },
737
- { "const": "event", "type": "string" },
738
- { "const": "feed", "type": "string" },
739
- ],
740
- },
741
- "name": { "minLength": 1, "type": "string" },
742
- },
743
- "required": ["contractId", "kind", "name"],
744
- "type": "object",
745
- },
746
684
  },
747
- "required": ["kind", "surface", "required"],
685
+ "required": ["contractId", "required"],
748
686
  "type": "object",
749
- }, {
687
+ },
688
+ "type": "array",
689
+ },
690
+ "resources": {
691
+ "items": {
750
692
  "properties": {
751
- "capability": { "minLength": 1, "type": "string" },
752
- "kind": { "const": "capability", "type": "string" },
693
+ "alias": { "minLength": 1, "type": "string" },
694
+ "definition": { "type": "object" },
695
+ "kind": {
696
+ "anyOf": [
697
+ { "const": "kv", "type": "string" },
698
+ { "const": "store", "type": "string" },
699
+ { "const": "jobs", "type": "string" },
700
+ { "const": "event-consumer", "type": "string" },
701
+ { "const": "transfer", "type": "string" },
702
+ ],
703
+ },
753
704
  "required": { "type": "boolean" },
754
705
  },
755
- "required": ["kind", "capability", "required"],
706
+ "required": ["kind", "alias", "required"],
756
707
  "type": "object",
757
- }, {
708
+ },
709
+ "type": "array",
710
+ },
711
+ "surfaces": {
712
+ "items": {
758
713
  "properties": {
759
- "kind": { "const": "resource", "type": "string" },
760
- "required": { "type": "boolean" },
761
- "resource": {
762
- "properties": {
763
- "alias": { "minLength": 1, "type": "string" },
764
- "definition": { "type": "object" },
765
- "kind": {
766
- "anyOf": [
767
- { "const": "kv", "type": "string" },
768
- { "const": "store", "type": "string" },
769
- { "const": "jobs", "type": "string" },
770
- { "const": "event-consumer", "type": "string" },
771
- { "const": "transfer", "type": "string" },
772
- ],
773
- },
774
- "required": { "type": "boolean" },
775
- },
776
- "required": ["kind", "alias", "required"],
777
- "type": "object",
714
+ "action": {
715
+ "anyOf": [
716
+ { "const": "call", "type": "string" },
717
+ { "const": "publish", "type": "string" },
718
+ { "const": "subscribe", "type": "string" },
719
+ { "const": "observe", "type": "string" },
720
+ { "const": "cancel", "type": "string" },
721
+ ],
722
+ },
723
+ "contractId": { "minLength": 1, "type": "string" },
724
+ "kind": {
725
+ "anyOf": [
726
+ { "const": "rpc", "type": "string" },
727
+ { "const": "operation", "type": "string" },
728
+ { "const": "event", "type": "string" },
729
+ { "const": "feed", "type": "string" },
730
+ ],
778
731
  },
732
+ "name": { "minLength": 1, "type": "string" },
733
+ "required": { "type": "boolean" },
779
734
  },
780
- "required": ["kind", "resource", "required"],
735
+ "required": ["contractId", "kind", "name", "required"],
781
736
  "type": "object",
782
- }],
737
+ },
738
+ "type": "array",
739
+ },
783
740
  },
784
- "type": "array",
741
+ "required": [
742
+ "contracts",
743
+ "surfaces",
744
+ "capabilities",
745
+ "resources",
746
+ ],
747
+ "type": "object",
785
748
  },
786
749
  "resources": {
787
750
  "items": {
@@ -962,48 +925,27 @@ exports.AuthDeploymentAuthorityGetResponseSchema = {
962
925
  "desiredVersion": { "minLength": 1, "type": "string" },
963
926
  "error": { "minLength": 1, "type": "string" },
964
927
  "grants": {
965
- "items": {
966
- "anyOf": [{
928
+ "properties": {
929
+ "capabilities": {
930
+ "items": {
967
931
  "properties": {
968
932
  "capability": { "minLength": 1, "type": "string" },
969
- "kind": { "const": "capability", "type": "string" },
970
933
  },
971
- "required": ["kind", "capability"],
934
+ "required": ["capability"],
972
935
  "type": "object",
973
- }, {
936
+ },
937
+ "type": "array",
938
+ },
939
+ "nats": {
940
+ "items": {
974
941
  "properties": {
975
- "action": {
976
- "anyOf": [
977
- { "const": "call", "type": "string" },
978
- { "const": "publish", "type": "string" },
979
- { "const": "subscribe", "type": "string" },
980
- { "const": "observe", "type": "string" },
981
- { "const": "cancel", "type": "string" },
982
- ],
983
- },
984
- "contractId": { "minLength": 1, "type": "string" },
985
- "kind": { "const": "surface", "type": "string" },
986
- "name": { "minLength": 1, "type": "string" },
987
- "surfaceKind": {
988
- "anyOf": [
989
- { "const": "rpc", "type": "string" },
990
- { "const": "operation", "type": "string" },
991
- { "const": "event", "type": "string" },
992
- { "const": "feed", "type": "string" },
993
- ],
994
- },
995
- },
996
- "required": ["kind", "contractId", "surfaceKind", "name"],
997
- "type": "object",
998
- }, {
999
- "properties": {
1000
- "direction": {
1001
- "anyOf": [{ "const": "publish", "type": "string" }, {
1002
- "const": "subscribe",
1003
- "type": "string",
1004
- }],
1005
- },
1006
- "grantSource": {
942
+ "direction": {
943
+ "anyOf": [{ "const": "publish", "type": "string" }, {
944
+ "const": "subscribe",
945
+ "type": "string",
946
+ }],
947
+ },
948
+ "grantSource": {
1007
949
  "anyOf": [
1008
950
  { "const": "owned-surface", "type": "string" },
1009
951
  { "const": "used-surface", "type": "string" },
@@ -1012,7 +954,6 @@ exports.AuthDeploymentAuthorityGetResponseSchema = {
1012
954
  { "const": "transfer", "type": "string" },
1013
955
  ],
1014
956
  },
1015
- "kind": { "const": "nats", "type": "string" },
1016
957
  "requiredCapabilities": {
1017
958
  "items": { "minLength": 1, "type": "string" },
1018
959
  "type": "array",
@@ -1045,16 +986,46 @@ exports.AuthDeploymentAuthorityGetResponseSchema = {
1045
986
  },
1046
987
  },
1047
988
  "required": [
1048
- "kind",
1049
989
  "direction",
1050
990
  "subject",
1051
991
  "requiredCapabilities",
1052
992
  "grantSource",
1053
993
  ],
1054
994
  "type": "object",
1055
- }],
995
+ },
996
+ "type": "array",
997
+ },
998
+ "surfaces": {
999
+ "items": {
1000
+ "properties": {
1001
+ "action": {
1002
+ "anyOf": [
1003
+ { "const": "call", "type": "string" },
1004
+ { "const": "publish", "type": "string" },
1005
+ { "const": "subscribe", "type": "string" },
1006
+ { "const": "observe", "type": "string" },
1007
+ { "const": "cancel", "type": "string" },
1008
+ ],
1009
+ },
1010
+ "contractId": { "minLength": 1, "type": "string" },
1011
+ "name": { "minLength": 1, "type": "string" },
1012
+ "surfaceKind": {
1013
+ "anyOf": [
1014
+ { "const": "rpc", "type": "string" },
1015
+ { "const": "operation", "type": "string" },
1016
+ { "const": "event", "type": "string" },
1017
+ { "const": "feed", "type": "string" },
1018
+ ],
1019
+ },
1020
+ },
1021
+ "required": ["contractId", "surfaceKind", "name"],
1022
+ "type": "object",
1023
+ },
1024
+ "type": "array",
1025
+ },
1056
1026
  },
1057
- "type": "array",
1027
+ "required": ["capabilities", "surfaces", "nats"],
1028
+ "type": "object",
1058
1029
  },
1059
1030
  "reconciledAt": {
1060
1031
  "anyOf": [{ "format": "date-time", "type": "string" }, {
@@ -1601,83 +1572,87 @@ exports.AuthDeploymentAuthorityListResponseSchema = {
1601
1572
  "type": "array",
1602
1573
  },
1603
1574
  "needs": {
1604
- "items": {
1605
- "anyOf": [{
1575
+ "properties": {
1576
+ "capabilities": {
1577
+ "items": {
1606
1578
  "properties": {
1607
- "contractId": { "minLength": 1, "type": "string" },
1608
- "kind": { "const": "contract", "type": "string" },
1579
+ "capability": { "minLength": 1, "type": "string" },
1609
1580
  "required": { "type": "boolean" },
1610
1581
  },
1611
- "required": ["kind", "contractId", "required"],
1582
+ "required": ["capability", "required"],
1612
1583
  "type": "object",
1613
- }, {
1584
+ },
1585
+ "type": "array",
1586
+ },
1587
+ "contracts": {
1588
+ "items": {
1614
1589
  "properties": {
1615
- "kind": { "const": "surface", "type": "string" },
1590
+ "contractId": { "minLength": 1, "type": "string" },
1616
1591
  "required": { "type": "boolean" },
1617
- "surface": {
1618
- "properties": {
1619
- "action": {
1620
- "anyOf": [
1621
- { "const": "call", "type": "string" },
1622
- { "const": "publish", "type": "string" },
1623
- { "const": "subscribe", "type": "string" },
1624
- { "const": "observe", "type": "string" },
1625
- { "const": "cancel", "type": "string" },
1626
- ],
1627
- },
1628
- "contractId": { "minLength": 1, "type": "string" },
1629
- "kind": {
1630
- "anyOf": [
1631
- { "const": "rpc", "type": "string" },
1632
- { "const": "operation", "type": "string" },
1633
- { "const": "event", "type": "string" },
1634
- { "const": "feed", "type": "string" },
1635
- ],
1636
- },
1637
- "name": { "minLength": 1, "type": "string" },
1638
- },
1639
- "required": ["contractId", "kind", "name"],
1640
- "type": "object",
1641
- },
1642
1592
  },
1643
- "required": ["kind", "surface", "required"],
1593
+ "required": ["contractId", "required"],
1644
1594
  "type": "object",
1645
- }, {
1595
+ },
1596
+ "type": "array",
1597
+ },
1598
+ "resources": {
1599
+ "items": {
1646
1600
  "properties": {
1647
- "capability": { "minLength": 1, "type": "string" },
1648
- "kind": { "const": "capability", "type": "string" },
1601
+ "alias": { "minLength": 1, "type": "string" },
1602
+ "definition": { "type": "object" },
1603
+ "kind": {
1604
+ "anyOf": [
1605
+ { "const": "kv", "type": "string" },
1606
+ { "const": "store", "type": "string" },
1607
+ { "const": "jobs", "type": "string" },
1608
+ { "const": "event-consumer", "type": "string" },
1609
+ { "const": "transfer", "type": "string" },
1610
+ ],
1611
+ },
1649
1612
  "required": { "type": "boolean" },
1650
1613
  },
1651
- "required": ["kind", "capability", "required"],
1614
+ "required": ["kind", "alias", "required"],
1652
1615
  "type": "object",
1653
- }, {
1616
+ },
1617
+ "type": "array",
1618
+ },
1619
+ "surfaces": {
1620
+ "items": {
1654
1621
  "properties": {
1655
- "kind": { "const": "resource", "type": "string" },
1656
- "required": { "type": "boolean" },
1657
- "resource": {
1658
- "properties": {
1659
- "alias": { "minLength": 1, "type": "string" },
1660
- "definition": { "type": "object" },
1661
- "kind": {
1662
- "anyOf": [
1663
- { "const": "kv", "type": "string" },
1664
- { "const": "store", "type": "string" },
1665
- { "const": "jobs", "type": "string" },
1666
- { "const": "event-consumer", "type": "string" },
1667
- { "const": "transfer", "type": "string" },
1668
- ],
1669
- },
1670
- "required": { "type": "boolean" },
1671
- },
1672
- "required": ["kind", "alias", "required"],
1673
- "type": "object",
1622
+ "action": {
1623
+ "anyOf": [
1624
+ { "const": "call", "type": "string" },
1625
+ { "const": "publish", "type": "string" },
1626
+ { "const": "subscribe", "type": "string" },
1627
+ { "const": "observe", "type": "string" },
1628
+ { "const": "cancel", "type": "string" },
1629
+ ],
1630
+ },
1631
+ "contractId": { "minLength": 1, "type": "string" },
1632
+ "kind": {
1633
+ "anyOf": [
1634
+ { "const": "rpc", "type": "string" },
1635
+ { "const": "operation", "type": "string" },
1636
+ { "const": "event", "type": "string" },
1637
+ { "const": "feed", "type": "string" },
1638
+ ],
1674
1639
  },
1640
+ "name": { "minLength": 1, "type": "string" },
1641
+ "required": { "type": "boolean" },
1675
1642
  },
1676
- "required": ["kind", "resource", "required"],
1643
+ "required": ["contractId", "kind", "name", "required"],
1677
1644
  "type": "object",
1678
- }],
1645
+ },
1646
+ "type": "array",
1647
+ },
1679
1648
  },
1680
- "type": "array",
1649
+ "required": [
1650
+ "contracts",
1651
+ "surfaces",
1652
+ "capabilities",
1653
+ "resources",
1654
+ ],
1655
+ "type": "object",
1681
1656
  },
1682
1657
  "resources": {
1683
1658
  "items": {
@@ -1840,83 +1815,87 @@ exports.AuthDeploymentAuthorityPlanResponseSchema = {
1840
1815
  "type": "array",
1841
1816
  },
1842
1817
  "requestedNeeds": {
1843
- "items": {
1844
- "anyOf": [{
1818
+ "properties": {
1819
+ "capabilities": {
1820
+ "items": {
1845
1821
  "properties": {
1846
- "contractId": { "minLength": 1, "type": "string" },
1847
- "kind": { "const": "contract", "type": "string" },
1822
+ "capability": { "minLength": 1, "type": "string" },
1848
1823
  "required": { "type": "boolean" },
1849
1824
  },
1850
- "required": ["kind", "contractId", "required"],
1825
+ "required": ["capability", "required"],
1851
1826
  "type": "object",
1852
- }, {
1827
+ },
1828
+ "type": "array",
1829
+ },
1830
+ "contracts": {
1831
+ "items": {
1853
1832
  "properties": {
1854
- "kind": { "const": "surface", "type": "string" },
1833
+ "contractId": { "minLength": 1, "type": "string" },
1855
1834
  "required": { "type": "boolean" },
1856
- "surface": {
1857
- "properties": {
1858
- "action": {
1859
- "anyOf": [
1860
- { "const": "call", "type": "string" },
1861
- { "const": "publish", "type": "string" },
1862
- { "const": "subscribe", "type": "string" },
1863
- { "const": "observe", "type": "string" },
1864
- { "const": "cancel", "type": "string" },
1865
- ],
1866
- },
1867
- "contractId": { "minLength": 1, "type": "string" },
1868
- "kind": {
1869
- "anyOf": [
1870
- { "const": "rpc", "type": "string" },
1871
- { "const": "operation", "type": "string" },
1872
- { "const": "event", "type": "string" },
1873
- { "const": "feed", "type": "string" },
1874
- ],
1875
- },
1876
- "name": { "minLength": 1, "type": "string" },
1877
- },
1878
- "required": ["contractId", "kind", "name"],
1879
- "type": "object",
1880
- },
1881
1835
  },
1882
- "required": ["kind", "surface", "required"],
1836
+ "required": ["contractId", "required"],
1883
1837
  "type": "object",
1884
- }, {
1838
+ },
1839
+ "type": "array",
1840
+ },
1841
+ "resources": {
1842
+ "items": {
1885
1843
  "properties": {
1886
- "capability": { "minLength": 1, "type": "string" },
1887
- "kind": { "const": "capability", "type": "string" },
1844
+ "alias": { "minLength": 1, "type": "string" },
1845
+ "definition": { "type": "object" },
1846
+ "kind": {
1847
+ "anyOf": [
1848
+ { "const": "kv", "type": "string" },
1849
+ { "const": "store", "type": "string" },
1850
+ { "const": "jobs", "type": "string" },
1851
+ { "const": "event-consumer", "type": "string" },
1852
+ { "const": "transfer", "type": "string" },
1853
+ ],
1854
+ },
1888
1855
  "required": { "type": "boolean" },
1889
1856
  },
1890
- "required": ["kind", "capability", "required"],
1857
+ "required": ["kind", "alias", "required"],
1891
1858
  "type": "object",
1892
- }, {
1859
+ },
1860
+ "type": "array",
1861
+ },
1862
+ "surfaces": {
1863
+ "items": {
1893
1864
  "properties": {
1894
- "kind": { "const": "resource", "type": "string" },
1895
- "required": { "type": "boolean" },
1896
- "resource": {
1897
- "properties": {
1898
- "alias": { "minLength": 1, "type": "string" },
1899
- "definition": { "type": "object" },
1900
- "kind": {
1901
- "anyOf": [
1902
- { "const": "kv", "type": "string" },
1903
- { "const": "store", "type": "string" },
1904
- { "const": "jobs", "type": "string" },
1905
- { "const": "event-consumer", "type": "string" },
1906
- { "const": "transfer", "type": "string" },
1907
- ],
1908
- },
1909
- "required": { "type": "boolean" },
1910
- },
1911
- "required": ["kind", "alias", "required"],
1912
- "type": "object",
1865
+ "action": {
1866
+ "anyOf": [
1867
+ { "const": "call", "type": "string" },
1868
+ { "const": "publish", "type": "string" },
1869
+ { "const": "subscribe", "type": "string" },
1870
+ { "const": "observe", "type": "string" },
1871
+ { "const": "cancel", "type": "string" },
1872
+ ],
1873
+ },
1874
+ "contractId": { "minLength": 1, "type": "string" },
1875
+ "kind": {
1876
+ "anyOf": [
1877
+ { "const": "rpc", "type": "string" },
1878
+ { "const": "operation", "type": "string" },
1879
+ { "const": "event", "type": "string" },
1880
+ { "const": "feed", "type": "string" },
1881
+ ],
1913
1882
  },
1883
+ "name": { "minLength": 1, "type": "string" },
1884
+ "required": { "type": "boolean" },
1914
1885
  },
1915
- "required": ["kind", "resource", "required"],
1886
+ "required": ["contractId", "kind", "name", "required"],
1916
1887
  "type": "object",
1917
- }],
1888
+ },
1889
+ "type": "array",
1890
+ },
1918
1891
  },
1919
- "type": "array",
1892
+ "required": [
1893
+ "contracts",
1894
+ "surfaces",
1895
+ "capabilities",
1896
+ "resources",
1897
+ ],
1898
+ "type": "object",
1920
1899
  },
1921
1900
  "summary": { "type": "object" },
1922
1901
  },
@@ -2016,83 +1995,87 @@ exports.AuthDeploymentAuthorityPlanResponseSchema = {
2016
1995
  "type": "array",
2017
1996
  },
2018
1997
  "requestedNeeds": {
2019
- "items": {
2020
- "anyOf": [{
1998
+ "properties": {
1999
+ "capabilities": {
2000
+ "items": {
2021
2001
  "properties": {
2022
- "contractId": { "minLength": 1, "type": "string" },
2023
- "kind": { "const": "contract", "type": "string" },
2002
+ "capability": { "minLength": 1, "type": "string" },
2024
2003
  "required": { "type": "boolean" },
2025
2004
  },
2026
- "required": ["kind", "contractId", "required"],
2005
+ "required": ["capability", "required"],
2027
2006
  "type": "object",
2028
- }, {
2007
+ },
2008
+ "type": "array",
2009
+ },
2010
+ "contracts": {
2011
+ "items": {
2029
2012
  "properties": {
2030
- "kind": { "const": "surface", "type": "string" },
2013
+ "contractId": { "minLength": 1, "type": "string" },
2031
2014
  "required": { "type": "boolean" },
2032
- "surface": {
2033
- "properties": {
2034
- "action": {
2035
- "anyOf": [
2036
- { "const": "call", "type": "string" },
2037
- { "const": "publish", "type": "string" },
2038
- { "const": "subscribe", "type": "string" },
2039
- { "const": "observe", "type": "string" },
2040
- { "const": "cancel", "type": "string" },
2041
- ],
2042
- },
2043
- "contractId": { "minLength": 1, "type": "string" },
2044
- "kind": {
2045
- "anyOf": [
2046
- { "const": "rpc", "type": "string" },
2047
- { "const": "operation", "type": "string" },
2048
- { "const": "event", "type": "string" },
2049
- { "const": "feed", "type": "string" },
2050
- ],
2051
- },
2052
- "name": { "minLength": 1, "type": "string" },
2053
- },
2054
- "required": ["contractId", "kind", "name"],
2055
- "type": "object",
2056
- },
2057
2015
  },
2058
- "required": ["kind", "surface", "required"],
2016
+ "required": ["contractId", "required"],
2059
2017
  "type": "object",
2060
- }, {
2018
+ },
2019
+ "type": "array",
2020
+ },
2021
+ "resources": {
2022
+ "items": {
2061
2023
  "properties": {
2062
- "capability": { "minLength": 1, "type": "string" },
2063
- "kind": { "const": "capability", "type": "string" },
2024
+ "alias": { "minLength": 1, "type": "string" },
2025
+ "definition": { "type": "object" },
2026
+ "kind": {
2027
+ "anyOf": [
2028
+ { "const": "kv", "type": "string" },
2029
+ { "const": "store", "type": "string" },
2030
+ { "const": "jobs", "type": "string" },
2031
+ { "const": "event-consumer", "type": "string" },
2032
+ { "const": "transfer", "type": "string" },
2033
+ ],
2034
+ },
2064
2035
  "required": { "type": "boolean" },
2065
2036
  },
2066
- "required": ["kind", "capability", "required"],
2037
+ "required": ["kind", "alias", "required"],
2067
2038
  "type": "object",
2068
- }, {
2069
- "properties": {
2070
- "kind": { "const": "resource", "type": "string" },
2071
- "required": { "type": "boolean" },
2072
- "resource": {
2073
- "properties": {
2074
- "alias": { "minLength": 1, "type": "string" },
2075
- "definition": { "type": "object" },
2076
- "kind": {
2077
- "anyOf": [
2078
- { "const": "kv", "type": "string" },
2079
- { "const": "store", "type": "string" },
2080
- { "const": "jobs", "type": "string" },
2081
- { "const": "event-consumer", "type": "string" },
2082
- { "const": "transfer", "type": "string" },
2083
- ],
2084
- },
2085
- "required": { "type": "boolean" },
2086
- },
2087
- "required": ["kind", "alias", "required"],
2088
- "type": "object",
2039
+ },
2040
+ "type": "array",
2041
+ },
2042
+ "surfaces": {
2043
+ "items": {
2044
+ "properties": {
2045
+ "action": {
2046
+ "anyOf": [
2047
+ { "const": "call", "type": "string" },
2048
+ { "const": "publish", "type": "string" },
2049
+ { "const": "subscribe", "type": "string" },
2050
+ { "const": "observe", "type": "string" },
2051
+ { "const": "cancel", "type": "string" },
2052
+ ],
2053
+ },
2054
+ "contractId": { "minLength": 1, "type": "string" },
2055
+ "kind": {
2056
+ "anyOf": [
2057
+ { "const": "rpc", "type": "string" },
2058
+ { "const": "operation", "type": "string" },
2059
+ { "const": "event", "type": "string" },
2060
+ { "const": "feed", "type": "string" },
2061
+ ],
2089
2062
  },
2063
+ "name": { "minLength": 1, "type": "string" },
2064
+ "required": { "type": "boolean" },
2090
2065
  },
2091
- "required": ["kind", "resource", "required"],
2066
+ "required": ["contractId", "kind", "name", "required"],
2092
2067
  "type": "object",
2093
- }],
2068
+ },
2069
+ "type": "array",
2070
+ },
2094
2071
  },
2095
- "type": "array",
2072
+ "required": [
2073
+ "contracts",
2074
+ "surfaces",
2075
+ "capabilities",
2076
+ "resources",
2077
+ ],
2078
+ "type": "object",
2096
2079
  },
2097
2080
  "summary": { "type": "object" },
2098
2081
  },
@@ -2206,83 +2189,87 @@ exports.AuthDeploymentAuthorityPlansGetResponseSchema = {
2206
2189
  "type": "array",
2207
2190
  },
2208
2191
  "requestedNeeds": {
2209
- "items": {
2210
- "anyOf": [{
2192
+ "properties": {
2193
+ "capabilities": {
2194
+ "items": {
2211
2195
  "properties": {
2212
- "contractId": { "minLength": 1, "type": "string" },
2213
- "kind": { "const": "contract", "type": "string" },
2196
+ "capability": { "minLength": 1, "type": "string" },
2214
2197
  "required": { "type": "boolean" },
2215
2198
  },
2216
- "required": ["kind", "contractId", "required"],
2199
+ "required": ["capability", "required"],
2217
2200
  "type": "object",
2218
- }, {
2201
+ },
2202
+ "type": "array",
2203
+ },
2204
+ "contracts": {
2205
+ "items": {
2219
2206
  "properties": {
2220
- "kind": { "const": "surface", "type": "string" },
2207
+ "contractId": { "minLength": 1, "type": "string" },
2221
2208
  "required": { "type": "boolean" },
2222
- "surface": {
2223
- "properties": {
2224
- "action": {
2225
- "anyOf": [
2226
- { "const": "call", "type": "string" },
2227
- { "const": "publish", "type": "string" },
2228
- { "const": "subscribe", "type": "string" },
2229
- { "const": "observe", "type": "string" },
2230
- { "const": "cancel", "type": "string" },
2231
- ],
2232
- },
2233
- "contractId": { "minLength": 1, "type": "string" },
2234
- "kind": {
2235
- "anyOf": [
2236
- { "const": "rpc", "type": "string" },
2237
- { "const": "operation", "type": "string" },
2238
- { "const": "event", "type": "string" },
2239
- { "const": "feed", "type": "string" },
2240
- ],
2241
- },
2242
- "name": { "minLength": 1, "type": "string" },
2243
- },
2244
- "required": ["contractId", "kind", "name"],
2245
- "type": "object",
2246
- },
2247
2209
  },
2248
- "required": ["kind", "surface", "required"],
2210
+ "required": ["contractId", "required"],
2249
2211
  "type": "object",
2250
- }, {
2212
+ },
2213
+ "type": "array",
2214
+ },
2215
+ "resources": {
2216
+ "items": {
2251
2217
  "properties": {
2252
- "capability": { "minLength": 1, "type": "string" },
2253
- "kind": { "const": "capability", "type": "string" },
2218
+ "alias": { "minLength": 1, "type": "string" },
2219
+ "definition": { "type": "object" },
2220
+ "kind": {
2221
+ "anyOf": [
2222
+ { "const": "kv", "type": "string" },
2223
+ { "const": "store", "type": "string" },
2224
+ { "const": "jobs", "type": "string" },
2225
+ { "const": "event-consumer", "type": "string" },
2226
+ { "const": "transfer", "type": "string" },
2227
+ ],
2228
+ },
2254
2229
  "required": { "type": "boolean" },
2255
2230
  },
2256
- "required": ["kind", "capability", "required"],
2231
+ "required": ["kind", "alias", "required"],
2257
2232
  "type": "object",
2258
- }, {
2233
+ },
2234
+ "type": "array",
2235
+ },
2236
+ "surfaces": {
2237
+ "items": {
2259
2238
  "properties": {
2260
- "kind": { "const": "resource", "type": "string" },
2261
- "required": { "type": "boolean" },
2262
- "resource": {
2263
- "properties": {
2264
- "alias": { "minLength": 1, "type": "string" },
2265
- "definition": { "type": "object" },
2266
- "kind": {
2267
- "anyOf": [
2268
- { "const": "kv", "type": "string" },
2269
- { "const": "store", "type": "string" },
2270
- { "const": "jobs", "type": "string" },
2271
- { "const": "event-consumer", "type": "string" },
2272
- { "const": "transfer", "type": "string" },
2273
- ],
2274
- },
2275
- "required": { "type": "boolean" },
2276
- },
2277
- "required": ["kind", "alias", "required"],
2278
- "type": "object",
2239
+ "action": {
2240
+ "anyOf": [
2241
+ { "const": "call", "type": "string" },
2242
+ { "const": "publish", "type": "string" },
2243
+ { "const": "subscribe", "type": "string" },
2244
+ { "const": "observe", "type": "string" },
2245
+ { "const": "cancel", "type": "string" },
2246
+ ],
2247
+ },
2248
+ "contractId": { "minLength": 1, "type": "string" },
2249
+ "kind": {
2250
+ "anyOf": [
2251
+ { "const": "rpc", "type": "string" },
2252
+ { "const": "operation", "type": "string" },
2253
+ { "const": "event", "type": "string" },
2254
+ { "const": "feed", "type": "string" },
2255
+ ],
2279
2256
  },
2257
+ "name": { "minLength": 1, "type": "string" },
2258
+ "required": { "type": "boolean" },
2280
2259
  },
2281
- "required": ["kind", "resource", "required"],
2260
+ "required": ["contractId", "kind", "name", "required"],
2282
2261
  "type": "object",
2283
- }],
2262
+ },
2263
+ "type": "array",
2264
+ },
2284
2265
  },
2285
- "type": "array",
2266
+ "required": [
2267
+ "contracts",
2268
+ "surfaces",
2269
+ "capabilities",
2270
+ "resources",
2271
+ ],
2272
+ "type": "object",
2286
2273
  },
2287
2274
  "summary": { "type": "object" },
2288
2275
  },
@@ -2382,83 +2369,87 @@ exports.AuthDeploymentAuthorityPlansGetResponseSchema = {
2382
2369
  "type": "array",
2383
2370
  },
2384
2371
  "requestedNeeds": {
2385
- "items": {
2386
- "anyOf": [{
2372
+ "properties": {
2373
+ "capabilities": {
2374
+ "items": {
2387
2375
  "properties": {
2388
- "contractId": { "minLength": 1, "type": "string" },
2389
- "kind": { "const": "contract", "type": "string" },
2376
+ "capability": { "minLength": 1, "type": "string" },
2390
2377
  "required": { "type": "boolean" },
2391
2378
  },
2392
- "required": ["kind", "contractId", "required"],
2379
+ "required": ["capability", "required"],
2393
2380
  "type": "object",
2394
- }, {
2381
+ },
2382
+ "type": "array",
2383
+ },
2384
+ "contracts": {
2385
+ "items": {
2395
2386
  "properties": {
2396
- "kind": { "const": "surface", "type": "string" },
2387
+ "contractId": { "minLength": 1, "type": "string" },
2397
2388
  "required": { "type": "boolean" },
2398
- "surface": {
2399
- "properties": {
2400
- "action": {
2401
- "anyOf": [
2402
- { "const": "call", "type": "string" },
2403
- { "const": "publish", "type": "string" },
2404
- { "const": "subscribe", "type": "string" },
2405
- { "const": "observe", "type": "string" },
2406
- { "const": "cancel", "type": "string" },
2407
- ],
2408
- },
2409
- "contractId": { "minLength": 1, "type": "string" },
2410
- "kind": {
2411
- "anyOf": [
2412
- { "const": "rpc", "type": "string" },
2413
- { "const": "operation", "type": "string" },
2414
- { "const": "event", "type": "string" },
2415
- { "const": "feed", "type": "string" },
2416
- ],
2417
- },
2418
- "name": { "minLength": 1, "type": "string" },
2419
- },
2420
- "required": ["contractId", "kind", "name"],
2421
- "type": "object",
2422
- },
2423
2389
  },
2424
- "required": ["kind", "surface", "required"],
2390
+ "required": ["contractId", "required"],
2425
2391
  "type": "object",
2426
- }, {
2392
+ },
2393
+ "type": "array",
2394
+ },
2395
+ "resources": {
2396
+ "items": {
2427
2397
  "properties": {
2428
- "capability": { "minLength": 1, "type": "string" },
2429
- "kind": { "const": "capability", "type": "string" },
2398
+ "alias": { "minLength": 1, "type": "string" },
2399
+ "definition": { "type": "object" },
2400
+ "kind": {
2401
+ "anyOf": [
2402
+ { "const": "kv", "type": "string" },
2403
+ { "const": "store", "type": "string" },
2404
+ { "const": "jobs", "type": "string" },
2405
+ { "const": "event-consumer", "type": "string" },
2406
+ { "const": "transfer", "type": "string" },
2407
+ ],
2408
+ },
2430
2409
  "required": { "type": "boolean" },
2431
2410
  },
2432
- "required": ["kind", "capability", "required"],
2411
+ "required": ["kind", "alias", "required"],
2433
2412
  "type": "object",
2434
- }, {
2413
+ },
2414
+ "type": "array",
2415
+ },
2416
+ "surfaces": {
2417
+ "items": {
2435
2418
  "properties": {
2436
- "kind": { "const": "resource", "type": "string" },
2437
- "required": { "type": "boolean" },
2438
- "resource": {
2439
- "properties": {
2440
- "alias": { "minLength": 1, "type": "string" },
2441
- "definition": { "type": "object" },
2442
- "kind": {
2443
- "anyOf": [
2444
- { "const": "kv", "type": "string" },
2445
- { "const": "store", "type": "string" },
2446
- { "const": "jobs", "type": "string" },
2447
- { "const": "event-consumer", "type": "string" },
2448
- { "const": "transfer", "type": "string" },
2449
- ],
2450
- },
2451
- "required": { "type": "boolean" },
2452
- },
2453
- "required": ["kind", "alias", "required"],
2454
- "type": "object",
2419
+ "action": {
2420
+ "anyOf": [
2421
+ { "const": "call", "type": "string" },
2422
+ { "const": "publish", "type": "string" },
2423
+ { "const": "subscribe", "type": "string" },
2424
+ { "const": "observe", "type": "string" },
2425
+ { "const": "cancel", "type": "string" },
2426
+ ],
2427
+ },
2428
+ "contractId": { "minLength": 1, "type": "string" },
2429
+ "kind": {
2430
+ "anyOf": [
2431
+ { "const": "rpc", "type": "string" },
2432
+ { "const": "operation", "type": "string" },
2433
+ { "const": "event", "type": "string" },
2434
+ { "const": "feed", "type": "string" },
2435
+ ],
2455
2436
  },
2437
+ "name": { "minLength": 1, "type": "string" },
2438
+ "required": { "type": "boolean" },
2456
2439
  },
2457
- "required": ["kind", "resource", "required"],
2440
+ "required": ["contractId", "kind", "name", "required"],
2458
2441
  "type": "object",
2459
- }],
2442
+ },
2443
+ "type": "array",
2444
+ },
2460
2445
  },
2461
- "type": "array",
2446
+ "required": [
2447
+ "contracts",
2448
+ "surfaces",
2449
+ "capabilities",
2450
+ "resources",
2451
+ ],
2452
+ "type": "object",
2462
2453
  },
2463
2454
  "summary": { "type": "object" },
2464
2455
  },
@@ -2605,83 +2596,87 @@ exports.AuthDeploymentAuthorityPlansListResponseSchema = {
2605
2596
  "type": "array",
2606
2597
  },
2607
2598
  "requestedNeeds": {
2608
- "items": {
2609
- "anyOf": [{
2599
+ "properties": {
2600
+ "capabilities": {
2601
+ "items": {
2610
2602
  "properties": {
2611
- "contractId": { "minLength": 1, "type": "string" },
2612
- "kind": { "const": "contract", "type": "string" },
2603
+ "capability": { "minLength": 1, "type": "string" },
2613
2604
  "required": { "type": "boolean" },
2614
2605
  },
2615
- "required": ["kind", "contractId", "required"],
2606
+ "required": ["capability", "required"],
2616
2607
  "type": "object",
2617
- }, {
2608
+ },
2609
+ "type": "array",
2610
+ },
2611
+ "contracts": {
2612
+ "items": {
2618
2613
  "properties": {
2619
- "kind": { "const": "surface", "type": "string" },
2614
+ "contractId": { "minLength": 1, "type": "string" },
2620
2615
  "required": { "type": "boolean" },
2621
- "surface": {
2622
- "properties": {
2623
- "action": {
2624
- "anyOf": [
2625
- { "const": "call", "type": "string" },
2626
- { "const": "publish", "type": "string" },
2627
- { "const": "subscribe", "type": "string" },
2628
- { "const": "observe", "type": "string" },
2629
- { "const": "cancel", "type": "string" },
2630
- ],
2631
- },
2632
- "contractId": { "minLength": 1, "type": "string" },
2633
- "kind": {
2634
- "anyOf": [
2635
- { "const": "rpc", "type": "string" },
2636
- { "const": "operation", "type": "string" },
2637
- { "const": "event", "type": "string" },
2638
- { "const": "feed", "type": "string" },
2639
- ],
2640
- },
2641
- "name": { "minLength": 1, "type": "string" },
2642
- },
2643
- "required": ["contractId", "kind", "name"],
2644
- "type": "object",
2645
- },
2646
2616
  },
2647
- "required": ["kind", "surface", "required"],
2617
+ "required": ["contractId", "required"],
2648
2618
  "type": "object",
2649
- }, {
2619
+ },
2620
+ "type": "array",
2621
+ },
2622
+ "resources": {
2623
+ "items": {
2650
2624
  "properties": {
2651
- "capability": { "minLength": 1, "type": "string" },
2652
- "kind": { "const": "capability", "type": "string" },
2625
+ "alias": { "minLength": 1, "type": "string" },
2626
+ "definition": { "type": "object" },
2627
+ "kind": {
2628
+ "anyOf": [
2629
+ { "const": "kv", "type": "string" },
2630
+ { "const": "store", "type": "string" },
2631
+ { "const": "jobs", "type": "string" },
2632
+ { "const": "event-consumer", "type": "string" },
2633
+ { "const": "transfer", "type": "string" },
2634
+ ],
2635
+ },
2653
2636
  "required": { "type": "boolean" },
2654
2637
  },
2655
- "required": ["kind", "capability", "required"],
2638
+ "required": ["kind", "alias", "required"],
2656
2639
  "type": "object",
2657
- }, {
2640
+ },
2641
+ "type": "array",
2642
+ },
2643
+ "surfaces": {
2644
+ "items": {
2658
2645
  "properties": {
2659
- "kind": { "const": "resource", "type": "string" },
2660
- "required": { "type": "boolean" },
2661
- "resource": {
2662
- "properties": {
2663
- "alias": { "minLength": 1, "type": "string" },
2664
- "definition": { "type": "object" },
2665
- "kind": {
2666
- "anyOf": [
2667
- { "const": "kv", "type": "string" },
2668
- { "const": "store", "type": "string" },
2669
- { "const": "jobs", "type": "string" },
2670
- { "const": "event-consumer", "type": "string" },
2671
- { "const": "transfer", "type": "string" },
2672
- ],
2673
- },
2674
- "required": { "type": "boolean" },
2675
- },
2676
- "required": ["kind", "alias", "required"],
2677
- "type": "object",
2646
+ "action": {
2647
+ "anyOf": [
2648
+ { "const": "call", "type": "string" },
2649
+ { "const": "publish", "type": "string" },
2650
+ { "const": "subscribe", "type": "string" },
2651
+ { "const": "observe", "type": "string" },
2652
+ { "const": "cancel", "type": "string" },
2653
+ ],
2654
+ },
2655
+ "contractId": { "minLength": 1, "type": "string" },
2656
+ "kind": {
2657
+ "anyOf": [
2658
+ { "const": "rpc", "type": "string" },
2659
+ { "const": "operation", "type": "string" },
2660
+ { "const": "event", "type": "string" },
2661
+ { "const": "feed", "type": "string" },
2662
+ ],
2678
2663
  },
2664
+ "name": { "minLength": 1, "type": "string" },
2665
+ "required": { "type": "boolean" },
2679
2666
  },
2680
- "required": ["kind", "resource", "required"],
2667
+ "required": ["contractId", "kind", "name", "required"],
2681
2668
  "type": "object",
2682
- }],
2669
+ },
2670
+ "type": "array",
2671
+ },
2683
2672
  },
2684
- "type": "array",
2673
+ "required": [
2674
+ "contracts",
2675
+ "surfaces",
2676
+ "capabilities",
2677
+ "resources",
2678
+ ],
2679
+ "type": "object",
2685
2680
  },
2686
2681
  "summary": { "type": "object" },
2687
2682
  },
@@ -2783,83 +2778,87 @@ exports.AuthDeploymentAuthorityPlansListResponseSchema = {
2783
2778
  "type": "array",
2784
2779
  },
2785
2780
  "requestedNeeds": {
2786
- "items": {
2787
- "anyOf": [{
2781
+ "properties": {
2782
+ "capabilities": {
2783
+ "items": {
2788
2784
  "properties": {
2789
- "contractId": { "minLength": 1, "type": "string" },
2790
- "kind": { "const": "contract", "type": "string" },
2785
+ "capability": { "minLength": 1, "type": "string" },
2791
2786
  "required": { "type": "boolean" },
2792
2787
  },
2793
- "required": ["kind", "contractId", "required"],
2788
+ "required": ["capability", "required"],
2794
2789
  "type": "object",
2795
- }, {
2790
+ },
2791
+ "type": "array",
2792
+ },
2793
+ "contracts": {
2794
+ "items": {
2796
2795
  "properties": {
2797
- "kind": { "const": "surface", "type": "string" },
2796
+ "contractId": { "minLength": 1, "type": "string" },
2798
2797
  "required": { "type": "boolean" },
2799
- "surface": {
2800
- "properties": {
2801
- "action": {
2802
- "anyOf": [
2803
- { "const": "call", "type": "string" },
2804
- { "const": "publish", "type": "string" },
2805
- { "const": "subscribe", "type": "string" },
2806
- { "const": "observe", "type": "string" },
2807
- { "const": "cancel", "type": "string" },
2808
- ],
2809
- },
2810
- "contractId": { "minLength": 1, "type": "string" },
2811
- "kind": {
2812
- "anyOf": [
2813
- { "const": "rpc", "type": "string" },
2814
- { "const": "operation", "type": "string" },
2815
- { "const": "event", "type": "string" },
2816
- { "const": "feed", "type": "string" },
2817
- ],
2818
- },
2819
- "name": { "minLength": 1, "type": "string" },
2820
- },
2821
- "required": ["contractId", "kind", "name"],
2822
- "type": "object",
2823
- },
2824
2798
  },
2825
- "required": ["kind", "surface", "required"],
2799
+ "required": ["contractId", "required"],
2826
2800
  "type": "object",
2827
- }, {
2801
+ },
2802
+ "type": "array",
2803
+ },
2804
+ "resources": {
2805
+ "items": {
2828
2806
  "properties": {
2829
- "capability": { "minLength": 1, "type": "string" },
2830
- "kind": { "const": "capability", "type": "string" },
2807
+ "alias": { "minLength": 1, "type": "string" },
2808
+ "definition": { "type": "object" },
2809
+ "kind": {
2810
+ "anyOf": [
2811
+ { "const": "kv", "type": "string" },
2812
+ { "const": "store", "type": "string" },
2813
+ { "const": "jobs", "type": "string" },
2814
+ { "const": "event-consumer", "type": "string" },
2815
+ { "const": "transfer", "type": "string" },
2816
+ ],
2817
+ },
2831
2818
  "required": { "type": "boolean" },
2832
2819
  },
2833
- "required": ["kind", "capability", "required"],
2820
+ "required": ["kind", "alias", "required"],
2834
2821
  "type": "object",
2835
- }, {
2822
+ },
2823
+ "type": "array",
2824
+ },
2825
+ "surfaces": {
2826
+ "items": {
2836
2827
  "properties": {
2837
- "kind": { "const": "resource", "type": "string" },
2838
- "required": { "type": "boolean" },
2839
- "resource": {
2840
- "properties": {
2841
- "alias": { "minLength": 1, "type": "string" },
2842
- "definition": { "type": "object" },
2843
- "kind": {
2844
- "anyOf": [
2845
- { "const": "kv", "type": "string" },
2846
- { "const": "store", "type": "string" },
2847
- { "const": "jobs", "type": "string" },
2848
- { "const": "event-consumer", "type": "string" },
2849
- { "const": "transfer", "type": "string" },
2850
- ],
2851
- },
2852
- "required": { "type": "boolean" },
2853
- },
2854
- "required": ["kind", "alias", "required"],
2855
- "type": "object",
2828
+ "action": {
2829
+ "anyOf": [
2830
+ { "const": "call", "type": "string" },
2831
+ { "const": "publish", "type": "string" },
2832
+ { "const": "subscribe", "type": "string" },
2833
+ { "const": "observe", "type": "string" },
2834
+ { "const": "cancel", "type": "string" },
2835
+ ],
2836
+ },
2837
+ "contractId": { "minLength": 1, "type": "string" },
2838
+ "kind": {
2839
+ "anyOf": [
2840
+ { "const": "rpc", "type": "string" },
2841
+ { "const": "operation", "type": "string" },
2842
+ { "const": "event", "type": "string" },
2843
+ { "const": "feed", "type": "string" },
2844
+ ],
2856
2845
  },
2846
+ "name": { "minLength": 1, "type": "string" },
2847
+ "required": { "type": "boolean" },
2857
2848
  },
2858
- "required": ["kind", "resource", "required"],
2849
+ "required": ["contractId", "kind", "name", "required"],
2859
2850
  "type": "object",
2860
- }],
2851
+ },
2852
+ "type": "array",
2853
+ },
2861
2854
  },
2862
- "type": "array",
2855
+ "required": [
2856
+ "contracts",
2857
+ "surfaces",
2858
+ "capabilities",
2859
+ "resources",
2860
+ ],
2861
+ "type": "object",
2863
2862
  },
2864
2863
  "summary": { "type": "object" },
2865
2864
  },
@@ -2929,83 +2928,87 @@ exports.AuthDeploymentAuthorityReconcileResponseSchema = {
2929
2928
  "type": "array",
2930
2929
  },
2931
2930
  "needs": {
2932
- "items": {
2933
- "anyOf": [{
2931
+ "properties": {
2932
+ "capabilities": {
2933
+ "items": {
2934
2934
  "properties": {
2935
- "contractId": { "minLength": 1, "type": "string" },
2936
- "kind": { "const": "contract", "type": "string" },
2935
+ "capability": { "minLength": 1, "type": "string" },
2937
2936
  "required": { "type": "boolean" },
2938
2937
  },
2939
- "required": ["kind", "contractId", "required"],
2938
+ "required": ["capability", "required"],
2940
2939
  "type": "object",
2941
- }, {
2940
+ },
2941
+ "type": "array",
2942
+ },
2943
+ "contracts": {
2944
+ "items": {
2942
2945
  "properties": {
2943
- "kind": { "const": "surface", "type": "string" },
2946
+ "contractId": { "minLength": 1, "type": "string" },
2944
2947
  "required": { "type": "boolean" },
2945
- "surface": {
2946
- "properties": {
2947
- "action": {
2948
- "anyOf": [
2949
- { "const": "call", "type": "string" },
2950
- { "const": "publish", "type": "string" },
2951
- { "const": "subscribe", "type": "string" },
2952
- { "const": "observe", "type": "string" },
2953
- { "const": "cancel", "type": "string" },
2954
- ],
2955
- },
2956
- "contractId": { "minLength": 1, "type": "string" },
2957
- "kind": {
2958
- "anyOf": [
2959
- { "const": "rpc", "type": "string" },
2960
- { "const": "operation", "type": "string" },
2961
- { "const": "event", "type": "string" },
2962
- { "const": "feed", "type": "string" },
2963
- ],
2964
- },
2965
- "name": { "minLength": 1, "type": "string" },
2966
- },
2967
- "required": ["contractId", "kind", "name"],
2968
- "type": "object",
2969
- },
2970
2948
  },
2971
- "required": ["kind", "surface", "required"],
2949
+ "required": ["contractId", "required"],
2972
2950
  "type": "object",
2973
- }, {
2951
+ },
2952
+ "type": "array",
2953
+ },
2954
+ "resources": {
2955
+ "items": {
2974
2956
  "properties": {
2975
- "capability": { "minLength": 1, "type": "string" },
2976
- "kind": { "const": "capability", "type": "string" },
2957
+ "alias": { "minLength": 1, "type": "string" },
2958
+ "definition": { "type": "object" },
2959
+ "kind": {
2960
+ "anyOf": [
2961
+ { "const": "kv", "type": "string" },
2962
+ { "const": "store", "type": "string" },
2963
+ { "const": "jobs", "type": "string" },
2964
+ { "const": "event-consumer", "type": "string" },
2965
+ { "const": "transfer", "type": "string" },
2966
+ ],
2967
+ },
2977
2968
  "required": { "type": "boolean" },
2978
2969
  },
2979
- "required": ["kind", "capability", "required"],
2970
+ "required": ["kind", "alias", "required"],
2980
2971
  "type": "object",
2981
- }, {
2972
+ },
2973
+ "type": "array",
2974
+ },
2975
+ "surfaces": {
2976
+ "items": {
2982
2977
  "properties": {
2983
- "kind": { "const": "resource", "type": "string" },
2984
- "required": { "type": "boolean" },
2985
- "resource": {
2986
- "properties": {
2987
- "alias": { "minLength": 1, "type": "string" },
2988
- "definition": { "type": "object" },
2989
- "kind": {
2990
- "anyOf": [
2991
- { "const": "kv", "type": "string" },
2992
- { "const": "store", "type": "string" },
2993
- { "const": "jobs", "type": "string" },
2994
- { "const": "event-consumer", "type": "string" },
2995
- { "const": "transfer", "type": "string" },
2996
- ],
2997
- },
2998
- "required": { "type": "boolean" },
2999
- },
3000
- "required": ["kind", "alias", "required"],
3001
- "type": "object",
2978
+ "action": {
2979
+ "anyOf": [
2980
+ { "const": "call", "type": "string" },
2981
+ { "const": "publish", "type": "string" },
2982
+ { "const": "subscribe", "type": "string" },
2983
+ { "const": "observe", "type": "string" },
2984
+ { "const": "cancel", "type": "string" },
2985
+ ],
2986
+ },
2987
+ "contractId": { "minLength": 1, "type": "string" },
2988
+ "kind": {
2989
+ "anyOf": [
2990
+ { "const": "rpc", "type": "string" },
2991
+ { "const": "operation", "type": "string" },
2992
+ { "const": "event", "type": "string" },
2993
+ { "const": "feed", "type": "string" },
2994
+ ],
3002
2995
  },
2996
+ "name": { "minLength": 1, "type": "string" },
2997
+ "required": { "type": "boolean" },
3003
2998
  },
3004
- "required": ["kind", "resource", "required"],
2999
+ "required": ["contractId", "kind", "name", "required"],
3005
3000
  "type": "object",
3006
- }],
3001
+ },
3002
+ "type": "array",
3003
+ },
3007
3004
  },
3008
- "type": "array",
3005
+ "required": [
3006
+ "contracts",
3007
+ "surfaces",
3008
+ "capabilities",
3009
+ "resources",
3010
+ ],
3011
+ "type": "object",
3009
3012
  },
3010
3013
  "resources": {
3011
3014
  "items": {
@@ -3091,40 +3094,19 @@ exports.AuthDeploymentAuthorityReconcileResponseSchema = {
3091
3094
  "desiredVersion": { "minLength": 1, "type": "string" },
3092
3095
  "error": { "minLength": 1, "type": "string" },
3093
3096
  "grants": {
3094
- "items": {
3095
- "anyOf": [{
3097
+ "properties": {
3098
+ "capabilities": {
3099
+ "items": {
3096
3100
  "properties": {
3097
3101
  "capability": { "minLength": 1, "type": "string" },
3098
- "kind": { "const": "capability", "type": "string" },
3099
- },
3100
- "required": ["kind", "capability"],
3101
- "type": "object",
3102
- }, {
3103
- "properties": {
3104
- "action": {
3105
- "anyOf": [
3106
- { "const": "call", "type": "string" },
3107
- { "const": "publish", "type": "string" },
3108
- { "const": "subscribe", "type": "string" },
3109
- { "const": "observe", "type": "string" },
3110
- { "const": "cancel", "type": "string" },
3111
- ],
3112
- },
3113
- "contractId": { "minLength": 1, "type": "string" },
3114
- "kind": { "const": "surface", "type": "string" },
3115
- "name": { "minLength": 1, "type": "string" },
3116
- "surfaceKind": {
3117
- "anyOf": [
3118
- { "const": "rpc", "type": "string" },
3119
- { "const": "operation", "type": "string" },
3120
- { "const": "event", "type": "string" },
3121
- { "const": "feed", "type": "string" },
3122
- ],
3123
- },
3124
3102
  },
3125
- "required": ["kind", "contractId", "surfaceKind", "name"],
3103
+ "required": ["capability"],
3126
3104
  "type": "object",
3127
- }, {
3105
+ },
3106
+ "type": "array",
3107
+ },
3108
+ "nats": {
3109
+ "items": {
3128
3110
  "properties": {
3129
3111
  "direction": {
3130
3112
  "anyOf": [{ "const": "publish", "type": "string" }, {
@@ -3141,7 +3123,6 @@ exports.AuthDeploymentAuthorityReconcileResponseSchema = {
3141
3123
  { "const": "transfer", "type": "string" },
3142
3124
  ],
3143
3125
  },
3144
- "kind": { "const": "nats", "type": "string" },
3145
3126
  "requiredCapabilities": {
3146
3127
  "items": { "minLength": 1, "type": "string" },
3147
3128
  "type": "array",
@@ -3174,16 +3155,46 @@ exports.AuthDeploymentAuthorityReconcileResponseSchema = {
3174
3155
  },
3175
3156
  },
3176
3157
  "required": [
3177
- "kind",
3178
3158
  "direction",
3179
3159
  "subject",
3180
3160
  "requiredCapabilities",
3181
3161
  "grantSource",
3182
3162
  ],
3183
3163
  "type": "object",
3184
- }],
3164
+ },
3165
+ "type": "array",
3166
+ },
3167
+ "surfaces": {
3168
+ "items": {
3169
+ "properties": {
3170
+ "action": {
3171
+ "anyOf": [
3172
+ { "const": "call", "type": "string" },
3173
+ { "const": "publish", "type": "string" },
3174
+ { "const": "subscribe", "type": "string" },
3175
+ { "const": "observe", "type": "string" },
3176
+ { "const": "cancel", "type": "string" },
3177
+ ],
3178
+ },
3179
+ "contractId": { "minLength": 1, "type": "string" },
3180
+ "name": { "minLength": 1, "type": "string" },
3181
+ "surfaceKind": {
3182
+ "anyOf": [
3183
+ { "const": "rpc", "type": "string" },
3184
+ { "const": "operation", "type": "string" },
3185
+ { "const": "event", "type": "string" },
3186
+ { "const": "feed", "type": "string" },
3187
+ ],
3188
+ },
3189
+ },
3190
+ "required": ["contractId", "surfaceKind", "name"],
3191
+ "type": "object",
3192
+ },
3193
+ "type": "array",
3194
+ },
3185
3195
  },
3186
- "type": "array",
3196
+ "required": ["capabilities", "surfaces", "nats"],
3197
+ "type": "object",
3187
3198
  },
3188
3199
  "reconciledAt": {
3189
3200
  "anyOf": [{ "format": "date-time", "type": "string" }, {
@@ -5175,6 +5186,38 @@ exports.AuthServiceInstancesDisableResponseSchema = {
5175
5186
  "type": "integer",
5176
5187
  },
5177
5188
  "dlq": { "type": "boolean" },
5189
+ "keyConcurrency": {
5190
+ "properties": {
5191
+ "heartbeatIntervalMs": {
5192
+ "minimum": 1,
5193
+ "type": "integer",
5194
+ },
5195
+ "heartbeatTtlMs": {
5196
+ "minimum": 1,
5197
+ "type": "integer",
5198
+ },
5199
+ "key": {
5200
+ "items": { "minLength": 1, "type": "string" },
5201
+ "minItems": 1,
5202
+ "type": "array",
5203
+ },
5204
+ "maxActive": { "minimum": 1, "type": "integer" },
5205
+ "stalePolicy": {
5206
+ "anyOf": [{
5207
+ "const": "fail-stale",
5208
+ "type": "string",
5209
+ }, { "const": "block", "type": "string" }],
5210
+ },
5211
+ },
5212
+ "required": [
5213
+ "key",
5214
+ "maxActive",
5215
+ "heartbeatIntervalMs",
5216
+ "heartbeatTtlMs",
5217
+ "stalePolicy",
5218
+ ],
5219
+ "type": "object",
5220
+ },
5178
5221
  "logs": { "type": "boolean" },
5179
5222
  "maxDeliver": { "minimum": 1, "type": "integer" },
5180
5223
  "payload": {
@@ -5186,6 +5229,23 @@ exports.AuthServiceInstancesDisableResponseSchema = {
5186
5229
  },
5187
5230
  "progress": { "type": "boolean" },
5188
5231
  "publishPrefix": { "minLength": 1, "type": "string" },
5232
+ "queue": {
5233
+ "properties": {
5234
+ "maxQueuedPerKey": {
5235
+ "minimum": 0,
5236
+ "type": "integer",
5237
+ },
5238
+ "whenFull": {
5239
+ "anyOf": [
5240
+ { "const": "reject", "type": "string" },
5241
+ { "const": "coalesce", "type": "string" },
5242
+ { "const": "replace-oldest", "type": "string" },
5243
+ ],
5244
+ },
5245
+ },
5246
+ "required": ["maxQueuedPerKey", "whenFull"],
5247
+ "type": "object",
5248
+ },
5189
5249
  "queueType": { "minLength": 1, "type": "string" },
5190
5250
  "result": {
5191
5251
  "properties": {
@@ -5345,6 +5405,38 @@ exports.AuthServiceInstancesEnableResponseSchema = {
5345
5405
  "type": "integer",
5346
5406
  },
5347
5407
  "dlq": { "type": "boolean" },
5408
+ "keyConcurrency": {
5409
+ "properties": {
5410
+ "heartbeatIntervalMs": {
5411
+ "minimum": 1,
5412
+ "type": "integer",
5413
+ },
5414
+ "heartbeatTtlMs": {
5415
+ "minimum": 1,
5416
+ "type": "integer",
5417
+ },
5418
+ "key": {
5419
+ "items": { "minLength": 1, "type": "string" },
5420
+ "minItems": 1,
5421
+ "type": "array",
5422
+ },
5423
+ "maxActive": { "minimum": 1, "type": "integer" },
5424
+ "stalePolicy": {
5425
+ "anyOf": [{
5426
+ "const": "fail-stale",
5427
+ "type": "string",
5428
+ }, { "const": "block", "type": "string" }],
5429
+ },
5430
+ },
5431
+ "required": [
5432
+ "key",
5433
+ "maxActive",
5434
+ "heartbeatIntervalMs",
5435
+ "heartbeatTtlMs",
5436
+ "stalePolicy",
5437
+ ],
5438
+ "type": "object",
5439
+ },
5348
5440
  "logs": { "type": "boolean" },
5349
5441
  "maxDeliver": { "minimum": 1, "type": "integer" },
5350
5442
  "payload": {
@@ -5356,6 +5448,23 @@ exports.AuthServiceInstancesEnableResponseSchema = {
5356
5448
  },
5357
5449
  "progress": { "type": "boolean" },
5358
5450
  "publishPrefix": { "minLength": 1, "type": "string" },
5451
+ "queue": {
5452
+ "properties": {
5453
+ "maxQueuedPerKey": {
5454
+ "minimum": 0,
5455
+ "type": "integer",
5456
+ },
5457
+ "whenFull": {
5458
+ "anyOf": [
5459
+ { "const": "reject", "type": "string" },
5460
+ { "const": "coalesce", "type": "string" },
5461
+ { "const": "replace-oldest", "type": "string" },
5462
+ ],
5463
+ },
5464
+ },
5465
+ "required": ["maxQueuedPerKey", "whenFull"],
5466
+ "type": "object",
5467
+ },
5359
5468
  "queueType": { "minLength": 1, "type": "string" },
5360
5469
  "result": {
5361
5470
  "properties": {
@@ -5523,6 +5632,38 @@ exports.AuthServiceInstancesListResponseSchema = {
5523
5632
  "type": "integer",
5524
5633
  },
5525
5634
  "dlq": { "type": "boolean" },
5635
+ "keyConcurrency": {
5636
+ "properties": {
5637
+ "heartbeatIntervalMs": {
5638
+ "minimum": 1,
5639
+ "type": "integer",
5640
+ },
5641
+ "heartbeatTtlMs": {
5642
+ "minimum": 1,
5643
+ "type": "integer",
5644
+ },
5645
+ "key": {
5646
+ "items": { "minLength": 1, "type": "string" },
5647
+ "minItems": 1,
5648
+ "type": "array",
5649
+ },
5650
+ "maxActive": { "minimum": 1, "type": "integer" },
5651
+ "stalePolicy": {
5652
+ "anyOf": [{
5653
+ "const": "fail-stale",
5654
+ "type": "string",
5655
+ }, { "const": "block", "type": "string" }],
5656
+ },
5657
+ },
5658
+ "required": [
5659
+ "key",
5660
+ "maxActive",
5661
+ "heartbeatIntervalMs",
5662
+ "heartbeatTtlMs",
5663
+ "stalePolicy",
5664
+ ],
5665
+ "type": "object",
5666
+ },
5526
5667
  "logs": { "type": "boolean" },
5527
5668
  "maxDeliver": { "minimum": 1, "type": "integer" },
5528
5669
  "payload": {
@@ -5534,6 +5675,26 @@ exports.AuthServiceInstancesListResponseSchema = {
5534
5675
  },
5535
5676
  "progress": { "type": "boolean" },
5536
5677
  "publishPrefix": { "minLength": 1, "type": "string" },
5678
+ "queue": {
5679
+ "properties": {
5680
+ "maxQueuedPerKey": {
5681
+ "minimum": 0,
5682
+ "type": "integer",
5683
+ },
5684
+ "whenFull": {
5685
+ "anyOf": [
5686
+ { "const": "reject", "type": "string" },
5687
+ { "const": "coalesce", "type": "string" },
5688
+ {
5689
+ "const": "replace-oldest",
5690
+ "type": "string",
5691
+ },
5692
+ ],
5693
+ },
5694
+ },
5695
+ "required": ["maxQueuedPerKey", "whenFull"],
5696
+ "type": "object",
5697
+ },
5537
5698
  "queueType": { "minLength": 1, "type": "string" },
5538
5699
  "result": {
5539
5700
  "properties": {
@@ -5701,6 +5862,38 @@ exports.AuthServiceInstancesProvisionResponseSchema = {
5701
5862
  "type": "integer",
5702
5863
  },
5703
5864
  "dlq": { "type": "boolean" },
5865
+ "keyConcurrency": {
5866
+ "properties": {
5867
+ "heartbeatIntervalMs": {
5868
+ "minimum": 1,
5869
+ "type": "integer",
5870
+ },
5871
+ "heartbeatTtlMs": {
5872
+ "minimum": 1,
5873
+ "type": "integer",
5874
+ },
5875
+ "key": {
5876
+ "items": { "minLength": 1, "type": "string" },
5877
+ "minItems": 1,
5878
+ "type": "array",
5879
+ },
5880
+ "maxActive": { "minimum": 1, "type": "integer" },
5881
+ "stalePolicy": {
5882
+ "anyOf": [{
5883
+ "const": "fail-stale",
5884
+ "type": "string",
5885
+ }, { "const": "block", "type": "string" }],
5886
+ },
5887
+ },
5888
+ "required": [
5889
+ "key",
5890
+ "maxActive",
5891
+ "heartbeatIntervalMs",
5892
+ "heartbeatTtlMs",
5893
+ "stalePolicy",
5894
+ ],
5895
+ "type": "object",
5896
+ },
5704
5897
  "logs": { "type": "boolean" },
5705
5898
  "maxDeliver": { "minimum": 1, "type": "integer" },
5706
5899
  "payload": {
@@ -5712,6 +5905,23 @@ exports.AuthServiceInstancesProvisionResponseSchema = {
5712
5905
  },
5713
5906
  "progress": { "type": "boolean" },
5714
5907
  "publishPrefix": { "minLength": 1, "type": "string" },
5908
+ "queue": {
5909
+ "properties": {
5910
+ "maxQueuedPerKey": {
5911
+ "minimum": 0,
5912
+ "type": "integer",
5913
+ },
5914
+ "whenFull": {
5915
+ "anyOf": [
5916
+ { "const": "reject", "type": "string" },
5917
+ { "const": "coalesce", "type": "string" },
5918
+ { "const": "replace-oldest", "type": "string" },
5919
+ ],
5920
+ },
5921
+ },
5922
+ "required": ["maxQueuedPerKey", "whenFull"],
5923
+ "type": "object",
5924
+ },
5715
5925
  "queueType": { "minLength": 1, "type": "string" },
5716
5926
  "result": {
5717
5927
  "properties": {
@@ -6082,29 +6292,14 @@ exports.AuthSessionsRevokeResponseSchema = {
6082
6292
  "type": "object",
6083
6293
  };
6084
6294
  exports.AuthSessionsRevokedEventSchema = {
6085
- "allOf": [{
6086
- "properties": {
6087
- "header": {
6088
- "properties": {
6089
- "id": { "type": "string" },
6090
- "time": { "format": "date-time", "type": "string" },
6091
- },
6092
- "required": ["id", "time"],
6093
- "type": "object",
6094
- },
6095
- },
6096
- "required": ["header"],
6097
- "type": "object",
6098
- }, {
6099
- "properties": {
6100
- "id": { "type": "string" },
6101
- "origin": { "type": "string" },
6102
- "revokedBy": { "type": "string" },
6103
- "sessionKey": { "type": "string" },
6104
- },
6105
- "required": ["origin", "id", "sessionKey", "revokedBy"],
6106
- "type": "object",
6107
- }],
6295
+ "properties": {
6296
+ "id": { "type": "string" },
6297
+ "origin": { "type": "string" },
6298
+ "revokedBy": { "type": "string" },
6299
+ "sessionKey": { "type": "string" },
6300
+ },
6301
+ "required": ["origin", "id", "sessionKey", "revokedBy"],
6302
+ "type": "object",
6108
6303
  };
6109
6304
  exports.AuthUserIdentitiesListRequestSchema = {
6110
6305
  "properties": {