@camstack/types 1.2.332 → 1.2.333
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/base-addon.d.ts +32 -0
- package/dist/addon/secret-aware-context.d.ts +49 -6
- package/dist/addon/secret-settings-view.d.ts +23 -1
- package/dist/addon/secret-write-back.d.ts +40 -0
- package/dist/addon.js +5 -7
- package/dist/addon.mjs +5 -7
- package/dist/auth/app-callback.d.ts +28 -0
- package/dist/auth/sso-state.d.ts +16 -0
- package/dist/capabilities/addon-routes.cap.d.ts +3 -0
- package/dist/capabilities/addons.cap.d.ts +4 -4
- package/dist/capabilities/backup.cap.d.ts +101 -1
- package/dist/capabilities/broker.cap.d.ts +4 -4
- package/dist/capabilities/custom-model-registry.cap.d.ts +520 -0
- package/dist/capabilities/device-manager.cap.d.ts +4 -4
- package/dist/capabilities/hub-address.d.ts +2 -2
- package/dist/capabilities/index.d.ts +12 -6
- package/dist/capabilities/keychain-admin.cap.d.ts +83 -0
- package/dist/capabilities/login-method.cap.d.ts +5 -6
- package/dist/capabilities/notification-output.cap.d.ts +4 -4
- package/dist/capabilities/notification-rules.cap.d.ts +6 -6
- package/dist/capabilities/osd-manager.cap.d.ts +5 -5
- package/dist/capabilities/pipeline-analytics.cap.d.ts +39 -8
- package/dist/capabilities/recording.cap.d.ts +3 -3
- package/dist/capabilities/server-management.cap.d.ts +5 -5
- package/dist/capabilities/snapshot.cap.d.ts +2 -2
- package/dist/capabilities/sso-bridge.cap.d.ts +5 -2
- package/dist/capabilities/training-provider.cap.d.ts +373 -0
- package/dist/capabilities/training.cap.d.ts +1896 -0
- package/dist/capabilities/user-management.cap.d.ts +1 -64
- package/dist/capabilities/videoclips.cap.d.ts +3 -3
- package/dist/client.js +26 -4
- package/dist/client.mjs +26 -4
- package/dist/generated/addon-api.d.ts +842 -173
- package/dist/generated/cap-input-defaults.d.ts +1 -1
- package/dist/generated/capability-router-map.d.ts +10 -4
- package/dist/generated/collection-array-methods.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 +5 -3
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1462 -93
- package/dist/index.mjs +1413 -92
- package/dist/interfaces/addon-routes.d.ts +7 -0
- package/dist/interfaces/addon.d.ts +8 -0
- package/dist/interfaces/auth.d.ts +6 -3
- package/dist/schemas/auth-records.d.ts +1 -2
- package/dist/{sleep-ClNXPpWR.js → sleep-DiQYrfm9.js} +425 -75
- package/dist/{sleep-DujUvOcb.mjs → sleep-r3RWkGVx.mjs} +425 -75
- package/dist/training/index.d.ts +1 -0
- package/dist/training/trainer-contract.d.ts +468 -0
- package/package.json +1 -1
|
@@ -125,6 +125,8 @@ import type { switchCapability } from '../capabilities/switch.cap.js';
|
|
|
125
125
|
import type { systemCapability } from '../capabilities/system.cap.js';
|
|
126
126
|
import type { terminalSessionCapability } from '../capabilities/terminal-session.cap.js';
|
|
127
127
|
import type { toastCapability } from '../capabilities/toast.cap.js';
|
|
128
|
+
import type { trainingProviderCapability } from '../capabilities/training-provider.cap.js';
|
|
129
|
+
import type { trainingCapability } from '../capabilities/training.cap.js';
|
|
128
130
|
import type { turnProviderCapability } from '../capabilities/turn-provider.cap.js';
|
|
129
131
|
import type { updateCapability } from '../capabilities/update.cap.js';
|
|
130
132
|
import type { userManagementCapability } from '../capabilities/user-management.cap.js';
|
|
@@ -947,6 +949,34 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
947
949
|
output: z.infer<typeof backupCapability.methods.restore.output>;
|
|
948
950
|
meta: object;
|
|
949
951
|
}>;
|
|
952
|
+
getEncryption: TRPCQueryProcedure<{
|
|
953
|
+
input: {
|
|
954
|
+
nodeId?: string | undefined;
|
|
955
|
+
} | undefined;
|
|
956
|
+
output: z.infer<typeof backupCapability.methods.getEncryption.output>;
|
|
957
|
+
meta: object;
|
|
958
|
+
}>;
|
|
959
|
+
setupEncryption: TRPCMutationProcedure<{
|
|
960
|
+
input: {
|
|
961
|
+
[x: string]: unknown;
|
|
962
|
+
} & z.input<typeof backupCapability.methods.setupEncryption.input>;
|
|
963
|
+
output: z.infer<typeof backupCapability.methods.setupEncryption.output>;
|
|
964
|
+
meta: object;
|
|
965
|
+
}>;
|
|
966
|
+
disableEncryption: TRPCMutationProcedure<{
|
|
967
|
+
input: {
|
|
968
|
+
[x: string]: unknown;
|
|
969
|
+
} & z.input<typeof backupCapability.methods.disableEncryption.input>;
|
|
970
|
+
output: z.infer<typeof backupCapability.methods.disableEncryption.output>;
|
|
971
|
+
meta: object;
|
|
972
|
+
}>;
|
|
973
|
+
checkBackupKey: TRPCMutationProcedure<{
|
|
974
|
+
input: {
|
|
975
|
+
[x: string]: unknown;
|
|
976
|
+
} & z.input<typeof backupCapability.methods.checkBackupKey.input>;
|
|
977
|
+
output: z.infer<typeof backupCapability.methods.checkBackupKey.output>;
|
|
978
|
+
meta: object;
|
|
979
|
+
}>;
|
|
950
980
|
delete: TRPCMutationProcedure<{
|
|
951
981
|
input: {
|
|
952
982
|
[x: string]: unknown;
|
|
@@ -1792,6 +1822,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
1792
1822
|
output: z.infer<typeof customModelRegistryCapability.methods.listModels.output>;
|
|
1793
1823
|
meta: object;
|
|
1794
1824
|
}>;
|
|
1825
|
+
importModelBundle: TRPCMutationProcedure<{
|
|
1826
|
+
input: {
|
|
1827
|
+
[x: string]: unknown;
|
|
1828
|
+
} & z.input<typeof customModelRegistryCapability.methods.importModelBundle.input>;
|
|
1829
|
+
output: z.infer<typeof customModelRegistryCapability.methods.importModelBundle.output>;
|
|
1830
|
+
meta: object;
|
|
1831
|
+
}>;
|
|
1795
1832
|
}>>;
|
|
1796
1833
|
dataStoreProvider: TRPCBuiltRouter<{
|
|
1797
1834
|
ctx: TrpcContext;
|
|
@@ -3777,6 +3814,20 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
3777
3814
|
output: z.infer<typeof keychainAdminCapability.methods.resetKeychain.output>;
|
|
3778
3815
|
meta: object;
|
|
3779
3816
|
}>;
|
|
3817
|
+
resetReport: TRPCQueryProcedure<{
|
|
3818
|
+
input: {
|
|
3819
|
+
[x: string]: unknown;
|
|
3820
|
+
} & z.input<typeof keychainAdminCapability.methods.resetReport.input>;
|
|
3821
|
+
output: z.infer<typeof keychainAdminCapability.methods.resetReport.output>;
|
|
3822
|
+
meta: object;
|
|
3823
|
+
}>;
|
|
3824
|
+
acknowledgeReset: TRPCMutationProcedure<{
|
|
3825
|
+
input: {
|
|
3826
|
+
[x: string]: unknown;
|
|
3827
|
+
} & z.input<typeof keychainAdminCapability.methods.acknowledgeReset.input>;
|
|
3828
|
+
output: z.infer<typeof keychainAdminCapability.methods.acknowledgeReset.output>;
|
|
3829
|
+
meta: object;
|
|
3830
|
+
}>;
|
|
3780
3831
|
}>>;
|
|
3781
3832
|
lawnMowerControl: TRPCBuiltRouter<{
|
|
3782
3833
|
ctx: TrpcContext;
|
|
@@ -6058,6 +6109,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
6058
6109
|
output: z.infer<typeof pipelineAnalyticsCapability.methods.writeRetrainArchive.output>;
|
|
6059
6110
|
meta: object;
|
|
6060
6111
|
}>;
|
|
6112
|
+
offerRetrainArchive: TRPCMutationProcedure<{
|
|
6113
|
+
input: {
|
|
6114
|
+
[x: string]: unknown;
|
|
6115
|
+
} & z.input<typeof pipelineAnalyticsCapability.methods.offerRetrainArchive.input>;
|
|
6116
|
+
output: z.infer<typeof pipelineAnalyticsCapability.methods.offerRetrainArchive.output>;
|
|
6117
|
+
meta: object;
|
|
6118
|
+
}>;
|
|
6061
6119
|
previewRetrainDataset: TRPCQueryProcedure<{
|
|
6062
6120
|
input: {
|
|
6063
6121
|
[x: string]: unknown;
|
|
@@ -9249,6 +9307,216 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
9249
9307
|
meta: object;
|
|
9250
9308
|
}>;
|
|
9251
9309
|
}>>;
|
|
9310
|
+
training: TRPCBuiltRouter<{
|
|
9311
|
+
ctx: TrpcContext;
|
|
9312
|
+
meta: object;
|
|
9313
|
+
errorShape: AugmentedErrorShape;
|
|
9314
|
+
transformer: true;
|
|
9315
|
+
}, TRPCDecorateCreateRouterOptions<{
|
|
9316
|
+
putDatasetVersion: TRPCMutationProcedure<{
|
|
9317
|
+
input: {
|
|
9318
|
+
[x: string]: unknown;
|
|
9319
|
+
} & z.input<typeof trainingCapability.methods.putDatasetVersion.input>;
|
|
9320
|
+
output: z.infer<typeof trainingCapability.methods.putDatasetVersion.output>;
|
|
9321
|
+
meta: object;
|
|
9322
|
+
}>;
|
|
9323
|
+
getDatasetVersion: TRPCQueryProcedure<{
|
|
9324
|
+
input: {
|
|
9325
|
+
[x: string]: unknown;
|
|
9326
|
+
} & z.input<typeof trainingCapability.methods.getDatasetVersion.input>;
|
|
9327
|
+
output: z.infer<typeof trainingCapability.methods.getDatasetVersion.output>;
|
|
9328
|
+
meta: object;
|
|
9329
|
+
}>;
|
|
9330
|
+
listDatasetVersions: TRPCQueryProcedure<{
|
|
9331
|
+
input: {
|
|
9332
|
+
[x: string]: unknown;
|
|
9333
|
+
} & z.input<typeof trainingCapability.methods.listDatasetVersions.input>;
|
|
9334
|
+
output: z.infer<typeof trainingCapability.methods.listDatasetVersions.output>;
|
|
9335
|
+
meta: object;
|
|
9336
|
+
}>;
|
|
9337
|
+
findDatasetVersionIdByName: TRPCQueryProcedure<{
|
|
9338
|
+
input: {
|
|
9339
|
+
[x: string]: unknown;
|
|
9340
|
+
} & z.input<typeof trainingCapability.methods.findDatasetVersionIdByName.input>;
|
|
9341
|
+
output: z.infer<typeof trainingCapability.methods.findDatasetVersionIdByName.output>;
|
|
9342
|
+
meta: object;
|
|
9343
|
+
}>;
|
|
9344
|
+
removeDatasetVersion: TRPCMutationProcedure<{
|
|
9345
|
+
input: {
|
|
9346
|
+
[x: string]: unknown;
|
|
9347
|
+
} & z.input<typeof trainingCapability.methods.removeDatasetVersion.input>;
|
|
9348
|
+
output: z.infer<typeof trainingCapability.methods.removeDatasetVersion.output>;
|
|
9349
|
+
meta: object;
|
|
9350
|
+
}>;
|
|
9351
|
+
listBaseModels: TRPCQueryProcedure<{
|
|
9352
|
+
input: {
|
|
9353
|
+
[x: string]: unknown;
|
|
9354
|
+
} & z.input<typeof trainingCapability.methods.listBaseModels.input>;
|
|
9355
|
+
output: z.infer<typeof trainingCapability.methods.listBaseModels.output>;
|
|
9356
|
+
meta: object;
|
|
9357
|
+
}>;
|
|
9358
|
+
planJob: TRPCQueryProcedure<{
|
|
9359
|
+
input: {
|
|
9360
|
+
[x: string]: unknown;
|
|
9361
|
+
} & z.input<typeof trainingCapability.methods.planJob.input>;
|
|
9362
|
+
output: z.infer<typeof trainingCapability.methods.planJob.output>;
|
|
9363
|
+
meta: object;
|
|
9364
|
+
}>;
|
|
9365
|
+
startJob: TRPCMutationProcedure<{
|
|
9366
|
+
input: {
|
|
9367
|
+
[x: string]: unknown;
|
|
9368
|
+
} & z.input<typeof trainingCapability.methods.startJob.input>;
|
|
9369
|
+
output: z.infer<typeof trainingCapability.methods.startJob.output>;
|
|
9370
|
+
meta: object;
|
|
9371
|
+
}>;
|
|
9372
|
+
listJobs: TRPCQueryProcedure<{
|
|
9373
|
+
input: {
|
|
9374
|
+
[x: string]: unknown;
|
|
9375
|
+
} & z.input<typeof trainingCapability.methods.listJobs.input>;
|
|
9376
|
+
output: z.infer<typeof trainingCapability.methods.listJobs.output>;
|
|
9377
|
+
meta: object;
|
|
9378
|
+
}>;
|
|
9379
|
+
getJob: TRPCQueryProcedure<{
|
|
9380
|
+
input: {
|
|
9381
|
+
[x: string]: unknown;
|
|
9382
|
+
} & z.input<typeof trainingCapability.methods.getJob.input>;
|
|
9383
|
+
output: z.infer<typeof trainingCapability.methods.getJob.output>;
|
|
9384
|
+
meta: object;
|
|
9385
|
+
}>;
|
|
9386
|
+
cancelJob: TRPCMutationProcedure<{
|
|
9387
|
+
input: {
|
|
9388
|
+
[x: string]: unknown;
|
|
9389
|
+
} & z.input<typeof trainingCapability.methods.cancelJob.input>;
|
|
9390
|
+
output: z.infer<typeof trainingCapability.methods.cancelJob.output>;
|
|
9391
|
+
meta: object;
|
|
9392
|
+
}>;
|
|
9393
|
+
getJobResult: TRPCQueryProcedure<{
|
|
9394
|
+
input: {
|
|
9395
|
+
[x: string]: unknown;
|
|
9396
|
+
} & z.input<typeof trainingCapability.methods.getJobResult.input>;
|
|
9397
|
+
output: z.infer<typeof trainingCapability.methods.getJobResult.output>;
|
|
9398
|
+
meta: object;
|
|
9399
|
+
}>;
|
|
9400
|
+
registerResult: TRPCMutationProcedure<{
|
|
9401
|
+
input: {
|
|
9402
|
+
[x: string]: unknown;
|
|
9403
|
+
} & z.input<typeof trainingCapability.methods.registerResult.input>;
|
|
9404
|
+
output: z.infer<typeof trainingCapability.methods.registerResult.output>;
|
|
9405
|
+
meta: object;
|
|
9406
|
+
}>;
|
|
9407
|
+
canaryResult: TRPCMutationProcedure<{
|
|
9408
|
+
input: {
|
|
9409
|
+
[x: string]: unknown;
|
|
9410
|
+
} & z.input<typeof trainingCapability.methods.canaryResult.input>;
|
|
9411
|
+
output: z.infer<typeof trainingCapability.methods.canaryResult.output>;
|
|
9412
|
+
meta: object;
|
|
9413
|
+
}>;
|
|
9414
|
+
rollbackCanary: TRPCMutationProcedure<{
|
|
9415
|
+
input: {
|
|
9416
|
+
[x: string]: unknown;
|
|
9417
|
+
} & z.input<typeof trainingCapability.methods.rollbackCanary.input>;
|
|
9418
|
+
output: z.infer<typeof trainingCapability.methods.rollbackCanary.output>;
|
|
9419
|
+
meta: object;
|
|
9420
|
+
}>;
|
|
9421
|
+
discardResult: TRPCMutationProcedure<{
|
|
9422
|
+
input: {
|
|
9423
|
+
[x: string]: unknown;
|
|
9424
|
+
} & z.input<typeof trainingCapability.methods.discardResult.input>;
|
|
9425
|
+
output: z.infer<typeof trainingCapability.methods.discardResult.output>;
|
|
9426
|
+
meta: object;
|
|
9427
|
+
}>;
|
|
9428
|
+
}>>;
|
|
9429
|
+
trainingProvider: TRPCBuiltRouter<{
|
|
9430
|
+
ctx: TrpcContext;
|
|
9431
|
+
meta: object;
|
|
9432
|
+
errorShape: AugmentedErrorShape;
|
|
9433
|
+
transformer: true;
|
|
9434
|
+
}, TRPCDecorateCreateRouterOptions<{
|
|
9435
|
+
describe: TRPCQueryProcedure<{
|
|
9436
|
+
input: {
|
|
9437
|
+
[x: string]: unknown;
|
|
9438
|
+
} & z.input<typeof trainingProviderCapability.methods.describe.input>;
|
|
9439
|
+
output: z.infer<typeof trainingProviderCapability.methods.describe.output>;
|
|
9440
|
+
meta: object;
|
|
9441
|
+
}>;
|
|
9442
|
+
validateCredentials: TRPCMutationProcedure<{
|
|
9443
|
+
input: {
|
|
9444
|
+
[x: string]: unknown;
|
|
9445
|
+
} & z.input<typeof trainingProviderCapability.methods.validateCredentials.input>;
|
|
9446
|
+
output: z.infer<typeof trainingProviderCapability.methods.validateCredentials.output>;
|
|
9447
|
+
meta: object;
|
|
9448
|
+
}>;
|
|
9449
|
+
estimateJob: TRPCQueryProcedure<{
|
|
9450
|
+
input: {
|
|
9451
|
+
[x: string]: unknown;
|
|
9452
|
+
} & z.input<typeof trainingProviderCapability.methods.estimateJob.input>;
|
|
9453
|
+
output: z.infer<typeof trainingProviderCapability.methods.estimateJob.output>;
|
|
9454
|
+
meta: object;
|
|
9455
|
+
}>;
|
|
9456
|
+
uploadDataset: TRPCMutationProcedure<{
|
|
9457
|
+
input: {
|
|
9458
|
+
[x: string]: unknown;
|
|
9459
|
+
} & z.input<typeof trainingProviderCapability.methods.uploadDataset.input>;
|
|
9460
|
+
output: z.infer<typeof trainingProviderCapability.methods.uploadDataset.output>;
|
|
9461
|
+
meta: object;
|
|
9462
|
+
}>;
|
|
9463
|
+
submitJob: TRPCMutationProcedure<{
|
|
9464
|
+
input: {
|
|
9465
|
+
[x: string]: unknown;
|
|
9466
|
+
} & z.input<typeof trainingProviderCapability.methods.submitJob.input>;
|
|
9467
|
+
output: z.infer<typeof trainingProviderCapability.methods.submitJob.output>;
|
|
9468
|
+
meta: object;
|
|
9469
|
+
}>;
|
|
9470
|
+
getJob: TRPCQueryProcedure<{
|
|
9471
|
+
input: {
|
|
9472
|
+
[x: string]: unknown;
|
|
9473
|
+
} & z.input<typeof trainingProviderCapability.methods.getJob.input>;
|
|
9474
|
+
output: z.infer<typeof trainingProviderCapability.methods.getJob.output>;
|
|
9475
|
+
meta: object;
|
|
9476
|
+
}>;
|
|
9477
|
+
listJobEvents: TRPCQueryProcedure<{
|
|
9478
|
+
input: {
|
|
9479
|
+
[x: string]: unknown;
|
|
9480
|
+
} & z.input<typeof trainingProviderCapability.methods.listJobEvents.input>;
|
|
9481
|
+
output: z.infer<typeof trainingProviderCapability.methods.listJobEvents.output>;
|
|
9482
|
+
meta: object;
|
|
9483
|
+
}>;
|
|
9484
|
+
cancelJob: TRPCMutationProcedure<{
|
|
9485
|
+
input: {
|
|
9486
|
+
[x: string]: unknown;
|
|
9487
|
+
} & z.input<typeof trainingProviderCapability.methods.cancelJob.input>;
|
|
9488
|
+
output: z.infer<typeof trainingProviderCapability.methods.cancelJob.output>;
|
|
9489
|
+
meta: object;
|
|
9490
|
+
}>;
|
|
9491
|
+
readResult: TRPCMutationProcedure<{
|
|
9492
|
+
input: {
|
|
9493
|
+
[x: string]: unknown;
|
|
9494
|
+
} & z.input<typeof trainingProviderCapability.methods.readResult.input>;
|
|
9495
|
+
output: z.infer<typeof trainingProviderCapability.methods.readResult.output>;
|
|
9496
|
+
meta: object;
|
|
9497
|
+
}>;
|
|
9498
|
+
offerArtifact: TRPCMutationProcedure<{
|
|
9499
|
+
input: {
|
|
9500
|
+
[x: string]: unknown;
|
|
9501
|
+
} & z.input<typeof trainingProviderCapability.methods.offerArtifact.input>;
|
|
9502
|
+
output: z.infer<typeof trainingProviderCapability.methods.offerArtifact.output>;
|
|
9503
|
+
meta: object;
|
|
9504
|
+
}>;
|
|
9505
|
+
cleanupJob: TRPCMutationProcedure<{
|
|
9506
|
+
input: {
|
|
9507
|
+
[x: string]: unknown;
|
|
9508
|
+
} & z.input<typeof trainingProviderCapability.methods.cleanupJob.input>;
|
|
9509
|
+
output: z.infer<typeof trainingProviderCapability.methods.cleanupJob.output>;
|
|
9510
|
+
meta: object;
|
|
9511
|
+
}>;
|
|
9512
|
+
listJobs: TRPCQueryProcedure<{
|
|
9513
|
+
input: {
|
|
9514
|
+
[x: string]: unknown;
|
|
9515
|
+
} & z.input<typeof trainingProviderCapability.methods.listJobs.input>;
|
|
9516
|
+
output: z.infer<typeof trainingProviderCapability.methods.listJobs.output>;
|
|
9517
|
+
meta: object;
|
|
9518
|
+
}>;
|
|
9519
|
+
}>>;
|
|
9252
9520
|
turnProvider: TRPCBuiltRouter<{
|
|
9253
9521
|
ctx: TrpcContext;
|
|
9254
9522
|
meta: object;
|
|
@@ -9347,13 +9615,6 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
9347
9615
|
output: z.infer<typeof userManagementCapability.methods.listApiKeys.output>;
|
|
9348
9616
|
meta: object;
|
|
9349
9617
|
}>;
|
|
9350
|
-
createApiKey: TRPCMutationProcedure<{
|
|
9351
|
-
input: {
|
|
9352
|
-
[x: string]: unknown;
|
|
9353
|
-
} & z.input<typeof userManagementCapability.methods.createApiKey.input>;
|
|
9354
|
-
output: z.infer<typeof userManagementCapability.methods.createApiKey.output>;
|
|
9355
|
-
meta: object;
|
|
9356
|
-
}>;
|
|
9357
9618
|
revokeApiKey: TRPCMutationProcedure<{
|
|
9358
9619
|
input: {
|
|
9359
9620
|
[x: string]: unknown;
|
|
@@ -9361,13 +9622,6 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
9361
9622
|
output: z.infer<typeof userManagementCapability.methods.revokeApiKey.output>;
|
|
9362
9623
|
meta: object;
|
|
9363
9624
|
}>;
|
|
9364
|
-
validateApiKey: TRPCMutationProcedure<{
|
|
9365
|
-
input: {
|
|
9366
|
-
[x: string]: unknown;
|
|
9367
|
-
} & z.input<typeof userManagementCapability.methods.validateApiKey.input>;
|
|
9368
|
-
output: z.infer<typeof userManagementCapability.methods.validateApiKey.output>;
|
|
9369
|
-
meta: object;
|
|
9370
|
-
}>;
|
|
9371
9625
|
createScopedToken: TRPCMutationProcedure<{
|
|
9372
9626
|
input: {
|
|
9373
9627
|
[x: string]: unknown;
|
|
@@ -9473,13 +9727,6 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
9473
9727
|
output: z.infer<typeof userManagementCapability.methods.findUserByExternalIdentity.output>;
|
|
9474
9728
|
meta: object;
|
|
9475
9729
|
}>;
|
|
9476
|
-
linkExternalIdentity: TRPCMutationProcedure<{
|
|
9477
|
-
input: {
|
|
9478
|
-
[x: string]: unknown;
|
|
9479
|
-
} & z.input<typeof userManagementCapability.methods.linkExternalIdentity.input>;
|
|
9480
|
-
output: z.infer<typeof userManagementCapability.methods.linkExternalIdentity.output>;
|
|
9481
|
-
meta: object;
|
|
9482
|
-
}>;
|
|
9483
9730
|
unlinkExternalIdentity: TRPCMutationProcedure<{
|
|
9484
9731
|
input: {
|
|
9485
9732
|
[x: string]: unknown;
|
|
@@ -10945,92 +11192,265 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
10945
11192
|
errorShape: AugmentedErrorShape;
|
|
10946
11193
|
transformer: true;
|
|
10947
11194
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
10948
|
-
|
|
10949
|
-
input:
|
|
10950
|
-
username: string;
|
|
10951
|
-
password: string;
|
|
10952
|
-
};
|
|
11195
|
+
listLinkableProviders: import("@trpc/server").TRPCQueryProcedure<{
|
|
11196
|
+
input: void;
|
|
10953
11197
|
output: {
|
|
10954
|
-
|
|
10955
|
-
|
|
10956
|
-
|
|
10957
|
-
username: string;
|
|
10958
|
-
isAdmin: boolean;
|
|
10959
|
-
};
|
|
10960
|
-
requiresTotp?: boolean | undefined;
|
|
10961
|
-
secondFactors?: ("totp" | "passkey")[] | undefined;
|
|
10962
|
-
};
|
|
11198
|
+
provider: string;
|
|
11199
|
+
label: string;
|
|
11200
|
+
}[];
|
|
10963
11201
|
meta: object;
|
|
10964
11202
|
}>;
|
|
10965
|
-
|
|
11203
|
+
beginExternalLink: import("@trpc/server").TRPCMutationProcedure<{
|
|
10966
11204
|
input: {
|
|
10967
|
-
|
|
10968
|
-
|
|
11205
|
+
provider: string;
|
|
11206
|
+
returnTo?: string | undefined;
|
|
11207
|
+
reauthToken?: string | undefined;
|
|
10969
11208
|
};
|
|
10970
11209
|
output: {
|
|
10971
|
-
|
|
10972
|
-
user: {
|
|
10973
|
-
id: string;
|
|
10974
|
-
username: string;
|
|
10975
|
-
isAdmin: boolean;
|
|
10976
|
-
};
|
|
10977
|
-
requiresTotp?: boolean | undefined;
|
|
10978
|
-
secondFactors?: ("totp" | "passkey")[] | undefined;
|
|
11210
|
+
url: string;
|
|
10979
11211
|
};
|
|
10980
11212
|
meta: object;
|
|
10981
11213
|
}>;
|
|
10982
|
-
|
|
11214
|
+
completeExternalLink: import("@trpc/server").TRPCMutationProcedure<{
|
|
10983
11215
|
input: {
|
|
10984
|
-
|
|
11216
|
+
code: string;
|
|
10985
11217
|
};
|
|
10986
11218
|
output: {
|
|
10987
|
-
|
|
11219
|
+
outcome: "session" | "linked" | "conflict" | "expired";
|
|
11220
|
+
provider?: string | undefined;
|
|
10988
11221
|
};
|
|
10989
11222
|
meta: object;
|
|
10990
11223
|
}>;
|
|
10991
|
-
|
|
10992
|
-
input:
|
|
10993
|
-
challengeToken: string;
|
|
10994
|
-
response: Record<string, unknown>;
|
|
10995
|
-
};
|
|
11224
|
+
createBrowserHandoff: import("@trpc/server").TRPCMutationProcedure<{
|
|
11225
|
+
input: void;
|
|
10996
11226
|
output: {
|
|
10997
|
-
|
|
10998
|
-
|
|
10999
|
-
id: string;
|
|
11000
|
-
username: string;
|
|
11001
|
-
isAdmin: boolean;
|
|
11002
|
-
};
|
|
11003
|
-
requiresTotp?: boolean | undefined;
|
|
11004
|
-
secondFactors?: ("totp" | "passkey")[] | undefined;
|
|
11227
|
+
path: string;
|
|
11228
|
+
expiresAt: number;
|
|
11005
11229
|
};
|
|
11006
11230
|
meta: object;
|
|
11007
11231
|
}>;
|
|
11008
|
-
|
|
11232
|
+
listOwnExternalIdentities: import("@trpc/server").TRPCQueryProcedure<{
|
|
11009
11233
|
input: void;
|
|
11010
11234
|
output: {
|
|
11011
|
-
|
|
11012
|
-
|
|
11235
|
+
provider: string;
|
|
11236
|
+
subject: string;
|
|
11237
|
+
linkedAt: number;
|
|
11238
|
+
providerLabel: string | null;
|
|
11239
|
+
available: boolean;
|
|
11240
|
+
label?: string | undefined;
|
|
11241
|
+
}[];
|
|
11013
11242
|
meta: object;
|
|
11014
11243
|
}>;
|
|
11015
|
-
|
|
11244
|
+
unlinkOwnExternalIdentity: import("@trpc/server").TRPCMutationProcedure<{
|
|
11016
11245
|
input: {
|
|
11017
|
-
|
|
11246
|
+
provider: string;
|
|
11247
|
+
subject: string;
|
|
11018
11248
|
};
|
|
11019
11249
|
output: {
|
|
11020
|
-
|
|
11021
|
-
user: {
|
|
11022
|
-
id: string;
|
|
11023
|
-
username: string;
|
|
11024
|
-
isAdmin: boolean;
|
|
11025
|
-
};
|
|
11026
|
-
requiresTotp?: boolean | undefined;
|
|
11027
|
-
secondFactors?: ("totp" | "passkey")[] | undefined;
|
|
11250
|
+
success: boolean;
|
|
11028
11251
|
};
|
|
11029
11252
|
meta: object;
|
|
11030
11253
|
}>;
|
|
11031
|
-
|
|
11032
|
-
input:
|
|
11033
|
-
output: {
|
|
11254
|
+
listLoginMethods: import("@trpc/server").TRPCQueryProcedure<{
|
|
11255
|
+
input: void;
|
|
11256
|
+
output: readonly ({
|
|
11257
|
+
kind: "redirect";
|
|
11258
|
+
id: string;
|
|
11259
|
+
label: string;
|
|
11260
|
+
startUrl: string;
|
|
11261
|
+
stage: "primary" | "second-factor";
|
|
11262
|
+
icon?: string | undefined;
|
|
11263
|
+
linkable?: boolean | undefined;
|
|
11264
|
+
} | {
|
|
11265
|
+
kind: "widget";
|
|
11266
|
+
id: string;
|
|
11267
|
+
addonId: string;
|
|
11268
|
+
bundle: string;
|
|
11269
|
+
remote: {
|
|
11270
|
+
remoteName: string;
|
|
11271
|
+
exposedModule: string;
|
|
11272
|
+
componentKey?: string | undefined;
|
|
11273
|
+
};
|
|
11274
|
+
stage: "primary" | "second-factor";
|
|
11275
|
+
bundleUrl: string;
|
|
11276
|
+
} | {
|
|
11277
|
+
kind: "passkey";
|
|
11278
|
+
id: string;
|
|
11279
|
+
label: string;
|
|
11280
|
+
stage: "primary" | "second-factor";
|
|
11281
|
+
rpId: string;
|
|
11282
|
+
origin: string | null;
|
|
11283
|
+
})[];
|
|
11284
|
+
meta: object;
|
|
11285
|
+
}>;
|
|
11286
|
+
createAdminToken: import("@trpc/server").TRPCMutationProcedure<{
|
|
11287
|
+
input: {
|
|
11288
|
+
name: string;
|
|
11289
|
+
expiresInDays?: number | undefined;
|
|
11290
|
+
reauthToken?: string | undefined;
|
|
11291
|
+
};
|
|
11292
|
+
output: {
|
|
11293
|
+
token: string;
|
|
11294
|
+
record: {
|
|
11295
|
+
id: string;
|
|
11296
|
+
createdBy: string;
|
|
11297
|
+
name: string;
|
|
11298
|
+
tokenPrefix: string;
|
|
11299
|
+
createdAt: number;
|
|
11300
|
+
expiresAt: number;
|
|
11301
|
+
lastUsedAt: number | null;
|
|
11302
|
+
revokedAt: number | null;
|
|
11303
|
+
};
|
|
11304
|
+
};
|
|
11305
|
+
meta: object;
|
|
11306
|
+
}>;
|
|
11307
|
+
listAdminTokens: import("@trpc/server").TRPCQueryProcedure<{
|
|
11308
|
+
input: void;
|
|
11309
|
+
output: {
|
|
11310
|
+
id: string;
|
|
11311
|
+
createdBy: string;
|
|
11312
|
+
name: string;
|
|
11313
|
+
tokenPrefix: string;
|
|
11314
|
+
createdAt: number;
|
|
11315
|
+
expiresAt: number;
|
|
11316
|
+
lastUsedAt: number | null;
|
|
11317
|
+
revokedAt: number | null;
|
|
11318
|
+
}[];
|
|
11319
|
+
meta: object;
|
|
11320
|
+
}>;
|
|
11321
|
+
revokeAdminToken: import("@trpc/server").TRPCMutationProcedure<{
|
|
11322
|
+
input: {
|
|
11323
|
+
id: string;
|
|
11324
|
+
};
|
|
11325
|
+
output: {
|
|
11326
|
+
success: boolean;
|
|
11327
|
+
};
|
|
11328
|
+
meta: object;
|
|
11329
|
+
}>;
|
|
11330
|
+
listAuthAudit: import("@trpc/server").TRPCQueryProcedure<{
|
|
11331
|
+
input: {
|
|
11332
|
+
limit?: number | undefined;
|
|
11333
|
+
userId?: string | undefined;
|
|
11334
|
+
} | undefined;
|
|
11335
|
+
output: {
|
|
11336
|
+
id: string;
|
|
11337
|
+
at: number;
|
|
11338
|
+
action: string;
|
|
11339
|
+
userId?: string | undefined;
|
|
11340
|
+
ip?: string | undefined;
|
|
11341
|
+
detail?: Record<string, string | number | boolean> | undefined;
|
|
11342
|
+
}[];
|
|
11343
|
+
meta: object;
|
|
11344
|
+
}>;
|
|
11345
|
+
reauthBeginPasskey: import("@trpc/server").TRPCMutationProcedure<{
|
|
11346
|
+
input: void;
|
|
11347
|
+
output: {
|
|
11348
|
+
optionsJSON: Record<string, unknown>;
|
|
11349
|
+
};
|
|
11350
|
+
meta: object;
|
|
11351
|
+
}>;
|
|
11352
|
+
reauthenticate: import("@trpc/server").TRPCMutationProcedure<{
|
|
11353
|
+
input: {
|
|
11354
|
+
password: string;
|
|
11355
|
+
} | {
|
|
11356
|
+
passkeyResponse: Record<string, unknown>;
|
|
11357
|
+
};
|
|
11358
|
+
output: {
|
|
11359
|
+
reauthToken: string;
|
|
11360
|
+
expiresAt: number;
|
|
11361
|
+
method: "password" | "passkey";
|
|
11362
|
+
};
|
|
11363
|
+
meta: object;
|
|
11364
|
+
}>;
|
|
11365
|
+
refreshSession: import("@trpc/server").TRPCMutationProcedure<{
|
|
11366
|
+
input: {
|
|
11367
|
+
refreshToken: string;
|
|
11368
|
+
};
|
|
11369
|
+
output: {
|
|
11370
|
+
token: string;
|
|
11371
|
+
refreshToken: string;
|
|
11372
|
+
expiresAt: number;
|
|
11373
|
+
sessionId: string;
|
|
11374
|
+
sessionExpiresAt: number;
|
|
11375
|
+
user: {
|
|
11376
|
+
id: string;
|
|
11377
|
+
username: string;
|
|
11378
|
+
isAdmin: boolean;
|
|
11379
|
+
};
|
|
11380
|
+
};
|
|
11381
|
+
meta: object;
|
|
11382
|
+
}>;
|
|
11383
|
+
logout: import("@trpc/server").TRPCMutationProcedure<{
|
|
11384
|
+
input: {
|
|
11385
|
+
everywhere?: boolean | undefined;
|
|
11386
|
+
} | undefined;
|
|
11387
|
+
output: {
|
|
11388
|
+
success: true;
|
|
11389
|
+
revoked: number;
|
|
11390
|
+
};
|
|
11391
|
+
meta: object;
|
|
11392
|
+
}>;
|
|
11393
|
+
listOwnSessions: import("@trpc/server").TRPCQueryProcedure<{
|
|
11394
|
+
input: void;
|
|
11395
|
+
output: {
|
|
11396
|
+
id: string;
|
|
11397
|
+
userId: string;
|
|
11398
|
+
method: string;
|
|
11399
|
+
refreshable: boolean;
|
|
11400
|
+
createdAt: number;
|
|
11401
|
+
lastUsedAt: number;
|
|
11402
|
+
expiresAt: number;
|
|
11403
|
+
client: string | null;
|
|
11404
|
+
ip: string | null;
|
|
11405
|
+
current: boolean;
|
|
11406
|
+
}[];
|
|
11407
|
+
meta: object;
|
|
11408
|
+
}>;
|
|
11409
|
+
revokeOwnSession: import("@trpc/server").TRPCMutationProcedure<{
|
|
11410
|
+
input: {
|
|
11411
|
+
id: string;
|
|
11412
|
+
};
|
|
11413
|
+
output: {
|
|
11414
|
+
success: boolean;
|
|
11415
|
+
};
|
|
11416
|
+
meta: object;
|
|
11417
|
+
}>;
|
|
11418
|
+
listSessions: import("@trpc/server").TRPCQueryProcedure<{
|
|
11419
|
+
input: {
|
|
11420
|
+
userId?: string | undefined;
|
|
11421
|
+
} | undefined;
|
|
11422
|
+
output: {
|
|
11423
|
+
id: string;
|
|
11424
|
+
userId: string;
|
|
11425
|
+
method: string;
|
|
11426
|
+
refreshable: boolean;
|
|
11427
|
+
createdAt: number;
|
|
11428
|
+
lastUsedAt: number;
|
|
11429
|
+
expiresAt: number;
|
|
11430
|
+
client: string | null;
|
|
11431
|
+
ip: string | null;
|
|
11432
|
+
current: boolean;
|
|
11433
|
+
}[];
|
|
11434
|
+
meta: object;
|
|
11435
|
+
}>;
|
|
11436
|
+
revokeSessions: import("@trpc/server").TRPCMutationProcedure<{
|
|
11437
|
+
input: {
|
|
11438
|
+
id: string;
|
|
11439
|
+
} | {
|
|
11440
|
+
userId: string;
|
|
11441
|
+
};
|
|
11442
|
+
output: {
|
|
11443
|
+
revoked: number;
|
|
11444
|
+
};
|
|
11445
|
+
meta: object;
|
|
11446
|
+
}>;
|
|
11447
|
+
login: import("@trpc/server").TRPCMutationProcedure<{
|
|
11448
|
+
input: {
|
|
11449
|
+
username: string;
|
|
11450
|
+
password: string;
|
|
11451
|
+
refreshable?: boolean | undefined;
|
|
11452
|
+
};
|
|
11453
|
+
output: {
|
|
11034
11454
|
token: string;
|
|
11035
11455
|
user: {
|
|
11036
11456
|
id: string;
|
|
@@ -11039,11 +11459,118 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11039
11459
|
};
|
|
11040
11460
|
requiresTotp?: boolean | undefined;
|
|
11041
11461
|
secondFactors?: ("totp" | "passkey")[] | undefined;
|
|
11462
|
+
expiresAt?: number | undefined;
|
|
11463
|
+
sessionId?: string | undefined;
|
|
11464
|
+
sessionExpiresAt?: number | undefined;
|
|
11465
|
+
refreshToken?: string | undefined;
|
|
11042
11466
|
};
|
|
11043
11467
|
meta: object;
|
|
11044
11468
|
}>;
|
|
11045
|
-
|
|
11469
|
+
loginVerifyTotp: import("@trpc/server").TRPCMutationProcedure<{
|
|
11470
|
+
input: {
|
|
11471
|
+
challengeToken: string;
|
|
11472
|
+
code: string;
|
|
11473
|
+
refreshable?: boolean | undefined;
|
|
11474
|
+
};
|
|
11475
|
+
output: {
|
|
11476
|
+
token: string;
|
|
11477
|
+
user: {
|
|
11478
|
+
id: string;
|
|
11479
|
+
username: string;
|
|
11480
|
+
isAdmin: boolean;
|
|
11481
|
+
};
|
|
11482
|
+
requiresTotp?: boolean | undefined;
|
|
11483
|
+
secondFactors?: ("totp" | "passkey")[] | undefined;
|
|
11484
|
+
expiresAt?: number | undefined;
|
|
11485
|
+
sessionId?: string | undefined;
|
|
11486
|
+
sessionExpiresAt?: number | undefined;
|
|
11487
|
+
refreshToken?: string | undefined;
|
|
11488
|
+
};
|
|
11489
|
+
meta: object;
|
|
11490
|
+
}>;
|
|
11491
|
+
loginBeginPasskey: import("@trpc/server").TRPCMutationProcedure<{
|
|
11492
|
+
input: {
|
|
11493
|
+
challengeToken: string;
|
|
11494
|
+
};
|
|
11495
|
+
output: {
|
|
11496
|
+
optionsJSON: Record<string, unknown>;
|
|
11497
|
+
};
|
|
11498
|
+
meta: object;
|
|
11499
|
+
}>;
|
|
11500
|
+
loginVerifyPasskey: import("@trpc/server").TRPCMutationProcedure<{
|
|
11501
|
+
input: {
|
|
11502
|
+
challengeToken: string;
|
|
11503
|
+
response: Record<string, unknown>;
|
|
11504
|
+
refreshable?: boolean | undefined;
|
|
11505
|
+
};
|
|
11506
|
+
output: {
|
|
11507
|
+
token: string;
|
|
11508
|
+
user: {
|
|
11509
|
+
id: string;
|
|
11510
|
+
username: string;
|
|
11511
|
+
isAdmin: boolean;
|
|
11512
|
+
};
|
|
11513
|
+
requiresTotp?: boolean | undefined;
|
|
11514
|
+
secondFactors?: ("totp" | "passkey")[] | undefined;
|
|
11515
|
+
expiresAt?: number | undefined;
|
|
11516
|
+
sessionId?: string | undefined;
|
|
11517
|
+
sessionExpiresAt?: number | undefined;
|
|
11518
|
+
refreshToken?: string | undefined;
|
|
11519
|
+
};
|
|
11520
|
+
meta: object;
|
|
11521
|
+
}>;
|
|
11522
|
+
passkeyLoginBegin: import("@trpc/server").TRPCMutationProcedure<{
|
|
11046
11523
|
input: void;
|
|
11524
|
+
output: {
|
|
11525
|
+
optionsJSON: Record<string, unknown>;
|
|
11526
|
+
};
|
|
11527
|
+
meta: object;
|
|
11528
|
+
}>;
|
|
11529
|
+
passkeyLoginFinish: import("@trpc/server").TRPCMutationProcedure<{
|
|
11530
|
+
input: {
|
|
11531
|
+
response: Record<string, unknown>;
|
|
11532
|
+
refreshable?: boolean | undefined;
|
|
11533
|
+
};
|
|
11534
|
+
output: {
|
|
11535
|
+
token: string;
|
|
11536
|
+
user: {
|
|
11537
|
+
id: string;
|
|
11538
|
+
username: string;
|
|
11539
|
+
isAdmin: boolean;
|
|
11540
|
+
};
|
|
11541
|
+
requiresTotp?: boolean | undefined;
|
|
11542
|
+
secondFactors?: ("totp" | "passkey")[] | undefined;
|
|
11543
|
+
expiresAt?: number | undefined;
|
|
11544
|
+
sessionId?: string | undefined;
|
|
11545
|
+
sessionExpiresAt?: number | undefined;
|
|
11546
|
+
refreshToken?: string | undefined;
|
|
11547
|
+
};
|
|
11548
|
+
meta: object;
|
|
11549
|
+
}>;
|
|
11550
|
+
exchangeSession: import("@trpc/server").TRPCMutationProcedure<{
|
|
11551
|
+
input: {
|
|
11552
|
+
refreshable?: boolean | undefined;
|
|
11553
|
+
} | undefined;
|
|
11554
|
+
output: {
|
|
11555
|
+
token: string;
|
|
11556
|
+
user: {
|
|
11557
|
+
id: string;
|
|
11558
|
+
username: string;
|
|
11559
|
+
isAdmin: boolean;
|
|
11560
|
+
};
|
|
11561
|
+
requiresTotp?: boolean | undefined;
|
|
11562
|
+
secondFactors?: ("totp" | "passkey")[] | undefined;
|
|
11563
|
+
expiresAt?: number | undefined;
|
|
11564
|
+
sessionId?: string | undefined;
|
|
11565
|
+
sessionExpiresAt?: number | undefined;
|
|
11566
|
+
refreshToken?: string | undefined;
|
|
11567
|
+
};
|
|
11568
|
+
meta: object;
|
|
11569
|
+
}>;
|
|
11570
|
+
createHandoffCode: import("@trpc/server").TRPCMutationProcedure<{
|
|
11571
|
+
input: {
|
|
11572
|
+
purpose?: "renew" | "new-session" | undefined;
|
|
11573
|
+
} | undefined;
|
|
11047
11574
|
output: {
|
|
11048
11575
|
code: string;
|
|
11049
11576
|
expiresAt: number;
|
|
@@ -11053,6 +11580,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11053
11580
|
redeemHandoffCode: import("@trpc/server").TRPCMutationProcedure<{
|
|
11054
11581
|
input: {
|
|
11055
11582
|
code: string;
|
|
11583
|
+
refreshable?: boolean | undefined;
|
|
11056
11584
|
};
|
|
11057
11585
|
output: {
|
|
11058
11586
|
token: string;
|
|
@@ -11063,6 +11591,10 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11063
11591
|
};
|
|
11064
11592
|
requiresTotp?: boolean | undefined;
|
|
11065
11593
|
secondFactors?: ("totp" | "passkey")[] | undefined;
|
|
11594
|
+
expiresAt?: number | undefined;
|
|
11595
|
+
sessionId?: string | undefined;
|
|
11596
|
+
sessionExpiresAt?: number | undefined;
|
|
11597
|
+
refreshToken?: string | undefined;
|
|
11066
11598
|
};
|
|
11067
11599
|
meta: object;
|
|
11068
11600
|
}>;
|
|
@@ -11078,7 +11610,6 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11078
11610
|
allowedDevices: Record<string, unknown>;
|
|
11079
11611
|
};
|
|
11080
11612
|
isApiKey: boolean;
|
|
11081
|
-
agentId?: string | undefined;
|
|
11082
11613
|
scope?: {
|
|
11083
11614
|
isAdmin: boolean;
|
|
11084
11615
|
allDevicesViewable: boolean;
|
|
@@ -11173,7 +11704,9 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11173
11704
|
meta: object;
|
|
11174
11705
|
}>;
|
|
11175
11706
|
disableOwnTotp: import("@trpc/server").TRPCMutationProcedure<{
|
|
11176
|
-
input:
|
|
11707
|
+
input: {
|
|
11708
|
+
reauthToken: string;
|
|
11709
|
+
} | undefined;
|
|
11177
11710
|
output: {
|
|
11178
11711
|
success: true;
|
|
11179
11712
|
};
|
|
@@ -11219,6 +11752,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11219
11752
|
removeOwnPasskey: import("@trpc/server").TRPCMutationProcedure<{
|
|
11220
11753
|
input: {
|
|
11221
11754
|
credentialId: string;
|
|
11755
|
+
reauthToken?: string | undefined;
|
|
11222
11756
|
};
|
|
11223
11757
|
output: {
|
|
11224
11758
|
success: true;
|
|
@@ -11267,7 +11801,9 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11267
11801
|
meta: object;
|
|
11268
11802
|
}>;
|
|
11269
11803
|
listShareTokens: import("@trpc/server").TRPCQueryProcedure<{
|
|
11270
|
-
input:
|
|
11804
|
+
input: {
|
|
11805
|
+
owner?: "all" | "self" | undefined;
|
|
11806
|
+
} | undefined;
|
|
11271
11807
|
output: {
|
|
11272
11808
|
id: string;
|
|
11273
11809
|
userId: string;
|
|
@@ -11284,13 +11820,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11284
11820
|
}[];
|
|
11285
11821
|
meta: object;
|
|
11286
11822
|
}>;
|
|
11287
|
-
|
|
11288
|
-
input: void;
|
|
11289
|
-
output: {
|
|
11290
|
-
success: true;
|
|
11291
|
-
};
|
|
11292
|
-
meta: object;
|
|
11293
|
-
}>;
|
|
11823
|
+
}>> & import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
11294
11824
|
listLinkableProviders: import("@trpc/server").TRPCQueryProcedure<{
|
|
11295
11825
|
input: void;
|
|
11296
11826
|
output: {
|
|
@@ -11302,12 +11832,32 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11302
11832
|
beginExternalLink: import("@trpc/server").TRPCMutationProcedure<{
|
|
11303
11833
|
input: {
|
|
11304
11834
|
provider: string;
|
|
11835
|
+
returnTo?: string | undefined;
|
|
11836
|
+
reauthToken?: string | undefined;
|
|
11305
11837
|
};
|
|
11306
11838
|
output: {
|
|
11307
11839
|
url: string;
|
|
11308
11840
|
};
|
|
11309
11841
|
meta: object;
|
|
11310
11842
|
}>;
|
|
11843
|
+
completeExternalLink: import("@trpc/server").TRPCMutationProcedure<{
|
|
11844
|
+
input: {
|
|
11845
|
+
code: string;
|
|
11846
|
+
};
|
|
11847
|
+
output: {
|
|
11848
|
+
outcome: "session" | "linked" | "conflict" | "expired";
|
|
11849
|
+
provider?: string | undefined;
|
|
11850
|
+
};
|
|
11851
|
+
meta: object;
|
|
11852
|
+
}>;
|
|
11853
|
+
createBrowserHandoff: import("@trpc/server").TRPCMutationProcedure<{
|
|
11854
|
+
input: void;
|
|
11855
|
+
output: {
|
|
11856
|
+
path: string;
|
|
11857
|
+
expiresAt: number;
|
|
11858
|
+
};
|
|
11859
|
+
meta: object;
|
|
11860
|
+
}>;
|
|
11311
11861
|
listOwnExternalIdentities: import("@trpc/server").TRPCQueryProcedure<{
|
|
11312
11862
|
input: void;
|
|
11313
11863
|
output: {
|
|
@@ -11362,11 +11912,172 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11362
11912
|
})[];
|
|
11363
11913
|
meta: object;
|
|
11364
11914
|
}>;
|
|
11365
|
-
|
|
11915
|
+
createAdminToken: import("@trpc/server").TRPCMutationProcedure<{
|
|
11916
|
+
input: {
|
|
11917
|
+
name: string;
|
|
11918
|
+
expiresInDays?: number | undefined;
|
|
11919
|
+
reauthToken?: string | undefined;
|
|
11920
|
+
};
|
|
11921
|
+
output: {
|
|
11922
|
+
token: string;
|
|
11923
|
+
record: {
|
|
11924
|
+
id: string;
|
|
11925
|
+
createdBy: string;
|
|
11926
|
+
name: string;
|
|
11927
|
+
tokenPrefix: string;
|
|
11928
|
+
createdAt: number;
|
|
11929
|
+
expiresAt: number;
|
|
11930
|
+
lastUsedAt: number | null;
|
|
11931
|
+
revokedAt: number | null;
|
|
11932
|
+
};
|
|
11933
|
+
};
|
|
11934
|
+
meta: object;
|
|
11935
|
+
}>;
|
|
11936
|
+
listAdminTokens: import("@trpc/server").TRPCQueryProcedure<{
|
|
11937
|
+
input: void;
|
|
11938
|
+
output: {
|
|
11939
|
+
id: string;
|
|
11940
|
+
createdBy: string;
|
|
11941
|
+
name: string;
|
|
11942
|
+
tokenPrefix: string;
|
|
11943
|
+
createdAt: number;
|
|
11944
|
+
expiresAt: number;
|
|
11945
|
+
lastUsedAt: number | null;
|
|
11946
|
+
revokedAt: number | null;
|
|
11947
|
+
}[];
|
|
11948
|
+
meta: object;
|
|
11949
|
+
}>;
|
|
11950
|
+
revokeAdminToken: import("@trpc/server").TRPCMutationProcedure<{
|
|
11951
|
+
input: {
|
|
11952
|
+
id: string;
|
|
11953
|
+
};
|
|
11954
|
+
output: {
|
|
11955
|
+
success: boolean;
|
|
11956
|
+
};
|
|
11957
|
+
meta: object;
|
|
11958
|
+
}>;
|
|
11959
|
+
listAuthAudit: import("@trpc/server").TRPCQueryProcedure<{
|
|
11960
|
+
input: {
|
|
11961
|
+
limit?: number | undefined;
|
|
11962
|
+
userId?: string | undefined;
|
|
11963
|
+
} | undefined;
|
|
11964
|
+
output: {
|
|
11965
|
+
id: string;
|
|
11966
|
+
at: number;
|
|
11967
|
+
action: string;
|
|
11968
|
+
userId?: string | undefined;
|
|
11969
|
+
ip?: string | undefined;
|
|
11970
|
+
detail?: Record<string, string | number | boolean> | undefined;
|
|
11971
|
+
}[];
|
|
11972
|
+
meta: object;
|
|
11973
|
+
}>;
|
|
11974
|
+
reauthBeginPasskey: import("@trpc/server").TRPCMutationProcedure<{
|
|
11975
|
+
input: void;
|
|
11976
|
+
output: {
|
|
11977
|
+
optionsJSON: Record<string, unknown>;
|
|
11978
|
+
};
|
|
11979
|
+
meta: object;
|
|
11980
|
+
}>;
|
|
11981
|
+
reauthenticate: import("@trpc/server").TRPCMutationProcedure<{
|
|
11982
|
+
input: {
|
|
11983
|
+
password: string;
|
|
11984
|
+
} | {
|
|
11985
|
+
passkeyResponse: Record<string, unknown>;
|
|
11986
|
+
};
|
|
11987
|
+
output: {
|
|
11988
|
+
reauthToken: string;
|
|
11989
|
+
expiresAt: number;
|
|
11990
|
+
method: "password" | "passkey";
|
|
11991
|
+
};
|
|
11992
|
+
meta: object;
|
|
11993
|
+
}>;
|
|
11994
|
+
refreshSession: import("@trpc/server").TRPCMutationProcedure<{
|
|
11995
|
+
input: {
|
|
11996
|
+
refreshToken: string;
|
|
11997
|
+
};
|
|
11998
|
+
output: {
|
|
11999
|
+
token: string;
|
|
12000
|
+
refreshToken: string;
|
|
12001
|
+
expiresAt: number;
|
|
12002
|
+
sessionId: string;
|
|
12003
|
+
sessionExpiresAt: number;
|
|
12004
|
+
user: {
|
|
12005
|
+
id: string;
|
|
12006
|
+
username: string;
|
|
12007
|
+
isAdmin: boolean;
|
|
12008
|
+
};
|
|
12009
|
+
};
|
|
12010
|
+
meta: object;
|
|
12011
|
+
}>;
|
|
12012
|
+
logout: import("@trpc/server").TRPCMutationProcedure<{
|
|
12013
|
+
input: {
|
|
12014
|
+
everywhere?: boolean | undefined;
|
|
12015
|
+
} | undefined;
|
|
12016
|
+
output: {
|
|
12017
|
+
success: true;
|
|
12018
|
+
revoked: number;
|
|
12019
|
+
};
|
|
12020
|
+
meta: object;
|
|
12021
|
+
}>;
|
|
12022
|
+
listOwnSessions: import("@trpc/server").TRPCQueryProcedure<{
|
|
12023
|
+
input: void;
|
|
12024
|
+
output: {
|
|
12025
|
+
id: string;
|
|
12026
|
+
userId: string;
|
|
12027
|
+
method: string;
|
|
12028
|
+
refreshable: boolean;
|
|
12029
|
+
createdAt: number;
|
|
12030
|
+
lastUsedAt: number;
|
|
12031
|
+
expiresAt: number;
|
|
12032
|
+
client: string | null;
|
|
12033
|
+
ip: string | null;
|
|
12034
|
+
current: boolean;
|
|
12035
|
+
}[];
|
|
12036
|
+
meta: object;
|
|
12037
|
+
}>;
|
|
12038
|
+
revokeOwnSession: import("@trpc/server").TRPCMutationProcedure<{
|
|
12039
|
+
input: {
|
|
12040
|
+
id: string;
|
|
12041
|
+
};
|
|
12042
|
+
output: {
|
|
12043
|
+
success: boolean;
|
|
12044
|
+
};
|
|
12045
|
+
meta: object;
|
|
12046
|
+
}>;
|
|
12047
|
+
listSessions: import("@trpc/server").TRPCQueryProcedure<{
|
|
12048
|
+
input: {
|
|
12049
|
+
userId?: string | undefined;
|
|
12050
|
+
} | undefined;
|
|
12051
|
+
output: {
|
|
12052
|
+
id: string;
|
|
12053
|
+
userId: string;
|
|
12054
|
+
method: string;
|
|
12055
|
+
refreshable: boolean;
|
|
12056
|
+
createdAt: number;
|
|
12057
|
+
lastUsedAt: number;
|
|
12058
|
+
expiresAt: number;
|
|
12059
|
+
client: string | null;
|
|
12060
|
+
ip: string | null;
|
|
12061
|
+
current: boolean;
|
|
12062
|
+
}[];
|
|
12063
|
+
meta: object;
|
|
12064
|
+
}>;
|
|
12065
|
+
revokeSessions: import("@trpc/server").TRPCMutationProcedure<{
|
|
12066
|
+
input: {
|
|
12067
|
+
id: string;
|
|
12068
|
+
} | {
|
|
12069
|
+
userId: string;
|
|
12070
|
+
};
|
|
12071
|
+
output: {
|
|
12072
|
+
revoked: number;
|
|
12073
|
+
};
|
|
12074
|
+
meta: object;
|
|
12075
|
+
}>;
|
|
11366
12076
|
login: import("@trpc/server").TRPCMutationProcedure<{
|
|
11367
12077
|
input: {
|
|
11368
12078
|
username: string;
|
|
11369
12079
|
password: string;
|
|
12080
|
+
refreshable?: boolean | undefined;
|
|
11370
12081
|
};
|
|
11371
12082
|
output: {
|
|
11372
12083
|
token: string;
|
|
@@ -11377,6 +12088,10 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11377
12088
|
};
|
|
11378
12089
|
requiresTotp?: boolean | undefined;
|
|
11379
12090
|
secondFactors?: ("totp" | "passkey")[] | undefined;
|
|
12091
|
+
expiresAt?: number | undefined;
|
|
12092
|
+
sessionId?: string | undefined;
|
|
12093
|
+
sessionExpiresAt?: number | undefined;
|
|
12094
|
+
refreshToken?: string | undefined;
|
|
11380
12095
|
};
|
|
11381
12096
|
meta: object;
|
|
11382
12097
|
}>;
|
|
@@ -11384,6 +12099,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11384
12099
|
input: {
|
|
11385
12100
|
challengeToken: string;
|
|
11386
12101
|
code: string;
|
|
12102
|
+
refreshable?: boolean | undefined;
|
|
11387
12103
|
};
|
|
11388
12104
|
output: {
|
|
11389
12105
|
token: string;
|
|
@@ -11394,6 +12110,10 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11394
12110
|
};
|
|
11395
12111
|
requiresTotp?: boolean | undefined;
|
|
11396
12112
|
secondFactors?: ("totp" | "passkey")[] | undefined;
|
|
12113
|
+
expiresAt?: number | undefined;
|
|
12114
|
+
sessionId?: string | undefined;
|
|
12115
|
+
sessionExpiresAt?: number | undefined;
|
|
12116
|
+
refreshToken?: string | undefined;
|
|
11397
12117
|
};
|
|
11398
12118
|
meta: object;
|
|
11399
12119
|
}>;
|
|
@@ -11410,6 +12130,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11410
12130
|
input: {
|
|
11411
12131
|
challengeToken: string;
|
|
11412
12132
|
response: Record<string, unknown>;
|
|
12133
|
+
refreshable?: boolean | undefined;
|
|
11413
12134
|
};
|
|
11414
12135
|
output: {
|
|
11415
12136
|
token: string;
|
|
@@ -11420,6 +12141,10 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11420
12141
|
};
|
|
11421
12142
|
requiresTotp?: boolean | undefined;
|
|
11422
12143
|
secondFactors?: ("totp" | "passkey")[] | undefined;
|
|
12144
|
+
expiresAt?: number | undefined;
|
|
12145
|
+
sessionId?: string | undefined;
|
|
12146
|
+
sessionExpiresAt?: number | undefined;
|
|
12147
|
+
refreshToken?: string | undefined;
|
|
11423
12148
|
};
|
|
11424
12149
|
meta: object;
|
|
11425
12150
|
}>;
|
|
@@ -11433,6 +12158,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11433
12158
|
passkeyLoginFinish: import("@trpc/server").TRPCMutationProcedure<{
|
|
11434
12159
|
input: {
|
|
11435
12160
|
response: Record<string, unknown>;
|
|
12161
|
+
refreshable?: boolean | undefined;
|
|
11436
12162
|
};
|
|
11437
12163
|
output: {
|
|
11438
12164
|
token: string;
|
|
@@ -11443,11 +12169,17 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11443
12169
|
};
|
|
11444
12170
|
requiresTotp?: boolean | undefined;
|
|
11445
12171
|
secondFactors?: ("totp" | "passkey")[] | undefined;
|
|
12172
|
+
expiresAt?: number | undefined;
|
|
12173
|
+
sessionId?: string | undefined;
|
|
12174
|
+
sessionExpiresAt?: number | undefined;
|
|
12175
|
+
refreshToken?: string | undefined;
|
|
11446
12176
|
};
|
|
11447
12177
|
meta: object;
|
|
11448
12178
|
}>;
|
|
11449
12179
|
exchangeSession: import("@trpc/server").TRPCMutationProcedure<{
|
|
11450
|
-
input:
|
|
12180
|
+
input: {
|
|
12181
|
+
refreshable?: boolean | undefined;
|
|
12182
|
+
} | undefined;
|
|
11451
12183
|
output: {
|
|
11452
12184
|
token: string;
|
|
11453
12185
|
user: {
|
|
@@ -11457,11 +12189,17 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11457
12189
|
};
|
|
11458
12190
|
requiresTotp?: boolean | undefined;
|
|
11459
12191
|
secondFactors?: ("totp" | "passkey")[] | undefined;
|
|
12192
|
+
expiresAt?: number | undefined;
|
|
12193
|
+
sessionId?: string | undefined;
|
|
12194
|
+
sessionExpiresAt?: number | undefined;
|
|
12195
|
+
refreshToken?: string | undefined;
|
|
11460
12196
|
};
|
|
11461
12197
|
meta: object;
|
|
11462
12198
|
}>;
|
|
11463
12199
|
createHandoffCode: import("@trpc/server").TRPCMutationProcedure<{
|
|
11464
|
-
input:
|
|
12200
|
+
input: {
|
|
12201
|
+
purpose?: "renew" | "new-session" | undefined;
|
|
12202
|
+
} | undefined;
|
|
11465
12203
|
output: {
|
|
11466
12204
|
code: string;
|
|
11467
12205
|
expiresAt: number;
|
|
@@ -11471,6 +12209,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11471
12209
|
redeemHandoffCode: import("@trpc/server").TRPCMutationProcedure<{
|
|
11472
12210
|
input: {
|
|
11473
12211
|
code: string;
|
|
12212
|
+
refreshable?: boolean | undefined;
|
|
11474
12213
|
};
|
|
11475
12214
|
output: {
|
|
11476
12215
|
token: string;
|
|
@@ -11481,6 +12220,10 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11481
12220
|
};
|
|
11482
12221
|
requiresTotp?: boolean | undefined;
|
|
11483
12222
|
secondFactors?: ("totp" | "passkey")[] | undefined;
|
|
12223
|
+
expiresAt?: number | undefined;
|
|
12224
|
+
sessionId?: string | undefined;
|
|
12225
|
+
sessionExpiresAt?: number | undefined;
|
|
12226
|
+
refreshToken?: string | undefined;
|
|
11484
12227
|
};
|
|
11485
12228
|
meta: object;
|
|
11486
12229
|
}>;
|
|
@@ -11496,7 +12239,6 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11496
12239
|
allowedDevices: Record<string, unknown>;
|
|
11497
12240
|
};
|
|
11498
12241
|
isApiKey: boolean;
|
|
11499
|
-
agentId?: string | undefined;
|
|
11500
12242
|
scope?: {
|
|
11501
12243
|
isAdmin: boolean;
|
|
11502
12244
|
allDevicesViewable: boolean;
|
|
@@ -11591,7 +12333,9 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11591
12333
|
meta: object;
|
|
11592
12334
|
}>;
|
|
11593
12335
|
disableOwnTotp: import("@trpc/server").TRPCMutationProcedure<{
|
|
11594
|
-
input:
|
|
12336
|
+
input: {
|
|
12337
|
+
reauthToken: string;
|
|
12338
|
+
} | undefined;
|
|
11595
12339
|
output: {
|
|
11596
12340
|
success: true;
|
|
11597
12341
|
};
|
|
@@ -11637,6 +12381,7 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11637
12381
|
removeOwnPasskey: import("@trpc/server").TRPCMutationProcedure<{
|
|
11638
12382
|
input: {
|
|
11639
12383
|
credentialId: string;
|
|
12384
|
+
reauthToken?: string | undefined;
|
|
11640
12385
|
};
|
|
11641
12386
|
output: {
|
|
11642
12387
|
success: true;
|
|
@@ -11685,7 +12430,9 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11685
12430
|
meta: object;
|
|
11686
12431
|
}>;
|
|
11687
12432
|
listShareTokens: import("@trpc/server").TRPCQueryProcedure<{
|
|
11688
|
-
input:
|
|
12433
|
+
input: {
|
|
12434
|
+
owner?: "all" | "self" | undefined;
|
|
12435
|
+
} | undefined;
|
|
11689
12436
|
output: {
|
|
11690
12437
|
id: string;
|
|
11691
12438
|
userId: string;
|
|
@@ -11702,84 +12449,6 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
11702
12449
|
}[];
|
|
11703
12450
|
meta: object;
|
|
11704
12451
|
}>;
|
|
11705
|
-
logout: import("@trpc/server").TRPCMutationProcedure<{
|
|
11706
|
-
input: void;
|
|
11707
|
-
output: {
|
|
11708
|
-
success: true;
|
|
11709
|
-
};
|
|
11710
|
-
meta: object;
|
|
11711
|
-
}>;
|
|
11712
|
-
listLinkableProviders: import("@trpc/server").TRPCQueryProcedure<{
|
|
11713
|
-
input: void;
|
|
11714
|
-
output: {
|
|
11715
|
-
provider: string;
|
|
11716
|
-
label: string;
|
|
11717
|
-
}[];
|
|
11718
|
-
meta: object;
|
|
11719
|
-
}>;
|
|
11720
|
-
beginExternalLink: import("@trpc/server").TRPCMutationProcedure<{
|
|
11721
|
-
input: {
|
|
11722
|
-
provider: string;
|
|
11723
|
-
};
|
|
11724
|
-
output: {
|
|
11725
|
-
url: string;
|
|
11726
|
-
};
|
|
11727
|
-
meta: object;
|
|
11728
|
-
}>;
|
|
11729
|
-
listOwnExternalIdentities: import("@trpc/server").TRPCQueryProcedure<{
|
|
11730
|
-
input: void;
|
|
11731
|
-
output: {
|
|
11732
|
-
provider: string;
|
|
11733
|
-
subject: string;
|
|
11734
|
-
linkedAt: number;
|
|
11735
|
-
providerLabel: string | null;
|
|
11736
|
-
available: boolean;
|
|
11737
|
-
label?: string | undefined;
|
|
11738
|
-
}[];
|
|
11739
|
-
meta: object;
|
|
11740
|
-
}>;
|
|
11741
|
-
unlinkOwnExternalIdentity: import("@trpc/server").TRPCMutationProcedure<{
|
|
11742
|
-
input: {
|
|
11743
|
-
provider: string;
|
|
11744
|
-
subject: string;
|
|
11745
|
-
};
|
|
11746
|
-
output: {
|
|
11747
|
-
success: boolean;
|
|
11748
|
-
};
|
|
11749
|
-
meta: object;
|
|
11750
|
-
}>;
|
|
11751
|
-
listLoginMethods: import("@trpc/server").TRPCQueryProcedure<{
|
|
11752
|
-
input: void;
|
|
11753
|
-
output: readonly ({
|
|
11754
|
-
kind: "redirect";
|
|
11755
|
-
id: string;
|
|
11756
|
-
label: string;
|
|
11757
|
-
startUrl: string;
|
|
11758
|
-
stage: "primary" | "second-factor";
|
|
11759
|
-
icon?: string | undefined;
|
|
11760
|
-
linkable?: boolean | undefined;
|
|
11761
|
-
} | {
|
|
11762
|
-
kind: "widget";
|
|
11763
|
-
id: string;
|
|
11764
|
-
addonId: string;
|
|
11765
|
-
bundle: string;
|
|
11766
|
-
remote: {
|
|
11767
|
-
remoteName: string;
|
|
11768
|
-
exposedModule: string;
|
|
11769
|
-
componentKey?: string | undefined;
|
|
11770
|
-
};
|
|
11771
|
-
stage: "primary" | "second-factor";
|
|
11772
|
-
bundleUrl: string;
|
|
11773
|
-
} | {
|
|
11774
|
-
kind: "passkey";
|
|
11775
|
-
id: string;
|
|
11776
|
-
label: string;
|
|
11777
|
-
stage: "primary" | "second-factor";
|
|
11778
|
-
rpId: string;
|
|
11779
|
-
origin: string | null;
|
|
11780
|
-
})[];
|
|
11781
|
-
meta: object;
|
|
11782
|
-
}>;
|
|
11783
12452
|
}>;
|
|
11784
12453
|
}>>;
|
|
11785
12454
|
/**
|