@authsome/client 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +392 -0
  3. package/RELEASE_CHECKLIST.md +162 -0
  4. package/RELEASE_v0.0.2.md +126 -0
  5. package/authsome-client-0.0.2.tgz +0 -0
  6. package/dist/client.d.ts +57 -1
  7. package/dist/client.js +39 -8
  8. package/dist/index.d.ts +25 -25
  9. package/dist/index.js +78 -26
  10. package/dist/plugins/oidcprovider.d.ts +1 -1
  11. package/dist/plugins/webhook.d.ts +3 -3
  12. package/dist/plugins/webhook.js +4 -4
  13. package/dist/types.d.ts +2471 -2531
  14. package/package.json +3 -24
  15. package/src/client.ts +257 -0
  16. package/src/errors.ts +92 -0
  17. package/src/index.ts +33 -0
  18. package/src/plugin.ts +13 -0
  19. package/src/plugins/admin.ts +84 -0
  20. package/src/plugins/anonymous.ts +31 -0
  21. package/src/plugins/apikey.ts +56 -0
  22. package/src/plugins/backupauth.ts +208 -0
  23. package/src/plugins/compliance.ts +204 -0
  24. package/src/plugins/consent.ts +125 -0
  25. package/src/plugins/emailotp.ts +33 -0
  26. package/src/plugins/idverification.ts +80 -0
  27. package/src/plugins/impersonation.ts +53 -0
  28. package/src/plugins/jwt.ts +44 -0
  29. package/src/plugins/magiclink.ts +31 -0
  30. package/src/plugins/mfa.ts +111 -0
  31. package/src/plugins/multiapp.ts +116 -0
  32. package/src/plugins/multisession.ts +36 -0
  33. package/src/plugins/notification.ts +98 -0
  34. package/src/plugins/oidcprovider.ts +90 -0
  35. package/src/plugins/organization.ts +99 -0
  36. package/src/plugins/passkey.ts +54 -0
  37. package/src/plugins/phone.ts +40 -0
  38. package/src/plugins/social.ts +48 -0
  39. package/src/plugins/sso.ts +55 -0
  40. package/src/plugins/stepup.ts +97 -0
  41. package/src/plugins/twofa.ts +61 -0
  42. package/src/plugins/username.ts +29 -0
  43. package/src/plugins/webhook.ts +50 -0
  44. package/src/types.ts +3677 -0
  45. package/tsconfig.json +16 -0
