@djangocfg/api 2.1.230 → 2.1.232
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -4
- package/dist/auth-server.cjs +45 -358
- package/dist/auth-server.cjs.map +1 -1
- package/dist/auth-server.mjs +43 -356
- package/dist/auth-server.mjs.map +1 -1
- package/dist/auth.cjs +223 -735
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.mjs +218 -730
- package/dist/auth.mjs.map +1 -1
- package/dist/clients.cjs +313 -1568
- package/dist/clients.cjs.map +1 -1
- package/dist/clients.d.cts +211 -1932
- package/dist/clients.d.ts +211 -1932
- package/dist/clients.mjs +309 -1564
- package/dist/clients.mjs.map +1 -1
- package/dist/hooks.cjs +36 -32
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.d.cts +76 -76
- package/dist/hooks.d.ts +76 -76
- package/dist/hooks.mjs +36 -32
- package/dist/hooks.mjs.map +1 -1
- package/dist/index.cjs +88 -593
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +88 -88
- package/dist/index.d.ts +88 -88
- package/dist/index.mjs +88 -593
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/_api/generated/cfg_accounts/accounts/models.ts +34 -34
- package/src/_api/generated/cfg_accounts/accounts__oauth/models.ts +41 -41
- package/src/_api/generated/cfg_accounts/accounts__user_profile/models.ts +18 -18
- package/src/_api/generated/cfg_accounts/client.ts +39 -42
- package/src/_api/generated/cfg_centrifugo/CLAUDE.md +2 -27
- package/src/_api/generated/cfg_centrifugo/_utils/fetchers/index.ts +0 -3
- package/src/_api/generated/cfg_centrifugo/_utils/hooks/index.ts +0 -3
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/index.ts +0 -34
- package/src/_api/generated/cfg_centrifugo/client.ts +39 -51
- package/src/_api/generated/cfg_centrifugo/index.ts +0 -21
- package/src/_api/generated/cfg_centrifugo/schema.json +4 -2039
- package/src/_api/generated/cfg_totp/client.ts +39 -42
- package/src/_api/generated/cfg_totp/totp__totp_management/models.ts +10 -10
- package/src/_api/generated/cfg_totp/totp__totp_setup/models.ts +12 -12
- package/src/_api/generated/cfg_totp/totp__totp_verification/models.ts +8 -8
- package/src/_api/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_admin_api.ts +0 -344
- package/src/_api/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_monitoring.ts +0 -326
- package/src/_api/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_testing.ts +0 -211
- package/src/_api/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_admin_api.ts +0 -141
- package/src/_api/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_monitoring.ts +0 -99
- package/src/_api/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_testing.ts +0 -82
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelInfo.schema.ts +0 -19
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsRequestRequest.schema.ts +0 -19
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts +0 -22
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResult.schema.ts +0 -20
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoClientInfo.schema.ts +0 -22
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoError.schema.ts +0 -20
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHealthCheck.schema.ts +0 -22
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts +0 -23
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts +0 -22
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts +0 -22
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts +0 -22
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts +0 -20
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoMetrics.schema.ts +0 -20
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts +0 -30
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoOverviewStats.schema.ts +0 -26
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceRequestRequest.schema.ts +0 -19
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts +0 -22
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResult.schema.ts +0 -20
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsRequestRequest.schema.ts +0 -19
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts +0 -22
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResult.schema.ts +0 -20
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoProcess.schema.ts +0 -20
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPublication.schema.ts +0 -23
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoStreamPosition.schema.ts +0 -20
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts +0 -21
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/ChannelStats.schema.ts +0 -25
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/ManualAckRequestRequest.schema.ts +0 -20
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/ManualAckResponse.schema.ts +0 -21
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts +0 -24
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/Publish.schema.ts +0 -29
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/PublishTestRequestRequest.schema.ts +0 -22
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/PublishTestResponse.schema.ts +0 -24
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/TimelineItem.schema.ts +0 -23
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/TimelineResponse.schema.ts +0 -22
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/client.ts +0 -76
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/index.ts +0 -4
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/models.ts +0 -268
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/client.ts +0 -110
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/index.ts +0 -4
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/models.ts +0 -144
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_testing/client.ts +0 -48
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_testing/index.ts +0 -4
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_testing/models.ts +0 -64
package/dist/clients.mjs
CHANGED
|
@@ -703,43 +703,47 @@ var APIClient = class {
|
|
|
703
703
|
if (error instanceof APIError) {
|
|
704
704
|
throw error;
|
|
705
705
|
}
|
|
706
|
-
|
|
706
|
+
let possiblyCors = false;
|
|
707
|
+
if (error instanceof TypeError && typeof window !== "undefined") {
|
|
708
|
+
try {
|
|
709
|
+
const isCrossOrigin = (() => {
|
|
710
|
+
try {
|
|
711
|
+
return new URL(url).origin !== window.location.origin;
|
|
712
|
+
} catch {
|
|
713
|
+
return false;
|
|
714
|
+
}
|
|
715
|
+
})();
|
|
716
|
+
if (isCrossOrigin) {
|
|
717
|
+
const entries = performance.getEntriesByName(url, "resource");
|
|
718
|
+
if (entries.length > 0) {
|
|
719
|
+
const last = entries[entries.length - 1];
|
|
720
|
+
possiblyCors = "responseStatus" in last && last.responseStatus === 0;
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
} catch {
|
|
724
|
+
}
|
|
725
|
+
}
|
|
707
726
|
if (this.logger) {
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
this.logger.error(` \u2192
|
|
712
|
-
} else {
|
|
713
|
-
this.logger.error(`\u26A0\uFE0F Network Error: ${method} ${url}`);
|
|
714
|
-
this.logger.error(` \u2192 ${error instanceof Error ? error.message : String(error)}`);
|
|
727
|
+
this.logger.error(`\u26A0\uFE0F Network Error: ${method} ${url}`);
|
|
728
|
+
this.logger.error(` \u2192 ${error instanceof Error ? error.message : String(error)}`);
|
|
729
|
+
if (possiblyCors) {
|
|
730
|
+
this.logger.error(` \u2192 Possibly blocked by CORS policy (configure CORS on the server)`);
|
|
715
731
|
}
|
|
716
732
|
}
|
|
717
733
|
if (typeof window !== "undefined") {
|
|
718
734
|
try {
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
window.dispatchEvent(new CustomEvent("network-error", {
|
|
732
|
-
detail: {
|
|
733
|
-
url,
|
|
734
|
-
method,
|
|
735
|
-
error: error instanceof Error ? error.message : String(error),
|
|
736
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
737
|
-
},
|
|
738
|
-
bubbles: true,
|
|
739
|
-
cancelable: false
|
|
740
|
-
}));
|
|
741
|
-
}
|
|
742
|
-
} catch (eventError) {
|
|
735
|
+
window.dispatchEvent(new CustomEvent("network-error", {
|
|
736
|
+
detail: {
|
|
737
|
+
url,
|
|
738
|
+
method,
|
|
739
|
+
error: error instanceof Error ? error.message : String(error),
|
|
740
|
+
possibly_cors: possiblyCors,
|
|
741
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
742
|
+
},
|
|
743
|
+
bubbles: true,
|
|
744
|
+
cancelable: false
|
|
745
|
+
}));
|
|
746
|
+
} catch {
|
|
743
747
|
}
|
|
744
748
|
}
|
|
745
749
|
const networkError = error instanceof Error ? new NetworkError(error.message, url, error) : new NetworkError("Unknown error", url);
|
|
@@ -1782,71 +1786,6 @@ var API = class {
|
|
|
1782
1786
|
}
|
|
1783
1787
|
};
|
|
1784
1788
|
|
|
1785
|
-
// src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/client.ts
|
|
1786
|
-
var CentrifugoAdminApi = class {
|
|
1787
|
-
static {
|
|
1788
|
-
__name(this, "CentrifugoAdminApi");
|
|
1789
|
-
}
|
|
1790
|
-
constructor(client) {
|
|
1791
|
-
this.client = client;
|
|
1792
|
-
}
|
|
1793
|
-
/**
|
|
1794
|
-
* Get connection token for dashboard
|
|
1795
|
-
*
|
|
1796
|
-
* Returns JWT token and config for WebSocket connection to Centrifugo.
|
|
1797
|
-
*/
|
|
1798
|
-
async centrifugoServerAuthTokenCreate() {
|
|
1799
|
-
const response = await this.client.request("POST", "/cfg/centrifugo/server/auth/token/");
|
|
1800
|
-
return response;
|
|
1801
|
-
}
|
|
1802
|
-
/**
|
|
1803
|
-
* List active channels
|
|
1804
|
-
*
|
|
1805
|
-
* Returns list of active channels with optional pattern filter.
|
|
1806
|
-
*/
|
|
1807
|
-
async centrifugoServerChannelsCreate(data) {
|
|
1808
|
-
const response = await this.client.request("POST", "/cfg/centrifugo/server/channels/", { body: data });
|
|
1809
|
-
return response;
|
|
1810
|
-
}
|
|
1811
|
-
/**
|
|
1812
|
-
* Get channel history
|
|
1813
|
-
*
|
|
1814
|
-
* Returns message history for a channel.
|
|
1815
|
-
*/
|
|
1816
|
-
async centrifugoServerHistoryCreate(data) {
|
|
1817
|
-
const response = await this.client.request("POST", "/cfg/centrifugo/server/history/", { body: data });
|
|
1818
|
-
return response;
|
|
1819
|
-
}
|
|
1820
|
-
/**
|
|
1821
|
-
* Get Centrifugo server info
|
|
1822
|
-
*
|
|
1823
|
-
* Returns server information including node count, version, and uptime.
|
|
1824
|
-
*/
|
|
1825
|
-
async centrifugoServerInfoCreate() {
|
|
1826
|
-
const response = await this.client.request("POST", "/cfg/centrifugo/server/info/");
|
|
1827
|
-
return response;
|
|
1828
|
-
}
|
|
1829
|
-
/**
|
|
1830
|
-
* Get channel presence
|
|
1831
|
-
*
|
|
1832
|
-
* Returns list of clients currently subscribed to a channel.
|
|
1833
|
-
*/
|
|
1834
|
-
async centrifugoServerPresenceCreate(data) {
|
|
1835
|
-
const response = await this.client.request("POST", "/cfg/centrifugo/server/presence/", { body: data });
|
|
1836
|
-
return response;
|
|
1837
|
-
}
|
|
1838
|
-
/**
|
|
1839
|
-
* Get channel presence statistics
|
|
1840
|
-
*
|
|
1841
|
-
* Returns quick statistics about channel presence (num_clients,
|
|
1842
|
-
* num_users).
|
|
1843
|
-
*/
|
|
1844
|
-
async centrifugoServerPresenceStatsCreate(data) {
|
|
1845
|
-
const response = await this.client.request("POST", "/cfg/centrifugo/server/presence-stats/", { body: data });
|
|
1846
|
-
return response;
|
|
1847
|
-
}
|
|
1848
|
-
};
|
|
1849
|
-
|
|
1850
1789
|
// src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_auth/client.ts
|
|
1851
1790
|
var CentrifugoAuth = class {
|
|
1852
1791
|
static {
|
|
@@ -1868,130 +1807,6 @@ var CentrifugoAuth = class {
|
|
|
1868
1807
|
}
|
|
1869
1808
|
};
|
|
1870
1809
|
|
|
1871
|
-
// src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/client.ts
|
|
1872
|
-
var CentrifugoMonitoring = class {
|
|
1873
|
-
static {
|
|
1874
|
-
__name(this, "CentrifugoMonitoring");
|
|
1875
|
-
}
|
|
1876
|
-
constructor(client) {
|
|
1877
|
-
this.client = client;
|
|
1878
|
-
}
|
|
1879
|
-
/**
|
|
1880
|
-
* Get channel statistics
|
|
1881
|
-
*
|
|
1882
|
-
* Returns statistics grouped by channel.
|
|
1883
|
-
*/
|
|
1884
|
-
async centrifugoMonitorChannelsRetrieve(...args) {
|
|
1885
|
-
const isParamsObject = args.length === 1 && typeof args[0] === "object" && args[0] !== null && !Array.isArray(args[0]);
|
|
1886
|
-
let params;
|
|
1887
|
-
if (isParamsObject) {
|
|
1888
|
-
params = args[0];
|
|
1889
|
-
} else {
|
|
1890
|
-
params = { hours: args[0] };
|
|
1891
|
-
}
|
|
1892
|
-
const response = await this.client.request("GET", "/cfg/centrifugo/monitor/channels/", { params });
|
|
1893
|
-
return response;
|
|
1894
|
-
}
|
|
1895
|
-
/**
|
|
1896
|
-
* Get Centrifugo health status
|
|
1897
|
-
*
|
|
1898
|
-
* Returns the current health status of the Centrifugo client.
|
|
1899
|
-
*/
|
|
1900
|
-
async centrifugoMonitorHealthRetrieve() {
|
|
1901
|
-
const response = await this.client.request("GET", "/cfg/centrifugo/monitor/health/");
|
|
1902
|
-
return response;
|
|
1903
|
-
}
|
|
1904
|
-
/**
|
|
1905
|
-
* Get overview statistics
|
|
1906
|
-
*
|
|
1907
|
-
* Returns overview statistics for Centrifugo publishes.
|
|
1908
|
-
*/
|
|
1909
|
-
async centrifugoMonitorOverviewRetrieve(...args) {
|
|
1910
|
-
const isParamsObject = args.length === 1 && typeof args[0] === "object" && args[0] !== null && !Array.isArray(args[0]);
|
|
1911
|
-
let params;
|
|
1912
|
-
if (isParamsObject) {
|
|
1913
|
-
params = args[0];
|
|
1914
|
-
} else {
|
|
1915
|
-
params = { hours: args[0] };
|
|
1916
|
-
}
|
|
1917
|
-
const response = await this.client.request("GET", "/cfg/centrifugo/monitor/overview/", { params });
|
|
1918
|
-
return response;
|
|
1919
|
-
}
|
|
1920
|
-
/**
|
|
1921
|
-
* Get recent publishes
|
|
1922
|
-
*
|
|
1923
|
-
* Returns a paginated list of recent Centrifugo publishes with their
|
|
1924
|
-
* details. Uses standard DRF pagination.
|
|
1925
|
-
*/
|
|
1926
|
-
async centrifugoMonitorPublishesList(...args) {
|
|
1927
|
-
const isParamsObject = args.length === 1 && typeof args[0] === "object" && args[0] !== null && !Array.isArray(args[0]);
|
|
1928
|
-
let params;
|
|
1929
|
-
if (isParamsObject) {
|
|
1930
|
-
params = args[0];
|
|
1931
|
-
} else {
|
|
1932
|
-
params = { channel: args[0], ordering: args[1], page: args[2], page_size: args[3], search: args[4], status: args[5] };
|
|
1933
|
-
}
|
|
1934
|
-
const response = await this.client.request("GET", "/cfg/centrifugo/monitor/publishes/", { params });
|
|
1935
|
-
return response;
|
|
1936
|
-
}
|
|
1937
|
-
/**
|
|
1938
|
-
* Get publish timeline
|
|
1939
|
-
*
|
|
1940
|
-
* Returns hourly or daily breakdown of publish counts for charts.
|
|
1941
|
-
*/
|
|
1942
|
-
async centrifugoMonitorTimelineRetrieve(...args) {
|
|
1943
|
-
const isParamsObject = args.length === 1 && typeof args[0] === "object" && args[0] !== null && !Array.isArray(args[0]);
|
|
1944
|
-
let params;
|
|
1945
|
-
if (isParamsObject) {
|
|
1946
|
-
params = args[0];
|
|
1947
|
-
} else {
|
|
1948
|
-
params = { hours: args[0], interval: args[1] };
|
|
1949
|
-
}
|
|
1950
|
-
const response = await this.client.request("GET", "/cfg/centrifugo/monitor/timeline/", { params });
|
|
1951
|
-
return response;
|
|
1952
|
-
}
|
|
1953
|
-
};
|
|
1954
|
-
|
|
1955
|
-
// src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_testing/client.ts
|
|
1956
|
-
var CentrifugoTesting = class {
|
|
1957
|
-
static {
|
|
1958
|
-
__name(this, "CentrifugoTesting");
|
|
1959
|
-
}
|
|
1960
|
-
constructor(client) {
|
|
1961
|
-
this.client = client;
|
|
1962
|
-
}
|
|
1963
|
-
/**
|
|
1964
|
-
* Publish test message
|
|
1965
|
-
*
|
|
1966
|
-
* Publish test message to Centrifugo via wrapper with optional ACK
|
|
1967
|
-
* tracking.
|
|
1968
|
-
*/
|
|
1969
|
-
async publishTestCreate(data) {
|
|
1970
|
-
const response = await this.client.request("POST", "/cfg/centrifugo/testing/publish-test/", { body: data });
|
|
1971
|
-
return response;
|
|
1972
|
-
}
|
|
1973
|
-
/**
|
|
1974
|
-
* Publish with database logging
|
|
1975
|
-
*
|
|
1976
|
-
* Publish message using CentrifugoClient with database logging. This will
|
|
1977
|
-
* create CentrifugoLog records.
|
|
1978
|
-
*/
|
|
1979
|
-
async publishWithLoggingCreate(data) {
|
|
1980
|
-
const response = await this.client.request("POST", "/cfg/centrifugo/testing/publish-with-logging/", { body: data });
|
|
1981
|
-
return response;
|
|
1982
|
-
}
|
|
1983
|
-
/**
|
|
1984
|
-
* Send manual ACK
|
|
1985
|
-
*
|
|
1986
|
-
* Manually send ACK for a message to the wrapper. Pass message_id in
|
|
1987
|
-
* request body.
|
|
1988
|
-
*/
|
|
1989
|
-
async sendAckCreate(data) {
|
|
1990
|
-
const response = await this.client.request("POST", "/cfg/centrifugo/testing/send-ack/", { body: data });
|
|
1991
|
-
return response;
|
|
1992
|
-
}
|
|
1993
|
-
};
|
|
1994
|
-
|
|
1995
1810
|
// src/_api/generated/cfg_centrifugo/http.ts
|
|
1996
1811
|
var FetchAdapter2 = class {
|
|
1997
1812
|
static {
|
|
@@ -2368,10 +2183,7 @@ var APIClient2 = class {
|
|
|
2368
2183
|
if (options?.retryConfig !== void 0) {
|
|
2369
2184
|
this.retryConfig = options.retryConfig;
|
|
2370
2185
|
}
|
|
2371
|
-
this.centrifugo_admin_api = new CentrifugoAdminApi(this);
|
|
2372
2186
|
this.centrifugo_auth = new CentrifugoAuth(this);
|
|
2373
|
-
this.centrifugo_monitoring = new CentrifugoMonitoring(this);
|
|
2374
|
-
this.centrifugo_testing = new CentrifugoTesting(this);
|
|
2375
2187
|
}
|
|
2376
2188
|
static {
|
|
2377
2189
|
__name(this, "APIClient");
|
|
@@ -2506,43 +2318,47 @@ var APIClient2 = class {
|
|
|
2506
2318
|
if (error instanceof APIError2) {
|
|
2507
2319
|
throw error;
|
|
2508
2320
|
}
|
|
2509
|
-
|
|
2321
|
+
let possiblyCors = false;
|
|
2322
|
+
if (error instanceof TypeError && typeof window !== "undefined") {
|
|
2323
|
+
try {
|
|
2324
|
+
const isCrossOrigin = (() => {
|
|
2325
|
+
try {
|
|
2326
|
+
return new URL(url).origin !== window.location.origin;
|
|
2327
|
+
} catch {
|
|
2328
|
+
return false;
|
|
2329
|
+
}
|
|
2330
|
+
})();
|
|
2331
|
+
if (isCrossOrigin) {
|
|
2332
|
+
const entries = performance.getEntriesByName(url, "resource");
|
|
2333
|
+
if (entries.length > 0) {
|
|
2334
|
+
const last = entries[entries.length - 1];
|
|
2335
|
+
possiblyCors = "responseStatus" in last && last.responseStatus === 0;
|
|
2336
|
+
}
|
|
2337
|
+
}
|
|
2338
|
+
} catch {
|
|
2339
|
+
}
|
|
2340
|
+
}
|
|
2510
2341
|
if (this.logger) {
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
this.logger.error(` \u2192
|
|
2515
|
-
} else {
|
|
2516
|
-
this.logger.error(`\u26A0\uFE0F Network Error: ${method} ${url}`);
|
|
2517
|
-
this.logger.error(` \u2192 ${error instanceof Error ? error.message : String(error)}`);
|
|
2342
|
+
this.logger.error(`\u26A0\uFE0F Network Error: ${method} ${url}`);
|
|
2343
|
+
this.logger.error(` \u2192 ${error instanceof Error ? error.message : String(error)}`);
|
|
2344
|
+
if (possiblyCors) {
|
|
2345
|
+
this.logger.error(` \u2192 Possibly blocked by CORS policy (configure CORS on the server)`);
|
|
2518
2346
|
}
|
|
2519
2347
|
}
|
|
2520
2348
|
if (typeof window !== "undefined") {
|
|
2521
2349
|
try {
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
window.dispatchEvent(new CustomEvent("network-error", {
|
|
2535
|
-
detail: {
|
|
2536
|
-
url,
|
|
2537
|
-
method,
|
|
2538
|
-
error: error instanceof Error ? error.message : String(error),
|
|
2539
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
2540
|
-
},
|
|
2541
|
-
bubbles: true,
|
|
2542
|
-
cancelable: false
|
|
2543
|
-
}));
|
|
2544
|
-
}
|
|
2545
|
-
} catch (eventError) {
|
|
2350
|
+
window.dispatchEvent(new CustomEvent("network-error", {
|
|
2351
|
+
detail: {
|
|
2352
|
+
url,
|
|
2353
|
+
method,
|
|
2354
|
+
error: error instanceof Error ? error.message : String(error),
|
|
2355
|
+
possibly_cors: possiblyCors,
|
|
2356
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
2357
|
+
},
|
|
2358
|
+
bubbles: true,
|
|
2359
|
+
cancelable: false
|
|
2360
|
+
}));
|
|
2361
|
+
} catch {
|
|
2546
2362
|
}
|
|
2547
2363
|
}
|
|
2548
2364
|
const networkError = error instanceof Error ? new NetworkError2(error.message, url, error) : new NetworkError2("Unknown error", url);
|
|
@@ -2617,381 +2433,25 @@ var LocalStorageAdapter2 = class {
|
|
|
2617
2433
|
// src/_api/generated/cfg_centrifugo/_utils/schemas/index.ts
|
|
2618
2434
|
var schemas_exports2 = {};
|
|
2619
2435
|
__export(schemas_exports2, {
|
|
2620
|
-
|
|
2621
|
-
CentrifugoChannelsRequestRequestSchema: () => CentrifugoChannelsRequestRequestSchema,
|
|
2622
|
-
CentrifugoChannelsResponseSchema: () => CentrifugoChannelsResponseSchema,
|
|
2623
|
-
CentrifugoChannelsResultSchema: () => CentrifugoChannelsResultSchema,
|
|
2624
|
-
CentrifugoClientInfoSchema: () => CentrifugoClientInfoSchema,
|
|
2625
|
-
CentrifugoErrorSchema: () => CentrifugoErrorSchema,
|
|
2626
|
-
CentrifugoHealthCheckSchema: () => CentrifugoHealthCheckSchema,
|
|
2627
|
-
CentrifugoHistoryRequestRequestSchema: () => CentrifugoHistoryRequestRequestSchema,
|
|
2628
|
-
CentrifugoHistoryResponseSchema: () => CentrifugoHistoryResponseSchema,
|
|
2629
|
-
CentrifugoHistoryResultSchema: () => CentrifugoHistoryResultSchema,
|
|
2630
|
-
CentrifugoInfoResponseSchema: () => CentrifugoInfoResponseSchema,
|
|
2631
|
-
CentrifugoInfoResultSchema: () => CentrifugoInfoResultSchema,
|
|
2632
|
-
CentrifugoMetricsSchema: () => CentrifugoMetricsSchema,
|
|
2633
|
-
CentrifugoNodeInfoSchema: () => CentrifugoNodeInfoSchema,
|
|
2634
|
-
CentrifugoOverviewStatsSchema: () => CentrifugoOverviewStatsSchema,
|
|
2635
|
-
CentrifugoPresenceRequestRequestSchema: () => CentrifugoPresenceRequestRequestSchema,
|
|
2636
|
-
CentrifugoPresenceResponseSchema: () => CentrifugoPresenceResponseSchema,
|
|
2637
|
-
CentrifugoPresenceResultSchema: () => CentrifugoPresenceResultSchema,
|
|
2638
|
-
CentrifugoPresenceStatsRequestRequestSchema: () => CentrifugoPresenceStatsRequestRequestSchema,
|
|
2639
|
-
CentrifugoPresenceStatsResponseSchema: () => CentrifugoPresenceStatsResponseSchema,
|
|
2640
|
-
CentrifugoPresenceStatsResultSchema: () => CentrifugoPresenceStatsResultSchema,
|
|
2641
|
-
CentrifugoProcessSchema: () => CentrifugoProcessSchema,
|
|
2642
|
-
CentrifugoPublicationSchema: () => CentrifugoPublicationSchema,
|
|
2643
|
-
CentrifugoStreamPositionSchema: () => CentrifugoStreamPositionSchema,
|
|
2644
|
-
ChannelListSchema: () => ChannelListSchema,
|
|
2645
|
-
ChannelStatsSchema: () => ChannelStatsSchema,
|
|
2646
|
-
ConnectionTokenResponseSchema: () => ConnectionTokenResponseSchema,
|
|
2647
|
-
ManualAckRequestRequestSchema: () => ManualAckRequestRequestSchema,
|
|
2648
|
-
ManualAckResponseSchema: () => ManualAckResponseSchema,
|
|
2649
|
-
PaginatedPublishListSchema: () => PaginatedPublishListSchema,
|
|
2650
|
-
PublishSchema: () => PublishSchema,
|
|
2651
|
-
PublishTestRequestRequestSchema: () => PublishTestRequestRequestSchema,
|
|
2652
|
-
PublishTestResponseSchema: () => PublishTestResponseSchema,
|
|
2653
|
-
TimelineItemSchema: () => TimelineItemSchema,
|
|
2654
|
-
TimelineResponseSchema: () => TimelineResponseSchema
|
|
2655
|
-
});
|
|
2656
|
-
|
|
2657
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelInfo.schema.ts
|
|
2658
|
-
import { z as z22 } from "zod";
|
|
2659
|
-
var CentrifugoChannelInfoSchema = z22.object({
|
|
2660
|
-
num_clients: z22.number().int()
|
|
2661
|
-
});
|
|
2662
|
-
|
|
2663
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsRequestRequest.schema.ts
|
|
2664
|
-
import { z as z23 } from "zod";
|
|
2665
|
-
var CentrifugoChannelsRequestRequestSchema = z23.object({
|
|
2666
|
-
pattern: z23.string().nullable().optional()
|
|
2667
|
-
});
|
|
2668
|
-
|
|
2669
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts
|
|
2670
|
-
import { z as z26 } from "zod";
|
|
2671
|
-
|
|
2672
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResult.schema.ts
|
|
2673
|
-
import { z as z24 } from "zod";
|
|
2674
|
-
var CentrifugoChannelsResultSchema = z24.object({
|
|
2675
|
-
channels: z24.record(z24.string(), CentrifugoChannelInfoSchema)
|
|
2676
|
-
});
|
|
2677
|
-
|
|
2678
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoError.schema.ts
|
|
2679
|
-
import { z as z25 } from "zod";
|
|
2680
|
-
var CentrifugoErrorSchema = z25.object({
|
|
2681
|
-
code: z25.number().int().optional(),
|
|
2682
|
-
message: z25.string().optional()
|
|
2683
|
-
});
|
|
2684
|
-
|
|
2685
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts
|
|
2686
|
-
var CentrifugoChannelsResponseSchema = z26.object({
|
|
2687
|
-
error: CentrifugoErrorSchema.nullable().optional(),
|
|
2688
|
-
result: CentrifugoChannelsResultSchema.nullable().optional()
|
|
2689
|
-
});
|
|
2690
|
-
|
|
2691
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoClientInfo.schema.ts
|
|
2692
|
-
import { z as z27 } from "zod";
|
|
2693
|
-
var CentrifugoClientInfoSchema = z27.object({
|
|
2694
|
-
user: z27.string(),
|
|
2695
|
-
client: z27.string(),
|
|
2696
|
-
conn_info: z27.record(z27.string(), z27.any()).nullable().optional(),
|
|
2697
|
-
chan_info: z27.record(z27.string(), z27.any()).nullable().optional()
|
|
2698
|
-
});
|
|
2699
|
-
|
|
2700
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHealthCheck.schema.ts
|
|
2701
|
-
import { z as z28 } from "zod";
|
|
2702
|
-
var CentrifugoHealthCheckSchema = z28.object({
|
|
2703
|
-
status: z28.string(),
|
|
2704
|
-
wrapper_url: z28.string(),
|
|
2705
|
-
has_api_key: z28.boolean(),
|
|
2706
|
-
timestamp: z28.string()
|
|
2707
|
-
});
|
|
2708
|
-
|
|
2709
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts
|
|
2710
|
-
import { z as z30 } from "zod";
|
|
2711
|
-
|
|
2712
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoStreamPosition.schema.ts
|
|
2713
|
-
import { z as z29 } from "zod";
|
|
2714
|
-
var CentrifugoStreamPositionSchema = z29.object({
|
|
2715
|
-
offset: z29.number().int(),
|
|
2716
|
-
epoch: z29.string()
|
|
2717
|
-
});
|
|
2718
|
-
|
|
2719
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts
|
|
2720
|
-
var CentrifugoHistoryRequestRequestSchema = z30.object({
|
|
2721
|
-
channel: z30.string(),
|
|
2722
|
-
limit: z30.number().int().nullable().optional(),
|
|
2723
|
-
since: CentrifugoStreamPositionSchema.nullable().optional(),
|
|
2724
|
-
reverse: z30.boolean().nullable().optional()
|
|
2725
|
-
});
|
|
2726
|
-
|
|
2727
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts
|
|
2728
|
-
import { z as z33 } from "zod";
|
|
2729
|
-
|
|
2730
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts
|
|
2731
|
-
import { z as z32 } from "zod";
|
|
2732
|
-
|
|
2733
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPublication.schema.ts
|
|
2734
|
-
import { z as z31 } from "zod";
|
|
2735
|
-
var CentrifugoPublicationSchema = z31.object({
|
|
2736
|
-
data: z31.record(z31.string(), z31.any()),
|
|
2737
|
-
info: CentrifugoClientInfoSchema.nullable().optional(),
|
|
2738
|
-
offset: z31.number().int(),
|
|
2739
|
-
tags: z31.record(z31.string(), z31.any()).nullable().optional()
|
|
2740
|
-
});
|
|
2741
|
-
|
|
2742
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts
|
|
2743
|
-
var CentrifugoHistoryResultSchema = z32.object({
|
|
2744
|
-
publications: z32.array(CentrifugoPublicationSchema),
|
|
2745
|
-
epoch: z32.string(),
|
|
2746
|
-
offset: z32.number().int()
|
|
2747
|
-
});
|
|
2748
|
-
|
|
2749
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts
|
|
2750
|
-
var CentrifugoHistoryResponseSchema = z33.object({
|
|
2751
|
-
error: CentrifugoErrorSchema.nullable().optional(),
|
|
2752
|
-
result: CentrifugoHistoryResultSchema.nullable().optional()
|
|
2753
|
-
});
|
|
2754
|
-
|
|
2755
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts
|
|
2756
|
-
import { z as z38 } from "zod";
|
|
2757
|
-
|
|
2758
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts
|
|
2759
|
-
import { z as z37 } from "zod";
|
|
2760
|
-
|
|
2761
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts
|
|
2762
|
-
import { z as z36 } from "zod";
|
|
2763
|
-
|
|
2764
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoMetrics.schema.ts
|
|
2765
|
-
import { z as z34 } from "zod";
|
|
2766
|
-
var CentrifugoMetricsSchema = z34.object({
|
|
2767
|
-
interval: z34.number(),
|
|
2768
|
-
items: z34.record(z34.string(), z34.number())
|
|
2769
|
-
});
|
|
2770
|
-
|
|
2771
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoProcess.schema.ts
|
|
2772
|
-
import { z as z35 } from "zod";
|
|
2773
|
-
var CentrifugoProcessSchema = z35.object({
|
|
2774
|
-
cpu: z35.number(),
|
|
2775
|
-
rss: z35.number().int()
|
|
2776
|
-
});
|
|
2777
|
-
|
|
2778
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts
|
|
2779
|
-
var CentrifugoNodeInfoSchema = z36.object({
|
|
2780
|
-
uid: z36.string(),
|
|
2781
|
-
name: z36.string(),
|
|
2782
|
-
version: z36.string(),
|
|
2783
|
-
num_clients: z36.number().int(),
|
|
2784
|
-
num_users: z36.number().int(),
|
|
2785
|
-
num_channels: z36.number().int(),
|
|
2786
|
-
uptime: z36.number().int(),
|
|
2787
|
-
num_subs: z36.number().int(),
|
|
2788
|
-
metrics: CentrifugoMetricsSchema.nullable().optional(),
|
|
2789
|
-
process: CentrifugoProcessSchema.nullable().optional()
|
|
2790
|
-
});
|
|
2791
|
-
|
|
2792
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts
|
|
2793
|
-
var CentrifugoInfoResultSchema = z37.object({
|
|
2794
|
-
nodes: z37.array(CentrifugoNodeInfoSchema)
|
|
2795
|
-
});
|
|
2796
|
-
|
|
2797
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts
|
|
2798
|
-
var CentrifugoInfoResponseSchema = z38.object({
|
|
2799
|
-
error: CentrifugoErrorSchema.nullable().optional(),
|
|
2800
|
-
result: CentrifugoInfoResultSchema.nullable().optional()
|
|
2801
|
-
});
|
|
2802
|
-
|
|
2803
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoOverviewStats.schema.ts
|
|
2804
|
-
import { z as z39 } from "zod";
|
|
2805
|
-
var CentrifugoOverviewStatsSchema = z39.object({
|
|
2806
|
-
total: z39.number().int(),
|
|
2807
|
-
successful: z39.number().int(),
|
|
2808
|
-
failed: z39.number().int(),
|
|
2809
|
-
timeout: z39.number().int(),
|
|
2810
|
-
success_rate: z39.number(),
|
|
2811
|
-
avg_duration_ms: z39.number(),
|
|
2812
|
-
avg_acks_received: z39.number(),
|
|
2813
|
-
period_hours: z39.number().int()
|
|
2814
|
-
});
|
|
2815
|
-
|
|
2816
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceRequestRequest.schema.ts
|
|
2817
|
-
import { z as z40 } from "zod";
|
|
2818
|
-
var CentrifugoPresenceRequestRequestSchema = z40.object({
|
|
2819
|
-
channel: z40.string()
|
|
2820
|
-
});
|
|
2821
|
-
|
|
2822
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts
|
|
2823
|
-
import { z as z42 } from "zod";
|
|
2824
|
-
|
|
2825
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResult.schema.ts
|
|
2826
|
-
import { z as z41 } from "zod";
|
|
2827
|
-
var CentrifugoPresenceResultSchema = z41.object({
|
|
2828
|
-
presence: z41.record(z41.string(), CentrifugoClientInfoSchema)
|
|
2829
|
-
});
|
|
2830
|
-
|
|
2831
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts
|
|
2832
|
-
var CentrifugoPresenceResponseSchema = z42.object({
|
|
2833
|
-
error: CentrifugoErrorSchema.nullable().optional(),
|
|
2834
|
-
result: CentrifugoPresenceResultSchema.nullable().optional()
|
|
2835
|
-
});
|
|
2836
|
-
|
|
2837
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsRequestRequest.schema.ts
|
|
2838
|
-
import { z as z43 } from "zod";
|
|
2839
|
-
var CentrifugoPresenceStatsRequestRequestSchema = z43.object({
|
|
2840
|
-
channel: z43.string()
|
|
2841
|
-
});
|
|
2842
|
-
|
|
2843
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts
|
|
2844
|
-
import { z as z45 } from "zod";
|
|
2845
|
-
|
|
2846
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResult.schema.ts
|
|
2847
|
-
import { z as z44 } from "zod";
|
|
2848
|
-
var CentrifugoPresenceStatsResultSchema = z44.object({
|
|
2849
|
-
num_clients: z44.number().int(),
|
|
2850
|
-
num_users: z44.number().int()
|
|
2851
|
-
});
|
|
2852
|
-
|
|
2853
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts
|
|
2854
|
-
var CentrifugoPresenceStatsResponseSchema = z45.object({
|
|
2855
|
-
error: CentrifugoErrorSchema.nullable().optional(),
|
|
2856
|
-
result: CentrifugoPresenceStatsResultSchema.nullable().optional()
|
|
2857
|
-
});
|
|
2858
|
-
|
|
2859
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts
|
|
2860
|
-
import { z as z47 } from "zod";
|
|
2861
|
-
|
|
2862
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/ChannelStats.schema.ts
|
|
2863
|
-
import { z as z46 } from "zod";
|
|
2864
|
-
var ChannelStatsSchema = z46.object({
|
|
2865
|
-
channel: z46.string(),
|
|
2866
|
-
total: z46.number().int(),
|
|
2867
|
-
successful: z46.number().int(),
|
|
2868
|
-
failed: z46.number().int(),
|
|
2869
|
-
avg_duration_ms: z46.number(),
|
|
2870
|
-
avg_acks: z46.number(),
|
|
2871
|
-
last_activity_at: z46.string().nullable()
|
|
2872
|
-
});
|
|
2873
|
-
|
|
2874
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts
|
|
2875
|
-
var ChannelListSchema = z47.object({
|
|
2876
|
-
channels: z47.array(ChannelStatsSchema),
|
|
2877
|
-
total_channels: z47.number().int()
|
|
2436
|
+
ConnectionTokenResponseSchema: () => ConnectionTokenResponseSchema
|
|
2878
2437
|
});
|
|
2879
2438
|
|
|
2880
2439
|
// src/_api/generated/cfg_centrifugo/_utils/schemas/ConnectionTokenResponse.schema.ts
|
|
2881
|
-
import { z as
|
|
2882
|
-
var ConnectionTokenResponseSchema =
|
|
2883
|
-
token:
|
|
2884
|
-
centrifugo_url:
|
|
2885
|
-
expires_at:
|
|
2886
|
-
channels:
|
|
2887
|
-
});
|
|
2888
|
-
|
|
2889
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/ManualAckRequestRequest.schema.ts
|
|
2890
|
-
import { z as z49 } from "zod";
|
|
2891
|
-
var ManualAckRequestRequestSchema = z49.object({
|
|
2892
|
-
message_id: z49.string(),
|
|
2893
|
-
client_id: z49.string()
|
|
2894
|
-
});
|
|
2895
|
-
|
|
2896
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/ManualAckResponse.schema.ts
|
|
2897
|
-
import { z as z50 } from "zod";
|
|
2898
|
-
var ManualAckResponseSchema = z50.object({
|
|
2899
|
-
success: z50.boolean(),
|
|
2900
|
-
message_id: z50.string(),
|
|
2901
|
-
error: z50.string().nullable().optional()
|
|
2902
|
-
});
|
|
2903
|
-
|
|
2904
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts
|
|
2905
|
-
import { z as z52 } from "zod";
|
|
2906
|
-
|
|
2907
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/Publish.schema.ts
|
|
2908
|
-
import { z as z51 } from "zod";
|
|
2909
|
-
var PublishSchema = z51.object({
|
|
2910
|
-
message_id: z51.string(),
|
|
2911
|
-
channel: z51.string(),
|
|
2912
|
-
status: z51.string(),
|
|
2913
|
-
wait_for_ack: z51.boolean(),
|
|
2914
|
-
acks_received: z51.number().int(),
|
|
2915
|
-
acks_expected: z51.number().int().nullable(),
|
|
2916
|
-
duration_ms: z51.number().nullable(),
|
|
2917
|
-
created_at: z51.string().datetime({ offset: true }),
|
|
2918
|
-
completed_at: z51.string().datetime({ offset: true }).nullable(),
|
|
2919
|
-
error_code: z51.string().nullable(),
|
|
2920
|
-
error_message: z51.string().nullable()
|
|
2921
|
-
});
|
|
2922
|
-
|
|
2923
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts
|
|
2924
|
-
var PaginatedPublishListSchema = z52.object({
|
|
2925
|
-
count: z52.number().int(),
|
|
2926
|
-
page: z52.number().int(),
|
|
2927
|
-
pages: z52.number().int(),
|
|
2928
|
-
page_size: z52.number().int(),
|
|
2929
|
-
has_next: z52.boolean(),
|
|
2930
|
-
has_previous: z52.boolean(),
|
|
2931
|
-
next_page: z52.number().int().nullable().optional(),
|
|
2932
|
-
previous_page: z52.number().int().nullable().optional(),
|
|
2933
|
-
results: z52.array(PublishSchema)
|
|
2934
|
-
});
|
|
2935
|
-
|
|
2936
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/PublishTestRequestRequest.schema.ts
|
|
2937
|
-
import { z as z53 } from "zod";
|
|
2938
|
-
var PublishTestRequestRequestSchema = z53.object({
|
|
2939
|
-
channel: z53.string(),
|
|
2940
|
-
data: z53.record(z53.string(), z53.any()),
|
|
2941
|
-
wait_for_ack: z53.boolean().optional(),
|
|
2942
|
-
ack_timeout: z53.number().int().min(1).max(60).optional()
|
|
2943
|
-
});
|
|
2944
|
-
|
|
2945
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/PublishTestResponse.schema.ts
|
|
2946
|
-
import { z as z54 } from "zod";
|
|
2947
|
-
var PublishTestResponseSchema = z54.object({
|
|
2948
|
-
success: z54.boolean(),
|
|
2949
|
-
message_id: z54.string(),
|
|
2950
|
-
channel: z54.string(),
|
|
2951
|
-
acks_received: z54.number().int().optional(),
|
|
2952
|
-
delivered: z54.boolean().optional(),
|
|
2953
|
-
error: z54.string().nullable().optional()
|
|
2954
|
-
});
|
|
2955
|
-
|
|
2956
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/TimelineItem.schema.ts
|
|
2957
|
-
import { z as z55 } from "zod";
|
|
2958
|
-
var TimelineItemSchema = z55.object({
|
|
2959
|
-
timestamp: z55.string(),
|
|
2960
|
-
count: z55.number().int(),
|
|
2961
|
-
successful: z55.number().int(),
|
|
2962
|
-
failed: z55.number().int(),
|
|
2963
|
-
timeout: z55.number().int()
|
|
2964
|
-
});
|
|
2965
|
-
|
|
2966
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/TimelineResponse.schema.ts
|
|
2967
|
-
import { z as z56 } from "zod";
|
|
2968
|
-
var TimelineResponseSchema = z56.object({
|
|
2969
|
-
timeline: z56.array(TimelineItemSchema),
|
|
2970
|
-
period_hours: z56.number().int(),
|
|
2971
|
-
interval: z56.string()
|
|
2440
|
+
import { z as z22 } from "zod";
|
|
2441
|
+
var ConnectionTokenResponseSchema = z22.object({
|
|
2442
|
+
token: z22.string(),
|
|
2443
|
+
centrifugo_url: z22.string(),
|
|
2444
|
+
expires_at: z22.string(),
|
|
2445
|
+
channels: z22.array(z22.string())
|
|
2972
2446
|
});
|
|
2973
2447
|
|
|
2974
2448
|
// src/_api/generated/cfg_centrifugo/_utils/fetchers/index.ts
|
|
2975
2449
|
var fetchers_exports2 = {};
|
|
2976
2450
|
__export(fetchers_exports2, {
|
|
2977
|
-
|
|
2978
|
-
createCentrifugoServerChannelsCreate: () => createCentrifugoServerChannelsCreate,
|
|
2979
|
-
createCentrifugoServerHistoryCreate: () => createCentrifugoServerHistoryCreate,
|
|
2980
|
-
createCentrifugoServerInfoCreate: () => createCentrifugoServerInfoCreate,
|
|
2981
|
-
createCentrifugoServerPresenceCreate: () => createCentrifugoServerPresenceCreate,
|
|
2982
|
-
createCentrifugoServerPresenceStatsCreate: () => createCentrifugoServerPresenceStatsCreate,
|
|
2983
|
-
createCentrifugoTestingPublishTestCreate: () => createCentrifugoTestingPublishTestCreate,
|
|
2984
|
-
createCentrifugoTestingPublishWithLoggingCreate: () => createCentrifugoTestingPublishWithLoggingCreate,
|
|
2985
|
-
createCentrifugoTestingSendAckCreate: () => createCentrifugoTestingSendAckCreate,
|
|
2986
|
-
getCentrifugoAuthTokenRetrieve: () => getCentrifugoAuthTokenRetrieve,
|
|
2987
|
-
getCentrifugoMonitorChannelsRetrieve: () => getCentrifugoMonitorChannelsRetrieve,
|
|
2988
|
-
getCentrifugoMonitorHealthRetrieve: () => getCentrifugoMonitorHealthRetrieve,
|
|
2989
|
-
getCentrifugoMonitorOverviewRetrieve: () => getCentrifugoMonitorOverviewRetrieve,
|
|
2990
|
-
getCentrifugoMonitorPublishesList: () => getCentrifugoMonitorPublishesList,
|
|
2991
|
-
getCentrifugoMonitorTimelineRetrieve: () => getCentrifugoMonitorTimelineRetrieve
|
|
2451
|
+
getCentrifugoAuthTokenRetrieve: () => getCentrifugoAuthTokenRetrieve
|
|
2992
2452
|
});
|
|
2993
2453
|
|
|
2994
|
-
// src/_api/generated/cfg_centrifugo/_utils/fetchers/
|
|
2454
|
+
// src/_api/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_auth.ts
|
|
2995
2455
|
import { consola as consola5 } from "consola";
|
|
2996
2456
|
|
|
2997
2457
|
// src/_api/generated/cfg_centrifugo/api-instance.ts
|
|
@@ -3019,23 +2479,17 @@ function getAPIInstance2() {
|
|
|
3019
2479
|
}
|
|
3020
2480
|
__name(getAPIInstance2, "getAPIInstance");
|
|
3021
2481
|
|
|
3022
|
-
// src/_api/generated/cfg_centrifugo/_utils/fetchers/
|
|
3023
|
-
async function
|
|
3024
|
-
const api = client || getAPIInstance2();
|
|
3025
|
-
const response = await api.centrifugo_admin_api.centrifugoServerAuthTokenCreate();
|
|
3026
|
-
return response;
|
|
3027
|
-
}
|
|
3028
|
-
__name(createCentrifugoServerAuthTokenCreate, "createCentrifugoServerAuthTokenCreate");
|
|
3029
|
-
async function createCentrifugoServerChannelsCreate(data, client) {
|
|
2482
|
+
// src/_api/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_auth.ts
|
|
2483
|
+
async function getCentrifugoAuthTokenRetrieve(client) {
|
|
3030
2484
|
const api = client || getAPIInstance2();
|
|
3031
|
-
const response = await api.
|
|
2485
|
+
const response = await api.centrifugo_auth.tokenRetrieve();
|
|
3032
2486
|
try {
|
|
3033
|
-
return
|
|
2487
|
+
return ConnectionTokenResponseSchema.parse(response);
|
|
3034
2488
|
} catch (error) {
|
|
3035
2489
|
consola5.error("\u274C Zod Validation Failed");
|
|
3036
|
-
consola5.box(`
|
|
3037
|
-
Path: /cfg/centrifugo/
|
|
3038
|
-
Method:
|
|
2490
|
+
consola5.box(`getCentrifugoAuthTokenRetrieve
|
|
2491
|
+
Path: /cfg/centrifugo/auth/token/
|
|
2492
|
+
Method: GET`);
|
|
3039
2493
|
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3040
2494
|
consola5.error("Validation Issues:");
|
|
3041
2495
|
error.issues.forEach((issue, index) => {
|
|
@@ -3050,9 +2504,9 @@ Method: POST`);
|
|
|
3050
2504
|
try {
|
|
3051
2505
|
const event = new CustomEvent("zod-validation-error", {
|
|
3052
2506
|
detail: {
|
|
3053
|
-
operation: "
|
|
3054
|
-
path: "/cfg/centrifugo/
|
|
3055
|
-
method: "
|
|
2507
|
+
operation: "getCentrifugoAuthTokenRetrieve",
|
|
2508
|
+
path: "/cfg/centrifugo/auth/token/",
|
|
2509
|
+
method: "GET",
|
|
3056
2510
|
error,
|
|
3057
2511
|
response,
|
|
3058
2512
|
timestamp: /* @__PURE__ */ new Date()
|
|
@@ -3068,580 +2522,12 @@ Method: POST`);
|
|
|
3068
2522
|
throw error;
|
|
3069
2523
|
}
|
|
3070
2524
|
}
|
|
3071
|
-
__name(
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
} catch (error) {
|
|
3078
|
-
consola5.error("\u274C Zod Validation Failed");
|
|
3079
|
-
consola5.box(`createCentrifugoServerHistoryCreate
|
|
3080
|
-
Path: /cfg/centrifugo/server/history/
|
|
3081
|
-
Method: POST`);
|
|
3082
|
-
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3083
|
-
consola5.error("Validation Issues:");
|
|
3084
|
-
error.issues.forEach((issue, index) => {
|
|
3085
|
-
consola5.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3086
|
-
consola5.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3087
|
-
if (issue.expected) consola5.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3088
|
-
if (issue.received) consola5.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
3089
|
-
});
|
|
3090
|
-
}
|
|
3091
|
-
consola5.error("Response data:", response);
|
|
3092
|
-
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
3093
|
-
try {
|
|
3094
|
-
const event = new CustomEvent("zod-validation-error", {
|
|
3095
|
-
detail: {
|
|
3096
|
-
operation: "createCentrifugoServerHistoryCreate",
|
|
3097
|
-
path: "/cfg/centrifugo/server/history/",
|
|
3098
|
-
method: "POST",
|
|
3099
|
-
error,
|
|
3100
|
-
response,
|
|
3101
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
3102
|
-
},
|
|
3103
|
-
bubbles: true,
|
|
3104
|
-
cancelable: false
|
|
3105
|
-
});
|
|
3106
|
-
window.dispatchEvent(event);
|
|
3107
|
-
} catch (eventError) {
|
|
3108
|
-
consola5.warn("Failed to dispatch validation error event:", eventError);
|
|
3109
|
-
}
|
|
3110
|
-
}
|
|
3111
|
-
throw error;
|
|
3112
|
-
}
|
|
3113
|
-
}
|
|
3114
|
-
__name(createCentrifugoServerHistoryCreate, "createCentrifugoServerHistoryCreate");
|
|
3115
|
-
async function createCentrifugoServerInfoCreate(client) {
|
|
3116
|
-
const api = client || getAPIInstance2();
|
|
3117
|
-
const response = await api.centrifugo_admin_api.centrifugoServerInfoCreate();
|
|
3118
|
-
try {
|
|
3119
|
-
return CentrifugoInfoResponseSchema.parse(response);
|
|
3120
|
-
} catch (error) {
|
|
3121
|
-
consola5.error("\u274C Zod Validation Failed");
|
|
3122
|
-
consola5.box(`createCentrifugoServerInfoCreate
|
|
3123
|
-
Path: /cfg/centrifugo/server/info/
|
|
3124
|
-
Method: POST`);
|
|
3125
|
-
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3126
|
-
consola5.error("Validation Issues:");
|
|
3127
|
-
error.issues.forEach((issue, index) => {
|
|
3128
|
-
consola5.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3129
|
-
consola5.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3130
|
-
if (issue.expected) consola5.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3131
|
-
if (issue.received) consola5.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
3132
|
-
});
|
|
3133
|
-
}
|
|
3134
|
-
consola5.error("Response data:", response);
|
|
3135
|
-
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
3136
|
-
try {
|
|
3137
|
-
const event = new CustomEvent("zod-validation-error", {
|
|
3138
|
-
detail: {
|
|
3139
|
-
operation: "createCentrifugoServerInfoCreate",
|
|
3140
|
-
path: "/cfg/centrifugo/server/info/",
|
|
3141
|
-
method: "POST",
|
|
3142
|
-
error,
|
|
3143
|
-
response,
|
|
3144
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
3145
|
-
},
|
|
3146
|
-
bubbles: true,
|
|
3147
|
-
cancelable: false
|
|
3148
|
-
});
|
|
3149
|
-
window.dispatchEvent(event);
|
|
3150
|
-
} catch (eventError) {
|
|
3151
|
-
consola5.warn("Failed to dispatch validation error event:", eventError);
|
|
3152
|
-
}
|
|
3153
|
-
}
|
|
3154
|
-
throw error;
|
|
3155
|
-
}
|
|
3156
|
-
}
|
|
3157
|
-
__name(createCentrifugoServerInfoCreate, "createCentrifugoServerInfoCreate");
|
|
3158
|
-
async function createCentrifugoServerPresenceCreate(data, client) {
|
|
3159
|
-
const api = client || getAPIInstance2();
|
|
3160
|
-
const response = await api.centrifugo_admin_api.centrifugoServerPresenceCreate(data);
|
|
3161
|
-
try {
|
|
3162
|
-
return CentrifugoPresenceResponseSchema.parse(response);
|
|
3163
|
-
} catch (error) {
|
|
3164
|
-
consola5.error("\u274C Zod Validation Failed");
|
|
3165
|
-
consola5.box(`createCentrifugoServerPresenceCreate
|
|
3166
|
-
Path: /cfg/centrifugo/server/presence/
|
|
3167
|
-
Method: POST`);
|
|
3168
|
-
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3169
|
-
consola5.error("Validation Issues:");
|
|
3170
|
-
error.issues.forEach((issue, index) => {
|
|
3171
|
-
consola5.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3172
|
-
consola5.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3173
|
-
if (issue.expected) consola5.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3174
|
-
if (issue.received) consola5.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
3175
|
-
});
|
|
3176
|
-
}
|
|
3177
|
-
consola5.error("Response data:", response);
|
|
3178
|
-
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
3179
|
-
try {
|
|
3180
|
-
const event = new CustomEvent("zod-validation-error", {
|
|
3181
|
-
detail: {
|
|
3182
|
-
operation: "createCentrifugoServerPresenceCreate",
|
|
3183
|
-
path: "/cfg/centrifugo/server/presence/",
|
|
3184
|
-
method: "POST",
|
|
3185
|
-
error,
|
|
3186
|
-
response,
|
|
3187
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
3188
|
-
},
|
|
3189
|
-
bubbles: true,
|
|
3190
|
-
cancelable: false
|
|
3191
|
-
});
|
|
3192
|
-
window.dispatchEvent(event);
|
|
3193
|
-
} catch (eventError) {
|
|
3194
|
-
consola5.warn("Failed to dispatch validation error event:", eventError);
|
|
3195
|
-
}
|
|
3196
|
-
}
|
|
3197
|
-
throw error;
|
|
3198
|
-
}
|
|
3199
|
-
}
|
|
3200
|
-
__name(createCentrifugoServerPresenceCreate, "createCentrifugoServerPresenceCreate");
|
|
3201
|
-
async function createCentrifugoServerPresenceStatsCreate(data, client) {
|
|
3202
|
-
const api = client || getAPIInstance2();
|
|
3203
|
-
const response = await api.centrifugo_admin_api.centrifugoServerPresenceStatsCreate(data);
|
|
3204
|
-
try {
|
|
3205
|
-
return CentrifugoPresenceStatsResponseSchema.parse(response);
|
|
3206
|
-
} catch (error) {
|
|
3207
|
-
consola5.error("\u274C Zod Validation Failed");
|
|
3208
|
-
consola5.box(`createCentrifugoServerPresenceStatsCreate
|
|
3209
|
-
Path: /cfg/centrifugo/server/presence-stats/
|
|
3210
|
-
Method: POST`);
|
|
3211
|
-
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3212
|
-
consola5.error("Validation Issues:");
|
|
3213
|
-
error.issues.forEach((issue, index) => {
|
|
3214
|
-
consola5.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3215
|
-
consola5.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3216
|
-
if (issue.expected) consola5.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3217
|
-
if (issue.received) consola5.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
3218
|
-
});
|
|
3219
|
-
}
|
|
3220
|
-
consola5.error("Response data:", response);
|
|
3221
|
-
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
3222
|
-
try {
|
|
3223
|
-
const event = new CustomEvent("zod-validation-error", {
|
|
3224
|
-
detail: {
|
|
3225
|
-
operation: "createCentrifugoServerPresenceStatsCreate",
|
|
3226
|
-
path: "/cfg/centrifugo/server/presence-stats/",
|
|
3227
|
-
method: "POST",
|
|
3228
|
-
error,
|
|
3229
|
-
response,
|
|
3230
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
3231
|
-
},
|
|
3232
|
-
bubbles: true,
|
|
3233
|
-
cancelable: false
|
|
3234
|
-
});
|
|
3235
|
-
window.dispatchEvent(event);
|
|
3236
|
-
} catch (eventError) {
|
|
3237
|
-
consola5.warn("Failed to dispatch validation error event:", eventError);
|
|
3238
|
-
}
|
|
3239
|
-
}
|
|
3240
|
-
throw error;
|
|
3241
|
-
}
|
|
3242
|
-
}
|
|
3243
|
-
__name(createCentrifugoServerPresenceStatsCreate, "createCentrifugoServerPresenceStatsCreate");
|
|
3244
|
-
|
|
3245
|
-
// src/_api/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_auth.ts
|
|
3246
|
-
import { consola as consola6 } from "consola";
|
|
3247
|
-
async function getCentrifugoAuthTokenRetrieve(client) {
|
|
3248
|
-
const api = client || getAPIInstance2();
|
|
3249
|
-
const response = await api.centrifugo_auth.tokenRetrieve();
|
|
3250
|
-
try {
|
|
3251
|
-
return ConnectionTokenResponseSchema.parse(response);
|
|
3252
|
-
} catch (error) {
|
|
3253
|
-
consola6.error("\u274C Zod Validation Failed");
|
|
3254
|
-
consola6.box(`getCentrifugoAuthTokenRetrieve
|
|
3255
|
-
Path: /cfg/centrifugo/auth/token/
|
|
3256
|
-
Method: GET`);
|
|
3257
|
-
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3258
|
-
consola6.error("Validation Issues:");
|
|
3259
|
-
error.issues.forEach((issue, index) => {
|
|
3260
|
-
consola6.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3261
|
-
consola6.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3262
|
-
if (issue.expected) consola6.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3263
|
-
if (issue.received) consola6.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
3264
|
-
});
|
|
3265
|
-
}
|
|
3266
|
-
consola6.error("Response data:", response);
|
|
3267
|
-
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
3268
|
-
try {
|
|
3269
|
-
const event = new CustomEvent("zod-validation-error", {
|
|
3270
|
-
detail: {
|
|
3271
|
-
operation: "getCentrifugoAuthTokenRetrieve",
|
|
3272
|
-
path: "/cfg/centrifugo/auth/token/",
|
|
3273
|
-
method: "GET",
|
|
3274
|
-
error,
|
|
3275
|
-
response,
|
|
3276
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
3277
|
-
},
|
|
3278
|
-
bubbles: true,
|
|
3279
|
-
cancelable: false
|
|
3280
|
-
});
|
|
3281
|
-
window.dispatchEvent(event);
|
|
3282
|
-
} catch (eventError) {
|
|
3283
|
-
consola6.warn("Failed to dispatch validation error event:", eventError);
|
|
3284
|
-
}
|
|
3285
|
-
}
|
|
3286
|
-
throw error;
|
|
3287
|
-
}
|
|
3288
|
-
}
|
|
3289
|
-
__name(getCentrifugoAuthTokenRetrieve, "getCentrifugoAuthTokenRetrieve");
|
|
3290
|
-
|
|
3291
|
-
// src/_api/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_monitoring.ts
|
|
3292
|
-
import { consola as consola7 } from "consola";
|
|
3293
|
-
async function getCentrifugoMonitorChannelsRetrieve(params, client) {
|
|
3294
|
-
const api = client || getAPIInstance2();
|
|
3295
|
-
const response = await api.centrifugo_monitoring.centrifugoMonitorChannelsRetrieve(params?.hours);
|
|
3296
|
-
try {
|
|
3297
|
-
return ChannelListSchema.parse(response);
|
|
3298
|
-
} catch (error) {
|
|
3299
|
-
consola7.error("\u274C Zod Validation Failed");
|
|
3300
|
-
consola7.box(`getCentrifugoMonitorChannelsRetrieve
|
|
3301
|
-
Path: /cfg/centrifugo/monitor/channels/
|
|
3302
|
-
Method: GET`);
|
|
3303
|
-
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3304
|
-
consola7.error("Validation Issues:");
|
|
3305
|
-
error.issues.forEach((issue, index) => {
|
|
3306
|
-
consola7.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3307
|
-
consola7.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3308
|
-
if (issue.expected) consola7.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3309
|
-
if (issue.received) consola7.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
3310
|
-
});
|
|
3311
|
-
}
|
|
3312
|
-
consola7.error("Response data:", response);
|
|
3313
|
-
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
3314
|
-
try {
|
|
3315
|
-
const event = new CustomEvent("zod-validation-error", {
|
|
3316
|
-
detail: {
|
|
3317
|
-
operation: "getCentrifugoMonitorChannelsRetrieve",
|
|
3318
|
-
path: "/cfg/centrifugo/monitor/channels/",
|
|
3319
|
-
method: "GET",
|
|
3320
|
-
error,
|
|
3321
|
-
response,
|
|
3322
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
3323
|
-
},
|
|
3324
|
-
bubbles: true,
|
|
3325
|
-
cancelable: false
|
|
3326
|
-
});
|
|
3327
|
-
window.dispatchEvent(event);
|
|
3328
|
-
} catch (eventError) {
|
|
3329
|
-
consola7.warn("Failed to dispatch validation error event:", eventError);
|
|
3330
|
-
}
|
|
3331
|
-
}
|
|
3332
|
-
throw error;
|
|
3333
|
-
}
|
|
3334
|
-
}
|
|
3335
|
-
__name(getCentrifugoMonitorChannelsRetrieve, "getCentrifugoMonitorChannelsRetrieve");
|
|
3336
|
-
async function getCentrifugoMonitorHealthRetrieve(client) {
|
|
3337
|
-
const api = client || getAPIInstance2();
|
|
3338
|
-
const response = await api.centrifugo_monitoring.centrifugoMonitorHealthRetrieve();
|
|
3339
|
-
try {
|
|
3340
|
-
return CentrifugoHealthCheckSchema.parse(response);
|
|
3341
|
-
} catch (error) {
|
|
3342
|
-
consola7.error("\u274C Zod Validation Failed");
|
|
3343
|
-
consola7.box(`getCentrifugoMonitorHealthRetrieve
|
|
3344
|
-
Path: /cfg/centrifugo/monitor/health/
|
|
3345
|
-
Method: GET`);
|
|
3346
|
-
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3347
|
-
consola7.error("Validation Issues:");
|
|
3348
|
-
error.issues.forEach((issue, index) => {
|
|
3349
|
-
consola7.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3350
|
-
consola7.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3351
|
-
if (issue.expected) consola7.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3352
|
-
if (issue.received) consola7.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
3353
|
-
});
|
|
3354
|
-
}
|
|
3355
|
-
consola7.error("Response data:", response);
|
|
3356
|
-
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
3357
|
-
try {
|
|
3358
|
-
const event = new CustomEvent("zod-validation-error", {
|
|
3359
|
-
detail: {
|
|
3360
|
-
operation: "getCentrifugoMonitorHealthRetrieve",
|
|
3361
|
-
path: "/cfg/centrifugo/monitor/health/",
|
|
3362
|
-
method: "GET",
|
|
3363
|
-
error,
|
|
3364
|
-
response,
|
|
3365
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
3366
|
-
},
|
|
3367
|
-
bubbles: true,
|
|
3368
|
-
cancelable: false
|
|
3369
|
-
});
|
|
3370
|
-
window.dispatchEvent(event);
|
|
3371
|
-
} catch (eventError) {
|
|
3372
|
-
consola7.warn("Failed to dispatch validation error event:", eventError);
|
|
3373
|
-
}
|
|
3374
|
-
}
|
|
3375
|
-
throw error;
|
|
3376
|
-
}
|
|
3377
|
-
}
|
|
3378
|
-
__name(getCentrifugoMonitorHealthRetrieve, "getCentrifugoMonitorHealthRetrieve");
|
|
3379
|
-
async function getCentrifugoMonitorOverviewRetrieve(params, client) {
|
|
3380
|
-
const api = client || getAPIInstance2();
|
|
3381
|
-
const response = await api.centrifugo_monitoring.centrifugoMonitorOverviewRetrieve(params?.hours);
|
|
3382
|
-
try {
|
|
3383
|
-
return CentrifugoOverviewStatsSchema.parse(response);
|
|
3384
|
-
} catch (error) {
|
|
3385
|
-
consola7.error("\u274C Zod Validation Failed");
|
|
3386
|
-
consola7.box(`getCentrifugoMonitorOverviewRetrieve
|
|
3387
|
-
Path: /cfg/centrifugo/monitor/overview/
|
|
3388
|
-
Method: GET`);
|
|
3389
|
-
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3390
|
-
consola7.error("Validation Issues:");
|
|
3391
|
-
error.issues.forEach((issue, index) => {
|
|
3392
|
-
consola7.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3393
|
-
consola7.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3394
|
-
if (issue.expected) consola7.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3395
|
-
if (issue.received) consola7.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
3396
|
-
});
|
|
3397
|
-
}
|
|
3398
|
-
consola7.error("Response data:", response);
|
|
3399
|
-
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
3400
|
-
try {
|
|
3401
|
-
const event = new CustomEvent("zod-validation-error", {
|
|
3402
|
-
detail: {
|
|
3403
|
-
operation: "getCentrifugoMonitorOverviewRetrieve",
|
|
3404
|
-
path: "/cfg/centrifugo/monitor/overview/",
|
|
3405
|
-
method: "GET",
|
|
3406
|
-
error,
|
|
3407
|
-
response,
|
|
3408
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
3409
|
-
},
|
|
3410
|
-
bubbles: true,
|
|
3411
|
-
cancelable: false
|
|
3412
|
-
});
|
|
3413
|
-
window.dispatchEvent(event);
|
|
3414
|
-
} catch (eventError) {
|
|
3415
|
-
consola7.warn("Failed to dispatch validation error event:", eventError);
|
|
3416
|
-
}
|
|
3417
|
-
}
|
|
3418
|
-
throw error;
|
|
3419
|
-
}
|
|
3420
|
-
}
|
|
3421
|
-
__name(getCentrifugoMonitorOverviewRetrieve, "getCentrifugoMonitorOverviewRetrieve");
|
|
3422
|
-
async function getCentrifugoMonitorPublishesList(params, client) {
|
|
3423
|
-
const api = client || getAPIInstance2();
|
|
3424
|
-
const response = await api.centrifugo_monitoring.centrifugoMonitorPublishesList(params?.channel, params?.ordering, params?.page, params?.page_size, params?.search, params?.status);
|
|
3425
|
-
try {
|
|
3426
|
-
return PaginatedPublishListSchema.parse(response);
|
|
3427
|
-
} catch (error) {
|
|
3428
|
-
consola7.error("\u274C Zod Validation Failed");
|
|
3429
|
-
consola7.box(`getCentrifugoMonitorPublishesList
|
|
3430
|
-
Path: /cfg/centrifugo/monitor/publishes/
|
|
3431
|
-
Method: GET`);
|
|
3432
|
-
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3433
|
-
consola7.error("Validation Issues:");
|
|
3434
|
-
error.issues.forEach((issue, index) => {
|
|
3435
|
-
consola7.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3436
|
-
consola7.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3437
|
-
if (issue.expected) consola7.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3438
|
-
if (issue.received) consola7.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
3439
|
-
});
|
|
3440
|
-
}
|
|
3441
|
-
consola7.error("Response data:", response);
|
|
3442
|
-
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
3443
|
-
try {
|
|
3444
|
-
const event = new CustomEvent("zod-validation-error", {
|
|
3445
|
-
detail: {
|
|
3446
|
-
operation: "getCentrifugoMonitorPublishesList",
|
|
3447
|
-
path: "/cfg/centrifugo/monitor/publishes/",
|
|
3448
|
-
method: "GET",
|
|
3449
|
-
error,
|
|
3450
|
-
response,
|
|
3451
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
3452
|
-
},
|
|
3453
|
-
bubbles: true,
|
|
3454
|
-
cancelable: false
|
|
3455
|
-
});
|
|
3456
|
-
window.dispatchEvent(event);
|
|
3457
|
-
} catch (eventError) {
|
|
3458
|
-
consola7.warn("Failed to dispatch validation error event:", eventError);
|
|
3459
|
-
}
|
|
3460
|
-
}
|
|
3461
|
-
throw error;
|
|
3462
|
-
}
|
|
3463
|
-
}
|
|
3464
|
-
__name(getCentrifugoMonitorPublishesList, "getCentrifugoMonitorPublishesList");
|
|
3465
|
-
async function getCentrifugoMonitorTimelineRetrieve(params, client) {
|
|
3466
|
-
const api = client || getAPIInstance2();
|
|
3467
|
-
const response = await api.centrifugo_monitoring.centrifugoMonitorTimelineRetrieve(params?.hours, params?.interval);
|
|
3468
|
-
try {
|
|
3469
|
-
return TimelineResponseSchema.parse(response);
|
|
3470
|
-
} catch (error) {
|
|
3471
|
-
consola7.error("\u274C Zod Validation Failed");
|
|
3472
|
-
consola7.box(`getCentrifugoMonitorTimelineRetrieve
|
|
3473
|
-
Path: /cfg/centrifugo/monitor/timeline/
|
|
3474
|
-
Method: GET`);
|
|
3475
|
-
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3476
|
-
consola7.error("Validation Issues:");
|
|
3477
|
-
error.issues.forEach((issue, index) => {
|
|
3478
|
-
consola7.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3479
|
-
consola7.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3480
|
-
if (issue.expected) consola7.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3481
|
-
if (issue.received) consola7.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
3482
|
-
});
|
|
3483
|
-
}
|
|
3484
|
-
consola7.error("Response data:", response);
|
|
3485
|
-
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
3486
|
-
try {
|
|
3487
|
-
const event = new CustomEvent("zod-validation-error", {
|
|
3488
|
-
detail: {
|
|
3489
|
-
operation: "getCentrifugoMonitorTimelineRetrieve",
|
|
3490
|
-
path: "/cfg/centrifugo/monitor/timeline/",
|
|
3491
|
-
method: "GET",
|
|
3492
|
-
error,
|
|
3493
|
-
response,
|
|
3494
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
3495
|
-
},
|
|
3496
|
-
bubbles: true,
|
|
3497
|
-
cancelable: false
|
|
3498
|
-
});
|
|
3499
|
-
window.dispatchEvent(event);
|
|
3500
|
-
} catch (eventError) {
|
|
3501
|
-
consola7.warn("Failed to dispatch validation error event:", eventError);
|
|
3502
|
-
}
|
|
3503
|
-
}
|
|
3504
|
-
throw error;
|
|
3505
|
-
}
|
|
3506
|
-
}
|
|
3507
|
-
__name(getCentrifugoMonitorTimelineRetrieve, "getCentrifugoMonitorTimelineRetrieve");
|
|
3508
|
-
|
|
3509
|
-
// src/_api/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_testing.ts
|
|
3510
|
-
import { consola as consola8 } from "consola";
|
|
3511
|
-
async function createCentrifugoTestingPublishTestCreate(data, client) {
|
|
3512
|
-
const api = client || getAPIInstance2();
|
|
3513
|
-
const response = await api.centrifugo_testing.publishTestCreate(data);
|
|
3514
|
-
try {
|
|
3515
|
-
return PublishTestResponseSchema.parse(response);
|
|
3516
|
-
} catch (error) {
|
|
3517
|
-
consola8.error("\u274C Zod Validation Failed");
|
|
3518
|
-
consola8.box(`createCentrifugoTestingPublishTestCreate
|
|
3519
|
-
Path: /cfg/centrifugo/testing/publish-test/
|
|
3520
|
-
Method: POST`);
|
|
3521
|
-
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3522
|
-
consola8.error("Validation Issues:");
|
|
3523
|
-
error.issues.forEach((issue, index) => {
|
|
3524
|
-
consola8.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3525
|
-
consola8.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3526
|
-
if (issue.expected) consola8.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3527
|
-
if (issue.received) consola8.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
3528
|
-
});
|
|
3529
|
-
}
|
|
3530
|
-
consola8.error("Response data:", response);
|
|
3531
|
-
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
3532
|
-
try {
|
|
3533
|
-
const event = new CustomEvent("zod-validation-error", {
|
|
3534
|
-
detail: {
|
|
3535
|
-
operation: "createCentrifugoTestingPublishTestCreate",
|
|
3536
|
-
path: "/cfg/centrifugo/testing/publish-test/",
|
|
3537
|
-
method: "POST",
|
|
3538
|
-
error,
|
|
3539
|
-
response,
|
|
3540
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
3541
|
-
},
|
|
3542
|
-
bubbles: true,
|
|
3543
|
-
cancelable: false
|
|
3544
|
-
});
|
|
3545
|
-
window.dispatchEvent(event);
|
|
3546
|
-
} catch (eventError) {
|
|
3547
|
-
consola8.warn("Failed to dispatch validation error event:", eventError);
|
|
3548
|
-
}
|
|
3549
|
-
}
|
|
3550
|
-
throw error;
|
|
3551
|
-
}
|
|
3552
|
-
}
|
|
3553
|
-
__name(createCentrifugoTestingPublishTestCreate, "createCentrifugoTestingPublishTestCreate");
|
|
3554
|
-
async function createCentrifugoTestingPublishWithLoggingCreate(data, client) {
|
|
3555
|
-
const api = client || getAPIInstance2();
|
|
3556
|
-
const response = await api.centrifugo_testing.publishWithLoggingCreate(data);
|
|
3557
|
-
try {
|
|
3558
|
-
return PublishTestResponseSchema.parse(response);
|
|
3559
|
-
} catch (error) {
|
|
3560
|
-
consola8.error("\u274C Zod Validation Failed");
|
|
3561
|
-
consola8.box(`createCentrifugoTestingPublishWithLoggingCreate
|
|
3562
|
-
Path: /cfg/centrifugo/testing/publish-with-logging/
|
|
3563
|
-
Method: POST`);
|
|
3564
|
-
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3565
|
-
consola8.error("Validation Issues:");
|
|
3566
|
-
error.issues.forEach((issue, index) => {
|
|
3567
|
-
consola8.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3568
|
-
consola8.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3569
|
-
if (issue.expected) consola8.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3570
|
-
if (issue.received) consola8.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
3571
|
-
});
|
|
3572
|
-
}
|
|
3573
|
-
consola8.error("Response data:", response);
|
|
3574
|
-
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
3575
|
-
try {
|
|
3576
|
-
const event = new CustomEvent("zod-validation-error", {
|
|
3577
|
-
detail: {
|
|
3578
|
-
operation: "createCentrifugoTestingPublishWithLoggingCreate",
|
|
3579
|
-
path: "/cfg/centrifugo/testing/publish-with-logging/",
|
|
3580
|
-
method: "POST",
|
|
3581
|
-
error,
|
|
3582
|
-
response,
|
|
3583
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
3584
|
-
},
|
|
3585
|
-
bubbles: true,
|
|
3586
|
-
cancelable: false
|
|
3587
|
-
});
|
|
3588
|
-
window.dispatchEvent(event);
|
|
3589
|
-
} catch (eventError) {
|
|
3590
|
-
consola8.warn("Failed to dispatch validation error event:", eventError);
|
|
3591
|
-
}
|
|
3592
|
-
}
|
|
3593
|
-
throw error;
|
|
3594
|
-
}
|
|
3595
|
-
}
|
|
3596
|
-
__name(createCentrifugoTestingPublishWithLoggingCreate, "createCentrifugoTestingPublishWithLoggingCreate");
|
|
3597
|
-
async function createCentrifugoTestingSendAckCreate(data, client) {
|
|
3598
|
-
const api = client || getAPIInstance2();
|
|
3599
|
-
const response = await api.centrifugo_testing.sendAckCreate(data);
|
|
3600
|
-
try {
|
|
3601
|
-
return ManualAckResponseSchema.parse(response);
|
|
3602
|
-
} catch (error) {
|
|
3603
|
-
consola8.error("\u274C Zod Validation Failed");
|
|
3604
|
-
consola8.box(`createCentrifugoTestingSendAckCreate
|
|
3605
|
-
Path: /cfg/centrifugo/testing/send-ack/
|
|
3606
|
-
Method: POST`);
|
|
3607
|
-
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3608
|
-
consola8.error("Validation Issues:");
|
|
3609
|
-
error.issues.forEach((issue, index) => {
|
|
3610
|
-
consola8.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3611
|
-
consola8.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3612
|
-
if (issue.expected) consola8.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3613
|
-
if (issue.received) consola8.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
3614
|
-
});
|
|
3615
|
-
}
|
|
3616
|
-
consola8.error("Response data:", response);
|
|
3617
|
-
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
3618
|
-
try {
|
|
3619
|
-
const event = new CustomEvent("zod-validation-error", {
|
|
3620
|
-
detail: {
|
|
3621
|
-
operation: "createCentrifugoTestingSendAckCreate",
|
|
3622
|
-
path: "/cfg/centrifugo/testing/send-ack/",
|
|
3623
|
-
method: "POST",
|
|
3624
|
-
error,
|
|
3625
|
-
response,
|
|
3626
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
3627
|
-
},
|
|
3628
|
-
bubbles: true,
|
|
3629
|
-
cancelable: false
|
|
3630
|
-
});
|
|
3631
|
-
window.dispatchEvent(event);
|
|
3632
|
-
} catch (eventError) {
|
|
3633
|
-
consola8.warn("Failed to dispatch validation error event:", eventError);
|
|
3634
|
-
}
|
|
3635
|
-
}
|
|
3636
|
-
throw error;
|
|
3637
|
-
}
|
|
3638
|
-
}
|
|
3639
|
-
__name(createCentrifugoTestingSendAckCreate, "createCentrifugoTestingSendAckCreate");
|
|
3640
|
-
|
|
3641
|
-
// src/_api/generated/cfg_centrifugo/index.ts
|
|
3642
|
-
var TOKEN_KEY2 = "auth_token";
|
|
3643
|
-
var REFRESH_TOKEN_KEY2 = "refresh_token";
|
|
3644
|
-
function detectLocale2() {
|
|
2525
|
+
__name(getCentrifugoAuthTokenRetrieve, "getCentrifugoAuthTokenRetrieve");
|
|
2526
|
+
|
|
2527
|
+
// src/_api/generated/cfg_centrifugo/index.ts
|
|
2528
|
+
var TOKEN_KEY2 = "auth_token";
|
|
2529
|
+
var REFRESH_TOKEN_KEY2 = "refresh_token";
|
|
2530
|
+
function detectLocale2() {
|
|
3645
2531
|
try {
|
|
3646
2532
|
if (typeof document !== "undefined") {
|
|
3647
2533
|
const match = document.cookie.match(/(?:^|;\s*)NEXT_LOCALE=([^;]*)/);
|
|
@@ -3673,10 +2559,7 @@ var API2 = class {
|
|
|
3673
2559
|
tokenGetter: /* @__PURE__ */ __name(() => this.getToken(), "tokenGetter")
|
|
3674
2560
|
});
|
|
3675
2561
|
this._injectAuthHeader();
|
|
3676
|
-
this.centrifugo_admin_api = this._client.centrifugo_admin_api;
|
|
3677
2562
|
this.centrifugo_auth = this._client.centrifugo_auth;
|
|
3678
|
-
this.centrifugo_monitoring = this._client.centrifugo_monitoring;
|
|
3679
|
-
this.centrifugo_testing = this._client.centrifugo_testing;
|
|
3680
2563
|
}
|
|
3681
2564
|
static {
|
|
3682
2565
|
__name(this, "API");
|
|
@@ -3693,10 +2576,7 @@ var API2 = class {
|
|
|
3693
2576
|
tokenGetter: /* @__PURE__ */ __name(() => this.getToken(), "tokenGetter")
|
|
3694
2577
|
});
|
|
3695
2578
|
this._injectAuthHeader();
|
|
3696
|
-
this.centrifugo_admin_api = this._client.centrifugo_admin_api;
|
|
3697
2579
|
this.centrifugo_auth = this._client.centrifugo_auth;
|
|
3698
|
-
this.centrifugo_monitoring = this._client.centrifugo_monitoring;
|
|
3699
|
-
this.centrifugo_testing = this._client.centrifugo_testing;
|
|
3700
2580
|
}
|
|
3701
2581
|
_injectAuthHeader() {
|
|
3702
2582
|
const originalRequest = this._client.request.bind(this._client);
|
|
@@ -4441,43 +3321,47 @@ var APIClient3 = class {
|
|
|
4441
3321
|
if (error instanceof APIError3) {
|
|
4442
3322
|
throw error;
|
|
4443
3323
|
}
|
|
4444
|
-
|
|
3324
|
+
let possiblyCors = false;
|
|
3325
|
+
if (error instanceof TypeError && typeof window !== "undefined") {
|
|
3326
|
+
try {
|
|
3327
|
+
const isCrossOrigin = (() => {
|
|
3328
|
+
try {
|
|
3329
|
+
return new URL(url).origin !== window.location.origin;
|
|
3330
|
+
} catch {
|
|
3331
|
+
return false;
|
|
3332
|
+
}
|
|
3333
|
+
})();
|
|
3334
|
+
if (isCrossOrigin) {
|
|
3335
|
+
const entries = performance.getEntriesByName(url, "resource");
|
|
3336
|
+
if (entries.length > 0) {
|
|
3337
|
+
const last = entries[entries.length - 1];
|
|
3338
|
+
possiblyCors = "responseStatus" in last && last.responseStatus === 0;
|
|
3339
|
+
}
|
|
3340
|
+
}
|
|
3341
|
+
} catch {
|
|
3342
|
+
}
|
|
3343
|
+
}
|
|
4445
3344
|
if (this.logger) {
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
this.logger.error(` \u2192
|
|
4450
|
-
} else {
|
|
4451
|
-
this.logger.error(`\u26A0\uFE0F Network Error: ${method} ${url}`);
|
|
4452
|
-
this.logger.error(` \u2192 ${error instanceof Error ? error.message : String(error)}`);
|
|
3345
|
+
this.logger.error(`\u26A0\uFE0F Network Error: ${method} ${url}`);
|
|
3346
|
+
this.logger.error(` \u2192 ${error instanceof Error ? error.message : String(error)}`);
|
|
3347
|
+
if (possiblyCors) {
|
|
3348
|
+
this.logger.error(` \u2192 Possibly blocked by CORS policy (configure CORS on the server)`);
|
|
4453
3349
|
}
|
|
4454
3350
|
}
|
|
4455
3351
|
if (typeof window !== "undefined") {
|
|
4456
3352
|
try {
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
window.dispatchEvent(new CustomEvent("network-error", {
|
|
4470
|
-
detail: {
|
|
4471
|
-
url,
|
|
4472
|
-
method,
|
|
4473
|
-
error: error instanceof Error ? error.message : String(error),
|
|
4474
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
4475
|
-
},
|
|
4476
|
-
bubbles: true,
|
|
4477
|
-
cancelable: false
|
|
4478
|
-
}));
|
|
4479
|
-
}
|
|
4480
|
-
} catch (eventError) {
|
|
3353
|
+
window.dispatchEvent(new CustomEvent("network-error", {
|
|
3354
|
+
detail: {
|
|
3355
|
+
url,
|
|
3356
|
+
method,
|
|
3357
|
+
error: error instanceof Error ? error.message : String(error),
|
|
3358
|
+
possibly_cors: possiblyCors,
|
|
3359
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
3360
|
+
},
|
|
3361
|
+
bubbles: true,
|
|
3362
|
+
cancelable: false
|
|
3363
|
+
}));
|
|
3364
|
+
} catch {
|
|
4481
3365
|
}
|
|
4482
3366
|
}
|
|
4483
3367
|
const networkError = error instanceof Error ? new NetworkError3(error.message, url, error) : new NetworkError3("Unknown error", url);
|
|
@@ -4578,141 +3462,141 @@ __export(schemas_exports3, {
|
|
|
4578
3462
|
});
|
|
4579
3463
|
|
|
4580
3464
|
// src/_api/generated/cfg_totp/_utils/schemas/BackupCodesRegenerateRequest.schema.ts
|
|
4581
|
-
import { z as
|
|
4582
|
-
var BackupCodesRegenerateRequestSchema =
|
|
4583
|
-
code:
|
|
3465
|
+
import { z as z23 } from "zod";
|
|
3466
|
+
var BackupCodesRegenerateRequestSchema = z23.object({
|
|
3467
|
+
code: z23.string().min(6).max(6)
|
|
4584
3468
|
});
|
|
4585
3469
|
|
|
4586
3470
|
// src/_api/generated/cfg_totp/_utils/schemas/BackupCodesRegenerateResponse.schema.ts
|
|
4587
|
-
import { z as
|
|
4588
|
-
var BackupCodesRegenerateResponseSchema =
|
|
4589
|
-
backup_codes:
|
|
4590
|
-
warning:
|
|
3471
|
+
import { z as z24 } from "zod";
|
|
3472
|
+
var BackupCodesRegenerateResponseSchema = z24.object({
|
|
3473
|
+
backup_codes: z24.array(z24.string()),
|
|
3474
|
+
warning: z24.string()
|
|
4591
3475
|
});
|
|
4592
3476
|
|
|
4593
3477
|
// src/_api/generated/cfg_totp/_utils/schemas/BackupCodesStatus.schema.ts
|
|
4594
|
-
import { z as
|
|
4595
|
-
var BackupCodesStatusSchema =
|
|
4596
|
-
remaining_count:
|
|
4597
|
-
total_generated:
|
|
4598
|
-
warning:
|
|
3478
|
+
import { z as z25 } from "zod";
|
|
3479
|
+
var BackupCodesStatusSchema = z25.object({
|
|
3480
|
+
remaining_count: z25.number().int(),
|
|
3481
|
+
total_generated: z25.number().int(),
|
|
3482
|
+
warning: z25.string().nullable().optional()
|
|
4599
3483
|
});
|
|
4600
3484
|
|
|
4601
3485
|
// src/_api/generated/cfg_totp/_utils/schemas/ConfirmSetupRequest.schema.ts
|
|
4602
|
-
import { z as
|
|
4603
|
-
var ConfirmSetupRequestSchema =
|
|
4604
|
-
device_id:
|
|
4605
|
-
code:
|
|
3486
|
+
import { z as z26 } from "zod";
|
|
3487
|
+
var ConfirmSetupRequestSchema = z26.object({
|
|
3488
|
+
device_id: z26.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
|
|
3489
|
+
code: z26.string().min(6).max(6)
|
|
4606
3490
|
});
|
|
4607
3491
|
|
|
4608
3492
|
// src/_api/generated/cfg_totp/_utils/schemas/ConfirmSetupResponse.schema.ts
|
|
4609
|
-
import { z as
|
|
4610
|
-
var ConfirmSetupResponseSchema =
|
|
4611
|
-
message:
|
|
4612
|
-
backup_codes:
|
|
4613
|
-
backup_codes_warning:
|
|
3493
|
+
import { z as z27 } from "zod";
|
|
3494
|
+
var ConfirmSetupResponseSchema = z27.object({
|
|
3495
|
+
message: z27.string(),
|
|
3496
|
+
backup_codes: z27.array(z27.string()),
|
|
3497
|
+
backup_codes_warning: z27.string()
|
|
4614
3498
|
});
|
|
4615
3499
|
|
|
4616
3500
|
// src/_api/generated/cfg_totp/_utils/schemas/DeviceList.schema.ts
|
|
4617
|
-
import { z as
|
|
4618
|
-
var DeviceListSchema =
|
|
4619
|
-
id:
|
|
4620
|
-
name:
|
|
4621
|
-
is_primary:
|
|
4622
|
-
status:
|
|
4623
|
-
created_at:
|
|
4624
|
-
confirmed_at:
|
|
4625
|
-
last_used_at:
|
|
3501
|
+
import { z as z28 } from "zod";
|
|
3502
|
+
var DeviceListSchema = z28.object({
|
|
3503
|
+
id: z28.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
|
|
3504
|
+
name: z28.string(),
|
|
3505
|
+
is_primary: z28.boolean(),
|
|
3506
|
+
status: z28.nativeEnum(DeviceListStatus),
|
|
3507
|
+
created_at: z28.string().datetime({ offset: true }),
|
|
3508
|
+
confirmed_at: z28.string().datetime({ offset: true }).nullable(),
|
|
3509
|
+
last_used_at: z28.string().datetime({ offset: true }).nullable()
|
|
4626
3510
|
});
|
|
4627
3511
|
|
|
4628
3512
|
// src/_api/generated/cfg_totp/_utils/schemas/DeviceListResponse.schema.ts
|
|
4629
|
-
import { z as
|
|
4630
|
-
var DeviceListResponseSchema =
|
|
4631
|
-
devices:
|
|
4632
|
-
has_2fa_enabled:
|
|
3513
|
+
import { z as z29 } from "zod";
|
|
3514
|
+
var DeviceListResponseSchema = z29.object({
|
|
3515
|
+
devices: z29.array(DeviceListSchema),
|
|
3516
|
+
has_2fa_enabled: z29.boolean()
|
|
4633
3517
|
});
|
|
4634
3518
|
|
|
4635
3519
|
// src/_api/generated/cfg_totp/_utils/schemas/DisableRequest.schema.ts
|
|
4636
|
-
import { z as
|
|
4637
|
-
var DisableRequestSchema =
|
|
4638
|
-
code:
|
|
3520
|
+
import { z as z30 } from "zod";
|
|
3521
|
+
var DisableRequestSchema = z30.object({
|
|
3522
|
+
code: z30.string().min(6).max(6)
|
|
4639
3523
|
});
|
|
4640
3524
|
|
|
4641
3525
|
// src/_api/generated/cfg_totp/_utils/schemas/PaginatedDeviceListResponseList.schema.ts
|
|
4642
|
-
import { z as
|
|
4643
|
-
var PaginatedDeviceListResponseListSchema =
|
|
4644
|
-
count:
|
|
4645
|
-
page:
|
|
4646
|
-
pages:
|
|
4647
|
-
page_size:
|
|
4648
|
-
has_next:
|
|
4649
|
-
has_previous:
|
|
4650
|
-
next_page:
|
|
4651
|
-
previous_page:
|
|
4652
|
-
results:
|
|
3526
|
+
import { z as z31 } from "zod";
|
|
3527
|
+
var PaginatedDeviceListResponseListSchema = z31.object({
|
|
3528
|
+
count: z31.number().int(),
|
|
3529
|
+
page: z31.number().int(),
|
|
3530
|
+
pages: z31.number().int(),
|
|
3531
|
+
page_size: z31.number().int(),
|
|
3532
|
+
has_next: z31.boolean(),
|
|
3533
|
+
has_previous: z31.boolean(),
|
|
3534
|
+
next_page: z31.number().int().nullable().optional(),
|
|
3535
|
+
previous_page: z31.number().int().nullable().optional(),
|
|
3536
|
+
results: z31.array(DeviceListResponseSchema)
|
|
4653
3537
|
});
|
|
4654
3538
|
|
|
4655
3539
|
// src/_api/generated/cfg_totp/_utils/schemas/SetupRequest.schema.ts
|
|
4656
|
-
import { z as
|
|
4657
|
-
var SetupRequestSchema =
|
|
4658
|
-
device_name:
|
|
3540
|
+
import { z as z32 } from "zod";
|
|
3541
|
+
var SetupRequestSchema = z32.object({
|
|
3542
|
+
device_name: z32.string().min(1).max(100).optional()
|
|
4659
3543
|
});
|
|
4660
3544
|
|
|
4661
3545
|
// src/_api/generated/cfg_totp/_utils/schemas/SetupResponse.schema.ts
|
|
4662
|
-
import { z as
|
|
4663
|
-
var SetupResponseSchema =
|
|
4664
|
-
device_id:
|
|
4665
|
-
secret:
|
|
4666
|
-
provisioning_uri:
|
|
4667
|
-
qr_code_base64:
|
|
4668
|
-
expires_in:
|
|
3546
|
+
import { z as z33 } from "zod";
|
|
3547
|
+
var SetupResponseSchema = z33.object({
|
|
3548
|
+
device_id: z33.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
|
|
3549
|
+
secret: z33.string(),
|
|
3550
|
+
provisioning_uri: z33.string(),
|
|
3551
|
+
qr_code_base64: z33.string(),
|
|
3552
|
+
expires_in: z33.number().int()
|
|
4669
3553
|
});
|
|
4670
3554
|
|
|
4671
3555
|
// src/_api/generated/cfg_totp/_utils/schemas/TotpVerifyUser.schema.ts
|
|
4672
|
-
import { z as
|
|
4673
|
-
var TotpVerifyUserSchema =
|
|
4674
|
-
id:
|
|
4675
|
-
email:
|
|
4676
|
-
first_name:
|
|
4677
|
-
last_name:
|
|
4678
|
-
full_name:
|
|
4679
|
-
initials:
|
|
4680
|
-
display_username:
|
|
4681
|
-
company:
|
|
4682
|
-
phone:
|
|
4683
|
-
position:
|
|
4684
|
-
language:
|
|
4685
|
-
avatar:
|
|
4686
|
-
is_staff:
|
|
4687
|
-
is_superuser:
|
|
4688
|
-
date_joined:
|
|
4689
|
-
last_login:
|
|
4690
|
-
unanswered_messages_count:
|
|
3556
|
+
import { z as z34 } from "zod";
|
|
3557
|
+
var TotpVerifyUserSchema = z34.object({
|
|
3558
|
+
id: z34.number().int(),
|
|
3559
|
+
email: z34.email(),
|
|
3560
|
+
first_name: z34.string().max(50).optional(),
|
|
3561
|
+
last_name: z34.string().max(50).optional(),
|
|
3562
|
+
full_name: z34.string(),
|
|
3563
|
+
initials: z34.string(),
|
|
3564
|
+
display_username: z34.string(),
|
|
3565
|
+
company: z34.string().max(100).optional(),
|
|
3566
|
+
phone: z34.string().max(20).optional(),
|
|
3567
|
+
position: z34.string().max(100).optional(),
|
|
3568
|
+
language: z34.string().max(10).optional(),
|
|
3569
|
+
avatar: z34.string().nullable(),
|
|
3570
|
+
is_staff: z34.boolean(),
|
|
3571
|
+
is_superuser: z34.boolean(),
|
|
3572
|
+
date_joined: z34.string().datetime({ offset: true }),
|
|
3573
|
+
last_login: z34.string().datetime({ offset: true }).nullable(),
|
|
3574
|
+
unanswered_messages_count: z34.number().int()
|
|
4691
3575
|
});
|
|
4692
3576
|
|
|
4693
3577
|
// src/_api/generated/cfg_totp/_utils/schemas/VerifyBackupRequest.schema.ts
|
|
4694
|
-
import { z as
|
|
4695
|
-
var VerifyBackupRequestSchema =
|
|
4696
|
-
session_id:
|
|
4697
|
-
backup_code:
|
|
3578
|
+
import { z as z35 } from "zod";
|
|
3579
|
+
var VerifyBackupRequestSchema = z35.object({
|
|
3580
|
+
session_id: z35.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
|
|
3581
|
+
backup_code: z35.string().min(8).max(8)
|
|
4698
3582
|
});
|
|
4699
3583
|
|
|
4700
3584
|
// src/_api/generated/cfg_totp/_utils/schemas/VerifyRequest.schema.ts
|
|
4701
|
-
import { z as
|
|
4702
|
-
var VerifyRequestSchema =
|
|
4703
|
-
session_id:
|
|
4704
|
-
code:
|
|
3585
|
+
import { z as z36 } from "zod";
|
|
3586
|
+
var VerifyRequestSchema = z36.object({
|
|
3587
|
+
session_id: z36.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
|
|
3588
|
+
code: z36.string().min(6).max(6)
|
|
4705
3589
|
});
|
|
4706
3590
|
|
|
4707
3591
|
// src/_api/generated/cfg_totp/_utils/schemas/VerifyResponse.schema.ts
|
|
4708
|
-
import { z as
|
|
4709
|
-
var VerifyResponseSchema =
|
|
4710
|
-
message:
|
|
4711
|
-
access_token:
|
|
4712
|
-
refresh_token:
|
|
3592
|
+
import { z as z37 } from "zod";
|
|
3593
|
+
var VerifyResponseSchema = z37.object({
|
|
3594
|
+
message: z37.string(),
|
|
3595
|
+
access_token: z37.string(),
|
|
3596
|
+
refresh_token: z37.string(),
|
|
4713
3597
|
user: TotpVerifyUserSchema,
|
|
4714
|
-
remaining_backup_codes:
|
|
4715
|
-
warning:
|
|
3598
|
+
remaining_backup_codes: z37.number().int().optional(),
|
|
3599
|
+
warning: z37.string().optional()
|
|
4716
3600
|
});
|
|
4717
3601
|
|
|
4718
3602
|
// src/_api/generated/cfg_totp/_utils/fetchers/index.ts
|
|
@@ -4763,27 +3647,27 @@ async function deleteTotpDevicesDestroy(id, client) {
|
|
|
4763
3647
|
__name(deleteTotpDevicesDestroy, "deleteTotpDevicesDestroy");
|
|
4764
3648
|
|
|
4765
3649
|
// src/_api/generated/cfg_totp/_utils/fetchers/totp__backup_codes.ts
|
|
4766
|
-
import { consola as
|
|
3650
|
+
import { consola as consola6 } from "consola";
|
|
4767
3651
|
async function getTotpBackupCodesRetrieve(client) {
|
|
4768
3652
|
const api = client || getAPIInstance3();
|
|
4769
3653
|
const response = await api.backup_codes.totpBackupCodesRetrieve();
|
|
4770
3654
|
try {
|
|
4771
3655
|
return BackupCodesStatusSchema.parse(response);
|
|
4772
3656
|
} catch (error) {
|
|
4773
|
-
|
|
4774
|
-
|
|
3657
|
+
consola6.error("\u274C Zod Validation Failed");
|
|
3658
|
+
consola6.box(`getTotpBackupCodesRetrieve
|
|
4775
3659
|
Path: /cfg/totp/backup-codes/
|
|
4776
3660
|
Method: GET`);
|
|
4777
3661
|
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
4778
|
-
|
|
3662
|
+
consola6.error("Validation Issues:");
|
|
4779
3663
|
error.issues.forEach((issue, index) => {
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
if (issue.expected)
|
|
4783
|
-
if (issue.received)
|
|
3664
|
+
consola6.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3665
|
+
consola6.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3666
|
+
if (issue.expected) consola6.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3667
|
+
if (issue.received) consola6.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
4784
3668
|
});
|
|
4785
3669
|
}
|
|
4786
|
-
|
|
3670
|
+
consola6.error("Response data:", response);
|
|
4787
3671
|
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
4788
3672
|
try {
|
|
4789
3673
|
const event = new CustomEvent("zod-validation-error", {
|
|
@@ -4800,7 +3684,7 @@ Method: GET`);
|
|
|
4800
3684
|
});
|
|
4801
3685
|
window.dispatchEvent(event);
|
|
4802
3686
|
} catch (eventError) {
|
|
4803
|
-
|
|
3687
|
+
consola6.warn("Failed to dispatch validation error event:", eventError);
|
|
4804
3688
|
}
|
|
4805
3689
|
}
|
|
4806
3690
|
throw error;
|
|
@@ -4813,20 +3697,20 @@ async function createTotpBackupCodesRegenerateCreate(data, client) {
|
|
|
4813
3697
|
try {
|
|
4814
3698
|
return BackupCodesRegenerateResponseSchema.parse(response);
|
|
4815
3699
|
} catch (error) {
|
|
4816
|
-
|
|
4817
|
-
|
|
3700
|
+
consola6.error("\u274C Zod Validation Failed");
|
|
3701
|
+
consola6.box(`createTotpBackupCodesRegenerateCreate
|
|
4818
3702
|
Path: /cfg/totp/backup-codes/regenerate/
|
|
4819
3703
|
Method: POST`);
|
|
4820
3704
|
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
4821
|
-
|
|
3705
|
+
consola6.error("Validation Issues:");
|
|
4822
3706
|
error.issues.forEach((issue, index) => {
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
if (issue.expected)
|
|
4826
|
-
if (issue.received)
|
|
3707
|
+
consola6.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3708
|
+
consola6.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3709
|
+
if (issue.expected) consola6.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3710
|
+
if (issue.received) consola6.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
4827
3711
|
});
|
|
4828
3712
|
}
|
|
4829
|
-
|
|
3713
|
+
consola6.error("Response data:", response);
|
|
4830
3714
|
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
4831
3715
|
try {
|
|
4832
3716
|
const event = new CustomEvent("zod-validation-error", {
|
|
@@ -4843,7 +3727,7 @@ Method: POST`);
|
|
|
4843
3727
|
});
|
|
4844
3728
|
window.dispatchEvent(event);
|
|
4845
3729
|
} catch (eventError) {
|
|
4846
|
-
|
|
3730
|
+
consola6.warn("Failed to dispatch validation error event:", eventError);
|
|
4847
3731
|
}
|
|
4848
3732
|
}
|
|
4849
3733
|
throw error;
|
|
@@ -4852,27 +3736,27 @@ Method: POST`);
|
|
|
4852
3736
|
__name(createTotpBackupCodesRegenerateCreate, "createTotpBackupCodesRegenerateCreate");
|
|
4853
3737
|
|
|
4854
3738
|
// src/_api/generated/cfg_totp/_utils/fetchers/totp__totp_management.ts
|
|
4855
|
-
import { consola as
|
|
3739
|
+
import { consola as consola7 } from "consola";
|
|
4856
3740
|
async function getTotpDevicesList(params, client) {
|
|
4857
3741
|
const api = client || getAPIInstance3();
|
|
4858
3742
|
const response = await api.totp_management.totpDevicesList(params?.ordering, params?.page, params?.page_size, params?.search);
|
|
4859
3743
|
try {
|
|
4860
3744
|
return PaginatedDeviceListResponseListSchema.parse(response);
|
|
4861
3745
|
} catch (error) {
|
|
4862
|
-
|
|
4863
|
-
|
|
3746
|
+
consola7.error("\u274C Zod Validation Failed");
|
|
3747
|
+
consola7.box(`getTotpDevicesList
|
|
4864
3748
|
Path: /cfg/totp/devices/
|
|
4865
3749
|
Method: GET`);
|
|
4866
3750
|
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
4867
|
-
|
|
3751
|
+
consola7.error("Validation Issues:");
|
|
4868
3752
|
error.issues.forEach((issue, index) => {
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
if (issue.expected)
|
|
4872
|
-
if (issue.received)
|
|
3753
|
+
consola7.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3754
|
+
consola7.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3755
|
+
if (issue.expected) consola7.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3756
|
+
if (issue.received) consola7.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
4873
3757
|
});
|
|
4874
3758
|
}
|
|
4875
|
-
|
|
3759
|
+
consola7.error("Response data:", response);
|
|
4876
3760
|
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
4877
3761
|
try {
|
|
4878
3762
|
const event = new CustomEvent("zod-validation-error", {
|
|
@@ -4889,7 +3773,7 @@ Method: GET`);
|
|
|
4889
3773
|
});
|
|
4890
3774
|
window.dispatchEvent(event);
|
|
4891
3775
|
} catch (eventError) {
|
|
4892
|
-
|
|
3776
|
+
consola7.warn("Failed to dispatch validation error event:", eventError);
|
|
4893
3777
|
}
|
|
4894
3778
|
}
|
|
4895
3779
|
throw error;
|
|
@@ -4904,27 +3788,27 @@ async function createTotpDisableCreate(data, client) {
|
|
|
4904
3788
|
__name(createTotpDisableCreate, "createTotpDisableCreate");
|
|
4905
3789
|
|
|
4906
3790
|
// src/_api/generated/cfg_totp/_utils/fetchers/totp__totp_setup.ts
|
|
4907
|
-
import { consola as
|
|
3791
|
+
import { consola as consola8 } from "consola";
|
|
4908
3792
|
async function createTotpSetupCreate(data, client) {
|
|
4909
3793
|
const api = client || getAPIInstance3();
|
|
4910
3794
|
const response = await api.totp_setup.create(data);
|
|
4911
3795
|
try {
|
|
4912
3796
|
return SetupResponseSchema.parse(response);
|
|
4913
3797
|
} catch (error) {
|
|
4914
|
-
|
|
4915
|
-
|
|
3798
|
+
consola8.error("\u274C Zod Validation Failed");
|
|
3799
|
+
consola8.box(`createTotpSetupCreate
|
|
4916
3800
|
Path: /cfg/totp/setup/
|
|
4917
3801
|
Method: POST`);
|
|
4918
3802
|
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
4919
|
-
|
|
3803
|
+
consola8.error("Validation Issues:");
|
|
4920
3804
|
error.issues.forEach((issue, index) => {
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
if (issue.expected)
|
|
4924
|
-
if (issue.received)
|
|
3805
|
+
consola8.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3806
|
+
consola8.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3807
|
+
if (issue.expected) consola8.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3808
|
+
if (issue.received) consola8.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
4925
3809
|
});
|
|
4926
3810
|
}
|
|
4927
|
-
|
|
3811
|
+
consola8.error("Response data:", response);
|
|
4928
3812
|
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
4929
3813
|
try {
|
|
4930
3814
|
const event = new CustomEvent("zod-validation-error", {
|
|
@@ -4941,7 +3825,7 @@ Method: POST`);
|
|
|
4941
3825
|
});
|
|
4942
3826
|
window.dispatchEvent(event);
|
|
4943
3827
|
} catch (eventError) {
|
|
4944
|
-
|
|
3828
|
+
consola8.warn("Failed to dispatch validation error event:", eventError);
|
|
4945
3829
|
}
|
|
4946
3830
|
}
|
|
4947
3831
|
throw error;
|
|
@@ -4954,20 +3838,20 @@ async function createTotpSetupConfirmCreate(data, client) {
|
|
|
4954
3838
|
try {
|
|
4955
3839
|
return ConfirmSetupResponseSchema.parse(response);
|
|
4956
3840
|
} catch (error) {
|
|
4957
|
-
|
|
4958
|
-
|
|
3841
|
+
consola8.error("\u274C Zod Validation Failed");
|
|
3842
|
+
consola8.box(`createTotpSetupConfirmCreate
|
|
4959
3843
|
Path: /cfg/totp/setup/confirm/
|
|
4960
3844
|
Method: POST`);
|
|
4961
3845
|
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
4962
|
-
|
|
3846
|
+
consola8.error("Validation Issues:");
|
|
4963
3847
|
error.issues.forEach((issue, index) => {
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
if (issue.expected)
|
|
4967
|
-
if (issue.received)
|
|
3848
|
+
consola8.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3849
|
+
consola8.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3850
|
+
if (issue.expected) consola8.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3851
|
+
if (issue.received) consola8.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
4968
3852
|
});
|
|
4969
3853
|
}
|
|
4970
|
-
|
|
3854
|
+
consola8.error("Response data:", response);
|
|
4971
3855
|
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
4972
3856
|
try {
|
|
4973
3857
|
const event = new CustomEvent("zod-validation-error", {
|
|
@@ -4984,7 +3868,7 @@ Method: POST`);
|
|
|
4984
3868
|
});
|
|
4985
3869
|
window.dispatchEvent(event);
|
|
4986
3870
|
} catch (eventError) {
|
|
4987
|
-
|
|
3871
|
+
consola8.warn("Failed to dispatch validation error event:", eventError);
|
|
4988
3872
|
}
|
|
4989
3873
|
}
|
|
4990
3874
|
throw error;
|
|
@@ -4993,27 +3877,27 @@ Method: POST`);
|
|
|
4993
3877
|
__name(createTotpSetupConfirmCreate, "createTotpSetupConfirmCreate");
|
|
4994
3878
|
|
|
4995
3879
|
// src/_api/generated/cfg_totp/_utils/fetchers/totp__totp_verification.ts
|
|
4996
|
-
import { consola as
|
|
3880
|
+
import { consola as consola9 } from "consola";
|
|
4997
3881
|
async function createTotpVerifyCreate(data, client) {
|
|
4998
3882
|
const api = client || getAPIInstance3();
|
|
4999
3883
|
const response = await api.totp_verification.totpVerifyCreate(data);
|
|
5000
3884
|
try {
|
|
5001
3885
|
return VerifyResponseSchema.parse(response);
|
|
5002
3886
|
} catch (error) {
|
|
5003
|
-
|
|
5004
|
-
|
|
3887
|
+
consola9.error("\u274C Zod Validation Failed");
|
|
3888
|
+
consola9.box(`createTotpVerifyCreate
|
|
5005
3889
|
Path: /cfg/totp/verify/
|
|
5006
3890
|
Method: POST`);
|
|
5007
3891
|
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
5008
|
-
|
|
3892
|
+
consola9.error("Validation Issues:");
|
|
5009
3893
|
error.issues.forEach((issue, index) => {
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
if (issue.expected)
|
|
5013
|
-
if (issue.received)
|
|
3894
|
+
consola9.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3895
|
+
consola9.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3896
|
+
if (issue.expected) consola9.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3897
|
+
if (issue.received) consola9.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
5014
3898
|
});
|
|
5015
3899
|
}
|
|
5016
|
-
|
|
3900
|
+
consola9.error("Response data:", response);
|
|
5017
3901
|
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
5018
3902
|
try {
|
|
5019
3903
|
const event = new CustomEvent("zod-validation-error", {
|
|
@@ -5030,7 +3914,7 @@ Method: POST`);
|
|
|
5030
3914
|
});
|
|
5031
3915
|
window.dispatchEvent(event);
|
|
5032
3916
|
} catch (eventError) {
|
|
5033
|
-
|
|
3917
|
+
consola9.warn("Failed to dispatch validation error event:", eventError);
|
|
5034
3918
|
}
|
|
5035
3919
|
}
|
|
5036
3920
|
throw error;
|
|
@@ -5043,20 +3927,20 @@ async function createTotpVerifyBackupCreate(data, client) {
|
|
|
5043
3927
|
try {
|
|
5044
3928
|
return VerifyResponseSchema.parse(response);
|
|
5045
3929
|
} catch (error) {
|
|
5046
|
-
|
|
5047
|
-
|
|
3930
|
+
consola9.error("\u274C Zod Validation Failed");
|
|
3931
|
+
consola9.box(`createTotpVerifyBackupCreate
|
|
5048
3932
|
Path: /cfg/totp/verify/backup/
|
|
5049
3933
|
Method: POST`);
|
|
5050
3934
|
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
5051
|
-
|
|
3935
|
+
consola9.error("Validation Issues:");
|
|
5052
3936
|
error.issues.forEach((issue, index) => {
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
if (issue.expected)
|
|
5056
|
-
if (issue.received)
|
|
3937
|
+
consola9.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3938
|
+
consola9.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3939
|
+
if (issue.expected) consola9.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3940
|
+
if (issue.received) consola9.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
5057
3941
|
});
|
|
5058
3942
|
}
|
|
5059
|
-
|
|
3943
|
+
consola9.error("Response data:", response);
|
|
5060
3944
|
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
5061
3945
|
try {
|
|
5062
3946
|
const event = new CustomEvent("zod-validation-error", {
|
|
@@ -5073,7 +3957,7 @@ Method: POST`);
|
|
|
5073
3957
|
});
|
|
5074
3958
|
window.dispatchEvent(event);
|
|
5075
3959
|
} catch (eventError) {
|
|
5076
|
-
|
|
3960
|
+
consola9.warn("Failed to dispatch validation error event:", eventError);
|
|
5077
3961
|
}
|
|
5078
3962
|
}
|
|
5079
3963
|
throw error;
|
|
@@ -5391,80 +4275,9 @@ __name(useCreateAccountsOtpVerifyCreate, "useCreateAccountsOtpVerifyCreate");
|
|
|
5391
4275
|
// src/_api/generated/cfg_centrifugo/_utils/hooks/index.ts
|
|
5392
4276
|
var hooks_exports = {};
|
|
5393
4277
|
__export(hooks_exports, {
|
|
5394
|
-
useCentrifugoAuthTokenRetrieve: () => useCentrifugoAuthTokenRetrieve
|
|
5395
|
-
useCentrifugoMonitorChannelsRetrieve: () => useCentrifugoMonitorChannelsRetrieve,
|
|
5396
|
-
useCentrifugoMonitorHealthRetrieve: () => useCentrifugoMonitorHealthRetrieve,
|
|
5397
|
-
useCentrifugoMonitorOverviewRetrieve: () => useCentrifugoMonitorOverviewRetrieve,
|
|
5398
|
-
useCentrifugoMonitorPublishesList: () => useCentrifugoMonitorPublishesList,
|
|
5399
|
-
useCentrifugoMonitorTimelineRetrieve: () => useCentrifugoMonitorTimelineRetrieve,
|
|
5400
|
-
useCreateCentrifugoServerAuthTokenCreate: () => useCreateCentrifugoServerAuthTokenCreate,
|
|
5401
|
-
useCreateCentrifugoServerChannelsCreate: () => useCreateCentrifugoServerChannelsCreate,
|
|
5402
|
-
useCreateCentrifugoServerHistoryCreate: () => useCreateCentrifugoServerHistoryCreate,
|
|
5403
|
-
useCreateCentrifugoServerInfoCreate: () => useCreateCentrifugoServerInfoCreate,
|
|
5404
|
-
useCreateCentrifugoServerPresenceCreate: () => useCreateCentrifugoServerPresenceCreate,
|
|
5405
|
-
useCreateCentrifugoServerPresenceStatsCreate: () => useCreateCentrifugoServerPresenceStatsCreate,
|
|
5406
|
-
useCreateCentrifugoTestingPublishTestCreate: () => useCreateCentrifugoTestingPublishTestCreate,
|
|
5407
|
-
useCreateCentrifugoTestingPublishWithLoggingCreate: () => useCreateCentrifugoTestingPublishWithLoggingCreate,
|
|
5408
|
-
useCreateCentrifugoTestingSendAckCreate: () => useCreateCentrifugoTestingSendAckCreate
|
|
4278
|
+
useCentrifugoAuthTokenRetrieve: () => useCentrifugoAuthTokenRetrieve
|
|
5409
4279
|
});
|
|
5410
4280
|
|
|
5411
|
-
// src/_api/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_admin_api.ts
|
|
5412
|
-
import { useSWRConfig as useSWRConfig5 } from "swr";
|
|
5413
|
-
function useCreateCentrifugoServerAuthTokenCreate() {
|
|
5414
|
-
const { mutate } = useSWRConfig5();
|
|
5415
|
-
return async (client) => {
|
|
5416
|
-
const result = await createCentrifugoServerAuthTokenCreate(client);
|
|
5417
|
-
mutate("cfg-centrifugo-server-auth-token");
|
|
5418
|
-
return result;
|
|
5419
|
-
};
|
|
5420
|
-
}
|
|
5421
|
-
__name(useCreateCentrifugoServerAuthTokenCreate, "useCreateCentrifugoServerAuthTokenCreate");
|
|
5422
|
-
function useCreateCentrifugoServerChannelsCreate() {
|
|
5423
|
-
const { mutate } = useSWRConfig5();
|
|
5424
|
-
return async (data, client) => {
|
|
5425
|
-
const result = await createCentrifugoServerChannelsCreate(data, client);
|
|
5426
|
-
mutate("cfg-centrifugo-server-channels");
|
|
5427
|
-
return result;
|
|
5428
|
-
};
|
|
5429
|
-
}
|
|
5430
|
-
__name(useCreateCentrifugoServerChannelsCreate, "useCreateCentrifugoServerChannelsCreate");
|
|
5431
|
-
function useCreateCentrifugoServerHistoryCreate() {
|
|
5432
|
-
const { mutate } = useSWRConfig5();
|
|
5433
|
-
return async (data, client) => {
|
|
5434
|
-
const result = await createCentrifugoServerHistoryCreate(data, client);
|
|
5435
|
-
mutate("cfg-centrifugo-server-history");
|
|
5436
|
-
return result;
|
|
5437
|
-
};
|
|
5438
|
-
}
|
|
5439
|
-
__name(useCreateCentrifugoServerHistoryCreate, "useCreateCentrifugoServerHistoryCreate");
|
|
5440
|
-
function useCreateCentrifugoServerInfoCreate() {
|
|
5441
|
-
const { mutate } = useSWRConfig5();
|
|
5442
|
-
return async (client) => {
|
|
5443
|
-
const result = await createCentrifugoServerInfoCreate(client);
|
|
5444
|
-
mutate("cfg-centrifugo-server-info");
|
|
5445
|
-
return result;
|
|
5446
|
-
};
|
|
5447
|
-
}
|
|
5448
|
-
__name(useCreateCentrifugoServerInfoCreate, "useCreateCentrifugoServerInfoCreate");
|
|
5449
|
-
function useCreateCentrifugoServerPresenceCreate() {
|
|
5450
|
-
const { mutate } = useSWRConfig5();
|
|
5451
|
-
return async (data, client) => {
|
|
5452
|
-
const result = await createCentrifugoServerPresenceCreate(data, client);
|
|
5453
|
-
mutate("cfg-centrifugo-server-presence");
|
|
5454
|
-
return result;
|
|
5455
|
-
};
|
|
5456
|
-
}
|
|
5457
|
-
__name(useCreateCentrifugoServerPresenceCreate, "useCreateCentrifugoServerPresenceCreate");
|
|
5458
|
-
function useCreateCentrifugoServerPresenceStatsCreate() {
|
|
5459
|
-
const { mutate } = useSWRConfig5();
|
|
5460
|
-
return async (data, client) => {
|
|
5461
|
-
const result = await createCentrifugoServerPresenceStatsCreate(data, client);
|
|
5462
|
-
mutate("cfg-centrifugo-server-presence-stats");
|
|
5463
|
-
return result;
|
|
5464
|
-
};
|
|
5465
|
-
}
|
|
5466
|
-
__name(useCreateCentrifugoServerPresenceStatsCreate, "useCreateCentrifugoServerPresenceStatsCreate");
|
|
5467
|
-
|
|
5468
4281
|
// src/_api/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_auth.ts
|
|
5469
4282
|
import useSWR3 from "swr";
|
|
5470
4283
|
function useCentrifugoAuthTokenRetrieve(client) {
|
|
@@ -5475,74 +4288,6 @@ function useCentrifugoAuthTokenRetrieve(client) {
|
|
|
5475
4288
|
}
|
|
5476
4289
|
__name(useCentrifugoAuthTokenRetrieve, "useCentrifugoAuthTokenRetrieve");
|
|
5477
4290
|
|
|
5478
|
-
// src/_api/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_monitoring.ts
|
|
5479
|
-
import useSWR4 from "swr";
|
|
5480
|
-
function useCentrifugoMonitorChannelsRetrieve(params, client) {
|
|
5481
|
-
return useSWR4(
|
|
5482
|
-
["cfg-centrifugo-monitor-channel", params],
|
|
5483
|
-
() => getCentrifugoMonitorChannelsRetrieve(params, client)
|
|
5484
|
-
);
|
|
5485
|
-
}
|
|
5486
|
-
__name(useCentrifugoMonitorChannelsRetrieve, "useCentrifugoMonitorChannelsRetrieve");
|
|
5487
|
-
function useCentrifugoMonitorHealthRetrieve(client) {
|
|
5488
|
-
return useSWR4(
|
|
5489
|
-
"cfg-centrifugo-monitor-health",
|
|
5490
|
-
() => getCentrifugoMonitorHealthRetrieve(client)
|
|
5491
|
-
);
|
|
5492
|
-
}
|
|
5493
|
-
__name(useCentrifugoMonitorHealthRetrieve, "useCentrifugoMonitorHealthRetrieve");
|
|
5494
|
-
function useCentrifugoMonitorOverviewRetrieve(params, client) {
|
|
5495
|
-
return useSWR4(
|
|
5496
|
-
["cfg-centrifugo-monitor-overview", params],
|
|
5497
|
-
() => getCentrifugoMonitorOverviewRetrieve(params, client)
|
|
5498
|
-
);
|
|
5499
|
-
}
|
|
5500
|
-
__name(useCentrifugoMonitorOverviewRetrieve, "useCentrifugoMonitorOverviewRetrieve");
|
|
5501
|
-
function useCentrifugoMonitorPublishesList(params, client) {
|
|
5502
|
-
return useSWR4(
|
|
5503
|
-
["cfg-centrifugo-monitor-publishes", params],
|
|
5504
|
-
() => getCentrifugoMonitorPublishesList(params, client)
|
|
5505
|
-
);
|
|
5506
|
-
}
|
|
5507
|
-
__name(useCentrifugoMonitorPublishesList, "useCentrifugoMonitorPublishesList");
|
|
5508
|
-
function useCentrifugoMonitorTimelineRetrieve(params, client) {
|
|
5509
|
-
return useSWR4(
|
|
5510
|
-
["cfg-centrifugo-monitor-timeline", params],
|
|
5511
|
-
() => getCentrifugoMonitorTimelineRetrieve(params, client)
|
|
5512
|
-
);
|
|
5513
|
-
}
|
|
5514
|
-
__name(useCentrifugoMonitorTimelineRetrieve, "useCentrifugoMonitorTimelineRetrieve");
|
|
5515
|
-
|
|
5516
|
-
// src/_api/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_testing.ts
|
|
5517
|
-
import { useSWRConfig as useSWRConfig6 } from "swr";
|
|
5518
|
-
function useCreateCentrifugoTestingPublishTestCreate() {
|
|
5519
|
-
const { mutate } = useSWRConfig6();
|
|
5520
|
-
return async (data, client) => {
|
|
5521
|
-
const result = await createCentrifugoTestingPublishTestCreate(data, client);
|
|
5522
|
-
mutate("cfg-centrifugo-testing-publish-test");
|
|
5523
|
-
return result;
|
|
5524
|
-
};
|
|
5525
|
-
}
|
|
5526
|
-
__name(useCreateCentrifugoTestingPublishTestCreate, "useCreateCentrifugoTestingPublishTestCreate");
|
|
5527
|
-
function useCreateCentrifugoTestingPublishWithLoggingCreate() {
|
|
5528
|
-
const { mutate } = useSWRConfig6();
|
|
5529
|
-
return async (data, client) => {
|
|
5530
|
-
const result = await createCentrifugoTestingPublishWithLoggingCreate(data, client);
|
|
5531
|
-
mutate("cfg-centrifugo-testing-publish-with-logging");
|
|
5532
|
-
return result;
|
|
5533
|
-
};
|
|
5534
|
-
}
|
|
5535
|
-
__name(useCreateCentrifugoTestingPublishWithLoggingCreate, "useCreateCentrifugoTestingPublishWithLoggingCreate");
|
|
5536
|
-
function useCreateCentrifugoTestingSendAckCreate() {
|
|
5537
|
-
const { mutate } = useSWRConfig6();
|
|
5538
|
-
return async (data, client) => {
|
|
5539
|
-
const result = await createCentrifugoTestingSendAckCreate(data, client);
|
|
5540
|
-
mutate("cfg-centrifugo-testing-send-ack");
|
|
5541
|
-
return result;
|
|
5542
|
-
};
|
|
5543
|
-
}
|
|
5544
|
-
__name(useCreateCentrifugoTestingSendAckCreate, "useCreateCentrifugoTestingSendAckCreate");
|
|
5545
|
-
|
|
5546
4291
|
// src/_api/generated/cfg_totp/_utils/hooks/index.ts
|
|
5547
4292
|
var hooks_exports2 = {};
|
|
5548
4293
|
__export(hooks_exports2, {
|
|
@@ -5558,17 +4303,17 @@ __export(hooks_exports2, {
|
|
|
5558
4303
|
});
|
|
5559
4304
|
|
|
5560
4305
|
// src/_api/generated/cfg_totp/_utils/hooks/totp__backup_codes.ts
|
|
5561
|
-
import
|
|
5562
|
-
import { useSWRConfig as
|
|
4306
|
+
import useSWR4 from "swr";
|
|
4307
|
+
import { useSWRConfig as useSWRConfig5 } from "swr";
|
|
5563
4308
|
function useTotpBackupCodesRetrieve(client) {
|
|
5564
|
-
return
|
|
4309
|
+
return useSWR4(
|
|
5565
4310
|
"cfg-totp-backup-code",
|
|
5566
4311
|
() => getTotpBackupCodesRetrieve(client)
|
|
5567
4312
|
);
|
|
5568
4313
|
}
|
|
5569
4314
|
__name(useTotpBackupCodesRetrieve, "useTotpBackupCodesRetrieve");
|
|
5570
4315
|
function useCreateTotpBackupCodesRegenerateCreate() {
|
|
5571
|
-
const { mutate } =
|
|
4316
|
+
const { mutate } = useSWRConfig5();
|
|
5572
4317
|
return async (data, client) => {
|
|
5573
4318
|
const result = await createTotpBackupCodesRegenerateCreate(data, client);
|
|
5574
4319
|
mutate("cfg-totp-backup-codes-regenerate");
|
|
@@ -5578,17 +4323,17 @@ function useCreateTotpBackupCodesRegenerateCreate() {
|
|
|
5578
4323
|
__name(useCreateTotpBackupCodesRegenerateCreate, "useCreateTotpBackupCodesRegenerateCreate");
|
|
5579
4324
|
|
|
5580
4325
|
// src/_api/generated/cfg_totp/_utils/hooks/totp__totp_management.ts
|
|
5581
|
-
import
|
|
5582
|
-
import { useSWRConfig as
|
|
4326
|
+
import useSWR5 from "swr";
|
|
4327
|
+
import { useSWRConfig as useSWRConfig6 } from "swr";
|
|
5583
4328
|
function useTotpDevicesList(params, client) {
|
|
5584
|
-
return
|
|
4329
|
+
return useSWR5(
|
|
5585
4330
|
["cfg-totp-devices", params],
|
|
5586
4331
|
() => getTotpDevicesList(params, client)
|
|
5587
4332
|
);
|
|
5588
4333
|
}
|
|
5589
4334
|
__name(useTotpDevicesList, "useTotpDevicesList");
|
|
5590
4335
|
function useCreateTotpDisableCreate() {
|
|
5591
|
-
const { mutate } =
|
|
4336
|
+
const { mutate } = useSWRConfig6();
|
|
5592
4337
|
return async (data, client) => {
|
|
5593
4338
|
const result = await createTotpDisableCreate(data, client);
|
|
5594
4339
|
mutate("cfg-totp-disable");
|
|
@@ -5598,9 +4343,9 @@ function useCreateTotpDisableCreate() {
|
|
|
5598
4343
|
__name(useCreateTotpDisableCreate, "useCreateTotpDisableCreate");
|
|
5599
4344
|
|
|
5600
4345
|
// src/_api/generated/cfg_totp/_utils/hooks/totp__totp_setup.ts
|
|
5601
|
-
import { useSWRConfig as
|
|
4346
|
+
import { useSWRConfig as useSWRConfig7 } from "swr";
|
|
5602
4347
|
function useCreateTotpSetupCreate() {
|
|
5603
|
-
const { mutate } =
|
|
4348
|
+
const { mutate } = useSWRConfig7();
|
|
5604
4349
|
return async (data, client) => {
|
|
5605
4350
|
const result = await createTotpSetupCreate(data, client);
|
|
5606
4351
|
mutate("cfg-totp-setup");
|
|
@@ -5609,7 +4354,7 @@ function useCreateTotpSetupCreate() {
|
|
|
5609
4354
|
}
|
|
5610
4355
|
__name(useCreateTotpSetupCreate, "useCreateTotpSetupCreate");
|
|
5611
4356
|
function useCreateTotpSetupConfirmCreate() {
|
|
5612
|
-
const { mutate } =
|
|
4357
|
+
const { mutate } = useSWRConfig7();
|
|
5613
4358
|
return async (data, client) => {
|
|
5614
4359
|
const result = await createTotpSetupConfirmCreate(data, client);
|
|
5615
4360
|
mutate("cfg-totp-setup-confirm");
|
|
@@ -5619,9 +4364,9 @@ function useCreateTotpSetupConfirmCreate() {
|
|
|
5619
4364
|
__name(useCreateTotpSetupConfirmCreate, "useCreateTotpSetupConfirmCreate");
|
|
5620
4365
|
|
|
5621
4366
|
// src/_api/generated/cfg_totp/_utils/hooks/totp__totp_verification.ts
|
|
5622
|
-
import { useSWRConfig as
|
|
4367
|
+
import { useSWRConfig as useSWRConfig8 } from "swr";
|
|
5623
4368
|
function useCreateTotpVerifyCreate() {
|
|
5624
|
-
const { mutate } =
|
|
4369
|
+
const { mutate } = useSWRConfig8();
|
|
5625
4370
|
return async (data, client) => {
|
|
5626
4371
|
const result = await createTotpVerifyCreate(data, client);
|
|
5627
4372
|
mutate("cfg-totp-verify");
|
|
@@ -5630,7 +4375,7 @@ function useCreateTotpVerifyCreate() {
|
|
|
5630
4375
|
}
|
|
5631
4376
|
__name(useCreateTotpVerifyCreate, "useCreateTotpVerifyCreate");
|
|
5632
4377
|
function useCreateTotpVerifyBackupCreate() {
|
|
5633
|
-
const { mutate } =
|
|
4378
|
+
const { mutate } = useSWRConfig8();
|
|
5634
4379
|
return async (data, client) => {
|
|
5635
4380
|
const result = await createTotpVerifyBackupCreate(data, client);
|
|
5636
4381
|
mutate("cfg-totp-verify-backup");
|
|
@@ -5640,9 +4385,9 @@ function useCreateTotpVerifyBackupCreate() {
|
|
|
5640
4385
|
__name(useCreateTotpVerifyBackupCreate, "useCreateTotpVerifyBackupCreate");
|
|
5641
4386
|
|
|
5642
4387
|
// src/_api/generated/cfg_totp/_utils/hooks/totp.ts
|
|
5643
|
-
import { useSWRConfig as
|
|
4388
|
+
import { useSWRConfig as useSWRConfig9 } from "swr";
|
|
5644
4389
|
function useDeleteTotpDevicesDestroy() {
|
|
5645
|
-
const { mutate } =
|
|
4390
|
+
const { mutate } = useSWRConfig9();
|
|
5646
4391
|
return async (id, client) => {
|
|
5647
4392
|
const result = await deleteTotpDevicesDestroy(id, client);
|
|
5648
4393
|
mutate("cfg-totp-devices");
|