@camstack/types 0.1.15 → 0.1.16

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 (64) hide show
  1. package/dist/auth-records-BDg37fy9.mjs +8297 -0
  2. package/dist/auth-records-BDg37fy9.mjs.map +1 -0
  3. package/dist/auth-records-D5ZNaUos.js +8296 -0
  4. package/dist/auth-records-D5ZNaUos.js.map +1 -0
  5. package/dist/capabilities/addons.cap.d.ts +76 -0
  6. package/dist/capabilities/addons.cap.d.ts.map +1 -1
  7. package/dist/capabilities/alerts.cap.d.ts +5 -5
  8. package/dist/capabilities/authentication.cap.d.ts +83 -0
  9. package/dist/capabilities/authentication.cap.d.ts.map +1 -0
  10. package/dist/capabilities/backup.cap.d.ts +224 -3
  11. package/dist/capabilities/backup.cap.d.ts.map +1 -1
  12. package/dist/capabilities/index.d.ts +16 -2
  13. package/dist/capabilities/index.d.ts.map +1 -1
  14. package/dist/capabilities/local-network.cap.d.ts +216 -0
  15. package/dist/capabilities/local-network.cap.d.ts.map +1 -0
  16. package/dist/capabilities/mesh-network.cap.d.ts +160 -0
  17. package/dist/capabilities/mesh-network.cap.d.ts.map +1 -0
  18. package/dist/capabilities/mesh-orchestrator.cap.d.ts +96 -0
  19. package/dist/capabilities/mesh-orchestrator.cap.d.ts.map +1 -0
  20. package/dist/capabilities/platform-probe.cap.d.ts.map +1 -1
  21. package/dist/capabilities/remote-access.cap.d.ts +103 -0
  22. package/dist/capabilities/remote-access.cap.d.ts.map +1 -0
  23. package/dist/capabilities/storage-provider.cap.d.ts +432 -0
  24. package/dist/capabilities/storage-provider.cap.d.ts.map +1 -0
  25. package/dist/capabilities/storage.cap.d.ts +287 -24
  26. package/dist/capabilities/storage.cap.d.ts.map +1 -1
  27. package/dist/capabilities/turn-orchestrator.cap.d.ts +74 -0
  28. package/dist/capabilities/turn-orchestrator.cap.d.ts.map +1 -0
  29. package/dist/device/base-device-provider.d.ts +8 -0
  30. package/dist/device/base-device-provider.d.ts.map +1 -1
  31. package/dist/disposer-chain.d.ts +32 -0
  32. package/dist/disposer-chain.d.ts.map +1 -0
  33. package/dist/enums/event-category.d.ts +34 -0
  34. package/dist/enums/event-category.d.ts.map +1 -1
  35. package/dist/generated/addon-api.d.ts +1433 -245
  36. package/dist/generated/addon-api.d.ts.map +1 -1
  37. package/dist/generated/capability-router-map.d.ts +25 -4
  38. package/dist/generated/capability-router-map.d.ts.map +1 -1
  39. package/dist/generated/system-proxy.d.ts +15 -3
  40. package/dist/generated/system-proxy.d.ts.map +1 -1
  41. package/dist/index.d.ts +5 -0
  42. package/dist/index.d.ts.map +1 -1
  43. package/dist/index.js +805 -8331
  44. package/dist/index.js.map +1 -1
  45. package/dist/index.mjs +607 -7715
  46. package/dist/index.mjs.map +1 -1
  47. package/dist/interfaces/addon.d.ts +82 -0
  48. package/dist/interfaces/addon.d.ts.map +1 -1
  49. package/dist/interfaces/api-responses.d.ts +7 -0
  50. package/dist/interfaces/api-responses.d.ts.map +1 -1
  51. package/dist/interfaces/capability.d.ts +13 -2
  52. package/dist/interfaces/capability.d.ts.map +1 -1
  53. package/dist/interfaces/config-ui.d.ts +140 -3
  54. package/dist/interfaces/config-ui.d.ts.map +1 -1
  55. package/dist/interfaces/storage-location.d.ts +120 -0
  56. package/dist/interfaces/storage-location.d.ts.map +1 -0
  57. package/dist/interfaces/storage.d.ts +2 -6
  58. package/dist/interfaces/storage.d.ts.map +1 -1
  59. package/dist/node.js +141 -7243
  60. package/dist/node.js.map +1 -1
  61. package/dist/node.mjs +59 -7150
  62. package/dist/node.mjs.map +1 -1
  63. package/dist/storage/filesystem-storage-provider.d.ts.map +1 -1
  64. package/package.json +2 -2
@@ -123,8 +123,8 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
123
123
  }>;
124
124
  getDeviceOverrides: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
125
125
  input: {
126
- deviceId: string;
127
126
  addonId: string;
127
+ deviceId: string;
128
128
  };
129
129
  output: Record<string, unknown>;
130
130
  meta: object;
@@ -133,7 +133,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
133
133
  input: {
134
134
  addonId: string;
135
135
  field: string;
136
- value?: unknown;
136
+ value: unknown;
137
137
  };
138
138
  output: {
139
139
  success: true;
@@ -142,10 +142,10 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
142
142
  }>;
143
143
  updateDevice: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
144
144
  input: {
145
- deviceId: string;
146
145
  addonId: string;
146
+ deviceId: string;
147
147
  field: string;
148
- value?: unknown;
148
+ value: unknown;
149
149
  };
150
150
  output: {
151
151
  success: true;
@@ -171,8 +171,8 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
171
171
  }, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
172
172
  get: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
173
173
  input: {
174
- key: string;
175
174
  collection: string;
175
+ key: string;
176
176
  };
177
177
  output: {
178
178
  value: unknown;
@@ -181,9 +181,9 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
181
181
  }>;
182
182
  set: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
183
183
  input: {
184
- key: string;
185
184
  collection: string;
186
- value?: unknown;
185
+ key: string;
186
+ value: unknown;
187
187
  };
188
188
  output: {
189
189
  success: true;
@@ -215,11 +215,11 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
215
215
  }>;
216
216
  insert: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
217
217
  input: {
218
+ collection: string;
218
219
  record: {
219
220
  id: string;
220
221
  data: Record<string, unknown>;
221
222
  };
222
- collection: string;
223
223
  };
224
224
  output: {
225
225
  success: true;
@@ -228,8 +228,8 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
228
228
  }>;
229
229
  update: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
230
230
  input: {
231
- id: string;
232
231
  collection: string;
232
+ id: string;
233
233
  data: Record<string, unknown>;
234
234
  };
235
235
  output: {
@@ -239,8 +239,8 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
239
239
  }>;
240
240
  delete: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
241
241
  input: {
242
- key: string;
243
242
  collection: string;
243
+ key: string;
244
244
  };
245
245
  output: {
246
246
  success: true;
@@ -286,13 +286,13 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
286
286
  emit: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
287
287
  input: {
288
288
  id: string;
289
- category: string;
290
- data: Record<string, unknown>;
291
289
  timestamp: string;
292
290
  source: {
293
291
  type: string;
294
292
  id: string;
295
293
  };
294
+ category: string;
295
+ data: Record<string, unknown>;
296
296
  };
297
297
  output: {
298
298
  ok: true;
@@ -312,8 +312,8 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
312
312
  scope: {
313
313
  type: "system";
314
314
  } | {
315
- deviceId: number;
316
315
  type: "device";
316
+ deviceId: number;
317
317
  } | {
318
318
  type: "provider";
319
319
  providerId: string;
@@ -331,11 +331,12 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
331
331
  }>;
332
332
  completions: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
333
333
  input: {
334
+ partial: string;
334
335
  scope: {
335
336
  type: "system";
336
337
  } | {
337
- deviceId: number;
338
338
  type: "device";
339
+ deviceId: number;
339
340
  } | {
340
341
  type: "provider";
341
342
  providerId: string;
@@ -343,7 +344,6 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
343
344
  type: "addon";
344
345
  addonId: string;
345
346
  };
346
- partial: string;
347
347
  };
348
348
  output: readonly string[];
349
349
  meta: object;
@@ -355,18 +355,44 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
355
355
  errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
356
356
  transformer: true;
357
357
  }, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
358
+ listDestinations: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
359
+ input: {
360
+ nodeId?: string | undefined;
361
+ } | undefined;
362
+ output: readonly {
363
+ subId: string;
364
+ displayName: string;
365
+ kind: string;
366
+ triggerSupported: boolean;
367
+ restoreSupported: boolean;
368
+ id: string;
369
+ addonId: string;
370
+ enabled: boolean;
371
+ retentionCount: number;
372
+ description?: string | undefined;
373
+ label?: string | undefined;
374
+ lastSuccessAt?: number | undefined;
375
+ lastSuccessSizeBytes?: number | undefined;
376
+ cron?: string | undefined;
377
+ nextRunAt?: number | undefined;
378
+ lastRunAt?: number | undefined;
379
+ }[];
380
+ meta: object;
381
+ }>;
358
382
  trigger: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
359
383
  input: {
384
+ destinations?: string[] | undefined;
360
385
  locations?: string[] | undefined;
361
386
  label?: string | undefined;
362
387
  } | undefined;
363
- output: {
388
+ output: readonly {
364
389
  id: string;
365
390
  createdAt: number;
366
391
  sizeBytes: number;
392
+ destinationId?: string | undefined;
367
393
  label?: string | undefined;
368
394
  locations?: string[] | undefined;
369
- };
395
+ }[];
370
396
  meta: object;
371
397
  }>;
372
398
  list: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
@@ -377,15 +403,52 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
377
403
  id: string;
378
404
  createdAt: number;
379
405
  sizeBytes: number;
406
+ destinationId?: string | undefined;
380
407
  label?: string | undefined;
381
408
  locations?: string[] | undefined;
382
409
  }[];
383
410
  meta: object;
384
411
  }>;
412
+ listLocations: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
413
+ input: {
414
+ nodeId?: string | undefined;
415
+ } | undefined;
416
+ output: readonly {
417
+ name: string;
418
+ sizeBytes: number;
419
+ fileCount: number;
420
+ present: boolean;
421
+ }[];
422
+ meta: object;
423
+ }>;
424
+ getEntries: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
425
+ input: {
426
+ [x: string]: unknown;
427
+ destinationId: string;
428
+ backupId: string;
429
+ };
430
+ output: {
431
+ archiveVersion: 1;
432
+ createdAt: number;
433
+ dataDir: string;
434
+ locations: string[];
435
+ entries: {
436
+ path: string;
437
+ kind: "file" | "dir" | "symlink";
438
+ sizeBytes: number;
439
+ mtime: number;
440
+ }[];
441
+ totalBytes: number;
442
+ totalFiles: number;
443
+ } | null;
444
+ meta: object;
445
+ }>;
385
446
  restore: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
386
447
  input: {
387
448
  [x: string]: unknown;
449
+ destinationId: string;
388
450
  backupId: string;
451
+ locations?: string[] | undefined;
389
452
  };
390
453
  output: void;
391
454
  meta: object;
@@ -393,11 +456,179 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
393
456
  delete: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
394
457
  input: {
395
458
  [x: string]: unknown;
459
+ destinationId: string;
396
460
  backupId: string;
397
461
  };
398
462
  output: void;
399
463
  meta: object;
400
464
  }>;
