@djangocfg/api 2.1.192 → 2.1.194
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 +37 -3
- package/dist/auth-server.cjs.map +1 -1
- package/dist/auth-server.mjs +37 -3
- package/dist/auth-server.mjs.map +1 -1
- package/dist/auth.cjs +102 -5
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +4 -0
- package/dist/auth.d.ts +4 -0
- package/dist/auth.mjs +102 -5
- package/dist/auth.mjs.map +1 -1
- package/dist/clients.cjs +107 -10
- package/dist/clients.cjs.map +1 -1
- package/dist/clients.d.cts +47 -0
- package/dist/clients.d.ts +47 -0
- package/dist/clients.mjs +107 -10
- package/dist/clients.mjs.map +1 -1
- package/dist/hooks.cjs +37 -3
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.d.cts +20 -0
- package/dist/hooks.d.ts +20 -0
- package/dist/hooks.mjs +37 -3
- package/dist/hooks.mjs.map +1 -1
- package/dist/index.cjs +69 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.mjs +69 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/generated/cfg_accounts/_utils/fetchers/accounts.ts +1 -0
- package/src/generated/cfg_accounts/_utils/fetchers/accounts__auth.ts +1 -0
- package/src/generated/cfg_accounts/_utils/fetchers/accounts__oauth.ts +1 -0
- package/src/generated/cfg_accounts/_utils/fetchers/accounts__user_profile.ts +1 -0
- package/src/generated/cfg_accounts/_utils/fetchers/index.ts +1 -0
- package/src/generated/cfg_accounts/_utils/hooks/accounts.ts +1 -0
- package/src/generated/cfg_accounts/_utils/hooks/accounts__auth.ts +1 -0
- package/src/generated/cfg_accounts/_utils/hooks/accounts__oauth.ts +1 -0
- package/src/generated/cfg_accounts/_utils/hooks/accounts__user_profile.ts +1 -0
- package/src/generated/cfg_accounts/_utils/hooks/index.ts +1 -0
- package/src/generated/cfg_accounts/_utils/schemas/PatchedUserProfileUpdateRequest.schema.ts +1 -0
- package/src/generated/cfg_accounts/_utils/schemas/User.schema.ts +1 -0
- package/src/generated/cfg_accounts/_utils/schemas/UserProfileUpdateRequest.schema.ts +1 -0
- package/src/generated/cfg_accounts/_utils/schemas/index.ts +1 -0
- package/src/generated/cfg_accounts/accounts/client.ts +1 -0
- package/src/generated/cfg_accounts/accounts/index.ts +1 -0
- package/src/generated/cfg_accounts/accounts/models.ts +2 -0
- package/src/generated/cfg_accounts/accounts__auth/client.ts +1 -0
- package/src/generated/cfg_accounts/accounts__auth/index.ts +1 -0
- package/src/generated/cfg_accounts/accounts__auth/models.ts +1 -0
- package/src/generated/cfg_accounts/accounts__oauth/client.ts +1 -0
- package/src/generated/cfg_accounts/accounts__oauth/index.ts +1 -0
- package/src/generated/cfg_accounts/accounts__oauth/models.ts +1 -0
- package/src/generated/cfg_accounts/accounts__user_profile/client.ts +1 -0
- package/src/generated/cfg_accounts/accounts__user_profile/index.ts +1 -0
- package/src/generated/cfg_accounts/accounts__user_profile/models.ts +4 -0
- package/src/generated/cfg_accounts/api-instance.ts +1 -0
- package/src/generated/cfg_accounts/enums.ts +1 -0
- package/src/generated/cfg_accounts/errors.ts +1 -0
- package/src/generated/cfg_accounts/http.ts +1 -0
- package/src/generated/cfg_accounts/index.ts +37 -0
- package/src/generated/cfg_accounts/logger.ts +1 -0
- package/src/generated/cfg_accounts/retry.ts +1 -0
- package/src/generated/cfg_accounts/schema.json +12 -0
- package/src/generated/cfg_accounts/storage.ts +1 -0
- package/src/generated/cfg_accounts/validation-events.ts +1 -0
- package/src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_admin_api.ts +1 -0
- package/src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_auth.ts +1 -0
- package/src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_monitoring.ts +1 -0
- package/src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_testing.ts +1 -0
- package/src/generated/cfg_centrifugo/_utils/fetchers/index.ts +1 -0
- package/src/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_admin_api.ts +1 -0
- package/src/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_auth.ts +1 -0
- package/src/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_monitoring.ts +5 -4
- package/src/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_testing.ts +1 -0
- package/src/generated/cfg_centrifugo/_utils/hooks/index.ts +1 -0
- package/src/generated/cfg_centrifugo/_utils/schemas/index.ts +1 -0
- package/src/generated/cfg_centrifugo/api-instance.ts +1 -0
- package/src/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/client.ts +1 -0
- package/src/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/index.ts +1 -0
- package/src/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/models.ts +1 -0
- package/src/generated/cfg_centrifugo/centrifugo__centrifugo_auth/client.ts +1 -0
- package/src/generated/cfg_centrifugo/centrifugo__centrifugo_auth/index.ts +1 -0
- package/src/generated/cfg_centrifugo/centrifugo__centrifugo_auth/models.ts +1 -0
- package/src/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/client.ts +1 -0
- package/src/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/index.ts +1 -0
- package/src/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/models.ts +1 -0
- package/src/generated/cfg_centrifugo/centrifugo__centrifugo_testing/client.ts +1 -0
- package/src/generated/cfg_centrifugo/centrifugo__centrifugo_testing/index.ts +1 -0
- package/src/generated/cfg_centrifugo/centrifugo__centrifugo_testing/models.ts +1 -0
- package/src/generated/cfg_centrifugo/errors.ts +1 -0
- package/src/generated/cfg_centrifugo/http.ts +1 -0
- package/src/generated/cfg_centrifugo/index.ts +37 -0
- package/src/generated/cfg_centrifugo/logger.ts +1 -0
- package/src/generated/cfg_centrifugo/retry.ts +1 -0
- package/src/generated/cfg_centrifugo/storage.ts +1 -0
- package/src/generated/cfg_centrifugo/validation-events.ts +1 -0
- package/src/generated/cfg_totp/_utils/fetchers/index.ts +1 -0
- package/src/generated/cfg_totp/_utils/fetchers/totp.ts +1 -0
- package/src/generated/cfg_totp/_utils/fetchers/totp__backup_codes.ts +1 -0
- package/src/generated/cfg_totp/_utils/fetchers/totp__totp_management.ts +1 -0
- package/src/generated/cfg_totp/_utils/fetchers/totp__totp_setup.ts +1 -0
- package/src/generated/cfg_totp/_utils/fetchers/totp__totp_verification.ts +1 -0
- package/src/generated/cfg_totp/_utils/hooks/index.ts +1 -0
- package/src/generated/cfg_totp/_utils/hooks/totp.ts +1 -0
- package/src/generated/cfg_totp/_utils/hooks/totp__backup_codes.ts +1 -0
- package/src/generated/cfg_totp/_utils/hooks/totp__totp_management.ts +2 -1
- package/src/generated/cfg_totp/_utils/hooks/totp__totp_setup.ts +1 -0
- package/src/generated/cfg_totp/_utils/hooks/totp__totp_verification.ts +1 -0
- package/src/generated/cfg_totp/_utils/schemas/TotpVerifyUser.schema.ts +1 -0
- package/src/generated/cfg_totp/_utils/schemas/index.ts +1 -0
- package/src/generated/cfg_totp/api-instance.ts +1 -0
- package/src/generated/cfg_totp/enums.ts +1 -0
- package/src/generated/cfg_totp/errors.ts +1 -0
- package/src/generated/cfg_totp/http.ts +1 -0
- package/src/generated/cfg_totp/index.ts +37 -0
- package/src/generated/cfg_totp/logger.ts +1 -0
- package/src/generated/cfg_totp/retry.ts +1 -0
- package/src/generated/cfg_totp/schema.json +4 -0
- package/src/generated/cfg_totp/storage.ts +1 -0
- package/src/generated/cfg_totp/totp/client.ts +1 -0
- package/src/generated/cfg_totp/totp/index.ts +1 -0
- package/src/generated/cfg_totp/totp/models.ts +1 -0
- package/src/generated/cfg_totp/totp__backup_codes/client.ts +1 -0
- package/src/generated/cfg_totp/totp__backup_codes/index.ts +1 -0
- package/src/generated/cfg_totp/totp__backup_codes/models.ts +1 -0
- package/src/generated/cfg_totp/totp__totp_management/client.ts +1 -0
- package/src/generated/cfg_totp/totp__totp_management/index.ts +1 -0
- package/src/generated/cfg_totp/totp__totp_management/models.ts +1 -0
- package/src/generated/cfg_totp/totp__totp_setup/client.ts +1 -0
- package/src/generated/cfg_totp/totp__totp_setup/index.ts +1 -0
- package/src/generated/cfg_totp/totp__totp_setup/models.ts +1 -0
- package/src/generated/cfg_totp/totp__totp_verification/client.ts +1 -0
- package/src/generated/cfg_totp/totp__totp_verification/index.ts +1 -0
- package/src/generated/cfg_totp/totp__totp_verification/models.ts +2 -0
- package/src/generated/cfg_totp/validation-events.ts +1 -0
package/dist/clients.cjs
CHANGED
|
@@ -1053,6 +1053,7 @@ var UserSchema = import_zod16.z.object({
|
|
|
1053
1053
|
company: import_zod16.z.string().max(100).optional(),
|
|
1054
1054
|
phone: import_zod16.z.string().max(20).optional(),
|
|
1055
1055
|
position: import_zod16.z.string().max(100).optional(),
|
|
1056
|
+
language: import_zod16.z.string().max(10).optional(),
|
|
1056
1057
|
avatar: import_zod16.z.union([import_zod16.z.url(), import_zod16.z.literal("")]).nullable(),
|
|
1057
1058
|
is_staff: import_zod16.z.boolean(),
|
|
1058
1059
|
is_superuser: import_zod16.z.boolean(),
|
|
@@ -1079,7 +1080,8 @@ var PatchedUserProfileUpdateRequestSchema = import_zod18.z.object({
|
|
|
1079
1080
|
last_name: import_zod18.z.string().max(50).optional(),
|
|
1080
1081
|
company: import_zod18.z.string().max(100).optional(),
|
|
1081
1082
|
phone: import_zod18.z.string().max(20).optional(),
|
|
1082
|
-
position: import_zod18.z.string().max(100).optional()
|
|
1083
|
+
position: import_zod18.z.string().max(100).optional(),
|
|
1084
|
+
language: import_zod18.z.string().max(10).optional()
|
|
1083
1085
|
});
|
|
1084
1086
|
|
|
1085
1087
|
// src/generated/cfg_accounts/_utils/schemas/TokenRefresh.schema.ts
|
|
@@ -1102,7 +1104,8 @@ var UserProfileUpdateRequestSchema = import_zod21.z.object({
|
|
|
1102
1104
|
last_name: import_zod21.z.string().max(50).optional(),
|
|
1103
1105
|
company: import_zod21.z.string().max(100).optional(),
|
|
1104
1106
|
phone: import_zod21.z.string().max(20).optional(),
|
|
1105
|
-
position: import_zod21.z.string().max(100).optional()
|
|
1107
|
+
position: import_zod21.z.string().max(100).optional(),
|
|
1108
|
+
language: import_zod21.z.string().max(10).optional()
|
|
1106
1109
|
});
|
|
1107
1110
|
|
|
1108
1111
|
// src/generated/cfg_accounts/_utils/fetchers/accounts.ts
|
|
@@ -1718,14 +1721,30 @@ __name(partialUpdateAccountsProfileUpdatePartialUpdate, "partialUpdateAccountsPr
|
|
|
1718
1721
|
// src/generated/cfg_accounts/index.ts
|
|
1719
1722
|
var TOKEN_KEY = "auth_token";
|
|
1720
1723
|
var REFRESH_TOKEN_KEY = "refresh_token";
|
|
1724
|
+
function detectLocale() {
|
|
1725
|
+
try {
|
|
1726
|
+
if (typeof document !== "undefined") {
|
|
1727
|
+
const match = document.cookie.match(/(?:^|;\s*)NEXT_LOCALE=([^;]*)/);
|
|
1728
|
+
if (match) return match[1];
|
|
1729
|
+
}
|
|
1730
|
+
if (typeof navigator !== "undefined" && navigator.language) {
|
|
1731
|
+
return navigator.language;
|
|
1732
|
+
}
|
|
1733
|
+
} catch {
|
|
1734
|
+
}
|
|
1735
|
+
return null;
|
|
1736
|
+
}
|
|
1737
|
+
__name(detectLocale, "detectLocale");
|
|
1721
1738
|
var API = class {
|
|
1722
1739
|
constructor(baseUrl, options) {
|
|
1723
1740
|
this._token = null;
|
|
1724
1741
|
this._refreshToken = null;
|
|
1742
|
+
this._locale = null;
|
|
1725
1743
|
this.baseUrl = baseUrl;
|
|
1726
1744
|
this.options = options;
|
|
1727
1745
|
const logger = options?.loggerConfig ? new APILogger(options.loggerConfig) : void 0;
|
|
1728
1746
|
this.storage = options?.storage || new LocalStorageAdapter(logger);
|
|
1747
|
+
this._locale = options?.locale || null;
|
|
1729
1748
|
this._loadTokensFromStorage();
|
|
1730
1749
|
this._client = new APIClient(this.baseUrl, {
|
|
1731
1750
|
retryConfig: this.options?.retryConfig,
|
|
@@ -1761,11 +1780,13 @@ var API = class {
|
|
|
1761
1780
|
const originalRequest = this._client.request.bind(this._client);
|
|
1762
1781
|
this._client.request = async (method, path, options) => {
|
|
1763
1782
|
const token = this.getToken();
|
|
1783
|
+
const locale = this._locale || detectLocale();
|
|
1764
1784
|
const mergedOptions = {
|
|
1765
1785
|
...options,
|
|
1766
1786
|
headers: {
|
|
1767
1787
|
...options?.headers || {},
|
|
1768
|
-
...token ? { "Authorization": `Bearer ${token}` } : {}
|
|
1788
|
+
...token ? { "Authorization": `Bearer ${token}` } : {},
|
|
1789
|
+
...locale ? { "Accept-Language": locale } : {}
|
|
1769
1790
|
}
|
|
1770
1791
|
};
|
|
1771
1792
|
return originalRequest(method, path, mergedOptions);
|
|
@@ -1827,6 +1848,19 @@ var API = class {
|
|
|
1827
1848
|
getBaseUrl() {
|
|
1828
1849
|
return this.baseUrl;
|
|
1829
1850
|
}
|
|
1851
|
+
/**
|
|
1852
|
+
* Set locale for Accept-Language header
|
|
1853
|
+
* @param locale - Locale string (e.g. 'en', 'ko', 'ru') or null to clear
|
|
1854
|
+
*/
|
|
1855
|
+
setLocale(locale) {
|
|
1856
|
+
this._locale = locale;
|
|
1857
|
+
}
|
|
1858
|
+
/**
|
|
1859
|
+
* Get current locale
|
|
1860
|
+
*/
|
|
1861
|
+
getLocale() {
|
|
1862
|
+
return this._locale;
|
|
1863
|
+
}
|
|
1830
1864
|
/**
|
|
1831
1865
|
* Get OpenAPI schema path
|
|
1832
1866
|
* @returns Path to the OpenAPI schema JSON file
|
|
@@ -3703,14 +3737,30 @@ __name(createCentrifugoTestingSendAckCreate, "createCentrifugoTestingSendAckCrea
|
|
|
3703
3737
|
// src/generated/cfg_centrifugo/index.ts
|
|
3704
3738
|
var TOKEN_KEY2 = "auth_token";
|
|
3705
3739
|
var REFRESH_TOKEN_KEY2 = "refresh_token";
|
|
3740
|
+
function detectLocale2() {
|
|
3741
|
+
try {
|
|
3742
|
+
if (typeof document !== "undefined") {
|
|
3743
|
+
const match = document.cookie.match(/(?:^|;\s*)NEXT_LOCALE=([^;]*)/);
|
|
3744
|
+
if (match) return match[1];
|
|
3745
|
+
}
|
|
3746
|
+
if (typeof navigator !== "undefined" && navigator.language) {
|
|
3747
|
+
return navigator.language;
|
|
3748
|
+
}
|
|
3749
|
+
} catch {
|
|
3750
|
+
}
|
|
3751
|
+
return null;
|
|
3752
|
+
}
|
|
3753
|
+
__name(detectLocale2, "detectLocale");
|
|
3706
3754
|
var API2 = class {
|
|
3707
3755
|
constructor(baseUrl, options) {
|
|
3708
3756
|
this._token = null;
|
|
3709
3757
|
this._refreshToken = null;
|
|
3758
|
+
this._locale = null;
|
|
3710
3759
|
this.baseUrl = baseUrl;
|
|
3711
3760
|
this.options = options;
|
|
3712
3761
|
const logger = options?.loggerConfig ? new APILogger2(options.loggerConfig) : void 0;
|
|
3713
3762
|
this.storage = options?.storage || new LocalStorageAdapter2(logger);
|
|
3763
|
+
this._locale = options?.locale || null;
|
|
3714
3764
|
this._loadTokensFromStorage();
|
|
3715
3765
|
this._client = new APIClient2(this.baseUrl, {
|
|
3716
3766
|
retryConfig: this.options?.retryConfig,
|
|
@@ -3746,11 +3796,13 @@ var API2 = class {
|
|
|
3746
3796
|
const originalRequest = this._client.request.bind(this._client);
|
|
3747
3797
|
this._client.request = async (method, path, options) => {
|
|
3748
3798
|
const token = this.getToken();
|
|
3799
|
+
const locale = this._locale || detectLocale2();
|
|
3749
3800
|
const mergedOptions = {
|
|
3750
3801
|
...options,
|
|
3751
3802
|
headers: {
|
|
3752
3803
|
...options?.headers || {},
|
|
3753
|
-
...token ? { "Authorization": `Bearer ${token}` } : {}
|
|
3804
|
+
...token ? { "Authorization": `Bearer ${token}` } : {},
|
|
3805
|
+
...locale ? { "Accept-Language": locale } : {}
|
|
3754
3806
|
}
|
|
3755
3807
|
};
|
|
3756
3808
|
return originalRequest(method, path, mergedOptions);
|
|
@@ -3812,6 +3864,19 @@ var API2 = class {
|
|
|
3812
3864
|
getBaseUrl() {
|
|
3813
3865
|
return this.baseUrl;
|
|
3814
3866
|
}
|
|
3867
|
+
/**
|
|
3868
|
+
* Set locale for Accept-Language header
|
|
3869
|
+
* @param locale - Locale string (e.g. 'en', 'ko', 'ru') or null to clear
|
|
3870
|
+
*/
|
|
3871
|
+
setLocale(locale) {
|
|
3872
|
+
this._locale = locale;
|
|
3873
|
+
}
|
|
3874
|
+
/**
|
|
3875
|
+
* Get current locale
|
|
3876
|
+
*/
|
|
3877
|
+
getLocale() {
|
|
3878
|
+
return this._locale;
|
|
3879
|
+
}
|
|
3815
3880
|
/**
|
|
3816
3881
|
* Get OpenAPI schema path
|
|
3817
3882
|
* @returns Path to the OpenAPI schema JSON file
|
|
@@ -4710,6 +4775,7 @@ var TotpVerifyUserSchema = import_zod68.z.object({
|
|
|
4710
4775
|
company: import_zod68.z.string().max(100).optional(),
|
|
4711
4776
|
phone: import_zod68.z.string().max(20).optional(),
|
|
4712
4777
|
position: import_zod68.z.string().max(100).optional(),
|
|
4778
|
+
language: import_zod68.z.string().max(10).optional(),
|
|
4713
4779
|
avatar: import_zod68.z.union([import_zod68.z.url(), import_zod68.z.literal("")]).nullable(),
|
|
4714
4780
|
is_staff: import_zod68.z.boolean(),
|
|
4715
4781
|
is_superuser: import_zod68.z.boolean(),
|
|
@@ -5112,14 +5178,30 @@ __name(createTotpVerifyBackupCreate, "createTotpVerifyBackupCreate");
|
|
|
5112
5178
|
// src/generated/cfg_totp/index.ts
|
|
5113
5179
|
var TOKEN_KEY3 = "auth_token";
|
|
5114
5180
|
var REFRESH_TOKEN_KEY3 = "refresh_token";
|
|
5181
|
+
function detectLocale3() {
|
|
5182
|
+
try {
|
|
5183
|
+
if (typeof document !== "undefined") {
|
|
5184
|
+
const match = document.cookie.match(/(?:^|;\s*)NEXT_LOCALE=([^;]*)/);
|
|
5185
|
+
if (match) return match[1];
|
|
5186
|
+
}
|
|
5187
|
+
if (typeof navigator !== "undefined" && navigator.language) {
|
|
5188
|
+
return navigator.language;
|
|
5189
|
+
}
|
|
5190
|
+
} catch {
|
|
5191
|
+
}
|
|
5192
|
+
return null;
|
|
5193
|
+
}
|
|
5194
|
+
__name(detectLocale3, "detectLocale");
|
|
5115
5195
|
var API3 = class {
|
|
5116
5196
|
constructor(baseUrl, options) {
|
|
5117
5197
|
this._token = null;
|
|
5118
5198
|
this._refreshToken = null;
|
|
5199
|
+
this._locale = null;
|
|
5119
5200
|
this.baseUrl = baseUrl;
|
|
5120
5201
|
this.options = options;
|
|
5121
5202
|
const logger = options?.loggerConfig ? new APILogger3(options.loggerConfig) : void 0;
|
|
5122
5203
|
this.storage = options?.storage || new LocalStorageAdapter3(logger);
|
|
5204
|
+
this._locale = options?.locale || null;
|
|
5123
5205
|
this._loadTokensFromStorage();
|
|
5124
5206
|
this._client = new APIClient3(this.baseUrl, {
|
|
5125
5207
|
retryConfig: this.options?.retryConfig,
|
|
@@ -5157,11 +5239,13 @@ var API3 = class {
|
|
|
5157
5239
|
const originalRequest = this._client.request.bind(this._client);
|
|
5158
5240
|
this._client.request = async (method, path, options) => {
|
|
5159
5241
|
const token = this.getToken();
|
|
5242
|
+
const locale = this._locale || detectLocale3();
|
|
5160
5243
|
const mergedOptions = {
|
|
5161
5244
|
...options,
|
|
5162
5245
|
headers: {
|
|
5163
5246
|
...options?.headers || {},
|
|
5164
|
-
...token ? { "Authorization": `Bearer ${token}` } : {}
|
|
5247
|
+
...token ? { "Authorization": `Bearer ${token}` } : {},
|
|
5248
|
+
...locale ? { "Accept-Language": locale } : {}
|
|
5165
5249
|
}
|
|
5166
5250
|
};
|
|
5167
5251
|
return originalRequest(method, path, mergedOptions);
|
|
@@ -5223,6 +5307,19 @@ var API3 = class {
|
|
|
5223
5307
|
getBaseUrl() {
|
|
5224
5308
|
return this.baseUrl;
|
|
5225
5309
|
}
|
|
5310
|
+
/**
|
|
5311
|
+
* Set locale for Accept-Language header
|
|
5312
|
+
* @param locale - Locale string (e.g. 'en', 'ko', 'ru') or null to clear
|
|
5313
|
+
*/
|
|
5314
|
+
setLocale(locale) {
|
|
5315
|
+
this._locale = locale;
|
|
5316
|
+
}
|
|
5317
|
+
/**
|
|
5318
|
+
* Get current locale
|
|
5319
|
+
*/
|
|
5320
|
+
getLocale() {
|
|
5321
|
+
return this._locale;
|
|
5322
|
+
}
|
|
5226
5323
|
/**
|
|
5227
5324
|
* Get OpenAPI schema path
|
|
5228
5325
|
* @returns Path to the OpenAPI schema JSON file
|
|
@@ -5474,7 +5571,7 @@ __name(useCentrifugoAuthTokenRetrieve, "useCentrifugoAuthTokenRetrieve");
|
|
|
5474
5571
|
var import_swr9 = __toESM(require("swr"), 1);
|
|
5475
5572
|
function useCentrifugoMonitorChannelsRetrieve(params, client) {
|
|
5476
5573
|
return (0, import_swr9.default)(
|
|
5477
|
-
|
|
5574
|
+
["cfg-centrifugo-monitor-channel", params],
|
|
5478
5575
|
() => getCentrifugoMonitorChannelsRetrieve(params, client)
|
|
5479
5576
|
);
|
|
5480
5577
|
}
|
|
@@ -5488,21 +5585,21 @@ function useCentrifugoMonitorHealthRetrieve(client) {
|
|
|
5488
5585
|
__name(useCentrifugoMonitorHealthRetrieve, "useCentrifugoMonitorHealthRetrieve");
|
|
5489
5586
|
function useCentrifugoMonitorOverviewRetrieve(params, client) {
|
|
5490
5587
|
return (0, import_swr9.default)(
|
|
5491
|
-
|
|
5588
|
+
["cfg-centrifugo-monitor-overview", params],
|
|
5492
5589
|
() => getCentrifugoMonitorOverviewRetrieve(params, client)
|
|
5493
5590
|
);
|
|
5494
5591
|
}
|
|
5495
5592
|
__name(useCentrifugoMonitorOverviewRetrieve, "useCentrifugoMonitorOverviewRetrieve");
|
|
5496
5593
|
function useCentrifugoMonitorPublishesList(params, client) {
|
|
5497
5594
|
return (0, import_swr9.default)(
|
|
5498
|
-
|
|
5595
|
+
["cfg-centrifugo-monitor-publishes", params],
|
|
5499
5596
|
() => getCentrifugoMonitorPublishesList(params, client)
|
|
5500
5597
|
);
|
|
5501
5598
|
}
|
|
5502
5599
|
__name(useCentrifugoMonitorPublishesList, "useCentrifugoMonitorPublishesList");
|
|
5503
5600
|
function useCentrifugoMonitorTimelineRetrieve(params, client) {
|
|
5504
5601
|
return (0, import_swr9.default)(
|
|
5505
|
-
|
|
5602
|
+
["cfg-centrifugo-monitor-timeline", params],
|
|
5506
5603
|
() => getCentrifugoMonitorTimelineRetrieve(params, client)
|
|
5507
5604
|
);
|
|
5508
5605
|
}
|
|
@@ -5577,7 +5674,7 @@ var import_swr13 = __toESM(require("swr"), 1);
|
|
|
5577
5674
|
var import_swr14 = require("swr");
|
|
5578
5675
|
function useTotpDevicesList(params, client) {
|
|
5579
5676
|
return (0, import_swr13.default)(
|
|
5580
|
-
|
|
5677
|
+
["cfg-totp-devices", params],
|
|
5581
5678
|
() => getTotpDevicesList(params, client)
|
|
5582
5679
|
);
|
|
5583
5680
|
}
|