@oatscenter/trellis 0.100.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 (264) hide show
  1. package/README.md +59 -0
  2. package/auth/authorization/client_context.d.ts +61 -0
  3. package/auth/authorization/client_context.js +266 -0
  4. package/auth/authorization/nats_registry.d.ts +41 -0
  5. package/auth/authorization/nats_registry.js +283 -0
  6. package/auth/authorization/provider_cache.d.ts +90 -0
  7. package/auth/authorization/provider_cache.js +783 -0
  8. package/auth/authorization/refresh.d.ts +46 -0
  9. package/auth/authorization/refresh.js +246 -0
  10. package/auth/authorization/types.d.ts +207 -0
  11. package/auth/authorization/types.js +60 -0
  12. package/auth/authorization_context.d.ts +11 -0
  13. package/auth/authorization_context.js +10 -0
  14. package/auth/browser/flow_types.d.ts +84 -0
  15. package/auth/browser/flow_types.js +70 -0
  16. package/auth/browser/portal.d.ts +21 -0
  17. package/auth/browser/portal.js +307 -0
  18. package/auth/browser/storage.d.ts +26 -0
  19. package/auth/browser/storage.js +224 -0
  20. package/auth/browser.d.ts +11 -0
  21. package/auth/browser.js +10 -0
  22. package/auth/browser_recovery.d.ts +13 -0
  23. package/auth/browser_recovery.js +38 -0
  24. package/auth/device_activation.d.ts +134 -0
  25. package/auth/device_activation.js +376 -0
  26. package/auth/http_error.d.ts +12 -0
  27. package/auth/http_error.js +32 -0
  28. package/auth/keys.d.ts +5 -0
  29. package/auth/keys.js +63 -0
  30. package/auth/mod.d.ts +16 -0
  31. package/auth/mod.js +16 -0
  32. package/auth/proof.d.ts +31 -0
  33. package/auth/proof.js +95 -0
  34. package/auth/protocol_wasm/trellis_protocol_wasm.d.ts +138 -0
  35. package/auth/protocol_wasm/trellis_protocol_wasm.js +605 -0
  36. package/auth/protocol_wasm/trellis_protocol_wasm_bg.wasm +0 -0
  37. package/auth/protocol_wasm/trellis_protocol_wasm_bytes.d.ts +1 -0
  38. package/auth/protocol_wasm/trellis_protocol_wasm_bytes.js +2 -0
  39. package/auth/protocol_wasm.d.ts +179 -0
  40. package/auth/protocol_wasm.js +133 -0
  41. package/auth/session_auth.d.ts +30 -0
  42. package/auth/session_auth.js +77 -0
  43. package/auth/session_proof.d.ts +53 -0
  44. package/auth/session_proof.js +43 -0
  45. package/auth/time.d.ts +6 -0
  46. package/auth/time.js +7 -0
  47. package/auth/trellis_id.d.ts +1 -0
  48. package/auth/trellis_id.js +5 -0
  49. package/auth/utils.d.ts +10 -0
  50. package/auth/utils.js +69 -0
  51. package/auth.d.ts +1 -0
  52. package/auth.js +1 -0
  53. package/caller.d.ts +111 -0
  54. package/caller.js +85 -0
  55. package/client.d.ts +14 -0
  56. package/client.js +1 -0
  57. package/client_connect.d.ts +143 -0
  58. package/client_connect.js +1097 -0
  59. package/codec.d.ts +13 -0
  60. package/codec.js +192 -0
  61. package/connection.d.ts +107 -0
  62. package/connection.js +396 -0
  63. package/device/activation.d.ts +42 -0
  64. package/device/activation.js +319 -0
  65. package/device.d.ts +80 -0
  66. package/device.js +687 -0
  67. package/env.d.ts +2 -0
  68. package/env.js +10 -0
  69. package/errors/AuthError.d.ts +30 -0
  70. package/errors/AuthError.js +34 -0
  71. package/errors/KVError.d.ts +30 -0
  72. package/errors/KVError.js +36 -0
  73. package/errors/OperationLifecycleError.d.ts +110 -0
  74. package/errors/OperationLifecycleError.js +142 -0
  75. package/errors/RemoteError.d.ts +61 -0
  76. package/errors/RemoteError.js +72 -0
  77. package/errors/SchemaValidationError.d.ts +48 -0
  78. package/errors/SchemaValidationError.js +49 -0
  79. package/errors/StoreError.d.ts +21 -0
  80. package/errors/StoreError.js +31 -0
  81. package/errors/TransferError.d.ts +21 -0
  82. package/errors/TransferError.js +31 -0
  83. package/errors/TransportError.d.ts +29 -0
  84. package/errors/TransportError.js +33 -0
  85. package/errors/TrellisError.d.ts +15 -0
  86. package/errors/TrellisError.js +15 -0
  87. package/errors/ValidationError.d.ts +50 -0
  88. package/errors/ValidationError.js +59 -0
  89. package/errors/index.d.ts +254 -0
  90. package/errors/index.js +238 -0
  91. package/generated.d.ts +4 -0
  92. package/generated.js +3 -0
  93. package/generated_support.d.ts +120 -0
  94. package/generated_support.js +359 -0
  95. package/globals.d.ts +9 -0
  96. package/globals.js +16 -0
  97. package/health_transport.d.ts +18 -0
  98. package/health_transport.js +32 -0
  99. package/helpers.d.ts +11 -0
  100. package/helpers.js +53 -0
  101. package/index.d.ts +2 -0
  102. package/index.js +2 -0
  103. package/internal_sdk/generated/apis/auth/mod.d.ts +805 -0
  104. package/internal_sdk/generated/apis/auth/mod.js +958 -0
  105. package/internal_sdk/generated/apis/core/mod.d.ts +79 -0
  106. package/internal_sdk/generated/apis/core/mod.js +93 -0
  107. package/internal_sdk/generated/apis/events/mod.d.ts +224 -0
  108. package/internal_sdk/generated/apis/events/mod.js +313 -0
  109. package/internal_sdk/generated/apis/health/mod.d.ts +106 -0
  110. package/internal_sdk/generated/apis/health/mod.js +132 -0
  111. package/internal_sdk/generated/apis/index.d.ts +7 -0
  112. package/internal_sdk/generated/apis/index.js +8 -0
  113. package/internal_sdk/generated/apis/jobs/mod.d.ts +176 -0
  114. package/internal_sdk/generated/apis/jobs/mod.js +209 -0
  115. package/internal_sdk/generated/apis/state/mod.d.ts +104 -0
  116. package/internal_sdk/generated/apis/state/mod.js +139 -0
  117. package/internal_sdk/generated/index.d.ts +4 -0
  118. package/internal_sdk/generated/index.js +5 -0
  119. package/internal_sdk/generated/package.json +18 -0
  120. package/internal_sdk/generated/participants/cli/mod.d.ts +402 -0
  121. package/internal_sdk/generated/participants/cli/mod.js +460 -0
  122. package/internal_sdk/generated/participants/cli/types.d.ts +2 -0
  123. package/internal_sdk/generated/participants/cli/types.js +3 -0
  124. package/internal_sdk/generated/participants/console/mod.d.ts +489 -0
  125. package/internal_sdk/generated/participants/console/mod.js +579 -0
  126. package/internal_sdk/generated/participants/console/types.d.ts +2 -0
  127. package/internal_sdk/generated/participants/console/types.js +3 -0
  128. package/internal_sdk/generated/participants/eventsRuntime/mod.d.ts +64 -0
  129. package/internal_sdk/generated/participants/eventsRuntime/mod.js +42 -0
  130. package/internal_sdk/generated/participants/eventsRuntime/types.d.ts +2 -0
  131. package/internal_sdk/generated/participants/eventsRuntime/types.js +3 -0
  132. package/internal_sdk/generated/participants/healthRuntime/mod.d.ts +58 -0
  133. package/internal_sdk/generated/participants/healthRuntime/mod.js +36 -0
  134. package/internal_sdk/generated/participants/healthRuntime/types.d.ts +2 -0
  135. package/internal_sdk/generated/participants/healthRuntime/types.js +3 -0
  136. package/internal_sdk/generated/participants/index.d.ts +8 -0
  137. package/internal_sdk/generated/participants/index.js +9 -0
  138. package/internal_sdk/generated/participants/jobsRuntime/mod.d.ts +64 -0
  139. package/internal_sdk/generated/participants/jobsRuntime/mod.js +42 -0
  140. package/internal_sdk/generated/participants/jobsRuntime/types.d.ts +2 -0
  141. package/internal_sdk/generated/participants/jobsRuntime/types.js +3 -0
  142. package/internal_sdk/generated/participants/platform/mod.d.ts +164 -0
  143. package/internal_sdk/generated/participants/platform/mod.js +149 -0
  144. package/internal_sdk/generated/participants/platform/types.d.ts +7 -0
  145. package/internal_sdk/generated/participants/platform/types.js +5 -0
  146. package/internal_sdk/generated/participants/portal/mod.d.ts +131 -0
  147. package/internal_sdk/generated/participants/portal/mod.js +109 -0
  148. package/internal_sdk/generated/participants/portal/types.d.ts +2 -0
  149. package/internal_sdk/generated/participants/portal/types.js +3 -0
  150. package/internal_sdk/generated/types/_internal/p0.d.ts +13511 -0
  151. package/internal_sdk/generated/types/_internal/p0.js +6105 -0
  152. package/internal_sdk/generated/types/index.d.ts +2951 -0
  153. package/internal_sdk/generated/types/index.js +1477 -0
  154. package/jobs.d.ts +309 -0
  155. package/jobs.js +389 -0
  156. package/kv.d.ts +85 -0
  157. package/kv.js +330 -0
  158. package/operations.d.ts +189 -0
  159. package/operations.js +847 -0
  160. package/package.json +73 -0
  161. package/pagination.d.ts +25 -0
  162. package/pagination.js +117 -0
  163. package/participant.d.ts +6 -0
  164. package/participant.js +6 -0
  165. package/participant_runtime/api.d.ts +131 -0
  166. package/participant_runtime/api.js +42 -0
  167. package/participant_runtime/json.d.ts +16 -0
  168. package/participant_runtime/json.js +193 -0
  169. package/participant_runtime/metadata.d.ts +34 -0
  170. package/participant_runtime/metadata.js +4 -0
  171. package/participant_runtime/participant.d.ts +200 -0
  172. package/participant_runtime/participant.js +330 -0
  173. package/participant_runtime/schemas.d.ts +347 -0
  174. package/participant_runtime/schemas.js +211 -0
  175. package/participant_runtime/surface_names.d.ts +16 -0
  176. package/participant_runtime/surface_names.js +34 -0
  177. package/portable.d.ts +30 -0
  178. package/portable.js +14 -0
  179. package/provider.d.ts +69 -0
  180. package/provider.js +68 -0
  181. package/runtime_transport.d.ts +25 -0
  182. package/runtime_transport.js +48 -0
  183. package/service/mod.d.ts +14 -0
  184. package/service/mod.js +13 -0
  185. package/service/outbox_inbox.d.ts +259 -0
  186. package/service/outbox_inbox.js +908 -0
  187. package/service/runtime/bootstrap.d.ts +56 -0
  188. package/service/runtime/bootstrap.js +226 -0
  189. package/service/runtime/core.d.ts +46 -0
  190. package/service/runtime/core.js +1747 -0
  191. package/service/runtime/health.d.ts +97 -0
  192. package/service/runtime/health.js +153 -0
  193. package/service/runtime/health_schemas.d.ts +23 -0
  194. package/service/runtime/health_schemas.js +20 -0
  195. package/service/runtime/internal_jobs/active-job.d.ts +40 -0
  196. package/service/runtime/internal_jobs/active-job.js +91 -0
  197. package/service/runtime/internal_jobs/bindings.d.ts +40 -0
  198. package/service/runtime/internal_jobs/bindings.js +1 -0
  199. package/service/runtime/internal_jobs/cancellation-registry.d.ts +13 -0
  200. package/service/runtime/internal_jobs/cancellation-registry.js +55 -0
  201. package/service/runtime/internal_jobs/heartbeat.d.ts +33 -0
  202. package/service/runtime/internal_jobs/heartbeat.js +65 -0
  203. package/service/runtime/internal_jobs/job-manager.d.ts +126 -0
  204. package/service/runtime/internal_jobs/job-manager.js +821 -0
  205. package/service/runtime/internal_jobs/key-coordinator.d.ts +280 -0
  206. package/service/runtime/internal_jobs/key-coordinator.js +747 -0
  207. package/service/runtime/internal_jobs/projection.d.ts +3 -0
  208. package/service/runtime/internal_jobs/projection.js +42 -0
  209. package/service/runtime/internal_jobs/runtime-worker.d.ts +126 -0
  210. package/service/runtime/internal_jobs/runtime-worker.js +454 -0
  211. package/service/runtime/internal_jobs/types.d.ts +246 -0
  212. package/service/runtime/internal_jobs/types.js +163 -0
  213. package/service/runtime/logger.d.ts +2 -0
  214. package/service/runtime/logger.js +7 -0
  215. package/service/runtime/runtime.d.ts +16 -0
  216. package/service/runtime/runtime.js +1 -0
  217. package/service/runtime/service.d.ts +372 -0
  218. package/service/runtime/service.js +1896 -0
  219. package/service/runtime/transfer/download.d.ts +27 -0
  220. package/service/runtime/transfer/download.js +1 -0
  221. package/service/runtime/transfer/protocol.d.ts +15 -0
  222. package/service/runtime/transfer/protocol.js +46 -0
  223. package/service/runtime/transfer/queue.d.ts +18 -0
  224. package/service/runtime/transfer/queue.js +136 -0
  225. package/service/runtime/transfer/upload.d.ts +40 -0
  226. package/service/runtime/transfer/upload.js +27 -0
  227. package/service/runtime/transfer.d.ts +62 -0
  228. package/service/runtime/transfer.js +763 -0
  229. package/session.d.ts +862 -0
  230. package/session.js +3407 -0
  231. package/store.d.ts +71 -0
  232. package/store.js +412 -0
  233. package/store_entry.d.ts +20 -0
  234. package/store_entry.js +75 -0
  235. package/tasks.d.ts +10 -0
  236. package/tasks.js +28 -0
  237. package/telemetry/carrier.d.ts +8 -0
  238. package/telemetry/carrier.js +20 -0
  239. package/telemetry/core.d.ts +7 -0
  240. package/telemetry/core.js +14 -0
  241. package/telemetry/env.d.ts +2 -0
  242. package/telemetry/env.js +10 -0
  243. package/telemetry/init.d.ts +2 -0
  244. package/telemetry/init.js +7 -0
  245. package/telemetry/metrics.d.ts +81 -0
  246. package/telemetry/metrics.js +267 -0
  247. package/telemetry/mod.d.ts +13 -0
  248. package/telemetry/mod.js +8 -0
  249. package/telemetry/nats.d.ts +6 -0
  250. package/telemetry/nats.js +6 -0
  251. package/telemetry/result.d.ts +1 -0
  252. package/telemetry/result.js +18 -0
  253. package/telemetry/runtime.d.ts +1 -0
  254. package/telemetry/runtime.js +141 -0
  255. package/telemetry/trace.d.ts +4 -0
  256. package/telemetry/trace.js +26 -0
  257. package/telemetry/trellis.d.ts +1 -0
  258. package/telemetry/trellis.js +1 -0
  259. package/telemetry.d.ts +1 -0
  260. package/telemetry.js +1 -0
  261. package/transfer.d.ts +112 -0
  262. package/transfer.js +525 -0
  263. package/transfer_protocol.d.ts +1 -0
  264. package/transfer_protocol.js +13 -0
