@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
@@ -222,29 +222,14 @@ export const AuthCatalogIssuesResolveResponseSchema = {
222
222
  "type": "object",
223
223
  };
224
224
  export const AuthConnectionsClosedEventSchema = {
225
- "allOf": [{
226
- "properties": {
227
- "header": {
228
- "properties": {
229
- "id": { "type": "string" },
230
- "time": { "format": "date-time", "type": "string" },
231
- },
232
- "required": ["id", "time"],
233
- "type": "object",
234
- },
235
- },
236
- "required": ["header"],
237
- "type": "object",
238
- }, {
239
- "properties": {
240
- "id": { "type": "string" },
241
- "origin": { "type": "string" },
242
- "sessionKey": { "type": "string" },
243
- "userNkey": { "type": "string" },
244
- },
245
- "required": ["origin", "id", "sessionKey", "userNkey"],
246
- "type": "object",
247
- }],
225
+ "properties": {
226
+ "id": { "type": "string" },
227
+ "origin": { "type": "string" },
228
+ "sessionKey": { "type": "string" },
229
+ "userNkey": { "type": "string" },
230
+ },
231
+ "required": ["origin", "id", "sessionKey", "userNkey"],
232
+ "type": "object",
248
233
  };
249
234
  export const AuthConnectionsKickRequestSchema = {
250
235
  "properties": { "userNkey": { "type": "string" } },
@@ -257,29 +242,14 @@ export const AuthConnectionsKickResponseSchema = {
257
242
  "type": "object",
258
243
  };
259
244
  export const AuthConnectionsKickedEventSchema = {
260
- "allOf": [{
261
- "properties": {
262
- "header": {
263
- "properties": {
264
- "id": { "type": "string" },
265
- "time": { "format": "date-time", "type": "string" },
266
- },
267
- "required": ["id", "time"],
268
- "type": "object",
269
- },
270
- },
271
- "required": ["header"],
272
- "type": "object",
273
- }, {
274
- "properties": {
275
- "id": { "type": "string" },
276
- "kickedBy": { "type": "string" },
277
- "origin": { "type": "string" },
278
- "userNkey": { "type": "string" },
279
- },
280
- "required": ["origin", "id", "userNkey", "kickedBy"],
281
- "type": "object",
282
- }],
245
+ "properties": {
246
+ "id": { "type": "string" },
247
+ "kickedBy": { "type": "string" },
248
+ "origin": { "type": "string" },
249
+ "userNkey": { "type": "string" },
250
+ },
251
+ "required": ["origin", "id", "userNkey", "kickedBy"],
252
+ "type": "object",
283
253
  };
284
254
  export const AuthConnectionsListRequestSchema = {
285
255
  "properties": {
@@ -468,29 +438,14 @@ export const AuthConnectionsListResponseSchema = {
468
438
  "type": "object",
469
439
  };
470
440
  export const AuthConnectionsOpenedEventSchema = {
471
- "allOf": [{
472
- "properties": {
473
- "header": {
474
- "properties": {
475
- "id": { "type": "string" },
476
- "time": { "format": "date-time", "type": "string" },
477
- },
478
- "required": ["id", "time"],
479
- "type": "object",
480
- },
481
- },
482
- "required": ["header"],
483
- "type": "object",
484
- }, {
485
- "properties": {
486
- "id": { "type": "string" },
487
- "origin": { "type": "string" },
488
- "sessionKey": { "type": "string" },
489
- "userNkey": { "type": "string" },
490
- },
491
- "required": ["origin", "id", "sessionKey", "userNkey"],
492
- "type": "object",
493
- }],
441
+ "properties": {
442
+ "id": { "type": "string" },
443
+ "origin": { "type": "string" },
444
+ "sessionKey": { "type": "string" },
445
+ "userNkey": { "type": "string" },
446
+ },
447
+ "required": ["origin", "id", "sessionKey", "userNkey"],
448
+ "type": "object",
494
449
  };
495
450
  export const AuthDeploymentAuthorityAcceptMigrationRequestSchema = {
496
451
  "properties": {
@@ -514,83 +469,87 @@ export const AuthDeploymentAuthorityAcceptResponseSchema = {
514
469
  "type": "array",
515
470
  },
516
471
  "needs": {
517
- "items": {
518
- "anyOf": [{
472
+ "properties": {
473
+ "capabilities": {
474
+ "items": {
519
475
  "properties": {
520
- "contractId": { "minLength": 1, "type": "string" },
521
- "kind": { "const": "contract", "type": "string" },
476
+ "capability": { "minLength": 1, "type": "string" },
522
477
  "required": { "type": "boolean" },
523
478
  },
524
- "required": ["kind", "contractId", "required"],
479
+ "required": ["capability", "required"],
525
480
  "type": "object",
526
- }, {
481
+ },
482
+ "type": "array",
483
+ },
484
+ "contracts": {
485
+ "items": {
527
486
  "properties": {
528
- "kind": { "const": "surface", "type": "string" },
487
+ "contractId": { "minLength": 1, "type": "string" },
529
488
  "required": { "type": "boolean" },
530
- "surface": {
531
- "properties": {
532
- "action": {
533
- "anyOf": [
534
- { "const": "call", "type": "string" },
535
- { "const": "publish", "type": "string" },
536
- { "const": "subscribe", "type": "string" },
537
- { "const": "observe", "type": "string" },
538
- { "const": "cancel", "type": "string" },
539
- ],
540
- },
541
- "contractId": { "minLength": 1, "type": "string" },
542
- "kind": {
543
- "anyOf": [
544
- { "const": "rpc", "type": "string" },
545
- { "const": "operation", "type": "string" },
546
- { "const": "event", "type": "string" },
547
- { "const": "feed", "type": "string" },
548
- ],
549
- },
550
- "name": { "minLength": 1, "type": "string" },
551
- },
552
- "required": ["contractId", "kind", "name"],
553
- "type": "object",
554
- },
555
489
  },
556
- "required": ["kind", "surface", "required"],
490
+ "required": ["contractId", "required"],
557
491
  "type": "object",
558
- }, {
492
+ },
493
+ "type": "array",
494
+ },
495
+ "resources": {
496
+ "items": {
559
497
  "properties": {
560
- "capability": { "minLength": 1, "type": "string" },
561
- "kind": { "const": "capability", "type": "string" },
498
+ "alias": { "minLength": 1, "type": "string" },
499
+ "definition": { "type": "object" },
500
+ "kind": {
501
+ "anyOf": [
502
+ { "const": "kv", "type": "string" },
503
+ { "const": "store", "type": "string" },
504
+ { "const": "jobs", "type": "string" },
505
+ { "const": "event-consumer", "type": "string" },
506
+ { "const": "transfer", "type": "string" },
507
+ ],
508
+ },
562
509
  "required": { "type": "boolean" },
563
510
  },
564
- "required": ["kind", "capability", "required"],
511
+ "required": ["kind", "alias", "required"],
565
512
  "type": "object",
566
- }, {
513
+ },
514
+ "type": "array",
515
+ },
516
+ "surfaces": {
517
+ "items": {
567
518
  "properties": {
568
- "kind": { "const": "resource", "type": "string" },
569
- "required": { "type": "boolean" },
570
- "resource": {
571
- "properties": {
572
- "alias": { "minLength": 1, "type": "string" },
573
- "definition": { "type": "object" },
574
- "kind": {
575
- "anyOf": [
576
- { "const": "kv", "type": "string" },
577
- { "const": "store", "type": "string" },
578
- { "const": "jobs", "type": "string" },
579
- { "const": "event-consumer", "type": "string" },
580
- { "const": "transfer", "type": "string" },
581
- ],
582
- },
583
- "required": { "type": "boolean" },
584
- },
585
- "required": ["kind", "alias", "required"],
586
- "type": "object",
519
+ "action": {
520
+ "anyOf": [
521
+ { "const": "call", "type": "string" },
522
+ { "const": "publish", "type": "string" },
523
+ { "const": "subscribe", "type": "string" },
524
+ { "const": "observe", "type": "string" },
525
+ { "const": "cancel", "type": "string" },
526
+ ],
527
+ },
528
+ "contractId": { "minLength": 1, "type": "string" },
529
+ "kind": {
530
+ "anyOf": [
531
+ { "const": "rpc", "type": "string" },
532
+ { "const": "operation", "type": "string" },
533
+ { "const": "event", "type": "string" },
534
+ { "const": "feed", "type": "string" },
535
+ ],
587
536
  },
537
+ "name": { "minLength": 1, "type": "string" },
538
+ "required": { "type": "boolean" },
588
539
  },
589
- "required": ["kind", "resource", "required"],
540
+ "required": ["contractId", "kind", "name", "required"],
590
541
  "type": "object",
591
- }],
542
+ },
543
+ "type": "array",
544
+ },
592
545
  },
593
- "type": "array",
546
+ "required": [
547
+ "contracts",
548
+ "surfaces",
549
+ "capabilities",
550
+ "resources",
551
+ ],
552
+ "type": "object",
594
553
  },
595
554
  "resources": {
596
555
  "items": {
@@ -700,83 +659,87 @@ export const AuthDeploymentAuthorityGetResponseSchema = {
700
659
  "type": "array",
701
660
  },
702
661
  "needs": {
703
- "items": {
704
- "anyOf": [{
662
+ "properties": {
663
+ "capabilities": {
664
+ "items": {
705
665
  "properties": {
706
- "contractId": { "minLength": 1, "type": "string" },
707
- "kind": { "const": "contract", "type": "string" },
666
+ "capability": { "minLength": 1, "type": "string" },
708
667
  "required": { "type": "boolean" },
709
668
  },
710
- "required": ["kind", "contractId", "required"],
669
+ "required": ["capability", "required"],
711
670
  "type": "object",
712
- }, {
671
+ },
672
+ "type": "array",
673
+ },
674
+ "contracts": {
675
+ "items": {
713
676
  "properties": {
714
- "kind": { "const": "surface", "type": "string" },
677
+ "contractId": { "minLength": 1, "type": "string" },
715
678
  "required": { "type": "boolean" },
716
- "surface": {
717
- "properties": {
718
- "action": {
719
- "anyOf": [
720
- { "const": "call", "type": "string" },
721
- { "const": "publish", "type": "string" },
722
- { "const": "subscribe", "type": "string" },
723
- { "const": "observe", "type": "string" },
724
- { "const": "cancel", "type": "string" },
725
- ],
726
- },
727
- "contractId": { "minLength": 1, "type": "string" },
728
- "kind": {
729
- "anyOf": [
730
- { "const": "rpc", "type": "string" },
731
- { "const": "operation", "type": "string" },
732
- { "const": "event", "type": "string" },
733
- { "const": "feed", "type": "string" },
734
- ],
735
- },
736
- "name": { "minLength": 1, "type": "string" },
737
- },
738
- "required": ["contractId", "kind", "name"],
739
- "type": "object",
740
- },
741
679
  },
742
- "required": ["kind", "surface", "required"],
680
+ "required": ["contractId", "required"],
743
681
  "type": "object",
744
- }, {
682
+ },
683
+ "type": "array",
684
+ },
685
+ "resources": {
686
+ "items": {
745
687
  "properties": {
746
- "capability": { "minLength": 1, "type": "string" },
747
- "kind": { "const": "capability", "type": "string" },
688
+ "alias": { "minLength": 1, "type": "string" },
689
+ "definition": { "type": "object" },
690
+ "kind": {
691
+ "anyOf": [
692
+ { "const": "kv", "type": "string" },
693
+ { "const": "store", "type": "string" },
694
+ { "const": "jobs", "type": "string" },
695
+ { "const": "event-consumer", "type": "string" },
696
+ { "const": "transfer", "type": "string" },
697
+ ],
698
+ },
748
699
  "required": { "type": "boolean" },
749
700
  },
750
- "required": ["kind", "capability", "required"],
701
+ "required": ["kind", "alias", "required"],
751
702
  "type": "object",
752
- }, {
703
+ },
704
+ "type": "array",
705
+ },
706
+ "surfaces": {
707
+ "items": {
753
708
  "properties": {
754
- "kind": { "const": "resource", "type": "string" },
755
- "required": { "type": "boolean" },
756
- "resource": {
757
- "properties": {
758
- "alias": { "minLength": 1, "type": "string" },
759
- "definition": { "type": "object" },
760
- "kind": {
761
- "anyOf": [
762
- { "const": "kv", "type": "string" },
763
- { "const": "store", "type": "string" },
764
- { "const": "jobs", "type": "string" },
765
- { "const": "event-consumer", "type": "string" },
766
- { "const": "transfer", "type": "string" },
767
- ],
768
- },
769
- "required": { "type": "boolean" },
770
- },
771
- "required": ["kind", "alias", "required"],
772
- "type": "object",
709
+ "action": {
710
+ "anyOf": [
711
+ { "const": "call", "type": "string" },
712
+ { "const": "publish", "type": "string" },
713
+ { "const": "subscribe", "type": "string" },
714
+ { "const": "observe", "type": "string" },
715
+ { "const": "cancel", "type": "string" },
716
+ ],
717
+ },
718
+ "contractId": { "minLength": 1, "type": "string" },
719
+ "kind": {
720
+ "anyOf": [
721
+ { "const": "rpc", "type": "string" },
722
+ { "const": "operation", "type": "string" },
723
+ { "const": "event", "type": "string" },
724
+ { "const": "feed", "type": "string" },
725
+ ],
773
726
  },
727
+ "name": { "minLength": 1, "type": "string" },
728
+ "required": { "type": "boolean" },
774
729
  },
775
- "required": ["kind", "resource", "required"],
730
+ "required": ["contractId", "kind", "name", "required"],
776
731
  "type": "object",
777
- }],
732
+ },
733
+ "type": "array",
734
+ },
778
735
  },
779
- "type": "array",
736
+ "required": [
737
+ "contracts",
738
+ "surfaces",
739
+ "capabilities",
740
+ "resources",
741
+ ],
742
+ "type": "object",
780
743
  },
781
744
  "resources": {
782
745
  "items": {
@@ -957,48 +920,27 @@ export const AuthDeploymentAuthorityGetResponseSchema = {
957
920
  "desiredVersion": { "minLength": 1, "type": "string" },
958
921
  "error": { "minLength": 1, "type": "string" },
959
922
  "grants": {
960
- "items": {
961
- "anyOf": [{
923
+ "properties": {
924
+ "capabilities": {
925
+ "items": {
962
926
  "properties": {
963
927
  "capability": { "minLength": 1, "type": "string" },
964
- "kind": { "const": "capability", "type": "string" },
965
928
  },
966
- "required": ["kind", "capability"],
929
+ "required": ["capability"],
967
930
  "type": "object",
968
- }, {
931
+ },
932
+ "type": "array",
933
+ },
934
+ "nats": {
935
+ "items": {
969
936
  "properties": {
970
- "action": {
971
- "anyOf": [
972
- { "const": "call", "type": "string" },
973
- { "const": "publish", "type": "string" },
974
- { "const": "subscribe", "type": "string" },
975
- { "const": "observe", "type": "string" },
976
- { "const": "cancel", "type": "string" },
977
- ],
978
- },
979
- "contractId": { "minLength": 1, "type": "string" },
980
- "kind": { "const": "surface", "type": "string" },
981
- "name": { "minLength": 1, "type": "string" },
982
- "surfaceKind": {
983
- "anyOf": [
984
- { "const": "rpc", "type": "string" },
985
- { "const": "operation", "type": "string" },
986
- { "const": "event", "type": "string" },
987
- { "const": "feed", "type": "string" },
988
- ],
989
- },
990
- },
991
- "required": ["kind", "contractId", "surfaceKind", "name"],
992
- "type": "object",
993
- }, {
994
- "properties": {
995
- "direction": {
996
- "anyOf": [{ "const": "publish", "type": "string" }, {
997
- "const": "subscribe",
998
- "type": "string",
999
- }],
1000
- },
1001
- "grantSource": {
937
+ "direction": {
938
+ "anyOf": [{ "const": "publish", "type": "string" }, {
939
+ "const": "subscribe",
940
+ "type": "string",
941
+ }],
942
+ },
943
+ "grantSource": {
1002
944
  "anyOf": [
1003
945
  { "const": "owned-surface", "type": "string" },
1004
946
  { "const": "used-surface", "type": "string" },
@@ -1007,7 +949,6 @@ export const AuthDeploymentAuthorityGetResponseSchema = {
1007
949
  { "const": "transfer", "type": "string" },
1008
950
  ],
1009
951
  },
1010
- "kind": { "const": "nats", "type": "string" },
1011
952
  "requiredCapabilities": {
1012
953
  "items": { "minLength": 1, "type": "string" },
1013
954
  "type": "array",
@@ -1040,16 +981,46 @@ export const AuthDeploymentAuthorityGetResponseSchema = {
1040
981
  },
1041
982
  },
1042
983
  "required": [
1043
- "kind",
1044
984
  "direction",
1045
985
  "subject",
1046
986
  "requiredCapabilities",
1047
987
  "grantSource",
1048
988
  ],
1049
989
  "type": "object",
1050
- }],
990
+ },
991
+ "type": "array",
992
+ },
993
+ "surfaces": {
994
+ "items": {
995
+ "properties": {
996
+ "action": {
997
+ "anyOf": [
998
+ { "const": "call", "type": "string" },
999
+ { "const": "publish", "type": "string" },
1000
+ { "const": "subscribe", "type": "string" },
1001
+ { "const": "observe", "type": "string" },
1002
+ { "const": "cancel", "type": "string" },
1003
+ ],
1004
+ },
1005
+ "contractId": { "minLength": 1, "type": "string" },
1006
+ "name": { "minLength": 1, "type": "string" },
1007
+ "surfaceKind": {
1008
+ "anyOf": [
1009
+ { "const": "rpc", "type": "string" },
1010
+ { "const": "operation", "type": "string" },
1011
+ { "const": "event", "type": "string" },
1012
+ { "const": "feed", "type": "string" },
1013
+ ],
1014
+ },
1015
+ },
1016
+ "required": ["contractId", "surfaceKind", "name"],
1017
+ "type": "object",
1018
+ },
1019
+ "type": "array",
1020
+ },
1051
1021
  },
1052
- "type": "array",
1022
+ "required": ["capabilities", "surfaces", "nats"],
1023
+ "type": "object",
1053
1024
  },
1054
1025
  "reconciledAt": {
1055
1026
  "anyOf": [{ "format": "date-time", "type": "string" }, {
@@ -1596,83 +1567,87 @@ export const AuthDeploymentAuthorityListResponseSchema = {
1596
1567
  "type": "array",
1597
1568
  },
1598
1569
  "needs": {
1599
- "items": {
1600
- "anyOf": [{
1570
+ "properties": {
1571
+ "capabilities": {
1572
+ "items": {
1601
1573
  "properties": {
1602
- "contractId": { "minLength": 1, "type": "string" },
1603
- "kind": { "const": "contract", "type": "string" },
1574
+ "capability": { "minLength": 1, "type": "string" },
1604
1575
  "required": { "type": "boolean" },
1605
1576
  },
1606
- "required": ["kind", "contractId", "required"],
1577
+ "required": ["capability", "required"],
1607
1578
  "type": "object",
1608
- }, {
1579
+ },
1580
+ "type": "array",
1581
+ },
1582
+ "contracts": {
1583
+ "items": {
1609
1584
  "properties": {
1610
- "kind": { "const": "surface", "type": "string" },
1585
+ "contractId": { "minLength": 1, "type": "string" },
1611
1586
  "required": { "type": "boolean" },
1612
- "surface": {
1613
- "properties": {
1614
- "action": {
1615
- "anyOf": [
1616
- { "const": "call", "type": "string" },
1617
- { "const": "publish", "type": "string" },
1618
- { "const": "subscribe", "type": "string" },
1619
- { "const": "observe", "type": "string" },
1620
- { "const": "cancel", "type": "string" },
1621
- ],
1622
- },
1623
- "contractId": { "minLength": 1, "type": "string" },
1624
- "kind": {
1625
- "anyOf": [
1626
- { "const": "rpc", "type": "string" },
1627
- { "const": "operation", "type": "string" },
1628
- { "const": "event", "type": "string" },
1629
- { "const": "feed", "type": "string" },
1630
- ],
1631
- },
1632
- "name": { "minLength": 1, "type": "string" },
1633
- },
1634
- "required": ["contractId", "kind", "name"],
1635
- "type": "object",
1636
- },
1637
1587
  },
1638
- "required": ["kind", "surface", "required"],
1588
+ "required": ["contractId", "required"],
1639
1589
  "type": "object",
1640
- }, {
1590
+ },
1591
+ "type": "array",
1592
+ },
1593
+ "resources": {
1594
+ "items": {
1641
1595
  "properties": {
1642
- "capability": { "minLength": 1, "type": "string" },
1643
- "kind": { "const": "capability", "type": "string" },
1596
+ "alias": { "minLength": 1, "type": "string" },
1597
+ "definition": { "type": "object" },
1598
+ "kind": {
1599
+ "anyOf": [
1600
+ { "const": "kv", "type": "string" },
1601
+ { "const": "store", "type": "string" },
1602
+ { "const": "jobs", "type": "string" },
1603
+ { "const": "event-consumer", "type": "string" },
1604
+ { "const": "transfer", "type": "string" },
1605
+ ],
1606
+ },
1644
1607
  "required": { "type": "boolean" },
1645
1608
  },
1646
- "required": ["kind", "capability", "required"],
1609
+ "required": ["kind", "alias", "required"],
1647
1610
  "type": "object",
1648
- }, {
1611
+ },
1612
+ "type": "array",
1613
+ },
1614
+ "surfaces": {
1615
+ "items": {
1649
1616
  "properties": {
1650
- "kind": { "const": "resource", "type": "string" },
1651
- "required": { "type": "boolean" },
1652
- "resource": {
1653
- "properties": {
1654
- "alias": { "minLength": 1, "type": "string" },
1655
- "definition": { "type": "object" },
1656
- "kind": {
1657
- "anyOf": [
1658
- { "const": "kv", "type": "string" },
1659
- { "const": "store", "type": "string" },
1660
- { "const": "jobs", "type": "string" },
1661
- { "const": "event-consumer", "type": "string" },
1662
- { "const": "transfer", "type": "string" },
1663
- ],
1664
- },
1665
- "required": { "type": "boolean" },
1666
- },
1667
- "required": ["kind", "alias", "required"],
1668
- "type": "object",
1617
+ "action": {
1618
+ "anyOf": [
1619
+ { "const": "call", "type": "string" },
1620
+ { "const": "publish", "type": "string" },
1621
+ { "const": "subscribe", "type": "string" },
1622
+ { "const": "observe", "type": "string" },
1623
+ { "const": "cancel", "type": "string" },
1624
+ ],
1625
+ },
1626
+ "contractId": { "minLength": 1, "type": "string" },
1627
+ "kind": {
1628
+ "anyOf": [
1629
+ { "const": "rpc", "type": "string" },
1630
+ { "const": "operation", "type": "string" },
1631
+ { "const": "event", "type": "string" },
1632
+ { "const": "feed", "type": "string" },
1633
+ ],
1669
1634
  },
1635
+ "name": { "minLength": 1, "type": "string" },
1636
+ "required": { "type": "boolean" },
1670
1637
  },
1671
- "required": ["kind", "resource", "required"],
1638
+ "required": ["contractId", "kind", "name", "required"],
1672
1639
  "type": "object",
1673
- }],
1640
+ },
1641
+ "type": "array",
1642
+ },
1674
1643
  },
1675
- "type": "array",
1644
+ "required": [
1645
+ "contracts",
1646
+ "surfaces",
1647
+ "capabilities",
1648
+ "resources",
1649
+ ],
1650
+ "type": "object",
1676
1651
  },
1677
1652
  "resources": {
1678
1653
  "items": {
@@ -1835,83 +1810,87 @@ export const AuthDeploymentAuthorityPlanResponseSchema = {
1835
1810
  "type": "array",
1836
1811
  },
1837
1812
  "requestedNeeds": {
1838
- "items": {
1839
- "anyOf": [{
1813
+ "properties": {
1814
+ "capabilities": {
1815
+ "items": {
1840
1816
  "properties": {
1841
- "contractId": { "minLength": 1, "type": "string" },
1842
- "kind": { "const": "contract", "type": "string" },
1817
+ "capability": { "minLength": 1, "type": "string" },
1843
1818
  "required": { "type": "boolean" },
1844
1819
  },
1845
- "required": ["kind", "contractId", "required"],
1820
+ "required": ["capability", "required"],
1846
1821
  "type": "object",
1847
- }, {
1822
+ },
1823
+ "type": "array",
1824
+ },
1825
+ "contracts": {
1826
+ "items": {
1848
1827
  "properties": {
1849
- "kind": { "const": "surface", "type": "string" },
1828
+ "contractId": { "minLength": 1, "type": "string" },
1850
1829
  "required": { "type": "boolean" },
1851
- "surface": {
1852
- "properties": {
1853
- "action": {
1854
- "anyOf": [
1855
- { "const": "call", "type": "string" },
1856
- { "const": "publish", "type": "string" },
1857
- { "const": "subscribe", "type": "string" },
1858
- { "const": "observe", "type": "string" },
1859
- { "const": "cancel", "type": "string" },
1860
- ],
1861
- },
1862
- "contractId": { "minLength": 1, "type": "string" },
1863
- "kind": {
1864
- "anyOf": [
1865
- { "const": "rpc", "type": "string" },
1866
- { "const": "operation", "type": "string" },
1867
- { "const": "event", "type": "string" },
1868
- { "const": "feed", "type": "string" },
1869
- ],
1870
- },
1871
- "name": { "minLength": 1, "type": "string" },
1872
- },
1873
- "required": ["contractId", "kind", "name"],
1874
- "type": "object",
1875
- },
1876
1830
  },
1877
- "required": ["kind", "surface", "required"],
1831
+ "required": ["contractId", "required"],
1878
1832
  "type": "object",
1879
- }, {
1833
+ },
1834
+ "type": "array",
1835
+ },
1836
+ "resources": {
1837
+ "items": {
1880
1838
  "properties": {
1881
- "capability": { "minLength": 1, "type": "string" },
1882
- "kind": { "const": "capability", "type": "string" },
1839
+ "alias": { "minLength": 1, "type": "string" },
1840
+ "definition": { "type": "object" },
1841
+ "kind": {
1842
+ "anyOf": [
1843
+ { "const": "kv", "type": "string" },
1844
+ { "const": "store", "type": "string" },
1845
+ { "const": "jobs", "type": "string" },
1846
+ { "const": "event-consumer", "type": "string" },
1847
+ { "const": "transfer", "type": "string" },
1848
+ ],
1849
+ },
1883
1850
  "required": { "type": "boolean" },
1884
1851
  },
1885
- "required": ["kind", "capability", "required"],
1852
+ "required": ["kind", "alias", "required"],
1886
1853
  "type": "object",
1887
- }, {
1854
+ },
1855
+ "type": "array",
1856
+ },
1857
+ "surfaces": {
1858
+ "items": {
1888
1859
  "properties": {
1889
- "kind": { "const": "resource", "type": "string" },
1890
- "required": { "type": "boolean" },
1891
- "resource": {
1892
- "properties": {
1893
- "alias": { "minLength": 1, "type": "string" },
1894
- "definition": { "type": "object" },
1895
- "kind": {
1896
- "anyOf": [
1897
- { "const": "kv", "type": "string" },
1898
- { "const": "store", "type": "string" },
1899
- { "const": "jobs", "type": "string" },
1900
- { "const": "event-consumer", "type": "string" },
1901
- { "const": "transfer", "type": "string" },
1902
- ],
1903
- },
1904
- "required": { "type": "boolean" },
1905
- },
1906
- "required": ["kind", "alias", "required"],
1907
- "type": "object",
1860
+ "action": {
1861
+ "anyOf": [
1862
+ { "const": "call", "type": "string" },
1863
+ { "const": "publish", "type": "string" },
1864
+ { "const": "subscribe", "type": "string" },
1865
+ { "const": "observe", "type": "string" },
1866
+ { "const": "cancel", "type": "string" },
1867
+ ],
1868
+ },
1869
+ "contractId": { "minLength": 1, "type": "string" },
1870
+ "kind": {
1871
+ "anyOf": [
1872
+ { "const": "rpc", "type": "string" },
1873
+ { "const": "operation", "type": "string" },
1874
+ { "const": "event", "type": "string" },
1875
+ { "const": "feed", "type": "string" },
1876
+ ],
1908
1877
  },
1878
+ "name": { "minLength": 1, "type": "string" },
1879
+ "required": { "type": "boolean" },
1909
1880
  },
1910
- "required": ["kind", "resource", "required"],
1881
+ "required": ["contractId", "kind", "name", "required"],
1911
1882
  "type": "object",
1912
- }],
1883
+ },
1884
+ "type": "array",
1885
+ },
1913
1886
  },
1914
- "type": "array",
1887
+ "required": [
1888
+ "contracts",
1889
+ "surfaces",
1890
+ "capabilities",
1891
+ "resources",
1892
+ ],
1893
+ "type": "object",
1915
1894
  },
1916
1895
  "summary": { "type": "object" },
1917
1896
  },
@@ -2011,83 +1990,87 @@ export const AuthDeploymentAuthorityPlanResponseSchema = {
2011
1990
  "type": "array",
2012
1991
  },
2013
1992
  "requestedNeeds": {
2014
- "items": {
2015
- "anyOf": [{
1993
+ "properties": {
1994
+ "capabilities": {
1995
+ "items": {
2016
1996
  "properties": {
2017
- "contractId": { "minLength": 1, "type": "string" },
2018
- "kind": { "const": "contract", "type": "string" },
1997
+ "capability": { "minLength": 1, "type": "string" },
2019
1998
  "required": { "type": "boolean" },
2020
1999
  },
2021
- "required": ["kind", "contractId", "required"],
2000
+ "required": ["capability", "required"],
2022
2001
  "type": "object",
2023
- }, {
2002
+ },
2003
+ "type": "array",
2004
+ },
2005
+ "contracts": {
2006
+ "items": {
2024
2007
  "properties": {
2025
- "kind": { "const": "surface", "type": "string" },
2008
+ "contractId": { "minLength": 1, "type": "string" },
2026
2009
  "required": { "type": "boolean" },
2027
- "surface": {
2028
- "properties": {
2029
- "action": {
2030
- "anyOf": [
2031
- { "const": "call", "type": "string" },
2032
- { "const": "publish", "type": "string" },
2033
- { "const": "subscribe", "type": "string" },
2034
- { "const": "observe", "type": "string" },
2035
- { "const": "cancel", "type": "string" },
2036
- ],
2037
- },
2038
- "contractId": { "minLength": 1, "type": "string" },
2039
- "kind": {
2040
- "anyOf": [
2041
- { "const": "rpc", "type": "string" },
2042
- { "const": "operation", "type": "string" },
2043
- { "const": "event", "type": "string" },
2044
- { "const": "feed", "type": "string" },
2045
- ],
2046
- },
2047
- "name": { "minLength": 1, "type": "string" },
2048
- },
2049
- "required": ["contractId", "kind", "name"],
2050
- "type": "object",
2051
- },
2052
2010
  },
2053
- "required": ["kind", "surface", "required"],
2011
+ "required": ["contractId", "required"],
2054
2012
  "type": "object",
2055
- }, {
2013
+ },
2014
+ "type": "array",
2015
+ },
2016
+ "resources": {
2017
+ "items": {
2056
2018
  "properties": {
2057
- "capability": { "minLength": 1, "type": "string" },
2058
- "kind": { "const": "capability", "type": "string" },
2019
+ "alias": { "minLength": 1, "type": "string" },
2020
+ "definition": { "type": "object" },
2021
+ "kind": {
2022
+ "anyOf": [
2023
+ { "const": "kv", "type": "string" },
2024
+ { "const": "store", "type": "string" },
2025
+ { "const": "jobs", "type": "string" },
2026
+ { "const": "event-consumer", "type": "string" },
2027
+ { "const": "transfer", "type": "string" },
2028
+ ],
2029
+ },
2059
2030
  "required": { "type": "boolean" },
2060
2031
  },
2061
- "required": ["kind", "capability", "required"],
2032
+ "required": ["kind", "alias", "required"],
2062
2033
  "type": "object",
2063
- }, {
2064
- "properties": {
2065
- "kind": { "const": "resource", "type": "string" },
2066
- "required": { "type": "boolean" },
2067
- "resource": {
2068
- "properties": {
2069
- "alias": { "minLength": 1, "type": "string" },
2070
- "definition": { "type": "object" },
2071
- "kind": {
2072
- "anyOf": [
2073
- { "const": "kv", "type": "string" },
2074
- { "const": "store", "type": "string" },
2075
- { "const": "jobs", "type": "string" },
2076
- { "const": "event-consumer", "type": "string" },
2077
- { "const": "transfer", "type": "string" },
2078
- ],
2079
- },
2080
- "required": { "type": "boolean" },
2081
- },
2082
- "required": ["kind", "alias", "required"],
2083
- "type": "object",
2034
+ },
2035
+ "type": "array",
2036
+ },
2037
+ "surfaces": {
2038
+ "items": {
2039
+ "properties": {
2040
+ "action": {
2041
+ "anyOf": [
2042
+ { "const": "call", "type": "string" },
2043
+ { "const": "publish", "type": "string" },
2044
+ { "const": "subscribe", "type": "string" },
2045
+ { "const": "observe", "type": "string" },
2046
+ { "const": "cancel", "type": "string" },
2047
+ ],
2048
+ },
2049
+ "contractId": { "minLength": 1, "type": "string" },
2050
+ "kind": {
2051
+ "anyOf": [
2052
+ { "const": "rpc", "type": "string" },
2053
+ { "const": "operation", "type": "string" },
2054
+ { "const": "event", "type": "string" },
2055
+ { "const": "feed", "type": "string" },
2056
+ ],
2084
2057
  },
2058
+ "name": { "minLength": 1, "type": "string" },
2059
+ "required": { "type": "boolean" },
2085
2060
  },
2086
- "required": ["kind", "resource", "required"],
2061
+ "required": ["contractId", "kind", "name", "required"],
2087
2062
  "type": "object",
2088
- }],
2063
+ },
2064
+ "type": "array",
2065
+ },
2089
2066
  },
2090
- "type": "array",
2067
+ "required": [
2068
+ "contracts",
2069
+ "surfaces",
2070
+ "capabilities",
2071
+ "resources",
2072
+ ],
2073
+ "type": "object",
2091
2074
  },
2092
2075
  "summary": { "type": "object" },
2093
2076
  },
@@ -2201,83 +2184,87 @@ export const AuthDeploymentAuthorityPlansGetResponseSchema = {
2201
2184
  "type": "array",
2202
2185
  },
2203
2186
  "requestedNeeds": {
2204
- "items": {
2205
- "anyOf": [{
2187
+ "properties": {
2188
+ "capabilities": {
2189
+ "items": {
2206
2190
  "properties": {
2207
- "contractId": { "minLength": 1, "type": "string" },
2208
- "kind": { "const": "contract", "type": "string" },
2191
+ "capability": { "minLength": 1, "type": "string" },
2209
2192
  "required": { "type": "boolean" },
2210
2193
  },
2211
- "required": ["kind", "contractId", "required"],
2194
+ "required": ["capability", "required"],
2212
2195
  "type": "object",
2213
- }, {
2196
+ },
2197
+ "type": "array",
2198
+ },
2199
+ "contracts": {
2200
+ "items": {
2214
2201
  "properties": {
2215
- "kind": { "const": "surface", "type": "string" },
2202
+ "contractId": { "minLength": 1, "type": "string" },
2216
2203
  "required": { "type": "boolean" },
2217
- "surface": {
2218
- "properties": {
2219
- "action": {
2220
- "anyOf": [
2221
- { "const": "call", "type": "string" },
2222
- { "const": "publish", "type": "string" },
2223
- { "const": "subscribe", "type": "string" },
2224
- { "const": "observe", "type": "string" },
2225
- { "const": "cancel", "type": "string" },
2226
- ],
2227
- },
2228
- "contractId": { "minLength": 1, "type": "string" },
2229
- "kind": {
2230
- "anyOf": [
2231
- { "const": "rpc", "type": "string" },
2232
- { "const": "operation", "type": "string" },
2233
- { "const": "event", "type": "string" },
2234
- { "const": "feed", "type": "string" },
2235
- ],
2236
- },
2237
- "name": { "minLength": 1, "type": "string" },
2238
- },
2239
- "required": ["contractId", "kind", "name"],
2240
- "type": "object",
2241
- },
2242
2204
  },
2243
- "required": ["kind", "surface", "required"],
2205
+ "required": ["contractId", "required"],
2244
2206
  "type": "object",
2245
- }, {
2207
+ },
2208
+ "type": "array",
2209
+ },
2210
+ "resources": {
2211
+ "items": {
2246
2212
  "properties": {
2247
- "capability": { "minLength": 1, "type": "string" },
2248
- "kind": { "const": "capability", "type": "string" },
2213
+ "alias": { "minLength": 1, "type": "string" },
2214
+ "definition": { "type": "object" },
2215
+ "kind": {
2216
+ "anyOf": [
2217
+ { "const": "kv", "type": "string" },
2218
+ { "const": "store", "type": "string" },
2219
+ { "const": "jobs", "type": "string" },
2220
+ { "const": "event-consumer", "type": "string" },
2221
+ { "const": "transfer", "type": "string" },
2222
+ ],
2223
+ },
2249
2224
  "required": { "type": "boolean" },
2250
2225
  },
2251
- "required": ["kind", "capability", "required"],
2226
+ "required": ["kind", "alias", "required"],
2252
2227
  "type": "object",
2253
- }, {
2228
+ },
2229
+ "type": "array",
2230
+ },
2231
+ "surfaces": {
2232
+ "items": {
2254
2233
  "properties": {
2255
- "kind": { "const": "resource", "type": "string" },
2256
- "required": { "type": "boolean" },
2257
- "resource": {
2258
- "properties": {
2259
- "alias": { "minLength": 1, "type": "string" },
2260
- "definition": { "type": "object" },
2261
- "kind": {
2262
- "anyOf": [
2263
- { "const": "kv", "type": "string" },
2264
- { "const": "store", "type": "string" },
2265
- { "const": "jobs", "type": "string" },
2266
- { "const": "event-consumer", "type": "string" },
2267
- { "const": "transfer", "type": "string" },
2268
- ],
2269
- },
2270
- "required": { "type": "boolean" },
2271
- },
2272
- "required": ["kind", "alias", "required"],
2273
- "type": "object",
2234
+ "action": {
2235
+ "anyOf": [
2236
+ { "const": "call", "type": "string" },
2237
+ { "const": "publish", "type": "string" },
2238
+ { "const": "subscribe", "type": "string" },
2239
+ { "const": "observe", "type": "string" },
2240
+ { "const": "cancel", "type": "string" },
2241
+ ],
2242
+ },
2243
+ "contractId": { "minLength": 1, "type": "string" },
2244
+ "kind": {
2245
+ "anyOf": [
2246
+ { "const": "rpc", "type": "string" },
2247
+ { "const": "operation", "type": "string" },
2248
+ { "const": "event", "type": "string" },
2249
+ { "const": "feed", "type": "string" },
2250
+ ],
2274
2251
  },
2252
+ "name": { "minLength": 1, "type": "string" },
2253
+ "required": { "type": "boolean" },
2275
2254
  },
2276
- "required": ["kind", "resource", "required"],
2255
+ "required": ["contractId", "kind", "name", "required"],
2277
2256
  "type": "object",
2278
- }],
2257
+ },
2258
+ "type": "array",
2259
+ },
2279
2260
  },
2280
- "type": "array",
2261
+ "required": [
2262
+ "contracts",
2263
+ "surfaces",
2264
+ "capabilities",
2265
+ "resources",
2266
+ ],
2267
+ "type": "object",
2281
2268
  },
2282
2269
  "summary": { "type": "object" },
2283
2270
  },
@@ -2377,83 +2364,87 @@ export const AuthDeploymentAuthorityPlansGetResponseSchema = {
2377
2364
  "type": "array",
2378
2365
  },
2379
2366
  "requestedNeeds": {
2380
- "items": {
2381
- "anyOf": [{
2367
+ "properties": {
2368
+ "capabilities": {
2369
+ "items": {
2382
2370
  "properties": {
2383
- "contractId": { "minLength": 1, "type": "string" },
2384
- "kind": { "const": "contract", "type": "string" },
2371
+ "capability": { "minLength": 1, "type": "string" },
2385
2372
  "required": { "type": "boolean" },
2386
2373
  },
2387
- "required": ["kind", "contractId", "required"],
2374
+ "required": ["capability", "required"],
2388
2375
  "type": "object",
2389
- }, {
2376
+ },
2377
+ "type": "array",
2378
+ },
2379
+ "contracts": {
2380
+ "items": {
2390
2381
  "properties": {
2391
- "kind": { "const": "surface", "type": "string" },
2382
+ "contractId": { "minLength": 1, "type": "string" },
2392
2383
  "required": { "type": "boolean" },
2393
- "surface": {
2394
- "properties": {
2395
- "action": {
2396
- "anyOf": [
2397
- { "const": "call", "type": "string" },
2398
- { "const": "publish", "type": "string" },
2399
- { "const": "subscribe", "type": "string" },
2400
- { "const": "observe", "type": "string" },
2401
- { "const": "cancel", "type": "string" },
2402
- ],
2403
- },
2404
- "contractId": { "minLength": 1, "type": "string" },
2405
- "kind": {
2406
- "anyOf": [
2407
- { "const": "rpc", "type": "string" },
2408
- { "const": "operation", "type": "string" },
2409
- { "const": "event", "type": "string" },
2410
- { "const": "feed", "type": "string" },
2411
- ],
2412
- },
2413
- "name": { "minLength": 1, "type": "string" },
2414
- },
2415
- "required": ["contractId", "kind", "name"],
2416
- "type": "object",
2417
- },
2418
2384
  },
2419
- "required": ["kind", "surface", "required"],
2385
+ "required": ["contractId", "required"],
2420
2386
  "type": "object",
2421
- }, {
2387
+ },
2388
+ "type": "array",
2389
+ },
2390
+ "resources": {
2391
+ "items": {
2422
2392
  "properties": {
2423
- "capability": { "minLength": 1, "type": "string" },
2424
- "kind": { "const": "capability", "type": "string" },
2393
+ "alias": { "minLength": 1, "type": "string" },
2394
+ "definition": { "type": "object" },
2395
+ "kind": {
2396
+ "anyOf": [
2397
+ { "const": "kv", "type": "string" },
2398
+ { "const": "store", "type": "string" },
2399
+ { "const": "jobs", "type": "string" },
2400
+ { "const": "event-consumer", "type": "string" },
2401
+ { "const": "transfer", "type": "string" },
2402
+ ],
2403
+ },
2425
2404
  "required": { "type": "boolean" },
2426
2405
  },
2427
- "required": ["kind", "capability", "required"],
2406
+ "required": ["kind", "alias", "required"],
2428
2407
  "type": "object",
2429
- }, {
2408
+ },
2409
+ "type": "array",
2410
+ },
2411
+ "surfaces": {
2412
+ "items": {
2430
2413
  "properties": {
2431
- "kind": { "const": "resource", "type": "string" },
2432
- "required": { "type": "boolean" },
2433
- "resource": {
2434
- "properties": {
2435
- "alias": { "minLength": 1, "type": "string" },
2436
- "definition": { "type": "object" },
2437
- "kind": {
2438
- "anyOf": [
2439
- { "const": "kv", "type": "string" },
2440
- { "const": "store", "type": "string" },
2441
- { "const": "jobs", "type": "string" },
2442
- { "const": "event-consumer", "type": "string" },
2443
- { "const": "transfer", "type": "string" },
2444
- ],
2445
- },
2446
- "required": { "type": "boolean" },
2447
- },
2448
- "required": ["kind", "alias", "required"],
2449
- "type": "object",
2414
+ "action": {
2415
+ "anyOf": [
2416
+ { "const": "call", "type": "string" },
2417
+ { "const": "publish", "type": "string" },
2418
+ { "const": "subscribe", "type": "string" },
2419
+ { "const": "observe", "type": "string" },
2420
+ { "const": "cancel", "type": "string" },
2421
+ ],
2422
+ },
2423
+ "contractId": { "minLength": 1, "type": "string" },
2424
+ "kind": {
2425
+ "anyOf": [
2426
+ { "const": "rpc", "type": "string" },
2427
+ { "const": "operation", "type": "string" },
2428
+ { "const": "event", "type": "string" },
2429
+ { "const": "feed", "type": "string" },
2430
+ ],
2450
2431
  },
2432
+ "name": { "minLength": 1, "type": "string" },
2433
+ "required": { "type": "boolean" },
2451
2434
  },
2452
- "required": ["kind", "resource", "required"],
2435
+ "required": ["contractId", "kind", "name", "required"],
2453
2436
  "type": "object",
2454
- }],
2437
+ },
2438
+ "type": "array",
2439
+ },
2455
2440
  },
2456
- "type": "array",
2441
+ "required": [
2442
+ "contracts",
2443
+ "surfaces",
2444
+ "capabilities",
2445
+ "resources",
2446
+ ],
2447
+ "type": "object",
2457
2448
  },
2458
2449
  "summary": { "type": "object" },
2459
2450
  },
@@ -2600,83 +2591,87 @@ export const AuthDeploymentAuthorityPlansListResponseSchema = {
2600
2591
  "type": "array",
2601
2592
  },
2602
2593
  "requestedNeeds": {
2603
- "items": {
2604
- "anyOf": [{
2594
+ "properties": {
2595
+ "capabilities": {
2596
+ "items": {
2605
2597
  "properties": {
2606
- "contractId": { "minLength": 1, "type": "string" },
2607
- "kind": { "const": "contract", "type": "string" },
2598
+ "capability": { "minLength": 1, "type": "string" },
2608
2599
  "required": { "type": "boolean" },
2609
2600
  },
2610
- "required": ["kind", "contractId", "required"],
2601
+ "required": ["capability", "required"],
2611
2602
  "type": "object",
2612
- }, {
2603
+ },
2604
+ "type": "array",
2605
+ },
2606
+ "contracts": {
2607
+ "items": {
2613
2608
  "properties": {
2614
- "kind": { "const": "surface", "type": "string" },
2609
+ "contractId": { "minLength": 1, "type": "string" },
2615
2610
  "required": { "type": "boolean" },
2616
- "surface": {
2617
- "properties": {
2618
- "action": {
2619
- "anyOf": [
2620
- { "const": "call", "type": "string" },
2621
- { "const": "publish", "type": "string" },
2622
- { "const": "subscribe", "type": "string" },
2623
- { "const": "observe", "type": "string" },
2624
- { "const": "cancel", "type": "string" },
2625
- ],
2626
- },
2627
- "contractId": { "minLength": 1, "type": "string" },
2628
- "kind": {
2629
- "anyOf": [
2630
- { "const": "rpc", "type": "string" },
2631
- { "const": "operation", "type": "string" },
2632
- { "const": "event", "type": "string" },
2633
- { "const": "feed", "type": "string" },
2634
- ],
2635
- },
2636
- "name": { "minLength": 1, "type": "string" },
2637
- },
2638
- "required": ["contractId", "kind", "name"],
2639
- "type": "object",
2640
- },
2641
2611
  },
2642
- "required": ["kind", "surface", "required"],
2612
+ "required": ["contractId", "required"],
2643
2613
  "type": "object",
2644
- }, {
2614
+ },
2615
+ "type": "array",
2616
+ },
2617
+ "resources": {
2618
+ "items": {
2645
2619
  "properties": {
2646
- "capability": { "minLength": 1, "type": "string" },
2647
- "kind": { "const": "capability", "type": "string" },
2620
+ "alias": { "minLength": 1, "type": "string" },
2621
+ "definition": { "type": "object" },
2622
+ "kind": {
2623
+ "anyOf": [
2624
+ { "const": "kv", "type": "string" },
2625
+ { "const": "store", "type": "string" },
2626
+ { "const": "jobs", "type": "string" },
2627
+ { "const": "event-consumer", "type": "string" },
2628
+ { "const": "transfer", "type": "string" },
2629
+ ],
2630
+ },
2648
2631
  "required": { "type": "boolean" },
2649
2632
  },
2650
- "required": ["kind", "capability", "required"],
2633
+ "required": ["kind", "alias", "required"],
2651
2634
  "type": "object",
2652
- }, {
2635
+ },
2636
+ "type": "array",
2637
+ },
2638
+ "surfaces": {
2639
+ "items": {
2653
2640
  "properties": {
2654
- "kind": { "const": "resource", "type": "string" },
2655
- "required": { "type": "boolean" },
2656
- "resource": {
2657
- "properties": {
2658
- "alias": { "minLength": 1, "type": "string" },
2659
- "definition": { "type": "object" },
2660
- "kind": {
2661
- "anyOf": [
2662
- { "const": "kv", "type": "string" },
2663
- { "const": "store", "type": "string" },
2664
- { "const": "jobs", "type": "string" },
2665
- { "const": "event-consumer", "type": "string" },
2666
- { "const": "transfer", "type": "string" },
2667
- ],
2668
- },
2669
- "required": { "type": "boolean" },
2670
- },
2671
- "required": ["kind", "alias", "required"],
2672
- "type": "object",
2641
+ "action": {
2642
+ "anyOf": [
2643
+ { "const": "call", "type": "string" },
2644
+ { "const": "publish", "type": "string" },
2645
+ { "const": "subscribe", "type": "string" },
2646
+ { "const": "observe", "type": "string" },
2647
+ { "const": "cancel", "type": "string" },
2648
+ ],
2649
+ },
2650
+ "contractId": { "minLength": 1, "type": "string" },
2651
+ "kind": {
2652
+ "anyOf": [
2653
+ { "const": "rpc", "type": "string" },
2654
+ { "const": "operation", "type": "string" },
2655
+ { "const": "event", "type": "string" },
2656
+ { "const": "feed", "type": "string" },
2657
+ ],
2673
2658
  },
2659
+ "name": { "minLength": 1, "type": "string" },
2660
+ "required": { "type": "boolean" },
2674
2661
  },
2675
- "required": ["kind", "resource", "required"],
2662
+ "required": ["contractId", "kind", "name", "required"],
2676
2663
  "type": "object",
2677
- }],
2664
+ },
2665
+ "type": "array",
2666
+ },
2678
2667
  },
2679
- "type": "array",
2668
+ "required": [
2669
+ "contracts",
2670
+ "surfaces",
2671
+ "capabilities",
2672
+ "resources",
2673
+ ],
2674
+ "type": "object",
2680
2675
  },
2681
2676
  "summary": { "type": "object" },
2682
2677
  },
@@ -2778,83 +2773,87 @@ export const AuthDeploymentAuthorityPlansListResponseSchema = {
2778
2773
  "type": "array",
2779
2774
  },
2780
2775
  "requestedNeeds": {
2781
- "items": {
2782
- "anyOf": [{
2776
+ "properties": {
2777
+ "capabilities": {
2778
+ "items": {
2783
2779
  "properties": {
2784
- "contractId": { "minLength": 1, "type": "string" },
2785
- "kind": { "const": "contract", "type": "string" },
2780
+ "capability": { "minLength": 1, "type": "string" },
2786
2781
  "required": { "type": "boolean" },
2787
2782
  },
2788
- "required": ["kind", "contractId", "required"],
2783
+ "required": ["capability", "required"],
2789
2784
  "type": "object",
2790
- }, {
2785
+ },
2786
+ "type": "array",
2787
+ },
2788
+ "contracts": {
2789
+ "items": {
2791
2790
  "properties": {
2792
- "kind": { "const": "surface", "type": "string" },
2791
+ "contractId": { "minLength": 1, "type": "string" },
2793
2792
  "required": { "type": "boolean" },
2794
- "surface": {
2795
- "properties": {
2796
- "action": {
2797
- "anyOf": [
2798
- { "const": "call", "type": "string" },
2799
- { "const": "publish", "type": "string" },
2800
- { "const": "subscribe", "type": "string" },
2801
- { "const": "observe", "type": "string" },
2802
- { "const": "cancel", "type": "string" },
2803
- ],
2804
- },
2805
- "contractId": { "minLength": 1, "type": "string" },
2806
- "kind": {
2807
- "anyOf": [
2808
- { "const": "rpc", "type": "string" },
2809
- { "const": "operation", "type": "string" },
2810
- { "const": "event", "type": "string" },
2811
- { "const": "feed", "type": "string" },
2812
- ],
2813
- },
2814
- "name": { "minLength": 1, "type": "string" },
2815
- },
2816
- "required": ["contractId", "kind", "name"],
2817
- "type": "object",
2818
- },
2819
2793
  },
2820
- "required": ["kind", "surface", "required"],
2794
+ "required": ["contractId", "required"],
2821
2795
  "type": "object",
2822
- }, {
2796
+ },
2797
+ "type": "array",
2798
+ },
2799
+ "resources": {
2800
+ "items": {
2823
2801
  "properties": {
2824
- "capability": { "minLength": 1, "type": "string" },
2825
- "kind": { "const": "capability", "type": "string" },
2802
+ "alias": { "minLength": 1, "type": "string" },
2803
+ "definition": { "type": "object" },
2804
+ "kind": {
2805
+ "anyOf": [
2806
+ { "const": "kv", "type": "string" },
2807
+ { "const": "store", "type": "string" },
2808
+ { "const": "jobs", "type": "string" },
2809
+ { "const": "event-consumer", "type": "string" },
2810
+ { "const": "transfer", "type": "string" },
2811
+ ],
2812
+ },
2826
2813
  "required": { "type": "boolean" },
2827
2814
  },
2828
- "required": ["kind", "capability", "required"],
2815
+ "required": ["kind", "alias", "required"],
2829
2816
  "type": "object",
2830
- }, {
2817
+ },
2818
+ "type": "array",
2819
+ },
2820
+ "surfaces": {
2821
+ "items": {
2831
2822
  "properties": {
2832
- "kind": { "const": "resource", "type": "string" },
2833
- "required": { "type": "boolean" },
2834
- "resource": {
2835
- "properties": {
2836
- "alias": { "minLength": 1, "type": "string" },
2837
- "definition": { "type": "object" },
2838
- "kind": {
2839
- "anyOf": [
2840
- { "const": "kv", "type": "string" },
2841
- { "const": "store", "type": "string" },
2842
- { "const": "jobs", "type": "string" },
2843
- { "const": "event-consumer", "type": "string" },
2844
- { "const": "transfer", "type": "string" },
2845
- ],
2846
- },
2847
- "required": { "type": "boolean" },
2848
- },
2849
- "required": ["kind", "alias", "required"],
2850
- "type": "object",
2823
+ "action": {
2824
+ "anyOf": [
2825
+ { "const": "call", "type": "string" },
2826
+ { "const": "publish", "type": "string" },
2827
+ { "const": "subscribe", "type": "string" },
2828
+ { "const": "observe", "type": "string" },
2829
+ { "const": "cancel", "type": "string" },
2830
+ ],
2831
+ },
2832
+ "contractId": { "minLength": 1, "type": "string" },
2833
+ "kind": {
2834
+ "anyOf": [
2835
+ { "const": "rpc", "type": "string" },
2836
+ { "const": "operation", "type": "string" },
2837
+ { "const": "event", "type": "string" },
2838
+ { "const": "feed", "type": "string" },
2839
+ ],
2851
2840
  },
2841
+ "name": { "minLength": 1, "type": "string" },
2842
+ "required": { "type": "boolean" },
2852
2843
  },
2853
- "required": ["kind", "resource", "required"],
2844
+ "required": ["contractId", "kind", "name", "required"],
2854
2845
  "type": "object",
2855
- }],
2846
+ },
2847
+ "type": "array",
2848
+ },
2856
2849
  },
2857
- "type": "array",
2850
+ "required": [
2851
+ "contracts",
2852
+ "surfaces",
2853
+ "capabilities",
2854
+ "resources",
2855
+ ],
2856
+ "type": "object",
2858
2857
  },
2859
2858
  "summary": { "type": "object" },
2860
2859
  },
@@ -2924,83 +2923,87 @@ export const AuthDeploymentAuthorityReconcileResponseSchema = {
2924
2923
  "type": "array",
2925
2924
  },
2926
2925
  "needs": {
2927
- "items": {
2928
- "anyOf": [{
2926
+ "properties": {
2927
+ "capabilities": {
2928
+ "items": {
2929
2929
  "properties": {
2930
- "contractId": { "minLength": 1, "type": "string" },
2931
- "kind": { "const": "contract", "type": "string" },
2930
+ "capability": { "minLength": 1, "type": "string" },
2932
2931
  "required": { "type": "boolean" },
2933
2932
  },
2934
- "required": ["kind", "contractId", "required"],
2933
+ "required": ["capability", "required"],
2935
2934
  "type": "object",
2936
- }, {
2935
+ },
2936
+ "type": "array",
2937
+ },
2938
+ "contracts": {
2939
+ "items": {
2937
2940
  "properties": {
2938
- "kind": { "const": "surface", "type": "string" },
2941
+ "contractId": { "minLength": 1, "type": "string" },
2939
2942
  "required": { "type": "boolean" },
2940
- "surface": {
2941
- "properties": {
2942
- "action": {
2943
- "anyOf": [
2944
- { "const": "call", "type": "string" },
2945
- { "const": "publish", "type": "string" },
2946
- { "const": "subscribe", "type": "string" },
2947
- { "const": "observe", "type": "string" },
2948
- { "const": "cancel", "type": "string" },
2949
- ],
2950
- },
2951
- "contractId": { "minLength": 1, "type": "string" },
2952
- "kind": {
2953
- "anyOf": [
2954
- { "const": "rpc", "type": "string" },
2955
- { "const": "operation", "type": "string" },
2956
- { "const": "event", "type": "string" },
2957
- { "const": "feed", "type": "string" },
2958
- ],
2959
- },
2960
- "name": { "minLength": 1, "type": "string" },
2961
- },
2962
- "required": ["contractId", "kind", "name"],
2963
- "type": "object",
2964
- },
2965
2943
  },
2966
- "required": ["kind", "surface", "required"],
2944
+ "required": ["contractId", "required"],
2967
2945
  "type": "object",
2968
- }, {
2946
+ },
2947
+ "type": "array",
2948
+ },
2949
+ "resources": {
2950
+ "items": {
2969
2951
  "properties": {
2970
- "capability": { "minLength": 1, "type": "string" },
2971
- "kind": { "const": "capability", "type": "string" },
2952
+ "alias": { "minLength": 1, "type": "string" },
2953
+ "definition": { "type": "object" },
2954
+ "kind": {
2955
+ "anyOf": [
2956
+ { "const": "kv", "type": "string" },
2957
+ { "const": "store", "type": "string" },
2958
+ { "const": "jobs", "type": "string" },
2959
+ { "const": "event-consumer", "type": "string" },
2960
+ { "const": "transfer", "type": "string" },
2961
+ ],
2962
+ },
2972
2963
  "required": { "type": "boolean" },
2973
2964
  },
2974
- "required": ["kind", "capability", "required"],
2965
+ "required": ["kind", "alias", "required"],
2975
2966
  "type": "object",
2976
- }, {
2967
+ },
2968
+ "type": "array",
2969
+ },
2970
+ "surfaces": {
2971
+ "items": {
2977
2972
  "properties": {
2978
- "kind": { "const": "resource", "type": "string" },
2979
- "required": { "type": "boolean" },
2980
- "resource": {
2981
- "properties": {
2982
- "alias": { "minLength": 1, "type": "string" },
2983
- "definition": { "type": "object" },
2984
- "kind": {
2985
- "anyOf": [
2986
- { "const": "kv", "type": "string" },
2987
- { "const": "store", "type": "string" },
2988
- { "const": "jobs", "type": "string" },
2989
- { "const": "event-consumer", "type": "string" },
2990
- { "const": "transfer", "type": "string" },
2991
- ],
2992
- },
2993
- "required": { "type": "boolean" },
2994
- },
2995
- "required": ["kind", "alias", "required"],
2996
- "type": "object",
2973
+ "action": {
2974
+ "anyOf": [
2975
+ { "const": "call", "type": "string" },
2976
+ { "const": "publish", "type": "string" },
2977
+ { "const": "subscribe", "type": "string" },
2978
+ { "const": "observe", "type": "string" },
2979
+ { "const": "cancel", "type": "string" },
2980
+ ],
2981
+ },
2982
+ "contractId": { "minLength": 1, "type": "string" },
2983
+ "kind": {
2984
+ "anyOf": [
2985
+ { "const": "rpc", "type": "string" },
2986
+ { "const": "operation", "type": "string" },
2987
+ { "const": "event", "type": "string" },
2988
+ { "const": "feed", "type": "string" },
2989
+ ],
2997
2990
  },
2991
+ "name": { "minLength": 1, "type": "string" },
2992
+ "required": { "type": "boolean" },
2998
2993
  },
2999
- "required": ["kind", "resource", "required"],
2994
+ "required": ["contractId", "kind", "name", "required"],
3000
2995
  "type": "object",
3001
- }],
2996
+ },
2997
+ "type": "array",
2998
+ },
3002
2999
  },
3003
- "type": "array",
3000
+ "required": [
3001
+ "contracts",
3002
+ "surfaces",
3003
+ "capabilities",
3004
+ "resources",
3005
+ ],
3006
+ "type": "object",
3004
3007
  },
3005
3008
  "resources": {
3006
3009
  "items": {
@@ -3086,40 +3089,19 @@ export const AuthDeploymentAuthorityReconcileResponseSchema = {
3086
3089
  "desiredVersion": { "minLength": 1, "type": "string" },
3087
3090
  "error": { "minLength": 1, "type": "string" },
3088
3091
  "grants": {
3089
- "items": {
3090
- "anyOf": [{
3092
+ "properties": {
3093
+ "capabilities": {
3094
+ "items": {
3091
3095
  "properties": {
3092
3096
  "capability": { "minLength": 1, "type": "string" },
3093
- "kind": { "const": "capability", "type": "string" },
3094
- },
3095
- "required": ["kind", "capability"],
3096
- "type": "object",
3097
- }, {
3098
- "properties": {
3099
- "action": {
3100
- "anyOf": [
3101
- { "const": "call", "type": "string" },
3102
- { "const": "publish", "type": "string" },
3103
- { "const": "subscribe", "type": "string" },
3104
- { "const": "observe", "type": "string" },
3105
- { "const": "cancel", "type": "string" },
3106
- ],
3107
- },
3108
- "contractId": { "minLength": 1, "type": "string" },
3109
- "kind": { "const": "surface", "type": "string" },
3110
- "name": { "minLength": 1, "type": "string" },
3111
- "surfaceKind": {
3112
- "anyOf": [
3113
- { "const": "rpc", "type": "string" },
3114
- { "const": "operation", "type": "string" },
3115
- { "const": "event", "type": "string" },
3116
- { "const": "feed", "type": "string" },
3117
- ],
3118
- },
3119
3097
  },
3120
- "required": ["kind", "contractId", "surfaceKind", "name"],
3098
+ "required": ["capability"],
3121
3099
  "type": "object",
3122
- }, {
3100
+ },
3101
+ "type": "array",
3102
+ },
3103
+ "nats": {
3104
+ "items": {
3123
3105
  "properties": {
3124
3106
  "direction": {
3125
3107
  "anyOf": [{ "const": "publish", "type": "string" }, {
@@ -3136,7 +3118,6 @@ export const AuthDeploymentAuthorityReconcileResponseSchema = {
3136
3118
  { "const": "transfer", "type": "string" },
3137
3119
  ],
3138
3120
  },
3139
- "kind": { "const": "nats", "type": "string" },
3140
3121
  "requiredCapabilities": {
3141
3122
  "items": { "minLength": 1, "type": "string" },
3142
3123
  "type": "array",
@@ -3169,16 +3150,46 @@ export const AuthDeploymentAuthorityReconcileResponseSchema = {
3169
3150
  },
3170
3151
  },
3171
3152
  "required": [
3172
- "kind",
3173
3153
  "direction",
3174
3154
  "subject",
3175
3155
  "requiredCapabilities",
3176
3156
  "grantSource",
3177
3157
  ],
3178
3158
  "type": "object",
3179
- }],
3159
+ },
3160
+ "type": "array",
3161
+ },
3162
+ "surfaces": {
3163
+ "items": {
3164
+ "properties": {
3165
+ "action": {
3166
+ "anyOf": [
3167
+ { "const": "call", "type": "string" },
3168
+ { "const": "publish", "type": "string" },
3169
+ { "const": "subscribe", "type": "string" },
3170
+ { "const": "observe", "type": "string" },
3171
+ { "const": "cancel", "type": "string" },
3172
+ ],
3173
+ },
3174
+ "contractId": { "minLength": 1, "type": "string" },
3175
+ "name": { "minLength": 1, "type": "string" },
3176
+ "surfaceKind": {
3177
+ "anyOf": [
3178
+ { "const": "rpc", "type": "string" },
3179
+ { "const": "operation", "type": "string" },
3180
+ { "const": "event", "type": "string" },
3181
+ { "const": "feed", "type": "string" },
3182
+ ],
3183
+ },
3184
+ },
3185
+ "required": ["contractId", "surfaceKind", "name"],
3186
+ "type": "object",
3187
+ },
3188
+ "type": "array",
3189
+ },
3180
3190
  },
3181
- "type": "array",
3191
+ "required": ["capabilities", "surfaces", "nats"],
3192
+ "type": "object",
3182
3193
  },
3183
3194
  "reconciledAt": {
3184
3195
  "anyOf": [{ "format": "date-time", "type": "string" }, {
@@ -5170,6 +5181,38 @@ export const AuthServiceInstancesDisableResponseSchema = {
5170
5181
  "type": "integer",
5171
5182
  },
5172
5183
  "dlq": { "type": "boolean" },
5184
+ "keyConcurrency": {
5185
+ "properties": {
5186
+ "heartbeatIntervalMs": {
5187
+ "minimum": 1,
5188
+ "type": "integer",
5189
+ },
5190
+ "heartbeatTtlMs": {
5191
+ "minimum": 1,
5192
+ "type": "integer",
5193
+ },
5194
+ "key": {
5195
+ "items": { "minLength": 1, "type": "string" },
5196
+ "minItems": 1,
5197
+ "type": "array",
5198
+ },
5199
+ "maxActive": { "minimum": 1, "type": "integer" },
5200
+ "stalePolicy": {
5201
+ "anyOf": [{
5202
+ "const": "fail-stale",
5203
+ "type": "string",
5204
+ }, { "const": "block", "type": "string" }],
5205
+ },
5206
+ },
5207
+ "required": [
5208
+ "key",
5209
+ "maxActive",
5210
+ "heartbeatIntervalMs",
5211
+ "heartbeatTtlMs",
5212
+ "stalePolicy",
5213
+ ],
5214
+ "type": "object",
5215
+ },
5173
5216
  "logs": { "type": "boolean" },
5174
5217
  "maxDeliver": { "minimum": 1, "type": "integer" },
5175
5218
  "payload": {
@@ -5181,6 +5224,23 @@ export const AuthServiceInstancesDisableResponseSchema = {
5181
5224
  },
5182
5225
  "progress": { "type": "boolean" },
5183
5226
  "publishPrefix": { "minLength": 1, "type": "string" },
5227
+ "queue": {
5228
+ "properties": {
5229
+ "maxQueuedPerKey": {
5230
+ "minimum": 0,
5231
+ "type": "integer",
5232
+ },
5233
+ "whenFull": {
5234
+ "anyOf": [
5235
+ { "const": "reject", "type": "string" },
5236
+ { "const": "coalesce", "type": "string" },
5237
+ { "const": "replace-oldest", "type": "string" },
5238
+ ],
5239
+ },
5240
+ },
5241
+ "required": ["maxQueuedPerKey", "whenFull"],
5242
+ "type": "object",
5243
+ },
5184
5244
  "queueType": { "minLength": 1, "type": "string" },
5185
5245
  "result": {
5186
5246
  "properties": {
@@ -5340,6 +5400,38 @@ export const AuthServiceInstancesEnableResponseSchema = {
5340
5400
  "type": "integer",
5341
5401
  },
5342
5402
  "dlq": { "type": "boolean" },
5403
+ "keyConcurrency": {
5404
+ "properties": {
5405
+ "heartbeatIntervalMs": {
5406
+ "minimum": 1,
5407
+ "type": "integer",
5408
+ },
5409
+ "heartbeatTtlMs": {
5410
+ "minimum": 1,
5411
+ "type": "integer",
5412
+ },
5413
+ "key": {
5414
+ "items": { "minLength": 1, "type": "string" },
5415
+ "minItems": 1,
5416
+ "type": "array",
5417
+ },
5418
+ "maxActive": { "minimum": 1, "type": "integer" },
5419
+ "stalePolicy": {
5420
+ "anyOf": [{
5421
+ "const": "fail-stale",
5422
+ "type": "string",
5423
+ }, { "const": "block", "type": "string" }],
5424
+ },
5425
+ },
5426
+ "required": [
5427
+ "key",
5428
+ "maxActive",
5429
+ "heartbeatIntervalMs",
5430
+ "heartbeatTtlMs",
5431
+ "stalePolicy",
5432
+ ],
5433
+ "type": "object",
5434
+ },
5343
5435
  "logs": { "type": "boolean" },
5344
5436
  "maxDeliver": { "minimum": 1, "type": "integer" },
5345
5437
  "payload": {
@@ -5351,6 +5443,23 @@ export const AuthServiceInstancesEnableResponseSchema = {
5351
5443
  },
5352
5444
  "progress": { "type": "boolean" },
5353
5445
  "publishPrefix": { "minLength": 1, "type": "string" },
5446
+ "queue": {
5447
+ "properties": {
5448
+ "maxQueuedPerKey": {
5449
+ "minimum": 0,
5450
+ "type": "integer",
5451
+ },
5452
+ "whenFull": {
5453
+ "anyOf": [
5454
+ { "const": "reject", "type": "string" },
5455
+ { "const": "coalesce", "type": "string" },
5456
+ { "const": "replace-oldest", "type": "string" },
5457
+ ],
5458
+ },
5459
+ },
5460
+ "required": ["maxQueuedPerKey", "whenFull"],
5461
+ "type": "object",
5462
+ },
5354
5463
  "queueType": { "minLength": 1, "type": "string" },
5355
5464
  "result": {
5356
5465
  "properties": {
@@ -5518,6 +5627,38 @@ export const AuthServiceInstancesListResponseSchema = {
5518
5627
  "type": "integer",
5519
5628
  },
5520
5629
  "dlq": { "type": "boolean" },
5630
+ "keyConcurrency": {
5631
+ "properties": {
5632
+ "heartbeatIntervalMs": {
5633
+ "minimum": 1,
5634
+ "type": "integer",
5635
+ },
5636
+ "heartbeatTtlMs": {
5637
+ "minimum": 1,
5638
+ "type": "integer",
5639
+ },
5640
+ "key": {
5641
+ "items": { "minLength": 1, "type": "string" },
5642
+ "minItems": 1,
5643
+ "type": "array",
5644
+ },
5645
+ "maxActive": { "minimum": 1, "type": "integer" },
5646
+ "stalePolicy": {
5647
+ "anyOf": [{
5648
+ "const": "fail-stale",
5649
+ "type": "string",
5650
+ }, { "const": "block", "type": "string" }],
5651
+ },
5652
+ },
5653
+ "required": [
5654
+ "key",
5655
+ "maxActive",
5656
+ "heartbeatIntervalMs",
5657
+ "heartbeatTtlMs",
5658
+ "stalePolicy",
5659
+ ],
5660
+ "type": "object",
5661
+ },
5521
5662
  "logs": { "type": "boolean" },
5522
5663
  "maxDeliver": { "minimum": 1, "type": "integer" },
5523
5664
  "payload": {
@@ -5529,6 +5670,26 @@ export const AuthServiceInstancesListResponseSchema = {
5529
5670
  },
5530
5671
  "progress": { "type": "boolean" },
5531
5672
  "publishPrefix": { "minLength": 1, "type": "string" },
5673
+ "queue": {
5674
+ "properties": {
5675
+ "maxQueuedPerKey": {
5676
+ "minimum": 0,
5677
+ "type": "integer",
5678
+ },
5679
+ "whenFull": {
5680
+ "anyOf": [
5681
+ { "const": "reject", "type": "string" },
5682
+ { "const": "coalesce", "type": "string" },
5683
+ {
5684
+ "const": "replace-oldest",
5685
+ "type": "string",
5686
+ },
5687
+ ],
5688
+ },
5689
+ },
5690
+ "required": ["maxQueuedPerKey", "whenFull"],
5691
+ "type": "object",
5692
+ },
5532
5693
  "queueType": { "minLength": 1, "type": "string" },
5533
5694
  "result": {
5534
5695
  "properties": {
@@ -5696,6 +5857,38 @@ export const AuthServiceInstancesProvisionResponseSchema = {
5696
5857
  "type": "integer",
5697
5858
  },
5698
5859
  "dlq": { "type": "boolean" },
5860
+ "keyConcurrency": {
5861
+ "properties": {
5862
+ "heartbeatIntervalMs": {
5863
+ "minimum": 1,
5864
+ "type": "integer",
5865
+ },
5866
+ "heartbeatTtlMs": {
5867
+ "minimum": 1,
5868
+ "type": "integer",
5869
+ },
5870
+ "key": {
5871
+ "items": { "minLength": 1, "type": "string" },
5872
+ "minItems": 1,
5873
+ "type": "array",
5874
+ },
5875
+ "maxActive": { "minimum": 1, "type": "integer" },
5876
+ "stalePolicy": {
5877
+ "anyOf": [{
5878
+ "const": "fail-stale",
5879
+ "type": "string",
5880
+ }, { "const": "block", "type": "string" }],
5881
+ },
5882
+ },
5883
+ "required": [
5884
+ "key",
5885
+ "maxActive",
5886
+ "heartbeatIntervalMs",
5887
+ "heartbeatTtlMs",
5888
+ "stalePolicy",
5889
+ ],
5890
+ "type": "object",
5891
+ },
5699
5892
  "logs": { "type": "boolean" },
5700
5893
  "maxDeliver": { "minimum": 1, "type": "integer" },
5701
5894
  "payload": {
@@ -5707,6 +5900,23 @@ export const AuthServiceInstancesProvisionResponseSchema = {
5707
5900
  },
5708
5901
  "progress": { "type": "boolean" },
5709
5902
  "publishPrefix": { "minLength": 1, "type": "string" },
5903
+ "queue": {
5904
+ "properties": {
5905
+ "maxQueuedPerKey": {
5906
+ "minimum": 0,
5907
+ "type": "integer",
5908
+ },
5909
+ "whenFull": {
5910
+ "anyOf": [
5911
+ { "const": "reject", "type": "string" },
5912
+ { "const": "coalesce", "type": "string" },
5913
+ { "const": "replace-oldest", "type": "string" },
5914
+ ],
5915
+ },
5916
+ },
5917
+ "required": ["maxQueuedPerKey", "whenFull"],
5918
+ "type": "object",
5919
+ },
5710
5920
  "queueType": { "minLength": 1, "type": "string" },
5711
5921
  "result": {
5712
5922
  "properties": {
@@ -6077,29 +6287,14 @@ export const AuthSessionsRevokeResponseSchema = {
6077
6287
  "type": "object",
6078
6288
  };
6079
6289
  export const AuthSessionsRevokedEventSchema = {
6080
- "allOf": [{
6081
- "properties": {
6082
- "header": {
6083
- "properties": {
6084
- "id": { "type": "string" },
6085
- "time": { "format": "date-time", "type": "string" },
6086
- },
6087
- "required": ["id", "time"],
6088
- "type": "object",
6089
- },
6090
- },
6091
- "required": ["header"],
6092
- "type": "object",
6093
- }, {
6094
- "properties": {
6095
- "id": { "type": "string" },
6096
- "origin": { "type": "string" },
6097
- "revokedBy": { "type": "string" },
6098
- "sessionKey": { "type": "string" },
6099
- },
6100
- "required": ["origin", "id", "sessionKey", "revokedBy"],
6101
- "type": "object",
6102
- }],
6290
+ "properties": {
6291
+ "id": { "type": "string" },
6292
+ "origin": { "type": "string" },
6293
+ "revokedBy": { "type": "string" },
6294
+ "sessionKey": { "type": "string" },
6295
+ },
6296
+ "required": ["origin", "id", "sessionKey", "revokedBy"],
6297
+ "type": "object",
6103
6298
  };
6104
6299
  export const AuthUserIdentitiesListRequestSchema = {
6105
6300
  "properties": {