@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
@@ -0,0 +1,1437 @@
1
+ export declare const SCHEMAS: {
2
+ readonly schemas: {
3
+ readonly JsonValue: {};
4
+ readonly StateAdminDeleteRequest: {
5
+ readonly anyOf: readonly [{
6
+ readonly additionalProperties: false;
7
+ readonly properties: {
8
+ readonly contractId: {
9
+ readonly minLength: 1;
10
+ readonly type: "string";
11
+ };
12
+ readonly expectedRevision: {
13
+ readonly minLength: 1;
14
+ readonly type: "string";
15
+ };
16
+ readonly key: {
17
+ readonly minLength: 1;
18
+ readonly type: "string";
19
+ };
20
+ readonly scope: {
21
+ readonly const: "userApp";
22
+ readonly type: "string";
23
+ };
24
+ readonly user: {
25
+ readonly additionalProperties: false;
26
+ readonly properties: {
27
+ readonly id: {
28
+ readonly minLength: 1;
29
+ readonly type: "string";
30
+ };
31
+ readonly origin: {
32
+ readonly minLength: 1;
33
+ readonly type: "string";
34
+ };
35
+ };
36
+ readonly required: readonly ["origin", "id"];
37
+ readonly type: "object";
38
+ };
39
+ };
40
+ readonly required: readonly ["scope", "contractId", "user", "key"];
41
+ readonly type: "object";
42
+ }, {
43
+ readonly additionalProperties: false;
44
+ readonly properties: {
45
+ readonly contractId: {
46
+ readonly minLength: 1;
47
+ readonly type: "string";
48
+ };
49
+ readonly deviceId: {
50
+ readonly minLength: 1;
51
+ readonly type: "string";
52
+ };
53
+ readonly expectedRevision: {
54
+ readonly minLength: 1;
55
+ readonly type: "string";
56
+ };
57
+ readonly key: {
58
+ readonly minLength: 1;
59
+ readonly type: "string";
60
+ };
61
+ readonly scope: {
62
+ readonly const: "deviceApp";
63
+ readonly type: "string";
64
+ };
65
+ };
66
+ readonly required: readonly ["scope", "contractId", "deviceId", "key"];
67
+ readonly type: "object";
68
+ }];
69
+ };
70
+ readonly StateAdminDeleteResponse: {
71
+ readonly additionalProperties: false;
72
+ readonly properties: {
73
+ readonly deleted: {
74
+ readonly type: "boolean";
75
+ };
76
+ };
77
+ readonly required: readonly ["deleted"];
78
+ readonly type: "object";
79
+ };
80
+ readonly StateAdminGetRequest: {
81
+ readonly anyOf: readonly [{
82
+ readonly additionalProperties: false;
83
+ readonly properties: {
84
+ readonly contractId: {
85
+ readonly minLength: 1;
86
+ readonly type: "string";
87
+ };
88
+ readonly key: {
89
+ readonly minLength: 1;
90
+ readonly type: "string";
91
+ };
92
+ readonly scope: {
93
+ readonly const: "userApp";
94
+ readonly type: "string";
95
+ };
96
+ readonly user: {
97
+ readonly additionalProperties: false;
98
+ readonly properties: {
99
+ readonly id: {
100
+ readonly minLength: 1;
101
+ readonly type: "string";
102
+ };
103
+ readonly origin: {
104
+ readonly minLength: 1;
105
+ readonly type: "string";
106
+ };
107
+ };
108
+ readonly required: readonly ["origin", "id"];
109
+ readonly type: "object";
110
+ };
111
+ };
112
+ readonly required: readonly ["scope", "contractId", "user", "key"];
113
+ readonly type: "object";
114
+ }, {
115
+ readonly additionalProperties: false;
116
+ readonly properties: {
117
+ readonly contractId: {
118
+ readonly minLength: 1;
119
+ readonly type: "string";
120
+ };
121
+ readonly deviceId: {
122
+ readonly minLength: 1;
123
+ readonly type: "string";
124
+ };
125
+ readonly key: {
126
+ readonly minLength: 1;
127
+ readonly type: "string";
128
+ };
129
+ readonly scope: {
130
+ readonly const: "deviceApp";
131
+ readonly type: "string";
132
+ };
133
+ };
134
+ readonly required: readonly ["scope", "contractId", "deviceId", "key"];
135
+ readonly type: "object";
136
+ }];
137
+ };
138
+ readonly StateAdminGetResponse: {
139
+ readonly anyOf: readonly [{
140
+ readonly additionalProperties: false;
141
+ readonly properties: {
142
+ readonly found: {
143
+ readonly const: false;
144
+ readonly type: "boolean";
145
+ };
146
+ };
147
+ readonly required: readonly ["found"];
148
+ readonly type: "object";
149
+ }, {
150
+ readonly additionalProperties: false;
151
+ readonly properties: {
152
+ readonly entry: {
153
+ readonly additionalProperties: false;
154
+ readonly properties: {
155
+ readonly expiresAt: {
156
+ readonly format: "date-time";
157
+ readonly type: "string";
158
+ };
159
+ readonly key: {
160
+ readonly minLength: 1;
161
+ readonly type: "string";
162
+ };
163
+ readonly revision: {
164
+ readonly minLength: 1;
165
+ readonly type: "string";
166
+ };
167
+ readonly updatedAt: {
168
+ readonly format: "date-time";
169
+ readonly type: "string";
170
+ };
171
+ readonly value: {};
172
+ };
173
+ readonly required: readonly ["key", "value", "revision", "updatedAt"];
174
+ readonly type: "object";
175
+ };
176
+ readonly found: {
177
+ readonly const: true;
178
+ readonly type: "boolean";
179
+ };
180
+ };
181
+ readonly required: readonly ["found", "entry"];
182
+ readonly type: "object";
183
+ }];
184
+ };
185
+ readonly StateAdminListRequest: {
186
+ readonly allOf: readonly [{
187
+ readonly properties: {
188
+ readonly limit: {
189
+ readonly default: 10;
190
+ readonly minimum: 0;
191
+ readonly type: "integer";
192
+ };
193
+ readonly offset: {
194
+ readonly default: 0;
195
+ readonly minimum: 0;
196
+ readonly type: "integer";
197
+ };
198
+ };
199
+ readonly required: readonly ["offset", "limit"];
200
+ readonly type: "object";
201
+ }, {
202
+ readonly anyOf: readonly [{
203
+ readonly additionalProperties: false;
204
+ readonly properties: {
205
+ readonly contractId: {
206
+ readonly minLength: 1;
207
+ readonly type: "string";
208
+ };
209
+ readonly prefix: {
210
+ readonly minLength: 1;
211
+ readonly type: "string";
212
+ };
213
+ readonly scope: {
214
+ readonly const: "userApp";
215
+ readonly type: "string";
216
+ };
217
+ readonly user: {
218
+ readonly additionalProperties: false;
219
+ readonly properties: {
220
+ readonly id: {
221
+ readonly minLength: 1;
222
+ readonly type: "string";
223
+ };
224
+ readonly origin: {
225
+ readonly minLength: 1;
226
+ readonly type: "string";
227
+ };
228
+ };
229
+ readonly required: readonly ["origin", "id"];
230
+ readonly type: "object";
231
+ };
232
+ };
233
+ readonly required: readonly ["scope", "contractId", "user"];
234
+ readonly type: "object";
235
+ }, {
236
+ readonly additionalProperties: false;
237
+ readonly properties: {
238
+ readonly contractId: {
239
+ readonly minLength: 1;
240
+ readonly type: "string";
241
+ };
242
+ readonly deviceId: {
243
+ readonly minLength: 1;
244
+ readonly type: "string";
245
+ };
246
+ readonly prefix: {
247
+ readonly minLength: 1;
248
+ readonly type: "string";
249
+ };
250
+ readonly scope: {
251
+ readonly const: "deviceApp";
252
+ readonly type: "string";
253
+ };
254
+ };
255
+ readonly required: readonly ["scope", "contractId", "deviceId"];
256
+ readonly type: "object";
257
+ }];
258
+ }];
259
+ };
260
+ readonly StateAdminListResponse: {
261
+ readonly allOf: readonly [{
262
+ readonly properties: {
263
+ readonly count: {
264
+ readonly minimum: 0;
265
+ readonly type: "integer";
266
+ };
267
+ readonly limit: {
268
+ readonly minimum: 0;
269
+ readonly type: "integer";
270
+ };
271
+ readonly next: {
272
+ readonly minimum: 0;
273
+ readonly type: "integer";
274
+ };
275
+ readonly offset: {
276
+ readonly minimum: 0;
277
+ readonly type: "integer";
278
+ };
279
+ readonly prev: {
280
+ readonly minimum: 0;
281
+ readonly type: "integer";
282
+ };
283
+ };
284
+ readonly required: readonly ["count", "offset", "limit"];
285
+ readonly type: "object";
286
+ }, {
287
+ readonly additionalProperties: false;
288
+ readonly properties: {
289
+ readonly entries: {
290
+ readonly default: readonly [];
291
+ readonly items: {
292
+ readonly additionalProperties: false;
293
+ readonly properties: {
294
+ readonly expiresAt: {
295
+ readonly format: "date-time";
296
+ readonly type: "string";
297
+ };
298
+ readonly key: {
299
+ readonly minLength: 1;
300
+ readonly type: "string";
301
+ };
302
+ readonly revision: {
303
+ readonly minLength: 1;
304
+ readonly type: "string";
305
+ };
306
+ readonly updatedAt: {
307
+ readonly format: "date-time";
308
+ readonly type: "string";
309
+ };
310
+ readonly value: {};
311
+ };
312
+ readonly required: readonly ["key", "value", "revision", "updatedAt"];
313
+ readonly type: "object";
314
+ };
315
+ readonly type: "array";
316
+ };
317
+ };
318
+ readonly required: readonly ["entries"];
319
+ readonly type: "object";
320
+ }];
321
+ };
322
+ readonly StateCompareAndSetRequest: {
323
+ readonly additionalProperties: false;
324
+ readonly properties: {
325
+ readonly expectedRevision: {
326
+ readonly anyOf: readonly [{
327
+ readonly minLength: 1;
328
+ readonly type: "string";
329
+ }, {
330
+ readonly type: "null";
331
+ }];
332
+ };
333
+ readonly key: {
334
+ readonly minLength: 1;
335
+ readonly type: "string";
336
+ };
337
+ readonly scope: {
338
+ readonly anyOf: readonly [{
339
+ readonly const: "userApp";
340
+ readonly type: "string";
341
+ }, {
342
+ readonly const: "deviceApp";
343
+ readonly type: "string";
344
+ }];
345
+ };
346
+ readonly ttlMs: {
347
+ readonly minimum: 1;
348
+ readonly type: "integer";
349
+ };
350
+ readonly value: {};
351
+ };
352
+ readonly required: readonly ["scope", "key", "expectedRevision", "value"];
353
+ readonly type: "object";
354
+ };
355
+ readonly StateCompareAndSetResponse: {
356
+ readonly anyOf: readonly [{
357
+ readonly additionalProperties: false;
358
+ readonly properties: {
359
+ readonly applied: {
360
+ readonly const: true;
361
+ readonly type: "boolean";
362
+ };
363
+ readonly entry: {
364
+ readonly additionalProperties: false;
365
+ readonly properties: {
366
+ readonly expiresAt: {
367
+ readonly format: "date-time";
368
+ readonly type: "string";
369
+ };
370
+ readonly key: {
371
+ readonly minLength: 1;
372
+ readonly type: "string";
373
+ };
374
+ readonly revision: {
375
+ readonly minLength: 1;
376
+ readonly type: "string";
377
+ };
378
+ readonly updatedAt: {
379
+ readonly format: "date-time";
380
+ readonly type: "string";
381
+ };
382
+ readonly value: {};
383
+ };
384
+ readonly required: readonly ["key", "value", "revision", "updatedAt"];
385
+ readonly type: "object";
386
+ };
387
+ };
388
+ readonly required: readonly ["applied", "entry"];
389
+ readonly type: "object";
390
+ }, {
391
+ readonly additionalProperties: false;
392
+ readonly properties: {
393
+ readonly applied: {
394
+ readonly const: false;
395
+ readonly type: "boolean";
396
+ };
397
+ readonly entry: {
398
+ readonly additionalProperties: false;
399
+ readonly properties: {
400
+ readonly expiresAt: {
401
+ readonly format: "date-time";
402
+ readonly type: "string";
403
+ };
404
+ readonly key: {
405
+ readonly minLength: 1;
406
+ readonly type: "string";
407
+ };
408
+ readonly revision: {
409
+ readonly minLength: 1;
410
+ readonly type: "string";
411
+ };
412
+ readonly updatedAt: {
413
+ readonly format: "date-time";
414
+ readonly type: "string";
415
+ };
416
+ readonly value: {};
417
+ };
418
+ readonly required: readonly ["key", "value", "revision", "updatedAt"];
419
+ readonly type: "object";
420
+ };
421
+ readonly found: {
422
+ readonly type: "boolean";
423
+ };
424
+ };
425
+ readonly required: readonly ["applied", "found"];
426
+ readonly type: "object";
427
+ }];
428
+ };
429
+ readonly StateDeleteRequest: {
430
+ readonly additionalProperties: false;
431
+ readonly properties: {
432
+ readonly expectedRevision: {
433
+ readonly minLength: 1;
434
+ readonly type: "string";
435
+ };
436
+ readonly key: {
437
+ readonly minLength: 1;
438
+ readonly type: "string";
439
+ };
440
+ readonly scope: {
441
+ readonly anyOf: readonly [{
442
+ readonly const: "userApp";
443
+ readonly type: "string";
444
+ }, {
445
+ readonly const: "deviceApp";
446
+ readonly type: "string";
447
+ }];
448
+ };
449
+ };
450
+ readonly required: readonly ["scope", "key"];
451
+ readonly type: "object";
452
+ };
453
+ readonly StateDeleteResponse: {
454
+ readonly additionalProperties: false;
455
+ readonly properties: {
456
+ readonly deleted: {
457
+ readonly type: "boolean";
458
+ };
459
+ };
460
+ readonly required: readonly ["deleted"];
461
+ readonly type: "object";
462
+ };
463
+ readonly StateEntry: {
464
+ readonly additionalProperties: false;
465
+ readonly properties: {
466
+ readonly expiresAt: {
467
+ readonly format: "date-time";
468
+ readonly type: "string";
469
+ };
470
+ readonly key: {
471
+ readonly minLength: 1;
472
+ readonly type: "string";
473
+ };
474
+ readonly revision: {
475
+ readonly minLength: 1;
476
+ readonly type: "string";
477
+ };
478
+ readonly updatedAt: {
479
+ readonly format: "date-time";
480
+ readonly type: "string";
481
+ };
482
+ readonly value: {};
483
+ };
484
+ readonly required: readonly ["key", "value", "revision", "updatedAt"];
485
+ readonly type: "object";
486
+ };
487
+ readonly StateGetRequest: {
488
+ readonly additionalProperties: false;
489
+ readonly properties: {
490
+ readonly key: {
491
+ readonly minLength: 1;
492
+ readonly type: "string";
493
+ };
494
+ readonly scope: {
495
+ readonly anyOf: readonly [{
496
+ readonly const: "userApp";
497
+ readonly type: "string";
498
+ }, {
499
+ readonly const: "deviceApp";
500
+ readonly type: "string";
501
+ }];
502
+ };
503
+ };
504
+ readonly required: readonly ["scope", "key"];
505
+ readonly type: "object";
506
+ };
507
+ readonly StateGetResponse: {
508
+ readonly anyOf: readonly [{
509
+ readonly additionalProperties: false;
510
+ readonly properties: {
511
+ readonly found: {
512
+ readonly const: false;
513
+ readonly type: "boolean";
514
+ };
515
+ };
516
+ readonly required: readonly ["found"];
517
+ readonly type: "object";
518
+ }, {
519
+ readonly additionalProperties: false;
520
+ readonly properties: {
521
+ readonly entry: {
522
+ readonly additionalProperties: false;
523
+ readonly properties: {
524
+ readonly expiresAt: {
525
+ readonly format: "date-time";
526
+ readonly type: "string";
527
+ };
528
+ readonly key: {
529
+ readonly minLength: 1;
530
+ readonly type: "string";
531
+ };
532
+ readonly revision: {
533
+ readonly minLength: 1;
534
+ readonly type: "string";
535
+ };
536
+ readonly updatedAt: {
537
+ readonly format: "date-time";
538
+ readonly type: "string";
539
+ };
540
+ readonly value: {};
541
+ };
542
+ readonly required: readonly ["key", "value", "revision", "updatedAt"];
543
+ readonly type: "object";
544
+ };
545
+ readonly found: {
546
+ readonly const: true;
547
+ readonly type: "boolean";
548
+ };
549
+ };
550
+ readonly required: readonly ["found", "entry"];
551
+ readonly type: "object";
552
+ }];
553
+ };
554
+ readonly StateListRequest: {
555
+ readonly allOf: readonly [{
556
+ readonly properties: {
557
+ readonly limit: {
558
+ readonly default: 10;
559
+ readonly minimum: 0;
560
+ readonly type: "integer";
561
+ };
562
+ readonly offset: {
563
+ readonly default: 0;
564
+ readonly minimum: 0;
565
+ readonly type: "integer";
566
+ };
567
+ };
568
+ readonly required: readonly ["offset", "limit"];
569
+ readonly type: "object";
570
+ }, {
571
+ readonly additionalProperties: false;
572
+ readonly properties: {
573
+ readonly prefix: {
574
+ readonly minLength: 1;
575
+ readonly type: "string";
576
+ };
577
+ readonly scope: {
578
+ readonly anyOf: readonly [{
579
+ readonly const: "userApp";
580
+ readonly type: "string";
581
+ }, {
582
+ readonly const: "deviceApp";
583
+ readonly type: "string";
584
+ }];
585
+ };
586
+ };
587
+ readonly required: readonly ["scope"];
588
+ readonly type: "object";
589
+ }];
590
+ };
591
+ readonly StateListResponse: {
592
+ readonly allOf: readonly [{
593
+ readonly properties: {
594
+ readonly count: {
595
+ readonly minimum: 0;
596
+ readonly type: "integer";
597
+ };
598
+ readonly limit: {
599
+ readonly minimum: 0;
600
+ readonly type: "integer";
601
+ };
602
+ readonly next: {
603
+ readonly minimum: 0;
604
+ readonly type: "integer";
605
+ };
606
+ readonly offset: {
607
+ readonly minimum: 0;
608
+ readonly type: "integer";
609
+ };
610
+ readonly prev: {
611
+ readonly minimum: 0;
612
+ readonly type: "integer";
613
+ };
614
+ };
615
+ readonly required: readonly ["count", "offset", "limit"];
616
+ readonly type: "object";
617
+ }, {
618
+ readonly additionalProperties: false;
619
+ readonly properties: {
620
+ readonly entries: {
621
+ readonly default: readonly [];
622
+ readonly items: {
623
+ readonly additionalProperties: false;
624
+ readonly properties: {
625
+ readonly expiresAt: {
626
+ readonly format: "date-time";
627
+ readonly type: "string";
628
+ };
629
+ readonly key: {
630
+ readonly minLength: 1;
631
+ readonly type: "string";
632
+ };
633
+ readonly revision: {
634
+ readonly minLength: 1;
635
+ readonly type: "string";
636
+ };
637
+ readonly updatedAt: {
638
+ readonly format: "date-time";
639
+ readonly type: "string";
640
+ };
641
+ readonly value: {};
642
+ };
643
+ readonly required: readonly ["key", "value", "revision", "updatedAt"];
644
+ readonly type: "object";
645
+ };
646
+ readonly type: "array";
647
+ };
648
+ };
649
+ readonly required: readonly ["entries"];
650
+ readonly type: "object";
651
+ }];
652
+ };
653
+ readonly StatePutRequest: {
654
+ readonly additionalProperties: false;
655
+ readonly properties: {
656
+ readonly key: {
657
+ readonly minLength: 1;
658
+ readonly type: "string";
659
+ };
660
+ readonly scope: {
661
+ readonly anyOf: readonly [{
662
+ readonly const: "userApp";
663
+ readonly type: "string";
664
+ }, {
665
+ readonly const: "deviceApp";
666
+ readonly type: "string";
667
+ }];
668
+ };
669
+ readonly ttlMs: {
670
+ readonly minimum: 1;
671
+ readonly type: "integer";
672
+ };
673
+ readonly value: {};
674
+ };
675
+ readonly required: readonly ["scope", "key", "value"];
676
+ readonly type: "object";
677
+ };
678
+ readonly StatePutResponse: {
679
+ readonly additionalProperties: false;
680
+ readonly properties: {
681
+ readonly entry: {
682
+ readonly additionalProperties: false;
683
+ readonly properties: {
684
+ readonly expiresAt: {
685
+ readonly format: "date-time";
686
+ readonly type: "string";
687
+ };
688
+ readonly key: {
689
+ readonly minLength: 1;
690
+ readonly type: "string";
691
+ };
692
+ readonly revision: {
693
+ readonly minLength: 1;
694
+ readonly type: "string";
695
+ };
696
+ readonly updatedAt: {
697
+ readonly format: "date-time";
698
+ readonly type: "string";
699
+ };
700
+ readonly value: {};
701
+ };
702
+ readonly required: readonly ["key", "value", "revision", "updatedAt"];
703
+ readonly type: "object";
704
+ };
705
+ };
706
+ readonly required: readonly ["entry"];
707
+ readonly type: "object";
708
+ };
709
+ readonly StateScope: {
710
+ readonly anyOf: readonly [{
711
+ readonly const: "userApp";
712
+ readonly type: "string";
713
+ }, {
714
+ readonly const: "deviceApp";
715
+ readonly type: "string";
716
+ }];
717
+ };
718
+ readonly StateUserTarget: {
719
+ readonly additionalProperties: false;
720
+ readonly properties: {
721
+ readonly id: {
722
+ readonly minLength: 1;
723
+ readonly type: "string";
724
+ };
725
+ readonly origin: {
726
+ readonly minLength: 1;
727
+ readonly type: "string";
728
+ };
729
+ };
730
+ readonly required: readonly ["origin", "id"];
731
+ readonly type: "object";
732
+ };
733
+ };
734
+ readonly rpc: {
735
+ readonly "State.Admin.Delete": {
736
+ readonly input: {
737
+ readonly anyOf: readonly [{
738
+ readonly additionalProperties: false;
739
+ readonly properties: {
740
+ readonly contractId: {
741
+ readonly minLength: 1;
742
+ readonly type: "string";
743
+ };
744
+ readonly expectedRevision: {
745
+ readonly minLength: 1;
746
+ readonly type: "string";
747
+ };
748
+ readonly key: {
749
+ readonly minLength: 1;
750
+ readonly type: "string";
751
+ };
752
+ readonly scope: {
753
+ readonly const: "userApp";
754
+ readonly type: "string";
755
+ };
756
+ readonly user: {
757
+ readonly additionalProperties: false;
758
+ readonly properties: {
759
+ readonly id: {
760
+ readonly minLength: 1;
761
+ readonly type: "string";
762
+ };
763
+ readonly origin: {
764
+ readonly minLength: 1;
765
+ readonly type: "string";
766
+ };
767
+ };
768
+ readonly required: readonly ["origin", "id"];
769
+ readonly type: "object";
770
+ };
771
+ };
772
+ readonly required: readonly ["scope", "contractId", "user", "key"];
773
+ readonly type: "object";
774
+ }, {
775
+ readonly additionalProperties: false;
776
+ readonly properties: {
777
+ readonly contractId: {
778
+ readonly minLength: 1;
779
+ readonly type: "string";
780
+ };
781
+ readonly deviceId: {
782
+ readonly minLength: 1;
783
+ readonly type: "string";
784
+ };
785
+ readonly expectedRevision: {
786
+ readonly minLength: 1;
787
+ readonly type: "string";
788
+ };
789
+ readonly key: {
790
+ readonly minLength: 1;
791
+ readonly type: "string";
792
+ };
793
+ readonly scope: {
794
+ readonly const: "deviceApp";
795
+ readonly type: "string";
796
+ };
797
+ };
798
+ readonly required: readonly ["scope", "contractId", "deviceId", "key"];
799
+ readonly type: "object";
800
+ }];
801
+ };
802
+ readonly output: {
803
+ readonly additionalProperties: false;
804
+ readonly properties: {
805
+ readonly deleted: {
806
+ readonly type: "boolean";
807
+ };
808
+ };
809
+ readonly required: readonly ["deleted"];
810
+ readonly type: "object";
811
+ };
812
+ };
813
+ readonly "State.Admin.Get": {
814
+ readonly input: {
815
+ readonly anyOf: readonly [{
816
+ readonly additionalProperties: false;
817
+ readonly properties: {
818
+ readonly contractId: {
819
+ readonly minLength: 1;
820
+ readonly type: "string";
821
+ };
822
+ readonly key: {
823
+ readonly minLength: 1;
824
+ readonly type: "string";
825
+ };
826
+ readonly scope: {
827
+ readonly const: "userApp";
828
+ readonly type: "string";
829
+ };
830
+ readonly user: {
831
+ readonly additionalProperties: false;
832
+ readonly properties: {
833
+ readonly id: {
834
+ readonly minLength: 1;
835
+ readonly type: "string";
836
+ };
837
+ readonly origin: {
838
+ readonly minLength: 1;
839
+ readonly type: "string";
840
+ };
841
+ };
842
+ readonly required: readonly ["origin", "id"];
843
+ readonly type: "object";
844
+ };
845
+ };
846
+ readonly required: readonly ["scope", "contractId", "user", "key"];
847
+ readonly type: "object";
848
+ }, {
849
+ readonly additionalProperties: false;
850
+ readonly properties: {
851
+ readonly contractId: {
852
+ readonly minLength: 1;
853
+ readonly type: "string";
854
+ };
855
+ readonly deviceId: {
856
+ readonly minLength: 1;
857
+ readonly type: "string";
858
+ };
859
+ readonly key: {
860
+ readonly minLength: 1;
861
+ readonly type: "string";
862
+ };
863
+ readonly scope: {
864
+ readonly const: "deviceApp";
865
+ readonly type: "string";
866
+ };
867
+ };
868
+ readonly required: readonly ["scope", "contractId", "deviceId", "key"];
869
+ readonly type: "object";
870
+ }];
871
+ };
872
+ readonly output: {
873
+ readonly anyOf: readonly [{
874
+ readonly additionalProperties: false;
875
+ readonly properties: {
876
+ readonly found: {
877
+ readonly const: false;
878
+ readonly type: "boolean";
879
+ };
880
+ };
881
+ readonly required: readonly ["found"];
882
+ readonly type: "object";
883
+ }, {
884
+ readonly additionalProperties: false;
885
+ readonly properties: {
886
+ readonly entry: {
887
+ readonly additionalProperties: false;
888
+ readonly properties: {
889
+ readonly expiresAt: {
890
+ readonly format: "date-time";
891
+ readonly type: "string";
892
+ };
893
+ readonly key: {
894
+ readonly minLength: 1;
895
+ readonly type: "string";
896
+ };
897
+ readonly revision: {
898
+ readonly minLength: 1;
899
+ readonly type: "string";
900
+ };
901
+ readonly updatedAt: {
902
+ readonly format: "date-time";
903
+ readonly type: "string";
904
+ };
905
+ readonly value: {};
906
+ };
907
+ readonly required: readonly ["key", "value", "revision", "updatedAt"];
908
+ readonly type: "object";
909
+ };
910
+ readonly found: {
911
+ readonly const: true;
912
+ readonly type: "boolean";
913
+ };
914
+ };
915
+ readonly required: readonly ["found", "entry"];
916
+ readonly type: "object";
917
+ }];
918
+ };
919
+ };
920
+ readonly "State.Admin.List": {
921
+ readonly input: {
922
+ readonly allOf: readonly [{
923
+ readonly properties: {
924
+ readonly limit: {
925
+ readonly default: 10;
926
+ readonly minimum: 0;
927
+ readonly type: "integer";
928
+ };
929
+ readonly offset: {
930
+ readonly default: 0;
931
+ readonly minimum: 0;
932
+ readonly type: "integer";
933
+ };
934
+ };
935
+ readonly required: readonly ["offset", "limit"];
936
+ readonly type: "object";
937
+ }, {
938
+ readonly anyOf: readonly [{
939
+ readonly additionalProperties: false;
940
+ readonly properties: {
941
+ readonly contractId: {
942
+ readonly minLength: 1;
943
+ readonly type: "string";
944
+ };
945
+ readonly prefix: {
946
+ readonly minLength: 1;
947
+ readonly type: "string";
948
+ };
949
+ readonly scope: {
950
+ readonly const: "userApp";
951
+ readonly type: "string";
952
+ };
953
+ readonly user: {
954
+ readonly additionalProperties: false;
955
+ readonly properties: {
956
+ readonly id: {
957
+ readonly minLength: 1;
958
+ readonly type: "string";
959
+ };
960
+ readonly origin: {
961
+ readonly minLength: 1;
962
+ readonly type: "string";
963
+ };
964
+ };
965
+ readonly required: readonly ["origin", "id"];
966
+ readonly type: "object";
967
+ };
968
+ };
969
+ readonly required: readonly ["scope", "contractId", "user"];
970
+ readonly type: "object";
971
+ }, {
972
+ readonly additionalProperties: false;
973
+ readonly properties: {
974
+ readonly contractId: {
975
+ readonly minLength: 1;
976
+ readonly type: "string";
977
+ };
978
+ readonly deviceId: {
979
+ readonly minLength: 1;
980
+ readonly type: "string";
981
+ };
982
+ readonly prefix: {
983
+ readonly minLength: 1;
984
+ readonly type: "string";
985
+ };
986
+ readonly scope: {
987
+ readonly const: "deviceApp";
988
+ readonly type: "string";
989
+ };
990
+ };
991
+ readonly required: readonly ["scope", "contractId", "deviceId"];
992
+ readonly type: "object";
993
+ }];
994
+ }];
995
+ };
996
+ readonly output: {
997
+ readonly allOf: readonly [{
998
+ readonly properties: {
999
+ readonly count: {
1000
+ readonly minimum: 0;
1001
+ readonly type: "integer";
1002
+ };
1003
+ readonly limit: {
1004
+ readonly minimum: 0;
1005
+ readonly type: "integer";
1006
+ };
1007
+ readonly next: {
1008
+ readonly minimum: 0;
1009
+ readonly type: "integer";
1010
+ };
1011
+ readonly offset: {
1012
+ readonly minimum: 0;
1013
+ readonly type: "integer";
1014
+ };
1015
+ readonly prev: {
1016
+ readonly minimum: 0;
1017
+ readonly type: "integer";
1018
+ };
1019
+ };
1020
+ readonly required: readonly ["count", "offset", "limit"];
1021
+ readonly type: "object";
1022
+ }, {
1023
+ readonly additionalProperties: false;
1024
+ readonly properties: {
1025
+ readonly entries: {
1026
+ readonly default: readonly [];
1027
+ readonly items: {
1028
+ readonly additionalProperties: false;
1029
+ readonly properties: {
1030
+ readonly expiresAt: {
1031
+ readonly format: "date-time";
1032
+ readonly type: "string";
1033
+ };
1034
+ readonly key: {
1035
+ readonly minLength: 1;
1036
+ readonly type: "string";
1037
+ };
1038
+ readonly revision: {
1039
+ readonly minLength: 1;
1040
+ readonly type: "string";
1041
+ };
1042
+ readonly updatedAt: {
1043
+ readonly format: "date-time";
1044
+ readonly type: "string";
1045
+ };
1046
+ readonly value: {};
1047
+ };
1048
+ readonly required: readonly ["key", "value", "revision", "updatedAt"];
1049
+ readonly type: "object";
1050
+ };
1051
+ readonly type: "array";
1052
+ };
1053
+ };
1054
+ readonly required: readonly ["entries"];
1055
+ readonly type: "object";
1056
+ }];
1057
+ };
1058
+ };
1059
+ readonly "State.CompareAndSet": {
1060
+ readonly input: {
1061
+ readonly additionalProperties: false;
1062
+ readonly properties: {
1063
+ readonly expectedRevision: {
1064
+ readonly anyOf: readonly [{
1065
+ readonly minLength: 1;
1066
+ readonly type: "string";
1067
+ }, {
1068
+ readonly type: "null";
1069
+ }];
1070
+ };
1071
+ readonly key: {
1072
+ readonly minLength: 1;
1073
+ readonly type: "string";
1074
+ };
1075
+ readonly scope: {
1076
+ readonly anyOf: readonly [{
1077
+ readonly const: "userApp";
1078
+ readonly type: "string";
1079
+ }, {
1080
+ readonly const: "deviceApp";
1081
+ readonly type: "string";
1082
+ }];
1083
+ };
1084
+ readonly ttlMs: {
1085
+ readonly minimum: 1;
1086
+ readonly type: "integer";
1087
+ };
1088
+ readonly value: {};
1089
+ };
1090
+ readonly required: readonly ["scope", "key", "expectedRevision", "value"];
1091
+ readonly type: "object";
1092
+ };
1093
+ readonly output: {
1094
+ readonly anyOf: readonly [{
1095
+ readonly additionalProperties: false;
1096
+ readonly properties: {
1097
+ readonly applied: {
1098
+ readonly const: true;
1099
+ readonly type: "boolean";
1100
+ };
1101
+ readonly entry: {
1102
+ readonly additionalProperties: false;
1103
+ readonly properties: {
1104
+ readonly expiresAt: {
1105
+ readonly format: "date-time";
1106
+ readonly type: "string";
1107
+ };
1108
+ readonly key: {
1109
+ readonly minLength: 1;
1110
+ readonly type: "string";
1111
+ };
1112
+ readonly revision: {
1113
+ readonly minLength: 1;
1114
+ readonly type: "string";
1115
+ };
1116
+ readonly updatedAt: {
1117
+ readonly format: "date-time";
1118
+ readonly type: "string";
1119
+ };
1120
+ readonly value: {};
1121
+ };
1122
+ readonly required: readonly ["key", "value", "revision", "updatedAt"];
1123
+ readonly type: "object";
1124
+ };
1125
+ };
1126
+ readonly required: readonly ["applied", "entry"];
1127
+ readonly type: "object";
1128
+ }, {
1129
+ readonly additionalProperties: false;
1130
+ readonly properties: {
1131
+ readonly applied: {
1132
+ readonly const: false;
1133
+ readonly type: "boolean";
1134
+ };
1135
+ readonly entry: {
1136
+ readonly additionalProperties: false;
1137
+ readonly properties: {
1138
+ readonly expiresAt: {
1139
+ readonly format: "date-time";
1140
+ readonly type: "string";
1141
+ };
1142
+ readonly key: {
1143
+ readonly minLength: 1;
1144
+ readonly type: "string";
1145
+ };
1146
+ readonly revision: {
1147
+ readonly minLength: 1;
1148
+ readonly type: "string";
1149
+ };
1150
+ readonly updatedAt: {
1151
+ readonly format: "date-time";
1152
+ readonly type: "string";
1153
+ };
1154
+ readonly value: {};
1155
+ };
1156
+ readonly required: readonly ["key", "value", "revision", "updatedAt"];
1157
+ readonly type: "object";
1158
+ };
1159
+ readonly found: {
1160
+ readonly type: "boolean";
1161
+ };
1162
+ };
1163
+ readonly required: readonly ["applied", "found"];
1164
+ readonly type: "object";
1165
+ }];
1166
+ };
1167
+ };
1168
+ readonly "State.Delete": {
1169
+ readonly input: {
1170
+ readonly additionalProperties: false;
1171
+ readonly properties: {
1172
+ readonly expectedRevision: {
1173
+ readonly minLength: 1;
1174
+ readonly type: "string";
1175
+ };
1176
+ readonly key: {
1177
+ readonly minLength: 1;
1178
+ readonly type: "string";
1179
+ };
1180
+ readonly scope: {
1181
+ readonly anyOf: readonly [{
1182
+ readonly const: "userApp";
1183
+ readonly type: "string";
1184
+ }, {
1185
+ readonly const: "deviceApp";
1186
+ readonly type: "string";
1187
+ }];
1188
+ };
1189
+ };
1190
+ readonly required: readonly ["scope", "key"];
1191
+ readonly type: "object";
1192
+ };
1193
+ readonly output: {
1194
+ readonly additionalProperties: false;
1195
+ readonly properties: {
1196
+ readonly deleted: {
1197
+ readonly type: "boolean";
1198
+ };
1199
+ };
1200
+ readonly required: readonly ["deleted"];
1201
+ readonly type: "object";
1202
+ };
1203
+ };
1204
+ readonly "State.Get": {
1205
+ readonly input: {
1206
+ readonly additionalProperties: false;
1207
+ readonly properties: {
1208
+ readonly key: {
1209
+ readonly minLength: 1;
1210
+ readonly type: "string";
1211
+ };
1212
+ readonly scope: {
1213
+ readonly anyOf: readonly [{
1214
+ readonly const: "userApp";
1215
+ readonly type: "string";
1216
+ }, {
1217
+ readonly const: "deviceApp";
1218
+ readonly type: "string";
1219
+ }];
1220
+ };
1221
+ };
1222
+ readonly required: readonly ["scope", "key"];
1223
+ readonly type: "object";
1224
+ };
1225
+ readonly output: {
1226
+ readonly anyOf: readonly [{
1227
+ readonly additionalProperties: false;
1228
+ readonly properties: {
1229
+ readonly found: {
1230
+ readonly const: false;
1231
+ readonly type: "boolean";
1232
+ };
1233
+ };
1234
+ readonly required: readonly ["found"];
1235
+ readonly type: "object";
1236
+ }, {
1237
+ readonly additionalProperties: false;
1238
+ readonly properties: {
1239
+ readonly entry: {
1240
+ readonly additionalProperties: false;
1241
+ readonly properties: {
1242
+ readonly expiresAt: {
1243
+ readonly format: "date-time";
1244
+ readonly type: "string";
1245
+ };
1246
+ readonly key: {
1247
+ readonly minLength: 1;
1248
+ readonly type: "string";
1249
+ };
1250
+ readonly revision: {
1251
+ readonly minLength: 1;
1252
+ readonly type: "string";
1253
+ };
1254
+ readonly updatedAt: {
1255
+ readonly format: "date-time";
1256
+ readonly type: "string";
1257
+ };
1258
+ readonly value: {};
1259
+ };
1260
+ readonly required: readonly ["key", "value", "revision", "updatedAt"];
1261
+ readonly type: "object";
1262
+ };
1263
+ readonly found: {
1264
+ readonly const: true;
1265
+ readonly type: "boolean";
1266
+ };
1267
+ };
1268
+ readonly required: readonly ["found", "entry"];
1269
+ readonly type: "object";
1270
+ }];
1271
+ };
1272
+ };
1273
+ readonly "State.List": {
1274
+ readonly input: {
1275
+ readonly allOf: readonly [{
1276
+ readonly properties: {
1277
+ readonly limit: {
1278
+ readonly default: 10;
1279
+ readonly minimum: 0;
1280
+ readonly type: "integer";
1281
+ };
1282
+ readonly offset: {
1283
+ readonly default: 0;
1284
+ readonly minimum: 0;
1285
+ readonly type: "integer";
1286
+ };
1287
+ };
1288
+ readonly required: readonly ["offset", "limit"];
1289
+ readonly type: "object";
1290
+ }, {
1291
+ readonly additionalProperties: false;
1292
+ readonly properties: {
1293
+ readonly prefix: {
1294
+ readonly minLength: 1;
1295
+ readonly type: "string";
1296
+ };
1297
+ readonly scope: {
1298
+ readonly anyOf: readonly [{
1299
+ readonly const: "userApp";
1300
+ readonly type: "string";
1301
+ }, {
1302
+ readonly const: "deviceApp";
1303
+ readonly type: "string";
1304
+ }];
1305
+ };
1306
+ };
1307
+ readonly required: readonly ["scope"];
1308
+ readonly type: "object";
1309
+ }];
1310
+ };
1311
+ readonly output: {
1312
+ readonly allOf: readonly [{
1313
+ readonly properties: {
1314
+ readonly count: {
1315
+ readonly minimum: 0;
1316
+ readonly type: "integer";
1317
+ };
1318
+ readonly limit: {
1319
+ readonly minimum: 0;
1320
+ readonly type: "integer";
1321
+ };
1322
+ readonly next: {
1323
+ readonly minimum: 0;
1324
+ readonly type: "integer";
1325
+ };
1326
+ readonly offset: {
1327
+ readonly minimum: 0;
1328
+ readonly type: "integer";
1329
+ };
1330
+ readonly prev: {
1331
+ readonly minimum: 0;
1332
+ readonly type: "integer";
1333
+ };
1334
+ };
1335
+ readonly required: readonly ["count", "offset", "limit"];
1336
+ readonly type: "object";
1337
+ }, {
1338
+ readonly additionalProperties: false;
1339
+ readonly properties: {
1340
+ readonly entries: {
1341
+ readonly default: readonly [];
1342
+ readonly items: {
1343
+ readonly additionalProperties: false;
1344
+ readonly properties: {
1345
+ readonly expiresAt: {
1346
+ readonly format: "date-time";
1347
+ readonly type: "string";
1348
+ };
1349
+ readonly key: {
1350
+ readonly minLength: 1;
1351
+ readonly type: "string";
1352
+ };
1353
+ readonly revision: {
1354
+ readonly minLength: 1;
1355
+ readonly type: "string";
1356
+ };
1357
+ readonly updatedAt: {
1358
+ readonly format: "date-time";
1359
+ readonly type: "string";
1360
+ };
1361
+ readonly value: {};
1362
+ };
1363
+ readonly required: readonly ["key", "value", "revision", "updatedAt"];
1364
+ readonly type: "object";
1365
+ };
1366
+ readonly type: "array";
1367
+ };
1368
+ };
1369
+ readonly required: readonly ["entries"];
1370
+ readonly type: "object";
1371
+ }];
1372
+ };
1373
+ };
1374
+ readonly "State.Put": {
1375
+ readonly input: {
1376
+ readonly additionalProperties: false;
1377
+ readonly properties: {
1378
+ readonly key: {
1379
+ readonly minLength: 1;
1380
+ readonly type: "string";
1381
+ };
1382
+ readonly scope: {
1383
+ readonly anyOf: readonly [{
1384
+ readonly const: "userApp";
1385
+ readonly type: "string";
1386
+ }, {
1387
+ readonly const: "deviceApp";
1388
+ readonly type: "string";
1389
+ }];
1390
+ };
1391
+ readonly ttlMs: {
1392
+ readonly minimum: 1;
1393
+ readonly type: "integer";
1394
+ };
1395
+ readonly value: {};
1396
+ };
1397
+ readonly required: readonly ["scope", "key", "value"];
1398
+ readonly type: "object";
1399
+ };
1400
+ readonly output: {
1401
+ readonly additionalProperties: false;
1402
+ readonly properties: {
1403
+ readonly entry: {
1404
+ readonly additionalProperties: false;
1405
+ readonly properties: {
1406
+ readonly expiresAt: {
1407
+ readonly format: "date-time";
1408
+ readonly type: "string";
1409
+ };
1410
+ readonly key: {
1411
+ readonly minLength: 1;
1412
+ readonly type: "string";
1413
+ };
1414
+ readonly revision: {
1415
+ readonly minLength: 1;
1416
+ readonly type: "string";
1417
+ };
1418
+ readonly updatedAt: {
1419
+ readonly format: "date-time";
1420
+ readonly type: "string";
1421
+ };
1422
+ readonly value: {};
1423
+ };
1424
+ readonly required: readonly ["key", "value", "revision", "updatedAt"];
1425
+ readonly type: "object";
1426
+ };
1427
+ };
1428
+ readonly required: readonly ["entry"];
1429
+ readonly type: "object";
1430
+ };
1431
+ };
1432
+ };
1433
+ readonly operations: {};
1434
+ readonly events: {};
1435
+ readonly subjects: {};
1436
+ };
1437
+ //# sourceMappingURL=schemas.d.ts.map