465
+ listArchives: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
466
+ input: {
467
+ [x: string]: unknown;
468
+ destinationId: string;
469
+ };
470
+ output: readonly {
471
+ id: string;
472
+ filename: string;
473
+ createdAt: number;
474
+ sizeBytes: number;
475
+ locations: readonly string[];
476
+ label?: string | undefined;
477
+ }[];
478
+ meta: object;
479
+ }>;
480
+ upsertDestinationPolicy: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
481
+ input: {
482
+ [x: string]: unknown;
483
+ locationId: string;
484
+ enabled: boolean;
485
+ retentionCount: number;
486
+ label?: string | undefined;
487
+ cron?: string | undefined;
488
+ };
489
+ output: void;
490
+ meta: object;
491
+ }>;
492
+ previewSchedule: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
493
+ input: {
494
+ [x: string]: unknown;
495
+ cron: string;
496
+ count?: number | undefined;
497
+ };
498
+ output: {
499
+ ok: boolean;
500
+ nextRuns: readonly number[];
501
+ error?: string | undefined;
502
+ };
503
+ meta: object;
504
+ }>;
505
+ }>>;
506
+ authentication: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
507
+ ctx: import("@camstack/types").TrpcContext;
508
+ meta: object;
509
+ errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
510
+ transformer: true;
511
+ }, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
512
+ listProviders: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
513
+ input: {
514
+ nodeId?: string | undefined;
515
+ } | undefined;
516
+ output: readonly {
517
+ addonId: string;
518
+ displayName: string;
519
+ kind: "other" | "local" | "oidc" | "saml" | "ldap";
520
+ hasRedirectFlow: boolean;
521
+ hasCredentialFlow: boolean;
522
+ enabled: boolean;
523
+ icon?: string | undefined;
524
+ status?: string | undefined;
525
+ }[];
526
+ meta: object;
527
+ }>;
528
+ setProviderEnabled: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
529
+ input: {
530
+ [x: string]: unknown;
531
+ addonId: string;
532
+ enabled: boolean;
533
+ };
534
+ output: {
535
+ success: true;
536
+ };
537
+ meta: object;
538
+ }>;
539
+ }>>;
540
+ remoteAccess: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
541
+ ctx: import("@camstack/types").TrpcContext;
542
+ meta: object;
543
+ errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
544
+ transformer: true;
545
+ }, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
546
+ listProviders: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
547
+ input: {
548
+ nodeId?: string | undefined;
549
+ } | undefined;
550
+ output: readonly {
551
+ addonId: string;
552
+ displayName: string;
553
+ kind: "other" | "tailscale" | "cloudflare-tunnel" | "ngrok";
554
+ enabled: boolean;
555
+ connected: boolean;
556
+ endpoint: {
557
+ url: string;
558
+ hostname: string;
559
+ port: number;
560
+ protocol: "https" | "http";
561
+ } | null;
562
+ error?: string | undefined;
563
+ }[];
564
+ meta: object;
565
+ }>;
566
+ startProvider: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
567
+ input: {
568
+ [x: string]: unknown;
569
+ addonId: string;
570
+ };
571
+ output: {
572
+ url: string;
573
+ hostname: string;
574
+ port: number;
575
+ protocol: "https" | "http";
576
+ };
577
+ meta: object;
578
+ }>;
579
+ stopProvider: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
580
+ input: {
581
+ [x: string]: unknown;
582
+ addonId: string;
583
+ };
584
+ output: {
585
+ success: true;
586
+ };
587
+ meta: object;
588
+ }>;
589
+ }>>;
590
+ turnOrchestrator: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
591
+ ctx: import("@camstack/types").TrpcContext;
592
+ meta: object;
593
+ errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
594
+ transformer: true;
595
+ }, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
596
+ listProviders: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
597
+ input: {
598
+ nodeId?: string | undefined;
599
+ } | undefined;
600
+ output: readonly {
601
+ addonId: string;
602
+ displayName: string;
603
+ kind: "other" | "cloudflare" | "coturn" | "twilio";
604
+ enabled: boolean;
605
+ serverCount: number;
606
+ error?: string | undefined;
607
+ }[];
608
+ meta: object;
609
+ }>;
610
+ getAllServers: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
611
+ input: {
612
+ nodeId?: string | undefined;
613
+ } | undefined;
614
+ output: readonly {
615
+ urls: string | string[];
616
+ username?: string | undefined;
617
+ credential?: string | undefined;
618
+ }[];
619
+ meta: object;
620
+ }>;
621
+ setProviderEnabled: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
622
+ input: {
623
+ [x: string]: unknown;
624
+ addonId: string;
625
+ enabled: boolean;
626
+ };
627
+ output: {
628
+ success: true;
629
+ };
630
+ meta: object;
631
+ }>;
401
632
  }>>;
402
633
  settingsStore: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
403
634
  ctx: import("@camstack/types").TrpcContext;
@@ -1441,15 +1672,15 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
1441
1672
  }, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
1442
1673
  getRecent: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
1443
1674
  input: {
1444
- deviceId?: number | undefined;
1445
- category?: string | string[] | undefined;
1446
- addonId?: string | undefined;
1447
- limit?: number | undefined;
1448
1675
  source?: {
1449
1676
  type: string;
1450
1677
  id: string | number;
1451
1678
  } | undefined;
1452
1679
  agentId?: string | undefined;
1680
+ addonId?: string | undefined;
1681
+ deviceId?: number | undefined;
1682
+ category?: string | string[] | undefined;
1683
+ limit?: number | undefined;
1453
1684
  };
1454
1685
  output: {
1455
1686
  id: string;
@@ -1468,14 +1699,14 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
1468
1699
  }>;
1469
1700
  subscribe: import("@trpc/server/unstable-core-do-not-import").SubscriptionProcedure<{
1470
1701
  input: {
1471
- deviceId?: number | undefined;
1472
- category?: string | undefined;
1473
- addonId?: string | undefined;
1474
1702
  source?: {
1475
1703
  type: string;
1476
1704
  id: string | number;
1477
1705
  } | undefined;
1478
1706
  agentId?: string | undefined;
1707
+ addonId?: string | undefined;
1708
+ deviceId?: number | undefined;
1709
+ category?: string | undefined;
1479
1710
  };
1480
1711
  output: AsyncIterable<unknown, any, any>;
1481
1712
  meta: object;
@@ -2066,23 +2297,23 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
2066
2297
  };
2067
2298
  output: {
2068
2299
  quality: "high" | "mid" | "low";
2069
- codec?: string | undefined;
2070
- bitrateKbps?: number | undefined;
2071
- fps?: number | undefined;
2072
2300
  width?: number | undefined;
2073
2301
  height?: number | undefined;
2302
+ codec?: string | undefined;
2303
+ fps?: number | undefined;
2304
+ bitrateKbps?: number | undefined;
2074
2305
  };
2075
2306
  meta: object;
2076
2307
  }>;
2077
2308
  probeField: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
2078
2309
  input: {
2079
2310
  key: string;
2080
- value?: unknown;
2311
+ value: unknown;
2081
2312
  };
2082
2313
  output: {
2083
2314
  status: "error" | "ok";
2084
- error?: string | undefined;
2085
2315
  labels?: string[] | undefined;
2316
+ error?: string | undefined;
2086
2317
  };
2087
2318
  meta: object;
2088
2319
  }>;
@@ -2268,7 +2499,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
2268
2499
  severity: "success" | "error" | "info" | "warning";
2269
2500
  title: string;
2270
2501
  message: string;
2271
- status: "active" | "in-progress" | "completed" | "failed" | "dismissed";
2502
+ status: "active" | "failed" | "in-progress" | "completed" | "dismissed";
2272
2503
  read: boolean;
2273
2504
  createdAt: number;
2274
2505
  updatedAt: number;
@@ -2292,7 +2523,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
2292
2523
  severity?: "success" | "error" | "info" | "warning" | undefined;
2293
2524
  title?: string | undefined;
2294
2525
  message?: string | undefined;
2295
- status?: "active" | "in-progress" | "completed" | "failed" | "dismissed" | undefined;
2526
+ status?: "active" | "failed" | "in-progress" | "completed" | "dismissed" | undefined;
2296
2527
  progress?: number | undefined;
2297
2528
  read?: boolean | undefined;
2298
2529
  createdAt?: number | undefined;
@@ -2318,7 +2549,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
2318
2549
  severity: "success" | "error" | "info" | "warning";
2319
2550
  title: string;
2320
2551
  message: string;
2321
- status: "active" | "in-progress" | "completed" | "failed" | "dismissed";
2552
+ status: "active" | "failed" | "in-progress" | "completed" | "dismissed";
2322
2553
  read: boolean;
2323
2554
  createdAt: number;
2324
2555
  updatedAt: number;
@@ -2463,36 +2694,187 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
2463
2694
  meta: object;
2464
2695
  }>;
2465
2696
  }>>;
2466
- capabilities: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
2697
+ localNetwork: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
2467
2698
  ctx: import("@camstack/types").TrpcContext;
2468
2699
  meta: object;
2469
2700
  errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
2470
2701
  transformer: true;
2471
2702
  }, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
2472
- listCapabilities: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
2473
- input: void;
2474
- output: import("@camstack/types").CapabilityInfo[];
2703
+ list: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
2704
+ input: {
2705
+ nodeId?: string | undefined;
2706
+ } | undefined;
2707
+ output: {
2708
+ interfaces: readonly {
2709
+ name: string;
2710
+ family: "IPv4" | "IPv6";
2711
+ address: string;
2712
+ cidr: string;
2713
+ netmask: string;
2714
+ internal: boolean;
2715
+ mac: string;
2716
+ kind: "other" | "lan" | "vpn" | "wifi" | "docker" | "loopback";
2717
+ preferred: boolean;
2718
+ plausible: boolean;
2719
+ plausibleReason: string;
2720
+ }[];
2721
+ probedAt: number;
2722
+ };
2475
2723
  meta: object;
2476
2724
  }>;
2477
- getCapability: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
2725
+ getPreferred: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
2478
2726
  input: {
2727
+ nodeId?: string | undefined;
2728
+ } | undefined;
2729
+ output: {
2479
2730
  name: string;
2480
- };
2481
- output: import("@camstack/types").CapabilityInfo | null;
2731
+ family: "IPv4" | "IPv6";
2732
+ address: string;
2733
+ cidr: string;
2734
+ netmask: string;
2735
+ internal: boolean;
2736
+ mac: string;
2737
+ kind: "other" | "lan" | "vpn" | "wifi" | "docker" | "loopback";
2738
+ preferred: boolean;
2739
+ plausible: boolean;
2740
+ plausibleReason: string;
2741
+ } | null;
2482
2742
  meta: object;
2483
2743
  }>;
2484
- setActiveSingleton: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
2744
+ getConnectionEndpoints: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
2485
2745
  input: {
2486
- addonId: string;
2487
- capability: string;
2746
+ [x: string]: unknown;
2747
+ port: number;
2748
+ includeLoopback?: boolean | undefined;
2749
+ ipv4Only?: boolean | undefined;
2750
+ scheme?: "https" | "http" | undefined;
2751
+ };
2752
+ output: {
2753
+ endpoints: readonly {
2754
+ label: string;
2755
+ baseUrl: string;
2756
+ kind: "public" | "loopback" | "lan-ipv4" | "lan-ipv6";
2757
+ interfaceKind: "public" | "other" | "lan" | "vpn" | "wifi" | "docker" | "loopback";
2758
+ plausible: boolean;
2759
+ plausibleReason: string;
2760
+ priority: number;
2761
+ }[];
2488
2762
  };
