@qlever-llc/trellis 0.6.0 → 0.7.0-rc.2

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 (254) hide show
  1. package/README.md +6 -2
  2. package/esm/auth/device_activation.d.ts +194 -0
  3. package/esm/auth/device_activation.d.ts.map +1 -0
  4. package/esm/auth/{workload_activation.js → device_activation.js} +85 -60
  5. package/esm/auth/mod.d.ts +2 -2
  6. package/esm/auth/mod.d.ts.map +1 -1
  7. package/esm/auth/mod.js +2 -2
  8. package/esm/auth/protocol.d.ts +175 -72
  9. package/esm/auth/protocol.d.ts.map +1 -1
  10. package/esm/auth/protocol.js +126 -78
  11. package/esm/contracts/mod.d.ts +22 -2
  12. package/esm/contracts/mod.d.ts.map +1 -1
  13. package/esm/contracts/mod.js +30 -4
  14. package/esm/contracts/protocol.d.ts +34 -0
  15. package/esm/contracts/protocol.d.ts.map +1 -1
  16. package/esm/contracts/protocol.js +15 -0
  17. package/esm/server/deno.d.ts +1 -6
  18. package/esm/server/deno.d.ts.map +1 -1
  19. package/esm/server/deno.js +1 -16
  20. package/esm/server/mod.d.ts +3 -2
  21. package/esm/server/mod.d.ts.map +1 -1
  22. package/esm/server/mod.js +2 -2
  23. package/esm/server/node.d.ts +1 -6
  24. package/esm/server/node.d.ts.map +1 -1
  25. package/esm/server/node.js +1 -16
  26. package/esm/server/service.d.ts +32 -10
  27. package/esm/server/service.d.ts.map +1 -1
  28. package/esm/server/service.js +188 -41
  29. package/esm/server/transfer.d.ts +41 -0
  30. package/esm/server/transfer.d.ts.map +1 -0
  31. package/esm/server/transfer.js +418 -0
  32. package/esm/telemetry/init.d.ts +4 -0
  33. package/esm/telemetry/init.d.ts.map +1 -0
  34. package/esm/telemetry/init.js +7 -0
  35. package/esm/telemetry/mod.d.ts +1 -2
  36. package/esm/telemetry/mod.d.ts.map +1 -1
  37. package/esm/telemetry/mod.js +1 -2
  38. package/esm/telemetry/runtime.d.ts.map +1 -1
  39. package/esm/telemetry/runtime.js +9 -5
  40. package/esm/telemetry/trellis.d.ts +0 -1
  41. package/esm/telemetry/trellis.d.ts.map +1 -1
  42. package/esm/telemetry/trellis.js +0 -6
  43. package/esm/trellis/_sdk/activity/contract.d.ts +1 -1
  44. package/esm/trellis/_sdk/activity/contract.d.ts.map +1 -1
  45. package/esm/trellis/_sdk/activity/contract.js +2 -2
  46. package/esm/trellis/_sdk/activity/types.d.ts +1 -1
  47. package/esm/trellis/_sdk/activity/types.js +1 -1
  48. package/esm/trellis/_sdk/auth/api.d.ts.map +1 -1
  49. package/esm/trellis/_sdk/auth/api.js +132 -110
  50. package/esm/trellis/_sdk/auth/contract.d.ts +1 -1
  51. package/esm/trellis/_sdk/auth/contract.d.ts.map +1 -1
  52. package/esm/trellis/_sdk/auth/contract.js +2 -2
  53. package/esm/trellis/_sdk/auth/schemas.d.ts +4212 -3069
  54. package/esm/trellis/_sdk/auth/schemas.d.ts.map +1 -1
  55. package/esm/trellis/_sdk/auth/schemas.js +144 -125
  56. package/esm/trellis/_sdk/auth/types.d.ts +417 -267
  57. package/esm/trellis/_sdk/auth/types.d.ts.map +1 -1
  58. package/esm/trellis/_sdk/auth/types.js +1 -1
  59. package/esm/trellis/_sdk/core/contract.d.ts +1 -1
  60. package/esm/trellis/_sdk/core/contract.d.ts.map +1 -1
  61. package/esm/trellis/_sdk/core/contract.js +2 -2
  62. package/esm/trellis/_sdk/core/schemas.d.ts +122 -0
  63. package/esm/trellis/_sdk/core/schemas.d.ts.map +1 -1
  64. package/esm/trellis/_sdk/core/schemas.js +4 -4
  65. package/esm/trellis/_sdk/core/types.d.ts +18 -1
  66. package/esm/trellis/_sdk/core/types.d.ts.map +1 -1
  67. package/esm/trellis/_sdk/core/types.js +1 -1
  68. package/esm/trellis/_sdk/state/_dnt.polyfills.d.ts +12 -0
  69. package/esm/trellis/_sdk/state/_dnt.polyfills.d.ts.map +1 -0
  70. package/esm/trellis/_sdk/state/_dnt.polyfills.js +15 -0
  71. package/esm/trellis/_sdk/state/api.d.ts +10 -0
  72. package/esm/trellis/_sdk/state/api.d.ts.map +1 -0
  73. package/esm/trellis/_sdk/state/api.js +71 -0
  74. package/esm/trellis/_sdk/state/contract.d.ts +8 -0
  75. package/esm/trellis/_sdk/state/contract.d.ts.map +1 -0
  76. package/esm/trellis/_sdk/state/contract.js +59 -0
  77. package/esm/trellis/_sdk/state/mod.d.ts +7 -0
  78. package/esm/trellis/_sdk/state/mod.d.ts.map +1 -0
  79. package/esm/trellis/_sdk/state/mod.js +5 -0
  80. package/esm/trellis/_sdk/state/package.json +3 -0
  81. package/esm/trellis/_sdk/state/schemas.d.ts +1437 -0
  82. package/esm/trellis/_sdk/state/schemas.d.ts.map +1 -0
  83. package/esm/trellis/_sdk/state/schemas.js +62 -0
  84. package/esm/trellis/_sdk/state/types.d.ts +206 -0
  85. package/esm/trellis/_sdk/state/types.d.ts.map +1 -0
  86. package/esm/trellis/_sdk/state/types.js +3 -0
  87. package/esm/trellis/client_connect.d.ts +53 -0
  88. package/esm/trellis/client_connect.d.ts.map +1 -0
  89. package/esm/trellis/client_connect.js +300 -0
  90. package/esm/trellis/contract.d.ts +1 -7
  91. package/esm/trellis/contract.d.ts.map +1 -1
  92. package/esm/trellis/contract.js +1 -12
  93. package/esm/trellis/device.d.ts +41 -0
  94. package/esm/trellis/device.d.ts.map +1 -0
  95. package/esm/trellis/device.js +209 -0
  96. package/esm/trellis/errors/AuthError.d.ts +1 -1
  97. package/esm/trellis/errors/AuthError.js +9 -9
  98. package/esm/trellis/errors/StoreError.d.ts +22 -0
  99. package/esm/trellis/errors/StoreError.d.ts.map +1 -0
  100. package/esm/trellis/errors/StoreError.js +41 -0
  101. package/esm/trellis/errors/TransferError.d.ts +22 -0
  102. package/esm/trellis/errors/TransferError.d.ts.map +1 -0
  103. package/esm/trellis/errors/TransferError.js +41 -0
  104. package/esm/trellis/errors/index.d.ts +8 -0
  105. package/esm/trellis/errors/index.d.ts.map +1 -1
  106. package/esm/trellis/errors/index.js +8 -0
  107. package/esm/trellis/index.d.ts +10 -4
  108. package/esm/trellis/index.d.ts.map +1 -1
  109. package/esm/trellis/index.js +6 -4
  110. package/esm/trellis/kv.d.ts +2 -0
  111. package/esm/trellis/kv.d.ts.map +1 -1
  112. package/esm/trellis/kv.js +6 -0
  113. package/esm/trellis/models/trellis/TrellisError.d.ts +15 -1
  114. package/esm/trellis/models/trellis/TrellisError.d.ts.map +1 -1
  115. package/esm/trellis/models/trellis/TrellisError.js +4 -0
  116. package/esm/trellis/runtime_transport.d.ts +12 -0
  117. package/esm/trellis/runtime_transport.d.ts.map +1 -0
  118. package/esm/trellis/runtime_transport.js +35 -0
  119. package/esm/trellis/sdk/state.d.ts +4 -0
  120. package/esm/trellis/sdk/state.d.ts.map +1 -0
  121. package/esm/trellis/sdk/state.js +3 -0
  122. package/esm/trellis/store.d.ts +51 -0
  123. package/esm/trellis/store.d.ts.map +1 -0
  124. package/esm/trellis/store.js +310 -0
  125. package/esm/trellis/tracing.js +1 -1
  126. package/esm/trellis/transfer.d.ts +118 -0
  127. package/esm/trellis/transfer.d.ts.map +1 -0
  128. package/esm/trellis/transfer.js +357 -0
  129. package/esm/trellis/trellis.d.ts +3 -0
  130. package/esm/trellis/trellis.d.ts.map +1 -1
  131. package/esm/trellis/trellis.js +48 -17
  132. package/package.json +8 -3
  133. package/script/auth/device_activation.d.ts +194 -0
  134. package/script/auth/device_activation.d.ts.map +1 -0
  135. package/script/auth/{workload_activation.js → device_activation.js} +99 -74
  136. package/script/auth/mod.d.ts +2 -2
  137. package/script/auth/mod.d.ts.map +1 -1
  138. package/script/auth/mod.js +84 -76
  139. package/script/auth/protocol.d.ts +175 -72
  140. package/script/auth/protocol.d.ts.map +1 -1
  141. package/script/auth/protocol.js +129 -81
  142. package/script/contracts/mod.d.ts +22 -2
  143. package/script/contracts/mod.d.ts.map +1 -1
  144. package/script/contracts/mod.js +32 -4
  145. package/script/contracts/protocol.d.ts +34 -0
  146. package/script/contracts/protocol.d.ts.map +1 -1
  147. package/script/contracts/protocol.js +16 -1
  148. package/script/telemetry/init.d.ts +4 -0
  149. package/script/telemetry/init.d.ts.map +1 -0
  150. package/script/telemetry/init.js +11 -0
  151. package/script/telemetry/mod.d.ts +1 -2
  152. package/script/telemetry/mod.d.ts.map +1 -1
  153. package/script/telemetry/mod.js +1 -4
  154. package/script/telemetry/runtime.d.ts.map +1 -1
  155. package/script/telemetry/runtime.js +9 -28
  156. package/script/telemetry/trellis.d.ts +0 -1
  157. package/script/telemetry/trellis.d.ts.map +1 -1
  158. package/script/telemetry/trellis.js +0 -7
  159. package/script/trellis/_sdk/activity/contract.d.ts +1 -1
  160. package/script/trellis/_sdk/activity/contract.d.ts.map +1 -1
  161. package/script/trellis/_sdk/activity/contract.js +2 -2
  162. package/script/trellis/_sdk/activity/types.d.ts +1 -1
  163. package/script/trellis/_sdk/activity/types.js +1 -1
  164. package/script/trellis/_sdk/auth/api.d.ts.map +1 -1
  165. package/script/trellis/_sdk/auth/api.js +132 -110
  166. package/script/trellis/_sdk/auth/contract.d.ts +1 -1
  167. package/script/trellis/_sdk/auth/contract.d.ts.map +1 -1
  168. package/script/trellis/_sdk/auth/contract.js +2 -2
  169. package/script/trellis/_sdk/auth/schemas.d.ts +4212 -3069
  170. package/script/trellis/_sdk/auth/schemas.d.ts.map +1 -1
  171. package/script/trellis/_sdk/auth/schemas.js +144 -125
  172. package/script/trellis/_sdk/auth/types.d.ts +417 -267
  173. package/script/trellis/_sdk/auth/types.d.ts.map +1 -1
  174. package/script/trellis/_sdk/auth/types.js +1 -1
  175. package/script/trellis/_sdk/core/contract.d.ts +1 -1
  176. package/script/trellis/_sdk/core/contract.d.ts.map +1 -1
  177. package/script/trellis/_sdk/core/contract.js +2 -2
  178. package/script/trellis/_sdk/core/schemas.d.ts +122 -0
  179. package/script/trellis/_sdk/core/schemas.d.ts.map +1 -1
  180. package/script/trellis/_sdk/core/schemas.js +4 -4
  181. package/script/trellis/_sdk/core/types.d.ts +18 -1
  182. package/script/trellis/_sdk/core/types.d.ts.map +1 -1
  183. package/script/trellis/_sdk/core/types.js +1 -1
  184. package/script/trellis/_sdk/state/_dnt.polyfills.d.ts +12 -0
  185. package/script/trellis/_sdk/state/_dnt.polyfills.d.ts.map +1 -0
  186. package/script/trellis/_sdk/state/_dnt.polyfills.js +16 -0
  187. package/script/trellis/_sdk/state/api.d.ts +10 -0
  188. package/script/trellis/_sdk/state/api.d.ts.map +1 -0
  189. package/script/trellis/_sdk/state/api.js +74 -0
  190. package/script/trellis/_sdk/state/contract.d.ts +8 -0
  191. package/script/trellis/_sdk/state/contract.d.ts.map +1 -0
  192. package/script/trellis/_sdk/state/contract.js +62 -0
  193. package/script/trellis/_sdk/state/mod.d.ts +7 -0
  194. package/script/trellis/_sdk/state/mod.d.ts.map +1 -0
  195. package/script/trellis/_sdk/state/mod.js +30 -0
  196. package/script/trellis/_sdk/state/package.json +3 -0
  197. package/script/trellis/_sdk/state/schemas.d.ts +1437 -0
  198. package/script/trellis/_sdk/state/schemas.d.ts.map +1 -0
  199. package/script/trellis/_sdk/state/schemas.js +65 -0
  200. package/script/trellis/_sdk/state/types.d.ts +206 -0
  201. package/script/trellis/_sdk/state/types.d.ts.map +1 -0
  202. package/script/trellis/_sdk/state/types.js +6 -0
  203. package/script/trellis/client_connect.d.ts +53 -0
  204. package/script/trellis/client_connect.d.ts.map +1 -0
  205. package/script/trellis/client_connect.js +304 -0
  206. package/script/trellis/contract.d.ts +1 -7
  207. package/script/trellis/contract.d.ts.map +1 -1
  208. package/script/trellis/contract.js +1 -12
  209. package/script/trellis/device.d.ts +41 -0
  210. package/script/trellis/device.d.ts.map +1 -0
  211. package/script/trellis/device.js +213 -0
  212. package/script/trellis/errors/AuthError.d.ts +1 -1
  213. package/script/trellis/errors/AuthError.js +9 -9
  214. package/script/trellis/errors/StoreError.d.ts +22 -0
  215. package/script/trellis/errors/StoreError.d.ts.map +1 -0
  216. package/script/trellis/errors/StoreError.js +48 -0
  217. package/script/trellis/errors/TransferError.d.ts +22 -0
  218. package/script/trellis/errors/TransferError.d.ts.map +1 -0
  219. package/script/trellis/errors/TransferError.js +48 -0
  220. package/script/trellis/errors/index.d.ts +8 -0
  221. package/script/trellis/errors/index.d.ts.map +1 -1
  222. package/script/trellis/errors/index.js +13 -1
  223. package/script/trellis/index.d.ts +10 -4
  224. package/script/trellis/index.d.ts.map +1 -1
  225. package/script/trellis/index.js +17 -6
  226. package/script/trellis/kv.d.ts +2 -0
  227. package/script/trellis/kv.d.ts.map +1 -1
  228. package/script/trellis/kv.js +6 -0
  229. package/script/trellis/models/trellis/TrellisError.d.ts +15 -1
  230. package/script/trellis/models/trellis/TrellisError.d.ts.map +1 -1
  231. package/script/trellis/models/trellis/TrellisError.js +4 -0
  232. package/script/trellis/runtime_transport.d.ts +12 -0
  233. package/script/trellis/runtime_transport.d.ts.map +1 -0
  234. package/script/trellis/runtime_transport.js +37 -0
  235. package/script/trellis/store.d.ts +51 -0
  236. package/script/trellis/store.d.ts.map +1 -0
  237. package/script/trellis/store.js +316 -0
  238. package/script/trellis/tracing.js +1 -1
  239. package/script/trellis/transfer.d.ts +118 -0
  240. package/script/trellis/transfer.d.ts.map +1 -0
  241. package/script/trellis/transfer.js +367 -0
  242. package/script/trellis/trellis.d.ts +3 -0
  243. package/script/trellis/trellis.d.ts.map +1 -1
  244. package/script/trellis/trellis.js +48 -17
  245. package/esm/auth/workload_activation.d.ts +0 -192
  246. package/esm/auth/workload_activation.d.ts.map +0 -1
  247. package/esm/trellis/workload.d.ts +0 -45
  248. package/esm/trellis/workload.d.ts.map +0 -1
  249. package/esm/trellis/workload.js +0 -144
  250. package/script/auth/workload_activation.d.ts +0 -192
  251. package/script/auth/workload_activation.d.ts.map +0 -1
  252. package/script/trellis/workload.d.ts +0 -45
  253. package/script/trellis/workload.d.ts.map +0 -1
  254. package/script/trellis/workload.js +0 -172
