@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/auth.cjs
CHANGED
|
@@ -318,7 +318,7 @@ var useAutoAuth = /* @__PURE__ */ __name((options = {}) => {
|
|
|
318
318
|
// src/auth/hooks/useTwoFactor.ts
|
|
319
319
|
var import_react6 = require("react");
|
|
320
320
|
|
|
321
|
-
// src/generated/cfg_accounts/accounts__auth/client.ts
|
|
321
|
+
// src/_api/generated/cfg_accounts/accounts__auth/client.ts
|
|
322
322
|
var Auth = class {
|
|
323
323
|
static {
|
|
324
324
|
__name(this, "Auth");
|
|
@@ -335,7 +335,7 @@ var Auth = class {
|
|
|
335
335
|
}
|
|
336
336
|
};
|
|
337
337
|
|
|
338
|
-
// src/generated/cfg_accounts/accounts__oauth/client.ts
|
|
338
|
+
// src/_api/generated/cfg_accounts/accounts__oauth/client.ts
|
|
339
339
|
var Oauth = class {
|
|
340
340
|
static {
|
|
341
341
|
__name(this, "Oauth");
|
|
@@ -392,7 +392,7 @@ var Oauth = class {
|
|
|
392
392
|
}
|
|
393
393
|
};
|
|
394
394
|
|
|
395
|
-
// src/generated/cfg_accounts/accounts__user_profile/client.ts
|
|
395
|
+
// src/_api/generated/cfg_accounts/accounts__user_profile/client.ts
|
|
396
396
|
var UserProfile = class {
|
|
397
397
|
static {
|
|
398
398
|
__name(this, "UserProfile");
|
|
@@ -474,7 +474,7 @@ var UserProfile = class {
|
|
|
474
474
|
}
|
|
475
475
|
};
|
|
476
476
|
|
|
477
|
-
// src/generated/cfg_accounts/accounts/client.ts
|
|
477
|
+
// src/_api/generated/cfg_accounts/accounts/client.ts
|
|
478
478
|
var Accounts = class {
|
|
479
479
|
static {
|
|
480
480
|
__name(this, "Accounts");
|
|
@@ -501,7 +501,7 @@ var Accounts = class {
|
|
|
501
501
|
}
|
|
502
502
|
};
|
|
503
503
|
|
|
504
|
-
// src/generated/cfg_accounts/http.ts
|
|
504
|
+
// src/_api/generated/cfg_accounts/http.ts
|
|
505
505
|
var FetchAdapter = class {
|
|
506
506
|
static {
|
|
507
507
|
__name(this, "FetchAdapter");
|
|
@@ -559,7 +559,7 @@ var FetchAdapter = class {
|
|
|
559
559
|
}
|
|
560
560
|
};
|
|
561
561
|
|
|
562
|
-
// src/generated/cfg_accounts/errors.ts
|
|
562
|
+
// src/_api/generated/cfg_accounts/errors.ts
|
|
563
563
|
var APIError = class extends Error {
|
|
564
564
|
constructor(statusCode, statusText, response, url, message) {
|
|
565
565
|
super(message || `HTTP ${statusCode}: ${statusText}`);
|
|
@@ -648,7 +648,7 @@ var NetworkError = class extends Error {
|
|
|
648
648
|
}
|
|
649
649
|
};
|
|
650
650
|
|
|
651
|
-
// src/generated/cfg_accounts/logger.ts
|
|
651
|
+
// src/_api/generated/cfg_accounts/logger.ts
|
|
652
652
|
var import_consola2 = require("consola");
|
|
653
653
|
var DEFAULT_CONFIG = {
|
|
654
654
|
enabled: process.env.NODE_ENV !== "production",
|
|
@@ -802,7 +802,7 @@ var APILogger = class {
|
|
|
802
802
|
};
|
|
803
803
|
var defaultLogger = new APILogger();
|
|
804
804
|
|
|
805
|
-
// src/generated/cfg_accounts/retry.ts
|
|
805
|
+
// src/_api/generated/cfg_accounts/retry.ts
|
|
806
806
|
var import_p_retry = __toESM(require("p-retry"), 1);
|
|
807
807
|
var DEFAULT_RETRY_CONFIG = {
|
|
808
808
|
retries: 3,
|
|
@@ -862,7 +862,7 @@ async function withRetry(fn, config) {
|
|
|
862
862
|
}
|
|
863
863
|
__name(withRetry, "withRetry");
|
|
864
864
|
|
|
865
|
-
// src/generated/cfg_accounts/client.ts
|
|
865
|
+
// src/_api/generated/cfg_accounts/client.ts
|
|
866
866
|
var APIClient = class {
|
|
867
867
|
constructor(baseUrl, options) {
|
|
868
868
|
this.logger = null;
|
|
@@ -1076,7 +1076,7 @@ var APIClient = class {
|
|
|
1076
1076
|
}
|
|
1077
1077
|
};
|
|
1078
1078
|
|
|
1079
|
-
// src/generated/cfg_accounts/storage.ts
|
|
1079
|
+
// src/_api/generated/cfg_accounts/storage.ts
|
|
1080
1080
|
var LocalStorageAdapter = class {
|
|
1081
1081
|
static {
|
|
1082
1082
|
__name(this, "LocalStorageAdapter");
|
|
@@ -1123,7 +1123,7 @@ var LocalStorageAdapter = class {
|
|
|
1123
1123
|
}
|
|
1124
1124
|
};
|
|
1125
1125
|
|
|
1126
|
-
// src/generated/cfg_accounts/enums.ts
|
|
1126
|
+
// src/_api/generated/cfg_accounts/enums.ts
|
|
1127
1127
|
var enums_exports = {};
|
|
1128
1128
|
__export(enums_exports, {
|
|
1129
1129
|
OAuthConnectionProvider: () => OAuthConnectionProvider,
|
|
@@ -1139,51 +1139,51 @@ var OTPRequestRequestChannel = /* @__PURE__ */ ((OTPRequestRequestChannel2) => {
|
|
|
1139
1139
|
return OTPRequestRequestChannel2;
|
|
1140
1140
|
})(OTPRequestRequestChannel || {});
|
|
1141
1141
|
|
|
1142
|
-
// src/generated/cfg_accounts/_utils/schemas/AccountDeleteResponse.schema.ts
|
|
1142
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/AccountDeleteResponse.schema.ts
|
|
1143
1143
|
var import_zod = require("zod");
|
|
1144
1144
|
var AccountDeleteResponseSchema = import_zod.z.object({
|
|
1145
1145
|
success: import_zod.z.boolean(),
|
|
1146
1146
|
message: import_zod.z.string()
|
|
1147
1147
|
});
|
|
1148
1148
|
|
|
1149
|
-
// src/generated/cfg_accounts/_utils/schemas/CentrifugoToken.schema.ts
|
|
1149
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/CentrifugoToken.schema.ts
|
|
1150
1150
|
var import_zod2 = require("zod");
|
|
1151
1151
|
var CentrifugoTokenSchema = import_zod2.z.object({
|
|
1152
1152
|
token: import_zod2.z.string(),
|
|
1153
|
-
centrifugo_url: import_zod2.z.string()
|
|
1153
|
+
centrifugo_url: import_zod2.z.string(),
|
|
1154
1154
|
expires_at: import_zod2.z.string().datetime({ offset: true }),
|
|
1155
1155
|
channels: import_zod2.z.array(import_zod2.z.string())
|
|
1156
1156
|
});
|
|
1157
1157
|
|
|
1158
|
-
// src/generated/cfg_accounts/_utils/schemas/CfgAccountsProfileAvatarCreateRequest.schema.ts
|
|
1158
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/CfgAccountsProfileAvatarCreateRequest.schema.ts
|
|
1159
1159
|
var import_zod3 = require("zod");
|
|
1160
1160
|
var CfgAccountsProfileAvatarCreateRequestSchema = import_zod3.z.object({
|
|
1161
1161
|
avatar: import_zod3.z.union([import_zod3.z.instanceof(File), import_zod3.z.instanceof(Blob)])
|
|
1162
1162
|
});
|
|
1163
1163
|
|
|
1164
|
-
// src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeRequestRequest.schema.ts
|
|
1164
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeRequestRequest.schema.ts
|
|
1165
1165
|
var import_zod4 = require("zod");
|
|
1166
1166
|
var OAuthAuthorizeRequestRequestSchema = import_zod4.z.object({
|
|
1167
|
-
redirect_uri: import_zod4.z.string().
|
|
1168
|
-
source_url: import_zod4.z.string().
|
|
1167
|
+
redirect_uri: import_zod4.z.string().optional(),
|
|
1168
|
+
source_url: import_zod4.z.string().optional()
|
|
1169
1169
|
});
|
|
1170
1170
|
|
|
1171
|
-
// src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeResponse.schema.ts
|
|
1171
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeResponse.schema.ts
|
|
1172
1172
|
var import_zod5 = require("zod");
|
|
1173
1173
|
var OAuthAuthorizeResponseSchema = import_zod5.z.object({
|
|
1174
|
-
authorization_url: import_zod5.z.string()
|
|
1174
|
+
authorization_url: import_zod5.z.string(),
|
|
1175
1175
|
state: import_zod5.z.string()
|
|
1176
1176
|
});
|
|
1177
1177
|
|
|
1178
|
-
// src/generated/cfg_accounts/_utils/schemas/OAuthCallbackRequestRequest.schema.ts
|
|
1178
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OAuthCallbackRequestRequest.schema.ts
|
|
1179
1179
|
var import_zod6 = require("zod");
|
|
1180
1180
|
var OAuthCallbackRequestRequestSchema = import_zod6.z.object({
|
|
1181
1181
|
code: import_zod6.z.string().min(10).max(500),
|
|
1182
1182
|
state: import_zod6.z.string().min(20).max(100),
|
|
1183
|
-
redirect_uri: import_zod6.z.string().
|
|
1183
|
+
redirect_uri: import_zod6.z.string().optional()
|
|
1184
1184
|
});
|
|
1185
1185
|
|
|
1186
|
-
// src/generated/cfg_accounts/_utils/schemas/OAuthConnection.schema.ts
|
|
1186
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OAuthConnection.schema.ts
|
|
1187
1187
|
var import_zod7 = require("zod");
|
|
1188
1188
|
var OAuthConnectionSchema = import_zod7.z.object({
|
|
1189
1189
|
id: import_zod7.z.number().int(),
|
|
@@ -1191,31 +1191,31 @@ var OAuthConnectionSchema = import_zod7.z.object({
|
|
|
1191
1191
|
provider_display: import_zod7.z.string(),
|
|
1192
1192
|
provider_username: import_zod7.z.string(),
|
|
1193
1193
|
provider_email: import_zod7.z.email(),
|
|
1194
|
-
provider_avatar_url: import_zod7.z.string()
|
|
1194
|
+
provider_avatar_url: import_zod7.z.string(),
|
|
1195
1195
|
connected_at: import_zod7.z.string().datetime({ offset: true }),
|
|
1196
1196
|
last_login_at: import_zod7.z.string().datetime({ offset: true })
|
|
1197
1197
|
});
|
|
1198
1198
|
|
|
1199
|
-
// src/generated/cfg_accounts/_utils/schemas/OAuthDisconnectRequestRequest.schema.ts
|
|
1199
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OAuthDisconnectRequestRequest.schema.ts
|
|
1200
1200
|
var import_zod8 = require("zod");
|
|
1201
1201
|
var OAuthDisconnectRequestRequestSchema = import_zod8.z.object({
|
|
1202
1202
|
provider: import_zod8.z.nativeEnum(OAuthConnectionProvider)
|
|
1203
1203
|
});
|
|
1204
1204
|
|
|
1205
|
-
// src/generated/cfg_accounts/_utils/schemas/OAuthError.schema.ts
|
|
1205
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OAuthError.schema.ts
|
|
1206
1206
|
var import_zod9 = require("zod");
|
|
1207
1207
|
var OAuthErrorSchema = import_zod9.z.object({
|
|
1208
1208
|
error: import_zod9.z.string(),
|
|
1209
1209
|
error_description: import_zod9.z.string().optional()
|
|
1210
1210
|
});
|
|
1211
1211
|
|
|
1212
|
-
// src/generated/cfg_accounts/_utils/schemas/OAuthProvidersResponse.schema.ts
|
|
1212
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OAuthProvidersResponse.schema.ts
|
|
1213
1213
|
var import_zod10 = require("zod");
|
|
1214
1214
|
var OAuthProvidersResponseSchema = import_zod10.z.object({
|
|
1215
1215
|
providers: import_zod10.z.array(import_zod10.z.record(import_zod10.z.string(), import_zod10.z.any()))
|
|
1216
1216
|
});
|
|
1217
1217
|
|
|
1218
|
-
// src/generated/cfg_accounts/_utils/schemas/OAuthTokenResponse.schema.ts
|
|
1218
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OAuthTokenResponse.schema.ts
|
|
1219
1219
|
var import_zod11 = require("zod");
|
|
1220
1220
|
var OAuthTokenResponseSchema = import_zod11.z.object({
|
|
1221
1221
|
requires_2fa: import_zod11.z.boolean().optional(),
|
|
@@ -1228,39 +1228,39 @@ var OAuthTokenResponseSchema = import_zod11.z.object({
|
|
|
1228
1228
|
should_prompt_2fa: import_zod11.z.boolean().optional()
|
|
1229
1229
|
});
|
|
1230
1230
|
|
|
1231
|
-
// src/generated/cfg_accounts/_utils/schemas/OTPErrorResponse.schema.ts
|
|
1231
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OTPErrorResponse.schema.ts
|
|
1232
1232
|
var import_zod12 = require("zod");
|
|
1233
1233
|
var OTPErrorResponseSchema = import_zod12.z.object({
|
|
1234
1234
|
error: import_zod12.z.string()
|
|
1235
1235
|
});
|
|
1236
1236
|
|
|
1237
|
-
// src/generated/cfg_accounts/_utils/schemas/OTPRequestRequest.schema.ts
|
|
1237
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OTPRequestRequest.schema.ts
|
|
1238
1238
|
var import_zod13 = require("zod");
|
|
1239
1239
|
var OTPRequestRequestSchema = import_zod13.z.object({
|
|
1240
1240
|
identifier: import_zod13.z.string().min(1),
|
|
1241
1241
|
channel: import_zod13.z.nativeEnum(OTPRequestRequestChannel).optional(),
|
|
1242
|
-
source_url: import_zod13.z.string().
|
|
1242
|
+
source_url: import_zod13.z.string().optional()
|
|
1243
1243
|
});
|
|
1244
1244
|
|
|
1245
|
-
// src/generated/cfg_accounts/_utils/schemas/OTPRequestResponse.schema.ts
|
|
1245
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OTPRequestResponse.schema.ts
|
|
1246
1246
|
var import_zod14 = require("zod");
|
|
1247
1247
|
var OTPRequestResponseSchema = import_zod14.z.object({
|
|
1248
1248
|
message: import_zod14.z.string()
|
|
1249
1249
|
});
|
|
1250
1250
|
|
|
1251
|
-
// src/generated/cfg_accounts/_utils/schemas/OTPVerifyRequest.schema.ts
|
|
1251
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OTPVerifyRequest.schema.ts
|
|
1252
1252
|
var import_zod15 = require("zod");
|
|
1253
1253
|
var OTPVerifyRequestSchema = import_zod15.z.object({
|
|
1254
1254
|
identifier: import_zod15.z.string().min(1),
|
|
1255
1255
|
otp: import_zod15.z.string().min(6).max(6),
|
|
1256
1256
|
channel: import_zod15.z.nativeEnum(OTPRequestRequestChannel).optional(),
|
|
1257
|
-
source_url: import_zod15.z.string().
|
|
1257
|
+
source_url: import_zod15.z.string().optional()
|
|
1258
1258
|
});
|
|
1259
1259
|
|
|
1260
|
-
// src/generated/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts
|
|
1260
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts
|
|
1261
1261
|
var import_zod17 = require("zod");
|
|
1262
1262
|
|
|
1263
|
-
// src/generated/cfg_accounts/_utils/schemas/User.schema.ts
|
|
1263
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/User.schema.ts
|
|
1264
1264
|
var import_zod16 = require("zod");
|
|
1265
1265
|
var UserSchema = import_zod16.z.object({
|
|
1266
1266
|
id: import_zod16.z.number().int(),
|
|
@@ -1274,7 +1274,7 @@ var UserSchema = import_zod16.z.object({
|
|
|
1274
1274
|
phone: import_zod16.z.string().max(20).optional(),
|
|
1275
1275
|
position: import_zod16.z.string().max(100).optional(),
|
|
1276
1276
|
language: import_zod16.z.string().max(10).optional(),
|
|
1277
|
-
avatar: import_zod16.z.string().
|
|
1277
|
+
avatar: import_zod16.z.string().nullable(),
|
|
1278
1278
|
is_staff: import_zod16.z.boolean(),
|
|
1279
1279
|
is_superuser: import_zod16.z.boolean(),
|
|
1280
1280
|
date_joined: import_zod16.z.string().datetime({ offset: true }),
|
|
@@ -1283,7 +1283,7 @@ var UserSchema = import_zod16.z.object({
|
|
|
1283
1283
|
centrifugo: CentrifugoTokenSchema.nullable()
|
|
1284
1284
|
});
|
|
1285
1285
|
|
|
1286
|
-
// src/generated/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts
|
|
1286
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts
|
|
1287
1287
|
var OTPVerifyResponseSchema = import_zod17.z.object({
|
|
1288
1288
|
requires_2fa: import_zod17.z.boolean().optional(),
|
|
1289
1289
|
session_id: import_zod17.z.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(),
|
|
@@ -1293,7 +1293,7 @@ var OTPVerifyResponseSchema = import_zod17.z.object({
|
|
|
1293
1293
|
should_prompt_2fa: import_zod17.z.boolean().optional()
|
|
1294
1294
|
});
|
|
1295
1295
|
|
|
1296
|
-
// src/generated/cfg_accounts/_utils/schemas/PatchedUserProfileUpdateRequest.schema.ts
|
|
1296
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/PatchedUserProfileUpdateRequest.schema.ts
|
|
1297
1297
|
var import_zod18 = require("zod");
|
|
1298
1298
|
var PatchedUserProfileUpdateRequestSchema = import_zod18.z.object({
|
|
1299
1299
|
first_name: import_zod18.z.string().max(50).optional(),
|
|
@@ -1304,20 +1304,20 @@ var PatchedUserProfileUpdateRequestSchema = import_zod18.z.object({
|
|
|
1304
1304
|
language: import_zod18.z.string().max(10).optional()
|
|
1305
1305
|
});
|
|
1306
1306
|
|
|
1307
|
-
// src/generated/cfg_accounts/_utils/schemas/TokenRefresh.schema.ts
|
|
1307
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/TokenRefresh.schema.ts
|
|
1308
1308
|
var import_zod19 = require("zod");
|
|
1309
1309
|
var TokenRefreshSchema = import_zod19.z.object({
|
|
1310
1310
|
access: import_zod19.z.string(),
|
|
1311
1311
|
refresh: import_zod19.z.string()
|
|
1312
1312
|
});
|
|
1313
1313
|
|
|
1314
|
-
// src/generated/cfg_accounts/_utils/schemas/TokenRefreshRequest.schema.ts
|
|
1314
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/TokenRefreshRequest.schema.ts
|
|
1315
1315
|
var import_zod20 = require("zod");
|
|
1316
1316
|
var TokenRefreshRequestSchema = import_zod20.z.object({
|
|
1317
1317
|
refresh: import_zod20.z.string().min(1)
|
|
1318
1318
|
});
|
|
1319
1319
|
|
|
1320
|
-
// src/generated/cfg_accounts/_utils/schemas/UserProfileUpdateRequest.schema.ts
|
|
1320
|
+
// src/_api/generated/cfg_accounts/_utils/schemas/UserProfileUpdateRequest.schema.ts
|
|
1321
1321
|
var import_zod21 = require("zod");
|
|
1322
1322
|
var UserProfileUpdateRequestSchema = import_zod21.z.object({
|
|
1323
1323
|
first_name: import_zod21.z.string().max(50).optional(),
|
|
@@ -1328,10 +1328,10 @@ var UserProfileUpdateRequestSchema = import_zod21.z.object({
|
|
|
1328
1328
|
language: import_zod21.z.string().max(10).optional()
|
|
1329
1329
|
});
|
|
1330
1330
|
|
|
1331
|
-
// src/generated/cfg_accounts/_utils/fetchers/accounts.ts
|
|
1331
|
+
// src/_api/generated/cfg_accounts/_utils/fetchers/accounts.ts
|
|
1332
1332
|
var import_consola3 = require("consola");
|
|
1333
1333
|
|
|
1334
|
-
// src/generated/cfg_accounts/api-instance.ts
|
|
1334
|
+
// src/_api/generated/cfg_accounts/api-instance.ts
|
|
1335
1335
|
var globalAPI = null;
|
|
1336
1336
|
var autoConfigAttempted = false;
|
|
1337
1337
|
function tryAutoConfigureFromEnv() {
|
|
@@ -1356,7 +1356,7 @@ function getAPIInstance() {
|
|
|
1356
1356
|
}
|
|
1357
1357
|
__name(getAPIInstance, "getAPIInstance");
|
|
1358
1358
|
|
|
1359
|
-
// src/generated/cfg_accounts/_utils/fetchers/accounts.ts
|
|
1359
|
+
// src/_api/generated/cfg_accounts/_utils/fetchers/accounts.ts
|
|
1360
1360
|
async function createAccountsOtpRequestCreate(data, client) {
|
|
1361
1361
|
const api2 = client || getAPIInstance();
|
|
1362
1362
|
const response = await api2.accounts.otpRequestCreate(data);
|
|
@@ -1444,7 +1444,7 @@ Method: POST`);
|
|
|
1444
1444
|
}
|
|
1445
1445
|
__name(createAccountsOtpVerifyCreate, "createAccountsOtpVerifyCreate");
|
|
1446
1446
|
|
|
1447
|
-
// src/generated/cfg_accounts/_utils/fetchers/accounts__auth.ts
|
|
1447
|
+
// src/_api/generated/cfg_accounts/_utils/fetchers/accounts__auth.ts
|
|
1448
1448
|
var import_consola4 = require("consola");
|
|
1449
1449
|
async function createAccountsTokenRefreshCreate(data, client) {
|
|
1450
1450
|
const api2 = client || getAPIInstance();
|
|
@@ -1490,10 +1490,10 @@ Method: POST`);
|
|
|
1490
1490
|
}
|
|
1491
1491
|
__name(createAccountsTokenRefreshCreate, "createAccountsTokenRefreshCreate");
|
|
1492
1492
|
|
|
1493
|
-
// src/generated/cfg_accounts/_utils/fetchers/accounts__oauth.ts
|
|
1493
|
+
// src/_api/generated/cfg_accounts/_utils/fetchers/accounts__oauth.ts
|
|
1494
1494
|
var import_consola5 = require("consola");
|
|
1495
1495
|
|
|
1496
|
-
// src/generated/cfg_accounts/_utils/fetchers/accounts__user_profile.ts
|
|
1496
|
+
// src/_api/generated/cfg_accounts/_utils/fetchers/accounts__user_profile.ts
|
|
1497
1497
|
var import_consola6 = require("consola");
|
|
1498
1498
|
async function getAccountsProfileRetrieve(client) {
|
|
1499
1499
|
const api2 = client || getAPIInstance();
|
|
@@ -1668,7 +1668,7 @@ Method: PUT`);
|
|
|
1668
1668
|
}
|
|
1669
1669
|
__name(updateAccountsProfileUpdateUpdate, "updateAccountsProfileUpdateUpdate");
|
|
1670
1670
|
|
|
1671
|
-
// src/generated/cfg_accounts/index.ts
|
|
1671
|
+
// src/_api/generated/cfg_accounts/index.ts
|
|
1672
1672
|
var TOKEN_KEY = "auth_token";
|
|
1673
1673
|
var REFRESH_TOKEN_KEY = "refresh_token";
|
|
1674
1674
|
function detectLocale() {
|
|
@@ -1697,6 +1697,7 @@ var API = class {
|
|
|
1697
1697
|
this._locale = options?.locale || null;
|
|
1698
1698
|
this._loadTokensFromStorage();
|
|
1699
1699
|
this._client = new APIClient(this.baseUrl, {
|
|
1700
|
+
httpClient: this.options?.httpClient,
|
|
1700
1701
|
retryConfig: this.options?.retryConfig,
|
|
1701
1702
|
loggerConfig: this.options?.loggerConfig,
|
|
1702
1703
|
tokenGetter: /* @__PURE__ */ __name(() => this.getToken(), "tokenGetter")
|
|
@@ -1716,6 +1717,7 @@ var API = class {
|
|
|
1716
1717
|
}
|
|
1717
1718
|
_reinitClients() {
|
|
1718
1719
|
this._client = new APIClient(this.baseUrl, {
|
|
1720
|
+
httpClient: this.options?.httpClient,
|
|
1719
1721
|
retryConfig: this.options?.retryConfig,
|
|
1720
1722
|
loggerConfig: this.options?.loggerConfig,
|
|
1721
1723
|
tokenGetter: /* @__PURE__ */ __name(() => this.getToken(), "tokenGetter")
|
|
@@ -1828,7 +1830,7 @@ var API = class {
|
|
|
1828
1830
|
}
|
|
1829
1831
|
};
|
|
1830
1832
|
|
|
1831
|
-
// src/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/client.ts
|
|
1833
|
+
// src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/client.ts
|
|
1832
1834
|
var CentrifugoAdminApi = class {
|
|
1833
1835
|
static {
|
|
1834
1836
|
__name(this, "CentrifugoAdminApi");
|
|
@@ -1893,7 +1895,7 @@ var CentrifugoAdminApi = class {
|
|
|
1893
1895
|
}
|
|
1894
1896
|
};
|
|
1895
1897
|
|
|
1896
|
-
// src/generated/cfg_centrifugo/centrifugo__centrifugo_auth/client.ts
|
|
1898
|
+
// src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_auth/client.ts
|
|
1897
1899
|
var CentrifugoAuth = class {
|
|
1898
1900
|
static {
|
|
1899
1901
|
__name(this, "CentrifugoAuth");
|
|
@@ -1914,7 +1916,7 @@ var CentrifugoAuth = class {
|
|
|
1914
1916
|
}
|
|
1915
1917
|
};
|
|
1916
1918
|
|
|
1917
|
-
// src/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/client.ts
|
|
1919
|
+
// src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/client.ts
|
|
1918
1920
|
var CentrifugoMonitoring = class {
|
|
1919
1921
|
static {
|
|
1920
1922
|
__name(this, "CentrifugoMonitoring");
|
|
@@ -1936,7 +1938,7 @@ var CentrifugoMonitoring = class {
|
|
|
1936
1938
|
params = { hours: args[0] };
|
|
1937
1939
|
}
|
|
1938
1940
|
const response = await this.client.request("GET", "/cfg/centrifugo/monitor/channels/", { params });
|
|
1939
|
-
return response
|
|
1941
|
+
return response;
|
|
1940
1942
|
}
|
|
1941
1943
|
/**
|
|
1942
1944
|
* Get Centrifugo health status
|
|
@@ -1998,7 +2000,7 @@ var CentrifugoMonitoring = class {
|
|
|
1998
2000
|
}
|
|
1999
2001
|
};
|
|
2000
2002
|
|
|
2001
|
-
// src/generated/cfg_centrifugo/centrifugo__centrifugo_testing/client.ts
|
|
2003
|
+
// src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_testing/client.ts
|
|
2002
2004
|
var CentrifugoTesting = class {
|
|
2003
2005
|
static {
|
|
2004
2006
|
__name(this, "CentrifugoTesting");
|
|
@@ -2038,7 +2040,7 @@ var CentrifugoTesting = class {
|
|
|
2038
2040
|
}
|
|
2039
2041
|
};
|
|
2040
2042
|
|
|
2041
|
-
// src/generated/cfg_centrifugo/http.ts
|
|
2043
|
+
// src/_api/generated/cfg_centrifugo/http.ts
|
|
2042
2044
|
var FetchAdapter2 = class {
|
|
2043
2045
|
static {
|
|
2044
2046
|
__name(this, "FetchAdapter");
|
|
@@ -2096,7 +2098,7 @@ var FetchAdapter2 = class {
|
|
|
2096
2098
|
}
|
|
2097
2099
|
};
|
|
2098
2100
|
|
|
2099
|
-
// src/generated/cfg_centrifugo/errors.ts
|
|
2101
|
+
// src/_api/generated/cfg_centrifugo/errors.ts
|
|
2100
2102
|
var APIError2 = class extends Error {
|
|
2101
2103
|
constructor(statusCode, statusText, response, url, message) {
|
|
2102
2104
|
super(message || `HTTP ${statusCode}: ${statusText}`);
|
|
@@ -2185,7 +2187,7 @@ var NetworkError2 = class extends Error {
|
|
|
2185
2187
|
}
|
|
2186
2188
|
};
|
|
2187
2189
|
|
|
2188
|
-
// src/generated/cfg_centrifugo/logger.ts
|
|
2190
|
+
// src/_api/generated/cfg_centrifugo/logger.ts
|
|
2189
2191
|
var import_consola7 = require("consola");
|
|
2190
2192
|
var DEFAULT_CONFIG2 = {
|
|
2191
2193
|
enabled: process.env.NODE_ENV !== "production",
|
|
@@ -2339,7 +2341,7 @@ var APILogger2 = class {
|
|
|
2339
2341
|
};
|
|
2340
2342
|
var defaultLogger2 = new APILogger2();
|
|
2341
2343
|
|
|
2342
|
-
// src/generated/cfg_centrifugo/retry.ts
|
|
2344
|
+
// src/_api/generated/cfg_centrifugo/retry.ts
|
|
2343
2345
|
var import_p_retry2 = __toESM(require("p-retry"), 1);
|
|
2344
2346
|
var DEFAULT_RETRY_CONFIG2 = {
|
|
2345
2347
|
retries: 3,
|
|
@@ -2399,7 +2401,7 @@ async function withRetry2(fn, config) {
|
|
|
2399
2401
|
}
|
|
2400
2402
|
__name(withRetry2, "withRetry");
|
|
2401
2403
|
|
|
2402
|
-
// src/generated/cfg_centrifugo/client.ts
|
|
2404
|
+
// src/_api/generated/cfg_centrifugo/client.ts
|
|
2403
2405
|
var APIClient2 = class {
|
|
2404
2406
|
constructor(baseUrl, options) {
|
|
2405
2407
|
this.logger = null;
|
|
@@ -2613,7 +2615,7 @@ var APIClient2 = class {
|
|
|
2613
2615
|
}
|
|
2614
2616
|
};
|
|
2615
2617
|
|
|
2616
|
-
// src/generated/cfg_centrifugo/storage.ts
|
|
2618
|
+
// src/_api/generated/cfg_centrifugo/storage.ts
|
|
2617
2619
|
var LocalStorageAdapter2 = class {
|
|
2618
2620
|
static {
|
|
2619
2621
|
__name(this, "LocalStorageAdapter");
|
|
@@ -2660,41 +2662,41 @@ var LocalStorageAdapter2 = class {
|
|
|
2660
2662
|
}
|
|
2661
2663
|
};
|
|
2662
2664
|
|
|
2663
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelInfo.schema.ts
|
|
2665
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelInfo.schema.ts
|
|
2664
2666
|
var import_zod22 = require("zod");
|
|
2665
2667
|
var CentrifugoChannelInfoSchema = import_zod22.z.object({
|
|
2666
2668
|
num_clients: import_zod22.z.number().int()
|
|
2667
2669
|
});
|
|
2668
2670
|
|
|
2669
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsRequestRequest.schema.ts
|
|
2671
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsRequestRequest.schema.ts
|
|
2670
2672
|
var import_zod23 = require("zod");
|
|
2671
2673
|
var CentrifugoChannelsRequestRequestSchema = import_zod23.z.object({
|
|
2672
2674
|
pattern: import_zod23.z.string().nullable().optional()
|
|
2673
2675
|
});
|
|
2674
2676
|
|
|
2675
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts
|
|
2677
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts
|
|
2676
2678
|
var import_zod26 = require("zod");
|
|
2677
2679
|
|
|
2678
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResult.schema.ts
|
|
2680
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResult.schema.ts
|
|
2679
2681
|
var import_zod24 = require("zod");
|
|
2680
2682
|
var CentrifugoChannelsResultSchema = import_zod24.z.object({
|
|
2681
2683
|
channels: import_zod24.z.record(import_zod24.z.string(), CentrifugoChannelInfoSchema)
|
|
2682
2684
|
});
|
|
2683
2685
|
|
|
2684
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoError.schema.ts
|
|
2686
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoError.schema.ts
|
|
2685
2687
|
var import_zod25 = require("zod");
|
|
2686
2688
|
var CentrifugoErrorSchema = import_zod25.z.object({
|
|
2687
2689
|
code: import_zod25.z.number().int().optional(),
|
|
2688
2690
|
message: import_zod25.z.string().optional()
|
|
2689
2691
|
});
|
|
2690
2692
|
|
|
2691
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts
|
|
2693
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts
|
|
2692
2694
|
var CentrifugoChannelsResponseSchema = import_zod26.z.object({
|
|
2693
2695
|
error: CentrifugoErrorSchema.nullable().optional(),
|
|
2694
2696
|
result: CentrifugoChannelsResultSchema.nullable().optional()
|
|
2695
2697
|
});
|
|
2696
2698
|
|
|
2697
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoClientInfo.schema.ts
|
|
2699
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoClientInfo.schema.ts
|
|
2698
2700
|
var import_zod27 = require("zod");
|
|
2699
2701
|
var CentrifugoClientInfoSchema = import_zod27.z.object({
|
|
2700
2702
|
user: import_zod27.z.string(),
|
|
@@ -2703,7 +2705,7 @@ var CentrifugoClientInfoSchema = import_zod27.z.object({
|
|
|
2703
2705
|
chan_info: import_zod27.z.record(import_zod27.z.string(), import_zod27.z.any()).nullable().optional()
|
|
2704
2706
|
});
|
|
2705
2707
|
|
|
2706
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHealthCheck.schema.ts
|
|
2708
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHealthCheck.schema.ts
|
|
2707
2709
|
var import_zod28 = require("zod");
|
|
2708
2710
|
var CentrifugoHealthCheckSchema = import_zod28.z.object({
|
|
2709
2711
|
status: import_zod28.z.string(),
|
|
@@ -2712,17 +2714,17 @@ var CentrifugoHealthCheckSchema = import_zod28.z.object({
|
|
|
2712
2714
|
timestamp: import_zod28.z.string()
|
|
2713
2715
|
});
|
|
2714
2716
|
|
|
2715
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts
|
|
2717
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts
|
|
2716
2718
|
var import_zod30 = require("zod");
|
|
2717
2719
|
|
|
2718
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoStreamPosition.schema.ts
|
|
2720
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoStreamPosition.schema.ts
|
|
2719
2721
|
var import_zod29 = require("zod");
|
|
2720
2722
|
var CentrifugoStreamPositionSchema = import_zod29.z.object({
|
|
2721
2723
|
offset: import_zod29.z.number().int(),
|
|
2722
2724
|
epoch: import_zod29.z.string()
|
|
2723
2725
|
});
|
|
2724
2726
|
|
|
2725
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts
|
|
2727
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts
|
|
2726
2728
|
var CentrifugoHistoryRequestRequestSchema = import_zod30.z.object({
|
|
2727
2729
|
channel: import_zod30.z.string(),
|
|
2728
2730
|
limit: import_zod30.z.number().int().nullable().optional(),
|
|
@@ -2730,13 +2732,13 @@ var CentrifugoHistoryRequestRequestSchema = import_zod30.z.object({
|
|
|
2730
2732
|
reverse: import_zod30.z.boolean().nullable().optional()
|
|
2731
2733
|
});
|
|
2732
2734
|
|
|
2733
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts
|
|
2735
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts
|
|
2734
2736
|
var import_zod33 = require("zod");
|
|
2735
2737
|
|
|
2736
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts
|
|
2738
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts
|
|
2737
2739
|
var import_zod32 = require("zod");
|
|
2738
2740
|
|
|
2739
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPublication.schema.ts
|
|
2741
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPublication.schema.ts
|
|
2740
2742
|
var import_zod31 = require("zod");
|
|
2741
2743
|
var CentrifugoPublicationSchema = import_zod31.z.object({
|
|
2742
2744
|
data: import_zod31.z.record(import_zod31.z.string(), import_zod31.z.any()),
|
|
@@ -2745,43 +2747,43 @@ var CentrifugoPublicationSchema = import_zod31.z.object({
|
|
|
2745
2747
|
tags: import_zod31.z.record(import_zod31.z.string(), import_zod31.z.any()).nullable().optional()
|
|
2746
2748
|
});
|
|
2747
2749
|
|
|
2748
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts
|
|
2750
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts
|
|
2749
2751
|
var CentrifugoHistoryResultSchema = import_zod32.z.object({
|
|
2750
2752
|
publications: import_zod32.z.array(CentrifugoPublicationSchema),
|
|
2751
2753
|
epoch: import_zod32.z.string(),
|
|
2752
2754
|
offset: import_zod32.z.number().int()
|
|
2753
2755
|
});
|
|
2754
2756
|
|
|
2755
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts
|
|
2757
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts
|
|
2756
2758
|
var CentrifugoHistoryResponseSchema = import_zod33.z.object({
|
|
2757
2759
|
error: CentrifugoErrorSchema.nullable().optional(),
|
|
2758
2760
|
result: CentrifugoHistoryResultSchema.nullable().optional()
|
|
2759
2761
|
});
|
|
2760
2762
|
|
|
2761
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts
|
|
2763
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts
|
|
2762
2764
|
var import_zod38 = require("zod");
|
|
2763
2765
|
|
|
2764
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts
|
|
2766
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts
|
|
2765
2767
|
var import_zod37 = require("zod");
|
|
2766
2768
|
|
|
2767
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts
|
|
2769
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts
|
|
2768
2770
|
var import_zod36 = require("zod");
|
|
2769
2771
|
|
|
2770
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoMetrics.schema.ts
|
|
2772
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoMetrics.schema.ts
|
|
2771
2773
|
var import_zod34 = require("zod");
|
|
2772
2774
|
var CentrifugoMetricsSchema = import_zod34.z.object({
|
|
2773
2775
|
interval: import_zod34.z.number(),
|
|
2774
2776
|
items: import_zod34.z.record(import_zod34.z.string(), import_zod34.z.number())
|
|
2775
2777
|
});
|
|
2776
2778
|
|
|
2777
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoProcess.schema.ts
|
|
2779
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoProcess.schema.ts
|
|
2778
2780
|
var import_zod35 = require("zod");
|
|
2779
2781
|
var CentrifugoProcessSchema = import_zod35.z.object({
|
|
2780
2782
|
cpu: import_zod35.z.number(),
|
|
2781
2783
|
rss: import_zod35.z.number().int()
|
|
2782
2784
|
});
|
|
2783
2785
|
|
|
2784
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts
|
|
2786
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts
|
|
2785
2787
|
var CentrifugoNodeInfoSchema = import_zod36.z.object({
|
|
2786
2788
|
uid: import_zod36.z.string(),
|
|
2787
2789
|
name: import_zod36.z.string(),
|
|
@@ -2795,18 +2797,18 @@ var CentrifugoNodeInfoSchema = import_zod36.z.object({
|
|
|
2795
2797
|
process: CentrifugoProcessSchema.nullable().optional()
|
|
2796
2798
|
});
|
|
2797
2799
|
|
|
2798
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts
|
|
2800
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts
|
|
2799
2801
|
var CentrifugoInfoResultSchema = import_zod37.z.object({
|
|
2800
2802
|
nodes: import_zod37.z.array(CentrifugoNodeInfoSchema)
|
|
2801
2803
|
});
|
|
2802
2804
|
|
|
2803
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts
|
|
2805
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts
|
|
2804
2806
|
var CentrifugoInfoResponseSchema = import_zod38.z.object({
|
|
2805
2807
|
error: CentrifugoErrorSchema.nullable().optional(),
|
|
2806
2808
|
result: CentrifugoInfoResultSchema.nullable().optional()
|
|
2807
2809
|
});
|
|
2808
2810
|
|
|
2809
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoOverviewStats.schema.ts
|
|
2811
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoOverviewStats.schema.ts
|
|
2810
2812
|
var import_zod39 = require("zod");
|
|
2811
2813
|
var CentrifugoOverviewStatsSchema = import_zod39.z.object({
|
|
2812
2814
|
total: import_zod39.z.number().int(),
|
|
@@ -2819,53 +2821,53 @@ var CentrifugoOverviewStatsSchema = import_zod39.z.object({
|
|
|
2819
2821
|
period_hours: import_zod39.z.number().int()
|
|
2820
2822
|
});
|
|
2821
2823
|
|
|
2822
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceRequestRequest.schema.ts
|
|
2824
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceRequestRequest.schema.ts
|
|
2823
2825
|
var import_zod40 = require("zod");
|
|
2824
2826
|
var CentrifugoPresenceRequestRequestSchema = import_zod40.z.object({
|
|
2825
2827
|
channel: import_zod40.z.string()
|
|
2826
2828
|
});
|
|
2827
2829
|
|
|
2828
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts
|
|
2830
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts
|
|
2829
2831
|
var import_zod42 = require("zod");
|
|
2830
2832
|
|
|
2831
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResult.schema.ts
|
|
2833
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResult.schema.ts
|
|
2832
2834
|
var import_zod41 = require("zod");
|
|
2833
2835
|
var CentrifugoPresenceResultSchema = import_zod41.z.object({
|
|
2834
2836
|
presence: import_zod41.z.record(import_zod41.z.string(), CentrifugoClientInfoSchema)
|
|
2835
2837
|
});
|
|
2836
2838
|
|
|
2837
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts
|
|
2839
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts
|
|
2838
2840
|
var CentrifugoPresenceResponseSchema = import_zod42.z.object({
|
|
2839
2841
|
error: CentrifugoErrorSchema.nullable().optional(),
|
|
2840
2842
|
result: CentrifugoPresenceResultSchema.nullable().optional()
|
|
2841
2843
|
});
|
|
2842
2844
|
|
|
2843
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsRequestRequest.schema.ts
|
|
2845
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsRequestRequest.schema.ts
|
|
2844
2846
|
var import_zod43 = require("zod");
|
|
2845
2847
|
var CentrifugoPresenceStatsRequestRequestSchema = import_zod43.z.object({
|
|
2846
2848
|
channel: import_zod43.z.string()
|
|
2847
2849
|
});
|
|
2848
2850
|
|
|
2849
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts
|
|
2851
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts
|
|
2850
2852
|
var import_zod45 = require("zod");
|
|
2851
2853
|
|
|
2852
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResult.schema.ts
|
|
2854
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResult.schema.ts
|
|
2853
2855
|
var import_zod44 = require("zod");
|
|
2854
2856
|
var CentrifugoPresenceStatsResultSchema = import_zod44.z.object({
|
|
2855
2857
|
num_clients: import_zod44.z.number().int(),
|
|
2856
2858
|
num_users: import_zod44.z.number().int()
|
|
2857
2859
|
});
|
|
2858
2860
|
|
|
2859
|
-
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts
|
|
2861
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts
|
|
2860
2862
|
var CentrifugoPresenceStatsResponseSchema = import_zod45.z.object({
|
|
2861
2863
|
error: CentrifugoErrorSchema.nullable().optional(),
|
|
2862
2864
|
result: CentrifugoPresenceStatsResultSchema.nullable().optional()
|
|
2863
2865
|
});
|
|
2864
2866
|
|
|
2865
|
-
// src/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts
|
|
2867
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts
|
|
2866
2868
|
var import_zod47 = require("zod");
|
|
2867
2869
|
|
|
2868
|
-
// src/generated/cfg_centrifugo/_utils/schemas/ChannelStats.schema.ts
|
|
2870
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/ChannelStats.schema.ts
|
|
2869
2871
|
var import_zod46 = require("zod");
|
|
2870
2872
|
var ChannelStatsSchema = import_zod46.z.object({
|
|
2871
2873
|
channel: import_zod46.z.string(),
|
|
@@ -2877,13 +2879,13 @@ var ChannelStatsSchema = import_zod46.z.object({
|
|
|
2877
2879
|
last_activity_at: import_zod46.z.string().nullable()
|
|
2878
2880
|
});
|
|
2879
2881
|
|
|
2880
|
-
// src/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts
|
|
2882
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts
|
|
2881
2883
|
var ChannelListSchema = import_zod47.z.object({
|
|
2882
2884
|
channels: import_zod47.z.array(ChannelStatsSchema),
|
|
2883
2885
|
total_channels: import_zod47.z.number().int()
|
|
2884
2886
|
});
|
|
2885
2887
|
|
|
2886
|
-
// src/generated/cfg_centrifugo/_utils/schemas/ConnectionTokenResponse.schema.ts
|
|
2888
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/ConnectionTokenResponse.schema.ts
|
|
2887
2889
|
var import_zod48 = require("zod");
|
|
2888
2890
|
var ConnectionTokenResponseSchema = import_zod48.z.object({
|
|
2889
2891
|
token: import_zod48.z.string(),
|
|
@@ -2892,14 +2894,14 @@ var ConnectionTokenResponseSchema = import_zod48.z.object({
|
|
|
2892
2894
|
channels: import_zod48.z.array(import_zod48.z.string())
|
|
2893
2895
|
});
|
|
2894
2896
|
|
|
2895
|
-
// src/generated/cfg_centrifugo/_utils/schemas/ManualAckRequestRequest.schema.ts
|
|
2897
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/ManualAckRequestRequest.schema.ts
|
|
2896
2898
|
var import_zod49 = require("zod");
|
|
2897
2899
|
var ManualAckRequestRequestSchema = import_zod49.z.object({
|
|
2898
2900
|
message_id: import_zod49.z.string(),
|
|
2899
2901
|
client_id: import_zod49.z.string()
|
|
2900
2902
|
});
|
|
2901
2903
|
|
|
2902
|
-
// src/generated/cfg_centrifugo/_utils/schemas/ManualAckResponse.schema.ts
|
|
2904
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/ManualAckResponse.schema.ts
|
|
2903
2905
|
var import_zod50 = require("zod");
|
|
2904
2906
|
var ManualAckResponseSchema = import_zod50.z.object({
|
|
2905
2907
|
success: import_zod50.z.boolean(),
|
|
@@ -2907,10 +2909,10 @@ var ManualAckResponseSchema = import_zod50.z.object({
|
|
|
2907
2909
|
error: import_zod50.z.string().nullable().optional()
|
|
2908
2910
|
});
|
|
2909
2911
|
|
|
2910
|
-
// src/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts
|
|
2912
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts
|
|
2911
2913
|
var import_zod52 = require("zod");
|
|
2912
2914
|
|
|
2913
|
-
// src/generated/cfg_centrifugo/_utils/schemas/Publish.schema.ts
|
|
2915
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/Publish.schema.ts
|
|
2914
2916
|
var import_zod51 = require("zod");
|
|
2915
2917
|
var PublishSchema = import_zod51.z.object({
|
|
2916
2918
|
message_id: import_zod51.z.string(),
|
|
@@ -2926,7 +2928,7 @@ var PublishSchema = import_zod51.z.object({
|
|
|
2926
2928
|
error_message: import_zod51.z.string().nullable()
|
|
2927
2929
|
});
|
|
2928
2930
|
|
|
2929
|
-
// src/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts
|
|
2931
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts
|
|
2930
2932
|
var PaginatedPublishListSchema = import_zod52.z.object({
|
|
2931
2933
|
count: import_zod52.z.number().int(),
|
|
2932
2934
|
page: import_zod52.z.number().int(),
|
|
@@ -2939,7 +2941,7 @@ var PaginatedPublishListSchema = import_zod52.z.object({
|
|
|
2939
2941
|
results: import_zod52.z.array(PublishSchema)
|
|
2940
2942
|
});
|
|
2941
2943
|
|
|
2942
|
-
// src/generated/cfg_centrifugo/_utils/schemas/PublishTestRequestRequest.schema.ts
|
|
2944
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/PublishTestRequestRequest.schema.ts
|
|
2943
2945
|
var import_zod53 = require("zod");
|
|
2944
2946
|
var PublishTestRequestRequestSchema = import_zod53.z.object({
|
|
2945
2947
|
channel: import_zod53.z.string(),
|
|
@@ -2948,7 +2950,7 @@ var PublishTestRequestRequestSchema = import_zod53.z.object({
|
|
|
2948
2950
|
ack_timeout: import_zod53.z.number().int().min(1).max(60).optional()
|
|
2949
2951
|
});
|
|
2950
2952
|
|
|
2951
|
-
// src/generated/cfg_centrifugo/_utils/schemas/PublishTestResponse.schema.ts
|
|
2953
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/PublishTestResponse.schema.ts
|
|
2952
2954
|
var import_zod54 = require("zod");
|
|
2953
2955
|
var PublishTestResponseSchema = import_zod54.z.object({
|
|
2954
2956
|
success: import_zod54.z.boolean(),
|
|
@@ -2959,7 +2961,7 @@ var PublishTestResponseSchema = import_zod54.z.object({
|
|
|
2959
2961
|
error: import_zod54.z.string().nullable().optional()
|
|
2960
2962
|
});
|
|
2961
2963
|
|
|
2962
|
-
// src/generated/cfg_centrifugo/_utils/schemas/TimelineItem.schema.ts
|
|
2964
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/TimelineItem.schema.ts
|
|
2963
2965
|
var import_zod55 = require("zod");
|
|
2964
2966
|
var TimelineItemSchema = import_zod55.z.object({
|
|
2965
2967
|
timestamp: import_zod55.z.string(),
|
|
@@ -2969,7 +2971,7 @@ var TimelineItemSchema = import_zod55.z.object({
|
|
|
2969
2971
|
timeout: import_zod55.z.number().int()
|
|
2970
2972
|
});
|
|
2971
2973
|
|
|
2972
|
-
// src/generated/cfg_centrifugo/_utils/schemas/TimelineResponse.schema.ts
|
|
2974
|
+
// src/_api/generated/cfg_centrifugo/_utils/schemas/TimelineResponse.schema.ts
|
|
2973
2975
|
var import_zod56 = require("zod");
|
|
2974
2976
|
var TimelineResponseSchema = import_zod56.z.object({
|
|
2975
2977
|
timeline: import_zod56.z.array(TimelineItemSchema),
|
|
@@ -2977,19 +2979,19 @@ var TimelineResponseSchema = import_zod56.z.object({
|
|
|
2977
2979
|
interval: import_zod56.z.string()
|
|
2978
2980
|
});
|
|
2979
2981
|
|
|
2980
|
-
// src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_admin_api.ts
|
|
2982
|
+
// src/_api/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_admin_api.ts
|
|
2981
2983
|
var import_consola8 = require("consola");
|
|
2982
2984
|
|
|
2983
|
-
// src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_auth.ts
|
|
2985
|
+
// src/_api/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_auth.ts
|
|
2984
2986
|
var import_consola9 = require("consola");
|
|
2985
2987
|
|
|
2986
|
-
// src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_monitoring.ts
|
|
2988
|
+
// src/_api/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_monitoring.ts
|
|
2987
2989
|
var import_consola10 = require("consola");
|
|
2988
2990
|
|
|
2989
|
-
// src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_testing.ts
|
|
2991
|
+
// src/_api/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_testing.ts
|
|
2990
2992
|
var import_consola11 = require("consola");
|
|
2991
2993
|
|
|
2992
|
-
// src/generated/cfg_centrifugo/index.ts
|
|
2994
|
+
// src/_api/generated/cfg_centrifugo/index.ts
|
|
2993
2995
|
var TOKEN_KEY2 = "auth_token";
|
|
2994
2996
|
var REFRESH_TOKEN_KEY2 = "refresh_token";
|
|
2995
2997
|
function detectLocale2() {
|
|
@@ -3018,6 +3020,7 @@ var API2 = class {
|
|
|
3018
3020
|
this._locale = options?.locale || null;
|
|
3019
3021
|
this._loadTokensFromStorage();
|
|
3020
3022
|
this._client = new APIClient2(this.baseUrl, {
|
|
3023
|
+
httpClient: this.options?.httpClient,
|
|
3021
3024
|
retryConfig: this.options?.retryConfig,
|
|
3022
3025
|
loggerConfig: this.options?.loggerConfig,
|
|
3023
3026
|
tokenGetter: /* @__PURE__ */ __name(() => this.getToken(), "tokenGetter")
|
|
@@ -3037,6 +3040,7 @@ var API2 = class {
|
|
|
3037
3040
|
}
|
|
3038
3041
|
_reinitClients() {
|
|
3039
3042
|
this._client = new APIClient2(this.baseUrl, {
|
|
3043
|
+
httpClient: this.options?.httpClient,
|
|
3040
3044
|
retryConfig: this.options?.retryConfig,
|
|
3041
3045
|
loggerConfig: this.options?.loggerConfig,
|
|
3042
3046
|
tokenGetter: /* @__PURE__ */ __name(() => this.getToken(), "tokenGetter")
|
|
@@ -3149,7 +3153,7 @@ var API2 = class {
|
|
|
3149
3153
|
}
|
|
3150
3154
|
};
|
|
3151
3155
|
|
|
3152
|
-
// src/generated/cfg_totp/totp__backup_codes/client.ts
|
|
3156
|
+
// src/_api/generated/cfg_totp/totp__backup_codes/client.ts
|
|
3153
3157
|
var BackupCodes = class {
|
|
3154
3158
|
static {
|
|
3155
3159
|
__name(this, "BackupCodes");
|
|
@@ -3174,7 +3178,7 @@ var BackupCodes = class {
|
|
|
3174
3178
|
}
|
|
3175
3179
|
};
|
|
3176
3180
|
|
|
3177
|
-
// src/generated/cfg_totp/totp__totp_management/client.ts
|
|
3181
|
+
// src/_api/generated/cfg_totp/totp__totp_management/client.ts
|
|
3178
3182
|
var TotpManagement = class {
|
|
3179
3183
|
static {
|
|
3180
3184
|
__name(this, "TotpManagement");
|
|
@@ -3205,7 +3209,7 @@ var TotpManagement = class {
|
|
|
3205
3209
|
}
|
|
3206
3210
|
};
|
|
3207
3211
|
|
|
3208
|
-
// src/generated/cfg_totp/totp__totp_setup/client.ts
|
|
3212
|
+
// src/_api/generated/cfg_totp/totp__totp_setup/client.ts
|
|
3209
3213
|
var TotpSetup = class {
|
|
3210
3214
|
static {
|
|
3211
3215
|
__name(this, "TotpSetup");
|
|
@@ -3231,7 +3235,7 @@ var TotpSetup = class {
|
|
|
3231
3235
|
}
|
|
3232
3236
|
};
|
|
3233
3237
|
|
|
3234
|
-
// src/generated/cfg_totp/totp__totp_verification/client.ts
|
|
3238
|
+
// src/_api/generated/cfg_totp/totp__totp_verification/client.ts
|
|
3235
3239
|
var TotpVerification = class {
|
|
3236
3240
|
static {
|
|
3237
3241
|
__name(this, "TotpVerification");
|
|
@@ -3257,7 +3261,7 @@ var TotpVerification = class {
|
|
|
3257
3261
|
}
|
|
3258
3262
|
};
|
|
3259
3263
|
|
|
3260
|
-
// src/generated/cfg_totp/totp/client.ts
|
|
3264
|
+
// src/_api/generated/cfg_totp/totp/client.ts
|
|
3261
3265
|
var Totp = class {
|
|
3262
3266
|
static {
|
|
3263
3267
|
__name(this, "Totp");
|
|
@@ -3275,7 +3279,7 @@ var Totp = class {
|
|
|
3275
3279
|
}
|
|
3276
3280
|
};
|
|
3277
3281
|
|
|
3278
|
-
// src/generated/cfg_totp/http.ts
|
|
3282
|
+
// src/_api/generated/cfg_totp/http.ts
|
|
3279
3283
|
var FetchAdapter3 = class {
|
|
3280
3284
|
static {
|
|
3281
3285
|
__name(this, "FetchAdapter");
|
|
@@ -3333,7 +3337,7 @@ var FetchAdapter3 = class {
|
|
|
3333
3337
|
}
|
|
3334
3338
|
};
|
|
3335
3339
|
|
|
3336
|
-
// src/generated/cfg_totp/errors.ts
|
|
3340
|
+
// src/_api/generated/cfg_totp/errors.ts
|
|
3337
3341
|
var APIError3 = class extends Error {
|
|
3338
3342
|
constructor(statusCode, statusText, response, url, message) {
|
|
3339
3343
|
super(message || `HTTP ${statusCode}: ${statusText}`);
|
|
@@ -3422,7 +3426,7 @@ var NetworkError3 = class extends Error {
|
|
|
3422
3426
|
}
|
|
3423
3427
|
};
|
|
3424
3428
|
|
|
3425
|
-
// src/generated/cfg_totp/logger.ts
|
|
3429
|
+
// src/_api/generated/cfg_totp/logger.ts
|
|
3426
3430
|
var import_consola12 = require("consola");
|
|
3427
3431
|
var DEFAULT_CONFIG3 = {
|
|
3428
3432
|
enabled: process.env.NODE_ENV !== "production",
|
|
@@ -3576,7 +3580,7 @@ var APILogger3 = class {
|
|
|
3576
3580
|
};
|
|
3577
3581
|
var defaultLogger3 = new APILogger3();
|
|
3578
3582
|
|
|
3579
|
-
// src/generated/cfg_totp/retry.ts
|
|
3583
|
+
// src/_api/generated/cfg_totp/retry.ts
|
|
3580
3584
|
var import_p_retry3 = __toESM(require("p-retry"), 1);
|
|
3581
3585
|
var DEFAULT_RETRY_CONFIG3 = {
|
|
3582
3586
|
retries: 3,
|
|
@@ -3636,7 +3640,7 @@ async function withRetry3(fn, config) {
|
|
|
3636
3640
|
}
|
|
3637
3641
|
__name(withRetry3, "withRetry");
|
|
3638
3642
|
|
|
3639
|
-
// src/generated/cfg_totp/client.ts
|
|
3643
|
+
// src/_api/generated/cfg_totp/client.ts
|
|
3640
3644
|
var APIClient3 = class {
|
|
3641
3645
|
constructor(baseUrl, options) {
|
|
3642
3646
|
this.logger = null;
|
|
@@ -3851,7 +3855,7 @@ var APIClient3 = class {
|
|
|
3851
3855
|
}
|
|
3852
3856
|
};
|
|
3853
3857
|
|
|
3854
|
-
// src/generated/cfg_totp/storage.ts
|
|
3858
|
+
// src/_api/generated/cfg_totp/storage.ts
|
|
3855
3859
|
var LocalStorageAdapter3 = class {
|
|
3856
3860
|
static {
|
|
3857
3861
|
__name(this, "LocalStorageAdapter");
|
|
@@ -3898,7 +3902,7 @@ var LocalStorageAdapter3 = class {
|
|
|
3898
3902
|
}
|
|
3899
3903
|
};
|
|
3900
3904
|
|
|
3901
|
-
// src/generated/cfg_totp/enums.ts
|
|
3905
|
+
// src/_api/generated/cfg_totp/enums.ts
|
|
3902
3906
|
var DeviceListStatus = /* @__PURE__ */ ((DeviceListStatus2) => {
|
|
3903
3907
|
DeviceListStatus2["PENDING"] = "pending";
|
|
3904
3908
|
DeviceListStatus2["ACTIVE"] = "active";
|
|
@@ -3906,20 +3910,20 @@ var DeviceListStatus = /* @__PURE__ */ ((DeviceListStatus2) => {
|
|
|
3906
3910
|
return DeviceListStatus2;
|
|
3907
3911
|
})(DeviceListStatus || {});
|
|
3908
3912
|
|
|
3909
|
-
// src/generated/cfg_totp/_utils/schemas/BackupCodesRegenerateRequest.schema.ts
|
|
3913
|
+
// src/_api/generated/cfg_totp/_utils/schemas/BackupCodesRegenerateRequest.schema.ts
|
|
3910
3914
|
var import_zod57 = require("zod");
|
|
3911
3915
|
var BackupCodesRegenerateRequestSchema = import_zod57.z.object({
|
|
3912
3916
|
code: import_zod57.z.string().min(6).max(6)
|
|
3913
3917
|
});
|
|
3914
3918
|
|
|
3915
|
-
// src/generated/cfg_totp/_utils/schemas/BackupCodesRegenerateResponse.schema.ts
|
|
3919
|
+
// src/_api/generated/cfg_totp/_utils/schemas/BackupCodesRegenerateResponse.schema.ts
|
|
3916
3920
|
var import_zod58 = require("zod");
|
|
3917
3921
|
var BackupCodesRegenerateResponseSchema = import_zod58.z.object({
|
|
3918
3922
|
backup_codes: import_zod58.z.array(import_zod58.z.string()),
|
|
3919
3923
|
warning: import_zod58.z.string()
|
|
3920
3924
|
});
|
|
3921
3925
|
|
|
3922
|
-
// src/generated/cfg_totp/_utils/schemas/BackupCodesStatus.schema.ts
|
|
3926
|
+
// src/_api/generated/cfg_totp/_utils/schemas/BackupCodesStatus.schema.ts
|
|
3923
3927
|
var import_zod59 = require("zod");
|
|
3924
3928
|
var BackupCodesStatusSchema = import_zod59.z.object({
|
|
3925
3929
|
remaining_count: import_zod59.z.number().int(),
|
|
@@ -3927,14 +3931,14 @@ var BackupCodesStatusSchema = import_zod59.z.object({
|
|
|
3927
3931
|
warning: import_zod59.z.string().nullable().optional()
|
|
3928
3932
|
});
|
|
3929
3933
|
|
|
3930
|
-
// src/generated/cfg_totp/_utils/schemas/ConfirmSetupRequest.schema.ts
|
|
3934
|
+
// src/_api/generated/cfg_totp/_utils/schemas/ConfirmSetupRequest.schema.ts
|
|
3931
3935
|
var import_zod60 = require("zod");
|
|
3932
3936
|
var ConfirmSetupRequestSchema = import_zod60.z.object({
|
|
3933
3937
|
device_id: import_zod60.z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
|
|
3934
3938
|
code: import_zod60.z.string().min(6).max(6)
|
|
3935
3939
|
});
|
|
3936
3940
|
|
|
3937
|
-
// src/generated/cfg_totp/_utils/schemas/ConfirmSetupResponse.schema.ts
|
|
3941
|
+
// src/_api/generated/cfg_totp/_utils/schemas/ConfirmSetupResponse.schema.ts
|
|
3938
3942
|
var import_zod61 = require("zod");
|
|
3939
3943
|
var ConfirmSetupResponseSchema = import_zod61.z.object({
|
|
3940
3944
|
message: import_zod61.z.string(),
|
|
@@ -3942,7 +3946,7 @@ var ConfirmSetupResponseSchema = import_zod61.z.object({
|
|
|
3942
3946
|
backup_codes_warning: import_zod61.z.string()
|
|
3943
3947
|
});
|
|
3944
3948
|
|
|
3945
|
-
// src/generated/cfg_totp/_utils/schemas/DeviceList.schema.ts
|
|
3949
|
+
// src/_api/generated/cfg_totp/_utils/schemas/DeviceList.schema.ts
|
|
3946
3950
|
var import_zod62 = require("zod");
|
|
3947
3951
|
var DeviceListSchema = import_zod62.z.object({
|
|
3948
3952
|
id: import_zod62.z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
|
|
@@ -3954,20 +3958,20 @@ var DeviceListSchema = import_zod62.z.object({
|
|
|
3954
3958
|
last_used_at: import_zod62.z.string().datetime({ offset: true }).nullable()
|
|
3955
3959
|
});
|
|
3956
3960
|
|
|
3957
|
-
// src/generated/cfg_totp/_utils/schemas/DeviceListResponse.schema.ts
|
|
3961
|
+
// src/_api/generated/cfg_totp/_utils/schemas/DeviceListResponse.schema.ts
|
|
3958
3962
|
var import_zod63 = require("zod");
|
|
3959
3963
|
var DeviceListResponseSchema = import_zod63.z.object({
|
|
3960
3964
|
devices: import_zod63.z.array(DeviceListSchema),
|
|
3961
3965
|
has_2fa_enabled: import_zod63.z.boolean()
|
|
3962
3966
|
});
|
|
3963
3967
|
|
|
3964
|
-
// src/generated/cfg_totp/_utils/schemas/DisableRequest.schema.ts
|
|
3968
|
+
// src/_api/generated/cfg_totp/_utils/schemas/DisableRequest.schema.ts
|
|
3965
3969
|
var import_zod64 = require("zod");
|
|
3966
3970
|
var DisableRequestSchema = import_zod64.z.object({
|
|
3967
3971
|
code: import_zod64.z.string().min(6).max(6)
|
|
3968
3972
|
});
|
|
3969
3973
|
|
|
3970
|
-
// src/generated/cfg_totp/_utils/schemas/PaginatedDeviceListResponseList.schema.ts
|
|
3974
|
+
// src/_api/generated/cfg_totp/_utils/schemas/PaginatedDeviceListResponseList.schema.ts
|
|
3971
3975
|
var import_zod65 = require("zod");
|
|
3972
3976
|
var PaginatedDeviceListResponseListSchema = import_zod65.z.object({
|
|
3973
3977
|
count: import_zod65.z.number().int(),
|
|
@@ -3981,13 +3985,13 @@ var PaginatedDeviceListResponseListSchema = import_zod65.z.object({
|
|
|
3981
3985
|
results: import_zod65.z.array(DeviceListResponseSchema)
|
|
3982
3986
|
});
|
|
3983
3987
|
|
|
3984
|
-
// src/generated/cfg_totp/_utils/schemas/SetupRequest.schema.ts
|
|
3988
|
+
// src/_api/generated/cfg_totp/_utils/schemas/SetupRequest.schema.ts
|
|
3985
3989
|
var import_zod66 = require("zod");
|
|
3986
3990
|
var SetupRequestSchema = import_zod66.z.object({
|
|
3987
3991
|
device_name: import_zod66.z.string().min(1).max(100).optional()
|
|
3988
3992
|
});
|
|
3989
3993
|
|
|
3990
|
-
// src/generated/cfg_totp/_utils/schemas/SetupResponse.schema.ts
|
|
3994
|
+
// src/_api/generated/cfg_totp/_utils/schemas/SetupResponse.schema.ts
|
|
3991
3995
|
var import_zod67 = require("zod");
|
|
3992
3996
|
var SetupResponseSchema = import_zod67.z.object({
|
|
3993
3997
|
device_id: import_zod67.z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
|
|
@@ -3997,7 +4001,7 @@ var SetupResponseSchema = import_zod67.z.object({
|
|
|
3997
4001
|
expires_in: import_zod67.z.number().int()
|
|
3998
4002
|
});
|
|
3999
4003
|
|
|
4000
|
-
// src/generated/cfg_totp/_utils/schemas/TotpVerifyUser.schema.ts
|
|
4004
|
+
// src/_api/generated/cfg_totp/_utils/schemas/TotpVerifyUser.schema.ts
|
|
4001
4005
|
var import_zod68 = require("zod");
|
|
4002
4006
|
var TotpVerifyUserSchema = import_zod68.z.object({
|
|
4003
4007
|
id: import_zod68.z.number().int(),
|
|
@@ -4011,7 +4015,7 @@ var TotpVerifyUserSchema = import_zod68.z.object({
|
|
|
4011
4015
|
phone: import_zod68.z.string().max(20).optional(),
|
|
4012
4016
|
position: import_zod68.z.string().max(100).optional(),
|
|
4013
4017
|
language: import_zod68.z.string().max(10).optional(),
|
|
4014
|
-
avatar: import_zod68.z.string().
|
|
4018
|
+
avatar: import_zod68.z.string().nullable(),
|
|
4015
4019
|
is_staff: import_zod68.z.boolean(),
|
|
4016
4020
|
is_superuser: import_zod68.z.boolean(),
|
|
4017
4021
|
date_joined: import_zod68.z.string().datetime({ offset: true }),
|
|
@@ -4019,21 +4023,21 @@ var TotpVerifyUserSchema = import_zod68.z.object({
|
|
|
4019
4023
|
unanswered_messages_count: import_zod68.z.number().int()
|
|
4020
4024
|
});
|
|
4021
4025
|
|
|
4022
|
-
// src/generated/cfg_totp/_utils/schemas/VerifyBackupRequest.schema.ts
|
|
4026
|
+
// src/_api/generated/cfg_totp/_utils/schemas/VerifyBackupRequest.schema.ts
|
|
4023
4027
|
var import_zod69 = require("zod");
|
|
4024
4028
|
var VerifyBackupRequestSchema = import_zod69.z.object({
|
|
4025
4029
|
session_id: import_zod69.z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
|
|
4026
4030
|
backup_code: import_zod69.z.string().min(8).max(8)
|
|
4027
4031
|
});
|
|
4028
4032
|
|
|
4029
|
-
// src/generated/cfg_totp/_utils/schemas/VerifyRequest.schema.ts
|
|
4033
|
+
// src/_api/generated/cfg_totp/_utils/schemas/VerifyRequest.schema.ts
|
|
4030
4034
|
var import_zod70 = require("zod");
|
|
4031
4035
|
var VerifyRequestSchema = import_zod70.z.object({
|
|
4032
4036
|
session_id: import_zod70.z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
|
|
4033
4037
|
code: import_zod70.z.string().min(6).max(6)
|
|
4034
4038
|
});
|
|
4035
4039
|
|
|
4036
|
-
// src/generated/cfg_totp/_utils/schemas/VerifyResponse.schema.ts
|
|
4040
|
+
// src/_api/generated/cfg_totp/_utils/schemas/VerifyResponse.schema.ts
|
|
4037
4041
|
var import_zod71 = require("zod");
|
|
4038
4042
|
var VerifyResponseSchema = import_zod71.z.object({
|
|
4039
4043
|
message: import_zod71.z.string(),
|
|
@@ -4044,19 +4048,19 @@ var VerifyResponseSchema = import_zod71.z.object({
|
|
|
4044
4048
|
warning: import_zod71.z.string().optional()
|
|
4045
4049
|
});
|
|
4046
4050
|
|
|
4047
|
-
// src/generated/cfg_totp/_utils/fetchers/totp__backup_codes.ts
|
|
4051
|
+
// src/_api/generated/cfg_totp/_utils/fetchers/totp__backup_codes.ts
|
|
4048
4052
|
var import_consola13 = require("consola");
|
|
4049
4053
|
|
|
4050
|
-
// src/generated/cfg_totp/_utils/fetchers/totp__totp_management.ts
|
|
4054
|
+
// src/_api/generated/cfg_totp/_utils/fetchers/totp__totp_management.ts
|
|
4051
4055
|
var import_consola14 = require("consola");
|
|
4052
4056
|
|
|
4053
|
-
// src/generated/cfg_totp/_utils/fetchers/totp__totp_setup.ts
|
|
4057
|
+
// src/_api/generated/cfg_totp/_utils/fetchers/totp__totp_setup.ts
|
|
4054
4058
|
var import_consola15 = require("consola");
|
|
4055
4059
|
|
|
4056
|
-
// src/generated/cfg_totp/_utils/fetchers/totp__totp_verification.ts
|
|
4060
|
+
// src/_api/generated/cfg_totp/_utils/fetchers/totp__totp_verification.ts
|
|
4057
4061
|
var import_consola16 = require("consola");
|
|
4058
4062
|
|
|
4059
|
-
// src/generated/cfg_totp/index.ts
|
|
4063
|
+
// src/_api/generated/cfg_totp/index.ts
|
|
4060
4064
|
var TOKEN_KEY3 = "auth_token";
|
|
4061
4065
|
var REFRESH_TOKEN_KEY3 = "refresh_token";
|
|
4062
4066
|
function detectLocale3() {
|
|
@@ -4085,6 +4089,7 @@ var API3 = class {
|
|
|
4085
4089
|
this._locale = options?.locale || null;
|
|
4086
4090
|
this._loadTokensFromStorage();
|
|
4087
4091
|
this._client = new APIClient3(this.baseUrl, {
|
|
4092
|
+
httpClient: this.options?.httpClient,
|
|
4088
4093
|
retryConfig: this.options?.retryConfig,
|
|
4089
4094
|
loggerConfig: this.options?.loggerConfig,
|
|
4090
4095
|
tokenGetter: /* @__PURE__ */ __name(() => this.getToken(), "tokenGetter")
|
|
@@ -4105,6 +4110,7 @@ var API3 = class {
|
|
|
4105
4110
|
}
|
|
4106
4111
|
_reinitClients() {
|
|
4107
4112
|
this._client = new APIClient3(this.baseUrl, {
|
|
4113
|
+
httpClient: this.options?.httpClient,
|
|
4108
4114
|
retryConfig: this.options?.retryConfig,
|
|
4109
4115
|
loggerConfig: this.options?.loggerConfig,
|
|
4110
4116
|
tokenGetter: /* @__PURE__ */ __name(() => this.getToken(), "tokenGetter")
|
|
@@ -4218,7 +4224,7 @@ var API3 = class {
|
|
|
4218
4224
|
}
|
|
4219
4225
|
};
|
|
4220
4226
|
|
|
4221
|
-
// src/generated/cfg_accounts/_utils/hooks/accounts__auth.ts
|
|
4227
|
+
// src/_api/generated/cfg_accounts/_utils/hooks/accounts__auth.ts
|
|
4222
4228
|
var import_swr = require("swr");
|
|
4223
4229
|
function useCreateAccountsTokenRefreshCreate() {
|
|
4224
4230
|
const { mutate } = (0, import_swr.useSWRConfig)();
|
|
@@ -4230,11 +4236,11 @@ function useCreateAccountsTokenRefreshCreate() {
|
|
|
4230
4236
|
}
|
|
4231
4237
|
__name(useCreateAccountsTokenRefreshCreate, "useCreateAccountsTokenRefreshCreate");
|
|
4232
4238
|
|
|
4233
|
-
// src/generated/cfg_accounts/_utils/hooks/accounts__oauth.ts
|
|
4239
|
+
// src/_api/generated/cfg_accounts/_utils/hooks/accounts__oauth.ts
|
|
4234
4240
|
var import_swr2 = __toESM(require("swr"), 1);
|
|
4235
4241
|
var import_swr3 = require("swr");
|
|
4236
4242
|
|
|
4237
|
-
// src/generated/cfg_accounts/_utils/hooks/accounts__user_profile.ts
|
|
4243
|
+
// src/_api/generated/cfg_accounts/_utils/hooks/accounts__user_profile.ts
|
|
4238
4244
|
var import_swr4 = __toESM(require("swr"), 1);
|
|
4239
4245
|
var import_swr5 = require("swr");
|
|
4240
4246
|
function useCreateAccountsProfileAvatarCreate() {
|
|
@@ -4250,7 +4256,7 @@ function usePartialUpdateAccountsProfilePartialUpdate() {
|
|
|
4250
4256
|
const { mutate } = (0, import_swr5.useSWRConfig)();
|
|
4251
4257
|
return async (data, client) => {
|
|
4252
4258
|
const result = await partialUpdateAccountsProfilePartialUpdate(data, client);
|
|
4253
|
-
mutate("cfg-accounts-profile
|
|
4259
|
+
mutate("cfg-accounts-profile");
|
|
4254
4260
|
return result;
|
|
4255
4261
|
};
|
|
4256
4262
|
}
|
|
@@ -4265,7 +4271,7 @@ function useUpdateAccountsProfileUpdateUpdate() {
|
|
|
4265
4271
|
}
|
|
4266
4272
|
__name(useUpdateAccountsProfileUpdateUpdate, "useUpdateAccountsProfileUpdateUpdate");
|
|
4267
4273
|
|
|
4268
|
-
// src/generated/cfg_accounts/_utils/hooks/accounts.ts
|
|
4274
|
+
// src/_api/generated/cfg_accounts/_utils/hooks/accounts.ts
|
|
4269
4275
|
var import_swr6 = require("swr");
|
|
4270
4276
|
function useCreateAccountsOtpRequestCreate() {
|
|
4271
4277
|
const { mutate } = (0, import_swr6.useSWRConfig)();
|
|
@@ -4286,33 +4292,33 @@ function useCreateAccountsOtpVerifyCreate() {
|
|
|
4286
4292
|
}
|
|
4287
4293
|
__name(useCreateAccountsOtpVerifyCreate, "useCreateAccountsOtpVerifyCreate");
|
|
4288
4294
|
|
|
4289
|
-
// src/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_admin_api.ts
|
|
4295
|
+
// src/_api/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_admin_api.ts
|
|
4290
4296
|
var import_swr7 = require("swr");
|
|
4291
4297
|
|
|
4292
|
-
// src/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_auth.ts
|
|
4298
|
+
// src/_api/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_auth.ts
|
|
4293
4299
|
var import_swr8 = __toESM(require("swr"), 1);
|
|
4294
4300
|
|
|
4295
|
-
// src/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_monitoring.ts
|
|
4301
|
+
// src/_api/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_monitoring.ts
|
|
4296
4302
|
var import_swr9 = __toESM(require("swr"), 1);
|
|
4297
4303
|
|
|
4298
|
-
// src/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_testing.ts
|
|
4304
|
+
// src/_api/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_testing.ts
|
|
4299
4305
|
var import_swr10 = require("swr");
|
|
4300
4306
|
|
|
4301
|
-
// src/generated/cfg_totp/_utils/hooks/totp__backup_codes.ts
|
|
4307
|
+
// src/_api/generated/cfg_totp/_utils/hooks/totp__backup_codes.ts
|
|
4302
4308
|
var import_swr11 = __toESM(require("swr"), 1);
|
|
4303
4309
|
var import_swr12 = require("swr");
|
|
4304
4310
|
|
|
4305
|
-
// src/generated/cfg_totp/_utils/hooks/totp__totp_management.ts
|
|
4311
|
+
// src/_api/generated/cfg_totp/_utils/hooks/totp__totp_management.ts
|
|
4306
4312
|
var import_swr13 = __toESM(require("swr"), 1);
|
|
4307
4313
|
var import_swr14 = require("swr");
|
|
4308
4314
|
|
|
4309
|
-
// src/generated/cfg_totp/_utils/hooks/totp__totp_setup.ts
|
|
4315
|
+
// src/_api/generated/cfg_totp/_utils/hooks/totp__totp_setup.ts
|
|
4310
4316
|
var import_swr15 = require("swr");
|
|
4311
4317
|
|
|
4312
|
-
// src/generated/cfg_totp/_utils/hooks/totp__totp_verification.ts
|
|
4318
|
+
// src/_api/generated/cfg_totp/_utils/hooks/totp__totp_verification.ts
|
|
4313
4319
|
var import_swr16 = require("swr");
|
|
4314
4320
|
|
|
4315
|
-
// src/generated/cfg_totp/_utils/hooks/totp.ts
|
|
4321
|
+
// src/_api/generated/cfg_totp/_utils/hooks/totp.ts
|
|
4316
4322
|
var import_swr17 = require("swr");
|
|
4317
4323
|
|
|
4318
4324
|
// src/clients.ts
|