2489
- output: void;
2490
2763
  meta: object;
2491
2764
  }>;
2492
- setCollectionEnabledProviders: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
2765
+ getAllowedAddresses: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
2493
2766
  input: {
2494
- capability: string;
2495
- enabledAddonIds: string[];
2767
+ nodeId?: string | undefined;
2768
+ } | undefined;
2769
+ output: {
2770
+ addresses: readonly string[];
2771
+ };
2772
+ meta: object;
2773
+ }>;
2774
+ setAllowedAddresses: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
2775
+ input: {
2776
+ [x: string]: unknown;
2777
+ addresses: readonly string[];
2778
+ };
2779
+ output: {
2780
+ success: true;
2781
+ };
2782
+ meta: object;
2783
+ }>;
2784
+ resetAllowlistToBestMatch: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
2785
+ input: {
2786
+ nodeId?: string | undefined;
2787
+ } | undefined;
2788
+ output: {
2789
+ addresses: readonly string[];
2790
+ };
2791
+ meta: object;
2792
+ }>;
2793
+ }>>;
2794
+ meshOrchestrator: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
2795
+ ctx: import("@camstack/types").TrpcContext;
2796
+ meta: object;
2797
+ errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
2798
+ transformer: true;
2799
+ }, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
2800
+ listProviders: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
2801
+ input: {
2802
+ nodeId?: string | undefined;
2803
+ } | undefined;
2804
+ output: readonly {
2805
+ addonId: string;
2806
+ displayName: string;
2807
+ kind: "other" | "tailscale" | "headscale" | "zerotier";
2808
+ joined: boolean;
2809
+ meshIp: string;
2810
+ magicDnsHostname: string;
2811
+ peerCount: number;
2812
+ endpoints: readonly {
2813
+ id: string;
2814
+ label: string;
2815
+ scope: "public" | "mesh";
2816
+ url: string;
2817
+ hostname: string;
2818
+ port: number;
2819
+ protocol: "https" | "http";
2820
+ }[];
2821
+ error?: string | undefined;
2822
+ }[];
2823
+ meta: object;
2824
+ }>;
2825
+ joinProvider: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
2826
+ input: {
2827
+ [x: string]: unknown;
2828
+ addonId: string;
2829
+ authKey: string;
2830
+ hostname?: string | undefined;
2831
+ };
2832
+ output: {
2833
+ joined: true;
2834
+ };
2835
+ meta: object;
2836
+ }>;
2837
+ leaveProvider: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
2838
+ input: {
2839
+ [x: string]: unknown;
2840
+ addonId: string;
2841
+ };
2842
+ output: {
2843
+ success: true;
2844
+ };
2845
+ meta: object;
2846
+ }>;
2847
+ }>>;
2848
+ capabilities: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
2849
+ ctx: import("@camstack/types").TrpcContext;
2850
+ meta: object;
2851
+ errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
2852
+ transformer: true;
2853
+ }, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
2854
+ listCapabilities: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
2855
+ input: void;
2856
+ output: import("@camstack/types").CapabilityInfo[];
2857
+ meta: object;
2858
+ }>;
2859
+ getCapability: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
2860
+ input: {
2861
+ name: string;
2862
+ };
2863
+ output: import("@camstack/types").CapabilityInfo | null;
2864
+ meta: object;
2865
+ }>;
2866
+ setActiveSingleton: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
2867
+ input: {
2868
+ capability: string;
2869
+ addonId: string;
2870
+ };
2871
+ output: void;
2872
+ meta: object;
2873
+ }>;
2874
+ setCollectionEnabledProviders: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
2875
+ input: {
2876
+ capability: string;
2877
+ enabledAddonIds: string[];
2496
2878
  };
2497
2879
  output: void;
2498
2880
  meta: object;
@@ -2500,8 +2882,8 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
2500
2882
  setDeviceCapability: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
2501
2883
  input: {
2502
2884
  deviceId: string;
2503
- addonId: string;
2504
2885
  capability: string;
2886
+ addonId: string;
2505
2887
  };
2506
2888
  output: void;
2507
2889
  meta: object;
@@ -2547,48 +2929,48 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
2547
2929
  }, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
2548
2930
  query: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
2549
2931
  input: {
2550
- limit?: number | undefined;
2932
+ level?: "error" | "info" | "debug" | "warn" | undefined;
2551
2933
  since?: number | undefined;
2552
2934
  until?: number | undefined;
2553
- level?: "error" | "info" | "debug" | "warn" | undefined;
2935
+ limit?: number | undefined;
2554
2936
  tags?: {
2555
- deviceId?: string | number | undefined;
2556
- nodeId?: string | undefined;
2557
- addonId?: string | undefined;
2558
- streamId?: string | undefined;
2559
2937
  agentId?: string | undefined;
2560
- sessionId?: string | undefined;
2938
+ nodeId?: string | undefined;
2939
+ deviceId?: string | number | undefined;
2561
2940
  deviceName?: string | undefined;
2562
2941
  integrationId?: string | undefined;
2942
+ addonId?: string | undefined;
2943
+ streamId?: string | undefined;
2563
2944
  streamName?: string | undefined;
2945
+ sessionId?: string | undefined;
2564
2946
  requestId?: string | undefined;
2565
2947
  } | undefined;
2566
2948
  };
2567
2949
  output: {
2568
- message: string;
2569
2950
  timestamp: string;
2570
2951
  level: string;
2571
- meta?: Record<string, unknown> | undefined;
2952
+ message: string;
2572
2953
  scope?: string | undefined;
2573
2954
  tags?: Record<string, string | undefined> | undefined;
2955
+ meta?: Record<string, unknown> | undefined;
2574
2956
  }[];
2575
2957
  meta: object;
2576
2958
  }>;
2577
2959
  clear: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
2578
2960
  input: {
2961
+ level?: "error" | "info" | "debug" | "warn" | undefined;
2579
2962
  since?: number | undefined;
2580
2963
  until?: number | undefined;
2581
- level?: "error" | "info" | "debug" | "warn" | undefined;
2582
2964
  tags?: {
2583
- deviceId?: string | number | undefined;
2584
- nodeId?: string | undefined;
2585
- addonId?: string | undefined;
2586
- streamId?: string | undefined;
2587
2965
  agentId?: string | undefined;
2588
- sessionId?: string | undefined;
2966
+ nodeId?: string | undefined;
2967
+ deviceId?: string | number | undefined;
2589
2968
  deviceName?: string | undefined;
2590
2969
  integrationId?: string | undefined;
2970
+ addonId?: string | undefined;
2971
+ streamId?: string | undefined;
2591
2972
  streamName?: string | undefined;
2973
+ sessionId?: string | undefined;
2592
2974
  requestId?: string | undefined;
2593
2975
  } | undefined;
2594
2976
  };
@@ -2601,15 +2983,15 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
2601
2983
  input: {
2602
2984
  level?: "error" | "info" | "debug" | "warn" | undefined;
2603
2985
  tags?: {
2604
- deviceId?: string | number | undefined;
2605
- nodeId?: string | undefined;
2606
- addonId?: string | undefined;
2607
- streamId?: string | undefined;
2608
2986
  agentId?: string | undefined;
2609
- sessionId?: string | undefined;
2987
+ nodeId?: string | undefined;
2988
+ deviceId?: string | number | undefined;
2610
2989
  deviceName?: string | undefined;
2611
2990
  integrationId?: string | undefined;
2991
+ addonId?: string | undefined;
2992
+ streamId?: string | undefined;
2612
2993
  streamName?: string | undefined;
2994
+ sessionId?: string | undefined;
2613
2995
  requestId?: string | undefined;
2614
2996
  } | undefined;
2615
2997
  };
@@ -3013,6 +3395,11 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
3013
3395
  color?: string | undefined;
3014
3396
  capabilities?: readonly unknown[] | undefined;
3015
3397
  packageDisplayName?: string | undefined;
3398
+ bundle?: {
3399
+ displayName: string;
3400
+ description?: string | undefined;
3401
+ icon?: string | undefined;
3402
+ } | undefined;
3016
3403
  protected?: boolean | undefined;
3017
3404
  removable?: boolean | undefined;
3018
3405
  };
@@ -3024,6 +3411,21 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
3024
3411
  state: string;
3025
3412
  pid?: number | undefined;
3026
3413
  } | undefined;
3414
+ hasBackup?: boolean | undefined;
3415
+ health?: {
3416
+ phase: "failed" | "pending" | "healthy";
3417
+ retryCount: number;
3418
+ firstFailureAt: number | null;
3419
+ lastAttemptAt: number | null;
3420
+ lastError: {
3421
+ message: string;
3422
+ stack?: string | undefined;
3423
+ } | null;
3424
+ nextRetryAt: number | null;
3425
+ alertEmitted: boolean;
3426
+ retrying: boolean;
3427
+ inGracePeriod: boolean;
3428
+ } | null | undefined;
3027
3429
  }[];
3028
3430
  meta: object;
3029
3431
  }>;
@@ -3134,6 +3536,16 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
3134
3536
  output: unknown;
3135
3537
  meta: object;
3136
3538
  }>;
3539
+ rollbackPackage: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
3540
+ input: {
3541
+ [x: string]: unknown;
3542
+ name: string;
3543
+ };
3544
+ output: {
3545
+ rolledBackTo: string | null;
3546
+ };
3547
+ meta: object;
3548
+ }>;
3137
3549
  forceRefresh: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
3138
3550
  input: {
3139
3551
  nodeId?: string | undefined;
@@ -3170,6 +3582,16 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
3170
3582
  output: unknown;
3171
3583
  meta: object;
3172
3584
  }>;
3585
+ retryLoad: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
3586
+ input: {
3587
+ [x: string]: unknown;
3588
+ packageName: string;
3589
+ };
3590
+ output: {
3591
+ success: true;
3592
+ };
3593
+ meta: object;
3594
+ }>;
3173
3595
  getAutoUpdateSettings: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
