@djangocfg/api 2.1.138 → 2.1.140
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 +2 -199
- package/dist/auth-server.cjs.map +1 -1
- package/dist/auth-server.mjs +2 -199
- package/dist/auth-server.mjs.map +1 -1
- package/dist/auth.cjs +11 -836
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.mjs +11 -836
- package/dist/auth.mjs.map +1 -1
- package/dist/clients.cjs +40 -1077
- package/dist/clients.cjs.map +1 -1
- package/dist/clients.d.cts +209 -754
- package/dist/clients.d.ts +209 -754
- package/dist/clients.mjs +40 -1077
- package/dist/clients.mjs.map +1 -1
- package/dist/index.cjs +0 -1198
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +229 -1211
- package/dist/index.d.ts +229 -1211
- package/dist/index.mjs +0 -1198
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/clients.ts +2 -12
- package/src/index.ts +0 -6
- package/src/generated/cfg_webpush/CLAUDE.md +0 -63
- package/src/generated/cfg_webpush/_utils/fetchers/index.ts +0 -29
- package/src/generated/cfg_webpush/_utils/fetchers/webpush__web_push.ts +0 -211
- package/src/generated/cfg_webpush/_utils/hooks/index.ts +0 -29
- package/src/generated/cfg_webpush/_utils/hooks/webpush__web_push.ts +0 -79
- package/src/generated/cfg_webpush/_utils/schemas/SendPushRequestRequest.schema.ts +0 -22
- package/src/generated/cfg_webpush/_utils/schemas/SendPushResponse.schema.ts +0 -20
- package/src/generated/cfg_webpush/_utils/schemas/SubscribeRequestRequest.schema.ts +0 -20
- package/src/generated/cfg_webpush/_utils/schemas/SubscribeResponse.schema.ts +0 -21
- package/src/generated/cfg_webpush/_utils/schemas/VapidPublicKeyResponse.schema.ts +0 -19
- package/src/generated/cfg_webpush/_utils/schemas/index.ts +0 -24
- package/src/generated/cfg_webpush/api-instance.ts +0 -180
- package/src/generated/cfg_webpush/client.ts +0 -322
- package/src/generated/cfg_webpush/errors.ts +0 -117
- package/src/generated/cfg_webpush/http.ts +0 -110
- package/src/generated/cfg_webpush/index.ts +0 -275
- package/src/generated/cfg_webpush/logger.ts +0 -260
- package/src/generated/cfg_webpush/retry.ts +0 -176
- package/src/generated/cfg_webpush/schema.json +0 -302
- package/src/generated/cfg_webpush/storage.ts +0 -162
- package/src/generated/cfg_webpush/validation-events.ts +0 -134
- package/src/generated/cfg_webpush/webpush__web_push/client.ts +0 -45
- package/src/generated/cfg_webpush/webpush__web_push/index.ts +0 -3
- package/src/generated/cfg_webpush/webpush__web_push/models.ts +0 -65
- package/src/hooks/webpush.ts +0 -12
package/dist/clients.d.cts
CHANGED
|
@@ -460,7 +460,7 @@ declare class Accounts {
|
|
|
460
460
|
/**
|
|
461
461
|
* Logger configuration
|
|
462
462
|
*/
|
|
463
|
-
interface LoggerConfig$
|
|
463
|
+
interface LoggerConfig$2 {
|
|
464
464
|
/** Enable logging */
|
|
465
465
|
enabled: boolean;
|
|
466
466
|
/** Log requests */
|
|
@@ -486,7 +486,7 @@ interface LoggerConfig$3 {
|
|
|
486
486
|
/**
|
|
487
487
|
* Information about a failed retry attempt.
|
|
488
488
|
*/
|
|
489
|
-
interface FailedAttemptInfo$
|
|
489
|
+
interface FailedAttemptInfo$2 {
|
|
490
490
|
/** The error that caused the failure */
|
|
491
491
|
error: Error;
|
|
492
492
|
/** The attempt number (1-indexed) */
|
|
@@ -499,7 +499,7 @@ interface FailedAttemptInfo$3 {
|
|
|
499
499
|
*
|
|
500
500
|
* Uses exponential backoff with jitter by default to avoid thundering herd.
|
|
501
501
|
*/
|
|
502
|
-
interface RetryConfig$
|
|
502
|
+
interface RetryConfig$2 {
|
|
503
503
|
/**
|
|
504
504
|
* Maximum number of retry attempts.
|
|
505
505
|
* @default 3
|
|
@@ -529,7 +529,7 @@ interface RetryConfig$3 {
|
|
|
529
529
|
/**
|
|
530
530
|
* Callback called on each failed attempt.
|
|
531
531
|
*/
|
|
532
|
-
onFailedAttempt?: (info: FailedAttemptInfo$
|
|
532
|
+
onFailedAttempt?: (info: FailedAttemptInfo$2) => void;
|
|
533
533
|
}
|
|
534
534
|
|
|
535
535
|
/**
|
|
@@ -544,7 +544,7 @@ interface RetryConfig$3 {
|
|
|
544
544
|
/**
|
|
545
545
|
* Storage adapter interface for cross-platform token storage.
|
|
546
546
|
*/
|
|
547
|
-
interface StorageAdapter$
|
|
547
|
+
interface StorageAdapter$2 {
|
|
548
548
|
getItem(key: string): string | null;
|
|
549
549
|
setItem(key: string, value: string): void;
|
|
550
550
|
removeItem(key: string): void;
|
|
@@ -1185,15 +1185,15 @@ declare function partialUpdateAccountsProfileUpdatePartialUpdate(data?: PatchedU
|
|
|
1185
1185
|
* ```
|
|
1186
1186
|
*/
|
|
1187
1187
|
|
|
1188
|
-
interface APIOptions$
|
|
1188
|
+
interface APIOptions$2 {
|
|
1189
1189
|
/** Custom storage adapter (defaults to LocalStorageAdapter) */
|
|
1190
|
-
storage?: StorageAdapter$
|
|
1190
|
+
storage?: StorageAdapter$2;
|
|
1191
1191
|
/** Retry configuration for failed requests */
|
|
1192
|
-
retryConfig?: RetryConfig$
|
|
1192
|
+
retryConfig?: RetryConfig$2;
|
|
1193
1193
|
/** Logger configuration */
|
|
1194
|
-
loggerConfig?: Partial<LoggerConfig$
|
|
1194
|
+
loggerConfig?: Partial<LoggerConfig$2>;
|
|
1195
1195
|
}
|
|
1196
|
-
declare class API$
|
|
1196
|
+
declare class API$2 {
|
|
1197
1197
|
private baseUrl;
|
|
1198
1198
|
private _client;
|
|
1199
1199
|
private _token;
|
|
@@ -1204,7 +1204,7 @@ declare class API$3 {
|
|
|
1204
1204
|
oauth: Oauth;
|
|
1205
1205
|
user_profile: UserProfile;
|
|
1206
1206
|
accounts: Accounts;
|
|
1207
|
-
constructor(baseUrl: string, options?: APIOptions$
|
|
1207
|
+
constructor(baseUrl: string, options?: APIOptions$2);
|
|
1208
1208
|
private _loadTokensFromStorage;
|
|
1209
1209
|
private _reinitClients;
|
|
1210
1210
|
private _injectAuthHeader;
|
|
@@ -1846,7 +1846,7 @@ declare class CentrifugoTesting {
|
|
|
1846
1846
|
/**
|
|
1847
1847
|
* Logger configuration
|
|
1848
1848
|
*/
|
|
1849
|
-
interface LoggerConfig$
|
|
1849
|
+
interface LoggerConfig$1 {
|
|
1850
1850
|
/** Enable logging */
|
|
1851
1851
|
enabled: boolean;
|
|
1852
1852
|
/** Log requests */
|
|
@@ -1872,7 +1872,7 @@ interface LoggerConfig$2 {
|
|
|
1872
1872
|
/**
|
|
1873
1873
|
* Information about a failed retry attempt.
|
|
1874
1874
|
*/
|
|
1875
|
-
interface FailedAttemptInfo$
|
|
1875
|
+
interface FailedAttemptInfo$1 {
|
|
1876
1876
|
/** The error that caused the failure */
|
|
1877
1877
|
error: Error;
|
|
1878
1878
|
/** The attempt number (1-indexed) */
|
|
@@ -1885,7 +1885,7 @@ interface FailedAttemptInfo$2 {
|
|
|
1885
1885
|
*
|
|
1886
1886
|
* Uses exponential backoff with jitter by default to avoid thundering herd.
|
|
1887
1887
|
*/
|
|
1888
|
-
interface RetryConfig$
|
|
1888
|
+
interface RetryConfig$1 {
|
|
1889
1889
|
/**
|
|
1890
1890
|
* Maximum number of retry attempts.
|
|
1891
1891
|
* @default 3
|
|
@@ -1915,7 +1915,7 @@ interface RetryConfig$2 {
|
|
|
1915
1915
|
/**
|
|
1916
1916
|
* Callback called on each failed attempt.
|
|
1917
1917
|
*/
|
|
1918
|
-
onFailedAttempt?: (info: FailedAttemptInfo$
|
|
1918
|
+
onFailedAttempt?: (info: FailedAttemptInfo$1) => void;
|
|
1919
1919
|
}
|
|
1920
1920
|
|
|
1921
1921
|
/**
|
|
@@ -1930,7 +1930,7 @@ interface RetryConfig$2 {
|
|
|
1930
1930
|
/**
|
|
1931
1931
|
* Storage adapter interface for cross-platform token storage.
|
|
1932
1932
|
*/
|
|
1933
|
-
interface StorageAdapter$
|
|
1933
|
+
interface StorageAdapter$1 {
|
|
1934
1934
|
getItem(key: string): string | null;
|
|
1935
1935
|
setItem(key: string, value: string): void;
|
|
1936
1936
|
removeItem(key: string): void;
|
|
@@ -2801,78 +2801,78 @@ type TimelineResponse = z.infer<typeof TimelineResponseSchema>;
|
|
|
2801
2801
|
* ```
|
|
2802
2802
|
*/
|
|
2803
2803
|
|
|
2804
|
-
type index$
|
|
2805
|
-
declare const index$
|
|
2806
|
-
type index$
|
|
2807
|
-
declare const index$
|
|
2808
|
-
type index$
|
|
2809
|
-
declare const index$
|
|
2810
|
-
type index$
|
|
2811
|
-
declare const index$
|
|
2812
|
-
type index$
|
|
2813
|
-
declare const index$
|
|
2814
|
-
type index$
|
|
2815
|
-
declare const index$
|
|
2816
|
-
type index$
|
|
2817
|
-
declare const index$
|
|
2818
|
-
type index$
|
|
2819
|
-
declare const index$
|
|
2820
|
-
type index$
|
|
2821
|
-
declare const index$
|
|
2822
|
-
type index$
|
|
2823
|
-
declare const index$
|
|
2824
|
-
type index$
|
|
2825
|
-
declare const index$
|
|
2826
|
-
type index$
|
|
2827
|
-
declare const index$
|
|
2828
|
-
type index$
|
|
2829
|
-
declare const index$
|
|
2830
|
-
type index$
|
|
2831
|
-
declare const index$
|
|
2832
|
-
type index$
|
|
2833
|
-
declare const index$
|
|
2834
|
-
type index$
|
|
2835
|
-
declare const index$
|
|
2836
|
-
type index$
|
|
2837
|
-
declare const index$
|
|
2838
|
-
type index$
|
|
2839
|
-
declare const index$
|
|
2840
|
-
type index$
|
|
2841
|
-
declare const index$
|
|
2842
|
-
type index$
|
|
2843
|
-
declare const index$
|
|
2844
|
-
type index$
|
|
2845
|
-
declare const index$
|
|
2846
|
-
type index$
|
|
2847
|
-
declare const index$
|
|
2848
|
-
type index$
|
|
2849
|
-
declare const index$
|
|
2850
|
-
type index$
|
|
2851
|
-
declare const index$
|
|
2852
|
-
type index$
|
|
2853
|
-
declare const index$
|
|
2854
|
-
type index$
|
|
2855
|
-
declare const index$
|
|
2856
|
-
type index$
|
|
2857
|
-
declare const index$
|
|
2858
|
-
type index$
|
|
2859
|
-
declare const index$
|
|
2860
|
-
type index$
|
|
2861
|
-
declare const index$
|
|
2862
|
-
type index$
|
|
2863
|
-
declare const index$
|
|
2864
|
-
type index$
|
|
2865
|
-
declare const index$
|
|
2866
|
-
type index$
|
|
2867
|
-
declare const index$
|
|
2868
|
-
type index$
|
|
2869
|
-
declare const index$
|
|
2870
|
-
type index$
|
|
2871
|
-
declare const index$
|
|
2872
|
-
type index$
|
|
2873
|
-
declare const index$
|
|
2874
|
-
declare namespace index$
|
|
2875
|
-
export { type index$
|
|
2804
|
+
type index$5_CentrifugoChannelInfo = CentrifugoChannelInfo;
|
|
2805
|
+
declare const index$5_CentrifugoChannelInfoSchema: typeof CentrifugoChannelInfoSchema;
|
|
2806
|
+
type index$5_CentrifugoChannelsRequestRequest = CentrifugoChannelsRequestRequest;
|
|
2807
|
+
declare const index$5_CentrifugoChannelsRequestRequestSchema: typeof CentrifugoChannelsRequestRequestSchema;
|
|
2808
|
+
type index$5_CentrifugoChannelsResponse = CentrifugoChannelsResponse;
|
|
2809
|
+
declare const index$5_CentrifugoChannelsResponseSchema: typeof CentrifugoChannelsResponseSchema;
|
|
2810
|
+
type index$5_CentrifugoChannelsResult = CentrifugoChannelsResult;
|
|
2811
|
+
declare const index$5_CentrifugoChannelsResultSchema: typeof CentrifugoChannelsResultSchema;
|
|
2812
|
+
type index$5_CentrifugoClientInfo = CentrifugoClientInfo;
|
|
2813
|
+
declare const index$5_CentrifugoClientInfoSchema: typeof CentrifugoClientInfoSchema;
|
|
2814
|
+
type index$5_CentrifugoError = CentrifugoError;
|
|
2815
|
+
declare const index$5_CentrifugoErrorSchema: typeof CentrifugoErrorSchema;
|
|
2816
|
+
type index$5_CentrifugoHealthCheck = CentrifugoHealthCheck;
|
|
2817
|
+
declare const index$5_CentrifugoHealthCheckSchema: typeof CentrifugoHealthCheckSchema;
|
|
2818
|
+
type index$5_CentrifugoHistoryRequestRequest = CentrifugoHistoryRequestRequest;
|
|
2819
|
+
declare const index$5_CentrifugoHistoryRequestRequestSchema: typeof CentrifugoHistoryRequestRequestSchema;
|
|
2820
|
+
type index$5_CentrifugoHistoryResponse = CentrifugoHistoryResponse;
|
|
2821
|
+
declare const index$5_CentrifugoHistoryResponseSchema: typeof CentrifugoHistoryResponseSchema;
|
|
2822
|
+
type index$5_CentrifugoHistoryResult = CentrifugoHistoryResult;
|
|
2823
|
+
declare const index$5_CentrifugoHistoryResultSchema: typeof CentrifugoHistoryResultSchema;
|
|
2824
|
+
type index$5_CentrifugoInfoResponse = CentrifugoInfoResponse;
|
|
2825
|
+
declare const index$5_CentrifugoInfoResponseSchema: typeof CentrifugoInfoResponseSchema;
|
|
2826
|
+
type index$5_CentrifugoInfoResult = CentrifugoInfoResult;
|
|
2827
|
+
declare const index$5_CentrifugoInfoResultSchema: typeof CentrifugoInfoResultSchema;
|
|
2828
|
+
type index$5_CentrifugoMetrics = CentrifugoMetrics;
|
|
2829
|
+
declare const index$5_CentrifugoMetricsSchema: typeof CentrifugoMetricsSchema;
|
|
2830
|
+
type index$5_CentrifugoNodeInfo = CentrifugoNodeInfo;
|
|
2831
|
+
declare const index$5_CentrifugoNodeInfoSchema: typeof CentrifugoNodeInfoSchema;
|
|
2832
|
+
type index$5_CentrifugoOverviewStats = CentrifugoOverviewStats;
|
|
2833
|
+
declare const index$5_CentrifugoOverviewStatsSchema: typeof CentrifugoOverviewStatsSchema;
|
|
2834
|
+
type index$5_CentrifugoPresenceRequestRequest = CentrifugoPresenceRequestRequest;
|
|
2835
|
+
declare const index$5_CentrifugoPresenceRequestRequestSchema: typeof CentrifugoPresenceRequestRequestSchema;
|
|
2836
|
+
type index$5_CentrifugoPresenceResponse = CentrifugoPresenceResponse;
|
|
2837
|
+
declare const index$5_CentrifugoPresenceResponseSchema: typeof CentrifugoPresenceResponseSchema;
|
|
2838
|
+
type index$5_CentrifugoPresenceResult = CentrifugoPresenceResult;
|
|
2839
|
+
declare const index$5_CentrifugoPresenceResultSchema: typeof CentrifugoPresenceResultSchema;
|
|
2840
|
+
type index$5_CentrifugoPresenceStatsRequestRequest = CentrifugoPresenceStatsRequestRequest;
|
|
2841
|
+
declare const index$5_CentrifugoPresenceStatsRequestRequestSchema: typeof CentrifugoPresenceStatsRequestRequestSchema;
|
|
2842
|
+
type index$5_CentrifugoPresenceStatsResponse = CentrifugoPresenceStatsResponse;
|
|
2843
|
+
declare const index$5_CentrifugoPresenceStatsResponseSchema: typeof CentrifugoPresenceStatsResponseSchema;
|
|
2844
|
+
type index$5_CentrifugoPresenceStatsResult = CentrifugoPresenceStatsResult;
|
|
2845
|
+
declare const index$5_CentrifugoPresenceStatsResultSchema: typeof CentrifugoPresenceStatsResultSchema;
|
|
2846
|
+
type index$5_CentrifugoProcess = CentrifugoProcess;
|
|
2847
|
+
declare const index$5_CentrifugoProcessSchema: typeof CentrifugoProcessSchema;
|
|
2848
|
+
type index$5_CentrifugoPublication = CentrifugoPublication;
|
|
2849
|
+
declare const index$5_CentrifugoPublicationSchema: typeof CentrifugoPublicationSchema;
|
|
2850
|
+
type index$5_CentrifugoStreamPosition = CentrifugoStreamPosition;
|
|
2851
|
+
declare const index$5_CentrifugoStreamPositionSchema: typeof CentrifugoStreamPositionSchema;
|
|
2852
|
+
type index$5_ChannelList = ChannelList;
|
|
2853
|
+
declare const index$5_ChannelListSchema: typeof ChannelListSchema;
|
|
2854
|
+
type index$5_ChannelStats = ChannelStats;
|
|
2855
|
+
declare const index$5_ChannelStatsSchema: typeof ChannelStatsSchema;
|
|
2856
|
+
type index$5_ConnectionTokenResponse = ConnectionTokenResponse;
|
|
2857
|
+
declare const index$5_ConnectionTokenResponseSchema: typeof ConnectionTokenResponseSchema;
|
|
2858
|
+
type index$5_ManualAckRequestRequest = ManualAckRequestRequest;
|
|
2859
|
+
declare const index$5_ManualAckRequestRequestSchema: typeof ManualAckRequestRequestSchema;
|
|
2860
|
+
type index$5_ManualAckResponse = ManualAckResponse;
|
|
2861
|
+
declare const index$5_ManualAckResponseSchema: typeof ManualAckResponseSchema;
|
|
2862
|
+
type index$5_PaginatedPublishList = PaginatedPublishList;
|
|
2863
|
+
declare const index$5_PaginatedPublishListSchema: typeof PaginatedPublishListSchema;
|
|
2864
|
+
type index$5_Publish = Publish;
|
|
2865
|
+
declare const index$5_PublishSchema: typeof PublishSchema;
|
|
2866
|
+
type index$5_PublishTestRequestRequest = PublishTestRequestRequest;
|
|
2867
|
+
declare const index$5_PublishTestRequestRequestSchema: typeof PublishTestRequestRequestSchema;
|
|
2868
|
+
type index$5_PublishTestResponse = PublishTestResponse;
|
|
2869
|
+
declare const index$5_PublishTestResponseSchema: typeof PublishTestResponseSchema;
|
|
2870
|
+
type index$5_TimelineItem = TimelineItem;
|
|
2871
|
+
declare const index$5_TimelineItemSchema: typeof TimelineItemSchema;
|
|
2872
|
+
type index$5_TimelineResponse = TimelineResponse;
|
|
2873
|
+
declare const index$5_TimelineResponseSchema: typeof TimelineResponseSchema;
|
|
2874
|
+
declare namespace index$5 {
|
|
2875
|
+
export { type index$5_CentrifugoChannelInfo as CentrifugoChannelInfo, index$5_CentrifugoChannelInfoSchema as CentrifugoChannelInfoSchema, type index$5_CentrifugoChannelsRequestRequest as CentrifugoChannelsRequestRequest, index$5_CentrifugoChannelsRequestRequestSchema as CentrifugoChannelsRequestRequestSchema, type index$5_CentrifugoChannelsResponse as CentrifugoChannelsResponse, index$5_CentrifugoChannelsResponseSchema as CentrifugoChannelsResponseSchema, type index$5_CentrifugoChannelsResult as CentrifugoChannelsResult, index$5_CentrifugoChannelsResultSchema as CentrifugoChannelsResultSchema, type index$5_CentrifugoClientInfo as CentrifugoClientInfo, index$5_CentrifugoClientInfoSchema as CentrifugoClientInfoSchema, type index$5_CentrifugoError as CentrifugoError, index$5_CentrifugoErrorSchema as CentrifugoErrorSchema, type index$5_CentrifugoHealthCheck as CentrifugoHealthCheck, index$5_CentrifugoHealthCheckSchema as CentrifugoHealthCheckSchema, type index$5_CentrifugoHistoryRequestRequest as CentrifugoHistoryRequestRequest, index$5_CentrifugoHistoryRequestRequestSchema as CentrifugoHistoryRequestRequestSchema, type index$5_CentrifugoHistoryResponse as CentrifugoHistoryResponse, index$5_CentrifugoHistoryResponseSchema as CentrifugoHistoryResponseSchema, type index$5_CentrifugoHistoryResult as CentrifugoHistoryResult, index$5_CentrifugoHistoryResultSchema as CentrifugoHistoryResultSchema, type index$5_CentrifugoInfoResponse as CentrifugoInfoResponse, index$5_CentrifugoInfoResponseSchema as CentrifugoInfoResponseSchema, type index$5_CentrifugoInfoResult as CentrifugoInfoResult, index$5_CentrifugoInfoResultSchema as CentrifugoInfoResultSchema, type index$5_CentrifugoMetrics as CentrifugoMetrics, index$5_CentrifugoMetricsSchema as CentrifugoMetricsSchema, type index$5_CentrifugoNodeInfo as CentrifugoNodeInfo, index$5_CentrifugoNodeInfoSchema as CentrifugoNodeInfoSchema, type index$5_CentrifugoOverviewStats as CentrifugoOverviewStats, index$5_CentrifugoOverviewStatsSchema as CentrifugoOverviewStatsSchema, type index$5_CentrifugoPresenceRequestRequest as CentrifugoPresenceRequestRequest, index$5_CentrifugoPresenceRequestRequestSchema as CentrifugoPresenceRequestRequestSchema, type index$5_CentrifugoPresenceResponse as CentrifugoPresenceResponse, index$5_CentrifugoPresenceResponseSchema as CentrifugoPresenceResponseSchema, type index$5_CentrifugoPresenceResult as CentrifugoPresenceResult, index$5_CentrifugoPresenceResultSchema as CentrifugoPresenceResultSchema, type index$5_CentrifugoPresenceStatsRequestRequest as CentrifugoPresenceStatsRequestRequest, index$5_CentrifugoPresenceStatsRequestRequestSchema as CentrifugoPresenceStatsRequestRequestSchema, type index$5_CentrifugoPresenceStatsResponse as CentrifugoPresenceStatsResponse, index$5_CentrifugoPresenceStatsResponseSchema as CentrifugoPresenceStatsResponseSchema, type index$5_CentrifugoPresenceStatsResult as CentrifugoPresenceStatsResult, index$5_CentrifugoPresenceStatsResultSchema as CentrifugoPresenceStatsResultSchema, type index$5_CentrifugoProcess as CentrifugoProcess, index$5_CentrifugoProcessSchema as CentrifugoProcessSchema, type index$5_CentrifugoPublication as CentrifugoPublication, index$5_CentrifugoPublicationSchema as CentrifugoPublicationSchema, type index$5_CentrifugoStreamPosition as CentrifugoStreamPosition, index$5_CentrifugoStreamPositionSchema as CentrifugoStreamPositionSchema, type index$5_ChannelList as ChannelList, index$5_ChannelListSchema as ChannelListSchema, type index$5_ChannelStats as ChannelStats, index$5_ChannelStatsSchema as ChannelStatsSchema, type index$5_ConnectionTokenResponse as ConnectionTokenResponse, index$5_ConnectionTokenResponseSchema as ConnectionTokenResponseSchema, type index$5_ManualAckRequestRequest as ManualAckRequestRequest, index$5_ManualAckRequestRequestSchema as ManualAckRequestRequestSchema, type index$5_ManualAckResponse as ManualAckResponse, index$5_ManualAckResponseSchema as ManualAckResponseSchema, type index$5_PaginatedPublishList as PaginatedPublishList, index$5_PaginatedPublishListSchema as PaginatedPublishListSchema, type index$5_Publish as Publish, index$5_PublishSchema as PublishSchema, type index$5_PublishTestRequestRequest as PublishTestRequestRequest, index$5_PublishTestRequestRequestSchema as PublishTestRequestRequestSchema, type index$5_PublishTestResponse as PublishTestResponse, index$5_PublishTestResponseSchema as PublishTestResponseSchema, type index$5_TimelineItem as TimelineItem, index$5_TimelineItemSchema as TimelineItemSchema, type index$5_TimelineResponse as TimelineResponse, index$5_TimelineResponseSchema as TimelineResponseSchema };
|
|
2876
2876
|
}
|
|
2877
2877
|
|
|
2878
2878
|
/**
|
|
@@ -3025,23 +3025,23 @@ declare function createCentrifugoTestingSendAckCreate(data: ManualAckRequestRequ
|
|
|
3025
3025
|
* ```
|
|
3026
3026
|
*/
|
|
3027
3027
|
|
|
3028
|
-
declare const index$
|
|
3029
|
-
declare const index$
|
|
3030
|
-
declare const index$
|
|
3031
|
-
declare const index$
|
|
3032
|
-
declare const index$
|
|
3033
|
-
declare const index$
|
|
3034
|
-
declare const index$
|
|
3035
|
-
declare const index$
|
|
3036
|
-
declare const index$
|
|
3037
|
-
declare const index$
|
|
3038
|
-
declare const index$
|
|
3039
|
-
declare const index$
|
|
3040
|
-
declare const index$
|
|
3041
|
-
declare const index$
|
|
3042
|
-
declare const index$
|
|
3043
|
-
declare namespace index$
|
|
3044
|
-
export { index$
|
|
3028
|
+
declare const index$4_createCentrifugoServerAuthTokenCreate: typeof createCentrifugoServerAuthTokenCreate;
|
|
3029
|
+
declare const index$4_createCentrifugoServerChannelsCreate: typeof createCentrifugoServerChannelsCreate;
|
|
3030
|
+
declare const index$4_createCentrifugoServerHistoryCreate: typeof createCentrifugoServerHistoryCreate;
|
|
3031
|
+
declare const index$4_createCentrifugoServerInfoCreate: typeof createCentrifugoServerInfoCreate;
|
|
3032
|
+
declare const index$4_createCentrifugoServerPresenceCreate: typeof createCentrifugoServerPresenceCreate;
|
|
3033
|
+
declare const index$4_createCentrifugoServerPresenceStatsCreate: typeof createCentrifugoServerPresenceStatsCreate;
|
|
3034
|
+
declare const index$4_createCentrifugoTestingPublishTestCreate: typeof createCentrifugoTestingPublishTestCreate;
|
|
3035
|
+
declare const index$4_createCentrifugoTestingPublishWithLoggingCreate: typeof createCentrifugoTestingPublishWithLoggingCreate;
|
|
3036
|
+
declare const index$4_createCentrifugoTestingSendAckCreate: typeof createCentrifugoTestingSendAckCreate;
|
|
3037
|
+
declare const index$4_getCentrifugoAuthTokenRetrieve: typeof getCentrifugoAuthTokenRetrieve;
|
|
3038
|
+
declare const index$4_getCentrifugoMonitorChannelsRetrieve: typeof getCentrifugoMonitorChannelsRetrieve;
|
|
3039
|
+
declare const index$4_getCentrifugoMonitorHealthRetrieve: typeof getCentrifugoMonitorHealthRetrieve;
|
|
3040
|
+
declare const index$4_getCentrifugoMonitorOverviewRetrieve: typeof getCentrifugoMonitorOverviewRetrieve;
|
|
3041
|
+
declare const index$4_getCentrifugoMonitorPublishesList: typeof getCentrifugoMonitorPublishesList;
|
|
3042
|
+
declare const index$4_getCentrifugoMonitorTimelineRetrieve: typeof getCentrifugoMonitorTimelineRetrieve;
|
|
3043
|
+
declare namespace index$4 {
|
|
3044
|
+
export { index$4_createCentrifugoServerAuthTokenCreate as createCentrifugoServerAuthTokenCreate, index$4_createCentrifugoServerChannelsCreate as createCentrifugoServerChannelsCreate, index$4_createCentrifugoServerHistoryCreate as createCentrifugoServerHistoryCreate, index$4_createCentrifugoServerInfoCreate as createCentrifugoServerInfoCreate, index$4_createCentrifugoServerPresenceCreate as createCentrifugoServerPresenceCreate, index$4_createCentrifugoServerPresenceStatsCreate as createCentrifugoServerPresenceStatsCreate, index$4_createCentrifugoTestingPublishTestCreate as createCentrifugoTestingPublishTestCreate, index$4_createCentrifugoTestingPublishWithLoggingCreate as createCentrifugoTestingPublishWithLoggingCreate, index$4_createCentrifugoTestingSendAckCreate as createCentrifugoTestingSendAckCreate, index$4_getCentrifugoAuthTokenRetrieve as getCentrifugoAuthTokenRetrieve, index$4_getCentrifugoMonitorChannelsRetrieve as getCentrifugoMonitorChannelsRetrieve, index$4_getCentrifugoMonitorHealthRetrieve as getCentrifugoMonitorHealthRetrieve, index$4_getCentrifugoMonitorOverviewRetrieve as getCentrifugoMonitorOverviewRetrieve, index$4_getCentrifugoMonitorPublishesList as getCentrifugoMonitorPublishesList, index$4_getCentrifugoMonitorTimelineRetrieve as getCentrifugoMonitorTimelineRetrieve };
|
|
3045
3045
|
}
|
|
3046
3046
|
|
|
3047
3047
|
/**
|
|
@@ -3078,15 +3078,15 @@ declare namespace index$7 {
|
|
|
3078
3078
|
* ```
|
|
3079
3079
|
*/
|
|
3080
3080
|
|
|
3081
|
-
interface APIOptions$
|
|
3081
|
+
interface APIOptions$1 {
|
|
3082
3082
|
/** Custom storage adapter (defaults to LocalStorageAdapter) */
|
|
3083
|
-
storage?: StorageAdapter$
|
|
3083
|
+
storage?: StorageAdapter$1;
|
|
3084
3084
|
/** Retry configuration for failed requests */
|
|
3085
|
-
retryConfig?: RetryConfig$
|
|
3085
|
+
retryConfig?: RetryConfig$1;
|
|
3086
3086
|
/** Logger configuration */
|
|
3087
|
-
loggerConfig?: Partial<LoggerConfig$
|
|
3087
|
+
loggerConfig?: Partial<LoggerConfig$1>;
|
|
3088
3088
|
}
|
|
3089
|
-
declare class API$
|
|
3089
|
+
declare class API$1 {
|
|
3090
3090
|
private baseUrl;
|
|
3091
3091
|
private _client;
|
|
3092
3092
|
private _token;
|
|
@@ -3097,7 +3097,7 @@ declare class API$2 {
|
|
|
3097
3097
|
centrifugo_auth: CentrifugoAuth;
|
|
3098
3098
|
centrifugo_monitoring: CentrifugoMonitoring;
|
|
3099
3099
|
centrifugo_testing: CentrifugoTesting;
|
|
3100
|
-
constructor(baseUrl: string, options?: APIOptions$
|
|
3100
|
+
constructor(baseUrl: string, options?: APIOptions$1);
|
|
3101
3101
|
private _loadTokensFromStorage;
|
|
3102
3102
|
private _reinitClients;
|
|
3103
3103
|
private _injectAuthHeader;
|
|
@@ -3470,7 +3470,7 @@ declare class Totp {
|
|
|
3470
3470
|
/**
|
|
3471
3471
|
* Logger configuration
|
|
3472
3472
|
*/
|
|
3473
|
-
interface LoggerConfig
|
|
3473
|
+
interface LoggerConfig {
|
|
3474
3474
|
/** Enable logging */
|
|
3475
3475
|
enabled: boolean;
|
|
3476
3476
|
/** Log requests */
|
|
@@ -3496,7 +3496,7 @@ interface LoggerConfig$1 {
|
|
|
3496
3496
|
/**
|
|
3497
3497
|
* Information about a failed retry attempt.
|
|
3498
3498
|
*/
|
|
3499
|
-
interface FailedAttemptInfo
|
|
3499
|
+
interface FailedAttemptInfo {
|
|
3500
3500
|
/** The error that caused the failure */
|
|
3501
3501
|
error: Error;
|
|
3502
3502
|
/** The attempt number (1-indexed) */
|
|
@@ -3509,7 +3509,7 @@ interface FailedAttemptInfo$1 {
|
|
|
3509
3509
|
*
|
|
3510
3510
|
* Uses exponential backoff with jitter by default to avoid thundering herd.
|
|
3511
3511
|
*/
|
|
3512
|
-
interface RetryConfig
|
|
3512
|
+
interface RetryConfig {
|
|
3513
3513
|
/**
|
|
3514
3514
|
* Maximum number of retry attempts.
|
|
3515
3515
|
* @default 3
|
|
@@ -3539,7 +3539,7 @@ interface RetryConfig$1 {
|
|
|
3539
3539
|
/**
|
|
3540
3540
|
* Callback called on each failed attempt.
|
|
3541
3541
|
*/
|
|
3542
|
-
onFailedAttempt?: (info: FailedAttemptInfo
|
|
3542
|
+
onFailedAttempt?: (info: FailedAttemptInfo) => void;
|
|
3543
3543
|
}
|
|
3544
3544
|
|
|
3545
3545
|
/**
|
|
@@ -3554,7 +3554,7 @@ interface RetryConfig$1 {
|
|
|
3554
3554
|
/**
|
|
3555
3555
|
* Storage adapter interface for cross-platform token storage.
|
|
3556
3556
|
*/
|
|
3557
|
-
interface StorageAdapter
|
|
3557
|
+
interface StorageAdapter {
|
|
3558
3558
|
getItem(key: string): string | null;
|
|
3559
3559
|
setItem(key: string, value: string): void;
|
|
3560
3560
|
removeItem(key: string): void;
|
|
@@ -3914,38 +3914,38 @@ type VerifyResponse = z.infer<typeof VerifyResponseSchema>;
|
|
|
3914
3914
|
* ```
|
|
3915
3915
|
*/
|
|
3916
3916
|
|
|
3917
|
-
type index$
|
|
3918
|
-
declare const index$
|
|
3919
|
-
type index$
|
|
3920
|
-
declare const index$
|
|
3921
|
-
type index$
|
|
3922
|
-
declare const index$
|
|
3923
|
-
type index$
|
|
3924
|
-
declare const index$
|
|
3925
|
-
type index$
|
|
3926
|
-
declare const index$
|
|
3927
|
-
type index$
|
|
3928
|
-
type index$
|
|
3929
|
-
declare const index$
|
|
3930
|
-
declare const index$
|
|
3931
|
-
type index$
|
|
3932
|
-
declare const index$
|
|
3933
|
-
type index$
|
|
3934
|
-
declare const index$
|
|
3935
|
-
type index$
|
|
3936
|
-
declare const index$
|
|
3937
|
-
type index$
|
|
3938
|
-
declare const index$
|
|
3939
|
-
type index$
|
|
3940
|
-
declare const index$
|
|
3941
|
-
type index$
|
|
3942
|
-
declare const index$
|
|
3943
|
-
type index$
|
|
3944
|
-
declare const index$
|
|
3945
|
-
type index$
|
|
3946
|
-
declare const index$
|
|
3947
|
-
declare namespace index$
|
|
3948
|
-
export { type index$
|
|
3917
|
+
type index$3_BackupCodesRegenerateRequest = BackupCodesRegenerateRequest;
|
|
3918
|
+
declare const index$3_BackupCodesRegenerateRequestSchema: typeof BackupCodesRegenerateRequestSchema;
|
|
3919
|
+
type index$3_BackupCodesRegenerateResponse = BackupCodesRegenerateResponse;
|
|
3920
|
+
declare const index$3_BackupCodesRegenerateResponseSchema: typeof BackupCodesRegenerateResponseSchema;
|
|
3921
|
+
type index$3_BackupCodesStatus = BackupCodesStatus;
|
|
3922
|
+
declare const index$3_BackupCodesStatusSchema: typeof BackupCodesStatusSchema;
|
|
3923
|
+
type index$3_ConfirmSetupRequest = ConfirmSetupRequest;
|
|
3924
|
+
declare const index$3_ConfirmSetupRequestSchema: typeof ConfirmSetupRequestSchema;
|
|
3925
|
+
type index$3_ConfirmSetupResponse = ConfirmSetupResponse;
|
|
3926
|
+
declare const index$3_ConfirmSetupResponseSchema: typeof ConfirmSetupResponseSchema;
|
|
3927
|
+
type index$3_DeviceList = DeviceList;
|
|
3928
|
+
type index$3_DeviceListResponse = DeviceListResponse;
|
|
3929
|
+
declare const index$3_DeviceListResponseSchema: typeof DeviceListResponseSchema;
|
|
3930
|
+
declare const index$3_DeviceListSchema: typeof DeviceListSchema;
|
|
3931
|
+
type index$3_DisableRequest = DisableRequest;
|
|
3932
|
+
declare const index$3_DisableRequestSchema: typeof DisableRequestSchema;
|
|
3933
|
+
type index$3_PaginatedDeviceListResponseList = PaginatedDeviceListResponseList;
|
|
3934
|
+
declare const index$3_PaginatedDeviceListResponseListSchema: typeof PaginatedDeviceListResponseListSchema;
|
|
3935
|
+
type index$3_SetupRequest = SetupRequest;
|
|
3936
|
+
declare const index$3_SetupRequestSchema: typeof SetupRequestSchema;
|
|
3937
|
+
type index$3_SetupResponse = SetupResponse;
|
|
3938
|
+
declare const index$3_SetupResponseSchema: typeof SetupResponseSchema;
|
|
3939
|
+
type index$3_TotpVerifyUser = TotpVerifyUser;
|
|
3940
|
+
declare const index$3_TotpVerifyUserSchema: typeof TotpVerifyUserSchema;
|
|
3941
|
+
type index$3_VerifyBackupRequest = VerifyBackupRequest;
|
|
3942
|
+
declare const index$3_VerifyBackupRequestSchema: typeof VerifyBackupRequestSchema;
|
|
3943
|
+
type index$3_VerifyRequest = VerifyRequest;
|
|
3944
|
+
declare const index$3_VerifyRequestSchema: typeof VerifyRequestSchema;
|
|
3945
|
+
type index$3_VerifyResponse = VerifyResponse;
|
|
3946
|
+
declare const index$3_VerifyResponseSchema: typeof VerifyResponseSchema;
|
|
3947
|
+
declare namespace index$3 {
|
|
3948
|
+
export { type index$3_BackupCodesRegenerateRequest as BackupCodesRegenerateRequest, index$3_BackupCodesRegenerateRequestSchema as BackupCodesRegenerateRequestSchema, type index$3_BackupCodesRegenerateResponse as BackupCodesRegenerateResponse, index$3_BackupCodesRegenerateResponseSchema as BackupCodesRegenerateResponseSchema, type index$3_BackupCodesStatus as BackupCodesStatus, index$3_BackupCodesStatusSchema as BackupCodesStatusSchema, type index$3_ConfirmSetupRequest as ConfirmSetupRequest, index$3_ConfirmSetupRequestSchema as ConfirmSetupRequestSchema, type index$3_ConfirmSetupResponse as ConfirmSetupResponse, index$3_ConfirmSetupResponseSchema as ConfirmSetupResponseSchema, type index$3_DeviceList as DeviceList, type index$3_DeviceListResponse as DeviceListResponse, index$3_DeviceListResponseSchema as DeviceListResponseSchema, index$3_DeviceListSchema as DeviceListSchema, type index$3_DisableRequest as DisableRequest, index$3_DisableRequestSchema as DisableRequestSchema, type index$3_PaginatedDeviceListResponseList as PaginatedDeviceListResponseList, index$3_PaginatedDeviceListResponseListSchema as PaginatedDeviceListResponseListSchema, type index$3_SetupRequest as SetupRequest, index$3_SetupRequestSchema as SetupRequestSchema, type index$3_SetupResponse as SetupResponse, index$3_SetupResponseSchema as SetupResponseSchema, type index$3_TotpVerifyUser as TotpVerifyUser, index$3_TotpVerifyUserSchema as TotpVerifyUserSchema, type index$3_VerifyBackupRequest as VerifyBackupRequest, index$3_VerifyBackupRequestSchema as VerifyBackupRequestSchema, type index$3_VerifyRequest as VerifyRequest, index$3_VerifyRequestSchema as VerifyRequestSchema, type index$3_VerifyResponse as VerifyResponse, index$3_VerifyResponseSchema as VerifyResponseSchema };
|
|
3949
3949
|
}
|
|
3950
3950
|
|
|
3951
3951
|
/**
|
|
@@ -4048,494 +4048,17 @@ declare function createTotpVerifyBackupCreate(data: VerifyBackupRequest, client?
|
|
|
4048
4048
|
* ```
|
|
4049
4049
|
*/
|
|
4050
4050
|
|
|
4051
|
-
declare const index$
|
|
4052
|
-
declare const index$
|
|
4053
|
-
declare const index$
|
|
4054
|
-
declare const index$
|
|
4055
|
-
declare const index$
|
|
4056
|
-
declare const index$
|
|
4057
|
-
declare const index$
|
|
4058
|
-
declare const index$
|
|
4059
|
-
declare const index$
|
|
4060
|
-
declare namespace index$
|
|
4061
|
-
export { index$
|
|
4062
|
-
}
|
|
4063
|
-
|
|
4064
|
-
/**
|
|
4065
|
-
* Django CFG API - API Client with JWT Management
|
|
4066
|
-
*
|
|
4067
|
-
* Usage:
|
|
4068
|
-
* ```typescript
|
|
4069
|
-
* import { API } from './api';
|
|
4070
|
-
*
|
|
4071
|
-
* const api = new API('https://api.example.com');
|
|
4072
|
-
*
|
|
4073
|
-
* // Set JWT token
|
|
4074
|
-
* api.setToken('your-jwt-token', 'refresh-token');
|
|
4075
|
-
*
|
|
4076
|
-
* // Use API
|
|
4077
|
-
* const posts = await api.posts.list();
|
|
4078
|
-
* const user = await api.users.retrieve(1);
|
|
4079
|
-
*
|
|
4080
|
-
* // Check authentication
|
|
4081
|
-
* if (api.isAuthenticated()) {
|
|
4082
|
-
* // ...
|
|
4083
|
-
* }
|
|
4084
|
-
*
|
|
4085
|
-
* // Custom storage with logging (for Electron/Node.js)
|
|
4086
|
-
* import { MemoryStorageAdapter, APILogger } from './storage';
|
|
4087
|
-
* const logger = new APILogger({ enabled: true, logLevel: 'debug' });
|
|
4088
|
-
* const api = new API('https://api.example.com', {
|
|
4089
|
-
* storage: new MemoryStorageAdapter(logger),
|
|
4090
|
-
* loggerConfig: { enabled: true, logLevel: 'debug' }
|
|
4091
|
-
* });
|
|
4092
|
-
*
|
|
4093
|
-
* // Get OpenAPI schema
|
|
4094
|
-
* const schema = api.getSchema();
|
|
4095
|
-
* ```
|
|
4096
|
-
*/
|
|
4097
|
-
|
|
4098
|
-
interface APIOptions$1 {
|
|
4099
|
-
/** Custom storage adapter (defaults to LocalStorageAdapter) */
|
|
4100
|
-
storage?: StorageAdapter$1;
|
|
4101
|
-
/** Retry configuration for failed requests */
|
|
4102
|
-
retryConfig?: RetryConfig$1;
|
|
4103
|
-
/** Logger configuration */
|
|
4104
|
-
loggerConfig?: Partial<LoggerConfig$1>;
|
|
4105
|
-
}
|
|
4106
|
-
declare class API$1 {
|
|
4107
|
-
private baseUrl;
|
|
4108
|
-
private _client;
|
|
4109
|
-
private _token;
|
|
4110
|
-
private _refreshToken;
|
|
4111
|
-
private storage;
|
|
4112
|
-
private options?;
|
|
4113
|
-
backup_codes: BackupCodes;
|
|
4114
|
-
totp_management: TotpManagement;
|
|
4115
|
-
totp_setup: TotpSetup;
|
|
4116
|
-
totp_verification: TotpVerification;
|
|
4117
|
-
totp: Totp;
|
|
4118
|
-
constructor(baseUrl: string, options?: APIOptions$1);
|
|
4119
|
-
private _loadTokensFromStorage;
|
|
4120
|
-
private _reinitClients;
|
|
4121
|
-
private _injectAuthHeader;
|
|
4122
|
-
/**
|
|
4123
|
-
* Get current JWT token
|
|
4124
|
-
*/
|
|
4125
|
-
getToken(): string | null;
|
|
4126
|
-
/**
|
|
4127
|
-
* Get current refresh token
|
|
4128
|
-
*/
|
|
4129
|
-
getRefreshToken(): string | null;
|
|
4130
|
-
/**
|
|
4131
|
-
* Set JWT token and refresh token
|
|
4132
|
-
* @param token - JWT access token
|
|
4133
|
-
* @param refreshToken - JWT refresh token (optional)
|
|
4134
|
-
*/
|
|
4135
|
-
setToken(token: string, refreshToken?: string): void;
|
|
4136
|
-
/**
|
|
4137
|
-
* Clear all tokens
|
|
4138
|
-
*/
|
|
4139
|
-
clearTokens(): void;
|
|
4140
|
-
/**
|
|
4141
|
-
* Check if user is authenticated
|
|
4142
|
-
*/
|
|
4143
|
-
isAuthenticated(): boolean;
|
|
4144
|
-
/**
|
|
4145
|
-
* Update base URL and reinitialize clients
|
|
4146
|
-
* @param url - New base URL
|
|
4147
|
-
*/
|
|
4148
|
-
setBaseUrl(url: string): void;
|
|
4149
|
-
/**
|
|
4150
|
-
* Get current base URL
|
|
4151
|
-
*/
|
|
4152
|
-
getBaseUrl(): string;
|
|
4153
|
-
/**
|
|
4154
|
-
* Get OpenAPI schema path
|
|
4155
|
-
* @returns Path to the OpenAPI schema JSON file
|
|
4156
|
-
*
|
|
4157
|
-
* Note: The OpenAPI schema is available in the schema.json file.
|
|
4158
|
-
* You can load it dynamically using:
|
|
4159
|
-
* ```typescript
|
|
4160
|
-
* const schema = await fetch('./schema.json').then(r => r.json());
|
|
4161
|
-
* // or using fs in Node.js:
|
|
4162
|
-
* // const schema = JSON.parse(fs.readFileSync('./schema.json', 'utf-8'));
|
|
4163
|
-
* ```
|
|
4164
|
-
*/
|
|
4165
|
-
getSchemaPath(): string;
|
|
4166
|
-
}
|
|
4167
|
-
|
|
4168
|
-
/**
|
|
4169
|
-
* Request serializer for sending push notifications.
|
|
4170
|
-
*
|
|
4171
|
-
* Request model (no read-only fields).
|
|
4172
|
-
*/
|
|
4173
|
-
interface SendPushRequestRequest$1 {
|
|
4174
|
-
/** Notification title */
|
|
4175
|
-
title: string;
|
|
4176
|
-
/** Notification body */
|
|
4177
|
-
body: string;
|
|
4178
|
-
/** Notification icon URL */
|
|
4179
|
-
icon?: string | null;
|
|
4180
|
-
/** URL to open on click */
|
|
4181
|
-
url?: string | null;
|
|
4182
|
-
}
|
|
4183
|
-
/**
|
|
4184
|
-
* Response serializer for send push endpoint.
|
|
4185
|
-
*
|
|
4186
|
-
* Response model (includes read-only fields).
|
|
4187
|
-
*/
|
|
4188
|
-
interface SendPushResponse$1 {
|
|
4189
|
-
/** Whether send was successful */
|
|
4190
|
-
success: boolean;
|
|
4191
|
-
/** Number of devices notification was sent to */
|
|
4192
|
-
sent_to: number;
|
|
4193
|
-
}
|
|
4194
|
-
/**
|
|
4195
|
-
* Request serializer for subscribing to push notifications.
|
|
4196
|
-
*
|
|
4197
|
-
* Request model (no read-only fields).
|
|
4198
|
-
*/
|
|
4199
|
-
interface SubscribeRequestRequest$1 {
|
|
4200
|
-
/** Push service endpoint URL from browser */
|
|
4201
|
-
endpoint: string;
|
|
4202
|
-
/** Encryption keys (p256dh and auth) */
|
|
4203
|
-
keys: Record<string, any>;
|
|
4204
|
-
}
|
|
4205
|
-
/**
|
|
4206
|
-
* Response serializer for subscription endpoint.
|
|
4207
|
-
*
|
|
4208
|
-
* Response model (includes read-only fields).
|
|
4209
|
-
*/
|
|
4210
|
-
interface SubscribeResponse$1 {
|
|
4211
|
-
/** Whether subscription was successful */
|
|
4212
|
-
success: boolean;
|
|
4213
|
-
/** ID of the subscription */
|
|
4214
|
-
subscription_id: number;
|
|
4215
|
-
/** Whether subscription was newly created */
|
|
4216
|
-
created: boolean;
|
|
4217
|
-
}
|
|
4218
|
-
/**
|
|
4219
|
-
* Response serializer for VAPID public key endpoint.
|
|
4220
|
-
*
|
|
4221
|
-
* Response model (includes read-only fields).
|
|
4222
|
-
*/
|
|
4223
|
-
interface VapidPublicKeyResponse$1 {
|
|
4224
|
-
/** VAPID public key for client subscription */
|
|
4225
|
-
publicKey: string;
|
|
4226
|
-
}
|
|
4227
|
-
|
|
4228
|
-
/**
|
|
4229
|
-
* API endpoints for Web Push.
|
|
4230
|
-
*/
|
|
4231
|
-
declare class WebPush {
|
|
4232
|
-
private client;
|
|
4233
|
-
constructor(client: any);
|
|
4234
|
-
/**
|
|
4235
|
-
* Send push notification
|
|
4236
|
-
*
|
|
4237
|
-
* Send push notification to all active subscriptions for the authenticated
|
|
4238
|
-
* user.
|
|
4239
|
-
*/
|
|
4240
|
-
webpushSendCreate(data: SendPushRequestRequest$1): Promise<SendPushResponse$1>;
|
|
4241
|
-
/**
|
|
4242
|
-
* Subscribe to push notifications
|
|
4243
|
-
*
|
|
4244
|
-
* Save push subscription from browser for the authenticated user.
|
|
4245
|
-
*/
|
|
4246
|
-
webpushSubscribeCreate(data: SubscribeRequestRequest$1): Promise<SubscribeResponse$1>;
|
|
4247
|
-
/**
|
|
4248
|
-
* Get VAPID public key
|
|
4249
|
-
*
|
|
4250
|
-
* Get VAPID public key for client subscription.
|
|
4251
|
-
*/
|
|
4252
|
-
webpushVapidRetrieve(): Promise<VapidPublicKeyResponse$1>;
|
|
4253
|
-
}
|
|
4254
|
-
|
|
4255
|
-
/**
|
|
4256
|
-
* API Logger with Consola
|
|
4257
|
-
* Beautiful console logging for API requests and responses
|
|
4258
|
-
*
|
|
4259
|
-
* Installation:
|
|
4260
|
-
* npm install consola
|
|
4261
|
-
*/
|
|
4262
|
-
|
|
4263
|
-
/**
|
|
4264
|
-
* Logger configuration
|
|
4265
|
-
*/
|
|
4266
|
-
interface LoggerConfig {
|
|
4267
|
-
/** Enable logging */
|
|
4268
|
-
enabled: boolean;
|
|
4269
|
-
/** Log requests */
|
|
4270
|
-
logRequests: boolean;
|
|
4271
|
-
/** Log responses */
|
|
4272
|
-
logResponses: boolean;
|
|
4273
|
-
/** Log errors */
|
|
4274
|
-
logErrors: boolean;
|
|
4275
|
-
/** Log request/response bodies */
|
|
4276
|
-
logBodies: boolean;
|
|
4277
|
-
/** Log headers (excluding sensitive ones) */
|
|
4278
|
-
logHeaders: boolean;
|
|
4279
|
-
/** Custom consola instance */
|
|
4280
|
-
consola?: ConsolaInstance;
|
|
4281
|
-
}
|
|
4282
|
-
|
|
4283
|
-
/**
|
|
4284
|
-
* Retry Configuration and Utilities
|
|
4285
|
-
*
|
|
4286
|
-
* Provides automatic retry logic for failed HTTP requests using p-retry.
|
|
4287
|
-
* Retries only on network errors and server errors (5xx), not client errors (4xx).
|
|
4288
|
-
*/
|
|
4289
|
-
/**
|
|
4290
|
-
* Information about a failed retry attempt.
|
|
4291
|
-
*/
|
|
4292
|
-
interface FailedAttemptInfo {
|
|
4293
|
-
/** The error that caused the failure */
|
|
4294
|
-
error: Error;
|
|
4295
|
-
/** The attempt number (1-indexed) */
|
|
4296
|
-
attemptNumber: number;
|
|
4297
|
-
/** Number of retries left */
|
|
4298
|
-
retriesLeft: number;
|
|
4299
|
-
}
|
|
4300
|
-
/**
|
|
4301
|
-
* Retry configuration options.
|
|
4302
|
-
*
|
|
4303
|
-
* Uses exponential backoff with jitter by default to avoid thundering herd.
|
|
4304
|
-
*/
|
|
4305
|
-
interface RetryConfig {
|
|
4306
|
-
/**
|
|
4307
|
-
* Maximum number of retry attempts.
|
|
4308
|
-
* @default 3
|
|
4309
|
-
*/
|
|
4310
|
-
retries?: number;
|
|
4311
|
-
/**
|
|
4312
|
-
* Exponential backoff factor.
|
|
4313
|
-
* @default 2
|
|
4314
|
-
*/
|
|
4315
|
-
factor?: number;
|
|
4316
|
-
/**
|
|
4317
|
-
* Minimum wait time between retries (ms).
|
|
4318
|
-
* @default 1000
|
|
4319
|
-
*/
|
|
4320
|
-
minTimeout?: number;
|
|
4321
|
-
/**
|
|
4322
|
-
* Maximum wait time between retries (ms).
|
|
4323
|
-
* @default 60000
|
|
4324
|
-
*/
|
|
4325
|
-
maxTimeout?: number;
|
|
4326
|
-
/**
|
|
4327
|
-
* Add randomness to wait times (jitter).
|
|
4328
|
-
* Helps avoid thundering herd problem.
|
|
4329
|
-
* @default true
|
|
4330
|
-
*/
|
|
4331
|
-
randomize?: boolean;
|
|
4332
|
-
/**
|
|
4333
|
-
* Callback called on each failed attempt.
|
|
4334
|
-
*/
|
|
4335
|
-
onFailedAttempt?: (info: FailedAttemptInfo) => void;
|
|
4336
|
-
}
|
|
4337
|
-
|
|
4338
|
-
/**
|
|
4339
|
-
* Storage adapters for cross-platform token storage.
|
|
4340
|
-
*
|
|
4341
|
-
* Supports:
|
|
4342
|
-
* - LocalStorage (browser)
|
|
4343
|
-
* - Cookies (SSR/browser)
|
|
4344
|
-
* - Memory (Node.js/Electron/testing)
|
|
4345
|
-
*/
|
|
4346
|
-
|
|
4347
|
-
/**
|
|
4348
|
-
* Storage adapter interface for cross-platform token storage.
|
|
4349
|
-
*/
|
|
4350
|
-
interface StorageAdapter {
|
|
4351
|
-
getItem(key: string): string | null;
|
|
4352
|
-
setItem(key: string, value: string): void;
|
|
4353
|
-
removeItem(key: string): void;
|
|
4354
|
-
}
|
|
4355
|
-
|
|
4356
|
-
/**
|
|
4357
|
-
* Zod schema for SendPushRequestRequest
|
|
4358
|
-
*
|
|
4359
|
-
* This schema provides runtime validation and type inference.
|
|
4360
|
-
* * Request serializer for sending push notifications.
|
|
4361
|
-
* */
|
|
4362
|
-
|
|
4363
|
-
/**
|
|
4364
|
-
* Request serializer for sending push notifications.
|
|
4365
|
-
*/
|
|
4366
|
-
declare const SendPushRequestRequestSchema: z.ZodObject<{
|
|
4367
|
-
title: z.ZodString;
|
|
4368
|
-
body: z.ZodString;
|
|
4369
|
-
icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>>;
|
|
4370
|
-
url: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>>;
|
|
4371
|
-
}, z.core.$strip>;
|
|
4372
|
-
/**
|
|
4373
|
-
* Infer TypeScript type from Zod schema
|
|
4374
|
-
*/
|
|
4375
|
-
type SendPushRequestRequest = z.infer<typeof SendPushRequestRequestSchema>;
|
|
4376
|
-
|
|
4377
|
-
/**
|
|
4378
|
-
* Zod schema for SendPushResponse
|
|
4379
|
-
*
|
|
4380
|
-
* This schema provides runtime validation and type inference.
|
|
4381
|
-
* * Response serializer for send push endpoint.
|
|
4382
|
-
* */
|
|
4383
|
-
|
|
4384
|
-
/**
|
|
4385
|
-
* Response serializer for send push endpoint.
|
|
4386
|
-
*/
|
|
4387
|
-
declare const SendPushResponseSchema: z.ZodObject<{
|
|
4388
|
-
success: z.ZodBoolean;
|
|
4389
|
-
sent_to: z.ZodInt;
|
|
4390
|
-
}, z.core.$strip>;
|
|
4391
|
-
/**
|
|
4392
|
-
* Infer TypeScript type from Zod schema
|
|
4393
|
-
*/
|
|
4394
|
-
type SendPushResponse = z.infer<typeof SendPushResponseSchema>;
|
|
4395
|
-
|
|
4396
|
-
/**
|
|
4397
|
-
* Zod schema for SubscribeRequestRequest
|
|
4398
|
-
*
|
|
4399
|
-
* This schema provides runtime validation and type inference.
|
|
4400
|
-
* * Request serializer for subscribing to push notifications.
|
|
4401
|
-
* */
|
|
4402
|
-
|
|
4403
|
-
/**
|
|
4404
|
-
* Request serializer for subscribing to push notifications.
|
|
4405
|
-
*/
|
|
4406
|
-
declare const SubscribeRequestRequestSchema: z.ZodObject<{
|
|
4407
|
-
endpoint: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
|
|
4408
|
-
keys: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
4409
|
-
}, z.core.$strip>;
|
|
4410
|
-
/**
|
|
4411
|
-
* Infer TypeScript type from Zod schema
|
|
4412
|
-
*/
|
|
4413
|
-
type SubscribeRequestRequest = z.infer<typeof SubscribeRequestRequestSchema>;
|
|
4414
|
-
|
|
4415
|
-
/**
|
|
4416
|
-
* Zod schema for SubscribeResponse
|
|
4417
|
-
*
|
|
4418
|
-
* This schema provides runtime validation and type inference.
|
|
4419
|
-
* * Response serializer for subscription endpoint.
|
|
4420
|
-
* */
|
|
4421
|
-
|
|
4422
|
-
/**
|
|
4423
|
-
* Response serializer for subscription endpoint.
|
|
4424
|
-
*/
|
|
4425
|
-
declare const SubscribeResponseSchema: z.ZodObject<{
|
|
4426
|
-
success: z.ZodBoolean;
|
|
4427
|
-
subscription_id: z.ZodInt;
|
|
4428
|
-
created: z.ZodBoolean;
|
|
4429
|
-
}, z.core.$strip>;
|
|
4430
|
-
/**
|
|
4431
|
-
* Infer TypeScript type from Zod schema
|
|
4432
|
-
*/
|
|
4433
|
-
type SubscribeResponse = z.infer<typeof SubscribeResponseSchema>;
|
|
4434
|
-
|
|
4435
|
-
/**
|
|
4436
|
-
* Zod schema for VapidPublicKeyResponse
|
|
4437
|
-
*
|
|
4438
|
-
* This schema provides runtime validation and type inference.
|
|
4439
|
-
* * Response serializer for VAPID public key endpoint.
|
|
4440
|
-
* */
|
|
4441
|
-
|
|
4442
|
-
/**
|
|
4443
|
-
* Response serializer for VAPID public key endpoint.
|
|
4444
|
-
*/
|
|
4445
|
-
declare const VapidPublicKeyResponseSchema: z.ZodObject<{
|
|
4446
|
-
publicKey: z.ZodString;
|
|
4447
|
-
}, z.core.$strip>;
|
|
4448
|
-
/**
|
|
4449
|
-
* Infer TypeScript type from Zod schema
|
|
4450
|
-
*/
|
|
4451
|
-
type VapidPublicKeyResponse = z.infer<typeof VapidPublicKeyResponseSchema>;
|
|
4452
|
-
|
|
4453
|
-
/**
|
|
4454
|
-
* Zod Schemas - Runtime validation and type inference
|
|
4455
|
-
*
|
|
4456
|
-
* Auto-generated from OpenAPI specification.
|
|
4457
|
-
* Provides runtime validation for API requests and responses.
|
|
4458
|
-
*
|
|
4459
|
-
* Usage:
|
|
4460
|
-
* ```typescript
|
|
4461
|
-
* import { UserSchema } from './schemas'
|
|
4462
|
-
*
|
|
4463
|
-
* // Validate data
|
|
4464
|
-
* const user = UserSchema.parse(data)
|
|
4465
|
-
*
|
|
4466
|
-
* // Type inference
|
|
4467
|
-
* type User = z.infer<typeof UserSchema>
|
|
4468
|
-
* ```
|
|
4469
|
-
*/
|
|
4470
|
-
|
|
4471
|
-
type index$4_SendPushRequestRequest = SendPushRequestRequest;
|
|
4472
|
-
declare const index$4_SendPushRequestRequestSchema: typeof SendPushRequestRequestSchema;
|
|
4473
|
-
type index$4_SendPushResponse = SendPushResponse;
|
|
4474
|
-
declare const index$4_SendPushResponseSchema: typeof SendPushResponseSchema;
|
|
4475
|
-
type index$4_SubscribeRequestRequest = SubscribeRequestRequest;
|
|
4476
|
-
declare const index$4_SubscribeRequestRequestSchema: typeof SubscribeRequestRequestSchema;
|
|
4477
|
-
type index$4_SubscribeResponse = SubscribeResponse;
|
|
4478
|
-
declare const index$4_SubscribeResponseSchema: typeof SubscribeResponseSchema;
|
|
4479
|
-
type index$4_VapidPublicKeyResponse = VapidPublicKeyResponse;
|
|
4480
|
-
declare const index$4_VapidPublicKeyResponseSchema: typeof VapidPublicKeyResponseSchema;
|
|
4481
|
-
declare namespace index$4 {
|
|
4482
|
-
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 };
|
|
4483
|
-
}
|
|
4484
|
-
|
|
4485
|
-
/**
|
|
4486
|
-
* Send push notification
|
|
4487
|
-
*
|
|
4488
|
-
* @method POST
|
|
4489
|
-
* @path /cfg/webpush/send/
|
|
4490
|
-
*/
|
|
4491
|
-
declare function createWebpushSendCreate(data: SendPushRequestRequest, client?: any): Promise<SendPushResponse>;
|
|
4492
|
-
/**
|
|
4493
|
-
* Subscribe to push notifications
|
|
4494
|
-
*
|
|
4495
|
-
* @method POST
|
|
4496
|
-
* @path /cfg/webpush/subscribe/
|
|
4497
|
-
*/
|
|
4498
|
-
declare function createWebpushSubscribeCreate(data: SubscribeRequestRequest, client?: any): Promise<SubscribeResponse>;
|
|
4499
|
-
/**
|
|
4500
|
-
* Get VAPID public key
|
|
4501
|
-
*
|
|
4502
|
-
* @method GET
|
|
4503
|
-
* @path /cfg/webpush/vapid/
|
|
4504
|
-
*/
|
|
4505
|
-
declare function getWebpushVapidRetrieve(client?: any): Promise<VapidPublicKeyResponse>;
|
|
4506
|
-
|
|
4507
|
-
/**
|
|
4508
|
-
* Typed Fetchers - Universal API functions
|
|
4509
|
-
*
|
|
4510
|
-
* Auto-generated from OpenAPI specification.
|
|
4511
|
-
* These functions work in any JavaScript environment.
|
|
4512
|
-
*
|
|
4513
|
-
* Features:
|
|
4514
|
-
* - Runtime validation with Zod
|
|
4515
|
-
* - Type-safe parameters and responses
|
|
4516
|
-
* - Works with any data-fetching library (SWR, React Query, etc)
|
|
4517
|
-
* - Server Component compatible
|
|
4518
|
-
*
|
|
4519
|
-
* Usage:
|
|
4520
|
-
* ```typescript
|
|
4521
|
-
* import * as fetchers from './fetchers'
|
|
4522
|
-
*
|
|
4523
|
-
* // Direct usage
|
|
4524
|
-
* const user = await fetchers.getUser(1)
|
|
4525
|
-
*
|
|
4526
|
-
* // With SWR
|
|
4527
|
-
* const { data } = useSWR('user-1', () => fetchers.getUser(1))
|
|
4528
|
-
*
|
|
4529
|
-
* // With React Query
|
|
4530
|
-
* const { data } = useQuery(['user', 1], () => fetchers.getUser(1))
|
|
4531
|
-
* ```
|
|
4532
|
-
*/
|
|
4533
|
-
|
|
4534
|
-
declare const index$3_createWebpushSendCreate: typeof createWebpushSendCreate;
|
|
4535
|
-
declare const index$3_createWebpushSubscribeCreate: typeof createWebpushSubscribeCreate;
|
|
4536
|
-
declare const index$3_getWebpushVapidRetrieve: typeof getWebpushVapidRetrieve;
|
|
4537
|
-
declare namespace index$3 {
|
|
4538
|
-
export { index$3_createWebpushSendCreate as createWebpushSendCreate, index$3_createWebpushSubscribeCreate as createWebpushSubscribeCreate, index$3_getWebpushVapidRetrieve as getWebpushVapidRetrieve };
|
|
4051
|
+
declare const index$2_createTotpBackupCodesRegenerateCreate: typeof createTotpBackupCodesRegenerateCreate;
|
|
4052
|
+
declare const index$2_createTotpDisableCreate: typeof createTotpDisableCreate;
|
|
4053
|
+
declare const index$2_createTotpSetupConfirmCreate: typeof createTotpSetupConfirmCreate;
|
|
4054
|
+
declare const index$2_createTotpSetupCreate: typeof createTotpSetupCreate;
|
|
4055
|
+
declare const index$2_createTotpVerifyBackupCreate: typeof createTotpVerifyBackupCreate;
|
|
4056
|
+
declare const index$2_createTotpVerifyCreate: typeof createTotpVerifyCreate;
|
|
4057
|
+
declare const index$2_deleteTotpDevicesDestroy: typeof deleteTotpDevicesDestroy;
|
|
4058
|
+
declare const index$2_getTotpBackupCodesRetrieve: typeof getTotpBackupCodesRetrieve;
|
|
4059
|
+
declare const index$2_getTotpDevicesList: typeof getTotpDevicesList;
|
|
4060
|
+
declare namespace index$2 {
|
|
4061
|
+
export { index$2_createTotpBackupCodesRegenerateCreate as createTotpBackupCodesRegenerateCreate, index$2_createTotpDisableCreate as createTotpDisableCreate, index$2_createTotpSetupConfirmCreate as createTotpSetupConfirmCreate, index$2_createTotpSetupCreate as createTotpSetupCreate, index$2_createTotpVerifyBackupCreate as createTotpVerifyBackupCreate, index$2_createTotpVerifyCreate as createTotpVerifyCreate, index$2_deleteTotpDevicesDestroy as deleteTotpDevicesDestroy, index$2_getTotpBackupCodesRetrieve as getTotpBackupCodesRetrieve, index$2_getTotpDevicesList as getTotpDevicesList };
|
|
4539
4062
|
}
|
|
4540
4063
|
|
|
4541
4064
|
/**
|
|
@@ -4587,7 +4110,11 @@ declare class API {
|
|
|
4587
4110
|
private _refreshToken;
|
|
4588
4111
|
private storage;
|
|
4589
4112
|
private options?;
|
|
4590
|
-
|
|
4113
|
+
backup_codes: BackupCodes;
|
|
4114
|
+
totp_management: TotpManagement;
|
|
4115
|
+
totp_setup: TotpSetup;
|
|
4116
|
+
totp_verification: TotpVerification;
|
|
4117
|
+
totp: Totp;
|
|
4591
4118
|
constructor(baseUrl: string, options?: APIOptions);
|
|
4592
4119
|
private _loadTokensFromStorage;
|
|
4593
4120
|
private _reinitClients;
|
|
@@ -4644,7 +4171,7 @@ declare class API {
|
|
|
4644
4171
|
* @method POST
|
|
4645
4172
|
* @path /cfg/accounts/token/refresh/
|
|
4646
4173
|
*/
|
|
4647
|
-
declare function useCreateAccountsTokenRefreshCreate(): (data: TokenRefreshRequest, client?: API$
|
|
4174
|
+
declare function useCreateAccountsTokenRefreshCreate(): (data: TokenRefreshRequest, client?: API$2) => Promise<TokenRefresh>;
|
|
4648
4175
|
|
|
4649
4176
|
/**
|
|
4650
4177
|
* SWR Hooks for Oauth
|
|
@@ -4669,35 +4196,35 @@ declare function useCreateAccountsTokenRefreshCreate(): (data: TokenRefreshReque
|
|
|
4669
4196
|
* @method GET
|
|
4670
4197
|
* @path /cfg/accounts/oauth/connections/
|
|
4671
4198
|
*/
|
|
4672
|
-
declare function useAccountsOauthConnectionsList(client?: API$
|
|
4199
|
+
declare function useAccountsOauthConnectionsList(client?: API$2): ReturnType<typeof useSWR<any>>;
|
|
4673
4200
|
/**
|
|
4674
4201
|
* Disconnect OAuth provider
|
|
4675
4202
|
*
|
|
4676
4203
|
* @method POST
|
|
4677
4204
|
* @path /cfg/accounts/oauth/disconnect/
|
|
4678
4205
|
*/
|
|
4679
|
-
declare function useCreateAccountsOauthDisconnectCreate(): (data: OAuthDisconnectRequestRequest, client?: API$
|
|
4206
|
+
declare function useCreateAccountsOauthDisconnectCreate(): (data: OAuthDisconnectRequestRequest, client?: API$2) => Promise<any>;
|
|
4680
4207
|
/**
|
|
4681
4208
|
* Start GitHub OAuth
|
|
4682
4209
|
*
|
|
4683
4210
|
* @method POST
|
|
4684
4211
|
* @path /cfg/accounts/oauth/github/authorize/
|
|
4685
4212
|
*/
|
|
4686
|
-
declare function useCreateAccountsOauthGithubAuthorizeCreate(): (data: OAuthAuthorizeRequestRequest, client?: API$
|
|
4213
|
+
declare function useCreateAccountsOauthGithubAuthorizeCreate(): (data: OAuthAuthorizeRequestRequest, client?: API$2) => Promise<OAuthAuthorizeResponse>;
|
|
4687
4214
|
/**
|
|
4688
4215
|
* Complete GitHub OAuth
|
|
4689
4216
|
*
|
|
4690
4217
|
* @method POST
|
|
4691
4218
|
* @path /cfg/accounts/oauth/github/callback/
|
|
4692
4219
|
*/
|
|
4693
|
-
declare function useCreateAccountsOauthGithubCallbackCreate(): (data: OAuthCallbackRequestRequest, client?: API$
|
|
4220
|
+
declare function useCreateAccountsOauthGithubCallbackCreate(): (data: OAuthCallbackRequestRequest, client?: API$2) => Promise<OAuthTokenResponse>;
|
|
4694
4221
|
/**
|
|
4695
4222
|
* List OAuth providers
|
|
4696
4223
|
*
|
|
4697
4224
|
* @method GET
|
|
4698
4225
|
* @path /cfg/accounts/oauth/providers/
|
|
4699
4226
|
*/
|
|
4700
|
-
declare function useAccountsOauthProvidersRetrieve(client?: API$
|
|
4227
|
+
declare function useAccountsOauthProvidersRetrieve(client?: API$2): ReturnType<typeof useSWR<OAuthProvidersResponse>>;
|
|
4701
4228
|
|
|
4702
4229
|
/**
|
|
4703
4230
|
* SWR Hooks for User Profile
|
|
@@ -4722,49 +4249,49 @@ declare function useAccountsOauthProvidersRetrieve(client?: API$3): ReturnType<t
|
|
|
4722
4249
|
* @method GET
|
|
4723
4250
|
* @path /cfg/accounts/profile/
|
|
4724
4251
|
*/
|
|
4725
|
-
declare function useAccountsProfileRetrieve(client?: API$
|
|
4252
|
+
declare function useAccountsProfileRetrieve(client?: API$2): ReturnType<typeof useSWR<User>>;
|
|
4726
4253
|
/**
|
|
4727
4254
|
* Upload user avatar
|
|
4728
4255
|
*
|
|
4729
4256
|
* @method POST
|
|
4730
4257
|
* @path /cfg/accounts/profile/avatar/
|
|
4731
4258
|
*/
|
|
4732
|
-
declare function useCreateAccountsProfileAvatarCreate(): (data: CfgAccountsProfileAvatarCreateRequest, client?: API$
|
|
4259
|
+
declare function useCreateAccountsProfileAvatarCreate(): (data: CfgAccountsProfileAvatarCreateRequest, client?: API$2) => Promise<User>;
|
|
4733
4260
|
/**
|
|
4734
4261
|
* Delete user account
|
|
4735
4262
|
*
|
|
4736
4263
|
* @method POST
|
|
4737
4264
|
* @path /cfg/accounts/profile/delete/
|
|
4738
4265
|
*/
|
|
4739
|
-
declare function useCreateAccountsProfileDeleteCreate(): (client?: API$
|
|
4266
|
+
declare function useCreateAccountsProfileDeleteCreate(): (client?: API$2) => Promise<AccountDeleteResponse>;
|
|
4740
4267
|
/**
|
|
4741
4268
|
* Partial update user profile
|
|
4742
4269
|
*
|
|
4743
4270
|
* @method PUT
|
|
4744
4271
|
* @path /cfg/accounts/profile/partial/
|
|
4745
4272
|
*/
|
|
4746
|
-
declare function usePartialUpdateAccountsProfilePartialUpdate(): (data: UserProfileUpdateRequest, client?: API$
|
|
4273
|
+
declare function usePartialUpdateAccountsProfilePartialUpdate(): (data: UserProfileUpdateRequest, client?: API$2) => Promise<User>;
|
|
4747
4274
|
/**
|
|
4748
4275
|
* Partial update user profile
|
|
4749
4276
|
*
|
|
4750
4277
|
* @method PATCH
|
|
4751
4278
|
* @path /cfg/accounts/profile/partial/
|
|
4752
4279
|
*/
|
|
4753
|
-
declare function usePartialUpdateAccountsProfilePartialPartialUpdate(): (data?: PatchedUserProfileUpdateRequest, client?: API$
|
|
4280
|
+
declare function usePartialUpdateAccountsProfilePartialPartialUpdate(): (data?: PatchedUserProfileUpdateRequest, client?: API$2) => Promise<User>;
|
|
4754
4281
|
/**
|
|
4755
4282
|
* Update user profile
|
|
4756
4283
|
*
|
|
4757
4284
|
* @method PUT
|
|
4758
4285
|
* @path /cfg/accounts/profile/update/
|
|
4759
4286
|
*/
|
|
4760
|
-
declare function useUpdateAccountsProfileUpdateUpdate(): (data: UserProfileUpdateRequest, client?: API$
|
|
4287
|
+
declare function useUpdateAccountsProfileUpdateUpdate(): (data: UserProfileUpdateRequest, client?: API$2) => Promise<User>;
|
|
4761
4288
|
/**
|
|
4762
4289
|
* Update user profile
|
|
4763
4290
|
*
|
|
4764
4291
|
* @method PATCH
|
|
4765
4292
|
* @path /cfg/accounts/profile/update/
|
|
4766
4293
|
*/
|
|
4767
|
-
declare function usePartialUpdateAccountsProfileUpdatePartialUpdate(): (data?: PatchedUserProfileUpdateRequest, client?: API$
|
|
4294
|
+
declare function usePartialUpdateAccountsProfileUpdatePartialUpdate(): (data?: PatchedUserProfileUpdateRequest, client?: API$2) => Promise<User>;
|
|
4768
4295
|
|
|
4769
4296
|
/**
|
|
4770
4297
|
* API operation
|
|
@@ -4772,85 +4299,14 @@ declare function usePartialUpdateAccountsProfileUpdatePartialUpdate(): (data?: P
|
|
|
4772
4299
|
* @method POST
|
|
4773
4300
|
* @path /cfg/accounts/otp/request/
|
|
4774
4301
|
*/
|
|
4775
|
-
declare function useCreateAccountsOtpRequestCreate(): (data: OTPRequestRequest, client?: API$
|
|
4302
|
+
declare function useCreateAccountsOtpRequestCreate(): (data: OTPRequestRequest, client?: API$2) => Promise<OTPRequestResponse>;
|
|
4776
4303
|
/**
|
|
4777
4304
|
* API operation
|
|
4778
4305
|
*
|
|
4779
4306
|
* @method POST
|
|
4780
4307
|
* @path /cfg/accounts/otp/verify/
|
|
4781
4308
|
*/
|
|
4782
|
-
declare function useCreateAccountsOtpVerifyCreate(): (data: OTPVerifyRequest, client?: API$
|
|
4783
|
-
|
|
4784
|
-
/**
|
|
4785
|
-
* SWR Hooks for Web Push
|
|
4786
|
-
*
|
|
4787
|
-
* React hooks powered by SWR for data fetching with automatic caching,
|
|
4788
|
-
* revalidation, and optimistic updates.
|
|
4789
|
-
*
|
|
4790
|
-
* Usage:
|
|
4791
|
-
* ```typescript
|
|
4792
|
-
* // Query hooks (GET)
|
|
4793
|
-
* const { data, error, isLoading } = useUsers({ page: 1 })
|
|
4794
|
-
*
|
|
4795
|
-
* // Mutation hooks (POST/PUT/PATCH/DELETE)
|
|
4796
|
-
* const createUser = useCreateUser()
|
|
4797
|
-
* await createUser({ name: 'John', email: 'john@example.com' })
|
|
4798
|
-
* ```
|
|
4799
|
-
*/
|
|
4800
|
-
|
|
4801
|
-
/**
|
|
4802
|
-
* Send push notification
|
|
4803
|
-
*
|
|
4804
|
-
* @method POST
|
|
4805
|
-
* @path /cfg/webpush/send/
|
|
4806
|
-
*/
|
|
4807
|
-
declare function useCreateWebpushSendCreate(): (data: SendPushRequestRequest, client?: API) => Promise<SendPushResponse>;
|
|
4808
|
-
/**
|
|
4809
|
-
* Subscribe to push notifications
|
|
4810
|
-
*
|
|
4811
|
-
* @method POST
|
|
4812
|
-
* @path /cfg/webpush/subscribe/
|
|
4813
|
-
*/
|
|
4814
|
-
declare function useCreateWebpushSubscribeCreate(): (data: SubscribeRequestRequest, client?: API) => Promise<SubscribeResponse>;
|
|
4815
|
-
/**
|
|
4816
|
-
* Get VAPID public key
|
|
4817
|
-
*
|
|
4818
|
-
* @method GET
|
|
4819
|
-
* @path /cfg/webpush/vapid/
|
|
4820
|
-
*/
|
|
4821
|
-
declare function useWebpushVapidRetrieve(client?: API): ReturnType<typeof useSWR<VapidPublicKeyResponse>>;
|
|
4822
|
-
|
|
4823
|
-
/**
|
|
4824
|
-
* SWR Hooks - React data fetching hooks
|
|
4825
|
-
*
|
|
4826
|
-
* Auto-generated from OpenAPI specification.
|
|
4827
|
-
* Powered by SWR for automatic caching and revalidation.
|
|
4828
|
-
*
|
|
4829
|
-
* Features:
|
|
4830
|
-
* - Automatic caching and deduplication
|
|
4831
|
-
* - Revalidation on focus/reconnect
|
|
4832
|
-
* - Optimistic updates
|
|
4833
|
-
* - Type-safe parameters and responses
|
|
4834
|
-
*
|
|
4835
|
-
* Usage:
|
|
4836
|
-
* ```typescript
|
|
4837
|
-
* import * as hooks from './hooks'
|
|
4838
|
-
*
|
|
4839
|
-
* // Query hooks (GET)
|
|
4840
|
-
* const { data, error, isLoading } = hooks.useUsers({ page: 1 })
|
|
4841
|
-
*
|
|
4842
|
-
* // Mutation hooks (POST/PUT/PATCH/DELETE)
|
|
4843
|
-
* const createUser = hooks.useCreateUser()
|
|
4844
|
-
* await createUser({ name: 'John' })
|
|
4845
|
-
* ```
|
|
4846
|
-
*/
|
|
4847
|
-
|
|
4848
|
-
declare const index$2_useCreateWebpushSendCreate: typeof useCreateWebpushSendCreate;
|
|
4849
|
-
declare const index$2_useCreateWebpushSubscribeCreate: typeof useCreateWebpushSubscribeCreate;
|
|
4850
|
-
declare const index$2_useWebpushVapidRetrieve: typeof useWebpushVapidRetrieve;
|
|
4851
|
-
declare namespace index$2 {
|
|
4852
|
-
export { index$2_useCreateWebpushSendCreate as useCreateWebpushSendCreate, index$2_useCreateWebpushSubscribeCreate as useCreateWebpushSubscribeCreate, index$2_useWebpushVapidRetrieve as useWebpushVapidRetrieve };
|
|
4853
|
-
}
|
|
4309
|
+
declare function useCreateAccountsOtpVerifyCreate(): (data: OTPVerifyRequest, client?: API$2) => Promise<OTPVerifyResponse>;
|
|
4854
4310
|
|
|
4855
4311
|
/**
|
|
4856
4312
|
* Get connection token for dashboard
|
|
@@ -4858,42 +4314,42 @@ declare namespace index$2 {
|
|
|
4858
4314
|
* @method POST
|
|
4859
4315
|
* @path /cfg/centrifugo/server/auth/token/
|
|
4860
4316
|
*/
|
|
4861
|
-
declare function useCreateCentrifugoServerAuthTokenCreate(): (client?: API$
|
|
4317
|
+
declare function useCreateCentrifugoServerAuthTokenCreate(): (client?: API$1) => Promise<any>;
|
|
4862
4318
|
/**
|
|
4863
4319
|
* List active channels
|
|
4864
4320
|
*
|
|
4865
4321
|
* @method POST
|
|
4866
4322
|
* @path /cfg/centrifugo/server/channels/
|
|
4867
4323
|
*/
|
|
4868
|
-
declare function useCreateCentrifugoServerChannelsCreate(): (data: CentrifugoChannelsRequestRequest, client?: API$
|
|
4324
|
+
declare function useCreateCentrifugoServerChannelsCreate(): (data: CentrifugoChannelsRequestRequest, client?: API$1) => Promise<CentrifugoChannelsResponse>;
|
|
4869
4325
|
/**
|
|
4870
4326
|
* Get channel history
|
|
4871
4327
|
*
|
|
4872
4328
|
* @method POST
|
|
4873
4329
|
* @path /cfg/centrifugo/server/history/
|
|
4874
4330
|
*/
|
|
4875
|
-
declare function useCreateCentrifugoServerHistoryCreate(): (data: CentrifugoHistoryRequestRequest, client?: API$
|
|
4331
|
+
declare function useCreateCentrifugoServerHistoryCreate(): (data: CentrifugoHistoryRequestRequest, client?: API$1) => Promise<CentrifugoHistoryResponse>;
|
|
4876
4332
|
/**
|
|
4877
4333
|
* Get Centrifugo server info
|
|
4878
4334
|
*
|
|
4879
4335
|
* @method POST
|
|
4880
4336
|
* @path /cfg/centrifugo/server/info/
|
|
4881
4337
|
*/
|
|
4882
|
-
declare function useCreateCentrifugoServerInfoCreate(): (client?: API$
|
|
4338
|
+
declare function useCreateCentrifugoServerInfoCreate(): (client?: API$1) => Promise<CentrifugoInfoResponse>;
|
|
4883
4339
|
/**
|
|
4884
4340
|
* Get channel presence
|
|
4885
4341
|
*
|
|
4886
4342
|
* @method POST
|
|
4887
4343
|
* @path /cfg/centrifugo/server/presence/
|
|
4888
4344
|
*/
|
|
4889
|
-
declare function useCreateCentrifugoServerPresenceCreate(): (data: CentrifugoPresenceRequestRequest, client?: API$
|
|
4345
|
+
declare function useCreateCentrifugoServerPresenceCreate(): (data: CentrifugoPresenceRequestRequest, client?: API$1) => Promise<CentrifugoPresenceResponse>;
|
|
4890
4346
|
/**
|
|
4891
4347
|
* Get channel presence statistics
|
|
4892
4348
|
*
|
|
4893
4349
|
* @method POST
|
|
4894
4350
|
* @path /cfg/centrifugo/server/presence-stats/
|
|
4895
4351
|
*/
|
|
4896
|
-
declare function useCreateCentrifugoServerPresenceStatsCreate(): (data: CentrifugoPresenceStatsRequestRequest, client?: API$
|
|
4352
|
+
declare function useCreateCentrifugoServerPresenceStatsCreate(): (data: CentrifugoPresenceStatsRequestRequest, client?: API$1) => Promise<CentrifugoPresenceStatsResponse>;
|
|
4897
4353
|
|
|
4898
4354
|
/**
|
|
4899
4355
|
* SWR Hooks for Centrifugo Auth
|
|
@@ -4918,7 +4374,7 @@ declare function useCreateCentrifugoServerPresenceStatsCreate(): (data: Centrifu
|
|
|
4918
4374
|
* @method GET
|
|
4919
4375
|
* @path /cfg/centrifugo/auth/token/
|
|
4920
4376
|
*/
|
|
4921
|
-
declare function useCentrifugoAuthTokenRetrieve(client?: API$
|
|
4377
|
+
declare function useCentrifugoAuthTokenRetrieve(client?: API$1): ReturnType<typeof useSWR<ConnectionTokenResponse>>;
|
|
4922
4378
|
|
|
4923
4379
|
/**
|
|
4924
4380
|
* SWR Hooks for Centrifugo Monitoring
|
|
@@ -4945,14 +4401,14 @@ declare function useCentrifugoAuthTokenRetrieve(client?: API$2): ReturnType<type
|
|
|
4945
4401
|
*/
|
|
4946
4402
|
declare function useCentrifugoMonitorChannelsRetrieve(params?: {
|
|
4947
4403
|
hours?: number;
|
|
4948
|
-
}, client?: API$
|
|
4404
|
+
}, client?: API$1): ReturnType<typeof useSWR<ChannelList>>;
|
|
4949
4405
|
/**
|
|
4950
4406
|
* Get Centrifugo health status
|
|
4951
4407
|
*
|
|
4952
4408
|
* @method GET
|
|
4953
4409
|
* @path /cfg/centrifugo/monitor/health/
|
|
4954
4410
|
*/
|
|
4955
|
-
declare function useCentrifugoMonitorHealthRetrieve(client?: API$
|
|
4411
|
+
declare function useCentrifugoMonitorHealthRetrieve(client?: API$1): ReturnType<typeof useSWR<CentrifugoHealthCheck>>;
|
|
4956
4412
|
/**
|
|
4957
4413
|
* Get overview statistics
|
|
4958
4414
|
*
|
|
@@ -4961,7 +4417,7 @@ declare function useCentrifugoMonitorHealthRetrieve(client?: API$2): ReturnType<
|
|
|
4961
4417
|
*/
|
|
4962
4418
|
declare function useCentrifugoMonitorOverviewRetrieve(params?: {
|
|
4963
4419
|
hours?: number;
|
|
4964
|
-
}, client?: API$
|
|
4420
|
+
}, client?: API$1): ReturnType<typeof useSWR<CentrifugoOverviewStats>>;
|
|
4965
4421
|
/**
|
|
4966
4422
|
* Get recent publishes
|
|
4967
4423
|
*
|
|
@@ -4975,7 +4431,7 @@ declare function useCentrifugoMonitorPublishesList(params?: {
|
|
|
4975
4431
|
page_size?: number;
|
|
4976
4432
|
search?: string;
|
|
4977
4433
|
status?: string;
|
|
4978
|
-
}, client?: API$
|
|
4434
|
+
}, client?: API$1): ReturnType<typeof useSWR<PaginatedPublishList>>;
|
|
4979
4435
|
/**
|
|
4980
4436
|
* Get publish timeline
|
|
4981
4437
|
*
|
|
@@ -4985,7 +4441,7 @@ declare function useCentrifugoMonitorPublishesList(params?: {
|
|
|
4985
4441
|
declare function useCentrifugoMonitorTimelineRetrieve(params?: {
|
|
4986
4442
|
hours?: number;
|
|
4987
4443
|
interval?: string;
|
|
4988
|
-
}, client?: API$
|
|
4444
|
+
}, client?: API$1): ReturnType<typeof useSWR<TimelineResponse>>;
|
|
4989
4445
|
|
|
4990
4446
|
/**
|
|
4991
4447
|
* Publish test message
|
|
@@ -4993,21 +4449,21 @@ declare function useCentrifugoMonitorTimelineRetrieve(params?: {
|
|
|
4993
4449
|
* @method POST
|
|
4994
4450
|
* @path /cfg/centrifugo/testing/publish-test/
|
|
4995
4451
|
*/
|
|
4996
|
-
declare function useCreateCentrifugoTestingPublishTestCreate(): (data: PublishTestRequestRequest, client?: API$
|
|
4452
|
+
declare function useCreateCentrifugoTestingPublishTestCreate(): (data: PublishTestRequestRequest, client?: API$1) => Promise<PublishTestResponse>;
|
|
4997
4453
|
/**
|
|
4998
4454
|
* Publish with database logging
|
|
4999
4455
|
*
|
|
5000
4456
|
* @method POST
|
|
5001
4457
|
* @path /cfg/centrifugo/testing/publish-with-logging/
|
|
5002
4458
|
*/
|
|
5003
|
-
declare function useCreateCentrifugoTestingPublishWithLoggingCreate(): (data: PublishTestRequestRequest, client?: API$
|
|
4459
|
+
declare function useCreateCentrifugoTestingPublishWithLoggingCreate(): (data: PublishTestRequestRequest, client?: API$1) => Promise<PublishTestResponse>;
|
|
5004
4460
|
/**
|
|
5005
4461
|
* Send manual ACK
|
|
5006
4462
|
*
|
|
5007
4463
|
* @method POST
|
|
5008
4464
|
* @path /cfg/centrifugo/testing/send-ack/
|
|
5009
4465
|
*/
|
|
5010
|
-
declare function useCreateCentrifugoTestingSendAckCreate(): (data: ManualAckRequestRequest, client?: API$
|
|
4466
|
+
declare function useCreateCentrifugoTestingSendAckCreate(): (data: ManualAckRequestRequest, client?: API$1) => Promise<ManualAckResponse>;
|
|
5011
4467
|
|
|
5012
4468
|
/**
|
|
5013
4469
|
* SWR Hooks - React data fetching hooks
|
|
@@ -5076,14 +4532,14 @@ declare namespace index$1 {
|
|
|
5076
4532
|
* @method GET
|
|
5077
4533
|
* @path /cfg/totp/backup-codes/
|
|
5078
4534
|
*/
|
|
5079
|
-
declare function useTotpBackupCodesRetrieve(client?: API
|
|
4535
|
+
declare function useTotpBackupCodesRetrieve(client?: API): ReturnType<typeof useSWR<BackupCodesStatus>>;
|
|
5080
4536
|
/**
|
|
5081
4537
|
* API operation
|
|
5082
4538
|
*
|
|
5083
4539
|
* @method POST
|
|
5084
4540
|
* @path /cfg/totp/backup-codes/regenerate/
|
|
5085
4541
|
*/
|
|
5086
|
-
declare function useCreateTotpBackupCodesRegenerateCreate(): (data: BackupCodesRegenerateRequest, client?: API
|
|
4542
|
+
declare function useCreateTotpBackupCodesRegenerateCreate(): (data: BackupCodesRegenerateRequest, client?: API) => Promise<BackupCodesRegenerateResponse>;
|
|
5087
4543
|
|
|
5088
4544
|
/**
|
|
5089
4545
|
* SWR Hooks for TOTP Management
|
|
@@ -5113,14 +4569,14 @@ declare function useTotpDevicesList(params?: {
|
|
|
5113
4569
|
page?: number;
|
|
5114
4570
|
page_size?: number;
|
|
5115
4571
|
search?: string;
|
|
5116
|
-
}, client?: API
|
|
4572
|
+
}, client?: API): ReturnType<typeof useSWR<PaginatedDeviceListResponseList>>;
|
|
5117
4573
|
/**
|
|
5118
4574
|
* API operation
|
|
5119
4575
|
*
|
|
5120
4576
|
* @method POST
|
|
5121
4577
|
* @path /cfg/totp/disable/
|
|
5122
4578
|
*/
|
|
5123
|
-
declare function useCreateTotpDisableCreate(): (data: DisableRequest, client?: API
|
|
4579
|
+
declare function useCreateTotpDisableCreate(): (data: DisableRequest, client?: API) => Promise<any>;
|
|
5124
4580
|
|
|
5125
4581
|
/**
|
|
5126
4582
|
* API operation
|
|
@@ -5128,14 +4584,14 @@ declare function useCreateTotpDisableCreate(): (data: DisableRequest, client?: A
|
|
|
5128
4584
|
* @method POST
|
|
5129
4585
|
* @path /cfg/totp/setup/
|
|
5130
4586
|
*/
|
|
5131
|
-
declare function useCreateTotpSetupCreate(): (data: SetupRequest, client?: API
|
|
4587
|
+
declare function useCreateTotpSetupCreate(): (data: SetupRequest, client?: API) => Promise<SetupResponse>;
|
|
5132
4588
|
/**
|
|
5133
4589
|
* API operation
|
|
5134
4590
|
*
|
|
5135
4591
|
* @method POST
|
|
5136
4592
|
* @path /cfg/totp/setup/confirm/
|
|
5137
4593
|
*/
|
|
5138
|
-
declare function useCreateTotpSetupConfirmCreate(): (data: ConfirmSetupRequest, client?: API
|
|
4594
|
+
declare function useCreateTotpSetupConfirmCreate(): (data: ConfirmSetupRequest, client?: API) => Promise<ConfirmSetupResponse>;
|
|
5139
4595
|
|
|
5140
4596
|
/**
|
|
5141
4597
|
* API operation
|
|
@@ -5143,14 +4599,14 @@ declare function useCreateTotpSetupConfirmCreate(): (data: ConfirmSetupRequest,
|
|
|
5143
4599
|
* @method POST
|
|
5144
4600
|
* @path /cfg/totp/verify/
|
|
5145
4601
|
*/
|
|
5146
|
-
declare function useCreateTotpVerifyCreate(): (data: VerifyRequest, client?: API
|
|
4602
|
+
declare function useCreateTotpVerifyCreate(): (data: VerifyRequest, client?: API) => Promise<VerifyResponse>;
|
|
5147
4603
|
/**
|
|
5148
4604
|
* API operation
|
|
5149
4605
|
*
|
|
5150
4606
|
* @method POST
|
|
5151
4607
|
* @path /cfg/totp/verify/backup/
|
|
5152
4608
|
*/
|
|
5153
|
-
declare function useCreateTotpVerifyBackupCreate(): (data: VerifyBackupRequest, client?: API
|
|
4609
|
+
declare function useCreateTotpVerifyBackupCreate(): (data: VerifyBackupRequest, client?: API) => Promise<VerifyResponse>;
|
|
5154
4610
|
|
|
5155
4611
|
/**
|
|
5156
4612
|
* API operation
|
|
@@ -5158,7 +4614,7 @@ declare function useCreateTotpVerifyBackupCreate(): (data: VerifyBackupRequest,
|
|
|
5158
4614
|
* @method DELETE
|
|
5159
4615
|
* @path /cfg/totp/devices/{id}/
|
|
5160
4616
|
*/
|
|
5161
|
-
declare function useDeleteTotpDevicesDestroy(): (id: string, client?: API
|
|
4617
|
+
declare function useDeleteTotpDevicesDestroy(): (id: string, client?: API) => Promise<void>;
|
|
5162
4618
|
|
|
5163
4619
|
/**
|
|
5164
4620
|
* SWR Hooks - React data fetching hooks
|
|
@@ -5201,16 +4657,15 @@ declare namespace index {
|
|
|
5201
4657
|
/**
|
|
5202
4658
|
* @djangocfg/api - Pre-configured API Clients
|
|
5203
4659
|
*
|
|
5204
|
-
* Ready-to-use API instances for accounts
|
|
4660
|
+
* Ready-to-use API instances for accounts and centrifugo.
|
|
5205
4661
|
*
|
|
5206
4662
|
* Usage:
|
|
5207
|
-
* import { apiAccounts,
|
|
4663
|
+
* import { apiAccounts, apiCentrifugo } from '@djangocfg/api/clients';
|
|
5208
4664
|
* import { useAccountsOauthGithubCallbackCreate } from '@djangocfg/api/clients';
|
|
5209
4665
|
*/
|
|
5210
4666
|
|
|
5211
|
-
declare const apiAccounts: API$
|
|
5212
|
-
declare const apiTotp: API
|
|
5213
|
-
declare const
|
|
5214
|
-
declare const apiCentrifugo: API$2;
|
|
4667
|
+
declare const apiAccounts: API$2;
|
|
4668
|
+
declare const apiTotp: API;
|
|
4669
|
+
declare const apiCentrifugo: API$1;
|
|
5215
4670
|
|
|
5216
|
-
export { type AccountDeleteResponse, AccountDeleteResponseSchema, API$
|
|
4671
|
+
export { type AccountDeleteResponse, AccountDeleteResponseSchema, API$2 as AccountsAPI, API$1 as CentrifugoAPI, index$4 as CentrifugoFetchers, index$1 as CentrifugoHooks, type CentrifugoToken, CentrifugoTokenSchema, index$5 as CentrifugoTypes, type CfgAccountsProfileAvatarCreateRequest, CfgAccountsProfileAvatarCreateRequestSchema, 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 as TotpAPI, index$2 as TotpFetchers, index as TotpHooks, index$3 as TotpTypes, type User, type UserProfileUpdateRequest, UserProfileUpdateRequestSchema, UserSchema, apiAccounts, apiCentrifugo, apiTotp, createAccountsOauthDisconnectCreate, createAccountsOauthGithubAuthorizeCreate, createAccountsOauthGithubCallbackCreate, createAccountsOtpRequestCreate, createAccountsOtpVerifyCreate, createAccountsProfileAvatarCreate, createAccountsProfileDeleteCreate, createAccountsTokenRefreshCreate, getAccountsOauthConnectionsList, getAccountsOauthProvidersRetrieve, getAccountsProfileRetrieve, partialUpdateAccountsProfilePartialPartialUpdate, partialUpdateAccountsProfilePartialUpdate, partialUpdateAccountsProfileUpdatePartialUpdate, updateAccountsProfileUpdateUpdate, useAccountsOauthConnectionsList, useAccountsOauthProvidersRetrieve, useAccountsProfileRetrieve, useCreateAccountsOauthDisconnectCreate, useCreateAccountsOauthGithubAuthorizeCreate, useCreateAccountsOauthGithubCallbackCreate, useCreateAccountsOtpRequestCreate, useCreateAccountsOtpVerifyCreate, useCreateAccountsProfileAvatarCreate, useCreateAccountsProfileDeleteCreate, useCreateAccountsTokenRefreshCreate, usePartialUpdateAccountsProfilePartialPartialUpdate, usePartialUpdateAccountsProfilePartialUpdate, usePartialUpdateAccountsProfileUpdatePartialUpdate, useUpdateAccountsProfileUpdateUpdate };
|