@djangocfg/api 2.1.36 → 2.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +94 -56
- package/dist/auth.cjs +3020 -4081
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +5 -7
- package/dist/auth.d.ts +5 -7
- package/dist/auth.mjs +3019 -4080
- 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/context/AuthContext.tsx +8 -71
- package/src/auth/context/types.ts +1 -9
- package/src/auth/hooks/useAuthForm.ts +11 -7
- 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.cjs
CHANGED
|
@@ -1 +1,1084 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
|
|
31
|
+
// src/hooks/index.ts
|
|
32
|
+
var hooks_exports = {};
|
|
33
|
+
__export(hooks_exports, {
|
|
34
|
+
useAccountsOauthConnectionsList: () => useAccountsOauthConnectionsList,
|
|
35
|
+
useAccountsOauthProvidersRetrieve: () => useAccountsOauthProvidersRetrieve,
|
|
36
|
+
useAccountsProfileRetrieve: () => useAccountsProfileRetrieve,
|
|
37
|
+
useCreateAccountsOauthDisconnectCreate: () => useCreateAccountsOauthDisconnectCreate,
|
|
38
|
+
useCreateAccountsOauthGithubAuthorizeCreate: () => useCreateAccountsOauthGithubAuthorizeCreate,
|
|
39
|
+
useCreateAccountsOauthGithubCallbackCreate: () => useCreateAccountsOauthGithubCallbackCreate,
|
|
40
|
+
useCreateAccountsOtpRequestCreate: () => useCreateAccountsOtpRequestCreate,
|
|
41
|
+
useCreateAccountsOtpVerifyCreate: () => useCreateAccountsOtpVerifyCreate,
|
|
42
|
+
useCreateAccountsProfileAvatarCreate: () => useCreateAccountsProfileAvatarCreate,
|
|
43
|
+
useCreateAccountsTokenRefreshCreate: () => useCreateAccountsTokenRefreshCreate,
|
|
44
|
+
usePartialUpdateAccountsProfilePartialPartialUpdate: () => usePartialUpdateAccountsProfilePartialPartialUpdate,
|
|
45
|
+
usePartialUpdateAccountsProfilePartialUpdate: () => usePartialUpdateAccountsProfilePartialUpdate,
|
|
46
|
+
usePartialUpdateAccountsProfileUpdatePartialUpdate: () => usePartialUpdateAccountsProfileUpdatePartialUpdate,
|
|
47
|
+
useUpdateAccountsProfileUpdateUpdate: () => useUpdateAccountsProfileUpdateUpdate
|
|
48
|
+
});
|
|
49
|
+
module.exports = __toCommonJS(hooks_exports);
|
|
50
|
+
|
|
51
|
+
// src/generated/cfg_accounts/_utils/hooks/accounts__auth.ts
|
|
52
|
+
var import_swr = require("swr");
|
|
53
|
+
|
|
54
|
+
// src/generated/cfg_accounts/_utils/fetchers/accounts__auth.ts
|
|
55
|
+
var import_consola5 = require("consola");
|
|
56
|
+
|
|
57
|
+
// src/generated/cfg_accounts/_utils/schemas/TokenRefresh.schema.ts
|
|
58
|
+
var import_zod = require("zod");
|
|
59
|
+
var TokenRefreshSchema = import_zod.z.object({
|
|
60
|
+
access: import_zod.z.string(),
|
|
61
|
+
refresh: import_zod.z.string()
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
// src/generated/cfg_accounts/logger.ts
|
|
65
|
+
var import_consola = require("consola");
|
|
66
|
+
var DEFAULT_CONFIG = {
|
|
67
|
+
enabled: process.env.NODE_ENV !== "production",
|
|
68
|
+
logRequests: true,
|
|
69
|
+
logResponses: true,
|
|
70
|
+
logErrors: true,
|
|
71
|
+
logBodies: true,
|
|
72
|
+
logHeaders: false
|
|
73
|
+
};
|
|
74
|
+
var SENSITIVE_HEADERS = [
|
|
75
|
+
"authorization",
|
|
76
|
+
"cookie",
|
|
77
|
+
"set-cookie",
|
|
78
|
+
"x-api-key",
|
|
79
|
+
"x-csrf-token"
|
|
80
|
+
];
|
|
81
|
+
var APILogger = class {
|
|
82
|
+
static {
|
|
83
|
+
__name(this, "APILogger");
|
|
84
|
+
}
|
|
85
|
+
constructor(config = {}) {
|
|
86
|
+
this.config = { ...DEFAULT_CONFIG, ...config };
|
|
87
|
+
this.consola = config.consola || (0, import_consola.createConsola)({
|
|
88
|
+
level: this.config.enabled ? 4 : 0
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Enable logging
|
|
93
|
+
*/
|
|
94
|
+
enable() {
|
|
95
|
+
this.config.enabled = true;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Disable logging
|
|
99
|
+
*/
|
|
100
|
+
disable() {
|
|
101
|
+
this.config.enabled = false;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Update configuration
|
|
105
|
+
*/
|
|
106
|
+
setConfig(config) {
|
|
107
|
+
this.config = { ...this.config, ...config };
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Filter sensitive headers
|
|
111
|
+
*/
|
|
112
|
+
filterHeaders(headers) {
|
|
113
|
+
if (!headers) return {};
|
|
114
|
+
const filtered = {};
|
|
115
|
+
Object.keys(headers).forEach((key) => {
|
|
116
|
+
const lowerKey = key.toLowerCase();
|
|
117
|
+
if (SENSITIVE_HEADERS.includes(lowerKey)) {
|
|
118
|
+
filtered[key] = "***";
|
|
119
|
+
} else {
|
|
120
|
+
filtered[key] = headers[key] || "";
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
return filtered;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Log request
|
|
127
|
+
*/
|
|
128
|
+
logRequest(request) {
|
|
129
|
+
if (!this.config.enabled || !this.config.logRequests) return;
|
|
130
|
+
const { method, url, headers, body } = request;
|
|
131
|
+
this.consola.start(`${method} ${url}`);
|
|
132
|
+
if (this.config.logHeaders && headers) {
|
|
133
|
+
this.consola.debug("Headers:", this.filterHeaders(headers));
|
|
134
|
+
}
|
|
135
|
+
if (this.config.logBodies && body) {
|
|
136
|
+
this.consola.debug("Body:", body);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Log response
|
|
141
|
+
*/
|
|
142
|
+
logResponse(request, response) {
|
|
143
|
+
if (!this.config.enabled || !this.config.logResponses) return;
|
|
144
|
+
const { method, url } = request;
|
|
145
|
+
const { status, statusText, data, duration } = response;
|
|
146
|
+
const statusColor = status >= 500 ? "red" : status >= 400 ? "yellow" : status >= 300 ? "cyan" : "green";
|
|
147
|
+
this.consola.success(
|
|
148
|
+
`${method} ${url} ${status} ${statusText} (${duration}ms)`
|
|
149
|
+
);
|
|
150
|
+
if (this.config.logBodies && data) {
|
|
151
|
+
this.consola.debug("Response:", data);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Log error
|
|
156
|
+
*/
|
|
157
|
+
logError(request, error) {
|
|
158
|
+
if (!this.config.enabled || !this.config.logErrors) return;
|
|
159
|
+
const { method, url } = request;
|
|
160
|
+
const { message, statusCode, fieldErrors, duration } = error;
|
|
161
|
+
this.consola.error(
|
|
162
|
+
`${method} ${url} ${statusCode || "Network"} Error (${duration}ms)`
|
|
163
|
+
);
|
|
164
|
+
this.consola.error("Message:", message);
|
|
165
|
+
if (fieldErrors && Object.keys(fieldErrors).length > 0) {
|
|
166
|
+
this.consola.error("Field Errors:");
|
|
167
|
+
Object.entries(fieldErrors).forEach(([field, errors]) => {
|
|
168
|
+
errors.forEach((err) => {
|
|
169
|
+
this.consola.error(` \u2022 ${field}: ${err}`);
|
|
170
|
+
});
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Log general info
|
|
176
|
+
*/
|
|
177
|
+
info(message, ...args) {
|
|
178
|
+
if (!this.config.enabled) return;
|
|
179
|
+
this.consola.info(message, ...args);
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Log warning
|
|
183
|
+
*/
|
|
184
|
+
warn(message, ...args) {
|
|
185
|
+
if (!this.config.enabled) return;
|
|
186
|
+
this.consola.warn(message, ...args);
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Log error
|
|
190
|
+
*/
|
|
191
|
+
error(message, ...args) {
|
|
192
|
+
if (!this.config.enabled) return;
|
|
193
|
+
this.consola.error(message, ...args);
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Log debug
|
|
197
|
+
*/
|
|
198
|
+
debug(message, ...args) {
|
|
199
|
+
if (!this.config.enabled) return;
|
|
200
|
+
this.consola.debug(message, ...args);
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Log success
|
|
204
|
+
*/
|
|
205
|
+
success(message, ...args) {
|
|
206
|
+
if (!this.config.enabled) return;
|
|
207
|
+
this.consola.success(message, ...args);
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Create a sub-logger with prefix
|
|
211
|
+
*/
|
|
212
|
+
withTag(tag) {
|
|
213
|
+
return this.consola.withTag(tag);
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
var defaultLogger = new APILogger();
|
|
217
|
+
|
|
218
|
+
// src/generated/cfg_accounts/retry.ts
|
|
219
|
+
var import_p_retry = __toESM(require("p-retry"), 1);
|
|
220
|
+
|
|
221
|
+
// src/generated/cfg_accounts/enums.ts
|
|
222
|
+
var OAuthConnectionProvider = /* @__PURE__ */ ((OAuthConnectionProvider2) => {
|
|
223
|
+
OAuthConnectionProvider2["GITHUB"] = "github";
|
|
224
|
+
return OAuthConnectionProvider2;
|
|
225
|
+
})(OAuthConnectionProvider || {});
|
|
226
|
+
var OAuthDisconnectRequestRequestProvider = /* @__PURE__ */ ((OAuthDisconnectRequestRequestProvider2) => {
|
|
227
|
+
OAuthDisconnectRequestRequestProvider2["GITHUB"] = "github";
|
|
228
|
+
return OAuthDisconnectRequestRequestProvider2;
|
|
229
|
+
})(OAuthDisconnectRequestRequestProvider || {});
|
|
230
|
+
var OTPRequestRequestChannel = /* @__PURE__ */ ((OTPRequestRequestChannel2) => {
|
|
231
|
+
OTPRequestRequestChannel2["EMAIL"] = "email";
|
|
232
|
+
OTPRequestRequestChannel2["PHONE"] = "phone";
|
|
233
|
+
return OTPRequestRequestChannel2;
|
|
234
|
+
})(OTPRequestRequestChannel || {});
|
|
235
|
+
var OTPVerifyRequestChannel = /* @__PURE__ */ ((OTPVerifyRequestChannel2) => {
|
|
236
|
+
OTPVerifyRequestChannel2["EMAIL"] = "email";
|
|
237
|
+
OTPVerifyRequestChannel2["PHONE"] = "phone";
|
|
238
|
+
return OTPVerifyRequestChannel2;
|
|
239
|
+
})(OTPVerifyRequestChannel || {});
|
|
240
|
+
|
|
241
|
+
// src/generated/cfg_accounts/_utils/schemas/CentrifugoToken.schema.ts
|
|
242
|
+
var import_zod2 = require("zod");
|
|
243
|
+
var CentrifugoTokenSchema = import_zod2.z.object({
|
|
244
|
+
token: import_zod2.z.string(),
|
|
245
|
+
centrifugo_url: import_zod2.z.url(),
|
|
246
|
+
expires_at: import_zod2.z.iso.datetime(),
|
|
247
|
+
channels: import_zod2.z.array(import_zod2.z.string())
|
|
248
|
+
});
|
|
249
|
+
|
|
250
|
+
// src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeRequestRequest.schema.ts
|
|
251
|
+
var import_zod3 = require("zod");
|
|
252
|
+
var OAuthAuthorizeRequestRequestSchema = import_zod3.z.object({
|
|
253
|
+
redirect_uri: import_zod3.z.url().optional(),
|
|
254
|
+
source_url: import_zod3.z.url().optional()
|
|
255
|
+
});
|
|
256
|
+
|
|
257
|
+
// src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeResponse.schema.ts
|
|
258
|
+
var import_zod4 = require("zod");
|
|
259
|
+
var OAuthAuthorizeResponseSchema = import_zod4.z.object({
|
|
260
|
+
authorization_url: import_zod4.z.url(),
|
|
261
|
+
state: import_zod4.z.string()
|
|
262
|
+
});
|
|
263
|
+
|
|
264
|
+
// src/generated/cfg_accounts/_utils/schemas/OAuthCallbackRequestRequest.schema.ts
|
|
265
|
+
var import_zod5 = require("zod");
|
|
266
|
+
var OAuthCallbackRequestRequestSchema = import_zod5.z.object({
|
|
267
|
+
code: import_zod5.z.string().min(10).max(500),
|
|
268
|
+
state: import_zod5.z.string().min(20).max(100),
|
|
269
|
+
redirect_uri: import_zod5.z.url().optional()
|
|
270
|
+
});
|
|
271
|
+
|
|
272
|
+
// src/generated/cfg_accounts/_utils/schemas/OAuthConnection.schema.ts
|
|
273
|
+
var import_zod6 = require("zod");
|
|
274
|
+
var OAuthConnectionSchema = import_zod6.z.object({
|
|
275
|
+
id: import_zod6.z.int(),
|
|
276
|
+
provider: import_zod6.z.nativeEnum(OAuthConnectionProvider),
|
|
277
|
+
provider_display: import_zod6.z.string(),
|
|
278
|
+
provider_username: import_zod6.z.string(),
|
|
279
|
+
provider_email: import_zod6.z.email(),
|
|
280
|
+
provider_avatar_url: import_zod6.z.url(),
|
|
281
|
+
connected_at: import_zod6.z.iso.datetime(),
|
|
282
|
+
last_login_at: import_zod6.z.iso.datetime()
|
|
283
|
+
});
|
|
284
|
+
|
|
285
|
+
// src/generated/cfg_accounts/_utils/schemas/OAuthDisconnectRequestRequest.schema.ts
|
|
286
|
+
var import_zod7 = require("zod");
|
|
287
|
+
var OAuthDisconnectRequestRequestSchema = import_zod7.z.object({
|
|
288
|
+
provider: import_zod7.z.nativeEnum(OAuthDisconnectRequestRequestProvider)
|
|
289
|
+
});
|
|
290
|
+
|
|
291
|
+
// src/generated/cfg_accounts/_utils/schemas/OAuthError.schema.ts
|
|
292
|
+
var import_zod8 = require("zod");
|
|
293
|
+
var OAuthErrorSchema = import_zod8.z.object({
|
|
294
|
+
error: import_zod8.z.string(),
|
|
295
|
+
error_description: import_zod8.z.string().optional()
|
|
296
|
+
});
|
|
297
|
+
|
|
298
|
+
// src/generated/cfg_accounts/_utils/schemas/OAuthProvidersResponse.schema.ts
|
|
299
|
+
var import_zod9 = require("zod");
|
|
300
|
+
var OAuthProvidersResponseSchema = import_zod9.z.object({
|
|
301
|
+
providers: import_zod9.z.array(import_zod9.z.record(import_zod9.z.string(), import_zod9.z.record(import_zod9.z.string(), import_zod9.z.any())))
|
|
302
|
+
});
|
|
303
|
+
|
|
304
|
+
// src/generated/cfg_accounts/_utils/schemas/OAuthTokenResponse.schema.ts
|
|
305
|
+
var import_zod10 = require("zod");
|
|
306
|
+
var OAuthTokenResponseSchema = import_zod10.z.object({
|
|
307
|
+
access: import_zod10.z.string(),
|
|
308
|
+
refresh: import_zod10.z.string(),
|
|
309
|
+
user: import_zod10.z.record(import_zod10.z.string(), import_zod10.z.record(import_zod10.z.string(), import_zod10.z.any())),
|
|
310
|
+
is_new_user: import_zod10.z.boolean(),
|
|
311
|
+
is_new_connection: import_zod10.z.boolean()
|
|
312
|
+
});
|
|
313
|
+
|
|
314
|
+
// src/generated/cfg_accounts/_utils/schemas/OTPErrorResponse.schema.ts
|
|
315
|
+
var import_zod11 = require("zod");
|
|
316
|
+
var OTPErrorResponseSchema = import_zod11.z.object({
|
|
317
|
+
error: import_zod11.z.string()
|
|
318
|
+
});
|
|
319
|
+
|
|
320
|
+
// src/generated/cfg_accounts/_utils/schemas/OTPRequestRequest.schema.ts
|
|
321
|
+
var import_zod12 = require("zod");
|
|
322
|
+
var OTPRequestRequestSchema = import_zod12.z.object({
|
|
323
|
+
identifier: import_zod12.z.string().min(1),
|
|
324
|
+
channel: import_zod12.z.nativeEnum(OTPRequestRequestChannel).optional(),
|
|
325
|
+
source_url: import_zod12.z.url().optional()
|
|
326
|
+
});
|
|
327
|
+
|
|
328
|
+
// src/generated/cfg_accounts/_utils/schemas/OTPRequestResponse.schema.ts
|
|
329
|
+
var import_zod13 = require("zod");
|
|
330
|
+
var OTPRequestResponseSchema = import_zod13.z.object({
|
|
331
|
+
message: import_zod13.z.string()
|
|
332
|
+
});
|
|
333
|
+
|
|
334
|
+
// src/generated/cfg_accounts/_utils/schemas/OTPVerifyRequest.schema.ts
|
|
335
|
+
var import_zod14 = require("zod");
|
|
336
|
+
var OTPVerifyRequestSchema = import_zod14.z.object({
|
|
337
|
+
identifier: import_zod14.z.string().min(1),
|
|
338
|
+
otp: import_zod14.z.string().min(6).max(6),
|
|
339
|
+
channel: import_zod14.z.nativeEnum(OTPVerifyRequestChannel).optional(),
|
|
340
|
+
source_url: import_zod14.z.url().optional()
|
|
341
|
+
});
|
|
342
|
+
|
|
343
|
+
// src/generated/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts
|
|
344
|
+
var import_zod16 = require("zod");
|
|
345
|
+
|
|
346
|
+
// src/generated/cfg_accounts/_utils/schemas/User.schema.ts
|
|
347
|
+
var import_zod15 = require("zod");
|
|
348
|
+
var UserSchema = import_zod15.z.object({
|
|
349
|
+
id: import_zod15.z.int(),
|
|
350
|
+
email: import_zod15.z.email(),
|
|
351
|
+
first_name: import_zod15.z.string().max(50).optional(),
|
|
352
|
+
last_name: import_zod15.z.string().max(50).optional(),
|
|
353
|
+
full_name: import_zod15.z.string(),
|
|
354
|
+
initials: import_zod15.z.string(),
|
|
355
|
+
display_username: import_zod15.z.string(),
|
|
356
|
+
company: import_zod15.z.string().max(100).optional(),
|
|
357
|
+
phone: import_zod15.z.string().max(20).optional(),
|
|
358
|
+
position: import_zod15.z.string().max(100).optional(),
|
|
359
|
+
avatar: import_zod15.z.url().nullable(),
|
|
360
|
+
is_staff: import_zod15.z.boolean(),
|
|
361
|
+
is_superuser: import_zod15.z.boolean(),
|
|
362
|
+
date_joined: import_zod15.z.iso.datetime(),
|
|
363
|
+
last_login: import_zod15.z.iso.datetime().nullable(),
|
|
364
|
+
unanswered_messages_count: import_zod15.z.int(),
|
|
365
|
+
centrifugo: CentrifugoTokenSchema.nullable()
|
|
366
|
+
});
|
|
367
|
+
|
|
368
|
+
// src/generated/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts
|
|
369
|
+
var OTPVerifyResponseSchema = import_zod16.z.object({
|
|
370
|
+
refresh: import_zod16.z.string(),
|
|
371
|
+
access: import_zod16.z.string(),
|
|
372
|
+
user: UserSchema
|
|
373
|
+
});
|
|
374
|
+
|
|
375
|
+
// src/generated/cfg_accounts/_utils/schemas/PatchedUserProfileUpdateRequest.schema.ts
|
|
376
|
+
var import_zod17 = require("zod");
|
|
377
|
+
var PatchedUserProfileUpdateRequestSchema = import_zod17.z.object({
|
|
378
|
+
first_name: import_zod17.z.string().max(50).optional(),
|
|
379
|
+
last_name: import_zod17.z.string().max(50).optional(),
|
|
380
|
+
company: import_zod17.z.string().max(100).optional(),
|
|
381
|
+
phone: import_zod17.z.string().max(20).optional(),
|
|
382
|
+
position: import_zod17.z.string().max(100).optional()
|
|
383
|
+
});
|
|
384
|
+
|
|
385
|
+
// src/generated/cfg_accounts/_utils/schemas/TokenRefreshRequest.schema.ts
|
|
386
|
+
var import_zod18 = require("zod");
|
|
387
|
+
var TokenRefreshRequestSchema = import_zod18.z.object({
|
|
388
|
+
refresh: import_zod18.z.string().min(1)
|
|
389
|
+
});
|
|
390
|
+
|
|
391
|
+
// src/generated/cfg_accounts/_utils/schemas/UserProfileUpdateRequest.schema.ts
|
|
392
|
+
var import_zod19 = require("zod");
|
|
393
|
+
var UserProfileUpdateRequestSchema = import_zod19.z.object({
|
|
394
|
+
first_name: import_zod19.z.string().max(50).optional(),
|
|
395
|
+
last_name: import_zod19.z.string().max(50).optional(),
|
|
396
|
+
company: import_zod19.z.string().max(100).optional(),
|
|
397
|
+
phone: import_zod19.z.string().max(20).optional(),
|
|
398
|
+
position: import_zod19.z.string().max(100).optional()
|
|
399
|
+
});
|
|
400
|
+
|
|
401
|
+
// src/generated/cfg_accounts/_utils/fetchers/accounts.ts
|
|
402
|
+
var import_consola2 = require("consola");
|
|
403
|
+
async function createAccountsOtpRequestCreate(data, client) {
|
|
404
|
+
const api = client || getAPIInstance();
|
|
405
|
+
const response = await api.accounts.otpRequestCreate(data);
|
|
406
|
+
try {
|
|
407
|
+
return OTPRequestResponseSchema.parse(response);
|
|
408
|
+
} catch (error) {
|
|
409
|
+
import_consola2.consola.error("\u274C Zod Validation Failed");
|
|
410
|
+
import_consola2.consola.box(`createAccountsOtpRequestCreate
|
|
411
|
+
Path: /cfg/accounts/otp/request/
|
|
412
|
+
Method: POST`);
|
|
413
|
+
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
414
|
+
import_consola2.consola.error("Validation Issues:");
|
|
415
|
+
error.issues.forEach((issue, index) => {
|
|
416
|
+
import_consola2.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
417
|
+
import_consola2.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
418
|
+
if (issue.expected) import_consola2.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
419
|
+
if (issue.received) import_consola2.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
import_consola2.consola.error("Response data:", response);
|
|
423
|
+
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
424
|
+
try {
|
|
425
|
+
const event = new CustomEvent("zod-validation-error", {
|
|
426
|
+
detail: {
|
|
427
|
+
operation: "createAccountsOtpRequestCreate",
|
|
428
|
+
path: "/cfg/accounts/otp/request/",
|
|
429
|
+
method: "POST",
|
|
430
|
+
error,
|
|
431
|
+
response,
|
|
432
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
433
|
+
},
|
|
434
|
+
bubbles: true,
|
|
435
|
+
cancelable: false
|
|
436
|
+
});
|
|
437
|
+
window.dispatchEvent(event);
|
|
438
|
+
} catch (eventError) {
|
|
439
|
+
import_consola2.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
throw error;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
__name(createAccountsOtpRequestCreate, "createAccountsOtpRequestCreate");
|
|
446
|
+
async function createAccountsOtpVerifyCreate(data, client) {
|
|
447
|
+
const api = client || getAPIInstance();
|
|
448
|
+
const response = await api.accounts.otpVerifyCreate(data);
|
|
449
|
+
try {
|
|
450
|
+
return OTPVerifyResponseSchema.parse(response);
|
|
451
|
+
} catch (error) {
|
|
452
|
+
import_consola2.consola.error("\u274C Zod Validation Failed");
|
|
453
|
+
import_consola2.consola.box(`createAccountsOtpVerifyCreate
|
|
454
|
+
Path: /cfg/accounts/otp/verify/
|
|
455
|
+
Method: POST`);
|
|
456
|
+
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
457
|
+
import_consola2.consola.error("Validation Issues:");
|
|
458
|
+
error.issues.forEach((issue, index) => {
|
|
459
|
+
import_consola2.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
460
|
+
import_consola2.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
461
|
+
if (issue.expected) import_consola2.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
462
|
+
if (issue.received) import_consola2.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
import_consola2.consola.error("Response data:", response);
|
|
466
|
+
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
467
|
+
try {
|
|
468
|
+
const event = new CustomEvent("zod-validation-error", {
|
|
469
|
+
detail: {
|
|
470
|
+
operation: "createAccountsOtpVerifyCreate",
|
|
471
|
+
path: "/cfg/accounts/otp/verify/",
|
|
472
|
+
method: "POST",
|
|
473
|
+
error,
|
|
474
|
+
response,
|
|
475
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
476
|
+
},
|
|
477
|
+
bubbles: true,
|
|
478
|
+
cancelable: false
|
|
479
|
+
});
|
|
480
|
+
window.dispatchEvent(event);
|
|
481
|
+
} catch (eventError) {
|
|
482
|
+
import_consola2.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
throw error;
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
__name(createAccountsOtpVerifyCreate, "createAccountsOtpVerifyCreate");
|
|
489
|
+
|
|
490
|
+
// src/generated/cfg_accounts/_utils/fetchers/accounts__oauth.ts
|
|
491
|
+
var import_consola3 = require("consola");
|
|
492
|
+
async function getAccountsOauthConnectionsList(client) {
|
|
493
|
+
const api = client || getAPIInstance();
|
|
494
|
+
const response = await api.oauth.accountsOauthConnectionsList();
|
|
495
|
+
return response;
|
|
496
|
+
}
|
|
497
|
+
__name(getAccountsOauthConnectionsList, "getAccountsOauthConnectionsList");
|
|
498
|
+
async function createAccountsOauthDisconnectCreate(data, client) {
|
|
499
|
+
const api = client || getAPIInstance();
|
|
500
|
+
const response = await api.oauth.accountsOauthDisconnectCreate(data);
|
|
501
|
+
return response;
|
|
502
|
+
}
|
|
503
|
+
__name(createAccountsOauthDisconnectCreate, "createAccountsOauthDisconnectCreate");
|
|
504
|
+
async function createAccountsOauthGithubAuthorizeCreate(data, client) {
|
|
505
|
+
const api = client || getAPIInstance();
|
|
506
|
+
const response = await api.oauth.accountsOauthGithubAuthorizeCreate(data);
|
|
507
|
+
try {
|
|
508
|
+
return OAuthAuthorizeResponseSchema.parse(response);
|
|
509
|
+
} catch (error) {
|
|
510
|
+
import_consola3.consola.error("\u274C Zod Validation Failed");
|
|
511
|
+
import_consola3.consola.box(`createAccountsOauthGithubAuthorizeCreate
|
|
512
|
+
Path: /cfg/accounts/oauth/github/authorize/
|
|
513
|
+
Method: POST`);
|
|
514
|
+
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
515
|
+
import_consola3.consola.error("Validation Issues:");
|
|
516
|
+
error.issues.forEach((issue, index) => {
|
|
517
|
+
import_consola3.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
518
|
+
import_consola3.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
519
|
+
if (issue.expected) import_consola3.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
520
|
+
if (issue.received) import_consola3.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
521
|
+
});
|
|
522
|
+
}
|
|
523
|
+
import_consola3.consola.error("Response data:", response);
|
|
524
|
+
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
525
|
+
try {
|
|
526
|
+
const event = new CustomEvent("zod-validation-error", {
|
|
527
|
+
detail: {
|
|
528
|
+
operation: "createAccountsOauthGithubAuthorizeCreate",
|
|
529
|
+
path: "/cfg/accounts/oauth/github/authorize/",
|
|
530
|
+
method: "POST",
|
|
531
|
+
error,
|
|
532
|
+
response,
|
|
533
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
534
|
+
},
|
|
535
|
+
bubbles: true,
|
|
536
|
+
cancelable: false
|
|
537
|
+
});
|
|
538
|
+
window.dispatchEvent(event);
|
|
539
|
+
} catch (eventError) {
|
|
540
|
+
import_consola3.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
throw error;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
__name(createAccountsOauthGithubAuthorizeCreate, "createAccountsOauthGithubAuthorizeCreate");
|
|
547
|
+
async function createAccountsOauthGithubCallbackCreate(data, client) {
|
|
548
|
+
const api = client || getAPIInstance();
|
|
549
|
+
const response = await api.oauth.accountsOauthGithubCallbackCreate(data);
|
|
550
|
+
try {
|
|
551
|
+
return OAuthTokenResponseSchema.parse(response);
|
|
552
|
+
} catch (error) {
|
|
553
|
+
import_consola3.consola.error("\u274C Zod Validation Failed");
|
|
554
|
+
import_consola3.consola.box(`createAccountsOauthGithubCallbackCreate
|
|
555
|
+
Path: /cfg/accounts/oauth/github/callback/
|
|
556
|
+
Method: POST`);
|
|
557
|
+
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
558
|
+
import_consola3.consola.error("Validation Issues:");
|
|
559
|
+
error.issues.forEach((issue, index) => {
|
|
560
|
+
import_consola3.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
561
|
+
import_consola3.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
562
|
+
if (issue.expected) import_consola3.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
563
|
+
if (issue.received) import_consola3.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
564
|
+
});
|
|
565
|
+
}
|
|
566
|
+
import_consola3.consola.error("Response data:", response);
|
|
567
|
+
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
568
|
+
try {
|
|
569
|
+
const event = new CustomEvent("zod-validation-error", {
|
|
570
|
+
detail: {
|
|
571
|
+
operation: "createAccountsOauthGithubCallbackCreate",
|
|
572
|
+
path: "/cfg/accounts/oauth/github/callback/",
|
|
573
|
+
method: "POST",
|
|
574
|
+
error,
|
|
575
|
+
response,
|
|
576
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
577
|
+
},
|
|
578
|
+
bubbles: true,
|
|
579
|
+
cancelable: false
|
|
580
|
+
});
|
|
581
|
+
window.dispatchEvent(event);
|
|
582
|
+
} catch (eventError) {
|
|
583
|
+
import_consola3.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
throw error;
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
__name(createAccountsOauthGithubCallbackCreate, "createAccountsOauthGithubCallbackCreate");
|
|
590
|
+
async function getAccountsOauthProvidersRetrieve(client) {
|
|
591
|
+
const api = client || getAPIInstance();
|
|
592
|
+
const response = await api.oauth.accountsOauthProvidersRetrieve();
|
|
593
|
+
try {
|
|
594
|
+
return OAuthProvidersResponseSchema.parse(response);
|
|
595
|
+
} catch (error) {
|
|
596
|
+
import_consola3.consola.error("\u274C Zod Validation Failed");
|
|
597
|
+
import_consola3.consola.box(`getAccountsOauthProvidersRetrieve
|
|
598
|
+
Path: /cfg/accounts/oauth/providers/
|
|
599
|
+
Method: GET`);
|
|
600
|
+
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
601
|
+
import_consola3.consola.error("Validation Issues:");
|
|
602
|
+
error.issues.forEach((issue, index) => {
|
|
603
|
+
import_consola3.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
604
|
+
import_consola3.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
605
|
+
if (issue.expected) import_consola3.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
606
|
+
if (issue.received) import_consola3.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
import_consola3.consola.error("Response data:", response);
|
|
610
|
+
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
611
|
+
try {
|
|
612
|
+
const event = new CustomEvent("zod-validation-error", {
|
|
613
|
+
detail: {
|
|
614
|
+
operation: "getAccountsOauthProvidersRetrieve",
|
|
615
|
+
path: "/cfg/accounts/oauth/providers/",
|
|
616
|
+
method: "GET",
|
|
617
|
+
error,
|
|
618
|
+
response,
|
|
619
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
620
|
+
},
|
|
621
|
+
bubbles: true,
|
|
622
|
+
cancelable: false
|
|
623
|
+
});
|
|
624
|
+
window.dispatchEvent(event);
|
|
625
|
+
} catch (eventError) {
|
|
626
|
+
import_consola3.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
throw error;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
__name(getAccountsOauthProvidersRetrieve, "getAccountsOauthProvidersRetrieve");
|
|
633
|
+
|
|
634
|
+
// src/generated/cfg_accounts/_utils/fetchers/accounts__user_profile.ts
|
|
635
|
+
var import_consola4 = require("consola");
|
|
636
|
+
async function getAccountsProfileRetrieve(client) {
|
|
637
|
+
const api = client || getAPIInstance();
|
|
638
|
+
const response = await api.user_profile.accountsProfileRetrieve();
|
|
639
|
+
try {
|
|
640
|
+
return UserSchema.parse(response);
|
|
641
|
+
} catch (error) {
|
|
642
|
+
import_consola4.consola.error("\u274C Zod Validation Failed");
|
|
643
|
+
import_consola4.consola.box(`getAccountsProfileRetrieve
|
|
644
|
+
Path: /cfg/accounts/profile/
|
|
645
|
+
Method: GET`);
|
|
646
|
+
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
647
|
+
import_consola4.consola.error("Validation Issues:");
|
|
648
|
+
error.issues.forEach((issue, index) => {
|
|
649
|
+
import_consola4.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
650
|
+
import_consola4.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
651
|
+
if (issue.expected) import_consola4.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
652
|
+
if (issue.received) import_consola4.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
653
|
+
});
|
|
654
|
+
}
|
|
655
|
+
import_consola4.consola.error("Response data:", response);
|
|
656
|
+
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
657
|
+
try {
|
|
658
|
+
const event = new CustomEvent("zod-validation-error", {
|
|
659
|
+
detail: {
|
|
660
|
+
operation: "getAccountsProfileRetrieve",
|
|
661
|
+
path: "/cfg/accounts/profile/",
|
|
662
|
+
method: "GET",
|
|
663
|
+
error,
|
|
664
|
+
response,
|
|
665
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
666
|
+
},
|
|
667
|
+
bubbles: true,
|
|
668
|
+
cancelable: false
|
|
669
|
+
});
|
|
670
|
+
window.dispatchEvent(event);
|
|
671
|
+
} catch (eventError) {
|
|
672
|
+
import_consola4.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
throw error;
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
__name(getAccountsProfileRetrieve, "getAccountsProfileRetrieve");
|
|
679
|
+
async function createAccountsProfileAvatarCreate(data, client) {
|
|
680
|
+
const api = client || getAPIInstance();
|
|
681
|
+
const response = await api.user_profile.accountsProfileAvatarCreate(data);
|
|
682
|
+
try {
|
|
683
|
+
return UserSchema.parse(response);
|
|
684
|
+
} catch (error) {
|
|
685
|
+
import_consola4.consola.error("\u274C Zod Validation Failed");
|
|
686
|
+
import_consola4.consola.box(`createAccountsProfileAvatarCreate
|
|
687
|
+
Path: /cfg/accounts/profile/avatar/
|
|
688
|
+
Method: POST`);
|
|
689
|
+
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
690
|
+
import_consola4.consola.error("Validation Issues:");
|
|
691
|
+
error.issues.forEach((issue, index) => {
|
|
692
|
+
import_consola4.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
693
|
+
import_consola4.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
694
|
+
if (issue.expected) import_consola4.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
695
|
+
if (issue.received) import_consola4.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
696
|
+
});
|
|
697
|
+
}
|
|
698
|
+
import_consola4.consola.error("Response data:", response);
|
|
699
|
+
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
700
|
+
try {
|
|
701
|
+
const event = new CustomEvent("zod-validation-error", {
|
|
702
|
+
detail: {
|
|
703
|
+
operation: "createAccountsProfileAvatarCreate",
|
|
704
|
+
path: "/cfg/accounts/profile/avatar/",
|
|
705
|
+
method: "POST",
|
|
706
|
+
error,
|
|
707
|
+
response,
|
|
708
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
709
|
+
},
|
|
710
|
+
bubbles: true,
|
|
711
|
+
cancelable: false
|
|
712
|
+
});
|
|
713
|
+
window.dispatchEvent(event);
|
|
714
|
+
} catch (eventError) {
|
|
715
|
+
import_consola4.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
throw error;
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
__name(createAccountsProfileAvatarCreate, "createAccountsProfileAvatarCreate");
|
|
722
|
+
async function partialUpdateAccountsProfilePartialUpdate(data, client) {
|
|
723
|
+
const api = client || getAPIInstance();
|
|
724
|
+
const response = await api.user_profile.accountsProfilePartialUpdate(data);
|
|
725
|
+
try {
|
|
726
|
+
return UserSchema.parse(response);
|
|
727
|
+
} catch (error) {
|
|
728
|
+
import_consola4.consola.error("\u274C Zod Validation Failed");
|
|
729
|
+
import_consola4.consola.box(`partialUpdateAccountsProfilePartialUpdate
|
|
730
|
+
Path: /cfg/accounts/profile/partial/
|
|
731
|
+
Method: PUT`);
|
|
732
|
+
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
733
|
+
import_consola4.consola.error("Validation Issues:");
|
|
734
|
+
error.issues.forEach((issue, index) => {
|
|
735
|
+
import_consola4.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
736
|
+
import_consola4.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
737
|
+
if (issue.expected) import_consola4.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
738
|
+
if (issue.received) import_consola4.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
739
|
+
});
|
|
740
|
+
}
|
|
741
|
+
import_consola4.consola.error("Response data:", response);
|
|
742
|
+
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
743
|
+
try {
|
|
744
|
+
const event = new CustomEvent("zod-validation-error", {
|
|
745
|
+
detail: {
|
|
746
|
+
operation: "partialUpdateAccountsProfilePartialUpdate",
|
|
747
|
+
path: "/cfg/accounts/profile/partial/",
|
|
748
|
+
method: "PUT",
|
|
749
|
+
error,
|
|
750
|
+
response,
|
|
751
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
752
|
+
},
|
|
753
|
+
bubbles: true,
|
|
754
|
+
cancelable: false
|
|
755
|
+
});
|
|
756
|
+
window.dispatchEvent(event);
|
|
757
|
+
} catch (eventError) {
|
|
758
|
+
import_consola4.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
throw error;
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
__name(partialUpdateAccountsProfilePartialUpdate, "partialUpdateAccountsProfilePartialUpdate");
|
|
765
|
+
async function partialUpdateAccountsProfilePartialPartialUpdate(data, client) {
|
|
766
|
+
const api = client || getAPIInstance();
|
|
767
|
+
const response = await api.user_profile.accountsProfilePartialPartialUpdate(data);
|
|
768
|
+
try {
|
|
769
|
+
return UserSchema.parse(response);
|
|
770
|
+
} catch (error) {
|
|
771
|
+
import_consola4.consola.error("\u274C Zod Validation Failed");
|
|
772
|
+
import_consola4.consola.box(`partialUpdateAccountsProfilePartialPartialUpdate
|
|
773
|
+
Path: /cfg/accounts/profile/partial/
|
|
774
|
+
Method: PATCH`);
|
|
775
|
+
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
776
|
+
import_consola4.consola.error("Validation Issues:");
|
|
777
|
+
error.issues.forEach((issue, index) => {
|
|
778
|
+
import_consola4.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
779
|
+
import_consola4.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
780
|
+
if (issue.expected) import_consola4.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
781
|
+
if (issue.received) import_consola4.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
import_consola4.consola.error("Response data:", response);
|
|
785
|
+
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
786
|
+
try {
|
|
787
|
+
const event = new CustomEvent("zod-validation-error", {
|
|
788
|
+
detail: {
|
|
789
|
+
operation: "partialUpdateAccountsProfilePartialPartialUpdate",
|
|
790
|
+
path: "/cfg/accounts/profile/partial/",
|
|
791
|
+
method: "PATCH",
|
|
792
|
+
error,
|
|
793
|
+
response,
|
|
794
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
795
|
+
},
|
|
796
|
+
bubbles: true,
|
|
797
|
+
cancelable: false
|
|
798
|
+
});
|
|
799
|
+
window.dispatchEvent(event);
|
|
800
|
+
} catch (eventError) {
|
|
801
|
+
import_consola4.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
throw error;
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
__name(partialUpdateAccountsProfilePartialPartialUpdate, "partialUpdateAccountsProfilePartialPartialUpdate");
|
|
808
|
+
async function updateAccountsProfileUpdateUpdate(data, client) {
|
|
809
|
+
const api = client || getAPIInstance();
|
|
810
|
+
const response = await api.user_profile.accountsProfileUpdateUpdate(data);
|
|
811
|
+
try {
|
|
812
|
+
return UserSchema.parse(response);
|
|
813
|
+
} catch (error) {
|
|
814
|
+
import_consola4.consola.error("\u274C Zod Validation Failed");
|
|
815
|
+
import_consola4.consola.box(`updateAccountsProfileUpdateUpdate
|
|
816
|
+
Path: /cfg/accounts/profile/update/
|
|
817
|
+
Method: PUT`);
|
|
818
|
+
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
819
|
+
import_consola4.consola.error("Validation Issues:");
|
|
820
|
+
error.issues.forEach((issue, index) => {
|
|
821
|
+
import_consola4.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
822
|
+
import_consola4.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
823
|
+
if (issue.expected) import_consola4.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
824
|
+
if (issue.received) import_consola4.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
825
|
+
});
|
|
826
|
+
}
|
|
827
|
+
import_consola4.consola.error("Response data:", response);
|
|
828
|
+
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
829
|
+
try {
|
|
830
|
+
const event = new CustomEvent("zod-validation-error", {
|
|
831
|
+
detail: {
|
|
832
|
+
operation: "updateAccountsProfileUpdateUpdate",
|
|
833
|
+
path: "/cfg/accounts/profile/update/",
|
|
834
|
+
method: "PUT",
|
|
835
|
+
error,
|
|
836
|
+
response,
|
|
837
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
838
|
+
},
|
|
839
|
+
bubbles: true,
|
|
840
|
+
cancelable: false
|
|
841
|
+
});
|
|
842
|
+
window.dispatchEvent(event);
|
|
843
|
+
} catch (eventError) {
|
|
844
|
+
import_consola4.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
throw error;
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
__name(updateAccountsProfileUpdateUpdate, "updateAccountsProfileUpdateUpdate");
|
|
851
|
+
async function partialUpdateAccountsProfileUpdatePartialUpdate(data, client) {
|
|
852
|
+
const api = client || getAPIInstance();
|
|
853
|
+
const response = await api.user_profile.accountsProfileUpdatePartialUpdate(data);
|
|
854
|
+
try {
|
|
855
|
+
return UserSchema.parse(response);
|
|
856
|
+
} catch (error) {
|
|
857
|
+
import_consola4.consola.error("\u274C Zod Validation Failed");
|
|
858
|
+
import_consola4.consola.box(`partialUpdateAccountsProfileUpdatePartialUpdate
|
|
859
|
+
Path: /cfg/accounts/profile/update/
|
|
860
|
+
Method: PATCH`);
|
|
861
|
+
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
862
|
+
import_consola4.consola.error("Validation Issues:");
|
|
863
|
+
error.issues.forEach((issue, index) => {
|
|
864
|
+
import_consola4.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
865
|
+
import_consola4.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
866
|
+
if (issue.expected) import_consola4.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
867
|
+
if (issue.received) import_consola4.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
868
|
+
});
|
|
869
|
+
}
|
|
870
|
+
import_consola4.consola.error("Response data:", response);
|
|
871
|
+
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
872
|
+
try {
|
|
873
|
+
const event = new CustomEvent("zod-validation-error", {
|
|
874
|
+
detail: {
|
|
875
|
+
operation: "partialUpdateAccountsProfileUpdatePartialUpdate",
|
|
876
|
+
path: "/cfg/accounts/profile/update/",
|
|
877
|
+
method: "PATCH",
|
|
878
|
+
error,
|
|
879
|
+
response,
|
|
880
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
881
|
+
},
|
|
882
|
+
bubbles: true,
|
|
883
|
+
cancelable: false
|
|
884
|
+
});
|
|
885
|
+
window.dispatchEvent(event);
|
|
886
|
+
} catch (eventError) {
|
|
887
|
+
import_consola4.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
throw error;
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
__name(partialUpdateAccountsProfileUpdatePartialUpdate, "partialUpdateAccountsProfileUpdatePartialUpdate");
|
|
894
|
+
|
|
895
|
+
// src/generated/cfg_accounts/api-instance.ts
|
|
896
|
+
var globalAPI = null;
|
|
897
|
+
function getAPIInstance() {
|
|
898
|
+
if (!globalAPI) {
|
|
899
|
+
throw new Error(
|
|
900
|
+
'API not configured. Call configureAPI() with your base URL before using fetchers or hooks.\n\nExample:\n import { configureAPI } from "./api-instance"\n configureAPI({ baseUrl: "https://api.example.com" })'
|
|
901
|
+
);
|
|
902
|
+
}
|
|
903
|
+
return globalAPI;
|
|
904
|
+
}
|
|
905
|
+
__name(getAPIInstance, "getAPIInstance");
|
|
906
|
+
|
|
907
|
+
// src/generated/cfg_accounts/_utils/fetchers/accounts__auth.ts
|
|
908
|
+
async function createAccountsTokenRefreshCreate(data, client) {
|
|
909
|
+
const api = client || getAPIInstance();
|
|
910
|
+
const response = await api.auth.accountsTokenRefreshCreate(data);
|
|
911
|
+
try {
|
|
912
|
+
return TokenRefreshSchema.parse(response);
|
|
913
|
+
} catch (error) {
|
|
914
|
+
import_consola5.consola.error("\u274C Zod Validation Failed");
|
|
915
|
+
import_consola5.consola.box(`createAccountsTokenRefreshCreate
|
|
916
|
+
Path: /cfg/accounts/token/refresh/
|
|
917
|
+
Method: POST`);
|
|
918
|
+
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
919
|
+
import_consola5.consola.error("Validation Issues:");
|
|
920
|
+
error.issues.forEach((issue, index) => {
|
|
921
|
+
import_consola5.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
922
|
+
import_consola5.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
923
|
+
if (issue.expected) import_consola5.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
924
|
+
if (issue.received) import_consola5.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
925
|
+
});
|
|
926
|
+
}
|
|
927
|
+
import_consola5.consola.error("Response data:", response);
|
|
928
|
+
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
929
|
+
try {
|
|
930
|
+
const event = new CustomEvent("zod-validation-error", {
|
|
931
|
+
detail: {
|
|
932
|
+
operation: "createAccountsTokenRefreshCreate",
|
|
933
|
+
path: "/cfg/accounts/token/refresh/",
|
|
934
|
+
method: "POST",
|
|
935
|
+
error,
|
|
936
|
+
response,
|
|
937
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
938
|
+
},
|
|
939
|
+
bubbles: true,
|
|
940
|
+
cancelable: false
|
|
941
|
+
});
|
|
942
|
+
window.dispatchEvent(event);
|
|
943
|
+
} catch (eventError) {
|
|
944
|
+
import_consola5.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
throw error;
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
__name(createAccountsTokenRefreshCreate, "createAccountsTokenRefreshCreate");
|
|
951
|
+
|
|
952
|
+
// src/generated/cfg_accounts/_utils/hooks/accounts__auth.ts
|
|
953
|
+
function useCreateAccountsTokenRefreshCreate() {
|
|
954
|
+
const { mutate } = (0, import_swr.useSWRConfig)();
|
|
955
|
+
return async (data, client) => {
|
|
956
|
+
const result = await createAccountsTokenRefreshCreate(data, client);
|
|
957
|
+
mutate("cfg-accounts-token-refresh");
|
|
958
|
+
return result;
|
|
959
|
+
};
|
|
960
|
+
}
|
|
961
|
+
__name(useCreateAccountsTokenRefreshCreate, "useCreateAccountsTokenRefreshCreate");
|
|
962
|
+
|
|
963
|
+
// src/generated/cfg_accounts/_utils/hooks/accounts__oauth.ts
|
|
964
|
+
var import_swr2 = __toESM(require("swr"), 1);
|
|
965
|
+
var import_swr3 = require("swr");
|
|
966
|
+
function useAccountsOauthConnectionsList(client) {
|
|
967
|
+
return (0, import_swr2.default)(
|
|
968
|
+
"cfg-accounts-oauth-connections",
|
|
969
|
+
() => getAccountsOauthConnectionsList(client)
|
|
970
|
+
);
|
|
971
|
+
}
|
|
972
|
+
__name(useAccountsOauthConnectionsList, "useAccountsOauthConnectionsList");
|
|
973
|
+
function useCreateAccountsOauthDisconnectCreate() {
|
|
974
|
+
const { mutate } = (0, import_swr3.useSWRConfig)();
|
|
975
|
+
return async (data, client) => {
|
|
976
|
+
const result = await createAccountsOauthDisconnectCreate(data, client);
|
|
977
|
+
mutate("cfg-accounts-oauth-disconnect");
|
|
978
|
+
return result;
|
|
979
|
+
};
|
|
980
|
+
}
|
|
981
|
+
__name(useCreateAccountsOauthDisconnectCreate, "useCreateAccountsOauthDisconnectCreate");
|
|
982
|
+
function useCreateAccountsOauthGithubAuthorizeCreate() {
|
|
983
|
+
const { mutate } = (0, import_swr3.useSWRConfig)();
|
|
984
|
+
return async (data, client) => {
|
|
985
|
+
const result = await createAccountsOauthGithubAuthorizeCreate(data, client);
|
|
986
|
+
mutate("cfg-accounts-oauth-github-authorize");
|
|
987
|
+
return result;
|
|
988
|
+
};
|
|
989
|
+
}
|
|
990
|
+
__name(useCreateAccountsOauthGithubAuthorizeCreate, "useCreateAccountsOauthGithubAuthorizeCreate");
|
|
991
|
+
function useCreateAccountsOauthGithubCallbackCreate() {
|
|
992
|
+
const { mutate } = (0, import_swr3.useSWRConfig)();
|
|
993
|
+
return async (data, client) => {
|
|
994
|
+
const result = await createAccountsOauthGithubCallbackCreate(data, client);
|
|
995
|
+
mutate("cfg-accounts-oauth-github-callback");
|
|
996
|
+
return result;
|
|
997
|
+
};
|
|
998
|
+
}
|
|
999
|
+
__name(useCreateAccountsOauthGithubCallbackCreate, "useCreateAccountsOauthGithubCallbackCreate");
|
|
1000
|
+
function useAccountsOauthProvidersRetrieve(client) {
|
|
1001
|
+
return (0, import_swr2.default)(
|
|
1002
|
+
"cfg-accounts-oauth-provider",
|
|
1003
|
+
() => getAccountsOauthProvidersRetrieve(client)
|
|
1004
|
+
);
|
|
1005
|
+
}
|
|
1006
|
+
__name(useAccountsOauthProvidersRetrieve, "useAccountsOauthProvidersRetrieve");
|
|
1007
|
+
|
|
1008
|
+
// src/generated/cfg_accounts/_utils/hooks/accounts__user_profile.ts
|
|
1009
|
+
var import_swr4 = __toESM(require("swr"), 1);
|
|
1010
|
+
var import_swr5 = require("swr");
|
|
1011
|
+
function useAccountsProfileRetrieve(client) {
|
|
1012
|
+
return (0, import_swr4.default)(
|
|
1013
|
+
"cfg-accounts-profile",
|
|
1014
|
+
() => getAccountsProfileRetrieve(client)
|
|
1015
|
+
);
|
|
1016
|
+
}
|
|
1017
|
+
__name(useAccountsProfileRetrieve, "useAccountsProfileRetrieve");
|
|
1018
|
+
function useCreateAccountsProfileAvatarCreate() {
|
|
1019
|
+
const { mutate } = (0, import_swr5.useSWRConfig)();
|
|
1020
|
+
return async (data, client) => {
|
|
1021
|
+
const result = await createAccountsProfileAvatarCreate(data, client);
|
|
1022
|
+
mutate("cfg-accounts-profile-avatar");
|
|
1023
|
+
return result;
|
|
1024
|
+
};
|
|
1025
|
+
}
|
|
1026
|
+
__name(useCreateAccountsProfileAvatarCreate, "useCreateAccountsProfileAvatarCreate");
|
|
1027
|
+
function usePartialUpdateAccountsProfilePartialUpdate() {
|
|
1028
|
+
const { mutate } = (0, import_swr5.useSWRConfig)();
|
|
1029
|
+
return async (data, client) => {
|
|
1030
|
+
const result = await partialUpdateAccountsProfilePartialUpdate(data, client);
|
|
1031
|
+
mutate("cfg-accounts-profile-partial");
|
|
1032
|
+
return result;
|
|
1033
|
+
};
|
|
1034
|
+
}
|
|
1035
|
+
__name(usePartialUpdateAccountsProfilePartialUpdate, "usePartialUpdateAccountsProfilePartialUpdate");
|
|
1036
|
+
function usePartialUpdateAccountsProfilePartialPartialUpdate() {
|
|
1037
|
+
const { mutate } = (0, import_swr5.useSWRConfig)();
|
|
1038
|
+
return async (data, client) => {
|
|
1039
|
+
const result = await partialUpdateAccountsProfilePartialPartialUpdate(data, client);
|
|
1040
|
+
mutate("cfg-accounts-profile-partial-partial");
|
|
1041
|
+
return result;
|
|
1042
|
+
};
|
|
1043
|
+
}
|
|
1044
|
+
__name(usePartialUpdateAccountsProfilePartialPartialUpdate, "usePartialUpdateAccountsProfilePartialPartialUpdate");
|
|
1045
|
+
function useUpdateAccountsProfileUpdateUpdate() {
|
|
1046
|
+
const { mutate } = (0, import_swr5.useSWRConfig)();
|
|
1047
|
+
return async (data, client) => {
|
|
1048
|
+
const result = await updateAccountsProfileUpdateUpdate(data, client);
|
|
1049
|
+
mutate("cfg-accounts-profile");
|
|
1050
|
+
return result;
|
|
1051
|
+
};
|
|
1052
|
+
}
|
|
1053
|
+
__name(useUpdateAccountsProfileUpdateUpdate, "useUpdateAccountsProfileUpdateUpdate");
|
|
1054
|
+
function usePartialUpdateAccountsProfileUpdatePartialUpdate() {
|
|
1055
|
+
const { mutate } = (0, import_swr5.useSWRConfig)();
|
|
1056
|
+
return async (data, client) => {
|
|
1057
|
+
const result = await partialUpdateAccountsProfileUpdatePartialUpdate(data, client);
|
|
1058
|
+
mutate("cfg-accounts-profile-partial");
|
|
1059
|
+
return result;
|
|
1060
|
+
};
|
|
1061
|
+
}
|
|
1062
|
+
__name(usePartialUpdateAccountsProfileUpdatePartialUpdate, "usePartialUpdateAccountsProfileUpdatePartialUpdate");
|
|
1063
|
+
|
|
1064
|
+
// src/generated/cfg_accounts/_utils/hooks/accounts.ts
|
|
1065
|
+
var import_swr6 = require("swr");
|
|
1066
|
+
function useCreateAccountsOtpRequestCreate() {
|
|
1067
|
+
const { mutate } = (0, import_swr6.useSWRConfig)();
|
|
1068
|
+
return async (data, client) => {
|
|
1069
|
+
const result = await createAccountsOtpRequestCreate(data, client);
|
|
1070
|
+
mutate("cfg-accounts-otp-request");
|
|
1071
|
+
return result;
|
|
1072
|
+
};
|
|
1073
|
+
}
|
|
1074
|
+
__name(useCreateAccountsOtpRequestCreate, "useCreateAccountsOtpRequestCreate");
|
|
1075
|
+
function useCreateAccountsOtpVerifyCreate() {
|
|
1076
|
+
const { mutate } = (0, import_swr6.useSWRConfig)();
|
|
1077
|
+
return async (data, client) => {
|
|
1078
|
+
const result = await createAccountsOtpVerifyCreate(data, client);
|
|
1079
|
+
mutate("cfg-accounts-otp-verify");
|
|
1080
|
+
return result;
|
|
1081
|
+
};
|
|
1082
|
+
}
|
|
1083
|
+
__name(useCreateAccountsOtpVerifyCreate, "useCreateAccountsOtpVerifyCreate");
|
|
1
1084
|
//# sourceMappingURL=hooks.cjs.map
|