3174
3596
  input: {
3175
3597
  nodeId?: string | undefined;
@@ -5112,7 +5534,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
5112
5534
  resolve: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
5113
5535
  input: {
5114
5536
  [x: string]: unknown;
5115
- location: "data" | "recordings" | "models" | "media" | "cache" | "logs" | "addons-data";
5537
+ location: string;
5116
5538
  relativePath: string;
5117
5539
  };
5118
5540
  output: string;
@@ -5121,8 +5543,9 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
5121
5543
  write: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5122
5544
  input: {
5123
5545
  [x: string]: unknown;
5124
- location: "data" | "recordings" | "models" | "media" | "cache" | "logs" | "addons-data";
5546
+ location: string;
5125
5547
  relativePath: string;
5548
+ data: Uint8Array<ArrayBuffer>;
5126
5549
  };
5127
5550
  output: void;
5128
5551
  meta: object;
@@ -5130,7 +5553,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
5130
5553
  read: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
5131
5554
  input: {
5132
5555
  [x: string]: unknown;
5133
- location: "data" | "recordings" | "models" | "media" | "cache" | "logs" | "addons-data";
5556
+ location: string;
5134
5557
  relativePath: string;
5135
5558
  };
5136
5559
  output: Uint8Array<ArrayBuffer>;
@@ -5139,7 +5562,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
5139
5562
  exists: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
5140
5563
  input: {
5141
5564
  [x: string]: unknown;
5142
- location: "data" | "recordings" | "models" | "media" | "cache" | "logs" | "addons-data";
5565
+ location: string;
5143
5566
  relativePath: string;
5144
5567
  };
5145
5568
  output: boolean;
@@ -5148,7 +5571,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
5148
5571
  list: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
5149
5572
  input: {
5150
5573
  [x: string]: unknown;
5151
- location: "data" | "recordings" | "models" | "media" | "cache" | "logs" | "addons-data";
5574
+ location: string;
5152
5575
  prefix?: string | undefined;
5153
5576
  };
5154
5577
  output: readonly string[];
@@ -5157,7 +5580,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
5157
5580
  delete: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5158
5581
  input: {
5159
5582
  [x: string]: unknown;
5160
- location: "data" | "recordings" | "models" | "media" | "cache" | "logs" | "addons-data";
5583
+ location: string;
5161
5584
  relativePath: string;
5162
5585
  };
5163
5586
  output: void;
@@ -5166,153 +5589,324 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
5166
5589
  getAvailableSpace: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
5167
5590
  input: {
5168
5591
  [x: string]: unknown;
5169
- location: "data" | "recordings" | "models" | "media" | "cache" | "logs" | "addons-data";
5592
+ location: string;
5170
5593
  };
5171
5594
  output: number | null;
5172
5595
  meta: object;
5173
5596
  }>;
5174
- }>>;
5175
- deviceManager: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
5176
- ctx: import("@camstack/types").TrpcContext;
5177
- meta: object;
5178
- errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
5179
- transformer: true;
5180
- }, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
5181
- allocateDeviceId: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5597
+ beginUpload: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5182
5598
  input: {
5183
5599
  [x: string]: unknown;
5184
- addonId: string;
5185
- stableId: string;
5600
+ location: string;
5601
+ relativePath: string;
5602
+ sizeBytes?: number | undefined;
5186
5603
  };
5187
5604
  output: {
5188
- id: number;
5605
+ uploadId: string;
5189
5606
  };
5190
5607
  meta: object;
5191
5608
  }>;
5192
- registerDevice: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5609
+ writeChunk: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5193
5610
  input: {
5194
5611
  [x: string]: unknown;
5195
- addonId: string;
5196
- stableId: string;
5197
- id: number;
5198
- type: string;
5199
- name: string;
5200
- parentDeviceId: number | null;
5201
- config: Record<string, unknown>;
5202
- location?: string | null | undefined;
5203
- disabled?: boolean | undefined;
5204
- role?: string | null | undefined;
5205
- features?: string[] | undefined;
5612
+ uploadId: string;
5613
+ offset: number;
5614
+ data: Uint8Array<ArrayBuffer>;
5206
5615
  };
5207
5616
  output: void;
5208
5617
  meta: object;
5209
5618
  }>;
5210
- removeDevice: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5619
+ finalizeUpload: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5211
5620
  input: {
5212
5621
  [x: string]: unknown;
5213
- deviceId: number;
5622
+ uploadId: string;
5214
5623
  };
5215
5624
  output: void;
5216
5625
  meta: object;
5217
5626
  }>;
5218
- persistConfig: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5627
+ abortUpload: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5219
5628
  input: {
5220
5629
  [x: string]: unknown;
5221
- deviceId: number;
5222
- data: Record<string, unknown>;
5630
+ uploadId: string;
5223
5631
  };
5224
5632
  output: void;
5225
5633
  meta: object;
5226
5634
  }>;
5227
- loadConfig: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
5635
+ beginDownload: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5228
5636
  input: {
5229
5637
  [x: string]: unknown;
5230
- deviceId: number;
5638
+ location: string;
5639
+ relativePath: string;
5231
5640
  };
5232
- output: Record<string, unknown>;
5233
- meta: object;
5234
- }>;
5235
- loadRuntimeState: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
5236
- input: {
5237
- [x: string]: unknown;
5238
- deviceId: number;
5641
+ output: {
5642
+ downloadId: string;
5643
+ sizeBytes: number;
5239
5644
  };
5240
- output: Record<string, unknown>;
5241
5645
  meta: object;
5242
5646
  }>;
5243
- loadMeta: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
5647
+ readChunk: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
5244
5648
  input: {
5245
5649
  [x: string]: unknown;
5246
- deviceId: number;
5650
+ downloadId: string;
5651
+ offset: number;
5652
+ length: number;
5247
5653
  };
5248
- output: {
5249
- id: number;
5250
- stableId: string;
5251
- addonId: string;
5252
- type: string;
5253
- name: string;
5254
- location: string | null;
5255
- disabled: boolean;
5256
- parentDeviceId: number | null;
5257
- metadata?: Record<string, unknown> | null | undefined;
5258
- } | null;
5654
+ output: Uint8Array<ArrayBuffer>;
5259
5655
  meta: object;
5260
5656
  }>;
5261
- setName: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5657
+ endDownload: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5262
5658
  input: {
5263
5659
  [x: string]: unknown;
5264
- deviceId: number;
5265
- name: string;
5660
+ downloadId: string;
5266
5661
  };
5267
5662
  output: void;
5268
5663
  meta: object;
5269
5664
  }>;
5270
- setLocation: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5665
+ listLocations: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
5271
5666
  input: {
5272
5667
  [x: string]: unknown;
5273
- deviceId: number;
5274
- location: string | null;
5668
+ type?: "data" | "recordings" | "models" | "media" | "cache" | "logs" | "recordings-high" | "recordings-low" | "recordings-clips" | "event-images" | "addons-data" | "backups" | undefined;
5275
5669
  };
5276
- output: void;
5670
+ output: readonly {
5671
+ id: string;
5672
+ type: "data" | "recordings" | "models" | "media" | "cache" | "logs" | "recordings-high" | "recordings-low" | "recordings-clips" | "event-images" | "addons-data" | "backups";
5673
+ displayName: string;
5674
+ providerId: string;
5675
+ config: Record<string, unknown>;
5676
+ isDefault: boolean;
5677
+ isSystem: boolean;
5678
+ createdAt: number;
5679
+ updatedAt: number;
5680
+ }[];
5277
5681
  meta: object;
5278
5682
  }>;
5279
- setMetadata: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5683
+ getDefaultLocation: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
5280
5684
  input: {
5281
5685
  [x: string]: unknown;
5282
- deviceId: number;
5283
- patch: Record<string, unknown>;
5686
+ type: "data" | "recordings" | "models" | "media" | "cache" | "logs" | "recordings-high" | "recordings-low" | "recordings-clips" | "event-images" | "addons-data" | "backups";
5284
5687
  };
5285
- output: void;
5286
- meta: object;
5287
- }>;
5288
- listLocations: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
5289
- input: {
5290
- nodeId?: string | undefined;
5291
- } | undefined;
5292
- output: string[];
5688
+ output: {
5689
+ id: string;
5690
+ type: "data" | "recordings" | "models" | "media" | "cache" | "logs" | "recordings-high" | "recordings-low" | "recordings-clips" | "event-images" | "addons-data" | "backups";
5691
+ displayName: string;
5692
+ providerId: string;
5693
+ config: Record<string, unknown>;
5694
+ isDefault: boolean;
5695
+ isSystem: boolean;
5696
+ createdAt: number;
5697
+ updatedAt: number;
5698
+ } | null;
5293
5699
  meta: object;
5294
5700
  }>;
5295
- addLocation: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5701
+ upsertLocation: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5296
5702
  input: {
5297
5703
  [x: string]: unknown;
5298
- name: string;
5704
+ type: "data" | "recordings" | "models" | "media" | "cache" | "logs" | "recordings-high" | "recordings-low" | "recordings-clips" | "event-images" | "addons-data" | "backups";
5705
+ id: string;
5706
+ displayName: string;
5707
+ providerId: string;
5708
+ config: Record<string, unknown>;
5709
+ isDefault?: boolean | undefined;
5710
+ isSystem?: boolean | undefined;
5711
+ };
5712
+ output: {
5713
+ id: string;
5714
+ type: "data" | "recordings" | "models" | "media" | "cache" | "logs" | "recordings-high" | "recordings-low" | "recordings-clips" | "event-images" | "addons-data" | "backups";
5715
+ displayName: string;
5716
+ providerId: string;
5717
+ config: Record<string, unknown>;
5718
+ isDefault: boolean;
5719
+ isSystem: boolean;
5720
+ createdAt: number;
5721
+ updatedAt: number;
5299
5722
  };
5300
- output: void;
5301
5723
  meta: object;
5302
5724
  }>;
5303
- removeLocation: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5725
+ deleteLocation: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5304
5726
  input: {
5305
5727
  [x: string]: unknown;
5306
- name: string;
5307
- cascade?: boolean | undefined;
5728
+ id: string;
5308
5729
  };
5309
5730
  output: void;
5310
5731
  meta: object;
5311
5732
  }>;
