@camstack/types 1.2.386 → 1.2.388
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +26 -16
- package/dist/addon.mjs +26 -16
- package/dist/auth/credential-scope.d.ts +37 -5
- package/dist/auth/principal-scope.d.ts +1 -1
- package/dist/capabilities/alarm-panel.cap.d.ts +10 -2
- package/dist/capabilities/capability-definition.d.ts +21 -3
- package/dist/capabilities/connectivity.cap.d.ts +10 -2
- package/dist/capabilities/device-history.cap.d.ts +195 -3
- package/dist/capabilities/dishwasher.cap.d.ts +17 -0
- package/dist/capabilities/enum-sensor.cap.d.ts +12 -2
- package/dist/capabilities/index.d.ts +6 -5
- package/dist/capabilities/llm.cap.d.ts +252 -309
- package/dist/capabilities/lock-control.cap.d.ts +9 -2
- package/dist/capabilities/log-destination.cap.d.ts +148 -19
- package/dist/capabilities/media-player.cap.d.ts +15 -2
- package/dist/capabilities/notification-rules.cap.d.ts +213 -13
- package/dist/capabilities/stream-params.cap.d.ts +24 -2
- package/dist/capabilities/user-management.cap.d.ts +4 -409
- package/dist/client.js +76 -11
- package/dist/client.mjs +76 -11
- package/dist/device/base-device.d.ts +34 -1
- package/dist/device/index.d.ts +2 -2
- package/dist/generated/addon-api.d.ts +548 -187
- package/dist/generated/cap-input-defaults.d.ts +1 -1
- package/dist/generated/collection-array-methods.d.ts +2 -2
- package/dist/generated/history-catalog.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +2 -2
- package/dist/generated/system-proxy.d.ts +2 -2
- package/dist/index.d.ts +5 -3
- package/dist/index.js +861 -164
- package/dist/index.mjs +815 -162
- package/dist/interfaces/addon-data-plane.d.ts +4 -4
- package/dist/interfaces/addon-peer-bytes.d.ts +1 -1
- package/dist/interfaces/logging.d.ts +16 -1
- package/dist/notification/media-image.d.ts +67 -0
- package/dist/schemas/auth-records.d.ts +1 -1
- package/dist/schemas/user-preferences.d.ts +103 -0
- package/dist/{sleep-BxjU_fJM.mjs → sleep-BSuCCFjf.mjs} +34 -5
- package/dist/{sleep-BE7_6UnC.js → sleep-DKtoyk6X.js} +34 -5
- package/package.json +1 -1
|
@@ -2400,6 +2400,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
2400
2400
|
output: z.infer<typeof deviceHistoryCapability.methods.queryNode.output>;
|
|
2401
2401
|
meta: object;
|
|
2402
2402
|
}>;
|
|
2403
|
+
queryMany: TRPCQueryProcedure<{
|
|
2404
|
+
input: {
|
|
2405
|
+
[x: string]: unknown;
|
|
2406
|
+
} & z.input<typeof deviceHistoryCapability.methods.queryMany.input>;
|
|
2407
|
+
output: z.infer<typeof deviceHistoryCapability.methods.queryMany.output>;
|
|
2408
|
+
meta: object;
|
|
2409
|
+
}>;
|
|
2403
2410
|
declareSeries: TRPCMutationProcedure<{
|
|
2404
2411
|
input: {
|
|
2405
2412
|
[x: string]: unknown;
|
|
@@ -4284,7 +4291,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
4284
4291
|
output: z.infer<typeof llmCapability.methods.testProfile.output>;
|
|
4285
4292
|
meta: object;
|
|
4286
4293
|
}>;
|
|
4287
|
-
listModels:
|
|
4294
|
+
listModels: TRPCMutationProcedure<{
|
|
4288
4295
|
input: {
|
|
4289
4296
|
[x: string]: unknown;
|
|
4290
4297
|
} & z.input<typeof llmCapability.methods.listModels.input>;
|
|
@@ -10351,34 +10358,6 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
10351
10358
|
output: z.infer<typeof userManagementCapability.methods.revokeApiKey.output>;
|
|
10352
10359
|
meta: object;
|
|
10353
10360
|
}>;
|
|
10354
|
-
createScopedToken: TRPCMutationProcedure<{
|
|
10355
|
-
input: {
|
|
10356
|
-
[x: string]: unknown;
|
|
10357
|
-
} & z.input<typeof userManagementCapability.methods.createScopedToken.input>;
|
|
10358
|
-
output: z.infer<typeof userManagementCapability.methods.createScopedToken.output>;
|
|
10359
|
-
meta: object;
|
|
10360
|
-
}>;
|
|
10361
|
-
revokeScopedToken: TRPCMutationProcedure<{
|
|
10362
|
-
input: {
|
|
10363
|
-
[x: string]: unknown;
|
|
10364
|
-
} & z.input<typeof userManagementCapability.methods.revokeScopedToken.input>;
|
|
10365
|
-
output: z.infer<typeof userManagementCapability.methods.revokeScopedToken.output>;
|
|
10366
|
-
meta: object;
|
|
10367
|
-
}>;
|
|
10368
|
-
validateScopedToken: TRPCQueryProcedure<{
|
|
10369
|
-
input: {
|
|
10370
|
-
[x: string]: unknown;
|
|
10371
|
-
} & z.input<typeof userManagementCapability.methods.validateScopedToken.input>;
|
|
10372
|
-
output: z.infer<typeof userManagementCapability.methods.validateScopedToken.output>;
|
|
10373
|
-
meta: object;
|
|
10374
|
-
}>;
|
|
10375
|
-
listScopedTokens: TRPCQueryProcedure<{
|
|
10376
|
-
input: {
|
|
10377
|
-
[x: string]: unknown;
|
|
10378
|
-
} & z.input<typeof userManagementCapability.methods.listScopedTokens.input>;
|
|
10379
|
-
output: z.infer<typeof userManagementCapability.methods.listScopedTokens.output>;
|
|
10380
|
-
meta: object;
|
|
10381
|
-
}>;
|
|
10382
10361
|
setupTotp: TRPCMutationProcedure<{
|
|
10383
10362
|
input: {
|
|
10384
10363
|
[x: string]: unknown;
|
|
@@ -11536,6 +11515,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11536
11515
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
11537
11516
|
query: import("@trpc/server").TRPCQueryProcedure<{
|
|
11538
11517
|
input: {
|
|
11518
|
+
source?: string | undefined;
|
|
11539
11519
|
level?: "error" | "debug" | "info" | "warn" | undefined;
|
|
11540
11520
|
since?: number | undefined;
|
|
11541
11521
|
until?: number | undefined;
|
|
@@ -11553,14 +11533,47 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11553
11533
|
sessionId?: string | undefined;
|
|
11554
11534
|
requestId?: string | undefined;
|
|
11555
11535
|
} | undefined;
|
|
11536
|
+
text?: string | undefined;
|
|
11537
|
+
before?: string | undefined;
|
|
11538
|
+
after?: string | undefined;
|
|
11539
|
+
budgetMs?: number | undefined;
|
|
11540
|
+
};
|
|
11541
|
+
output: {
|
|
11542
|
+
entries: {
|
|
11543
|
+
timestamp: string;
|
|
11544
|
+
level: string;
|
|
11545
|
+
message: string;
|
|
11546
|
+
id?: string | undefined;
|
|
11547
|
+
scope?: string | undefined;
|
|
11548
|
+
tags?: Record<string, string | undefined> | undefined;
|
|
11549
|
+
meta?: Record<string, unknown> | undefined;
|
|
11550
|
+
}[];
|
|
11551
|
+
nextBefore: string | null;
|
|
11552
|
+
nextAfter: string | null;
|
|
11553
|
+
scannedBytes: number;
|
|
11554
|
+
done: boolean;
|
|
11555
|
+
source: string;
|
|
11556
|
+
cancelled?: boolean | undefined;
|
|
11556
11557
|
};
|
|
11558
|
+
meta: object;
|
|
11559
|
+
}>;
|
|
11560
|
+
sources: import("@trpc/server").TRPCQueryProcedure<{
|
|
11561
|
+
input: void;
|
|
11557
11562
|
output: {
|
|
11558
|
-
|
|
11559
|
-
|
|
11560
|
-
|
|
11561
|
-
|
|
11562
|
-
|
|
11563
|
-
|
|
11563
|
+
addonId: string;
|
|
11564
|
+
readable: boolean;
|
|
11565
|
+
reason: string | null;
|
|
11566
|
+
isDefault: boolean;
|
|
11567
|
+
retentionDays: number | null;
|
|
11568
|
+
filters: {
|
|
11569
|
+
deviceId: boolean;
|
|
11570
|
+
addonId: boolean;
|
|
11571
|
+
nodeId: boolean;
|
|
11572
|
+
tags: boolean;
|
|
11573
|
+
level: boolean;
|
|
11574
|
+
text: boolean;
|
|
11575
|
+
timeRange: boolean;
|
|
11576
|
+
};
|
|
11564
11577
|
}[];
|
|
11565
11578
|
meta: object;
|
|
11566
11579
|
}>;
|
|
@@ -11604,6 +11617,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11604
11617
|
sessionId?: string | undefined;
|
|
11605
11618
|
requestId?: string | undefined;
|
|
11606
11619
|
} | undefined;
|
|
11620
|
+
text?: string | undefined;
|
|
11607
11621
|
};
|
|
11608
11622
|
output: AsyncIterable<unknown, any, any>;
|
|
11609
11623
|
meta: object;
|
|
@@ -11611,6 +11625,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11611
11625
|
}>> & import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
11612
11626
|
query: import("@trpc/server").TRPCQueryProcedure<{
|
|
11613
11627
|
input: {
|
|
11628
|
+
source?: string | undefined;
|
|
11614
11629
|
level?: "error" | "debug" | "info" | "warn" | undefined;
|
|
11615
11630
|
since?: number | undefined;
|
|
11616
11631
|
until?: number | undefined;
|
|
@@ -11628,14 +11643,47 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11628
11643
|
sessionId?: string | undefined;
|
|
11629
11644
|
requestId?: string | undefined;
|
|
11630
11645
|
} | undefined;
|
|
11646
|
+
text?: string | undefined;
|
|
11647
|
+
before?: string | undefined;
|
|
11648
|
+
after?: string | undefined;
|
|
11649
|
+
budgetMs?: number | undefined;
|
|
11650
|
+
};
|
|
11651
|
+
output: {
|
|
11652
|
+
entries: {
|
|
11653
|
+
timestamp: string;
|
|
11654
|
+
level: string;
|
|
11655
|
+
message: string;
|
|
11656
|
+
id?: string | undefined;
|
|
11657
|
+
scope?: string | undefined;
|
|
11658
|
+
tags?: Record<string, string | undefined> | undefined;
|
|
11659
|
+
meta?: Record<string, unknown> | undefined;
|
|
11660
|
+
}[];
|
|
11661
|
+
nextBefore: string | null;
|
|
11662
|
+
nextAfter: string | null;
|
|
11663
|
+
scannedBytes: number;
|
|
11664
|
+
done: boolean;
|
|
11665
|
+
source: string;
|
|
11666
|
+
cancelled?: boolean | undefined;
|
|
11631
11667
|
};
|
|
11668
|
+
meta: object;
|
|
11669
|
+
}>;
|
|
11670
|
+
sources: import("@trpc/server").TRPCQueryProcedure<{
|
|
11671
|
+
input: void;
|
|
11632
11672
|
output: {
|
|
11633
|
-
|
|
11634
|
-
|
|
11635
|
-
|
|
11636
|
-
|
|
11637
|
-
|
|
11638
|
-
|
|
11673
|
+
addonId: string;
|
|
11674
|
+
readable: boolean;
|
|
11675
|
+
reason: string | null;
|
|
11676
|
+
isDefault: boolean;
|
|
11677
|
+
retentionDays: number | null;
|
|
11678
|
+
filters: {
|
|
11679
|
+
deviceId: boolean;
|
|
11680
|
+
addonId: boolean;
|
|
11681
|
+
nodeId: boolean;
|
|
11682
|
+
tags: boolean;
|
|
11683
|
+
level: boolean;
|
|
11684
|
+
text: boolean;
|
|
11685
|
+
timeRange: boolean;
|
|
11686
|
+
};
|
|
11639
11687
|
}[];
|
|
11640
11688
|
meta: object;
|
|
11641
11689
|
}>;
|
|
@@ -11679,6 +11727,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11679
11727
|
sessionId?: string | undefined;
|
|
11680
11728
|
requestId?: string | undefined;
|
|
11681
11729
|
} | undefined;
|
|
11730
|
+
text?: string | undefined;
|
|
11682
11731
|
};
|
|
11683
11732
|
output: AsyncIterable<unknown, any, any>;
|
|
11684
11733
|
meta: object;
|
|
@@ -12184,6 +12233,150 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
12184
12233
|
meta: object;
|
|
12185
12234
|
}>;
|
|
12186
12235
|
}>;
|
|
12236
|
+
preferences: import("@trpc/server/unstable-core-do-not-import").Router<{
|
|
12237
|
+
ctx: any;
|
|
12238
|
+
meta: object;
|
|
12239
|
+
errorShape: AugmentedErrorShape;
|
|
12240
|
+
transformer: true;
|
|
12241
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
12242
|
+
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
12243
|
+
input: {
|
|
12244
|
+
namespaces?: string[] | undefined;
|
|
12245
|
+
};
|
|
12246
|
+
output: {
|
|
12247
|
+
rows: {
|
|
12248
|
+
namespace: string;
|
|
12249
|
+
value: Record<string, unknown>;
|
|
12250
|
+
revision: number;
|
|
12251
|
+
updatedAt: number;
|
|
12252
|
+
updatedByDevice: string | null;
|
|
12253
|
+
}[];
|
|
12254
|
+
};
|
|
12255
|
+
meta: object;
|
|
12256
|
+
}>;
|
|
12257
|
+
put: import("@trpc/server").TRPCMutationProcedure<{
|
|
12258
|
+
input: {
|
|
12259
|
+
namespace: string;
|
|
12260
|
+
value: Record<string, unknown>;
|
|
12261
|
+
baseRevision?: number | undefined;
|
|
12262
|
+
deviceId?: string | undefined;
|
|
12263
|
+
};
|
|
12264
|
+
output: {
|
|
12265
|
+
status: "saved";
|
|
12266
|
+
row: {
|
|
12267
|
+
namespace: string;
|
|
12268
|
+
value: Record<string, unknown>;
|
|
12269
|
+
revision: number;
|
|
12270
|
+
updatedAt: number;
|
|
12271
|
+
updatedByDevice: string | null;
|
|
12272
|
+
};
|
|
12273
|
+
} | {
|
|
12274
|
+
status: "conflict";
|
|
12275
|
+
current: {
|
|
12276
|
+
namespace: string;
|
|
12277
|
+
value: Record<string, unknown>;
|
|
12278
|
+
revision: number;
|
|
12279
|
+
updatedAt: number;
|
|
12280
|
+
updatedByDevice: string | null;
|
|
12281
|
+
} | null;
|
|
12282
|
+
};
|
|
12283
|
+
meta: object;
|
|
12284
|
+
}>;
|
|
12285
|
+
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
12286
|
+
input: {
|
|
12287
|
+
namespace: string;
|
|
12288
|
+
};
|
|
12289
|
+
output: {
|
|
12290
|
+
deleted: boolean;
|
|
12291
|
+
};
|
|
12292
|
+
meta: object;
|
|
12293
|
+
}>;
|
|
12294
|
+
changedSince: import("@trpc/server").TRPCQueryProcedure<{
|
|
12295
|
+
input: {
|
|
12296
|
+
revisionByNamespace: Record<string, number>;
|
|
12297
|
+
};
|
|
12298
|
+
output: {
|
|
12299
|
+
rows: {
|
|
12300
|
+
namespace: string;
|
|
12301
|
+
value: Record<string, unknown>;
|
|
12302
|
+
revision: number;
|
|
12303
|
+
updatedAt: number;
|
|
12304
|
+
updatedByDevice: string | null;
|
|
12305
|
+
}[];
|
|
12306
|
+
deleted: string[];
|
|
12307
|
+
};
|
|
12308
|
+
meta: object;
|
|
12309
|
+
}>;
|
|
12310
|
+
}>> & import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
12311
|
+
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
12312
|
+
input: {
|
|
12313
|
+
namespaces?: string[] | undefined;
|
|
12314
|
+
};
|
|
12315
|
+
output: {
|
|
12316
|
+
rows: {
|
|
12317
|
+
namespace: string;
|
|
12318
|
+
value: Record<string, unknown>;
|
|
12319
|
+
revision: number;
|
|
12320
|
+
updatedAt: number;
|
|
12321
|
+
updatedByDevice: string | null;
|
|
12322
|
+
}[];
|
|
12323
|
+
};
|
|
12324
|
+
meta: object;
|
|
12325
|
+
}>;
|
|
12326
|
+
put: import("@trpc/server").TRPCMutationProcedure<{
|
|
12327
|
+
input: {
|
|
12328
|
+
namespace: string;
|
|
12329
|
+
value: Record<string, unknown>;
|
|
12330
|
+
baseRevision?: number | undefined;
|
|
12331
|
+
deviceId?: string | undefined;
|
|
12332
|
+
};
|
|
12333
|
+
output: {
|
|
12334
|
+
status: "saved";
|
|
12335
|
+
row: {
|
|
12336
|
+
namespace: string;
|
|
12337
|
+
value: Record<string, unknown>;
|
|
12338
|
+
revision: number;
|
|
12339
|
+
updatedAt: number;
|
|
12340
|
+
updatedByDevice: string | null;
|
|
12341
|
+
};
|
|
12342
|
+
} | {
|
|
12343
|
+
status: "conflict";
|
|
12344
|
+
current: {
|
|
12345
|
+
namespace: string;
|
|
12346
|
+
value: Record<string, unknown>;
|
|
12347
|
+
revision: number;
|
|
12348
|
+
updatedAt: number;
|
|
12349
|
+
updatedByDevice: string | null;
|
|
12350
|
+
} | null;
|
|
12351
|
+
};
|
|
12352
|
+
meta: object;
|
|
12353
|
+
}>;
|
|
12354
|
+
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
12355
|
+
input: {
|
|
12356
|
+
namespace: string;
|
|
12357
|
+
};
|
|
12358
|
+
output: {
|
|
12359
|
+
deleted: boolean;
|
|
12360
|
+
};
|
|
12361
|
+
meta: object;
|
|
12362
|
+
}>;
|
|
12363
|
+
changedSince: import("@trpc/server").TRPCQueryProcedure<{
|
|
12364
|
+
input: {
|
|
12365
|
+
revisionByNamespace: Record<string, number>;
|
|
12366
|
+
};
|
|
12367
|
+
output: {
|
|
12368
|
+
rows: {
|
|
12369
|
+
namespace: string;
|
|
12370
|
+
value: Record<string, unknown>;
|
|
12371
|
+
revision: number;
|
|
12372
|
+
updatedAt: number;
|
|
12373
|
+
updatedByDevice: string | null;
|
|
12374
|
+
}[];
|
|
12375
|
+
deleted: string[];
|
|
12376
|
+
};
|
|
12377
|
+
meta: object;
|
|
12378
|
+
}>;
|
|
12379
|
+
}>;
|
|
12187
12380
|
agentPairing: import("@trpc/server/unstable-core-do-not-import").Router<{
|
|
12188
12381
|
ctx: any;
|
|
12189
12382
|
meta: object;
|
|
@@ -12576,7 +12769,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
12576
12769
|
code: string;
|
|
12577
12770
|
};
|
|
12578
12771
|
output: {
|
|
12579
|
-
outcome: "session" | "expired" | "
|
|
12772
|
+
outcome: "session" | "expired" | "conflict" | "linked";
|
|
12580
12773
|
provider?: string | undefined;
|
|
12581
12774
|
};
|
|
12582
12775
|
meta: object;
|
|
@@ -12690,7 +12883,6 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
12690
12883
|
}>;
|
|
12691
12884
|
revokeCredentials: import("@trpc/server").TRPCMutationProcedure<{
|
|
12692
12885
|
input: {
|
|
12693
|
-
kind: "share-link" | "admin-token" | "login-session" | "scoped-token" | "oauth-session";
|
|
12694
12886
|
ids: string[];
|
|
12695
12887
|
confirmCount: number;
|
|
12696
12888
|
};
|
|
@@ -12703,42 +12895,183 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
12703
12895
|
};
|
|
12704
12896
|
meta: object;
|
|
12705
12897
|
}>;
|
|
12706
|
-
|
|
12898
|
+
mintToken: import("@trpc/server").TRPCMutationProcedure<{
|
|
12707
12899
|
input: {
|
|
12708
|
-
|
|
12709
|
-
|
|
12900
|
+
scopes: unknown[];
|
|
12901
|
+
expiresIn: number | "never";
|
|
12902
|
+
label: string;
|
|
12710
12903
|
reauthToken?: string | undefined;
|
|
12904
|
+
subjectId?: string | undefined;
|
|
12711
12905
|
};
|
|
12712
12906
|
output: {
|
|
12713
12907
|
token: string;
|
|
12714
12908
|
record: {
|
|
12715
12909
|
id: string;
|
|
12716
|
-
|
|
12717
|
-
|
|
12718
|
-
|
|
12910
|
+
subjectId: string;
|
|
12911
|
+
label: string;
|
|
12912
|
+
scopes: ("*" | {
|
|
12913
|
+
type: "category";
|
|
12914
|
+
target: "system" | "device";
|
|
12915
|
+
access: ("delete" | "view" | "create")[];
|
|
12916
|
+
} | {
|
|
12917
|
+
type: "capability";
|
|
12918
|
+
target: string;
|
|
12919
|
+
access: ("delete" | "view" | "create")[];
|
|
12920
|
+
} | {
|
|
12921
|
+
type: "addon";
|
|
12922
|
+
target: string;
|
|
12923
|
+
access: ("delete" | "view" | "create")[];
|
|
12924
|
+
} | {
|
|
12925
|
+
type: "device";
|
|
12926
|
+
selector: {
|
|
12927
|
+
kind: "all";
|
|
12928
|
+
} | {
|
|
12929
|
+
kind: "ids";
|
|
12930
|
+
ids: number[];
|
|
12931
|
+
} | {
|
|
12932
|
+
kind: "types";
|
|
12933
|
+
types: import("@camstack/types").DeviceType[];
|
|
12934
|
+
} | {
|
|
12935
|
+
kind: "locations";
|
|
12936
|
+
locations: string[];
|
|
12937
|
+
};
|
|
12938
|
+
access: ("delete" | "view" | "create")[];
|
|
12939
|
+
includeLinked?: boolean | undefined;
|
|
12940
|
+
} | {
|
|
12941
|
+
type: "share-view";
|
|
12942
|
+
grant: {
|
|
12943
|
+
kind: "events-view" | "grid-view";
|
|
12944
|
+
deviceIds: number[];
|
|
12945
|
+
talk?: boolean | undefined;
|
|
12946
|
+
};
|
|
12947
|
+
} | {
|
|
12948
|
+
type: "addon-routes";
|
|
12949
|
+
access: ("delete" | "view" | "create")[];
|
|
12950
|
+
} | {
|
|
12951
|
+
type: "preferences-self";
|
|
12952
|
+
})[];
|
|
12719
12953
|
createdAt: number;
|
|
12720
|
-
expiresAt: number;
|
|
12954
|
+
expiresAt: number | null;
|
|
12721
12955
|
lastUsedAt: number | null;
|
|
12722
12956
|
revokedAt: number | null;
|
|
12723
12957
|
};
|
|
12724
12958
|
};
|
|
12725
12959
|
meta: object;
|
|
12726
12960
|
}>;
|
|
12727
|
-
|
|
12728
|
-
input:
|
|
12961
|
+
listTokens: import("@trpc/server").TRPCQueryProcedure<{
|
|
12962
|
+
input: {
|
|
12963
|
+
label?: string | undefined;
|
|
12964
|
+
} | undefined;
|
|
12729
12965
|
output: {
|
|
12730
12966
|
id: string;
|
|
12731
|
-
|
|
12732
|
-
|
|
12733
|
-
|
|
12967
|
+
subjectId: string;
|
|
12968
|
+
label: string;
|
|
12969
|
+
scopes: ("*" | {
|
|
12970
|
+
type: "category";
|
|
12971
|
+
target: "system" | "device";
|
|
12972
|
+
access: ("delete" | "view" | "create")[];
|
|
12973
|
+
} | {
|
|
12974
|
+
type: "capability";
|
|
12975
|
+
target: string;
|
|
12976
|
+
access: ("delete" | "view" | "create")[];
|
|
12977
|
+
} | {
|
|
12978
|
+
type: "addon";
|
|
12979
|
+
target: string;
|
|
12980
|
+
access: ("delete" | "view" | "create")[];
|
|
12981
|
+
} | {
|
|
12982
|
+
type: "device";
|
|
12983
|
+
selector: {
|
|
12984
|
+
kind: "all";
|
|
12985
|
+
} | {
|
|
12986
|
+
kind: "ids";
|
|
12987
|
+
ids: number[];
|
|
12988
|
+
} | {
|
|
12989
|
+
kind: "types";
|
|
12990
|
+
types: import("@camstack/types").DeviceType[];
|
|
12991
|
+
} | {
|
|
12992
|
+
kind: "locations";
|
|
12993
|
+
locations: string[];
|
|
12994
|
+
};
|
|
12995
|
+
access: ("delete" | "view" | "create")[];
|
|
12996
|
+
includeLinked?: boolean | undefined;
|
|
12997
|
+
} | {
|
|
12998
|
+
type: "share-view";
|
|
12999
|
+
grant: {
|
|
13000
|
+
kind: "events-view" | "grid-view";
|
|
13001
|
+
deviceIds: number[];
|
|
13002
|
+
talk?: boolean | undefined;
|
|
13003
|
+
};
|
|
13004
|
+
} | {
|
|
13005
|
+
type: "addon-routes";
|
|
13006
|
+
access: ("delete" | "view" | "create")[];
|
|
13007
|
+
} | {
|
|
13008
|
+
type: "preferences-self";
|
|
13009
|
+
})[];
|
|
12734
13010
|
createdAt: number;
|
|
12735
|
-
expiresAt: number;
|
|
13011
|
+
expiresAt: number | null;
|
|
12736
13012
|
lastUsedAt: number | null;
|
|
12737
13013
|
revokedAt: number | null;
|
|
12738
13014
|
}[];
|
|
12739
13015
|
meta: object;
|
|
12740
13016
|
}>;
|
|
12741
|
-
|
|
13017
|
+
extendToken: import("@trpc/server").TRPCMutationProcedure<{
|
|
13018
|
+
input: {
|
|
13019
|
+
id: string;
|
|
13020
|
+
expiresIn: number | "never";
|
|
13021
|
+
};
|
|
13022
|
+
output: {
|
|
13023
|
+
id: string;
|
|
13024
|
+
subjectId: string;
|
|
13025
|
+
label: string;
|
|
13026
|
+
scopes: ("*" | {
|
|
13027
|
+
type: "category";
|
|
13028
|
+
target: "system" | "device";
|
|
13029
|
+
access: ("delete" | "view" | "create")[];
|
|
13030
|
+
} | {
|
|
13031
|
+
type: "capability";
|
|
13032
|
+
target: string;
|
|
13033
|
+
access: ("delete" | "view" | "create")[];
|
|
13034
|
+
} | {
|
|
13035
|
+
type: "addon";
|
|
13036
|
+
target: string;
|
|
13037
|
+
access: ("delete" | "view" | "create")[];
|
|
13038
|
+
} | {
|
|
13039
|
+
type: "device";
|
|
13040
|
+
selector: {
|
|
13041
|
+
kind: "all";
|
|
13042
|
+
} | {
|
|
13043
|
+
kind: "ids";
|
|
13044
|
+
ids: number[];
|
|
13045
|
+
} | {
|
|
13046
|
+
kind: "types";
|
|
13047
|
+
types: import("@camstack/types").DeviceType[];
|
|
13048
|
+
} | {
|
|
13049
|
+
kind: "locations";
|
|
13050
|
+
locations: string[];
|
|
13051
|
+
};
|
|
13052
|
+
access: ("delete" | "view" | "create")[];
|
|
13053
|
+
includeLinked?: boolean | undefined;
|
|
13054
|
+
} | {
|
|
13055
|
+
type: "share-view";
|
|
13056
|
+
grant: {
|
|
13057
|
+
kind: "events-view" | "grid-view";
|
|
13058
|
+
deviceIds: number[];
|
|
13059
|
+
talk?: boolean | undefined;
|
|
13060
|
+
};
|
|
13061
|
+
} | {
|
|
13062
|
+
type: "addon-routes";
|
|
13063
|
+
access: ("delete" | "view" | "create")[];
|
|
13064
|
+
} | {
|
|
13065
|
+
type: "preferences-self";
|
|
13066
|
+
})[];
|
|
13067
|
+
createdAt: number;
|
|
13068
|
+
expiresAt: number | null;
|
|
13069
|
+
lastUsedAt: number | null;
|
|
13070
|
+
revokedAt: number | null;
|
|
13071
|
+
};
|
|
13072
|
+
meta: object;
|
|
13073
|
+
}>;
|
|
13074
|
+
revokeToken: import("@trpc/server").TRPCMutationProcedure<{
|
|
12742
13075
|
input: {
|
|
12743
13076
|
id: string;
|
|
12744
13077
|
};
|
|
@@ -12900,7 +13233,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
12900
13233
|
username: string | null;
|
|
12901
13234
|
deviceName: string;
|
|
12902
13235
|
platform: "other" | "android" | "ios" | "web";
|
|
12903
|
-
enrolledVia: "
|
|
13236
|
+
enrolledVia: "qr" | "self";
|
|
12904
13237
|
fingerprint: string;
|
|
12905
13238
|
issuedAt: number;
|
|
12906
13239
|
expiresAt: number;
|
|
@@ -13387,62 +13720,6 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
13387
13720
|
};
|
|
13388
13721
|
meta: object;
|
|
13389
13722
|
}>;
|
|
13390
|
-
createShareToken: import("@trpc/server").TRPCMutationProcedure<{
|
|
13391
|
-
input: {
|
|
13392
|
-
scope: {
|
|
13393
|
-
kind: "grid-view" | "events-view";
|
|
13394
|
-
deviceIds: number[];
|
|
13395
|
-
talk?: boolean | undefined;
|
|
13396
|
-
};
|
|
13397
|
-
ttlSec?: number | "never" | undefined;
|
|
13398
|
-
};
|
|
13399
|
-
output: {
|
|
13400
|
-
id: string;
|
|
13401
|
-
token: string;
|
|
13402
|
-
expiresAt: number | null;
|
|
13403
|
-
};
|
|
13404
|
-
meta: object;
|
|
13405
|
-
}>;
|
|
13406
|
-
extendShareToken: import("@trpc/server").TRPCMutationProcedure<{
|
|
13407
|
-
input: {
|
|
13408
|
-
id: string;
|
|
13409
|
-
ttlSec: number;
|
|
13410
|
-
};
|
|
13411
|
-
output: {
|
|
13412
|
-
id: string;
|
|
13413
|
-
expiresAt: number;
|
|
13414
|
-
};
|
|
13415
|
-
meta: object;
|
|
13416
|
-
}>;
|
|
13417
|
-
revokeShareToken: import("@trpc/server").TRPCMutationProcedure<{
|
|
13418
|
-
input: {
|
|
13419
|
-
id: string;
|
|
13420
|
-
};
|
|
13421
|
-
output: {
|
|
13422
|
-
success: boolean;
|
|
13423
|
-
};
|
|
13424
|
-
meta: object;
|
|
13425
|
-
}>;
|
|
13426
|
-
listShareTokens: import("@trpc/server").TRPCQueryProcedure<{
|
|
13427
|
-
input: {
|
|
13428
|
-
owner?: "all" | "self" | undefined;
|
|
13429
|
-
} | undefined;
|
|
13430
|
-
output: {
|
|
13431
|
-
id: string;
|
|
13432
|
-
userId: string;
|
|
13433
|
-
tokenPrefix: string;
|
|
13434
|
-
scope: {
|
|
13435
|
-
kind: "grid-view" | "events-view";
|
|
13436
|
-
deviceIds: number[];
|
|
13437
|
-
talk?: boolean | undefined;
|
|
13438
|
-
};
|
|
13439
|
-
createdAt: number;
|
|
13440
|
-
expiresAt: number | null;
|
|
13441
|
-
neverExpires: boolean;
|
|
13442
|
-
lastUsedAt?: number | undefined;
|
|
13443
|
-
}[];
|
|
13444
|
-
meta: object;
|
|
13445
|
-
}>;
|
|
13446
13723
|
}>> & import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
13447
13724
|
listLinkableProviders: import("@trpc/server").TRPCQueryProcedure<{
|
|
13448
13725
|
input: void;
|
|
@@ -13468,7 +13745,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
13468
13745
|
code: string;
|
|
13469
13746
|
};
|
|
13470
13747
|
output: {
|
|
13471
|
-
outcome: "session" | "expired" | "
|
|
13748
|
+
outcome: "session" | "expired" | "conflict" | "linked";
|
|
13472
13749
|
provider?: string | undefined;
|
|
13473
13750
|
};
|
|
13474
13751
|
meta: object;
|
|
@@ -13582,7 +13859,6 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
13582
13859
|
}>;
|
|
13583
13860
|
revokeCredentials: import("@trpc/server").TRPCMutationProcedure<{
|
|
13584
13861
|
input: {
|
|
13585
|
-
kind: "share-link" | "admin-token" | "login-session" | "scoped-token" | "oauth-session";
|
|
13586
13862
|
ids: string[];
|
|
13587
13863
|
confirmCount: number;
|
|
13588
13864
|
};
|
|
@@ -13595,42 +13871,183 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
13595
13871
|
};
|
|
13596
13872
|
meta: object;
|
|
13597
13873
|
}>;
|
|
13598
|
-
|
|
13874
|
+
mintToken: import("@trpc/server").TRPCMutationProcedure<{
|
|
13599
13875
|
input: {
|
|
13600
|
-
|
|
13601
|
-
|
|
13876
|
+
scopes: unknown[];
|
|
13877
|
+
expiresIn: number | "never";
|
|
13878
|
+
label: string;
|
|
13602
13879
|
reauthToken?: string | undefined;
|
|
13880
|
+
subjectId?: string | undefined;
|
|
13603
13881
|
};
|
|
13604
13882
|
output: {
|
|
13605
13883
|
token: string;
|
|
13606
13884
|
record: {
|
|
13607
13885
|
id: string;
|
|
13608
|
-
|
|
13609
|
-
|
|
13610
|
-
|
|
13886
|
+
subjectId: string;
|
|
13887
|
+
label: string;
|
|
13888
|
+
scopes: ("*" | {
|
|
13889
|
+
type: "category";
|
|
13890
|
+
target: "system" | "device";
|
|
13891
|
+
access: ("delete" | "view" | "create")[];
|
|
13892
|
+
} | {
|
|
13893
|
+
type: "capability";
|
|
13894
|
+
target: string;
|
|
13895
|
+
access: ("delete" | "view" | "create")[];
|
|
13896
|
+
} | {
|
|
13897
|
+
type: "addon";
|
|
13898
|
+
target: string;
|
|
13899
|
+
access: ("delete" | "view" | "create")[];
|
|
13900
|
+
} | {
|
|
13901
|
+
type: "device";
|
|
13902
|
+
selector: {
|
|
13903
|
+
kind: "all";
|
|
13904
|
+
} | {
|
|
13905
|
+
kind: "ids";
|
|
13906
|
+
ids: number[];
|
|
13907
|
+
} | {
|
|
13908
|
+
kind: "types";
|
|
13909
|
+
types: import("@camstack/types").DeviceType[];
|
|
13910
|
+
} | {
|
|
13911
|
+
kind: "locations";
|
|
13912
|
+
locations: string[];
|
|
13913
|
+
};
|
|
13914
|
+
access: ("delete" | "view" | "create")[];
|
|
13915
|
+
includeLinked?: boolean | undefined;
|
|
13916
|
+
} | {
|
|
13917
|
+
type: "share-view";
|
|
13918
|
+
grant: {
|
|
13919
|
+
kind: "events-view" | "grid-view";
|
|
13920
|
+
deviceIds: number[];
|
|
13921
|
+
talk?: boolean | undefined;
|
|
13922
|
+
};
|
|
13923
|
+
} | {
|
|
13924
|
+
type: "addon-routes";
|
|
13925
|
+
access: ("delete" | "view" | "create")[];
|
|
13926
|
+
} | {
|
|
13927
|
+
type: "preferences-self";
|
|
13928
|
+
})[];
|
|
13611
13929
|
createdAt: number;
|
|
13612
|
-
expiresAt: number;
|
|
13930
|
+
expiresAt: number | null;
|
|
13613
13931
|
lastUsedAt: number | null;
|
|
13614
13932
|
revokedAt: number | null;
|
|
13615
13933
|
};
|
|
13616
13934
|
};
|
|
13617
13935
|
meta: object;
|
|
13618
13936
|
}>;
|
|
13619
|
-
|
|
13620
|
-
input:
|
|
13937
|
+
listTokens: import("@trpc/server").TRPCQueryProcedure<{
|
|
13938
|
+
input: {
|
|
13939
|
+
label?: string | undefined;
|
|
13940
|
+
} | undefined;
|
|
13621
13941
|
output: {
|
|
13622
13942
|
id: string;
|
|
13623
|
-
|
|
13624
|
-
|
|
13625
|
-
|
|
13943
|
+
subjectId: string;
|
|
13944
|
+
label: string;
|
|
13945
|
+
scopes: ("*" | {
|
|
13946
|
+
type: "category";
|
|
13947
|
+
target: "system" | "device";
|
|
13948
|
+
access: ("delete" | "view" | "create")[];
|
|
13949
|
+
} | {
|
|
13950
|
+
type: "capability";
|
|
13951
|
+
target: string;
|
|
13952
|
+
access: ("delete" | "view" | "create")[];
|
|
13953
|
+
} | {
|
|
13954
|
+
type: "addon";
|
|
13955
|
+
target: string;
|
|
13956
|
+
access: ("delete" | "view" | "create")[];
|
|
13957
|
+
} | {
|
|
13958
|
+
type: "device";
|
|
13959
|
+
selector: {
|
|
13960
|
+
kind: "all";
|
|
13961
|
+
} | {
|
|
13962
|
+
kind: "ids";
|
|
13963
|
+
ids: number[];
|
|
13964
|
+
} | {
|
|
13965
|
+
kind: "types";
|
|
13966
|
+
types: import("@camstack/types").DeviceType[];
|
|
13967
|
+
} | {
|
|
13968
|
+
kind: "locations";
|
|
13969
|
+
locations: string[];
|
|
13970
|
+
};
|
|
13971
|
+
access: ("delete" | "view" | "create")[];
|
|
13972
|
+
includeLinked?: boolean | undefined;
|
|
13973
|
+
} | {
|
|
13974
|
+
type: "share-view";
|
|
13975
|
+
grant: {
|
|
13976
|
+
kind: "events-view" | "grid-view";
|
|
13977
|
+
deviceIds: number[];
|
|
13978
|
+
talk?: boolean | undefined;
|
|
13979
|
+
};
|
|
13980
|
+
} | {
|
|
13981
|
+
type: "addon-routes";
|
|
13982
|
+
access: ("delete" | "view" | "create")[];
|
|
13983
|
+
} | {
|
|
13984
|
+
type: "preferences-self";
|
|
13985
|
+
})[];
|
|
13626
13986
|
createdAt: number;
|
|
13627
|
-
expiresAt: number;
|
|
13987
|
+
expiresAt: number | null;
|
|
13628
13988
|
lastUsedAt: number | null;
|
|
13629
13989
|
revokedAt: number | null;
|
|
13630
13990
|
}[];
|
|
13631
13991
|
meta: object;
|
|
13632
13992
|
}>;
|
|
13633
|
-
|
|
13993
|
+
extendToken: import("@trpc/server").TRPCMutationProcedure<{
|
|
13994
|
+
input: {
|
|
13995
|
+
id: string;
|
|
13996
|
+
expiresIn: number | "never";
|
|
13997
|
+
};
|
|
13998
|
+
output: {
|
|
13999
|
+
id: string;
|
|
14000
|
+
subjectId: string;
|
|
14001
|
+
label: string;
|
|
14002
|
+
scopes: ("*" | {
|
|
14003
|
+
type: "category";
|
|
14004
|
+
target: "system" | "device";
|
|
14005
|
+
access: ("delete" | "view" | "create")[];
|
|
14006
|
+
} | {
|
|
14007
|
+
type: "capability";
|
|
14008
|
+
target: string;
|
|
14009
|
+
access: ("delete" | "view" | "create")[];
|
|
14010
|
+
} | {
|
|
14011
|
+
type: "addon";
|
|
14012
|
+
target: string;
|
|
14013
|
+
access: ("delete" | "view" | "create")[];
|
|
14014
|
+
} | {
|
|
14015
|
+
type: "device";
|
|
14016
|
+
selector: {
|
|
14017
|
+
kind: "all";
|
|
14018
|
+
} | {
|
|
14019
|
+
kind: "ids";
|
|
14020
|
+
ids: number[];
|
|
14021
|
+
} | {
|
|
14022
|
+
kind: "types";
|
|
14023
|
+
types: import("@camstack/types").DeviceType[];
|
|
14024
|
+
} | {
|
|
14025
|
+
kind: "locations";
|
|
14026
|
+
locations: string[];
|
|
14027
|
+
};
|
|
14028
|
+
access: ("delete" | "view" | "create")[];
|
|
14029
|
+
includeLinked?: boolean | undefined;
|
|
14030
|
+
} | {
|
|
14031
|
+
type: "share-view";
|
|
14032
|
+
grant: {
|
|
14033
|
+
kind: "events-view" | "grid-view";
|
|
14034
|
+
deviceIds: number[];
|
|
14035
|
+
talk?: boolean | undefined;
|
|
14036
|
+
};
|
|
14037
|
+
} | {
|
|
14038
|
+
type: "addon-routes";
|
|
14039
|
+
access: ("delete" | "view" | "create")[];
|
|
14040
|
+
} | {
|
|
14041
|
+
type: "preferences-self";
|
|
14042
|
+
})[];
|
|
14043
|
+
createdAt: number;
|
|
14044
|
+
expiresAt: number | null;
|
|
14045
|
+
lastUsedAt: number | null;
|
|
14046
|
+
revokedAt: number | null;
|
|
14047
|
+
};
|
|
14048
|
+
meta: object;
|
|
14049
|
+
}>;
|
|
14050
|
+
revokeToken: import("@trpc/server").TRPCMutationProcedure<{
|
|
13634
14051
|
input: {
|
|
13635
14052
|
id: string;
|
|
13636
14053
|
};
|
|
@@ -13792,7 +14209,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
13792
14209
|
username: string | null;
|
|
13793
14210
|
deviceName: string;
|
|
13794
14211
|
platform: "other" | "android" | "ios" | "web";
|
|
13795
|
-
enrolledVia: "
|
|
14212
|
+
enrolledVia: "qr" | "self";
|
|
13796
14213
|
fingerprint: string;
|
|
13797
14214
|
issuedAt: number;
|
|
13798
14215
|
expiresAt: number;
|
|
@@ -14279,62 +14696,6 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
14279
14696
|
};
|
|
14280
14697
|
meta: object;
|
|
14281
14698
|
}>;
|
|
14282
|
-
createShareToken: import("@trpc/server").TRPCMutationProcedure<{
|
|
14283
|
-
input: {
|
|
14284
|
-
scope: {
|
|
14285
|
-
kind: "grid-view" | "events-view";
|
|
14286
|
-
deviceIds: number[];
|
|
14287
|
-
talk?: boolean | undefined;
|
|
14288
|
-
};
|
|
14289
|
-
ttlSec?: number | "never" | undefined;
|
|
14290
|
-
};
|
|
14291
|
-
output: {
|
|
14292
|
-
id: string;
|
|
14293
|
-
token: string;
|
|
14294
|
-
expiresAt: number | null;
|
|
14295
|
-
};
|
|
14296
|
-
meta: object;
|
|
14297
|
-
}>;
|
|
14298
|
-
extendShareToken: import("@trpc/server").TRPCMutationProcedure<{
|
|
14299
|
-
input: {
|
|
14300
|
-
id: string;
|
|
14301
|
-
ttlSec: number;
|
|
14302
|
-
};
|
|
14303
|
-
output: {
|
|
14304
|
-
id: string;
|
|
14305
|
-
expiresAt: number;
|
|
14306
|
-
};
|
|
14307
|
-
meta: object;
|
|
14308
|
-
}>;
|
|
14309
|
-
revokeShareToken: import("@trpc/server").TRPCMutationProcedure<{
|
|
14310
|
-
input: {
|
|
14311
|
-
id: string;
|
|
14312
|
-
};
|
|
14313
|
-
output: {
|
|
14314
|
-
success: boolean;
|
|
14315
|
-
};
|
|
14316
|
-
meta: object;
|
|
14317
|
-
}>;
|
|
14318
|
-
listShareTokens: import("@trpc/server").TRPCQueryProcedure<{
|
|
14319
|
-
input: {
|
|
14320
|
-
owner?: "all" | "self" | undefined;
|
|
14321
|
-
} | undefined;
|
|
14322
|
-
output: {
|
|
14323
|
-
id: string;
|
|
14324
|
-
userId: string;
|
|
14325
|
-
tokenPrefix: string;
|
|
14326
|
-
scope: {
|
|
14327
|
-
kind: "grid-view" | "events-view";
|
|
14328
|
-
deviceIds: number[];
|
|
14329
|
-
talk?: boolean | undefined;
|
|
14330
|
-
};
|
|
14331
|
-
createdAt: number;
|
|
14332
|
-
expiresAt: number | null;
|
|
14333
|
-
neverExpires: boolean;
|
|
14334
|
-
lastUsedAt?: number | undefined;
|
|
14335
|
-
}[];
|
|
14336
|
-
meta: object;
|
|
14337
|
-
}>;
|
|
14338
14699
|
}>;
|
|
14339
14700
|
}>>;
|
|
14340
14701
|
/**
|