@authsome/client 0.0.1

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