@camstack/types 1.2.385 → 1.2.387
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 +4 -4
- package/dist/addon.mjs +4 -4
- package/dist/auth/credential-scope.d.ts +262 -0
- package/dist/auth/principal-scope.d.ts +1 -1
- package/dist/capabilities/index.d.ts +2 -2
- package/dist/capabilities/llm.cap.d.ts +252 -309
- package/dist/capabilities/user-management.cap.d.ts +4 -409
- package/dist/client.js +100 -104
- package/dist/client.mjs +100 -104
- package/dist/generated/addon-api.d.ts +459 -175
- package/dist/generated/collection-array-methods.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +591 -303
- package/dist/index.mjs +548 -301
- package/dist/interfaces/addon-data-plane.d.ts +4 -4
- package/dist/interfaces/addon-peer-bytes.d.ts +1 -1
- package/dist/schemas/auth-records.d.ts +1 -1
- package/dist/schemas/user-preferences.d.ts +103 -0
- package/dist/{sleep-BE7_6UnC.js → sleep-6sOPE0EV.js} +31 -4
- package/dist/{sleep-BxjU_fJM.mjs → sleep-yKL5gfrH.mjs} +31 -4
- package/package.json +1 -1
|
@@ -4284,7 +4284,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
4284
4284
|
output: z.infer<typeof llmCapability.methods.testProfile.output>;
|
|
4285
4285
|
meta: object;
|
|
4286
4286
|
}>;
|
|
4287
|
-
listModels:
|
|
4287
|
+
listModels: TRPCMutationProcedure<{
|
|
4288
4288
|
input: {
|
|
4289
4289
|
[x: string]: unknown;
|
|
4290
4290
|
} & z.input<typeof llmCapability.methods.listModels.input>;
|
|
@@ -10351,34 +10351,6 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
10351
10351
|
output: z.infer<typeof userManagementCapability.methods.revokeApiKey.output>;
|
|
10352
10352
|
meta: object;
|
|
10353
10353
|
}>;
|
|
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
10354
|
setupTotp: TRPCMutationProcedure<{
|
|
10383
10355
|
input: {
|
|
10384
10356
|
[x: string]: unknown;
|
|
@@ -12184,6 +12156,150 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
12184
12156
|
meta: object;
|
|
12185
12157
|
}>;
|
|
12186
12158
|
}>;
|
|
12159
|
+
preferences: import("@trpc/server/unstable-core-do-not-import").Router<{
|
|
12160
|
+
ctx: any;
|
|
12161
|
+
meta: object;
|
|
12162
|
+
errorShape: AugmentedErrorShape;
|
|
12163
|
+
transformer: true;
|
|
12164
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
12165
|
+
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
12166
|
+
input: {
|
|
12167
|
+
namespaces?: string[] | undefined;
|
|
12168
|
+
};
|
|
12169
|
+
output: {
|
|
12170
|
+
rows: {
|
|
12171
|
+
namespace: string;
|
|
12172
|
+
value: Record<string, unknown>;
|
|
12173
|
+
revision: number;
|
|
12174
|
+
updatedAt: number;
|
|
12175
|
+
updatedByDevice: string | null;
|
|
12176
|
+
}[];
|
|
12177
|
+
};
|
|
12178
|
+
meta: object;
|
|
12179
|
+
}>;
|
|
12180
|
+
put: import("@trpc/server").TRPCMutationProcedure<{
|
|
12181
|
+
input: {
|
|
12182
|
+
namespace: string;
|
|
12183
|
+
value: Record<string, unknown>;
|
|
12184
|
+
baseRevision?: number | undefined;
|
|
12185
|
+
deviceId?: string | undefined;
|
|
12186
|
+
};
|
|
12187
|
+
output: {
|
|
12188
|
+
status: "saved";
|
|
12189
|
+
row: {
|
|
12190
|
+
namespace: string;
|
|
12191
|
+
value: Record<string, unknown>;
|
|
12192
|
+
revision: number;
|
|
12193
|
+
updatedAt: number;
|
|
12194
|
+
updatedByDevice: string | null;
|
|
12195
|
+
};
|
|
12196
|
+
} | {
|
|
12197
|
+
status: "conflict";
|
|
12198
|
+
current: {
|
|
12199
|
+
namespace: string;
|
|
12200
|
+
value: Record<string, unknown>;
|
|
12201
|
+
revision: number;
|
|
12202
|
+
updatedAt: number;
|
|
12203
|
+
updatedByDevice: string | null;
|
|
12204
|
+
} | null;
|
|
12205
|
+
};
|
|
12206
|
+
meta: object;
|
|
12207
|
+
}>;
|
|
12208
|
+
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
12209
|
+
input: {
|
|
12210
|
+
namespace: string;
|
|
12211
|
+
};
|
|
12212
|
+
output: {
|
|
12213
|
+
deleted: boolean;
|
|
12214
|
+
};
|
|
12215
|
+
meta: object;
|
|
12216
|
+
}>;
|
|
12217
|
+
changedSince: import("@trpc/server").TRPCQueryProcedure<{
|
|
12218
|
+
input: {
|
|
12219
|
+
revisionByNamespace: Record<string, number>;
|
|
12220
|
+
};
|
|
12221
|
+
output: {
|
|
12222
|
+
rows: {
|
|
12223
|
+
namespace: string;
|
|
12224
|
+
value: Record<string, unknown>;
|
|
12225
|
+
revision: number;
|
|
12226
|
+
updatedAt: number;
|
|
12227
|
+
updatedByDevice: string | null;
|
|
12228
|
+
}[];
|
|
12229
|
+
deleted: string[];
|
|
12230
|
+
};
|
|
12231
|
+
meta: object;
|
|
12232
|
+
}>;
|
|
12233
|
+
}>> & import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
12234
|
+
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
12235
|
+
input: {
|
|
12236
|
+
namespaces?: string[] | undefined;
|
|
12237
|
+
};
|
|
12238
|
+
output: {
|
|
12239
|
+
rows: {
|
|
12240
|
+
namespace: string;
|
|
12241
|
+
value: Record<string, unknown>;
|
|
12242
|
+
revision: number;
|
|
12243
|
+
updatedAt: number;
|
|
12244
|
+
updatedByDevice: string | null;
|
|
12245
|
+
}[];
|
|
12246
|
+
};
|
|
12247
|
+
meta: object;
|
|
12248
|
+
}>;
|
|
12249
|
+
put: import("@trpc/server").TRPCMutationProcedure<{
|
|
12250
|
+
input: {
|
|
12251
|
+
namespace: string;
|
|
12252
|
+
value: Record<string, unknown>;
|
|
12253
|
+
baseRevision?: number | undefined;
|
|
12254
|
+
deviceId?: string | undefined;
|
|
12255
|
+
};
|
|
12256
|
+
output: {
|
|
12257
|
+
status: "saved";
|
|
12258
|
+
row: {
|
|
12259
|
+
namespace: string;
|
|
12260
|
+
value: Record<string, unknown>;
|
|
12261
|
+
revision: number;
|
|
12262
|
+
updatedAt: number;
|
|
12263
|
+
updatedByDevice: string | null;
|
|
12264
|
+
};
|
|
12265
|
+
} | {
|
|
12266
|
+
status: "conflict";
|
|
12267
|
+
current: {
|
|
12268
|
+
namespace: string;
|
|
12269
|
+
value: Record<string, unknown>;
|
|
12270
|
+
revision: number;
|
|
12271
|
+
updatedAt: number;
|
|
12272
|
+
updatedByDevice: string | null;
|
|
12273
|
+
} | null;
|
|
12274
|
+
};
|
|
12275
|
+
meta: object;
|
|
12276
|
+
}>;
|
|
12277
|
+
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
12278
|
+
input: {
|
|
12279
|
+
namespace: string;
|
|
12280
|
+
};
|
|
12281
|
+
output: {
|
|
12282
|
+
deleted: boolean;
|
|
12283
|
+
};
|
|
12284
|
+
meta: object;
|
|
12285
|
+
}>;
|
|
12286
|
+
changedSince: import("@trpc/server").TRPCQueryProcedure<{
|
|
12287
|
+
input: {
|
|
12288
|
+
revisionByNamespace: Record<string, number>;
|
|
12289
|
+
};
|
|
12290
|
+
output: {
|
|
12291
|
+
rows: {
|
|
12292
|
+
namespace: string;
|
|
12293
|
+
value: Record<string, unknown>;
|
|
12294
|
+
revision: number;
|
|
12295
|
+
updatedAt: number;
|
|
12296
|
+
updatedByDevice: string | null;
|
|
12297
|
+
}[];
|
|
12298
|
+
deleted: string[];
|
|
12299
|
+
};
|
|
12300
|
+
meta: object;
|
|
12301
|
+
}>;
|
|
12302
|
+
}>;
|
|
12187
12303
|
agentPairing: import("@trpc/server/unstable-core-do-not-import").Router<{
|
|
12188
12304
|
ctx: any;
|
|
12189
12305
|
meta: object;
|
|
@@ -12576,7 +12692,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
12576
12692
|
code: string;
|
|
12577
12693
|
};
|
|
12578
12694
|
output: {
|
|
12579
|
-
outcome: "session" | "expired" | "
|
|
12695
|
+
outcome: "session" | "expired" | "conflict" | "linked";
|
|
12580
12696
|
provider?: string | undefined;
|
|
12581
12697
|
};
|
|
12582
12698
|
meta: object;
|
|
@@ -12690,7 +12806,6 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
12690
12806
|
}>;
|
|
12691
12807
|
revokeCredentials: import("@trpc/server").TRPCMutationProcedure<{
|
|
12692
12808
|
input: {
|
|
12693
|
-
kind: "share-link" | "admin-token" | "login-session" | "scoped-token" | "oauth-session";
|
|
12694
12809
|
ids: string[];
|
|
12695
12810
|
confirmCount: number;
|
|
12696
12811
|
};
|
|
@@ -12703,42 +12818,183 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
12703
12818
|
};
|
|
12704
12819
|
meta: object;
|
|
12705
12820
|
}>;
|
|
12706
|
-
|
|
12821
|
+
mintToken: import("@trpc/server").TRPCMutationProcedure<{
|
|
12707
12822
|
input: {
|
|
12708
|
-
|
|
12709
|
-
|
|
12823
|
+
scopes: unknown[];
|
|
12824
|
+
expiresIn: number | "never";
|
|
12825
|
+
label: string;
|
|
12710
12826
|
reauthToken?: string | undefined;
|
|
12827
|
+
subjectId?: string | undefined;
|
|
12711
12828
|
};
|
|
12712
12829
|
output: {
|
|
12713
12830
|
token: string;
|
|
12714
12831
|
record: {
|
|
12715
12832
|
id: string;
|
|
12716
|
-
|
|
12717
|
-
|
|
12718
|
-
|
|
12833
|
+
subjectId: string;
|
|
12834
|
+
label: string;
|
|
12835
|
+
scopes: ("*" | {
|
|
12836
|
+
type: "category";
|
|
12837
|
+
target: "system" | "device";
|
|
12838
|
+
access: ("delete" | "view" | "create")[];
|
|
12839
|
+
} | {
|
|
12840
|
+
type: "capability";
|
|
12841
|
+
target: string;
|
|
12842
|
+
access: ("delete" | "view" | "create")[];
|
|
12843
|
+
} | {
|
|
12844
|
+
type: "addon";
|
|
12845
|
+
target: string;
|
|
12846
|
+
access: ("delete" | "view" | "create")[];
|
|
12847
|
+
} | {
|
|
12848
|
+
type: "device";
|
|
12849
|
+
selector: {
|
|
12850
|
+
kind: "all";
|
|
12851
|
+
} | {
|
|
12852
|
+
kind: "ids";
|
|
12853
|
+
ids: number[];
|
|
12854
|
+
} | {
|
|
12855
|
+
kind: "types";
|
|
12856
|
+
types: import("@camstack/types").DeviceType[];
|
|
12857
|
+
} | {
|
|
12858
|
+
kind: "locations";
|
|
12859
|
+
locations: string[];
|
|
12860
|
+
};
|
|
12861
|
+
access: ("delete" | "view" | "create")[];
|
|
12862
|
+
includeLinked?: boolean | undefined;
|
|
12863
|
+
} | {
|
|
12864
|
+
type: "share-view";
|
|
12865
|
+
grant: {
|
|
12866
|
+
kind: "events-view" | "grid-view";
|
|
12867
|
+
deviceIds: number[];
|
|
12868
|
+
talk?: boolean | undefined;
|
|
12869
|
+
};
|
|
12870
|
+
} | {
|
|
12871
|
+
type: "addon-routes";
|
|
12872
|
+
access: ("delete" | "view" | "create")[];
|
|
12873
|
+
} | {
|
|
12874
|
+
type: "preferences-self";
|
|
12875
|
+
})[];
|
|
12719
12876
|
createdAt: number;
|
|
12720
|
-
expiresAt: number;
|
|
12877
|
+
expiresAt: number | null;
|
|
12721
12878
|
lastUsedAt: number | null;
|
|
12722
12879
|
revokedAt: number | null;
|
|
12723
12880
|
};
|
|
12724
12881
|
};
|
|
12725
12882
|
meta: object;
|
|
12726
12883
|
}>;
|
|
12727
|
-
|
|
12728
|
-
input:
|
|
12884
|
+
listTokens: import("@trpc/server").TRPCQueryProcedure<{
|
|
12885
|
+
input: {
|
|
12886
|
+
label?: string | undefined;
|
|
12887
|
+
} | undefined;
|
|
12729
12888
|
output: {
|
|
12730
12889
|
id: string;
|
|
12731
|
-
|
|
12732
|
-
|
|
12733
|
-
|
|
12890
|
+
subjectId: string;
|
|
12891
|
+
label: string;
|
|
12892
|
+
scopes: ("*" | {
|
|
12893
|
+
type: "category";
|
|
12894
|
+
target: "system" | "device";
|
|
12895
|
+
access: ("delete" | "view" | "create")[];
|
|
12896
|
+
} | {
|
|
12897
|
+
type: "capability";
|
|
12898
|
+
target: string;
|
|
12899
|
+
access: ("delete" | "view" | "create")[];
|
|
12900
|
+
} | {
|
|
12901
|
+
type: "addon";
|
|
12902
|
+
target: string;
|
|
12903
|
+
access: ("delete" | "view" | "create")[];
|
|
12904
|
+
} | {
|
|
12905
|
+
type: "device";
|
|
12906
|
+
selector: {
|
|
12907
|
+
kind: "all";
|
|
12908
|
+
} | {
|
|
12909
|
+
kind: "ids";
|
|
12910
|
+
ids: number[];
|
|
12911
|
+
} | {
|
|
12912
|
+
kind: "types";
|
|
12913
|
+
types: import("@camstack/types").DeviceType[];
|
|
12914
|
+
} | {
|
|
12915
|
+
kind: "locations";
|
|
12916
|
+
locations: string[];
|
|
12917
|
+
};
|
|
12918
|
+
access: ("delete" | "view" | "create")[];
|
|
12919
|
+
includeLinked?: boolean | undefined;
|
|
12920
|
+
} | {
|
|
12921
|
+
type: "share-view";
|
|
12922
|
+
grant: {
|
|
12923
|
+
kind: "events-view" | "grid-view";
|
|
12924
|
+
deviceIds: number[];
|
|
12925
|
+
talk?: boolean | undefined;
|
|
12926
|
+
};
|
|
12927
|
+
} | {
|
|
12928
|
+
type: "addon-routes";
|
|
12929
|
+
access: ("delete" | "view" | "create")[];
|
|
12930
|
+
} | {
|
|
12931
|
+
type: "preferences-self";
|
|
12932
|
+
})[];
|
|
12734
12933
|
createdAt: number;
|
|
12735
|
-
expiresAt: number;
|
|
12934
|
+
expiresAt: number | null;
|
|
12736
12935
|
lastUsedAt: number | null;
|
|
12737
12936
|
revokedAt: number | null;
|
|
12738
12937
|
}[];
|
|
12739
12938
|
meta: object;
|
|
12740
12939
|
}>;
|
|
12741
|
-
|
|
12940
|
+
extendToken: import("@trpc/server").TRPCMutationProcedure<{
|
|
12941
|
+
input: {
|
|
12942
|
+
id: string;
|
|
12943
|
+
expiresIn: number | "never";
|
|
12944
|
+
};
|
|
12945
|
+
output: {
|
|
12946
|
+
id: string;
|
|
12947
|
+
subjectId: string;
|
|
12948
|
+
label: string;
|
|
12949
|
+
scopes: ("*" | {
|
|
12950
|
+
type: "category";
|
|
12951
|
+
target: "system" | "device";
|
|
12952
|
+
access: ("delete" | "view" | "create")[];
|
|
12953
|
+
} | {
|
|
12954
|
+
type: "capability";
|
|
12955
|
+
target: string;
|
|
12956
|
+
access: ("delete" | "view" | "create")[];
|
|
12957
|
+
} | {
|
|
12958
|
+
type: "addon";
|
|
12959
|
+
target: string;
|
|
12960
|
+
access: ("delete" | "view" | "create")[];
|
|
12961
|
+
} | {
|
|
12962
|
+
type: "device";
|
|
12963
|
+
selector: {
|
|
12964
|
+
kind: "all";
|
|
12965
|
+
} | {
|
|
12966
|
+
kind: "ids";
|
|
12967
|
+
ids: number[];
|
|
12968
|
+
} | {
|
|
12969
|
+
kind: "types";
|
|
12970
|
+
types: import("@camstack/types").DeviceType[];
|
|
12971
|
+
} | {
|
|
12972
|
+
kind: "locations";
|
|
12973
|
+
locations: string[];
|
|
12974
|
+
};
|
|
12975
|
+
access: ("delete" | "view" | "create")[];
|
|
12976
|
+
includeLinked?: boolean | undefined;
|
|
12977
|
+
} | {
|
|
12978
|
+
type: "share-view";
|
|
12979
|
+
grant: {
|
|
12980
|
+
kind: "events-view" | "grid-view";
|
|
12981
|
+
deviceIds: number[];
|
|
12982
|
+
talk?: boolean | undefined;
|
|
12983
|
+
};
|
|
12984
|
+
} | {
|
|
12985
|
+
type: "addon-routes";
|
|
12986
|
+
access: ("delete" | "view" | "create")[];
|
|
12987
|
+
} | {
|
|
12988
|
+
type: "preferences-self";
|
|
12989
|
+
})[];
|
|
12990
|
+
createdAt: number;
|
|
12991
|
+
expiresAt: number | null;
|
|
12992
|
+
lastUsedAt: number | null;
|
|
12993
|
+
revokedAt: number | null;
|
|
12994
|
+
};
|
|
12995
|
+
meta: object;
|
|
12996
|
+
}>;
|
|
12997
|
+
revokeToken: import("@trpc/server").TRPCMutationProcedure<{
|
|
12742
12998
|
input: {
|
|
12743
12999
|
id: string;
|
|
12744
13000
|
};
|
|
@@ -12900,7 +13156,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
12900
13156
|
username: string | null;
|
|
12901
13157
|
deviceName: string;
|
|
12902
13158
|
platform: "other" | "android" | "ios" | "web";
|
|
12903
|
-
enrolledVia: "
|
|
13159
|
+
enrolledVia: "qr" | "self";
|
|
12904
13160
|
fingerprint: string;
|
|
12905
13161
|
issuedAt: number;
|
|
12906
13162
|
expiresAt: number;
|
|
@@ -13387,62 +13643,6 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
13387
13643
|
};
|
|
13388
13644
|
meta: object;
|
|
13389
13645
|
}>;
|
|
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
13646
|
}>> & import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
13447
13647
|
listLinkableProviders: import("@trpc/server").TRPCQueryProcedure<{
|
|
13448
13648
|
input: void;
|
|
@@ -13468,7 +13668,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
13468
13668
|
code: string;
|
|
13469
13669
|
};
|
|
13470
13670
|
output: {
|
|
13471
|
-
outcome: "session" | "expired" | "
|
|
13671
|
+
outcome: "session" | "expired" | "conflict" | "linked";
|
|
13472
13672
|
provider?: string | undefined;
|
|
13473
13673
|
};
|
|
13474
13674
|
meta: object;
|
|
@@ -13582,7 +13782,6 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
13582
13782
|
}>;
|
|
13583
13783
|
revokeCredentials: import("@trpc/server").TRPCMutationProcedure<{
|
|
13584
13784
|
input: {
|
|
13585
|
-
kind: "share-link" | "admin-token" | "login-session" | "scoped-token" | "oauth-session";
|
|
13586
13785
|
ids: string[];
|
|
13587
13786
|
confirmCount: number;
|
|
13588
13787
|
};
|
|
@@ -13595,42 +13794,183 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
13595
13794
|
};
|
|
13596
13795
|
meta: object;
|
|
13597
13796
|
}>;
|
|
13598
|
-
|
|
13797
|
+
mintToken: import("@trpc/server").TRPCMutationProcedure<{
|
|
13599
13798
|
input: {
|
|
13600
|
-
|
|
13601
|
-
|
|
13799
|
+
scopes: unknown[];
|
|
13800
|
+
expiresIn: number | "never";
|
|
13801
|
+
label: string;
|
|
13602
13802
|
reauthToken?: string | undefined;
|
|
13803
|
+
subjectId?: string | undefined;
|
|
13603
13804
|
};
|
|
13604
13805
|
output: {
|
|
13605
13806
|
token: string;
|
|
13606
13807
|
record: {
|
|
13607
13808
|
id: string;
|
|
13608
|
-
|
|
13609
|
-
|
|
13610
|
-
|
|
13809
|
+
subjectId: string;
|
|
13810
|
+
label: string;
|
|
13811
|
+
scopes: ("*" | {
|
|
13812
|
+
type: "category";
|
|
13813
|
+
target: "system" | "device";
|
|
13814
|
+
access: ("delete" | "view" | "create")[];
|
|
13815
|
+
} | {
|
|
13816
|
+
type: "capability";
|
|
13817
|
+
target: string;
|
|
13818
|
+
access: ("delete" | "view" | "create")[];
|
|
13819
|
+
} | {
|
|
13820
|
+
type: "addon";
|
|
13821
|
+
target: string;
|
|
13822
|
+
access: ("delete" | "view" | "create")[];
|
|
13823
|
+
} | {
|
|
13824
|
+
type: "device";
|
|
13825
|
+
selector: {
|
|
13826
|
+
kind: "all";
|
|
13827
|
+
} | {
|
|
13828
|
+
kind: "ids";
|
|
13829
|
+
ids: number[];
|
|
13830
|
+
} | {
|
|
13831
|
+
kind: "types";
|
|
13832
|
+
types: import("@camstack/types").DeviceType[];
|
|
13833
|
+
} | {
|
|
13834
|
+
kind: "locations";
|
|
13835
|
+
locations: string[];
|
|
13836
|
+
};
|
|
13837
|
+
access: ("delete" | "view" | "create")[];
|
|
13838
|
+
includeLinked?: boolean | undefined;
|
|
13839
|
+
} | {
|
|
13840
|
+
type: "share-view";
|
|
13841
|
+
grant: {
|
|
13842
|
+
kind: "events-view" | "grid-view";
|
|
13843
|
+
deviceIds: number[];
|
|
13844
|
+
talk?: boolean | undefined;
|
|
13845
|
+
};
|
|
13846
|
+
} | {
|
|
13847
|
+
type: "addon-routes";
|
|
13848
|
+
access: ("delete" | "view" | "create")[];
|
|
13849
|
+
} | {
|
|
13850
|
+
type: "preferences-self";
|
|
13851
|
+
})[];
|
|
13611
13852
|
createdAt: number;
|
|
13612
|
-
expiresAt: number;
|
|
13853
|
+
expiresAt: number | null;
|
|
13613
13854
|
lastUsedAt: number | null;
|
|
13614
13855
|
revokedAt: number | null;
|
|
13615
13856
|
};
|
|
13616
13857
|
};
|
|
13617
13858
|
meta: object;
|
|
13618
13859
|
}>;
|
|
13619
|
-
|
|
13620
|
-
input:
|
|
13860
|
+
listTokens: import("@trpc/server").TRPCQueryProcedure<{
|
|
13861
|
+
input: {
|
|
13862
|
+
label?: string | undefined;
|
|
13863
|
+
} | undefined;
|
|
13621
13864
|
output: {
|
|
13622
13865
|
id: string;
|
|
13623
|
-
|
|
13624
|
-
|
|
13625
|
-
|
|
13866
|
+
subjectId: string;
|
|
13867
|
+
label: string;
|
|
13868
|
+
scopes: ("*" | {
|
|
13869
|
+
type: "category";
|
|
13870
|
+
target: "system" | "device";
|
|
13871
|
+
access: ("delete" | "view" | "create")[];
|
|
13872
|
+
} | {
|
|
13873
|
+
type: "capability";
|
|
13874
|
+
target: string;
|
|
13875
|
+
access: ("delete" | "view" | "create")[];
|
|
13876
|
+
} | {
|
|
13877
|
+
type: "addon";
|
|
13878
|
+
target: string;
|
|
13879
|
+
access: ("delete" | "view" | "create")[];
|
|
13880
|
+
} | {
|
|
13881
|
+
type: "device";
|
|
13882
|
+
selector: {
|
|
13883
|
+
kind: "all";
|
|
13884
|
+
} | {
|
|
13885
|
+
kind: "ids";
|
|
13886
|
+
ids: number[];
|
|
13887
|
+
} | {
|
|
13888
|
+
kind: "types";
|
|
13889
|
+
types: import("@camstack/types").DeviceType[];
|
|
13890
|
+
} | {
|
|
13891
|
+
kind: "locations";
|
|
13892
|
+
locations: string[];
|
|
13893
|
+
};
|
|
13894
|
+
access: ("delete" | "view" | "create")[];
|
|
13895
|
+
includeLinked?: boolean | undefined;
|
|
13896
|
+
} | {
|
|
13897
|
+
type: "share-view";
|
|
13898
|
+
grant: {
|
|
13899
|
+
kind: "events-view" | "grid-view";
|
|
13900
|
+
deviceIds: number[];
|
|
13901
|
+
talk?: boolean | undefined;
|
|
13902
|
+
};
|
|
13903
|
+
} | {
|
|
13904
|
+
type: "addon-routes";
|
|
13905
|
+
access: ("delete" | "view" | "create")[];
|
|
13906
|
+
} | {
|
|
13907
|
+
type: "preferences-self";
|
|
13908
|
+
})[];
|
|
13626
13909
|
createdAt: number;
|
|
13627
|
-
expiresAt: number;
|
|
13910
|
+
expiresAt: number | null;
|
|
13628
13911
|
lastUsedAt: number | null;
|
|
13629
13912
|
revokedAt: number | null;
|
|
13630
13913
|
}[];
|
|
13631
13914
|
meta: object;
|
|
13632
13915
|
}>;
|
|
13633
|
-
|
|
13916
|
+
extendToken: import("@trpc/server").TRPCMutationProcedure<{
|
|
13917
|
+
input: {
|
|
13918
|
+
id: string;
|
|
13919
|
+
expiresIn: number | "never";
|
|
13920
|
+
};
|
|
13921
|
+
output: {
|
|
13922
|
+
id: string;
|
|
13923
|
+
subjectId: string;
|
|
13924
|
+
label: string;
|
|
13925
|
+
scopes: ("*" | {
|
|
13926
|
+
type: "category";
|
|
13927
|
+
target: "system" | "device";
|
|
13928
|
+
access: ("delete" | "view" | "create")[];
|
|
13929
|
+
} | {
|
|
13930
|
+
type: "capability";
|
|
13931
|
+
target: string;
|
|
13932
|
+
access: ("delete" | "view" | "create")[];
|
|
13933
|
+
} | {
|
|
13934
|
+
type: "addon";
|
|
13935
|
+
target: string;
|
|
13936
|
+
access: ("delete" | "view" | "create")[];
|
|
13937
|
+
} | {
|
|
13938
|
+
type: "device";
|
|
13939
|
+
selector: {
|
|
13940
|
+
kind: "all";
|
|
13941
|
+
} | {
|
|
13942
|
+
kind: "ids";
|
|
13943
|
+
ids: number[];
|
|
13944
|
+
} | {
|
|
13945
|
+
kind: "types";
|
|
13946
|
+
types: import("@camstack/types").DeviceType[];
|
|
13947
|
+
} | {
|
|
13948
|
+
kind: "locations";
|
|
13949
|
+
locations: string[];
|
|
13950
|
+
};
|
|
13951
|
+
access: ("delete" | "view" | "create")[];
|
|
13952
|
+
includeLinked?: boolean | undefined;
|
|
13953
|
+
} | {
|
|
13954
|
+
type: "share-view";
|
|
13955
|
+
grant: {
|
|
13956
|
+
kind: "events-view" | "grid-view";
|
|
13957
|
+
deviceIds: number[];
|
|
13958
|
+
talk?: boolean | undefined;
|
|
13959
|
+
};
|
|
13960
|
+
} | {
|
|
13961
|
+
type: "addon-routes";
|
|
13962
|
+
access: ("delete" | "view" | "create")[];
|
|
13963
|
+
} | {
|
|
13964
|
+
type: "preferences-self";
|
|
13965
|
+
})[];
|
|
13966
|
+
createdAt: number;
|
|
13967
|
+
expiresAt: number | null;
|
|
13968
|
+
lastUsedAt: number | null;
|
|
13969
|
+
revokedAt: number | null;
|
|
13970
|
+
};
|
|
13971
|
+
meta: object;
|
|
13972
|
+
}>;
|
|
13973
|
+
revokeToken: import("@trpc/server").TRPCMutationProcedure<{
|
|
13634
13974
|
input: {
|
|
13635
13975
|
id: string;
|
|
13636
13976
|
};
|
|
@@ -13792,7 +14132,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
13792
14132
|
username: string | null;
|
|
13793
14133
|
deviceName: string;
|
|
13794
14134
|
platform: "other" | "android" | "ios" | "web";
|
|
13795
|
-
enrolledVia: "
|
|
14135
|
+
enrolledVia: "qr" | "self";
|
|
13796
14136
|
fingerprint: string;
|
|
13797
14137
|
issuedAt: number;
|
|
13798
14138
|
expiresAt: number;
|
|
@@ -14279,62 +14619,6 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
14279
14619
|
};
|
|
14280
14620
|
meta: object;
|
|
14281
14621
|
}>;
|
|
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
14622
|
}>;
|
|
14339
14623
|
}>>;
|
|
14340
14624
|
/**
|