@@ -0,0 +1,2 @@
1
+ // Generated by Trellis. Do not edit.
2
+ export {};
@@ -0,0 +1,3 @@
1
+ // Generated by Trellis. Do not edit.
2
+ // @ts-self-types="./types.d.ts"
3
+ export {};
@@ -0,0 +1,164 @@
1
+ // Generated by Trellis. Do not edit.
2
+ import type { ParticipantJobsFromResources, ParticipantKvFromResources, RuntimeApiFromGenerated } from "@oatscenter/trellis/generated";
3
+ import * as types from "./types.js";
4
+ export { types };
5
+ import * as Api0 from "../../apis/auth/mod.js";
6
+ import * as Api1 from "../../apis/core/mod.js";
7
+ import * as Api2 from "../../apis/state/mod.js";
8
+ import * as Types0 from "../../types/_internal/p0.js";
9
+ type __ActionNames = {
10
+ readonly "trellis.auth@v1:rpc:Capabilities.List": "Capabilities.List";
11
+ readonly "trellis.auth@v1:rpc:CapabilityGroups.Delete": "CapabilityGroups.Delete";
12
+ readonly "trellis.auth@v1:rpc:CapabilityGroups.Get": "CapabilityGroups.Get";
13
+ readonly "trellis.auth@v1:rpc:CapabilityGroups.List": "CapabilityGroups.List";
14
+ readonly "trellis.auth@v1:rpc:CapabilityGroups.Put": "CapabilityGroups.Put";
15
+ readonly "trellis.auth@v1:rpc:Connections.Kick": "Connections.Kick";
16
+ readonly "trellis.auth@v1:rpc:Connections.List": "Connections.List";
17
+ readonly "trellis.auth@v1:rpc:Deployments.Apply": "Deployments.Apply";
18
+ readonly "trellis.auth@v1:rpc:Deployments.Create": "Deployments.Create";
19
+ readonly "trellis.auth@v1:rpc:Deployments.Disable": "Deployments.Disable";
20
+ readonly "trellis.auth@v1:rpc:Deployments.Enable": "Deployments.Enable";
21
+ readonly "trellis.auth@v1:rpc:Deployments.Get": "Deployments.Get";
22
+ readonly "trellis.auth@v1:rpc:Deployments.List": "Deployments.List";
23
+ readonly "trellis.auth@v1:rpc:Deployments.Remove": "Deployments.Remove";
24
+ readonly "trellis.auth@v1:rpc:DeviceUserAuthorities.List": "DeviceUserAuthorities.List";
25
+ readonly "trellis.auth@v1:rpc:DeviceUserAuthorities.Reviews.Decide": "DeviceUserAuthorities.Reviews.Decide";
26
+ readonly "trellis.auth@v1:rpc:DeviceUserAuthorities.Reviews.List": "DeviceUserAuthorities.Reviews.List";
27
+ readonly "trellis.auth@v1:rpc:DeviceUserAuthorities.Revoke": "DeviceUserAuthorities.Revoke";
28
+ readonly "trellis.auth@v1:rpc:Devices.Disable": "Devices.Disable";
29
+ readonly "trellis.auth@v1:rpc:Devices.Enable": "Devices.Enable";
30
+ readonly "trellis.auth@v1:rpc:Devices.List": "Devices.List";
31
+ readonly "trellis.auth@v1:rpc:Devices.Provision": "Devices.Provision";
32
+ readonly "trellis.auth@v1:rpc:Devices.Remove": "Devices.Remove";
33
+ readonly "trellis.auth@v1:rpc:Grants.Get": "Grants.Get";
34
+ readonly "trellis.auth@v1:rpc:Grants.List": "Grants.List";
35
+ readonly "trellis.auth@v1:rpc:Grants.Revoke": "Grants.Revoke";
36
+ readonly "trellis.auth@v1:rpc:Grants.Set": "Grants.Set";
37
+ readonly "trellis.auth@v1:rpc:Issuers.Revoke": "Issuers.Revoke";
38
+ readonly "trellis.auth@v1:rpc:Participants.Get": "Participants.Get";
39
+ readonly "trellis.auth@v1:rpc:Participants.Install": "Participants.Install";
40
+ readonly "trellis.auth@v1:rpc:Participants.List": "Participants.List";
41
+ readonly "trellis.auth@v1:rpc:Portals.Get": "Portals.Get";
42
+ readonly "trellis.auth@v1:rpc:Portals.GrantOverrides.List": "Portals.GrantOverrides.List";
43
+ readonly "trellis.auth@v1:rpc:Portals.GrantOverrides.Put": "Portals.GrantOverrides.Put";
44
+ readonly "trellis.auth@v1:rpc:Portals.GrantOverrides.Remove": "Portals.GrantOverrides.Remove";
45
+ readonly "trellis.auth@v1:rpc:Portals.List": "Portals.List";
46
+ readonly "trellis.auth@v1:rpc:Portals.LoginSettings.Get": "Portals.LoginSettings.Get";
47
+ readonly "trellis.auth@v1:rpc:Portals.LoginSettings.Update": "Portals.LoginSettings.Update";
48
+ readonly "trellis.auth@v1:rpc:Portals.Put": "Portals.Put";
49
+ readonly "trellis.auth@v1:rpc:Portals.Remove": "Portals.Remove";
50
+ readonly "trellis.auth@v1:rpc:Portals.Routes.Put": "Portals.Routes.Put";
51
+ readonly "trellis.auth@v1:rpc:Portals.Routes.Remove": "Portals.Routes.Remove";
52
+ readonly "trellis.auth@v1:rpc:ServiceInstances.Disable": "ServiceInstances.Disable";
53
+ readonly "trellis.auth@v1:rpc:ServiceInstances.Enable": "ServiceInstances.Enable";
54
+ readonly "trellis.auth@v1:rpc:ServiceInstances.List": "ServiceInstances.List";
55
+ readonly "trellis.auth@v1:rpc:ServiceInstances.Provision": "ServiceInstances.Provision";
56
+ readonly "trellis.auth@v1:rpc:ServiceInstances.Remove": "ServiceInstances.Remove";
57
+ readonly "trellis.auth@v1:rpc:Sessions.List": "Sessions.List";
58
+ readonly "trellis.auth@v1:rpc:Sessions.Logout": "Sessions.Logout";
59
+ readonly "trellis.auth@v1:rpc:Sessions.Me": "Sessions.Me";
60
+ readonly "trellis.auth@v1:rpc:Sessions.Revoke": "Sessions.Revoke";
61
+ readonly "trellis.auth@v1:rpc:UserIdentities.List": "UserIdentities.List";
62
+ readonly "trellis.auth@v1:rpc:UserIdentities.Unlink": "UserIdentities.Unlink";
63
+ readonly "trellis.auth@v1:rpc:Users.Create": "Users.Create";
64
+ readonly "trellis.auth@v1:rpc:Users.Get": "Users.Get";
65
+ readonly "trellis.auth@v1:rpc:Users.IdentityLink.Create": "Users.IdentityLink.Create";
66
+ readonly "trellis.auth@v1:rpc:Users.List": "Users.List";
67
+ readonly "trellis.auth@v1:rpc:Users.Password.Change": "Users.Password.Change";
68
+ readonly "trellis.auth@v1:rpc:Users.PasswordReset.Create": "Users.PasswordReset.Create";
69
+ readonly "trellis.auth@v1:rpc:Users.Resolve": "Users.Resolve";
70
+ readonly "trellis.auth@v1:rpc:Users.Update": "Users.Update";
71
+ readonly "trellis.auth@v1:operation:DeviceUserAuthorities.Resolve": "DeviceUserAuthorities.Resolve";
72
+ readonly "trellis.auth@v1:event:Connections.Closed": "Connections.Closed";
73
+ readonly "trellis.auth@v1:event:Connections.Kicked": "Connections.Kicked";
74
+ readonly "trellis.auth@v1:event:Connections.Opened": "Connections.Opened";
75
+ readonly "trellis.auth@v1:event:DeviceUserAuthorities.Approved": "DeviceUserAuthorities.Approved";
76
+ readonly "trellis.auth@v1:event:DeviceUserAuthorities.Requested": "DeviceUserAuthorities.Requested";
77
+ readonly "trellis.auth@v1:event:DeviceUserAuthorities.Resolved": "DeviceUserAuthorities.Resolved";
78
+ readonly "trellis.auth@v1:event:DeviceUserAuthorities.ReviewRequested": "DeviceUserAuthorities.ReviewRequested";
79
+ readonly "trellis.auth@v1:event:Grants.Changed": "Grants.Changed";
80
+ readonly "trellis.auth@v1:event:Issuers.Revoked": "Issuers.Revoked";
81
+ readonly "trellis.auth@v1:event:Sessions.Revoked": "Sessions.Revoked";
82
+ readonly "trellis.core@v1:rpc:Resources.Destroy": "Resources.Destroy";
83
+ readonly "trellis.core@v1:rpc:Resources.Inspect": "core.Resources.Inspect";
84
+ readonly "trellis.core@v1:rpc:Resources.Query": "core.Resources.Query";
85
+ readonly "trellis.core@v1:rpc:Surface.Status": "Surface.Status";
86
+ readonly "trellis.state@v1:rpc:Delete": "Delete";
87
+ readonly "trellis.state@v1:rpc:Get": "Get";
88
+ readonly "trellis.state@v1:rpc:Put": "Put";
89
+ readonly "trellis.state@v1:rpc:Resources.Inspect": "state.Resources.Inspect";
90
+ readonly "trellis.state@v1:rpc:Resources.Query": "state.Resources.Query";
91
+ };
92
+ type __Resources = {
93
+ readonly browserFlows: {
94
+ readonly kind: "kv";
95
+ readonly availability: "required";
96
+ readonly codec: typeof Types0.AuthBrowserFlowCodec;
97
+ readonly version: 1;
98
+ readonly migrations: {};
99
+ };
100
+ readonly connections: {
101
+ readonly kind: "kv";
102
+ readonly availability: "required";
103
+ readonly codec: typeof Types0.AuthConnectionPresenceCodec;
104
+ readonly version: 1;
105
+ readonly migrations: {};
106
+ };
107
+ readonly oauthStates: {
108
+ readonly kind: "kv";
109
+ readonly availability: "required";
110
+ readonly codec: typeof Types0.AuthOAuthStateCodec;
111
+ readonly version: 1;
112
+ readonly migrations: {};
113
+ };
114
+ };
115
+ declare const __participant: {
116
+ readonly kind: "service";
117
+ readonly id: "trellis.platform";
118
+ readonly identity: "trellis.platform";
119
+ readonly path: "platform";
120
+ readonly implements: readonly [typeof Api0.API, typeof Api1.API, typeof Api2.API];
121
+ readonly uses: readonly [];
122
+ readonly actionNames: __ActionNames;
123
+ readonly resources: __Resources;
124
+ readonly __runtimeTypes?: {
125
+ readonly ownedApi: RuntimeApiFromGenerated<typeof Api0.API | typeof Api1.API | typeof Api2.API, __ActionNames>;
126
+ readonly api: RuntimeApiFromGenerated<typeof Api0.API | typeof Api1.API | typeof Api2.API, __ActionNames>;
127
+ readonly jobs: ParticipantJobsFromResources<__Resources>;
128
+ readonly kv: ParticipantKvFromResources<__Resources>;
129
+ };
130
+ readonly packageEvidence: unknown;
131
+ };
132
+ export declare const participant: {
133
+ readonly kind: typeof __participant.kind;
134
+ readonly id: typeof __participant.id;
135
+ readonly identity: typeof __participant.identity;
136
+ readonly path: typeof __participant.path;
137
+ readonly implements: typeof __participant.implements;
138
+ readonly uses: typeof __participant.uses;
139
+ readonly actionNames: typeof __participant.actionNames;
140
+ readonly resources: typeof __participant.resources;
141
+ readonly __runtimeTypes?: typeof __participant.__runtimeTypes;
142
+ readonly packageEvidence: unknown;
143
+ };
144
+ export declare const PARTICIPANT_DIGEST: "NfpCYy0dNnkwKTt7jyjVFshTVB68Vr1nY_GVgNhQslY";
145
+ export type Participant = typeof participant;
146
+ export type ResourceDescriptors = typeof participant.resources;
147
+ export type BrowserFlowsResource = ResourceDescriptors["browserFlows"];
148
+ export type BrowserFlowsHandle<Handle> = Handle;
149
+ export type ConnectionsResource = ResourceDescriptors["connections"];
150
+ export type ConnectionsHandle<Handle> = Handle;
151
+ export type OauthStatesResource = ResourceDescriptors["oauthStates"];
152
+ export type OauthStatesHandle<Handle> = Handle;
153
+ export type ResourceHandles<Handles extends { readonly [Name in keyof ResourceDescriptors] : unknown }> = { readonly [Name in keyof ResourceDescriptors as ResourceDescriptors[Name]["availability"] extends "required" ? Name : never] : Handles[Name] } & { readonly [Name in keyof ResourceDescriptors as ResourceDescriptors[Name]["availability"] extends "optional" ? Name : never] : Handles[Name] | undefined };
154
+ export type Availability = Readonly<{
155
+ resources: Readonly<{}>;
156
+ capabilities: Readonly<{}>;
157
+ }>;
158
+ export type ParticipantFacade<Handles extends { readonly [Name in keyof ResourceDescriptors] : unknown }> = Readonly<{
159
+ participant: Participant;
160
+ resources: ResourceHandles<Handles>;
161
+ availability(): Availability;
162
+ watchAvailability(): AsyncIterable<Availability>;
163
+ }>;
164
+ export default participant;