@camstack/types 1.2.386 → 1.2.388
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.
- package/dist/addon.js +26 -16
- package/dist/addon.mjs +26 -16
- package/dist/auth/credential-scope.d.ts +37 -5
- package/dist/auth/principal-scope.d.ts +1 -1
- package/dist/capabilities/alarm-panel.cap.d.ts +10 -2
- package/dist/capabilities/capability-definition.d.ts +21 -3
- package/dist/capabilities/connectivity.cap.d.ts +10 -2
- package/dist/capabilities/device-history.cap.d.ts +195 -3
- package/dist/capabilities/dishwasher.cap.d.ts +17 -0
- package/dist/capabilities/enum-sensor.cap.d.ts +12 -2
- package/dist/capabilities/index.d.ts +6 -5
- package/dist/capabilities/llm.cap.d.ts +252 -309
- package/dist/capabilities/lock-control.cap.d.ts +9 -2
- package/dist/capabilities/log-destination.cap.d.ts +148 -19
- package/dist/capabilities/media-player.cap.d.ts +15 -2
- package/dist/capabilities/notification-rules.cap.d.ts +213 -13
- package/dist/capabilities/stream-params.cap.d.ts +24 -2
- package/dist/capabilities/user-management.cap.d.ts +4 -409
- package/dist/client.js +76 -11
- package/dist/client.mjs +76 -11
- package/dist/device/base-device.d.ts +34 -1
- package/dist/device/index.d.ts +2 -2
- package/dist/generated/addon-api.d.ts +548 -187
- package/dist/generated/cap-input-defaults.d.ts +1 -1
- package/dist/generated/collection-array-methods.d.ts +2 -2
- package/dist/generated/history-catalog.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +2 -2
- package/dist/generated/system-proxy.d.ts +2 -2
- package/dist/index.d.ts +5 -3
- package/dist/index.js +861 -164
- package/dist/index.mjs +815 -162
- package/dist/interfaces/addon-data-plane.d.ts +4 -4
- package/dist/interfaces/addon-peer-bytes.d.ts +1 -1
- package/dist/interfaces/logging.d.ts +16 -1
- package/dist/notification/media-image.d.ts +67 -0
- package/dist/schemas/auth-records.d.ts +1 -1
- package/dist/schemas/user-preferences.d.ts +103 -0
- package/dist/{sleep-BxjU_fJM.mjs → sleep-BSuCCFjf.mjs} +34 -5
- package/dist/{sleep-BE7_6UnC.js → sleep-DKtoyk6X.js} +34 -5
- package/package.json +1 -1
|
@@ -177,176 +177,6 @@ declare const ApiKeySummarySchema: z.ZodObject<{
|
|
|
177
177
|
createdAt: z.ZodNumber;
|
|
178
178
|
lastUsedAt: z.ZodOptional<z.ZodNumber>;
|
|
179
179
|
}, z.core.$strip>;
|
|
180
|
-
declare const ScopedTokenSummarySchema: z.ZodObject<{
|
|
181
|
-
id: z.ZodString;
|
|
182
|
-
userId: z.ZodString;
|
|
183
|
-
name: z.ZodString;
|
|
184
|
-
tokenPrefix: z.ZodString;
|
|
185
|
-
scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
186
|
-
type: z.ZodLiteral<"category">;
|
|
187
|
-
target: z.ZodEnum<{
|
|
188
|
-
device: "device";
|
|
189
|
-
system: "system";
|
|
190
|
-
}>;
|
|
191
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
192
|
-
create: "create";
|
|
193
|
-
delete: "delete";
|
|
194
|
-
view: "view";
|
|
195
|
-
}>>;
|
|
196
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
197
|
-
type: z.ZodLiteral<"capability">;
|
|
198
|
-
target: z.ZodString;
|
|
199
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
200
|
-
create: "create";
|
|
201
|
-
delete: "delete";
|
|
202
|
-
view: "view";
|
|
203
|
-
}>>;
|
|
204
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
205
|
-
type: z.ZodLiteral<"addon">;
|
|
206
|
-
target: z.ZodString;
|
|
207
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
208
|
-
create: "create";
|
|
209
|
-
delete: "delete";
|
|
210
|
-
view: "view";
|
|
211
|
-
}>>;
|
|
212
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
213
|
-
type: z.ZodLiteral<"device">;
|
|
214
|
-
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
215
|
-
kind: z.ZodLiteral<"all">;
|
|
216
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
217
|
-
kind: z.ZodLiteral<"ids">;
|
|
218
|
-
ids: z.ZodArray<z.ZodNumber>;
|
|
219
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
220
|
-
kind: z.ZodLiteral<"types">;
|
|
221
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
222
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
223
|
-
kind: z.ZodLiteral<"locations">;
|
|
224
|
-
locations: z.ZodArray<z.ZodString>;
|
|
225
|
-
}, z.core.$strip>], "kind">;
|
|
226
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
227
|
-
create: "create";
|
|
228
|
-
delete: "delete";
|
|
229
|
-
view: "view";
|
|
230
|
-
}>>;
|
|
231
|
-
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
232
|
-
}, z.core.$strip>], "type">>>;
|
|
233
|
-
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
234
|
-
lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
235
|
-
createdAt: z.ZodNumber;
|
|
236
|
-
}, z.core.$strip>;
|
|
237
|
-
declare const CreateScopedTokenInputSchema: z.ZodObject<{
|
|
238
|
-
userId: z.ZodString;
|
|
239
|
-
name: z.ZodString;
|
|
240
|
-
scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
241
|
-
type: z.ZodLiteral<"category">;
|
|
242
|
-
target: z.ZodEnum<{
|
|
243
|
-
device: "device";
|
|
244
|
-
system: "system";
|
|
245
|
-
}>;
|
|
246
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
247
|
-
create: "create";
|
|
248
|
-
delete: "delete";
|
|
249
|
-
view: "view";
|
|
250
|
-
}>>;
|
|
251
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
252
|
-
type: z.ZodLiteral<"capability">;
|
|
253
|
-
target: z.ZodString;
|
|
254
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
255
|
-
create: "create";
|
|
256
|
-
delete: "delete";
|
|
257
|
-
view: "view";
|
|
258
|
-
}>>;
|
|
259
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
260
|
-
type: z.ZodLiteral<"addon">;
|
|
261
|
-
target: z.ZodString;
|
|
262
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
263
|
-
create: "create";
|
|
264
|
-
delete: "delete";
|
|
265
|
-
view: "view";
|
|
266
|
-
}>>;
|
|
267
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
268
|
-
type: z.ZodLiteral<"device">;
|
|
269
|
-
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
270
|
-
kind: z.ZodLiteral<"all">;
|
|
271
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
272
|
-
kind: z.ZodLiteral<"ids">;
|
|
273
|
-
ids: z.ZodArray<z.ZodNumber>;
|
|
274
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
275
|
-
kind: z.ZodLiteral<"types">;
|
|
276
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
277
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
278
|
-
kind: z.ZodLiteral<"locations">;
|
|
279
|
-
locations: z.ZodArray<z.ZodString>;
|
|
280
|
-
}, z.core.$strip>], "kind">;
|
|
281
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
282
|
-
create: "create";
|
|
283
|
-
delete: "delete";
|
|
284
|
-
view: "view";
|
|
285
|
-
}>>;
|
|
286
|
-
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
287
|
-
}, z.core.$strip>], "type">>>;
|
|
288
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
289
|
-
}, z.core.$strip>;
|
|
290
|
-
declare const CreateScopedTokenResultSchema: z.ZodObject<{
|
|
291
|
-
token: z.ZodString;
|
|
292
|
-
record: z.ZodObject<{
|
|
293
|
-
id: z.ZodString;
|
|
294
|
-
userId: z.ZodString;
|
|
295
|
-
name: z.ZodString;
|
|
296
|
-
tokenPrefix: z.ZodString;
|
|
297
|
-
scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
298
|
-
type: z.ZodLiteral<"category">;
|
|
299
|
-
target: z.ZodEnum<{
|
|
300
|
-
device: "device";
|
|
301
|
-
system: "system";
|
|
302
|
-
}>;
|
|
303
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
304
|
-
create: "create";
|
|
305
|
-
delete: "delete";
|
|
306
|
-
view: "view";
|
|
307
|
-
}>>;
|
|
308
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
309
|
-
type: z.ZodLiteral<"capability">;
|
|
310
|
-
target: z.ZodString;
|
|
311
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
312
|
-
create: "create";
|
|
313
|
-
delete: "delete";
|
|
314
|
-
view: "view";
|
|
315
|
-
}>>;
|
|
316
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
317
|
-
type: z.ZodLiteral<"addon">;
|
|
318
|
-
target: z.ZodString;
|
|
319
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
320
|
-
create: "create";
|
|
321
|
-
delete: "delete";
|
|
322
|
-
view: "view";
|
|
323
|
-
}>>;
|
|
324
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
325
|
-
type: z.ZodLiteral<"device">;
|
|
326
|
-
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
327
|
-
kind: z.ZodLiteral<"all">;
|
|
328
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
329
|
-
kind: z.ZodLiteral<"ids">;
|
|
330
|
-
ids: z.ZodArray<z.ZodNumber>;
|
|
331
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
332
|
-
kind: z.ZodLiteral<"types">;
|
|
333
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
334
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
335
|
-
kind: z.ZodLiteral<"locations">;
|
|
336
|
-
locations: z.ZodArray<z.ZodString>;
|
|
337
|
-
}, z.core.$strip>], "kind">;
|
|
338
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
339
|
-
create: "create";
|
|
340
|
-
delete: "delete";
|
|
341
|
-
view: "view";
|
|
342
|
-
}>>;
|
|
343
|
-
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
344
|
-
}, z.core.$strip>], "type">>>;
|
|
345
|
-
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
346
|
-
lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
347
|
-
createdAt: z.ZodNumber;
|
|
348
|
-
}, z.core.$strip>;
|
|
349
|
-
}, z.core.$strip>;
|
|
350
180
|
declare const OauthSessionSummarySchema: z.ZodObject<{
|
|
351
181
|
id: z.ZodString;
|
|
352
182
|
userId: z.ZodString;
|
|
@@ -405,11 +235,11 @@ declare const OauthSessionSummarySchema: z.ZodObject<{
|
|
|
405
235
|
revokedAt: z.ZodNullable<z.ZodNumber>;
|
|
406
236
|
}, z.core.$strip>;
|
|
407
237
|
/**
|
|
408
|
-
* user-management — singleton capability for user accounts
|
|
409
|
-
*
|
|
238
|
+
* user-management — singleton capability for user accounts and the
|
|
239
|
+
* legacy API-key rows.
|
|
410
240
|
*
|
|
411
241
|
* v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
|
|
412
|
-
* — the subset check on `setUserScopes`
|
|
242
|
+
* — the subset check on `setUserScopes` is moot
|
|
413
243
|
* because non-admins never reach these. If/when we open non-admin
|
|
414
244
|
* delegation, structural caller-scope subset check goes inside the
|
|
415
245
|
* provider.
|
|
@@ -798,241 +628,6 @@ export declare const userManagementCapability: {
|
|
|
798
628
|
}, z.core.$strip>, z.ZodObject<{
|
|
799
629
|
success: z.ZodLiteral<true>;
|
|
800
630
|
}, z.core.$strip>, "mutation">;
|
|
801
|
-
readonly createScopedToken: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
802
|
-
userId: z.ZodString;
|
|
803
|
-
name: z.ZodString;
|
|
804
|
-
scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
805
|
-
type: z.ZodLiteral<"category">;
|
|
806
|
-
target: z.ZodEnum<{
|
|
807
|
-
device: "device";
|
|
808
|
-
system: "system";
|
|
809
|
-
}>;
|
|
810
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
811
|
-
create: "create";
|
|
812
|
-
delete: "delete";
|
|
813
|
-
view: "view";
|
|
814
|
-
}>>;
|
|
815
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
816
|
-
type: z.ZodLiteral<"capability">;
|
|
817
|
-
target: z.ZodString;
|
|
818
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
819
|
-
create: "create";
|
|
820
|
-
delete: "delete";
|
|
821
|
-
view: "view";
|
|
822
|
-
}>>;
|
|
823
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
824
|
-
type: z.ZodLiteral<"addon">;
|
|
825
|
-
target: z.ZodString;
|
|
826
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
827
|
-
create: "create";
|
|
828
|
-
delete: "delete";
|
|
829
|
-
view: "view";
|
|
830
|
-
}>>;
|
|
831
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
832
|
-
type: z.ZodLiteral<"device">;
|
|
833
|
-
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
834
|
-
kind: z.ZodLiteral<"all">;
|
|
835
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
836
|
-
kind: z.ZodLiteral<"ids">;
|
|
837
|
-
ids: z.ZodArray<z.ZodNumber>;
|
|
838
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
839
|
-
kind: z.ZodLiteral<"types">;
|
|
840
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
841
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
842
|
-
kind: z.ZodLiteral<"locations">;
|
|
843
|
-
locations: z.ZodArray<z.ZodString>;
|
|
844
|
-
}, z.core.$strip>], "kind">;
|
|
845
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
846
|
-
create: "create";
|
|
847
|
-
delete: "delete";
|
|
848
|
-
view: "view";
|
|
849
|
-
}>>;
|
|
850
|
-
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
851
|
-
}, z.core.$strip>], "type">>>;
|
|
852
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
853
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
854
|
-
token: z.ZodString;
|
|
855
|
-
record: z.ZodObject<{
|
|
856
|
-
id: z.ZodString;
|
|
857
|
-
userId: z.ZodString;
|
|
858
|
-
name: z.ZodString;
|
|
859
|
-
tokenPrefix: z.ZodString;
|
|
860
|
-
scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
861
|
-
type: z.ZodLiteral<"category">;
|
|
862
|
-
target: z.ZodEnum<{
|
|
863
|
-
device: "device";
|
|
864
|
-
system: "system";
|
|
865
|
-
}>;
|
|
866
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
867
|
-
create: "create";
|
|
868
|
-
delete: "delete";
|
|
869
|
-
view: "view";
|
|
870
|
-
}>>;
|
|
871
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
872
|
-
type: z.ZodLiteral<"capability">;
|
|
873
|
-
target: z.ZodString;
|
|
874
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
875
|
-
create: "create";
|
|
876
|
-
delete: "delete";
|
|
877
|
-
view: "view";
|
|
878
|
-
}>>;
|
|
879
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
880
|
-
type: z.ZodLiteral<"addon">;
|
|
881
|
-
target: z.ZodString;
|
|
882
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
883
|
-
create: "create";
|
|
884
|
-
delete: "delete";
|
|
885
|
-
view: "view";
|
|
886
|
-
}>>;
|
|
887
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
888
|
-
type: z.ZodLiteral<"device">;
|
|
889
|
-
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
890
|
-
kind: z.ZodLiteral<"all">;
|
|
891
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
892
|
-
kind: z.ZodLiteral<"ids">;
|
|
893
|
-
ids: z.ZodArray<z.ZodNumber>;
|
|
894
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
895
|
-
kind: z.ZodLiteral<"types">;
|
|
896
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
897
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
898
|
-
kind: z.ZodLiteral<"locations">;
|
|
899
|
-
locations: z.ZodArray<z.ZodString>;
|
|
900
|
-
}, z.core.$strip>], "kind">;
|
|
901
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
902
|
-
create: "create";
|
|
903
|
-
delete: "delete";
|
|
904
|
-
view: "view";
|
|
905
|
-
}>>;
|
|
906
|
-
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
907
|
-
}, z.core.$strip>], "type">>>;
|
|
908
|
-
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
909
|
-
lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
910
|
-
createdAt: z.ZodNumber;
|
|
911
|
-
}, z.core.$strip>;
|
|
912
|
-
}, z.core.$strip>, "mutation">;
|
|
913
|
-
readonly revokeScopedToken: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
914
|
-
id: z.ZodString;
|
|
915
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
916
|
-
success: z.ZodLiteral<true>;
|
|
917
|
-
}, z.core.$strip>, "mutation">;
|
|
918
|
-
readonly validateScopedToken: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
919
|
-
token: z.ZodString;
|
|
920
|
-
}, z.core.$strip>, z.ZodNullable<z.ZodObject<{
|
|
921
|
-
id: z.ZodString;
|
|
922
|
-
userId: z.ZodString;
|
|
923
|
-
name: z.ZodString;
|
|
924
|
-
tokenPrefix: z.ZodString;
|
|
925
|
-
scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
926
|
-
type: z.ZodLiteral<"category">;
|
|
927
|
-
target: z.ZodEnum<{
|
|
928
|
-
device: "device";
|
|
929
|
-
system: "system";
|
|
930
|
-
}>;
|
|
931
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
932
|
-
create: "create";
|
|
933
|
-
delete: "delete";
|
|
934
|
-
view: "view";
|
|
935
|
-
}>>;
|
|
936
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
937
|
-
type: z.ZodLiteral<"capability">;
|
|
938
|
-
target: z.ZodString;
|
|
939
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
940
|
-
create: "create";
|
|
941
|
-
delete: "delete";
|
|
942
|
-
view: "view";
|
|
943
|
-
}>>;
|
|
944
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
945
|
-
type: z.ZodLiteral<"addon">;
|
|
946
|
-
target: z.ZodString;
|
|
947
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
948
|
-
create: "create";
|
|
949
|
-
delete: "delete";
|
|
950
|
-
view: "view";
|
|
951
|
-
}>>;
|
|
952
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
953
|
-
type: z.ZodLiteral<"device">;
|
|
954
|
-
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
955
|
-
kind: z.ZodLiteral<"all">;
|
|
956
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
957
|
-
kind: z.ZodLiteral<"ids">;
|
|
958
|
-
ids: z.ZodArray<z.ZodNumber>;
|
|
959
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
960
|
-
kind: z.ZodLiteral<"types">;
|
|
961
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
962
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
963
|
-
kind: z.ZodLiteral<"locations">;
|
|
964
|
-
locations: z.ZodArray<z.ZodString>;
|
|
965
|
-
}, z.core.$strip>], "kind">;
|
|
966
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
967
|
-
create: "create";
|
|
968
|
-
delete: "delete";
|
|
969
|
-
view: "view";
|
|
970
|
-
}>>;
|
|
971
|
-
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
972
|
-
}, z.core.$strip>], "type">>>;
|
|
973
|
-
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
974
|
-
lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
975
|
-
createdAt: z.ZodNumber;
|
|
976
|
-
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
977
|
-
readonly listScopedTokens: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
978
|
-
userId: z.ZodString;
|
|
979
|
-
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
980
|
-
id: z.ZodString;
|
|
981
|
-
userId: z.ZodString;
|
|
982
|
-
name: z.ZodString;
|
|
983
|
-
tokenPrefix: z.ZodString;
|
|
984
|
-
scopes: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
985
|
-
type: z.ZodLiteral<"category">;
|
|
986
|
-
target: z.ZodEnum<{
|
|
987
|
-
device: "device";
|
|
988
|
-
system: "system";
|
|
989
|
-
}>;
|
|
990
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
991
|
-
create: "create";
|
|
992
|
-
delete: "delete";
|
|
993
|
-
view: "view";
|
|
994
|
-
}>>;
|
|
995
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
996
|
-
type: z.ZodLiteral<"capability">;
|
|
997
|
-
target: z.ZodString;
|
|
998
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
999
|
-
create: "create";
|
|
1000
|
-
delete: "delete";
|
|
1001
|
-
view: "view";
|
|
1002
|
-
}>>;
|
|
1003
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1004
|
-
type: z.ZodLiteral<"addon">;
|
|
1005
|
-
target: z.ZodString;
|
|
1006
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
1007
|
-
create: "create";
|
|
1008
|
-
delete: "delete";
|
|
1009
|
-
view: "view";
|
|
1010
|
-
}>>;
|
|
1011
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1012
|
-
type: z.ZodLiteral<"device">;
|
|
1013
|
-
selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1014
|
-
kind: z.ZodLiteral<"all">;
|
|
1015
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1016
|
-
kind: z.ZodLiteral<"ids">;
|
|
1017
|
-
ids: z.ZodArray<z.ZodNumber>;
|
|
1018
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1019
|
-
kind: z.ZodLiteral<"types">;
|
|
1020
|
-
types: z.ZodArray<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
1021
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1022
|
-
kind: z.ZodLiteral<"locations">;
|
|
1023
|
-
locations: z.ZodArray<z.ZodString>;
|
|
1024
|
-
}, z.core.$strip>], "kind">;
|
|
1025
|
-
access: z.ZodArray<z.ZodEnum<{
|
|
1026
|
-
create: "create";
|
|
1027
|
-
delete: "delete";
|
|
1028
|
-
view: "view";
|
|
1029
|
-
}>>;
|
|
1030
|
-
includeLinked: z.ZodOptional<z.ZodBoolean>;
|
|
1031
|
-
}, z.core.$strip>], "type">>>;
|
|
1032
|
-
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1033
|
-
lastUsedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1034
|
-
createdAt: z.ZodNumber;
|
|
1035
|
-
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
1036
631
|
readonly setupTotp: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
1037
632
|
userId: z.ZodString;
|
|
1038
633
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1301,4 +896,4 @@ export declare const userManagementCapability: {
|
|
|
1301
896
|
};
|
|
1302
897
|
};
|
|
1303
898
|
export type IUserManagementProvider = InferProvider<typeof userManagementCapability>;
|
|
1304
|
-
export { ApiKeySummarySchema,
|
|
899
|
+
export { ApiKeySummarySchema, CreateUserInputSchema, ExternalIdentityKeySchema, ExternalIdentitySchema, OauthSessionSummarySchema, UpdateUserInputSchema, UserSummarySchema, };
|
package/dist/client.js
CHANGED
|
@@ -23038,6 +23038,33 @@ var NcRuleTargetSchema = zod.z.object({
|
|
|
23038
23038
|
params: zod.z.record(zod.z.string(), zod.z.unknown()).optional()
|
|
23039
23039
|
});
|
|
23040
23040
|
/**
|
|
23041
|
+
* WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
|
|
23042
|
+
*
|
|
23043
|
+
* Every mode starts from the same CLEAN source frame of the trigger moment
|
|
23044
|
+
* (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
|
|
23045
|
+
* to the zone that fired the rule) and renders it once at send time:
|
|
23046
|
+
* - `scene-boxes` — the whole scene, the subject outlined thick in the accent
|
|
23047
|
+
* colour and every OTHER track visible at that instant outlined thin, each
|
|
23048
|
+
* labelled with class and confidence ("dog 87%").
|
|
23049
|
+
* - `crop` — the subject cut out of that frame around its box at that instant.
|
|
23050
|
+
* - `clean` — the whole scene with nothing drawn on it.
|
|
23051
|
+
* - `none` — no picture.
|
|
23052
|
+
*
|
|
23053
|
+
* A mode that cannot be honoured (no box at that instant, a photograph with no
|
|
23054
|
+
* tracked subject) ships `clean` and names the reason in the log, per camera.
|
|
23055
|
+
* It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
|
|
23056
|
+
* ship a crop on one event and a boxed scene on the next depending on which
|
|
23057
|
+
* stored kind had landed.
|
|
23058
|
+
*/
|
|
23059
|
+
var NcMediaImageSchema = zod.z.enum([
|
|
23060
|
+
"scene-boxes",
|
|
23061
|
+
"crop",
|
|
23062
|
+
"clean",
|
|
23063
|
+
"none"
|
|
23064
|
+
]);
|
|
23065
|
+
/**
|
|
23066
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
23067
|
+
*
|
|
23041
23068
|
* Media attachment policy (P1 still-image subset).
|
|
23042
23069
|
* - `best` — the best AVAILABLE subject image at dispatch time (D-3).
|
|
23043
23070
|
* - `best-matching` — the media that explains WHY the rule fired: a rule
|
|
@@ -23051,6 +23078,8 @@ var NcRuleTargetSchema = zod.z.object({
|
|
|
23051
23078
|
* - `none` — no attachment.
|
|
23052
23079
|
*/
|
|
23053
23080
|
/**
|
|
23081
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
23082
|
+
*
|
|
23054
23083
|
* WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
|
|
23055
23084
|
* conflate it with the selection strategy and betray the request: asking for
|
|
23056
23085
|
* the clean scene frame on an object-event owner used to start at
|
|
@@ -23079,16 +23108,29 @@ var NcMediaFrameSchema = zod.z.enum([
|
|
|
23079
23108
|
*/
|
|
23080
23109
|
var NcLinkedCameraModeSchema = zod.z.enum(["mosaic", "each"]);
|
|
23081
23110
|
var NcMediaPolicySchema = zod.z.object({
|
|
23111
|
+
/**
|
|
23112
|
+
* The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
|
|
23113
|
+
* saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
|
|
23114
|
+
* triple below, at load and at every write, and the store keeps only this.
|
|
23115
|
+
*/
|
|
23116
|
+
image: NcMediaImageSchema.optional(),
|
|
23117
|
+
/**
|
|
23118
|
+
* Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
|
|
23119
|
+
* a `crop` never shows it). Valid only on a rule whose trigger is a zone —
|
|
23120
|
+
* `conditions.zones` or an occupancy zone — and refused on save otherwise.
|
|
23121
|
+
* Replaces `zoneCrop`.
|
|
23122
|
+
*/
|
|
23123
|
+
showTriggerZone: zod.z.boolean().optional(),
|
|
23124
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
23082
23125
|
attach: zod.z.enum([
|
|
23083
23126
|
"best",
|
|
23084
23127
|
"best-matching",
|
|
23085
23128
|
"keyFrame",
|
|
23086
23129
|
"none"
|
|
23087
|
-
]).
|
|
23088
|
-
/**
|
|
23130
|
+
]).optional(),
|
|
23131
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
23089
23132
|
frame: NcMediaFrameSchema.optional(),
|
|
23090
|
-
/**
|
|
23091
|
-
* "show me the ZONE", not the whole scene or the subject crop. */
|
|
23133
|
+
/** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
|
|
23092
23134
|
zoneCrop: zod.z.boolean().optional(),
|
|
23093
23135
|
/**
|
|
23094
23136
|
* Also attach a short GIF cut from the stream broker's clip ring around the
|
|
@@ -23273,7 +23315,9 @@ var NcRuleInputSchema = zod.z.object({
|
|
|
23273
23315
|
* targets.
|
|
23274
23316
|
*/
|
|
23275
23317
|
targetUsers: zod.z.array(zod.z.string()).optional(),
|
|
23276
|
-
|
|
23318
|
+
/** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
|
|
23319
|
+
* detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
|
|
23320
|
+
media: NcMediaPolicySchema.default({}),
|
|
23277
23321
|
throttle: NcThrottleSchema.default({
|
|
23278
23322
|
cooldownSec: 60,
|
|
23279
23323
|
scope: "rule-device"
|
|
@@ -24233,13 +24277,37 @@ var NcAlarmModeOpeningsSchema = zod.z.object({
|
|
|
24233
24277
|
/** Covered devices whose state could not be read (D49): neither open nor closed. */
|
|
24234
24278
|
unknown: zod.z.array(zod.z.number().int())
|
|
24235
24279
|
});
|
|
24280
|
+
/**
|
|
24281
|
+
* One alarm INPUT — a (rule, device) pair — the operator bypassed until the
|
|
24282
|
+
* next disarm ("Bypass this input until disarm" on a trigger notification, or
|
|
24283
|
+
* `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
|
|
24284
|
+
* never looks fully armed (D62: off must never look like broken).
|
|
24285
|
+
*/
|
|
24286
|
+
var NcAlarmInputBypassViewSchema = zod.z.object({
|
|
24287
|
+
ruleId: zod.z.string(),
|
|
24288
|
+
/** The rule's current name (its frozen name when the rule is gone). */
|
|
24289
|
+
ruleName: zod.z.string(),
|
|
24290
|
+
/** The input: the sensor of the match, else its camera. */
|
|
24291
|
+
deviceId: zod.z.number().int(),
|
|
24292
|
+
/** The input's current name. */
|
|
24293
|
+
name: zod.z.string(),
|
|
24294
|
+
/** When it was bypassed (ms epoch). */
|
|
24295
|
+
since: zod.z.number(),
|
|
24296
|
+
/** Triggers from this input dropped since. */
|
|
24297
|
+
dropped: zod.z.number().int().min(0)
|
|
24298
|
+
});
|
|
24236
24299
|
var NcAlarmLiveSchema = zod.z.object({
|
|
24237
24300
|
state: AlarmStateSchema,
|
|
24238
24301
|
/** The mode being armed into (exit delay) or held; null when disarmed. */
|
|
24239
24302
|
targetMode: AlarmArmModeSchema.nullable(),
|
|
24240
24303
|
availableModes: zod.z.array(AlarmArmModeSchema),
|
|
24241
24304
|
openings: zod.z.array(NcAlarmModeOpeningsSchema),
|
|
24242
|
-
exclusions: zod.z.array(NcAlarmExclusionViewSchema)
|
|
24305
|
+
exclusions: zod.z.array(NcAlarmExclusionViewSchema),
|
|
24306
|
+
/**
|
|
24307
|
+
* Inputs bypassed for the rest of this arm session; cleared on disarm.
|
|
24308
|
+
* Defaulted so an older hub answer still parses (as "none known").
|
|
24309
|
+
*/
|
|
24310
|
+
bypassedInputs: zod.z.array(NcAlarmInputBypassViewSchema).default([])
|
|
24243
24311
|
});
|
|
24244
24312
|
var NcAlarmConfigSchema = zod.z.object({
|
|
24245
24313
|
/**
|
|
@@ -27736,6 +27804,7 @@ function createSystemProxy(api) {
|
|
|
27736
27804
|
deviceHistory: {
|
|
27737
27805
|
listNodeSeries: (input) => dispatch("deviceHistory", "listNodeSeries", "query", input),
|
|
27738
27806
|
queryNode: (input) => dispatch("deviceHistory", "queryNode", "query", input),
|
|
27807
|
+
queryMany: (input) => dispatch("deviceHistory", "queryMany", "query", input),
|
|
27739
27808
|
declareSeries: (input) => dispatch("deviceHistory", "declareSeries", "mutation", input),
|
|
27740
27809
|
record: (input) => dispatch("deviceHistory", "record", "mutation", input),
|
|
27741
27810
|
recordBuckets: (input) => dispatch("deviceHistory", "recordBuckets", "mutation", input),
|
|
@@ -27869,7 +27938,7 @@ function createSystemProxy(api) {
|
|
|
27869
27938
|
migrateRawSecrets: (input) => dispatch("llm", "migrateRawSecrets", "mutation", input),
|
|
27870
27939
|
deleteProfile: (input) => dispatch("llm", "deleteProfile", "mutation", input),
|
|
27871
27940
|
testProfile: (input) => dispatch("llm", "testProfile", "mutation", input),
|
|
27872
|
-
listModels: (input) => dispatch("llm", "listModels", "
|
|
27941
|
+
listModels: (input) => dispatch("llm", "listModels", "mutation", input),
|
|
27873
27942
|
getDefaults: (input) => dispatch("llm", "getDefaults", "query", input),
|
|
27874
27943
|
setDefault: (input) => dispatch("llm", "setDefault", "mutation", input),
|
|
27875
27944
|
getUsage: (input) => dispatch("llm", "getUsage", "query", input),
|
|
@@ -28313,10 +28382,6 @@ function createSystemProxy(api) {
|
|
|
28313
28382
|
validateCredentials: (input) => dispatch("userManagement", "validateCredentials", "mutation", input),
|
|
28314
28383
|
listApiKeys: (input) => dispatch("userManagement", "listApiKeys", "query", input),
|
|
28315
28384
|
revokeApiKey: (input) => dispatch("userManagement", "revokeApiKey", "mutation", input),
|
|
28316
|
-
createScopedToken: (input) => dispatch("userManagement", "createScopedToken", "mutation", input),
|
|
28317
|
-
revokeScopedToken: (input) => dispatch("userManagement", "revokeScopedToken", "mutation", input),
|
|
28318
|
-
validateScopedToken: (input) => dispatch("userManagement", "validateScopedToken", "query", input),
|
|
28319
|
-
listScopedTokens: (input) => dispatch("userManagement", "listScopedTokens", "query", input),
|
|
28320
28385
|
setupTotp: (input) => dispatch("userManagement", "setupTotp", "mutation", input),
|
|
28321
28386
|
confirmTotp: (input) => dispatch("userManagement", "confirmTotp", "mutation", input),
|
|
28322
28387
|
disableTotp: (input) => dispatch("userManagement", "disableTotp", "mutation", input),
|