5312
- setDisabled: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5733
+ testLocation: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
5313
5734
  input: {
5314
5735
  [x: string]: unknown;
5315
- deviceId: number;
5736
+ id: string;
5737
+ };
5738
+ output: {
5739
+ ok: boolean;
5740
+ error?: string | undefined;
5741
+ };
5742
+ meta: object;
5743
+ }>;
5744
+ listProviders: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
5745
+ input: {
5746
+ nodeId?: string | undefined;
5747
+ } | undefined;
5748
+ output: readonly {
5749
+ providerId: string;
5750
+ displayName: string;
5751
+ supportedLocationTypes: readonly ("data" | "recordings" | "models" | "media" | "cache" | "logs" | "recordings-high" | "recordings-low" | "recordings-clips" | "event-images" | "addons-data" | "backups")[];
5752
+ configSchema: unknown;
5753
+ }[];
5754
+ meta: object;
5755
+ }>;
5756
+ testConfig: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
5757
+ input: {
5758
+ [x: string]: unknown;
5759
+ providerId: string;
5760
+ config: Record<string, unknown>;
5761
+ };
5762
+ output: {
5763
+ ok: boolean;
5764
+ error?: string | undefined;
5765
+ };
5766
+ meta: object;
5767
+ }>;
5768
+ }>>;
5769
+ deviceManager: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
5770
+ ctx: import("@camstack/types").TrpcContext;
5771
+ meta: object;
5772
+ errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
5773
+ transformer: true;
5774
+ }, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
5775
+ allocateDeviceId: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5776
+ input: {
5777
+ [x: string]: unknown;
5778
+ addonId: string;
5779
+ stableId: string;
5780
+ };
5781
+ output: {
5782
+ id: number;
5783
+ };
5784
+ meta: object;
5785
+ }>;
5786
+ registerDevice: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5787
+ input: {
5788
+ [x: string]: unknown;
5789
+ addonId: string;
5790
+ stableId: string;
5791
+ id: number;
5792
+ type: string;
5793
+ name: string;
5794
+ parentDeviceId: number | null;
5795
+ config: Record<string, unknown>;
5796
+ location?: string | null | undefined;
5797
+ disabled?: boolean | undefined;
5798
+ role?: string | null | undefined;
5799
+ features?: string[] | undefined;
5800
+ };
5801
+ output: void;
5802
+ meta: object;
5803
+ }>;
5804
+ removeDevice: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5805
+ input: {
5806
+ [x: string]: unknown;
5807
+ deviceId: number;
5808
+ };
5809
+ output: void;
5810
+ meta: object;
5811
+ }>;
5812
+ persistConfig: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5813
+ input: {
5814
+ [x: string]: unknown;
5815
+ deviceId: number;
5816
+ data: Record<string, unknown>;
5817
+ };
5818
+ output: void;
5819
+ meta: object;
5820
+ }>;
5821
+ loadConfig: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
5822
+ input: {
5823
+ [x: string]: unknown;
5824
+ deviceId: number;
5825
+ };
5826
+ output: Record<string, unknown>;
5827
+ meta: object;
5828
+ }>;
5829
+ loadRuntimeState: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
5830
+ input: {
5831
+ [x: string]: unknown;
5832
+ deviceId: number;
5833
+ };
5834
+ output: Record<string, unknown>;
5835
+ meta: object;
5836
+ }>;
5837
+ loadMeta: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
5838
+ input: {
5839
+ [x: string]: unknown;
5840
+ deviceId: number;
5841
+ };
5842
+ output: {
5843
+ id: number;
5844
+ stableId: string;
5845
+ addonId: string;
5846
+ type: string;
5847
+ name: string;
5848
+ location: string | null;
5849
+ disabled: boolean;
5850
+ parentDeviceId: number | null;
5851
+ metadata?: Record<string, unknown> | null | undefined;
5852
+ } | null;
5853
+ meta: object;
5854
+ }>;
5855
+ setName: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5856
+ input: {
5857
+ [x: string]: unknown;
5858
+ deviceId: number;
5859
+ name: string;
5860
+ };
5861
+ output: void;
5862
+ meta: object;
5863
+ }>;
5864
+ setLocation: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5865
+ input: {
5866
+ [x: string]: unknown;
5867
+ deviceId: number;
5868
+ location: string | null;
5869
+ };
5870
+ output: void;
5871
+ meta: object;
5872
+ }>;
5873
+ setMetadata: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5874
+ input: {
5875
+ [x: string]: unknown;
5876
+ deviceId: number;
5877
+ patch: Record<string, unknown>;
5878
+ };
5879
+ output: void;
5880
+ meta: object;
5881
+ }>;
5882
+ listLocations: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
5883
+ input: {
5884
+ nodeId?: string | undefined;
5885
+ } | undefined;
5886
+ output: string[];
5887
+ meta: object;
5888
+ }>;
5889
+ addLocation: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5890
+ input: {
5891
+ [x: string]: unknown;
5892
+ name: string;
5893
+ };
5894
+ output: void;
5895
+ meta: object;
5896
+ }>;
5897
+ removeLocation: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5898
+ input: {
5899
+ [x: string]: unknown;
5900
+ name: string;
5901
+ cascade?: boolean | undefined;
5902
+ };
5903
+ output: void;
5904
+ meta: object;
5905
+ }>;
5906
+ setDisabled: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
5907
+ input: {
5908
+ [x: string]: unknown;
5909
+ deviceId: number;
5316
5910
  disabled: boolean;
5317
5911
  };
5318
5912
  output: void;
@@ -5839,12 +6433,12 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
5839
6433
  password: string;
5840
6434
  };
5841
6435
  output: {
6436
+ token: string;
5842
6437
  user: {
5843
6438
  id: string;
5844
6439
  username: string;
5845
6440
  role: "admin" | "viewer" | "super_admin" | "agent";
5846
6441
  };
5847
- token: string;
5848
6442
  };
5849
6443
  meta: object;
5850
6444
  }>;
@@ -7702,8 +8296,8 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
7702
8296
  }>;
7703
8297
  getDeviceOverrides: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
7704
8298
  input: {
7705
- deviceId: string;
7706
8299
  addonId: string;
8300
+ deviceId: string;
7707
8301
  };
7708
8302
  output: Record<string, unknown>;
7709
8303
  meta: object;
@@ -7712,7 +8306,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
7712
8306
  input: {
7713
8307
  addonId: string;
7714
8308
  field: string;
7715
- value?: unknown;
8309
+ value: unknown;
7716
8310
  };
7717
8311
  output: {
7718
8312
  success: true;
@@ -7721,10 +8315,10 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
7721
8315
  }>;
7722
8316
  updateDevice: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
7723
8317
  input: {
7724
- deviceId: string;
7725
8318
  addonId: string;
8319
+ deviceId: string;
7726
8320
  field: string;
7727
- value?: unknown;
8321
+ value: unknown;
7728
8322
  };
7729
8323
  output: {
7730
8324
  success: true;
@@ -7750,8 +8344,8 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
7750
8344
  }, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
7751
8345
  get: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
7752
8346
  input: {
7753
- key: string;
7754
8347
  collection: string;
8348
+ key: string;
7755
8349
  };
7756
8350
  output: {
7757
8351
  value: unknown;
@@ -7760,9 +8354,9 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
7760
8354
  }>;
7761
8355
  set: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
7762
8356
  input: {
7763
- key: string;
7764
8357
  collection: string;
7765
- value?: unknown;
8358
+ key: string;
8359
+ value: unknown;
7766
8360
  };
7767
8361
  output: {
7768
8362
  success: true;
@@ -7794,11 +8388,11 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
7794
8388
  }>;
7795
8389
  insert: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
7796
8390
  input: {
8391
+ collection: string;
7797
8392
  record: {
7798
8393
  id: string;
7799
8394
  data: Record<string, unknown>;
7800
8395
  };
7801
- collection: string;
7802
8396
  };
7803
8397
  output: {
7804
8398
  success: true;
@@ -7807,8 +8401,8 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
7807
8401
  }>;
7808
8402
  update: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
7809
8403
  input: {
7810
- id: string;
7811
8404
  collection: string;
8405
+ id: string;
7812
8406
  data: Record<string, unknown>;
7813
8407
  };
7814
8408
  output: {
@@ -7818,8 +8412,8 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
7818
8412
  }>;
7819
8413
  delete: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
7820
8414
  input: {
7821
- key: string;
7822
8415
  collection: string;
8416
+ key: string;
7823
8417
  };
7824
8418
  output: {
7825
8419
  success: true;
@@ -7865,13 +8459,13 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
7865
8459
  emit: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
7866
8460
  input: {
7867
8461
  id: string;
7868
- category: string;
7869
- data: Record<string, unknown>;
7870
8462
  timestamp: string;
7871
8463
  source: {
7872
8464
  type: string;
7873
8465
  id: string;
7874
8466
  };
8467
+ category: string;
8468
+ data: Record<string, unknown>;
7875
8469
  };
7876
8470
  output: {
7877
8471
  ok: true;
@@ -7891,8 +8485,8 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
7891
8485
  scope: {
7892
8486
  type: "system";
7893
8487
  } | {
7894
- deviceId: number;
7895
8488
  type: "device";
8489
+ deviceId: number;
7896
8490
  } | {
7897
8491
  type: "provider";
7898
8492
  providerId: string;
@@ -7910,11 +8504,12 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
7910
8504
  }>;
7911
8505
  completions: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
7912
8506
  input: {
8507
+ partial: string;
7913
8508
  scope: {
7914
8509
  type: "system";
7915
8510
  } | {
7916
- deviceId: number;
7917
8511
  type: "device";
8512
+ deviceId: number;
7918
8513
  } | {
7919
8514
  type: "provider";
7920
8515
  providerId: string;
@@ -7922,7 +8517,6 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
7922
8517
  type: "addon";
7923
8518
  addonId: string;
7924
8519
  };
7925
- partial: string;
7926
8520
  };
7927
8521
  output: readonly string[];
7928
8522
  meta: object;
@@ -7934,18 +8528,44 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
7934
8528
  errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
7935
8529
  transformer: true;
7936
8530
  }, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
8531
+ listDestinations: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
8532
+ input: {
8533
+ nodeId?: string | undefined;
8534
+ } | undefined;
8535
+ output: readonly {
8536
+ subId: string;
8537
+ displayName: string;
8538
+ kind: string;
8539
+ triggerSupported: boolean;
8540
+ restoreSupported: boolean;
8541
+ id: string;
8542
+ addonId: string;
8543
+ enabled: boolean;
8544
+ retentionCount: number;
8545
+ description?: string | undefined;
8546
+ label?: string | undefined;
8547
+ lastSuccessAt?: number | undefined;
8548
+ lastSuccessSizeBytes?: number | undefined;
8549
+ cron?: string | undefined;
8550
+ nextRunAt?: number | undefined;
8551
+ lastRunAt?: number | undefined;
8552
+ }[];
8553
+ meta: object;
8554
+ }>;
7937
8555
  trigger: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
7938
8556
  input: {
8557
+ destinations?: string[] | undefined;
7939
8558
  locations?: string[] | undefined;
7940
8559
  label?: string | undefined;
7941
8560
  } | undefined;
7942
- output: {
8561
+ output: readonly {
7943
8562
  id: string;
7944
8563
  createdAt: number;
7945
8564
  sizeBytes: number;
8565
+ destinationId?: string | undefined;
7946
8566
  label?: string | undefined;
7947
8567
  locations?: string[] | undefined;
7948
- };
8568
+ }[];
7949
8569
  meta: object;
7950
8570
  }>;
7951
8571
  list: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
@@ -7956,15 +8576,52 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
7956
8576
  id: string;
7957
8577
  createdAt: number;
7958
8578
  sizeBytes: number;
8579
+ destinationId?: string | undefined;
7959
8580
  label?: string | undefined;
7960
8581
  locations?: string[] | undefined;
7961
8582
  }[];
7962
8583
  meta: object;
7963
8584
  }>;
8585
+ listLocations: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
8586
+ input: {
8587
+ nodeId?: string | undefined;
8588
+ } | undefined;
8589
+ output: readonly {
8590
+ name: string;
8591
+ sizeBytes: number;
8592
+ fileCount: number;
8593
+ present: boolean;
8594
+ }[];
8595
+ meta: object;
8596
+ }>;
8597
+ getEntries: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
8598
+ input: {
8599
+ [x: string]: unknown;
8600
+ destinationId: string;
8601
+ backupId: string;
8602
+ };
8603
+ output: {
8604
+ archiveVersion: 1;
8605
+ createdAt: number;
8606
+ dataDir: string;
8607
+ locations: string[];
8608
+ entries: {
8609
+ path: string;
8610
+ kind: "file" | "dir" | "symlink";
8611
+ sizeBytes: number;
8612
+ mtime: number;
8613
+ }[];
8614
+ totalBytes: number;
8615
+ totalFiles: number;
8616
+ } | null;
8617
+ meta: object;
8618
+ }>;
7964
8619
  restore: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
7965
8620
  input: {
7966
8621
  [x: string]: unknown;
8622
+ destinationId: string;
7967
8623
  backupId: string;
8624
+ locations?: string[] | undefined;
7968
8625
  };
7969
8626
  output: void;
7970
8627
  meta: object;
@@ -7972,11 +8629,179 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
7972
8629
  delete: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
7973
8630
  input: {
7974
8631
  [x: string]: unknown;
8632
+ destinationId: string;
7975
8633
  backupId: string;
7976
8634
  };
7977
8635
  output: void;
7978
8636
  meta: object;