package/src/types.ts ADDED
@@ -0,0 +1,3677 @@
1
+ // Auto-generated TypeScript types
2
+
3
+ export interface StepUpRequirement {
4
+ amount: number;
5
+ currency: string;
6
+ ip: string;
7
+ route: string;
8
+ rule_name: string;
9
+ user_agent: string;
10
+ created_at: string;
11
+ method: string;
12
+ reason: string;
13
+ user_id: string;
14
+ required_level: string;
15
+ challenge_token: string;
16
+ expires_at: string;
17
+ fulfilled_at: string | undefined;
18
+ id: string;
19
+ metadata: any;
20
+ resource_type: string;
21
+ status: string;
22
+ current_level: string;
23
+ resource_action: string;
24
+ risk_score: number;
25
+ session_id: string;
26
+ org_id: string;
27
+ }
28
+
29
+ export interface StepUpAuditLog {
30
+ org_id: string;
31
+ created_at: string;
32
+ event_data: any;
33
+ id: string;
34
+ ip: string;
35
+ severity: string;
36
+ user_agent: string;
37
+ user_id: string;
38
+ event_type: string;
39
+ }
40
+
41
+ export interface BunRepository {
42
+ }
43
+
44
+ export interface GetSecurityQuestionsResponse {
45
+ questions: SecurityQuestionInfo[];
46
+ }
47
+
48
+ export interface RecoveryCodesConfig {
49
+ allowPrint: boolean;
50
+ autoRegenerate: boolean;
51
+ codeCount: number;
52
+ codeLength: number;
53
+ enabled: boolean;
54
+ format: string;
55
+ regenerateCount: number;
56
+ allowDownload: boolean;
57
+ }
58
+
59
+ export interface ImpersonationMiddleware {
60
+ }
61
+
62
+ export interface ContextRule {
63
+ description: string;
64
+ name: string;
65
+ org_id: string;
66
+ security_level: string;
67
+ condition: string;
68
+ }
69
+
70
+ export interface WebhookConfig {
71
+ enabled: boolean;
72
+ expiry_warning_days: number;
73
+ notify_on_created: boolean;
74
+ notify_on_deleted: boolean;
75
+ notify_on_expiring: boolean;
76
+ notify_on_rate_limit: boolean;
77
+ notify_on_rotated: boolean;
78
+ webhook_urls: string[];
79
+ }
80
+
81
+ export interface CancelRecoveryRequest {
82
+ reason: string;
83
+ sessionId: string;
84
+ }
85
+
86
+ export interface AddTrustedContactRequest {
87
+ email: string;
88
+ name: string;
89
+ phone: string;
90
+ relationship: string;
91
+ }
92
+
93
+ export interface RejectRecoveryResponse {
94
+ message: string;
95
+ reason: string;
96
+ rejected: boolean;
97
+ rejectedAt: string;
98
+ sessionId: string;
99
+ }
100
+
101
+ export interface ListProfilesFilter {
102
+ status: string | undefined;
103
+ appId: string | undefined;
104
+ standard: string | undefined;
105
+ }
106
+
107
+ export interface DiscoveryService {
108
+ }
109
+
110
+ export interface ClientSummary {
111
+ applicationType: string;
112
+ clientID: string;
113
+ createdAt: string;
114
+ isOrgLevel: boolean;
115
+ name: string;
116
+ }
117
+
118
+ export interface ConsentReportResponse {
119
+ id: string;
120
+ }
121
+
122
+ export interface SAMLLoginRequest {
123
+ relayState: string;
124
+ }
125
+
126
+ export interface ConnectionsResponse {
127
+ connections: any | undefined[];
128
+ }
129
+
130
+ export interface SetupSecurityQuestionsResponse {
131
+ count: number;
132
+ message: string;
133
+ setupAt: string;
134
+ }
135
+
136
+ export interface GetRecoveryConfigResponse {
137
+ requireMultipleSteps: boolean;
138
+ riskScoreThreshold: number;
139
+ enabledMethods: string[];
140
+ minimumStepsRequired: number;
141
+ requireAdminReview: boolean;
142
+ }
143
+
144
+ export interface ComplianceEvidence {
145
+ standard: string;
146
+ title: string;
147
+ appId: string;
148
+ description: string;
149
+ evidenceType: string;
150
+ fileHash: string;
151
+ fileUrl: string;
152
+ collectedBy: string;
153
+ controlId: string;
154
+ createdAt: string;
155
+ id: string;
156
+ metadata: any;
157
+ profileId: string;
158
+ }
159
+
160
+ export interface LinkRequest {
161
+ email: string;
162
+ name: string;
163
+ password: string;
164
+ }
165
+
166
+ export interface MFAPolicyResponse {
167
+ gracePeriodDays: number;
168
+ id: string;
169
+ organizationId: string | undefined;
170
+ requiredFactorCount: number;
171
+ allowedFactorTypes: string[];
172
+ appId: string;
173
+ enabled: boolean;
174
+ }
175
+
176
+ export interface DeclareABTestWinner_req {
177
+ abTestGroup: string;
178
+ winnerId: string;
179
+ }
180
+
181
+ export interface StateStore {
182
+ }
183
+
184
+ export interface Handler {
185
+ }
186
+
187
+ export interface AssignRole_reqBody {
188
+ roleID: string;
189
+ }
190
+
191
+ export interface SecurityQuestionsConfig {
192
+ enabled: boolean;
193
+ forbidCommonAnswers: boolean;
194
+ maxAnswerLength: number;
195
+ predefinedQuestions: string[];
196
+ caseSensitive: boolean;
197
+ lockoutDuration: any;
198
+ maxAttempts: number;
199
+ minimumQuestions: number;
200
+ requireMinLength: number;
201
+ requiredToRecover: number;
202
+ allowCustomQuestions: boolean;
203
+ }
204
+
205
+ export interface EmailFactorAdapter {
206
+ }
207
+
208
+ export interface JWKSResponse {
209
+ keys: JWK[];
210
+ }
211
+
212
+ export interface DataDeletionRequestInput {
213
+ deleteSections: string[];
214
+ reason: string;
215
+ }
216
+
217
+ export interface StepUpStatusResponse {
218
+ status: string;
219
+ }
220
+
221
+ export interface ImpersonationEndResponse {
222
+ ended_at: string;
223
+ status: string;
224
+ }
225
+
226
+ export interface Challenge {
227
+ type: string;
228
+ userAgent: string;
229
+ attempts: number;
230
+ createdAt: string;
231
+ maxAttempts: number;
232
+ status: string;
233
+ userId: string;
234
+ verifiedAt: string | undefined;
235
+ expiresAt: string;
236
+ factorId: string;
237
+ id: string;
238
+ ipAddress: string;
239
+ metadata: any;
240
+ }
241
+
242
+ export interface Adapter {
243
+ }
244
+
245
+ export interface TOTPSecret {
246
+ }
247
+
248
+ export interface ComplianceViolationsResponse {
249
+ violations: any[];
250
+ }
251
+
252
+ export interface ResetUserMFARequest {
253
+ reason: string;
254
+ }
255
+
256
+ export interface ClientsListResponse {
257
+ clients: ClientSummary[];
258
+ page: number;
259
+ pageSize: number;
260
+ total: number;
261
+ totalPages: number;
262
+ }
263
+
264
+ export interface stateEntry {
265
+ }
266
+
267
+ export interface ComplianceDashboardResponse {
268
+ metrics: any;
269
+ }
270
+
271
+ export interface SMSFactorAdapter {
272
+ }
273
+
274
+ export interface StepUpRequirementResponse {
275
+ id: string;
276
+ }
277
+
278
+ export interface ProviderListResponse {
279
+ providers: ProviderInfo[];
280
+ total: number;
281
+ }
282
+
283
+ export interface BackupAuthConfigResponse {
284
+ config: any;
285
+ }
286
+
287
+ export interface GetRecoveryStatsResponse {
288
+ failedRecoveries: number;
289
+ highRiskAttempts: number;
290
+ successRate: number;
291
+ successfulRecoveries: number;
292
+ totalAttempts: number;
293
+ adminReviewsRequired: number;
294
+ averageRiskScore: number;
295
+ methodStats: any;
296
+ pendingRecoveries: number;
297
+ }
298
+
299
+ export interface GenerateReportRequest {
300
+ format: string;
301
+ period: string;
302
+ reportType: string;
303
+ standard: string;
304
+ }
305
+
306
+ export interface InitiateChallengeRequest {
307
+ context: string;
308
+ factorTypes: string[];
309
+ metadata: any;
310
+ }
311
+
312
+ export interface JWK {
313
+ kid: string;
314
+ kty: string;
315
+ n: string;
316
+ use: string;
317
+ alg: string;
318
+ e: string;
319
+ }
320
+
321
+ export interface ConsentCookieResponse {
322
+ preferences: any;
323
+ }
324
+
325
+ export interface VerificationListResponse {
326
+ offset: number;
327
+ total: number;
328
+ verifications: any | undefined[];
329
+ limit: number;
330
+ }
331
+
332
+ export interface GenerateRecoveryCodesResponse {
333
+ count: number;
334
+ generatedAt: string;
335
+ warning: string;
336
+ codes: string[];
337
+ }
338
+
339
+ export interface SetActive_body {
340
+ id: string;
341
+ }
342
+
343
+ export interface NotificationWebhookResponse {
344
+ status: string;
345
+ }
346
+
347
+ export interface MockUserRepository {
348
+ }
349
+
350
+ export interface WebhookPayload {
351
+ }
352
+
353
+ export interface SendCodeRequest {
354
+ phone: string;
355
+ }
356
+
357
+ export interface Plugin {
358
+ }
359
+
360
+ export interface Status_body {
361
+ device_id: string;
362
+ user_id: string;
363
+ }
364
+
365
+ export interface TwoFASendOTPResponse {
366
+ code: string;
367
+ status: string;
368
+ }
369
+
370
+ export interface mockUserService {
371
+ }
372
+
373
+ export interface UnbanUserRequest {
374
+ user_id: string;
375
+ user_organization_id: string | undefined;
376
+ app_id: string;
377
+ reason: string;
378
+ }
379
+
380
+ export interface GetDocumentVerificationResponse {
381
+ confidenceScore: number;
382
+ documentId: string;
383
+ message: string;
384
+ rejectionReason: string;
385
+ status: string;
386
+ verifiedAt: string | undefined;
387
+ }
388
+
389
+ export interface SuccessResponse {
390
+ message: string;
391
+ success: boolean;
392
+ }
393
+
394
+ export interface LinkAccountRequest {
395
+ provider: string;
396
+ scopes: string[];
397
+ }
398
+
399
+ export interface ConsentExportFileResponse {
400
+ content_type: string;
401
+ data: number[];
402
+ }
403
+
404
+ export interface EvaluationResult {
405
+ allowed_methods: string[];
406
+ matched_rules: string[];
407
+ metadata: any;
408
+ reason: string;
409
+ security_level: string;
410
+ can_remember: boolean;
411
+ challenge_token: string;
412
+ current_level: string;
413
+ expires_at: string;
414
+ grace_period_ends_at: string;
415
+ required: boolean;
416
+ requirement_id: string;
417
+ }
418
+
419
+ export interface ComplianceEvidenceResponse {
420
+ id: string;
421
+ }
422
+
423
+ export interface RiskEngine {
424
+ }
425
+
426
+ export interface LimitResult {
427
+ }
428
+
429
+ export interface ComplianceTemplatesResponse {
430
+ templates: any[];
431
+ }
432
+
433
+ export interface Service {
434
+ }
435
+
436
+ export interface SecurityQuestionInfo {
437
+ id: string;
438
+ isCustom: boolean;
439
+ questionId: number;
440
+ questionText: string;
441
+ }
442
+
443
+ export interface ListRecoverySessionsResponse {
444
+ page: number;
445
+ pageSize: number;
446
+ sessions: RecoverySessionInfo[];
447
+ totalCount: number;
448
+ }
449
+
450
+ export interface CreateEvidenceRequest {
451
+ fileUrl: string;
452
+ standard: string;
453
+ title: string;
454
+ controlId: string;
455
+ description: string;
456
+ evidenceType: string;
457
+ }
458
+
459
+ export interface NotificationsResponse {
460
+ count: number;
461
+ notifications: any;
462
+ }
463
+
464
+ export interface BeginLoginRequest {
465
+ userId: string;
466
+ userVerification: string;
467
+ }
468
+
469
+ export interface SSOAuthResponse {
470
+ session: any | undefined;
471
+ token: string;
472
+ user: any | undefined;
473
+ }
474
+
475
+ export interface ComplianceViolation {
476
+ userId: string;
477
+ description: string;
478
+ metadata: any;
479
+ profileId: string;
480
+ resolvedBy: string;
481
+ status: string;
482
+ violationType: string;
483
+ appId: string;
484
+ createdAt: string;
485
+ id: string;
486
+ resolvedAt: string | undefined;
487
+ severity: string;
488
+ }
489
+
490
+ export interface SAMLLoginResponse {
491
+ requestId: string;
492
+ providerId: string;
493
+ redirectUrl: string;
494
+ }
495
+
496
+ export interface JWTService {
497
+ }
498
+
499
+ export interface DocumentVerificationConfig {
500
+ enabled: boolean;
501
+ encryptAtRest: boolean;
502
+ encryptionKey: string;
503
+ minConfidenceScore: number;
504
+ provider: string;
505
+ requireBothSides: boolean;
506
+ storageProvider: string;
507
+ acceptedDocuments: string[];
508
+ requireManualReview: boolean;
509
+ requireSelfie: boolean;
510
+ retentionPeriod: any;
511
+ storagePath: string;
512
+ }
513
+
514
+ export interface NotificationPreviewResponse {
515
+ body: string;
516
+ subject: string;
517
+ }
518
+
519
+ export interface DiscoveryResponse {
520
+ revocation_endpoint: string;
521
+ revocation_endpoint_auth_methods_supported: string[];
522
+ token_endpoint: string;
523
+ userinfo_endpoint: string;
524
+ authorization_endpoint: string;
525
+ claims_supported: string[];
526
+ introspection_endpoint: string;
527
+ introspection_endpoint_auth_methods_supported: string[];
528
+ response_types_supported: string[];
529
+ subject_types_supported: string[];
530
+ code_challenge_methods_supported: string[];
531
+ grant_types_supported: string[];
532
+ scopes_supported: string[];
533
+ id_token_signing_alg_values_supported: string[];
534
+ issuer: string;
535
+ jwks_uri: string;
536
+ registration_endpoint: string;
537
+ request_parameter_supported: boolean;
538
+ request_uri_parameter_supported: boolean;
539
+ response_modes_supported: string[];
540
+ token_endpoint_auth_methods_supported: string[];
541
+ claims_parameter_supported: boolean;
542
+ require_request_uri_registration: boolean;
543
+ }
544
+
545
+ export interface ConsentAuditLog {
546
+ id: string;
547
+ organizationId: string;
548
+ reason: string;
549
+ userAgent: string;
550
+ userId: string;
551
+ action: string;
552
+ createdAt: string;
553
+ ipAddress: string;
554
+ newValue: Record<string, any>;
555
+ previousValue: Record<string, any>;
556
+ purpose: string;
557
+ consentId: string;
558
+ consentType: string;
559
+ }
560
+
561
+ export interface TrustedDevice {
562
+ expiresAt: string;
563
+ id: string;
564
+ lastUsedAt: string | undefined;
565
+ metadata: any;
566
+ userAgent: string;
567
+ userId: string;
568
+ ipAddress: string;
569
+ name: string;
570
+ createdAt: string;
571
+ deviceId: string;
572
+ }
573
+
574
+ export interface OAuthErrorResponse {
575
+ error: string;
576
+ error_description: string;
577
+ error_uri: string;
578
+ state: string;
579
+ }
580
+
581
+ export interface OAuthState {
582
+ app_id: string;
583
+ created_at: string;
584
+ extra_scopes: string[];
585
+ link_user_id: string | undefined;
586
+ provider: string;
587
+ redirect_url: string;
588
+ user_organization_id: string | undefined;
589
+ }
590
+
591
+ export interface CallbackResult {
592
+ }
593
+
594
+ export interface StepUpPolicy {
595
+ description: string;
596
+ id: string;
597
+ priority: number;
598
+ updated_at: string;
599
+ created_at: string;
600
+ enabled: boolean;
601
+ metadata: any;
602
+ name: string;
603
+ org_id: string;
604
+ rules: any;
605
+ user_id: string;
606
+ }
607
+
608
+ export interface StepUpVerificationResponse {
609
+ expires_at: string;
610
+ verified: boolean;
611
+ }
612
+
613
+ export interface ListSessionsRequest {
614
+ app_id: string;
615
+ limit: number;
616
+ page: number;
617
+ user_id: string | undefined;
618
+ user_organization_id: string | undefined;
619
+ }
620
+
621
+ export interface MemoryStateStore {
622
+ }
623
+
624
+ export interface RateLimitingConfig {
625
+ maxAttemptsPerIp: number;
626
+ enabled: boolean;
627
+ exponentialBackoff: boolean;
628
+ ipCooldownPeriod: any;
629
+ lockoutAfterAttempts: number;
630
+ lockoutDuration: any;
631
+ maxAttemptsPerDay: number;
632
+ maxAttemptsPerHour: number;
633
+ }
634
+
635
+ export interface UploadDocumentRequest {
636
+ frontImage: string;
637
+ selfie: string;
638
+ sessionId: string;
639
+ backImage: string;
640
+ documentType: string;
641
+ }
642
+
643
+ export interface ComplianceTrainingsResponse {
644
+ training: any[];
645
+ }
646
+
647
+ export interface ComplianceStatusResponse {
648
+ status: string;
649
+ }
650
+
651
+ export interface WebAuthnConfig {
652
+ rp_display_name: string;
653
+ rp_id: string;
654
+ rp_origins: string[];
655
+ timeout: number;
656
+ attestation_preference: string;
657
+ authenticator_selection: any;
658
+ enabled: boolean;
659
+ }
660
+
661
+ export interface ConnectionResponse {
662
+ connection: any | undefined;
663
+ }
664
+
665
+ export interface BackupAuthRecoveryResponse {
666
+ session_id: string;
667
+ }
668
+
669
+ export interface AuditServiceAdapter {
670
+ }
671
+
672
+ export interface ConsentDecision {
673
+ }
674
+
675
+ export interface ConsentAuditLogsResponse {
676
+ audit_logs: any[];
677
+ }
678
+
679
+ export interface ConsentDeletionResponse {
680
+ id: string;
681
+ status: string;
682
+ }
683
+
684
+ export interface EnrollFactorRequest {
685
+ metadata: any;
686
+ name: string;
687
+ priority: string;
688
+ type: string;
689
+ }
690
+
691
+ export interface ChannelsResponse {
692
+ channels: any;
693
+ count: number;
694
+ }
695
+
696
+ export interface ClientUpdateRequest {
697
+ response_types: string[];
698
+ token_endpoint_auth_method: string;
699
+ tos_uri: string;
700
+ allowed_scopes: string[];
701
+ contacts: string[];
702
+ grant_types: string[];
703
+ logo_uri: string;
704
+ name: string;
705
+ redirect_uris: string[];
706
+ trusted_client: boolean | undefined;
707
+ policy_uri: string;
708
+ post_logout_redirect_uris: string[];
709
+ require_consent: boolean | undefined;
710
+ require_pkce: boolean | undefined;
711
+ }
712
+
713
+ export interface ScheduleVideoSessionRequest {
714
+ timeZone: string;
715
+ scheduledAt: string;
716
+ sessionId: string;
717
+ }
718
+
719
+ export interface DocumentVerificationRequest {
720
+ }
721
+
722
+ export interface MFAPolicy {
723
+ lockoutDurationMinutes: number;
724
+ maxFailedAttempts: number;
725
+ organizationId: string;
726
+ requiredFactorTypes: string[];
727
+ gracePeriodDays: number;
728
+ requiredFactorCount: number;
729
+ stepUpRequired: boolean;
730
+ trustedDeviceDays: number;
731
+ updatedAt: string;
732
+ adaptiveMfaEnabled: boolean;
733
+ allowedFactorTypes: string[];
734
+ createdAt: string;
735
+ id: string;
736
+ }
737
+
738
+ export interface RateLimitRule {
739
+ max: number;
740
+ window: any;
741
+ }
742
+
743
+ export interface UpdateConsentRequest {
744
+ granted: boolean | undefined;
745
+ metadata: any;
746
+ reason: string;
747
+ }
748
+
749
+ export interface OIDCLoginRequest {
750
+ state: string;
751
+ nonce: string;
752
+ redirectUri: string;
753
+ scope: string;
754
+ }
755
+
756
+ export interface UserServiceAdapter {
757
+ }
758
+
759
+ export interface MockEmailService {
760
+ }
761
+
762
+ export interface CreateProvider_req {
763
+ providerName: string;
764
+ providerType: string;
765
+ config: any;
766
+ isDefault: boolean;
767
+ organizationId?: string | undefined;
768
+ }
769
+
770
+ export interface SignUpResponse {
771
+ message: string;
772
+ status: string;
773
+ }
774
+
775
+ export interface ConsentAuditConfig {
776
+ immutable: boolean;
777
+ logIpAddress: boolean;
778
+ archiveOldLogs: boolean;
779
+ exportFormat: string;
780
+ logAllChanges: boolean;
781
+ logUserAgent: boolean;
782
+ retentionDays: number;
783
+ signLogs: boolean;
784
+ archiveInterval: any;
785
+ enabled: boolean;
786
+ }
787
+
788
+ export interface StripeIdentityConfig {
789
+ apiKey: string;
790
+ enabled: boolean;
791
+ requireLiveCapture: boolean;
792
+ requireMatchingSelfie: boolean;
793
+ returnUrl: string;
794
+ useMock: boolean;
795
+ webhookSecret: string;
796
+ allowedTypes: string[];
797
+ }
798
+
799
+ export interface ChallengeResponse {
800
+ sessionId: string;
801
+ availableFactors: FactorInfo[];
802
+ challengeId: string;
803
+ expiresAt: string;
804
+ factorsRequired: number;
805
+ }
806
+
807
+ export interface ListTrustedDevicesResponse {
808
+ count: number;
809
+ devices: TrustedDevice[];
810
+ }
811
+
812
+ export interface ListPasskeysRequest {
813
+ }
814
+
815
+ export interface TwoFAStatusResponse {
816
+ enabled: boolean;
817
+ method: string;
818
+ trusted: boolean;
819
+ }
820
+
821
+ export interface UpdateRecoveryConfigRequest {
822
+ enabledMethods: string[];
823
+ minimumStepsRequired: number;
824
+ requireAdminReview: boolean;
825
+ requireMultipleSteps: boolean;
826
+ riskScoreThreshold: number;
827
+ }
828
+
829
+ export interface MockService {
830
+ }
831
+
832
+ export interface AdminUpdateProviderRequest {
833
+ scopes: string[];
834
+ clientId: string | undefined;
835
+ clientSecret: string | undefined;
836
+ enabled: boolean | undefined;
837
+ }
838
+
839
+ export interface CreateUser_reqBody {
840
+ username?: string;
841
+ email: string;
842
+ email_verified: boolean;
843
+ metadata?: any;
844
+ name?: string;
845
+ password?: string;
846
+ role?: string;
847
+ }
848
+
849
+ export interface RecoveryConfiguration {
850
+ }
851
+
852
+ export interface CompliancePolicy {
853
+ reviewDate: string;
854
+ version: string;
855
+ approvedAt: string | undefined;
856
+ standard: string;
857
+ status: string;
858
+ title: string;
859
+ content: string;
860
+ effectiveDate: string;
861
+ profileId: string;
862
+ appId: string;
863
+ approvedBy: string;
864
+ metadata: any;
865
+ policyType: string;
866
+ updatedAt: string;
867
+ createdAt: string;
868
+ id: string;
869
+ }
870
+
871
+ export interface RedisChallengeStore {
872
+ }
873
+
874
+ export interface ConsentsResponse {
875
+ consents: any;
876
+ count: number;
877
+ }
878
+
879
+ export interface Verify_body {
880
+ code: string;
881
+ device_id: string;
882
+ remember_device: boolean;
883
+ user_id: string;
884
+ }
885
+
886
+ export interface ReportsConfig {
887
+ enabled: boolean;
888
+ formats: string[];
889
+ includeEvidence: boolean;
890
+ retentionDays: number;
891
+ schedule: string;
892
+ storagePath: string;
893
+ }
894
+
895
+ export interface ConsentSummary {
896
+ expiredConsents: number;
897
+ hasPendingDeletion: boolean;
898
+ hasPendingExport: boolean;
899
+ organizationId: string;
900
+ revokedConsents: number;
901
+ totalConsents: number;
902
+ userId: string;
903
+ grantedConsents: number;
904
+ lastConsentUpdate: string | undefined;
905
+ pendingRenewals: number;
906
+ consentsByType: any;
907
+ }
908
+
909
+ export interface ProviderSessionRequest {
910
+ }
911
+
912
+ export interface BackupAuthSessionsResponse {
913
+ sessions: any[];
914
+ }
915
+
916
+ export interface ContinueRecoveryResponse {
917
+ currentStep: number;
918
+ data: any;
919
+ expiresAt: string;
920
+ instructions: string;
921
+ method: string;
922
+ sessionId: string;
923
+ totalSteps: number;
924
+ }
925
+
926
+ export interface FactorVerificationRequest {
927
+ code: string;
928
+ data: any;
929
+ factorId: string;
930
+ }
931
+
932
+ export interface IntrospectionService {
933
+ }
934
+
935
+ export interface StepUpPolicyResponse {
936
+ id: string;
937
+ }
938
+
939
+ export interface CodesResponse {
940
+ codes: string[];
941
+ }
942
+
943
+ export interface GetSecurityQuestionsRequest {
944
+ sessionId: string;
945
+ }
946
+
947
+ export interface BackupAuthContactsResponse {
948
+ contacts: any[];
949
+ }
950
+
951
+ export interface ProvidersConfig {
952
+ email: EmailProviderConfig;
953
+ sms: SMSProviderConfig | undefined;
954
+ }
955
+
956
+ export interface mockProvider {
957
+ }
958
+
959
+ export interface StepUpEvaluationResponse {
960
+ reason: string;
961
+ required: boolean;
962
+ }
963
+
964
+ export interface RegisterProviderRequest {
965
+ oidcIssuer: string;
966
+ oidcRedirectURI: string;
967
+ providerId: string;
968
+ samlCert: string;
969
+ samlIssuer: string;
970
+ type: string;
971
+ domain: string;
972
+ oidcClientSecret: string;
973
+ samlEntryPoint: string;
974
+ attributeMapping: any;
975
+ oidcClientID: string;
976
+ }
977
+
978
+ export interface ComplianceTraining {
979
+ standard: string;
980
+ trainingType: string;
981
+ appId: string;
982
+ createdAt: string;
983
+ expiresAt: string | undefined;
984
+ metadata: any;
985
+ score: number;
986
+ status: string;
987
+ userId: string;
988
+ completedAt: string | undefined;
989
+ id: string;
990
+ profileId: string;
991
+ }
992
+
993
+ export interface ChallengeSession {
994
+ }
995
+
996
+ export interface BlockUserRequest {
997
+ reason: string;
998
+ }
999
+
1000
+ export interface AMLMatch {
1001
+ }
1002
+
1003
+ export interface StepUpRequirementsResponse {
1004
+ requirements: any[];
1005
+ }
1006
+
1007
+ export interface ForgetDeviceResponse {
1008
+ message: string;
1009
+ success: boolean;
1010
+ }
1011
+
1012
+ export interface EnableRequest {
1013
+ }
1014
+
1015
+ export interface UploadDocumentResponse {
1016
+ documentId: string;
1017
+ message: string;
1018
+ processingTime: string;
1019
+ status: string;
1020
+ uploadedAt: string;
1021
+ }
1022
+
1023
+ export interface TrustedContactsConfig {
1024
+ requireVerification: boolean;
1025
+ requiredToRecover: number;
1026
+ enabled: boolean;
1027
+ verificationExpiry: any;
1028
+ allowEmailContacts: boolean;
1029
+ allowPhoneContacts: boolean;
1030
+ cooldownPeriod: any;
1031
+ maxNotificationsPerDay: number;
1032
+ maximumContacts: number;
1033
+ minimumContacts: number;
1034
+ }
1035
+
1036
+ export interface SetupSecurityQuestionsRequest {
1037
+ questions: SetupSecurityQuestionRequest[];
1038
+ }
1039
+
1040
+ export interface ComplianceReport {
1041
+ fileUrl: string;
1042
+ period: string;
1043
+ reportType: string;
1044
+ summary: any;
1045
+ appId: string;
1046
+ createdAt: string;
1047
+ format: string;
1048
+ generatedBy: string;
1049
+ id: string;
1050
+ profileId: string;
1051
+ standard: string;
1052
+ status: string;
1053
+ expiresAt: string;
1054
+ fileSize: number;
1055
+ }
1056
+
1057
+ export interface CreateProfileRequest {
1058
+ appId: string;
1059
+ detailedAuditTrail: boolean;
1060
+ metadata: any;
1061
+ passwordExpiryDays: number;
1062
+ passwordRequireNumber: boolean;
1063
+ regularAccessReview: boolean;
1064
+ standards: string[];
1065
+ dataResidency: string;
1066
+ encryptionInTransit: boolean;
1067
+ name: string;
1068
+ passwordRequireSymbol: boolean;
1069
+ passwordRequireUpper: boolean;
1070
+ rbacRequired: boolean;
1071
+ sessionIdleTimeout: number;
1072
+ auditLogExport: boolean;
1073
+ encryptionAtRest: boolean;
1074
+ leastPrivilege: boolean;
1075
+ mfaRequired: boolean;
1076
+ passwordMinLength: number;
1077
+ passwordRequireLower: boolean;
1078
+ sessionIpBinding: boolean;
1079
+ complianceContact: string;
1080
+ dpoContact: string;
1081
+ retentionDays: number;
1082
+ sessionMaxAge: number;
1083
+ }
1084
+
1085
+ export interface NotificationErrorResponse {
1086
+ error: string;
1087
+ }
1088
+
1089
+ export interface WebAuthnWrapper {
1090
+ }
1091
+
1092
+ export interface CompleteRecoveryRequest {
1093
+ sessionId: string;
1094
+ }
1095
+
1096
+ export interface App {
1097
+ }
1098
+
1099
+ export interface StepUpPoliciesResponse {
1100
+ policies: any[];
1101
+ }
1102
+
1103
+ export interface RequirementsResponse {
1104
+ count: number;
1105
+ requirements: any;
1106
+ }
1107
+
1108
+ export interface RecoverySession {
1109
+ }
1110
+
1111
+ export interface FactorAdapterRegistry {
1112
+ }
1113
+
1114
+ export interface FinishRegisterResponse {
1115
+ createdAt: string;
1116
+ credentialId: string;
1117
+ name: string;
1118
+ passkeyId: string;
1119
+ status: string;
1120
+ }
1121
+
1122
+ export interface PrivacySettingsRequest {
1123
+ allowDataPortability: boolean | undefined;
1124
+ cookieConsentEnabled: boolean | undefined;
1125
+ dataExportExpiryHours: number | undefined;
1126
+ exportFormat: string[];
1127
+ autoDeleteAfterDays: number | undefined;
1128
+ ccpaMode: boolean | undefined;
1129
+ contactEmail: string;
1130
+ cookieConsentStyle: string;
1131
+ dataRetentionDays: number | undefined;
1132
+ deletionGracePeriodDays: number | undefined;
1133
+ dpoEmail: string;
1134
+ gdprMode: boolean | undefined;
1135
+ anonymousConsentEnabled: boolean | undefined;
1136
+ consentRequired: boolean | undefined;
1137
+ requireExplicitConsent: boolean | undefined;
1138
+ contactPhone: string;
1139
+ requireAdminApprovalForDeletion: boolean | undefined;
1140
+ }
1141
+
1142
+ export interface CreateAPIKeyResponse {
1143
+ api_key: any | undefined;
1144
+ message: string;
1145
+ }
1146
+
1147
+ export interface AutoCleanupConfig {
1148
+ enabled: boolean;
1149
+ interval: any;
1150
+ }
1151
+
1152
+ export interface ConsentReport {
1153
+ totalUsers: number;
1154
+ consentsByType: any;
1155
+ dataExportsThisPeriod: number;
1156
+ dpasExpiringSoon: number;
1157
+ organizationId: string;
1158
+ reportPeriodStart: string;
1159
+ usersWithConsent: number;
1160
+ completedDeletions: number;
1161
+ consentRate: number;
1162
+ dpasActive: number;
1163
+ pendingDeletions: number;
1164
+ reportPeriodEnd: string;
1165
+ }
1166
+
1167
+ export interface MultiSessionDeleteResponse {
1168
+ status: string;
1169
+ }
1170
+
1171
+ export interface ClientRegistrationRequest {
1172
+ contacts: string[];
1173
+ logo_uri: string;
1174
+ require_pkce: boolean;
1175
+ client_name: string;
1176
+ grant_types: string[];
1177
+ policy_uri: string;
1178
+ post_logout_redirect_uris: string[];
1179
+ response_types: string[];
1180
+ application_type: string;
1181
+ redirect_uris: string[];
1182
+ require_consent: boolean;
1183
+ scope: string;
1184
+ trusted_client: boolean;
1185
+ token_endpoint_auth_method: string;
1186
+ tos_uri: string;
1187
+ }
1188
+
1189
+ export interface WebhookResponse {
1190
+ received: boolean;
1191
+ status: string;
1192
+ }
1193
+
1194
+ export interface StepUpDevicesResponse {
1195
+ count: number;
1196
+ devices: any;
1197
+ }
1198
+
1199
+ export interface StepUpRememberedDevice {
1200
+ org_id: string;
1201
+ security_level: string;
1202
+ user_agent: string;
1203
+ user_id: string;
1204
+ device_name: string;
1205
+ expires_at: string;
1206
+ ip: string;
1207
+ last_used_at: string;
1208
+ remembered_at: string;
1209
+ created_at: string;
1210
+ device_id: string;
1211
+ id: string;
1212
+ }
1213
+
1214
+ export interface TwoFABackupCodesResponse {
1215
+ codes: string[];
1216
+ }
1217
+
1218
+ export interface BackupAuthDocumentResponse {
1219
+ id: string;
1220
+ }
1221
+
1222
+ export interface ComplianceCheckResponse {
1223
+ id: string;
1224
+ }
1225
+
1226
+ export interface ListChecksFilter {
1227
+ profileId: string | undefined;
1228
+ sinceBefore: string | undefined;
1229
+ status: string | undefined;
1230
+ appId: string | undefined;
1231
+ checkType: string | undefined;
1232
+ }
1233
+
1234
+ export interface GetChallengeStatusRequest {
1235
+ }
1236
+
1237
+ export interface ClientAuthenticator {
1238
+ }
1239
+
1240
+ export interface MockSessionService {
1241
+ }
1242
+
1243
+ export interface BackupAuthQuestionsResponse {
1244
+ questions: string[];
1245
+ }
1246
+
1247
+ export interface EndImpersonation_reqBody {
1248
+ impersonation_id: string;
1249
+ reason?: string;
1250
+ }
1251
+
1252
+ export interface JWKSService {
1253
+ }
1254
+
1255
+ export interface StepUpVerificationsResponse {
1256
+ verifications: any[];
1257
+ }
1258
+
1259
+ export interface SetUserRoleRequest {
1260
+ role: string;
1261
+ user_id: string;
1262
+ user_organization_id: string | undefined;
1263
+ app_id: string;
1264
+ }
1265
+
1266
+ export interface ProviderDetailResponse {
1267
+ domain: string;
1268
+ oidcClientID: string;
1269
+ oidcIssuer: string;
1270
+ samlEntryPoint: string;
1271
+ samlIssuer: string;
1272
+ attributeMapping: any;
1273
+ hasSamlCert: boolean;
1274
+ oidcRedirectURI: string;
1275
+ providerId: string;
1276
+ type: string;
1277
+ updatedAt: string;
1278
+ createdAt: string;
1279
+ }
1280
+
1281
+ export interface ListUsersRequest {
1282
+ limit: number;
1283
+ page: number;
1284
+ role: string;
1285
+ search: string;
1286
+ status: string;
1287
+ user_organization_id: string | undefined;
1288
+ app_id: string;
1289
+ }
1290
+
1291
+ export interface TeamsResponse {
1292
+ total: number;
1293
+ teams: any | undefined[];
1294
+ }
1295
+
1296
+ export interface AuthURLResponse {
1297
+ url: string;
1298
+ }
1299
+
1300
+ export interface CreateSessionHTTPRequest {
1301
+ requiredChecks: string[];
1302
+ successUrl: string;
1303
+ cancelUrl: string;
1304
+ config: any;
1305
+ metadata: any;
1306
+ provider: string;
1307
+ }
1308
+
1309
+ export interface UpdateProfileRequest {
1310
+ status: string | undefined;
1311
+ mfaRequired: boolean | undefined;
1312
+ name: string | undefined;
1313
+ retentionDays: number | undefined;
1314
+ }
1315
+
1316
+ export interface Webhook {
1317
+ createdAt: string;
1318
+ id: string;
1319
+ organizationId: string;
1320
+ url: string;
1321
+ events: string[];
1322
+ secret: string;
1323
+ enabled: boolean;
1324
+ }
1325
+
1326
+ export interface SignInResponse {
1327
+ session: any;
1328
+ token: string;
1329
+ user: any;
1330
+ }
1331
+
1332
+ export interface BackupCodesConfig {
1333
+ length: number;
1334
+ allow_reuse: boolean;
1335
+ count: number;
1336
+ enabled: boolean;
1337
+ format: string;
1338
+ }
1339
+
1340
+ export interface PasskeyInfo {
1341
+ aaguid: string;
1342
+ authenticatorType: string;
1343
+ credentialId: string;
1344
+ id: string;
1345
+ name: string;
1346
+ signCount: number;
1347
+ createdAt: string;
1348
+ isResidentKey: boolean;
1349
+ lastUsedAt: string | undefined;
1350
+ }
1351
+
1352
+ export interface ConsentPolicy {
1353
+ active: boolean;
1354
+ createdAt: string;
1355
+ description: string;
1356
+ organizationId: string;
1357
+ version: string;
1358
+ content: string;
1359
+ id: string;
1360
+ required: boolean;
1361
+ validityPeriod: number | undefined;
1362
+ consentType: string;
1363
+ metadata: Record<string, any>;
1364
+ renewable: boolean;
1365
+ createdBy: string;
1366
+ name: string;
1367
+ publishedAt: string | undefined;
1368
+ updatedAt: string;
1369
+ }
1370
+
1371
+ export interface MetadataResponse {
1372
+ metadata: string;
1373
+ }
1374
+
1375
+ export interface ListUsersResponse {
1376
+ limit: number;
1377
+ page: number;
1378
+ total: number;
1379
+ total_pages: number;
1380
+ users: any | undefined[];
1381
+ }
1382
+
1383
+ export interface RolesResponse {
1384
+ roles: any | undefined[];
1385
+ }
1386
+
1387
+ export interface RetentionConfig {
1388
+ archiveBeforePurge: boolean;
1389
+ archivePath: string;
1390
+ enabled: boolean;
1391
+ gracePeriodDays: number;
1392
+ purgeSchedule: string;
1393
+ }
1394
+
1395
+ export interface TemplateDefault {
1396
+ }
1397
+
1398
+ export interface GetPasskeyRequest {
1399
+ }
1400
+
1401
+ export interface ComplianceCheck {
1402
+ id: string;
1403
+ nextCheckAt: string;
1404
+ profileId: string;
1405
+ status: string;
1406
+ checkType: string;
1407
+ evidence: string[];
1408
+ lastCheckedAt: string;
1409
+ result: any;
1410
+ appId: string;
1411
+ createdAt: string;
1412
+ }
1413
+
1414
+ export interface GetChallengeStatusResponse {
1415
+ attempts: number;
1416
+ availableFactors: FactorInfo[];
1417
+ challengeId: string;
1418
+ factorsRequired: number;
1419
+ factorsVerified: number;
1420
+ maxAttempts: number;
1421
+ status: string;
1422
+ }
1423
+
1424
+ export interface CreateEvidence_req {
1425
+ controlId: string;
1426
+ description: string;
1427
+ evidenceType: string;
1428
+ fileUrl: string;
1429
+ standard: string;
1430
+ title: string;
1431
+ }
1432
+
1433
+ export interface BanUser_reqBody {
1434
+ expires_at?: string | undefined;
1435
+ reason: string;
1436
+ }
1437
+
1438
+ export interface StatsResponse {
1439
+ total_users: number;
1440
+ active_sessions: number;
1441
+ active_users: number;
1442
+ banned_users: number;
1443
+ timestamp: string;
1444
+ total_sessions: number;
1445
+ }
1446
+
1447
+ export interface VerifyCodeResponse {
1448
+ attemptsLeft: number;
1449
+ message: string;
1450
+ valid: boolean;
1451
+ }
1452
+
1453
+ export interface ConsentStatusResponse {
1454
+ status: string;
1455
+ }
1456
+
1457
+ export interface StepUpVerification {
1458
+ org_id: string;
1459
+ reason: string;
1460
+ session_id: string;
1461
+ created_at: string;
1462
+ method: string;
1463
+ rule_name: string;
1464
+ security_level: string;
1465
+ user_agent: string;
1466
+ verified_at: string;
1467
+ ip: string;
1468
+ user_id: string;
1469
+ device_id: string;
1470
+ expires_at: string;
1471
+ id: string;
1472
+ metadata: any;
1473
+ }
1474
+
1475
+ export interface NotificationTemplateListResponse {
1476
+ templates: any[];
1477
+ total: number;
1478
+ }
1479
+
1480
+ export interface OrganizationHandler {
1481
+ }
1482
+
1483
+ export interface UpdatePasskeyRequest {
1484
+ name: string;
1485
+ }
1486
+
1487
+ export interface AdminAddProviderRequest {
1488
+ appId: string;
1489
+ clientId: string;
1490
+ clientSecret: string;
1491
+ enabled: boolean;
1492
+ provider: string;
1493
+ scopes: string[];
1494
+ }
1495
+
1496
+ export interface ListRecoverySessionsRequest {
1497
+ organizationId: string;
1498
+ page: number;
1499
+ pageSize: number;
1500
+ requiresReview: boolean;
1501
+ status: string;
1502
+ }
1503
+
1504
+ export interface NoOpEmailProvider {
1505
+ }
1506
+
1507
+ export interface ConsentNotificationsConfig {
1508
+ notifyExportReady: boolean;
1509
+ notifyOnGrant: boolean;
1510
+ notifyOnRevoke: boolean;
1511
+ channels: string[];
1512
+ enabled: boolean;
1513
+ notifyDeletionApproved: boolean;
1514
+ notifyDeletionComplete: boolean;
1515
+ notifyDpoEmail: string;
1516
+ notifyOnExpiry: boolean;
1517
+ }
1518
+
1519
+ export interface RequestTrustedContactVerificationRequest {
1520
+ contactId: string;
1521
+ sessionId: string;
1522
+ }
1523
+
1524
+ export interface WebAuthnFactorAdapter {
1525
+ }
1526
+
1527
+ export interface UserInfoResponse {
1528
+ birthdate: string;
1529
+ gender: string;
1530
+ phone_number: string;
1531
+ picture: string;
1532
+ sub: string;
1533
+ family_name: string;
1534
+ updated_at: number;
1535
+ zoneinfo: string;
1536
+ email_verified: boolean;
1537
+ locale: string;
1538
+ middle_name: string;
1539
+ name: string;
1540
+ nickname: string;
1541
+ phone_number_verified: boolean;
1542
+ profile: string;
1543
+ email: string;
1544
+ given_name: string;
1545
+ preferred_username: string;
1546
+ website: string;
1547
+ }
1548
+
1549
+ export interface TwoFAErrorResponse {
1550
+ error: string;
1551
+ }
1552
+
1553
+ export interface SessionTokenResponse {
1554
+ session: any;
1555
+ token: string;
1556
+ }
1557
+
1558
+ export interface TemplateService {
1559
+ }
1560
+
1561
+ export interface ScheduleVideoSessionResponse {
1562
+ videoSessionId: string;
1563
+ instructions: string;
1564
+ joinUrl: string;
1565
+ message: string;
1566
+ scheduledAt: string;
1567
+ }
1568
+
1569
+ export interface ImpersonationContext {
1570
+ impersonation_id: string | undefined;
1571
+ impersonator_id: string | undefined;
1572
+ indicator_message: string;
1573
+ is_impersonating: boolean;
1574
+ target_user_id: string | undefined;
1575
+ }
1576
+
1577
+ export interface TrustDeviceRequest {
1578
+ name: string;
1579
+ deviceId: string;
1580
+ metadata: any;
1581
+ }
1582
+
1583
+ export interface EmailConfig {
1584
+ enabled: boolean;
1585
+ provider: string;
1586
+ rate_limit: RateLimitConfig | undefined;
1587
+ template_id: string;
1588
+ code_expiry_minutes: number;
1589
+ code_length: number;
1590
+ }
1591
+
1592
+ export interface DeviceInfo {
1593
+ deviceId: string;
1594
+ metadata: any;
1595
+ name: string;
1596
+ }
1597
+
1598
+ export interface ScopeInfo {
1599
+ }
1600
+
1601
+ export interface InvitationResponse {
1602
+ message: string;
1603
+ invitation: any | undefined;
1604
+ }
1605
+
1606
+ export interface CheckSubResult {
1607
+ }
1608
+
1609
+ export interface VerifyCodeRequest {
1610
+ code: string;
1611
+ sessionId: string;
1612
+ }
1613
+
1614
+ export interface ReviewDocumentRequest {
1615
+ documentId: string;
1616
+ notes: string;
1617
+ rejectionReason: string;
1618
+ approved: boolean;
1619
+ }
1620
+
1621
+ export interface RejectRecoveryRequest {
1622
+ notes: string;
1623
+ reason: string;
1624
+ sessionId: string;
1625
+ }
1626
+
1627
+ export interface ListPoliciesFilter {
1628
+ appId: string | undefined;
1629
+ policyType: string | undefined;
1630
+ profileId: string | undefined;
1631
+ standard: string | undefined;
1632
+ status: string | undefined;
1633
+ }
1634
+
1635
+ export interface JumioConfig {
1636
+ enabledCountries: string[];
1637
+ verificationType: string;
1638
+ callbackUrl: string;
1639
+ enableAMLScreening: boolean;
1640
+ enableLiveness: boolean;
1641
+ enabledDocumentTypes: string[];
1642
+ presetId: string;
1643
+ apiSecret: string;
1644
+ apiToken: string;
1645
+ dataCenter: string;
1646
+ enableExtraction: boolean;
1647
+ enabled: boolean;
1648
+ }
1649
+
1650
+ export interface ProviderInfo {
1651
+ domain: string;
1652
+ providerId: string;
1653
+ type: string;
1654
+ createdAt: string;
1655
+ }
1656
+
1657
+ export interface OIDCLoginResponse {
1658
+ providerId: string;
1659
+ state: string;
1660
+ authUrl: string;
1661
+ nonce: string;
1662
+ }
1663
+
1664
+ export interface User {
1665
+ }
1666
+
1667
+ export interface UpdatePolicyRequest {
1668
+ content: string | undefined;
1669
+ status: string | undefined;
1670
+ title: string | undefined;
1671
+ version: string | undefined;
1672
+ }
1673
+
1674
+ export interface AdminPolicyRequest {
1675
+ allowedTypes: string[];
1676
+ enabled: boolean;
1677
+ gracePeriod: number;
1678
+ requiredFactors: number;
1679
+ }
1680
+
1681
+ export interface SMSProviderConfig {
1682
+ config: any;
1683
+ from: string;
1684
+ provider: string;
1685
+ }
1686
+
1687
+ export interface StateStorageConfig {
1688
+ stateTtl: any;
1689
+ useRedis: boolean;
1690
+ redisAddr: string;
1691
+ redisDb: number;
1692
+ redisPassword: string;
1693
+ }
1694
+
1695
+ export interface GetDocumentVerificationRequest {
1696
+ documentId: string;
1697
+ }
1698
+
1699
+ export interface FactorEnrollmentResponse {
1700
+ provisioningData: any;
1701
+ status: string;
1702
+ type: string;
1703
+ factorId: string;
1704
+ }
1705
+
1706
+ export interface ConsentService {
1707
+ }
1708
+
1709
+ export interface TokenRequest {
1710
+ client_secret: string;
1711
+ code: string;
1712
+ code_verifier: string;
1713
+ grant_type: string;
1714
+ redirect_uri: string;
1715
+ refresh_token: string;
1716
+ scope: string;
1717
+ audience: string;
1718
+ client_id: string;
1719
+ }
1720
+
1721
+ export interface NoOpNotificationProvider {
1722
+ }
1723
+
1724
+ export interface DefaultProviderRegistry {
1725
+ }
1726
+
1727
+ export interface GetFactorRequest {
1728
+ }
1729
+
1730
+ export interface CookieConsentConfig {
1731
+ allowAnonymous: boolean;
1732
+ bannerVersion: string;
1733
+ categories: string[];
1734
+ defaultStyle: string;
1735
+ enabled: boolean;
1736
+ requireExplicit: boolean;
1737
+ validityPeriod: any;
1738
+ }
1739
+
1740
+ export interface OnfidoConfig {
1741
+ enabled: boolean;
1742
+ facialCheck: FacialCheckConfig;
1743
+ includeDocumentReport: boolean;
1744
+ includeWatchlistReport: boolean;
1745
+ region: string;
1746
+ workflowId: string;
1747
+ apiToken: string;
1748
+ documentCheck: DocumentCheckConfig;
1749
+ includeFacialReport: boolean;
1750
+ webhookToken: string;
1751
+ }
1752
+
1753
+ export interface AdminHandler {
1754
+ }
1755
+
1756
+ export interface StartRecoveryResponse {
1757
+ availableMethods: string[];
1758
+ completedSteps: number;
1759
+ expiresAt: string;
1760
+ requiredSteps: number;
1761
+ requiresReview: boolean;
1762
+ riskScore: number;
1763
+ sessionId: string;
1764
+ status: string;
1765
+ }
1766
+
1767
+ export interface CreateVerificationRequest {
1768
+ }
1769
+
1770
+ export interface BeginRegisterRequest {
1771
+ userVerification: string;
1772
+ authenticatorType: string;
1773
+ name: string;
1774
+ requireResidentKey: boolean;
1775
+ userId: string;
1776
+ }
1777
+
1778
+ export interface ProviderSession {
1779
+ }
1780
+
1781
+ export interface RedisStateStore {
1782
+ }
1783
+
1784
+ export interface NoOpSMSProvider {
1785
+ }
1786
+
1787
+ export interface GetStatusRequest {
1788
+ }
1789
+
1790
+ export interface BeginRegisterResponse {
1791
+ challenge: string;
1792
+ options: any;
1793
+ timeout: any;
1794
+ userId: string;
1795
+ }
1796
+
1797
+ export interface BackupAuthCodesResponse {
1798
+ codes: string[];
1799
+ }
1800
+
1801
+ export interface TeamHandler {
1802
+ }
1803
+
1804
+ export interface LinkResponse {
1805
+ message: string;
1806
+ user: any;
1807
+ }
1808
+
1809
+ export interface TokenIntrospectionResponse {
1810
+ token_type: string;
1811
+ username: string;
1812
+ active: boolean;
1813
+ aud: string[];
1814
+ client_id: string;
1815
+ exp: number;
1816
+ scope: string;
1817
+ sub: string;
1818
+ iat: number;
1819
+ iss: string;
1820
+ jti: string;
1821
+ nbf: number;
1822
+ }
1823
+
1824
+ export interface CreateABTestVariant_req {
1825
+ body: string;
1826
+ name: string;
1827
+ subject: string;
1828
+ weight: number;
1829
+ }
1830
+
1831
+ export interface UpdatePasskeyResponse {
1832
+ name: string;
1833
+ passkeyId: string;
1834
+ updatedAt: string;
1835
+ }
1836
+
1837
+ export interface ConsentExportResponse {
1838
+ id: string;
1839
+ status: string;
1840
+ }
1841
+
1842
+ export interface MockUserService {
1843
+ }
1844
+
1845
+ export interface AuditEvent {
1846
+ }
1847
+
1848
+ export interface ListPasskeysResponse {
1849
+ count: number;
1850
+ passkeys: PasskeyInfo[];
1851
+ }
1852
+
1853
+ export interface MockSocialAccountRepository {
1854
+ }
1855
+
1856
+ export interface BackupAuthStatsResponse {
1857
+ stats: any;
1858
+ }
1859
+
1860
+ export interface GetRecoveryStatsRequest {
1861
+ endDate: string;
1862
+ organizationId: string;
1863
+ startDate: string;
1864
+ }
1865
+
1866
+ export interface ChallengeRequest {
1867
+ metadata: any;
1868
+ userId: string;
1869
+ context: string;
1870
+ factorTypes: string[];
1871
+ }
1872
+
1873
+ export interface FinishRegisterRequest {
1874
+ name: string;
1875
+ response: any;
1876
+ userId: string;
1877
+ }
1878
+
1879
+ export interface Enable_body {
1880
+ method: string;
1881
+ user_id: string;
1882
+ }
1883
+
1884
+ export interface MockAppService {
1885
+ }
1886
+
1887
+ export interface AdminBypassRequest {
1888
+ reason: string;
1889
+ userId: string;
1890
+ duration: number;
1891
+ }
1892
+
1893
+ export interface StartVideoSessionRequest {
1894
+ videoSessionId: string;
1895
+ }
1896
+
1897
+ export interface UserAdapter {
1898
+ }
1899
+
1900
+ export interface DocumentCheckConfig {
1901
+ validateDataConsistency: boolean;
1902
+ validateExpiry: boolean;
1903
+ enabled: boolean;
1904
+ extractData: boolean;
1905
+ }
1906
+
1907
+ export interface UnbanUser_reqBody {
1908
+ reason?: string;
1909
+ }
1910
+
1911
+ export interface ContinueRecoveryRequest {
1912
+ method: string;
1913
+ sessionId: string;
1914
+ }
1915
+
1916
+ export interface UserVerificationStatusResponse {
1917
+ status: any | undefined;
1918
+ }
1919
+
1920
+ export interface NotificationResponse {
1921
+ notification: any;
1922
+ }
1923
+
1924
+ export interface TestProvider_req {
1925
+ providerType: string;
1926
+ testRecipient: string;
1927
+ config: any;
1928
+ providerName: string;
1929
+ }
1930
+
1931
+ export interface TokenResponse {
1932
+ id_token: string;
1933
+ refresh_token: string;
1934
+ scope: string;
1935
+ token_type: string;
1936
+ access_token: string;
1937
+ expires_in: number;
1938
+ }
1939
+
1940
+ export interface AuthorizeRequest {
1941
+ acr_values: string;
1942
+ client_id: string;
1943
+ id_token_hint: string;
1944
+ login_hint: string;
1945
+ max_age: number | undefined;
1946
+ redirect_uri: string;
1947
+ response_type: string;
1948
+ scope: string;
1949
+ code_challenge: string;
1950
+ code_challenge_method: string;
1951
+ nonce: string;
1952
+ prompt: string;
1953
+ state: string;
1954
+ ui_locales: string;
1955
+ }
1956
+
1957
+ export interface ReverifyRequest {
1958
+ reason: string;
1959
+ }
1960
+
1961
+ export interface JumioProvider {
1962
+ }
1963
+
1964
+ export interface VerifyRecoveryCodeResponse {
1965
+ message: string;
1966
+ remainingCodes: number;
1967
+ valid: boolean;
1968
+ }
1969
+
1970
+ export interface VerifyRecoveryCodeRequest {
1971
+ code: string;
1972
+ sessionId: string;
1973
+ }
1974
+
1975
+ export interface ComplianceUserTrainingResponse {
1976
+ user_id: string;
1977
+ }
1978
+
1979
+ export interface EmailServiceAdapter {
1980
+ }
1981
+
1982
+ export interface OnfidoProvider {
1983
+ }
1984
+
1985
+ export interface ImpersonationErrorResponse {
1986
+ error: string;
1987
+ }
1988
+
1989
+ export interface DashboardExtension {
1990
+ }
1991
+
1992
+ export interface DeletePasskeyRequest {
1993
+ }
1994
+
1995
+ export interface DataExportRequestInput {
1996
+ includeSections: string[];
1997
+ format: string;
1998
+ }
1999
+
2000
+ export interface Middleware {
2001
+ }
2002
+
2003
+ export interface RegistrationService {
2004
+ }
2005
+
2006
+ export interface CookieConsentRequest {
2007
+ thirdParty: boolean;
2008
+ analytics: boolean;
2009
+ bannerVersion: string;
2010
+ essential: boolean;
2011
+ functional: boolean;
2012
+ marketing: boolean;
2013
+ personalization: boolean;
2014
+ sessionId: string;
2015
+ }
2016
+
2017
+ export interface RotateAPIKeyResponse {
2018
+ api_key: any | undefined;
2019
+ message: string;
2020
+ }
2021
+
2022
+ export interface ListEvidenceFilter {
2023
+ appId: string | undefined;
2024
+ controlId: string | undefined;
2025
+ evidenceType: string | undefined;
2026
+ profileId: string | undefined;
2027
+ standard: string | undefined;
2028
+ }
2029
+
2030
+ export interface RiskContext {
2031
+ }
2032
+
2033
+ export interface ApproveRecoveryRequest {
2034
+ notes: string;
2035
+ sessionId: string;
2036
+ }
2037
+
2038
+ export interface VerifyChallengeRequest {
2039
+ challengeId: string;
2040
+ code: string;
2041
+ data: any;
2042
+ deviceInfo: DeviceInfo | undefined;
2043
+ factorId: string;
2044
+ rememberDevice: boolean;
2045
+ }
2046
+
2047
+ export interface VerifyFactor_req {
2048
+ code: string;
2049
+ }
2050
+
2051
+ export interface IDTokenClaims {
2052
+ auth_time: number;
2053
+ email: string;
2054
+ email_verified: boolean;
2055
+ family_name: string;
2056
+ given_name: string;
2057
+ nonce: string;
2058
+ name: string;
2059
+ preferred_username: string;
2060
+ session_state: string;
2061
+ }
2062
+
2063
+ export interface StepUpAttempt {
2064
+ created_at: string;
2065
+ failure_reason: string;
2066
+ id: string;
2067
+ org_id: string;
2068
+ user_agent: string;
2069
+ user_id: string;
2070
+ ip: string;
2071
+ method: string;
2072
+ requirement_id: string;
2073
+ success: boolean;
2074
+ }
2075
+
2076
+ export interface CreateTraining_req {
2077
+ standard: string;
2078
+ trainingType: string;
2079
+ userId: string;
2080
+ }
2081
+
2082
+ export interface VerifyRequest {
2083
+ }
2084
+
2085
+ export interface DocumentVerificationResult {
2086
+ }
2087
+
2088
+ export interface RecoveryAttemptLog {
2089
+ }
2090
+
2091
+ export interface ListTrustedContactsResponse {
2092
+ count: number;
2093
+ contacts: TrustedContactInfo[];
2094
+ }
2095
+
2096
+ export interface DocumentVerification {
2097
+ }
2098
+
2099
+ export interface CompliancePoliciesResponse {
2100
+ policies: any[];
2101
+ }
2102
+
2103
+ export interface ComplianceTemplateResponse {
2104
+ standard: string;
2105
+ }
2106
+
2107
+ export interface NoOpVideoProvider {
2108
+ }
2109
+
2110
+ export interface ListFactorsRequest {
2111
+ }
2112
+
2113
+ export interface ClientRegistrationResponse {
2114
+ tos_uri: string;
2115
+ grant_types: string[];
2116
+ logo_uri: string;
2117
+ response_types: string[];
2118
+ contacts: string[];
2119
+ policy_uri: string;
2120
+ post_logout_redirect_uris: string[];
2121
+ client_name: string;
2122
+ client_secret_expires_at: number;
2123
+ scope: string;
2124
+ token_endpoint_auth_method: string;
2125
+ application_type: string;
2126
+ client_id: string;
2127
+ client_id_issued_at: number;
2128
+ client_secret: string;
2129
+ redirect_uris: string[];
2130
+ }
2131
+
2132
+ export interface ConsentRecordResponse {
2133
+ id: string;
2134
+ }
2135
+
2136
+ export interface CookieConsent {
2137
+ consentBannerVersion: string;
2138
+ essential: boolean;
2139
+ id: string;
2140
+ organizationId: string;
2141
+ userAgent: string;
2142
+ createdAt: string;
2143
+ marketing: boolean;
2144
+ updatedAt: string;
2145
+ userId: string;
2146
+ analytics: boolean;
2147
+ personalization: boolean;
2148
+ thirdParty: boolean;
2149
+ expiresAt: string;
2150
+ functional: boolean;
2151
+ ipAddress: string;
2152
+ sessionId: string;
2153
+ }
2154
+
2155
+ export interface DataProcessingAgreement {
2156
+ ipAddress: string;
2157
+ metadata: Record<string, any>;
2158
+ signedBy: string;
2159
+ createdAt: string;
2160
+ expiryDate: string | undefined;
2161
+ signedByName: string;
2162
+ digitalSignature: string;
2163
+ id: string;
2164
+ updatedAt: string;
2165
+ organizationId: string;
2166
+ signedByEmail: string;
2167
+ signedByTitle: string;
2168
+ status: string;
2169
+ version: string;
2170
+ agreementType: string;
2171
+ content: string;
2172
+ effectiveDate: string;
2173
+ }
2174
+
2175
+ export interface DataExportConfig {
2176
+ enabled: boolean;
2177
+ includeSections: string[];
2178
+ requestPeriod: any;
2179
+ storagePath: string;
2180
+ autoCleanup: boolean;
2181
+ defaultFormat: string;
2182
+ expiryHours: number;
2183
+ maxExportSize: number;
2184
+ maxRequests: number;
2185
+ allowedFormats: string[];
2186
+ cleanupInterval: any;
2187
+ }
2188
+
2189
+ export interface RequestReverification_req {
2190
+ reason: string;
2191
+ }
2192
+
2193
+ export interface MultiSessionErrorResponse {
2194
+ error: string;
2195
+ }
2196
+
2197
+ export interface DataExportRequest {
2198
+ id: string;
2199
+ userId: string;
2200
+ completedAt: string | undefined;
2201
+ createdAt: string;
2202
+ exportSize: number;
2203
+ exportUrl: string;
2204
+ includeSections: string[];
2205
+ errorMessage: string;
2206
+ organizationId: string;
2207
+ status: string;
2208
+ updatedAt: string;
2209
+ expiresAt: string | undefined;
2210
+ format: string;
2211
+ ipAddress: string;
2212
+ exportPath: string;
2213
+ }
2214
+
2215
+ export interface ProviderDiscoveredResponse {
2216
+ found: boolean;
2217
+ providerId: string;
2218
+ type: string;
2219
+ }
2220
+
2221
+ export interface SetupSecurityQuestionRequest {
2222
+ questionId: number;
2223
+ answer: string;
2224
+ customText: string;
2225
+ }
2226
+
2227
+ export interface ImpersonationVerifyResponse {
2228
+ impersonator_id: string;
2229
+ is_impersonating: boolean;
2230
+ target_user_id: string;
2231
+ }
2232
+
2233
+ export interface DevicesResponse {
2234
+ count: number;
2235
+ devices: any;
2236
+ }
2237
+
2238
+ export interface KeyPair {
2239
+ }
2240
+
2241
+ export interface LoginResponse {
2242
+ session: any;
2243
+ token: string;
2244
+ user: any;
2245
+ passkeyUsed: string;
2246
+ }
2247
+
2248
+ export interface StepUpErrorResponse {
2249
+ error: string;
2250
+ }
2251
+
2252
+ export interface ResourceRule {
2253
+ resource_type: string;
2254
+ security_level: string;
2255
+ sensitivity: string;
2256
+ action: string;
2257
+ description: string;
2258
+ org_id: string;
2259
+ }
2260
+
2261
+ export interface CompleteTrainingRequest {
2262
+ score: number;
2263
+ }
2264
+
2265
+ export interface ComplianceReportsResponse {
2266
+ reports: any[];
2267
+ }
2268
+
2269
+ export interface NotificationTemplateResponse {
2270
+ template: any;
2271
+ }
2272
+
2273
+ export interface RunCheck_req {
2274
+ checkType: string;
2275
+ }
2276
+
2277
+ export interface Config {
2278
+ allowSAML: boolean;
2279
+ autoProvision: boolean;
2280
+ defaultRole: string;
2281
+ updateAttributes: boolean;
2282
+ attributeMapping: any;
2283
+ oidcRedirectURL: string;
2284
+ requireEncryption: boolean;
2285
+ samlACS: string;
2286
+ samlMetadataURL: string;
2287
+ allowOIDC: boolean;
2288
+ }
2289
+
2290
+ export interface NoOpDocumentProvider {
2291
+ }
2292
+
2293
+ export interface ImpersonationSession {
2294
+ }
2295
+
2296
+ export interface AdaptiveMFAConfig {
2297
+ factor_velocity: boolean;
2298
+ new_device_risk: number;
2299
+ require_step_up_threshold: number;
2300
+ velocity_risk: number;
2301
+ enabled: boolean;
2302
+ factor_ip_reputation: boolean;
2303
+ factor_new_device: boolean;
2304
+ location_change_risk: number;
2305
+ risk_threshold: number;
2306
+ factor_location_change: boolean;
2307
+ }
2308
+
2309
+ export interface IDVerificationSessionResponse {
2310
+ session: any;
2311
+ }
2312
+
2313
+ export interface EmailVerificationConfig {
2314
+ enabled: boolean;
2315
+ fromAddress: string;
2316
+ fromName: string;
2317
+ maxAttempts: number;
2318
+ requireEmailProof: boolean;
2319
+ codeExpiry: any;
2320
+ codeLength: number;
2321
+ emailTemplate: string;
2322
+ }
2323
+
2324
+ export interface CompleteRecoveryResponse {
2325
+ status: string;
2326
+ token: string;
2327
+ completedAt: string;
2328
+ message: string;
2329
+ sessionId: string;
2330
+ }
2331
+
2332
+ export interface VerificationSessionResponse {
2333
+ session: any | undefined;
2334
+ }
2335
+
2336
+ export interface EvaluationContext {
2337
+ }
2338
+
2339
+ export interface StepUpAuditLogsResponse {
2340
+ audit_logs: any[];
2341
+ }
2342
+
2343
+ export interface BackupAuthContactResponse {
2344
+ id: string;
2345
+ }
2346
+
2347
+ export interface ComplianceProfile {
2348
+ passwordRequireNumber: boolean;
2349
+ rbacRequired: boolean;
2350
+ sessionIdleTimeout: number;
2351
+ updatedAt: string;
2352
+ sessionIpBinding: boolean;
2353
+ detailedAuditTrail: boolean;
2354
+ id: string;
2355
+ leastPrivilege: boolean;
2356
+ metadata: any;
2357
+ dataResidency: string;
2358
+ mfaRequired: boolean;
2359
+ passwordRequireUpper: boolean;
2360
+ sessionMaxAge: number;
2361
+ status: string;
2362
+ auditLogExport: boolean;
2363
+ passwordRequireLower: boolean;
2364
+ passwordRequireSymbol: boolean;
2365
+ complianceContact: string;
2366
+ dpoContact: string;
2367
+ passwordMinLength: number;
2368
+ regularAccessReview: boolean;
2369
+ createdAt: string;
2370
+ encryptionInTransit: boolean;
2371
+ passwordExpiryDays: number;
2372
+ retentionDays: number;
2373
+ standards: string[];
2374
+ appId: string;
2375
+ encryptionAtRest: boolean;
2376
+ name: string;
2377
+ }
2378
+
2379
+ export interface CompliancePolicyResponse {
2380
+ id: string;
2381
+ }
2382
+
2383
+ export interface SMSConfig {
2384
+ code_length: number;
2385
+ enabled: boolean;
2386
+ provider: string;
2387
+ rate_limit: RateLimitConfig | undefined;
2388
+ template_id: string;
2389
+ code_expiry_minutes: number;
2390
+ }
2391
+
2392
+ export interface auditServiceAdapter {
2393
+ }
2394
+
2395
+ export interface AuditConfig {
2396
+ enabled: boolean;
2397
+ logAllAttempts: boolean;
2398
+ logFailed: boolean;
2399
+ logIpAddress: boolean;
2400
+ logSuccessful: boolean;
2401
+ archiveInterval: any;
2402
+ immutableLogs: boolean;
2403
+ logDeviceInfo: boolean;
2404
+ logUserAgent: boolean;
2405
+ retentionDays: number;
2406
+ archiveOldLogs: boolean;
2407
+ }
2408
+
2409
+ export interface RecoveryCodeUsage {
2410
+ }
2411
+
2412
+ export interface BackupAuthStatusResponse {
2413
+ status: string;
2414
+ }
2415
+
2416
+ export interface FinishLoginRequest {
2417
+ remember: boolean;
2418
+ response: any;
2419
+ }
2420
+
2421
+ export interface ResolveViolationRequest {
2422
+ notes: string;
2423
+ resolution: string;
2424
+ }
2425
+
2426
+ export interface ResetUserMFAResponse {
2427
+ devicesRevoked: number;
2428
+ factorsReset: number;
2429
+ message: string;
2430
+ success: boolean;
2431
+ }
2432
+
2433
+ export interface MultiSessionListResponse {
2434
+ sessions: any[];
2435
+ }
2436
+
2437
+ export interface CreateTemplateVersion_req {
2438
+ changes: string;
2439
+ }
2440
+
2441
+ export interface CompleteTraining_req {
2442
+ score: number;
2443
+ }
2444
+
2445
+ export interface MFABypassResponse {
2446
+ expiresAt: string;
2447
+ id: string;
2448
+ reason: string;
2449
+ userId: string;
2450
+ }
2451
+
2452
+ export interface VerifyEnrolledFactorRequest {
2453
+ code: string;
2454
+ data: any;
2455
+ }
2456
+
2457
+ export interface TokenRevocationRequest {
2458
+ client_id: string;
2459
+ client_secret: string;
2460
+ token: string;
2461
+ token_type_hint: string;
2462
+ }
2463
+
2464
+ export interface Device {
2465
+ id: string;
2466
+ userId: string;
2467
+ name?: string;
2468
+ type?: string;
2469
+ lastUsedAt: string;
2470
+ ipAddress?: string;
2471
+ userAgent?: string;
2472
+ }
2473
+
2474
+ export interface ProvidersResponse {
2475
+ providers: string[];
2476
+ }
2477
+
2478
+ export interface RouteRule {
2479
+ description: string;
2480
+ method: string;
2481
+ org_id: string;
2482
+ pattern: string;
2483
+ security_level: string;
2484
+ }
2485
+
2486
+ export interface mockImpersonationRepository {
2487
+ }
2488
+
2489
+ export interface CreateTrainingRequest {
2490
+ standard: string;
2491
+ trainingType: string;
2492
+ userId: string;
2493
+ }
2494
+
2495
+ export interface AddMember_req {
2496
+ role: string;
2497
+ user_id: string;
2498
+ }
2499
+
2500
+ export interface AddTeamMember_req {
2501
+ member_id: string;
2502
+ role: string;
2503
+ }
2504
+
2505
+ export interface EvaluateRequest {
2506
+ metadata: any;
2507
+ method: string;
2508
+ resource_type: string;
2509
+ route: string;
2510
+ action: string;
2511
+ amount: number;
2512
+ currency: string;
2513
+ }
2514
+
2515
+ export interface VerifyResponse {
2516
+ device_remembered: boolean;
2517
+ error: string;
2518
+ expires_at: string;
2519
+ metadata: any;
2520
+ security_level: string;
2521
+ success: boolean;
2522
+ verification_id: string;
2523
+ }
2524
+
2525
+ export interface CreateUserRequest {
2526
+ app_id: string;
2527
+ metadata: any;
2528
+ role: string;
2529
+ user_organization_id: string | undefined;
2530
+ email: string;
2531
+ email_verified: boolean;
2532
+ name: string;
2533
+ password: string;
2534
+ username: string;
2535
+ }
2536
+
2537
+ export interface StripeIdentityProvider {
2538
+ }
2539
+
2540
+ export interface AdminBlockUser_req {
2541
+ reason: string;
2542
+ }
2543
+
2544
+ export interface AccountLockedResponse {
2545
+ locked_minutes: number;
2546
+ locked_until: string;
2547
+ message: string;
2548
+ code: string;
2549
+ }
2550
+
2551
+ export interface SendCodeResponse {
2552
+ dev_code: string;
2553
+ status: string;
2554
+ }
2555
+
2556
+ export interface SendVerificationCodeResponse {
2557
+ expiresAt: string;
2558
+ maskedTarget: string;
2559
+ message: string;
2560
+ sent: boolean;
2561
+ }
2562
+
2563
+ export interface DashboardConfig {
2564
+ enabled: boolean;
2565
+ path: string;
2566
+ showRecentChecks: boolean;
2567
+ showReports: boolean;
2568
+ showScore: boolean;
2569
+ showViolations: boolean;
2570
+ }
2571
+
2572
+ export interface VerificationRequest {
2573
+ challengeId: string;
2574
+ code: string;
2575
+ data: any;
2576
+ deviceInfo: DeviceInfo | undefined;
2577
+ factorId: string;
2578
+ rememberDevice: boolean;
2579
+ }
2580
+
2581
+ export interface BackupCodeFactorAdapter {
2582
+ }
2583
+
2584
+ export interface ConsentRequest {
2585
+ response_type: string;
2586
+ scope: string;
2587
+ state: string;
2588
+ action: string;
2589
+ client_id: string;
2590
+ code_challenge: string;
2591
+ code_challenge_method: string;
2592
+ redirect_uri: string;
2593
+ }
2594
+
2595
+ export interface MemoryChallengeStore {
2596
+ }
2597
+
2598
+ export interface ProviderRegisteredResponse {
2599
+ providerId: string;
2600
+ status: string;
2601
+ type: string;
2602
+ }
2603
+
2604
+ export interface UpdatePolicy_req {
2605
+ content: string | undefined;
2606
+ status: string | undefined;
2607
+ title: string | undefined;
2608
+ version: string | undefined;
2609
+ }
2610
+
2611
+ export interface ConsentSettingsResponse {
2612
+ settings: any;
2613
+ }
2614
+
2615
+ export interface StartRecoveryRequest {
2616
+ deviceId: string;
2617
+ email: string;
2618
+ preferredMethod: string;
2619
+ userId: string;
2620
+ }
2621
+
2622
+ export interface ListSessionsResponse {
2623
+ limit: number;
2624
+ page: number;
2625
+ sessions: any | undefined[];
2626
+ total: number;
2627
+ total_pages: number;
2628
+ }
2629
+
2630
+ export interface BanUserRequest {
2631
+ app_id: string;
2632
+ expires_at: string | undefined;
2633
+ reason: string;
2634
+ user_id: string;
2635
+ user_organization_id: string | undefined;
2636
+ }
2637
+
2638
+ export interface TrustedContactInfo {
2639
+ name: string;
2640
+ phone: string;
2641
+ relationship: string;
2642
+ verified: boolean;
2643
+ verifiedAt: string | undefined;
2644
+ active: boolean;
2645
+ email: string;
2646
+ id: string;
2647
+ }
2648
+
2649
+ export interface CreatePolicy_req {
2650
+ standard: string;
2651
+ title: string;
2652
+ version: string;
2653
+ content: string;
2654
+ policyType: string;
2655
+ }
2656
+
2657
+ export interface TOTPConfig {
2658
+ algorithm: string;
2659
+ digits: number;
2660
+ enabled: boolean;
2661
+ issuer: string;
2662
+ period: number;
2663
+ window_size: number;
2664
+ }
2665
+
2666
+ export interface MultiSessionSetActiveResponse {
2667
+ session: any;
2668
+ token: string;
2669
+ }
2670
+
2671
+ export interface PreviewTemplate_req {
2672
+ variables: any;
2673
+ }
2674
+
2675
+ export interface IDVerificationStatusResponse {
2676
+ status: any;
2677
+ }
2678
+
2679
+ export interface Email {
2680
+ }
2681
+
2682
+ export interface CreateProfileFromTemplate_req {
2683
+ standard: string;
2684
+ }
2685
+
2686
+ export interface RateLimiter {
2687
+ }
2688
+
2689
+ export interface TemplatesResponse {
2690
+ templates: any;
2691
+ count: number;
2692
+ }
2693
+
2694
+ export interface NotificationStatusResponse {
2695
+ status: string;
2696
+ }
2697
+
2698
+ export interface CreateSessionRequest {
2699
+ }
2700
+
2701
+ export interface VerificationResult {
2702
+ }
2703
+
2704
+ export interface TwoFAStatusDetailResponse {
2705
+ enabled: boolean;
2706
+ method: string;
2707
+ trusted: boolean;
2708
+ }
2709
+
2710
+ export interface VerifySecurityAnswersResponse {
2711
+ attemptsLeft: number;
2712
+ correctAnswers: number;
2713
+ message: string;
2714
+ requiredAnswers: number;
2715
+ valid: boolean;
2716
+ }
2717
+
2718
+ export interface ListTrainingFilter {
2719
+ standard: string | undefined;
2720
+ status: string | undefined;
2721
+ trainingType: string | undefined;
2722
+ userId: string | undefined;
2723
+ appId: string | undefined;
2724
+ profileId: string | undefined;
2725
+ }
2726
+
2727
+ export interface MockAuditService {
2728
+ }
2729
+
2730
+ export interface TemplateEngine {
2731
+ }
2732
+
2733
+ export interface NotificationListResponse {
2734
+ notifications: any[];
2735
+ total: number;
2736
+ }
2737
+
2738
+ export interface BeginLoginResponse {
2739
+ challenge: string;
2740
+ options: any;
2741
+ timeout: any;
2742
+ }
2743
+
2744
+ export interface ComplianceTrainingResponse {
2745
+ id: string;
2746
+ }
2747
+
2748
+ export interface VerifySecurityAnswersRequest {
2749
+ answers: any;
2750
+ sessionId: string;
2751
+ }
2752
+
2753
+ export interface CompleteVideoSessionResponse {
2754
+ completedAt: string;
2755
+ message: string;
2756
+ result: string;
2757
+ videoSessionId: string;
2758
+ }
2759
+
2760
+ export interface UpdateFactorRequest {
2761
+ metadata: any;
2762
+ name: string | undefined;
2763
+ priority: string | undefined;
2764
+ status: string | undefined;
2765
+ }
2766
+
2767
+ export interface ConsentRecord {
2768
+ expiresAt: string | undefined;
2769
+ organizationId: string;
2770
+ updatedAt: string;
2771
+ grantedAt: string;
2772
+ createdAt: string;
2773
+ id: string;
2774
+ ipAddress: string;
2775
+ metadata: Record<string, any>;
2776
+ revokedAt: string | undefined;
2777
+ userAgent: string;
2778
+ userId: string;
2779
+ consentType: string;
2780
+ granted: boolean;
2781
+ purpose: string;
2782
+ version: string;
2783
+ }
2784
+
2785
+ export interface StartImpersonation_reqBody {
2786
+ reason: string;
2787
+ target_user_id: string;
2788
+ ticket_number?: string;
2789
+ duration_minutes?: number;
2790
+ }
2791
+
2792
+ export interface CompleteVideoSessionRequest {
2793
+ verificationResult: string;
2794
+ videoSessionId: string;
2795
+ livenessPassed: boolean;
2796
+ livenessScore: number;
2797
+ notes: string;
2798
+ }
2799
+
2800
+ export interface SMSVerificationConfig {
2801
+ maxAttempts: number;
2802
+ maxSmsPerDay: number;
2803
+ messageTemplate: string;
2804
+ provider: string;
2805
+ codeExpiry: any;
2806
+ codeLength: number;
2807
+ cooldownPeriod: any;
2808
+ enabled: boolean;
2809
+ }
2810
+
2811
+ export interface RemoveTrustedContactRequest {
2812
+ contactId: string;
2813
+ }
2814
+
2815
+ export interface ComplianceViolationResponse {
2816
+ id: string;
2817
+ }
2818
+
2819
+ export interface ListViolationsFilter {
2820
+ profileId: string | undefined;
2821
+ severity: string | undefined;
2822
+ status: string | undefined;
2823
+ userId: string | undefined;
2824
+ violationType: string | undefined;
2825
+ appId: string | undefined;
2826
+ }
2827
+
2828
+ export interface mockSessionService {
2829
+ }
2830
+
2831
+ export interface Factor {
2832
+ createdAt: string;
2833
+ expiresAt: string | undefined;
2834
+ lastUsedAt: string | undefined;
2835
+ priority: string;
2836
+ status: string;
2837
+ type: string;
2838
+ updatedAt: string;
2839
+ verifiedAt: string | undefined;
2840
+ id: string;
2841
+ metadata: any;
2842
+ name: string;
2843
+ userId: string;
2844
+ }
2845
+
2846
+ export interface RevokeTrustedDeviceRequest {
2847
+ }
2848
+
2849
+ export interface OTPSentResponse {
2850
+ status: string;
2851
+ code: string;
2852
+ }
2853
+
2854
+ export interface IPWhitelistConfig {
2855
+ enabled: boolean;
2856
+ strict_mode: boolean;
2857
+ }
2858
+
2859
+ export interface AddTrustedContactResponse {
2860
+ message: string;
2861
+ name: string;
2862
+ phone: string;
2863
+ verified: boolean;
2864
+ addedAt: string;
2865
+ contactId: string;
2866
+ email: string;
2867
+ }
2868
+
2869
+ export interface ComplianceChecksResponse {
2870
+ checks: any[];
2871
+ }
2872
+
2873
+ export interface UpdateProvider_req {
2874
+ isActive: boolean;
2875
+ isDefault: boolean;
2876
+ config: any;
2877
+ }
2878
+
2879
+ export interface userServiceAdapter {
2880
+ }
2881
+
2882
+ export interface ConsentDashboardConfig {
2883
+ showAuditLog: boolean;
2884
+ showConsentHistory: boolean;
2885
+ showCookiePreferences: boolean;
2886
+ showDataDeletion: boolean;
2887
+ showDataExport: boolean;
2888
+ showPolicies: boolean;
2889
+ enabled: boolean;
2890
+ path: string;
2891
+ }
2892
+
2893
+ export interface FacialCheckConfig {
2894
+ enabled: boolean;
2895
+ motionCapture: boolean;
2896
+ variant: string;
2897
+ }
2898
+
2899
+ export interface ImpersonateUserRequest {
2900
+ duration: any;
2901
+ user_id: string;
2902
+ user_organization_id: string | undefined;
2903
+ app_id: string;
2904
+ }
2905
+
2906
+ export interface NotificationChannels {
2907
+ email: boolean;
2908
+ slack: boolean;
2909
+ webhook: boolean;
2910
+ }
2911
+
2912
+ export interface FactorEnrollmentRequest {
2913
+ metadata: any;
2914
+ name: string;
2915
+ priority: string;
2916
+ type: string;
2917
+ }
2918
+
2919
+ export interface ProvidersAppResponse {
2920
+ appId: string;
2921
+ providers: string[];
2922
+ }
2923
+
2924
+ export interface IDVerificationListResponse {
2925
+ verifications: any[];
2926
+ }
2927
+
2928
+ export interface NotificationsConfig {
2929
+ notifyAdminOnHighRisk: boolean;
2930
+ notifyAdminOnReviewNeeded: boolean;
2931
+ notifyOnRecoveryComplete: boolean;
2932
+ notifyOnRecoveryFailed: boolean;
2933
+ notifyOnRecoveryStart: boolean;
2934
+ securityOfficerEmail: string;
2935
+ channels: string[];
2936
+ enabled: boolean;
2937
+ }
2938
+
2939
+ export interface AutomatedChecksConfig {
2940
+ sessionPolicy: boolean;
2941
+ suspiciousActivity: boolean;
2942
+ accessReview: boolean;
2943
+ inactiveUsers: boolean;
2944
+ mfaCoverage: boolean;
2945
+ passwordPolicy: boolean;
2946
+ checkInterval: any;
2947
+ dataRetention: boolean;
2948
+ enabled: boolean;
2949
+ }
2950
+
2951
+ export interface AppHandler {
2952
+ }
2953
+
2954
+ export interface SignUpRequest {
2955
+ password: string;
2956
+ username: string;
2957
+ }
2958
+
2959
+ export interface VerificationsResponse {
2960
+ count: number;
2961
+ verifications: any;
2962
+ }
2963
+
2964
+ export interface DiscoverProviderRequest {
2965
+ email: string;
2966
+ }
2967
+
2968
+ export interface SignInRequest {
2969
+ }
2970
+
2971
+ export interface TOTPFactorAdapter {
2972
+ }
2973
+
2974
+ export interface CreateDPARequest {
2975
+ agreementType: string;
2976
+ effectiveDate: string;
2977
+ expiryDate: string | undefined;
2978
+ signedByEmail: string;
2979
+ signedByName: string;
2980
+ signedByTitle: string;
2981
+ content: string;
2982
+ metadata: any;
2983
+ version: string;
2984
+ }
2985
+
2986
+ export interface VideoVerificationSession {
2987
+ }
2988
+
2989
+ export interface IDVerificationResponse {
2990
+ verification: any;
2991
+ }
2992
+
2993
+ export interface GenerateBackupCodes_body {
2994
+ count: number;
2995
+ user_id: string;
2996
+ }
2997
+
2998
+ export interface SetUserRole_reqBody {
2999
+ role: string;
3000
+ }
3001
+
3002
+ export interface SecurityQuestion {
3003
+ }
3004
+
3005
+ export interface KeyStore {
3006
+ }
3007
+
3008
+ export interface MessageResponse {
3009
+ message: string;
3010
+ }
3011
+
3012
+ export interface ConsentPolicyResponse {
3013
+ id: string;
3014
+ }
3015
+
3016
+ export interface RecoverySessionInfo {
3017
+ currentStep: number;
3018
+ expiresAt: string;
3019
+ method: string;
3020
+ totalSteps: number;
3021
+ completedAt: string | undefined;
3022
+ id: string;
3023
+ requiresReview: boolean;
3024
+ riskScore: number;
3025
+ status: string;
3026
+ userEmail: string;
3027
+ userId: string;
3028
+ createdAt: string;
3029
+ }
3030
+
3031
+ export interface BackupAuthVideoResponse {
3032
+ session_id: string;
3033
+ }
3034
+
3035
+ export interface SendWithTemplateRequest {
3036
+ type: any;
3037
+ variables: any;
3038
+ appId: string;
3039
+ language: string;
3040
+ metadata: any;
3041
+ recipient: string;
3042
+ templateKey: string;
3043
+ }
3044
+
3045
+ export interface CreateConsentRequest {
3046
+ purpose: string;
3047
+ userId: string;
3048
+ version: string;
3049
+ consentType: string;
3050
+ expiresIn: number | undefined;
3051
+ granted: boolean;
3052
+ metadata: any;
3053
+ }
3054
+
3055
+ export interface PrivacySettings {
3056
+ consentRequired: boolean;
3057
+ contactEmail: string;
3058
+ dataRetentionDays: number;
3059
+ exportFormat: string[];
3060
+ id: string;
3061
+ anonymousConsentEnabled: boolean;
3062
+ ccpaMode: boolean;
3063
+ dataExportExpiryHours: number;
3064
+ metadata: Record<string, any>;
3065
+ organizationId: string;
3066
+ requireAdminApprovalForDeletion: boolean;
3067
+ requireExplicitConsent: boolean;
3068
+ updatedAt: string;
3069
+ autoDeleteAfterDays: number;
3070
+ cookieConsentEnabled: boolean;
3071
+ cookieConsentStyle: string;
3072
+ createdAt: string;
3073
+ deletionGracePeriodDays: number;
3074
+ gdprMode: boolean;
3075
+ allowDataPortability: boolean;
3076
+ contactPhone: string;
3077
+ dpoEmail: string;
3078
+ }
3079
+
3080
+ export interface SendRequest {
3081
+ email: string;
3082
+ }
3083
+
3084
+ export interface IDVerificationErrorResponse {
3085
+ error: string;
3086
+ }
3087
+
3088
+ export interface VerifyTrustedContactRequest {
3089
+ token: string;
3090
+ }
3091
+
3092
+ export interface ErrorResponse {
3093
+ message: string;
3094
+ code: string;
3095
+ details: any;
3096
+ error: string;
3097
+ }
3098
+
3099
+ export interface ComplianceStatus {
3100
+ standard: string;
3101
+ violations: number;
3102
+ appId: string;
3103
+ checksPassed: number;
3104
+ checksWarning: number;
3105
+ lastChecked: string;
3106
+ nextAudit: string;
3107
+ overallStatus: string;
3108
+ profileId: string;
3109
+ score: number;
3110
+ checksFailed: number;
3111
+ }
3112
+
3113
+ export interface MFASession {
3114
+ userAgent: string;
3115
+ id: string;
3116
+ ipAddress: string;
3117
+ metadata: any;
3118
+ riskLevel: string;
3119
+ userId: string;
3120
+ verifiedFactors: string[];
3121
+ completedAt: string | undefined;
3122
+ createdAt: string;
3123
+ expiresAt: string;
3124
+ factorsRequired: number;
3125
+ factorsVerified: number;
3126
+ sessionToken: string;
3127
+ }
3128
+
3129
+ export interface TrackNotificationEvent_req {
3130
+ eventData?: any;
3131
+ notificationId: string;
3132
+ organizationId?: string | undefined;
3133
+ templateId: string;
3134
+ event: string;
3135
+ }
3136
+
3137
+ export interface DataDeletionRequest {
3138
+ organizationId: string;
3139
+ status: string;
3140
+ approvedBy: string;
3141
+ deleteSections: string[];
3142
+ requestReason: string;
3143
+ retentionExempt: boolean;
3144
+ updatedAt: string;
3145
+ createdAt: string;
3146
+ userId: string;
3147
+ approvedAt: string | undefined;
3148
+ errorMessage: string;
3149
+ ipAddress: string;
3150
+ rejectedAt: string | undefined;
3151
+ archivePath: string;
3152
+ completedAt: string | undefined;
3153
+ exemptionReason: string;
3154
+ id: string;
3155
+ }
3156
+
3157
+ export interface UnblockUserRequest {
3158
+ }
3159
+
3160
+ export interface TestSendTemplate_req {
3161
+ recipient: string;
3162
+ variables: any;
3163
+ }
3164
+
3165
+ export interface AccessTokenClaims {
3166
+ scope: string;
3167
+ token_type: string;
3168
+ client_id: string;
3169
+ }
3170
+
3171
+ export interface ClientAuthResult {
3172
+ }
3173
+
3174
+ export interface TimeBasedRule {
3175
+ description: string;
3176
+ max_age: any;
3177
+ operation: string;
3178
+ org_id: string;
3179
+ security_level: string;
3180
+ }
3181
+
3182
+ export interface SendVerificationCodeRequest {
3183
+ method: string;
3184
+ sessionId: string;
3185
+ target: string;
3186
+ }
3187
+
3188
+ export interface RequestTrustedContactVerificationResponse {
3189
+ contactId: string;
3190
+ contactName: string;
3191
+ expiresAt: string;
3192
+ message: string;
3193
+ notifiedAt: string;
3194
+ }
3195
+
3196
+ export interface RiskFactor {
3197
+ }
3198
+
3199
+ export interface TokenIntrospectionRequest {
3200
+ client_id: string;
3201
+ client_secret: string;
3202
+ token: string;
3203
+ token_type_hint: string;
3204
+ }
3205
+
3206
+ export interface ListReportsFilter {
3207
+ standard: string | undefined;
3208
+ status: string | undefined;
3209
+ appId: string | undefined;
3210
+ format: string | undefined;
3211
+ profileId: string | undefined;
3212
+ reportType: string | undefined;
3213
+ }
3214
+
3215
+ export interface VideoSessionInfo {
3216
+ }
3217
+
3218
+ export interface VerifyTrustedContactResponse {
3219
+ message: string;
3220
+ verified: boolean;
3221
+ verifiedAt: string;
3222
+ contactId: string;
3223
+ }
3224
+
3225
+ export interface ComplianceReportResponse {
3226
+ id: string;
3227
+ }
3228
+
3229
+ export interface MFAConfigResponse {
3230
+ allowed_factor_types: string[];
3231
+ enabled: boolean;
3232
+ required_factor_count: number;
3233
+ }
3234
+
3235
+ export interface VerificationResponse {
3236
+ expiresAt: string | undefined;
3237
+ factorsRemaining: number;
3238
+ sessionComplete: boolean;
3239
+ success: boolean;
3240
+ token: string;
3241
+ }
3242
+
3243
+ export interface DataDeletionConfig {
3244
+ enabled: boolean;
3245
+ notifyBeforeDeletion: boolean;
3246
+ preserveLegalData: boolean;
3247
+ requireAdminApproval: boolean;
3248
+ allowPartialDeletion: boolean;
3249
+ gracePeriodDays: number;
3250
+ retentionExemptions: string[];
3251
+ archiveBeforeDeletion: boolean;
3252
+ archivePath: string;
3253
+ autoProcessAfterGrace: boolean;
3254
+ }
3255
+
3256
+ export interface ComplianceProfileResponse {
3257
+ id: string;
3258
+ }
3259
+
3260
+ export interface ListFactorsResponse {
3261
+ count: number;
3262
+ factors: Factor[];
3263
+ }
3264
+
3265
+ export interface RevokeTokenService {
3266
+ }
3267
+
3268
+ export interface CallbackDataResponse {
3269
+ action: string;
3270
+ isNewUser: boolean;
3271
+ user: any | undefined;
3272
+ }
3273
+
3274
+ export interface ProviderCheckResult {
3275
+ }
3276
+
3277
+ export interface SendResponse {
3278
+ dev_otp: string;
3279
+ status: string;
3280
+ }
3281
+
3282
+ export interface CreateProfileFromTemplateRequest {
3283
+ standard: string;
3284
+ }
3285
+
3286
+ export interface ChallengeStatusResponse {
3287
+ sessionId: string;
3288
+ status: string;
3289
+ completedAt: string | undefined;
3290
+ expiresAt: string;
3291
+ factorsRemaining: number;
3292
+ factorsRequired: number;
3293
+ factorsVerified: number;
3294
+ }
3295
+
3296
+ export interface RenderTemplate_req {
3297
+ variables: any;
3298
+ template: string;
3299
+ }
3300
+
3301
+ export interface SaveNotificationSettings_req {
3302
+ autoSendWelcome: boolean;
3303
+ cleanupAfter: string;
3304
+ retryAttempts: number;
3305
+ retryDelay: string;
3306
+ }
3307
+
3308
+ export interface ConsentStats {
3309
+ type: string;
3310
+ averageLifetime: number;
3311
+ expiredCount: number;
3312
+ grantRate: number;
3313
+ grantedCount: number;
3314
+ revokedCount: number;
3315
+ totalConsents: number;
3316
+ }
3317
+
3318
+ export interface PhoneVerifyResponse {
3319
+ session: any | undefined;
3320
+ token: string;
3321
+ user: any | undefined;
3322
+ }
3323
+
3324
+ export interface OIDCState {
3325
+ }
3326
+
3327
+ export interface GenerateReport_req {
3328
+ standard: string;
3329
+ format: string;
3330
+ period: string;
3331
+ reportType: string;
3332
+ }
3333
+
3334
+ export interface Disable_body {
3335
+ user_id: string;
3336
+ }
3337
+
3338
+ export interface VideoVerificationConfig {
3339
+ minScheduleAdvance: any;
3340
+ recordSessions: boolean;
3341
+ requireAdminReview: boolean;
3342
+ requireLivenessCheck: boolean;
3343
+ requireScheduling: boolean;
3344
+ provider: string;
3345
+ recordingRetention: any;
3346
+ sessionDuration: any;
3347
+ enabled: boolean;
3348
+ livenessThreshold: number;
3349
+ }
3350
+
3351
+ export interface BaseFactorAdapter {
3352
+ }
3353
+
3354
+ export interface ConsentManager {
3355
+ }
3356
+
3357
+ export interface MembersResponse {
3358
+ members: any | undefined[];
3359
+ total: number;
3360
+ }
3361
+
3362
+ export interface Status {
3363
+ }
3364
+
3365
+ export interface MemberHandler {
3366
+ }
3367
+
3368
+ export interface TwoFARequiredResponse {
3369
+ device_id: string;
3370
+ require_twofa: boolean;
3371
+ user: any | undefined;
3372
+ }
3373
+
3374
+ export interface CreateAPIKey_reqBody {
3375
+ metadata?: any;
3376
+ name: string;
3377
+ permissions?: any;
3378
+ rate_limit?: number;
3379
+ scopes: string[];
3380
+ allowed_ips?: string[];
3381
+ description?: string;
3382
+ }
3383
+
3384
+ export interface RiskAssessmentConfig {
3385
+ newIpWeight: number;
3386
+ lowRiskThreshold: number;
3387
+ mediumRiskThreshold: number;
3388
+ newLocationWeight: number;
3389
+ requireReviewAbove: number;
3390
+ velocityWeight: number;
3391
+ blockHighRisk: boolean;
3392
+ enabled: boolean;
3393
+ highRiskThreshold: number;
3394
+ historyWeight: number;
3395
+ newDeviceWeight: number;
3396
+ }
3397
+
3398
+ export interface AppServiceAdapter {
3399
+ }
3400
+
3401
+ export interface FactorInfo {
3402
+ factorId: string;
3403
+ metadata: any;
3404
+ name: string;
3405
+ type: string;
3406
+ }
3407
+
3408
+ export interface ClientDetailsResponse {
3409
+ allowedScopes: string[];
3410
+ isOrgLevel: boolean;
3411
+ logoURI: string;
3412
+ organizationID: string;
3413
+ policyURI: string;
3414
+ requirePKCE: boolean;
3415
+ tokenEndpointAuthMethod: string;
3416
+ updatedAt: string;
3417
+ name: string;
3418
+ redirectURIs: string[];
3419
+ applicationType: string;
3420
+ createdAt: string;
3421
+ requireConsent: boolean;
3422
+ responseTypes: string[];
3423
+ trustedClient: boolean;
3424
+ clientID: string;
3425
+ contacts: string[];
3426
+ grantTypes: string[];
3427
+ postLogoutRedirectURIs: string[];
3428
+ tosURI: string;
3429
+ }
3430
+
3431
+ export interface ConsentExpiryConfig {
3432
+ autoExpireCheck: boolean;
3433
+ defaultValidityDays: number;
3434
+ enabled: boolean;
3435
+ expireCheckInterval: any;
3436
+ renewalReminderDays: number;
3437
+ requireReConsent: boolean;
3438
+ allowRenewal: boolean;
3439
+ }
3440
+
3441
+ export interface CreateVerificationSession_req {
3442
+ metadata: any;
3443
+ provider: string;
3444
+ requiredChecks: string[];
3445
+ successUrl: string;
3446
+ cancelUrl: string;
3447
+ config: any;
3448
+ }
3449
+
3450
+ export interface VideoSessionResult {
3451
+ }
3452
+
3453
+ export interface CreatePolicyRequest {
3454
+ standard: string;
3455
+ title: string;
3456
+ version: string;
3457
+ content: string;
3458
+ policyType: string;
3459
+ }
3460
+
3461
+ export interface RateLimit {
3462
+ max_requests: number;
3463
+ window: any;
3464
+ }
3465
+
3466
+ export interface CallbackResponse {
3467
+ session: any | undefined;
3468
+ token: string;
3469
+ user: any | undefined;
3470
+ }
3471
+
3472
+ export interface ImpersonateUser_reqBody {
3473
+ duration?: any;
3474
+ }
3475
+
3476
+ export interface RateLimitConfig {
3477
+ enabled: boolean;
3478
+ window: any;
3479
+ }
3480
+
3481
+ export interface TrustedContact {
3482
+ }
3483
+
3484
+ export interface StartVideoSessionResponse {
3485
+ startedAt: string;
3486
+ videoSessionId: string;
3487
+ expiresAt: string;
3488
+ message: string;
3489
+ sessionUrl: string;
3490
+ }
3491
+
3492
+ export interface MultiStepRecoveryConfig {
3493
+ allowStepSkip: boolean;
3494
+ enabled: boolean;
3495
+ mediumRiskSteps: string[];
3496
+ requireAdminApproval: boolean;
3497
+ sessionExpiry: any;
3498
+ allowUserChoice: boolean;
3499
+ highRiskSteps: string[];
3500
+ lowRiskSteps: string[];
3501
+ minimumSteps: number;
3502
+ }
3503
+
3504
+ export interface FactorsResponse {
3505
+ factors: any;
3506
+ count: number;
3507
+ }
3508
+
3509
+ export interface StatusResponse {
3510
+ status: string;
3511
+ }
3512
+
3513
+ export interface ProviderConfigResponse {
3514
+ appId: string;
3515
+ message: string;
3516
+ provider: string;
3517
+ }
3518
+
3519
+ export interface Session {
3520
+ }
3521
+
3522
+ export interface AddCustomPermission_req {
3523
+ category: string;
3524
+ description: string;
3525
+ name: string;
3526
+ }
3527
+
3528
+ export interface ConsentTypeStatus {
3529
+ type: string;
3530
+ version: string;
3531
+ expiresAt: string | undefined;
3532
+ granted: boolean;
3533
+ grantedAt: string;
3534
+ needsRenewal: boolean;
3535
+ }
3536
+
3537
+ export interface mockRepository {
3538
+ }
3539
+
3540
+ export interface SendOTP_body {
3541
+ user_id: string;
3542
+ }
3543
+
3544
+ export interface MockRepository {
3545
+ }
3546
+
3547
+ export interface ImpersonationStartResponse {
3548
+ started_at: string;
3549
+ target_user_id: string;
3550
+ impersonator_id: string;
3551
+ session_id: string;
3552
+ }
3553
+
3554
+ export interface DeleteFactorRequest {
3555
+ }
3556
+
3557
+ export interface SessionsResponse {
3558
+ sessions: any;
3559
+ }
3560
+
3561
+ export interface AccountLockoutError {
3562
+ }
3563
+
3564
+ export interface HealthCheckResponse {
3565
+ enabledMethods: string[];
3566
+ healthy: boolean;
3567
+ message: string;
3568
+ providersStatus: any;
3569
+ version: string;
3570
+ }
3571
+
3572
+ export interface ComplianceStatusDetailsResponse {
3573
+ status: string;
3574
+ }
3575
+
3576
+ export interface PolicyEngine {
3577
+ }
3578
+
3579
+ export interface ComplianceTemplate {
3580
+ retentionDays: number;
3581
+ standard: string;
3582
+ auditFrequencyDays: number;
3583
+ description: string;
3584
+ mfaRequired: boolean;
3585
+ passwordMinLength: number;
3586
+ requiredTraining: string[];
3587
+ sessionMaxAge: number;
3588
+ dataResidency: string;
3589
+ name: string;
3590
+ requiredPolicies: string[];
3591
+ }
3592
+
3593
+ export interface RiskAssessment {
3594
+ metadata: any;
3595
+ recommended: string[];
3596
+ score: number;
3597
+ factors: string[];
3598
+ level: string;
3599
+ }
3600
+
3601
+ export interface AmountRule {
3602
+ currency: string;
3603
+ description: string;
3604
+ max_amount: number;
3605
+ min_amount: number;
3606
+ org_id: string;
3607
+ security_level: string;
3608
+ }
3609
+
3610
+ export interface MockStateStore {
3611
+ }
3612
+
3613
+ export interface TwoFAEnableResponse {
3614
+ status: string;
3615
+ totp_uri: string;
3616
+ }
3617
+
3618
+ export interface ComplianceReportFileResponse {
3619
+ content_type: string;
3620
+ data: number[];
3621
+ }
3622
+
3623
+ export interface ComplianceEvidencesResponse {
3624
+ evidence: any[];
3625
+ }
3626
+
3627
+ export interface GenerateRecoveryCodesRequest {
3628
+ count: number;
3629
+ format: string;
3630
+ }
3631
+
3632
+ export interface RunCheckRequest {
3633
+ checkType: string;
3634
+ }
3635
+
3636
+ export interface ApproveRecoveryResponse {
3637
+ approved: boolean;
3638
+ approvedAt: string;
3639
+ message: string;
3640
+ sessionId: string;
3641
+ }
3642
+
3643
+ export interface AuditLog {
3644
+ }
3645
+
3646
+ export interface TrustedDevicesConfig {
3647
+ default_expiry_days: number;
3648
+ enabled: boolean;
3649
+ max_devices_per_user: number;
3650
+ max_expiry_days: number;
3651
+ }
3652
+
3653
+ export interface MFAStatus {
3654
+ gracePeriod: string | undefined;
3655
+ policyActive: boolean;
3656
+ requiredCount: number;
3657
+ trustedDevice: boolean;
3658
+ enabled: boolean;
3659
+ enrolledFactors: FactorInfo[];
3660
+ }
3661
+
3662
+ export interface EmailProviderConfig {
3663
+ config: any;
3664
+ from: string;
3665
+ from_name: string;
3666
+ provider: string;
3667
+ reply_to: string;
3668
+ }
3669
+
3670
+ export interface JWKS {
3671
+ keys: JWK[];
3672
+ }
3673
+
3674
+ export interface IDVerificationWebhookResponse {
3675
+ status: string;
3676
+ }
3677
+