@djangocfg/api 2.1.213 → 2.1.216
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth-server.cjs +101 -99
- package/dist/auth-server.cjs.map +1 -1
- package/dist/auth-server.mjs +101 -99
- package/dist/auth-server.mjs.map +1 -1
- package/dist/auth.cjs +164 -158
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.mjs +164 -158
- package/dist/auth.mjs.map +1 -1
- package/dist/clients.cjs +176 -170
- package/dist/clients.cjs.map +1 -1
- package/dist/clients.d.cts +248 -242
- package/dist/clients.d.ts +248 -242
- package/dist/clients.mjs +176 -170
- package/dist/clients.mjs.map +1 -1
- package/dist/hooks.cjs +59 -57
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.d.cts +56 -54
- package/dist/hooks.d.ts +56 -54
- package/dist/hooks.mjs +59 -57
- package/dist/hooks.mjs.map +1 -1
- package/dist/index.cjs +140 -120
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +110 -68
- package/dist/index.d.ts +110 -68
- package/dist/index.mjs +140 -120
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/.claude/.sidecar/activity.jsonl +4 -0
- package/src/.claude/.sidecar/history/2026-03-13.md +28 -0
- package/src/.claude/.sidecar/map_cache.json +50 -0
- package/src/.claude/.sidecar/review.md +28 -0
- package/src/.claude/.sidecar/scan.log +3 -0
- package/src/.claude/.sidecar/tasks/T-001.md +18 -0
- package/src/.claude/.sidecar/tasks/T-002.md +18 -0
- package/src/.claude/.sidecar/tasks/T-003.md +18 -0
- package/src/.claude/.sidecar/tasks/T-004.md +18 -0
- package/src/.claude/.sidecar/usage.json +5 -0
- package/src/.claude/project-map.md +34 -0
- package/src/_api/BaseClient.ts +22 -0
- package/src/{generated → _api/generated}/cfg_accounts/_utils/hooks/accounts__user_profile.ts +3 -3
- package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/CentrifugoToken.schema.ts +1 -1
- package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OAuthAuthorizeRequestRequest.schema.ts +2 -2
- package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OAuthAuthorizeResponse.schema.ts +1 -1
- package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OAuthCallbackRequestRequest.schema.ts +1 -1
- package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OAuthConnection.schema.ts +1 -1
- package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OTPRequestRequest.schema.ts +1 -1
- package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OTPVerifyRequest.schema.ts +1 -1
- package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/User.schema.ts +1 -1
- package/src/{generated → _api/generated}/cfg_accounts/accounts__oauth/models.ts +49 -25
- package/src/{generated → _api/generated}/cfg_accounts/http.ts +26 -0
- package/src/{generated → _api/generated}/cfg_accounts/index.ts +5 -1
- package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_monitoring/client.ts +4 -4
- package/src/{generated/cfg_totp → _api/generated/cfg_centrifugo}/http.ts +26 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/index.ts +5 -1
- package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/TotpVerifyUser.schema.ts +1 -1
- package/src/{generated/cfg_centrifugo → _api/generated/cfg_totp}/http.ts +26 -0
- package/src/{generated → _api/generated}/cfg_totp/index.ts +5 -1
- package/src/_api/index.ts +23 -0
- package/src/auth/context/AccountsContext.tsx +3 -3
- package/src/clients.ts +16 -16
- package/src/hooks/accounts.ts +1 -1
- package/src/index.ts +6 -6
- package/src/server.ts +5 -5
- package/src/{generated → _api/generated}/cfg_accounts/CLAUDE.md +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/_utils/fetchers/accounts.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/_utils/fetchers/accounts__auth.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/_utils/fetchers/accounts__oauth.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/_utils/fetchers/accounts__user_profile.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/_utils/fetchers/index.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/_utils/hooks/accounts.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/_utils/hooks/accounts__auth.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/_utils/hooks/accounts__oauth.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/_utils/hooks/index.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/AccountDeleteResponse.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/CfgAccountsProfileAvatarCreateRequest.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OAuthDisconnectRequestRequest.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OAuthError.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OAuthProvidersResponse.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OAuthTokenResponse.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OTPErrorResponse.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OTPRequestResponse.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/PatchedUserProfileUpdateRequest.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/TokenRefresh.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/TokenRefreshRequest.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/UserProfileUpdateRequest.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/_utils/schemas/index.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/accounts/client.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/accounts/index.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/accounts/models.ts +20 -20
- package/src/{generated → _api/generated}/cfg_accounts/accounts__auth/client.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/accounts__auth/index.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/accounts__auth/models.ts +5 -5
- package/src/{generated → _api/generated}/cfg_accounts/accounts__oauth/client.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/accounts__oauth/index.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/accounts__user_profile/client.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/accounts__user_profile/index.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/accounts__user_profile/models.ts +12 -12
- package/src/{generated → _api/generated}/cfg_accounts/api-instance.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/client.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/enums.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/errors.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/logger.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/retry.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/schema.json +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/storage.ts +0 -0
- package/src/{generated → _api/generated}/cfg_accounts/validation-events.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/CLAUDE.md +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_admin_api.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_auth.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_monitoring.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_testing.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/fetchers/index.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_admin_api.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_auth.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_monitoring.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_testing.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/hooks/index.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoChannelInfo.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoChannelsRequestRequest.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResult.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoClientInfo.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoError.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoHealthCheck.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoMetrics.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoOverviewStats.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoPresenceRequestRequest.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResult.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsRequestRequest.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResult.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoProcess.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoPublication.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/CentrifugoStreamPosition.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/ChannelStats.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/ConnectionTokenResponse.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/ManualAckRequestRequest.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/ManualAckResponse.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/Publish.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/PublishTestRequestRequest.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/PublishTestResponse.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/TimelineItem.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/TimelineResponse.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/_utils/schemas/index.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/api-instance.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_admin_api/client.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_admin_api/index.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_admin_api/models.ts +74 -74
- package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_auth/client.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_auth/index.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_auth/models.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_monitoring/index.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_monitoring/models.ts +61 -61
- package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_testing/client.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_testing/index.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/centrifugo__centrifugo_testing/models.ts +25 -25
- package/src/{generated → _api/generated}/cfg_centrifugo/client.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/errors.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/logger.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/retry.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/schema.json +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/storage.ts +0 -0
- package/src/{generated → _api/generated}/cfg_centrifugo/validation-events.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/CLAUDE.md +0 -0
- package/src/{generated → _api/generated}/cfg_totp/_utils/fetchers/index.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/_utils/fetchers/totp.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/_utils/fetchers/totp__backup_codes.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/_utils/fetchers/totp__totp_management.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/_utils/fetchers/totp__totp_setup.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/_utils/fetchers/totp__totp_verification.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/_utils/hooks/index.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/_utils/hooks/totp.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/_utils/hooks/totp__backup_codes.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/_utils/hooks/totp__totp_management.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/_utils/hooks/totp__totp_setup.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/_utils/hooks/totp__totp_verification.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/BackupCodesRegenerateRequest.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/BackupCodesRegenerateResponse.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/BackupCodesStatus.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/ConfirmSetupRequest.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/ConfirmSetupResponse.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/DeviceList.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/DeviceListResponse.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/DisableRequest.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/PaginatedDeviceListResponseList.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/SetupRequest.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/SetupResponse.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/VerifyBackupRequest.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/VerifyRequest.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/VerifyResponse.schema.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/_utils/schemas/index.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/api-instance.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/client.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/enums.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/errors.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/logger.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/retry.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/schema.json +0 -0
- package/src/{generated → _api/generated}/cfg_totp/storage.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/totp/client.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/totp/index.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/totp/models.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/totp__backup_codes/client.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/totp__backup_codes/index.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/totp__backup_codes/models.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/totp__totp_management/client.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/totp__totp_management/index.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/totp__totp_management/models.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/totp__totp_setup/client.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/totp__totp_setup/index.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/totp__totp_setup/models.ts +23 -23
- package/src/{generated → _api/generated}/cfg_totp/totp__totp_verification/client.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/totp__totp_verification/index.ts +0 -0
- package/src/{generated → _api/generated}/cfg_totp/totp__totp_verification/models.ts +12 -12
- /package/src/{generated → _api/generated}/cfg_totp/validation-events.ts +0 -0
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __export = (target, all) => {
|
|
|
5
5
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
6
6
|
};
|
|
7
7
|
|
|
8
|
-
// src/generated/cfg_accounts/index.ts
|
|
8
|
+
// src/_api/generated/cfg_accounts/index.ts
|
|
9
9
|
var cfg_accounts_exports = {};
|
|
10
10
|
__export(cfg_accounts_exports, {
|
|
11
11
|
API: () => API,
|
|
@@ -22,6 +22,7 @@ __export(cfg_accounts_exports, {
|
|
|
22
22
|
Enums: () => enums_exports,
|
|
23
23
|
FetchAdapter: () => FetchAdapter,
|
|
24
24
|
Fetchers: () => fetchers_exports,
|
|
25
|
+
KeepAliveFetchAdapter: () => KeepAliveFetchAdapter,
|
|
25
26
|
LocalStorageAdapter: () => LocalStorageAdapter,
|
|
26
27
|
MemoryStorageAdapter: () => MemoryStorageAdapter,
|
|
27
28
|
NetworkError: () => NetworkError,
|
|
@@ -77,7 +78,7 @@ __export(cfg_accounts_exports, {
|
|
|
77
78
|
withRetry: () => withRetry
|
|
78
79
|
});
|
|
79
80
|
|
|
80
|
-
// src/generated/cfg_accounts/accounts__auth/client.ts
|
|
81
|
+
// src/_api/generated/cfg_accounts/accounts__auth/client.ts
|
|
81
82
|
var Auth = class {
|
|
82
83
|
static {
|
|
83
84
|
__name(this, "Auth");
|
|
@@ -94,10 +95,10 @@ var Auth = class {
|
|
|
94
95
|
}
|
|
95
96
|
};
|
|
96
97
|
|
|
97
|
-
// src/generated/cfg_accounts/accounts__auth/models.ts
|
|
98
|
+
// src/_api/generated/cfg_accounts/accounts__auth/models.ts
|
|
98
99
|
var models_exports = {};
|
|
99
100
|
|
|
100
|
-
// src/generated/cfg_accounts/accounts__oauth/client.ts
|
|
101
|
+
// src/_api/generated/cfg_accounts/accounts__oauth/client.ts
|
|
101
102
|
var Oauth = class {
|
|
102
103
|
static {
|
|
103
104
|
__name(this, "Oauth");
|
|
@@ -154,10 +155,10 @@ var Oauth = class {
|
|
|
154
155
|
}
|
|
155
156
|
};
|
|
156
157
|
|
|
157
|
-
// src/generated/cfg_accounts/accounts__oauth/models.ts
|
|
158
|
+
// src/_api/generated/cfg_accounts/accounts__oauth/models.ts
|
|
158
159
|
var models_exports2 = {};
|
|
159
160
|
|
|
160
|
-
// src/generated/cfg_accounts/accounts__user_profile/client.ts
|
|
161
|
+
// src/_api/generated/cfg_accounts/accounts__user_profile/client.ts
|
|
161
162
|
var UserProfile = class {
|
|
162
163
|
static {
|
|
163
164
|
__name(this, "UserProfile");
|
|
@@ -239,10 +240,10 @@ var UserProfile = class {
|
|
|
239
240
|
}
|
|
240
241
|
};
|
|
241
242
|
|
|
242
|
-
// src/generated/cfg_accounts/accounts__user_profile/models.ts
|
|
243
|
+
// src/_api/generated/cfg_accounts/accounts__user_profile/models.ts
|
|
243
244
|
var models_exports3 = {};
|
|
244
245
|
|
|
245
|
-
// src/generated/cfg_accounts/accounts/client.ts
|
|
246
|
+
// src/_api/generated/cfg_accounts/accounts/client.ts
|
|
246
247
|
var Accounts = class {
|
|
247
248
|
static {
|
|
248
249
|
__name(this, "Accounts");
|
|
@@ -269,10 +270,10 @@ var Accounts = class {
|
|
|
269
270
|
}
|
|
270
271
|
};
|
|
271
272
|
|
|
272
|
-
// src/generated/cfg_accounts/accounts/models.ts
|
|
273
|
+
// src/_api/generated/cfg_accounts/accounts/models.ts
|
|
273
274
|
var models_exports4 = {};
|
|
274
275
|
|
|
275
|
-
// src/generated/cfg_accounts/http.ts
|
|
276
|
+
// src/_api/generated/cfg_accounts/http.ts
|
|
276
277
|
var FetchAdapter = class {
|
|
277
278
|
static {
|
|
278
279
|
__name(this, "FetchAdapter");
|
|
@@ -329,8 +330,22 @@ var FetchAdapter = class {
|
|
|
329
330
|
};
|
|
330
331
|
}
|
|
331
332
|
};
|
|
333
|
+
var KeepAliveFetchAdapter = class extends FetchAdapter {
|
|
334
|
+
static {
|
|
335
|
+
__name(this, "KeepAliveFetchAdapter");
|
|
336
|
+
}
|
|
337
|
+
async request(request) {
|
|
338
|
+
const origFetch = globalThis.fetch;
|
|
339
|
+
globalThis.fetch = (input, init) => origFetch(input, { ...init, keepalive: true });
|
|
340
|
+
try {
|
|
341
|
+
return await super.request(request);
|
|
342
|
+
} finally {
|
|
343
|
+
globalThis.fetch = origFetch;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
};
|
|
332
347
|
|
|
333
|
-
// src/generated/cfg_accounts/errors.ts
|
|
348
|
+
// src/_api/generated/cfg_accounts/errors.ts
|
|
334
349
|
var APIError = class extends Error {
|
|
335
350
|
constructor(statusCode, statusText, response, url, message) {
|
|
336
351
|
super(message || `HTTP ${statusCode}: ${statusText}`);
|
|
@@ -419,7 +434,7 @@ var NetworkError = class extends Error {
|
|
|
419
434
|
}
|
|
420
435
|
};
|
|
421
436
|
|
|
422
|
-
// src/generated/cfg_accounts/logger.ts
|
|
437
|
+
// src/_api/generated/cfg_accounts/logger.ts
|
|
423
438
|
import { createConsola } from "consola";
|
|
424
439
|
var DEFAULT_CONFIG = {
|
|
425
440
|
enabled: process.env.NODE_ENV !== "production",
|
|
@@ -573,7 +588,7 @@ var APILogger = class {
|
|
|
573
588
|
};
|
|
574
589
|
var defaultLogger = new APILogger();
|
|
575
590
|
|
|
576
|
-
// src/generated/cfg_accounts/retry.ts
|
|
591
|
+
// src/_api/generated/cfg_accounts/retry.ts
|
|
577
592
|
import pRetry, { AbortError } from "p-retry";
|
|
578
593
|
var DEFAULT_RETRY_CONFIG = {
|
|
579
594
|
retries: 3,
|
|
@@ -633,7 +648,7 @@ async function withRetry(fn, config) {
|
|
|
633
648
|
}
|
|
634
649
|
__name(withRetry, "withRetry");
|
|
635
650
|
|
|
636
|
-
// src/generated/cfg_accounts/client.ts
|
|
651
|
+
// src/_api/generated/cfg_accounts/client.ts
|
|
637
652
|
var APIClient = class {
|
|
638
653
|
constructor(baseUrl, options) {
|
|
639
654
|
this.logger = null;
|
|
@@ -847,7 +862,7 @@ var APIClient = class {
|
|
|
847
862
|
}
|
|
848
863
|
};
|
|
849
864
|
|
|
850
|
-
// src/generated/cfg_accounts/storage.ts
|
|
865
|
+
// src/_api/generated/cfg_accounts/storage.ts
|
|
851
866
|
var LocalStorageAdapter = class {
|
|
852
867
|
static {
|
|
853
868
|
__name(this, "LocalStorageAdapter");
|
|
@@ -967,7 +982,7 @@ var MemoryStorageAdapter = class {
|
|
|
967
982
|
}
|
|
968
983
|
};
|
|
969
984
|
|
|
970
|
-
// src/generated/cfg_accounts/enums.ts
|
|
985
|
+
// src/_api/generated/cfg_accounts/enums.ts
|
|
971
986
|
var enums_exports = {};
|
|
972
987
|
__export(enums_exports, {
|
|
973
988
|
OAuthConnectionProvider: () => OAuthConnectionProvider,
|
|
@@ -983,7 +998,7 @@ var OTPRequestRequestChannel = /* @__PURE__ */ ((OTPRequestRequestChannel2) => {
|
|
|
983
998
|
return OTPRequestRequestChannel2;
|
|
984
999
|
})(OTPRequestRequestChannel || {});
|
|
985
1000
|
|
|
986
|
-
// src/generated/cfg_accounts/_utils/schemas/index.ts
|
|
1001
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/index.ts
|
|
987
1002
|
var schemas_exports = {};
|
|
988
1003
|
__export(schemas_exports, {
|
|
989
1004
|
AccountDeleteResponseSchema: () => AccountDeleteResponseSchema,
|
|
@@ -1009,51 +1024,51 @@ __export(schemas_exports, {
|
|
|
1009
1024
|
UserSchema: () => UserSchema
|
|
1010
1025
|
});
|
|
1011
1026
|
|
|
1012
|
-
// src/generated/cfg_accounts/_utils/schemas/AccountDeleteResponse.schema.ts
|
|
1027
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/AccountDeleteResponse.schema.ts
|
|
1013
1028
|
import { z } from "zod";
|
|
1014
1029
|
var AccountDeleteResponseSchema = z.object({
|
|
1015
1030
|
success: z.boolean(),
|
|
1016
1031
|
message: z.string()
|
|
1017
1032
|
});
|
|
1018
1033
|
|
|
1019
|
-
// src/generated/cfg_accounts/_utils/schemas/CentrifugoToken.schema.ts
|
|
1034
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/CentrifugoToken.schema.ts
|
|
1020
1035
|
import { z as z2 } from "zod";
|
|
1021
1036
|
var CentrifugoTokenSchema = z2.object({
|
|
1022
1037
|
token: z2.string(),
|
|
1023
|
-
centrifugo_url: z2.string()
|
|
1038
|
+
centrifugo_url: z2.string(),
|
|
1024
1039
|
expires_at: z2.string().datetime({ offset: true }),
|
|
1025
1040
|
channels: z2.array(z2.string())
|
|
1026
1041
|
});
|
|
1027
1042
|
|
|
1028
|
-
// src/generated/cfg_accounts/_utils/schemas/CfgAccountsProfileAvatarCreateRequest.schema.ts
|
|
1043
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/CfgAccountsProfileAvatarCreateRequest.schema.ts
|
|
1029
1044
|
import { z as z3 } from "zod";
|
|
1030
1045
|
var CfgAccountsProfileAvatarCreateRequestSchema = z3.object({
|
|
1031
1046
|
avatar: z3.union([z3.instanceof(File), z3.instanceof(Blob)])
|
|
1032
1047
|
});
|
|
1033
1048
|
|
|
1034
|
-
// src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeRequestRequest.schema.ts
|
|
1049
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeRequestRequest.schema.ts
|
|
1035
1050
|
import { z as z4 } from "zod";
|
|
1036
1051
|
var OAuthAuthorizeRequestRequestSchema = z4.object({
|
|
1037
|
-
redirect_uri: z4.string().
|
|
1038
|
-
source_url: z4.string().
|
|
1052
|
+
redirect_uri: z4.string().optional(),
|
|
1053
|
+
source_url: z4.string().optional()
|
|
1039
1054
|
});
|
|
1040
1055
|
|
|
1041
|
-
// src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeResponse.schema.ts
|
|
1056
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeResponse.schema.ts
|
|
1042
1057
|
import { z as z5 } from "zod";
|
|
1043
1058
|
var OAuthAuthorizeResponseSchema = z5.object({
|
|
1044
|
-
authorization_url: z5.string()
|
|
1059
|
+
authorization_url: z5.string(),
|
|
1045
1060
|
state: z5.string()
|
|
1046
1061
|
});
|
|
1047
1062
|
|
|
1048
|
-
// src/generated/cfg_accounts/_utils/schemas/OAuthCallbackRequestRequest.schema.ts
|
|
1063
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OAuthCallbackRequestRequest.schema.ts
|
|
1049
1064
|
import { z as z6 } from "zod";
|
|
1050
1065
|
var OAuthCallbackRequestRequestSchema = z6.object({
|
|
1051
1066
|
code: z6.string().min(10).max(500),
|
|
1052
1067
|
state: z6.string().min(20).max(100),
|
|
1053
|
-
redirect_uri: z6.string().
|
|
1068
|
+
redirect_uri: z6.string().optional()
|
|
1054
1069
|
});
|
|
1055
1070
|
|
|
1056
|
-
// src/generated/cfg_accounts/_utils/schemas/OAuthConnection.schema.ts
|
|
1071
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OAuthConnection.schema.ts
|
|
1057
1072
|
import { z as z7 } from "zod";
|
|
1058
1073
|
var OAuthConnectionSchema = z7.object({
|
|
1059
1074
|
id: z7.number().int(),
|
|
@@ -1061,31 +1076,31 @@ var OAuthConnectionSchema = z7.object({
|
|
|
1061
1076
|
provider_display: z7.string(),
|
|
1062
1077
|
provider_username: z7.string(),
|
|
1063
1078
|
provider_email: z7.email(),
|
|
1064
|
-
provider_avatar_url: z7.string()
|
|
1079
|
+
provider_avatar_url: z7.string(),
|
|
1065
1080
|
connected_at: z7.string().datetime({ offset: true }),
|
|
1066
1081
|
last_login_at: z7.string().datetime({ offset: true })
|
|
1067
1082
|
});
|
|
1068
1083
|
|
|
1069
|
-
// src/generated/cfg_accounts/_utils/schemas/OAuthDisconnectRequestRequest.schema.ts
|
|
1084
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OAuthDisconnectRequestRequest.schema.ts
|
|
1070
1085
|
import { z as z8 } from "zod";
|
|
1071
1086
|
var OAuthDisconnectRequestRequestSchema = z8.object({
|
|
1072
1087
|
provider: z8.nativeEnum(OAuthConnectionProvider)
|
|
1073
1088
|
});
|
|
1074
1089
|
|
|
1075
|
-
// src/generated/cfg_accounts/_utils/schemas/OAuthError.schema.ts
|
|
1090
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OAuthError.schema.ts
|
|
1076
1091
|
import { z as z9 } from "zod";
|
|
1077
1092
|
var OAuthErrorSchema = z9.object({
|
|
1078
1093
|
error: z9.string(),
|
|
1079
1094
|
error_description: z9.string().optional()
|
|
1080
1095
|
});
|
|
1081
1096
|
|
|
1082
|
-
// src/generated/cfg_accounts/_utils/schemas/OAuthProvidersResponse.schema.ts
|
|
1097
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OAuthProvidersResponse.schema.ts
|
|
1083
1098
|
import { z as z10 } from "zod";
|
|
1084
1099
|
var OAuthProvidersResponseSchema = z10.object({
|
|
1085
1100
|
providers: z10.array(z10.record(z10.string(), z10.any()))
|
|
1086
1101
|
});
|
|
1087
1102
|
|
|
1088
|
-
// src/generated/cfg_accounts/_utils/schemas/OAuthTokenResponse.schema.ts
|
|
1103
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OAuthTokenResponse.schema.ts
|
|
1089
1104
|
import { z as z11 } from "zod";
|
|
1090
1105
|
var OAuthTokenResponseSchema = z11.object({
|
|
1091
1106
|
requires_2fa: z11.boolean().optional(),
|
|
@@ -1098,39 +1113,39 @@ var OAuthTokenResponseSchema = z11.object({
|
|
|
1098
1113
|
should_prompt_2fa: z11.boolean().optional()
|
|
1099
1114
|
});
|
|
1100
1115
|
|
|
1101
|
-
// src/generated/cfg_accounts/_utils/schemas/OTPErrorResponse.schema.ts
|
|
1116
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OTPErrorResponse.schema.ts
|
|
1102
1117
|
import { z as z12 } from "zod";
|
|
1103
1118
|
var OTPErrorResponseSchema = z12.object({
|
|
1104
1119
|
error: z12.string()
|
|
1105
1120
|
});
|
|
1106
1121
|
|
|
1107
|
-
// src/generated/cfg_accounts/_utils/schemas/OTPRequestRequest.schema.ts
|
|
1122
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OTPRequestRequest.schema.ts
|
|
1108
1123
|
import { z as z13 } from "zod";
|
|
1109
1124
|
var OTPRequestRequestSchema = z13.object({
|
|
1110
1125
|
identifier: z13.string().min(1),
|
|
1111
1126
|
channel: z13.nativeEnum(OTPRequestRequestChannel).optional(),
|
|
1112
|
-
source_url: z13.string().
|
|
1127
|
+
source_url: z13.string().optional()
|
|
1113
1128
|
});
|
|
1114
1129
|
|
|
1115
|
-
// src/generated/cfg_accounts/_utils/schemas/OTPRequestResponse.schema.ts
|
|
1130
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OTPRequestResponse.schema.ts
|
|
1116
1131
|
import { z as z14 } from "zod";
|
|
1117
1132
|
var OTPRequestResponseSchema = z14.object({
|
|
1118
1133
|
message: z14.string()
|
|
1119
1134
|
});
|
|
1120
1135
|
|
|
1121
|
-
// src/generated/cfg_accounts/_utils/schemas/OTPVerifyRequest.schema.ts
|
|
1136
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OTPVerifyRequest.schema.ts
|
|
1122
1137
|
import { z as z15 } from "zod";
|
|
1123
1138
|
var OTPVerifyRequestSchema = z15.object({
|
|
1124
1139
|
identifier: z15.string().min(1),
|
|
1125
1140
|
otp: z15.string().min(6).max(6),
|
|
1126
1141
|
channel: z15.nativeEnum(OTPRequestRequestChannel).optional(),
|
|
1127
|
-
source_url: z15.string().
|
|
1142
|
+
source_url: z15.string().optional()
|
|
1128
1143
|
});
|
|
1129
1144
|
|
|
1130
|
-
// src/generated/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts
|
|
1145
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts
|
|
1131
1146
|
import { z as z17 } from "zod";
|
|
1132
1147
|
|
|
1133
|
-
// src/generated/cfg_accounts/_utils/schemas/User.schema.ts
|
|
1148
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/User.schema.ts
|
|
1134
1149
|
import { z as z16 } from "zod";
|
|
1135
1150
|
var UserSchema = z16.object({
|
|
1136
1151
|
id: z16.number().int(),
|
|
@@ -1144,7 +1159,7 @@ var UserSchema = z16.object({
|
|
|
1144
1159
|
phone: z16.string().max(20).optional(),
|
|
1145
1160
|
position: z16.string().max(100).optional(),
|
|
1146
1161
|
language: z16.string().max(10).optional(),
|
|
1147
|
-
avatar: z16.string().
|
|
1162
|
+
avatar: z16.string().nullable(),
|
|
1148
1163
|
is_staff: z16.boolean(),
|
|
1149
1164
|
is_superuser: z16.boolean(),
|
|
1150
1165
|
date_joined: z16.string().datetime({ offset: true }),
|
|
@@ -1153,7 +1168,7 @@ var UserSchema = z16.object({
|
|
|
1153
1168
|
centrifugo: CentrifugoTokenSchema.nullable()
|
|
1154
1169
|
});
|
|
1155
1170
|
|
|
1156
|
-
// src/generated/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts
|
|
1171
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts
|
|
1157
1172
|
var OTPVerifyResponseSchema = z17.object({
|
|
1158
1173
|
requires_2fa: z17.boolean().optional(),
|
|
1159
1174
|
session_id: z17.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i).nullable().optional(),
|
|
@@ -1163,7 +1178,7 @@ var OTPVerifyResponseSchema = z17.object({
|
|
|
1163
1178
|
should_prompt_2fa: z17.boolean().optional()
|
|
1164
1179
|
});
|
|
1165
1180
|
|
|
1166
|
-
// src/generated/cfg_accounts/_utils/schemas/PatchedUserProfileUpdateRequest.schema.ts
|
|
1181
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/PatchedUserProfileUpdateRequest.schema.ts
|
|
1167
1182
|
import { z as z18 } from "zod";
|
|
1168
1183
|
var PatchedUserProfileUpdateRequestSchema = z18.object({
|
|
1169
1184
|
first_name: z18.string().max(50).optional(),
|
|
@@ -1174,20 +1189,20 @@ var PatchedUserProfileUpdateRequestSchema = z18.object({
|
|
|
1174
1189
|
language: z18.string().max(10).optional()
|
|
1175
1190
|
});
|
|
1176
1191
|
|
|
1177
|
-
// src/generated/cfg_accounts/_utils/schemas/TokenRefresh.schema.ts
|
|
1192
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/TokenRefresh.schema.ts
|
|
1178
1193
|
import { z as z19 } from "zod";
|
|
1179
1194
|
var TokenRefreshSchema = z19.object({
|
|
1180
1195
|
access: z19.string(),
|
|
1181
1196
|
refresh: z19.string()
|
|
1182
1197
|
});
|
|
1183
1198
|
|
|
1184
|
-
// src/generated/cfg_accounts/_utils/schemas/TokenRefreshRequest.schema.ts
|
|
1199
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/TokenRefreshRequest.schema.ts
|
|
1185
1200
|
import { z as z20 } from "zod";
|
|
1186
1201
|
var TokenRefreshRequestSchema = z20.object({
|
|
1187
1202
|
refresh: z20.string().min(1)
|
|
1188
1203
|
});
|
|
1189
1204
|
|
|
1190
|
-
// src/generated/cfg_accounts/_utils/schemas/UserProfileUpdateRequest.schema.ts
|
|
1205
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/UserProfileUpdateRequest.schema.ts
|
|
1191
1206
|
import { z as z21 } from "zod";
|
|
1192
1207
|
var UserProfileUpdateRequestSchema = z21.object({
|
|
1193
1208
|
first_name: z21.string().max(50).optional(),
|
|
@@ -1198,7 +1213,7 @@ var UserProfileUpdateRequestSchema = z21.object({
|
|
|
1198
1213
|
language: z21.string().max(10).optional()
|
|
1199
1214
|
});
|
|
1200
1215
|
|
|
1201
|
-
// src/generated/cfg_accounts/validation-events.ts
|
|
1216
|
+
// src/_api/generated/cfg_accounts/validation-events.ts
|
|
1202
1217
|
function dispatchValidationError(detail) {
|
|
1203
1218
|
if (typeof window === "undefined") {
|
|
1204
1219
|
return;
|
|
@@ -1247,7 +1262,7 @@ function formatZodError(error) {
|
|
|
1247
1262
|
}
|
|
1248
1263
|
__name(formatZodError, "formatZodError");
|
|
1249
1264
|
|
|
1250
|
-
// src/generated/cfg_accounts/_utils/fetchers/index.ts
|
|
1265
|
+
// src/_api/generated/cfg_accounts/_utils/fetchers/index.ts
|
|
1251
1266
|
var fetchers_exports = {};
|
|
1252
1267
|
__export(fetchers_exports, {
|
|
1253
1268
|
createAccountsOauthDisconnectCreate: () => createAccountsOauthDisconnectCreate,
|
|
@@ -1267,10 +1282,10 @@ __export(fetchers_exports, {
|
|
|
1267
1282
|
updateAccountsProfileUpdateUpdate: () => updateAccountsProfileUpdateUpdate
|
|
1268
1283
|
});
|
|
1269
1284
|
|
|
1270
|
-
// src/generated/cfg_accounts/_utils/fetchers/accounts.ts
|
|
1285
|
+
// src/_api/generated/cfg_accounts/_utils/fetchers/accounts.ts
|
|
1271
1286
|
import { consola } from "consola";
|
|
1272
1287
|
|
|
1273
|
-
// src/generated/cfg_accounts/api-instance.ts
|
|
1288
|
+
// src/_api/generated/cfg_accounts/api-instance.ts
|
|
1274
1289
|
var globalAPI = null;
|
|
1275
1290
|
var autoConfigAttempted = false;
|
|
1276
1291
|
function tryAutoConfigureFromEnv() {
|
|
@@ -1331,7 +1346,7 @@ function resetAPI() {
|
|
|
1331
1346
|
}
|
|
1332
1347
|
__name(resetAPI, "resetAPI");
|
|
1333
1348
|
|
|
1334
|
-
// src/generated/cfg_accounts/_utils/fetchers/accounts.ts
|
|
1349
|
+
// src/_api/generated/cfg_accounts/_utils/fetchers/accounts.ts
|
|
1335
1350
|
async function createAccountsOtpRequestCreate(data, client) {
|
|
1336
1351
|
const api2 = client || getAPIInstance();
|
|
1337
1352
|
const response = await api2.accounts.otpRequestCreate(data);
|
|
@@ -1419,7 +1434,7 @@ Method: POST`);
|
|
|
1419
1434
|
}
|
|
1420
1435
|
__name(createAccountsOtpVerifyCreate, "createAccountsOtpVerifyCreate");
|
|
1421
1436
|
|
|
1422
|
-
// src/generated/cfg_accounts/_utils/fetchers/accounts__auth.ts
|
|
1437
|
+
// src/_api/generated/cfg_accounts/_utils/fetchers/accounts__auth.ts
|
|
1423
1438
|
import { consola as consola2 } from "consola";
|
|
1424
1439
|
async function createAccountsTokenRefreshCreate(data, client) {
|
|
1425
1440
|
const api2 = client || getAPIInstance();
|
|
@@ -1465,7 +1480,7 @@ Method: POST`);
|
|
|
1465
1480
|
}
|
|
1466
1481
|
__name(createAccountsTokenRefreshCreate, "createAccountsTokenRefreshCreate");
|
|
1467
1482
|
|
|
1468
|
-
// src/generated/cfg_accounts/_utils/fetchers/accounts__oauth.ts
|
|
1483
|
+
// src/_api/generated/cfg_accounts/_utils/fetchers/accounts__oauth.ts
|
|
1469
1484
|
import { consola as consola3 } from "consola";
|
|
1470
1485
|
async function getAccountsOauthConnectionsList(client) {
|
|
1471
1486
|
const api2 = client || getAPIInstance();
|
|
@@ -1609,7 +1624,7 @@ Method: GET`);
|
|
|
1609
1624
|
}
|
|
1610
1625
|
__name(getAccountsOauthProvidersRetrieve, "getAccountsOauthProvidersRetrieve");
|
|
1611
1626
|
|
|
1612
|
-
// src/generated/cfg_accounts/_utils/fetchers/accounts__user_profile.ts
|
|
1627
|
+
// src/_api/generated/cfg_accounts/_utils/fetchers/accounts__user_profile.ts
|
|
1613
1628
|
import { consola as consola4 } from "consola";
|
|
1614
1629
|
async function getAccountsProfileRetrieve(client) {
|
|
1615
1630
|
const api2 = client || getAPIInstance();
|
|
@@ -1913,7 +1928,7 @@ Method: PATCH`);
|
|
|
1913
1928
|
}
|
|
1914
1929
|
__name(partialUpdateAccountsProfileUpdatePartialUpdate, "partialUpdateAccountsProfileUpdatePartialUpdate");
|
|
1915
1930
|
|
|
1916
|
-
// src/generated/cfg_accounts/index.ts
|
|
1931
|
+
// src/_api/generated/cfg_accounts/index.ts
|
|
1917
1932
|
var TOKEN_KEY = "auth_token";
|
|
1918
1933
|
var REFRESH_TOKEN_KEY = "refresh_token";
|
|
1919
1934
|
function detectLocale() {
|
|
@@ -1942,6 +1957,7 @@ var API = class {
|
|
|
1942
1957
|
this._locale = options?.locale || null;
|
|
1943
1958
|
this._loadTokensFromStorage();
|
|
1944
1959
|
this._client = new APIClient(this.baseUrl, {
|
|
1960
|
+
httpClient: this.options?.httpClient,
|
|
1945
1961
|
retryConfig: this.options?.retryConfig,
|
|
1946
1962
|
loggerConfig: this.options?.loggerConfig,
|
|
1947
1963
|
tokenGetter: /* @__PURE__ */ __name(() => this.getToken(), "tokenGetter")
|
|
@@ -1961,6 +1977,7 @@ var API = class {
|
|
|
1961
1977
|
}
|
|
1962
1978
|
_reinitClients() {
|
|
1963
1979
|
this._client = new APIClient(this.baseUrl, {
|
|
1980
|
+
httpClient: this.options?.httpClient,
|
|
1964
1981
|
retryConfig: this.options?.retryConfig,
|
|
1965
1982
|
loggerConfig: this.options?.loggerConfig,
|
|
1966
1983
|
tokenGetter: /* @__PURE__ */ __name(() => this.getToken(), "tokenGetter")
|
|
@@ -2074,7 +2091,7 @@ var API = class {
|
|
|
2074
2091
|
};
|
|
2075
2092
|
var cfg_accounts_default = API;
|
|
2076
2093
|
|
|
2077
|
-
// src/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/client.ts
|
|
2094
|
+
// src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/client.ts
|
|
2078
2095
|
var CentrifugoAdminApi = class {
|
|
2079
2096
|
static {
|
|
2080
2097
|
__name(this, "CentrifugoAdminApi");
|
|
@@ -2139,7 +2156,7 @@ var CentrifugoAdminApi = class {
|
|
|
2139
2156
|
}
|
|
2140
2157
|
};
|
|
2141
2158
|
|
|
2142
|
-
// src/generated/cfg_centrifugo/centrifugo__centrifugo_auth/client.ts
|
|
2159
|
+
// src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_auth/client.ts
|
|
2143
2160
|
var CentrifugoAuth = class {
|
|
2144
2161
|
static {
|
|
2145
2162
|
__name(this, "CentrifugoAuth");
|
|
@@ -2160,7 +2177,7 @@ var CentrifugoAuth = class {
|
|
|
2160
2177
|
}
|
|
2161
2178
|
};
|
|
2162
2179
|
|
|
2163
|
-
// src/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/client.ts
|
|
2180
|
+
// src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/client.ts
|
|
2164
2181
|
var CentrifugoMonitoring = class {
|
|
2165
2182
|
static {
|
|
2166
2183
|
__name(this, "CentrifugoMonitoring");
|
|
@@ -2182,7 +2199,7 @@ var CentrifugoMonitoring = class {
|
|
|
2182
2199
|
params = { hours: args[0] };
|
|
2183
2200
|
}
|
|
2184
2201
|
const response = await this.client.request("GET", "/cfg/centrifugo/monitor/channels/", { params });
|
|
2185
|
-
return response
|
|
2202
|
+
return response;
|
|
2186
2203
|
}
|
|
2187
2204
|
/**
|
|
2188
2205
|
* Get Centrifugo health status
|
|
@@ -2244,7 +2261,7 @@ var CentrifugoMonitoring = class {
|
|
|
2244
2261
|
}
|
|
2245
2262
|
};
|
|
2246
2263
|
|
|
2247
|
-
// src/generated/cfg_centrifugo/centrifugo__centrifugo_testing/client.ts
|
|
2264
|
+
// src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_testing/client.ts
|
|
2248
2265
|
var CentrifugoTesting = class {
|
|
2249
2266
|
static {
|
|
2250
2267
|
__name(this, "CentrifugoTesting");
|
|
@@ -2284,7 +2301,7 @@ var CentrifugoTesting = class {
|
|
|
2284
2301
|
}
|
|
2285
2302
|
};
|
|
2286
2303
|
|
|
2287
|
-
// src/generated/cfg_centrifugo/http.ts
|
|
2304
|
+
// src/_api/generated/cfg_centrifugo/http.ts
|
|
2288
2305
|
var FetchAdapter2 = class {
|
|
2289
2306
|
static {
|
|
2290
2307
|
__name(this, "FetchAdapter");
|
|
@@ -2342,7 +2359,7 @@ var FetchAdapter2 = class {
|
|
|
2342
2359
|
}
|
|
2343
2360
|
};
|
|
2344
2361
|
|
|
2345
|
-
// src/generated/cfg_centrifugo/errors.ts
|
|
2362
|
+
// src/_api/generated/cfg_centrifugo/errors.ts
|
|
2346
2363
|
var APIError2 = class extends Error {
|
|
2347
2364
|
constructor(statusCode, statusText, response, url, message) {
|
|
2348
2365
|
super(message || `HTTP ${statusCode}: ${statusText}`);
|
|
@@ -2431,7 +2448,7 @@ var NetworkError2 = class extends Error {
|
|
|
2431
2448
|
}
|
|
2432
2449
|
};
|
|
2433
2450
|
|
|
2434
|
-
// src/generated/cfg_centrifugo/logger.ts
|
|
2451
|
+
// src/_api/generated/cfg_centrifugo/logger.ts
|
|
2435
2452
|
import { createConsola as createConsola2 } from "consola";
|
|
2436
2453
|
var DEFAULT_CONFIG2 = {
|
|
2437
2454
|
enabled: process.env.NODE_ENV !== "production",
|
|
@@ -2585,7 +2602,7 @@ var APILogger2 = class {
|
|
|
2585
2602
|
};
|
|
2586
2603
|
var defaultLogger2 = new APILogger2();
|
|
2587
2604
|
|
|
2588
|
-
// src/generated/cfg_centrifugo/retry.ts
|
|
2605
|
+
// src/_api/generated/cfg_centrifugo/retry.ts
|
|
2589
2606
|
import pRetry2, { AbortError as AbortError2 } from "p-retry";
|
|
2590
2607
|
var DEFAULT_RETRY_CONFIG2 = {
|
|
2591
2608
|
retries: 3,
|
|
@@ -2645,7 +2662,7 @@ async function withRetry2(fn, config) {
|
|
|
2645
2662
|
}
|
|
2646
2663
|
__name(withRetry2, "withRetry");
|
|
2647
2664
|
|
|
2648
|
-
// src/generated/cfg_centrifugo/client.ts
|
|
2665
|
+
// src/_api/generated/cfg_centrifugo/client.ts
|
|
2649
2666
|
var APIClient2 = class {
|
|
2650
2667
|
constructor(baseUrl, options) {
|
|
2651
2668
|
this.logger = null;
|
|
@@ -2859,7 +2876,7 @@ var APIClient2 = class {
|
|
|
2859
2876
|
}
|
|
2860
2877
|
};
|
|
2861
2878
|
|
|
2862
|
-
// src/generated/cfg_centrifugo/storage.ts
|
|
2879
|
+
// src/_api/generated/cfg_centrifugo/storage.ts
|
|
2863
2880
|
var LocalStorageAdapter2 = class {
|
|
2864
2881
|
static {
|
|
2865
2882
|
__name(this, "LocalStorageAdapter");
|
|
@@ -2906,41 +2923,41 @@ var LocalStorageAdapter2 = class {
|
|
|
2906
2923
|
}
|
|
2907
2924
|
};
|
|
2908
2925
|
|
|
2909
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelInfo.schema.ts
|
|
2926
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelInfo.schema.ts
|
|
2910
2927
|
import { z as z22 } from "zod";
|
|
2911
2928
|
var CentrifugoChannelInfoSchema = z22.object({
|
|
2912
2929
|
num_clients: z22.number().int()
|
|
2913
2930
|
});
|
|
2914
2931
|
|
|
2915
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsRequestRequest.schema.ts
|
|
2932
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsRequestRequest.schema.ts
|
|
2916
2933
|
import { z as z23 } from "zod";
|
|
2917
2934
|
var CentrifugoChannelsRequestRequestSchema = z23.object({
|
|
2918
2935
|
pattern: z23.string().nullable().optional()
|
|
2919
2936
|
});
|
|
2920
2937
|
|
|
2921
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts
|
|
2938
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts
|
|
2922
2939
|
import { z as z26 } from "zod";
|
|
2923
2940
|
|
|
2924
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResult.schema.ts
|
|
2941
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResult.schema.ts
|
|
2925
2942
|
import { z as z24 } from "zod";
|
|
2926
2943
|
var CentrifugoChannelsResultSchema = z24.object({
|
|
2927
2944
|
channels: z24.record(z24.string(), CentrifugoChannelInfoSchema)
|
|
2928
2945
|
});
|
|
2929
2946
|
|
|
2930
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoError.schema.ts
|
|
2947
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoError.schema.ts
|
|
2931
2948
|
import { z as z25 } from "zod";
|
|
2932
2949
|
var CentrifugoErrorSchema = z25.object({
|
|
2933
2950
|
code: z25.number().int().optional(),
|
|
2934
2951
|
message: z25.string().optional()
|
|
2935
2952
|
});
|
|
2936
2953
|
|
|
2937
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts
|
|
2954
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts
|
|
2938
2955
|
var CentrifugoChannelsResponseSchema = z26.object({
|
|
2939
2956
|
error: CentrifugoErrorSchema.nullable().optional(),
|
|
2940
2957
|
result: CentrifugoChannelsResultSchema.nullable().optional()
|
|
2941
2958
|
});
|
|
2942
2959
|
|
|
2943
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoClientInfo.schema.ts
|
|
2960
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoClientInfo.schema.ts
|
|
2944
2961
|
import { z as z27 } from "zod";
|
|
2945
2962
|
var CentrifugoClientInfoSchema = z27.object({
|
|
2946
2963
|
user: z27.string(),
|
|
@@ -2949,7 +2966,7 @@ var CentrifugoClientInfoSchema = z27.object({
|
|
|
2949
2966
|
chan_info: z27.record(z27.string(), z27.any()).nullable().optional()
|
|
2950
2967
|
});
|
|
2951
2968
|
|
|
2952
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHealthCheck.schema.ts
|
|
2969
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHealthCheck.schema.ts
|
|
2953
2970
|
import { z as z28 } from "zod";
|
|
2954
2971
|
var CentrifugoHealthCheckSchema = z28.object({
|
|
2955
2972
|
status: z28.string(),
|
|
@@ -2958,17 +2975,17 @@ var CentrifugoHealthCheckSchema = z28.object({
|
|
|
2958
2975
|
timestamp: z28.string()
|
|
2959
2976
|
});
|
|
2960
2977
|
|
|
2961
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts
|
|
2978
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts
|
|
2962
2979
|
import { z as z30 } from "zod";
|
|
2963
2980
|
|
|
2964
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoStreamPosition.schema.ts
|
|
2981
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoStreamPosition.schema.ts
|
|
2965
2982
|
import { z as z29 } from "zod";
|
|
2966
2983
|
var CentrifugoStreamPositionSchema = z29.object({
|
|
2967
2984
|
offset: z29.number().int(),
|
|
2968
2985
|
epoch: z29.string()
|
|
2969
2986
|
});
|
|
2970
2987
|
|
|
2971
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts
|
|
2988
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts
|
|
2972
2989
|
var CentrifugoHistoryRequestRequestSchema = z30.object({
|
|
2973
2990
|
channel: z30.string(),
|
|
2974
2991
|
limit: z30.number().int().nullable().optional(),
|
|
@@ -2976,13 +2993,13 @@ var CentrifugoHistoryRequestRequestSchema = z30.object({
|
|
|
2976
2993
|
reverse: z30.boolean().nullable().optional()
|
|
2977
2994
|
});
|
|
2978
2995
|
|
|
2979
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts
|
|
2996
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts
|
|
2980
2997
|
import { z as z33 } from "zod";
|
|
2981
2998
|
|
|
2982
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts
|
|
2999
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts
|
|
2983
3000
|
import { z as z32 } from "zod";
|
|
2984
3001
|
|
|
2985
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPublication.schema.ts
|
|
3002
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPublication.schema.ts
|
|
2986
3003
|
import { z as z31 } from "zod";
|
|
2987
3004
|
var CentrifugoPublicationSchema = z31.object({
|
|
2988
3005
|
data: z31.record(z31.string(), z31.any()),
|
|
@@ -2991,43 +3008,43 @@ var CentrifugoPublicationSchema = z31.object({
|
|
|
2991
3008
|
tags: z31.record(z31.string(), z31.any()).nullable().optional()
|
|
2992
3009
|
});
|
|
2993
3010
|
|
|
2994
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts
|
|
3011
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts
|
|
2995
3012
|
var CentrifugoHistoryResultSchema = z32.object({
|
|
2996
3013
|
publications: z32.array(CentrifugoPublicationSchema),
|
|
2997
3014
|
epoch: z32.string(),
|
|
2998
3015
|
offset: z32.number().int()
|
|
2999
3016
|
});
|
|
3000
3017
|
|
|
3001
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts
|
|
3018
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts
|
|
3002
3019
|
var CentrifugoHistoryResponseSchema = z33.object({
|
|
3003
3020
|
error: CentrifugoErrorSchema.nullable().optional(),
|
|
3004
3021
|
result: CentrifugoHistoryResultSchema.nullable().optional()
|
|
3005
3022
|
});
|
|
3006
3023
|
|
|
3007
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts
|
|
3024
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts
|
|
3008
3025
|
import { z as z38 } from "zod";
|
|
3009
3026
|
|
|
3010
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts
|
|
3027
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts
|
|
3011
3028
|
import { z as z37 } from "zod";
|
|
3012
3029
|
|
|
3013
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts
|
|
3030
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts
|
|
3014
3031
|
import { z as z36 } from "zod";
|
|
3015
3032
|
|
|
3016
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoMetrics.schema.ts
|
|
3033
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoMetrics.schema.ts
|
|
3017
3034
|
import { z as z34 } from "zod";
|
|
3018
3035
|
var CentrifugoMetricsSchema = z34.object({
|
|
3019
3036
|
interval: z34.number(),
|
|
3020
3037
|
items: z34.record(z34.string(), z34.number())
|
|
3021
3038
|
});
|
|
3022
3039
|
|
|
3023
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoProcess.schema.ts
|
|
3040
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoProcess.schema.ts
|
|
3024
3041
|
import { z as z35 } from "zod";
|
|
3025
3042
|
var CentrifugoProcessSchema = z35.object({
|
|
3026
3043
|
cpu: z35.number(),
|
|
3027
3044
|
rss: z35.number().int()
|
|
3028
3045
|
});
|
|
3029
3046
|
|
|
3030
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts
|
|
3047
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts
|
|
3031
3048
|
var CentrifugoNodeInfoSchema = z36.object({
|
|
3032
3049
|
uid: z36.string(),
|
|
3033
3050
|
name: z36.string(),
|
|
@@ -3041,18 +3058,18 @@ var CentrifugoNodeInfoSchema = z36.object({
|
|
|
3041
3058
|
process: CentrifugoProcessSchema.nullable().optional()
|
|
3042
3059
|
});
|
|
3043
3060
|
|
|
3044
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts
|
|
3061
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts
|
|
3045
3062
|
var CentrifugoInfoResultSchema = z37.object({
|
|
3046
3063
|
nodes: z37.array(CentrifugoNodeInfoSchema)
|
|
3047
3064
|
});
|
|
3048
3065
|
|
|
3049
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts
|
|
3066
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts
|
|
3050
3067
|
var CentrifugoInfoResponseSchema = z38.object({
|
|
3051
3068
|
error: CentrifugoErrorSchema.nullable().optional(),
|
|
3052
3069
|
result: CentrifugoInfoResultSchema.nullable().optional()
|
|
3053
3070
|
});
|
|
3054
3071
|
|
|
3055
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoOverviewStats.schema.ts
|
|
3072
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoOverviewStats.schema.ts
|
|
3056
3073
|
import { z as z39 } from "zod";
|
|
3057
3074
|
var CentrifugoOverviewStatsSchema = z39.object({
|
|
3058
3075
|
total: z39.number().int(),
|
|
@@ -3065,53 +3082,53 @@ var CentrifugoOverviewStatsSchema = z39.object({
|
|
|
3065
3082
|
period_hours: z39.number().int()
|
|
3066
3083
|
});
|
|
3067
3084
|
|
|
3068
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceRequestRequest.schema.ts
|
|
3085
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceRequestRequest.schema.ts
|
|
3069
3086
|
import { z as z40 } from "zod";
|
|
3070
3087
|
var CentrifugoPresenceRequestRequestSchema = z40.object({
|
|
3071
3088
|
channel: z40.string()
|
|
3072
3089
|
});
|
|
3073
3090
|
|
|
3074
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts
|
|
3091
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts
|
|
3075
3092
|
import { z as z42 } from "zod";
|
|
3076
3093
|
|
|
3077
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResult.schema.ts
|
|
3094
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResult.schema.ts
|
|
3078
3095
|
import { z as z41 } from "zod";
|
|
3079
3096
|
var CentrifugoPresenceResultSchema = z41.object({
|
|
3080
3097
|
presence: z41.record(z41.string(), CentrifugoClientInfoSchema)
|
|
3081
3098
|
});
|
|
3082
3099
|
|
|
3083
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts
|
|
3100
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts
|
|
3084
3101
|
var CentrifugoPresenceResponseSchema = z42.object({
|
|
3085
3102
|
error: CentrifugoErrorSchema.nullable().optional(),
|
|
3086
3103
|
result: CentrifugoPresenceResultSchema.nullable().optional()
|
|
3087
3104
|
});
|
|
3088
3105
|
|
|
3089
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsRequestRequest.schema.ts
|
|
3106
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsRequestRequest.schema.ts
|
|
3090
3107
|
import { z as z43 } from "zod";
|
|
3091
3108
|
var CentrifugoPresenceStatsRequestRequestSchema = z43.object({
|
|
3092
3109
|
channel: z43.string()
|
|
3093
3110
|
});
|
|
3094
3111
|
|
|
3095
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts
|
|
3112
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts
|
|
3096
3113
|
import { z as z45 } from "zod";
|
|
3097
3114
|
|
|
3098
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResult.schema.ts
|
|
3115
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResult.schema.ts
|
|
3099
3116
|
import { z as z44 } from "zod";
|
|
3100
3117
|
var CentrifugoPresenceStatsResultSchema = z44.object({
|
|
3101
3118
|
num_clients: z44.number().int(),
|
|
3102
3119
|
num_users: z44.number().int()
|
|
3103
3120
|
});
|
|
3104
3121
|
|
|
3105
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts
|
|
3122
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts
|
|
3106
3123
|
var CentrifugoPresenceStatsResponseSchema = z45.object({
|
|
3107
3124
|
error: CentrifugoErrorSchema.nullable().optional(),
|
|
3108
3125
|
result: CentrifugoPresenceStatsResultSchema.nullable().optional()
|
|
3109
3126
|
});
|
|
3110
3127
|
|
|
3111
|
-
// src/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts
|
|
3128
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts
|
|
3112
3129
|
import { z as z47 } from "zod";
|
|
3113
3130
|
|
|
3114
|
-
// src/generated/cfg_centrifugo/_utils/schemas/ChannelStats.schema.ts
|
|
3131
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/ChannelStats.schema.ts
|
|
3115
3132
|
import { z as z46 } from "zod";
|
|
3116
3133
|
var ChannelStatsSchema = z46.object({
|
|
3117
3134
|
channel: z46.string(),
|
|
@@ -3123,13 +3140,13 @@ var ChannelStatsSchema = z46.object({
|
|
|
3123
3140
|
last_activity_at: z46.string().nullable()
|
|
3124
3141
|
});
|
|
3125
3142
|
|
|
3126
|
-
// src/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts
|
|
3143
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts
|
|
3127
3144
|
var ChannelListSchema = z47.object({
|
|
3128
3145
|
channels: z47.array(ChannelStatsSchema),
|
|
3129
3146
|
total_channels: z47.number().int()
|
|
3130
3147
|
});
|
|
3131
3148
|
|
|
3132
|
-
// src/generated/cfg_centrifugo/_utils/schemas/ConnectionTokenResponse.schema.ts
|
|
3149
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/ConnectionTokenResponse.schema.ts
|
|
3133
3150
|
import { z as z48 } from "zod";
|
|
3134
3151
|
var ConnectionTokenResponseSchema = z48.object({
|
|
3135
3152
|
token: z48.string(),
|
|
@@ -3138,14 +3155,14 @@ var ConnectionTokenResponseSchema = z48.object({
|
|
|
3138
3155
|
channels: z48.array(z48.string())
|
|
3139
3156
|
});
|
|
3140
3157
|
|
|
3141
|
-
// src/generated/cfg_centrifugo/_utils/schemas/ManualAckRequestRequest.schema.ts
|
|
3158
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/ManualAckRequestRequest.schema.ts
|
|
3142
3159
|
import { z as z49 } from "zod";
|
|
3143
3160
|
var ManualAckRequestRequestSchema = z49.object({
|
|
3144
3161
|
message_id: z49.string(),
|
|
3145
3162
|
client_id: z49.string()
|
|
3146
3163
|
});
|
|
3147
3164
|
|
|
3148
|
-
// src/generated/cfg_centrifugo/_utils/schemas/ManualAckResponse.schema.ts
|
|
3165
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/ManualAckResponse.schema.ts
|
|
3149
3166
|
import { z as z50 } from "zod";
|
|
3150
3167
|
var ManualAckResponseSchema = z50.object({
|
|
3151
3168
|
success: z50.boolean(),
|
|
@@ -3153,10 +3170,10 @@ var ManualAckResponseSchema = z50.object({
|
|
|
3153
3170
|
error: z50.string().nullable().optional()
|
|
3154
3171
|
});
|
|
3155
3172
|
|
|
3156
|
-
// src/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts
|
|
3173
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts
|
|
3157
3174
|
import { z as z52 } from "zod";
|
|
3158
3175
|
|
|
3159
|
-
// src/generated/cfg_centrifugo/_utils/schemas/Publish.schema.ts
|
|
3176
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/Publish.schema.ts
|
|
3160
3177
|
import { z as z51 } from "zod";
|
|
3161
3178
|
var PublishSchema = z51.object({
|
|
3162
3179
|
message_id: z51.string(),
|
|
@@ -3172,7 +3189,7 @@ var PublishSchema = z51.object({
|
|
|
3172
3189
|
error_message: z51.string().nullable()
|
|
3173
3190
|
});
|
|
3174
3191
|
|
|
3175
|
-
// src/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts
|
|
3192
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts
|
|
3176
3193
|
var PaginatedPublishListSchema = z52.object({
|
|
3177
3194
|
count: z52.number().int(),
|
|
3178
3195
|
page: z52.number().int(),
|
|
@@ -3185,7 +3202,7 @@ var PaginatedPublishListSchema = z52.object({
|
|
|
3185
3202
|
results: z52.array(PublishSchema)
|
|
3186
3203
|
});
|
|
3187
3204
|
|
|
3188
|
-
// src/generated/cfg_centrifugo/_utils/schemas/PublishTestRequestRequest.schema.ts
|
|
3205
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/PublishTestRequestRequest.schema.ts
|
|
3189
3206
|
import { z as z53 } from "zod";
|
|
3190
3207
|
var PublishTestRequestRequestSchema = z53.object({
|
|
3191
3208
|
channel: z53.string(),
|
|
@@ -3194,7 +3211,7 @@ var PublishTestRequestRequestSchema = z53.object({
|
|
|
3194
3211
|
ack_timeout: z53.number().int().min(1).max(60).optional()
|
|
3195
3212
|
});
|
|
3196
3213
|
|
|
3197
|
-
// src/generated/cfg_centrifugo/_utils/schemas/PublishTestResponse.schema.ts
|
|
3214
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/PublishTestResponse.schema.ts
|
|
3198
3215
|
import { z as z54 } from "zod";
|
|
3199
3216
|
var PublishTestResponseSchema = z54.object({
|
|
3200
3217
|
success: z54.boolean(),
|
|
@@ -3205,7 +3222,7 @@ var PublishTestResponseSchema = z54.object({
|
|
|
3205
3222
|
error: z54.string().nullable().optional()
|
|
3206
3223
|
});
|
|
3207
3224
|
|
|
3208
|
-
// src/generated/cfg_centrifugo/_utils/schemas/TimelineItem.schema.ts
|
|
3225
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/TimelineItem.schema.ts
|
|
3209
3226
|
import { z as z55 } from "zod";
|
|
3210
3227
|
var TimelineItemSchema = z55.object({
|
|
3211
3228
|
timestamp: z55.string(),
|
|
@@ -3215,7 +3232,7 @@ var TimelineItemSchema = z55.object({
|
|
|
3215
3232
|
timeout: z55.number().int()
|
|
3216
3233
|
});
|
|
3217
3234
|
|
|
3218
|
-
// src/generated/cfg_centrifugo/_utils/schemas/TimelineResponse.schema.ts
|
|
3235
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/TimelineResponse.schema.ts
|
|
3219
3236
|
import { z as z56 } from "zod";
|
|
3220
3237
|
var TimelineResponseSchema = z56.object({
|
|
3221
3238
|
timeline: z56.array(TimelineItemSchema),
|
|
@@ -3223,10 +3240,10 @@ var TimelineResponseSchema = z56.object({
|
|
|
3223
3240
|
interval: z56.string()
|
|
3224
3241
|
});
|
|
3225
3242
|
|
|
3226
|
-
// src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_admin_api.ts
|
|
3243
|
+
// src/_api/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_admin_api.ts
|
|
3227
3244
|
import { consola as consola5 } from "consola";
|
|
3228
3245
|
|
|
3229
|
-
// src/generated/cfg_centrifugo/api-instance.ts
|
|
3246
|
+
// src/_api/generated/cfg_centrifugo/api-instance.ts
|
|
3230
3247
|
var globalAPI2 = null;
|
|
3231
3248
|
var autoConfigAttempted2 = false;
|
|
3232
3249
|
function tryAutoConfigureFromEnv2() {
|
|
@@ -3251,7 +3268,7 @@ function getAPIInstance2() {
|
|
|
3251
3268
|
}
|
|
3252
3269
|
__name(getAPIInstance2, "getAPIInstance");
|
|
3253
3270
|
|
|
3254
|
-
// src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_auth.ts
|
|
3271
|
+
// src/_api/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_auth.ts
|
|
3255
3272
|
import { consola as consola6 } from "consola";
|
|
3256
3273
|
async function getCentrifugoAuthTokenRetrieve(client) {
|
|
3257
3274
|
const api2 = client || getAPIInstance2();
|
|
@@ -3297,13 +3314,13 @@ Method: GET`);
|
|
|
3297
3314
|
}
|
|
3298
3315
|
__name(getCentrifugoAuthTokenRetrieve, "getCentrifugoAuthTokenRetrieve");
|
|
3299
3316
|
|
|
3300
|
-
// src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_monitoring.ts
|
|
3317
|
+
// src/_api/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_monitoring.ts
|
|
3301
3318
|
import { consola as consola7 } from "consola";
|
|
3302
3319
|
|
|
3303
|
-
// src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_testing.ts
|
|
3320
|
+
// src/_api/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_testing.ts
|
|
3304
3321
|
import { consola as consola8 } from "consola";
|
|
3305
3322
|
|
|
3306
|
-
// src/generated/cfg_centrifugo/index.ts
|
|
3323
|
+
// src/_api/generated/cfg_centrifugo/index.ts
|
|
3307
3324
|
var TOKEN_KEY2 = "auth_token";
|
|
3308
3325
|
var REFRESH_TOKEN_KEY2 = "refresh_token";
|
|
3309
3326
|
function detectLocale2() {
|
|
@@ -3332,6 +3349,7 @@ var API2 = class {
|
|
|
3332
3349
|
this._locale = options?.locale || null;
|
|
3333
3350
|
this._loadTokensFromStorage();
|
|
3334
3351
|
this._client = new APIClient2(this.baseUrl, {
|
|
3352
|
+
httpClient: this.options?.httpClient,
|
|
3335
3353
|
retryConfig: this.options?.retryConfig,
|
|
3336
3354
|
loggerConfig: this.options?.loggerConfig,
|
|
3337
3355
|
tokenGetter: /* @__PURE__ */ __name(() => this.getToken(), "tokenGetter")
|
|
@@ -3351,6 +3369,7 @@ var API2 = class {
|
|
|
3351
3369
|
}
|
|
3352
3370
|
_reinitClients() {
|
|
3353
3371
|
this._client = new APIClient2(this.baseUrl, {
|
|
3372
|
+
httpClient: this.options?.httpClient,
|
|
3354
3373
|
retryConfig: this.options?.retryConfig,
|
|
3355
3374
|
loggerConfig: this.options?.loggerConfig,
|
|
3356
3375
|
tokenGetter: /* @__PURE__ */ __name(() => this.getToken(), "tokenGetter")
|
|
@@ -3497,6 +3516,7 @@ export {
|
|
|
3497
3516
|
enums_exports as Enums,
|
|
3498
3517
|
FetchAdapter,
|
|
3499
3518
|
fetchers_exports as Fetchers,
|
|
3519
|
+
KeepAliveFetchAdapter,
|
|
3500
3520
|
LocalStorageAdapter,
|
|
3501
3521
|
MemoryStorageAdapter,
|
|
3502
3522
|
NetworkError,
|