7979
8637
  }>;
8638
+ listArchives: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
8639
+ input: {
8640
+ [x: string]: unknown;
8641
+ destinationId: string;
8642
+ };
8643
+ output: readonly {
8644
+ id: string;
8645
+ filename: string;
8646
+ createdAt: number;
8647
+ sizeBytes: number;
8648
+ locations: readonly string[];
8649
+ label?: string | undefined;
8650
+ }[];
8651
+ meta: object;
8652
+ }>;
8653
+ upsertDestinationPolicy: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
8654
+ input: {
8655
+ [x: string]: unknown;
8656
+ locationId: string;
8657
+ enabled: boolean;
8658
+ retentionCount: number;
8659
+ label?: string | undefined;
8660
+ cron?: string | undefined;
8661
+ };
8662
+ output: void;
8663
+ meta: object;
8664
+ }>;
8665
+ previewSchedule: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
8666
+ input: {
8667
+ [x: string]: unknown;
8668
+ cron: string;
8669
+ count?: number | undefined;
8670
+ };
8671
+ output: {
8672
+ ok: boolean;
8673
+ nextRuns: readonly number[];
8674
+ error?: string | undefined;
8675
+ };
8676
+ meta: object;
8677
+ }>;
8678
+ }>>;
8679
+ authentication: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
8680
+ ctx: import("@camstack/types").TrpcContext;
8681
+ meta: object;
8682
+ errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
8683
+ transformer: true;
8684
+ }, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
8685
+ listProviders: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
8686
+ input: {
8687
+ nodeId?: string | undefined;
8688
+ } | undefined;
8689
+ output: readonly {
8690
+ addonId: string;
8691
+ displayName: string;
8692
+ kind: "other" | "local" | "oidc" | "saml" | "ldap";
8693
+ hasRedirectFlow: boolean;
8694
+ hasCredentialFlow: boolean;
8695
+ enabled: boolean;
8696
+ icon?: string | undefined;
8697
+ status?: string | undefined;
8698
+ }[];
8699
+ meta: object;
8700
+ }>;
8701
+ setProviderEnabled: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
8702
+ input: {
8703
+ [x: string]: unknown;
8704
+ addonId: string;
8705
+ enabled: boolean;
8706
+ };
8707
+ output: {
8708
+ success: true;
8709
+ };
8710
+ meta: object;
8711
+ }>;
8712
+ }>>;
8713
+ remoteAccess: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
8714
+ ctx: import("@camstack/types").TrpcContext;
8715
+ meta: object;
8716
+ errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
8717
+ transformer: true;
8718
+ }, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
8719
+ listProviders: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
8720
+ input: {
8721
+ nodeId?: string | undefined;
8722
+ } | undefined;
8723
+ output: readonly {
8724
+ addonId: string;
8725
+ displayName: string;
8726
+ kind: "other" | "tailscale" | "cloudflare-tunnel" | "ngrok";
8727
+ enabled: boolean;
8728
+ connected: boolean;
8729
+ endpoint: {
8730
+ url: string;
8731
+ hostname: string;
8732
+ port: number;
8733
+ protocol: "https" | "http";
8734
+ } | null;
8735
+ error?: string | undefined;
8736
+ }[];
8737
+ meta: object;
8738
+ }>;
8739
+ startProvider: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
8740
+ input: {
8741
+ [x: string]: unknown;
8742
+ addonId: string;
8743
+ };
8744
+ output: {
8745
+ url: string;
8746
+ hostname: string;
8747
+ port: number;
8748
+ protocol: "https" | "http";
8749
+ };
8750
+ meta: object;
8751
+ }>;
8752
+ stopProvider: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
8753
+ input: {
8754
+ [x: string]: unknown;
8755
+ addonId: string;
8756
+ };
8757
+ output: {
8758
+ success: true;
8759
+ };
8760
+ meta: object;
8761
+ }>;
8762
+ }>>;
8763
+ turnOrchestrator: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
8764
+ ctx: import("@camstack/types").TrpcContext;
8765
+ meta: object;
8766
+ errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
8767
+ transformer: true;
8768
+ }, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
8769
+ listProviders: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
8770
+ input: {
8771
+ nodeId?: string | undefined;
8772
+ } | undefined;
8773
+ output: readonly {
8774
+ addonId: string;
8775
+ displayName: string;
8776
+ kind: "other" | "cloudflare" | "coturn" | "twilio";
8777
+ enabled: boolean;
8778
+ serverCount: number;
8779
+ error?: string | undefined;
8780
+ }[];
8781
+ meta: object;
8782
+ }>;
8783
+ getAllServers: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
8784
+ input: {
8785
+ nodeId?: string | undefined;
8786
+ } | undefined;
8787
+ output: readonly {
8788
+ urls: string | string[];
8789
+ username?: string | undefined;
8790
+ credential?: string | undefined;
8791
+ }[];
8792
+ meta: object;
8793
+ }>;
8794
+ setProviderEnabled: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
8795
+ input: {
8796
+ [x: string]: unknown;
8797
+ addonId: string;
8798
+ enabled: boolean;
8799
+ };
8800
+ output: {
8801
+ success: true;
8802
+ };
8803
+ meta: object;
8804
+ }>;
7980
8805
  }>>;
7981
8806
  settingsStore: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
7982
8807
  ctx: import("@camstack/types").TrpcContext;
@@ -9020,15 +9845,15 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
9020
9845
  }, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
9021
9846
  getRecent: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
9022
9847
  input: {
9023
- deviceId?: number | undefined;
9024
- category?: string | string[] | undefined;
9025
- addonId?: string | undefined;
9026
- limit?: number | undefined;
9027
9848
  source?: {
9028
9849
  type: string;
9029
9850
  id: string | number;
9030
9851
  } | undefined;
9031
9852
  agentId?: string | undefined;
9853
+ addonId?: string | undefined;
9854
+ deviceId?: number | undefined;
9855
+ category?: string | string[] | undefined;
9856
+ limit?: number | undefined;
9032
9857
  };
9033
9858
  output: {
9034
9859
  id: string;
@@ -9047,14 +9872,14 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
9047
9872
  }>;
9048
9873
  subscribe: import("@trpc/server/unstable-core-do-not-import").SubscriptionProcedure<{
9049
9874
  input: {
9050
- deviceId?: number | undefined;
9051
- category?: string | undefined;
9052
- addonId?: string | undefined;
9053
9875
  source?: {
9054
9876
  type: string;
9055
9877
  id: string | number;
9056
9878
  } | undefined;
9057
9879
  agentId?: string | undefined;
9880
+ addonId?: string | undefined;
9881
+ deviceId?: number | undefined;
9882
+ category?: string | undefined;
9058
9883
  };
9059
9884
  output: AsyncIterable<unknown, any, any>;
9060
9885
  meta: object;
@@ -9645,23 +10470,23 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
9645
10470
  };
9646
10471
  output: {
9647
10472
  quality: "high" | "mid" | "low";
9648
- codec?: string | undefined;
9649
- bitrateKbps?: number | undefined;
9650
- fps?: number | undefined;
9651
10473
  width?: number | undefined;
9652
10474
  height?: number | undefined;
10475
+ codec?: string | undefined;
10476
+ fps?: number | undefined;
10477
+ bitrateKbps?: number | undefined;
9653
10478
  };
9654
10479
  meta: object;
9655
10480
  }>;
9656
10481
  probeField: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
9657
10482
  input: {
9658
10483
  key: string;
9659
- value?: unknown;
10484
+ value: unknown;
9660
10485
  };
9661
10486
  output: {
9662
10487
  status: "error" | "ok";
9663
- error?: string | undefined;
9664
10488
  labels?: string[] | undefined;
10489
+ error?: string | undefined;
9665
10490
  };
9666
10491
  meta: object;
9667
10492
  }>;
@@ -9847,7 +10672,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
9847
10672
  severity: "success" | "error" | "info" | "warning";
9848
10673
  title: string;
9849
10674
  message: string;
9850
- status: "active" | "in-progress" | "completed" | "failed" | "dismissed";
10675
+ status: "active" | "failed" | "in-progress" | "completed" | "dismissed";
9851
10676
  read: boolean;
9852
10677
  createdAt: number;
9853
10678
  updatedAt: number;
@@ -9871,7 +10696,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
9871
10696
  severity?: "success" | "error" | "info" | "warning" | undefined;
9872
10697
  title?: string | undefined;
9873
10698
  message?: string | undefined;
9874
- status?: "active" | "in-progress" | "completed" | "failed" | "dismissed" | undefined;
10699
+ status?: "active" | "failed" | "in-progress" | "completed" | "dismissed" | undefined;
9875
10700
  progress?: number | undefined;
9876
10701
  read?: boolean | undefined;
9877
10702
  createdAt?: number | undefined;
@@ -9897,7 +10722,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
9897
10722
  severity: "success" | "error" | "info" | "warning";
9898
10723
  title: string;
9899
10724
  message: string;
9900
- status: "active" | "in-progress" | "completed" | "failed" | "dismissed";
10725
+ status: "active" | "failed" | "in-progress" | "completed" | "dismissed";
9901
10726
  read: boolean;
9902
10727
  createdAt: number;
9903
10728
  updatedAt: number;
@@ -9988,56 +10813,207 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
9988
10813
  };
9989
10814
  meta: object;
9990
10815
  }>;
