@authsome/ui-core 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -10,7 +10,6 @@ interface AdminImpersonateRequest {
10
10
  UserID: string;
11
11
  }
12
12
  interface AdminStatsResponse {
13
- total_organizations: number;
14
13
  total_users: number;
15
14
  }
16
15
  interface AdminStopImpersonationRequest {
@@ -23,12 +22,35 @@ interface AdminUserListResponse {
23
22
  total: number;
24
23
  users: User[];
25
24
  }
25
+ interface AuthMethod {
26
+ label: string;
27
+ linked_at?: string;
28
+ provider: string;
29
+ type: string;
30
+ }
26
31
  interface AuthResponse {
27
32
  expires_at: string;
28
33
  refresh_token: string;
29
34
  session_token: string;
30
35
  user: User;
31
36
  }
37
+ interface BulkError {
38
+ email?: string;
39
+ error: string;
40
+ index: number;
41
+ }
42
+ interface BulkImportResult {
43
+ created: number;
44
+ errors?: BulkError[];
45
+ skipped: number;
46
+ }
47
+ interface BulkRevokeSessionsRequest {
48
+ UserID: string;
49
+ }
50
+ interface BulkRevokeSessionsResponse {
51
+ revoked: number;
52
+ user_id: string;
53
+ }
32
54
  interface CallbackRequest {
33
55
  Provider: string;
34
56
  code: string;
@@ -50,6 +72,92 @@ interface ChallengeResponse {
50
72
  challenge_passed: boolean;
51
73
  method: string;
52
74
  }
75
+ interface ClientConfigBranding {
76
+ app_name?: string;
77
+ logo_url?: string;
78
+ }
79
+ interface ClientConfigFieldValidation {
80
+ max?: number;
81
+ max_len?: number;
82
+ min?: number;
83
+ min_len?: number;
84
+ pattern?: string;
85
+ required?: boolean;
86
+ }
87
+ interface ClientConfigMFA {
88
+ enabled: boolean;
89
+ methods: string[];
90
+ }
91
+ interface ClientConfigResponse {
92
+ app_id: string;
93
+ branding?: ClientConfigBranding;
94
+ magiclink?: ClientConfigToggle;
95
+ mfa?: ClientConfigMFA;
96
+ passkey?: ClientConfigToggle;
97
+ password?: ClientConfigToggle;
98
+ signup_fields?: ClientConfigSignupField[];
99
+ social?: ClientConfigSocial;
100
+ sso?: ClientConfigSSO;
101
+ supported_plugins: string[];
102
+ version: string;
103
+ }
104
+ interface ClientConfigSSO {
105
+ connections: ClientConfigSSOConnection[];
106
+ enabled: boolean;
107
+ }
108
+ interface ClientConfigSSOConnection {
109
+ id: string;
110
+ name: string;
111
+ }
112
+ interface ClientConfigSelectOption {
113
+ label: string;
114
+ value: string;
115
+ }
116
+ interface ClientConfigSignupField {
117
+ default?: string;
118
+ description?: string;
119
+ key: string;
120
+ label: string;
121
+ options?: ClientConfigSelectOption[];
122
+ order: number;
123
+ placeholder?: string;
124
+ type: string;
125
+ validation?: ClientConfigFieldValidation;
126
+ }
127
+ interface ClientConfigSocial {
128
+ enabled: boolean;
129
+ providers: ClientConfigSocialProvider[];
130
+ }
131
+ interface ClientConfigSocialProvider {
132
+ id: string;
133
+ name: string;
134
+ }
135
+ interface ClientConfigToggle {
136
+ enabled: boolean;
137
+ }
138
+ interface CloneEnvironmentResponse {
139
+ environment: unknown;
140
+ permissions_cloned: number;
141
+ role_id_map: Record<string, unknown>;
142
+ roles_cloned: number;
143
+ webhooks_cloned: number;
144
+ }
145
+ interface Config {
146
+ app_id: string;
147
+ app_name?: string;
148
+ created_at: string;
149
+ id: string;
150
+ logo_url?: string;
151
+ magic_link_enabled?: boolean;
152
+ mfa_enabled?: boolean;
153
+ mfa_methods?: string[];
154
+ passkey_enabled?: boolean;
155
+ password_enabled?: boolean;
156
+ social_enabled?: boolean;
157
+ social_providers?: string[];
158
+ sso_enabled?: boolean;
159
+ updated_at: string;
160
+ }
53
161
  interface CreateKeyRequest {
54
162
  app_id: string;
55
163
  name: string;
@@ -63,6 +171,8 @@ interface CreateKeyResponse {
63
171
  key: string;
64
172
  key_prefix: string;
65
173
  name: string;
174
+ public_key: string;
175
+ public_key_prefix: string;
66
176
  scopes?: string[];
67
177
  }
68
178
  interface CredentialInfo {
@@ -71,8 +181,32 @@ interface CredentialInfo {
71
181
  id: string;
72
182
  transport: string[];
73
183
  }
184
+ interface Definition {
185
+ category: string;
186
+ default: string;
187
+ description: string;
188
+ display_name: string;
189
+ enforceable: boolean;
190
+ key: string;
191
+ namespace: string;
192
+ scopes: string[];
193
+ sensitive: boolean;
194
+ type: string;
195
+ ui?: UIMetadata;
196
+ }
197
+ interface DefinitionGroup {
198
+ category: string;
199
+ definitions: Definition[];
200
+ namespace: string;
201
+ }
74
202
  interface DeleteAccountRequest {
75
203
  }
204
+ interface DeleteAppClientConfigRequest {
205
+ AppID: string;
206
+ }
207
+ interface DeleteAppSessionConfigRequest {
208
+ AppID: string;
209
+ }
76
210
  interface DeleteDeviceRequest {
77
211
  DeviceID: string;
78
212
  }
@@ -85,8 +219,10 @@ interface DeleteRequest {
85
219
  interface DeleteResponse {
86
220
  status: string;
87
221
  }
88
- interface DeleteRoleRequest {
89
- RoleID: string;
222
+ interface DeleteSettingRequest {
223
+ Key: string;
224
+ Scope: string;
225
+ ScopeID: string;
90
226
  }
91
227
  interface DeleteTeamRequest {
92
228
  OrgID: string;
@@ -96,19 +232,21 @@ interface DeleteWebhookRequest {
96
232
  WebhookID: string;
97
233
  }
98
234
  interface Device {
99
- app_id: ID;
235
+ app_id: string;
100
236
  browser?: string;
101
237
  created_at: string;
238
+ env_id: string;
102
239
  fingerprint?: string;
103
- id: ID;
240
+ id: string;
104
241
  ip_address?: string;
105
242
  last_seen_at: string;
106
243
  name?: string;
107
244
  os?: string;
108
245
  trusted: boolean;
246
+ trusted_until?: string;
109
247
  type?: string;
110
248
  updated_at: string;
111
- user_id: ID;
249
+ user_id: string;
112
250
  }
113
251
  interface DeviceListResponse {
114
252
  devices: Device[];
@@ -128,6 +266,30 @@ interface EnrollResponse {
128
266
  otpauth_url: string;
129
267
  secret: string;
130
268
  }
269
+ interface Environment {
270
+ app_id: string;
271
+ cloned_from?: string;
272
+ color?: string;
273
+ created_at: string;
274
+ description?: string;
275
+ id: string;
276
+ is_default: boolean;
277
+ metadata?: Record<string, unknown>;
278
+ name: string;
279
+ settings?: Settings;
280
+ slug: string;
281
+ type: string;
282
+ updated_at: string;
283
+ }
284
+ interface EnvironmentListResponse {
285
+ environments: unknown;
286
+ total: number;
287
+ }
288
+ interface EnvironmentSettingsResponse {
289
+ overrides?: Settings;
290
+ settings?: Settings;
291
+ type_defaults?: Settings;
292
+ }
131
293
  interface ForgotPasswordResponse {
132
294
  status: string;
133
295
  }
@@ -135,15 +297,13 @@ interface HealthResponse {
135
297
  error?: string;
136
298
  status: string;
137
299
  }
138
- interface ID {
139
- }
140
300
  interface Invitation {
141
301
  created_at: string;
142
302
  email: string;
143
303
  expires_at: string;
144
- id: ID;
145
- inviter_id: ID;
146
- org_id: ID;
304
+ id: string;
305
+ inviter_id: string;
306
+ org_id: string;
147
307
  role: string;
148
308
  status: string;
149
309
  }
@@ -157,9 +317,17 @@ interface KeyListItem {
157
317
  key_prefix: string;
158
318
  last_used_at?: string;
159
319
  name: string;
320
+ public_key_prefix?: string;
160
321
  revoked: boolean;
161
322
  scopes?: string[];
162
323
  }
324
+ interface ListAuthMethodsResponse {
325
+ methods: AuthMethod[];
326
+ }
327
+ interface ListDefinitionsResponse {
328
+ groups: DefinitionGroup[];
329
+ total: number;
330
+ }
163
331
  interface ListKeysResponse {
164
332
  keys: KeyListItem[];
165
333
  total: number;
@@ -188,23 +356,34 @@ interface LoginResponse {
188
356
  }
189
357
  interface Member {
190
358
  created_at: string;
191
- id: ID;
192
- org_id: ID;
359
+ id: string;
360
+ org_id: string;
193
361
  role: string;
194
362
  updated_at: string;
195
- user_id: ID;
363
+ user_id: string;
196
364
  }
197
365
  interface MemberListResponse {
198
366
  members: Member[];
199
367
  }
368
+ interface ObjectFieldDef {
369
+ display_name: string;
370
+ help_text?: string;
371
+ input_type: string;
372
+ key: string;
373
+ options?: SelectOption[];
374
+ placeholder?: string;
375
+ required?: boolean;
376
+ sensitive?: boolean;
377
+ }
200
378
  interface OrgListResponse {
201
379
  organizations: Organization[];
202
380
  }
203
381
  interface Organization {
204
- app_id: ID;
382
+ app_id: string;
205
383
  created_at: string;
206
- created_by: ID;
207
- id: ID;
384
+ created_by: string;
385
+ env_id: string;
386
+ id: string;
208
387
  logo?: string;
209
388
  metadata?: Record<string, unknown>;
210
389
  name: string;
@@ -249,9 +428,18 @@ interface RemoveMemberRequest {
249
428
  MemberID: string;
250
429
  OrgID: string;
251
430
  }
252
- interface RemovePermissionRequest {
253
- PermissionID: string;
254
- RoleID: string;
431
+ interface ResolvedSetting {
432
+ can_override: boolean;
433
+ definition?: Definition;
434
+ effective_value: string;
435
+ enforced_at?: string;
436
+ scope_values: ScopeValue[];
437
+ }
438
+ interface ResolvedSettingResponse {
439
+ setting?: ResolvedSetting;
440
+ }
441
+ interface ResolvedSettingsResponse {
442
+ settings: ResolvedSetting[];
255
443
  }
256
444
  interface RevokeKeyRequest {
257
445
  KeyID: string;
@@ -263,6 +451,7 @@ interface Role {
263
451
  app_id: string;
264
452
  created_at: string;
265
453
  description?: string;
454
+ env_id: string;
266
455
  id: string;
267
456
  name: string;
268
457
  parent_id?: string;
@@ -287,6 +476,19 @@ interface SMSVerifyResponse {
287
476
  method: string;
288
477
  verified: boolean;
289
478
  }
479
+ interface ScopeValue {
480
+ enforced: boolean;
481
+ scope: string;
482
+ scope_id?: string;
483
+ updated_at?: string;
484
+ updated_by?: string;
485
+ value: string;
486
+ version?: number;
487
+ }
488
+ interface SelectOption {
489
+ label: string;
490
+ value: string;
491
+ }
290
492
  interface SendRequest {
291
493
  app_id?: string;
292
494
  email: string;
@@ -297,6 +499,29 @@ interface SendResponse {
297
499
  interface SessionListResponse {
298
500
  sessions: Record<string, unknown>[];
299
501
  }
502
+ interface SettingValueResponse {
503
+ key: string;
504
+ scope: string;
505
+ scope_id?: string;
506
+ status: string;
507
+ value: string;
508
+ }
509
+ interface Settings {
510
+ allow_test_credentials?: boolean;
511
+ check_breached?: boolean;
512
+ lockout_enabled?: boolean;
513
+ lockout_max_attempts?: number;
514
+ oauth_overrides?: Record<string, unknown>;
515
+ password_min_length?: number;
516
+ rate_limit_enabled?: boolean;
517
+ rate_limit_window_seconds?: number;
518
+ refresh_token_ttl_seconds?: number;
519
+ signin_rate_limit?: number;
520
+ signup_rate_limit?: number;
521
+ skip_email_verification?: boolean;
522
+ token_ttl_seconds?: number;
523
+ webhook_url_override?: string;
524
+ }
300
525
  interface SignOutRequest {
301
526
  }
302
527
  interface SlugAvailableResponse {
@@ -313,9 +538,9 @@ interface StatusResponse {
313
538
  }
314
539
  interface Team {
315
540
  created_at: string;
316
- id: ID;
541
+ id: string;
317
542
  name: string;
318
- org_id: ID;
543
+ org_id: string;
319
544
  slug: string;
320
545
  updated_at: string;
321
546
  }
@@ -330,8 +555,31 @@ interface TokenResponse {
330
555
  interface TrustDeviceRequest {
331
556
  DeviceID: string;
332
557
  }
558
+ interface UIMetadata {
559
+ condition?: VisibilityCondition;
560
+ help_text?: string;
561
+ input_type: string;
562
+ object_fields?: ObjectFieldDef[];
563
+ options?: SelectOption[];
564
+ order: number;
565
+ placeholder?: string;
566
+ read_only?: boolean;
567
+ section?: string;
568
+ validation?: Validation;
569
+ }
570
+ interface UnenforceSettingRequest {
571
+ Key: string;
572
+ Scope: string;
573
+ ScopeID: string;
574
+ }
575
+ interface UnlinkAuthMethodRequest {
576
+ Provider: string;
577
+ }
578
+ interface UnlinkAuthMethodResponse {
579
+ status: string;
580
+ }
333
581
  interface User {
334
- app_id: ID;
582
+ app_id: string;
335
583
  ban_expires?: string;
336
584
  ban_reason?: string;
337
585
  banned: boolean;
@@ -340,10 +588,13 @@ interface User {
340
588
  display_username?: string;
341
589
  email: string;
342
590
  email_verified: boolean;
343
- id: ID;
591
+ env_id: string;
592
+ first_name: string;
593
+ id: string;
344
594
  image?: string;
595
+ last_name: string;
345
596
  metadata?: Record<string, unknown>;
346
- name: string;
597
+ password_changed_at?: string;
347
598
  phone?: string;
348
599
  phone_verified: boolean;
349
600
  updated_at: string;
@@ -352,6 +603,14 @@ interface User {
352
603
  interface UserRoleListResponse {
353
604
  roles: Role[];
354
605
  }
606
+ interface Validation {
607
+ max?: number;
608
+ max_len?: number;
609
+ min?: number;
610
+ min_len?: number;
611
+ pattern?: string;
612
+ required?: boolean;
613
+ }
355
614
  interface VerifyMFARequest {
356
615
  code: string;
357
616
  }
@@ -370,18 +629,64 @@ interface VerifyResponse {
370
629
  session_token: string;
371
630
  user: User;
372
631
  }
632
+ interface VisibilityCondition {
633
+ key: string;
634
+ operator?: string;
635
+ value: string;
636
+ }
373
637
  interface Webhook {
374
638
  active: boolean;
375
- app_id: ID;
639
+ app_id: string;
376
640
  created_at: string;
641
+ env_id: string;
377
642
  events: string[];
378
- id: ID;
643
+ id: string;
379
644
  updated_at: string;
380
645
  url: string;
381
646
  }
382
647
  interface WebhookListResponse {
383
648
  webhooks: Webhook[];
384
649
  }
650
+ type SetAppClientConfigRequest = {
651
+ app_name?: string;
652
+ logo_url?: string;
653
+ magic_link_enabled?: boolean;
654
+ mfa_enabled?: boolean;
655
+ mfa_methods?: string[];
656
+ passkey_enabled?: boolean;
657
+ password_enabled?: boolean;
658
+ social_enabled?: boolean;
659
+ social_providers?: string[];
660
+ sso_enabled?: boolean;
661
+ };
662
+ type SetAppSessionConfigRequest = {
663
+ bind_to_device?: boolean;
664
+ bind_to_ip?: boolean;
665
+ max_active_sessions?: number;
666
+ refresh_token_ttl_seconds?: number;
667
+ rotate_refresh_token?: boolean;
668
+ token_format?: string;
669
+ token_ttl_seconds?: number;
670
+ };
671
+ type AdminBulkRevokeSessionsRequest = BulkRevokeSessionsRequest;
672
+ type AdminBulkImportUsersRequest = {
673
+ app_id?: string;
674
+ users: Record<string, unknown>[];
675
+ };
676
+ type EnforceSettingRequest = {
677
+ app_id?: string;
678
+ org_id?: string;
679
+ scope: string;
680
+ scope_id?: string;
681
+ value: string;
682
+ };
683
+ type SetSettingRequest = {
684
+ app_id?: string;
685
+ org_id?: string;
686
+ scope: string;
687
+ scope_id?: string;
688
+ value: string;
689
+ };
385
690
  type AdminBanUserRequest = {
386
691
  expires_at?: string;
387
692
  reason?: string;
@@ -390,6 +695,44 @@ type ChangePasswordRequest = {
390
695
  current_password: string;
391
696
  new_password: string;
392
697
  };
698
+ type CreateEnvironmentRequest = {
699
+ app_id?: string;
700
+ color?: string;
701
+ description?: string;
702
+ name: string;
703
+ settings?: Record<string, unknown>;
704
+ slug: string;
705
+ type: string;
706
+ };
707
+ type UpdateEnvironmentRequest = {
708
+ color?: string;
709
+ description?: string;
710
+ name?: string;
711
+ };
712
+ type CloneEnvironmentRequest = {
713
+ description?: string;
714
+ name: string;
715
+ settings?: Record<string, unknown>;
716
+ slug: string;
717
+ type: string;
718
+ webhook_url_override?: string;
719
+ };
720
+ type UpdateEnvironmentSettingsRequest = {
721
+ allow_test_credentials?: boolean;
722
+ check_breached?: boolean;
723
+ lockout_enabled?: boolean;
724
+ lockout_max_attempts?: number;
725
+ oauth_overrides?: Record<string, unknown>;
726
+ password_min_length?: number;
727
+ rate_limit_enabled?: boolean;
728
+ rate_limit_window_seconds?: number;
729
+ refresh_token_ttl_seconds?: number;
730
+ signin_rate_limit?: number;
731
+ signup_rate_limit?: number;
732
+ skip_email_verification?: boolean;
733
+ token_ttl_seconds?: number;
734
+ webhook_url_override?: string;
735
+ };
393
736
  type ForgotPasswordRequest = {
394
737
  app_id?: string;
395
738
  email: string;
@@ -399,8 +742,9 @@ type RevokeAPIKeyRequest = RevokeKeyRequest;
399
742
  type SendMagicLinkRequest = SendRequest;
400
743
  type VerifyMagicLinkRequest = VerifyRequest;
401
744
  type UpdateMeRequest = {
745
+ first_name?: string;
402
746
  image?: string;
403
- name?: string;
747
+ last_name?: string;
404
748
  username?: string;
405
749
  };
406
750
  type DeleteMeRequest = DeleteAccountRequest;
@@ -459,27 +803,27 @@ type ResetPasswordRequest = {
459
803
  new_password: string;
460
804
  token: string;
461
805
  };
462
- type CreateRoleRequest = {
806
+ type AuthsomeCreateRoleRequest = {
463
807
  app_id?: string;
464
808
  description?: string;
465
809
  name: string;
466
810
  parent_id?: string;
467
811
  slug: string;
468
812
  };
469
- type UpdateRoleRequest = {
813
+ type AuthsomeUpdateRoleRequest = {
470
814
  description?: string;
471
815
  name?: string;
472
816
  parent_id?: string;
473
817
  };
474
- type AssignRoleRequest = {
818
+ type AuthsomeAssignRoleRequest = {
475
819
  org_id?: string;
476
820
  user_id: string;
477
821
  };
478
- type AddPermissionRequest = {
822
+ type AuthsomeAddPermissionRequest = {
479
823
  action: string;
480
824
  resource: string;
481
825
  };
482
- type UnassignRoleRequest = {
826
+ type AuthsomeUnassignRoleRequest = {
483
827
  user_id: string;
484
828
  };
485
829
  type SignInRequest = {
@@ -491,7 +835,9 @@ type SignInRequest = {
491
835
  type SignUpRequest = {
492
836
  app_id?: string;
493
837
  email: string;
494
- name?: string;
838
+ first_name?: string;
839
+ last_name?: string;
840
+ metadata?: Record<string, unknown>;
495
841
  password: string;
496
842
  username?: string;
497
843
  };
@@ -570,6 +916,32 @@ interface SSOConnectionConfig {
570
916
  id: string;
571
917
  name: string;
572
918
  }
919
+ /** A single option for select/radio/checkbox signup fields. */
920
+ interface SignupFieldOption {
921
+ label: string;
922
+ value: string;
923
+ }
924
+ /** Validation rules for a signup field. */
925
+ interface SignupFieldValidation {
926
+ required?: boolean;
927
+ min_len?: number;
928
+ max_len?: number;
929
+ pattern?: string;
930
+ min?: number;
931
+ max?: number;
932
+ }
933
+ /** A custom signup form field from the backend. */
934
+ interface SignupFieldConfig {
935
+ key: string;
936
+ label: string;
937
+ type: string;
938
+ placeholder?: string;
939
+ description?: string;
940
+ options?: SignupFieldOption[];
941
+ default?: string;
942
+ validation?: SignupFieldValidation;
943
+ order: number;
944
+ }
573
945
  /**
574
946
  * Client configuration returned by the backend.
575
947
  *
@@ -606,6 +978,8 @@ interface ClientConfig {
606
978
  };
607
979
  /** List of server-side plugin names that are installed and active. */
608
980
  supported_plugins?: string[];
981
+ /** Custom signup form fields configured for this app. */
982
+ signup_fields?: SignupFieldConfig[];
609
983
  }
610
984
  /** Interface for persisting tokens across sessions. */
611
985
  interface TokenStorage {
@@ -637,439 +1011,579 @@ declare class AuthClient$1 {
637
1011
  * GET /.well-known/authsome/openapi
638
1012
  */
639
1013
  getOpenAPI(): Promise<Record<string, unknown>>;
1014
+ /**
1015
+ * Get per-app client config overrides
1016
+ * GET /v1/admin/apps/{appId}/client-config
1017
+ */
1018
+ getAppClientConfig(appId: string, token: string): Promise<Config>;
1019
+ /**
1020
+ * Set per-app client config overrides
1021
+ * PUT /v1/admin/apps/{appId}/client-config
1022
+ */
1023
+ setAppClientConfig(appId: string, body: SetAppClientConfigRequest, token: string): Promise<Config>;
1024
+ /**
1025
+ * Delete per-app client config overrides
1026
+ * DELETE /v1/admin/apps/{appId}/client-config
1027
+ */
1028
+ deleteAppClientConfig(appId: string, body: DeleteAppClientConfigRequest, token: string): Promise<StatusResponse>;
1029
+ /**
1030
+ * Get per-app session config
1031
+ * GET /v1/admin/apps/{appId}/session-config
1032
+ */
1033
+ getAppSessionConfig(appId: string, token: string): Promise<Config>;
1034
+ /**
1035
+ * Set per-app session config
1036
+ * PUT /v1/admin/apps/{appId}/session-config
1037
+ */
1038
+ setAppSessionConfig(appId: string, body: SetAppSessionConfigRequest, token: string): Promise<Config>;
1039
+ /**
1040
+ * Delete per-app session config
1041
+ * DELETE /v1/admin/apps/{appId}/session-config
1042
+ */
1043
+ deleteAppSessionConfig(appId: string, body: DeleteAppSessionConfigRequest, token: string): Promise<StatusResponse>;
1044
+ /**
1045
+ * Bulk revoke sessions (admin)
1046
+ * DELETE /v1/admin/bulk/sessions
1047
+ */
1048
+ adminBulkRevokeSessions(body: AdminBulkRevokeSessionsRequest, token: string): Promise<BulkRevokeSessionsResponse>;
1049
+ /**
1050
+ * Bulk import users (admin)
1051
+ * POST /v1/admin/bulk/users/import
1052
+ */
1053
+ adminBulkImportUsers(body: AdminBulkImportUsersRequest, token: string): Promise<BulkImportResult>;
640
1054
  /**
641
1055
  * Stop impersonation (admin)
642
- * POST /v1/auth/admin/impersonate/stop
1056
+ * POST /v1/admin/impersonate/stop
643
1057
  */
644
1058
  adminStopImpersonation(body: AdminStopImpersonationRequest, token: string): Promise<StatusResponse>;
645
1059
  /**
646
1060
  * Impersonate user (admin)
647
- * POST /v1/auth/admin/impersonate/{userId}
1061
+ * POST /v1/admin/impersonate/{userId}
648
1062
  */
649
1063
  adminImpersonate(userId: string, body: AdminImpersonateRequest, token: string): Promise<AuthResponse>;
650
1064
  /**
651
1065
  * List organizations (admin)
652
- * GET /v1/auth/admin/orgs
1066
+ * GET /v1/admin/orgs
653
1067
  */
654
1068
  adminListOrgs(token: string): Promise<OrgListResponse>;
1069
+ /**
1070
+ * List all setting definitions
1071
+ * GET /v1/admin/settings/definitions
1072
+ */
1073
+ listSettingsDefinitions(token: string): Promise<ListDefinitionsResponse>;
1074
+ /**
1075
+ * List definitions for a namespace
1076
+ * GET /v1/admin/settings/definitions/{namespace}
1077
+ */
1078
+ listNamespaceSettingsDefinitions(namespace: string, token: string): Promise<ListDefinitionsResponse>;
1079
+ /**
1080
+ * Enforce a setting value at a scope
1081
+ * PUT /v1/admin/settings/enforce/{key}
1082
+ */
1083
+ enforceSetting(key: string, body: EnforceSettingRequest, token: string): Promise<SettingValueResponse>;
1084
+ /**
1085
+ * Remove enforcement from a setting
1086
+ * DELETE /v1/admin/settings/enforce/{key}
1087
+ */
1088
+ unenforceSetting(key: string, body: UnenforceSettingRequest, token: string): Promise<StatusResponse>;
1089
+ /**
1090
+ * Resolve all settings at a scope
1091
+ * GET /v1/admin/settings/resolve
1092
+ */
1093
+ resolveSettings(token: string): Promise<ResolvedSettingsResponse>;
1094
+ /**
1095
+ * Resolve one setting with cascade details
1096
+ * GET /v1/admin/settings/resolve/{key}
1097
+ */
1098
+ resolveSetting(key: string, token: string): Promise<ResolvedSettingResponse>;
1099
+ /**
1100
+ * Set a setting value at a scope
1101
+ * PUT /v1/admin/settings/values/{key}
1102
+ */
1103
+ setSetting(key: string, body: SetSettingRequest, token: string): Promise<SettingValueResponse>;
1104
+ /**
1105
+ * Delete a setting override at a scope
1106
+ * DELETE /v1/admin/settings/values/{key}
1107
+ */
1108
+ deleteSetting(key: string, body: DeleteSettingRequest, token: string): Promise<StatusResponse>;
655
1109
  /**
656
1110
  * Get stats (admin)
657
- * GET /v1/auth/admin/stats
1111
+ * GET /v1/admin/stats
658
1112
  */
659
1113
  adminGetStats(token: string): Promise<AdminStatsResponse>;
660
1114
  /**
661
1115
  * List users (admin)
662
- * GET /v1/auth/admin/users
1116
+ * GET /v1/admin/users
663
1117
  */
664
1118
  adminListUsers(token: string): Promise<AdminUserListResponse>;
665
1119
  /**
666
1120
  * Get user (admin)
667
- * GET /v1/auth/admin/users/{userId}
1121
+ * GET /v1/admin/users/{userId}
668
1122
  */
669
1123
  adminGetUser(userId: string, token: string): Promise<User>;
670
1124
  /**
671
1125
  * Delete user (admin)
672
- * DELETE /v1/auth/admin/users/{userId}
1126
+ * DELETE /v1/admin/users/{userId}
673
1127
  */
674
1128
  adminDeleteUser(userId: string, body: AdminDeleteUserRequest, token: string): Promise<StatusResponse>;
675
1129
  /**
676
1130
  * Ban user (admin)
677
- * POST /v1/auth/admin/users/{userId}/ban
1131
+ * POST /v1/admin/users/{userId}/ban
678
1132
  */
679
1133
  adminBanUser(userId: string, body: AdminBanUserRequest, token: string): Promise<StatusResponse>;
680
1134
  /**
681
1135
  * Unban user (admin)
682
- * POST /v1/auth/admin/users/{userId}/unban
1136
+ * POST /v1/admin/users/{userId}/unban
683
1137
  */
684
1138
  adminUnbanUser(userId: string, body: AdminUnbanUserRequest, token: string): Promise<StatusResponse>;
685
1139
  /**
686
1140
  * Change password
687
- * POST /v1/auth/change-password
1141
+ * POST /v1/change-password
688
1142
  */
689
1143
  changePassword(body: ChangePasswordRequest, token: string): Promise<StatusResponse>;
1144
+ /**
1145
+ * Get client configuration
1146
+ * GET /v1/client-config
1147
+ */
1148
+ getClientConfig(token: string): Promise<ClientConfigResponse>;
690
1149
  /**
691
1150
  * List devices
692
- * GET /v1/auth/devices
1151
+ * GET /v1/devices
693
1152
  */
694
1153
  listDevices(token: string): Promise<DeviceListResponse>;
695
1154
  /**
696
1155
  * Get device
697
- * GET /v1/auth/devices/{deviceId}
1156
+ * GET /v1/devices/{deviceId}
698
1157
  */
699
1158
  getDevice(deviceId: string, token: string): Promise<Device>;
700
1159
  /**
701
1160
  * Delete device
702
- * DELETE /v1/auth/devices/{deviceId}
1161
+ * DELETE /v1/devices/{deviceId}
703
1162
  */
704
1163
  deleteDevice(deviceId: string, body: DeleteDeviceRequest, token: string): Promise<StatusResponse>;
705
1164
  /**
706
1165
  * Trust device
707
- * PATCH /v1/auth/devices/{deviceId}/trust
1166
+ * PATCH /v1/devices/{deviceId}/trust
708
1167
  */
709
1168
  trustDevice(deviceId: string, body: TrustDeviceRequest, token: string): Promise<Device>;
1169
+ /**
1170
+ * List environments
1171
+ * GET /v1/environments
1172
+ */
1173
+ listEnvironments(token: string): Promise<EnvironmentListResponse>;
1174
+ /**
1175
+ * Create environment
1176
+ * POST /v1/environments
1177
+ */
1178
+ createEnvironment(body: CreateEnvironmentRequest, token: string): Promise<Environment>;
1179
+ /**
1180
+ * Get environment
1181
+ * GET /v1/environments/{envId}
1182
+ */
1183
+ getEnvironment(envId: string, token: string): Promise<Environment>;
1184
+ /**
1185
+ * Update environment
1186
+ * PATCH /v1/environments/{envId}
1187
+ */
1188
+ updateEnvironment(envId: string, body: UpdateEnvironmentRequest, token: string): Promise<Environment>;
1189
+ /**
1190
+ * Delete environment
1191
+ * DELETE /v1/environments/{envId}
1192
+ */
1193
+ deleteEnvironment(envId: string, token: string): Promise<StatusResponse>;
1194
+ /**
1195
+ * Clone environment
1196
+ * POST /v1/environments/{envId}/clone
1197
+ */
1198
+ cloneEnvironment(envId: string, body: CloneEnvironmentRequest, token: string): Promise<CloneEnvironmentResponse>;
1199
+ /**
1200
+ * Set default environment
1201
+ * POST /v1/environments/{envId}/set-default
1202
+ */
1203
+ setDefaultEnvironment(envId: string, token: string): Promise<StatusResponse>;
1204
+ /**
1205
+ * Get environment settings
1206
+ * GET /v1/environments/{envId}/settings
1207
+ */
1208
+ getEnvironmentSettings(envId: string, token: string): Promise<EnvironmentSettingsResponse>;
1209
+ /**
1210
+ * Update environment settings
1211
+ * PATCH /v1/environments/{envId}/settings
1212
+ */
1213
+ updateEnvironmentSettings(envId: string, body: UpdateEnvironmentSettingsRequest, token: string): Promise<Environment>;
710
1214
  /**
711
1215
  * Forgot password
712
- * POST /v1/auth/forgot-password
1216
+ * POST /v1/forgot-password
713
1217
  */
714
1218
  forgotPassword(body: ForgotPasswordRequest): Promise<ForgotPasswordResponse>;
715
1219
  /**
716
1220
  * Health check
717
- * GET /v1/auth/health
1221
+ * GET /v1/health
718
1222
  */
719
1223
  getHealth(): Promise<HealthResponse>;
720
1224
  /**
721
1225
  * List API keys
722
- * GET /v1/auth/keys
1226
+ * GET /v1/keys
723
1227
  */
724
1228
  listAPIKeys(token: string): Promise<ListKeysResponse>;
725
1229
  /**
726
1230
  * Create API key
727
- * POST /v1/auth/keys
1231
+ * POST /v1/keys
728
1232
  */
729
1233
  createAPIKey(body: CreateAPIKeyRequest, token: string): Promise<CreateKeyResponse>;
730
1234
  /**
731
1235
  * Revoke API key
732
- * DELETE /v1/auth/keys/{keyId}
1236
+ * DELETE /v1/keys/{keyId}
733
1237
  */
734
1238
  revokeAPIKey(keyId: string, body: RevokeAPIKeyRequest, token: string): Promise<void>;
735
1239
  /**
736
1240
  * Send magic link
737
- * POST /v1/auth/magic-link/send
1241
+ * POST /v1/magic-link/send
738
1242
  */
739
1243
  sendMagicLink(body: SendMagicLinkRequest): Promise<SendResponse>;
740
1244
  /**
741
1245
  * Verify magic link
742
- * POST /v1/auth/magic-link/verify
1246
+ * POST /v1/magic-link/verify
743
1247
  */
744
1248
  verifyMagicLink(body: VerifyMagicLinkRequest): Promise<VerifyResponse>;
745
1249
  /**
746
1250
  * Get current user
747
- * GET /v1/auth/me
1251
+ * GET /v1/me
748
1252
  */
749
1253
  getMe(token: string): Promise<User>;
750
1254
  /**
751
1255
  * Update current user
752
- * PATCH /v1/auth/me
1256
+ * PATCH /v1/me
753
1257
  */
754
1258
  updateMe(body: UpdateMeRequest, token: string): Promise<User>;
755
1259
  /**
756
1260
  * Delete account
757
- * DELETE /v1/auth/me
1261
+ * DELETE /v1/me
758
1262
  */
759
1263
  deleteMe(body: DeleteMeRequest, token: string): Promise<StatusResponse>;
1264
+ /**
1265
+ * List linked auth methods
1266
+ * GET /v1/me/auth-methods
1267
+ */
1268
+ listAuthMethods(token: string): Promise<ListAuthMethodsResponse>;
1269
+ /**
1270
+ * Unlink an auth method
1271
+ * DELETE /v1/me/auth-methods/{provider}
1272
+ */
1273
+ unlinkAuthMethod(provider: string, body: UnlinkAuthMethodRequest, token: string): Promise<UnlinkAuthMethodResponse>;
760
1274
  /**
761
1275
  * Export user data
762
- * GET /v1/auth/me/export
1276
+ * GET /v1/me/export
763
1277
  */
764
1278
  exportMyData(token: string): Promise<Record<string, unknown>>;
765
1279
  /**
766
1280
  * MFA challenge
767
- * POST /v1/auth/mfa/challenge
1281
+ * POST /v1/mfa/challenge
768
1282
  */
769
1283
  challengeMFA(body: ChallengeMFARequest): Promise<ChallengeResponse>;
770
1284
  /**
771
1285
  * Enroll in MFA
772
- * POST /v1/auth/mfa/enroll
1286
+ * POST /v1/mfa/enroll
773
1287
  */
774
1288
  enrollMFA(body: EnrollMFARequest, token: string): Promise<EnrollResponse>;
775
1289
  /**
776
1290
  * Disable MFA
777
- * DELETE /v1/auth/mfa/enrollment
1291
+ * DELETE /v1/mfa/enrollment
778
1292
  */
779
1293
  disableMFA(body: DisableMFARequest, token: string): Promise<DisableResponse>;
780
1294
  /**
781
1295
  * Regenerate MFA recovery codes
782
- * POST /v1/auth/mfa/recovery/regenerate
1296
+ * POST /v1/mfa/recovery/regenerate
783
1297
  */
784
1298
  regenerateMFARecoveryCodes(body: RegenerateMFARecoveryCodesRequest, token: string): Promise<RecoveryRegenerateResponse>;
785
1299
  /**
786
1300
  * Verify MFA recovery code
787
- * POST /v1/auth/mfa/recovery/verify
1301
+ * POST /v1/mfa/recovery/verify
788
1302
  */
789
1303
  verifyRecoveryCode(body: VerifyRecoveryCodeRequest): Promise<RecoveryVerifyResponse>;
790
1304
  /**
791
1305
  * Send SMS verification code
792
- * POST /v1/auth/mfa/sms/send
1306
+ * POST /v1/mfa/sms/send
793
1307
  */
794
1308
  sendSMSCode(body: SendSMSCodeRequest, token: string): Promise<SMSSendResponse>;
795
1309
  /**
796
1310
  * Verify SMS code
797
- * POST /v1/auth/mfa/sms/verify
1311
+ * POST /v1/mfa/sms/verify
798
1312
  */
799
1313
  verifySMSCode(body: VerifySMSCodeRequest, token: string): Promise<SMSVerifyResponse>;
800
1314
  /**
801
1315
  * Verify MFA code
802
- * POST /v1/auth/mfa/verify
1316
+ * POST /v1/mfa/verify
803
1317
  */
804
1318
  verifyMFA(body: VerifyMFARequest): Promise<VerifyMFAResponse>;
805
1319
  /**
806
1320
  * List organizations
807
- * GET /v1/auth/orgs
1321
+ * GET /v1/orgs
808
1322
  */
809
1323
  listOrganizations(token: string): Promise<OrgListResponse>;
810
1324
  /**
811
1325
  * Create organization
812
- * POST /v1/auth/orgs
1326
+ * POST /v1/orgs
813
1327
  */
814
1328
  createOrganization(body: CreateOrganizationRequest, token: string): Promise<Organization>;
815
1329
  /**
816
1330
  * Check slug availability
817
- * GET /v1/auth/orgs/check-slug
1331
+ * GET /v1/orgs/check-slug
818
1332
  */
819
1333
  checkOrgSlug(token: string): Promise<SlugAvailableResponse>;
820
1334
  /**
821
1335
  * Accept invitation
822
- * POST /v1/auth/orgs/invitations/accept
1336
+ * POST /v1/orgs/invitations/accept
823
1337
  */
824
1338
  acceptInvitation(body: AcceptInvitationRequest, token: string): Promise<Member>;
825
1339
  /**
826
1340
  * Decline invitation
827
- * POST /v1/auth/orgs/invitations/decline
1341
+ * POST /v1/orgs/invitations/decline
828
1342
  */
829
1343
  declineInvitation(body: DeclineInvitationRequest, token: string): Promise<StatusResponse>;
830
1344
  /**
831
1345
  * Get organization
832
- * GET /v1/auth/orgs/{orgId}
1346
+ * GET /v1/orgs/{orgId}
833
1347
  */
834
1348
  getOrganization(orgId: string, token: string): Promise<Organization>;
835
1349
  /**
836
1350
  * Update organization
837
- * PATCH /v1/auth/orgs/{orgId}
1351
+ * PATCH /v1/orgs/{orgId}
838
1352
  */
839
1353
  updateOrganization(orgId: string, body: UpdateOrganizationRequest, token: string): Promise<Organization>;
840
1354
  /**
841
1355
  * Delete organization
842
- * DELETE /v1/auth/orgs/{orgId}
1356
+ * DELETE /v1/orgs/{orgId}
843
1357
  */
844
1358
  deleteOrganization(orgId: string, body: DeleteOrganizationRequest, token: string): Promise<StatusResponse>;
845
1359
  /**
846
1360
  * List invitations
847
- * GET /v1/auth/orgs/{orgId}/invitations
1361
+ * GET /v1/orgs/{orgId}/invitations
848
1362
  */
849
1363
  listInvitations(orgId: string, token: string): Promise<InvitationListResponse>;
850
1364
  /**
851
1365
  * Create invitation
852
- * POST /v1/auth/orgs/{orgId}/invitations
1366
+ * POST /v1/orgs/{orgId}/invitations
853
1367
  */
854
1368
  createInvitation(orgId: string, body: CreateInvitationRequest, token: string): Promise<Invitation>;
855
1369
  /**
856
1370
  * List members
857
- * GET /v1/auth/orgs/{orgId}/members
1371
+ * GET /v1/orgs/{orgId}/members
858
1372
  */
859
1373
  listMembers(orgId: string, token: string): Promise<MemberListResponse>;
860
1374
  /**
861
1375
  * Add member
862
- * POST /v1/auth/orgs/{orgId}/members
1376
+ * POST /v1/orgs/{orgId}/members
863
1377
  */
864
1378
  addMember(orgId: string, body: AddMemberRequest, token: string): Promise<Member>;
865
1379
  /**
866
1380
  * Update member role
867
- * PATCH /v1/auth/orgs/{orgId}/members/{memberId}
1381
+ * PATCH /v1/orgs/{orgId}/members/{memberId}
868
1382
  */
869
1383
  updateMember(orgId: string, memberId: string, body: UpdateMemberRequest, token: string): Promise<Member>;
870
1384
  /**
871
1385
  * Remove member
872
- * DELETE /v1/auth/orgs/{orgId}/members/{memberId}
1386
+ * DELETE /v1/orgs/{orgId}/members/{memberId}
873
1387
  */
874
1388
  removeMember(orgId: string, memberId: string, body: RemoveMemberRequest, token: string): Promise<StatusResponse>;
875
1389
  /**
876
1390
  * List teams
877
- * GET /v1/auth/orgs/{orgId}/teams
1391
+ * GET /v1/orgs/{orgId}/teams
878
1392
  */
879
1393
  listTeams(orgId: string, token: string): Promise<TeamListResponse>;
880
1394
  /**
881
1395
  * Create team
882
- * POST /v1/auth/orgs/{orgId}/teams
1396
+ * POST /v1/orgs/{orgId}/teams
883
1397
  */
884
1398
  createTeam(orgId: string, body: CreateTeamRequest, token: string): Promise<Team>;
885
1399
  /**
886
1400
  * Get team
887
- * GET /v1/auth/orgs/{orgId}/teams/{teamId}
1401
+ * GET /v1/orgs/{orgId}/teams/{teamId}
888
1402
  */
889
1403
  getTeam(orgId: string, teamId: string, token: string): Promise<Team>;
890
1404
  /**
891
1405
  * Update team
892
- * PATCH /v1/auth/orgs/{orgId}/teams/{teamId}
1406
+ * PATCH /v1/orgs/{orgId}/teams/{teamId}
893
1407
  */
894
1408
  updateTeam(orgId: string, teamId: string, body: UpdateTeamRequest, token: string): Promise<Team>;
895
1409
  /**
896
1410
  * Delete team
897
- * DELETE /v1/auth/orgs/{orgId}/teams/{teamId}
1411
+ * DELETE /v1/orgs/{orgId}/teams/{teamId}
898
1412
  */
899
1413
  deleteTeam(orgId: string, teamId: string, body: DeleteTeamRequest, token: string): Promise<StatusResponse>;
900
1414
  /**
901
1415
  * List passkeys
902
- * GET /v1/auth/passkeys/
1416
+ * GET /v1/passkeys/
903
1417
  */
904
1418
  listPasskeys(token: string): Promise<ListResponse$1>;
905
1419
  /**
906
1420
  * Begin passkey login
907
- * POST /v1/auth/passkeys/login/begin
1421
+ * POST /v1/passkeys/login/begin
908
1422
  */
909
1423
  passkeyLoginBegin(body: PasskeyLoginBeginRequest): Promise<LoginBeginResponse>;
910
1424
  /**
911
1425
  * Complete passkey login
912
- * POST /v1/auth/passkeys/login/finish
1426
+ * POST /v1/passkeys/login/finish
913
1427
  */
914
1428
  passkeyLoginFinish(body: PasskeyLoginFinishRequest): Promise<LoginFinishResponse>;
915
1429
  /**
916
1430
  * Begin passkey registration
917
- * POST /v1/auth/passkeys/register/begin
1431
+ * POST /v1/passkeys/register/begin
918
1432
  */
919
1433
  passkeyRegisterBegin(body: PasskeyRegisterBeginRequest, token: string): Promise<RegisterBeginResponse>;
920
1434
  /**
921
1435
  * Complete passkey registration
922
- * POST /v1/auth/passkeys/register/finish
1436
+ * POST /v1/passkeys/register/finish
923
1437
  */
924
1438
  passkeyRegisterFinish(body: PasskeyRegisterFinishRequest, token: string): Promise<RegisterFinishResponse>;
925
1439
  /**
926
1440
  * Delete passkey
927
- * DELETE /v1/auth/passkeys/{credentialId}
1441
+ * DELETE /v1/passkeys/{credentialId}
928
1442
  */
929
1443
  deletePasskey(credentialId: string, body: DeletePasskeyRequest, token: string): Promise<DeleteResponse>;
930
1444
  /**
931
1445
  * Refresh tokens
932
- * POST /v1/auth/refresh
1446
+ * POST /v1/refresh
933
1447
  */
934
1448
  refresh(body: RefreshRequest): Promise<TokenResponse>;
935
1449
  /**
936
1450
  * Reset password
937
- * POST /v1/auth/reset-password
1451
+ * POST /v1/reset-password
938
1452
  */
939
1453
  resetPassword(body: ResetPasswordRequest): Promise<StatusResponse>;
940
1454
  /**
941
1455
  * List roles
942
- * GET /v1/auth/roles
1456
+ * GET /v1/roles
943
1457
  */
944
- listRoles(token: string): Promise<RoleListResponse>;
1458
+ authsomeListRoles(token: string): Promise<RoleListResponse>;
945
1459
  /**
946
1460
  * Create role
947
- * POST /v1/auth/roles
1461
+ * POST /v1/roles
948
1462
  */
949
- createRole(body: CreateRoleRequest, token: string): Promise<Role>;
1463
+ authsomeCreateRole(body: AuthsomeCreateRoleRequest, token: string): Promise<Role>;
950
1464
  /**
951
1465
  * Get role
952
- * GET /v1/auth/roles/{roleId}
1466
+ * GET /v1/roles/{roleId}
953
1467
  */
954
- getRole(roleId: string, token: string): Promise<Role>;
1468
+ authsomeGetRole(roleId: string, token: string): Promise<Role>;
955
1469
  /**
956
1470
  * Update role
957
- * PATCH /v1/auth/roles/{roleId}
1471
+ * PATCH /v1/roles/{roleId}
958
1472
  */
959
- updateRole(roleId: string, body: UpdateRoleRequest, token: string): Promise<Role>;
1473
+ authsomeUpdateRole(roleId: string, body: AuthsomeUpdateRoleRequest, token: string): Promise<Role>;
960
1474
  /**
961
1475
  * Delete role
962
- * DELETE /v1/auth/roles/{roleId}
1476
+ * DELETE /v1/roles/{roleId}
963
1477
  */
964
- deleteRole(roleId: string, body: DeleteRoleRequest, token: string): Promise<StatusResponse>;
1478
+ authsomeDeleteRole(roleId: string, token: string): Promise<StatusResponse>;
965
1479
  /**
966
1480
  * Assign role to user
967
- * POST /v1/auth/roles/{roleId}/assign
1481
+ * POST /v1/roles/{roleId}/assign
968
1482
  */
969
- assignRole(roleId: string, body: AssignRoleRequest, token: string): Promise<StatusResponse>;
1483
+ authsomeAssignRole(roleId: string, body: AuthsomeAssignRoleRequest, token: string): Promise<StatusResponse>;
970
1484
  /**
971
1485
  * List role permissions
972
- * GET /v1/auth/roles/{roleId}/permissions
1486
+ * GET /v1/roles/{roleId}/permissions
973
1487
  */
974
- listRolePermissions(roleId: string, token: string): Promise<PermissionListResponse>;
1488
+ authsomeListRolePermissions(roleId: string, token: string): Promise<PermissionListResponse>;
975
1489
  /**
976
1490
  * Add permission to role
977
- * POST /v1/auth/roles/{roleId}/permissions
1491
+ * POST /v1/roles/{roleId}/permissions
978
1492
  */
979
- addPermission(roleId: string, body: AddPermissionRequest, token: string): Promise<Permission>;
1493
+ authsomeAddPermission(roleId: string, body: AuthsomeAddPermissionRequest, token: string): Promise<Permission>;
980
1494
  /**
981
1495
  * Remove permission from role
982
- * DELETE /v1/auth/roles/{roleId}/permissions/{permissionId}
1496
+ * DELETE /v1/roles/{roleId}/permissions/{permissionId}
983
1497
  */
984
- removePermission(roleId: string, permissionId: string, body: RemovePermissionRequest, token: string): Promise<StatusResponse>;
1498
+ authsomeRemovePermission(roleId: string, permissionId: string, token: string): Promise<StatusResponse>;
985
1499
  /**
986
1500
  * Unassign role from user
987
- * POST /v1/auth/roles/{roleId}/unassign
1501
+ * POST /v1/roles/{roleId}/unassign
988
1502
  */
989
- unassignRole(roleId: string, body: UnassignRoleRequest, token: string): Promise<StatusResponse>;
1503
+ authsomeUnassignRole(roleId: string, body: AuthsomeUnassignRoleRequest, token: string): Promise<StatusResponse>;
990
1504
  /**
991
1505
  * List sessions
992
- * GET /v1/auth/sessions
1506
+ * GET /v1/sessions
993
1507
  */
994
1508
  listSessions(token: string): Promise<SessionListResponse>;
995
1509
  /**
996
1510
  * Revoke session
997
- * DELETE /v1/auth/sessions/{sessionId}
1511
+ * DELETE /v1/sessions/{sessionId}
998
1512
  */
999
1513
  revokeSession(sessionId: string, body: RevokeSessionRequest, token: string): Promise<StatusResponse>;
1000
1514
  /**
1001
1515
  * Sign in
1002
- * POST /v1/auth/signin
1516
+ * POST /v1/signin
1003
1517
  */
1004
1518
  signIn(body: SignInRequest): Promise<AuthResponse>;
1005
1519
  /**
1006
1520
  * Sign out
1007
- * POST /v1/auth/signout
1521
+ * POST /v1/signout
1008
1522
  */
1009
1523
  signOut(body: SignOutRequest, token: string): Promise<StatusResponse>;
1010
1524
  /**
1011
1525
  * Sign up
1012
- * POST /v1/auth/signup
1526
+ * POST /v1/signup
1013
1527
  */
1014
1528
  signUp(body: SignUpRequest): Promise<AuthResponse>;
1015
1529
  /**
1016
1530
  * Start OAuth flow
1017
- * POST /v1/auth/social/{provider}
1531
+ * POST /v1/social/{provider}
1018
1532
  */
1019
1533
  startOAuth(provider: string, body: StartOAuthRequest): Promise<StartResponse>;
1020
1534
  /**
1021
1535
  * OAuth callback
1022
- * GET /v1/auth/social/{provider}/callback
1536
+ * GET /v1/social/{provider}/callback
1023
1537
  */
1024
1538
  oauthCallback(provider: string): Promise<CallbackResponse>;
1025
1539
  /**
1026
1540
  * SSO SAML ACS endpoint
1027
- * POST /v1/auth/sso/{provider}/acs
1541
+ * POST /v1/sso/{provider}/acs
1028
1542
  */
1029
1543
  ssoACS(provider: string, body: SsoACSRequest): Promise<CallbackResponse>;
1030
1544
  /**
1031
1545
  * SSO callback (OIDC)
1032
- * POST /v1/auth/sso/{provider}/callback
1546
+ * POST /v1/sso/{provider}/callback
1033
1547
  */
1034
1548
  ssoCallback(provider: string, body: SsoCallbackRequest): Promise<CallbackResponse>;
1035
1549
  /**
1036
1550
  * Start SSO login flow
1037
- * POST /v1/auth/sso/{provider}/login
1551
+ * POST /v1/sso/{provider}/login
1038
1552
  */
1039
1553
  startSSOLogin(provider: string, body: StartSSOLoginRequest): Promise<LoginResponse>;
1040
1554
  /**
1041
1555
  * List user roles
1042
- * GET /v1/auth/users/{userId}/roles
1556
+ * GET /v1/users/{userId}/roles
1043
1557
  */
1044
- listUserRoles(userId: string, token: string): Promise<UserRoleListResponse>;
1558
+ authsomeListUserRoles(userId: string, token: string): Promise<UserRoleListResponse>;
1045
1559
  /**
1046
1560
  * Verify email
1047
- * POST /v1/auth/verify-email
1561
+ * POST /v1/verify-email
1048
1562
  */
1049
1563
  verifyEmail(body: VerifyEmailRequest): Promise<StatusResponse>;
1050
1564
  /**
1051
1565
  * List webhooks
1052
- * GET /v1/auth/webhooks
1566
+ * GET /v1/webhooks
1053
1567
  */
1054
1568
  listWebhooks(token: string): Promise<WebhookListResponse>;
1055
1569
  /**
1056
1570
  * Create webhook
1057
- * POST /v1/auth/webhooks
1571
+ * POST /v1/webhooks
1058
1572
  */
1059
1573
  createWebhook(body: CreateWebhookRequest, token: string): Promise<Webhook>;
1060
1574
  /**
1061
1575
  * Get webhook
1062
- * GET /v1/auth/webhooks/{webhookId}
1576
+ * GET /v1/webhooks/{webhookId}
1063
1577
  */
1064
1578
  getWebhook(webhookId: string, token: string): Promise<Webhook>;
1065
1579
  /**
1066
1580
  * Update webhook
1067
- * PATCH /v1/auth/webhooks/{webhookId}
1581
+ * PATCH /v1/webhooks/{webhookId}
1068
1582
  */
1069
1583
  updateWebhook(webhookId: string, body: UpdateWebhookRequest, token: string): Promise<Webhook>;
1070
1584
  /**
1071
1585
  * Delete webhook
1072
- * DELETE /v1/auth/webhooks/{webhookId}
1586
+ * DELETE /v1/webhooks/{webhookId}
1073
1587
  */
1074
1588
  deleteWebhook(webhookId: string, body: DeleteWebhookRequest, token: string): Promise<StatusResponse>;
1075
1589
  private request;
@@ -1291,4 +1805,4 @@ declare function prepareRequestOptions(options: Record<string, unknown>): Public
1291
1805
  */
1292
1806
  declare function serializeCredential(credential: Credential): Record<string, unknown>;
1293
1807
 
1294
- export { type APIError, type KeyListItem as APIKey, type AddMemberRequest, type AdminBanUserRequest, AuthClient, type AuthClientConfig, AuthClientError, type AuthConfig, AuthManager, type AuthResponse, type AuthState, type ChallengeMFARequest, type ChangePasswordRequest, type ClientConfig, type CreateAPIKeyRequest, type CreateInvitationRequest, type CreateOrganizationRequest as CreateOrgRequest, type CreateOrganizationRequest, type Device, type EnrollMFARequest, type EnrollResponse, type ForgotPasswordRequest, type Invitation, type KeyListItem, type ListOptions, type ListResponse, type EnrollResponse as MFAEnrollment, type SendMagicLinkRequest as MagicLinkSendRequest, type VerifyMagicLinkRequest as MagicLinkVerifyRequest, type Member, type ChallengeMFARequest as MfaChallengeRequest, type EnrollMFARequest as MfaEnrollRequest, type SendSMSCodeRequest as MfaSMSSendRequest, type VerifySMSCodeRequest as MfaSMSVerifyRequest, type VerifyMFARequest as MfaVerifyRequest, type Organization, type RefreshRequest, type ResetPasswordRequest, type SSOConnectionConfig, type SendMagicLinkRequest, type SendSMSCodeRequest, type Session, type SignInRequest, type SignUpRequest, type SocialProviderConfig, type SsoACSRequest, type SsoCallbackRequest, type TokenResponse, type TokenStorage, type UpdateMeRequest, type UpdateOrganizationRequest as UpdateOrgRequest, type UpdateOrganizationRequest, type User, type VerifyEmailRequest, type VerifyMFARequest, type VerifyMagicLinkRequest, type VerifyRecoveryCodeRequest, type VerifySMSCodeRequest, base64urlToBuffer, bufferToBase64url, prepareCreationOptions, prepareRequestOptions, serializeCredential };
1808
+ export { type APIError, type KeyListItem as APIKey, type AddMemberRequest, type AdminBanUserRequest, AuthClient, type AuthClientConfig, AuthClientError, type AuthConfig, AuthManager, type AuthResponse, type AuthState, type ChallengeMFARequest, type ChangePasswordRequest, type ClientConfig, type CreateAPIKeyRequest, type CreateInvitationRequest, type CreateOrganizationRequest as CreateOrgRequest, type CreateOrganizationRequest, type Device, type EnrollMFARequest, type EnrollResponse, type ForgotPasswordRequest, type Invitation, type KeyListItem, type ListOptions, type ListResponse, type EnrollResponse as MFAEnrollment, type SendMagicLinkRequest as MagicLinkSendRequest, type VerifyMagicLinkRequest as MagicLinkVerifyRequest, type Member, type ChallengeMFARequest as MfaChallengeRequest, type EnrollMFARequest as MfaEnrollRequest, type SendSMSCodeRequest as MfaSMSSendRequest, type VerifySMSCodeRequest as MfaSMSVerifyRequest, type VerifyMFARequest as MfaVerifyRequest, type Organization, type RefreshRequest, type ResetPasswordRequest, type SSOConnectionConfig, type SendMagicLinkRequest, type SendSMSCodeRequest, type Session, type SignInRequest, type SignUpRequest, type SignupFieldConfig, type SignupFieldOption, type SignupFieldValidation, type SocialProviderConfig, type SsoACSRequest, type SsoCallbackRequest, type TokenResponse, type TokenStorage, type UpdateMeRequest, type UpdateOrganizationRequest as UpdateOrgRequest, type UpdateOrganizationRequest, type User, type VerifyEmailRequest, type VerifyMFARequest, type VerifyMagicLinkRequest, type VerifyRecoveryCodeRequest, type VerifySMSCodeRequest, base64urlToBuffer, bufferToBase64url, prepareCreationOptions, prepareRequestOptions, serializeCredential };