@djangocfg/api 2.1.87 → 2.1.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth-server.cjs +1963 -4
- package/dist/auth-server.cjs.map +1 -1
- package/dist/auth-server.d.cts +35 -1
- package/dist/auth-server.d.ts +35 -1
- package/dist/auth-server.mjs +1953 -4
- package/dist/auth-server.mjs.map +1 -1
- package/dist/auth.cjs +692 -497
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +18 -2
- package/dist/auth.d.ts +18 -2
- package/dist/auth.mjs +655 -460
- package/dist/auth.mjs.map +1 -1
- package/dist/clients.cjs +460 -383
- package/dist/clients.cjs.map +1 -1
- package/dist/clients.d.cts +26 -6
- package/dist/clients.d.ts +26 -6
- package/dist/clients.mjs +460 -383
- package/dist/clients.mjs.map +1 -1
- package/dist/hooks.cjs +130 -105
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.d.cts +24 -4
- package/dist/hooks.d.ts +24 -4
- package/dist/hooks.mjs +130 -105
- package/dist/hooks.mjs.map +1 -1
- package/dist/index.cjs +373 -311
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +54 -8
- package/dist/index.d.ts +54 -8
- package/dist/index.mjs +373 -311
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/auth/context/AccountsContext.tsx +3 -3
- package/src/auth/context/AuthContext.tsx +56 -10
- package/src/auth/hooks/index.ts +3 -0
- package/src/auth/hooks/useProfileCache.ts +1 -1
- package/src/auth/hooks/useTokenRefresh.ts +161 -0
- package/src/auth/middlewares/index.ts +8 -1
- package/src/auth/middlewares/tokenRefresh.ts +158 -0
- package/src/generated/cfg_accounts/CLAUDE.md +2 -9
- package/src/generated/cfg_accounts/_utils/fetchers/accounts__user_profile.ts +2 -1
- package/src/generated/cfg_accounts/_utils/hooks/accounts__user_profile.ts +2 -1
- package/src/generated/cfg_accounts/_utils/schemas/CfgAccountsProfileAvatarCreateRequest.schema.ts +15 -0
- package/src/generated/cfg_accounts/_utils/schemas/index.ts +1 -0
- package/src/generated/cfg_accounts/accounts/models.ts +0 -1
- package/src/generated/cfg_accounts/accounts__user_profile/client.ts +4 -2
- package/src/generated/cfg_accounts/accounts__user_profile/models.ts +9 -1
- package/src/generated/cfg_accounts/client.ts +18 -0
- package/src/generated/cfg_accounts/index.ts +3 -1
- package/src/generated/cfg_accounts/schema.json +2 -2
- package/src/generated/cfg_centrifugo/CLAUDE.md +1 -8
- package/src/generated/cfg_centrifugo/client.ts +18 -0
- package/src/generated/cfg_centrifugo/index.ts +3 -1
- package/src/generated/cfg_totp/CLAUDE.md +1 -8
- package/src/generated/cfg_totp/client.ts +18 -0
- package/src/generated/cfg_totp/index.ts +3 -1
- package/src/generated/cfg_totp/totp/models.ts +2 -0
- package/src/generated/cfg_webpush/CLAUDE.md +1 -8
- package/src/generated/cfg_webpush/client.ts +18 -0
- package/src/generated/cfg_webpush/index.ts +3 -1
package/dist/index.d.cts
CHANGED
|
@@ -241,10 +241,17 @@ interface User$2 {
|
|
|
241
241
|
is_superuser: boolean;
|
|
242
242
|
date_joined: string;
|
|
243
243
|
last_login?: string | null;
|
|
244
|
-
/** Get count of unanswered messages for the user. */
|
|
245
244
|
unanswered_messages_count: number;
|
|
246
245
|
centrifugo: CentrifugoToken$2 | null;
|
|
247
246
|
}
|
|
247
|
+
/**
|
|
248
|
+
*
|
|
249
|
+
* Request model (no read-only fields).
|
|
250
|
+
*/
|
|
251
|
+
interface CfgAccountsProfileAvatarCreateRequest$1 {
|
|
252
|
+
/** Avatar image file (JPEG, PNG, GIF, WebP, max 5MB) */
|
|
253
|
+
avatar: File | Blob;
|
|
254
|
+
}
|
|
248
255
|
/**
|
|
249
256
|
* Serializer for updating user profile.
|
|
250
257
|
*
|
|
@@ -286,7 +293,7 @@ interface CentrifugoToken$2 {
|
|
|
286
293
|
}
|
|
287
294
|
|
|
288
295
|
declare namespace models$2 {
|
|
289
|
-
export type { CentrifugoToken$2 as CentrifugoToken, PatchedUserProfileUpdateRequest$1 as PatchedUserProfileUpdateRequest, User$2 as User, UserProfileUpdateRequest$1 as UserProfileUpdateRequest };
|
|
296
|
+
export type { CentrifugoToken$2 as CentrifugoToken, CfgAccountsProfileAvatarCreateRequest$1 as CfgAccountsProfileAvatarCreateRequest, PatchedUserProfileUpdateRequest$1 as PatchedUserProfileUpdateRequest, User$2 as User, UserProfileUpdateRequest$1 as UserProfileUpdateRequest };
|
|
290
297
|
}
|
|
291
298
|
|
|
292
299
|
/**
|
|
@@ -307,7 +314,7 @@ declare class UserProfile {
|
|
|
307
314
|
* Upload avatar image for the current authenticated user. Accepts
|
|
308
315
|
* multipart/form-data with 'avatar' field.
|
|
309
316
|
*/
|
|
310
|
-
accountsProfileAvatarCreate(data:
|
|
317
|
+
accountsProfileAvatarCreate(data: CfgAccountsProfileAvatarCreateRequest$1): Promise<User$2>;
|
|
311
318
|
/**
|
|
312
319
|
* Partial update user profile
|
|
313
320
|
*
|
|
@@ -434,7 +441,6 @@ interface User$1 {
|
|
|
434
441
|
is_superuser: boolean;
|
|
435
442
|
date_joined: string;
|
|
436
443
|
last_login?: string | null;
|
|
437
|
-
/** Get count of unanswered messages for the user. */
|
|
438
444
|
unanswered_messages_count: number;
|
|
439
445
|
centrifugo: CentrifugoToken$1 | null;
|
|
440
446
|
}
|
|
@@ -745,6 +751,7 @@ declare class APIClient$1 {
|
|
|
745
751
|
private httpClient;
|
|
746
752
|
private logger;
|
|
747
753
|
private retryConfig;
|
|
754
|
+
private tokenGetter;
|
|
748
755
|
auth: Auth;
|
|
749
756
|
oauth: Oauth;
|
|
750
757
|
user_profile: UserProfile;
|
|
@@ -753,6 +760,7 @@ declare class APIClient$1 {
|
|
|
753
760
|
httpClient?: HttpClientAdapter$1;
|
|
754
761
|
loggerConfig?: Partial<LoggerConfig$1>;
|
|
755
762
|
retryConfig?: RetryConfig$1;
|
|
763
|
+
tokenGetter?: () => string | null;
|
|
756
764
|
});
|
|
757
765
|
/**
|
|
758
766
|
* Get CSRF token from cookies (for SessionAuthentication).
|
|
@@ -760,6 +768,15 @@ declare class APIClient$1 {
|
|
|
760
768
|
* Returns null if cookie doesn't exist (JWT-only auth).
|
|
761
769
|
*/
|
|
762
770
|
getCsrfToken(): string | null;
|
|
771
|
+
/**
|
|
772
|
+
* Get the base URL for building streaming/download URLs.
|
|
773
|
+
*/
|
|
774
|
+
getBaseUrl(): string;
|
|
775
|
+
/**
|
|
776
|
+
* Get JWT token for URL authentication (used in streaming endpoints).
|
|
777
|
+
* Returns null if no token getter is configured or no token is available.
|
|
778
|
+
*/
|
|
779
|
+
getToken(): string | null;
|
|
763
780
|
/**
|
|
764
781
|
* Make HTTP request with Django CSRF and session handling.
|
|
765
782
|
* Automatically retries on network errors and 5xx server errors.
|
|
@@ -854,6 +871,20 @@ declare const CentrifugoTokenSchema: z.ZodObject<{
|
|
|
854
871
|
*/
|
|
855
872
|
type CentrifugoToken = z.infer<typeof CentrifugoTokenSchema>;
|
|
856
873
|
|
|
874
|
+
/**
|
|
875
|
+
* Zod schema for CfgAccountsProfileAvatarCreateRequest
|
|
876
|
+
*
|
|
877
|
+
* This schema provides runtime validation and type inference.
|
|
878
|
+
* */
|
|
879
|
+
|
|
880
|
+
declare const CfgAccountsProfileAvatarCreateRequestSchema: z.ZodObject<{
|
|
881
|
+
avatar: z.ZodUnion<readonly [z.ZodCustom<File, File>, z.ZodCustom<Blob, Blob>]>;
|
|
882
|
+
}, z.core.$strip>;
|
|
883
|
+
/**
|
|
884
|
+
* Infer TypeScript type from Zod schema
|
|
885
|
+
*/
|
|
886
|
+
type CfgAccountsProfileAvatarCreateRequest = z.infer<typeof CfgAccountsProfileAvatarCreateRequestSchema>;
|
|
887
|
+
|
|
857
888
|
/**
|
|
858
889
|
* Zod schema for OAuthAuthorizeRequestRequest
|
|
859
890
|
*
|
|
@@ -1312,6 +1343,8 @@ type UserProfileUpdateRequest = z.infer<typeof UserProfileUpdateRequestSchema>;
|
|
|
1312
1343
|
|
|
1313
1344
|
type index$5_CentrifugoToken = CentrifugoToken;
|
|
1314
1345
|
declare const index$5_CentrifugoTokenSchema: typeof CentrifugoTokenSchema;
|
|
1346
|
+
type index$5_CfgAccountsProfileAvatarCreateRequest = CfgAccountsProfileAvatarCreateRequest;
|
|
1347
|
+
declare const index$5_CfgAccountsProfileAvatarCreateRequestSchema: typeof CfgAccountsProfileAvatarCreateRequestSchema;
|
|
1315
1348
|
type index$5_OAuthAuthorizeRequestRequest = OAuthAuthorizeRequestRequest;
|
|
1316
1349
|
declare const index$5_OAuthAuthorizeRequestRequestSchema: typeof OAuthAuthorizeRequestRequestSchema;
|
|
1317
1350
|
type index$5_OAuthAuthorizeResponse = OAuthAuthorizeResponse;
|
|
@@ -1349,7 +1382,7 @@ type index$5_UserProfileUpdateRequest = UserProfileUpdateRequest;
|
|
|
1349
1382
|
declare const index$5_UserProfileUpdateRequestSchema: typeof UserProfileUpdateRequestSchema;
|
|
1350
1383
|
declare const index$5_UserSchema: typeof UserSchema;
|
|
1351
1384
|
declare namespace index$5 {
|
|
1352
|
-
export { type index$5_CentrifugoToken as CentrifugoToken, index$5_CentrifugoTokenSchema as CentrifugoTokenSchema, type index$5_OAuthAuthorizeRequestRequest as OAuthAuthorizeRequestRequest, index$5_OAuthAuthorizeRequestRequestSchema as OAuthAuthorizeRequestRequestSchema, type index$5_OAuthAuthorizeResponse as OAuthAuthorizeResponse, index$5_OAuthAuthorizeResponseSchema as OAuthAuthorizeResponseSchema, type index$5_OAuthCallbackRequestRequest as OAuthCallbackRequestRequest, index$5_OAuthCallbackRequestRequestSchema as OAuthCallbackRequestRequestSchema, type index$5_OAuthConnection as OAuthConnection, index$5_OAuthConnectionSchema as OAuthConnectionSchema, type index$5_OAuthDisconnectRequestRequest as OAuthDisconnectRequestRequest, index$5_OAuthDisconnectRequestRequestSchema as OAuthDisconnectRequestRequestSchema, type index$5_OAuthError as OAuthError, index$5_OAuthErrorSchema as OAuthErrorSchema, type index$5_OAuthProvidersResponse as OAuthProvidersResponse, index$5_OAuthProvidersResponseSchema as OAuthProvidersResponseSchema, type index$5_OAuthTokenResponse as OAuthTokenResponse, index$5_OAuthTokenResponseSchema as OAuthTokenResponseSchema, type index$5_OTPErrorResponse as OTPErrorResponse, index$5_OTPErrorResponseSchema as OTPErrorResponseSchema, type index$5_OTPRequestRequest as OTPRequestRequest, index$5_OTPRequestRequestSchema as OTPRequestRequestSchema, type index$5_OTPRequestResponse as OTPRequestResponse, index$5_OTPRequestResponseSchema as OTPRequestResponseSchema, type index$5_OTPVerifyRequest as OTPVerifyRequest, index$5_OTPVerifyRequestSchema as OTPVerifyRequestSchema, type index$5_OTPVerifyResponse as OTPVerifyResponse, index$5_OTPVerifyResponseSchema as OTPVerifyResponseSchema, type index$5_PatchedUserProfileUpdateRequest as PatchedUserProfileUpdateRequest, index$5_PatchedUserProfileUpdateRequestSchema as PatchedUserProfileUpdateRequestSchema, type index$5_TokenRefresh as TokenRefresh, type index$5_TokenRefreshRequest as TokenRefreshRequest, index$5_TokenRefreshRequestSchema as TokenRefreshRequestSchema, index$5_TokenRefreshSchema as TokenRefreshSchema, type index$5_User as User, type index$5_UserProfileUpdateRequest as UserProfileUpdateRequest, index$5_UserProfileUpdateRequestSchema as UserProfileUpdateRequestSchema, index$5_UserSchema as UserSchema };
|
|
1385
|
+
export { type index$5_CentrifugoToken as CentrifugoToken, index$5_CentrifugoTokenSchema as CentrifugoTokenSchema, type index$5_CfgAccountsProfileAvatarCreateRequest as CfgAccountsProfileAvatarCreateRequest, index$5_CfgAccountsProfileAvatarCreateRequestSchema as CfgAccountsProfileAvatarCreateRequestSchema, type index$5_OAuthAuthorizeRequestRequest as OAuthAuthorizeRequestRequest, index$5_OAuthAuthorizeRequestRequestSchema as OAuthAuthorizeRequestRequestSchema, type index$5_OAuthAuthorizeResponse as OAuthAuthorizeResponse, index$5_OAuthAuthorizeResponseSchema as OAuthAuthorizeResponseSchema, type index$5_OAuthCallbackRequestRequest as OAuthCallbackRequestRequest, index$5_OAuthCallbackRequestRequestSchema as OAuthCallbackRequestRequestSchema, type index$5_OAuthConnection as OAuthConnection, index$5_OAuthConnectionSchema as OAuthConnectionSchema, type index$5_OAuthDisconnectRequestRequest as OAuthDisconnectRequestRequest, index$5_OAuthDisconnectRequestRequestSchema as OAuthDisconnectRequestRequestSchema, type index$5_OAuthError as OAuthError, index$5_OAuthErrorSchema as OAuthErrorSchema, type index$5_OAuthProvidersResponse as OAuthProvidersResponse, index$5_OAuthProvidersResponseSchema as OAuthProvidersResponseSchema, type index$5_OAuthTokenResponse as OAuthTokenResponse, index$5_OAuthTokenResponseSchema as OAuthTokenResponseSchema, type index$5_OTPErrorResponse as OTPErrorResponse, index$5_OTPErrorResponseSchema as OTPErrorResponseSchema, type index$5_OTPRequestRequest as OTPRequestRequest, index$5_OTPRequestRequestSchema as OTPRequestRequestSchema, type index$5_OTPRequestResponse as OTPRequestResponse, index$5_OTPRequestResponseSchema as OTPRequestResponseSchema, type index$5_OTPVerifyRequest as OTPVerifyRequest, index$5_OTPVerifyRequestSchema as OTPVerifyRequestSchema, type index$5_OTPVerifyResponse as OTPVerifyResponse, index$5_OTPVerifyResponseSchema as OTPVerifyResponseSchema, type index$5_PatchedUserProfileUpdateRequest as PatchedUserProfileUpdateRequest, index$5_PatchedUserProfileUpdateRequestSchema as PatchedUserProfileUpdateRequestSchema, type index$5_TokenRefresh as TokenRefresh, type index$5_TokenRefreshRequest as TokenRefreshRequest, index$5_TokenRefreshRequestSchema as TokenRefreshRequestSchema, index$5_TokenRefreshSchema as TokenRefreshSchema, type index$5_User as User, type index$5_UserProfileUpdateRequest as UserProfileUpdateRequest, index$5_UserProfileUpdateRequestSchema as UserProfileUpdateRequestSchema, index$5_UserSchema as UserSchema };
|
|
1353
1386
|
}
|
|
1354
1387
|
|
|
1355
1388
|
/**
|
|
@@ -1497,7 +1530,7 @@ declare function getAccountsProfileRetrieve(client?: any): Promise<User>;
|
|
|
1497
1530
|
* @method POST
|
|
1498
1531
|
* @path /cfg/accounts/profile/avatar/
|
|
1499
1532
|
*/
|
|
1500
|
-
declare function createAccountsProfileAvatarCreate(data:
|
|
1533
|
+
declare function createAccountsProfileAvatarCreate(data: CfgAccountsProfileAvatarCreateRequest, client?: any): Promise<User>;
|
|
1501
1534
|
/**
|
|
1502
1535
|
* Partial update user profile
|
|
1503
1536
|
*
|
|
@@ -1829,6 +1862,8 @@ declare class API$1 {
|
|
|
1829
1862
|
|
|
1830
1863
|
type index$3_CentrifugoToken = CentrifugoToken;
|
|
1831
1864
|
declare const index$3_CentrifugoTokenSchema: typeof CentrifugoTokenSchema;
|
|
1865
|
+
type index$3_CfgAccountsProfileAvatarCreateRequest = CfgAccountsProfileAvatarCreateRequest;
|
|
1866
|
+
declare const index$3_CfgAccountsProfileAvatarCreateRequestSchema: typeof CfgAccountsProfileAvatarCreateRequestSchema;
|
|
1832
1867
|
type index$3_OAuthAuthorizeRequestRequest = OAuthAuthorizeRequestRequest;
|
|
1833
1868
|
declare const index$3_OAuthAuthorizeRequestRequestSchema: typeof OAuthAuthorizeRequestRequestSchema;
|
|
1834
1869
|
type index$3_OAuthAuthorizeResponse = OAuthAuthorizeResponse;
|
|
@@ -1880,7 +1915,7 @@ declare const index$3_partialUpdateAccountsProfilePartialUpdate: typeof partialU
|
|
|
1880
1915
|
declare const index$3_partialUpdateAccountsProfileUpdatePartialUpdate: typeof partialUpdateAccountsProfileUpdatePartialUpdate;
|
|
1881
1916
|
declare const index$3_updateAccountsProfileUpdateUpdate: typeof updateAccountsProfileUpdateUpdate;
|
|
1882
1917
|
declare namespace index$3 {
|
|
1883
|
-
export { API$1 as API, APIClient$1 as APIClient, APIError$1 as APIError, APILogger$1 as APILogger, type APIOptions$1 as APIOptions, models$1 as AccountsTypes, models$4 as AuthTypes, type index$3_CentrifugoToken as CentrifugoToken, index$3_CentrifugoTokenSchema as CentrifugoTokenSchema, CookieStorageAdapter$1 as CookieStorageAdapter, DEFAULT_RETRY_CONFIG$1 as DEFAULT_RETRY_CONFIG, enums as Enums, type ErrorLog$1 as ErrorLog, type FailedAttemptInfo$1 as FailedAttemptInfo, FetchAdapter$1 as FetchAdapter, index$4 as Fetchers, type HttpClientAdapter$1 as HttpClientAdapter, type HttpRequest$1 as HttpRequest, type HttpResponse$1 as HttpResponse, LocalStorageAdapter$1 as LocalStorageAdapter, type LoggerConfig$1 as LoggerConfig, MemoryStorageAdapter$1 as MemoryStorageAdapter, NetworkError$1 as NetworkError, type index$3_OAuthAuthorizeRequestRequest as OAuthAuthorizeRequestRequest, index$3_OAuthAuthorizeRequestRequestSchema as OAuthAuthorizeRequestRequestSchema, type index$3_OAuthAuthorizeResponse as OAuthAuthorizeResponse, index$3_OAuthAuthorizeResponseSchema as OAuthAuthorizeResponseSchema, type index$3_OAuthCallbackRequestRequest as OAuthCallbackRequestRequest, index$3_OAuthCallbackRequestRequestSchema as OAuthCallbackRequestRequestSchema, type index$3_OAuthConnection as OAuthConnection, index$3_OAuthConnectionSchema as OAuthConnectionSchema, type index$3_OAuthDisconnectRequestRequest as OAuthDisconnectRequestRequest, index$3_OAuthDisconnectRequestRequestSchema as OAuthDisconnectRequestRequestSchema, type index$3_OAuthError as OAuthError, index$3_OAuthErrorSchema as OAuthErrorSchema, type index$3_OAuthProvidersResponse as OAuthProvidersResponse, index$3_OAuthProvidersResponseSchema as OAuthProvidersResponseSchema, type index$3_OAuthTokenResponse as OAuthTokenResponse, index$3_OAuthTokenResponseSchema as OAuthTokenResponseSchema, type index$3_OTPErrorResponse as OTPErrorResponse, index$3_OTPErrorResponseSchema as OTPErrorResponseSchema, type index$3_OTPRequestRequest as OTPRequestRequest, index$3_OTPRequestRequestSchema as OTPRequestRequestSchema, type index$3_OTPRequestResponse as OTPRequestResponse, index$3_OTPRequestResponseSchema as OTPRequestResponseSchema, type index$3_OTPVerifyRequest as OTPVerifyRequest, index$3_OTPVerifyRequestSchema as OTPVerifyRequestSchema, type index$3_OTPVerifyResponse as OTPVerifyResponse, index$3_OTPVerifyResponseSchema as OTPVerifyResponseSchema, models$3 as OauthTypes, type index$3_PatchedUserProfileUpdateRequest as PatchedUserProfileUpdateRequest, index$3_PatchedUserProfileUpdateRequestSchema as PatchedUserProfileUpdateRequestSchema, REFRESH_TOKEN_KEY$1 as REFRESH_TOKEN_KEY, type RequestLog$1 as RequestLog, type ResponseLog$1 as ResponseLog, type RetryConfig$1 as RetryConfig, index$5 as Schemas, type StorageAdapter$1 as StorageAdapter, TOKEN_KEY$1 as TOKEN_KEY, type index$3_TokenRefresh as TokenRefresh, type index$3_TokenRefreshRequest as TokenRefreshRequest, index$3_TokenRefreshRequestSchema as TokenRefreshRequestSchema, index$3_TokenRefreshSchema as TokenRefreshSchema, type index$3_User as User, models$2 as UserProfileTypes, type index$3_UserProfileUpdateRequest as UserProfileUpdateRequest, index$3_UserProfileUpdateRequestSchema as UserProfileUpdateRequestSchema, index$3_UserSchema as UserSchema, type ValidationErrorDetail$1 as ValidationErrorDetail, type ValidationErrorEvent$1 as ValidationErrorEvent, clearAPITokens$1 as clearAPITokens, configureAPI$1 as configureAPI, index$3_createAccountsOauthDisconnectCreate as createAccountsOauthDisconnectCreate, index$3_createAccountsOauthGithubAuthorizeCreate as createAccountsOauthGithubAuthorizeCreate, index$3_createAccountsOauthGithubCallbackCreate as createAccountsOauthGithubCallbackCreate, index$3_createAccountsOtpRequestCreate as createAccountsOtpRequestCreate, index$3_createAccountsOtpVerifyCreate as createAccountsOtpVerifyCreate, index$3_createAccountsProfileAvatarCreate as createAccountsProfileAvatarCreate, index$3_createAccountsTokenRefreshCreate as createAccountsTokenRefreshCreate, API$1 as default, dispatchValidationError$1 as dispatchValidationError, formatZodError$1 as formatZodError, getAPIInstance$1 as getAPIInstance, index$3_getAccountsOauthConnectionsList as getAccountsOauthConnectionsList, index$3_getAccountsOauthProvidersRetrieve as getAccountsOauthProvidersRetrieve, index$3_getAccountsProfileRetrieve as getAccountsProfileRetrieve, isAPIConfigured$1 as isAPIConfigured, onValidationError$1 as onValidationError, index$3_partialUpdateAccountsProfilePartialPartialUpdate as partialUpdateAccountsProfilePartialPartialUpdate, index$3_partialUpdateAccountsProfilePartialUpdate as partialUpdateAccountsProfilePartialUpdate, index$3_partialUpdateAccountsProfileUpdatePartialUpdate as partialUpdateAccountsProfileUpdatePartialUpdate, reconfigureAPI$1 as reconfigureAPI, resetAPI$1 as resetAPI, shouldRetry$1 as shouldRetry, index$3_updateAccountsProfileUpdateUpdate as updateAccountsProfileUpdateUpdate, withRetry$1 as withRetry };
|
|
1918
|
+
export { API$1 as API, APIClient$1 as APIClient, APIError$1 as APIError, APILogger$1 as APILogger, type APIOptions$1 as APIOptions, models$1 as AccountsTypes, models$4 as AuthTypes, type index$3_CentrifugoToken as CentrifugoToken, index$3_CentrifugoTokenSchema as CentrifugoTokenSchema, type index$3_CfgAccountsProfileAvatarCreateRequest as CfgAccountsProfileAvatarCreateRequest, index$3_CfgAccountsProfileAvatarCreateRequestSchema as CfgAccountsProfileAvatarCreateRequestSchema, CookieStorageAdapter$1 as CookieStorageAdapter, DEFAULT_RETRY_CONFIG$1 as DEFAULT_RETRY_CONFIG, enums as Enums, type ErrorLog$1 as ErrorLog, type FailedAttemptInfo$1 as FailedAttemptInfo, FetchAdapter$1 as FetchAdapter, index$4 as Fetchers, type HttpClientAdapter$1 as HttpClientAdapter, type HttpRequest$1 as HttpRequest, type HttpResponse$1 as HttpResponse, LocalStorageAdapter$1 as LocalStorageAdapter, type LoggerConfig$1 as LoggerConfig, MemoryStorageAdapter$1 as MemoryStorageAdapter, NetworkError$1 as NetworkError, type index$3_OAuthAuthorizeRequestRequest as OAuthAuthorizeRequestRequest, index$3_OAuthAuthorizeRequestRequestSchema as OAuthAuthorizeRequestRequestSchema, type index$3_OAuthAuthorizeResponse as OAuthAuthorizeResponse, index$3_OAuthAuthorizeResponseSchema as OAuthAuthorizeResponseSchema, type index$3_OAuthCallbackRequestRequest as OAuthCallbackRequestRequest, index$3_OAuthCallbackRequestRequestSchema as OAuthCallbackRequestRequestSchema, type index$3_OAuthConnection as OAuthConnection, index$3_OAuthConnectionSchema as OAuthConnectionSchema, type index$3_OAuthDisconnectRequestRequest as OAuthDisconnectRequestRequest, index$3_OAuthDisconnectRequestRequestSchema as OAuthDisconnectRequestRequestSchema, type index$3_OAuthError as OAuthError, index$3_OAuthErrorSchema as OAuthErrorSchema, type index$3_OAuthProvidersResponse as OAuthProvidersResponse, index$3_OAuthProvidersResponseSchema as OAuthProvidersResponseSchema, type index$3_OAuthTokenResponse as OAuthTokenResponse, index$3_OAuthTokenResponseSchema as OAuthTokenResponseSchema, type index$3_OTPErrorResponse as OTPErrorResponse, index$3_OTPErrorResponseSchema as OTPErrorResponseSchema, type index$3_OTPRequestRequest as OTPRequestRequest, index$3_OTPRequestRequestSchema as OTPRequestRequestSchema, type index$3_OTPRequestResponse as OTPRequestResponse, index$3_OTPRequestResponseSchema as OTPRequestResponseSchema, type index$3_OTPVerifyRequest as OTPVerifyRequest, index$3_OTPVerifyRequestSchema as OTPVerifyRequestSchema, type index$3_OTPVerifyResponse as OTPVerifyResponse, index$3_OTPVerifyResponseSchema as OTPVerifyResponseSchema, models$3 as OauthTypes, type index$3_PatchedUserProfileUpdateRequest as PatchedUserProfileUpdateRequest, index$3_PatchedUserProfileUpdateRequestSchema as PatchedUserProfileUpdateRequestSchema, REFRESH_TOKEN_KEY$1 as REFRESH_TOKEN_KEY, type RequestLog$1 as RequestLog, type ResponseLog$1 as ResponseLog, type RetryConfig$1 as RetryConfig, index$5 as Schemas, type StorageAdapter$1 as StorageAdapter, TOKEN_KEY$1 as TOKEN_KEY, type index$3_TokenRefresh as TokenRefresh, type index$3_TokenRefreshRequest as TokenRefreshRequest, index$3_TokenRefreshRequestSchema as TokenRefreshRequestSchema, index$3_TokenRefreshSchema as TokenRefreshSchema, type index$3_User as User, models$2 as UserProfileTypes, type index$3_UserProfileUpdateRequest as UserProfileUpdateRequest, index$3_UserProfileUpdateRequestSchema as UserProfileUpdateRequestSchema, index$3_UserSchema as UserSchema, type ValidationErrorDetail$1 as ValidationErrorDetail, type ValidationErrorEvent$1 as ValidationErrorEvent, clearAPITokens$1 as clearAPITokens, configureAPI$1 as configureAPI, index$3_createAccountsOauthDisconnectCreate as createAccountsOauthDisconnectCreate, index$3_createAccountsOauthGithubAuthorizeCreate as createAccountsOauthGithubAuthorizeCreate, index$3_createAccountsOauthGithubCallbackCreate as createAccountsOauthGithubCallbackCreate, index$3_createAccountsOtpRequestCreate as createAccountsOtpRequestCreate, index$3_createAccountsOtpVerifyCreate as createAccountsOtpVerifyCreate, index$3_createAccountsProfileAvatarCreate as createAccountsProfileAvatarCreate, index$3_createAccountsTokenRefreshCreate as createAccountsTokenRefreshCreate, API$1 as default, dispatchValidationError$1 as dispatchValidationError, formatZodError$1 as formatZodError, getAPIInstance$1 as getAPIInstance, index$3_getAccountsOauthConnectionsList as getAccountsOauthConnectionsList, index$3_getAccountsOauthProvidersRetrieve as getAccountsOauthProvidersRetrieve, index$3_getAccountsProfileRetrieve as getAccountsProfileRetrieve, isAPIConfigured$1 as isAPIConfigured, onValidationError$1 as onValidationError, index$3_partialUpdateAccountsProfilePartialPartialUpdate as partialUpdateAccountsProfilePartialPartialUpdate, index$3_partialUpdateAccountsProfilePartialUpdate as partialUpdateAccountsProfilePartialUpdate, index$3_partialUpdateAccountsProfileUpdatePartialUpdate as partialUpdateAccountsProfileUpdatePartialUpdate, reconfigureAPI$1 as reconfigureAPI, resetAPI$1 as resetAPI, shouldRetry$1 as shouldRetry, index$3_updateAccountsProfileUpdateUpdate as updateAccountsProfileUpdateUpdate, withRetry$1 as withRetry };
|
|
1884
1919
|
}
|
|
1885
1920
|
|
|
1886
1921
|
/**
|
|
@@ -2271,11 +2306,13 @@ declare class APIClient {
|
|
|
2271
2306
|
private httpClient;
|
|
2272
2307
|
private logger;
|
|
2273
2308
|
private retryConfig;
|
|
2309
|
+
private tokenGetter;
|
|
2274
2310
|
web_push: WebPush;
|
|
2275
2311
|
constructor(baseUrl: string, options?: {
|
|
2276
2312
|
httpClient?: HttpClientAdapter;
|
|
2277
2313
|
loggerConfig?: Partial<LoggerConfig>;
|
|
2278
2314
|
retryConfig?: RetryConfig;
|
|
2315
|
+
tokenGetter?: () => string | null;
|
|
2279
2316
|
});
|
|
2280
2317
|
/**
|
|
2281
2318
|
* Get CSRF token from cookies (for SessionAuthentication).
|
|
@@ -2283,6 +2320,15 @@ declare class APIClient {
|
|
|
2283
2320
|
* Returns null if cookie doesn't exist (JWT-only auth).
|
|
2284
2321
|
*/
|
|
2285
2322
|
getCsrfToken(): string | null;
|
|
2323
|
+
/**
|
|
2324
|
+
* Get the base URL for building streaming/download URLs.
|
|
2325
|
+
*/
|
|
2326
|
+
getBaseUrl(): string;
|
|
2327
|
+
/**
|
|
2328
|
+
* Get JWT token for URL authentication (used in streaming endpoints).
|
|
2329
|
+
* Returns null if no token getter is configured or no token is available.
|
|
2330
|
+
*/
|
|
2331
|
+
getToken(): string | null;
|
|
2286
2332
|
/**
|
|
2287
2333
|
* Make HTTP request with Django CSRF and session handling.
|
|
2288
2334
|
* Automatically retries on network errors and 5xx server errors.
|
|
@@ -2948,4 +2994,4 @@ declare class BaseClient {
|
|
|
2948
2994
|
protected static api: API$1;
|
|
2949
2995
|
}
|
|
2950
2996
|
|
|
2951
|
-
export { API$1 as API, APIClient$1 as APIClient, APIError$1 as APIError, APILogger$1 as APILogger, type APIOptions$1 as APIOptions, models$1 as AccountsTypes, models$4 as AuthTypes, BaseClient, type CentrifugoToken, CentrifugoTokenSchema, index$3 as CfgAccountsTypes, CookieStorageAdapter$1 as CookieStorageAdapter, DEFAULT_RETRY_CONFIG$1 as DEFAULT_RETRY_CONFIG, enums as Enums, type ErrorLog$1 as ErrorLog, type FailedAttemptInfo$1 as FailedAttemptInfo, FetchAdapter$1 as FetchAdapter, index$4 as Fetchers, type HttpClientAdapter$1 as HttpClientAdapter, type HttpRequest$1 as HttpRequest, type HttpResponse$1 as HttpResponse, LocalStorageAdapter$1 as LocalStorageAdapter, type LoggerConfig$1 as LoggerConfig, MemoryStorageAdapter$1 as MemoryStorageAdapter, NetworkError$1 as NetworkError, 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, models$3 as OauthTypes, type PatchedUserProfileUpdateRequest, PatchedUserProfileUpdateRequestSchema, REFRESH_TOKEN_KEY$1 as REFRESH_TOKEN_KEY, type RequestLog$1 as RequestLog, type ResponseLog$1 as ResponseLog, type RetryConfig$1 as RetryConfig, index$5 as Schemas, type StorageAdapter$1 as StorageAdapter, TOKEN_KEY$1 as TOKEN_KEY, type TokenRefresh, type TokenRefreshRequest, TokenRefreshRequestSchema, TokenRefreshSchema, type User, models$2 as UserProfileTypes, type UserProfileUpdateRequest, UserProfileUpdateRequestSchema, UserSchema, type ValidationErrorDetail$1 as ValidationErrorDetail, type ValidationErrorEvent$1 as ValidationErrorEvent, API as WebPushAPI, index as WebPushTypes, api, clearAPITokens$1 as clearAPITokens, configureAPI$1 as configureAPI, createAccountsOauthDisconnectCreate, createAccountsOauthGithubAuthorizeCreate, createAccountsOauthGithubCallbackCreate, createAccountsOtpRequestCreate, createAccountsOtpVerifyCreate, createAccountsProfileAvatarCreate, createAccountsTokenRefreshCreate, dispatchValidationError$1 as dispatchValidationError, formatZodError$1 as formatZodError, getAPIInstance$1 as getAPIInstance, getAccountsOauthConnectionsList, getAccountsOauthProvidersRetrieve, getAccountsProfileRetrieve, getCentrifugoAuthTokenRetrieve, isAPIConfigured$1 as isAPIConfigured, onValidationError$1 as onValidationError, partialUpdateAccountsProfilePartialPartialUpdate, partialUpdateAccountsProfilePartialUpdate, partialUpdateAccountsProfileUpdatePartialUpdate, reconfigureAPI$1 as reconfigureAPI, resetAPI$1 as resetAPI, shouldRetry$1 as shouldRetry, updateAccountsProfileUpdateUpdate, withRetry$1 as withRetry };
|
|
2997
|
+
export { API$1 as API, APIClient$1 as APIClient, APIError$1 as APIError, APILogger$1 as APILogger, type APIOptions$1 as APIOptions, models$1 as AccountsTypes, models$4 as AuthTypes, BaseClient, type CentrifugoToken, CentrifugoTokenSchema, type CfgAccountsProfileAvatarCreateRequest, CfgAccountsProfileAvatarCreateRequestSchema, index$3 as CfgAccountsTypes, CookieStorageAdapter$1 as CookieStorageAdapter, DEFAULT_RETRY_CONFIG$1 as DEFAULT_RETRY_CONFIG, enums as Enums, type ErrorLog$1 as ErrorLog, type FailedAttemptInfo$1 as FailedAttemptInfo, FetchAdapter$1 as FetchAdapter, index$4 as Fetchers, type HttpClientAdapter$1 as HttpClientAdapter, type HttpRequest$1 as HttpRequest, type HttpResponse$1 as HttpResponse, LocalStorageAdapter$1 as LocalStorageAdapter, type LoggerConfig$1 as LoggerConfig, MemoryStorageAdapter$1 as MemoryStorageAdapter, NetworkError$1 as NetworkError, 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, models$3 as OauthTypes, type PatchedUserProfileUpdateRequest, PatchedUserProfileUpdateRequestSchema, REFRESH_TOKEN_KEY$1 as REFRESH_TOKEN_KEY, type RequestLog$1 as RequestLog, type ResponseLog$1 as ResponseLog, type RetryConfig$1 as RetryConfig, index$5 as Schemas, type StorageAdapter$1 as StorageAdapter, TOKEN_KEY$1 as TOKEN_KEY, type TokenRefresh, type TokenRefreshRequest, TokenRefreshRequestSchema, TokenRefreshSchema, type User, models$2 as UserProfileTypes, type UserProfileUpdateRequest, UserProfileUpdateRequestSchema, UserSchema, type ValidationErrorDetail$1 as ValidationErrorDetail, type ValidationErrorEvent$1 as ValidationErrorEvent, API as WebPushAPI, index as WebPushTypes, api, clearAPITokens$1 as clearAPITokens, configureAPI$1 as configureAPI, createAccountsOauthDisconnectCreate, createAccountsOauthGithubAuthorizeCreate, createAccountsOauthGithubCallbackCreate, createAccountsOtpRequestCreate, createAccountsOtpVerifyCreate, createAccountsProfileAvatarCreate, createAccountsTokenRefreshCreate, dispatchValidationError$1 as dispatchValidationError, formatZodError$1 as formatZodError, getAPIInstance$1 as getAPIInstance, getAccountsOauthConnectionsList, getAccountsOauthProvidersRetrieve, getAccountsProfileRetrieve, getCentrifugoAuthTokenRetrieve, isAPIConfigured$1 as isAPIConfigured, onValidationError$1 as onValidationError, partialUpdateAccountsProfilePartialPartialUpdate, partialUpdateAccountsProfilePartialUpdate, partialUpdateAccountsProfileUpdatePartialUpdate, reconfigureAPI$1 as reconfigureAPI, resetAPI$1 as resetAPI, shouldRetry$1 as shouldRetry, updateAccountsProfileUpdateUpdate, withRetry$1 as withRetry };
|
package/dist/index.d.ts
CHANGED
|
@@ -241,10 +241,17 @@ interface User$2 {
|
|
|
241
241
|
is_superuser: boolean;
|
|
242
242
|
date_joined: string;
|
|
243
243
|
last_login?: string | null;
|
|
244
|
-
/** Get count of unanswered messages for the user. */
|
|
245
244
|
unanswered_messages_count: number;
|
|
246
245
|
centrifugo: CentrifugoToken$2 | null;
|
|
247
246
|
}
|
|
247
|
+
/**
|
|
248
|
+
*
|
|
249
|
+
* Request model (no read-only fields).
|
|
250
|
+
*/
|
|
251
|
+
interface CfgAccountsProfileAvatarCreateRequest$1 {
|
|
252
|
+
/** Avatar image file (JPEG, PNG, GIF, WebP, max 5MB) */
|
|
253
|
+
avatar: File | Blob;
|
|
254
|
+
}
|
|
248
255
|
/**
|
|
249
256
|
* Serializer for updating user profile.
|
|
250
257
|
*
|
|
@@ -286,7 +293,7 @@ interface CentrifugoToken$2 {
|
|
|
286
293
|
}
|
|
287
294
|
|
|
288
295
|
declare namespace models$2 {
|
|
289
|
-
export type { CentrifugoToken$2 as CentrifugoToken, PatchedUserProfileUpdateRequest$1 as PatchedUserProfileUpdateRequest, User$2 as User, UserProfileUpdateRequest$1 as UserProfileUpdateRequest };
|
|
296
|
+
export type { CentrifugoToken$2 as CentrifugoToken, CfgAccountsProfileAvatarCreateRequest$1 as CfgAccountsProfileAvatarCreateRequest, PatchedUserProfileUpdateRequest$1 as PatchedUserProfileUpdateRequest, User$2 as User, UserProfileUpdateRequest$1 as UserProfileUpdateRequest };
|
|
290
297
|
}
|
|
291
298
|
|
|
292
299
|
/**
|
|
@@ -307,7 +314,7 @@ declare class UserProfile {
|
|
|
307
314
|
* Upload avatar image for the current authenticated user. Accepts
|
|
308
315
|
* multipart/form-data with 'avatar' field.
|
|
309
316
|
*/
|
|
310
|
-
accountsProfileAvatarCreate(data:
|
|
317
|
+
accountsProfileAvatarCreate(data: CfgAccountsProfileAvatarCreateRequest$1): Promise<User$2>;
|
|
311
318
|
/**
|
|
312
319
|
* Partial update user profile
|
|
313
320
|
*
|
|
@@ -434,7 +441,6 @@ interface User$1 {
|
|
|
434
441
|
is_superuser: boolean;
|
|
435
442
|
date_joined: string;
|
|
436
443
|
last_login?: string | null;
|
|
437
|
-
/** Get count of unanswered messages for the user. */
|
|
438
444
|
unanswered_messages_count: number;
|
|
439
445
|
centrifugo: CentrifugoToken$1 | null;
|
|
440
446
|
}
|
|
@@ -745,6 +751,7 @@ declare class APIClient$1 {
|
|
|
745
751
|
private httpClient;
|
|
746
752
|
private logger;
|
|
747
753
|
private retryConfig;
|
|
754
|
+
private tokenGetter;
|
|
748
755
|
auth: Auth;
|
|
749
756
|
oauth: Oauth;
|
|
750
757
|
user_profile: UserProfile;
|
|
@@ -753,6 +760,7 @@ declare class APIClient$1 {
|
|
|
753
760
|
httpClient?: HttpClientAdapter$1;
|
|
754
761
|
loggerConfig?: Partial<LoggerConfig$1>;
|
|
755
762
|
retryConfig?: RetryConfig$1;
|
|
763
|
+
tokenGetter?: () => string | null;
|
|
756
764
|
});
|
|
757
765
|
/**
|
|
758
766
|
* Get CSRF token from cookies (for SessionAuthentication).
|
|
@@ -760,6 +768,15 @@ declare class APIClient$1 {
|
|
|
760
768
|
* Returns null if cookie doesn't exist (JWT-only auth).
|
|
761
769
|
*/
|
|
762
770
|
getCsrfToken(): string | null;
|
|
771
|
+
/**
|
|
772
|
+
* Get the base URL for building streaming/download URLs.
|
|
773
|
+
*/
|
|
774
|
+
getBaseUrl(): string;
|
|
775
|
+
/**
|
|
776
|
+
* Get JWT token for URL authentication (used in streaming endpoints).
|
|
777
|
+
* Returns null if no token getter is configured or no token is available.
|
|
778
|
+
*/
|
|
779
|
+
getToken(): string | null;
|
|
763
780
|
/**
|
|
764
781
|
* Make HTTP request with Django CSRF and session handling.
|
|
765
782
|
* Automatically retries on network errors and 5xx server errors.
|
|
@@ -854,6 +871,20 @@ declare const CentrifugoTokenSchema: z.ZodObject<{
|
|
|
854
871
|
*/
|
|
855
872
|
type CentrifugoToken = z.infer<typeof CentrifugoTokenSchema>;
|
|
856
873
|
|
|
874
|
+
/**
|
|
875
|
+
* Zod schema for CfgAccountsProfileAvatarCreateRequest
|
|
876
|
+
*
|
|
877
|
+
* This schema provides runtime validation and type inference.
|
|
878
|
+
* */
|
|
879
|
+
|
|
880
|
+
declare const CfgAccountsProfileAvatarCreateRequestSchema: z.ZodObject<{
|
|
881
|
+
avatar: z.ZodUnion<readonly [z.ZodCustom<File, File>, z.ZodCustom<Blob, Blob>]>;
|
|
882
|
+
}, z.core.$strip>;
|
|
883
|
+
/**
|
|
884
|
+
* Infer TypeScript type from Zod schema
|
|
885
|
+
*/
|
|
886
|
+
type CfgAccountsProfileAvatarCreateRequest = z.infer<typeof CfgAccountsProfileAvatarCreateRequestSchema>;
|
|
887
|
+
|
|
857
888
|
/**
|
|
858
889
|
* Zod schema for OAuthAuthorizeRequestRequest
|
|
859
890
|
*
|
|
@@ -1312,6 +1343,8 @@ type UserProfileUpdateRequest = z.infer<typeof UserProfileUpdateRequestSchema>;
|
|
|
1312
1343
|
|
|
1313
1344
|
type index$5_CentrifugoToken = CentrifugoToken;
|
|
1314
1345
|
declare const index$5_CentrifugoTokenSchema: typeof CentrifugoTokenSchema;
|
|
1346
|
+
type index$5_CfgAccountsProfileAvatarCreateRequest = CfgAccountsProfileAvatarCreateRequest;
|
|
1347
|
+
declare const index$5_CfgAccountsProfileAvatarCreateRequestSchema: typeof CfgAccountsProfileAvatarCreateRequestSchema;
|
|
1315
1348
|
type index$5_OAuthAuthorizeRequestRequest = OAuthAuthorizeRequestRequest;
|
|
1316
1349
|
declare const index$5_OAuthAuthorizeRequestRequestSchema: typeof OAuthAuthorizeRequestRequestSchema;
|
|
1317
1350
|
type index$5_OAuthAuthorizeResponse = OAuthAuthorizeResponse;
|
|
@@ -1349,7 +1382,7 @@ type index$5_UserProfileUpdateRequest = UserProfileUpdateRequest;
|
|
|
1349
1382
|
declare const index$5_UserProfileUpdateRequestSchema: typeof UserProfileUpdateRequestSchema;
|
|
1350
1383
|
declare const index$5_UserSchema: typeof UserSchema;
|
|
1351
1384
|
declare namespace index$5 {
|
|
1352
|
-
export { type index$5_CentrifugoToken as CentrifugoToken, index$5_CentrifugoTokenSchema as CentrifugoTokenSchema, type index$5_OAuthAuthorizeRequestRequest as OAuthAuthorizeRequestRequest, index$5_OAuthAuthorizeRequestRequestSchema as OAuthAuthorizeRequestRequestSchema, type index$5_OAuthAuthorizeResponse as OAuthAuthorizeResponse, index$5_OAuthAuthorizeResponseSchema as OAuthAuthorizeResponseSchema, type index$5_OAuthCallbackRequestRequest as OAuthCallbackRequestRequest, index$5_OAuthCallbackRequestRequestSchema as OAuthCallbackRequestRequestSchema, type index$5_OAuthConnection as OAuthConnection, index$5_OAuthConnectionSchema as OAuthConnectionSchema, type index$5_OAuthDisconnectRequestRequest as OAuthDisconnectRequestRequest, index$5_OAuthDisconnectRequestRequestSchema as OAuthDisconnectRequestRequestSchema, type index$5_OAuthError as OAuthError, index$5_OAuthErrorSchema as OAuthErrorSchema, type index$5_OAuthProvidersResponse as OAuthProvidersResponse, index$5_OAuthProvidersResponseSchema as OAuthProvidersResponseSchema, type index$5_OAuthTokenResponse as OAuthTokenResponse, index$5_OAuthTokenResponseSchema as OAuthTokenResponseSchema, type index$5_OTPErrorResponse as OTPErrorResponse, index$5_OTPErrorResponseSchema as OTPErrorResponseSchema, type index$5_OTPRequestRequest as OTPRequestRequest, index$5_OTPRequestRequestSchema as OTPRequestRequestSchema, type index$5_OTPRequestResponse as OTPRequestResponse, index$5_OTPRequestResponseSchema as OTPRequestResponseSchema, type index$5_OTPVerifyRequest as OTPVerifyRequest, index$5_OTPVerifyRequestSchema as OTPVerifyRequestSchema, type index$5_OTPVerifyResponse as OTPVerifyResponse, index$5_OTPVerifyResponseSchema as OTPVerifyResponseSchema, type index$5_PatchedUserProfileUpdateRequest as PatchedUserProfileUpdateRequest, index$5_PatchedUserProfileUpdateRequestSchema as PatchedUserProfileUpdateRequestSchema, type index$5_TokenRefresh as TokenRefresh, type index$5_TokenRefreshRequest as TokenRefreshRequest, index$5_TokenRefreshRequestSchema as TokenRefreshRequestSchema, index$5_TokenRefreshSchema as TokenRefreshSchema, type index$5_User as User, type index$5_UserProfileUpdateRequest as UserProfileUpdateRequest, index$5_UserProfileUpdateRequestSchema as UserProfileUpdateRequestSchema, index$5_UserSchema as UserSchema };
|
|
1385
|
+
export { type index$5_CentrifugoToken as CentrifugoToken, index$5_CentrifugoTokenSchema as CentrifugoTokenSchema, type index$5_CfgAccountsProfileAvatarCreateRequest as CfgAccountsProfileAvatarCreateRequest, index$5_CfgAccountsProfileAvatarCreateRequestSchema as CfgAccountsProfileAvatarCreateRequestSchema, type index$5_OAuthAuthorizeRequestRequest as OAuthAuthorizeRequestRequest, index$5_OAuthAuthorizeRequestRequestSchema as OAuthAuthorizeRequestRequestSchema, type index$5_OAuthAuthorizeResponse as OAuthAuthorizeResponse, index$5_OAuthAuthorizeResponseSchema as OAuthAuthorizeResponseSchema, type index$5_OAuthCallbackRequestRequest as OAuthCallbackRequestRequest, index$5_OAuthCallbackRequestRequestSchema as OAuthCallbackRequestRequestSchema, type index$5_OAuthConnection as OAuthConnection, index$5_OAuthConnectionSchema as OAuthConnectionSchema, type index$5_OAuthDisconnectRequestRequest as OAuthDisconnectRequestRequest, index$5_OAuthDisconnectRequestRequestSchema as OAuthDisconnectRequestRequestSchema, type index$5_OAuthError as OAuthError, index$5_OAuthErrorSchema as OAuthErrorSchema, type index$5_OAuthProvidersResponse as OAuthProvidersResponse, index$5_OAuthProvidersResponseSchema as OAuthProvidersResponseSchema, type index$5_OAuthTokenResponse as OAuthTokenResponse, index$5_OAuthTokenResponseSchema as OAuthTokenResponseSchema, type index$5_OTPErrorResponse as OTPErrorResponse, index$5_OTPErrorResponseSchema as OTPErrorResponseSchema, type index$5_OTPRequestRequest as OTPRequestRequest, index$5_OTPRequestRequestSchema as OTPRequestRequestSchema, type index$5_OTPRequestResponse as OTPRequestResponse, index$5_OTPRequestResponseSchema as OTPRequestResponseSchema, type index$5_OTPVerifyRequest as OTPVerifyRequest, index$5_OTPVerifyRequestSchema as OTPVerifyRequestSchema, type index$5_OTPVerifyResponse as OTPVerifyResponse, index$5_OTPVerifyResponseSchema as OTPVerifyResponseSchema, type index$5_PatchedUserProfileUpdateRequest as PatchedUserProfileUpdateRequest, index$5_PatchedUserProfileUpdateRequestSchema as PatchedUserProfileUpdateRequestSchema, type index$5_TokenRefresh as TokenRefresh, type index$5_TokenRefreshRequest as TokenRefreshRequest, index$5_TokenRefreshRequestSchema as TokenRefreshRequestSchema, index$5_TokenRefreshSchema as TokenRefreshSchema, type index$5_User as User, type index$5_UserProfileUpdateRequest as UserProfileUpdateRequest, index$5_UserProfileUpdateRequestSchema as UserProfileUpdateRequestSchema, index$5_UserSchema as UserSchema };
|
|
1353
1386
|
}
|
|
1354
1387
|
|
|
1355
1388
|
/**
|
|
@@ -1497,7 +1530,7 @@ declare function getAccountsProfileRetrieve(client?: any): Promise<User>;
|
|
|
1497
1530
|
* @method POST
|
|
1498
1531
|
* @path /cfg/accounts/profile/avatar/
|
|
1499
1532
|
*/
|
|
1500
|
-
declare function createAccountsProfileAvatarCreate(data:
|
|
1533
|
+
declare function createAccountsProfileAvatarCreate(data: CfgAccountsProfileAvatarCreateRequest, client?: any): Promise<User>;
|
|
1501
1534
|
/**
|
|
1502
1535
|
* Partial update user profile
|
|
1503
1536
|
*
|
|
@@ -1829,6 +1862,8 @@ declare class API$1 {
|
|
|
1829
1862
|
|
|
1830
1863
|
type index$3_CentrifugoToken = CentrifugoToken;
|
|
1831
1864
|
declare const index$3_CentrifugoTokenSchema: typeof CentrifugoTokenSchema;
|
|
1865
|
+
type index$3_CfgAccountsProfileAvatarCreateRequest = CfgAccountsProfileAvatarCreateRequest;
|
|
1866
|
+
declare const index$3_CfgAccountsProfileAvatarCreateRequestSchema: typeof CfgAccountsProfileAvatarCreateRequestSchema;
|
|
1832
1867
|
type index$3_OAuthAuthorizeRequestRequest = OAuthAuthorizeRequestRequest;
|
|
1833
1868
|
declare const index$3_OAuthAuthorizeRequestRequestSchema: typeof OAuthAuthorizeRequestRequestSchema;
|
|
1834
1869
|
type index$3_OAuthAuthorizeResponse = OAuthAuthorizeResponse;
|
|
@@ -1880,7 +1915,7 @@ declare const index$3_partialUpdateAccountsProfilePartialUpdate: typeof partialU
|
|
|
1880
1915
|
declare const index$3_partialUpdateAccountsProfileUpdatePartialUpdate: typeof partialUpdateAccountsProfileUpdatePartialUpdate;
|
|
1881
1916
|
declare const index$3_updateAccountsProfileUpdateUpdate: typeof updateAccountsProfileUpdateUpdate;
|
|
1882
1917
|
declare namespace index$3 {
|
|
1883
|
-
export { API$1 as API, APIClient$1 as APIClient, APIError$1 as APIError, APILogger$1 as APILogger, type APIOptions$1 as APIOptions, models$1 as AccountsTypes, models$4 as AuthTypes, type index$3_CentrifugoToken as CentrifugoToken, index$3_CentrifugoTokenSchema as CentrifugoTokenSchema, CookieStorageAdapter$1 as CookieStorageAdapter, DEFAULT_RETRY_CONFIG$1 as DEFAULT_RETRY_CONFIG, enums as Enums, type ErrorLog$1 as ErrorLog, type FailedAttemptInfo$1 as FailedAttemptInfo, FetchAdapter$1 as FetchAdapter, index$4 as Fetchers, type HttpClientAdapter$1 as HttpClientAdapter, type HttpRequest$1 as HttpRequest, type HttpResponse$1 as HttpResponse, LocalStorageAdapter$1 as LocalStorageAdapter, type LoggerConfig$1 as LoggerConfig, MemoryStorageAdapter$1 as MemoryStorageAdapter, NetworkError$1 as NetworkError, type index$3_OAuthAuthorizeRequestRequest as OAuthAuthorizeRequestRequest, index$3_OAuthAuthorizeRequestRequestSchema as OAuthAuthorizeRequestRequestSchema, type index$3_OAuthAuthorizeResponse as OAuthAuthorizeResponse, index$3_OAuthAuthorizeResponseSchema as OAuthAuthorizeResponseSchema, type index$3_OAuthCallbackRequestRequest as OAuthCallbackRequestRequest, index$3_OAuthCallbackRequestRequestSchema as OAuthCallbackRequestRequestSchema, type index$3_OAuthConnection as OAuthConnection, index$3_OAuthConnectionSchema as OAuthConnectionSchema, type index$3_OAuthDisconnectRequestRequest as OAuthDisconnectRequestRequest, index$3_OAuthDisconnectRequestRequestSchema as OAuthDisconnectRequestRequestSchema, type index$3_OAuthError as OAuthError, index$3_OAuthErrorSchema as OAuthErrorSchema, type index$3_OAuthProvidersResponse as OAuthProvidersResponse, index$3_OAuthProvidersResponseSchema as OAuthProvidersResponseSchema, type index$3_OAuthTokenResponse as OAuthTokenResponse, index$3_OAuthTokenResponseSchema as OAuthTokenResponseSchema, type index$3_OTPErrorResponse as OTPErrorResponse, index$3_OTPErrorResponseSchema as OTPErrorResponseSchema, type index$3_OTPRequestRequest as OTPRequestRequest, index$3_OTPRequestRequestSchema as OTPRequestRequestSchema, type index$3_OTPRequestResponse as OTPRequestResponse, index$3_OTPRequestResponseSchema as OTPRequestResponseSchema, type index$3_OTPVerifyRequest as OTPVerifyRequest, index$3_OTPVerifyRequestSchema as OTPVerifyRequestSchema, type index$3_OTPVerifyResponse as OTPVerifyResponse, index$3_OTPVerifyResponseSchema as OTPVerifyResponseSchema, models$3 as OauthTypes, type index$3_PatchedUserProfileUpdateRequest as PatchedUserProfileUpdateRequest, index$3_PatchedUserProfileUpdateRequestSchema as PatchedUserProfileUpdateRequestSchema, REFRESH_TOKEN_KEY$1 as REFRESH_TOKEN_KEY, type RequestLog$1 as RequestLog, type ResponseLog$1 as ResponseLog, type RetryConfig$1 as RetryConfig, index$5 as Schemas, type StorageAdapter$1 as StorageAdapter, TOKEN_KEY$1 as TOKEN_KEY, type index$3_TokenRefresh as TokenRefresh, type index$3_TokenRefreshRequest as TokenRefreshRequest, index$3_TokenRefreshRequestSchema as TokenRefreshRequestSchema, index$3_TokenRefreshSchema as TokenRefreshSchema, type index$3_User as User, models$2 as UserProfileTypes, type index$3_UserProfileUpdateRequest as UserProfileUpdateRequest, index$3_UserProfileUpdateRequestSchema as UserProfileUpdateRequestSchema, index$3_UserSchema as UserSchema, type ValidationErrorDetail$1 as ValidationErrorDetail, type ValidationErrorEvent$1 as ValidationErrorEvent, clearAPITokens$1 as clearAPITokens, configureAPI$1 as configureAPI, index$3_createAccountsOauthDisconnectCreate as createAccountsOauthDisconnectCreate, index$3_createAccountsOauthGithubAuthorizeCreate as createAccountsOauthGithubAuthorizeCreate, index$3_createAccountsOauthGithubCallbackCreate as createAccountsOauthGithubCallbackCreate, index$3_createAccountsOtpRequestCreate as createAccountsOtpRequestCreate, index$3_createAccountsOtpVerifyCreate as createAccountsOtpVerifyCreate, index$3_createAccountsProfileAvatarCreate as createAccountsProfileAvatarCreate, index$3_createAccountsTokenRefreshCreate as createAccountsTokenRefreshCreate, API$1 as default, dispatchValidationError$1 as dispatchValidationError, formatZodError$1 as formatZodError, getAPIInstance$1 as getAPIInstance, index$3_getAccountsOauthConnectionsList as getAccountsOauthConnectionsList, index$3_getAccountsOauthProvidersRetrieve as getAccountsOauthProvidersRetrieve, index$3_getAccountsProfileRetrieve as getAccountsProfileRetrieve, isAPIConfigured$1 as isAPIConfigured, onValidationError$1 as onValidationError, index$3_partialUpdateAccountsProfilePartialPartialUpdate as partialUpdateAccountsProfilePartialPartialUpdate, index$3_partialUpdateAccountsProfilePartialUpdate as partialUpdateAccountsProfilePartialUpdate, index$3_partialUpdateAccountsProfileUpdatePartialUpdate as partialUpdateAccountsProfileUpdatePartialUpdate, reconfigureAPI$1 as reconfigureAPI, resetAPI$1 as resetAPI, shouldRetry$1 as shouldRetry, index$3_updateAccountsProfileUpdateUpdate as updateAccountsProfileUpdateUpdate, withRetry$1 as withRetry };
|
|
1918
|
+
export { API$1 as API, APIClient$1 as APIClient, APIError$1 as APIError, APILogger$1 as APILogger, type APIOptions$1 as APIOptions, models$1 as AccountsTypes, models$4 as AuthTypes, type index$3_CentrifugoToken as CentrifugoToken, index$3_CentrifugoTokenSchema as CentrifugoTokenSchema, type index$3_CfgAccountsProfileAvatarCreateRequest as CfgAccountsProfileAvatarCreateRequest, index$3_CfgAccountsProfileAvatarCreateRequestSchema as CfgAccountsProfileAvatarCreateRequestSchema, CookieStorageAdapter$1 as CookieStorageAdapter, DEFAULT_RETRY_CONFIG$1 as DEFAULT_RETRY_CONFIG, enums as Enums, type ErrorLog$1 as ErrorLog, type FailedAttemptInfo$1 as FailedAttemptInfo, FetchAdapter$1 as FetchAdapter, index$4 as Fetchers, type HttpClientAdapter$1 as HttpClientAdapter, type HttpRequest$1 as HttpRequest, type HttpResponse$1 as HttpResponse, LocalStorageAdapter$1 as LocalStorageAdapter, type LoggerConfig$1 as LoggerConfig, MemoryStorageAdapter$1 as MemoryStorageAdapter, NetworkError$1 as NetworkError, type index$3_OAuthAuthorizeRequestRequest as OAuthAuthorizeRequestRequest, index$3_OAuthAuthorizeRequestRequestSchema as OAuthAuthorizeRequestRequestSchema, type index$3_OAuthAuthorizeResponse as OAuthAuthorizeResponse, index$3_OAuthAuthorizeResponseSchema as OAuthAuthorizeResponseSchema, type index$3_OAuthCallbackRequestRequest as OAuthCallbackRequestRequest, index$3_OAuthCallbackRequestRequestSchema as OAuthCallbackRequestRequestSchema, type index$3_OAuthConnection as OAuthConnection, index$3_OAuthConnectionSchema as OAuthConnectionSchema, type index$3_OAuthDisconnectRequestRequest as OAuthDisconnectRequestRequest, index$3_OAuthDisconnectRequestRequestSchema as OAuthDisconnectRequestRequestSchema, type index$3_OAuthError as OAuthError, index$3_OAuthErrorSchema as OAuthErrorSchema, type index$3_OAuthProvidersResponse as OAuthProvidersResponse, index$3_OAuthProvidersResponseSchema as OAuthProvidersResponseSchema, type index$3_OAuthTokenResponse as OAuthTokenResponse, index$3_OAuthTokenResponseSchema as OAuthTokenResponseSchema, type index$3_OTPErrorResponse as OTPErrorResponse, index$3_OTPErrorResponseSchema as OTPErrorResponseSchema, type index$3_OTPRequestRequest as OTPRequestRequest, index$3_OTPRequestRequestSchema as OTPRequestRequestSchema, type index$3_OTPRequestResponse as OTPRequestResponse, index$3_OTPRequestResponseSchema as OTPRequestResponseSchema, type index$3_OTPVerifyRequest as OTPVerifyRequest, index$3_OTPVerifyRequestSchema as OTPVerifyRequestSchema, type index$3_OTPVerifyResponse as OTPVerifyResponse, index$3_OTPVerifyResponseSchema as OTPVerifyResponseSchema, models$3 as OauthTypes, type index$3_PatchedUserProfileUpdateRequest as PatchedUserProfileUpdateRequest, index$3_PatchedUserProfileUpdateRequestSchema as PatchedUserProfileUpdateRequestSchema, REFRESH_TOKEN_KEY$1 as REFRESH_TOKEN_KEY, type RequestLog$1 as RequestLog, type ResponseLog$1 as ResponseLog, type RetryConfig$1 as RetryConfig, index$5 as Schemas, type StorageAdapter$1 as StorageAdapter, TOKEN_KEY$1 as TOKEN_KEY, type index$3_TokenRefresh as TokenRefresh, type index$3_TokenRefreshRequest as TokenRefreshRequest, index$3_TokenRefreshRequestSchema as TokenRefreshRequestSchema, index$3_TokenRefreshSchema as TokenRefreshSchema, type index$3_User as User, models$2 as UserProfileTypes, type index$3_UserProfileUpdateRequest as UserProfileUpdateRequest, index$3_UserProfileUpdateRequestSchema as UserProfileUpdateRequestSchema, index$3_UserSchema as UserSchema, type ValidationErrorDetail$1 as ValidationErrorDetail, type ValidationErrorEvent$1 as ValidationErrorEvent, clearAPITokens$1 as clearAPITokens, configureAPI$1 as configureAPI, index$3_createAccountsOauthDisconnectCreate as createAccountsOauthDisconnectCreate, index$3_createAccountsOauthGithubAuthorizeCreate as createAccountsOauthGithubAuthorizeCreate, index$3_createAccountsOauthGithubCallbackCreate as createAccountsOauthGithubCallbackCreate, index$3_createAccountsOtpRequestCreate as createAccountsOtpRequestCreate, index$3_createAccountsOtpVerifyCreate as createAccountsOtpVerifyCreate, index$3_createAccountsProfileAvatarCreate as createAccountsProfileAvatarCreate, index$3_createAccountsTokenRefreshCreate as createAccountsTokenRefreshCreate, API$1 as default, dispatchValidationError$1 as dispatchValidationError, formatZodError$1 as formatZodError, getAPIInstance$1 as getAPIInstance, index$3_getAccountsOauthConnectionsList as getAccountsOauthConnectionsList, index$3_getAccountsOauthProvidersRetrieve as getAccountsOauthProvidersRetrieve, index$3_getAccountsProfileRetrieve as getAccountsProfileRetrieve, isAPIConfigured$1 as isAPIConfigured, onValidationError$1 as onValidationError, index$3_partialUpdateAccountsProfilePartialPartialUpdate as partialUpdateAccountsProfilePartialPartialUpdate, index$3_partialUpdateAccountsProfilePartialUpdate as partialUpdateAccountsProfilePartialUpdate, index$3_partialUpdateAccountsProfileUpdatePartialUpdate as partialUpdateAccountsProfileUpdatePartialUpdate, reconfigureAPI$1 as reconfigureAPI, resetAPI$1 as resetAPI, shouldRetry$1 as shouldRetry, index$3_updateAccountsProfileUpdateUpdate as updateAccountsProfileUpdateUpdate, withRetry$1 as withRetry };
|
|
1884
1919
|
}
|
|
1885
1920
|
|
|
1886
1921
|
/**
|
|
@@ -2271,11 +2306,13 @@ declare class APIClient {
|
|
|
2271
2306
|
private httpClient;
|
|
2272
2307
|
private logger;
|
|
2273
2308
|
private retryConfig;
|
|
2309
|
+
private tokenGetter;
|
|
2274
2310
|
web_push: WebPush;
|
|
2275
2311
|
constructor(baseUrl: string, options?: {
|
|
2276
2312
|
httpClient?: HttpClientAdapter;
|
|
2277
2313
|
loggerConfig?: Partial<LoggerConfig>;
|
|
2278
2314
|
retryConfig?: RetryConfig;
|
|
2315
|
+
tokenGetter?: () => string | null;
|
|
2279
2316
|
});
|
|
2280
2317
|
/**
|
|
2281
2318
|
* Get CSRF token from cookies (for SessionAuthentication).
|
|
@@ -2283,6 +2320,15 @@ declare class APIClient {
|
|
|
2283
2320
|
* Returns null if cookie doesn't exist (JWT-only auth).
|
|
2284
2321
|
*/
|
|
2285
2322
|
getCsrfToken(): string | null;
|
|
2323
|
+
/**
|
|
2324
|
+
* Get the base URL for building streaming/download URLs.
|
|
2325
|
+
*/
|
|
2326
|
+
getBaseUrl(): string;
|
|
2327
|
+
/**
|
|
2328
|
+
* Get JWT token for URL authentication (used in streaming endpoints).
|
|
2329
|
+
* Returns null if no token getter is configured or no token is available.
|
|
2330
|
+
*/
|
|
2331
|
+
getToken(): string | null;
|
|
2286
2332
|
/**
|
|
2287
2333
|
* Make HTTP request with Django CSRF and session handling.
|
|
2288
2334
|
* Automatically retries on network errors and 5xx server errors.
|
|
@@ -2948,4 +2994,4 @@ declare class BaseClient {
|
|
|
2948
2994
|
protected static api: API$1;
|
|
2949
2995
|
}
|
|
2950
2996
|
|
|
2951
|
-
export { API$1 as API, APIClient$1 as APIClient, APIError$1 as APIError, APILogger$1 as APILogger, type APIOptions$1 as APIOptions, models$1 as AccountsTypes, models$4 as AuthTypes, BaseClient, type CentrifugoToken, CentrifugoTokenSchema, index$3 as CfgAccountsTypes, CookieStorageAdapter$1 as CookieStorageAdapter, DEFAULT_RETRY_CONFIG$1 as DEFAULT_RETRY_CONFIG, enums as Enums, type ErrorLog$1 as ErrorLog, type FailedAttemptInfo$1 as FailedAttemptInfo, FetchAdapter$1 as FetchAdapter, index$4 as Fetchers, type HttpClientAdapter$1 as HttpClientAdapter, type HttpRequest$1 as HttpRequest, type HttpResponse$1 as HttpResponse, LocalStorageAdapter$1 as LocalStorageAdapter, type LoggerConfig$1 as LoggerConfig, MemoryStorageAdapter$1 as MemoryStorageAdapter, NetworkError$1 as NetworkError, 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, models$3 as OauthTypes, type PatchedUserProfileUpdateRequest, PatchedUserProfileUpdateRequestSchema, REFRESH_TOKEN_KEY$1 as REFRESH_TOKEN_KEY, type RequestLog$1 as RequestLog, type ResponseLog$1 as ResponseLog, type RetryConfig$1 as RetryConfig, index$5 as Schemas, type StorageAdapter$1 as StorageAdapter, TOKEN_KEY$1 as TOKEN_KEY, type TokenRefresh, type TokenRefreshRequest, TokenRefreshRequestSchema, TokenRefreshSchema, type User, models$2 as UserProfileTypes, type UserProfileUpdateRequest, UserProfileUpdateRequestSchema, UserSchema, type ValidationErrorDetail$1 as ValidationErrorDetail, type ValidationErrorEvent$1 as ValidationErrorEvent, API as WebPushAPI, index as WebPushTypes, api, clearAPITokens$1 as clearAPITokens, configureAPI$1 as configureAPI, createAccountsOauthDisconnectCreate, createAccountsOauthGithubAuthorizeCreate, createAccountsOauthGithubCallbackCreate, createAccountsOtpRequestCreate, createAccountsOtpVerifyCreate, createAccountsProfileAvatarCreate, createAccountsTokenRefreshCreate, dispatchValidationError$1 as dispatchValidationError, formatZodError$1 as formatZodError, getAPIInstance$1 as getAPIInstance, getAccountsOauthConnectionsList, getAccountsOauthProvidersRetrieve, getAccountsProfileRetrieve, getCentrifugoAuthTokenRetrieve, isAPIConfigured$1 as isAPIConfigured, onValidationError$1 as onValidationError, partialUpdateAccountsProfilePartialPartialUpdate, partialUpdateAccountsProfilePartialUpdate, partialUpdateAccountsProfileUpdatePartialUpdate, reconfigureAPI$1 as reconfigureAPI, resetAPI$1 as resetAPI, shouldRetry$1 as shouldRetry, updateAccountsProfileUpdateUpdate, withRetry$1 as withRetry };
|
|
2997
|
+
export { API$1 as API, APIClient$1 as APIClient, APIError$1 as APIError, APILogger$1 as APILogger, type APIOptions$1 as APIOptions, models$1 as AccountsTypes, models$4 as AuthTypes, BaseClient, type CentrifugoToken, CentrifugoTokenSchema, type CfgAccountsProfileAvatarCreateRequest, CfgAccountsProfileAvatarCreateRequestSchema, index$3 as CfgAccountsTypes, CookieStorageAdapter$1 as CookieStorageAdapter, DEFAULT_RETRY_CONFIG$1 as DEFAULT_RETRY_CONFIG, enums as Enums, type ErrorLog$1 as ErrorLog, type FailedAttemptInfo$1 as FailedAttemptInfo, FetchAdapter$1 as FetchAdapter, index$4 as Fetchers, type HttpClientAdapter$1 as HttpClientAdapter, type HttpRequest$1 as HttpRequest, type HttpResponse$1 as HttpResponse, LocalStorageAdapter$1 as LocalStorageAdapter, type LoggerConfig$1 as LoggerConfig, MemoryStorageAdapter$1 as MemoryStorageAdapter, NetworkError$1 as NetworkError, 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, models$3 as OauthTypes, type PatchedUserProfileUpdateRequest, PatchedUserProfileUpdateRequestSchema, REFRESH_TOKEN_KEY$1 as REFRESH_TOKEN_KEY, type RequestLog$1 as RequestLog, type ResponseLog$1 as ResponseLog, type RetryConfig$1 as RetryConfig, index$5 as Schemas, type StorageAdapter$1 as StorageAdapter, TOKEN_KEY$1 as TOKEN_KEY, type TokenRefresh, type TokenRefreshRequest, TokenRefreshRequestSchema, TokenRefreshSchema, type User, models$2 as UserProfileTypes, type UserProfileUpdateRequest, UserProfileUpdateRequestSchema, UserSchema, type ValidationErrorDetail$1 as ValidationErrorDetail, type ValidationErrorEvent$1 as ValidationErrorEvent, API as WebPushAPI, index as WebPushTypes, api, clearAPITokens$1 as clearAPITokens, configureAPI$1 as configureAPI, createAccountsOauthDisconnectCreate, createAccountsOauthGithubAuthorizeCreate, createAccountsOauthGithubCallbackCreate, createAccountsOtpRequestCreate, createAccountsOtpVerifyCreate, createAccountsProfileAvatarCreate, createAccountsTokenRefreshCreate, dispatchValidationError$1 as dispatchValidationError, formatZodError$1 as formatZodError, getAPIInstance$1 as getAPIInstance, getAccountsOauthConnectionsList, getAccountsOauthProvidersRetrieve, getAccountsProfileRetrieve, getCentrifugoAuthTokenRetrieve, isAPIConfigured$1 as isAPIConfigured, onValidationError$1 as onValidationError, partialUpdateAccountsProfilePartialPartialUpdate, partialUpdateAccountsProfilePartialUpdate, partialUpdateAccountsProfileUpdatePartialUpdate, reconfigureAPI$1 as reconfigureAPI, resetAPI$1 as resetAPI, shouldRetry$1 as shouldRetry, updateAccountsProfileUpdateUpdate, withRetry$1 as withRetry };
|