9991
- getHardware: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
10816
+ getHardware: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
10817
+ input: {
10818
+ nodeId?: string | undefined;
10819
+ } | undefined;
10820
+ output: {
10821
+ platform: "darwin" | "linux" | "win32";
10822
+ arch: "arm64" | "x64";
10823
+ cpuModel: string;
10824
+ cpuCores: number;
10825
+ totalRAM_MB: number;
10826
+ availableRAM_MB: number;
10827
+ gpu: {
10828
+ type: "nvidia" | "amd" | "intel" | "apple";
10829
+ name: string;
10830
+ memoryMB?: number | undefined;
10831
+ } | null;
10832
+ npu: {
10833
+ type: "apple-ane" | "intel-npu";
10834
+ } | null;
10835
+ };
10836
+ meta: object;
10837
+ }>;
10838
+ resolveInferenceConfig: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
10839
+ input: {
10840
+ [x: string]: unknown;
10841
+ requirements: readonly {
10842
+ modelId: string;
10843
+ name: string;
10844
+ minRAM_MB: number;
10845
+ accuracyScore: number;
10846
+ formats: readonly string[];
10847
+ }[];
10848
+ };
10849
+ output: {
10850
+ modelId: string;
10851
+ runtime: "node" | "python";
10852
+ backend: string;
10853
+ format: "onnx" | "coreml" | "openvino" | "tflite" | "pt";
10854
+ reason: string;
10855
+ };
10856
+ meta: object;
10857
+ }>;
10858
+ resolveHwAccel: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
10859
+ input: {
10860
+ [x: string]: unknown;
10861
+ prefer?: "none" | "videotoolbox" | "cuda" | "nvdec" | "vaapi" | "qsv" | "d3d11va" | "dxva2" | "amf" | "vdpau" | "drm" | "coreml" | "openvino" | "tensorrt" | "directml" | "webgpu" | null | undefined;
10862
+ nodeId?: string | undefined;
10863
+ };
10864
+ output: {
10865
+ preferred: readonly string[];
10866
+ };
10867
+ meta: object;
10868
+ }>;
10869
+ }>>;
10870
+ localNetwork: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
10871
+ ctx: import("@camstack/types").TrpcContext;
10872
+ meta: object;
10873
+ errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
10874
+ transformer: true;
10875
+ }, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
10876
+ list: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
10877
+ input: {
10878
+ nodeId?: string | undefined;
10879
+ } | undefined;
10880
+ output: {
10881
+ interfaces: readonly {
10882
+ name: string;
10883
+ family: "IPv4" | "IPv6";
10884
+ address: string;
10885
+ cidr: string;
10886
+ netmask: string;
10887
+ internal: boolean;
10888
+ mac: string;
10889
+ kind: "other" | "lan" | "vpn" | "wifi" | "docker" | "loopback";
10890
+ preferred: boolean;
10891
+ plausible: boolean;
10892
+ plausibleReason: string;
10893
+ }[];
10894
+ probedAt: number;
10895
+ };
10896
+ meta: object;
10897
+ }>;
10898
+ getPreferred: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
10899
+ input: {
10900
+ nodeId?: string | undefined;
10901
+ } | undefined;
10902
+ output: {
10903
+ name: string;
10904
+ family: "IPv4" | "IPv6";
10905
+ address: string;
10906
+ cidr: string;
10907
+ netmask: string;
10908
+ internal: boolean;
10909
+ mac: string;
10910
+ kind: "other" | "lan" | "vpn" | "wifi" | "docker" | "loopback";
10911
+ preferred: boolean;
10912
+ plausible: boolean;
10913
+ plausibleReason: string;
10914
+ } | null;
10915
+ meta: object;
10916
+ }>;
10917
+ getConnectionEndpoints: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
10918
+ input: {
10919
+ [x: string]: unknown;
10920
+ port: number;
10921
+ includeLoopback?: boolean | undefined;
10922
+ ipv4Only?: boolean | undefined;
10923
+ scheme?: "https" | "http" | undefined;
10924
+ };
10925
+ output: {
10926
+ endpoints: readonly {
10927
+ label: string;
10928
+ baseUrl: string;
10929
+ kind: "public" | "loopback" | "lan-ipv4" | "lan-ipv6";
10930
+ interfaceKind: "public" | "other" | "lan" | "vpn" | "wifi" | "docker" | "loopback";
10931
+ plausible: boolean;
10932
+ plausibleReason: string;
10933
+ priority: number;
10934
+ }[];
10935
+ };
10936
+ meta: object;
10937
+ }>;
10938
+ getAllowedAddresses: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
9992
10939
  input: {
9993
10940
  nodeId?: string | undefined;
9994
10941
  } | undefined;
9995
10942
  output: {
9996
- platform: "darwin" | "linux" | "win32";
9997
- arch: "arm64" | "x64";
9998
- cpuModel: string;
9999
- cpuCores: number;
10000
- totalRAM_MB: number;
10001
- availableRAM_MB: number;
10002
- gpu: {
10003
- type: "nvidia" | "amd" | "intel" | "apple";
10004
- name: string;
10005
- memoryMB?: number | undefined;
10006
- } | null;
10007
- npu: {
10008
- type: "apple-ane" | "intel-npu";
10009
- } | null;
10943
+ addresses: readonly string[];
10010
10944
  };
10011
10945
  meta: object;
10012
10946
  }>;
10013
- resolveInferenceConfig: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
10947
+ setAllowedAddresses: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
10014
10948
  input: {
10015
10949
  [x: string]: unknown;
10016
- requirements: readonly {
10017
- modelId: string;
10018
- name: string;
10019
- minRAM_MB: number;
10020
- accuracyScore: number;
10021
- formats: readonly string[];
10950
+ addresses: readonly string[];
10951
+ };
10952
+ output: {
10953
+ success: true;
10954
+ };
10955
+ meta: object;
10956
+ }>;
10957
+ resetAllowlistToBestMatch: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
10958
+ input: {
10959
+ nodeId?: string | undefined;
10960
+ } | undefined;
10961
+ output: {
10962
+ addresses: readonly string[];
10963
+ };
10964
+ meta: object;
10965
+ }>;
10966
+ }>>;
10967
+ meshOrchestrator: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
10968
+ ctx: import("@camstack/types").TrpcContext;
10969
+ meta: object;
10970
+ errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
10971
+ transformer: true;
10972
+ }, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
10973
+ listProviders: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
10974
+ input: {
10975
+ nodeId?: string | undefined;
10976
+ } | undefined;
10977
+ output: readonly {
10978
+ addonId: string;
10979
+ displayName: string;
10980
+ kind: "other" | "tailscale" | "headscale" | "zerotier";
10981
+ joined: boolean;
10982
+ meshIp: string;
10983
+ magicDnsHostname: string;
10984
+ peerCount: number;
10985
+ endpoints: readonly {
10986
+ id: string;
10987
+ label: string;
10988
+ scope: "public" | "mesh";
10989
+ url: string;
10990
+ hostname: string;
10991
+ port: number;
10992
+ protocol: "https" | "http";
10022
10993
  }[];
10994
+ error?: string | undefined;
10995
+ }[];
10996
+ meta: object;
10997
+ }>;
10998
+ joinProvider: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
10999
+ input: {
11000
+ [x: string]: unknown;
11001
+ addonId: string;
11002
+ authKey: string;
11003
+ hostname?: string | undefined;
10023
11004
  };
10024
11005
  output: {
10025
- modelId: string;
10026
- runtime: "node" | "python";
10027
- backend: string;
10028
- format: "onnx" | "coreml" | "openvino" | "tflite" | "pt";
10029
- reason: string;
11006
+ joined: true;
10030
11007
  };
10031
11008
  meta: object;
10032
11009
  }>;
10033
- resolveHwAccel: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
11010
+ leaveProvider: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
10034
11011
  input: {
10035
11012
  [x: string]: unknown;
10036
- prefer?: "none" | "videotoolbox" | "cuda" | "nvdec" | "vaapi" | "qsv" | "d3d11va" | "dxva2" | "amf" | "vdpau" | "drm" | "coreml" | "openvino" | "tensorrt" | "directml" | "webgpu" | null | undefined;
10037
- nodeId?: string | undefined;
11013
+ addonId: string;
10038
11014
  };
10039
11015
  output: {
10040
- preferred: readonly string[];
11016
+ success: true;
10041
11017
  };
10042
11018
  meta: object;
10043
11019
  }>;
@@ -10062,8 +11038,8 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
10062
11038
  }>;
10063
11039
  setActiveSingleton: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
10064
11040
  input: {
10065
- addonId: string;
10066
11041
  capability: string;
11042
+ addonId: string;
10067
11043
  };
10068
11044
  output: void;
10069
11045
  meta: object;
@@ -10079,8 +11055,8 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
10079
11055
  setDeviceCapability: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
10080
11056
  input: {
10081
11057
  deviceId: string;
10082
- addonId: string;
10083
11058
  capability: string;
11059
+ addonId: string;
10084
11060
  };
10085
11061
  output: void;
10086
11062
  meta: object;
@@ -10126,48 +11102,48 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
10126
11102
  }, import("@trpc/server/unstable-core-do-not-import").DecorateCreateRouterOptions<{
10127
11103
  query: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
10128
11104
  input: {
10129
- limit?: number | undefined;
11105
+ level?: "error" | "info" | "debug" | "warn" | undefined;
10130
11106
  since?: number | undefined;
10131
11107
  until?: number | undefined;
10132
- level?: "error" | "info" | "debug" | "warn" | undefined;
11108
+ limit?: number | undefined;
10133
11109
  tags?: {
10134
- deviceId?: string | number | undefined;
10135
- nodeId?: string | undefined;
10136
- addonId?: string | undefined;
10137
- streamId?: string | undefined;
10138
11110
  agentId?: string | undefined;
10139
- sessionId?: string | undefined;
11111
+ nodeId?: string | undefined;
11112
+ deviceId?: string | number | undefined;
10140
11113
  deviceName?: string | undefined;
10141
11114
  integrationId?: string | undefined;
11115
+ addonId?: string | undefined;
11116
+ streamId?: string | undefined;
10142
11117
  streamName?: string | undefined;
11118
+ sessionId?: string | undefined;
10143
11119
  requestId?: string | undefined;
10144
11120
  } | undefined;
10145
11121
  };
10146
11122
  output: {
10147
- message: string;
10148
11123
  timestamp: string;
10149
11124
  level: string;
10150
- meta?: Record<string, unknown> | undefined;
11125
+ message: string;
10151
11126
  scope?: string | undefined;
10152
11127
  tags?: Record<string, string | undefined> | undefined;
11128
+ meta?: Record<string, unknown> | undefined;
10153
11129
  }[];
10154
11130
  meta: object;
10155
11131
  }>;
10156
11132
  clear: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
10157
11133
  input: {
11134
+ level?: "error" | "info" | "debug" | "warn" | undefined;
10158
11135
  since?: number | undefined;
10159
11136
  until?: number | undefined;
10160
- level?: "error" | "info" | "debug" | "warn" | undefined;
10161
11137
  tags?: {
10162
- deviceId?: string | number | undefined;
10163
- nodeId?: string | undefined;
10164
- addonId?: string | undefined;
10165
- streamId?: string | undefined;
10166
11138
  agentId?: string | undefined;
10167
- sessionId?: string | undefined;
11139
+ nodeId?: string | undefined;
11140
+ deviceId?: string | number | undefined;
10168
11141
  deviceName?: string | undefined;
10169
11142
  integrationId?: string | undefined;
11143
+ addonId?: string | undefined;
11144
+ streamId?: string | undefined;
10170
11145
  streamName?: string | undefined;
11146
+ sessionId?: string | undefined;
10171
11147
  requestId?: string | undefined;
10172
11148
  } | undefined;
10173
11149
  };
@@ -10180,15 +11156,15 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
10180
11156
  input: {
10181
11157
  level?: "error" | "info" | "debug" | "warn" | undefined;
10182
11158
  tags?: {
10183
- deviceId?: string | number | undefined;
10184
- nodeId?: string | undefined;
10185
- addonId?: string | undefined;
10186
- streamId?: string | undefined;
10187
11159
  agentId?: string | undefined;
10188
- sessionId?: string | undefined;
11160
+ nodeId?: string | undefined;
11161
+ deviceId?: string | number | undefined;
10189
11162
  deviceName?: string | undefined;
10190
11163
  integrationId?: string | undefined;
11164
+ addonId?: string | undefined;
11165
+ streamId?: string | undefined;
10191
11166
  streamName?: string | undefined;
11167
+ sessionId?: string | undefined;
10192
11168
  requestId?: string | undefined;
10193
11169
  } | undefined;
10194
11170
  };
@@ -10592,6 +11568,11 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
10592
11568
  color?: string | undefined;
10593
11569
  capabilities?: readonly unknown[] | undefined;
10594
11570
  packageDisplayName?: string | undefined;
11571
+ bundle?: {
11572
+ displayName: string;
11573
+ description?: string | undefined;
11574
+ icon?: string | undefined;
11575
+ } | undefined;
10595
11576
  protected?: boolean | undefined;
10596
11577
  removable?: boolean | undefined;
10597
11578
  };
@@ -10603,6 +11584,21 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
10603
11584
  state: string;
10604
11585
  pid?: number | undefined;
