@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
@@ -51,6 +51,17 @@ export declare const ServiceInstanceSchema: Type.TObject<{
51
51
  logs: Type.TBoolean;
52
52
  dlq: Type.TBoolean;
53
53
  concurrency: Type.TInteger;
54
+ keyConcurrency: Type.TOptional<Type.TObject<{
55
+ key: Type.TArray<Type.TString>;
56
+ maxActive: Type.TInteger;
57
+ heartbeatIntervalMs: Type.TInteger;
58
+ heartbeatTtlMs: Type.TInteger;
59
+ stalePolicy: Type.TUnion<[Type.TLiteral<"fail-stale">, Type.TLiteral<"block">]>;
60
+ }>>;
61
+ queue: Type.TOptional<Type.TObject<{
62
+ maxQueuedPerKey: Type.TInteger;
63
+ whenFull: Type.TUnion<[Type.TLiteral<"reject">, Type.TLiteral<"coalesce">, Type.TLiteral<"replace-oldest">]>;
64
+ }>>;
54
65
  }>>;
55
66
  }>>;
56
67
  eventConsumers: Type.TOptional<Type.TRecord<"^.*$", Type.TObject<{
@@ -193,66 +204,83 @@ export declare const DeploymentAuthorityResourceSchema: Type.TObject<{
193
204
  definition: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
194
205
  }>;
195
206
  export type DeploymentAuthorityResource = StaticDecode<typeof DeploymentAuthorityResourceSchema>;
196
- export declare const DeploymentAuthorityNeedSchema: Type.TUnion<[Type.TObject<{
197
- kind: Type.TLiteral<"contract">;
207
+ export declare const DeploymentAuthorityContractNeedSchema: Type.TObject<{
198
208
  contractId: Type.TString;
199
209
  required: Type.TBoolean;
200
- }>, Type.TObject<{
201
- kind: Type.TLiteral<"surface">;
202
- surface: Type.TObject<{
210
+ }>;
211
+ export type DeploymentAuthorityContractNeed = StaticDecode<typeof DeploymentAuthorityContractNeedSchema>;
212
+ export declare const DeploymentAuthoritySurfaceNeedSchema: Type.TObject<{
213
+ contractId: Type.TString;
214
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
215
+ name: Type.TString;
216
+ action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
217
+ required: Type.TBoolean;
218
+ }>;
219
+ export type DeploymentAuthoritySurfaceNeed = StaticDecode<typeof DeploymentAuthoritySurfaceNeedSchema>;
220
+ export declare const DeploymentAuthorityCapabilityNeedSchema: Type.TObject<{
221
+ capability: Type.TString;
222
+ required: Type.TBoolean;
223
+ }>;
224
+ export type DeploymentAuthorityCapabilityNeed = StaticDecode<typeof DeploymentAuthorityCapabilityNeedSchema>;
225
+ export declare const DeploymentAuthorityResourceNeedSchema: Type.TObject<{
226
+ kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"event-consumer">, Type.TLiteral<"transfer">]>;
227
+ alias: Type.TString;
228
+ required: Type.TBoolean;
229
+ definition: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
230
+ }>;
231
+ export type DeploymentAuthorityResourceNeed = StaticDecode<typeof DeploymentAuthorityResourceNeedSchema>;
232
+ export declare const DeploymentAuthorityNeedsSchema: Type.TObject<{
233
+ contracts: Type.TArray<Type.TObject<{
234
+ contractId: Type.TString;
235
+ required: Type.TBoolean;
236
+ }>>;
237
+ surfaces: Type.TArray<Type.TObject<{
203
238
  contractId: Type.TString;
204
239
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
205
240
  name: Type.TString;
206
241
  action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
207
- }>;
208
- required: Type.TBoolean;
209
- }>, Type.TObject<{
210
- kind: Type.TLiteral<"capability">;
211
- capability: Type.TString;
212
- required: Type.TBoolean;
213
- }>, Type.TObject<{
214
- kind: Type.TLiteral<"resource">;
215
- resource: Type.TObject<{
242
+ required: Type.TBoolean;
243
+ }>>;
244
+ capabilities: Type.TArray<Type.TObject<{
245
+ capability: Type.TString;
246
+ required: Type.TBoolean;
247
+ }>>;
248
+ resources: Type.TArray<Type.TObject<{
216
249
  kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"event-consumer">, Type.TLiteral<"transfer">]>;
217
250
  alias: Type.TString;
218
251
  required: Type.TBoolean;
219
252
  definition: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
220
- }>;
221
- required: Type.TBoolean;
222
- }>]>;
223
- export type DeploymentAuthorityNeed = StaticDecode<typeof DeploymentAuthorityNeedSchema>;
253
+ }>>;
254
+ }>;
255
+ export type DeploymentAuthorityNeeds = StaticDecode<typeof DeploymentAuthorityNeedsSchema>;
224
256
  export declare const DeploymentAuthoritySchema: Type.TObject<{
225
257
  deploymentId: Type.TString;
226
258
  kind: Type.TUnion<[Type.TLiteral<"service">, Type.TLiteral<"device">, Type.TLiteral<"app">, Type.TLiteral<"cli">, Type.TLiteral<"native">, Type.TLiteral<"device-user">]>;
227
259
  disabled: Type.TBoolean;
228
260
  desiredState: Type.TObject<{
229
- needs: Type.TArray<Type.TUnion<[Type.TObject<{
230
- kind: Type.TLiteral<"contract">;
231
- contractId: Type.TString;
232
- required: Type.TBoolean;
233
- }>, Type.TObject<{
234
- kind: Type.TLiteral<"surface">;
235
- surface: Type.TObject<{
261
+ needs: Type.TObject<{
262
+ contracts: Type.TArray<Type.TObject<{
263
+ contractId: Type.TString;
264
+ required: Type.TBoolean;
265
+ }>>;
266
+ surfaces: Type.TArray<Type.TObject<{
236
267
  contractId: Type.TString;
237
268
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
238
269
  name: Type.TString;
239
270
  action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
240
- }>;
241
- required: Type.TBoolean;
242
- }>, Type.TObject<{
243
- kind: Type.TLiteral<"capability">;
244
- capability: Type.TString;
245
- required: Type.TBoolean;
246
- }>, Type.TObject<{
247
- kind: Type.TLiteral<"resource">;
248
- resource: Type.TObject<{
271
+ required: Type.TBoolean;
272
+ }>>;
273
+ capabilities: Type.TArray<Type.TObject<{
274
+ capability: Type.TString;
275
+ required: Type.TBoolean;
276
+ }>>;
277
+ resources: Type.TArray<Type.TObject<{
249
278
  kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"event-consumer">, Type.TLiteral<"transfer">]>;
250
279
  alias: Type.TString;
251
280
  required: Type.TBoolean;
252
281
  definition: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
253
- }>;
254
- required: Type.TBoolean;
255
- }>]>>;
282
+ }>>;
283
+ }>;
256
284
  capabilities: Type.TArray<Type.TString>;
257
285
  resources: Type.TArray<Type.TObject<{
258
286
  kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"event-consumer">, Type.TLiteral<"transfer">]>;
@@ -278,33 +306,29 @@ export declare const DeploymentAuthorityProposalSchema: Type.TObject<{
278
306
  contractId: Type.TString;
279
307
  contractDigest: Type.TString;
280
308
  contract: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
281
- requestedNeeds: Type.TArray<Type.TUnion<[Type.TObject<{
282
- kind: Type.TLiteral<"contract">;
283
- contractId: Type.TString;
284
- required: Type.TBoolean;
285
- }>, Type.TObject<{
286
- kind: Type.TLiteral<"surface">;
287
- surface: Type.TObject<{
309
+ requestedNeeds: Type.TObject<{
310
+ contracts: Type.TArray<Type.TObject<{
311
+ contractId: Type.TString;
312
+ required: Type.TBoolean;
313
+ }>>;
314
+ surfaces: Type.TArray<Type.TObject<{
288
315
  contractId: Type.TString;
289
316
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
290
317
  name: Type.TString;
291
318
  action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
292
- }>;
293
- required: Type.TBoolean;
294
- }>, Type.TObject<{
295
- kind: Type.TLiteral<"capability">;
296
- capability: Type.TString;
297
- required: Type.TBoolean;
298
- }>, Type.TObject<{
299
- kind: Type.TLiteral<"resource">;
300
- resource: Type.TObject<{
319
+ required: Type.TBoolean;
320
+ }>>;
321
+ capabilities: Type.TArray<Type.TObject<{
322
+ capability: Type.TString;
323
+ required: Type.TBoolean;
324
+ }>>;
325
+ resources: Type.TArray<Type.TObject<{
301
326
  kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"event-consumer">, Type.TLiteral<"transfer">]>;
302
327
  alias: Type.TString;
303
328
  required: Type.TBoolean;
304
329
  definition: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
305
- }>;
306
- required: Type.TBoolean;
307
- }>]>>;
330
+ }>>;
331
+ }>;
308
332
  providedSurfaces: Type.TArray<Type.TObject<{
309
333
  contractId: Type.TString;
310
334
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
@@ -325,19 +349,19 @@ export declare const DeploymentResourceBindingSchema: Type.TObject<{
325
349
  }>;
326
350
  export type DeploymentResourceBinding = StaticDecode<typeof DeploymentResourceBindingSchema>;
327
351
  export declare const MaterializedAuthoritySurfaceGrantSchema: Type.TObject<{
328
- kind: Type.TLiteral<"surface">;
329
352
  contractId: Type.TString;
330
353
  surfaceKind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
331
354
  name: Type.TString;
332
355
  action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
333
356
  }>;
357
+ export type MaterializedAuthoritySurfaceGrant = StaticDecode<typeof MaterializedAuthoritySurfaceGrantSchema>;
334
358
  export declare const MaterializedAuthorityCapabilityGrantSchema: Type.TObject<{
335
- kind: Type.TLiteral<"capability">;
336
359
  capability: Type.TString;
337
360
  }>;
361
+ export type MaterializedAuthorityCapabilityGrant = StaticDecode<typeof MaterializedAuthorityCapabilityGrantSchema>;
338
362
  export declare const MaterializedAuthorityNatsGrantSourceSchema: Type.TUnion<[Type.TLiteral<"owned-surface">, Type.TLiteral<"used-surface">, Type.TLiteral<"resource-binding">, Type.TLiteral<"platform-service">, Type.TLiteral<"transfer">]>;
363
+ export type MaterializedAuthorityNatsGrantSource = StaticDecode<typeof MaterializedAuthorityNatsGrantSourceSchema>;
339
364
  export declare const MaterializedAuthorityNatsGrantSchema: Type.TObject<{
340
- kind: Type.TLiteral<"nats">;
341
365
  direction: Type.TUnion<[Type.TLiteral<"publish">, Type.TLiteral<"subscribe">]>;
342
366
  subject: Type.TString;
343
367
  surface: Type.TOptional<Type.TObject<{
@@ -349,29 +373,32 @@ export declare const MaterializedAuthorityNatsGrantSchema: Type.TObject<{
349
373
  requiredCapabilities: Type.TArray<Type.TString>;
350
374
  grantSource: Type.TUnion<[Type.TLiteral<"owned-surface">, Type.TLiteral<"used-surface">, Type.TLiteral<"resource-binding">, Type.TLiteral<"platform-service">, Type.TLiteral<"transfer">]>;
351
375
  }>;
352
- export declare const MaterializedAuthorityGrantSchema: Type.TUnion<[Type.TObject<{
353
- kind: Type.TLiteral<"capability">;
354
- capability: Type.TString;
355
- }>, Type.TObject<{
356
- kind: Type.TLiteral<"surface">;
357
- contractId: Type.TString;
358
- surfaceKind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
359
- name: Type.TString;
360
- action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
361
- }>, Type.TObject<{
362
- kind: Type.TLiteral<"nats">;
363
- direction: Type.TUnion<[Type.TLiteral<"publish">, Type.TLiteral<"subscribe">]>;
364
- subject: Type.TString;
365
- surface: Type.TOptional<Type.TObject<{
376
+ export type MaterializedAuthorityNatsGrant = StaticDecode<typeof MaterializedAuthorityNatsGrantSchema>;
377
+ export declare const MaterializedAuthorityGrantsSchema: Type.TObject<{
378
+ capabilities: Type.TArray<Type.TObject<{
379
+ capability: Type.TString;
380
+ }>>;
381
+ surfaces: Type.TArray<Type.TObject<{
366
382
  contractId: Type.TString;
367
- kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
383
+ surfaceKind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
368
384
  name: Type.TString;
369
385
  action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
370
386
  }>>;
371
- requiredCapabilities: Type.TArray<Type.TString>;
372
- grantSource: Type.TUnion<[Type.TLiteral<"owned-surface">, Type.TLiteral<"used-surface">, Type.TLiteral<"resource-binding">, Type.TLiteral<"platform-service">, Type.TLiteral<"transfer">]>;
373
- }>]>;
374
- export type MaterializedAuthorityGrant = StaticDecode<typeof MaterializedAuthorityGrantSchema>;
387
+ nats: Type.TArray<Type.TObject<{
388
+ direction: Type.TUnion<[Type.TLiteral<"publish">, Type.TLiteral<"subscribe">]>;
389
+ subject: Type.TString;
390
+ surface: Type.TOptional<Type.TObject<{
391
+ contractId: Type.TString;
392
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
393
+ name: Type.TString;
394
+ action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
395
+ }>>;
396
+ requiredCapabilities: Type.TArray<Type.TString>;
397
+ grantSource: Type.TUnion<[Type.TLiteral<"owned-surface">, Type.TLiteral<"used-surface">, Type.TLiteral<"resource-binding">, Type.TLiteral<"platform-service">, Type.TLiteral<"transfer">]>;
398
+ }>>;
399
+ }>;
400
+ export type MaterializedAuthorityGrants = StaticDecode<typeof MaterializedAuthorityGrantsSchema>;
401
+ export type MaterializedAuthorityGrant = MaterializedAuthorityCapabilityGrant | MaterializedAuthoritySurfaceGrant | MaterializedAuthorityNatsGrant;
375
402
  export declare const DeploymentAuthorityMaterializationSchema: Type.TObject<{
376
403
  deploymentId: Type.TString;
377
404
  desiredVersion: Type.TString;
@@ -385,28 +412,29 @@ export declare const DeploymentAuthorityMaterializationSchema: Type.TObject<{
385
412
  createdAt: Type.TString;
386
413
  updatedAt: Type.TString;
387
414
  }>>;
388
- grants: Type.TArray<Type.TUnion<[Type.TObject<{
389
- kind: Type.TLiteral<"capability">;
390
- capability: Type.TString;
391
- }>, Type.TObject<{
392
- kind: Type.TLiteral<"surface">;
393
- contractId: Type.TString;
394
- surfaceKind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
395
- name: Type.TString;
396
- action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
397
- }>, Type.TObject<{
398
- kind: Type.TLiteral<"nats">;
399
- direction: Type.TUnion<[Type.TLiteral<"publish">, Type.TLiteral<"subscribe">]>;
400
- subject: Type.TString;
401
- surface: Type.TOptional<Type.TObject<{
415
+ grants: Type.TObject<{
416
+ capabilities: Type.TArray<Type.TObject<{
417
+ capability: Type.TString;
418
+ }>>;
419
+ surfaces: Type.TArray<Type.TObject<{
402
420
  contractId: Type.TString;
403
- kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
421
+ surfaceKind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
404
422
  name: Type.TString;
405
423
  action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
406
424
  }>>;
407
- requiredCapabilities: Type.TArray<Type.TString>;
408
- grantSource: Type.TUnion<[Type.TLiteral<"owned-surface">, Type.TLiteral<"used-surface">, Type.TLiteral<"resource-binding">, Type.TLiteral<"platform-service">, Type.TLiteral<"transfer">]>;
409
- }>]>>;
425
+ nats: Type.TArray<Type.TObject<{
426
+ direction: Type.TUnion<[Type.TLiteral<"publish">, Type.TLiteral<"subscribe">]>;
427
+ subject: Type.TString;
428
+ surface: Type.TOptional<Type.TObject<{
429
+ contractId: Type.TString;
430
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
431
+ name: Type.TString;
432
+ action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
433
+ }>>;
434
+ requiredCapabilities: Type.TArray<Type.TString>;
435
+ grantSource: Type.TUnion<[Type.TLiteral<"owned-surface">, Type.TLiteral<"used-surface">, Type.TLiteral<"resource-binding">, Type.TLiteral<"platform-service">, Type.TLiteral<"transfer">]>;
436
+ }>>;
437
+ }>;
410
438
  reconciledAt: Type.TUnion<[Type.TString, Type.TNull]>;
411
439
  error: Type.TOptional<Type.TString>;
412
440
  }>;
@@ -430,33 +458,29 @@ export declare const DeploymentAuthorityUpdateSchema: Type.TObject<{
430
458
  contractId: Type.TString;
431
459
  contractDigest: Type.TString;
432
460
  contract: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
433
- requestedNeeds: Type.TArray<Type.TUnion<[Type.TObject<{
434
- kind: Type.TLiteral<"contract">;
435
- contractId: Type.TString;
436
- required: Type.TBoolean;
437
- }>, Type.TObject<{
438
- kind: Type.TLiteral<"surface">;
439
- surface: Type.TObject<{
461
+ requestedNeeds: Type.TObject<{
462
+ contracts: Type.TArray<Type.TObject<{
463
+ contractId: Type.TString;
464
+ required: Type.TBoolean;
465
+ }>>;
466
+ surfaces: Type.TArray<Type.TObject<{
440
467
  contractId: Type.TString;
441
468
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
442
469
  name: Type.TString;
443
470
  action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
444
- }>;
445
- required: Type.TBoolean;
446
- }>, Type.TObject<{
447
- kind: Type.TLiteral<"capability">;
448
- capability: Type.TString;
449
- required: Type.TBoolean;
450
- }>, Type.TObject<{
451
- kind: Type.TLiteral<"resource">;
452
- resource: Type.TObject<{
471
+ required: Type.TBoolean;
472
+ }>>;
473
+ capabilities: Type.TArray<Type.TObject<{
474
+ capability: Type.TString;
475
+ required: Type.TBoolean;
476
+ }>>;
477
+ resources: Type.TArray<Type.TObject<{
453
478
  kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"event-consumer">, Type.TLiteral<"transfer">]>;
454
479
  alias: Type.TString;
455
480
  required: Type.TBoolean;
456
481
  definition: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
457
- }>;
458
- required: Type.TBoolean;
459
- }>]>>;
482
+ }>>;
483
+ }>;
460
484
  providedSurfaces: Type.TArray<Type.TObject<{
461
485
  contractId: Type.TString;
462
486
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
@@ -487,33 +511,29 @@ export declare const DeploymentAuthorityMigrationSchema: Type.TObject<{
487
511
  contractId: Type.TString;
488
512
  contractDigest: Type.TString;
489
513
  contract: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
490
- requestedNeeds: Type.TArray<Type.TUnion<[Type.TObject<{
491
- kind: Type.TLiteral<"contract">;
492
- contractId: Type.TString;
493
- required: Type.TBoolean;
494
- }>, Type.TObject<{
495
- kind: Type.TLiteral<"surface">;
496
- surface: Type.TObject<{
514
+ requestedNeeds: Type.TObject<{
515
+ contracts: Type.TArray<Type.TObject<{
516
+ contractId: Type.TString;
517
+ required: Type.TBoolean;
518
+ }>>;
519
+ surfaces: Type.TArray<Type.TObject<{
497
520
  contractId: Type.TString;
498
521
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
499
522
  name: Type.TString;
500
523
  action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
501
- }>;
502
- required: Type.TBoolean;
503
- }>, Type.TObject<{
504
- kind: Type.TLiteral<"capability">;
505
- capability: Type.TString;
506
- required: Type.TBoolean;
507
- }>, Type.TObject<{
508
- kind: Type.TLiteral<"resource">;
509
- resource: Type.TObject<{
524
+ required: Type.TBoolean;
525
+ }>>;
526
+ capabilities: Type.TArray<Type.TObject<{
527
+ capability: Type.TString;
528
+ required: Type.TBoolean;
529
+ }>>;
530
+ resources: Type.TArray<Type.TObject<{
510
531
  kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"event-consumer">, Type.TLiteral<"transfer">]>;
511
532
  alias: Type.TString;
512
533
  required: Type.TBoolean;
513
534
  definition: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
514
- }>;
515
- required: Type.TBoolean;
516
- }>]>>;
535
+ }>>;
536
+ }>;
517
537
  providedSurfaces: Type.TArray<Type.TObject<{
518
538
  contractId: Type.TString;
519
539
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
@@ -543,33 +563,29 @@ export declare const DeploymentAuthorityPlanSchema: Type.TUnion<[Type.TObject<{
543
563
  contractId: Type.TString;
544
564
  contractDigest: Type.TString;
545
565
  contract: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
546
- requestedNeeds: Type.TArray<Type.TUnion<[Type.TObject<{
547
- kind: Type.TLiteral<"contract">;
548
- contractId: Type.TString;
549
- required: Type.TBoolean;
550
- }>, Type.TObject<{
551
- kind: Type.TLiteral<"surface">;
552
- surface: Type.TObject<{
566
+ requestedNeeds: Type.TObject<{
567
+ contracts: Type.TArray<Type.TObject<{
568
+ contractId: Type.TString;
569
+ required: Type.TBoolean;
570
+ }>>;
571
+ surfaces: Type.TArray<Type.TObject<{
553
572
  contractId: Type.TString;
554
573
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
555
574
  name: Type.TString;
556
575
  action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
557
- }>;
558
- required: Type.TBoolean;
559
- }>, Type.TObject<{
560
- kind: Type.TLiteral<"capability">;
561
- capability: Type.TString;
562
- required: Type.TBoolean;
563
- }>, Type.TObject<{
564
- kind: Type.TLiteral<"resource">;
565
- resource: Type.TObject<{
576
+ required: Type.TBoolean;
577
+ }>>;
578
+ capabilities: Type.TArray<Type.TObject<{
579
+ capability: Type.TString;
580
+ required: Type.TBoolean;
581
+ }>>;
582
+ resources: Type.TArray<Type.TObject<{
566
583
  kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"event-consumer">, Type.TLiteral<"transfer">]>;
567
584
  alias: Type.TString;
568
585
  required: Type.TBoolean;
569
586
  definition: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
570
- }>;
571
- required: Type.TBoolean;
572
- }>]>>;
587
+ }>>;
588
+ }>;
573
589
  providedSurfaces: Type.TArray<Type.TObject<{
574
590
  contractId: Type.TString;
575
591
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
@@ -598,33 +614,29 @@ export declare const DeploymentAuthorityPlanSchema: Type.TUnion<[Type.TObject<{
598
614
  contractId: Type.TString;
599
615
  contractDigest: Type.TString;
600
616
  contract: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
601
- requestedNeeds: Type.TArray<Type.TUnion<[Type.TObject<{
602
- kind: Type.TLiteral<"contract">;
603
- contractId: Type.TString;
604
- required: Type.TBoolean;
605
- }>, Type.TObject<{
606
- kind: Type.TLiteral<"surface">;
607
- surface: Type.TObject<{
617
+ requestedNeeds: Type.TObject<{
618
+ contracts: Type.TArray<Type.TObject<{
619
+ contractId: Type.TString;
620
+ required: Type.TBoolean;
621
+ }>>;
622
+ surfaces: Type.TArray<Type.TObject<{
608
623
  contractId: Type.TString;
609
624
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
610
625
  name: Type.TString;
611
626
  action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
612
- }>;
613
- required: Type.TBoolean;
614
- }>, Type.TObject<{
615
- kind: Type.TLiteral<"capability">;
616
- capability: Type.TString;
617
- required: Type.TBoolean;
618
- }>, Type.TObject<{
619
- kind: Type.TLiteral<"resource">;
620
- resource: Type.TObject<{
627
+ required: Type.TBoolean;
628
+ }>>;
629
+ capabilities: Type.TArray<Type.TObject<{
630
+ capability: Type.TString;
631
+ required: Type.TBoolean;
632
+ }>>;
633
+ resources: Type.TArray<Type.TObject<{
621
634
  kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"event-consumer">, Type.TLiteral<"transfer">]>;
622
635
  alias: Type.TString;
623
636
  required: Type.TBoolean;
624
637
  definition: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
625
- }>;
626
- required: Type.TBoolean;
627
- }>]>>;
638
+ }>>;
639
+ }>;
628
640
  providedSurfaces: Type.TArray<Type.TObject<{
629
641
  contractId: Type.TString;
630
642
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
@@ -720,33 +732,29 @@ export declare const AuthDeploymentAuthorityListResponseSchema: Type.TObject<{
720
732
  kind: Type.TUnion<[Type.TLiteral<"service">, Type.TLiteral<"device">, Type.TLiteral<"app">, Type.TLiteral<"cli">, Type.TLiteral<"native">, Type.TLiteral<"device-user">]>;
721
733
  disabled: Type.TBoolean;
722
734
  desiredState: Type.TObject<{
723
- needs: Type.TArray<Type.TUnion<[Type.TObject<{
724
- kind: Type.TLiteral<"contract">;
725
- contractId: Type.TString;
726
- required: Type.TBoolean;
727
- }>, Type.TObject<{
728
- kind: Type.TLiteral<"surface">;
729
- surface: Type.TObject<{
735
+ needs: Type.TObject<{
736
+ contracts: Type.TArray<Type.TObject<{
737
+ contractId: Type.TString;
738
+ required: Type.TBoolean;
739
+ }>>;
740
+ surfaces: Type.TArray<Type.TObject<{
730
741
  contractId: Type.TString;
731
742
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
732
743
  name: Type.TString;
733
744
  action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
734
- }>;
735
- required: Type.TBoolean;
736
- }>, Type.TObject<{
737
- kind: Type.TLiteral<"capability">;
738
- capability: Type.TString;
739
- required: Type.TBoolean;
740
- }>, Type.TObject<{
741
- kind: Type.TLiteral<"resource">;
742
- resource: Type.TObject<{
745
+ required: Type.TBoolean;
746
+ }>>;
747
+ capabilities: Type.TArray<Type.TObject<{
748
+ capability: Type.TString;
749
+ required: Type.TBoolean;
750
+ }>>;
751
+ resources: Type.TArray<Type.TObject<{
743
752
  kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"event-consumer">, Type.TLiteral<"transfer">]>;
744
753
  alias: Type.TString;
745
754
  required: Type.TBoolean;
746
755
  definition: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
747
- }>;
748
- required: Type.TBoolean;
749
- }>]>>;
756
+ }>>;
757
+ }>;
750
758
  capabilities: Type.TArray<Type.TString>;
751
759
  resources: Type.TArray<Type.TObject<{
752
760
  kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"event-consumer">, Type.TLiteral<"transfer">]>;
@@ -781,33 +789,29 @@ export declare const AuthDeploymentAuthorityGetResponseSchema: Type.TObject<{
781
789
  kind: Type.TUnion<[Type.TLiteral<"service">, Type.TLiteral<"device">, Type.TLiteral<"app">, Type.TLiteral<"cli">, Type.TLiteral<"native">, Type.TLiteral<"device-user">]>;
782
790
  disabled: Type.TBoolean;
783
791
  desiredState: Type.TObject<{
784
- needs: Type.TArray<Type.TUnion<[Type.TObject<{
785
- kind: Type.TLiteral<"contract">;
786
- contractId: Type.TString;
787
- required: Type.TBoolean;
788
- }>, Type.TObject<{
789
- kind: Type.TLiteral<"surface">;
790
- surface: Type.TObject<{
792
+ needs: Type.TObject<{
793
+ contracts: Type.TArray<Type.TObject<{
794
+ contractId: Type.TString;
795
+ required: Type.TBoolean;
796
+ }>>;
797
+ surfaces: Type.TArray<Type.TObject<{
791
798
  contractId: Type.TString;
792
799
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
793
800
  name: Type.TString;
794
801
  action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
795
- }>;
796
- required: Type.TBoolean;
797
- }>, Type.TObject<{
798
- kind: Type.TLiteral<"capability">;
799
- capability: Type.TString;
800
- required: Type.TBoolean;
801
- }>, Type.TObject<{
802
- kind: Type.TLiteral<"resource">;
803
- resource: Type.TObject<{
802
+ required: Type.TBoolean;
803
+ }>>;
804
+ capabilities: Type.TArray<Type.TObject<{
805
+ capability: Type.TString;
806
+ required: Type.TBoolean;
807
+ }>>;
808
+ resources: Type.TArray<Type.TObject<{
804
809
  kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"event-consumer">, Type.TLiteral<"transfer">]>;
805
810
  alias: Type.TString;
806
811
  required: Type.TBoolean;
807
812
  definition: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
808
- }>;
809
- required: Type.TBoolean;
810
- }>]>>;
813
+ }>>;
814
+ }>;
811
815
  capabilities: Type.TArray<Type.TString>;
812
816
  resources: Type.TArray<Type.TObject<{
813
817
  kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"event-consumer">, Type.TLiteral<"transfer">]>;
@@ -839,28 +843,29 @@ export declare const AuthDeploymentAuthorityGetResponseSchema: Type.TObject<{
839
843
  createdAt: Type.TString;
840
844
  updatedAt: Type.TString;
841
845
  }>>;
842
- grants: Type.TArray<Type.TUnion<[Type.TObject<{
843
- kind: Type.TLiteral<"capability">;
844
- capability: Type.TString;
845
- }>, Type.TObject<{
846
- kind: Type.TLiteral<"surface">;
847
- contractId: Type.TString;
848
- surfaceKind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
849
- name: Type.TString;
850
- action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
851
- }>, Type.TObject<{
852
- kind: Type.TLiteral<"nats">;
853
- direction: Type.TUnion<[Type.TLiteral<"publish">, Type.TLiteral<"subscribe">]>;
854
- subject: Type.TString;
855
- surface: Type.TOptional<Type.TObject<{
846
+ grants: Type.TObject<{
847
+ capabilities: Type.TArray<Type.TObject<{
848
+ capability: Type.TString;
849
+ }>>;
850
+ surfaces: Type.TArray<Type.TObject<{
856
851
  contractId: Type.TString;
857
- kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
852
+ surfaceKind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
858
853
  name: Type.TString;
859
854
  action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
860
855
  }>>;
861
- requiredCapabilities: Type.TArray<Type.TString>;
862
- grantSource: Type.TUnion<[Type.TLiteral<"owned-surface">, Type.TLiteral<"used-surface">, Type.TLiteral<"resource-binding">, Type.TLiteral<"platform-service">, Type.TLiteral<"transfer">]>;
863
- }>]>>;
856
+ nats: Type.TArray<Type.TObject<{
857
+ direction: Type.TUnion<[Type.TLiteral<"publish">, Type.TLiteral<"subscribe">]>;
858
+ subject: Type.TString;
859
+ surface: Type.TOptional<Type.TObject<{
860
+ contractId: Type.TString;
861
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
862
+ name: Type.TString;
863
+ action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
864
+ }>>;
865
+ requiredCapabilities: Type.TArray<Type.TString>;
866
+ grantSource: Type.TUnion<[Type.TLiteral<"owned-surface">, Type.TLiteral<"used-surface">, Type.TLiteral<"resource-binding">, Type.TLiteral<"platform-service">, Type.TLiteral<"transfer">]>;
867
+ }>>;
868
+ }>;
864
869
  reconciledAt: Type.TUnion<[Type.TString, Type.TNull]>;
865
870
  error: Type.TOptional<Type.TString>;
866
871
  }>, Type.TNull]>;
@@ -930,33 +935,29 @@ export declare const AuthDeploymentAuthorityPlansListResponseSchema: Type.TObjec
930
935
  contractId: Type.TString;
931
936
  contractDigest: Type.TString;
932
937
  contract: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
933
- requestedNeeds: Type.TArray<Type.TUnion<[Type.TObject<{
934
- kind: Type.TLiteral<"contract">;
935
- contractId: Type.TString;
936
- required: Type.TBoolean;
937
- }>, Type.TObject<{
938
- kind: Type.TLiteral<"surface">;
939
- surface: Type.TObject<{
938
+ requestedNeeds: Type.TObject<{
939
+ contracts: Type.TArray<Type.TObject<{
940
+ contractId: Type.TString;
941
+ required: Type.TBoolean;
942
+ }>>;
943
+ surfaces: Type.TArray<Type.TObject<{
940
944
  contractId: Type.TString;
941
945
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
942
946
  name: Type.TString;
943
947
  action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
944
- }>;
945
- required: Type.TBoolean;
946
- }>, Type.TObject<{
947
- kind: Type.TLiteral<"capability">;
948
- capability: Type.TString;
949
- required: Type.TBoolean;
950
- }>, Type.TObject<{
951
- kind: Type.TLiteral<"resource">;
952
- resource: Type.TObject<{
948
+ required: Type.TBoolean;
949
+ }>>;
950
+ capabilities: Type.TArray<Type.TObject<{
951
+ capability: Type.TString;
952
+ required: Type.TBoolean;
953
+ }>>;
954
+ resources: Type.TArray<Type.TObject<{
953
955
  kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"event-consumer">, Type.TLiteral<"transfer">]>;
954
956
  alias: Type.TString;
955
957
  required: Type.TBoolean;
956
958
  definition: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
957
- }>;
958
- required: Type.TBoolean;
959
- }>]>>;
959
+ }>>;
960
+ }>;
960
961
  providedSurfaces: Type.TArray<Type.TObject<{
961
962
  contractId: Type.TString;
962
963
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
@@ -985,33 +986,29 @@ export declare const AuthDeploymentAuthorityPlansListResponseSchema: Type.TObjec
985
986
  contractId: Type.TString;
986
987
  contractDigest: Type.TString;
987
988
  contract: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
988
- requestedNeeds: Type.TArray<Type.TUnion<[Type.TObject<{
989
- kind: Type.TLiteral<"contract">;
990
- contractId: Type.TString;
991
- required: Type.TBoolean;
992
- }>, Type.TObject<{
993
- kind: Type.TLiteral<"surface">;
994
- surface: Type.TObject<{
989
+ requestedNeeds: Type.TObject<{
990
+ contracts: Type.TArray<Type.TObject<{
991
+ contractId: Type.TString;
992
+ required: Type.TBoolean;
993
+ }>>;
994
+ surfaces: Type.TArray<Type.TObject<{
995
995
  contractId: Type.TString;
996
996
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
997
997
  name: Type.TString;
998
998
  action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
999
- }>;
1000
- required: Type.TBoolean;
1001
- }>, Type.TObject<{
1002
- kind: Type.TLiteral<"capability">;
1003
- capability: Type.TString;
1004
- required: Type.TBoolean;
1005
- }>, Type.TObject<{
1006
- kind: Type.TLiteral<"resource">;
1007
- resource: Type.TObject<{
999
+ required: Type.TBoolean;
1000
+ }>>;
1001
+ capabilities: Type.TArray<Type.TObject<{
1002
+ capability: Type.TString;
1003
+ required: Type.TBoolean;
1004
+ }>>;
1005
+ resources: Type.TArray<Type.TObject<{
1008
1006
  kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"event-consumer">, Type.TLiteral<"transfer">]>;
1009
1007
  alias: Type.TString;
1010
1008
  required: Type.TBoolean;
1011
1009
  definition: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
1012
- }>;
1013
- required: Type.TBoolean;
1014
- }>]>>;
1010
+ }>>;
1011
+ }>;
1015
1012
  providedSurfaces: Type.TArray<Type.TObject<{
1016
1013
  contractId: Type.TString;
1017
1014
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
@@ -1051,33 +1048,29 @@ export declare const AuthDeploymentAuthorityPlansGetResponseSchema: Type.TObject
1051
1048
  contractId: Type.TString;
1052
1049
  contractDigest: Type.TString;
1053
1050
  contract: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
1054
- requestedNeeds: Type.TArray<Type.TUnion<[Type.TObject<{
1055
- kind: Type.TLiteral<"contract">;
1056
- contractId: Type.TString;
1057
- required: Type.TBoolean;
1058
- }>, Type.TObject<{
1059
- kind: Type.TLiteral<"surface">;
1060
- surface: Type.TObject<{
1051
+ requestedNeeds: Type.TObject<{
1052
+ contracts: Type.TArray<Type.TObject<{
1053
+ contractId: Type.TString;
1054
+ required: Type.TBoolean;
1055
+ }>>;
1056
+ surfaces: Type.TArray<Type.TObject<{
1061
1057
  contractId: Type.TString;
1062
1058
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1063
1059
  name: Type.TString;
1064
1060
  action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
1065
- }>;
1066
- required: Type.TBoolean;
1067
- }>, Type.TObject<{
1068
- kind: Type.TLiteral<"capability">;
1069
- capability: Type.TString;
1070
- required: Type.TBoolean;
1071
- }>, Type.TObject<{
1072
- kind: Type.TLiteral<"resource">;
1073
- resource: Type.TObject<{
1061
+ required: Type.TBoolean;
1062
+ }>>;
1063
+ capabilities: Type.TArray<Type.TObject<{
1064
+ capability: Type.TString;
1065
+ required: Type.TBoolean;
1066
+ }>>;
1067
+ resources: Type.TArray<Type.TObject<{
1074
1068
  kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"event-consumer">, Type.TLiteral<"transfer">]>;
1075
1069
  alias: Type.TString;
1076
1070
  required: Type.TBoolean;
1077
1071
  definition: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
1078
- }>;
1079
- required: Type.TBoolean;
1080
- }>]>>;
1072
+ }>>;
1073
+ }>;
1081
1074
  providedSurfaces: Type.TArray<Type.TObject<{
1082
1075
  contractId: Type.TString;
1083
1076
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
@@ -1106,33 +1099,29 @@ export declare const AuthDeploymentAuthorityPlansGetResponseSchema: Type.TObject
1106
1099
  contractId: Type.TString;
1107
1100
  contractDigest: Type.TString;
1108
1101
  contract: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
1109
- requestedNeeds: Type.TArray<Type.TUnion<[Type.TObject<{
1110
- kind: Type.TLiteral<"contract">;
1111
- contractId: Type.TString;
1112
- required: Type.TBoolean;
1113
- }>, Type.TObject<{
1114
- kind: Type.TLiteral<"surface">;
1115
- surface: Type.TObject<{
1102
+ requestedNeeds: Type.TObject<{
1103
+ contracts: Type.TArray<Type.TObject<{
1104
+ contractId: Type.TString;
1105
+ required: Type.TBoolean;
1106
+ }>>;
1107
+ surfaces: Type.TArray<Type.TObject<{
1116
1108
  contractId: Type.TString;
1117
1109
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1118
1110
  name: Type.TString;
1119
1111
  action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
1120
- }>;
1121
- required: Type.TBoolean;
1122
- }>, Type.TObject<{
1123
- kind: Type.TLiteral<"capability">;
1124
- capability: Type.TString;
1125
- required: Type.TBoolean;
1126
- }>, Type.TObject<{
1127
- kind: Type.TLiteral<"resource">;
1128
- resource: Type.TObject<{
1112
+ required: Type.TBoolean;
1113
+ }>>;
1114
+ capabilities: Type.TArray<Type.TObject<{
1115
+ capability: Type.TString;
1116
+ required: Type.TBoolean;
1117
+ }>>;
1118
+ resources: Type.TArray<Type.TObject<{
1129
1119
  kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"event-consumer">, Type.TLiteral<"transfer">]>;
1130
1120
  alias: Type.TString;
1131
1121
  required: Type.TBoolean;
1132
1122
  definition: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
1133
- }>;
1134
- required: Type.TBoolean;
1135
- }>]>>;
1123
+ }>>;
1124
+ }>;
1136
1125
  providedSurfaces: Type.TArray<Type.TObject<{
1137
1126
  contractId: Type.TString;
1138
1127
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
@@ -1170,33 +1159,29 @@ export declare const AuthDeploymentAuthorityPlanResponseSchema: Type.TObject<{
1170
1159
  contractId: Type.TString;
1171
1160
  contractDigest: Type.TString;
1172
1161
  contract: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
1173
- requestedNeeds: Type.TArray<Type.TUnion<[Type.TObject<{
1174
- kind: Type.TLiteral<"contract">;
1175
- contractId: Type.TString;
1176
- required: Type.TBoolean;
1177
- }>, Type.TObject<{
1178
- kind: Type.TLiteral<"surface">;
1179
- surface: Type.TObject<{
1162
+ requestedNeeds: Type.TObject<{
1163
+ contracts: Type.TArray<Type.TObject<{
1164
+ contractId: Type.TString;
1165
+ required: Type.TBoolean;
1166
+ }>>;
1167
+ surfaces: Type.TArray<Type.TObject<{
1180
1168
  contractId: Type.TString;
1181
1169
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1182
1170
  name: Type.TString;
1183
1171
  action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
1184
- }>;
1185
- required: Type.TBoolean;
1186
- }>, Type.TObject<{
1187
- kind: Type.TLiteral<"capability">;
1188
- capability: Type.TString;
1189
- required: Type.TBoolean;
1190
- }>, Type.TObject<{
1191
- kind: Type.TLiteral<"resource">;
1192
- resource: Type.TObject<{
1172
+ required: Type.TBoolean;
1173
+ }>>;
1174
+ capabilities: Type.TArray<Type.TObject<{
1175
+ capability: Type.TString;
1176
+ required: Type.TBoolean;
1177
+ }>>;
1178
+ resources: Type.TArray<Type.TObject<{
1193
1179
  kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"event-consumer">, Type.TLiteral<"transfer">]>;
1194
1180
  alias: Type.TString;
1195
1181
  required: Type.TBoolean;
1196
1182
  definition: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
1197
- }>;
1198
- required: Type.TBoolean;
1199
- }>]>>;
1183
+ }>>;
1184
+ }>;
1200
1185
  providedSurfaces: Type.TArray<Type.TObject<{
1201
1186
  contractId: Type.TString;
1202
1187
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
@@ -1225,33 +1210,29 @@ export declare const AuthDeploymentAuthorityPlanResponseSchema: Type.TObject<{
1225
1210
  contractId: Type.TString;
1226
1211
  contractDigest: Type.TString;
1227
1212
  contract: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
1228
- requestedNeeds: Type.TArray<Type.TUnion<[Type.TObject<{
1229
- kind: Type.TLiteral<"contract">;
1230
- contractId: Type.TString;
1231
- required: Type.TBoolean;
1232
- }>, Type.TObject<{
1233
- kind: Type.TLiteral<"surface">;
1234
- surface: Type.TObject<{
1213
+ requestedNeeds: Type.TObject<{
1214
+ contracts: Type.TArray<Type.TObject<{
1215
+ contractId: Type.TString;
1216
+ required: Type.TBoolean;
1217
+ }>>;
1218
+ surfaces: Type.TArray<Type.TObject<{
1235
1219
  contractId: Type.TString;
1236
1220
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1237
1221
  name: Type.TString;
1238
1222
  action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
1239
- }>;
1240
- required: Type.TBoolean;
1241
- }>, Type.TObject<{
1242
- kind: Type.TLiteral<"capability">;
1243
- capability: Type.TString;
1244
- required: Type.TBoolean;
1245
- }>, Type.TObject<{
1246
- kind: Type.TLiteral<"resource">;
1247
- resource: Type.TObject<{
1223
+ required: Type.TBoolean;
1224
+ }>>;
1225
+ capabilities: Type.TArray<Type.TObject<{
1226
+ capability: Type.TString;
1227
+ required: Type.TBoolean;
1228
+ }>>;
1229
+ resources: Type.TArray<Type.TObject<{
1248
1230
  kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"event-consumer">, Type.TLiteral<"transfer">]>;
1249
1231
  alias: Type.TString;
1250
1232
  required: Type.TBoolean;
1251
1233
  definition: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
1252
- }>;
1253
- required: Type.TBoolean;
1254
- }>]>>;
1234
+ }>>;
1235
+ }>;
1255
1236
  providedSurfaces: Type.TArray<Type.TObject<{
1256
1237
  contractId: Type.TString;
1257
1238
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
@@ -1289,33 +1270,29 @@ export declare const AuthDeploymentAuthorityAcceptResponseSchema: Type.TObject<{
1289
1270
  kind: Type.TUnion<[Type.TLiteral<"service">, Type.TLiteral<"device">, Type.TLiteral<"app">, Type.TLiteral<"cli">, Type.TLiteral<"native">, Type.TLiteral<"device-user">]>;
1290
1271
  disabled: Type.TBoolean;
1291
1272
  desiredState: Type.TObject<{
1292
- needs: Type.TArray<Type.TUnion<[Type.TObject<{
1293
- kind: Type.TLiteral<"contract">;
1294
- contractId: Type.TString;
1295
- required: Type.TBoolean;
1296
- }>, Type.TObject<{
1297
- kind: Type.TLiteral<"surface">;
1298
- surface: Type.TObject<{
1273
+ needs: Type.TObject<{
1274
+ contracts: Type.TArray<Type.TObject<{
1275
+ contractId: Type.TString;
1276
+ required: Type.TBoolean;
1277
+ }>>;
1278
+ surfaces: Type.TArray<Type.TObject<{
1299
1279
  contractId: Type.TString;
1300
1280
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1301
1281
  name: Type.TString;
1302
1282
  action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
1303
- }>;
1304
- required: Type.TBoolean;
1305
- }>, Type.TObject<{
1306
- kind: Type.TLiteral<"capability">;
1307
- capability: Type.TString;
1308
- required: Type.TBoolean;
1309
- }>, Type.TObject<{
1310
- kind: Type.TLiteral<"resource">;
1311
- resource: Type.TObject<{
1283
+ required: Type.TBoolean;
1284
+ }>>;
1285
+ capabilities: Type.TArray<Type.TObject<{
1286
+ capability: Type.TString;
1287
+ required: Type.TBoolean;
1288
+ }>>;
1289
+ resources: Type.TArray<Type.TObject<{
1312
1290
  kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"event-consumer">, Type.TLiteral<"transfer">]>;
1313
1291
  alias: Type.TString;
1314
1292
  required: Type.TBoolean;
1315
1293
  definition: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
1316
- }>;
1317
- required: Type.TBoolean;
1318
- }>]>>;
1294
+ }>>;
1295
+ }>;
1319
1296
  capabilities: Type.TArray<Type.TString>;
1320
1297
  resources: Type.TArray<Type.TObject<{
1321
1298
  kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"event-consumer">, Type.TLiteral<"transfer">]>;
@@ -1356,33 +1333,29 @@ export declare const AuthDeploymentAuthorityReconcileResponseSchema: Type.TObjec
1356
1333
  kind: Type.TUnion<[Type.TLiteral<"service">, Type.TLiteral<"device">, Type.TLiteral<"app">, Type.TLiteral<"cli">, Type.TLiteral<"native">, Type.TLiteral<"device-user">]>;
1357
1334
  disabled: Type.TBoolean;
1358
1335
  desiredState: Type.TObject<{
1359
- needs: Type.TArray<Type.TUnion<[Type.TObject<{
1360
- kind: Type.TLiteral<"contract">;
1361
- contractId: Type.TString;
1362
- required: Type.TBoolean;
1363
- }>, Type.TObject<{
1364
- kind: Type.TLiteral<"surface">;
1365
- surface: Type.TObject<{
1336
+ needs: Type.TObject<{
1337
+ contracts: Type.TArray<Type.TObject<{
1338
+ contractId: Type.TString;
1339
+ required: Type.TBoolean;
1340
+ }>>;
1341
+ surfaces: Type.TArray<Type.TObject<{
1366
1342
  contractId: Type.TString;
1367
1343
  kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1368
1344
  name: Type.TString;
1369
1345
  action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
1370
- }>;
1371
- required: Type.TBoolean;
1372
- }>, Type.TObject<{
1373
- kind: Type.TLiteral<"capability">;
1374
- capability: Type.TString;
1375
- required: Type.TBoolean;
1376
- }>, Type.TObject<{
1377
- kind: Type.TLiteral<"resource">;
1378
- resource: Type.TObject<{
1346
+ required: Type.TBoolean;
1347
+ }>>;
1348
+ capabilities: Type.TArray<Type.TObject<{
1349
+ capability: Type.TString;
1350
+ required: Type.TBoolean;
1351
+ }>>;
1352
+ resources: Type.TArray<Type.TObject<{
1379
1353
  kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"event-consumer">, Type.TLiteral<"transfer">]>;
1380
1354
  alias: Type.TString;
1381
1355
  required: Type.TBoolean;
1382
1356
  definition: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
1383
- }>;
1384
- required: Type.TBoolean;
1385
- }>]>>;
1357
+ }>>;
1358
+ }>;
1386
1359
  capabilities: Type.TArray<Type.TString>;
1387
1360
  resources: Type.TArray<Type.TObject<{
1388
1361
  kind: Type.TUnion<[Type.TLiteral<"kv">, Type.TLiteral<"store">, Type.TLiteral<"jobs">, Type.TLiteral<"event-consumer">, Type.TLiteral<"transfer">]>;
@@ -1414,28 +1387,29 @@ export declare const AuthDeploymentAuthorityReconcileResponseSchema: Type.TObjec
1414
1387
  createdAt: Type.TString;
1415
1388
  updatedAt: Type.TString;
1416
1389
  }>>;
1417
- grants: Type.TArray<Type.TUnion<[Type.TObject<{
1418
- kind: Type.TLiteral<"capability">;
1419
- capability: Type.TString;
1420
- }>, Type.TObject<{
1421
- kind: Type.TLiteral<"surface">;
1422
- contractId: Type.TString;
1423
- surfaceKind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1424
- name: Type.TString;
1425
- action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
1426
- }>, Type.TObject<{
1427
- kind: Type.TLiteral<"nats">;
1428
- direction: Type.TUnion<[Type.TLiteral<"publish">, Type.TLiteral<"subscribe">]>;
1429
- subject: Type.TString;
1430
- surface: Type.TOptional<Type.TObject<{
1390
+ grants: Type.TObject<{
1391
+ capabilities: Type.TArray<Type.TObject<{
1392
+ capability: Type.TString;
1393
+ }>>;
1394
+ surfaces: Type.TArray<Type.TObject<{
1431
1395
  contractId: Type.TString;
1432
- kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1396
+ surfaceKind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1433
1397
  name: Type.TString;
1434
1398
  action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
1435
1399
  }>>;
1436
- requiredCapabilities: Type.TArray<Type.TString>;
1437
- grantSource: Type.TUnion<[Type.TLiteral<"owned-surface">, Type.TLiteral<"used-surface">, Type.TLiteral<"resource-binding">, Type.TLiteral<"platform-service">, Type.TLiteral<"transfer">]>;
1438
- }>]>>;
1400
+ nats: Type.TArray<Type.TObject<{
1401
+ direction: Type.TUnion<[Type.TLiteral<"publish">, Type.TLiteral<"subscribe">]>;
1402
+ subject: Type.TString;
1403
+ surface: Type.TOptional<Type.TObject<{
1404
+ contractId: Type.TString;
1405
+ kind: Type.TUnion<[Type.TLiteral<"rpc">, Type.TLiteral<"operation">, Type.TLiteral<"event">, Type.TLiteral<"feed">]>;
1406
+ name: Type.TString;
1407
+ action: Type.TOptional<Type.TUnion<[Type.TLiteral<"call">, Type.TLiteral<"publish">, Type.TLiteral<"subscribe">, Type.TLiteral<"observe">, Type.TLiteral<"cancel">]>>;
1408
+ }>>;
1409
+ requiredCapabilities: Type.TArray<Type.TString>;
1410
+ grantSource: Type.TUnion<[Type.TLiteral<"owned-surface">, Type.TLiteral<"used-surface">, Type.TLiteral<"resource-binding">, Type.TLiteral<"platform-service">, Type.TLiteral<"transfer">]>;
1411
+ }>>;
1412
+ }>;
1439
1413
  reconciledAt: Type.TUnion<[Type.TString, Type.TNull]>;
1440
1414
  error: Type.TOptional<Type.TString>;
1441
1415
  }>;
@@ -1666,6 +1640,17 @@ export declare const AuthServiceInstancesProvisionResponseSchema: Type.TObject<{
1666
1640
  logs: Type.TBoolean;
1667
1641
  dlq: Type.TBoolean;
1668
1642
  concurrency: Type.TInteger;
1643
+ keyConcurrency: Type.TOptional<Type.TObject<{
1644
+ key: Type.TArray<Type.TString>;
1645
+ maxActive: Type.TInteger;
1646
+ heartbeatIntervalMs: Type.TInteger;
1647
+ heartbeatTtlMs: Type.TInteger;
1648
+ stalePolicy: Type.TUnion<[Type.TLiteral<"fail-stale">, Type.TLiteral<"block">]>;
1649
+ }>>;
1650
+ queue: Type.TOptional<Type.TObject<{
1651
+ maxQueuedPerKey: Type.TInteger;
1652
+ whenFull: Type.TUnion<[Type.TLiteral<"reject">, Type.TLiteral<"coalesce">, Type.TLiteral<"replace-oldest">]>;
1653
+ }>>;
1669
1654
  }>>;
1670
1655
  }>>;
1671
1656
  eventConsumers: Type.TOptional<Type.TRecord<"^.*$", Type.TObject<{
@@ -1731,6 +1716,17 @@ export declare const AuthServiceInstancesListResponseSchema: Type.TObject<{
1731
1716
  logs: Type.TBoolean;
1732
1717
  dlq: Type.TBoolean;
1733
1718
  concurrency: Type.TInteger;
1719
+ keyConcurrency: Type.TOptional<Type.TObject<{
1720
+ key: Type.TArray<Type.TString>;
1721
+ maxActive: Type.TInteger;
1722
+ heartbeatIntervalMs: Type.TInteger;
1723
+ heartbeatTtlMs: Type.TInteger;
1724
+ stalePolicy: Type.TUnion<[Type.TLiteral<"fail-stale">, Type.TLiteral<"block">]>;
1725
+ }>>;
1726
+ queue: Type.TOptional<Type.TObject<{
1727
+ maxQueuedPerKey: Type.TInteger;
1728
+ whenFull: Type.TUnion<[Type.TLiteral<"reject">, Type.TLiteral<"coalesce">, Type.TLiteral<"replace-oldest">]>;
1729
+ }>>;
1734
1730
  }>>;
1735
1731
  }>>;
1736
1732
  eventConsumers: Type.TOptional<Type.TRecord<"^.*$", Type.TObject<{
@@ -1797,6 +1793,17 @@ export declare const AuthServiceInstancesDisableResponseSchema: Type.TObject<{
1797
1793
  logs: Type.TBoolean;
1798
1794
  dlq: Type.TBoolean;
1799
1795
  concurrency: Type.TInteger;
1796
+ keyConcurrency: Type.TOptional<Type.TObject<{
1797
+ key: Type.TArray<Type.TString>;
1798
+ maxActive: Type.TInteger;
1799
+ heartbeatIntervalMs: Type.TInteger;
1800
+ heartbeatTtlMs: Type.TInteger;
1801
+ stalePolicy: Type.TUnion<[Type.TLiteral<"fail-stale">, Type.TLiteral<"block">]>;
1802
+ }>>;
1803
+ queue: Type.TOptional<Type.TObject<{
1804
+ maxQueuedPerKey: Type.TInteger;
1805
+ whenFull: Type.TUnion<[Type.TLiteral<"reject">, Type.TLiteral<"coalesce">, Type.TLiteral<"replace-oldest">]>;
1806
+ }>>;
1800
1807
  }>>;
1801
1808
  }>>;
1802
1809
  eventConsumers: Type.TOptional<Type.TRecord<"^.*$", Type.TObject<{
@@ -1859,6 +1866,17 @@ export declare const AuthServiceInstancesEnableResponseSchema: Type.TObject<{
1859
1866
  logs: Type.TBoolean;
1860
1867
  dlq: Type.TBoolean;
1861
1868
  concurrency: Type.TInteger;
1869
+ keyConcurrency: Type.TOptional<Type.TObject<{
1870
+ key: Type.TArray<Type.TString>;
1871
+ maxActive: Type.TInteger;
1872
+ heartbeatIntervalMs: Type.TInteger;
1873
+ heartbeatTtlMs: Type.TInteger;
1874
+ stalePolicy: Type.TUnion<[Type.TLiteral<"fail-stale">, Type.TLiteral<"block">]>;
1875
+ }>>;
1876
+ queue: Type.TOptional<Type.TObject<{
1877
+ maxQueuedPerKey: Type.TInteger;
1878
+ whenFull: Type.TUnion<[Type.TLiteral<"reject">, Type.TLiteral<"coalesce">, Type.TLiteral<"replace-oldest">]>;
1879
+ }>>;
1862
1880
  }>>;
1863
1881
  }>>;
1864
1882
  eventConsumers: Type.TOptional<Type.TRecord<"^.*$", Type.TObject<{