@djangocfg/api 2.1.57 → 2.1.59
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/README.md +125 -9
- package/dist/auth.cjs +1865 -402
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +352 -76
- package/dist/auth.d.ts +352 -76
- package/dist/auth.mjs +1867 -404
- package/dist/auth.mjs.map +1 -1
- package/dist/clients.cjs +1637 -137
- package/dist/clients.cjs.map +1 -1
- package/dist/clients.d.cts +1394 -282
- package/dist/clients.d.ts +1394 -282
- package/dist/clients.mjs +1637 -137
- package/dist/clients.mjs.map +1 -1
- package/dist/hooks.cjs +24 -11
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.d.cts +88 -21
- package/dist/hooks.d.ts +88 -21
- package/dist/hooks.mjs +24 -11
- package/dist/hooks.mjs.map +1 -1
- package/dist/index.cjs +38 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +94 -21
- package/dist/index.d.ts +94 -21
- package/dist/index.mjs +38 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/auth/context/AccountsContext.tsx +8 -1
- package/src/auth/context/AuthContext.tsx +31 -8
- package/src/auth/context/types.ts +8 -1
- package/src/auth/hooks/index.ts +29 -5
- package/src/auth/hooks/useAuthForm.ts +292 -226
- package/src/auth/hooks/useAuthFormState.ts +60 -0
- package/src/auth/hooks/useAuthValidation.ts +77 -0
- package/src/auth/hooks/useGithubAuth.ts +26 -5
- package/src/auth/hooks/useTwoFactor.ts +239 -0
- package/src/auth/hooks/useTwoFactorSetup.ts +213 -0
- package/src/auth/index.ts +3 -0
- package/src/auth/types/form.ts +194 -0
- package/src/auth/types/index.ts +28 -0
- package/src/clients.ts +10 -0
- package/src/generated/cfg_accounts/_utils/schemas/OAuthTokenResponse.schema.ts +26 -3
- package/src/generated/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts +26 -3
- package/src/generated/cfg_accounts/accounts/client.ts +4 -1
- package/src/generated/cfg_accounts/accounts/models.ts +15 -6
- package/src/generated/cfg_accounts/accounts__oauth/models.ts +16 -7
- package/src/generated/cfg_accounts/client.ts +5 -2
- package/src/generated/cfg_accounts/http.ts +8 -2
- package/src/generated/cfg_accounts/schema.json +47 -19
- package/src/generated/cfg_centrifugo/client.ts +5 -2
- package/src/generated/cfg_centrifugo/http.ts +8 -2
- package/src/generated/cfg_totp/CLAUDE.md +12 -12
- package/src/generated/cfg_totp/_utils/fetchers/index.ts +3 -3
- package/src/generated/cfg_totp/_utils/fetchers/{totp__2fa_management.ts → totp__totp_management.ts} +3 -3
- package/src/generated/cfg_totp/_utils/fetchers/{totp__2fa_setup.ts → totp__totp_setup.ts} +3 -3
- package/src/generated/cfg_totp/_utils/fetchers/{totp__2fa_verification.ts → totp__totp_verification.ts} +3 -3
- package/src/generated/cfg_totp/_utils/hooks/index.ts +3 -3
- package/src/generated/cfg_totp/_utils/hooks/{totp__2fa_management.ts → totp__totp_management.ts} +2 -2
- package/src/generated/cfg_totp/_utils/hooks/{totp__2fa_setup.ts → totp__totp_setup.ts} +2 -2
- package/src/generated/cfg_totp/_utils/hooks/{totp__2fa_verification.ts → totp__totp_verification.ts} +2 -2
- package/src/generated/cfg_totp/_utils/schemas/DeviceList.schema.ts +1 -1
- package/src/generated/cfg_totp/client.ts +14 -11
- package/src/generated/cfg_totp/http.ts +8 -2
- package/src/generated/cfg_totp/index.ts +16 -16
- package/src/generated/cfg_totp/schema.json +8 -7
- package/src/generated/cfg_totp/{totp__2fa_management → totp__totp_management}/client.ts +2 -2
- package/src/generated/cfg_totp/{totp__2fa_management → totp__totp_management}/models.ts +1 -1
- package/src/generated/cfg_totp/{totp__2fa_setup → totp__totp_setup}/client.ts +4 -4
- package/src/generated/cfg_totp/{totp__2fa_verification → totp__totp_verification}/client.ts +2 -2
- package/src/generated/cfg_webpush/client.ts +5 -2
- package/src/generated/cfg_webpush/http.ts +8 -2
- /package/src/generated/cfg_totp/{totp__2fa_management → totp__totp_management}/index.ts +0 -0
- /package/src/generated/cfg_totp/{totp__2fa_setup → totp__totp_setup}/index.ts +0 -0
- /package/src/generated/cfg_totp/{totp__2fa_setup → totp__totp_setup}/models.ts +0 -0
- /package/src/generated/cfg_totp/{totp__2fa_verification → totp__totp_verification}/index.ts +0 -0
- /package/src/generated/cfg_totp/{totp__2fa_verification → totp__totp_verification}/models.ts +0 -0
package/dist/clients.d.cts
CHANGED
|
@@ -122,21 +122,30 @@ interface OAuthCallbackRequestRequest$1 {
|
|
|
122
122
|
redirect_uri?: string;
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
|
-
* Response with JWT tokens after OAuth authentication.
|
|
125
|
+
* Response with JWT tokens after OAuth authentication. When 2FA is required: -
|
|
126
|
+
* requires_2fa: True - session_id: UUID of 2FA verification session -
|
|
127
|
+
* access/refresh/user: null When 2FA is not required: - requires_2fa: False -
|
|
128
|
+
* session_id: null - access/refresh/user: populated
|
|
126
129
|
*
|
|
127
130
|
* Response model (includes read-only fields).
|
|
128
131
|
*/
|
|
129
132
|
interface OAuthTokenResponse$1 {
|
|
130
|
-
/**
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
|
|
133
|
+
/** True if 2FA verification is required */
|
|
134
|
+
requires_2fa?: boolean;
|
|
135
|
+
/** 2FA session ID (only when requires_2fa=True) */
|
|
136
|
+
session_id?: string | null;
|
|
137
|
+
/** JWT access token (null when requires_2fa=True) */
|
|
138
|
+
access?: string | null;
|
|
139
|
+
/** JWT refresh token (null when requires_2fa=True) */
|
|
140
|
+
refresh?: string | null;
|
|
141
|
+
/** Authenticated user info (null when requires_2fa=True) */
|
|
142
|
+
user?: Record<string, any> | null;
|
|
136
143
|
/** True if a new user was created during this OAuth flow */
|
|
137
144
|
is_new_user: boolean;
|
|
138
145
|
/** True if a new OAuth connection was created */
|
|
139
146
|
is_new_connection: boolean;
|
|
147
|
+
/** True if user should be prompted to enable 2FA */
|
|
148
|
+
should_prompt_2fa?: boolean;
|
|
140
149
|
}
|
|
141
150
|
/**
|
|
142
151
|
* Response with available OAuth providers.
|
|
@@ -348,16 +357,25 @@ interface OTPVerifyRequest$1 {
|
|
|
348
357
|
source_url?: string;
|
|
349
358
|
}
|
|
350
359
|
/**
|
|
351
|
-
* OTP verification response.
|
|
360
|
+
* OTP verification response. When 2FA is required: - requires_2fa: True -
|
|
361
|
+
* session_id: UUID of 2FA verification session - refresh/access/user: null
|
|
362
|
+
* When 2FA is not required: - requires_2fa: False - session_id: null -
|
|
363
|
+
* refresh/access/user: populated
|
|
352
364
|
*
|
|
353
365
|
* Response model (includes read-only fields).
|
|
354
366
|
*/
|
|
355
367
|
interface OTPVerifyResponse$1 {
|
|
356
|
-
/**
|
|
357
|
-
|
|
358
|
-
/**
|
|
359
|
-
|
|
360
|
-
|
|
368
|
+
/** Whether 2FA verification is required */
|
|
369
|
+
requires_2fa?: boolean;
|
|
370
|
+
/** 2FA session ID (if requires_2fa is True) */
|
|
371
|
+
session_id?: string | null;
|
|
372
|
+
/** JWT refresh token (if requires_2fa is False) */
|
|
373
|
+
refresh?: string | null;
|
|
374
|
+
/** JWT access token (if requires_2fa is False) */
|
|
375
|
+
access?: string | null;
|
|
376
|
+
user?: User$1 | null;
|
|
377
|
+
/** Whether user should be prompted to enable 2FA */
|
|
378
|
+
should_prompt_2fa?: boolean;
|
|
361
379
|
}
|
|
362
380
|
/**
|
|
363
381
|
* Serializer for user details.
|
|
@@ -416,7 +434,10 @@ declare class Accounts {
|
|
|
416
434
|
*/
|
|
417
435
|
otpRequestCreate(data: OTPRequestRequest$1): Promise<OTPRequestResponse$1>;
|
|
418
436
|
/**
|
|
419
|
-
* Verify OTP code and return JWT tokens.
|
|
437
|
+
* Verify OTP code and return JWT tokens or 2FA session. If user has 2FA
|
|
438
|
+
* enabled: - Returns requires_2fa=True with session_id - Client must
|
|
439
|
+
* complete 2FA verification at /cfg/totp/verify/ If user has no 2FA: -
|
|
440
|
+
* Returns JWT tokens and user data directly
|
|
420
441
|
*/
|
|
421
442
|
otpVerifyCreate(data: OTPVerifyRequest$1): Promise<OTPVerifyResponse$1>;
|
|
422
443
|
}
|
|
@@ -432,7 +453,7 @@ declare class Accounts {
|
|
|
432
453
|
/**
|
|
433
454
|
* Logger configuration
|
|
434
455
|
*/
|
|
435
|
-
interface LoggerConfig$
|
|
456
|
+
interface LoggerConfig$3 {
|
|
436
457
|
/** Enable logging */
|
|
437
458
|
enabled: boolean;
|
|
438
459
|
/** Log requests */
|
|
@@ -458,7 +479,7 @@ interface LoggerConfig$2 {
|
|
|
458
479
|
/**
|
|
459
480
|
* Information about a failed retry attempt.
|
|
460
481
|
*/
|
|
461
|
-
interface FailedAttemptInfo$
|
|
482
|
+
interface FailedAttemptInfo$3 {
|
|
462
483
|
/** The error that caused the failure */
|
|
463
484
|
error: Error;
|
|
464
485
|
/** The attempt number (1-indexed) */
|
|
@@ -471,7 +492,7 @@ interface FailedAttemptInfo$2 {
|
|
|
471
492
|
*
|
|
472
493
|
* Uses exponential backoff with jitter by default to avoid thundering herd.
|
|
473
494
|
*/
|
|
474
|
-
interface RetryConfig$
|
|
495
|
+
interface RetryConfig$3 {
|
|
475
496
|
/**
|
|
476
497
|
* Maximum number of retry attempts.
|
|
477
498
|
* @default 3
|
|
@@ -501,7 +522,7 @@ interface RetryConfig$2 {
|
|
|
501
522
|
/**
|
|
502
523
|
* Callback called on each failed attempt.
|
|
503
524
|
*/
|
|
504
|
-
onFailedAttempt?: (info: FailedAttemptInfo$
|
|
525
|
+
onFailedAttempt?: (info: FailedAttemptInfo$3) => void;
|
|
505
526
|
}
|
|
506
527
|
|
|
507
528
|
/**
|
|
@@ -516,7 +537,7 @@ interface RetryConfig$2 {
|
|
|
516
537
|
/**
|
|
517
538
|
* Storage adapter interface for cross-platform token storage.
|
|
518
539
|
*/
|
|
519
|
-
interface StorageAdapter$
|
|
540
|
+
interface StorageAdapter$3 {
|
|
520
541
|
getItem(key: string): string | null;
|
|
521
542
|
setItem(key: string, value: string): void;
|
|
522
543
|
removeItem(key: string): void;
|
|
@@ -686,17 +707,40 @@ type OAuthProvidersResponse = z.infer<typeof OAuthProvidersResponseSchema>;
|
|
|
686
707
|
*
|
|
687
708
|
* This schema provides runtime validation and type inference.
|
|
688
709
|
* * Response with JWT tokens after OAuth authentication.
|
|
710
|
+
|
|
711
|
+
When 2FA is required:
|
|
712
|
+
- requires_2fa: True
|
|
713
|
+
- session_id: UUID of 2FA verification session
|
|
714
|
+
- access/refresh/user: null
|
|
715
|
+
|
|
716
|
+
When 2FA is not required:
|
|
717
|
+
- requires_2fa: False
|
|
718
|
+
- session_id: null
|
|
719
|
+
- access/refresh/user: populated
|
|
689
720
|
* */
|
|
690
721
|
|
|
691
722
|
/**
|
|
692
723
|
* Response with JWT tokens after OAuth authentication.
|
|
724
|
+
|
|
725
|
+
When 2FA is required:
|
|
726
|
+
- requires_2fa: True
|
|
727
|
+
- session_id: UUID of 2FA verification session
|
|
728
|
+
- access/refresh/user: null
|
|
729
|
+
|
|
730
|
+
When 2FA is not required:
|
|
731
|
+
- requires_2fa: False
|
|
732
|
+
- session_id: null
|
|
733
|
+
- access/refresh/user: populated
|
|
693
734
|
*/
|
|
694
735
|
declare const OAuthTokenResponseSchema: z.ZodObject<{
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
736
|
+
requires_2fa: z.ZodOptional<z.ZodBoolean>;
|
|
737
|
+
session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
738
|
+
access: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
739
|
+
refresh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
740
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
698
741
|
is_new_user: z.ZodBoolean;
|
|
699
742
|
is_new_connection: z.ZodBoolean;
|
|
743
|
+
should_prompt_2fa: z.ZodOptional<z.ZodBoolean>;
|
|
700
744
|
}, z.core.$strip>;
|
|
701
745
|
/**
|
|
702
746
|
* Infer TypeScript type from Zod schema
|
|
@@ -785,15 +829,37 @@ type OTPVerifyRequest = z.infer<typeof OTPVerifyRequestSchema>;
|
|
|
785
829
|
*
|
|
786
830
|
* This schema provides runtime validation and type inference.
|
|
787
831
|
* * OTP verification response.
|
|
832
|
+
|
|
833
|
+
When 2FA is required:
|
|
834
|
+
- requires_2fa: True
|
|
835
|
+
- session_id: UUID of 2FA verification session
|
|
836
|
+
- refresh/access/user: null
|
|
837
|
+
|
|
838
|
+
When 2FA is not required:
|
|
839
|
+
- requires_2fa: False
|
|
840
|
+
- session_id: null
|
|
841
|
+
- refresh/access/user: populated
|
|
788
842
|
* */
|
|
789
843
|
|
|
790
844
|
/**
|
|
791
845
|
* OTP verification response.
|
|
846
|
+
|
|
847
|
+
When 2FA is required:
|
|
848
|
+
- requires_2fa: True
|
|
849
|
+
- session_id: UUID of 2FA verification session
|
|
850
|
+
- refresh/access/user: null
|
|
851
|
+
|
|
852
|
+
When 2FA is not required:
|
|
853
|
+
- requires_2fa: False
|
|
854
|
+
- session_id: null
|
|
855
|
+
- refresh/access/user: populated
|
|
792
856
|
*/
|
|
793
857
|
declare const OTPVerifyResponseSchema: z.ZodObject<{
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
858
|
+
requires_2fa: z.ZodOptional<z.ZodBoolean>;
|
|
859
|
+
session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
860
|
+
refresh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
861
|
+
access: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
862
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
797
863
|
id: z.ZodInt;
|
|
798
864
|
email: z.ZodEmail;
|
|
799
865
|
first_name: z.ZodOptional<z.ZodString>;
|
|
@@ -816,7 +882,8 @@ declare const OTPVerifyResponseSchema: z.ZodObject<{
|
|
|
816
882
|
expires_at: z.ZodISODateTime;
|
|
817
883
|
channels: z.ZodArray<z.ZodString>;
|
|
818
884
|
}, z.core.$strip>>;
|
|
819
|
-
}, z.core.$strip
|
|
885
|
+
}, z.core.$strip>>>;
|
|
886
|
+
should_prompt_2fa: z.ZodOptional<z.ZodBoolean>;
|
|
820
887
|
}, z.core.$strip>;
|
|
821
888
|
/**
|
|
822
889
|
* Infer TypeScript type from Zod schema
|
|
@@ -1071,15 +1138,15 @@ declare function partialUpdateAccountsProfileUpdatePartialUpdate(data?: PatchedU
|
|
|
1071
1138
|
* ```
|
|
1072
1139
|
*/
|
|
1073
1140
|
|
|
1074
|
-
interface APIOptions$
|
|
1141
|
+
interface APIOptions$3 {
|
|
1075
1142
|
/** Custom storage adapter (defaults to LocalStorageAdapter) */
|
|
1076
|
-
storage?: StorageAdapter$
|
|
1143
|
+
storage?: StorageAdapter$3;
|
|
1077
1144
|
/** Retry configuration for failed requests */
|
|
1078
|
-
retryConfig?: RetryConfig$
|
|
1145
|
+
retryConfig?: RetryConfig$3;
|
|
1079
1146
|
/** Logger configuration */
|
|
1080
|
-
loggerConfig?: Partial<LoggerConfig$
|
|
1147
|
+
loggerConfig?: Partial<LoggerConfig$3>;
|
|
1081
1148
|
}
|
|
1082
|
-
declare class API$
|
|
1149
|
+
declare class API$3 {
|
|
1083
1150
|
private baseUrl;
|
|
1084
1151
|
private _client;
|
|
1085
1152
|
private _token;
|
|
@@ -1090,7 +1157,7 @@ declare class API$2 {
|
|
|
1090
1157
|
oauth: Oauth;
|
|
1091
1158
|
user_profile: UserProfile;
|
|
1092
1159
|
accounts: Accounts;
|
|
1093
|
-
constructor(baseUrl: string, options?: APIOptions$
|
|
1160
|
+
constructor(baseUrl: string, options?: APIOptions$3);
|
|
1094
1161
|
private _loadTokensFromStorage;
|
|
1095
1162
|
private _reinitClients;
|
|
1096
1163
|
private _injectAuthHeader;
|
|
@@ -1730,7 +1797,7 @@ declare class CentrifugoTesting {
|
|
|
1730
1797
|
/**
|
|
1731
1798
|
* Logger configuration
|
|
1732
1799
|
*/
|
|
1733
|
-
interface LoggerConfig$
|
|
1800
|
+
interface LoggerConfig$2 {
|
|
1734
1801
|
/** Enable logging */
|
|
1735
1802
|
enabled: boolean;
|
|
1736
1803
|
/** Log requests */
|
|
@@ -1756,7 +1823,7 @@ interface LoggerConfig$1 {
|
|
|
1756
1823
|
/**
|
|
1757
1824
|
* Information about a failed retry attempt.
|
|
1758
1825
|
*/
|
|
1759
|
-
interface FailedAttemptInfo$
|
|
1826
|
+
interface FailedAttemptInfo$2 {
|
|
1760
1827
|
/** The error that caused the failure */
|
|
1761
1828
|
error: Error;
|
|
1762
1829
|
/** The attempt number (1-indexed) */
|
|
@@ -1769,7 +1836,7 @@ interface FailedAttemptInfo$1 {
|
|
|
1769
1836
|
*
|
|
1770
1837
|
* Uses exponential backoff with jitter by default to avoid thundering herd.
|
|
1771
1838
|
*/
|
|
1772
|
-
interface RetryConfig$
|
|
1839
|
+
interface RetryConfig$2 {
|
|
1773
1840
|
/**
|
|
1774
1841
|
* Maximum number of retry attempts.
|
|
1775
1842
|
* @default 3
|
|
@@ -1799,7 +1866,7 @@ interface RetryConfig$1 {
|
|
|
1799
1866
|
/**
|
|
1800
1867
|
* Callback called on each failed attempt.
|
|
1801
1868
|
*/
|
|
1802
|
-
onFailedAttempt?: (info: FailedAttemptInfo$
|
|
1869
|
+
onFailedAttempt?: (info: FailedAttemptInfo$2) => void;
|
|
1803
1870
|
}
|
|
1804
1871
|
|
|
1805
1872
|
/**
|
|
@@ -1814,7 +1881,7 @@ interface RetryConfig$1 {
|
|
|
1814
1881
|
/**
|
|
1815
1882
|
* Storage adapter interface for cross-platform token storage.
|
|
1816
1883
|
*/
|
|
1817
|
-
interface StorageAdapter$
|
|
1884
|
+
interface StorageAdapter$2 {
|
|
1818
1885
|
getItem(key: string): string | null;
|
|
1819
1886
|
setItem(key: string, value: string): void;
|
|
1820
1887
|
removeItem(key: string): void;
|
|
@@ -2685,78 +2752,78 @@ type TimelineResponse = z.infer<typeof TimelineResponseSchema>;
|
|
|
2685
2752
|
* ```
|
|
2686
2753
|
*/
|
|
2687
2754
|
|
|
2688
|
-
type index$
|
|
2689
|
-
declare const index$
|
|
2690
|
-
type index$
|
|
2691
|
-
declare const index$
|
|
2692
|
-
type index$
|
|
2693
|
-
declare const index$
|
|
2694
|
-
type index$
|
|
2695
|
-
declare const index$
|
|
2696
|
-
type index$
|
|
2697
|
-
declare const index$
|
|
2698
|
-
type index$
|
|
2699
|
-
declare const index$
|
|
2700
|
-
type index$
|
|
2701
|
-
declare const index$
|
|
2702
|
-
type index$
|
|
2703
|
-
declare const index$
|
|
2704
|
-
type index$
|
|
2705
|
-
declare const index$
|
|
2706
|
-
type index$
|
|
2707
|
-
declare const index$
|
|
2708
|
-
type index$
|
|
2709
|
-
declare const index$
|
|
2710
|
-
type index$
|
|
2711
|
-
declare const index$
|
|
2712
|
-
type index$
|
|
2713
|
-
declare const index$
|
|
2714
|
-
type index$
|
|
2715
|
-
declare const index$
|
|
2716
|
-
type index$
|
|
2717
|
-
declare const index$
|
|
2718
|
-
type index$
|
|
2719
|
-
declare const index$
|
|
2720
|
-
type index$
|
|
2721
|
-
declare const index$
|
|
2722
|
-
type index$
|
|
2723
|
-
declare const index$
|
|
2724
|
-
type index$
|
|
2725
|
-
declare const index$
|
|
2726
|
-
type index$
|
|
2727
|
-
declare const index$
|
|
2728
|
-
type index$
|
|
2729
|
-
declare const index$
|
|
2730
|
-
type index$
|
|
2731
|
-
declare const index$
|
|
2732
|
-
type index$
|
|
2733
|
-
declare const index$
|
|
2734
|
-
type index$
|
|
2735
|
-
declare const index$
|
|
2736
|
-
type index$
|
|
2737
|
-
declare const index$
|
|
2738
|
-
type index$
|
|
2739
|
-
declare const index$
|
|
2740
|
-
type index$
|
|
2741
|
-
declare const index$
|
|
2742
|
-
type index$
|
|
2743
|
-
declare const index$
|
|
2744
|
-
type index$
|
|
2745
|
-
declare const index$
|
|
2746
|
-
type index$
|
|
2747
|
-
declare const index$
|
|
2748
|
-
type index$
|
|
2749
|
-
declare const index$
|
|
2750
|
-
type index$
|
|
2751
|
-
declare const index$
|
|
2752
|
-
type index$
|
|
2753
|
-
declare const index$
|
|
2754
|
-
type index$
|
|
2755
|
-
declare const index$
|
|
2756
|
-
type index$
|
|
2757
|
-
declare const index$
|
|
2758
|
-
declare namespace index$
|
|
2759
|
-
export { type index$
|
|
2755
|
+
type index$8_CentrifugoChannelInfo = CentrifugoChannelInfo;
|
|
2756
|
+
declare const index$8_CentrifugoChannelInfoSchema: typeof CentrifugoChannelInfoSchema;
|
|
2757
|
+
type index$8_CentrifugoChannelsRequestRequest = CentrifugoChannelsRequestRequest;
|
|
2758
|
+
declare const index$8_CentrifugoChannelsRequestRequestSchema: typeof CentrifugoChannelsRequestRequestSchema;
|
|
2759
|
+
type index$8_CentrifugoChannelsResponse = CentrifugoChannelsResponse;
|
|
2760
|
+
declare const index$8_CentrifugoChannelsResponseSchema: typeof CentrifugoChannelsResponseSchema;
|
|
2761
|
+
type index$8_CentrifugoChannelsResult = CentrifugoChannelsResult;
|
|
2762
|
+
declare const index$8_CentrifugoChannelsResultSchema: typeof CentrifugoChannelsResultSchema;
|
|
2763
|
+
type index$8_CentrifugoClientInfo = CentrifugoClientInfo;
|
|
2764
|
+
declare const index$8_CentrifugoClientInfoSchema: typeof CentrifugoClientInfoSchema;
|
|
2765
|
+
type index$8_CentrifugoError = CentrifugoError;
|
|
2766
|
+
declare const index$8_CentrifugoErrorSchema: typeof CentrifugoErrorSchema;
|
|
2767
|
+
type index$8_CentrifugoHealthCheck = CentrifugoHealthCheck;
|
|
2768
|
+
declare const index$8_CentrifugoHealthCheckSchema: typeof CentrifugoHealthCheckSchema;
|
|
2769
|
+
type index$8_CentrifugoHistoryRequestRequest = CentrifugoHistoryRequestRequest;
|
|
2770
|
+
declare const index$8_CentrifugoHistoryRequestRequestSchema: typeof CentrifugoHistoryRequestRequestSchema;
|
|
2771
|
+
type index$8_CentrifugoHistoryResponse = CentrifugoHistoryResponse;
|
|
2772
|
+
declare const index$8_CentrifugoHistoryResponseSchema: typeof CentrifugoHistoryResponseSchema;
|
|
2773
|
+
type index$8_CentrifugoHistoryResult = CentrifugoHistoryResult;
|
|
2774
|
+
declare const index$8_CentrifugoHistoryResultSchema: typeof CentrifugoHistoryResultSchema;
|
|
2775
|
+
type index$8_CentrifugoInfoResponse = CentrifugoInfoResponse;
|
|
2776
|
+
declare const index$8_CentrifugoInfoResponseSchema: typeof CentrifugoInfoResponseSchema;
|
|
2777
|
+
type index$8_CentrifugoInfoResult = CentrifugoInfoResult;
|
|
2778
|
+
declare const index$8_CentrifugoInfoResultSchema: typeof CentrifugoInfoResultSchema;
|
|
2779
|
+
type index$8_CentrifugoMetrics = CentrifugoMetrics;
|
|
2780
|
+
declare const index$8_CentrifugoMetricsSchema: typeof CentrifugoMetricsSchema;
|
|
2781
|
+
type index$8_CentrifugoNodeInfo = CentrifugoNodeInfo;
|
|
2782
|
+
declare const index$8_CentrifugoNodeInfoSchema: typeof CentrifugoNodeInfoSchema;
|
|
2783
|
+
type index$8_CentrifugoOverviewStats = CentrifugoOverviewStats;
|
|
2784
|
+
declare const index$8_CentrifugoOverviewStatsSchema: typeof CentrifugoOverviewStatsSchema;
|
|
2785
|
+
type index$8_CentrifugoPresenceRequestRequest = CentrifugoPresenceRequestRequest;
|
|
2786
|
+
declare const index$8_CentrifugoPresenceRequestRequestSchema: typeof CentrifugoPresenceRequestRequestSchema;
|
|
2787
|
+
type index$8_CentrifugoPresenceResponse = CentrifugoPresenceResponse;
|
|
2788
|
+
declare const index$8_CentrifugoPresenceResponseSchema: typeof CentrifugoPresenceResponseSchema;
|
|
2789
|
+
type index$8_CentrifugoPresenceResult = CentrifugoPresenceResult;
|
|
2790
|
+
declare const index$8_CentrifugoPresenceResultSchema: typeof CentrifugoPresenceResultSchema;
|
|
2791
|
+
type index$8_CentrifugoPresenceStatsRequestRequest = CentrifugoPresenceStatsRequestRequest;
|
|
2792
|
+
declare const index$8_CentrifugoPresenceStatsRequestRequestSchema: typeof CentrifugoPresenceStatsRequestRequestSchema;
|
|
2793
|
+
type index$8_CentrifugoPresenceStatsResponse = CentrifugoPresenceStatsResponse;
|
|
2794
|
+
declare const index$8_CentrifugoPresenceStatsResponseSchema: typeof CentrifugoPresenceStatsResponseSchema;
|
|
2795
|
+
type index$8_CentrifugoPresenceStatsResult = CentrifugoPresenceStatsResult;
|
|
2796
|
+
declare const index$8_CentrifugoPresenceStatsResultSchema: typeof CentrifugoPresenceStatsResultSchema;
|
|
2797
|
+
type index$8_CentrifugoProcess = CentrifugoProcess;
|
|
2798
|
+
declare const index$8_CentrifugoProcessSchema: typeof CentrifugoProcessSchema;
|
|
2799
|
+
type index$8_CentrifugoPublication = CentrifugoPublication;
|
|
2800
|
+
declare const index$8_CentrifugoPublicationSchema: typeof CentrifugoPublicationSchema;
|
|
2801
|
+
type index$8_CentrifugoStreamPosition = CentrifugoStreamPosition;
|
|
2802
|
+
declare const index$8_CentrifugoStreamPositionSchema: typeof CentrifugoStreamPositionSchema;
|
|
2803
|
+
type index$8_ChannelList = ChannelList;
|
|
2804
|
+
declare const index$8_ChannelListSchema: typeof ChannelListSchema;
|
|
2805
|
+
type index$8_ChannelStats = ChannelStats;
|
|
2806
|
+
declare const index$8_ChannelStatsSchema: typeof ChannelStatsSchema;
|
|
2807
|
+
type index$8_ConnectionTokenResponse = ConnectionTokenResponse;
|
|
2808
|
+
declare const index$8_ConnectionTokenResponseSchema: typeof ConnectionTokenResponseSchema;
|
|
2809
|
+
type index$8_ManualAckRequestRequest = ManualAckRequestRequest;
|
|
2810
|
+
declare const index$8_ManualAckRequestRequestSchema: typeof ManualAckRequestRequestSchema;
|
|
2811
|
+
type index$8_ManualAckResponse = ManualAckResponse;
|
|
2812
|
+
declare const index$8_ManualAckResponseSchema: typeof ManualAckResponseSchema;
|
|
2813
|
+
type index$8_PaginatedPublishList = PaginatedPublishList;
|
|
2814
|
+
declare const index$8_PaginatedPublishListSchema: typeof PaginatedPublishListSchema;
|
|
2815
|
+
type index$8_Publish = Publish;
|
|
2816
|
+
declare const index$8_PublishSchema: typeof PublishSchema;
|
|
2817
|
+
type index$8_PublishTestRequestRequest = PublishTestRequestRequest;
|
|
2818
|
+
declare const index$8_PublishTestRequestRequestSchema: typeof PublishTestRequestRequestSchema;
|
|
2819
|
+
type index$8_PublishTestResponse = PublishTestResponse;
|
|
2820
|
+
declare const index$8_PublishTestResponseSchema: typeof PublishTestResponseSchema;
|
|
2821
|
+
type index$8_TimelineItem = TimelineItem;
|
|
2822
|
+
declare const index$8_TimelineItemSchema: typeof TimelineItemSchema;
|
|
2823
|
+
type index$8_TimelineResponse = TimelineResponse;
|
|
2824
|
+
declare const index$8_TimelineResponseSchema: typeof TimelineResponseSchema;
|
|
2825
|
+
declare namespace index$8 {
|
|
2826
|
+
export { type index$8_CentrifugoChannelInfo as CentrifugoChannelInfo, index$8_CentrifugoChannelInfoSchema as CentrifugoChannelInfoSchema, type index$8_CentrifugoChannelsRequestRequest as CentrifugoChannelsRequestRequest, index$8_CentrifugoChannelsRequestRequestSchema as CentrifugoChannelsRequestRequestSchema, type index$8_CentrifugoChannelsResponse as CentrifugoChannelsResponse, index$8_CentrifugoChannelsResponseSchema as CentrifugoChannelsResponseSchema, type index$8_CentrifugoChannelsResult as CentrifugoChannelsResult, index$8_CentrifugoChannelsResultSchema as CentrifugoChannelsResultSchema, type index$8_CentrifugoClientInfo as CentrifugoClientInfo, index$8_CentrifugoClientInfoSchema as CentrifugoClientInfoSchema, type index$8_CentrifugoError as CentrifugoError, index$8_CentrifugoErrorSchema as CentrifugoErrorSchema, type index$8_CentrifugoHealthCheck as CentrifugoHealthCheck, index$8_CentrifugoHealthCheckSchema as CentrifugoHealthCheckSchema, type index$8_CentrifugoHistoryRequestRequest as CentrifugoHistoryRequestRequest, index$8_CentrifugoHistoryRequestRequestSchema as CentrifugoHistoryRequestRequestSchema, type index$8_CentrifugoHistoryResponse as CentrifugoHistoryResponse, index$8_CentrifugoHistoryResponseSchema as CentrifugoHistoryResponseSchema, type index$8_CentrifugoHistoryResult as CentrifugoHistoryResult, index$8_CentrifugoHistoryResultSchema as CentrifugoHistoryResultSchema, type index$8_CentrifugoInfoResponse as CentrifugoInfoResponse, index$8_CentrifugoInfoResponseSchema as CentrifugoInfoResponseSchema, type index$8_CentrifugoInfoResult as CentrifugoInfoResult, index$8_CentrifugoInfoResultSchema as CentrifugoInfoResultSchema, type index$8_CentrifugoMetrics as CentrifugoMetrics, index$8_CentrifugoMetricsSchema as CentrifugoMetricsSchema, type index$8_CentrifugoNodeInfo as CentrifugoNodeInfo, index$8_CentrifugoNodeInfoSchema as CentrifugoNodeInfoSchema, type index$8_CentrifugoOverviewStats as CentrifugoOverviewStats, index$8_CentrifugoOverviewStatsSchema as CentrifugoOverviewStatsSchema, type index$8_CentrifugoPresenceRequestRequest as CentrifugoPresenceRequestRequest, index$8_CentrifugoPresenceRequestRequestSchema as CentrifugoPresenceRequestRequestSchema, type index$8_CentrifugoPresenceResponse as CentrifugoPresenceResponse, index$8_CentrifugoPresenceResponseSchema as CentrifugoPresenceResponseSchema, type index$8_CentrifugoPresenceResult as CentrifugoPresenceResult, index$8_CentrifugoPresenceResultSchema as CentrifugoPresenceResultSchema, type index$8_CentrifugoPresenceStatsRequestRequest as CentrifugoPresenceStatsRequestRequest, index$8_CentrifugoPresenceStatsRequestRequestSchema as CentrifugoPresenceStatsRequestRequestSchema, type index$8_CentrifugoPresenceStatsResponse as CentrifugoPresenceStatsResponse, index$8_CentrifugoPresenceStatsResponseSchema as CentrifugoPresenceStatsResponseSchema, type index$8_CentrifugoPresenceStatsResult as CentrifugoPresenceStatsResult, index$8_CentrifugoPresenceStatsResultSchema as CentrifugoPresenceStatsResultSchema, type index$8_CentrifugoProcess as CentrifugoProcess, index$8_CentrifugoProcessSchema as CentrifugoProcessSchema, type index$8_CentrifugoPublication as CentrifugoPublication, index$8_CentrifugoPublicationSchema as CentrifugoPublicationSchema, type index$8_CentrifugoStreamPosition as CentrifugoStreamPosition, index$8_CentrifugoStreamPositionSchema as CentrifugoStreamPositionSchema, type index$8_ChannelList as ChannelList, index$8_ChannelListSchema as ChannelListSchema, type index$8_ChannelStats as ChannelStats, index$8_ChannelStatsSchema as ChannelStatsSchema, type index$8_ConnectionTokenResponse as ConnectionTokenResponse, index$8_ConnectionTokenResponseSchema as ConnectionTokenResponseSchema, type index$8_ManualAckRequestRequest as ManualAckRequestRequest, index$8_ManualAckRequestRequestSchema as ManualAckRequestRequestSchema, type index$8_ManualAckResponse as ManualAckResponse, index$8_ManualAckResponseSchema as ManualAckResponseSchema, type index$8_PaginatedPublishList as PaginatedPublishList, index$8_PaginatedPublishListSchema as PaginatedPublishListSchema, type index$8_Publish as Publish, index$8_PublishSchema as PublishSchema, type index$8_PublishTestRequestRequest as PublishTestRequestRequest, index$8_PublishTestRequestRequestSchema as PublishTestRequestRequestSchema, type index$8_PublishTestResponse as PublishTestResponse, index$8_PublishTestResponseSchema as PublishTestResponseSchema, type index$8_TimelineItem as TimelineItem, index$8_TimelineItemSchema as TimelineItemSchema, type index$8_TimelineResponse as TimelineResponse, index$8_TimelineResponseSchema as TimelineResponseSchema };
|
|
2760
2827
|
}
|
|
2761
2828
|
|
|
2762
2829
|
/**
|
|
@@ -2907,23 +2974,23 @@ declare function createCentrifugoTestingSendAckCreate(data: ManualAckRequestRequ
|
|
|
2907
2974
|
* ```
|
|
2908
2975
|
*/
|
|
2909
2976
|
|
|
2910
|
-
declare const index$
|
|
2911
|
-
declare const index$
|
|
2912
|
-
declare const index$
|
|
2913
|
-
declare const index$
|
|
2914
|
-
declare const index$
|
|
2915
|
-
declare const index$
|
|
2916
|
-
declare const index$
|
|
2917
|
-
declare const index$
|
|
2918
|
-
declare const index$
|
|
2919
|
-
declare const index$
|
|
2920
|
-
declare const index$
|
|
2921
|
-
declare const index$
|
|
2922
|
-
declare const index$
|
|
2923
|
-
declare const index$
|
|
2924
|
-
declare const index$
|
|
2925
|
-
declare namespace index$
|
|
2926
|
-
export { index$
|
|
2977
|
+
declare const index$7_createCentrifugoServerAuthTokenCreate: typeof createCentrifugoServerAuthTokenCreate;
|
|
2978
|
+
declare const index$7_createCentrifugoServerChannelsCreate: typeof createCentrifugoServerChannelsCreate;
|
|
2979
|
+
declare const index$7_createCentrifugoServerHistoryCreate: typeof createCentrifugoServerHistoryCreate;
|
|
2980
|
+
declare const index$7_createCentrifugoServerInfoCreate: typeof createCentrifugoServerInfoCreate;
|
|
2981
|
+
declare const index$7_createCentrifugoServerPresenceCreate: typeof createCentrifugoServerPresenceCreate;
|
|
2982
|
+
declare const index$7_createCentrifugoServerPresenceStatsCreate: typeof createCentrifugoServerPresenceStatsCreate;
|
|
2983
|
+
declare const index$7_createCentrifugoTestingPublishTestCreate: typeof createCentrifugoTestingPublishTestCreate;
|
|
2984
|
+
declare const index$7_createCentrifugoTestingPublishWithLoggingCreate: typeof createCentrifugoTestingPublishWithLoggingCreate;
|
|
2985
|
+
declare const index$7_createCentrifugoTestingSendAckCreate: typeof createCentrifugoTestingSendAckCreate;
|
|
2986
|
+
declare const index$7_getCentrifugoAuthTokenRetrieve: typeof getCentrifugoAuthTokenRetrieve;
|
|
2987
|
+
declare const index$7_getCentrifugoMonitorChannelsRetrieve: typeof getCentrifugoMonitorChannelsRetrieve;
|
|
2988
|
+
declare const index$7_getCentrifugoMonitorHealthRetrieve: typeof getCentrifugoMonitorHealthRetrieve;
|
|
2989
|
+
declare const index$7_getCentrifugoMonitorOverviewRetrieve: typeof getCentrifugoMonitorOverviewRetrieve;
|
|
2990
|
+
declare const index$7_getCentrifugoMonitorPublishesList: typeof getCentrifugoMonitorPublishesList;
|
|
2991
|
+
declare const index$7_getCentrifugoMonitorTimelineRetrieve: typeof getCentrifugoMonitorTimelineRetrieve;
|
|
2992
|
+
declare namespace index$7 {
|
|
2993
|
+
export { index$7_createCentrifugoServerAuthTokenCreate as createCentrifugoServerAuthTokenCreate, index$7_createCentrifugoServerChannelsCreate as createCentrifugoServerChannelsCreate, index$7_createCentrifugoServerHistoryCreate as createCentrifugoServerHistoryCreate, index$7_createCentrifugoServerInfoCreate as createCentrifugoServerInfoCreate, index$7_createCentrifugoServerPresenceCreate as createCentrifugoServerPresenceCreate, index$7_createCentrifugoServerPresenceStatsCreate as createCentrifugoServerPresenceStatsCreate, index$7_createCentrifugoTestingPublishTestCreate as createCentrifugoTestingPublishTestCreate, index$7_createCentrifugoTestingPublishWithLoggingCreate as createCentrifugoTestingPublishWithLoggingCreate, index$7_createCentrifugoTestingSendAckCreate as createCentrifugoTestingSendAckCreate, index$7_getCentrifugoAuthTokenRetrieve as getCentrifugoAuthTokenRetrieve, index$7_getCentrifugoMonitorChannelsRetrieve as getCentrifugoMonitorChannelsRetrieve, index$7_getCentrifugoMonitorHealthRetrieve as getCentrifugoMonitorHealthRetrieve, index$7_getCentrifugoMonitorOverviewRetrieve as getCentrifugoMonitorOverviewRetrieve, index$7_getCentrifugoMonitorPublishesList as getCentrifugoMonitorPublishesList, index$7_getCentrifugoMonitorTimelineRetrieve as getCentrifugoMonitorTimelineRetrieve };
|
|
2927
2994
|
}
|
|
2928
2995
|
|
|
2929
2996
|
/**
|
|
@@ -2960,15 +3027,15 @@ declare namespace index$4 {
|
|
|
2960
3027
|
* ```
|
|
2961
3028
|
*/
|
|
2962
3029
|
|
|
2963
|
-
interface APIOptions$
|
|
3030
|
+
interface APIOptions$2 {
|
|
2964
3031
|
/** Custom storage adapter (defaults to LocalStorageAdapter) */
|
|
2965
|
-
storage?: StorageAdapter$
|
|
3032
|
+
storage?: StorageAdapter$2;
|
|
2966
3033
|
/** Retry configuration for failed requests */
|
|
2967
|
-
retryConfig?: RetryConfig$
|
|
3034
|
+
retryConfig?: RetryConfig$2;
|
|
2968
3035
|
/** Logger configuration */
|
|
2969
|
-
loggerConfig?: Partial<LoggerConfig$
|
|
3036
|
+
loggerConfig?: Partial<LoggerConfig$2>;
|
|
2970
3037
|
}
|
|
2971
|
-
declare class API$
|
|
3038
|
+
declare class API$2 {
|
|
2972
3039
|
private baseUrl;
|
|
2973
3040
|
private _client;
|
|
2974
3041
|
private _token;
|
|
@@ -2979,7 +3046,7 @@ declare class API$1 {
|
|
|
2979
3046
|
centrifugo_auth: CentrifugoAuth;
|
|
2980
3047
|
centrifugo_monitoring: CentrifugoMonitoring;
|
|
2981
3048
|
centrifugo_testing: CentrifugoTesting;
|
|
2982
|
-
constructor(baseUrl: string, options?: APIOptions$
|
|
3049
|
+
constructor(baseUrl: string, options?: APIOptions$2);
|
|
2983
3050
|
private _loadTokensFromStorage;
|
|
2984
3051
|
private _reinitClients;
|
|
2985
3052
|
private _injectAuthHeader;
|
|
@@ -3030,90 +3097,277 @@ declare class API$1 {
|
|
|
3030
3097
|
}
|
|
3031
3098
|
|
|
3032
3099
|
/**
|
|
3033
|
-
*
|
|
3100
|
+
* Serializer for backup codes status.
|
|
3101
|
+
*
|
|
3102
|
+
* Response model (includes read-only fields).
|
|
3103
|
+
*/
|
|
3104
|
+
interface BackupCodesStatus$1 {
|
|
3105
|
+
/** Number of unused backup codes */
|
|
3106
|
+
remaining_count: number;
|
|
3107
|
+
/** Total number of codes generated */
|
|
3108
|
+
total_generated: number;
|
|
3109
|
+
/** Warning if running low on codes */
|
|
3110
|
+
warning?: string | null;
|
|
3111
|
+
}
|
|
3112
|
+
/**
|
|
3113
|
+
* Serializer for regenerating backup codes.
|
|
3034
3114
|
*
|
|
3035
3115
|
* Request model (no read-only fields).
|
|
3036
3116
|
*/
|
|
3037
|
-
interface
|
|
3038
|
-
/**
|
|
3039
|
-
|
|
3040
|
-
/** Notification body */
|
|
3041
|
-
body: string;
|
|
3042
|
-
/** Notification icon URL */
|
|
3043
|
-
icon?: string | null;
|
|
3044
|
-
/** URL to open on click */
|
|
3045
|
-
url?: string | null;
|
|
3117
|
+
interface BackupCodesRegenerateRequest$1 {
|
|
3118
|
+
/** TOTP code for verification */
|
|
3119
|
+
code: string;
|
|
3046
3120
|
}
|
|
3047
3121
|
/**
|
|
3048
|
-
* Response serializer for
|
|
3122
|
+
* Response serializer for backup codes regeneration.
|
|
3049
3123
|
*
|
|
3050
3124
|
* Response model (includes read-only fields).
|
|
3051
3125
|
*/
|
|
3052
|
-
interface
|
|
3053
|
-
/**
|
|
3054
|
-
|
|
3055
|
-
/**
|
|
3056
|
-
|
|
3126
|
+
interface BackupCodesRegenerateResponse$1 {
|
|
3127
|
+
/** List of new backup codes (save these!) */
|
|
3128
|
+
backup_codes: Array<string>;
|
|
3129
|
+
/** Warning about previous codes being invalidated */
|
|
3130
|
+
warning: string;
|
|
3057
3131
|
}
|
|
3132
|
+
|
|
3058
3133
|
/**
|
|
3059
|
-
*
|
|
3134
|
+
* API endpoints for Backup Codes.
|
|
3135
|
+
*/
|
|
3136
|
+
declare class BackupCodes {
|
|
3137
|
+
private client;
|
|
3138
|
+
constructor(client: any);
|
|
3139
|
+
/**
|
|
3140
|
+
* Get backup codes status for user.
|
|
3141
|
+
*/
|
|
3142
|
+
totpBackupCodesRetrieve(): Promise<BackupCodesStatus$1>;
|
|
3143
|
+
/**
|
|
3144
|
+
* Regenerate backup codes. Requires TOTP code for verification.
|
|
3145
|
+
* Invalidates all existing codes.
|
|
3146
|
+
*/
|
|
3147
|
+
totpBackupCodesRegenerateCreate(data: BackupCodesRegenerateRequest$1): Promise<BackupCodesRegenerateResponse$1>;
|
|
3148
|
+
}
|
|
3149
|
+
|
|
3150
|
+
/**
|
|
3151
|
+
* * `pending` - Pending Confirmation
|
|
3152
|
+
* * `active` - Active
|
|
3153
|
+
* * `disabled` - Disabled
|
|
3154
|
+
*/
|
|
3155
|
+
declare enum DeviceListStatus {
|
|
3156
|
+
PENDING = "pending",
|
|
3157
|
+
ACTIVE = "active",
|
|
3158
|
+
DISABLED = "disabled"
|
|
3159
|
+
}
|
|
3160
|
+
|
|
3161
|
+
/**
|
|
3162
|
+
*
|
|
3163
|
+
* Response model (includes read-only fields).
|
|
3164
|
+
*/
|
|
3165
|
+
interface PaginatedDeviceListList$1 {
|
|
3166
|
+
/** Total number of items across all pages */
|
|
3167
|
+
count: number;
|
|
3168
|
+
/** Current page number (1-based) */
|
|
3169
|
+
page: number;
|
|
3170
|
+
/** Total number of pages */
|
|
3171
|
+
pages: number;
|
|
3172
|
+
/** Number of items per page */
|
|
3173
|
+
page_size: number;
|
|
3174
|
+
/** Whether there is a next page */
|
|
3175
|
+
has_next: boolean;
|
|
3176
|
+
/** Whether there is a previous page */
|
|
3177
|
+
has_previous: boolean;
|
|
3178
|
+
/** Next page number (null if no next page) */
|
|
3179
|
+
next_page?: number | null;
|
|
3180
|
+
/** Previous page number (null if no previous page) */
|
|
3181
|
+
previous_page?: number | null;
|
|
3182
|
+
/** Array of items for current page */
|
|
3183
|
+
results: Array<DeviceList$1>;
|
|
3184
|
+
}
|
|
3185
|
+
/**
|
|
3186
|
+
* Serializer for completely disabling 2FA.
|
|
3060
3187
|
*
|
|
3061
3188
|
* Request model (no read-only fields).
|
|
3062
3189
|
*/
|
|
3063
|
-
interface
|
|
3064
|
-
/**
|
|
3065
|
-
|
|
3066
|
-
/** Encryption keys (p256dh and auth) */
|
|
3067
|
-
keys: Record<string, any>;
|
|
3190
|
+
interface DisableRequest$1 {
|
|
3191
|
+
/** TOTP code for verification */
|
|
3192
|
+
code: string;
|
|
3068
3193
|
}
|
|
3069
3194
|
/**
|
|
3070
|
-
*
|
|
3195
|
+
* Serializer for listing TOTP devices.
|
|
3071
3196
|
*
|
|
3072
3197
|
* Response model (includes read-only fields).
|
|
3073
3198
|
*/
|
|
3074
|
-
interface
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3199
|
+
interface DeviceList$1 {
|
|
3200
|
+
id: string;
|
|
3201
|
+
/** Device name for identification */
|
|
3202
|
+
name: string;
|
|
3203
|
+
/** Primary device used for verification */
|
|
3204
|
+
is_primary: boolean;
|
|
3205
|
+
/** * `pending` - Pending Confirmation
|
|
3206
|
+
* `active` - Active
|
|
3207
|
+
* `disabled` - Disabled */
|
|
3208
|
+
status: DeviceListStatus;
|
|
3209
|
+
created_at: string;
|
|
3210
|
+
/** When device setup was confirmed */
|
|
3211
|
+
confirmed_at?: string | null;
|
|
3212
|
+
/** Last successful verification */
|
|
3213
|
+
last_used_at?: string | null;
|
|
3081
3214
|
}
|
|
3215
|
+
|
|
3082
3216
|
/**
|
|
3083
|
-
*
|
|
3217
|
+
* API endpoints for TOTP Management.
|
|
3218
|
+
*/
|
|
3219
|
+
declare class TotpManagement {
|
|
3220
|
+
private client;
|
|
3221
|
+
constructor(client: any);
|
|
3222
|
+
totpDevicesList(page?: number, page_size?: number): Promise<PaginatedDeviceListList$1>;
|
|
3223
|
+
totpDevicesList(params?: {
|
|
3224
|
+
page?: number;
|
|
3225
|
+
page_size?: number;
|
|
3226
|
+
}): Promise<PaginatedDeviceListList$1>;
|
|
3227
|
+
/**
|
|
3228
|
+
* Completely disable 2FA for account. Requires verification code.
|
|
3229
|
+
*/
|
|
3230
|
+
totpDisableCreate(data: DisableRequest$1): Promise<any>;
|
|
3231
|
+
}
|
|
3232
|
+
|
|
3233
|
+
/**
|
|
3234
|
+
* Serializer for starting 2FA setup.
|
|
3235
|
+
*
|
|
3236
|
+
* Request model (no read-only fields).
|
|
3237
|
+
*/
|
|
3238
|
+
interface SetupRequest$1 {
|
|
3239
|
+
/** Device name for identification (e.g., 'My iPhone') */
|
|
3240
|
+
device_name?: string;
|
|
3241
|
+
}
|
|
3242
|
+
/**
|
|
3243
|
+
* Response serializer for setup initiation.
|
|
3084
3244
|
*
|
|
3085
3245
|
* Response model (includes read-only fields).
|
|
3086
3246
|
*/
|
|
3087
|
-
interface
|
|
3088
|
-
/**
|
|
3089
|
-
|
|
3247
|
+
interface SetupResponse$1 {
|
|
3248
|
+
/** Device ID to use for confirmation */
|
|
3249
|
+
device_id: string;
|
|
3250
|
+
/** Base32-encoded TOTP secret (for manual entry) */
|
|
3251
|
+
secret: string;
|
|
3252
|
+
/** otpauth:// URI for QR code generation */
|
|
3253
|
+
provisioning_uri: string;
|
|
3254
|
+
/** Base64-encoded QR code image (data URI) */
|
|
3255
|
+
qr_code_base64: string;
|
|
3256
|
+
/** Seconds until setup expires (typically 600 = 10 minutes) */
|
|
3257
|
+
expires_in: number;
|
|
3258
|
+
}
|
|
3259
|
+
/**
|
|
3260
|
+
* Serializer for confirming 2FA setup with first code.
|
|
3261
|
+
*
|
|
3262
|
+
* Request model (no read-only fields).
|
|
3263
|
+
*/
|
|
3264
|
+
interface ConfirmSetupRequest$1 {
|
|
3265
|
+
/** Device ID from setup response */
|
|
3266
|
+
device_id: string;
|
|
3267
|
+
/** 6-digit TOTP code from authenticator app */
|
|
3268
|
+
code: string;
|
|
3269
|
+
}
|
|
3270
|
+
/**
|
|
3271
|
+
* Response serializer for setup confirmation.
|
|
3272
|
+
*
|
|
3273
|
+
* Response model (includes read-only fields).
|
|
3274
|
+
*/
|
|
3275
|
+
interface ConfirmSetupResponse$1 {
|
|
3276
|
+
message: string;
|
|
3277
|
+
/** List of backup recovery codes (save these!) */
|
|
3278
|
+
backup_codes: Array<string>;
|
|
3279
|
+
/** Warning message about backup codes */
|
|
3280
|
+
backup_codes_warning: string;
|
|
3090
3281
|
}
|
|
3091
3282
|
|
|
3092
3283
|
/**
|
|
3093
|
-
* API endpoints for
|
|
3284
|
+
* API endpoints for TOTP Setup.
|
|
3094
3285
|
*/
|
|
3095
|
-
declare class
|
|
3286
|
+
declare class TotpSetup {
|
|
3096
3287
|
private client;
|
|
3097
3288
|
constructor(client: any);
|
|
3098
3289
|
/**
|
|
3099
|
-
*
|
|
3100
|
-
*
|
|
3101
|
-
* Send push notification to all active subscriptions for the authenticated
|
|
3102
|
-
* user.
|
|
3290
|
+
* Start 2FA setup process. Creates a new TOTP device and returns QR code
|
|
3291
|
+
* for scanning.
|
|
3103
3292
|
*/
|
|
3104
|
-
|
|
3293
|
+
create(data: SetupRequest$1): Promise<SetupResponse$1>;
|
|
3105
3294
|
/**
|
|
3106
|
-
*
|
|
3107
|
-
*
|
|
3108
|
-
* Save push subscription from browser for the authenticated user.
|
|
3295
|
+
* Confirm 2FA setup with first valid code. Activates the device and
|
|
3296
|
+
* generates backup codes.
|
|
3109
3297
|
*/
|
|
3110
|
-
|
|
3298
|
+
confirmCreate(data: ConfirmSetupRequest$1): Promise<ConfirmSetupResponse$1>;
|
|
3299
|
+
}
|
|
3300
|
+
|
|
3301
|
+
/**
|
|
3302
|
+
* Serializer for TOTP code verification during login.
|
|
3303
|
+
*
|
|
3304
|
+
* Request model (no read-only fields).
|
|
3305
|
+
*/
|
|
3306
|
+
interface VerifyRequest$1 {
|
|
3307
|
+
/** 2FA session ID from login response */
|
|
3308
|
+
session_id: string;
|
|
3309
|
+
/** 6-digit TOTP code from authenticator app */
|
|
3310
|
+
code: string;
|
|
3311
|
+
}
|
|
3312
|
+
/**
|
|
3313
|
+
* Response serializer for successful 2FA verification.
|
|
3314
|
+
*
|
|
3315
|
+
* Response model (includes read-only fields).
|
|
3316
|
+
*/
|
|
3317
|
+
interface VerifyResponse$1 {
|
|
3318
|
+
message: string;
|
|
3319
|
+
/** JWT access token */
|
|
3320
|
+
access_token: string;
|
|
3321
|
+
/** JWT refresh token */
|
|
3322
|
+
refresh_token: string;
|
|
3323
|
+
/** User profile data */
|
|
3324
|
+
user: Record<string, any>;
|
|
3325
|
+
/** Number of remaining backup codes (if backup code was used) */
|
|
3326
|
+
remaining_backup_codes?: number;
|
|
3327
|
+
/** Warning message (e.g., low backup codes) */
|
|
3328
|
+
warning?: string;
|
|
3329
|
+
}
|
|
3330
|
+
/**
|
|
3331
|
+
* Serializer for backup code verification during login.
|
|
3332
|
+
*
|
|
3333
|
+
* Request model (no read-only fields).
|
|
3334
|
+
*/
|
|
3335
|
+
interface VerifyBackupRequest$1 {
|
|
3336
|
+
/** 2FA session ID from login response */
|
|
3337
|
+
session_id: string;
|
|
3338
|
+
/** 8-character backup recovery code */
|
|
3339
|
+
backup_code: string;
|
|
3340
|
+
}
|
|
3341
|
+
|
|
3342
|
+
/**
|
|
3343
|
+
* API endpoints for TOTP Verification.
|
|
3344
|
+
*/
|
|
3345
|
+
declare class TotpVerification {
|
|
3346
|
+
private client;
|
|
3347
|
+
constructor(client: any);
|
|
3111
3348
|
/**
|
|
3112
|
-
*
|
|
3113
|
-
*
|
|
3114
|
-
* Get VAPID public key for client subscription.
|
|
3349
|
+
* Verify TOTP code for 2FA session. Completes authentication and returns
|
|
3350
|
+
* JWT tokens on success.
|
|
3115
3351
|
*/
|
|
3116
|
-
|
|
3352
|
+
totpVerifyCreate(data: VerifyRequest$1): Promise<VerifyResponse$1>;
|
|
3353
|
+
/**
|
|
3354
|
+
* Verify backup recovery code for 2FA session. Alternative verification
|
|
3355
|
+
* method when TOTP device unavailable.
|
|
3356
|
+
*/
|
|
3357
|
+
totpVerifyBackupCreate(data: VerifyBackupRequest$1): Promise<VerifyResponse$1>;
|
|
3358
|
+
}
|
|
3359
|
+
|
|
3360
|
+
/**
|
|
3361
|
+
* API endpoints for Totp.
|
|
3362
|
+
*/
|
|
3363
|
+
declare class Totp {
|
|
3364
|
+
private client;
|
|
3365
|
+
constructor(client: any);
|
|
3366
|
+
/**
|
|
3367
|
+
* Delete a TOTP device. Requires verification code if removing the
|
|
3368
|
+
* last/primary device.
|
|
3369
|
+
*/
|
|
3370
|
+
devicesDestroy(id: string): Promise<void>;
|
|
3117
3371
|
}
|
|
3118
3372
|
|
|
3119
3373
|
/**
|
|
@@ -3127,7 +3381,7 @@ declare class WebPush {
|
|
|
3127
3381
|
/**
|
|
3128
3382
|
* Logger configuration
|
|
3129
3383
|
*/
|
|
3130
|
-
interface LoggerConfig {
|
|
3384
|
+
interface LoggerConfig$1 {
|
|
3131
3385
|
/** Enable logging */
|
|
3132
3386
|
enabled: boolean;
|
|
3133
3387
|
/** Log requests */
|
|
@@ -3153,7 +3407,7 @@ interface LoggerConfig {
|
|
|
3153
3407
|
/**
|
|
3154
3408
|
* Information about a failed retry attempt.
|
|
3155
3409
|
*/
|
|
3156
|
-
interface FailedAttemptInfo {
|
|
3410
|
+
interface FailedAttemptInfo$1 {
|
|
3157
3411
|
/** The error that caused the failure */
|
|
3158
3412
|
error: Error;
|
|
3159
3413
|
/** The attempt number (1-indexed) */
|
|
@@ -3166,7 +3420,7 @@ interface FailedAttemptInfo {
|
|
|
3166
3420
|
*
|
|
3167
3421
|
* Uses exponential backoff with jitter by default to avoid thundering herd.
|
|
3168
3422
|
*/
|
|
3169
|
-
interface RetryConfig {
|
|
3423
|
+
interface RetryConfig$1 {
|
|
3170
3424
|
/**
|
|
3171
3425
|
* Maximum number of retry attempts.
|
|
3172
3426
|
* @default 3
|
|
@@ -3196,7 +3450,7 @@ interface RetryConfig {
|
|
|
3196
3450
|
/**
|
|
3197
3451
|
* Callback called on each failed attempt.
|
|
3198
3452
|
*/
|
|
3199
|
-
onFailedAttempt?: (info: FailedAttemptInfo) => void;
|
|
3453
|
+
onFailedAttempt?: (info: FailedAttemptInfo$1) => void;
|
|
3200
3454
|
}
|
|
3201
3455
|
|
|
3202
3456
|
/**
|
|
@@ -3211,80 +3465,794 @@ interface RetryConfig {
|
|
|
3211
3465
|
/**
|
|
3212
3466
|
* Storage adapter interface for cross-platform token storage.
|
|
3213
3467
|
*/
|
|
3214
|
-
interface StorageAdapter {
|
|
3468
|
+
interface StorageAdapter$1 {
|
|
3215
3469
|
getItem(key: string): string | null;
|
|
3216
3470
|
setItem(key: string, value: string): void;
|
|
3217
3471
|
removeItem(key: string): void;
|
|
3218
3472
|
}
|
|
3219
3473
|
|
|
3220
3474
|
/**
|
|
3221
|
-
* Zod schema for
|
|
3475
|
+
* Zod schema for BackupCodesRegenerateRequest
|
|
3222
3476
|
*
|
|
3223
3477
|
* This schema provides runtime validation and type inference.
|
|
3224
|
-
* *
|
|
3478
|
+
* * Serializer for regenerating backup codes.
|
|
3225
3479
|
* */
|
|
3226
3480
|
|
|
3227
3481
|
/**
|
|
3228
|
-
*
|
|
3482
|
+
* Serializer for regenerating backup codes.
|
|
3229
3483
|
*/
|
|
3230
|
-
declare const
|
|
3231
|
-
|
|
3232
|
-
body: z.ZodString;
|
|
3233
|
-
icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>>;
|
|
3234
|
-
url: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>>;
|
|
3484
|
+
declare const BackupCodesRegenerateRequestSchema: z.ZodObject<{
|
|
3485
|
+
code: z.ZodString;
|
|
3235
3486
|
}, z.core.$strip>;
|
|
3236
3487
|
/**
|
|
3237
3488
|
* Infer TypeScript type from Zod schema
|
|
3238
3489
|
*/
|
|
3239
|
-
type
|
|
3490
|
+
type BackupCodesRegenerateRequest = z.infer<typeof BackupCodesRegenerateRequestSchema>;
|
|
3240
3491
|
|
|
3241
3492
|
/**
|
|
3242
|
-
* Zod schema for
|
|
3493
|
+
* Zod schema for BackupCodesRegenerateResponse
|
|
3243
3494
|
*
|
|
3244
3495
|
* This schema provides runtime validation and type inference.
|
|
3245
|
-
* * Response serializer for
|
|
3496
|
+
* * Response serializer for backup codes regeneration.
|
|
3246
3497
|
* */
|
|
3247
3498
|
|
|
3248
3499
|
/**
|
|
3249
|
-
* Response serializer for
|
|
3500
|
+
* Response serializer for backup codes regeneration.
|
|
3250
3501
|
*/
|
|
3251
|
-
declare const
|
|
3252
|
-
|
|
3253
|
-
|
|
3502
|
+
declare const BackupCodesRegenerateResponseSchema: z.ZodObject<{
|
|
3503
|
+
backup_codes: z.ZodArray<z.ZodString>;
|
|
3504
|
+
warning: z.ZodString;
|
|
3254
3505
|
}, z.core.$strip>;
|
|
3255
3506
|
/**
|
|
3256
3507
|
* Infer TypeScript type from Zod schema
|
|
3257
3508
|
*/
|
|
3258
|
-
type
|
|
3509
|
+
type BackupCodesRegenerateResponse = z.infer<typeof BackupCodesRegenerateResponseSchema>;
|
|
3259
3510
|
|
|
3260
3511
|
/**
|
|
3261
|
-
* Zod schema for
|
|
3512
|
+
* Zod schema for BackupCodesStatus
|
|
3262
3513
|
*
|
|
3263
3514
|
* This schema provides runtime validation and type inference.
|
|
3264
|
-
* *
|
|
3515
|
+
* * Serializer for backup codes status.
|
|
3265
3516
|
* */
|
|
3266
3517
|
|
|
3267
3518
|
/**
|
|
3268
|
-
*
|
|
3519
|
+
* Serializer for backup codes status.
|
|
3269
3520
|
*/
|
|
3270
|
-
declare const
|
|
3271
|
-
|
|
3272
|
-
|
|
3521
|
+
declare const BackupCodesStatusSchema: z.ZodObject<{
|
|
3522
|
+
remaining_count: z.ZodInt;
|
|
3523
|
+
total_generated: z.ZodInt;
|
|
3524
|
+
warning: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3273
3525
|
}, z.core.$strip>;
|
|
3274
3526
|
/**
|
|
3275
3527
|
* Infer TypeScript type from Zod schema
|
|
3276
3528
|
*/
|
|
3277
|
-
type
|
|
3529
|
+
type BackupCodesStatus = z.infer<typeof BackupCodesStatusSchema>;
|
|
3278
3530
|
|
|
3279
3531
|
/**
|
|
3280
|
-
* Zod schema for
|
|
3532
|
+
* Zod schema for ConfirmSetupRequest
|
|
3281
3533
|
*
|
|
3282
3534
|
* This schema provides runtime validation and type inference.
|
|
3283
|
-
* *
|
|
3535
|
+
* * Serializer for confirming 2FA setup with first code.
|
|
3284
3536
|
* */
|
|
3285
3537
|
|
|
3286
3538
|
/**
|
|
3287
|
-
*
|
|
3539
|
+
* Serializer for confirming 2FA setup with first code.
|
|
3540
|
+
*/
|
|
3541
|
+
declare const ConfirmSetupRequestSchema: z.ZodObject<{
|
|
3542
|
+
device_id: z.ZodString;
|
|
3543
|
+
code: z.ZodString;
|
|
3544
|
+
}, z.core.$strip>;
|
|
3545
|
+
/**
|
|
3546
|
+
* Infer TypeScript type from Zod schema
|
|
3547
|
+
*/
|
|
3548
|
+
type ConfirmSetupRequest = z.infer<typeof ConfirmSetupRequestSchema>;
|
|
3549
|
+
|
|
3550
|
+
/**
|
|
3551
|
+
* Zod schema for ConfirmSetupResponse
|
|
3552
|
+
*
|
|
3553
|
+
* This schema provides runtime validation and type inference.
|
|
3554
|
+
* * Response serializer for setup confirmation.
|
|
3555
|
+
* */
|
|
3556
|
+
|
|
3557
|
+
/**
|
|
3558
|
+
* Response serializer for setup confirmation.
|
|
3559
|
+
*/
|
|
3560
|
+
declare const ConfirmSetupResponseSchema: z.ZodObject<{
|
|
3561
|
+
message: z.ZodString;
|
|
3562
|
+
backup_codes: z.ZodArray<z.ZodString>;
|
|
3563
|
+
backup_codes_warning: z.ZodString;
|
|
3564
|
+
}, z.core.$strip>;
|
|
3565
|
+
/**
|
|
3566
|
+
* Infer TypeScript type from Zod schema
|
|
3567
|
+
*/
|
|
3568
|
+
type ConfirmSetupResponse = z.infer<typeof ConfirmSetupResponseSchema>;
|
|
3569
|
+
|
|
3570
|
+
/**
|
|
3571
|
+
* Zod schema for DeviceList
|
|
3572
|
+
*
|
|
3573
|
+
* This schema provides runtime validation and type inference.
|
|
3574
|
+
* * Serializer for listing TOTP devices.
|
|
3575
|
+
* */
|
|
3576
|
+
|
|
3577
|
+
/**
|
|
3578
|
+
* Serializer for listing TOTP devices.
|
|
3579
|
+
*/
|
|
3580
|
+
declare const DeviceListSchema: z.ZodObject<{
|
|
3581
|
+
id: z.ZodString;
|
|
3582
|
+
name: z.ZodString;
|
|
3583
|
+
is_primary: z.ZodBoolean;
|
|
3584
|
+
status: z.ZodEnum<typeof DeviceListStatus>;
|
|
3585
|
+
created_at: z.ZodISODateTime;
|
|
3586
|
+
confirmed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
3587
|
+
last_used_at: z.ZodNullable<z.ZodISODateTime>;
|
|
3588
|
+
}, z.core.$strip>;
|
|
3589
|
+
/**
|
|
3590
|
+
* Infer TypeScript type from Zod schema
|
|
3591
|
+
*/
|
|
3592
|
+
type DeviceList = z.infer<typeof DeviceListSchema>;
|
|
3593
|
+
|
|
3594
|
+
/**
|
|
3595
|
+
* Zod schema for DisableRequest
|
|
3596
|
+
*
|
|
3597
|
+
* This schema provides runtime validation and type inference.
|
|
3598
|
+
* * Serializer for completely disabling 2FA.
|
|
3599
|
+
* */
|
|
3600
|
+
|
|
3601
|
+
/**
|
|
3602
|
+
* Serializer for completely disabling 2FA.
|
|
3603
|
+
*/
|
|
3604
|
+
declare const DisableRequestSchema: z.ZodObject<{
|
|
3605
|
+
code: z.ZodString;
|
|
3606
|
+
}, z.core.$strip>;
|
|
3607
|
+
/**
|
|
3608
|
+
* Infer TypeScript type from Zod schema
|
|
3609
|
+
*/
|
|
3610
|
+
type DisableRequest = z.infer<typeof DisableRequestSchema>;
|
|
3611
|
+
|
|
3612
|
+
declare const PaginatedDeviceListListSchema: z.ZodObject<{
|
|
3613
|
+
count: z.ZodInt;
|
|
3614
|
+
page: z.ZodInt;
|
|
3615
|
+
pages: z.ZodInt;
|
|
3616
|
+
page_size: z.ZodInt;
|
|
3617
|
+
has_next: z.ZodBoolean;
|
|
3618
|
+
has_previous: z.ZodBoolean;
|
|
3619
|
+
next_page: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3620
|
+
previous_page: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
3621
|
+
results: z.ZodArray<z.ZodObject<{
|
|
3622
|
+
id: z.ZodString;
|
|
3623
|
+
name: z.ZodString;
|
|
3624
|
+
is_primary: z.ZodBoolean;
|
|
3625
|
+
status: z.ZodEnum<typeof DeviceListStatus>;
|
|
3626
|
+
created_at: z.ZodISODateTime;
|
|
3627
|
+
confirmed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
3628
|
+
last_used_at: z.ZodNullable<z.ZodISODateTime>;
|
|
3629
|
+
}, z.core.$strip>>;
|
|
3630
|
+
}, z.core.$strip>;
|
|
3631
|
+
/**
|
|
3632
|
+
* Infer TypeScript type from Zod schema
|
|
3633
|
+
*/
|
|
3634
|
+
type PaginatedDeviceListList = z.infer<typeof PaginatedDeviceListListSchema>;
|
|
3635
|
+
|
|
3636
|
+
/**
|
|
3637
|
+
* Zod schema for SetupRequest
|
|
3638
|
+
*
|
|
3639
|
+
* This schema provides runtime validation and type inference.
|
|
3640
|
+
* * Serializer for starting 2FA setup.
|
|
3641
|
+
* */
|
|
3642
|
+
|
|
3643
|
+
/**
|
|
3644
|
+
* Serializer for starting 2FA setup.
|
|
3645
|
+
*/
|
|
3646
|
+
declare const SetupRequestSchema: z.ZodObject<{
|
|
3647
|
+
device_name: z.ZodOptional<z.ZodString>;
|
|
3648
|
+
}, z.core.$strip>;
|
|
3649
|
+
/**
|
|
3650
|
+
* Infer TypeScript type from Zod schema
|
|
3651
|
+
*/
|
|
3652
|
+
type SetupRequest = z.infer<typeof SetupRequestSchema>;
|
|
3653
|
+
|
|
3654
|
+
/**
|
|
3655
|
+
* Zod schema for SetupResponse
|
|
3656
|
+
*
|
|
3657
|
+
* This schema provides runtime validation and type inference.
|
|
3658
|
+
* * Response serializer for setup initiation.
|
|
3659
|
+
* */
|
|
3660
|
+
|
|
3661
|
+
/**
|
|
3662
|
+
* Response serializer for setup initiation.
|
|
3663
|
+
*/
|
|
3664
|
+
declare const SetupResponseSchema: z.ZodObject<{
|
|
3665
|
+
device_id: z.ZodString;
|
|
3666
|
+
secret: z.ZodString;
|
|
3667
|
+
provisioning_uri: z.ZodString;
|
|
3668
|
+
qr_code_base64: z.ZodString;
|
|
3669
|
+
expires_in: z.ZodInt;
|
|
3670
|
+
}, z.core.$strip>;
|
|
3671
|
+
/**
|
|
3672
|
+
* Infer TypeScript type from Zod schema
|
|
3673
|
+
*/
|
|
3674
|
+
type SetupResponse = z.infer<typeof SetupResponseSchema>;
|
|
3675
|
+
|
|
3676
|
+
/**
|
|
3677
|
+
* Zod schema for VerifyBackupRequest
|
|
3678
|
+
*
|
|
3679
|
+
* This schema provides runtime validation and type inference.
|
|
3680
|
+
* * Serializer for backup code verification during login.
|
|
3681
|
+
* */
|
|
3682
|
+
|
|
3683
|
+
/**
|
|
3684
|
+
* Serializer for backup code verification during login.
|
|
3685
|
+
*/
|
|
3686
|
+
declare const VerifyBackupRequestSchema: z.ZodObject<{
|
|
3687
|
+
session_id: z.ZodString;
|
|
3688
|
+
backup_code: z.ZodString;
|
|
3689
|
+
}, z.core.$strip>;
|
|
3690
|
+
/**
|
|
3691
|
+
* Infer TypeScript type from Zod schema
|
|
3692
|
+
*/
|
|
3693
|
+
type VerifyBackupRequest = z.infer<typeof VerifyBackupRequestSchema>;
|
|
3694
|
+
|
|
3695
|
+
/**
|
|
3696
|
+
* Zod schema for VerifyRequest
|
|
3697
|
+
*
|
|
3698
|
+
* This schema provides runtime validation and type inference.
|
|
3699
|
+
* * Serializer for TOTP code verification during login.
|
|
3700
|
+
* */
|
|
3701
|
+
|
|
3702
|
+
/**
|
|
3703
|
+
* Serializer for TOTP code verification during login.
|
|
3704
|
+
*/
|
|
3705
|
+
declare const VerifyRequestSchema: z.ZodObject<{
|
|
3706
|
+
session_id: z.ZodString;
|
|
3707
|
+
code: z.ZodString;
|
|
3708
|
+
}, z.core.$strip>;
|
|
3709
|
+
/**
|
|
3710
|
+
* Infer TypeScript type from Zod schema
|
|
3711
|
+
*/
|
|
3712
|
+
type VerifyRequest = z.infer<typeof VerifyRequestSchema>;
|
|
3713
|
+
|
|
3714
|
+
/**
|
|
3715
|
+
* Zod schema for VerifyResponse
|
|
3716
|
+
*
|
|
3717
|
+
* This schema provides runtime validation and type inference.
|
|
3718
|
+
* * Response serializer for successful 2FA verification.
|
|
3719
|
+
* */
|
|
3720
|
+
|
|
3721
|
+
/**
|
|
3722
|
+
* Response serializer for successful 2FA verification.
|
|
3723
|
+
*/
|
|
3724
|
+
declare const VerifyResponseSchema: z.ZodObject<{
|
|
3725
|
+
message: z.ZodString;
|
|
3726
|
+
access_token: z.ZodString;
|
|
3727
|
+
refresh_token: z.ZodString;
|
|
3728
|
+
user: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
3729
|
+
remaining_backup_codes: z.ZodOptional<z.ZodInt>;
|
|
3730
|
+
warning: z.ZodOptional<z.ZodString>;
|
|
3731
|
+
}, z.core.$strip>;
|
|
3732
|
+
/**
|
|
3733
|
+
* Infer TypeScript type from Zod schema
|
|
3734
|
+
*/
|
|
3735
|
+
type VerifyResponse = z.infer<typeof VerifyResponseSchema>;
|
|
3736
|
+
|
|
3737
|
+
/**
|
|
3738
|
+
* Zod Schemas - Runtime validation and type inference
|
|
3739
|
+
*
|
|
3740
|
+
* Auto-generated from OpenAPI specification.
|
|
3741
|
+
* Provides runtime validation for API requests and responses.
|
|
3742
|
+
*
|
|
3743
|
+
* Usage:
|
|
3744
|
+
* ```typescript
|
|
3745
|
+
* import { UserSchema } from './schemas'
|
|
3746
|
+
*
|
|
3747
|
+
* // Validate data
|
|
3748
|
+
* const user = UserSchema.parse(data)
|
|
3749
|
+
*
|
|
3750
|
+
* // Type inference
|
|
3751
|
+
* type User = z.infer<typeof UserSchema>
|
|
3752
|
+
* ```
|
|
3753
|
+
*/
|
|
3754
|
+
|
|
3755
|
+
type index$6_BackupCodesRegenerateRequest = BackupCodesRegenerateRequest;
|
|
3756
|
+
declare const index$6_BackupCodesRegenerateRequestSchema: typeof BackupCodesRegenerateRequestSchema;
|
|
3757
|
+
type index$6_BackupCodesRegenerateResponse = BackupCodesRegenerateResponse;
|
|
3758
|
+
declare const index$6_BackupCodesRegenerateResponseSchema: typeof BackupCodesRegenerateResponseSchema;
|
|
3759
|
+
type index$6_BackupCodesStatus = BackupCodesStatus;
|
|
3760
|
+
declare const index$6_BackupCodesStatusSchema: typeof BackupCodesStatusSchema;
|
|
3761
|
+
type index$6_ConfirmSetupRequest = ConfirmSetupRequest;
|
|
3762
|
+
declare const index$6_ConfirmSetupRequestSchema: typeof ConfirmSetupRequestSchema;
|
|
3763
|
+
type index$6_ConfirmSetupResponse = ConfirmSetupResponse;
|
|
3764
|
+
declare const index$6_ConfirmSetupResponseSchema: typeof ConfirmSetupResponseSchema;
|
|
3765
|
+
type index$6_DeviceList = DeviceList;
|
|
3766
|
+
declare const index$6_DeviceListSchema: typeof DeviceListSchema;
|
|
3767
|
+
type index$6_DisableRequest = DisableRequest;
|
|
3768
|
+
declare const index$6_DisableRequestSchema: typeof DisableRequestSchema;
|
|
3769
|
+
type index$6_PaginatedDeviceListList = PaginatedDeviceListList;
|
|
3770
|
+
declare const index$6_PaginatedDeviceListListSchema: typeof PaginatedDeviceListListSchema;
|
|
3771
|
+
type index$6_SetupRequest = SetupRequest;
|
|
3772
|
+
declare const index$6_SetupRequestSchema: typeof SetupRequestSchema;
|
|
3773
|
+
type index$6_SetupResponse = SetupResponse;
|
|
3774
|
+
declare const index$6_SetupResponseSchema: typeof SetupResponseSchema;
|
|
3775
|
+
type index$6_VerifyBackupRequest = VerifyBackupRequest;
|
|
3776
|
+
declare const index$6_VerifyBackupRequestSchema: typeof VerifyBackupRequestSchema;
|
|
3777
|
+
type index$6_VerifyRequest = VerifyRequest;
|
|
3778
|
+
declare const index$6_VerifyRequestSchema: typeof VerifyRequestSchema;
|
|
3779
|
+
type index$6_VerifyResponse = VerifyResponse;
|
|
3780
|
+
declare const index$6_VerifyResponseSchema: typeof VerifyResponseSchema;
|
|
3781
|
+
declare namespace index$6 {
|
|
3782
|
+
export { type index$6_BackupCodesRegenerateRequest as BackupCodesRegenerateRequest, index$6_BackupCodesRegenerateRequestSchema as BackupCodesRegenerateRequestSchema, type index$6_BackupCodesRegenerateResponse as BackupCodesRegenerateResponse, index$6_BackupCodesRegenerateResponseSchema as BackupCodesRegenerateResponseSchema, type index$6_BackupCodesStatus as BackupCodesStatus, index$6_BackupCodesStatusSchema as BackupCodesStatusSchema, type index$6_ConfirmSetupRequest as ConfirmSetupRequest, index$6_ConfirmSetupRequestSchema as ConfirmSetupRequestSchema, type index$6_ConfirmSetupResponse as ConfirmSetupResponse, index$6_ConfirmSetupResponseSchema as ConfirmSetupResponseSchema, type index$6_DeviceList as DeviceList, index$6_DeviceListSchema as DeviceListSchema, type index$6_DisableRequest as DisableRequest, index$6_DisableRequestSchema as DisableRequestSchema, type index$6_PaginatedDeviceListList as PaginatedDeviceListList, index$6_PaginatedDeviceListListSchema as PaginatedDeviceListListSchema, type index$6_SetupRequest as SetupRequest, index$6_SetupRequestSchema as SetupRequestSchema, type index$6_SetupResponse as SetupResponse, index$6_SetupResponseSchema as SetupResponseSchema, type index$6_VerifyBackupRequest as VerifyBackupRequest, index$6_VerifyBackupRequestSchema as VerifyBackupRequestSchema, type index$6_VerifyRequest as VerifyRequest, index$6_VerifyRequestSchema as VerifyRequestSchema, type index$6_VerifyResponse as VerifyResponse, index$6_VerifyResponseSchema as VerifyResponseSchema };
|
|
3783
|
+
}
|
|
3784
|
+
|
|
3785
|
+
/**
|
|
3786
|
+
* API operation
|
|
3787
|
+
*
|
|
3788
|
+
* @method DELETE
|
|
3789
|
+
* @path /cfg/totp/devices/{id}/
|
|
3790
|
+
*/
|
|
3791
|
+
declare function deleteTotpDevicesDestroy(id: string, client?: any): Promise<void>;
|
|
3792
|
+
|
|
3793
|
+
/**
|
|
3794
|
+
* API operation
|
|
3795
|
+
*
|
|
3796
|
+
* @method GET
|
|
3797
|
+
* @path /cfg/totp/backup-codes/
|
|
3798
|
+
*/
|
|
3799
|
+
declare function getTotpBackupCodesRetrieve(client?: any): Promise<BackupCodesStatus>;
|
|
3800
|
+
/**
|
|
3801
|
+
* API operation
|
|
3802
|
+
*
|
|
3803
|
+
* @method POST
|
|
3804
|
+
* @path /cfg/totp/backup-codes/regenerate/
|
|
3805
|
+
*/
|
|
3806
|
+
declare function createTotpBackupCodesRegenerateCreate(data: BackupCodesRegenerateRequest, client?: any): Promise<BackupCodesRegenerateResponse>;
|
|
3807
|
+
|
|
3808
|
+
/**
|
|
3809
|
+
* API operation
|
|
3810
|
+
*
|
|
3811
|
+
* @method GET
|
|
3812
|
+
* @path /cfg/totp/devices/
|
|
3813
|
+
*/
|
|
3814
|
+
declare function getTotpDevicesList(params?: {
|
|
3815
|
+
page?: number;
|
|
3816
|
+
page_size?: number;
|
|
3817
|
+
}, client?: any): Promise<PaginatedDeviceListList>;
|
|
3818
|
+
/**
|
|
3819
|
+
* API operation
|
|
3820
|
+
*
|
|
3821
|
+
* @method POST
|
|
3822
|
+
* @path /cfg/totp/disable/
|
|
3823
|
+
*/
|
|
3824
|
+
declare function createTotpDisableCreate(data: DisableRequest, client?: any): Promise<any>;
|
|
3825
|
+
|
|
3826
|
+
/**
|
|
3827
|
+
* API operation
|
|
3828
|
+
*
|
|
3829
|
+
* @method POST
|
|
3830
|
+
* @path /cfg/totp/setup/
|
|
3831
|
+
*/
|
|
3832
|
+
declare function createTotpSetupCreate(data: SetupRequest, client?: any): Promise<SetupResponse>;
|
|
3833
|
+
/**
|
|
3834
|
+
* API operation
|
|
3835
|
+
*
|
|
3836
|
+
* @method POST
|
|
3837
|
+
* @path /cfg/totp/setup/confirm/
|
|
3838
|
+
*/
|
|
3839
|
+
declare function createTotpSetupConfirmCreate(data: ConfirmSetupRequest, client?: any): Promise<ConfirmSetupResponse>;
|
|
3840
|
+
|
|
3841
|
+
/**
|
|
3842
|
+
* API operation
|
|
3843
|
+
*
|
|
3844
|
+
* @method POST
|
|
3845
|
+
* @path /cfg/totp/verify/
|
|
3846
|
+
*/
|
|
3847
|
+
declare function createTotpVerifyCreate(data: VerifyRequest, client?: any): Promise<VerifyResponse>;
|
|
3848
|
+
/**
|
|
3849
|
+
* API operation
|
|
3850
|
+
*
|
|
3851
|
+
* @method POST
|
|
3852
|
+
* @path /cfg/totp/verify/backup/
|
|
3853
|
+
*/
|
|
3854
|
+
declare function createTotpVerifyBackupCreate(data: VerifyBackupRequest, client?: any): Promise<VerifyResponse>;
|
|
3855
|
+
|
|
3856
|
+
/**
|
|
3857
|
+
* Typed Fetchers - Universal API functions
|
|
3858
|
+
*
|
|
3859
|
+
* Auto-generated from OpenAPI specification.
|
|
3860
|
+
* These functions work in any JavaScript environment.
|
|
3861
|
+
*
|
|
3862
|
+
* Features:
|
|
3863
|
+
* - Runtime validation with Zod
|
|
3864
|
+
* - Type-safe parameters and responses
|
|
3865
|
+
* - Works with any data-fetching library (SWR, React Query, etc)
|
|
3866
|
+
* - Server Component compatible
|
|
3867
|
+
*
|
|
3868
|
+
* Usage:
|
|
3869
|
+
* ```typescript
|
|
3870
|
+
* import * as fetchers from './fetchers'
|
|
3871
|
+
*
|
|
3872
|
+
* // Direct usage
|
|
3873
|
+
* const user = await fetchers.getUser(1)
|
|
3874
|
+
*
|
|
3875
|
+
* // With SWR
|
|
3876
|
+
* const { data } = useSWR('user-1', () => fetchers.getUser(1))
|
|
3877
|
+
*
|
|
3878
|
+
* // With React Query
|
|
3879
|
+
* const { data } = useQuery(['user', 1], () => fetchers.getUser(1))
|
|
3880
|
+
* ```
|
|
3881
|
+
*/
|
|
3882
|
+
|
|
3883
|
+
declare const index$5_createTotpBackupCodesRegenerateCreate: typeof createTotpBackupCodesRegenerateCreate;
|
|
3884
|
+
declare const index$5_createTotpDisableCreate: typeof createTotpDisableCreate;
|
|
3885
|
+
declare const index$5_createTotpSetupConfirmCreate: typeof createTotpSetupConfirmCreate;
|
|
3886
|
+
declare const index$5_createTotpSetupCreate: typeof createTotpSetupCreate;
|
|
3887
|
+
declare const index$5_createTotpVerifyBackupCreate: typeof createTotpVerifyBackupCreate;
|
|
3888
|
+
declare const index$5_createTotpVerifyCreate: typeof createTotpVerifyCreate;
|
|
3889
|
+
declare const index$5_deleteTotpDevicesDestroy: typeof deleteTotpDevicesDestroy;
|
|
3890
|
+
declare const index$5_getTotpBackupCodesRetrieve: typeof getTotpBackupCodesRetrieve;
|
|
3891
|
+
declare const index$5_getTotpDevicesList: typeof getTotpDevicesList;
|
|
3892
|
+
declare namespace index$5 {
|
|
3893
|
+
export { index$5_createTotpBackupCodesRegenerateCreate as createTotpBackupCodesRegenerateCreate, index$5_createTotpDisableCreate as createTotpDisableCreate, index$5_createTotpSetupConfirmCreate as createTotpSetupConfirmCreate, index$5_createTotpSetupCreate as createTotpSetupCreate, index$5_createTotpVerifyBackupCreate as createTotpVerifyBackupCreate, index$5_createTotpVerifyCreate as createTotpVerifyCreate, index$5_deleteTotpDevicesDestroy as deleteTotpDevicesDestroy, index$5_getTotpBackupCodesRetrieve as getTotpBackupCodesRetrieve, index$5_getTotpDevicesList as getTotpDevicesList };
|
|
3894
|
+
}
|
|
3895
|
+
|
|
3896
|
+
/**
|
|
3897
|
+
* Django CFG API - API Client with JWT Management
|
|
3898
|
+
*
|
|
3899
|
+
* Usage:
|
|
3900
|
+
* ```typescript
|
|
3901
|
+
* import { API } from './api';
|
|
3902
|
+
*
|
|
3903
|
+
* const api = new API('https://api.example.com');
|
|
3904
|
+
*
|
|
3905
|
+
* // Set JWT token
|
|
3906
|
+
* api.setToken('your-jwt-token', 'refresh-token');
|
|
3907
|
+
*
|
|
3908
|
+
* // Use API
|
|
3909
|
+
* const posts = await api.posts.list();
|
|
3910
|
+
* const user = await api.users.retrieve(1);
|
|
3911
|
+
*
|
|
3912
|
+
* // Check authentication
|
|
3913
|
+
* if (api.isAuthenticated()) {
|
|
3914
|
+
* // ...
|
|
3915
|
+
* }
|
|
3916
|
+
*
|
|
3917
|
+
* // Custom storage with logging (for Electron/Node.js)
|
|
3918
|
+
* import { MemoryStorageAdapter, APILogger } from './storage';
|
|
3919
|
+
* const logger = new APILogger({ enabled: true, logLevel: 'debug' });
|
|
3920
|
+
* const api = new API('https://api.example.com', {
|
|
3921
|
+
* storage: new MemoryStorageAdapter(logger),
|
|
3922
|
+
* loggerConfig: { enabled: true, logLevel: 'debug' }
|
|
3923
|
+
* });
|
|
3924
|
+
*
|
|
3925
|
+
* // Get OpenAPI schema
|
|
3926
|
+
* const schema = api.getSchema();
|
|
3927
|
+
* ```
|
|
3928
|
+
*/
|
|
3929
|
+
|
|
3930
|
+
interface APIOptions$1 {
|
|
3931
|
+
/** Custom storage adapter (defaults to LocalStorageAdapter) */
|
|
3932
|
+
storage?: StorageAdapter$1;
|
|
3933
|
+
/** Retry configuration for failed requests */
|
|
3934
|
+
retryConfig?: RetryConfig$1;
|
|
3935
|
+
/** Logger configuration */
|
|
3936
|
+
loggerConfig?: Partial<LoggerConfig$1>;
|
|
3937
|
+
}
|
|
3938
|
+
declare class API$1 {
|
|
3939
|
+
private baseUrl;
|
|
3940
|
+
private _client;
|
|
3941
|
+
private _token;
|
|
3942
|
+
private _refreshToken;
|
|
3943
|
+
private storage;
|
|
3944
|
+
private options?;
|
|
3945
|
+
backup_codes: BackupCodes;
|
|
3946
|
+
totp_management: TotpManagement;
|
|
3947
|
+
totp_setup: TotpSetup;
|
|
3948
|
+
totp_verification: TotpVerification;
|
|
3949
|
+
totp: Totp;
|
|
3950
|
+
constructor(baseUrl: string, options?: APIOptions$1);
|
|
3951
|
+
private _loadTokensFromStorage;
|
|
3952
|
+
private _reinitClients;
|
|
3953
|
+
private _injectAuthHeader;
|
|
3954
|
+
/**
|
|
3955
|
+
* Get current JWT token
|
|
3956
|
+
*/
|
|
3957
|
+
getToken(): string | null;
|
|
3958
|
+
/**
|
|
3959
|
+
* Get current refresh token
|
|
3960
|
+
*/
|
|
3961
|
+
getRefreshToken(): string | null;
|
|
3962
|
+
/**
|
|
3963
|
+
* Set JWT token and refresh token
|
|
3964
|
+
* @param token - JWT access token
|
|
3965
|
+
* @param refreshToken - JWT refresh token (optional)
|
|
3966
|
+
*/
|
|
3967
|
+
setToken(token: string, refreshToken?: string): void;
|
|
3968
|
+
/**
|
|
3969
|
+
* Clear all tokens
|
|
3970
|
+
*/
|
|
3971
|
+
clearTokens(): void;
|
|
3972
|
+
/**
|
|
3973
|
+
* Check if user is authenticated
|
|
3974
|
+
*/
|
|
3975
|
+
isAuthenticated(): boolean;
|
|
3976
|
+
/**
|
|
3977
|
+
* Update base URL and reinitialize clients
|
|
3978
|
+
* @param url - New base URL
|
|
3979
|
+
*/
|
|
3980
|
+
setBaseUrl(url: string): void;
|
|
3981
|
+
/**
|
|
3982
|
+
* Get current base URL
|
|
3983
|
+
*/
|
|
3984
|
+
getBaseUrl(): string;
|
|
3985
|
+
/**
|
|
3986
|
+
* Get OpenAPI schema path
|
|
3987
|
+
* @returns Path to the OpenAPI schema JSON file
|
|
3988
|
+
*
|
|
3989
|
+
* Note: The OpenAPI schema is available in the schema.json file.
|
|
3990
|
+
* You can load it dynamically using:
|
|
3991
|
+
* ```typescript
|
|
3992
|
+
* const schema = await fetch('./schema.json').then(r => r.json());
|
|
3993
|
+
* // or using fs in Node.js:
|
|
3994
|
+
* // const schema = JSON.parse(fs.readFileSync('./schema.json', 'utf-8'));
|
|
3995
|
+
* ```
|
|
3996
|
+
*/
|
|
3997
|
+
getSchemaPath(): string;
|
|
3998
|
+
}
|
|
3999
|
+
|
|
4000
|
+
/**
|
|
4001
|
+
* Request serializer for sending push notifications.
|
|
4002
|
+
*
|
|
4003
|
+
* Request model (no read-only fields).
|
|
4004
|
+
*/
|
|
4005
|
+
interface SendPushRequestRequest$1 {
|
|
4006
|
+
/** Notification title */
|
|
4007
|
+
title: string;
|
|
4008
|
+
/** Notification body */
|
|
4009
|
+
body: string;
|
|
4010
|
+
/** Notification icon URL */
|
|
4011
|
+
icon?: string | null;
|
|
4012
|
+
/** URL to open on click */
|
|
4013
|
+
url?: string | null;
|
|
4014
|
+
}
|
|
4015
|
+
/**
|
|
4016
|
+
* Response serializer for send push endpoint.
|
|
4017
|
+
*
|
|
4018
|
+
* Response model (includes read-only fields).
|
|
4019
|
+
*/
|
|
4020
|
+
interface SendPushResponse$1 {
|
|
4021
|
+
/** Whether send was successful */
|
|
4022
|
+
success: boolean;
|
|
4023
|
+
/** Number of devices notification was sent to */
|
|
4024
|
+
sent_to: number;
|
|
4025
|
+
}
|
|
4026
|
+
/**
|
|
4027
|
+
* Request serializer for subscribing to push notifications.
|
|
4028
|
+
*
|
|
4029
|
+
* Request model (no read-only fields).
|
|
4030
|
+
*/
|
|
4031
|
+
interface SubscribeRequestRequest$1 {
|
|
4032
|
+
/** Push service endpoint URL from browser */
|
|
4033
|
+
endpoint: string;
|
|
4034
|
+
/** Encryption keys (p256dh and auth) */
|
|
4035
|
+
keys: Record<string, any>;
|
|
4036
|
+
}
|
|
4037
|
+
/**
|
|
4038
|
+
* Response serializer for subscription endpoint.
|
|
4039
|
+
*
|
|
4040
|
+
* Response model (includes read-only fields).
|
|
4041
|
+
*/
|
|
4042
|
+
interface SubscribeResponse$1 {
|
|
4043
|
+
/** Whether subscription was successful */
|
|
4044
|
+
success: boolean;
|
|
4045
|
+
/** ID of the subscription */
|
|
4046
|
+
subscription_id: number;
|
|
4047
|
+
/** Whether subscription was newly created */
|
|
4048
|
+
created: boolean;
|
|
4049
|
+
}
|
|
4050
|
+
/**
|
|
4051
|
+
* Response serializer for VAPID public key endpoint.
|
|
4052
|
+
*
|
|
4053
|
+
* Response model (includes read-only fields).
|
|
4054
|
+
*/
|
|
4055
|
+
interface VapidPublicKeyResponse$1 {
|
|
4056
|
+
/** VAPID public key for client subscription */
|
|
4057
|
+
publicKey: string;
|
|
4058
|
+
}
|
|
4059
|
+
|
|
4060
|
+
/**
|
|
4061
|
+
* API endpoints for Web Push.
|
|
4062
|
+
*/
|
|
4063
|
+
declare class WebPush {
|
|
4064
|
+
private client;
|
|
4065
|
+
constructor(client: any);
|
|
4066
|
+
/**
|
|
4067
|
+
* Send push notification
|
|
4068
|
+
*
|
|
4069
|
+
* Send push notification to all active subscriptions for the authenticated
|
|
4070
|
+
* user.
|
|
4071
|
+
*/
|
|
4072
|
+
webpushSendCreate(data: SendPushRequestRequest$1): Promise<SendPushResponse$1>;
|
|
4073
|
+
/**
|
|
4074
|
+
* Subscribe to push notifications
|
|
4075
|
+
*
|
|
4076
|
+
* Save push subscription from browser for the authenticated user.
|
|
4077
|
+
*/
|
|
4078
|
+
webpushSubscribeCreate(data: SubscribeRequestRequest$1): Promise<SubscribeResponse$1>;
|
|
4079
|
+
/**
|
|
4080
|
+
* Get VAPID public key
|
|
4081
|
+
*
|
|
4082
|
+
* Get VAPID public key for client subscription.
|
|
4083
|
+
*/
|
|
4084
|
+
webpushVapidRetrieve(): Promise<VapidPublicKeyResponse$1>;
|
|
4085
|
+
}
|
|
4086
|
+
|
|
4087
|
+
/**
|
|
4088
|
+
* API Logger with Consola
|
|
4089
|
+
* Beautiful console logging for API requests and responses
|
|
4090
|
+
*
|
|
4091
|
+
* Installation:
|
|
4092
|
+
* npm install consola
|
|
4093
|
+
*/
|
|
4094
|
+
|
|
4095
|
+
/**
|
|
4096
|
+
* Logger configuration
|
|
4097
|
+
*/
|
|
4098
|
+
interface LoggerConfig {
|
|
4099
|
+
/** Enable logging */
|
|
4100
|
+
enabled: boolean;
|
|
4101
|
+
/** Log requests */
|
|
4102
|
+
logRequests: boolean;
|
|
4103
|
+
/** Log responses */
|
|
4104
|
+
logResponses: boolean;
|
|
4105
|
+
/** Log errors */
|
|
4106
|
+
logErrors: boolean;
|
|
4107
|
+
/** Log request/response bodies */
|
|
4108
|
+
logBodies: boolean;
|
|
4109
|
+
/** Log headers (excluding sensitive ones) */
|
|
4110
|
+
logHeaders: boolean;
|
|
4111
|
+
/** Custom consola instance */
|
|
4112
|
+
consola?: ConsolaInstance;
|
|
4113
|
+
}
|
|
4114
|
+
|
|
4115
|
+
/**
|
|
4116
|
+
* Retry Configuration and Utilities
|
|
4117
|
+
*
|
|
4118
|
+
* Provides automatic retry logic for failed HTTP requests using p-retry.
|
|
4119
|
+
* Retries only on network errors and server errors (5xx), not client errors (4xx).
|
|
4120
|
+
*/
|
|
4121
|
+
/**
|
|
4122
|
+
* Information about a failed retry attempt.
|
|
4123
|
+
*/
|
|
4124
|
+
interface FailedAttemptInfo {
|
|
4125
|
+
/** The error that caused the failure */
|
|
4126
|
+
error: Error;
|
|
4127
|
+
/** The attempt number (1-indexed) */
|
|
4128
|
+
attemptNumber: number;
|
|
4129
|
+
/** Number of retries left */
|
|
4130
|
+
retriesLeft: number;
|
|
4131
|
+
}
|
|
4132
|
+
/**
|
|
4133
|
+
* Retry configuration options.
|
|
4134
|
+
*
|
|
4135
|
+
* Uses exponential backoff with jitter by default to avoid thundering herd.
|
|
4136
|
+
*/
|
|
4137
|
+
interface RetryConfig {
|
|
4138
|
+
/**
|
|
4139
|
+
* Maximum number of retry attempts.
|
|
4140
|
+
* @default 3
|
|
4141
|
+
*/
|
|
4142
|
+
retries?: number;
|
|
4143
|
+
/**
|
|
4144
|
+
* Exponential backoff factor.
|
|
4145
|
+
* @default 2
|
|
4146
|
+
*/
|
|
4147
|
+
factor?: number;
|
|
4148
|
+
/**
|
|
4149
|
+
* Minimum wait time between retries (ms).
|
|
4150
|
+
* @default 1000
|
|
4151
|
+
*/
|
|
4152
|
+
minTimeout?: number;
|
|
4153
|
+
/**
|
|
4154
|
+
* Maximum wait time between retries (ms).
|
|
4155
|
+
* @default 60000
|
|
4156
|
+
*/
|
|
4157
|
+
maxTimeout?: number;
|
|
4158
|
+
/**
|
|
4159
|
+
* Add randomness to wait times (jitter).
|
|
4160
|
+
* Helps avoid thundering herd problem.
|
|
4161
|
+
* @default true
|
|
4162
|
+
*/
|
|
4163
|
+
randomize?: boolean;
|
|
4164
|
+
/**
|
|
4165
|
+
* Callback called on each failed attempt.
|
|
4166
|
+
*/
|
|
4167
|
+
onFailedAttempt?: (info: FailedAttemptInfo) => void;
|
|
4168
|
+
}
|
|
4169
|
+
|
|
4170
|
+
/**
|
|
4171
|
+
* Storage adapters for cross-platform token storage.
|
|
4172
|
+
*
|
|
4173
|
+
* Supports:
|
|
4174
|
+
* - LocalStorage (browser)
|
|
4175
|
+
* - Cookies (SSR/browser)
|
|
4176
|
+
* - Memory (Node.js/Electron/testing)
|
|
4177
|
+
*/
|
|
4178
|
+
|
|
4179
|
+
/**
|
|
4180
|
+
* Storage adapter interface for cross-platform token storage.
|
|
4181
|
+
*/
|
|
4182
|
+
interface StorageAdapter {
|
|
4183
|
+
getItem(key: string): string | null;
|
|
4184
|
+
setItem(key: string, value: string): void;
|
|
4185
|
+
removeItem(key: string): void;
|
|
4186
|
+
}
|
|
4187
|
+
|
|
4188
|
+
/**
|
|
4189
|
+
* Zod schema for SendPushRequestRequest
|
|
4190
|
+
*
|
|
4191
|
+
* This schema provides runtime validation and type inference.
|
|
4192
|
+
* * Request serializer for sending push notifications.
|
|
4193
|
+
* */
|
|
4194
|
+
|
|
4195
|
+
/**
|
|
4196
|
+
* Request serializer for sending push notifications.
|
|
4197
|
+
*/
|
|
4198
|
+
declare const SendPushRequestRequestSchema: z.ZodObject<{
|
|
4199
|
+
title: z.ZodString;
|
|
4200
|
+
body: z.ZodString;
|
|
4201
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>>;
|
|
4202
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>>;
|
|
4203
|
+
}, z.core.$strip>;
|
|
4204
|
+
/**
|
|
4205
|
+
* Infer TypeScript type from Zod schema
|
|
4206
|
+
*/
|
|
4207
|
+
type SendPushRequestRequest = z.infer<typeof SendPushRequestRequestSchema>;
|
|
4208
|
+
|
|
4209
|
+
/**
|
|
4210
|
+
* Zod schema for SendPushResponse
|
|
4211
|
+
*
|
|
4212
|
+
* This schema provides runtime validation and type inference.
|
|
4213
|
+
* * Response serializer for send push endpoint.
|
|
4214
|
+
* */
|
|
4215
|
+
|
|
4216
|
+
/**
|
|
4217
|
+
* Response serializer for send push endpoint.
|
|
4218
|
+
*/
|
|
4219
|
+
declare const SendPushResponseSchema: z.ZodObject<{
|
|
4220
|
+
success: z.ZodBoolean;
|
|
4221
|
+
sent_to: z.ZodInt;
|
|
4222
|
+
}, z.core.$strip>;
|
|
4223
|
+
/**
|
|
4224
|
+
* Infer TypeScript type from Zod schema
|
|
4225
|
+
*/
|
|
4226
|
+
type SendPushResponse = z.infer<typeof SendPushResponseSchema>;
|
|
4227
|
+
|
|
4228
|
+
/**
|
|
4229
|
+
* Zod schema for SubscribeRequestRequest
|
|
4230
|
+
*
|
|
4231
|
+
* This schema provides runtime validation and type inference.
|
|
4232
|
+
* * Request serializer for subscribing to push notifications.
|
|
4233
|
+
* */
|
|
4234
|
+
|
|
4235
|
+
/**
|
|
4236
|
+
* Request serializer for subscribing to push notifications.
|
|
4237
|
+
*/
|
|
4238
|
+
declare const SubscribeRequestRequestSchema: z.ZodObject<{
|
|
4239
|
+
endpoint: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
|
|
4240
|
+
keys: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
4241
|
+
}, z.core.$strip>;
|
|
4242
|
+
/**
|
|
4243
|
+
* Infer TypeScript type from Zod schema
|
|
4244
|
+
*/
|
|
4245
|
+
type SubscribeRequestRequest = z.infer<typeof SubscribeRequestRequestSchema>;
|
|
4246
|
+
|
|
4247
|
+
/**
|
|
4248
|
+
* Zod schema for SubscribeResponse
|
|
4249
|
+
*
|
|
4250
|
+
* This schema provides runtime validation and type inference.
|
|
4251
|
+
* * Response serializer for subscription endpoint.
|
|
4252
|
+
* */
|
|
4253
|
+
|
|
4254
|
+
/**
|
|
4255
|
+
* Response serializer for subscription endpoint.
|
|
3288
4256
|
*/
|
|
3289
4257
|
declare const SubscribeResponseSchema: z.ZodObject<{
|
|
3290
4258
|
success: z.ZodBoolean;
|
|
@@ -3332,18 +4300,18 @@ type VapidPublicKeyResponse = z.infer<typeof VapidPublicKeyResponseSchema>;
|
|
|
3332
4300
|
* ```
|
|
3333
4301
|
*/
|
|
3334
4302
|
|
|
3335
|
-
type index$
|
|
3336
|
-
declare const index$
|
|
3337
|
-
type index$
|
|
3338
|
-
declare const index$
|
|
3339
|
-
type index$
|
|
3340
|
-
declare const index$
|
|
3341
|
-
type index$
|
|
3342
|
-
declare const index$
|
|
3343
|
-
type index$
|
|
3344
|
-
declare const index$
|
|
3345
|
-
declare namespace index$
|
|
3346
|
-
export { type index$
|
|
4303
|
+
type index$4_SendPushRequestRequest = SendPushRequestRequest;
|
|
4304
|
+
declare const index$4_SendPushRequestRequestSchema: typeof SendPushRequestRequestSchema;
|
|
4305
|
+
type index$4_SendPushResponse = SendPushResponse;
|
|
4306
|
+
declare const index$4_SendPushResponseSchema: typeof SendPushResponseSchema;
|
|
4307
|
+
type index$4_SubscribeRequestRequest = SubscribeRequestRequest;
|
|
4308
|
+
declare const index$4_SubscribeRequestRequestSchema: typeof SubscribeRequestRequestSchema;
|
|
4309
|
+
type index$4_SubscribeResponse = SubscribeResponse;
|
|
4310
|
+
declare const index$4_SubscribeResponseSchema: typeof SubscribeResponseSchema;
|
|
4311
|
+
type index$4_VapidPublicKeyResponse = VapidPublicKeyResponse;
|
|
4312
|
+
declare const index$4_VapidPublicKeyResponseSchema: typeof VapidPublicKeyResponseSchema;
|
|
4313
|
+
declare namespace index$4 {
|
|
4314
|
+
export { type index$4_SendPushRequestRequest as SendPushRequestRequest, index$4_SendPushRequestRequestSchema as SendPushRequestRequestSchema, type index$4_SendPushResponse as SendPushResponse, index$4_SendPushResponseSchema as SendPushResponseSchema, type index$4_SubscribeRequestRequest as SubscribeRequestRequest, index$4_SubscribeRequestRequestSchema as SubscribeRequestRequestSchema, type index$4_SubscribeResponse as SubscribeResponse, index$4_SubscribeResponseSchema as SubscribeResponseSchema, type index$4_VapidPublicKeyResponse as VapidPublicKeyResponse, index$4_VapidPublicKeyResponseSchema as VapidPublicKeyResponseSchema };
|
|
3347
4315
|
}
|
|
3348
4316
|
|
|
3349
4317
|
/**
|
|
@@ -3395,11 +4363,11 @@ declare function getWebpushVapidRetrieve(client?: any): Promise<VapidPublicKeyRe
|
|
|
3395
4363
|
* ```
|
|
3396
4364
|
*/
|
|
3397
4365
|
|
|
3398
|
-
declare const index$
|
|
3399
|
-
declare const index$
|
|
3400
|
-
declare const index$
|
|
3401
|
-
declare namespace index$
|
|
3402
|
-
export { index$
|
|
4366
|
+
declare const index$3_createWebpushSendCreate: typeof createWebpushSendCreate;
|
|
4367
|
+
declare const index$3_createWebpushSubscribeCreate: typeof createWebpushSubscribeCreate;
|
|
4368
|
+
declare const index$3_getWebpushVapidRetrieve: typeof getWebpushVapidRetrieve;
|
|
4369
|
+
declare namespace index$3 {
|
|
4370
|
+
export { index$3_createWebpushSendCreate as createWebpushSendCreate, index$3_createWebpushSubscribeCreate as createWebpushSubscribeCreate, index$3_getWebpushVapidRetrieve as getWebpushVapidRetrieve };
|
|
3403
4371
|
}
|
|
3404
4372
|
|
|
3405
4373
|
/**
|
|
@@ -3508,7 +4476,7 @@ declare class API {
|
|
|
3508
4476
|
* @method POST
|
|
3509
4477
|
* @path /cfg/accounts/token/refresh/
|
|
3510
4478
|
*/
|
|
3511
|
-
declare function useCreateAccountsTokenRefreshCreate(): (data: TokenRefreshRequest, client?: API$
|
|
4479
|
+
declare function useCreateAccountsTokenRefreshCreate(): (data: TokenRefreshRequest, client?: API$3) => Promise<TokenRefresh>;
|
|
3512
4480
|
|
|
3513
4481
|
/**
|
|
3514
4482
|
* SWR Hooks for Oauth
|
|
@@ -3533,35 +4501,35 @@ declare function useCreateAccountsTokenRefreshCreate(): (data: TokenRefreshReque
|
|
|
3533
4501
|
* @method GET
|
|
3534
4502
|
* @path /cfg/accounts/oauth/connections/
|
|
3535
4503
|
*/
|
|
3536
|
-
declare function useAccountsOauthConnectionsList(client?: API$
|
|
4504
|
+
declare function useAccountsOauthConnectionsList(client?: API$3): ReturnType<typeof useSWR<any>>;
|
|
3537
4505
|
/**
|
|
3538
4506
|
* Disconnect OAuth provider
|
|
3539
4507
|
*
|
|
3540
4508
|
* @method POST
|
|
3541
4509
|
* @path /cfg/accounts/oauth/disconnect/
|
|
3542
4510
|
*/
|
|
3543
|
-
declare function useCreateAccountsOauthDisconnectCreate(): (data: OAuthDisconnectRequestRequest, client?: API$
|
|
4511
|
+
declare function useCreateAccountsOauthDisconnectCreate(): (data: OAuthDisconnectRequestRequest, client?: API$3) => Promise<any>;
|
|
3544
4512
|
/**
|
|
3545
4513
|
* Start GitHub OAuth
|
|
3546
4514
|
*
|
|
3547
4515
|
* @method POST
|
|
3548
4516
|
* @path /cfg/accounts/oauth/github/authorize/
|
|
3549
4517
|
*/
|
|
3550
|
-
declare function useCreateAccountsOauthGithubAuthorizeCreate(): (data: OAuthAuthorizeRequestRequest, client?: API$
|
|
4518
|
+
declare function useCreateAccountsOauthGithubAuthorizeCreate(): (data: OAuthAuthorizeRequestRequest, client?: API$3) => Promise<OAuthAuthorizeResponse>;
|
|
3551
4519
|
/**
|
|
3552
4520
|
* Complete GitHub OAuth
|
|
3553
4521
|
*
|
|
3554
4522
|
* @method POST
|
|
3555
4523
|
* @path /cfg/accounts/oauth/github/callback/
|
|
3556
4524
|
*/
|
|
3557
|
-
declare function useCreateAccountsOauthGithubCallbackCreate(): (data: OAuthCallbackRequestRequest, client?: API$
|
|
4525
|
+
declare function useCreateAccountsOauthGithubCallbackCreate(): (data: OAuthCallbackRequestRequest, client?: API$3) => Promise<OAuthTokenResponse>;
|
|
3558
4526
|
/**
|
|
3559
4527
|
* List OAuth providers
|
|
3560
4528
|
*
|
|
3561
4529
|
* @method GET
|
|
3562
4530
|
* @path /cfg/accounts/oauth/providers/
|
|
3563
4531
|
*/
|
|
3564
|
-
declare function useAccountsOauthProvidersRetrieve(client?: API$
|
|
4532
|
+
declare function useAccountsOauthProvidersRetrieve(client?: API$3): ReturnType<typeof useSWR<OAuthProvidersResponse>>;
|
|
3565
4533
|
|
|
3566
4534
|
/**
|
|
3567
4535
|
* SWR Hooks for User Profile
|
|
@@ -3586,42 +4554,42 @@ declare function useAccountsOauthProvidersRetrieve(client?: API$2): ReturnType<t
|
|
|
3586
4554
|
* @method GET
|
|
3587
4555
|
* @path /cfg/accounts/profile/
|
|
3588
4556
|
*/
|
|
3589
|
-
declare function useAccountsProfileRetrieve(client?: API$
|
|
4557
|
+
declare function useAccountsProfileRetrieve(client?: API$3): ReturnType<typeof useSWR<User>>;
|
|
3590
4558
|
/**
|
|
3591
4559
|
* Upload user avatar
|
|
3592
4560
|
*
|
|
3593
4561
|
* @method POST
|
|
3594
4562
|
* @path /cfg/accounts/profile/avatar/
|
|
3595
4563
|
*/
|
|
3596
|
-
declare function useCreateAccountsProfileAvatarCreate(): (data: any, client?: API$
|
|
4564
|
+
declare function useCreateAccountsProfileAvatarCreate(): (data: any, client?: API$3) => Promise<User>;
|
|
3597
4565
|
/**
|
|
3598
4566
|
* Partial update user profile
|
|
3599
4567
|
*
|
|
3600
4568
|
* @method PUT
|
|
3601
4569
|
* @path /cfg/accounts/profile/partial/
|
|
3602
4570
|
*/
|
|
3603
|
-
declare function usePartialUpdateAccountsProfilePartialUpdate(): (data: UserProfileUpdateRequest, client?: API$
|
|
4571
|
+
declare function usePartialUpdateAccountsProfilePartialUpdate(): (data: UserProfileUpdateRequest, client?: API$3) => Promise<User>;
|
|
3604
4572
|
/**
|
|
3605
4573
|
* Partial update user profile
|
|
3606
4574
|
*
|
|
3607
4575
|
* @method PATCH
|
|
3608
4576
|
* @path /cfg/accounts/profile/partial/
|
|
3609
4577
|
*/
|
|
3610
|
-
declare function usePartialUpdateAccountsProfilePartialPartialUpdate(): (data?: PatchedUserProfileUpdateRequest, client?: API$
|
|
4578
|
+
declare function usePartialUpdateAccountsProfilePartialPartialUpdate(): (data?: PatchedUserProfileUpdateRequest, client?: API$3) => Promise<User>;
|
|
3611
4579
|
/**
|
|
3612
4580
|
* Update user profile
|
|
3613
4581
|
*
|
|
3614
4582
|
* @method PUT
|
|
3615
4583
|
* @path /cfg/accounts/profile/update/
|
|
3616
4584
|
*/
|
|
3617
|
-
declare function useUpdateAccountsProfileUpdateUpdate(): (data: UserProfileUpdateRequest, client?: API$
|
|
4585
|
+
declare function useUpdateAccountsProfileUpdateUpdate(): (data: UserProfileUpdateRequest, client?: API$3) => Promise<User>;
|
|
3618
4586
|
/**
|
|
3619
4587
|
* Update user profile
|
|
3620
4588
|
*
|
|
3621
4589
|
* @method PATCH
|
|
3622
4590
|
* @path /cfg/accounts/profile/update/
|
|
3623
4591
|
*/
|
|
3624
|
-
declare function usePartialUpdateAccountsProfileUpdatePartialUpdate(): (data?: PatchedUserProfileUpdateRequest, client?: API$
|
|
4592
|
+
declare function usePartialUpdateAccountsProfileUpdatePartialUpdate(): (data?: PatchedUserProfileUpdateRequest, client?: API$3) => Promise<User>;
|
|
3625
4593
|
|
|
3626
4594
|
/**
|
|
3627
4595
|
* API operation
|
|
@@ -3629,14 +4597,14 @@ declare function usePartialUpdateAccountsProfileUpdatePartialUpdate(): (data?: P
|
|
|
3629
4597
|
* @method POST
|
|
3630
4598
|
* @path /cfg/accounts/otp/request/
|
|
3631
4599
|
*/
|
|
3632
|
-
declare function useCreateAccountsOtpRequestCreate(): (data: OTPRequestRequest, client?: API$
|
|
4600
|
+
declare function useCreateAccountsOtpRequestCreate(): (data: OTPRequestRequest, client?: API$3) => Promise<OTPRequestResponse>;
|
|
3633
4601
|
/**
|
|
3634
4602
|
* API operation
|
|
3635
4603
|
*
|
|
3636
4604
|
* @method POST
|
|
3637
4605
|
* @path /cfg/accounts/otp/verify/
|
|
3638
4606
|
*/
|
|
3639
|
-
declare function useCreateAccountsOtpVerifyCreate(): (data: OTPVerifyRequest, client?: API$
|
|
4607
|
+
declare function useCreateAccountsOtpVerifyCreate(): (data: OTPVerifyRequest, client?: API$3) => Promise<OTPVerifyResponse>;
|
|
3640
4608
|
|
|
3641
4609
|
/**
|
|
3642
4610
|
* SWR Hooks for Web Push
|
|
@@ -3702,11 +4670,11 @@ declare function useWebpushVapidRetrieve(client?: API): ReturnType<typeof useSWR
|
|
|
3702
4670
|
* ```
|
|
3703
4671
|
*/
|
|
3704
4672
|
|
|
3705
|
-
declare const index$
|
|
3706
|
-
declare const index$
|
|
3707
|
-
declare const index$
|
|
3708
|
-
declare namespace index$
|
|
3709
|
-
export { index$
|
|
4673
|
+
declare const index$2_useCreateWebpushSendCreate: typeof useCreateWebpushSendCreate;
|
|
4674
|
+
declare const index$2_useCreateWebpushSubscribeCreate: typeof useCreateWebpushSubscribeCreate;
|
|
4675
|
+
declare const index$2_useWebpushVapidRetrieve: typeof useWebpushVapidRetrieve;
|
|
4676
|
+
declare namespace index$2 {
|
|
4677
|
+
export { index$2_useCreateWebpushSendCreate as useCreateWebpushSendCreate, index$2_useCreateWebpushSubscribeCreate as useCreateWebpushSubscribeCreate, index$2_useWebpushVapidRetrieve as useWebpushVapidRetrieve };
|
|
3710
4678
|
}
|
|
3711
4679
|
|
|
3712
4680
|
/**
|
|
@@ -3715,42 +4683,42 @@ declare namespace index$1 {
|
|
|
3715
4683
|
* @method POST
|
|
3716
4684
|
* @path /cfg/centrifugo/server/auth/token/
|
|
3717
4685
|
*/
|
|
3718
|
-
declare function useCreateCentrifugoServerAuthTokenCreate(): (client?: API$
|
|
4686
|
+
declare function useCreateCentrifugoServerAuthTokenCreate(): (client?: API$2) => Promise<any>;
|
|
3719
4687
|
/**
|
|
3720
4688
|
* List active channels
|
|
3721
4689
|
*
|
|
3722
4690
|
* @method POST
|
|
3723
4691
|
* @path /cfg/centrifugo/server/channels/
|
|
3724
4692
|
*/
|
|
3725
|
-
declare function useCreateCentrifugoServerChannelsCreate(): (data: CentrifugoChannelsRequestRequest, client?: API$
|
|
4693
|
+
declare function useCreateCentrifugoServerChannelsCreate(): (data: CentrifugoChannelsRequestRequest, client?: API$2) => Promise<CentrifugoChannelsResponse>;
|
|
3726
4694
|
/**
|
|
3727
4695
|
* Get channel history
|
|
3728
4696
|
*
|
|
3729
4697
|
* @method POST
|
|
3730
4698
|
* @path /cfg/centrifugo/server/history/
|
|
3731
4699
|
*/
|
|
3732
|
-
declare function useCreateCentrifugoServerHistoryCreate(): (data: CentrifugoHistoryRequestRequest, client?: API$
|
|
4700
|
+
declare function useCreateCentrifugoServerHistoryCreate(): (data: CentrifugoHistoryRequestRequest, client?: API$2) => Promise<CentrifugoHistoryResponse>;
|
|
3733
4701
|
/**
|
|
3734
4702
|
* Get Centrifugo server info
|
|
3735
4703
|
*
|
|
3736
4704
|
* @method POST
|
|
3737
4705
|
* @path /cfg/centrifugo/server/info/
|
|
3738
4706
|
*/
|
|
3739
|
-
declare function useCreateCentrifugoServerInfoCreate(): (client?: API$
|
|
4707
|
+
declare function useCreateCentrifugoServerInfoCreate(): (client?: API$2) => Promise<CentrifugoInfoResponse>;
|
|
3740
4708
|
/**
|
|
3741
4709
|
* Get channel presence
|
|
3742
4710
|
*
|
|
3743
4711
|
* @method POST
|
|
3744
4712
|
* @path /cfg/centrifugo/server/presence/
|
|
3745
4713
|
*/
|
|
3746
|
-
declare function useCreateCentrifugoServerPresenceCreate(): (data: CentrifugoPresenceRequestRequest, client?: API$
|
|
4714
|
+
declare function useCreateCentrifugoServerPresenceCreate(): (data: CentrifugoPresenceRequestRequest, client?: API$2) => Promise<CentrifugoPresenceResponse>;
|
|
3747
4715
|
/**
|
|
3748
4716
|
* Get channel presence statistics
|
|
3749
4717
|
*
|
|
3750
4718
|
* @method POST
|
|
3751
4719
|
* @path /cfg/centrifugo/server/presence-stats/
|
|
3752
4720
|
*/
|
|
3753
|
-
declare function useCreateCentrifugoServerPresenceStatsCreate(): (data: CentrifugoPresenceStatsRequestRequest, client?: API$
|
|
4721
|
+
declare function useCreateCentrifugoServerPresenceStatsCreate(): (data: CentrifugoPresenceStatsRequestRequest, client?: API$2) => Promise<CentrifugoPresenceStatsResponse>;
|
|
3754
4722
|
|
|
3755
4723
|
/**
|
|
3756
4724
|
* SWR Hooks for Centrifugo Auth
|
|
@@ -3775,7 +4743,7 @@ declare function useCreateCentrifugoServerPresenceStatsCreate(): (data: Centrifu
|
|
|
3775
4743
|
* @method GET
|
|
3776
4744
|
* @path /cfg/centrifugo/auth/token/
|
|
3777
4745
|
*/
|
|
3778
|
-
declare function useCentrifugoAuthTokenRetrieve(client?: API$
|
|
4746
|
+
declare function useCentrifugoAuthTokenRetrieve(client?: API$2): ReturnType<typeof useSWR<ConnectionTokenResponse>>;
|
|
3779
4747
|
|
|
3780
4748
|
/**
|
|
3781
4749
|
* SWR Hooks for Centrifugo Monitoring
|
|
@@ -3802,14 +4770,14 @@ declare function useCentrifugoAuthTokenRetrieve(client?: API$1): ReturnType<type
|
|
|
3802
4770
|
*/
|
|
3803
4771
|
declare function useCentrifugoMonitorChannelsRetrieve(params?: {
|
|
3804
4772
|
hours?: number;
|
|
3805
|
-
}, client?: API$
|
|
4773
|
+
}, client?: API$2): ReturnType<typeof useSWR<ChannelList>>;
|
|
3806
4774
|
/**
|
|
3807
4775
|
* Get Centrifugo health status
|
|
3808
4776
|
*
|
|
3809
4777
|
* @method GET
|
|
3810
4778
|
* @path /cfg/centrifugo/monitor/health/
|
|
3811
4779
|
*/
|
|
3812
|
-
declare function useCentrifugoMonitorHealthRetrieve(client?: API$
|
|
4780
|
+
declare function useCentrifugoMonitorHealthRetrieve(client?: API$2): ReturnType<typeof useSWR<CentrifugoHealthCheck>>;
|
|
3813
4781
|
/**
|
|
3814
4782
|
* Get overview statistics
|
|
3815
4783
|
*
|
|
@@ -3818,7 +4786,7 @@ declare function useCentrifugoMonitorHealthRetrieve(client?: API$1): ReturnType<
|
|
|
3818
4786
|
*/
|
|
3819
4787
|
declare function useCentrifugoMonitorOverviewRetrieve(params?: {
|
|
3820
4788
|
hours?: number;
|
|
3821
|
-
}, client?: API$
|
|
4789
|
+
}, client?: API$2): ReturnType<typeof useSWR<CentrifugoOverviewStats>>;
|
|
3822
4790
|
/**
|
|
3823
4791
|
* Get recent publishes
|
|
3824
4792
|
*
|
|
@@ -3830,7 +4798,7 @@ declare function useCentrifugoMonitorPublishesList(params?: {
|
|
|
3830
4798
|
page?: number;
|
|
3831
4799
|
page_size?: number;
|
|
3832
4800
|
status?: string;
|
|
3833
|
-
}, client?: API$
|
|
4801
|
+
}, client?: API$2): ReturnType<typeof useSWR<PaginatedPublishList>>;
|
|
3834
4802
|
/**
|
|
3835
4803
|
* Get publish timeline
|
|
3836
4804
|
*
|
|
@@ -3840,7 +4808,7 @@ declare function useCentrifugoMonitorPublishesList(params?: {
|
|
|
3840
4808
|
declare function useCentrifugoMonitorTimelineRetrieve(params?: {
|
|
3841
4809
|
hours?: number;
|
|
3842
4810
|
interval?: string;
|
|
3843
|
-
}, client?: API$
|
|
4811
|
+
}, client?: API$2): ReturnType<typeof useSWR<TimelineResponse>>;
|
|
3844
4812
|
|
|
3845
4813
|
/**
|
|
3846
4814
|
* Publish test message
|
|
@@ -3848,21 +4816,170 @@ declare function useCentrifugoMonitorTimelineRetrieve(params?: {
|
|
|
3848
4816
|
* @method POST
|
|
3849
4817
|
* @path /cfg/centrifugo/testing/publish-test/
|
|
3850
4818
|
*/
|
|
3851
|
-
declare function useCreateCentrifugoTestingPublishTestCreate(): (data: PublishTestRequestRequest, client?: API$
|
|
4819
|
+
declare function useCreateCentrifugoTestingPublishTestCreate(): (data: PublishTestRequestRequest, client?: API$2) => Promise<PublishTestResponse>;
|
|
3852
4820
|
/**
|
|
3853
4821
|
* Publish with database logging
|
|
3854
4822
|
*
|
|
3855
4823
|
* @method POST
|
|
3856
4824
|
* @path /cfg/centrifugo/testing/publish-with-logging/
|
|
3857
4825
|
*/
|
|
3858
|
-
declare function useCreateCentrifugoTestingPublishWithLoggingCreate(): (data: PublishTestRequestRequest, client?: API$
|
|
4826
|
+
declare function useCreateCentrifugoTestingPublishWithLoggingCreate(): (data: PublishTestRequestRequest, client?: API$2) => Promise<PublishTestResponse>;
|
|
3859
4827
|
/**
|
|
3860
4828
|
* Send manual ACK
|
|
3861
4829
|
*
|
|
3862
4830
|
* @method POST
|
|
3863
4831
|
* @path /cfg/centrifugo/testing/send-ack/
|
|
3864
4832
|
*/
|
|
3865
|
-
declare function useCreateCentrifugoTestingSendAckCreate(): (data: ManualAckRequestRequest, client?: API$
|
|
4833
|
+
declare function useCreateCentrifugoTestingSendAckCreate(): (data: ManualAckRequestRequest, client?: API$2) => Promise<ManualAckResponse>;
|
|
4834
|
+
|
|
4835
|
+
/**
|
|
4836
|
+
* SWR Hooks - React data fetching hooks
|
|
4837
|
+
*
|
|
4838
|
+
* Auto-generated from OpenAPI specification.
|
|
4839
|
+
* Powered by SWR for automatic caching and revalidation.
|
|
4840
|
+
*
|
|
4841
|
+
* Features:
|
|
4842
|
+
* - Automatic caching and deduplication
|
|
4843
|
+
* - Revalidation on focus/reconnect
|
|
4844
|
+
* - Optimistic updates
|
|
4845
|
+
* - Type-safe parameters and responses
|
|
4846
|
+
*
|
|
4847
|
+
* Usage:
|
|
4848
|
+
* ```typescript
|
|
4849
|
+
* import * as hooks from './hooks'
|
|
4850
|
+
*
|
|
4851
|
+
* // Query hooks (GET)
|
|
4852
|
+
* const { data, error, isLoading } = hooks.useUsers({ page: 1 })
|
|
4853
|
+
*
|
|
4854
|
+
* // Mutation hooks (POST/PUT/PATCH/DELETE)
|
|
4855
|
+
* const createUser = hooks.useCreateUser()
|
|
4856
|
+
* await createUser({ name: 'John' })
|
|
4857
|
+
* ```
|
|
4858
|
+
*/
|
|
4859
|
+
|
|
4860
|
+
declare const index$1_useCentrifugoAuthTokenRetrieve: typeof useCentrifugoAuthTokenRetrieve;
|
|
4861
|
+
declare const index$1_useCentrifugoMonitorChannelsRetrieve: typeof useCentrifugoMonitorChannelsRetrieve;
|
|
4862
|
+
declare const index$1_useCentrifugoMonitorHealthRetrieve: typeof useCentrifugoMonitorHealthRetrieve;
|
|
4863
|
+
declare const index$1_useCentrifugoMonitorOverviewRetrieve: typeof useCentrifugoMonitorOverviewRetrieve;
|
|
4864
|
+
declare const index$1_useCentrifugoMonitorPublishesList: typeof useCentrifugoMonitorPublishesList;
|
|
4865
|
+
declare const index$1_useCentrifugoMonitorTimelineRetrieve: typeof useCentrifugoMonitorTimelineRetrieve;
|
|
4866
|
+
declare const index$1_useCreateCentrifugoServerAuthTokenCreate: typeof useCreateCentrifugoServerAuthTokenCreate;
|
|
4867
|
+
declare const index$1_useCreateCentrifugoServerChannelsCreate: typeof useCreateCentrifugoServerChannelsCreate;
|
|
4868
|
+
declare const index$1_useCreateCentrifugoServerHistoryCreate: typeof useCreateCentrifugoServerHistoryCreate;
|
|
4869
|
+
declare const index$1_useCreateCentrifugoServerInfoCreate: typeof useCreateCentrifugoServerInfoCreate;
|
|
4870
|
+
declare const index$1_useCreateCentrifugoServerPresenceCreate: typeof useCreateCentrifugoServerPresenceCreate;
|
|
4871
|
+
declare const index$1_useCreateCentrifugoServerPresenceStatsCreate: typeof useCreateCentrifugoServerPresenceStatsCreate;
|
|
4872
|
+
declare const index$1_useCreateCentrifugoTestingPublishTestCreate: typeof useCreateCentrifugoTestingPublishTestCreate;
|
|
4873
|
+
declare const index$1_useCreateCentrifugoTestingPublishWithLoggingCreate: typeof useCreateCentrifugoTestingPublishWithLoggingCreate;
|
|
4874
|
+
declare const index$1_useCreateCentrifugoTestingSendAckCreate: typeof useCreateCentrifugoTestingSendAckCreate;
|
|
4875
|
+
declare namespace index$1 {
|
|
4876
|
+
export { index$1_useCentrifugoAuthTokenRetrieve as useCentrifugoAuthTokenRetrieve, index$1_useCentrifugoMonitorChannelsRetrieve as useCentrifugoMonitorChannelsRetrieve, index$1_useCentrifugoMonitorHealthRetrieve as useCentrifugoMonitorHealthRetrieve, index$1_useCentrifugoMonitorOverviewRetrieve as useCentrifugoMonitorOverviewRetrieve, index$1_useCentrifugoMonitorPublishesList as useCentrifugoMonitorPublishesList, index$1_useCentrifugoMonitorTimelineRetrieve as useCentrifugoMonitorTimelineRetrieve, index$1_useCreateCentrifugoServerAuthTokenCreate as useCreateCentrifugoServerAuthTokenCreate, index$1_useCreateCentrifugoServerChannelsCreate as useCreateCentrifugoServerChannelsCreate, index$1_useCreateCentrifugoServerHistoryCreate as useCreateCentrifugoServerHistoryCreate, index$1_useCreateCentrifugoServerInfoCreate as useCreateCentrifugoServerInfoCreate, index$1_useCreateCentrifugoServerPresenceCreate as useCreateCentrifugoServerPresenceCreate, index$1_useCreateCentrifugoServerPresenceStatsCreate as useCreateCentrifugoServerPresenceStatsCreate, index$1_useCreateCentrifugoTestingPublishTestCreate as useCreateCentrifugoTestingPublishTestCreate, index$1_useCreateCentrifugoTestingPublishWithLoggingCreate as useCreateCentrifugoTestingPublishWithLoggingCreate, index$1_useCreateCentrifugoTestingSendAckCreate as useCreateCentrifugoTestingSendAckCreate };
|
|
4877
|
+
}
|
|
4878
|
+
|
|
4879
|
+
/**
|
|
4880
|
+
* SWR Hooks for Backup Codes
|
|
4881
|
+
*
|
|
4882
|
+
* React hooks powered by SWR for data fetching with automatic caching,
|
|
4883
|
+
* revalidation, and optimistic updates.
|
|
4884
|
+
*
|
|
4885
|
+
* Usage:
|
|
4886
|
+
* ```typescript
|
|
4887
|
+
* // Query hooks (GET)
|
|
4888
|
+
* const { data, error, isLoading } = useUsers({ page: 1 })
|
|
4889
|
+
*
|
|
4890
|
+
* // Mutation hooks (POST/PUT/PATCH/DELETE)
|
|
4891
|
+
* const createUser = useCreateUser()
|
|
4892
|
+
* await createUser({ name: 'John', email: 'john@example.com' })
|
|
4893
|
+
* ```
|
|
4894
|
+
*/
|
|
4895
|
+
|
|
4896
|
+
/**
|
|
4897
|
+
* API operation
|
|
4898
|
+
*
|
|
4899
|
+
* @method GET
|
|
4900
|
+
* @path /cfg/totp/backup-codes/
|
|
4901
|
+
*/
|
|
4902
|
+
declare function useTotpBackupCodesRetrieve(client?: API$1): ReturnType<typeof useSWR<BackupCodesStatus>>;
|
|
4903
|
+
/**
|
|
4904
|
+
* API operation
|
|
4905
|
+
*
|
|
4906
|
+
* @method POST
|
|
4907
|
+
* @path /cfg/totp/backup-codes/regenerate/
|
|
4908
|
+
*/
|
|
4909
|
+
declare function useCreateTotpBackupCodesRegenerateCreate(): (data: BackupCodesRegenerateRequest, client?: API$1) => Promise<BackupCodesRegenerateResponse>;
|
|
4910
|
+
|
|
4911
|
+
/**
|
|
4912
|
+
* SWR Hooks for TOTP Management
|
|
4913
|
+
*
|
|
4914
|
+
* React hooks powered by SWR for data fetching with automatic caching,
|
|
4915
|
+
* revalidation, and optimistic updates.
|
|
4916
|
+
*
|
|
4917
|
+
* Usage:
|
|
4918
|
+
* ```typescript
|
|
4919
|
+
* // Query hooks (GET)
|
|
4920
|
+
* const { data, error, isLoading } = useUsers({ page: 1 })
|
|
4921
|
+
*
|
|
4922
|
+
* // Mutation hooks (POST/PUT/PATCH/DELETE)
|
|
4923
|
+
* const createUser = useCreateUser()
|
|
4924
|
+
* await createUser({ name: 'John', email: 'john@example.com' })
|
|
4925
|
+
* ```
|
|
4926
|
+
*/
|
|
4927
|
+
|
|
4928
|
+
/**
|
|
4929
|
+
* API operation
|
|
4930
|
+
*
|
|
4931
|
+
* @method GET
|
|
4932
|
+
* @path /cfg/totp/devices/
|
|
4933
|
+
*/
|
|
4934
|
+
declare function useTotpDevicesList(params?: {
|
|
4935
|
+
page?: number;
|
|
4936
|
+
page_size?: number;
|
|
4937
|
+
}, client?: API$1): ReturnType<typeof useSWR<PaginatedDeviceListList>>;
|
|
4938
|
+
/**
|
|
4939
|
+
* API operation
|
|
4940
|
+
*
|
|
4941
|
+
* @method POST
|
|
4942
|
+
* @path /cfg/totp/disable/
|
|
4943
|
+
*/
|
|
4944
|
+
declare function useCreateTotpDisableCreate(): (data: DisableRequest, client?: API$1) => Promise<any>;
|
|
4945
|
+
|
|
4946
|
+
/**
|
|
4947
|
+
* API operation
|
|
4948
|
+
*
|
|
4949
|
+
* @method POST
|
|
4950
|
+
* @path /cfg/totp/setup/
|
|
4951
|
+
*/
|
|
4952
|
+
declare function useCreateTotpSetupCreate(): (data: SetupRequest, client?: API$1) => Promise<SetupResponse>;
|
|
4953
|
+
/**
|
|
4954
|
+
* API operation
|
|
4955
|
+
*
|
|
4956
|
+
* @method POST
|
|
4957
|
+
* @path /cfg/totp/setup/confirm/
|
|
4958
|
+
*/
|
|
4959
|
+
declare function useCreateTotpSetupConfirmCreate(): (data: ConfirmSetupRequest, client?: API$1) => Promise<ConfirmSetupResponse>;
|
|
4960
|
+
|
|
4961
|
+
/**
|
|
4962
|
+
* API operation
|
|
4963
|
+
*
|
|
4964
|
+
* @method POST
|
|
4965
|
+
* @path /cfg/totp/verify/
|
|
4966
|
+
*/
|
|
4967
|
+
declare function useCreateTotpVerifyCreate(): (data: VerifyRequest, client?: API$1) => Promise<VerifyResponse>;
|
|
4968
|
+
/**
|
|
4969
|
+
* API operation
|
|
4970
|
+
*
|
|
4971
|
+
* @method POST
|
|
4972
|
+
* @path /cfg/totp/verify/backup/
|
|
4973
|
+
*/
|
|
4974
|
+
declare function useCreateTotpVerifyBackupCreate(): (data: VerifyBackupRequest, client?: API$1) => Promise<VerifyResponse>;
|
|
4975
|
+
|
|
4976
|
+
/**
|
|
4977
|
+
* API operation
|
|
4978
|
+
*
|
|
4979
|
+
* @method DELETE
|
|
4980
|
+
* @path /cfg/totp/devices/{id}/
|
|
4981
|
+
*/
|
|
4982
|
+
declare function useDeleteTotpDevicesDestroy(): (id: string, client?: API$1) => Promise<void>;
|
|
3866
4983
|
|
|
3867
4984
|
/**
|
|
3868
4985
|
* SWR Hooks - React data fetching hooks
|
|
@@ -3889,23 +5006,17 @@ declare function useCreateCentrifugoTestingSendAckCreate(): (data: ManualAckRequ
|
|
|
3889
5006
|
* ```
|
|
3890
5007
|
*/
|
|
3891
5008
|
|
|
3892
|
-
declare const
|
|
3893
|
-
declare const
|
|
3894
|
-
declare const
|
|
3895
|
-
declare const
|
|
3896
|
-
declare const
|
|
3897
|
-
declare const
|
|
3898
|
-
declare const
|
|
3899
|
-
declare const
|
|
3900
|
-
declare const
|
|
3901
|
-
declare const index_useCreateCentrifugoServerInfoCreate: typeof useCreateCentrifugoServerInfoCreate;
|
|
3902
|
-
declare const index_useCreateCentrifugoServerPresenceCreate: typeof useCreateCentrifugoServerPresenceCreate;
|
|
3903
|
-
declare const index_useCreateCentrifugoServerPresenceStatsCreate: typeof useCreateCentrifugoServerPresenceStatsCreate;
|
|
3904
|
-
declare const index_useCreateCentrifugoTestingPublishTestCreate: typeof useCreateCentrifugoTestingPublishTestCreate;
|
|
3905
|
-
declare const index_useCreateCentrifugoTestingPublishWithLoggingCreate: typeof useCreateCentrifugoTestingPublishWithLoggingCreate;
|
|
3906
|
-
declare const index_useCreateCentrifugoTestingSendAckCreate: typeof useCreateCentrifugoTestingSendAckCreate;
|
|
5009
|
+
declare const index_useCreateTotpBackupCodesRegenerateCreate: typeof useCreateTotpBackupCodesRegenerateCreate;
|
|
5010
|
+
declare const index_useCreateTotpDisableCreate: typeof useCreateTotpDisableCreate;
|
|
5011
|
+
declare const index_useCreateTotpSetupConfirmCreate: typeof useCreateTotpSetupConfirmCreate;
|
|
5012
|
+
declare const index_useCreateTotpSetupCreate: typeof useCreateTotpSetupCreate;
|
|
5013
|
+
declare const index_useCreateTotpVerifyBackupCreate: typeof useCreateTotpVerifyBackupCreate;
|
|
5014
|
+
declare const index_useCreateTotpVerifyCreate: typeof useCreateTotpVerifyCreate;
|
|
5015
|
+
declare const index_useDeleteTotpDevicesDestroy: typeof useDeleteTotpDevicesDestroy;
|
|
5016
|
+
declare const index_useTotpBackupCodesRetrieve: typeof useTotpBackupCodesRetrieve;
|
|
5017
|
+
declare const index_useTotpDevicesList: typeof useTotpDevicesList;
|
|
3907
5018
|
declare namespace index {
|
|
3908
|
-
export {
|
|
5019
|
+
export { index_useCreateTotpBackupCodesRegenerateCreate as useCreateTotpBackupCodesRegenerateCreate, index_useCreateTotpDisableCreate as useCreateTotpDisableCreate, index_useCreateTotpSetupConfirmCreate as useCreateTotpSetupConfirmCreate, index_useCreateTotpSetupCreate as useCreateTotpSetupCreate, index_useCreateTotpVerifyBackupCreate as useCreateTotpVerifyBackupCreate, index_useCreateTotpVerifyCreate as useCreateTotpVerifyCreate, index_useDeleteTotpDevicesDestroy as useDeleteTotpDevicesDestroy, index_useTotpBackupCodesRetrieve as useTotpBackupCodesRetrieve, index_useTotpDevicesList as useTotpDevicesList };
|
|
3909
5020
|
}
|
|
3910
5021
|
|
|
3911
5022
|
/**
|
|
@@ -3918,8 +5029,9 @@ declare namespace index {
|
|
|
3918
5029
|
* import { useAccountsOauthGithubCallbackCreate } from '@djangocfg/api/clients';
|
|
3919
5030
|
*/
|
|
3920
5031
|
|
|
3921
|
-
declare const apiAccounts: API$
|
|
5032
|
+
declare const apiAccounts: API$3;
|
|
5033
|
+
declare const apiTotp: API$1;
|
|
3922
5034
|
declare const apiWebPush: API;
|
|
3923
|
-
declare const apiCentrifugo: API$
|
|
5035
|
+
declare const apiCentrifugo: API$2;
|
|
3924
5036
|
|
|
3925
|
-
export { API$
|
|
5037
|
+
export { API$3 as AccountsAPI, API$2 as CentrifugoAPI, index$7 as CentrifugoFetchers, index$1 as CentrifugoHooks, type CentrifugoToken, CentrifugoTokenSchema, index$8 as CentrifugoTypes, enums as Enums, type OAuthAuthorizeRequestRequest, OAuthAuthorizeRequestRequestSchema, type OAuthAuthorizeResponse, OAuthAuthorizeResponseSchema, type OAuthCallbackRequestRequest, OAuthCallbackRequestRequestSchema, type OAuthConnection, OAuthConnectionSchema, type OAuthDisconnectRequestRequest, OAuthDisconnectRequestRequestSchema, type OAuthError, OAuthErrorSchema, type OAuthProvidersResponse, OAuthProvidersResponseSchema, type OAuthTokenResponse, OAuthTokenResponseSchema, type OTPErrorResponse, OTPErrorResponseSchema, type OTPRequestRequest, OTPRequestRequestSchema, type OTPRequestResponse, OTPRequestResponseSchema, type OTPVerifyRequest, OTPVerifyRequestSchema, type OTPVerifyResponse, OTPVerifyResponseSchema, type PatchedUserProfileUpdateRequest, PatchedUserProfileUpdateRequestSchema, type TokenRefresh, type TokenRefreshRequest, TokenRefreshRequestSchema, TokenRefreshSchema, API$1 as TotpAPI, index$5 as TotpFetchers, index as TotpHooks, index$6 as TotpTypes, type User, type UserProfileUpdateRequest, UserProfileUpdateRequestSchema, UserSchema, API as WebPushAPI, index$3 as WebPushFetchers, index$2 as WebPushHooks, index$4 as WebPushTypes, apiAccounts, apiCentrifugo, apiTotp, apiWebPush, createAccountsOauthDisconnectCreate, createAccountsOauthGithubAuthorizeCreate, createAccountsOauthGithubCallbackCreate, createAccountsOtpRequestCreate, createAccountsOtpVerifyCreate, createAccountsProfileAvatarCreate, createAccountsTokenRefreshCreate, getAccountsOauthConnectionsList, getAccountsOauthProvidersRetrieve, getAccountsProfileRetrieve, partialUpdateAccountsProfilePartialPartialUpdate, partialUpdateAccountsProfilePartialUpdate, partialUpdateAccountsProfileUpdatePartialUpdate, updateAccountsProfileUpdateUpdate, useAccountsOauthConnectionsList, useAccountsOauthProvidersRetrieve, useAccountsProfileRetrieve, useCreateAccountsOauthDisconnectCreate, useCreateAccountsOauthGithubAuthorizeCreate, useCreateAccountsOauthGithubCallbackCreate, useCreateAccountsOtpRequestCreate, useCreateAccountsOtpVerifyCreate, useCreateAccountsProfileAvatarCreate, useCreateAccountsTokenRefreshCreate, usePartialUpdateAccountsProfilePartialPartialUpdate, usePartialUpdateAccountsProfilePartialUpdate, usePartialUpdateAccountsProfileUpdatePartialUpdate, useUpdateAccountsProfileUpdateUpdate };
|