10605
11586
  } | undefined;
11587
+ hasBackup?: boolean | undefined;
11588
+ health?: {
11589
+ phase: "failed" | "pending" | "healthy";
11590
+ retryCount: number;
11591
+ firstFailureAt: number | null;
11592
+ lastAttemptAt: number | null;
11593
+ lastError: {
11594
+ message: string;
11595
+ stack?: string | undefined;
11596
+ } | null;
11597
+ nextRetryAt: number | null;
11598
+ alertEmitted: boolean;
11599
+ retrying: boolean;
11600
+ inGracePeriod: boolean;
11601
+ } | null | undefined;
10606
11602
  }[];
10607
11603
  meta: object;
10608
11604
  }>;
@@ -10713,6 +11709,16 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
10713
11709
  output: unknown;
10714
11710
  meta: object;
10715
11711
  }>;
11712
+ rollbackPackage: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
11713
+ input: {
11714
+ [x: string]: unknown;
11715
+ name: string;
11716
+ };
11717
+ output: {
11718
+ rolledBackTo: string | null;
11719
+ };
11720
+ meta: object;
11721
+ }>;
10716
11722
  forceRefresh: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
10717
11723
  input: {
10718
11724
  nodeId?: string | undefined;
@@ -10749,6 +11755,16 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
10749
11755
  output: unknown;
10750
11756
  meta: object;
10751
11757
  }>;
11758
+ retryLoad: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
11759
+ input: {
11760
+ [x: string]: unknown;
11761
+ packageName: string;
11762
+ };
11763
+ output: {
11764
+ success: true;
11765
+ };
11766
+ meta: object;
11767
+ }>;
10752
11768
  getAutoUpdateSettings: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
10753
11769
  input: {
10754
11770
  nodeId?: string | undefined;
@@ -12691,7 +13707,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
12691
13707
  resolve: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
12692
13708
  input: {
12693
13709
  [x: string]: unknown;
12694
- location: "data" | "recordings" | "models" | "media" | "cache" | "logs" | "addons-data";
13710
+ location: string;
12695
13711
  relativePath: string;
12696
13712
  };
12697
13713
  output: string;
@@ -12700,8 +13716,9 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
12700
13716
  write: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
12701
13717
  input: {
12702
13718
  [x: string]: unknown;
12703
- location: "data" | "recordings" | "models" | "media" | "cache" | "logs" | "addons-data";
13719
+ location: string;
12704
13720
  relativePath: string;
13721
+ data: Uint8Array<ArrayBuffer>;
12705
13722
  };
12706
13723
  output: void;
12707
13724
  meta: object;
@@ -12709,7 +13726,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
12709
13726
  read: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
12710
13727
  input: {
12711
13728
  [x: string]: unknown;
12712
- location: "data" | "recordings" | "models" | "media" | "cache" | "logs" | "addons-data";
13729
+ location: string;
12713
13730
  relativePath: string;
12714
13731
  };
12715
13732
  output: Uint8Array<ArrayBuffer>;
@@ -12718,7 +13735,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
12718
13735
  exists: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
12719
13736
  input: {
12720
13737
  [x: string]: unknown;
12721
- location: "data" | "recordings" | "models" | "media" | "cache" | "logs" | "addons-data";
13738
+ location: string;
12722
13739
  relativePath: string;
12723
13740
  };
12724
13741
  output: boolean;
@@ -12727,7 +13744,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
12727
13744
  list: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
12728
13745
  input: {
12729
13746
  [x: string]: unknown;
12730
- location: "data" | "recordings" | "models" | "media" | "cache" | "logs" | "addons-data";
13747
+ location: string;
12731
13748
  prefix?: string | undefined;
12732
13749
  };
12733
13750
  output: readonly string[];
@@ -12736,7 +13753,7 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
12736
13753
  delete: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
12737
13754
  input: {
12738
13755
  [x: string]: unknown;
12739
- location: "data" | "recordings" | "models" | "media" | "cache" | "logs" | "addons-data";
13756
+ location: string;
12740
13757
  relativePath: string;
12741
13758
  };
12742
13759
  output: void;
@@ -12745,11 +13762,182 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
12745
13762
  getAvailableSpace: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
12746
13763
  input: {
12747
13764
  [x: string]: unknown;
12748
- location: "data" | "recordings" | "models" | "media" | "cache" | "logs" | "addons-data";
13765
+ location: string;
12749
13766
  };
12750
13767
  output: number | null;
12751
13768
  meta: object;
12752
13769
  }>;
13770
+ beginUpload: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
13771
+ input: {
13772
+ [x: string]: unknown;
13773
+ location: string;
13774
+ relativePath: string;
13775
+ sizeBytes?: number | undefined;
13776
+ };
13777
+ output: {
13778
+ uploadId: string;
13779
+ };
13780
+ meta: object;
13781
+ }>;
13782
+ writeChunk: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
13783
+ input: {
13784
+ [x: string]: unknown;
13785
+ uploadId: string;
13786
+ offset: number;
13787
+ data: Uint8Array<ArrayBuffer>;
13788
+ };
13789
+ output: void;
13790
+ meta: object;
13791
+ }>;
13792
+ finalizeUpload: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
13793
+ input: {
13794
+ [x: string]: unknown;
13795
+ uploadId: string;
13796
+ };
13797
+ output: void;
13798
+ meta: object;
13799
+ }>;
13800
+ abortUpload: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
13801
+ input: {
13802
+ [x: string]: unknown;
13803
+ uploadId: string;
13804
+ };
13805
+ output: void;
13806
+ meta: object;
13807
+ }>;
13808
+ beginDownload: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
13809
+ input: {
13810
+ [x: string]: unknown;
13811
+ location: string;
13812
+ relativePath: string;
13813
+ };
13814
+ output: {
13815
+ downloadId: string;
13816
+ sizeBytes: number;
13817
+ };
13818
+ meta: object;
13819
+ }>;
13820
+ readChunk: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
13821
+ input: {
13822
+ [x: string]: unknown;
13823
+ downloadId: string;
13824
+ offset: number;
13825
+ length: number;
13826
+ };
13827
+ output: Uint8Array<ArrayBuffer>;
13828
+ meta: object;
13829
+ }>;
13830
+ endDownload: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
13831
+ input: {
13832
+ [x: string]: unknown;
13833
+ downloadId: string;
13834
+ };
13835
+ output: void;
13836
+ meta: object;
13837
+ }>;
13838
+ listLocations: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
13839
+ input: {
13840
+ [x: string]: unknown;
13841
+ type?: "data" | "recordings" | "models" | "media" | "cache" | "logs" | "recordings-high" | "recordings-low" | "recordings-clips" | "event-images" | "addons-data" | "backups" | undefined;
13842
+ };
13843
+ output: readonly {
13844
+ id: string;
13845
+ type: "data" | "recordings" | "models" | "media" | "cache" | "logs" | "recordings-high" | "recordings-low" | "recordings-clips" | "event-images" | "addons-data" | "backups";
13846
+ displayName: string;
13847
+ providerId: string;
13848
+ config: Record<string, unknown>;
13849
+ isDefault: boolean;
13850
+ isSystem: boolean;
13851
+ createdAt: number;
13852
+ updatedAt: number;
13853
+ }[];
13854
+ meta: object;
13855
+ }>;
13856
+ getDefaultLocation: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
13857
+ input: {
13858
+ [x: string]: unknown;
13859
+ type: "data" | "recordings" | "models" | "media" | "cache" | "logs" | "recordings-high" | "recordings-low" | "recordings-clips" | "event-images" | "addons-data" | "backups";
13860
+ };
13861
+ output: {
13862
+ id: string;
13863
+ type: "data" | "recordings" | "models" | "media" | "cache" | "logs" | "recordings-high" | "recordings-low" | "recordings-clips" | "event-images" | "addons-data" | "backups";
13864
+ displayName: string;
13865
+ providerId: string;
13866
+ config: Record<string, unknown>;
13867
+ isDefault: boolean;
13868
+ isSystem: boolean;
13869
+ createdAt: number;
13870
+ updatedAt: number;
13871
+ } | null;
13872
+ meta: object;
13873
+ }>;
13874
+ upsertLocation: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
13875
+ input: {
13876
+ [x: string]: unknown;
13877
+ type: "data" | "recordings" | "models" | "media" | "cache" | "logs" | "recordings-high" | "recordings-low" | "recordings-clips" | "event-images" | "addons-data" | "backups";
13878
+ id: string;
13879
+ displayName: string;
13880
+ providerId: string;
13881
+ config: Record<string, unknown>;
13882
+ isDefault?: boolean | undefined;
13883
+ isSystem?: boolean | undefined;
13884
+ };
13885
+ output: {
13886
+ id: string;
13887
+ type: "data" | "recordings" | "models" | "media" | "cache" | "logs" | "recordings-high" | "recordings-low" | "recordings-clips" | "event-images" | "addons-data" | "backups";
13888
+ displayName: string;
13889
+ providerId: string;
13890
+ config: Record<string, unknown>;
13891
+ isDefault: boolean;
13892
+ isSystem: boolean;
13893
+ createdAt: number;
13894
+ updatedAt: number;
13895
+ };
13896
+ meta: object;
13897
+ }>;
13898
+ deleteLocation: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
13899
+ input: {
13900
+ [x: string]: unknown;
13901
+ id: string;
13902
+ };
13903
+ output: void;
13904
+ meta: object;
13905
+ }>;
13906
+ testLocation: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
13907
+ input: {
13908
+ [x: string]: unknown;
13909
+ id: string;
13910
+ };
13911
+ output: {
13912
+ ok: boolean;
13913
+ error?: string | undefined;
13914
+ };
13915
+ meta: object;
13916
+ }>;
13917
+ listProviders: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
13918
+ input: {
13919
+ nodeId?: string | undefined;
13920
+ } | undefined;
13921
+ output: readonly {
13922
+ providerId: string;
13923
+ displayName: string;
13924
+ supportedLocationTypes: readonly ("data" | "recordings" | "models" | "media" | "cache" | "logs" | "recordings-high" | "recordings-low" | "recordings-clips" | "event-images" | "addons-data" | "backups")[];
13925
+ configSchema: unknown;
13926
+ }[];
13927
+ meta: object;
13928
+ }>;
13929
+ testConfig: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
13930
+ input: {
13931
+ [x: string]: unknown;
13932
+ providerId: string;
13933
+ config: Record<string, unknown>;
13934
+ };
13935
+ output: {
13936
+ ok: boolean;
13937
+ error?: string | undefined;
13938
+ };
13939
+ meta: object;
13940
+ }>;
12753
13941
  }>>;
12754
13942
  deviceManager: import("@trpc/server/unstable-core-do-not-import").BuiltRouter<{
12755
13943
  ctx: import("@camstack/types").TrpcContext;
@@ -13418,12 +14606,12 @@ export type AppRouter = import("@trpc/server/unstable-core-do-not-import").Route
13418
14606
  password: string;
13419
14607
  };
13420
14608
  output: {
14609
+ token: string;
13421
14610
  user: {
13422
14611
  id: string;
13423
14612
  username: string;
13424
14613
  role: "admin" | "viewer" | "super_admin" | "agent";
13425
14614
  };
13426
- token: string;
13427
14615
  };
13428
14616
  meta: object;
13429
14617
  }>;