@@ -2,13 +2,20 @@ import { schema } from "../../../contracts/mod.js";
2
2
  import { SCHEMAS } from "./schemas.js";
3
3
  export const OWNED_API = {
4
4
  rpc: {
5
- "Auth.ActivateWorkload": {
6
- subject: "rpc.v1.Auth.ActivateWorkload",
7
- input: schema(SCHEMAS.rpc["Auth.ActivateWorkload"].input),
8
- output: schema(SCHEMAS.rpc["Auth.ActivateWorkload"].output),
5
+ "Auth.ActivateDevice": {
6
+ subject: "rpc.v1.Auth.ActivateDevice",
7
+ input: schema(SCHEMAS.rpc["Auth.ActivateDevice"].input),
8
+ output: schema(SCHEMAS.rpc["Auth.ActivateDevice"].output),
9
9
  callerCapabilities: [],
10
10
  errors: ["AuthError", "ValidationError", "UnexpectedError"],
11
11
  },
12
+ "Auth.ClearDevicePortalSelection": {
13
+ subject: "rpc.v1.Auth.ClearDevicePortalSelection",
14
+ input: schema(SCHEMAS.rpc["Auth.ClearDevicePortalSelection"].input),
15
+ output: schema(SCHEMAS.rpc["Auth.ClearDevicePortalSelection"].output),
16
+ callerCapabilities: ["admin"],
17
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
18
+ },
12
19
  "Auth.ClearLoginPortalSelection": {
13
20
  subject: "rpc.v1.Auth.ClearLoginPortalSelection",
14
21
  input: schema(SCHEMAS.rpc["Auth.ClearLoginPortalSelection"].input),
@@ -16,10 +23,10 @@ export const OWNED_API = {
16
23
  callerCapabilities: ["admin"],
17
24
  errors: ["AuthError", "ValidationError", "UnexpectedError"],
18
25
  },
19
- "Auth.ClearWorkloadPortalSelection": {
20
- subject: "rpc.v1.Auth.ClearWorkloadPortalSelection",
21
- input: schema(SCHEMAS.rpc["Auth.ClearWorkloadPortalSelection"].input),
22
- output: schema(SCHEMAS.rpc["Auth.ClearWorkloadPortalSelection"].output),
26
+ "Auth.CreateDeviceProfile": {
27
+ subject: "rpc.v1.Auth.CreateDeviceProfile",
28
+ input: schema(SCHEMAS.rpc["Auth.CreateDeviceProfile"].input),
29
+ output: schema(SCHEMAS.rpc["Auth.CreateDeviceProfile"].output),
23
30
  callerCapabilities: ["admin"],
24
31
  errors: ["AuthError", "ValidationError", "UnexpectedError"],
25
32
  },
@@ -30,18 +37,32 @@ export const OWNED_API = {
30
37
  callerCapabilities: ["admin"],
31
38
  errors: ["AuthError", "ValidationError", "UnexpectedError"],
32
39
  },
33
- "Auth.CreateWorkloadProfile": {
34
- subject: "rpc.v1.Auth.CreateWorkloadProfile",
35
- input: schema(SCHEMAS.rpc["Auth.CreateWorkloadProfile"].input),
36
- output: schema(SCHEMAS.rpc["Auth.CreateWorkloadProfile"].output),
40
+ "Auth.DecideDeviceActivationReview": {
41
+ subject: "rpc.v1.Auth.DecideDeviceActivationReview",
42
+ input: schema(SCHEMAS.rpc["Auth.DecideDeviceActivationReview"].input),
43
+ output: schema(SCHEMAS.rpc["Auth.DecideDeviceActivationReview"].output),
44
+ callerCapabilities: ["admin", "device.review"],
45
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
46
+ },
47
+ "Auth.DisableDeviceInstance": {
48
+ subject: "rpc.v1.Auth.DisableDeviceInstance",
49
+ input: schema(SCHEMAS.rpc["Auth.DisableDeviceInstance"].input),
50
+ output: schema(SCHEMAS.rpc["Auth.DisableDeviceInstance"].output),
51
+ callerCapabilities: ["admin"],
52
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
53
+ },
54
+ "Auth.DisableDeviceProfile": {
55
+ subject: "rpc.v1.Auth.DisableDeviceProfile",
56
+ input: schema(SCHEMAS.rpc["Auth.DisableDeviceProfile"].input),
57
+ output: schema(SCHEMAS.rpc["Auth.DisableDeviceProfile"].output),
37
58
  callerCapabilities: ["admin"],
38
59
  errors: ["AuthError", "ValidationError", "UnexpectedError"],
39
60
  },
40
- "Auth.DecideWorkloadActivationReview": {
41
- subject: "rpc.v1.Auth.DecideWorkloadActivationReview",
42
- input: schema(SCHEMAS.rpc["Auth.DecideWorkloadActivationReview"].input),
43
- output: schema(SCHEMAS.rpc["Auth.DecideWorkloadActivationReview"].output),
44
- callerCapabilities: ["admin", "workload.review"],
61
+ "Auth.DisableInstanceGrantPolicy": {
62
+ subject: "rpc.v1.Auth.DisableInstanceGrantPolicy",
63
+ input: schema(SCHEMAS.rpc["Auth.DisableInstanceGrantPolicy"].input),
64
+ output: schema(SCHEMAS.rpc["Auth.DisableInstanceGrantPolicy"].output),
65
+ callerCapabilities: ["admin"],
45
66
  errors: ["AuthError", "ValidationError", "UnexpectedError"],
46
67
  },
47
68
  "Auth.DisablePortal": {
@@ -51,17 +72,24 @@ export const OWNED_API = {
51
72
  callerCapabilities: ["admin"],
52
73
  errors: ["AuthError", "ValidationError", "UnexpectedError"],
53
74
  },
54
- "Auth.DisableWorkloadInstance": {
55
- subject: "rpc.v1.Auth.DisableWorkloadInstance",
56
- input: schema(SCHEMAS.rpc["Auth.DisableWorkloadInstance"].input),
57
- output: schema(SCHEMAS.rpc["Auth.DisableWorkloadInstance"].output),
58
- callerCapabilities: ["admin"],
75
+ "Auth.GetDeviceActivationStatus": {
76
+ subject: "rpc.v1.Auth.GetDeviceActivationStatus",
77
+ input: schema(SCHEMAS.rpc["Auth.GetDeviceActivationStatus"].input),
78
+ output: schema(SCHEMAS.rpc["Auth.GetDeviceActivationStatus"].output),
79
+ callerCapabilities: [],
59
80
  errors: ["AuthError", "ValidationError", "UnexpectedError"],
60
81
  },
61
- "Auth.DisableWorkloadProfile": {
62
- subject: "rpc.v1.Auth.DisableWorkloadProfile",
63
- input: schema(SCHEMAS.rpc["Auth.DisableWorkloadProfile"].input),
64
- output: schema(SCHEMAS.rpc["Auth.DisableWorkloadProfile"].output),
82
+ "Auth.GetDeviceConnectInfo": {
83
+ subject: "rpc.v1.Auth.GetDeviceConnectInfo",
84
+ input: schema(SCHEMAS.rpc["Auth.GetDeviceConnectInfo"].input),
85
+ output: schema(SCHEMAS.rpc["Auth.GetDeviceConnectInfo"].output),
86
+ callerCapabilities: [],
87
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
88
+ },
89
+ "Auth.GetDevicePortalDefault": {
90
+ subject: "rpc.v1.Auth.GetDevicePortalDefault",
91
+ input: schema(SCHEMAS.rpc["Auth.GetDevicePortalDefault"].input),
92
+ output: schema(SCHEMAS.rpc["Auth.GetDevicePortalDefault"].output),
65
93
  callerCapabilities: ["admin"],
66
94
  errors: ["AuthError", "ValidationError", "UnexpectedError"],
67
95
  },
@@ -79,27 +107,6 @@ export const OWNED_API = {
79
107
  callerCapabilities: ["admin"],
80
108
  errors: ["AuthError", "ValidationError", "UnexpectedError"],
81
109
  },
82
- "Auth.GetWorkloadActivationStatus": {
83
- subject: "rpc.v1.Auth.GetWorkloadActivationStatus",
84
- input: schema(SCHEMAS.rpc["Auth.GetWorkloadActivationStatus"].input),
85
- output: schema(SCHEMAS.rpc["Auth.GetWorkloadActivationStatus"].output),
86
- callerCapabilities: [],
87
- errors: ["AuthError", "ValidationError", "UnexpectedError"],
88
- },
89
- "Auth.GetWorkloadConnectInfo": {
90
- subject: "rpc.v1.Auth.GetWorkloadConnectInfo",
91
- input: schema(SCHEMAS.rpc["Auth.GetWorkloadConnectInfo"].input),
92
- output: schema(SCHEMAS.rpc["Auth.GetWorkloadConnectInfo"].output),
93
- callerCapabilities: [],
94
- errors: ["AuthError", "ValidationError", "UnexpectedError"],
95
- },
96
- "Auth.GetWorkloadPortalDefault": {
97
- subject: "rpc.v1.Auth.GetWorkloadPortalDefault",
98
- input: schema(SCHEMAS.rpc["Auth.GetWorkloadPortalDefault"].input),
99
- output: schema(SCHEMAS.rpc["Auth.GetWorkloadPortalDefault"].output),
100
- callerCapabilities: ["admin"],
101
- errors: ["AuthError", "ValidationError", "UnexpectedError"],
102
- },
103
110
  "Auth.Health": {
104
111
  subject: "rpc.v1.Auth.Health",
105
112
  input: schema(SCHEMAS.rpc["Auth.Health"].input),
@@ -135,6 +142,41 @@ export const OWNED_API = {
135
142
  callerCapabilities: ["admin"],
136
143
  errors: ["AuthError", "ValidationError", "UnexpectedError"],
137
144
  },
145
+ "Auth.ListDeviceActivationReviews": {
146
+ subject: "rpc.v1.Auth.ListDeviceActivationReviews",
147
+ input: schema(SCHEMAS.rpc["Auth.ListDeviceActivationReviews"].input),
148
+ output: schema(SCHEMAS.rpc["Auth.ListDeviceActivationReviews"].output),
149
+ callerCapabilities: ["admin"],
150
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
151
+ },
152
+ "Auth.ListDeviceActivations": {
153
+ subject: "rpc.v1.Auth.ListDeviceActivations",
154
+ input: schema(SCHEMAS.rpc["Auth.ListDeviceActivations"].input),
155
+ output: schema(SCHEMAS.rpc["Auth.ListDeviceActivations"].output),
156
+ callerCapabilities: ["admin"],
157
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
158
+ },
159
+ "Auth.ListDeviceInstances": {
160
+ subject: "rpc.v1.Auth.ListDeviceInstances",
161
+ input: schema(SCHEMAS.rpc["Auth.ListDeviceInstances"].input),
162
+ output: schema(SCHEMAS.rpc["Auth.ListDeviceInstances"].output),
163
+ callerCapabilities: ["admin"],
164
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
165
+ },
166
+ "Auth.ListDevicePortalSelections": {
167
+ subject: "rpc.v1.Auth.ListDevicePortalSelections",
168
+ input: schema(SCHEMAS.rpc["Auth.ListDevicePortalSelections"].input),
169
+ output: schema(SCHEMAS.rpc["Auth.ListDevicePortalSelections"].output),
170
+ callerCapabilities: ["admin"],
171
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
172
+ },
173
+ "Auth.ListDeviceProfiles": {
174
+ subject: "rpc.v1.Auth.ListDeviceProfiles",
175
+ input: schema(SCHEMAS.rpc["Auth.ListDeviceProfiles"].input),
176
+ output: schema(SCHEMAS.rpc["Auth.ListDeviceProfiles"].output),
177
+ callerCapabilities: ["admin"],
178
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
179
+ },
138
180
  "Auth.ListInstalledContracts": {
139
181
  subject: "rpc.v1.Auth.ListInstalledContracts",
140
182
  input: schema(SCHEMAS.rpc["Auth.ListInstalledContracts"].input),
@@ -142,6 +184,13 @@ export const OWNED_API = {
142
184
  callerCapabilities: ["admin"],
143
185
  errors: ["AuthError", "ValidationError", "UnexpectedError"],
144
186
  },
187
+ "Auth.ListInstanceGrantPolicies": {
188
+ subject: "rpc.v1.Auth.ListInstanceGrantPolicies",
189
+ input: schema(SCHEMAS.rpc["Auth.ListInstanceGrantPolicies"].input),
190
+ output: schema(SCHEMAS.rpc["Auth.ListInstanceGrantPolicies"].output),
191
+ callerCapabilities: ["admin"],
192
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
193
+ },
145
194
  "Auth.ListLoginPortalSelections": {
146
195
  subject: "rpc.v1.Auth.ListLoginPortalSelections",
147
196
  input: schema(SCHEMAS.rpc["Auth.ListLoginPortalSelections"].input),
@@ -177,41 +226,6 @@ export const OWNED_API = {
177
226
  callerCapabilities: ["admin"],
178
227
  errors: ["AuthError", "ValidationError", "UnexpectedError"],
179
228
  },
180
- "Auth.ListWorkloadActivationReviews": {
181
- subject: "rpc.v1.Auth.ListWorkloadActivationReviews",
182
- input: schema(SCHEMAS.rpc["Auth.ListWorkloadActivationReviews"].input),
183
- output: schema(SCHEMAS.rpc["Auth.ListWorkloadActivationReviews"].output),
184
- callerCapabilities: ["admin"],
185
- errors: ["AuthError", "ValidationError", "UnexpectedError"],
186
- },
187
- "Auth.ListWorkloadActivations": {
188
- subject: "rpc.v1.Auth.ListWorkloadActivations",
189
- input: schema(SCHEMAS.rpc["Auth.ListWorkloadActivations"].input),
190
- output: schema(SCHEMAS.rpc["Auth.ListWorkloadActivations"].output),
191
- callerCapabilities: ["admin"],
192
- errors: ["AuthError", "ValidationError", "UnexpectedError"],
193
- },
194
- "Auth.ListWorkloadInstances": {
195
- subject: "rpc.v1.Auth.ListWorkloadInstances",
196
- input: schema(SCHEMAS.rpc["Auth.ListWorkloadInstances"].input),
197
- output: schema(SCHEMAS.rpc["Auth.ListWorkloadInstances"].output),
198
- callerCapabilities: ["admin"],
199
- errors: ["AuthError", "ValidationError", "UnexpectedError"],
200
- },
201
- "Auth.ListWorkloadPortalSelections": {
202
- subject: "rpc.v1.Auth.ListWorkloadPortalSelections",
203
- input: schema(SCHEMAS.rpc["Auth.ListWorkloadPortalSelections"].input),
204
- output: schema(SCHEMAS.rpc["Auth.ListWorkloadPortalSelections"].output),
205
- callerCapabilities: ["admin"],
206
- errors: ["AuthError", "ValidationError", "UnexpectedError"],
207
- },
208
- "Auth.ListWorkloadProfiles": {
209
- subject: "rpc.v1.Auth.ListWorkloadProfiles",
210
- input: schema(SCHEMAS.rpc["Auth.ListWorkloadProfiles"].input),
211
- output: schema(SCHEMAS.rpc["Auth.ListWorkloadProfiles"].output),
212
- callerCapabilities: ["admin"],
213
- errors: ["AuthError", "ValidationError", "UnexpectedError"],
214
- },
215
229
  "Auth.Logout": {
216
230
  subject: "rpc.v1.Auth.Logout",
217
231
  input: schema(SCHEMAS.rpc["Auth.Logout"].input),
@@ -226,10 +240,10 @@ export const OWNED_API = {
226
240
  callerCapabilities: [],
227
241
  errors: ["AuthError", "UnexpectedError"],
228
242
  },
229
- "Auth.ProvisionWorkloadInstance": {
230
- subject: "rpc.v1.Auth.ProvisionWorkloadInstance",
231
- input: schema(SCHEMAS.rpc["Auth.ProvisionWorkloadInstance"].input),
232
- output: schema(SCHEMAS.rpc["Auth.ProvisionWorkloadInstance"].output),
243
+ "Auth.ProvisionDeviceInstance": {
244
+ subject: "rpc.v1.Auth.ProvisionDeviceInstance",
245
+ input: schema(SCHEMAS.rpc["Auth.ProvisionDeviceInstance"].input),
246
+ output: schema(SCHEMAS.rpc["Auth.ProvisionDeviceInstance"].output),
233
247
  callerCapabilities: ["admin"],
234
248
  errors: ["AuthError", "ValidationError", "UnexpectedError"],
235
249
  },
@@ -247,6 +261,13 @@ export const OWNED_API = {
247
261
  callerCapabilities: [],
248
262
  errors: ["AuthError", "ValidationError", "UnexpectedError"],
249
263
  },
264
+ "Auth.RevokeDeviceActivation": {
265
+ subject: "rpc.v1.Auth.RevokeDeviceActivation",
266
+ input: schema(SCHEMAS.rpc["Auth.RevokeDeviceActivation"].input),
267
+ output: schema(SCHEMAS.rpc["Auth.RevokeDeviceActivation"].output),
268
+ callerCapabilities: ["admin"],
269
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
270
+ },
250
271
  "Auth.RevokeSession": {
251
272
  subject: "rpc.v1.Auth.RevokeSession",
252
273
  input: schema(SCHEMAS.rpc["Auth.RevokeSession"].input),
@@ -254,10 +275,17 @@ export const OWNED_API = {
254
275
  callerCapabilities: ["admin"],
255
276
  errors: ["AuthError", "ValidationError", "UnexpectedError"],
256
277
  },
257
- "Auth.RevokeWorkloadActivation": {
258
- subject: "rpc.v1.Auth.RevokeWorkloadActivation",
259
- input: schema(SCHEMAS.rpc["Auth.RevokeWorkloadActivation"].input),
260
- output: schema(SCHEMAS.rpc["Auth.RevokeWorkloadActivation"].output),
278
+ "Auth.SetDevicePortalDefault": {
279
+ subject: "rpc.v1.Auth.SetDevicePortalDefault",
280
+ input: schema(SCHEMAS.rpc["Auth.SetDevicePortalDefault"].input),
281
+ output: schema(SCHEMAS.rpc["Auth.SetDevicePortalDefault"].output),
282
+ callerCapabilities: ["admin"],
283
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
284
+ },
285
+ "Auth.SetDevicePortalSelection": {
286
+ subject: "rpc.v1.Auth.SetDevicePortalSelection",
287
+ input: schema(SCHEMAS.rpc["Auth.SetDevicePortalSelection"].input),
288
+ output: schema(SCHEMAS.rpc["Auth.SetDevicePortalSelection"].output),
261
289
  callerCapabilities: ["admin"],
262
290
  errors: ["AuthError", "ValidationError", "UnexpectedError"],
263
291
  },
@@ -275,20 +303,6 @@ export const OWNED_API = {
275
303
  callerCapabilities: ["admin"],
276
304
  errors: ["AuthError", "ValidationError", "UnexpectedError"],
277
305
  },
278
- "Auth.SetWorkloadPortalDefault": {
279
- subject: "rpc.v1.Auth.SetWorkloadPortalDefault",
280
- input: schema(SCHEMAS.rpc["Auth.SetWorkloadPortalDefault"].input),
281
- output: schema(SCHEMAS.rpc["Auth.SetWorkloadPortalDefault"].output),
282
- callerCapabilities: ["admin"],
283
- errors: ["AuthError", "ValidationError", "UnexpectedError"],
284
- },
285
- "Auth.SetWorkloadPortalSelection": {
286
- subject: "rpc.v1.Auth.SetWorkloadPortalSelection",
287
- input: schema(SCHEMAS.rpc["Auth.SetWorkloadPortalSelection"].input),
288
- output: schema(SCHEMAS.rpc["Auth.SetWorkloadPortalSelection"].output),
289
- callerCapabilities: ["admin"],
290
- errors: ["AuthError", "ValidationError", "UnexpectedError"],
291
- },
292
306
  "Auth.UpdateUser": {
293
307
  subject: "rpc.v1.Auth.UpdateUser",
294
308
  input: schema(SCHEMAS.rpc["Auth.UpdateUser"].input),
@@ -303,6 +317,13 @@ export const OWNED_API = {
303
317
  callerCapabilities: ["admin"],
304
318
  errors: ["AuthError", "ValidationError", "UnexpectedError"],
305
319
  },
320
+ "Auth.UpsertInstanceGrantPolicy": {
321
+ subject: "rpc.v1.Auth.UpsertInstanceGrantPolicy",
322
+ input: schema(SCHEMAS.rpc["Auth.UpsertInstanceGrantPolicy"].input),
323
+ output: schema(SCHEMAS.rpc["Auth.UpsertInstanceGrantPolicy"].output),
324
+ callerCapabilities: ["admin"],
325
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
326
+ },
306
327
  "Auth.ValidateRequest": {
307
328
  subject: "rpc.v1.Auth.ValidateRequest",
308
329
  input: schema(SCHEMAS.rpc["Auth.ValidateRequest"].input),
@@ -325,6 +346,13 @@ export const OWNED_API = {
325
346
  publishCapabilities: ["service:events:auth"],
326
347
  subscribeCapabilities: ["service:events:auth"],
327
348
  },
349
+ "Auth.DeviceActivationReviewRequested": {
350
+ subject: "events.v1.Auth.DeviceActivationReviewRequested.{/profileId}",
351
+ params: ["/profileId"],
352
+ event: schema(SCHEMAS.events["Auth.DeviceActivationReviewRequested"].event),
353
+ publishCapabilities: ["service:events:auth"],
354
+ subscribeCapabilities: ["device.review"],
355
+ },
328
356
  "Auth.Disconnect": {
329
357
  subject: "events.v1.Auth.Disconnect",
330
358
  event: schema(SCHEMAS.events["Auth.Disconnect"].event),
@@ -337,12 +365,6 @@ export const OWNED_API = {
337
365
  publishCapabilities: ["service:events:auth"],
338
366
  subscribeCapabilities: ["service:events:auth"],
339
367
  },
340
- "Auth.WorkloadActivationReviewRequested": {
341
- subject: "events.v1.Auth.WorkloadActivationReviewRequested",
342
- event: schema(SCHEMAS.events["Auth.WorkloadActivationReviewRequested"].event),
343
- publishCapabilities: ["service:events:auth"],
344
- subscribeCapabilities: ["workload.review"],
345
- },
346
368
  },
347
369
  subjects: {},
348
370
  };
@@ -1,7 +1,7 @@
1
1
  import type { ContractDependencyUse, SdkContractModule, TrellisContractV1, UseSpec } from "../../../contracts/mod.js";
2
2
  import { API } from "./api.js";
3
3
  export declare const CONTRACT_ID: "trellis.auth@v1";
4
- export declare const CONTRACT_DIGEST: "Nf__I64IhjOU59OwMTk0w6r0AuN8O9WDMmNQ-YM3oqk";
4
+ export declare const CONTRACT_DIGEST: "dBWD48FOHG2R_AEBJ12qvODGydooKoRjRsJO0y-d4hc";
5
5
  export declare const CONTRACT: TrellisContractV1;
6
6
  declare const DEFAULT_AUTH_RPC_CALL: readonly ["Auth.Me", "Auth.Logout", "Auth.RenewBindingToken"];
7
7
  type AuthOwnedApi = typeof API.owned;
@@ -1 +1 @@
1
- {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC1H,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAI/B,eAAO,MAAM,WAAW,mBAA6B,CAAC;AACtD,eAAO,MAAM,eAAe,+CAAyD,CAAC;AACtF,eAAO,MAAM,QAAQ,EAAo91E,iBAAiB,CAAC;AA2B3/1E,QAAA,MAAM,qBAAqB,+DAIjB,CAAC;AAEX,KAAK,YAAY,GAAG,OAAO,GAAG,CAAC,KA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