@djangocfg/api 2.1.35 → 2.1.37
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.cjs +3007 -4015
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.mjs +3007 -4015
- package/dist/auth.mjs.map +1 -1
- package/dist/clients.cjs +4983 -0
- package/dist/clients.cjs.map +1 -0
- package/dist/clients.d.cts +4135 -0
- package/dist/clients.d.ts +4135 -0
- package/dist/clients.mjs +4957 -0
- package/dist/clients.mjs.map +1 -0
- package/dist/hooks.cjs +1083 -0
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.d.cts +1122 -1
- package/dist/hooks.d.ts +1122 -1
- package/dist/hooks.mjs +1053 -0
- package/dist/hooks.mjs.map +1 -1
- package/dist/index.cjs +2888 -7848
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1867 -9643
- package/dist/index.d.ts +1867 -9643
- package/dist/index.mjs +2891 -7851
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -3
- package/src/auth/hooks/useGithubAuth.ts +3 -3
- package/src/clients.ts +57 -0
- package/src/generated/cfg_accounts/_utils/fetchers/{cfg_accounts__accounts.ts → accounts.ts} +10 -2
- package/src/generated/cfg_accounts/_utils/fetchers/{cfg_accounts__accounts__auth.ts → accounts__auth.ts} +9 -1
- package/src/generated/cfg_accounts/_utils/fetchers/{cfg_accounts__accounts__oauth.ts → accounts__oauth.ts} +13 -5
- package/src/generated/cfg_accounts/_utils/fetchers/{cfg_accounts__accounts__user_profile.ts → accounts__user_profile.ts} +14 -6
- package/src/generated/cfg_accounts/_utils/fetchers/index.ts +12 -29
- package/src/generated/cfg_accounts/_utils/hooks/{cfg_accounts__accounts.ts → accounts.ts} +9 -1
- package/src/generated/cfg_accounts/_utils/hooks/{cfg_accounts__accounts__auth.ts → accounts__auth.ts} +9 -1
- package/src/generated/cfg_accounts/_utils/hooks/{cfg_accounts__accounts__oauth.ts → accounts__oauth.ts} +9 -1
- package/src/generated/cfg_accounts/_utils/hooks/{cfg_accounts__accounts__user_profile.ts → accounts__user_profile.ts} +9 -1
- package/src/generated/cfg_accounts/_utils/hooks/index.ts +12 -29
- package/src/generated/cfg_accounts/_utils/schemas/index.ts +8 -134
- package/src/generated/cfg_accounts/{cfg_accounts__accounts → accounts}/client.ts +1 -1
- package/src/generated/cfg_accounts/accounts/index.ts +10 -0
- package/src/generated/cfg_accounts/{cfg_accounts__accounts → accounts}/models.ts +8 -0
- package/src/generated/cfg_accounts/{cfg_accounts__accounts__auth → accounts__auth}/client.ts +1 -1
- package/src/generated/cfg_accounts/accounts__auth/index.ts +10 -0
- package/src/generated/cfg_accounts/accounts__auth/models.ts +25 -0
- package/src/generated/cfg_accounts/{cfg_accounts__accounts__oauth → accounts__oauth}/client.ts +1 -1
- package/src/generated/cfg_accounts/accounts__oauth/index.ts +10 -0
- package/src/generated/cfg_accounts/{cfg_accounts__accounts__oauth → accounts__oauth}/models.ts +8 -0
- package/src/generated/cfg_accounts/{cfg_accounts__accounts__user_profile → accounts__user_profile}/client.ts +1 -1
- package/src/generated/cfg_accounts/accounts__user_profile/index.ts +10 -0
- package/src/generated/cfg_accounts/{cfg_accounts__accounts__user_profile → accounts__user_profile}/models.ts +8 -0
- package/src/generated/cfg_accounts/api-instance.ts +8 -0
- package/src/generated/cfg_accounts/client.ts +12 -87
- package/src/generated/cfg_accounts/enums.ts +8 -96
- package/src/generated/cfg_accounts/errors.ts +8 -0
- package/src/generated/cfg_accounts/http.ts +8 -0
- package/src/generated/cfg_accounts/index.ts +28 -195
- package/src/generated/cfg_accounts/logger.ts +8 -0
- package/src/generated/cfg_accounts/retry.ts +8 -0
- package/src/generated/cfg_accounts/schema.json +246 -10265
- package/src/generated/cfg_accounts/storage.ts +8 -0
- package/src/generated/cfg_accounts/validation-events.ts +8 -0
- package/src/generated/{cfg_accounts/_utils/fetchers/cfg_accounts__centrifugo__centrifugo_admin_api.ts → cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_admin_api.ts} +14 -6
- package/src/generated/{cfg_accounts/_utils/fetchers/cfg_accounts__centrifugo__centrifugo_auth.ts → cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_auth.ts} +9 -1
- package/src/generated/{cfg_accounts/_utils/fetchers/cfg_accounts__centrifugo__centrifugo_monitoring.ts → cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_monitoring.ts} +13 -5
- package/src/generated/{cfg_accounts/_utils/fetchers/cfg_accounts__centrifugo__centrifugo_testing.ts → cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_testing.ts} +11 -3
- package/src/generated/cfg_centrifugo/_utils/fetchers/index.ts +39 -0
- package/src/generated/{cfg_accounts/_utils/hooks/cfg_accounts__centrifugo__centrifugo_admin_api.ts → cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_admin_api.ts} +9 -1
- package/src/generated/{cfg_accounts/_utils/hooks/cfg_accounts__centrifugo__centrifugo_auth.ts → cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_auth.ts} +9 -1
- package/src/generated/{cfg_accounts/_utils/hooks/cfg_accounts__centrifugo__centrifugo_monitoring.ts → cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_monitoring.ts} +9 -1
- package/src/generated/{cfg_accounts/_utils/hooks/cfg_accounts__centrifugo__centrifugo_testing.ts → cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_testing.ts} +9 -1
- package/src/generated/cfg_centrifugo/_utils/hooks/index.ts +39 -0
- package/src/generated/cfg_centrifugo/_utils/schemas/index.ts +61 -0
- package/src/generated/cfg_centrifugo/api-instance.ts +139 -0
- package/src/generated/{cfg_accounts/cfg_accounts__centrifugo__centrifugo_admin_api → cfg_centrifugo/centrifugo__centrifugo_admin_api}/client.ts +1 -1
- package/src/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/index.ts +10 -0
- package/src/generated/{cfg_accounts/cfg_accounts__centrifugo__centrifugo_admin_api → cfg_centrifugo/centrifugo__centrifugo_admin_api}/models.ts +8 -0
- package/src/generated/{cfg_accounts/cfg_accounts__centrifugo__centrifugo_auth → cfg_centrifugo/centrifugo__centrifugo_auth}/client.ts +1 -1
- package/src/generated/cfg_centrifugo/centrifugo__centrifugo_auth/index.ts +10 -0
- package/src/generated/{cfg_accounts/cfg_accounts__centrifugo__centrifugo_auth → cfg_centrifugo/centrifugo__centrifugo_auth}/models.ts +8 -0
- package/src/generated/{cfg_accounts/cfg_accounts__centrifugo__centrifugo_monitoring → cfg_centrifugo/centrifugo__centrifugo_monitoring}/client.ts +1 -1
- package/src/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/index.ts +10 -0
- package/src/generated/{cfg_accounts/cfg_accounts__centrifugo__centrifugo_monitoring → cfg_centrifugo/centrifugo__centrifugo_monitoring}/models.ts +8 -0
- package/src/generated/{cfg_accounts/cfg_accounts__centrifugo__centrifugo_testing → cfg_centrifugo/centrifugo__centrifugo_testing}/client.ts +1 -1
- package/src/generated/cfg_centrifugo/centrifugo__centrifugo_testing/index.ts +10 -0
- package/src/generated/{cfg_accounts/cfg_accounts__centrifugo__centrifugo_testing → cfg_centrifugo/centrifugo__centrifugo_testing}/models.ts +8 -0
- package/src/generated/cfg_centrifugo/client.ts +310 -0
- package/src/generated/cfg_centrifugo/errors.ts +124 -0
- package/src/generated/cfg_centrifugo/http.ts +111 -0
- package/src/generated/cfg_centrifugo/index.ts +301 -0
- package/src/generated/cfg_centrifugo/logger.ts +267 -0
- package/src/generated/cfg_centrifugo/retry.ts +183 -0
- package/src/generated/cfg_centrifugo/schema.json +2123 -0
- package/src/generated/cfg_centrifugo/storage.ts +169 -0
- package/src/generated/cfg_centrifugo/validation-events.ts +141 -0
- package/src/generated/cfg_webpush/_utils/fetchers/index.ts +36 -0
- package/src/generated/{cfg_accounts/_utils/fetchers/cfg_accounts__grpc__grpc_api_keys.ts → cfg_webpush/_utils/fetchers/webpush__web_push.ts} +45 -35
- package/src/generated/cfg_webpush/_utils/hooks/index.ts +36 -0
- package/src/generated/cfg_webpush/_utils/hooks/webpush__web_push.ts +86 -0
- package/src/generated/cfg_webpush/_utils/schemas/SendPushRequestRequest.schema.ts +22 -0
- package/src/generated/cfg_webpush/_utils/schemas/SendPushResponse.schema.ts +20 -0
- package/src/generated/cfg_webpush/_utils/schemas/SubscribeRequestRequest.schema.ts +20 -0
- package/src/generated/cfg_webpush/_utils/schemas/SubscribeResponse.schema.ts +21 -0
- package/src/generated/cfg_webpush/_utils/schemas/VapidPublicKeyResponse.schema.ts +19 -0
- package/src/generated/cfg_webpush/_utils/schemas/index.ts +31 -0
- package/src/generated/cfg_webpush/api-instance.ts +139 -0
- package/src/generated/cfg_webpush/client.ts +301 -0
- package/src/generated/cfg_webpush/errors.ts +124 -0
- package/src/generated/cfg_webpush/http.ts +111 -0
- package/src/generated/cfg_webpush/index.ts +280 -0
- package/src/generated/cfg_webpush/logger.ts +267 -0
- package/src/generated/cfg_webpush/retry.ts +183 -0
- package/src/generated/cfg_webpush/schema.json +302 -0
- package/src/generated/cfg_webpush/storage.ts +169 -0
- package/src/generated/cfg_webpush/validation-events.ts +141 -0
- package/src/generated/cfg_webpush/webpush__web_push/client.ts +45 -0
- package/src/generated/cfg_webpush/webpush__web_push/index.ts +10 -0
- package/src/generated/cfg_webpush/webpush__web_push/models.ts +72 -0
- package/src/hooks/accounts.ts +8 -0
- package/src/hooks/index.ts +10 -0
- package/src/hooks/webpush.ts +12 -0
- package/src/index.ts +11 -0
- package/src/server.ts +5 -8
- package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__dashboard__dashboard_activity.ts +0 -62
- package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__dashboard__dashboard_api_zones.ts +0 -106
- package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__dashboard__dashboard_charts.ts +0 -177
- package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__dashboard__dashboard_commands.ts +0 -179
- package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__dashboard__dashboard_config.ts +0 -92
- package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__dashboard__dashboard_overview.ts +0 -92
- package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__dashboard__dashboard_statistics.ts +0 -120
- package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__dashboard__dashboard_system.ts +0 -150
- package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__endpoints.ts +0 -164
- package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__grpc__grpc_configuration.ts +0 -150
- package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__grpc__grpc_monitoring.ts +0 -280
- package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__grpc__grpc_services.ts +0 -208
- package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__health.ts +0 -150
- package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__rq__rq_jobs.ts +0 -323
- package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__rq__rq_monitoring.ts +0 -164
- package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__rq__rq_queues.ts +0 -134
- package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__rq__rq_registries.ts +0 -436
- package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__rq__rq_schedules.ts +0 -266
- package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__rq__rq_testing.ts +0 -293
- package/src/generated/cfg_accounts/_utils/fetchers/cfg_accounts__rq__rq_workers.ts +0 -106
- package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__dashboard__dashboard_activity.ts +0 -50
- package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__dashboard__dashboard_api_zones.ts +0 -51
- package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__dashboard__dashboard_charts.ts +0 -79
- package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__dashboard__dashboard_commands.ts +0 -86
- package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__dashboard__dashboard_config.ts +0 -37
- package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__dashboard__dashboard_overview.ts +0 -37
- package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__dashboard__dashboard_statistics.ts +0 -65
- package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__dashboard__dashboard_system.ts +0 -52
- package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__endpoints.ts +0 -66
- package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__grpc__grpc_api_keys.ts +0 -67
- package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__grpc__grpc_configuration.ts +0 -52
- package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__grpc__grpc_monitoring.ts +0 -96
- package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__grpc__grpc_services.ts +0 -67
- package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__health.ts +0 -52
- package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__rq__rq_jobs.ts +0 -110
- package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__rq__rq_monitoring.ts +0 -66
- package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__rq__rq_queues.ts +0 -84
- package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__rq__rq_registries.ts +0 -136
- package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__rq__rq_schedules.ts +0 -92
- package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__rq__rq_testing.ts +0 -126
- package/src/generated/cfg_accounts/_utils/hooks/cfg_accounts__rq__rq_workers.ts +0 -51
- package/src/generated/cfg_accounts/_utils/schemas/APIZone.schema.ts +0 -29
- package/src/generated/cfg_accounts/_utils/schemas/APIZonesSummary.schema.ts +0 -22
- package/src/generated/cfg_accounts/_utils/schemas/ActivityEntry.schema.ts +0 -25
- package/src/generated/cfg_accounts/_utils/schemas/ActivityTrackerDay.schema.ts +0 -23
- package/src/generated/cfg_accounts/_utils/schemas/ApiKey.schema.ts +0 -30
- package/src/generated/cfg_accounts/_utils/schemas/ApiKeyStats.schema.ts +0 -22
- package/src/generated/cfg_accounts/_utils/schemas/AppStatistics.schema.ts +0 -21
- package/src/generated/cfg_accounts/_utils/schemas/AppStatisticsData.schema.ts +0 -23
- package/src/generated/cfg_accounts/_utils/schemas/AxesConfig.schema.ts +0 -35
- package/src/generated/cfg_accounts/_utils/schemas/CentrifugoConfig.schema.ts +0 -35
- package/src/generated/cfg_accounts/_utils/schemas/ChartData.schema.ts +0 -21
- package/src/generated/cfg_accounts/_utils/schemas/ChartDataset.schema.ts +0 -24
- package/src/generated/cfg_accounts/_utils/schemas/Command.schema.ts +0 -38
- package/src/generated/cfg_accounts/_utils/schemas/CommandCategory.schema.ts +0 -21
- package/src/generated/cfg_accounts/_utils/schemas/CommandExecuteRequestRequest.schema.ts +0 -21
- package/src/generated/cfg_accounts/_utils/schemas/CommandHelpResponse.schema.ts +0 -25
- package/src/generated/cfg_accounts/_utils/schemas/CommandsSummary.schema.ts +0 -26
- package/src/generated/cfg_accounts/_utils/schemas/ConfigData.schema.ts +0 -27
- package/src/generated/cfg_accounts/_utils/schemas/ConfigMeta.schema.ts +0 -20
- package/src/generated/cfg_accounts/_utils/schemas/ConfigValidation.schema.ts +0 -24
- package/src/generated/cfg_accounts/_utils/schemas/ConstanceConfig.schema.ts +0 -24
- package/src/generated/cfg_accounts/_utils/schemas/DRFConfig.schema.ts +0 -20
- package/src/generated/cfg_accounts/_utils/schemas/DRFHealthCheck.schema.ts +0 -25
- package/src/generated/cfg_accounts/_utils/schemas/DashboardOverview.schema.ts +0 -35
- package/src/generated/cfg_accounts/_utils/schemas/DatabaseConfig.schema.ts +0 -31
- package/src/generated/cfg_accounts/_utils/schemas/DjangoConfig.schema.ts +0 -93
- package/src/generated/cfg_accounts/_utils/schemas/DjangoRQConfig.schema.ts +0 -27
- package/src/generated/cfg_accounts/_utils/schemas/EmailConfig.schema.ts +0 -28
- package/src/generated/cfg_accounts/_utils/schemas/Endpoint.schema.ts +0 -35
- package/src/generated/cfg_accounts/_utils/schemas/EndpointsStatus.schema.ts +0 -28
- package/src/generated/cfg_accounts/_utils/schemas/GRPCConfig.schema.ts +0 -26
- package/src/generated/cfg_accounts/_utils/schemas/GRPCConfigDashboard.schema.ts +0 -33
- package/src/generated/cfg_accounts/_utils/schemas/GRPCFeatures.schema.ts +0 -22
- package/src/generated/cfg_accounts/_utils/schemas/GRPCFrameworkConfig.schema.ts +0 -22
- package/src/generated/cfg_accounts/_utils/schemas/GRPCHealthCheck.schema.ts +0 -23
- package/src/generated/cfg_accounts/_utils/schemas/GRPCInterceptorInfo.schema.ts +0 -20
- package/src/generated/cfg_accounts/_utils/schemas/GRPCOverviewStats.schema.ts +0 -29
- package/src/generated/cfg_accounts/_utils/schemas/GRPCRegisteredService.schema.ts +0 -24
- package/src/generated/cfg_accounts/_utils/schemas/GRPCServerConfig.schema.ts +0 -23
- package/src/generated/cfg_accounts/_utils/schemas/GRPCServerInfo.schema.ts +0 -28
- package/src/generated/cfg_accounts/_utils/schemas/GRPCServerStatus.schema.ts +0 -30
- package/src/generated/cfg_accounts/_utils/schemas/GRPCServiceInfo.schema.ts +0 -22
- package/src/generated/cfg_accounts/_utils/schemas/GRPCServiceRegistryMethodStats.schema.ts +0 -26
- package/src/generated/cfg_accounts/_utils/schemas/GRPCStats.schema.ts +0 -21
- package/src/generated/cfg_accounts/_utils/schemas/GitHubOAuthConfig.schema.ts +0 -30
- package/src/generated/cfg_accounts/_utils/schemas/JWTConfig.schema.ts +0 -21
- package/src/generated/cfg_accounts/_utils/schemas/JobActionResponse.schema.ts +0 -26
- package/src/generated/cfg_accounts/_utils/schemas/JobDetail.schema.ts +0 -40
- package/src/generated/cfg_accounts/_utils/schemas/JobList.schema.ts +0 -28
- package/src/generated/cfg_accounts/_utils/schemas/JobListRequest.schema.ts +0 -28
- package/src/generated/cfg_accounts/_utils/schemas/MethodInfo.schema.ts +0 -24
- package/src/generated/cfg_accounts/_utils/schemas/MethodList.schema.ts +0 -21
- package/src/generated/cfg_accounts/_utils/schemas/MethodSummary.schema.ts +0 -25
- package/src/generated/cfg_accounts/_utils/schemas/ModelStatistics.schema.ts +0 -23
- package/src/generated/cfg_accounts/_utils/schemas/NextJSAdminConfig.schema.ts +0 -21
- package/src/generated/cfg_accounts/_utils/schemas/NgrokConfig.schema.ts +0 -22
- package/src/generated/cfg_accounts/_utils/schemas/OpenAPIClientConfig.schema.ts +0 -26
- package/src/generated/cfg_accounts/_utils/schemas/PaginatedApiKeyList.schema.ts +0 -24
- package/src/generated/cfg_accounts/_utils/schemas/PaginatedJobListList.schema.ts +0 -24
- package/src/generated/cfg_accounts/_utils/schemas/PaginatedRecentRequestList.schema.ts +0 -24
- package/src/generated/cfg_accounts/_utils/schemas/PaginatedScheduledJobList.schema.ts +0 -24
- package/src/generated/cfg_accounts/_utils/schemas/PaginatedServiceSummaryList.schema.ts +0 -24
- package/src/generated/cfg_accounts/_utils/schemas/PaymentsConfig.schema.ts +0 -21
- package/src/generated/cfg_accounts/_utils/schemas/PaymentsNowPayments.schema.ts +0 -22
- package/src/generated/cfg_accounts/_utils/schemas/QueueDetail.schema.ts +0 -34
- package/src/generated/cfg_accounts/_utils/schemas/QueueStats.schema.ts +0 -31
- package/src/generated/cfg_accounts/_utils/schemas/QuickAction.schema.ts +0 -29
- package/src/generated/cfg_accounts/_utils/schemas/QuickHealth.schema.ts +0 -21
- package/src/generated/cfg_accounts/_utils/schemas/RQConfig.schema.ts +0 -30
- package/src/generated/cfg_accounts/_utils/schemas/RQHealthCheck.schema.ts +0 -31
- package/src/generated/cfg_accounts/_utils/schemas/RQSchedule.schema.ts +0 -26
- package/src/generated/cfg_accounts/_utils/schemas/RecentError.schema.ts +0 -22
- package/src/generated/cfg_accounts/_utils/schemas/RecentRequest.schema.ts +0 -33
- package/src/generated/cfg_accounts/_utils/schemas/RecentUser.schema.ts +0 -26
- package/src/generated/cfg_accounts/_utils/schemas/RedisQueueConfig.schema.ts +0 -29
- package/src/generated/cfg_accounts/_utils/schemas/RunDemoRequestRequest.schema.ts +0 -24
- package/src/generated/cfg_accounts/_utils/schemas/ScheduleActionResponse.schema.ts +0 -22
- package/src/generated/cfg_accounts/_utils/schemas/ScheduleCreateRequest.schema.ts +0 -39
- package/src/generated/cfg_accounts/_utils/schemas/ScheduleInfo.schema.ts +0 -27
- package/src/generated/cfg_accounts/_utils/schemas/ScheduledJob.schema.ts +0 -32
- package/src/generated/cfg_accounts/_utils/schemas/ServiceDetail.schema.ts +0 -31
- package/src/generated/cfg_accounts/_utils/schemas/ServiceMethods.schema.ts +0 -22
- package/src/generated/cfg_accounts/_utils/schemas/ServiceStats.schema.ts +0 -24
- package/src/generated/cfg_accounts/_utils/schemas/ServiceSummary.schema.ts +0 -26
- package/src/generated/cfg_accounts/_utils/schemas/SpectacularConfig.schema.ts +0 -21
- package/src/generated/cfg_accounts/_utils/schemas/StatCard.schema.ts +0 -30
- package/src/generated/cfg_accounts/_utils/schemas/StressTestRequestRequest.schema.ts +0 -23
- package/src/generated/cfg_accounts/_utils/schemas/SystemHealth.schema.ts +0 -24
- package/src/generated/cfg_accounts/_utils/schemas/SystemHealthItem.schema.ts +0 -28
- package/src/generated/cfg_accounts/_utils/schemas/SystemMetrics.schema.ts +0 -25
- package/src/generated/cfg_accounts/_utils/schemas/TelegramConfig.schema.ts +0 -28
- package/src/generated/cfg_accounts/_utils/schemas/TestScenario.schema.ts +0 -25
- package/src/generated/cfg_accounts/_utils/schemas/TestingActionResponse.schema.ts +0 -23
- package/src/generated/cfg_accounts/_utils/schemas/URLPattern.schema.ts +0 -26
- package/src/generated/cfg_accounts/_utils/schemas/URLsList.schema.ts +0 -25
- package/src/generated/cfg_accounts/_utils/schemas/UserStatistics.schema.ts +0 -22
- package/src/generated/cfg_accounts/_utils/schemas/Worker.schema.ts +0 -31
- package/src/generated/cfg_accounts/_utils/schemas/WorkerStats.schema.ts +0 -31
- package/src/generated/cfg_accounts/_utils/schemas/ZonesSummaryStats.schema.ts +0 -21
- package/src/generated/cfg_accounts/cfg_accounts__accounts/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__accounts__auth/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__accounts__auth/models.ts +0 -17
- package/src/generated/cfg_accounts/cfg_accounts__accounts__oauth/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__accounts__user_profile/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__centrifugo__centrifugo_admin_api/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__centrifugo__centrifugo_auth/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__centrifugo__centrifugo_monitoring/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__centrifugo__centrifugo_testing/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_activity/client.ts +0 -45
- package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_activity/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_activity/models.ts +0 -0
- package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_api_zones/client.ts +0 -34
- package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_api_zones/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_api_zones/models.ts +0 -40
- package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_charts/client.ts +0 -98
- package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_charts/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_charts/models.ts +0 -24
- package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_commands/client.ts +0 -55
- package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_commands/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_commands/models.ts +0 -80
- package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_config/client.ts +0 -25
- package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_config/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_config/models.ts +0 -412
- package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_overview/client.ts +0 -25
- package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_overview/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_overview/models.ts +0 -228
- package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_statistics/client.ts +0 -44
- package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_statistics/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_statistics/models.ts +0 -16
- package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_system/client.ts +0 -34
- package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_system/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__dashboard__dashboard_system/models.ts +0 -69
- package/src/generated/cfg_accounts/cfg_accounts__endpoints/client.ts +0 -42
- package/src/generated/cfg_accounts/cfg_accounts__endpoints/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__endpoints/models.ts +0 -112
- package/src/generated/cfg_accounts/cfg_accounts__grpc__grpc_api_keys/client.ts +0 -56
- package/src/generated/cfg_accounts/cfg_accounts__grpc__grpc_api_keys/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__grpc__grpc_api_keys/models.ts +0 -73
- package/src/generated/cfg_accounts/cfg_accounts__grpc__grpc_configuration/client.ts +0 -35
- package/src/generated/cfg_accounts/cfg_accounts__grpc__grpc_configuration/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__grpc__grpc_configuration/models.ts +0 -128
- package/src/generated/cfg_accounts/cfg_accounts__grpc__grpc_monitoring/client.ts +0 -109
- package/src/generated/cfg_accounts/cfg_accounts__grpc__grpc_monitoring/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__grpc__grpc_monitoring/models.ts +0 -213
- package/src/generated/cfg_accounts/cfg_accounts__grpc__grpc_services/client.ts +0 -56
- package/src/generated/cfg_accounts/cfg_accounts__grpc__grpc_services/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__grpc__grpc_services/models.ts +0 -189
- package/src/generated/cfg_accounts/cfg_accounts__health/client.ts +0 -30
- package/src/generated/cfg_accounts/cfg_accounts__health/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__health/models.ts +0 -36
- package/src/generated/cfg_accounts/cfg_accounts__rq__rq_jobs/client.ts +0 -76
- package/src/generated/cfg_accounts/cfg_accounts__rq__rq_jobs/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__rq__rq_jobs/models.ts +0 -127
- package/src/generated/cfg_accounts/cfg_accounts__rq__rq_monitoring/client.ts +0 -45
- package/src/generated/cfg_accounts/cfg_accounts__rq__rq_monitoring/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__rq__rq_monitoring/models.ts +0 -66
- package/src/generated/cfg_accounts/cfg_accounts__rq__rq_queues/client.ts +0 -78
- package/src/generated/cfg_accounts/cfg_accounts__rq__rq_queues/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__rq__rq_queues/models.ts +0 -33
- package/src/generated/cfg_accounts/cfg_accounts__rq__rq_registries/client.ts +0 -164
- package/src/generated/cfg_accounts/cfg_accounts__rq__rq_registries/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__rq__rq_registries/models.ts +0 -82
- package/src/generated/cfg_accounts/cfg_accounts__rq__rq_schedules/client.ts +0 -91
- package/src/generated/cfg_accounts/cfg_accounts__rq__rq_schedules/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__rq__rq_schedules/models.ts +0 -109
- package/src/generated/cfg_accounts/cfg_accounts__rq__rq_testing/client.ts +0 -96
- package/src/generated/cfg_accounts/cfg_accounts__rq__rq_testing/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__rq__rq_testing/models.ts +0 -68
- package/src/generated/cfg_accounts/cfg_accounts__rq__rq_workers/client.ts +0 -46
- package/src/generated/cfg_accounts/cfg_accounts__rq__rq_workers/index.ts +0 -2
- package/src/generated/cfg_accounts/cfg_accounts__rq__rq_workers/models.ts +0 -52
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoChannelInfo.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoChannelsRequestRequest.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoChannelsResponse.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoChannelsResult.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoClientInfo.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoError.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoHealthCheck.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoHistoryResponse.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoHistoryResult.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoInfoResponse.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoInfoResult.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoMetrics.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoNodeInfo.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoOverviewStats.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoPresenceRequestRequest.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoPresenceResponse.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoPresenceResult.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoPresenceStatsRequestRequest.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoPresenceStatsResult.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoProcess.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoPublication.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/CentrifugoStreamPosition.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/ChannelList.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/ChannelStats.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/ConnectionTokenResponse.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/ManualAckRequestRequest.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/ManualAckResponse.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/PaginatedPublishList.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/Publish.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/PublishTestRequestRequest.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/PublishTestResponse.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/TimelineItem.schema.ts +0 -0
- /package/src/generated/{cfg_accounts → cfg_centrifugo}/_utils/schemas/TimelineResponse.schema.ts +0 -0
package/dist/hooks.d.cts
CHANGED
|
@@ -1,2 +1,1123 @@
|
|
|
1
|
+
import { ConsolaInstance } from 'consola';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import useSWR from 'swr';
|
|
1
4
|
|
|
2
|
-
|
|
5
|
+
/**
|
|
6
|
+
* AUTO-GENERATED FILE - DO NOT EDIT
|
|
7
|
+
*
|
|
8
|
+
* This file is automatically generated by DjangoCFG.
|
|
9
|
+
* Any manual changes will be lost when the code is regenerated.
|
|
10
|
+
*
|
|
11
|
+
* @see https://djangocfg.com/docs/features/modules/django-client/overview/
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* Request model (no read-only fields).
|
|
16
|
+
*/
|
|
17
|
+
interface TokenRefreshRequest$1 {
|
|
18
|
+
refresh: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* Response model (includes read-only fields).
|
|
23
|
+
*/
|
|
24
|
+
interface TokenRefresh$1 {
|
|
25
|
+
access: string;
|
|
26
|
+
refresh: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* API endpoints for Auth.
|
|
31
|
+
*/
|
|
32
|
+
declare class Auth {
|
|
33
|
+
private client;
|
|
34
|
+
constructor(client: any);
|
|
35
|
+
/**
|
|
36
|
+
* Refresh JWT token.
|
|
37
|
+
*/
|
|
38
|
+
accountsTokenRefreshCreate(data: TokenRefreshRequest$1): Promise<TokenRefresh$1>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* OAuth provider to disconnect
|
|
43
|
+
* * `github` - GitHub
|
|
44
|
+
*/
|
|
45
|
+
declare enum OAuthDisconnectRequestRequestProvider {
|
|
46
|
+
GITHUB = "github"
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Delivery channel: 'email' or 'phone'. Auto-detected if not provided.
|
|
50
|
+
* * `email` - Email
|
|
51
|
+
* * `phone` - Phone
|
|
52
|
+
*/
|
|
53
|
+
declare enum OTPRequestRequestChannel {
|
|
54
|
+
EMAIL = "email",
|
|
55
|
+
PHONE = "phone"
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Delivery channel: 'email' or 'phone'. Auto-detected if not provided.
|
|
59
|
+
* * `email` - Email
|
|
60
|
+
* * `phone` - Phone
|
|
61
|
+
*/
|
|
62
|
+
declare enum OTPVerifyRequestChannel {
|
|
63
|
+
EMAIL = "email",
|
|
64
|
+
PHONE = "phone"
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* AUTO-GENERATED FILE - DO NOT EDIT
|
|
69
|
+
*
|
|
70
|
+
* This file is automatically generated by DjangoCFG.
|
|
71
|
+
* Any manual changes will be lost when the code is regenerated.
|
|
72
|
+
*
|
|
73
|
+
* @see https://djangocfg.com/docs/features/modules/django-client/overview/
|
|
74
|
+
*/
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Request to disconnect OAuth provider.
|
|
78
|
+
*
|
|
79
|
+
* Request model (no read-only fields).
|
|
80
|
+
*/
|
|
81
|
+
interface OAuthDisconnectRequestRequest$1 {
|
|
82
|
+
/** OAuth provider to disconnect
|
|
83
|
+
|
|
84
|
+
* `github` - GitHub */
|
|
85
|
+
provider: OAuthDisconnectRequestRequestProvider;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Request to start OAuth flow.
|
|
89
|
+
*
|
|
90
|
+
* Request model (no read-only fields).
|
|
91
|
+
*/
|
|
92
|
+
interface OAuthAuthorizeRequestRequest$1 {
|
|
93
|
+
/** URL to redirect after OAuth authorization. If not provided, uses config's site_url + callback_path */
|
|
94
|
+
redirect_uri?: string;
|
|
95
|
+
/** Optional source URL for registration tracking */
|
|
96
|
+
source_url?: string;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Response with OAuth authorization URL.
|
|
100
|
+
*
|
|
101
|
+
* Response model (includes read-only fields).
|
|
102
|
+
*/
|
|
103
|
+
interface OAuthAuthorizeResponse$1 {
|
|
104
|
+
/** Full URL to redirect user to OAuth provider */
|
|
105
|
+
authorization_url: string;
|
|
106
|
+
/** State token for CSRF protection. Store this and verify on callback. */
|
|
107
|
+
state: string;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Request to complete OAuth flow (callback handler).
|
|
111
|
+
*
|
|
112
|
+
* Request model (no read-only fields).
|
|
113
|
+
*/
|
|
114
|
+
interface OAuthCallbackRequestRequest$1 {
|
|
115
|
+
/** Authorization code from OAuth provider callback */
|
|
116
|
+
code: string;
|
|
117
|
+
/** State token for CSRF verification (from authorize response) */
|
|
118
|
+
state: string;
|
|
119
|
+
/** Same redirect_uri used in authorize request. If not provided, uses config's site_url + callback_path */
|
|
120
|
+
redirect_uri?: string;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Response with JWT tokens after OAuth authentication.
|
|
124
|
+
*
|
|
125
|
+
* Response model (includes read-only fields).
|
|
126
|
+
*/
|
|
127
|
+
interface OAuthTokenResponse$1 {
|
|
128
|
+
/** JWT access token */
|
|
129
|
+
access: string;
|
|
130
|
+
/** JWT refresh token */
|
|
131
|
+
refresh: string;
|
|
132
|
+
/** Authenticated user info */
|
|
133
|
+
user: Record<string, any>;
|
|
134
|
+
/** True if a new user was created during this OAuth flow */
|
|
135
|
+
is_new_user: boolean;
|
|
136
|
+
/** True if a new OAuth connection was created */
|
|
137
|
+
is_new_connection: boolean;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Response with available OAuth providers.
|
|
141
|
+
*
|
|
142
|
+
* Response model (includes read-only fields).
|
|
143
|
+
*/
|
|
144
|
+
interface OAuthProvidersResponse {
|
|
145
|
+
/** List of available OAuth providers */
|
|
146
|
+
providers: Array<Record<string, any>>;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* API endpoints for Oauth.
|
|
151
|
+
*/
|
|
152
|
+
declare class Oauth {
|
|
153
|
+
private client;
|
|
154
|
+
constructor(client: any);
|
|
155
|
+
/**
|
|
156
|
+
* List OAuth connections
|
|
157
|
+
*
|
|
158
|
+
* Get all OAuth connections for the current user.
|
|
159
|
+
*/
|
|
160
|
+
accountsOauthConnectionsList(): Promise<any>;
|
|
161
|
+
/**
|
|
162
|
+
* Disconnect OAuth provider
|
|
163
|
+
*
|
|
164
|
+
* Remove OAuth connection for the specified provider.
|
|
165
|
+
*/
|
|
166
|
+
accountsOauthDisconnectCreate(data: OAuthDisconnectRequestRequest$1): Promise<any>;
|
|
167
|
+
/**
|
|
168
|
+
* Start GitHub OAuth
|
|
169
|
+
*
|
|
170
|
+
* Generate GitHub OAuth authorization URL. Redirect user to this URL to
|
|
171
|
+
* start authentication.
|
|
172
|
+
*/
|
|
173
|
+
accountsOauthGithubAuthorizeCreate(data: OAuthAuthorizeRequestRequest$1): Promise<OAuthAuthorizeResponse$1>;
|
|
174
|
+
/**
|
|
175
|
+
* Complete GitHub OAuth
|
|
176
|
+
*
|
|
177
|
+
* Exchange authorization code for JWT tokens. Call this after GitHub
|
|
178
|
+
* redirects back with code.
|
|
179
|
+
*/
|
|
180
|
+
accountsOauthGithubCallbackCreate(data: OAuthCallbackRequestRequest$1): Promise<OAuthTokenResponse$1>;
|
|
181
|
+
/**
|
|
182
|
+
* List OAuth providers
|
|
183
|
+
*
|
|
184
|
+
* Get list of available OAuth providers for authentication.
|
|
185
|
+
*/
|
|
186
|
+
accountsOauthProvidersRetrieve(): Promise<OAuthProvidersResponse>;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* AUTO-GENERATED FILE - DO NOT EDIT
|
|
191
|
+
*
|
|
192
|
+
* This file is automatically generated by DjangoCFG.
|
|
193
|
+
* Any manual changes will be lost when the code is regenerated.
|
|
194
|
+
*
|
|
195
|
+
* @see https://djangocfg.com/docs/features/modules/django-client/overview/
|
|
196
|
+
*/
|
|
197
|
+
/**
|
|
198
|
+
* Serializer for user details.
|
|
199
|
+
*
|
|
200
|
+
* Response model (includes read-only fields).
|
|
201
|
+
*/
|
|
202
|
+
interface User$2 {
|
|
203
|
+
id: number;
|
|
204
|
+
email: string;
|
|
205
|
+
first_name?: string;
|
|
206
|
+
last_name?: string;
|
|
207
|
+
/** Get user's full name. */
|
|
208
|
+
full_name: string;
|
|
209
|
+
/** Get user's initials for avatar fallback. */
|
|
210
|
+
initials: string;
|
|
211
|
+
/** Get formatted username for display. */
|
|
212
|
+
display_username: string;
|
|
213
|
+
company?: string;
|
|
214
|
+
phone?: string;
|
|
215
|
+
position?: string;
|
|
216
|
+
avatar?: string | null;
|
|
217
|
+
/** Designates whether the user can log into this admin site. */
|
|
218
|
+
is_staff: boolean;
|
|
219
|
+
/** Designates that this user has all permissions without explicitly assigning them. */
|
|
220
|
+
is_superuser: boolean;
|
|
221
|
+
date_joined: string;
|
|
222
|
+
last_login?: string | null;
|
|
223
|
+
/** Get count of unanswered messages for the user. */
|
|
224
|
+
unanswered_messages_count: number;
|
|
225
|
+
centrifugo: CentrifugoToken$1 | null;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Serializer for updating user profile.
|
|
229
|
+
*
|
|
230
|
+
* Request model (no read-only fields).
|
|
231
|
+
*/
|
|
232
|
+
interface UserProfileUpdateRequest$1 {
|
|
233
|
+
first_name?: string;
|
|
234
|
+
last_name?: string;
|
|
235
|
+
company?: string;
|
|
236
|
+
phone?: string;
|
|
237
|
+
position?: string;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Serializer for updating user profile.
|
|
241
|
+
*
|
|
242
|
+
* Request model (no read-only fields).
|
|
243
|
+
*/
|
|
244
|
+
interface PatchedUserProfileUpdateRequest$1 {
|
|
245
|
+
first_name?: string;
|
|
246
|
+
last_name?: string;
|
|
247
|
+
company?: string;
|
|
248
|
+
phone?: string;
|
|
249
|
+
position?: string;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Nested serializer for Centrifugo WebSocket connection token.
|
|
253
|
+
*
|
|
254
|
+
* Response model (includes read-only fields).
|
|
255
|
+
*/
|
|
256
|
+
interface CentrifugoToken$1 {
|
|
257
|
+
/** JWT token for Centrifugo WebSocket connection */
|
|
258
|
+
token: string;
|
|
259
|
+
/** Centrifugo WebSocket URL */
|
|
260
|
+
centrifugo_url: string;
|
|
261
|
+
/** Token expiration time (ISO 8601) */
|
|
262
|
+
expires_at: string;
|
|
263
|
+
/** List of allowed channels for this user */
|
|
264
|
+
channels: Array<string>;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* API endpoints for User Profile.
|
|
269
|
+
*/
|
|
270
|
+
declare class UserProfile {
|
|
271
|
+
private client;
|
|
272
|
+
constructor(client: any);
|
|
273
|
+
/**
|
|
274
|
+
* Get current user profile
|
|
275
|
+
*
|
|
276
|
+
* Retrieve the current authenticated user's profile information.
|
|
277
|
+
*/
|
|
278
|
+
accountsProfileRetrieve(): Promise<User$2>;
|
|
279
|
+
/**
|
|
280
|
+
* Upload user avatar
|
|
281
|
+
*
|
|
282
|
+
* Upload avatar image for the current authenticated user. Accepts
|
|
283
|
+
* multipart/form-data with 'avatar' field.
|
|
284
|
+
*/
|
|
285
|
+
accountsProfileAvatarCreate(data: FormData): Promise<User$2>;
|
|
286
|
+
/**
|
|
287
|
+
* Partial update user profile
|
|
288
|
+
*
|
|
289
|
+
* Partially update the current authenticated user's profile information.
|
|
290
|
+
* Supports avatar upload.
|
|
291
|
+
*/
|
|
292
|
+
accountsProfilePartialUpdate(data: UserProfileUpdateRequest$1): Promise<User$2>;
|
|
293
|
+
/**
|
|
294
|
+
* Partial update user profile
|
|
295
|
+
*
|
|
296
|
+
* Partially update the current authenticated user's profile information.
|
|
297
|
+
* Supports avatar upload.
|
|
298
|
+
*/
|
|
299
|
+
accountsProfilePartialPartialUpdate(data?: PatchedUserProfileUpdateRequest$1): Promise<User$2>;
|
|
300
|
+
/**
|
|
301
|
+
* Update user profile
|
|
302
|
+
*
|
|
303
|
+
* Update the current authenticated user's profile information.
|
|
304
|
+
*/
|
|
305
|
+
accountsProfileUpdateUpdate(data: UserProfileUpdateRequest$1): Promise<User$2>;
|
|
306
|
+
/**
|
|
307
|
+
* Update user profile
|
|
308
|
+
*
|
|
309
|
+
* Update the current authenticated user's profile information.
|
|
310
|
+
*/
|
|
311
|
+
accountsProfileUpdatePartialUpdate(data?: PatchedUserProfileUpdateRequest$1): Promise<User$2>;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* AUTO-GENERATED FILE - DO NOT EDIT
|
|
316
|
+
*
|
|
317
|
+
* This file is automatically generated by DjangoCFG.
|
|
318
|
+
* Any manual changes will be lost when the code is regenerated.
|
|
319
|
+
*
|
|
320
|
+
* @see https://djangocfg.com/docs/features/modules/django-client/overview/
|
|
321
|
+
*/
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Serializer for OTP request.
|
|
325
|
+
*
|
|
326
|
+
* Request model (no read-only fields).
|
|
327
|
+
*/
|
|
328
|
+
interface OTPRequestRequest$1 {
|
|
329
|
+
/** Email address or phone number for OTP delivery */
|
|
330
|
+
identifier: string;
|
|
331
|
+
/** Delivery channel: 'email' or 'phone'. Auto-detected if not provided.
|
|
332
|
+
|
|
333
|
+
* `email` - Email
|
|
334
|
+
* `phone` - Phone */
|
|
335
|
+
channel?: OTPRequestRequestChannel;
|
|
336
|
+
/** Source URL for tracking registration (e.g., https://my.djangocfg.com) */
|
|
337
|
+
source_url?: string;
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* OTP request response.
|
|
341
|
+
*
|
|
342
|
+
* Response model (includes read-only fields).
|
|
343
|
+
*/
|
|
344
|
+
interface OTPRequestResponse$1 {
|
|
345
|
+
/** Success message */
|
|
346
|
+
message: string;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Serializer for OTP verification.
|
|
350
|
+
*
|
|
351
|
+
* Request model (no read-only fields).
|
|
352
|
+
*/
|
|
353
|
+
interface OTPVerifyRequest$1 {
|
|
354
|
+
/** Email address or phone number used for OTP request */
|
|
355
|
+
identifier: string;
|
|
356
|
+
otp: string;
|
|
357
|
+
/** Delivery channel: 'email' or 'phone'. Auto-detected if not provided.
|
|
358
|
+
|
|
359
|
+
* `email` - Email
|
|
360
|
+
* `phone` - Phone */
|
|
361
|
+
channel?: OTPVerifyRequestChannel;
|
|
362
|
+
/** Source URL for tracking login (e.g., https://my.djangocfg.com) */
|
|
363
|
+
source_url?: string;
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* OTP verification response.
|
|
367
|
+
*
|
|
368
|
+
* Response model (includes read-only fields).
|
|
369
|
+
*/
|
|
370
|
+
interface OTPVerifyResponse$1 {
|
|
371
|
+
/** JWT refresh token */
|
|
372
|
+
refresh: string;
|
|
373
|
+
/** JWT access token */
|
|
374
|
+
access: string;
|
|
375
|
+
user: User$1;
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* Serializer for user details.
|
|
379
|
+
*
|
|
380
|
+
* Response model (includes read-only fields).
|
|
381
|
+
*/
|
|
382
|
+
interface User$1 {
|
|
383
|
+
id: number;
|
|
384
|
+
email: string;
|
|
385
|
+
first_name?: string;
|
|
386
|
+
last_name?: string;
|
|
387
|
+
/** Get user's full name. */
|
|
388
|
+
full_name: string;
|
|
389
|
+
/** Get user's initials for avatar fallback. */
|
|
390
|
+
initials: string;
|
|
391
|
+
/** Get formatted username for display. */
|
|
392
|
+
display_username: string;
|
|
393
|
+
company?: string;
|
|
394
|
+
phone?: string;
|
|
395
|
+
position?: string;
|
|
396
|
+
avatar?: string | null;
|
|
397
|
+
/** Designates whether the user can log into this admin site. */
|
|
398
|
+
is_staff: boolean;
|
|
399
|
+
/** Designates that this user has all permissions without explicitly assigning them. */
|
|
400
|
+
is_superuser: boolean;
|
|
401
|
+
date_joined: string;
|
|
402
|
+
last_login?: string | null;
|
|
403
|
+
/** Get count of unanswered messages for the user. */
|
|
404
|
+
unanswered_messages_count: number;
|
|
405
|
+
centrifugo: CentrifugoToken | null;
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* Nested serializer for Centrifugo WebSocket connection token.
|
|
409
|
+
*
|
|
410
|
+
* Response model (includes read-only fields).
|
|
411
|
+
*/
|
|
412
|
+
interface CentrifugoToken {
|
|
413
|
+
/** JWT token for Centrifugo WebSocket connection */
|
|
414
|
+
token: string;
|
|
415
|
+
/** Centrifugo WebSocket URL */
|
|
416
|
+
centrifugo_url: string;
|
|
417
|
+
/** Token expiration time (ISO 8601) */
|
|
418
|
+
expires_at: string;
|
|
419
|
+
/** List of allowed channels for this user */
|
|
420
|
+
channels: Array<string>;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* API endpoints for Accounts.
|
|
425
|
+
*/
|
|
426
|
+
declare class Accounts {
|
|
427
|
+
private client;
|
|
428
|
+
constructor(client: any);
|
|
429
|
+
/**
|
|
430
|
+
* Request OTP code to email or phone.
|
|
431
|
+
*/
|
|
432
|
+
otpRequestCreate(data: OTPRequestRequest$1): Promise<OTPRequestResponse$1>;
|
|
433
|
+
/**
|
|
434
|
+
* Verify OTP code and return JWT tokens.
|
|
435
|
+
*/
|
|
436
|
+
otpVerifyCreate(data: OTPVerifyRequest$1): Promise<OTPVerifyResponse$1>;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* AUTO-GENERATED FILE - DO NOT EDIT
|
|
441
|
+
*
|
|
442
|
+
* This file is automatically generated by DjangoCFG.
|
|
443
|
+
* Any manual changes will be lost when the code is regenerated.
|
|
444
|
+
*
|
|
445
|
+
* @see https://djangocfg.com/docs/features/modules/django-client/overview/
|
|
446
|
+
*/
|
|
447
|
+
/**
|
|
448
|
+
* API Logger with Consola
|
|
449
|
+
* Beautiful console logging for API requests and responses
|
|
450
|
+
*
|
|
451
|
+
* Installation:
|
|
452
|
+
* npm install consola
|
|
453
|
+
*/
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* Logger configuration
|
|
457
|
+
*/
|
|
458
|
+
interface LoggerConfig {
|
|
459
|
+
/** Enable logging */
|
|
460
|
+
enabled: boolean;
|
|
461
|
+
/** Log requests */
|
|
462
|
+
logRequests: boolean;
|
|
463
|
+
/** Log responses */
|
|
464
|
+
logResponses: boolean;
|
|
465
|
+
/** Log errors */
|
|
466
|
+
logErrors: boolean;
|
|
467
|
+
/** Log request/response bodies */
|
|
468
|
+
logBodies: boolean;
|
|
469
|
+
/** Log headers (excluding sensitive ones) */
|
|
470
|
+
logHeaders: boolean;
|
|
471
|
+
/** Custom consola instance */
|
|
472
|
+
consola?: ConsolaInstance;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* AUTO-GENERATED FILE - DO NOT EDIT
|
|
477
|
+
*
|
|
478
|
+
* This file is automatically generated by DjangoCFG.
|
|
479
|
+
* Any manual changes will be lost when the code is regenerated.
|
|
480
|
+
*
|
|
481
|
+
* @see https://djangocfg.com/docs/features/modules/django-client/overview/
|
|
482
|
+
*/
|
|
483
|
+
/**
|
|
484
|
+
* Retry Configuration and Utilities
|
|
485
|
+
*
|
|
486
|
+
* Provides automatic retry logic for failed HTTP requests using p-retry.
|
|
487
|
+
* Retries only on network errors and server errors (5xx), not client errors (4xx).
|
|
488
|
+
*/
|
|
489
|
+
/**
|
|
490
|
+
* Information about a failed retry attempt.
|
|
491
|
+
*/
|
|
492
|
+
interface FailedAttemptInfo {
|
|
493
|
+
/** The error that caused the failure */
|
|
494
|
+
error: Error;
|
|
495
|
+
/** The attempt number (1-indexed) */
|
|
496
|
+
attemptNumber: number;
|
|
497
|
+
/** Number of retries left */
|
|
498
|
+
retriesLeft: number;
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
* Retry configuration options.
|
|
502
|
+
*
|
|
503
|
+
* Uses exponential backoff with jitter by default to avoid thundering herd.
|
|
504
|
+
*/
|
|
505
|
+
interface RetryConfig {
|
|
506
|
+
/**
|
|
507
|
+
* Maximum number of retry attempts.
|
|
508
|
+
* @default 3
|
|
509
|
+
*/
|
|
510
|
+
retries?: number;
|
|
511
|
+
/**
|
|
512
|
+
* Exponential backoff factor.
|
|
513
|
+
* @default 2
|
|
514
|
+
*/
|
|
515
|
+
factor?: number;
|
|
516
|
+
/**
|
|
517
|
+
* Minimum wait time between retries (ms).
|
|
518
|
+
* @default 1000
|
|
519
|
+
*/
|
|
520
|
+
minTimeout?: number;
|
|
521
|
+
/**
|
|
522
|
+
* Maximum wait time between retries (ms).
|
|
523
|
+
* @default 60000
|
|
524
|
+
*/
|
|
525
|
+
maxTimeout?: number;
|
|
526
|
+
/**
|
|
527
|
+
* Add randomness to wait times (jitter).
|
|
528
|
+
* Helps avoid thundering herd problem.
|
|
529
|
+
* @default true
|
|
530
|
+
*/
|
|
531
|
+
randomize?: boolean;
|
|
532
|
+
/**
|
|
533
|
+
* Callback called on each failed attempt.
|
|
534
|
+
*/
|
|
535
|
+
onFailedAttempt?: (info: FailedAttemptInfo) => void;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* AUTO-GENERATED FILE - DO NOT EDIT
|
|
540
|
+
*
|
|
541
|
+
* This file is automatically generated by DjangoCFG.
|
|
542
|
+
* Any manual changes will be lost when the code is regenerated.
|
|
543
|
+
*
|
|
544
|
+
* @see https://djangocfg.com/docs/features/modules/django-client/overview/
|
|
545
|
+
*/
|
|
546
|
+
/**
|
|
547
|
+
* Storage adapters for cross-platform token storage.
|
|
548
|
+
*
|
|
549
|
+
* Supports:
|
|
550
|
+
* - LocalStorage (browser)
|
|
551
|
+
* - Cookies (SSR/browser)
|
|
552
|
+
* - Memory (Node.js/Electron/testing)
|
|
553
|
+
*/
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* Storage adapter interface for cross-platform token storage.
|
|
557
|
+
*/
|
|
558
|
+
interface StorageAdapter {
|
|
559
|
+
getItem(key: string): string | null;
|
|
560
|
+
setItem(key: string, value: string): void;
|
|
561
|
+
removeItem(key: string): void;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* Zod schema for OAuthAuthorizeRequestRequest
|
|
566
|
+
*
|
|
567
|
+
* This schema provides runtime validation and type inference.
|
|
568
|
+
* * Request to start OAuth flow.
|
|
569
|
+
* */
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Request to start OAuth flow.
|
|
573
|
+
*/
|
|
574
|
+
declare const OAuthAuthorizeRequestRequestSchema: z.ZodObject<{
|
|
575
|
+
redirect_uri: z.ZodOptional<z.ZodURL>;
|
|
576
|
+
source_url: z.ZodOptional<z.ZodURL>;
|
|
577
|
+
}, z.core.$strip>;
|
|
578
|
+
/**
|
|
579
|
+
* Infer TypeScript type from Zod schema
|
|
580
|
+
*/
|
|
581
|
+
type OAuthAuthorizeRequestRequest = z.infer<typeof OAuthAuthorizeRequestRequestSchema>;
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* Zod schema for OAuthAuthorizeResponse
|
|
585
|
+
*
|
|
586
|
+
* This schema provides runtime validation and type inference.
|
|
587
|
+
* * Response with OAuth authorization URL.
|
|
588
|
+
* */
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* Response with OAuth authorization URL.
|
|
592
|
+
*/
|
|
593
|
+
declare const OAuthAuthorizeResponseSchema: z.ZodObject<{
|
|
594
|
+
authorization_url: z.ZodURL;
|
|
595
|
+
state: z.ZodString;
|
|
596
|
+
}, z.core.$strip>;
|
|
597
|
+
/**
|
|
598
|
+
* Infer TypeScript type from Zod schema
|
|
599
|
+
*/
|
|
600
|
+
type OAuthAuthorizeResponse = z.infer<typeof OAuthAuthorizeResponseSchema>;
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* Zod schema for OAuthCallbackRequestRequest
|
|
604
|
+
*
|
|
605
|
+
* This schema provides runtime validation and type inference.
|
|
606
|
+
* * Request to complete OAuth flow (callback handler).
|
|
607
|
+
* */
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* Request to complete OAuth flow (callback handler).
|
|
611
|
+
*/
|
|
612
|
+
declare const OAuthCallbackRequestRequestSchema: z.ZodObject<{
|
|
613
|
+
code: z.ZodString;
|
|
614
|
+
state: z.ZodString;
|
|
615
|
+
redirect_uri: z.ZodOptional<z.ZodURL>;
|
|
616
|
+
}, z.core.$strip>;
|
|
617
|
+
/**
|
|
618
|
+
* Infer TypeScript type from Zod schema
|
|
619
|
+
*/
|
|
620
|
+
type OAuthCallbackRequestRequest = z.infer<typeof OAuthCallbackRequestRequestSchema>;
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* Zod schema for OAuthDisconnectRequestRequest
|
|
624
|
+
*
|
|
625
|
+
* This schema provides runtime validation and type inference.
|
|
626
|
+
* * Request to disconnect OAuth provider.
|
|
627
|
+
* */
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Request to disconnect OAuth provider.
|
|
631
|
+
*/
|
|
632
|
+
declare const OAuthDisconnectRequestRequestSchema: z.ZodObject<{
|
|
633
|
+
provider: z.ZodEnum<typeof OAuthDisconnectRequestRequestProvider>;
|
|
634
|
+
}, z.core.$strip>;
|
|
635
|
+
/**
|
|
636
|
+
* Infer TypeScript type from Zod schema
|
|
637
|
+
*/
|
|
638
|
+
type OAuthDisconnectRequestRequest = z.infer<typeof OAuthDisconnectRequestRequestSchema>;
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* Zod schema for OAuthTokenResponse
|
|
642
|
+
*
|
|
643
|
+
* This schema provides runtime validation and type inference.
|
|
644
|
+
* * Response with JWT tokens after OAuth authentication.
|
|
645
|
+
* */
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* Response with JWT tokens after OAuth authentication.
|
|
649
|
+
*/
|
|
650
|
+
declare const OAuthTokenResponseSchema: z.ZodObject<{
|
|
651
|
+
access: z.ZodString;
|
|
652
|
+
refresh: z.ZodString;
|
|
653
|
+
user: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
654
|
+
is_new_user: z.ZodBoolean;
|
|
655
|
+
is_new_connection: z.ZodBoolean;
|
|
656
|
+
}, z.core.$strip>;
|
|
657
|
+
/**
|
|
658
|
+
* Infer TypeScript type from Zod schema
|
|
659
|
+
*/
|
|
660
|
+
type OAuthTokenResponse = z.infer<typeof OAuthTokenResponseSchema>;
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* Zod schema for OTPRequestRequest
|
|
664
|
+
*
|
|
665
|
+
* This schema provides runtime validation and type inference.
|
|
666
|
+
* * Serializer for OTP request.
|
|
667
|
+
* */
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* Serializer for OTP request.
|
|
671
|
+
*/
|
|
672
|
+
declare const OTPRequestRequestSchema: z.ZodObject<{
|
|
673
|
+
identifier: z.ZodString;
|
|
674
|
+
channel: z.ZodOptional<z.ZodEnum<typeof OTPRequestRequestChannel>>;
|
|
675
|
+
source_url: z.ZodOptional<z.ZodURL>;
|
|
676
|
+
}, z.core.$strip>;
|
|
677
|
+
/**
|
|
678
|
+
* Infer TypeScript type from Zod schema
|
|
679
|
+
*/
|
|
680
|
+
type OTPRequestRequest = z.infer<typeof OTPRequestRequestSchema>;
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* Zod schema for OTPRequestResponse
|
|
684
|
+
*
|
|
685
|
+
* This schema provides runtime validation and type inference.
|
|
686
|
+
* * OTP request response.
|
|
687
|
+
* */
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* OTP request response.
|
|
691
|
+
*/
|
|
692
|
+
declare const OTPRequestResponseSchema: z.ZodObject<{
|
|
693
|
+
message: z.ZodString;
|
|
694
|
+
}, z.core.$strip>;
|
|
695
|
+
/**
|
|
696
|
+
* Infer TypeScript type from Zod schema
|
|
697
|
+
*/
|
|
698
|
+
type OTPRequestResponse = z.infer<typeof OTPRequestResponseSchema>;
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* Zod schema for OTPVerifyRequest
|
|
702
|
+
*
|
|
703
|
+
* This schema provides runtime validation and type inference.
|
|
704
|
+
* * Serializer for OTP verification.
|
|
705
|
+
* */
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* Serializer for OTP verification.
|
|
709
|
+
*/
|
|
710
|
+
declare const OTPVerifyRequestSchema: z.ZodObject<{
|
|
711
|
+
identifier: z.ZodString;
|
|
712
|
+
otp: z.ZodString;
|
|
713
|
+
channel: z.ZodOptional<z.ZodEnum<typeof OTPVerifyRequestChannel>>;
|
|
714
|
+
source_url: z.ZodOptional<z.ZodURL>;
|
|
715
|
+
}, z.core.$strip>;
|
|
716
|
+
/**
|
|
717
|
+
* Infer TypeScript type from Zod schema
|
|
718
|
+
*/
|
|
719
|
+
type OTPVerifyRequest = z.infer<typeof OTPVerifyRequestSchema>;
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* Zod schema for OTPVerifyResponse
|
|
723
|
+
*
|
|
724
|
+
* This schema provides runtime validation and type inference.
|
|
725
|
+
* * OTP verification response.
|
|
726
|
+
* */
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* OTP verification response.
|
|
730
|
+
*/
|
|
731
|
+
declare const OTPVerifyResponseSchema: z.ZodObject<{
|
|
732
|
+
refresh: z.ZodString;
|
|
733
|
+
access: z.ZodString;
|
|
734
|
+
user: z.ZodObject<{
|
|
735
|
+
id: z.ZodInt;
|
|
736
|
+
email: z.ZodEmail;
|
|
737
|
+
first_name: z.ZodOptional<z.ZodString>;
|
|
738
|
+
last_name: z.ZodOptional<z.ZodString>;
|
|
739
|
+
full_name: z.ZodString;
|
|
740
|
+
initials: z.ZodString;
|
|
741
|
+
display_username: z.ZodString;
|
|
742
|
+
company: z.ZodOptional<z.ZodString>;
|
|
743
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
744
|
+
position: z.ZodOptional<z.ZodString>;
|
|
745
|
+
avatar: z.ZodNullable<z.ZodURL>;
|
|
746
|
+
is_staff: z.ZodBoolean;
|
|
747
|
+
is_superuser: z.ZodBoolean;
|
|
748
|
+
date_joined: z.ZodISODateTime;
|
|
749
|
+
last_login: z.ZodNullable<z.ZodISODateTime>;
|
|
750
|
+
unanswered_messages_count: z.ZodInt;
|
|
751
|
+
centrifugo: z.ZodNullable<z.ZodObject<{
|
|
752
|
+
token: z.ZodString;
|
|
753
|
+
centrifugo_url: z.ZodURL;
|
|
754
|
+
expires_at: z.ZodISODateTime;
|
|
755
|
+
channels: z.ZodArray<z.ZodString>;
|
|
756
|
+
}, z.core.$strip>>;
|
|
757
|
+
}, z.core.$strip>;
|
|
758
|
+
}, z.core.$strip>;
|
|
759
|
+
/**
|
|
760
|
+
* Infer TypeScript type from Zod schema
|
|
761
|
+
*/
|
|
762
|
+
type OTPVerifyResponse = z.infer<typeof OTPVerifyResponseSchema>;
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* Zod schema for PatchedUserProfileUpdateRequest
|
|
766
|
+
*
|
|
767
|
+
* This schema provides runtime validation and type inference.
|
|
768
|
+
* * Serializer for updating user profile.
|
|
769
|
+
* */
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* Serializer for updating user profile.
|
|
773
|
+
*/
|
|
774
|
+
declare const PatchedUserProfileUpdateRequestSchema: z.ZodObject<{
|
|
775
|
+
first_name: z.ZodOptional<z.ZodString>;
|
|
776
|
+
last_name: z.ZodOptional<z.ZodString>;
|
|
777
|
+
company: z.ZodOptional<z.ZodString>;
|
|
778
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
779
|
+
position: z.ZodOptional<z.ZodString>;
|
|
780
|
+
}, z.core.$strip>;
|
|
781
|
+
/**
|
|
782
|
+
* Infer TypeScript type from Zod schema
|
|
783
|
+
*/
|
|
784
|
+
type PatchedUserProfileUpdateRequest = z.infer<typeof PatchedUserProfileUpdateRequestSchema>;
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* Zod schema for TokenRefresh
|
|
788
|
+
*
|
|
789
|
+
* This schema provides runtime validation and type inference.
|
|
790
|
+
* */
|
|
791
|
+
|
|
792
|
+
declare const TokenRefreshSchema: z.ZodObject<{
|
|
793
|
+
access: z.ZodString;
|
|
794
|
+
refresh: z.ZodString;
|
|
795
|
+
}, z.core.$strip>;
|
|
796
|
+
/**
|
|
797
|
+
* Infer TypeScript type from Zod schema
|
|
798
|
+
*/
|
|
799
|
+
type TokenRefresh = z.infer<typeof TokenRefreshSchema>;
|
|
800
|
+
|
|
801
|
+
/**
|
|
802
|
+
* Zod schema for TokenRefreshRequest
|
|
803
|
+
*
|
|
804
|
+
* This schema provides runtime validation and type inference.
|
|
805
|
+
* */
|
|
806
|
+
|
|
807
|
+
declare const TokenRefreshRequestSchema: z.ZodObject<{
|
|
808
|
+
refresh: z.ZodString;
|
|
809
|
+
}, z.core.$strip>;
|
|
810
|
+
/**
|
|
811
|
+
* Infer TypeScript type from Zod schema
|
|
812
|
+
*/
|
|
813
|
+
type TokenRefreshRequest = z.infer<typeof TokenRefreshRequestSchema>;
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* Zod schema for User
|
|
817
|
+
*
|
|
818
|
+
* This schema provides runtime validation and type inference.
|
|
819
|
+
* * Serializer for user details.
|
|
820
|
+
* */
|
|
821
|
+
|
|
822
|
+
/**
|
|
823
|
+
* Serializer for user details.
|
|
824
|
+
*/
|
|
825
|
+
declare const UserSchema: z.ZodObject<{
|
|
826
|
+
id: z.ZodInt;
|
|
827
|
+
email: z.ZodEmail;
|
|
828
|
+
first_name: z.ZodOptional<z.ZodString>;
|
|
829
|
+
last_name: z.ZodOptional<z.ZodString>;
|
|
830
|
+
full_name: z.ZodString;
|
|
831
|
+
initials: z.ZodString;
|
|
832
|
+
display_username: z.ZodString;
|
|
833
|
+
company: z.ZodOptional<z.ZodString>;
|
|
834
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
835
|
+
position: z.ZodOptional<z.ZodString>;
|
|
836
|
+
avatar: z.ZodNullable<z.ZodURL>;
|
|
837
|
+
is_staff: z.ZodBoolean;
|
|
838
|
+
is_superuser: z.ZodBoolean;
|
|
839
|
+
date_joined: z.ZodISODateTime;
|
|
840
|
+
last_login: z.ZodNullable<z.ZodISODateTime>;
|
|
841
|
+
unanswered_messages_count: z.ZodInt;
|
|
842
|
+
centrifugo: z.ZodNullable<z.ZodObject<{
|
|
843
|
+
token: z.ZodString;
|
|
844
|
+
centrifugo_url: z.ZodURL;
|
|
845
|
+
expires_at: z.ZodISODateTime;
|
|
846
|
+
channels: z.ZodArray<z.ZodString>;
|
|
847
|
+
}, z.core.$strip>>;
|
|
848
|
+
}, z.core.$strip>;
|
|
849
|
+
/**
|
|
850
|
+
* Infer TypeScript type from Zod schema
|
|
851
|
+
*/
|
|
852
|
+
type User = z.infer<typeof UserSchema>;
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* Zod schema for UserProfileUpdateRequest
|
|
856
|
+
*
|
|
857
|
+
* This schema provides runtime validation and type inference.
|
|
858
|
+
* * Serializer for updating user profile.
|
|
859
|
+
* */
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* Serializer for updating user profile.
|
|
863
|
+
*/
|
|
864
|
+
declare const UserProfileUpdateRequestSchema: z.ZodObject<{
|
|
865
|
+
first_name: z.ZodOptional<z.ZodString>;
|
|
866
|
+
last_name: z.ZodOptional<z.ZodString>;
|
|
867
|
+
company: z.ZodOptional<z.ZodString>;
|
|
868
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
869
|
+
position: z.ZodOptional<z.ZodString>;
|
|
870
|
+
}, z.core.$strip>;
|
|
871
|
+
/**
|
|
872
|
+
* Infer TypeScript type from Zod schema
|
|
873
|
+
*/
|
|
874
|
+
type UserProfileUpdateRequest = z.infer<typeof UserProfileUpdateRequestSchema>;
|
|
875
|
+
|
|
876
|
+
/**
|
|
877
|
+
* AUTO-GENERATED FILE - DO NOT EDIT
|
|
878
|
+
*
|
|
879
|
+
* This file is automatically generated by DjangoCFG.
|
|
880
|
+
* Any manual changes will be lost when the code is regenerated.
|
|
881
|
+
*
|
|
882
|
+
* @see https://djangocfg.com/docs/features/modules/django-client/overview/
|
|
883
|
+
*/
|
|
884
|
+
/**
|
|
885
|
+
* Django CFG API - API Client with JWT Management
|
|
886
|
+
*
|
|
887
|
+
* Usage:
|
|
888
|
+
* ```typescript
|
|
889
|
+
* import { API } from './api';
|
|
890
|
+
*
|
|
891
|
+
* const api = new API('https://api.example.com');
|
|
892
|
+
*
|
|
893
|
+
* // Set JWT token
|
|
894
|
+
* api.setToken('your-jwt-token', 'refresh-token');
|
|
895
|
+
*
|
|
896
|
+
* // Use API
|
|
897
|
+
* const posts = await api.posts.list();
|
|
898
|
+
* const user = await api.users.retrieve(1);
|
|
899
|
+
*
|
|
900
|
+
* // Check authentication
|
|
901
|
+
* if (api.isAuthenticated()) {
|
|
902
|
+
* // ...
|
|
903
|
+
* }
|
|
904
|
+
*
|
|
905
|
+
* // Custom storage with logging (for Electron/Node.js)
|
|
906
|
+
* import { MemoryStorageAdapter, APILogger } from './storage';
|
|
907
|
+
* const logger = new APILogger({ enabled: true, logLevel: 'debug' });
|
|
908
|
+
* const api = new API('https://api.example.com', {
|
|
909
|
+
* storage: new MemoryStorageAdapter(logger),
|
|
910
|
+
* loggerConfig: { enabled: true, logLevel: 'debug' }
|
|
911
|
+
* });
|
|
912
|
+
*
|
|
913
|
+
* // Get OpenAPI schema
|
|
914
|
+
* const schema = api.getSchema();
|
|
915
|
+
* ```
|
|
916
|
+
*/
|
|
917
|
+
|
|
918
|
+
interface APIOptions {
|
|
919
|
+
/** Custom storage adapter (defaults to LocalStorageAdapter) */
|
|
920
|
+
storage?: StorageAdapter;
|
|
921
|
+
/** Retry configuration for failed requests */
|
|
922
|
+
retryConfig?: RetryConfig;
|
|
923
|
+
/** Logger configuration */
|
|
924
|
+
loggerConfig?: Partial<LoggerConfig>;
|
|
925
|
+
}
|
|
926
|
+
declare class API {
|
|
927
|
+
private baseUrl;
|
|
928
|
+
private _client;
|
|
929
|
+
private _token;
|
|
930
|
+
private _refreshToken;
|
|
931
|
+
private storage;
|
|
932
|
+
private options?;
|
|
933
|
+
auth: Auth;
|
|
934
|
+
oauth: Oauth;
|
|
935
|
+
user_profile: UserProfile;
|
|
936
|
+
accounts: Accounts;
|
|
937
|
+
constructor(baseUrl: string, options?: APIOptions);
|
|
938
|
+
private _loadTokensFromStorage;
|
|
939
|
+
private _reinitClients;
|
|
940
|
+
private _injectAuthHeader;
|
|
941
|
+
/**
|
|
942
|
+
* Get current JWT token
|
|
943
|
+
*/
|
|
944
|
+
getToken(): string | null;
|
|
945
|
+
/**
|
|
946
|
+
* Get current refresh token
|
|
947
|
+
*/
|
|
948
|
+
getRefreshToken(): string | null;
|
|
949
|
+
/**
|
|
950
|
+
* Set JWT token and refresh token
|
|
951
|
+
* @param token - JWT access token
|
|
952
|
+
* @param refreshToken - JWT refresh token (optional)
|
|
953
|
+
*/
|
|
954
|
+
setToken(token: string, refreshToken?: string): void;
|
|
955
|
+
/**
|
|
956
|
+
* Clear all tokens
|
|
957
|
+
*/
|
|
958
|
+
clearTokens(): void;
|
|
959
|
+
/**
|
|
960
|
+
* Check if user is authenticated
|
|
961
|
+
*/
|
|
962
|
+
isAuthenticated(): boolean;
|
|
963
|
+
/**
|
|
964
|
+
* Update base URL and reinitialize clients
|
|
965
|
+
* @param url - New base URL
|
|
966
|
+
*/
|
|
967
|
+
setBaseUrl(url: string): void;
|
|
968
|
+
/**
|
|
969
|
+
* Get current base URL
|
|
970
|
+
*/
|
|
971
|
+
getBaseUrl(): string;
|
|
972
|
+
/**
|
|
973
|
+
* Get OpenAPI schema path
|
|
974
|
+
* @returns Path to the OpenAPI schema JSON file
|
|
975
|
+
*
|
|
976
|
+
* Note: The OpenAPI schema is available in the schema.json file.
|
|
977
|
+
* You can load it dynamically using:
|
|
978
|
+
* ```typescript
|
|
979
|
+
* const schema = await fetch('./schema.json').then(r => r.json());
|
|
980
|
+
* // or using fs in Node.js:
|
|
981
|
+
* // const schema = JSON.parse(fs.readFileSync('./schema.json', 'utf-8'));
|
|
982
|
+
* ```
|
|
983
|
+
*/
|
|
984
|
+
getSchemaPath(): string;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* API operation
|
|
989
|
+
*
|
|
990
|
+
* @method POST
|
|
991
|
+
* @path /cfg/accounts/token/refresh/
|
|
992
|
+
*/
|
|
993
|
+
declare function useCreateAccountsTokenRefreshCreate(): (data: TokenRefreshRequest, client?: API) => Promise<TokenRefresh>;
|
|
994
|
+
|
|
995
|
+
/**
|
|
996
|
+
* SWR Hooks for Oauth
|
|
997
|
+
*
|
|
998
|
+
* React hooks powered by SWR for data fetching with automatic caching,
|
|
999
|
+
* revalidation, and optimistic updates.
|
|
1000
|
+
*
|
|
1001
|
+
* Usage:
|
|
1002
|
+
* ```typescript
|
|
1003
|
+
* // Query hooks (GET)
|
|
1004
|
+
* const { data, error, isLoading } = useUsers({ page: 1 })
|
|
1005
|
+
*
|
|
1006
|
+
* // Mutation hooks (POST/PUT/PATCH/DELETE)
|
|
1007
|
+
* const createUser = useCreateUser()
|
|
1008
|
+
* await createUser({ name: 'John', email: 'john@example.com' })
|
|
1009
|
+
* ```
|
|
1010
|
+
*/
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* List OAuth connections
|
|
1014
|
+
*
|
|
1015
|
+
* @method GET
|
|
1016
|
+
* @path /cfg/accounts/oauth/connections/
|
|
1017
|
+
*/
|
|
1018
|
+
declare function useAccountsOauthConnectionsList(client?: API): ReturnType<typeof useSWR<any>>;
|
|
1019
|
+
/**
|
|
1020
|
+
* Disconnect OAuth provider
|
|
1021
|
+
*
|
|
1022
|
+
* @method POST
|
|
1023
|
+
* @path /cfg/accounts/oauth/disconnect/
|
|
1024
|
+
*/
|
|
1025
|
+
declare function useCreateAccountsOauthDisconnectCreate(): (data: OAuthDisconnectRequestRequest, client?: API) => Promise<any>;
|
|
1026
|
+
/**
|
|
1027
|
+
* Start GitHub OAuth
|
|
1028
|
+
*
|
|
1029
|
+
* @method POST
|
|
1030
|
+
* @path /cfg/accounts/oauth/github/authorize/
|
|
1031
|
+
*/
|
|
1032
|
+
declare function useCreateAccountsOauthGithubAuthorizeCreate(): (data: OAuthAuthorizeRequestRequest, client?: API) => Promise<OAuthAuthorizeResponse>;
|
|
1033
|
+
/**
|
|
1034
|
+
* Complete GitHub OAuth
|
|
1035
|
+
*
|
|
1036
|
+
* @method POST
|
|
1037
|
+
* @path /cfg/accounts/oauth/github/callback/
|
|
1038
|
+
*/
|
|
1039
|
+
declare function useCreateAccountsOauthGithubCallbackCreate(): (data: OAuthCallbackRequestRequest, client?: API) => Promise<OAuthTokenResponse>;
|
|
1040
|
+
/**
|
|
1041
|
+
* List OAuth providers
|
|
1042
|
+
*
|
|
1043
|
+
* @method GET
|
|
1044
|
+
* @path /cfg/accounts/oauth/providers/
|
|
1045
|
+
*/
|
|
1046
|
+
declare function useAccountsOauthProvidersRetrieve(client?: API): ReturnType<typeof useSWR<OAuthProvidersResponse>>;
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* SWR Hooks for User Profile
|
|
1050
|
+
*
|
|
1051
|
+
* React hooks powered by SWR for data fetching with automatic caching,
|
|
1052
|
+
* revalidation, and optimistic updates.
|
|
1053
|
+
*
|
|
1054
|
+
* Usage:
|
|
1055
|
+
* ```typescript
|
|
1056
|
+
* // Query hooks (GET)
|
|
1057
|
+
* const { data, error, isLoading } = useUsers({ page: 1 })
|
|
1058
|
+
*
|
|
1059
|
+
* // Mutation hooks (POST/PUT/PATCH/DELETE)
|
|
1060
|
+
* const createUser = useCreateUser()
|
|
1061
|
+
* await createUser({ name: 'John', email: 'john@example.com' })
|
|
1062
|
+
* ```
|
|
1063
|
+
*/
|
|
1064
|
+
|
|
1065
|
+
/**
|
|
1066
|
+
* Get current user profile
|
|
1067
|
+
*
|
|
1068
|
+
* @method GET
|
|
1069
|
+
* @path /cfg/accounts/profile/
|
|
1070
|
+
*/
|
|
1071
|
+
declare function useAccountsProfileRetrieve(client?: API): ReturnType<typeof useSWR<User>>;
|
|
1072
|
+
/**
|
|
1073
|
+
* Upload user avatar
|
|
1074
|
+
*
|
|
1075
|
+
* @method POST
|
|
1076
|
+
* @path /cfg/accounts/profile/avatar/
|
|
1077
|
+
*/
|
|
1078
|
+
declare function useCreateAccountsProfileAvatarCreate(): (data: any, client?: API) => Promise<User>;
|
|
1079
|
+
/**
|
|
1080
|
+
* Partial update user profile
|
|
1081
|
+
*
|
|
1082
|
+
* @method PUT
|
|
1083
|
+
* @path /cfg/accounts/profile/partial/
|
|
1084
|
+
*/
|
|
1085
|
+
declare function usePartialUpdateAccountsProfilePartialUpdate(): (data: UserProfileUpdateRequest, client?: API) => Promise<User>;
|
|
1086
|
+
/**
|
|
1087
|
+
* Partial update user profile
|
|
1088
|
+
*
|
|
1089
|
+
* @method PATCH
|
|
1090
|
+
* @path /cfg/accounts/profile/partial/
|
|
1091
|
+
*/
|
|
1092
|
+
declare function usePartialUpdateAccountsProfilePartialPartialUpdate(): (data?: PatchedUserProfileUpdateRequest, client?: API) => Promise<User>;
|
|
1093
|
+
/**
|
|
1094
|
+
* Update user profile
|
|
1095
|
+
*
|
|
1096
|
+
* @method PUT
|
|
1097
|
+
* @path /cfg/accounts/profile/update/
|
|
1098
|
+
*/
|
|
1099
|
+
declare function useUpdateAccountsProfileUpdateUpdate(): (data: UserProfileUpdateRequest, client?: API) => Promise<User>;
|
|
1100
|
+
/**
|
|
1101
|
+
* Update user profile
|
|
1102
|
+
*
|
|
1103
|
+
* @method PATCH
|
|
1104
|
+
* @path /cfg/accounts/profile/update/
|
|
1105
|
+
*/
|
|
1106
|
+
declare function usePartialUpdateAccountsProfileUpdatePartialUpdate(): (data?: PatchedUserProfileUpdateRequest, client?: API) => Promise<User>;
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* API operation
|
|
1110
|
+
*
|
|
1111
|
+
* @method POST
|
|
1112
|
+
* @path /cfg/accounts/otp/request/
|
|
1113
|
+
*/
|
|
1114
|
+
declare function useCreateAccountsOtpRequestCreate(): (data: OTPRequestRequest, client?: API) => Promise<OTPRequestResponse>;
|
|
1115
|
+
/**
|
|
1116
|
+
* API operation
|
|
1117
|
+
*
|
|
1118
|
+
* @method POST
|
|
1119
|
+
* @path /cfg/accounts/otp/verify/
|
|
1120
|
+
*/
|
|
1121
|
+
declare function useCreateAccountsOtpVerifyCreate(): (data: OTPVerifyRequest, client?: API) => Promise<OTPVerifyResponse>;
|
|
1122
|
+
|
|
1123
|
+
export { useAccountsOauthConnectionsList, useAccountsOauthProvidersRetrieve, useAccountsProfileRetrieve, useCreateAccountsOauthDisconnectCreate, useCreateAccountsOauthGithubAuthorizeCreate, useCreateAccountsOauthGithubCallbackCreate, useCreateAccountsOtpRequestCreate, useCreateAccountsOtpVerifyCreate, useCreateAccountsProfileAvatarCreate, useCreateAccountsTokenRefreshCreate, usePartialUpdateAccountsProfilePartialPartialUpdate, usePartialUpdateAccountsProfilePartialUpdate, usePartialUpdateAccountsProfileUpdatePartialUpdate, useUpdateAccountsProfileUpdateUpdate };
|