@djangocfg/api 2.1.231 → 2.1.233
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 +25 -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.cjs
CHANGED
|
@@ -795,43 +795,47 @@ var APIClient = class {
|
|
|
795
795
|
if (error instanceof APIError) {
|
|
796
796
|
throw error;
|
|
797
797
|
}
|
|
798
|
-
|
|
798
|
+
let possiblyCors = false;
|
|
799
|
+
if (error instanceof TypeError && typeof window !== "undefined") {
|
|
800
|
+
try {
|
|
801
|
+
const isCrossOrigin = (() => {
|
|
802
|
+
try {
|
|
803
|
+
return new URL(url).origin !== window.location.origin;
|
|
804
|
+
} catch {
|
|
805
|
+
return false;
|
|
806
|
+
}
|
|
807
|
+
})();
|
|
808
|
+
if (isCrossOrigin) {
|
|
809
|
+
const entries = performance.getEntriesByName(url, "resource");
|
|
810
|
+
if (entries.length > 0) {
|
|
811
|
+
const last = entries[entries.length - 1];
|
|
812
|
+
possiblyCors = "responseStatus" in last && last.responseStatus === 0;
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
} catch {
|
|
816
|
+
}
|
|
817
|
+
}
|
|
799
818
|
if (this.logger) {
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
this.logger.error(` \u2192
|
|
804
|
-
} else {
|
|
805
|
-
this.logger.error(`\u26A0\uFE0F Network Error: ${method} ${url}`);
|
|
806
|
-
this.logger.error(` \u2192 ${error instanceof Error ? error.message : String(error)}`);
|
|
819
|
+
this.logger.error(`\u26A0\uFE0F Network Error: ${method} ${url}`);
|
|
820
|
+
this.logger.error(` \u2192 ${error instanceof Error ? error.message : String(error)}`);
|
|
821
|
+
if (possiblyCors) {
|
|
822
|
+
this.logger.error(` \u2192 Possibly blocked by CORS policy (configure CORS on the server)`);
|
|
807
823
|
}
|
|
808
824
|
}
|
|
809
825
|
if (typeof window !== "undefined") {
|
|
810
826
|
try {
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
window.dispatchEvent(new CustomEvent("network-error", {
|
|
824
|
-
detail: {
|
|
825
|
-
url,
|
|
826
|
-
method,
|
|
827
|
-
error: error instanceof Error ? error.message : String(error),
|
|
828
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
829
|
-
},
|
|
830
|
-
bubbles: true,
|
|
831
|
-
cancelable: false
|
|
832
|
-
}));
|
|
833
|
-
}
|
|
834
|
-
} catch (eventError) {
|
|
827
|
+
window.dispatchEvent(new CustomEvent("network-error", {
|
|
828
|
+
detail: {
|
|
829
|
+
url,
|
|
830
|
+
method,
|
|
831
|
+
error: error instanceof Error ? error.message : String(error),
|
|
832
|
+
possibly_cors: possiblyCors,
|
|
833
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
834
|
+
},
|
|
835
|
+
bubbles: true,
|
|
836
|
+
cancelable: false
|
|
837
|
+
}));
|
|
838
|
+
} catch {
|
|
835
839
|
}
|
|
836
840
|
}
|
|
837
841
|
const networkError = error instanceof Error ? new NetworkError(error.message, url, error) : new NetworkError("Unknown error", url);
|
|
@@ -1874,71 +1878,6 @@ var API = class {
|
|
|
1874
1878
|
}
|
|
1875
1879
|
};
|
|
1876
1880
|
|
|
1877
|
-
// src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/client.ts
|
|
1878
|
-
var CentrifugoAdminApi = class {
|
|
1879
|
-
static {
|
|
1880
|
-
__name(this, "CentrifugoAdminApi");
|
|
1881
|
-
}
|
|
1882
|
-
constructor(client) {
|
|
1883
|
-
this.client = client;
|
|
1884
|
-
}
|
|
1885
|
-
/**
|
|
1886
|
-
* Get connection token for dashboard
|
|
1887
|
-
*
|
|
1888
|
-
* Returns JWT token and config for WebSocket connection to Centrifugo.
|
|
1889
|
-
*/
|
|
1890
|
-
async centrifugoServerAuthTokenCreate() {
|
|
1891
|
-
const response = await this.client.request("POST", "/cfg/centrifugo/server/auth/token/");
|
|
1892
|
-
return response;
|
|
1893
|
-
}
|
|
1894
|
-
/**
|
|
1895
|
-
* List active channels
|
|
1896
|
-
*
|
|
1897
|
-
* Returns list of active channels with optional pattern filter.
|
|
1898
|
-
*/
|
|
1899
|
-
async centrifugoServerChannelsCreate(data) {
|
|
1900
|
-
const response = await this.client.request("POST", "/cfg/centrifugo/server/channels/", { body: data });
|
|
1901
|
-
return response;
|
|
1902
|
-
}
|
|
1903
|
-
/**
|
|
1904
|
-
* Get channel history
|
|
1905
|
-
*
|
|
1906
|
-
* Returns message history for a channel.
|
|
1907
|
-
*/
|
|
1908
|
-
async centrifugoServerHistoryCreate(data) {
|
|
1909
|
-
const response = await this.client.request("POST", "/cfg/centrifugo/server/history/", { body: data });
|
|
1910
|
-
return response;
|
|
1911
|
-
}
|
|
1912
|
-
/**
|
|
1913
|
-
* Get Centrifugo server info
|
|
1914
|
-
*
|
|
1915
|
-
* Returns server information including node count, version, and uptime.
|
|
1916
|
-
*/
|
|
1917
|
-
async centrifugoServerInfoCreate() {
|
|
1918
|
-
const response = await this.client.request("POST", "/cfg/centrifugo/server/info/");
|
|
1919
|
-
return response;
|
|
1920
|
-
}
|
|
1921
|
-
/**
|
|
1922
|
-
* Get channel presence
|
|
1923
|
-
*
|
|
1924
|
-
* Returns list of clients currently subscribed to a channel.
|
|
1925
|
-
*/
|
|
1926
|
-
async centrifugoServerPresenceCreate(data) {
|
|
1927
|
-
const response = await this.client.request("POST", "/cfg/centrifugo/server/presence/", { body: data });
|
|
1928
|
-
return response;
|
|
1929
|
-
}
|
|
1930
|
-
/**
|
|
1931
|
-
* Get channel presence statistics
|
|
1932
|
-
*
|
|
1933
|
-
* Returns quick statistics about channel presence (num_clients,
|
|
1934
|
-
* num_users).
|
|
1935
|
-
*/
|
|
1936
|
-
async centrifugoServerPresenceStatsCreate(data) {
|
|
1937
|
-
const response = await this.client.request("POST", "/cfg/centrifugo/server/presence-stats/", { body: data });
|
|
1938
|
-
return response;
|
|
1939
|
-
}
|
|
1940
|
-
};
|
|
1941
|
-
|
|
1942
1881
|
// src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_auth/client.ts
|
|
1943
1882
|
var CentrifugoAuth = class {
|
|
1944
1883
|
static {
|
|
@@ -1960,130 +1899,6 @@ var CentrifugoAuth = class {
|
|
|
1960
1899
|
}
|
|
1961
1900
|
};
|
|
1962
1901
|
|
|
1963
|
-
// src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/client.ts
|
|
1964
|
-
var CentrifugoMonitoring = class {
|
|
1965
|
-
static {
|
|
1966
|
-
__name(this, "CentrifugoMonitoring");
|
|
1967
|
-
}
|
|
1968
|
-
constructor(client) {
|
|
1969
|
-
this.client = client;
|
|
1970
|
-
}
|
|
1971
|
-
/**
|
|
1972
|
-
* Get channel statistics
|
|
1973
|
-
*
|
|
1974
|
-
* Returns statistics grouped by channel.
|
|
1975
|
-
*/
|
|
1976
|
-
async centrifugoMonitorChannelsRetrieve(...args) {
|
|
1977
|
-
const isParamsObject = args.length === 1 && typeof args[0] === "object" && args[0] !== null && !Array.isArray(args[0]);
|
|
1978
|
-
let params;
|
|
1979
|
-
if (isParamsObject) {
|
|
1980
|
-
params = args[0];
|
|
1981
|
-
} else {
|
|
1982
|
-
params = { hours: args[0] };
|
|
1983
|
-
}
|
|
1984
|
-
const response = await this.client.request("GET", "/cfg/centrifugo/monitor/channels/", { params });
|
|
1985
|
-
return response;
|
|
1986
|
-
}
|
|
1987
|
-
/**
|
|
1988
|
-
* Get Centrifugo health status
|
|
1989
|
-
*
|
|
1990
|
-
* Returns the current health status of the Centrifugo client.
|
|
1991
|
-
*/
|
|
1992
|
-
async centrifugoMonitorHealthRetrieve() {
|
|
1993
|
-
const response = await this.client.request("GET", "/cfg/centrifugo/monitor/health/");
|
|
1994
|
-
return response;
|
|
1995
|
-
}
|
|
1996
|
-
/**
|
|
1997
|
-
* Get overview statistics
|
|
1998
|
-
*
|
|
1999
|
-
* Returns overview statistics for Centrifugo publishes.
|
|
2000
|
-
*/
|
|
2001
|
-
async centrifugoMonitorOverviewRetrieve(...args) {
|
|
2002
|
-
const isParamsObject = args.length === 1 && typeof args[0] === "object" && args[0] !== null && !Array.isArray(args[0]);
|
|
2003
|
-
let params;
|
|
2004
|
-
if (isParamsObject) {
|
|
2005
|
-
params = args[0];
|
|
2006
|
-
} else {
|
|
2007
|
-
params = { hours: args[0] };
|
|
2008
|
-
}
|
|
2009
|
-
const response = await this.client.request("GET", "/cfg/centrifugo/monitor/overview/", { params });
|
|
2010
|
-
return response;
|
|
2011
|
-
}
|
|
2012
|
-
/**
|
|
2013
|
-
* Get recent publishes
|
|
2014
|
-
*
|
|
2015
|
-
* Returns a paginated list of recent Centrifugo publishes with their
|
|
2016
|
-
* details. Uses standard DRF pagination.
|
|
2017
|
-
*/
|
|
2018
|
-
async centrifugoMonitorPublishesList(...args) {
|
|
2019
|
-
const isParamsObject = args.length === 1 && typeof args[0] === "object" && args[0] !== null && !Array.isArray(args[0]);
|
|
2020
|
-
let params;
|
|
2021
|
-
if (isParamsObject) {
|
|
2022
|
-
params = args[0];
|
|
2023
|
-
} else {
|
|
2024
|
-
params = { channel: args[0], ordering: args[1], page: args[2], page_size: args[3], search: args[4], status: args[5] };
|
|
2025
|
-
}
|
|
2026
|
-
const response = await this.client.request("GET", "/cfg/centrifugo/monitor/publishes/", { params });
|
|
2027
|
-
return response;
|
|
2028
|
-
}
|
|
2029
|
-
/**
|
|
2030
|
-
* Get publish timeline
|
|
2031
|
-
*
|
|
2032
|
-
* Returns hourly or daily breakdown of publish counts for charts.
|
|
2033
|
-
*/
|
|
2034
|
-
async centrifugoMonitorTimelineRetrieve(...args) {
|
|
2035
|
-
const isParamsObject = args.length === 1 && typeof args[0] === "object" && args[0] !== null && !Array.isArray(args[0]);
|
|
2036
|
-
let params;
|
|
2037
|
-
if (isParamsObject) {
|
|
2038
|
-
params = args[0];
|
|
2039
|
-
} else {
|
|
2040
|
-
params = { hours: args[0], interval: args[1] };
|
|
2041
|
-
}
|
|
2042
|
-
const response = await this.client.request("GET", "/cfg/centrifugo/monitor/timeline/", { params });
|
|
2043
|
-
return response;
|
|
2044
|
-
}
|
|
2045
|
-
};
|
|
2046
|
-
|
|
2047
|
-
// src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_testing/client.ts
|
|
2048
|
-
var CentrifugoTesting = class {
|
|
2049
|
-
static {
|
|
2050
|
-
__name(this, "CentrifugoTesting");
|
|
2051
|
-
}
|
|
2052
|
-
constructor(client) {
|
|
2053
|
-
this.client = client;
|
|
2054
|
-
}
|
|
2055
|
-
/**
|
|
2056
|
-
* Publish test message
|
|
2057
|
-
*
|
|
2058
|
-
* Publish test message to Centrifugo via wrapper with optional ACK
|
|
2059
|
-
* tracking.
|
|
2060
|
-
*/
|
|
2061
|
-
async publishTestCreate(data) {
|
|
2062
|
-
const response = await this.client.request("POST", "/cfg/centrifugo/testing/publish-test/", { body: data });
|
|
2063
|
-
return response;
|
|
2064
|
-
}
|
|
2065
|
-
/**
|
|
2066
|
-
* Publish with database logging
|
|
2067
|
-
*
|
|
2068
|
-
* Publish message using CentrifugoClient with database logging. This will
|
|
2069
|
-
* create CentrifugoLog records.
|
|
2070
|
-
*/
|
|
2071
|
-
async publishWithLoggingCreate(data) {
|
|
2072
|
-
const response = await this.client.request("POST", "/cfg/centrifugo/testing/publish-with-logging/", { body: data });
|
|
2073
|
-
return response;
|
|
2074
|
-
}
|
|
2075
|
-
/**
|
|
2076
|
-
* Send manual ACK
|
|
2077
|
-
*
|
|
2078
|
-
* Manually send ACK for a message to the wrapper. Pass message_id in
|
|
2079
|
-
* request body.
|
|
2080
|
-
*/
|
|
2081
|
-
async sendAckCreate(data) {
|
|
2082
|
-
const response = await this.client.request("POST", "/cfg/centrifugo/testing/send-ack/", { body: data });
|
|
2083
|
-
return response;
|
|
2084
|
-
}
|
|
2085
|
-
};
|
|
2086
|
-
|
|
2087
1902
|
// src/_api/generated/cfg_centrifugo/http.ts
|
|
2088
1903
|
var FetchAdapter2 = class {
|
|
2089
1904
|
static {
|
|
@@ -2460,10 +2275,7 @@ var APIClient2 = class {
|
|
|
2460
2275
|
if (options?.retryConfig !== void 0) {
|
|
2461
2276
|
this.retryConfig = options.retryConfig;
|
|
2462
2277
|
}
|
|
2463
|
-
this.centrifugo_admin_api = new CentrifugoAdminApi(this);
|
|
2464
2278
|
this.centrifugo_auth = new CentrifugoAuth(this);
|
|
2465
|
-
this.centrifugo_monitoring = new CentrifugoMonitoring(this);
|
|
2466
|
-
this.centrifugo_testing = new CentrifugoTesting(this);
|
|
2467
2279
|
}
|
|
2468
2280
|
static {
|
|
2469
2281
|
__name(this, "APIClient");
|
|
@@ -2598,43 +2410,47 @@ var APIClient2 = class {
|
|
|
2598
2410
|
if (error instanceof APIError2) {
|
|
2599
2411
|
throw error;
|
|
2600
2412
|
}
|
|
2601
|
-
|
|
2413
|
+
let possiblyCors = false;
|
|
2414
|
+
if (error instanceof TypeError && typeof window !== "undefined") {
|
|
2415
|
+
try {
|
|
2416
|
+
const isCrossOrigin = (() => {
|
|
2417
|
+
try {
|
|
2418
|
+
return new URL(url).origin !== window.location.origin;
|
|
2419
|
+
} catch {
|
|
2420
|
+
return false;
|
|
2421
|
+
}
|
|
2422
|
+
})();
|
|
2423
|
+
if (isCrossOrigin) {
|
|
2424
|
+
const entries = performance.getEntriesByName(url, "resource");
|
|
2425
|
+
if (entries.length > 0) {
|
|
2426
|
+
const last = entries[entries.length - 1];
|
|
2427
|
+
possiblyCors = "responseStatus" in last && last.responseStatus === 0;
|
|
2428
|
+
}
|
|
2429
|
+
}
|
|
2430
|
+
} catch {
|
|
2431
|
+
}
|
|
2432
|
+
}
|
|
2602
2433
|
if (this.logger) {
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
this.logger.error(` \u2192
|
|
2607
|
-
} else {
|
|
2608
|
-
this.logger.error(`\u26A0\uFE0F Network Error: ${method} ${url}`);
|
|
2609
|
-
this.logger.error(` \u2192 ${error instanceof Error ? error.message : String(error)}`);
|
|
2434
|
+
this.logger.error(`\u26A0\uFE0F Network Error: ${method} ${url}`);
|
|
2435
|
+
this.logger.error(` \u2192 ${error instanceof Error ? error.message : String(error)}`);
|
|
2436
|
+
if (possiblyCors) {
|
|
2437
|
+
this.logger.error(` \u2192 Possibly blocked by CORS policy (configure CORS on the server)`);
|
|
2610
2438
|
}
|
|
2611
2439
|
}
|
|
2612
2440
|
if (typeof window !== "undefined") {
|
|
2613
2441
|
try {
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
window.dispatchEvent(new CustomEvent("network-error", {
|
|
2627
|
-
detail: {
|
|
2628
|
-
url,
|
|
2629
|
-
method,
|
|
2630
|
-
error: error instanceof Error ? error.message : String(error),
|
|
2631
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
2632
|
-
},
|
|
2633
|
-
bubbles: true,
|
|
2634
|
-
cancelable: false
|
|
2635
|
-
}));
|
|
2636
|
-
}
|
|
2637
|
-
} catch (eventError) {
|
|
2442
|
+
window.dispatchEvent(new CustomEvent("network-error", {
|
|
2443
|
+
detail: {
|
|
2444
|
+
url,
|
|
2445
|
+
method,
|
|
2446
|
+
error: error instanceof Error ? error.message : String(error),
|
|
2447
|
+
possibly_cors: possiblyCors,
|
|
2448
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
2449
|
+
},
|
|
2450
|
+
bubbles: true,
|
|
2451
|
+
cancelable: false
|
|
2452
|
+
}));
|
|
2453
|
+
} catch {
|
|
2638
2454
|
}
|
|
2639
2455
|
}
|
|
2640
2456
|
const networkError = error instanceof Error ? new NetworkError2(error.message, url, error) : new NetworkError2("Unknown error", url);
|
|
@@ -2709,381 +2525,25 @@ var LocalStorageAdapter2 = class {
|
|
|
2709
2525
|
// src/_api/generated/cfg_centrifugo/_utils/schemas/index.ts
|
|
2710
2526
|
var schemas_exports2 = {};
|
|
2711
2527
|
__export(schemas_exports2, {
|
|
2712
|
-
|
|
2713
|
-
CentrifugoChannelsRequestRequestSchema: () => CentrifugoChannelsRequestRequestSchema,
|
|
2714
|
-
CentrifugoChannelsResponseSchema: () => CentrifugoChannelsResponseSchema,
|
|
2715
|
-
CentrifugoChannelsResultSchema: () => CentrifugoChannelsResultSchema,
|
|
2716
|
-
CentrifugoClientInfoSchema: () => CentrifugoClientInfoSchema,
|
|
2717
|
-
CentrifugoErrorSchema: () => CentrifugoErrorSchema,
|
|
2718
|
-
CentrifugoHealthCheckSchema: () => CentrifugoHealthCheckSchema,
|
|
2719
|
-
CentrifugoHistoryRequestRequestSchema: () => CentrifugoHistoryRequestRequestSchema,
|
|
2720
|
-
CentrifugoHistoryResponseSchema: () => CentrifugoHistoryResponseSchema,
|
|
2721
|
-
CentrifugoHistoryResultSchema: () => CentrifugoHistoryResultSchema,
|
|
2722
|
-
CentrifugoInfoResponseSchema: () => CentrifugoInfoResponseSchema,
|
|
2723
|
-
CentrifugoInfoResultSchema: () => CentrifugoInfoResultSchema,
|
|
2724
|
-
CentrifugoMetricsSchema: () => CentrifugoMetricsSchema,
|
|
2725
|
-
CentrifugoNodeInfoSchema: () => CentrifugoNodeInfoSchema,
|
|
2726
|
-
CentrifugoOverviewStatsSchema: () => CentrifugoOverviewStatsSchema,
|
|
2727
|
-
CentrifugoPresenceRequestRequestSchema: () => CentrifugoPresenceRequestRequestSchema,
|
|
2728
|
-
CentrifugoPresenceResponseSchema: () => CentrifugoPresenceResponseSchema,
|
|
2729
|
-
CentrifugoPresenceResultSchema: () => CentrifugoPresenceResultSchema,
|
|
2730
|
-
CentrifugoPresenceStatsRequestRequestSchema: () => CentrifugoPresenceStatsRequestRequestSchema,
|
|
2731
|
-
CentrifugoPresenceStatsResponseSchema: () => CentrifugoPresenceStatsResponseSchema,
|
|
2732
|
-
CentrifugoPresenceStatsResultSchema: () => CentrifugoPresenceStatsResultSchema,
|
|
2733
|
-
CentrifugoProcessSchema: () => CentrifugoProcessSchema,
|
|
2734
|
-
CentrifugoPublicationSchema: () => CentrifugoPublicationSchema,
|
|
2735
|
-
CentrifugoStreamPositionSchema: () => CentrifugoStreamPositionSchema,
|
|
2736
|
-
ChannelListSchema: () => ChannelListSchema,
|
|
2737
|
-
ChannelStatsSchema: () => ChannelStatsSchema,
|
|
2738
|
-
ConnectionTokenResponseSchema: () => ConnectionTokenResponseSchema,
|
|
2739
|
-
ManualAckRequestRequestSchema: () => ManualAckRequestRequestSchema,
|
|
2740
|
-
ManualAckResponseSchema: () => ManualAckResponseSchema,
|
|
2741
|
-
PaginatedPublishListSchema: () => PaginatedPublishListSchema,
|
|
2742
|
-
PublishSchema: () => PublishSchema,
|
|
2743
|
-
PublishTestRequestRequestSchema: () => PublishTestRequestRequestSchema,
|
|
2744
|
-
PublishTestResponseSchema: () => PublishTestResponseSchema,
|
|
2745
|
-
TimelineItemSchema: () => TimelineItemSchema,
|
|
2746
|
-
TimelineResponseSchema: () => TimelineResponseSchema
|
|
2747
|
-
});
|
|
2748
|
-
|
|
2749
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelInfo.schema.ts
|
|
2750
|
-
var import_zod22 = require("zod");
|
|
2751
|
-
var CentrifugoChannelInfoSchema = import_zod22.z.object({
|
|
2752
|
-
num_clients: import_zod22.z.number().int()
|
|
2753
|
-
});
|
|
2754
|
-
|
|
2755
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsRequestRequest.schema.ts
|
|
2756
|
-
var import_zod23 = require("zod");
|
|
2757
|
-
var CentrifugoChannelsRequestRequestSchema = import_zod23.z.object({
|
|
2758
|
-
pattern: import_zod23.z.string().nullable().optional()
|
|
2759
|
-
});
|
|
2760
|
-
|
|
2761
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts
|
|
2762
|
-
var import_zod26 = require("zod");
|
|
2763
|
-
|
|
2764
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResult.schema.ts
|
|
2765
|
-
var import_zod24 = require("zod");
|
|
2766
|
-
var CentrifugoChannelsResultSchema = import_zod24.z.object({
|
|
2767
|
-
channels: import_zod24.z.record(import_zod24.z.string(), CentrifugoChannelInfoSchema)
|
|
2768
|
-
});
|
|
2769
|
-
|
|
2770
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoError.schema.ts
|
|
2771
|
-
var import_zod25 = require("zod");
|
|
2772
|
-
var CentrifugoErrorSchema = import_zod25.z.object({
|
|
2773
|
-
code: import_zod25.z.number().int().optional(),
|
|
2774
|
-
message: import_zod25.z.string().optional()
|
|
2775
|
-
});
|
|
2776
|
-
|
|
2777
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts
|
|
2778
|
-
var CentrifugoChannelsResponseSchema = import_zod26.z.object({
|
|
2779
|
-
error: CentrifugoErrorSchema.nullable().optional(),
|
|
2780
|
-
result: CentrifugoChannelsResultSchema.nullable().optional()
|
|
2781
|
-
});
|
|
2782
|
-
|
|
2783
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoClientInfo.schema.ts
|
|
2784
|
-
var import_zod27 = require("zod");
|
|
2785
|
-
var CentrifugoClientInfoSchema = import_zod27.z.object({
|
|
2786
|
-
user: import_zod27.z.string(),
|
|
2787
|
-
client: import_zod27.z.string(),
|
|
2788
|
-
conn_info: import_zod27.z.record(import_zod27.z.string(), import_zod27.z.any()).nullable().optional(),
|
|
2789
|
-
chan_info: import_zod27.z.record(import_zod27.z.string(), import_zod27.z.any()).nullable().optional()
|
|
2790
|
-
});
|
|
2791
|
-
|
|
2792
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHealthCheck.schema.ts
|
|
2793
|
-
var import_zod28 = require("zod");
|
|
2794
|
-
var CentrifugoHealthCheckSchema = import_zod28.z.object({
|
|
2795
|
-
status: import_zod28.z.string(),
|
|
2796
|
-
wrapper_url: import_zod28.z.string(),
|
|
2797
|
-
has_api_key: import_zod28.z.boolean(),
|
|
2798
|
-
timestamp: import_zod28.z.string()
|
|
2799
|
-
});
|
|
2800
|
-
|
|
2801
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts
|
|
2802
|
-
var import_zod30 = require("zod");
|
|
2803
|
-
|
|
2804
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoStreamPosition.schema.ts
|
|
2805
|
-
var import_zod29 = require("zod");
|
|
2806
|
-
var CentrifugoStreamPositionSchema = import_zod29.z.object({
|
|
2807
|
-
offset: import_zod29.z.number().int(),
|
|
2808
|
-
epoch: import_zod29.z.string()
|
|
2809
|
-
});
|
|
2810
|
-
|
|
2811
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts
|
|
2812
|
-
var CentrifugoHistoryRequestRequestSchema = import_zod30.z.object({
|
|
2813
|
-
channel: import_zod30.z.string(),
|
|
2814
|
-
limit: import_zod30.z.number().int().nullable().optional(),
|
|
2815
|
-
since: CentrifugoStreamPositionSchema.nullable().optional(),
|
|
2816
|
-
reverse: import_zod30.z.boolean().nullable().optional()
|
|
2817
|
-
});
|
|
2818
|
-
|
|
2819
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts
|
|
2820
|
-
var import_zod33 = require("zod");
|
|
2821
|
-
|
|
2822
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts
|
|
2823
|
-
var import_zod32 = require("zod");
|
|
2824
|
-
|
|
2825
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPublication.schema.ts
|
|
2826
|
-
var import_zod31 = require("zod");
|
|
2827
|
-
var CentrifugoPublicationSchema = import_zod31.z.object({
|
|
2828
|
-
data: import_zod31.z.record(import_zod31.z.string(), import_zod31.z.any()),
|
|
2829
|
-
info: CentrifugoClientInfoSchema.nullable().optional(),
|
|
2830
|
-
offset: import_zod31.z.number().int(),
|
|
2831
|
-
tags: import_zod31.z.record(import_zod31.z.string(), import_zod31.z.any()).nullable().optional()
|
|
2832
|
-
});
|
|
2833
|
-
|
|
2834
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts
|
|
2835
|
-
var CentrifugoHistoryResultSchema = import_zod32.z.object({
|
|
2836
|
-
publications: import_zod32.z.array(CentrifugoPublicationSchema),
|
|
2837
|
-
epoch: import_zod32.z.string(),
|
|
2838
|
-
offset: import_zod32.z.number().int()
|
|
2839
|
-
});
|
|
2840
|
-
|
|
2841
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts
|
|
2842
|
-
var CentrifugoHistoryResponseSchema = import_zod33.z.object({
|
|
2843
|
-
error: CentrifugoErrorSchema.nullable().optional(),
|
|
2844
|
-
result: CentrifugoHistoryResultSchema.nullable().optional()
|
|
2845
|
-
});
|
|
2846
|
-
|
|
2847
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts
|
|
2848
|
-
var import_zod38 = require("zod");
|
|
2849
|
-
|
|
2850
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts
|
|
2851
|
-
var import_zod37 = require("zod");
|
|
2852
|
-
|
|
2853
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts
|
|
2854
|
-
var import_zod36 = require("zod");
|
|
2855
|
-
|
|
2856
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoMetrics.schema.ts
|
|
2857
|
-
var import_zod34 = require("zod");
|
|
2858
|
-
var CentrifugoMetricsSchema = import_zod34.z.object({
|
|
2859
|
-
interval: import_zod34.z.number(),
|
|
2860
|
-
items: import_zod34.z.record(import_zod34.z.string(), import_zod34.z.number())
|
|
2861
|
-
});
|
|
2862
|
-
|
|
2863
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoProcess.schema.ts
|
|
2864
|
-
var import_zod35 = require("zod");
|
|
2865
|
-
var CentrifugoProcessSchema = import_zod35.z.object({
|
|
2866
|
-
cpu: import_zod35.z.number(),
|
|
2867
|
-
rss: import_zod35.z.number().int()
|
|
2868
|
-
});
|
|
2869
|
-
|
|
2870
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts
|
|
2871
|
-
var CentrifugoNodeInfoSchema = import_zod36.z.object({
|
|
2872
|
-
uid: import_zod36.z.string(),
|
|
2873
|
-
name: import_zod36.z.string(),
|
|
2874
|
-
version: import_zod36.z.string(),
|
|
2875
|
-
num_clients: import_zod36.z.number().int(),
|
|
2876
|
-
num_users: import_zod36.z.number().int(),
|
|
2877
|
-
num_channels: import_zod36.z.number().int(),
|
|
2878
|
-
uptime: import_zod36.z.number().int(),
|
|
2879
|
-
num_subs: import_zod36.z.number().int(),
|
|
2880
|
-
metrics: CentrifugoMetricsSchema.nullable().optional(),
|
|
2881
|
-
process: CentrifugoProcessSchema.nullable().optional()
|
|
2882
|
-
});
|
|
2883
|
-
|
|
2884
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts
|
|
2885
|
-
var CentrifugoInfoResultSchema = import_zod37.z.object({
|
|
2886
|
-
nodes: import_zod37.z.array(CentrifugoNodeInfoSchema)
|
|
2887
|
-
});
|
|
2888
|
-
|
|
2889
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts
|
|
2890
|
-
var CentrifugoInfoResponseSchema = import_zod38.z.object({
|
|
2891
|
-
error: CentrifugoErrorSchema.nullable().optional(),
|
|
2892
|
-
result: CentrifugoInfoResultSchema.nullable().optional()
|
|
2893
|
-
});
|
|
2894
|
-
|
|
2895
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoOverviewStats.schema.ts
|
|
2896
|
-
var import_zod39 = require("zod");
|
|
2897
|
-
var CentrifugoOverviewStatsSchema = import_zod39.z.object({
|
|
2898
|
-
total: import_zod39.z.number().int(),
|
|
2899
|
-
successful: import_zod39.z.number().int(),
|
|
2900
|
-
failed: import_zod39.z.number().int(),
|
|
2901
|
-
timeout: import_zod39.z.number().int(),
|
|
2902
|
-
success_rate: import_zod39.z.number(),
|
|
2903
|
-
avg_duration_ms: import_zod39.z.number(),
|
|
2904
|
-
avg_acks_received: import_zod39.z.number(),
|
|
2905
|
-
period_hours: import_zod39.z.number().int()
|
|
2906
|
-
});
|
|
2907
|
-
|
|
2908
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceRequestRequest.schema.ts
|
|
2909
|
-
var import_zod40 = require("zod");
|
|
2910
|
-
var CentrifugoPresenceRequestRequestSchema = import_zod40.z.object({
|
|
2911
|
-
channel: import_zod40.z.string()
|
|
2912
|
-
});
|
|
2913
|
-
|
|
2914
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts
|
|
2915
|
-
var import_zod42 = require("zod");
|
|
2916
|
-
|
|
2917
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResult.schema.ts
|
|
2918
|
-
var import_zod41 = require("zod");
|
|
2919
|
-
var CentrifugoPresenceResultSchema = import_zod41.z.object({
|
|
2920
|
-
presence: import_zod41.z.record(import_zod41.z.string(), CentrifugoClientInfoSchema)
|
|
2921
|
-
});
|
|
2922
|
-
|
|
2923
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts
|
|
2924
|
-
var CentrifugoPresenceResponseSchema = import_zod42.z.object({
|
|
2925
|
-
error: CentrifugoErrorSchema.nullable().optional(),
|
|
2926
|
-
result: CentrifugoPresenceResultSchema.nullable().optional()
|
|
2927
|
-
});
|
|
2928
|
-
|
|
2929
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsRequestRequest.schema.ts
|
|
2930
|
-
var import_zod43 = require("zod");
|
|
2931
|
-
var CentrifugoPresenceStatsRequestRequestSchema = import_zod43.z.object({
|
|
2932
|
-
channel: import_zod43.z.string()
|
|
2933
|
-
});
|
|
2934
|
-
|
|
2935
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts
|
|
2936
|
-
var import_zod45 = require("zod");
|
|
2937
|
-
|
|
2938
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResult.schema.ts
|
|
2939
|
-
var import_zod44 = require("zod");
|
|
2940
|
-
var CentrifugoPresenceStatsResultSchema = import_zod44.z.object({
|
|
2941
|
-
num_clients: import_zod44.z.number().int(),
|
|
2942
|
-
num_users: import_zod44.z.number().int()
|
|
2943
|
-
});
|
|
2944
|
-
|
|
2945
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts
|
|
2946
|
-
var CentrifugoPresenceStatsResponseSchema = import_zod45.z.object({
|
|
2947
|
-
error: CentrifugoErrorSchema.nullable().optional(),
|
|
2948
|
-
result: CentrifugoPresenceStatsResultSchema.nullable().optional()
|
|
2949
|
-
});
|
|
2950
|
-
|
|
2951
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts
|
|
2952
|
-
var import_zod47 = require("zod");
|
|
2953
|
-
|
|
2954
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/ChannelStats.schema.ts
|
|
2955
|
-
var import_zod46 = require("zod");
|
|
2956
|
-
var ChannelStatsSchema = import_zod46.z.object({
|
|
2957
|
-
channel: import_zod46.z.string(),
|
|
2958
|
-
total: import_zod46.z.number().int(),
|
|
2959
|
-
successful: import_zod46.z.number().int(),
|
|
2960
|
-
failed: import_zod46.z.number().int(),
|
|
2961
|
-
avg_duration_ms: import_zod46.z.number(),
|
|
2962
|
-
avg_acks: import_zod46.z.number(),
|
|
2963
|
-
last_activity_at: import_zod46.z.string().nullable()
|
|
2964
|
-
});
|
|
2965
|
-
|
|
2966
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts
|
|
2967
|
-
var ChannelListSchema = import_zod47.z.object({
|
|
2968
|
-
channels: import_zod47.z.array(ChannelStatsSchema),
|
|
2969
|
-
total_channels: import_zod47.z.number().int()
|
|
2528
|
+
ConnectionTokenResponseSchema: () => ConnectionTokenResponseSchema
|
|
2970
2529
|
});
|
|
2971
2530
|
|
|
2972
2531
|
// src/_api/generated/cfg_centrifugo/_utils/schemas/ConnectionTokenResponse.schema.ts
|
|
2973
|
-
var
|
|
2974
|
-
var ConnectionTokenResponseSchema =
|
|
2975
|
-
token:
|
|
2976
|
-
centrifugo_url:
|
|
2977
|
-
expires_at:
|
|
2978
|
-
channels:
|
|
2979
|
-
});
|
|
2980
|
-
|
|
2981
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/ManualAckRequestRequest.schema.ts
|
|
2982
|
-
var import_zod49 = require("zod");
|
|
2983
|
-
var ManualAckRequestRequestSchema = import_zod49.z.object({
|
|
2984
|
-
message_id: import_zod49.z.string(),
|
|
2985
|
-
client_id: import_zod49.z.string()
|
|
2986
|
-
});
|
|
2987
|
-
|
|
2988
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/ManualAckResponse.schema.ts
|
|
2989
|
-
var import_zod50 = require("zod");
|
|
2990
|
-
var ManualAckResponseSchema = import_zod50.z.object({
|
|
2991
|
-
success: import_zod50.z.boolean(),
|
|
2992
|
-
message_id: import_zod50.z.string(),
|
|
2993
|
-
error: import_zod50.z.string().nullable().optional()
|
|
2994
|
-
});
|
|
2995
|
-
|
|
2996
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts
|
|
2997
|
-
var import_zod52 = require("zod");
|
|
2998
|
-
|
|
2999
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/Publish.schema.ts
|
|
3000
|
-
var import_zod51 = require("zod");
|
|
3001
|
-
var PublishSchema = import_zod51.z.object({
|
|
3002
|
-
message_id: import_zod51.z.string(),
|
|
3003
|
-
channel: import_zod51.z.string(),
|
|
3004
|
-
status: import_zod51.z.string(),
|
|
3005
|
-
wait_for_ack: import_zod51.z.boolean(),
|
|
3006
|
-
acks_received: import_zod51.z.number().int(),
|
|
3007
|
-
acks_expected: import_zod51.z.number().int().nullable(),
|
|
3008
|
-
duration_ms: import_zod51.z.number().nullable(),
|
|
3009
|
-
created_at: import_zod51.z.string().datetime({ offset: true }),
|
|
3010
|
-
completed_at: import_zod51.z.string().datetime({ offset: true }).nullable(),
|
|
3011
|
-
error_code: import_zod51.z.string().nullable(),
|
|
3012
|
-
error_message: import_zod51.z.string().nullable()
|
|
3013
|
-
});
|
|
3014
|
-
|
|
3015
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts
|
|
3016
|
-
var PaginatedPublishListSchema = import_zod52.z.object({
|
|
3017
|
-
count: import_zod52.z.number().int(),
|
|
3018
|
-
page: import_zod52.z.number().int(),
|
|
3019
|
-
pages: import_zod52.z.number().int(),
|
|
3020
|
-
page_size: import_zod52.z.number().int(),
|
|
3021
|
-
has_next: import_zod52.z.boolean(),
|
|
3022
|
-
has_previous: import_zod52.z.boolean(),
|
|
3023
|
-
next_page: import_zod52.z.number().int().nullable().optional(),
|
|
3024
|
-
previous_page: import_zod52.z.number().int().nullable().optional(),
|
|
3025
|
-
results: import_zod52.z.array(PublishSchema)
|
|
3026
|
-
});
|
|
3027
|
-
|
|
3028
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/PublishTestRequestRequest.schema.ts
|
|
3029
|
-
var import_zod53 = require("zod");
|
|
3030
|
-
var PublishTestRequestRequestSchema = import_zod53.z.object({
|
|
3031
|
-
channel: import_zod53.z.string(),
|
|
3032
|
-
data: import_zod53.z.record(import_zod53.z.string(), import_zod53.z.any()),
|
|
3033
|
-
wait_for_ack: import_zod53.z.boolean().optional(),
|
|
3034
|
-
ack_timeout: import_zod53.z.number().int().min(1).max(60).optional()
|
|
3035
|
-
});
|
|
3036
|
-
|
|
3037
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/PublishTestResponse.schema.ts
|
|
3038
|
-
var import_zod54 = require("zod");
|
|
3039
|
-
var PublishTestResponseSchema = import_zod54.z.object({
|
|
3040
|
-
success: import_zod54.z.boolean(),
|
|
3041
|
-
message_id: import_zod54.z.string(),
|
|
3042
|
-
channel: import_zod54.z.string(),
|
|
3043
|
-
acks_received: import_zod54.z.number().int().optional(),
|
|
3044
|
-
delivered: import_zod54.z.boolean().optional(),
|
|
3045
|
-
error: import_zod54.z.string().nullable().optional()
|
|
3046
|
-
});
|
|
3047
|
-
|
|
3048
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/TimelineItem.schema.ts
|
|
3049
|
-
var import_zod55 = require("zod");
|
|
3050
|
-
var TimelineItemSchema = import_zod55.z.object({
|
|
3051
|
-
timestamp: import_zod55.z.string(),
|
|
3052
|
-
count: import_zod55.z.number().int(),
|
|
3053
|
-
successful: import_zod55.z.number().int(),
|
|
3054
|
-
failed: import_zod55.z.number().int(),
|
|
3055
|
-
timeout: import_zod55.z.number().int()
|
|
3056
|
-
});
|
|
3057
|
-
|
|
3058
|
-
// src/_api/generated/cfg_centrifugo/_utils/schemas/TimelineResponse.schema.ts
|
|
3059
|
-
var import_zod56 = require("zod");
|
|
3060
|
-
var TimelineResponseSchema = import_zod56.z.object({
|
|
3061
|
-
timeline: import_zod56.z.array(TimelineItemSchema),
|
|
3062
|
-
period_hours: import_zod56.z.number().int(),
|
|
3063
|
-
interval: import_zod56.z.string()
|
|
2532
|
+
var import_zod22 = require("zod");
|
|
2533
|
+
var ConnectionTokenResponseSchema = import_zod22.z.object({
|
|
2534
|
+
token: import_zod22.z.string(),
|
|
2535
|
+
centrifugo_url: import_zod22.z.string(),
|
|
2536
|
+
expires_at: import_zod22.z.string(),
|
|
2537
|
+
channels: import_zod22.z.array(import_zod22.z.string())
|
|
3064
2538
|
});
|
|
3065
2539
|
|
|
3066
2540
|
// src/_api/generated/cfg_centrifugo/_utils/fetchers/index.ts
|
|
3067
2541
|
var fetchers_exports2 = {};
|
|
3068
2542
|
__export(fetchers_exports2, {
|
|
3069
|
-
|
|
3070
|
-
createCentrifugoServerChannelsCreate: () => createCentrifugoServerChannelsCreate,
|
|
3071
|
-
createCentrifugoServerHistoryCreate: () => createCentrifugoServerHistoryCreate,
|
|
3072
|
-
createCentrifugoServerInfoCreate: () => createCentrifugoServerInfoCreate,
|
|
3073
|
-
createCentrifugoServerPresenceCreate: () => createCentrifugoServerPresenceCreate,
|
|
3074
|
-
createCentrifugoServerPresenceStatsCreate: () => createCentrifugoServerPresenceStatsCreate,
|
|
3075
|
-
createCentrifugoTestingPublishTestCreate: () => createCentrifugoTestingPublishTestCreate,
|
|
3076
|
-
createCentrifugoTestingPublishWithLoggingCreate: () => createCentrifugoTestingPublishWithLoggingCreate,
|
|
3077
|
-
createCentrifugoTestingSendAckCreate: () => createCentrifugoTestingSendAckCreate,
|
|
3078
|
-
getCentrifugoAuthTokenRetrieve: () => getCentrifugoAuthTokenRetrieve,
|
|
3079
|
-
getCentrifugoMonitorChannelsRetrieve: () => getCentrifugoMonitorChannelsRetrieve,
|
|
3080
|
-
getCentrifugoMonitorHealthRetrieve: () => getCentrifugoMonitorHealthRetrieve,
|
|
3081
|
-
getCentrifugoMonitorOverviewRetrieve: () => getCentrifugoMonitorOverviewRetrieve,
|
|
3082
|
-
getCentrifugoMonitorPublishesList: () => getCentrifugoMonitorPublishesList,
|
|
3083
|
-
getCentrifugoMonitorTimelineRetrieve: () => getCentrifugoMonitorTimelineRetrieve
|
|
2543
|
+
getCentrifugoAuthTokenRetrieve: () => getCentrifugoAuthTokenRetrieve
|
|
3084
2544
|
});
|
|
3085
2545
|
|
|
3086
|
-
// src/_api/generated/cfg_centrifugo/_utils/fetchers/
|
|
2546
|
+
// src/_api/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_auth.ts
|
|
3087
2547
|
var import_consola7 = require("consola");
|
|
3088
2548
|
|
|
3089
2549
|
// src/_api/generated/cfg_centrifugo/api-instance.ts
|
|
@@ -3111,23 +2571,17 @@ function getAPIInstance2() {
|
|
|
3111
2571
|
}
|
|
3112
2572
|
__name(getAPIInstance2, "getAPIInstance");
|
|
3113
2573
|
|
|
3114
|
-
// src/_api/generated/cfg_centrifugo/_utils/fetchers/
|
|
3115
|
-
async function
|
|
3116
|
-
const api = client || getAPIInstance2();
|
|
3117
|
-
const response = await api.centrifugo_admin_api.centrifugoServerAuthTokenCreate();
|
|
3118
|
-
return response;
|
|
3119
|
-
}
|
|
3120
|
-
__name(createCentrifugoServerAuthTokenCreate, "createCentrifugoServerAuthTokenCreate");
|
|
3121
|
-
async function createCentrifugoServerChannelsCreate(data, client) {
|
|
2574
|
+
// src/_api/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_auth.ts
|
|
2575
|
+
async function getCentrifugoAuthTokenRetrieve(client) {
|
|
3122
2576
|
const api = client || getAPIInstance2();
|
|
3123
|
-
const response = await api.
|
|
2577
|
+
const response = await api.centrifugo_auth.tokenRetrieve();
|
|
3124
2578
|
try {
|
|
3125
|
-
return
|
|
2579
|
+
return ConnectionTokenResponseSchema.parse(response);
|
|
3126
2580
|
} catch (error) {
|
|
3127
2581
|
import_consola7.consola.error("\u274C Zod Validation Failed");
|
|
3128
|
-
import_consola7.consola.box(`
|
|
3129
|
-
Path: /cfg/centrifugo/
|
|
3130
|
-
Method:
|
|
2582
|
+
import_consola7.consola.box(`getCentrifugoAuthTokenRetrieve
|
|
2583
|
+
Path: /cfg/centrifugo/auth/token/
|
|
2584
|
+
Method: GET`);
|
|
3131
2585
|
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3132
2586
|
import_consola7.consola.error("Validation Issues:");
|
|
3133
2587
|
error.issues.forEach((issue, index) => {
|
|
@@ -3142,9 +2596,9 @@ Method: POST`);
|
|
|
3142
2596
|
try {
|
|
3143
2597
|
const event = new CustomEvent("zod-validation-error", {
|
|
3144
2598
|
detail: {
|
|
3145
|
-
operation: "
|
|
3146
|
-
path: "/cfg/centrifugo/
|
|
3147
|
-
method: "
|
|
2599
|
+
operation: "getCentrifugoAuthTokenRetrieve",
|
|
2600
|
+
path: "/cfg/centrifugo/auth/token/",
|
|
2601
|
+
method: "GET",
|
|
3148
2602
|
error,
|
|
3149
2603
|
response,
|
|
3150
2604
|
timestamp: /* @__PURE__ */ new Date()
|
|
@@ -3160,580 +2614,12 @@ Method: POST`);
|
|
|
3160
2614
|
throw error;
|
|
3161
2615
|
}
|
|
3162
2616
|
}
|
|
3163
|
-
__name(
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
} catch (error) {
|
|
3170
|
-
import_consola7.consola.error("\u274C Zod Validation Failed");
|
|
3171
|
-
import_consola7.consola.box(`createCentrifugoServerHistoryCreate
|
|
3172
|
-
Path: /cfg/centrifugo/server/history/
|
|
3173
|
-
Method: POST`);
|
|
3174
|
-
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3175
|
-
import_consola7.consola.error("Validation Issues:");
|
|
3176
|
-
error.issues.forEach((issue, index) => {
|
|
3177
|
-
import_consola7.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3178
|
-
import_consola7.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3179
|
-
if (issue.expected) import_consola7.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3180
|
-
if (issue.received) import_consola7.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
3181
|
-
});
|
|
3182
|
-
}
|
|
3183
|
-
import_consola7.consola.error("Response data:", response);
|
|
3184
|
-
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
3185
|
-
try {
|
|
3186
|
-
const event = new CustomEvent("zod-validation-error", {
|
|
3187
|
-
detail: {
|
|
3188
|
-
operation: "createCentrifugoServerHistoryCreate",
|
|
3189
|
-
path: "/cfg/centrifugo/server/history/",
|
|
3190
|
-
method: "POST",
|
|
3191
|
-
error,
|
|
3192
|
-
response,
|
|
3193
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
3194
|
-
},
|
|
3195
|
-
bubbles: true,
|
|
3196
|
-
cancelable: false
|
|
3197
|
-
});
|
|
3198
|
-
window.dispatchEvent(event);
|
|
3199
|
-
} catch (eventError) {
|
|
3200
|
-
import_consola7.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
3201
|
-
}
|
|
3202
|
-
}
|
|
3203
|
-
throw error;
|
|
3204
|
-
}
|
|
3205
|
-
}
|
|
3206
|
-
__name(createCentrifugoServerHistoryCreate, "createCentrifugoServerHistoryCreate");
|
|
3207
|
-
async function createCentrifugoServerInfoCreate(client) {
|
|
3208
|
-
const api = client || getAPIInstance2();
|
|
3209
|
-
const response = await api.centrifugo_admin_api.centrifugoServerInfoCreate();
|
|
3210
|
-
try {
|
|
3211
|
-
return CentrifugoInfoResponseSchema.parse(response);
|
|
3212
|
-
} catch (error) {
|
|
3213
|
-
import_consola7.consola.error("\u274C Zod Validation Failed");
|
|
3214
|
-
import_consola7.consola.box(`createCentrifugoServerInfoCreate
|
|
3215
|
-
Path: /cfg/centrifugo/server/info/
|
|
3216
|
-
Method: POST`);
|
|
3217
|
-
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3218
|
-
import_consola7.consola.error("Validation Issues:");
|
|
3219
|
-
error.issues.forEach((issue, index) => {
|
|
3220
|
-
import_consola7.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3221
|
-
import_consola7.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3222
|
-
if (issue.expected) import_consola7.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3223
|
-
if (issue.received) import_consola7.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
3224
|
-
});
|
|
3225
|
-
}
|
|
3226
|
-
import_consola7.consola.error("Response data:", response);
|
|
3227
|
-
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
3228
|
-
try {
|
|
3229
|
-
const event = new CustomEvent("zod-validation-error", {
|
|
3230
|
-
detail: {
|
|
3231
|
-
operation: "createCentrifugoServerInfoCreate",
|
|
3232
|
-
path: "/cfg/centrifugo/server/info/",
|
|
3233
|
-
method: "POST",
|
|
3234
|
-
error,
|
|
3235
|
-
response,
|
|
3236
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
3237
|
-
},
|
|
3238
|
-
bubbles: true,
|
|
3239
|
-
cancelable: false
|
|
3240
|
-
});
|
|
3241
|
-
window.dispatchEvent(event);
|
|
3242
|
-
} catch (eventError) {
|
|
3243
|
-
import_consola7.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
3244
|
-
}
|
|
3245
|
-
}
|
|
3246
|
-
throw error;
|
|
3247
|
-
}
|
|
3248
|
-
}
|
|
3249
|
-
__name(createCentrifugoServerInfoCreate, "createCentrifugoServerInfoCreate");
|
|
3250
|
-
async function createCentrifugoServerPresenceCreate(data, client) {
|
|
3251
|
-
const api = client || getAPIInstance2();
|
|
3252
|
-
const response = await api.centrifugo_admin_api.centrifugoServerPresenceCreate(data);
|
|
3253
|
-
try {
|
|
3254
|
-
return CentrifugoPresenceResponseSchema.parse(response);
|
|
3255
|
-
} catch (error) {
|
|
3256
|
-
import_consola7.consola.error("\u274C Zod Validation Failed");
|
|
3257
|
-
import_consola7.consola.box(`createCentrifugoServerPresenceCreate
|
|
3258
|
-
Path: /cfg/centrifugo/server/presence/
|
|
3259
|
-
Method: POST`);
|
|
3260
|
-
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3261
|
-
import_consola7.consola.error("Validation Issues:");
|
|
3262
|
-
error.issues.forEach((issue, index) => {
|
|
3263
|
-
import_consola7.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3264
|
-
import_consola7.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3265
|
-
if (issue.expected) import_consola7.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3266
|
-
if (issue.received) import_consola7.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
3267
|
-
});
|
|
3268
|
-
}
|
|
3269
|
-
import_consola7.consola.error("Response data:", response);
|
|
3270
|
-
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
3271
|
-
try {
|
|
3272
|
-
const event = new CustomEvent("zod-validation-error", {
|
|
3273
|
-
detail: {
|
|
3274
|
-
operation: "createCentrifugoServerPresenceCreate",
|
|
3275
|
-
path: "/cfg/centrifugo/server/presence/",
|
|
3276
|
-
method: "POST",
|
|
3277
|
-
error,
|
|
3278
|
-
response,
|
|
3279
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
3280
|
-
},
|
|
3281
|
-
bubbles: true,
|
|
3282
|
-
cancelable: false
|
|
3283
|
-
});
|
|
3284
|
-
window.dispatchEvent(event);
|
|
3285
|
-
} catch (eventError) {
|
|
3286
|
-
import_consola7.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
3287
|
-
}
|
|
3288
|
-
}
|
|
3289
|
-
throw error;
|
|
3290
|
-
}
|
|
3291
|
-
}
|
|
3292
|
-
__name(createCentrifugoServerPresenceCreate, "createCentrifugoServerPresenceCreate");
|
|
3293
|
-
async function createCentrifugoServerPresenceStatsCreate(data, client) {
|
|
3294
|
-
const api = client || getAPIInstance2();
|
|
3295
|
-
const response = await api.centrifugo_admin_api.centrifugoServerPresenceStatsCreate(data);
|
|
3296
|
-
try {
|
|
3297
|
-
return CentrifugoPresenceStatsResponseSchema.parse(response);
|
|
3298
|
-
} catch (error) {
|
|
3299
|
-
import_consola7.consola.error("\u274C Zod Validation Failed");
|
|
3300
|
-
import_consola7.consola.box(`createCentrifugoServerPresenceStatsCreate
|
|
3301
|
-
Path: /cfg/centrifugo/server/presence-stats/
|
|
3302
|
-
Method: POST`);
|
|
3303
|
-
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3304
|
-
import_consola7.consola.error("Validation Issues:");
|
|
3305
|
-
error.issues.forEach((issue, index) => {
|
|
3306
|
-
import_consola7.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3307
|
-
import_consola7.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3308
|
-
if (issue.expected) import_consola7.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3309
|
-
if (issue.received) import_consola7.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
3310
|
-
});
|
|
3311
|
-
}
|
|
3312
|
-
import_consola7.consola.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: "createCentrifugoServerPresenceStatsCreate",
|
|
3318
|
-
path: "/cfg/centrifugo/server/presence-stats/",
|
|
3319
|
-
method: "POST",
|
|
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
|
-
import_consola7.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
3330
|
-
}
|
|
3331
|
-
}
|
|
3332
|
-
throw error;
|
|
3333
|
-
}
|
|
3334
|
-
}
|
|
3335
|
-
__name(createCentrifugoServerPresenceStatsCreate, "createCentrifugoServerPresenceStatsCreate");
|
|
3336
|
-
|
|
3337
|
-
// src/_api/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_auth.ts
|
|
3338
|
-
var import_consola8 = require("consola");
|
|
3339
|
-
async function getCentrifugoAuthTokenRetrieve(client) {
|
|
3340
|
-
const api = client || getAPIInstance2();
|
|
3341
|
-
const response = await api.centrifugo_auth.tokenRetrieve();
|
|
3342
|
-
try {
|
|
3343
|
-
return ConnectionTokenResponseSchema.parse(response);
|
|
3344
|
-
} catch (error) {
|
|
3345
|
-
import_consola8.consola.error("\u274C Zod Validation Failed");
|
|
3346
|
-
import_consola8.consola.box(`getCentrifugoAuthTokenRetrieve
|
|
3347
|
-
Path: /cfg/centrifugo/auth/token/
|
|
3348
|
-
Method: GET`);
|
|
3349
|
-
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3350
|
-
import_consola8.consola.error("Validation Issues:");
|
|
3351
|
-
error.issues.forEach((issue, index) => {
|
|
3352
|
-
import_consola8.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3353
|
-
import_consola8.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3354
|
-
if (issue.expected) import_consola8.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3355
|
-
if (issue.received) import_consola8.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
3356
|
-
});
|
|
3357
|
-
}
|
|
3358
|
-
import_consola8.consola.error("Response data:", response);
|
|
3359
|
-
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
3360
|
-
try {
|
|
3361
|
-
const event = new CustomEvent("zod-validation-error", {
|
|
3362
|
-
detail: {
|
|
3363
|
-
operation: "getCentrifugoAuthTokenRetrieve",
|
|
3364
|
-
path: "/cfg/centrifugo/auth/token/",
|
|
3365
|
-
method: "GET",
|
|
3366
|
-
error,
|
|
3367
|
-
response,
|
|
3368
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
3369
|
-
},
|
|
3370
|
-
bubbles: true,
|
|
3371
|
-
cancelable: false
|
|
3372
|
-
});
|
|
3373
|
-
window.dispatchEvent(event);
|
|
3374
|
-
} catch (eventError) {
|
|
3375
|
-
import_consola8.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
3376
|
-
}
|
|
3377
|
-
}
|
|
3378
|
-
throw error;
|
|
3379
|
-
}
|
|
3380
|
-
}
|
|
3381
|
-
__name(getCentrifugoAuthTokenRetrieve, "getCentrifugoAuthTokenRetrieve");
|
|
3382
|
-
|
|
3383
|
-
// src/_api/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_monitoring.ts
|
|
3384
|
-
var import_consola9 = require("consola");
|
|
3385
|
-
async function getCentrifugoMonitorChannelsRetrieve(params, client) {
|
|
3386
|
-
const api = client || getAPIInstance2();
|
|
3387
|
-
const response = await api.centrifugo_monitoring.centrifugoMonitorChannelsRetrieve(params?.hours);
|
|
3388
|
-
try {
|
|
3389
|
-
return ChannelListSchema.parse(response);
|
|
3390
|
-
} catch (error) {
|
|
3391
|
-
import_consola9.consola.error("\u274C Zod Validation Failed");
|
|
3392
|
-
import_consola9.consola.box(`getCentrifugoMonitorChannelsRetrieve
|
|
3393
|
-
Path: /cfg/centrifugo/monitor/channels/
|
|
3394
|
-
Method: GET`);
|
|
3395
|
-
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3396
|
-
import_consola9.consola.error("Validation Issues:");
|
|
3397
|
-
error.issues.forEach((issue, index) => {
|
|
3398
|
-
import_consola9.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3399
|
-
import_consola9.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3400
|
-
if (issue.expected) import_consola9.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3401
|
-
if (issue.received) import_consola9.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
3402
|
-
});
|
|
3403
|
-
}
|
|
3404
|
-
import_consola9.consola.error("Response data:", response);
|
|
3405
|
-
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
3406
|
-
try {
|
|
3407
|
-
const event = new CustomEvent("zod-validation-error", {
|
|
3408
|
-
detail: {
|
|
3409
|
-
operation: "getCentrifugoMonitorChannelsRetrieve",
|
|
3410
|
-
path: "/cfg/centrifugo/monitor/channels/",
|
|
3411
|
-
method: "GET",
|
|
3412
|
-
error,
|
|
3413
|
-
response,
|
|
3414
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
3415
|
-
},
|
|
3416
|
-
bubbles: true,
|
|
3417
|
-
cancelable: false
|
|
3418
|
-
});
|
|
3419
|
-
window.dispatchEvent(event);
|
|
3420
|
-
} catch (eventError) {
|
|
3421
|
-
import_consola9.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
3422
|
-
}
|
|
3423
|
-
}
|
|
3424
|
-
throw error;
|
|
3425
|
-
}
|
|
3426
|
-
}
|
|
3427
|
-
__name(getCentrifugoMonitorChannelsRetrieve, "getCentrifugoMonitorChannelsRetrieve");
|
|
3428
|
-
async function getCentrifugoMonitorHealthRetrieve(client) {
|
|
3429
|
-
const api = client || getAPIInstance2();
|
|
3430
|
-
const response = await api.centrifugo_monitoring.centrifugoMonitorHealthRetrieve();
|
|
3431
|
-
try {
|
|
3432
|
-
return CentrifugoHealthCheckSchema.parse(response);
|
|
3433
|
-
} catch (error) {
|
|
3434
|
-
import_consola9.consola.error("\u274C Zod Validation Failed");
|
|
3435
|
-
import_consola9.consola.box(`getCentrifugoMonitorHealthRetrieve
|
|
3436
|
-
Path: /cfg/centrifugo/monitor/health/
|
|
3437
|
-
Method: GET`);
|
|
3438
|
-
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3439
|
-
import_consola9.consola.error("Validation Issues:");
|
|
3440
|
-
error.issues.forEach((issue, index) => {
|
|
3441
|
-
import_consola9.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3442
|
-
import_consola9.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3443
|
-
if (issue.expected) import_consola9.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3444
|
-
if (issue.received) import_consola9.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
3445
|
-
});
|
|
3446
|
-
}
|
|
3447
|
-
import_consola9.consola.error("Response data:", response);
|
|
3448
|
-
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
3449
|
-
try {
|
|
3450
|
-
const event = new CustomEvent("zod-validation-error", {
|
|
3451
|
-
detail: {
|
|
3452
|
-
operation: "getCentrifugoMonitorHealthRetrieve",
|
|
3453
|
-
path: "/cfg/centrifugo/monitor/health/",
|
|
3454
|
-
method: "GET",
|
|
3455
|
-
error,
|
|
3456
|
-
response,
|
|
3457
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
3458
|
-
},
|
|
3459
|
-
bubbles: true,
|
|
3460
|
-
cancelable: false
|
|
3461
|
-
});
|
|
3462
|
-
window.dispatchEvent(event);
|
|
3463
|
-
} catch (eventError) {
|
|
3464
|
-
import_consola9.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
3465
|
-
}
|
|
3466
|
-
}
|
|
3467
|
-
throw error;
|
|
3468
|
-
}
|
|
3469
|
-
}
|
|
3470
|
-
__name(getCentrifugoMonitorHealthRetrieve, "getCentrifugoMonitorHealthRetrieve");
|
|
3471
|
-
async function getCentrifugoMonitorOverviewRetrieve(params, client) {
|
|
3472
|
-
const api = client || getAPIInstance2();
|
|
3473
|
-
const response = await api.centrifugo_monitoring.centrifugoMonitorOverviewRetrieve(params?.hours);
|
|
3474
|
-
try {
|
|
3475
|
-
return CentrifugoOverviewStatsSchema.parse(response);
|
|
3476
|
-
} catch (error) {
|
|
3477
|
-
import_consola9.consola.error("\u274C Zod Validation Failed");
|
|
3478
|
-
import_consola9.consola.box(`getCentrifugoMonitorOverviewRetrieve
|
|
3479
|
-
Path: /cfg/centrifugo/monitor/overview/
|
|
3480
|
-
Method: GET`);
|
|
3481
|
-
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3482
|
-
import_consola9.consola.error("Validation Issues:");
|
|
3483
|
-
error.issues.forEach((issue, index) => {
|
|
3484
|
-
import_consola9.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3485
|
-
import_consola9.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3486
|
-
if (issue.expected) import_consola9.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3487
|
-
if (issue.received) import_consola9.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
3488
|
-
});
|
|
3489
|
-
}
|
|
3490
|
-
import_consola9.consola.error("Response data:", response);
|
|
3491
|
-
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
3492
|
-
try {
|
|
3493
|
-
const event = new CustomEvent("zod-validation-error", {
|
|
3494
|
-
detail: {
|
|
3495
|
-
operation: "getCentrifugoMonitorOverviewRetrieve",
|
|
3496
|
-
path: "/cfg/centrifugo/monitor/overview/",
|
|
3497
|
-
method: "GET",
|
|
3498
|
-
error,
|
|
3499
|
-
response,
|
|
3500
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
3501
|
-
},
|
|
3502
|
-
bubbles: true,
|
|
3503
|
-
cancelable: false
|
|
3504
|
-
});
|
|
3505
|
-
window.dispatchEvent(event);
|
|
3506
|
-
} catch (eventError) {
|
|
3507
|
-
import_consola9.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
3508
|
-
}
|
|
3509
|
-
}
|
|
3510
|
-
throw error;
|
|
3511
|
-
}
|
|
3512
|
-
}
|
|
3513
|
-
__name(getCentrifugoMonitorOverviewRetrieve, "getCentrifugoMonitorOverviewRetrieve");
|
|
3514
|
-
async function getCentrifugoMonitorPublishesList(params, client) {
|
|
3515
|
-
const api = client || getAPIInstance2();
|
|
3516
|
-
const response = await api.centrifugo_monitoring.centrifugoMonitorPublishesList(params?.channel, params?.ordering, params?.page, params?.page_size, params?.search, params?.status);
|
|
3517
|
-
try {
|
|
3518
|
-
return PaginatedPublishListSchema.parse(response);
|
|
3519
|
-
} catch (error) {
|
|
3520
|
-
import_consola9.consola.error("\u274C Zod Validation Failed");
|
|
3521
|
-
import_consola9.consola.box(`getCentrifugoMonitorPublishesList
|
|
3522
|
-
Path: /cfg/centrifugo/monitor/publishes/
|
|
3523
|
-
Method: GET`);
|
|
3524
|
-
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3525
|
-
import_consola9.consola.error("Validation Issues:");
|
|
3526
|
-
error.issues.forEach((issue, index) => {
|
|
3527
|
-
import_consola9.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3528
|
-
import_consola9.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3529
|
-
if (issue.expected) import_consola9.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3530
|
-
if (issue.received) import_consola9.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
3531
|
-
});
|
|
3532
|
-
}
|
|
3533
|
-
import_consola9.consola.error("Response data:", response);
|
|
3534
|
-
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
3535
|
-
try {
|
|
3536
|
-
const event = new CustomEvent("zod-validation-error", {
|
|
3537
|
-
detail: {
|
|
3538
|
-
operation: "getCentrifugoMonitorPublishesList",
|
|
3539
|
-
path: "/cfg/centrifugo/monitor/publishes/",
|
|
3540
|
-
method: "GET",
|
|
3541
|
-
error,
|
|
3542
|
-
response,
|
|
3543
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
3544
|
-
},
|
|
3545
|
-
bubbles: true,
|
|
3546
|
-
cancelable: false
|
|
3547
|
-
});
|
|
3548
|
-
window.dispatchEvent(event);
|
|
3549
|
-
} catch (eventError) {
|
|
3550
|
-
import_consola9.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
3551
|
-
}
|
|
3552
|
-
}
|
|
3553
|
-
throw error;
|
|
3554
|
-
}
|
|
3555
|
-
}
|
|
3556
|
-
__name(getCentrifugoMonitorPublishesList, "getCentrifugoMonitorPublishesList");
|
|
3557
|
-
async function getCentrifugoMonitorTimelineRetrieve(params, client) {
|
|
3558
|
-
const api = client || getAPIInstance2();
|
|
3559
|
-
const response = await api.centrifugo_monitoring.centrifugoMonitorTimelineRetrieve(params?.hours, params?.interval);
|
|
3560
|
-
try {
|
|
3561
|
-
return TimelineResponseSchema.parse(response);
|
|
3562
|
-
} catch (error) {
|
|
3563
|
-
import_consola9.consola.error("\u274C Zod Validation Failed");
|
|
3564
|
-
import_consola9.consola.box(`getCentrifugoMonitorTimelineRetrieve
|
|
3565
|
-
Path: /cfg/centrifugo/monitor/timeline/
|
|
3566
|
-
Method: GET`);
|
|
3567
|
-
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3568
|
-
import_consola9.consola.error("Validation Issues:");
|
|
3569
|
-
error.issues.forEach((issue, index) => {
|
|
3570
|
-
import_consola9.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3571
|
-
import_consola9.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3572
|
-
if (issue.expected) import_consola9.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3573
|
-
if (issue.received) import_consola9.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
3574
|
-
});
|
|
3575
|
-
}
|
|
3576
|
-
import_consola9.consola.error("Response data:", response);
|
|
3577
|
-
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
3578
|
-
try {
|
|
3579
|
-
const event = new CustomEvent("zod-validation-error", {
|
|
3580
|
-
detail: {
|
|
3581
|
-
operation: "getCentrifugoMonitorTimelineRetrieve",
|
|
3582
|
-
path: "/cfg/centrifugo/monitor/timeline/",
|
|
3583
|
-
method: "GET",
|
|
3584
|
-
error,
|
|
3585
|
-
response,
|
|
3586
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
3587
|
-
},
|
|
3588
|
-
bubbles: true,
|
|
3589
|
-
cancelable: false
|
|
3590
|
-
});
|
|
3591
|
-
window.dispatchEvent(event);
|
|
3592
|
-
} catch (eventError) {
|
|
3593
|
-
import_consola9.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
3594
|
-
}
|
|
3595
|
-
}
|
|
3596
|
-
throw error;
|
|
3597
|
-
}
|
|
3598
|
-
}
|
|
3599
|
-
__name(getCentrifugoMonitorTimelineRetrieve, "getCentrifugoMonitorTimelineRetrieve");
|
|
3600
|
-
|
|
3601
|
-
// src/_api/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_testing.ts
|
|
3602
|
-
var import_consola10 = require("consola");
|
|
3603
|
-
async function createCentrifugoTestingPublishTestCreate(data, client) {
|
|
3604
|
-
const api = client || getAPIInstance2();
|
|
3605
|
-
const response = await api.centrifugo_testing.publishTestCreate(data);
|
|
3606
|
-
try {
|
|
3607
|
-
return PublishTestResponseSchema.parse(response);
|
|
3608
|
-
} catch (error) {
|
|
3609
|
-
import_consola10.consola.error("\u274C Zod Validation Failed");
|
|
3610
|
-
import_consola10.consola.box(`createCentrifugoTestingPublishTestCreate
|
|
3611
|
-
Path: /cfg/centrifugo/testing/publish-test/
|
|
3612
|
-
Method: POST`);
|
|
3613
|
-
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3614
|
-
import_consola10.consola.error("Validation Issues:");
|
|
3615
|
-
error.issues.forEach((issue, index) => {
|
|
3616
|
-
import_consola10.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3617
|
-
import_consola10.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3618
|
-
if (issue.expected) import_consola10.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3619
|
-
if (issue.received) import_consola10.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
3620
|
-
});
|
|
3621
|
-
}
|
|
3622
|
-
import_consola10.consola.error("Response data:", response);
|
|
3623
|
-
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
3624
|
-
try {
|
|
3625
|
-
const event = new CustomEvent("zod-validation-error", {
|
|
3626
|
-
detail: {
|
|
3627
|
-
operation: "createCentrifugoTestingPublishTestCreate",
|
|
3628
|
-
path: "/cfg/centrifugo/testing/publish-test/",
|
|
3629
|
-
method: "POST",
|
|
3630
|
-
error,
|
|
3631
|
-
response,
|
|
3632
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
3633
|
-
},
|
|
3634
|
-
bubbles: true,
|
|
3635
|
-
cancelable: false
|
|
3636
|
-
});
|
|
3637
|
-
window.dispatchEvent(event);
|
|
3638
|
-
} catch (eventError) {
|
|
3639
|
-
import_consola10.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
3640
|
-
}
|
|
3641
|
-
}
|
|
3642
|
-
throw error;
|
|
3643
|
-
}
|
|
3644
|
-
}
|
|
3645
|
-
__name(createCentrifugoTestingPublishTestCreate, "createCentrifugoTestingPublishTestCreate");
|
|
3646
|
-
async function createCentrifugoTestingPublishWithLoggingCreate(data, client) {
|
|
3647
|
-
const api = client || getAPIInstance2();
|
|
3648
|
-
const response = await api.centrifugo_testing.publishWithLoggingCreate(data);
|
|
3649
|
-
try {
|
|
3650
|
-
return PublishTestResponseSchema.parse(response);
|
|
3651
|
-
} catch (error) {
|
|
3652
|
-
import_consola10.consola.error("\u274C Zod Validation Failed");
|
|
3653
|
-
import_consola10.consola.box(`createCentrifugoTestingPublishWithLoggingCreate
|
|
3654
|
-
Path: /cfg/centrifugo/testing/publish-with-logging/
|
|
3655
|
-
Method: POST`);
|
|
3656
|
-
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3657
|
-
import_consola10.consola.error("Validation Issues:");
|
|
3658
|
-
error.issues.forEach((issue, index) => {
|
|
3659
|
-
import_consola10.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3660
|
-
import_consola10.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3661
|
-
if (issue.expected) import_consola10.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3662
|
-
if (issue.received) import_consola10.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
3663
|
-
});
|
|
3664
|
-
}
|
|
3665
|
-
import_consola10.consola.error("Response data:", response);
|
|
3666
|
-
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
3667
|
-
try {
|
|
3668
|
-
const event = new CustomEvent("zod-validation-error", {
|
|
3669
|
-
detail: {
|
|
3670
|
-
operation: "createCentrifugoTestingPublishWithLoggingCreate",
|
|
3671
|
-
path: "/cfg/centrifugo/testing/publish-with-logging/",
|
|
3672
|
-
method: "POST",
|
|
3673
|
-
error,
|
|
3674
|
-
response,
|
|
3675
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
3676
|
-
},
|
|
3677
|
-
bubbles: true,
|
|
3678
|
-
cancelable: false
|
|
3679
|
-
});
|
|
3680
|
-
window.dispatchEvent(event);
|
|
3681
|
-
} catch (eventError) {
|
|
3682
|
-
import_consola10.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
3683
|
-
}
|
|
3684
|
-
}
|
|
3685
|
-
throw error;
|
|
3686
|
-
}
|
|
3687
|
-
}
|
|
3688
|
-
__name(createCentrifugoTestingPublishWithLoggingCreate, "createCentrifugoTestingPublishWithLoggingCreate");
|
|
3689
|
-
async function createCentrifugoTestingSendAckCreate(data, client) {
|
|
3690
|
-
const api = client || getAPIInstance2();
|
|
3691
|
-
const response = await api.centrifugo_testing.sendAckCreate(data);
|
|
3692
|
-
try {
|
|
3693
|
-
return ManualAckResponseSchema.parse(response);
|
|
3694
|
-
} catch (error) {
|
|
3695
|
-
import_consola10.consola.error("\u274C Zod Validation Failed");
|
|
3696
|
-
import_consola10.consola.box(`createCentrifugoTestingSendAckCreate
|
|
3697
|
-
Path: /cfg/centrifugo/testing/send-ack/
|
|
3698
|
-
Method: POST`);
|
|
3699
|
-
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
3700
|
-
import_consola10.consola.error("Validation Issues:");
|
|
3701
|
-
error.issues.forEach((issue, index) => {
|
|
3702
|
-
import_consola10.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3703
|
-
import_consola10.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3704
|
-
if (issue.expected) import_consola10.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3705
|
-
if (issue.received) import_consola10.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
3706
|
-
});
|
|
3707
|
-
}
|
|
3708
|
-
import_consola10.consola.error("Response data:", response);
|
|
3709
|
-
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
3710
|
-
try {
|
|
3711
|
-
const event = new CustomEvent("zod-validation-error", {
|
|
3712
|
-
detail: {
|
|
3713
|
-
operation: "createCentrifugoTestingSendAckCreate",
|
|
3714
|
-
path: "/cfg/centrifugo/testing/send-ack/",
|
|
3715
|
-
method: "POST",
|
|
3716
|
-
error,
|
|
3717
|
-
response,
|
|
3718
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
3719
|
-
},
|
|
3720
|
-
bubbles: true,
|
|
3721
|
-
cancelable: false
|
|
3722
|
-
});
|
|
3723
|
-
window.dispatchEvent(event);
|
|
3724
|
-
} catch (eventError) {
|
|
3725
|
-
import_consola10.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
3726
|
-
}
|
|
3727
|
-
}
|
|
3728
|
-
throw error;
|
|
3729
|
-
}
|
|
3730
|
-
}
|
|
3731
|
-
__name(createCentrifugoTestingSendAckCreate, "createCentrifugoTestingSendAckCreate");
|
|
3732
|
-
|
|
3733
|
-
// src/_api/generated/cfg_centrifugo/index.ts
|
|
3734
|
-
var TOKEN_KEY2 = "auth_token";
|
|
3735
|
-
var REFRESH_TOKEN_KEY2 = "refresh_token";
|
|
3736
|
-
function detectLocale2() {
|
|
2617
|
+
__name(getCentrifugoAuthTokenRetrieve, "getCentrifugoAuthTokenRetrieve");
|
|
2618
|
+
|
|
2619
|
+
// src/_api/generated/cfg_centrifugo/index.ts
|
|
2620
|
+
var TOKEN_KEY2 = "auth_token";
|
|
2621
|
+
var REFRESH_TOKEN_KEY2 = "refresh_token";
|
|
2622
|
+
function detectLocale2() {
|
|
3737
2623
|
try {
|
|
3738
2624
|
if (typeof document !== "undefined") {
|
|
3739
2625
|
const match = document.cookie.match(/(?:^|;\s*)NEXT_LOCALE=([^;]*)/);
|
|
@@ -3765,10 +2651,7 @@ var API2 = class {
|
|
|
3765
2651
|
tokenGetter: /* @__PURE__ */ __name(() => this.getToken(), "tokenGetter")
|
|
3766
2652
|
});
|
|
3767
2653
|
this._injectAuthHeader();
|
|
3768
|
-
this.centrifugo_admin_api = this._client.centrifugo_admin_api;
|
|
3769
2654
|
this.centrifugo_auth = this._client.centrifugo_auth;
|
|
3770
|
-
this.centrifugo_monitoring = this._client.centrifugo_monitoring;
|
|
3771
|
-
this.centrifugo_testing = this._client.centrifugo_testing;
|
|
3772
2655
|
}
|
|
3773
2656
|
static {
|
|
3774
2657
|
__name(this, "API");
|
|
@@ -3785,10 +2668,7 @@ var API2 = class {
|
|
|
3785
2668
|
tokenGetter: /* @__PURE__ */ __name(() => this.getToken(), "tokenGetter")
|
|
3786
2669
|
});
|
|
3787
2670
|
this._injectAuthHeader();
|
|
3788
|
-
this.centrifugo_admin_api = this._client.centrifugo_admin_api;
|
|
3789
2671
|
this.centrifugo_auth = this._client.centrifugo_auth;
|
|
3790
|
-
this.centrifugo_monitoring = this._client.centrifugo_monitoring;
|
|
3791
|
-
this.centrifugo_testing = this._client.centrifugo_testing;
|
|
3792
2672
|
}
|
|
3793
2673
|
_injectAuthHeader() {
|
|
3794
2674
|
const originalRequest = this._client.request.bind(this._client);
|
|
@@ -4166,7 +3046,7 @@ var NetworkError3 = class extends Error {
|
|
|
4166
3046
|
};
|
|
4167
3047
|
|
|
4168
3048
|
// src/_api/generated/cfg_totp/logger.ts
|
|
4169
|
-
var
|
|
3049
|
+
var import_consola8 = require("consola");
|
|
4170
3050
|
var DEFAULT_CONFIG3 = {
|
|
4171
3051
|
enabled: process.env.NODE_ENV !== "production",
|
|
4172
3052
|
logRequests: true,
|
|
@@ -4188,7 +3068,7 @@ var APILogger3 = class {
|
|
|
4188
3068
|
}
|
|
4189
3069
|
constructor(config = {}) {
|
|
4190
3070
|
this.config = { ...DEFAULT_CONFIG3, ...config };
|
|
4191
|
-
this.consola = config.consola || (0,
|
|
3071
|
+
this.consola = config.consola || (0, import_consola8.createConsola)({
|
|
4192
3072
|
level: this.config.enabled ? 4 : 0
|
|
4193
3073
|
});
|
|
4194
3074
|
}
|
|
@@ -4533,43 +3413,47 @@ var APIClient3 = class {
|
|
|
4533
3413
|
if (error instanceof APIError3) {
|
|
4534
3414
|
throw error;
|
|
4535
3415
|
}
|
|
4536
|
-
|
|
3416
|
+
let possiblyCors = false;
|
|
3417
|
+
if (error instanceof TypeError && typeof window !== "undefined") {
|
|
3418
|
+
try {
|
|
3419
|
+
const isCrossOrigin = (() => {
|
|
3420
|
+
try {
|
|
3421
|
+
return new URL(url).origin !== window.location.origin;
|
|
3422
|
+
} catch {
|
|
3423
|
+
return false;
|
|
3424
|
+
}
|
|
3425
|
+
})();
|
|
3426
|
+
if (isCrossOrigin) {
|
|
3427
|
+
const entries = performance.getEntriesByName(url, "resource");
|
|
3428
|
+
if (entries.length > 0) {
|
|
3429
|
+
const last = entries[entries.length - 1];
|
|
3430
|
+
possiblyCors = "responseStatus" in last && last.responseStatus === 0;
|
|
3431
|
+
}
|
|
3432
|
+
}
|
|
3433
|
+
} catch {
|
|
3434
|
+
}
|
|
3435
|
+
}
|
|
4537
3436
|
if (this.logger) {
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
this.logger.error(` \u2192
|
|
4542
|
-
} else {
|
|
4543
|
-
this.logger.error(`\u26A0\uFE0F Network Error: ${method} ${url}`);
|
|
4544
|
-
this.logger.error(` \u2192 ${error instanceof Error ? error.message : String(error)}`);
|
|
3437
|
+
this.logger.error(`\u26A0\uFE0F Network Error: ${method} ${url}`);
|
|
3438
|
+
this.logger.error(` \u2192 ${error instanceof Error ? error.message : String(error)}`);
|
|
3439
|
+
if (possiblyCors) {
|
|
3440
|
+
this.logger.error(` \u2192 Possibly blocked by CORS policy (configure CORS on the server)`);
|
|
4545
3441
|
}
|
|
4546
3442
|
}
|
|
4547
3443
|
if (typeof window !== "undefined") {
|
|
4548
3444
|
try {
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
window.dispatchEvent(new CustomEvent("network-error", {
|
|
4562
|
-
detail: {
|
|
4563
|
-
url,
|
|
4564
|
-
method,
|
|
4565
|
-
error: error instanceof Error ? error.message : String(error),
|
|
4566
|
-
timestamp: /* @__PURE__ */ new Date()
|
|
4567
|
-
},
|
|
4568
|
-
bubbles: true,
|
|
4569
|
-
cancelable: false
|
|
4570
|
-
}));
|
|
4571
|
-
}
|
|
4572
|
-
} catch (eventError) {
|
|
3445
|
+
window.dispatchEvent(new CustomEvent("network-error", {
|
|
3446
|
+
detail: {
|
|
3447
|
+
url,
|
|
3448
|
+
method,
|
|
3449
|
+
error: error instanceof Error ? error.message : String(error),
|
|
3450
|
+
possibly_cors: possiblyCors,
|
|
3451
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
3452
|
+
},
|
|
3453
|
+
bubbles: true,
|
|
3454
|
+
cancelable: false
|
|
3455
|
+
}));
|
|
3456
|
+
} catch {
|
|
4573
3457
|
}
|
|
4574
3458
|
}
|
|
4575
3459
|
const networkError = error instanceof Error ? new NetworkError3(error.message, url, error) : new NetworkError3("Unknown error", url);
|
|
@@ -4670,141 +3554,141 @@ __export(schemas_exports3, {
|
|
|
4670
3554
|
});
|
|
4671
3555
|
|
|
4672
3556
|
// src/_api/generated/cfg_totp/_utils/schemas/BackupCodesRegenerateRequest.schema.ts
|
|
4673
|
-
var
|
|
4674
|
-
var BackupCodesRegenerateRequestSchema =
|
|
4675
|
-
code:
|
|
3557
|
+
var import_zod23 = require("zod");
|
|
3558
|
+
var BackupCodesRegenerateRequestSchema = import_zod23.z.object({
|
|
3559
|
+
code: import_zod23.z.string().min(6).max(6)
|
|
4676
3560
|
});
|
|
4677
3561
|
|
|
4678
3562
|
// src/_api/generated/cfg_totp/_utils/schemas/BackupCodesRegenerateResponse.schema.ts
|
|
4679
|
-
var
|
|
4680
|
-
var BackupCodesRegenerateResponseSchema =
|
|
4681
|
-
backup_codes:
|
|
4682
|
-
warning:
|
|
3563
|
+
var import_zod24 = require("zod");
|
|
3564
|
+
var BackupCodesRegenerateResponseSchema = import_zod24.z.object({
|
|
3565
|
+
backup_codes: import_zod24.z.array(import_zod24.z.string()),
|
|
3566
|
+
warning: import_zod24.z.string()
|
|
4683
3567
|
});
|
|
4684
3568
|
|
|
4685
3569
|
// src/_api/generated/cfg_totp/_utils/schemas/BackupCodesStatus.schema.ts
|
|
4686
|
-
var
|
|
4687
|
-
var BackupCodesStatusSchema =
|
|
4688
|
-
remaining_count:
|
|
4689
|
-
total_generated:
|
|
4690
|
-
warning:
|
|
3570
|
+
var import_zod25 = require("zod");
|
|
3571
|
+
var BackupCodesStatusSchema = import_zod25.z.object({
|
|
3572
|
+
remaining_count: import_zod25.z.number().int(),
|
|
3573
|
+
total_generated: import_zod25.z.number().int(),
|
|
3574
|
+
warning: import_zod25.z.string().nullable().optional()
|
|
4691
3575
|
});
|
|
4692
3576
|
|
|
4693
3577
|
// src/_api/generated/cfg_totp/_utils/schemas/ConfirmSetupRequest.schema.ts
|
|
4694
|
-
var
|
|
4695
|
-
var ConfirmSetupRequestSchema =
|
|
4696
|
-
device_id:
|
|
4697
|
-
code:
|
|
3578
|
+
var import_zod26 = require("zod");
|
|
3579
|
+
var ConfirmSetupRequestSchema = import_zod26.z.object({
|
|
3580
|
+
device_id: import_zod26.z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
|
|
3581
|
+
code: import_zod26.z.string().min(6).max(6)
|
|
4698
3582
|
});
|
|
4699
3583
|
|
|
4700
3584
|
// src/_api/generated/cfg_totp/_utils/schemas/ConfirmSetupResponse.schema.ts
|
|
4701
|
-
var
|
|
4702
|
-
var ConfirmSetupResponseSchema =
|
|
4703
|
-
message:
|
|
4704
|
-
backup_codes:
|
|
4705
|
-
backup_codes_warning:
|
|
3585
|
+
var import_zod27 = require("zod");
|
|
3586
|
+
var ConfirmSetupResponseSchema = import_zod27.z.object({
|
|
3587
|
+
message: import_zod27.z.string(),
|
|
3588
|
+
backup_codes: import_zod27.z.array(import_zod27.z.string()),
|
|
3589
|
+
backup_codes_warning: import_zod27.z.string()
|
|
4706
3590
|
});
|
|
4707
3591
|
|
|
4708
3592
|
// src/_api/generated/cfg_totp/_utils/schemas/DeviceList.schema.ts
|
|
4709
|
-
var
|
|
4710
|
-
var DeviceListSchema =
|
|
4711
|
-
id:
|
|
4712
|
-
name:
|
|
4713
|
-
is_primary:
|
|
4714
|
-
status:
|
|
4715
|
-
created_at:
|
|
4716
|
-
confirmed_at:
|
|
4717
|
-
last_used_at:
|
|
3593
|
+
var import_zod28 = require("zod");
|
|
3594
|
+
var DeviceListSchema = import_zod28.z.object({
|
|
3595
|
+
id: import_zod28.z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
|
|
3596
|
+
name: import_zod28.z.string(),
|
|
3597
|
+
is_primary: import_zod28.z.boolean(),
|
|
3598
|
+
status: import_zod28.z.nativeEnum(DeviceListStatus),
|
|
3599
|
+
created_at: import_zod28.z.string().datetime({ offset: true }),
|
|
3600
|
+
confirmed_at: import_zod28.z.string().datetime({ offset: true }).nullable(),
|
|
3601
|
+
last_used_at: import_zod28.z.string().datetime({ offset: true }).nullable()
|
|
4718
3602
|
});
|
|
4719
3603
|
|
|
4720
3604
|
// src/_api/generated/cfg_totp/_utils/schemas/DeviceListResponse.schema.ts
|
|
4721
|
-
var
|
|
4722
|
-
var DeviceListResponseSchema =
|
|
4723
|
-
devices:
|
|
4724
|
-
has_2fa_enabled:
|
|
3605
|
+
var import_zod29 = require("zod");
|
|
3606
|
+
var DeviceListResponseSchema = import_zod29.z.object({
|
|
3607
|
+
devices: import_zod29.z.array(DeviceListSchema),
|
|
3608
|
+
has_2fa_enabled: import_zod29.z.boolean()
|
|
4725
3609
|
});
|
|
4726
3610
|
|
|
4727
3611
|
// src/_api/generated/cfg_totp/_utils/schemas/DisableRequest.schema.ts
|
|
4728
|
-
var
|
|
4729
|
-
var DisableRequestSchema =
|
|
4730
|
-
code:
|
|
3612
|
+
var import_zod30 = require("zod");
|
|
3613
|
+
var DisableRequestSchema = import_zod30.z.object({
|
|
3614
|
+
code: import_zod30.z.string().min(6).max(6)
|
|
4731
3615
|
});
|
|
4732
3616
|
|
|
4733
3617
|
// src/_api/generated/cfg_totp/_utils/schemas/PaginatedDeviceListResponseList.schema.ts
|
|
4734
|
-
var
|
|
4735
|
-
var PaginatedDeviceListResponseListSchema =
|
|
4736
|
-
count:
|
|
4737
|
-
page:
|
|
4738
|
-
pages:
|
|
4739
|
-
page_size:
|
|
4740
|
-
has_next:
|
|
4741
|
-
has_previous:
|
|
4742
|
-
next_page:
|
|
4743
|
-
previous_page:
|
|
4744
|
-
results:
|
|
3618
|
+
var import_zod31 = require("zod");
|
|
3619
|
+
var PaginatedDeviceListResponseListSchema = import_zod31.z.object({
|
|
3620
|
+
count: import_zod31.z.number().int(),
|
|
3621
|
+
page: import_zod31.z.number().int(),
|
|
3622
|
+
pages: import_zod31.z.number().int(),
|
|
3623
|
+
page_size: import_zod31.z.number().int(),
|
|
3624
|
+
has_next: import_zod31.z.boolean(),
|
|
3625
|
+
has_previous: import_zod31.z.boolean(),
|
|
3626
|
+
next_page: import_zod31.z.number().int().nullable().optional(),
|
|
3627
|
+
previous_page: import_zod31.z.number().int().nullable().optional(),
|
|
3628
|
+
results: import_zod31.z.array(DeviceListResponseSchema)
|
|
4745
3629
|
});
|
|
4746
3630
|
|
|
4747
3631
|
// src/_api/generated/cfg_totp/_utils/schemas/SetupRequest.schema.ts
|
|
4748
|
-
var
|
|
4749
|
-
var SetupRequestSchema =
|
|
4750
|
-
device_name:
|
|
3632
|
+
var import_zod32 = require("zod");
|
|
3633
|
+
var SetupRequestSchema = import_zod32.z.object({
|
|
3634
|
+
device_name: import_zod32.z.string().min(1).max(100).optional()
|
|
4751
3635
|
});
|
|
4752
3636
|
|
|
4753
3637
|
// src/_api/generated/cfg_totp/_utils/schemas/SetupResponse.schema.ts
|
|
4754
|
-
var
|
|
4755
|
-
var SetupResponseSchema =
|
|
4756
|
-
device_id:
|
|
4757
|
-
secret:
|
|
4758
|
-
provisioning_uri:
|
|
4759
|
-
qr_code_base64:
|
|
4760
|
-
expires_in:
|
|
3638
|
+
var import_zod33 = require("zod");
|
|
3639
|
+
var SetupResponseSchema = import_zod33.z.object({
|
|
3640
|
+
device_id: import_zod33.z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
|
|
3641
|
+
secret: import_zod33.z.string(),
|
|
3642
|
+
provisioning_uri: import_zod33.z.string(),
|
|
3643
|
+
qr_code_base64: import_zod33.z.string(),
|
|
3644
|
+
expires_in: import_zod33.z.number().int()
|
|
4761
3645
|
});
|
|
4762
3646
|
|
|
4763
3647
|
// src/_api/generated/cfg_totp/_utils/schemas/TotpVerifyUser.schema.ts
|
|
4764
|
-
var
|
|
4765
|
-
var TotpVerifyUserSchema =
|
|
4766
|
-
id:
|
|
4767
|
-
email:
|
|
4768
|
-
first_name:
|
|
4769
|
-
last_name:
|
|
4770
|
-
full_name:
|
|
4771
|
-
initials:
|
|
4772
|
-
display_username:
|
|
4773
|
-
company:
|
|
4774
|
-
phone:
|
|
4775
|
-
position:
|
|
4776
|
-
language:
|
|
4777
|
-
avatar:
|
|
4778
|
-
is_staff:
|
|
4779
|
-
is_superuser:
|
|
4780
|
-
date_joined:
|
|
4781
|
-
last_login:
|
|
4782
|
-
unanswered_messages_count:
|
|
3648
|
+
var import_zod34 = require("zod");
|
|
3649
|
+
var TotpVerifyUserSchema = import_zod34.z.object({
|
|
3650
|
+
id: import_zod34.z.number().int(),
|
|
3651
|
+
email: import_zod34.z.email(),
|
|
3652
|
+
first_name: import_zod34.z.string().max(50).optional(),
|
|
3653
|
+
last_name: import_zod34.z.string().max(50).optional(),
|
|
3654
|
+
full_name: import_zod34.z.string(),
|
|
3655
|
+
initials: import_zod34.z.string(),
|
|
3656
|
+
display_username: import_zod34.z.string(),
|
|
3657
|
+
company: import_zod34.z.string().max(100).optional(),
|
|
3658
|
+
phone: import_zod34.z.string().max(20).optional(),
|
|
3659
|
+
position: import_zod34.z.string().max(100).optional(),
|
|
3660
|
+
language: import_zod34.z.string().max(10).optional(),
|
|
3661
|
+
avatar: import_zod34.z.string().nullable(),
|
|
3662
|
+
is_staff: import_zod34.z.boolean(),
|
|
3663
|
+
is_superuser: import_zod34.z.boolean(),
|
|
3664
|
+
date_joined: import_zod34.z.string().datetime({ offset: true }),
|
|
3665
|
+
last_login: import_zod34.z.string().datetime({ offset: true }).nullable(),
|
|
3666
|
+
unanswered_messages_count: import_zod34.z.number().int()
|
|
4783
3667
|
});
|
|
4784
3668
|
|
|
4785
3669
|
// src/_api/generated/cfg_totp/_utils/schemas/VerifyBackupRequest.schema.ts
|
|
4786
|
-
var
|
|
4787
|
-
var VerifyBackupRequestSchema =
|
|
4788
|
-
session_id:
|
|
4789
|
-
backup_code:
|
|
3670
|
+
var import_zod35 = require("zod");
|
|
3671
|
+
var VerifyBackupRequestSchema = import_zod35.z.object({
|
|
3672
|
+
session_id: import_zod35.z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
|
|
3673
|
+
backup_code: import_zod35.z.string().min(8).max(8)
|
|
4790
3674
|
});
|
|
4791
3675
|
|
|
4792
3676
|
// src/_api/generated/cfg_totp/_utils/schemas/VerifyRequest.schema.ts
|
|
4793
|
-
var
|
|
4794
|
-
var VerifyRequestSchema =
|
|
4795
|
-
session_id:
|
|
4796
|
-
code:
|
|
3677
|
+
var import_zod36 = require("zod");
|
|
3678
|
+
var VerifyRequestSchema = import_zod36.z.object({
|
|
3679
|
+
session_id: import_zod36.z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
|
|
3680
|
+
code: import_zod36.z.string().min(6).max(6)
|
|
4797
3681
|
});
|
|
4798
3682
|
|
|
4799
3683
|
// src/_api/generated/cfg_totp/_utils/schemas/VerifyResponse.schema.ts
|
|
4800
|
-
var
|
|
4801
|
-
var VerifyResponseSchema =
|
|
4802
|
-
message:
|
|
4803
|
-
access_token:
|
|
4804
|
-
refresh_token:
|
|
3684
|
+
var import_zod37 = require("zod");
|
|
3685
|
+
var VerifyResponseSchema = import_zod37.z.object({
|
|
3686
|
+
message: import_zod37.z.string(),
|
|
3687
|
+
access_token: import_zod37.z.string(),
|
|
3688
|
+
refresh_token: import_zod37.z.string(),
|
|
4805
3689
|
user: TotpVerifyUserSchema,
|
|
4806
|
-
remaining_backup_codes:
|
|
4807
|
-
warning:
|
|
3690
|
+
remaining_backup_codes: import_zod37.z.number().int().optional(),
|
|
3691
|
+
warning: import_zod37.z.string().optional()
|
|
4808
3692
|
});
|
|
4809
3693
|
|
|
4810
3694
|
// src/_api/generated/cfg_totp/_utils/fetchers/index.ts
|
|
@@ -4855,27 +3739,27 @@ async function deleteTotpDevicesDestroy(id, client) {
|
|
|
4855
3739
|
__name(deleteTotpDevicesDestroy, "deleteTotpDevicesDestroy");
|
|
4856
3740
|
|
|
4857
3741
|
// src/_api/generated/cfg_totp/_utils/fetchers/totp__backup_codes.ts
|
|
4858
|
-
var
|
|
3742
|
+
var import_consola9 = require("consola");
|
|
4859
3743
|
async function getTotpBackupCodesRetrieve(client) {
|
|
4860
3744
|
const api = client || getAPIInstance3();
|
|
4861
3745
|
const response = await api.backup_codes.totpBackupCodesRetrieve();
|
|
4862
3746
|
try {
|
|
4863
3747
|
return BackupCodesStatusSchema.parse(response);
|
|
4864
3748
|
} catch (error) {
|
|
4865
|
-
|
|
4866
|
-
|
|
3749
|
+
import_consola9.consola.error("\u274C Zod Validation Failed");
|
|
3750
|
+
import_consola9.consola.box(`getTotpBackupCodesRetrieve
|
|
4867
3751
|
Path: /cfg/totp/backup-codes/
|
|
4868
3752
|
Method: GET`);
|
|
4869
3753
|
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
4870
|
-
|
|
3754
|
+
import_consola9.consola.error("Validation Issues:");
|
|
4871
3755
|
error.issues.forEach((issue, index) => {
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
if (issue.expected)
|
|
4875
|
-
if (issue.received)
|
|
3756
|
+
import_consola9.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3757
|
+
import_consola9.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3758
|
+
if (issue.expected) import_consola9.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3759
|
+
if (issue.received) import_consola9.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
4876
3760
|
});
|
|
4877
3761
|
}
|
|
4878
|
-
|
|
3762
|
+
import_consola9.consola.error("Response data:", response);
|
|
4879
3763
|
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
4880
3764
|
try {
|
|
4881
3765
|
const event = new CustomEvent("zod-validation-error", {
|
|
@@ -4892,7 +3776,7 @@ Method: GET`);
|
|
|
4892
3776
|
});
|
|
4893
3777
|
window.dispatchEvent(event);
|
|
4894
3778
|
} catch (eventError) {
|
|
4895
|
-
|
|
3779
|
+
import_consola9.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
4896
3780
|
}
|
|
4897
3781
|
}
|
|
4898
3782
|
throw error;
|
|
@@ -4905,20 +3789,20 @@ async function createTotpBackupCodesRegenerateCreate(data, client) {
|
|
|
4905
3789
|
try {
|
|
4906
3790
|
return BackupCodesRegenerateResponseSchema.parse(response);
|
|
4907
3791
|
} catch (error) {
|
|
4908
|
-
|
|
4909
|
-
|
|
3792
|
+
import_consola9.consola.error("\u274C Zod Validation Failed");
|
|
3793
|
+
import_consola9.consola.box(`createTotpBackupCodesRegenerateCreate
|
|
4910
3794
|
Path: /cfg/totp/backup-codes/regenerate/
|
|
4911
3795
|
Method: POST`);
|
|
4912
3796
|
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
4913
|
-
|
|
3797
|
+
import_consola9.consola.error("Validation Issues:");
|
|
4914
3798
|
error.issues.forEach((issue, index) => {
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
if (issue.expected)
|
|
4918
|
-
if (issue.received)
|
|
3799
|
+
import_consola9.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3800
|
+
import_consola9.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3801
|
+
if (issue.expected) import_consola9.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3802
|
+
if (issue.received) import_consola9.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
4919
3803
|
});
|
|
4920
3804
|
}
|
|
4921
|
-
|
|
3805
|
+
import_consola9.consola.error("Response data:", response);
|
|
4922
3806
|
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
4923
3807
|
try {
|
|
4924
3808
|
const event = new CustomEvent("zod-validation-error", {
|
|
@@ -4935,7 +3819,7 @@ Method: POST`);
|
|
|
4935
3819
|
});
|
|
4936
3820
|
window.dispatchEvent(event);
|
|
4937
3821
|
} catch (eventError) {
|
|
4938
|
-
|
|
3822
|
+
import_consola9.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
4939
3823
|
}
|
|
4940
3824
|
}
|
|
4941
3825
|
throw error;
|
|
@@ -4944,27 +3828,27 @@ Method: POST`);
|
|
|
4944
3828
|
__name(createTotpBackupCodesRegenerateCreate, "createTotpBackupCodesRegenerateCreate");
|
|
4945
3829
|
|
|
4946
3830
|
// src/_api/generated/cfg_totp/_utils/fetchers/totp__totp_management.ts
|
|
4947
|
-
var
|
|
3831
|
+
var import_consola10 = require("consola");
|
|
4948
3832
|
async function getTotpDevicesList(params, client) {
|
|
4949
3833
|
const api = client || getAPIInstance3();
|
|
4950
3834
|
const response = await api.totp_management.totpDevicesList(params?.ordering, params?.page, params?.page_size, params?.search);
|
|
4951
3835
|
try {
|
|
4952
3836
|
return PaginatedDeviceListResponseListSchema.parse(response);
|
|
4953
3837
|
} catch (error) {
|
|
4954
|
-
|
|
4955
|
-
|
|
3838
|
+
import_consola10.consola.error("\u274C Zod Validation Failed");
|
|
3839
|
+
import_consola10.consola.box(`getTotpDevicesList
|
|
4956
3840
|
Path: /cfg/totp/devices/
|
|
4957
3841
|
Method: GET`);
|
|
4958
3842
|
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
4959
|
-
|
|
3843
|
+
import_consola10.consola.error("Validation Issues:");
|
|
4960
3844
|
error.issues.forEach((issue, index) => {
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
if (issue.expected)
|
|
4964
|
-
if (issue.received)
|
|
3845
|
+
import_consola10.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3846
|
+
import_consola10.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3847
|
+
if (issue.expected) import_consola10.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3848
|
+
if (issue.received) import_consola10.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
4965
3849
|
});
|
|
4966
3850
|
}
|
|
4967
|
-
|
|
3851
|
+
import_consola10.consola.error("Response data:", response);
|
|
4968
3852
|
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
4969
3853
|
try {
|
|
4970
3854
|
const event = new CustomEvent("zod-validation-error", {
|
|
@@ -4981,7 +3865,7 @@ Method: GET`);
|
|
|
4981
3865
|
});
|
|
4982
3866
|
window.dispatchEvent(event);
|
|
4983
3867
|
} catch (eventError) {
|
|
4984
|
-
|
|
3868
|
+
import_consola10.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
4985
3869
|
}
|
|
4986
3870
|
}
|
|
4987
3871
|
throw error;
|
|
@@ -4996,27 +3880,27 @@ async function createTotpDisableCreate(data, client) {
|
|
|
4996
3880
|
__name(createTotpDisableCreate, "createTotpDisableCreate");
|
|
4997
3881
|
|
|
4998
3882
|
// src/_api/generated/cfg_totp/_utils/fetchers/totp__totp_setup.ts
|
|
4999
|
-
var
|
|
3883
|
+
var import_consola11 = require("consola");
|
|
5000
3884
|
async function createTotpSetupCreate(data, client) {
|
|
5001
3885
|
const api = client || getAPIInstance3();
|
|
5002
3886
|
const response = await api.totp_setup.create(data);
|
|
5003
3887
|
try {
|
|
5004
3888
|
return SetupResponseSchema.parse(response);
|
|
5005
3889
|
} catch (error) {
|
|
5006
|
-
|
|
5007
|
-
|
|
3890
|
+
import_consola11.consola.error("\u274C Zod Validation Failed");
|
|
3891
|
+
import_consola11.consola.box(`createTotpSetupCreate
|
|
5008
3892
|
Path: /cfg/totp/setup/
|
|
5009
3893
|
Method: POST`);
|
|
5010
3894
|
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
5011
|
-
|
|
3895
|
+
import_consola11.consola.error("Validation Issues:");
|
|
5012
3896
|
error.issues.forEach((issue, index) => {
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
if (issue.expected)
|
|
5016
|
-
if (issue.received)
|
|
3897
|
+
import_consola11.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3898
|
+
import_consola11.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3899
|
+
if (issue.expected) import_consola11.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3900
|
+
if (issue.received) import_consola11.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
5017
3901
|
});
|
|
5018
3902
|
}
|
|
5019
|
-
|
|
3903
|
+
import_consola11.consola.error("Response data:", response);
|
|
5020
3904
|
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
5021
3905
|
try {
|
|
5022
3906
|
const event = new CustomEvent("zod-validation-error", {
|
|
@@ -5033,7 +3917,7 @@ Method: POST`);
|
|
|
5033
3917
|
});
|
|
5034
3918
|
window.dispatchEvent(event);
|
|
5035
3919
|
} catch (eventError) {
|
|
5036
|
-
|
|
3920
|
+
import_consola11.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
5037
3921
|
}
|
|
5038
3922
|
}
|
|
5039
3923
|
throw error;
|
|
@@ -5046,20 +3930,20 @@ async function createTotpSetupConfirmCreate(data, client) {
|
|
|
5046
3930
|
try {
|
|
5047
3931
|
return ConfirmSetupResponseSchema.parse(response);
|
|
5048
3932
|
} catch (error) {
|
|
5049
|
-
|
|
5050
|
-
|
|
3933
|
+
import_consola11.consola.error("\u274C Zod Validation Failed");
|
|
3934
|
+
import_consola11.consola.box(`createTotpSetupConfirmCreate
|
|
5051
3935
|
Path: /cfg/totp/setup/confirm/
|
|
5052
3936
|
Method: POST`);
|
|
5053
3937
|
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
5054
|
-
|
|
3938
|
+
import_consola11.consola.error("Validation Issues:");
|
|
5055
3939
|
error.issues.forEach((issue, index) => {
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
if (issue.expected)
|
|
5059
|
-
if (issue.received)
|
|
3940
|
+
import_consola11.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3941
|
+
import_consola11.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3942
|
+
if (issue.expected) import_consola11.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3943
|
+
if (issue.received) import_consola11.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
5060
3944
|
});
|
|
5061
3945
|
}
|
|
5062
|
-
|
|
3946
|
+
import_consola11.consola.error("Response data:", response);
|
|
5063
3947
|
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
5064
3948
|
try {
|
|
5065
3949
|
const event = new CustomEvent("zod-validation-error", {
|
|
@@ -5076,7 +3960,7 @@ Method: POST`);
|
|
|
5076
3960
|
});
|
|
5077
3961
|
window.dispatchEvent(event);
|
|
5078
3962
|
} catch (eventError) {
|
|
5079
|
-
|
|
3963
|
+
import_consola11.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
5080
3964
|
}
|
|
5081
3965
|
}
|
|
5082
3966
|
throw error;
|
|
@@ -5085,27 +3969,27 @@ Method: POST`);
|
|
|
5085
3969
|
__name(createTotpSetupConfirmCreate, "createTotpSetupConfirmCreate");
|
|
5086
3970
|
|
|
5087
3971
|
// src/_api/generated/cfg_totp/_utils/fetchers/totp__totp_verification.ts
|
|
5088
|
-
var
|
|
3972
|
+
var import_consola12 = require("consola");
|
|
5089
3973
|
async function createTotpVerifyCreate(data, client) {
|
|
5090
3974
|
const api = client || getAPIInstance3();
|
|
5091
3975
|
const response = await api.totp_verification.totpVerifyCreate(data);
|
|
5092
3976
|
try {
|
|
5093
3977
|
return VerifyResponseSchema.parse(response);
|
|
5094
3978
|
} catch (error) {
|
|
5095
|
-
|
|
5096
|
-
|
|
3979
|
+
import_consola12.consola.error("\u274C Zod Validation Failed");
|
|
3980
|
+
import_consola12.consola.box(`createTotpVerifyCreate
|
|
5097
3981
|
Path: /cfg/totp/verify/
|
|
5098
3982
|
Method: POST`);
|
|
5099
3983
|
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
5100
|
-
|
|
3984
|
+
import_consola12.consola.error("Validation Issues:");
|
|
5101
3985
|
error.issues.forEach((issue, index) => {
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
if (issue.expected)
|
|
5105
|
-
if (issue.received)
|
|
3986
|
+
import_consola12.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
3987
|
+
import_consola12.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
3988
|
+
if (issue.expected) import_consola12.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
3989
|
+
if (issue.received) import_consola12.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
5106
3990
|
});
|
|
5107
3991
|
}
|
|
5108
|
-
|
|
3992
|
+
import_consola12.consola.error("Response data:", response);
|
|
5109
3993
|
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
5110
3994
|
try {
|
|
5111
3995
|
const event = new CustomEvent("zod-validation-error", {
|
|
@@ -5122,7 +4006,7 @@ Method: POST`);
|
|
|
5122
4006
|
});
|
|
5123
4007
|
window.dispatchEvent(event);
|
|
5124
4008
|
} catch (eventError) {
|
|
5125
|
-
|
|
4009
|
+
import_consola12.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
5126
4010
|
}
|
|
5127
4011
|
}
|
|
5128
4012
|
throw error;
|
|
@@ -5135,20 +4019,20 @@ async function createTotpVerifyBackupCreate(data, client) {
|
|
|
5135
4019
|
try {
|
|
5136
4020
|
return VerifyResponseSchema.parse(response);
|
|
5137
4021
|
} catch (error) {
|
|
5138
|
-
|
|
5139
|
-
|
|
4022
|
+
import_consola12.consola.error("\u274C Zod Validation Failed");
|
|
4023
|
+
import_consola12.consola.box(`createTotpVerifyBackupCreate
|
|
5140
4024
|
Path: /cfg/totp/verify/backup/
|
|
5141
4025
|
Method: POST`);
|
|
5142
4026
|
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
5143
|
-
|
|
4027
|
+
import_consola12.consola.error("Validation Issues:");
|
|
5144
4028
|
error.issues.forEach((issue, index) => {
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
if (issue.expected)
|
|
5148
|
-
if (issue.received)
|
|
4029
|
+
import_consola12.consola.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
4030
|
+
import_consola12.consola.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
4031
|
+
if (issue.expected) import_consola12.consola.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
4032
|
+
if (issue.received) import_consola12.consola.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
5149
4033
|
});
|
|
5150
4034
|
}
|
|
5151
|
-
|
|
4035
|
+
import_consola12.consola.error("Response data:", response);
|
|
5152
4036
|
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
5153
4037
|
try {
|
|
5154
4038
|
const event = new CustomEvent("zod-validation-error", {
|
|
@@ -5165,7 +4049,7 @@ Method: POST`);
|
|
|
5165
4049
|
});
|
|
5166
4050
|
window.dispatchEvent(event);
|
|
5167
4051
|
} catch (eventError) {
|
|
5168
|
-
|
|
4052
|
+
import_consola12.consola.warn("Failed to dispatch validation error event:", eventError);
|
|
5169
4053
|
}
|
|
5170
4054
|
}
|
|
5171
4055
|
throw error;
|
|
@@ -5483,158 +4367,19 @@ __name(useCreateAccountsOtpVerifyCreate, "useCreateAccountsOtpVerifyCreate");
|
|
|
5483
4367
|
// src/_api/generated/cfg_centrifugo/_utils/hooks/index.ts
|
|
5484
4368
|
var hooks_exports = {};
|
|
5485
4369
|
__export(hooks_exports, {
|
|
5486
|
-
useCentrifugoAuthTokenRetrieve: () => useCentrifugoAuthTokenRetrieve
|
|
5487
|
-
useCentrifugoMonitorChannelsRetrieve: () => useCentrifugoMonitorChannelsRetrieve,
|
|
5488
|
-
useCentrifugoMonitorHealthRetrieve: () => useCentrifugoMonitorHealthRetrieve,
|
|
5489
|
-
useCentrifugoMonitorOverviewRetrieve: () => useCentrifugoMonitorOverviewRetrieve,
|
|
5490
|
-
useCentrifugoMonitorPublishesList: () => useCentrifugoMonitorPublishesList,
|
|
5491
|
-
useCentrifugoMonitorTimelineRetrieve: () => useCentrifugoMonitorTimelineRetrieve,
|
|
5492
|
-
useCreateCentrifugoServerAuthTokenCreate: () => useCreateCentrifugoServerAuthTokenCreate,
|
|
5493
|
-
useCreateCentrifugoServerChannelsCreate: () => useCreateCentrifugoServerChannelsCreate,
|
|
5494
|
-
useCreateCentrifugoServerHistoryCreate: () => useCreateCentrifugoServerHistoryCreate,
|
|
5495
|
-
useCreateCentrifugoServerInfoCreate: () => useCreateCentrifugoServerInfoCreate,
|
|
5496
|
-
useCreateCentrifugoServerPresenceCreate: () => useCreateCentrifugoServerPresenceCreate,
|
|
5497
|
-
useCreateCentrifugoServerPresenceStatsCreate: () => useCreateCentrifugoServerPresenceStatsCreate,
|
|
5498
|
-
useCreateCentrifugoTestingPublishTestCreate: () => useCreateCentrifugoTestingPublishTestCreate,
|
|
5499
|
-
useCreateCentrifugoTestingPublishWithLoggingCreate: () => useCreateCentrifugoTestingPublishWithLoggingCreate,
|
|
5500
|
-
useCreateCentrifugoTestingSendAckCreate: () => useCreateCentrifugoTestingSendAckCreate
|
|
4370
|
+
useCentrifugoAuthTokenRetrieve: () => useCentrifugoAuthTokenRetrieve
|
|
5501
4371
|
});
|
|
5502
4372
|
|
|
5503
|
-
// src/_api/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_admin_api.ts
|
|
5504
|
-
var import_swr7 = require("swr");
|
|
5505
|
-
function useCreateCentrifugoServerAuthTokenCreate() {
|
|
5506
|
-
const { mutate } = (0, import_swr7.useSWRConfig)();
|
|
5507
|
-
return async (client) => {
|
|
5508
|
-
const result = await createCentrifugoServerAuthTokenCreate(client);
|
|
5509
|
-
mutate("cfg-centrifugo-server-auth-token");
|
|
5510
|
-
return result;
|
|
5511
|
-
};
|
|
5512
|
-
}
|
|
5513
|
-
__name(useCreateCentrifugoServerAuthTokenCreate, "useCreateCentrifugoServerAuthTokenCreate");
|
|
5514
|
-
function useCreateCentrifugoServerChannelsCreate() {
|
|
5515
|
-
const { mutate } = (0, import_swr7.useSWRConfig)();
|
|
5516
|
-
return async (data, client) => {
|
|
5517
|
-
const result = await createCentrifugoServerChannelsCreate(data, client);
|
|
5518
|
-
mutate("cfg-centrifugo-server-channels");
|
|
5519
|
-
return result;
|
|
5520
|
-
};
|
|
5521
|
-
}
|
|
5522
|
-
__name(useCreateCentrifugoServerChannelsCreate, "useCreateCentrifugoServerChannelsCreate");
|
|
5523
|
-
function useCreateCentrifugoServerHistoryCreate() {
|
|
5524
|
-
const { mutate } = (0, import_swr7.useSWRConfig)();
|
|
5525
|
-
return async (data, client) => {
|
|
5526
|
-
const result = await createCentrifugoServerHistoryCreate(data, client);
|
|
5527
|
-
mutate("cfg-centrifugo-server-history");
|
|
5528
|
-
return result;
|
|
5529
|
-
};
|
|
5530
|
-
}
|
|
5531
|
-
__name(useCreateCentrifugoServerHistoryCreate, "useCreateCentrifugoServerHistoryCreate");
|
|
5532
|
-
function useCreateCentrifugoServerInfoCreate() {
|
|
5533
|
-
const { mutate } = (0, import_swr7.useSWRConfig)();
|
|
5534
|
-
return async (client) => {
|
|
5535
|
-
const result = await createCentrifugoServerInfoCreate(client);
|
|
5536
|
-
mutate("cfg-centrifugo-server-info");
|
|
5537
|
-
return result;
|
|
5538
|
-
};
|
|
5539
|
-
}
|
|
5540
|
-
__name(useCreateCentrifugoServerInfoCreate, "useCreateCentrifugoServerInfoCreate");
|
|
5541
|
-
function useCreateCentrifugoServerPresenceCreate() {
|
|
5542
|
-
const { mutate } = (0, import_swr7.useSWRConfig)();
|
|
5543
|
-
return async (data, client) => {
|
|
5544
|
-
const result = await createCentrifugoServerPresenceCreate(data, client);
|
|
5545
|
-
mutate("cfg-centrifugo-server-presence");
|
|
5546
|
-
return result;
|
|
5547
|
-
};
|
|
5548
|
-
}
|
|
5549
|
-
__name(useCreateCentrifugoServerPresenceCreate, "useCreateCentrifugoServerPresenceCreate");
|
|
5550
|
-
function useCreateCentrifugoServerPresenceStatsCreate() {
|
|
5551
|
-
const { mutate } = (0, import_swr7.useSWRConfig)();
|
|
5552
|
-
return async (data, client) => {
|
|
5553
|
-
const result = await createCentrifugoServerPresenceStatsCreate(data, client);
|
|
5554
|
-
mutate("cfg-centrifugo-server-presence-stats");
|
|
5555
|
-
return result;
|
|
5556
|
-
};
|
|
5557
|
-
}
|
|
5558
|
-
__name(useCreateCentrifugoServerPresenceStatsCreate, "useCreateCentrifugoServerPresenceStatsCreate");
|
|
5559
|
-
|
|
5560
4373
|
// src/_api/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_auth.ts
|
|
5561
|
-
var
|
|
4374
|
+
var import_swr7 = __toESM(require("swr"), 1);
|
|
5562
4375
|
function useCentrifugoAuthTokenRetrieve(client) {
|
|
5563
|
-
return (0,
|
|
4376
|
+
return (0, import_swr7.default)(
|
|
5564
4377
|
"cfg-centrifugo-auth-token",
|
|
5565
4378
|
() => getCentrifugoAuthTokenRetrieve(client)
|
|
5566
4379
|
);
|
|
5567
4380
|
}
|
|
5568
4381
|
__name(useCentrifugoAuthTokenRetrieve, "useCentrifugoAuthTokenRetrieve");
|
|
5569
4382
|
|
|
5570
|
-
// src/_api/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_monitoring.ts
|
|
5571
|
-
var import_swr9 = __toESM(require("swr"), 1);
|
|
5572
|
-
function useCentrifugoMonitorChannelsRetrieve(params, client) {
|
|
5573
|
-
return (0, import_swr9.default)(
|
|
5574
|
-
["cfg-centrifugo-monitor-channel", params],
|
|
5575
|
-
() => getCentrifugoMonitorChannelsRetrieve(params, client)
|
|
5576
|
-
);
|
|
5577
|
-
}
|
|
5578
|
-
__name(useCentrifugoMonitorChannelsRetrieve, "useCentrifugoMonitorChannelsRetrieve");
|
|
5579
|
-
function useCentrifugoMonitorHealthRetrieve(client) {
|
|
5580
|
-
return (0, import_swr9.default)(
|
|
5581
|
-
"cfg-centrifugo-monitor-health",
|
|
5582
|
-
() => getCentrifugoMonitorHealthRetrieve(client)
|
|
5583
|
-
);
|
|
5584
|
-
}
|
|
5585
|
-
__name(useCentrifugoMonitorHealthRetrieve, "useCentrifugoMonitorHealthRetrieve");
|
|
5586
|
-
function useCentrifugoMonitorOverviewRetrieve(params, client) {
|
|
5587
|
-
return (0, import_swr9.default)(
|
|
5588
|
-
["cfg-centrifugo-monitor-overview", params],
|
|
5589
|
-
() => getCentrifugoMonitorOverviewRetrieve(params, client)
|
|
5590
|
-
);
|
|
5591
|
-
}
|
|
5592
|
-
__name(useCentrifugoMonitorOverviewRetrieve, "useCentrifugoMonitorOverviewRetrieve");
|
|
5593
|
-
function useCentrifugoMonitorPublishesList(params, client) {
|
|
5594
|
-
return (0, import_swr9.default)(
|
|
5595
|
-
["cfg-centrifugo-monitor-publishes", params],
|
|
5596
|
-
() => getCentrifugoMonitorPublishesList(params, client)
|
|
5597
|
-
);
|
|
5598
|
-
}
|
|
5599
|
-
__name(useCentrifugoMonitorPublishesList, "useCentrifugoMonitorPublishesList");
|
|
5600
|
-
function useCentrifugoMonitorTimelineRetrieve(params, client) {
|
|
5601
|
-
return (0, import_swr9.default)(
|
|
5602
|
-
["cfg-centrifugo-monitor-timeline", params],
|
|
5603
|
-
() => getCentrifugoMonitorTimelineRetrieve(params, client)
|
|
5604
|
-
);
|
|
5605
|
-
}
|
|
5606
|
-
__name(useCentrifugoMonitorTimelineRetrieve, "useCentrifugoMonitorTimelineRetrieve");
|
|
5607
|
-
|
|
5608
|
-
// src/_api/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_testing.ts
|
|
5609
|
-
var import_swr10 = require("swr");
|
|
5610
|
-
function useCreateCentrifugoTestingPublishTestCreate() {
|
|
5611
|
-
const { mutate } = (0, import_swr10.useSWRConfig)();
|
|
5612
|
-
return async (data, client) => {
|
|
5613
|
-
const result = await createCentrifugoTestingPublishTestCreate(data, client);
|
|
5614
|
-
mutate("cfg-centrifugo-testing-publish-test");
|
|
5615
|
-
return result;
|
|
5616
|
-
};
|
|
5617
|
-
}
|
|
5618
|
-
__name(useCreateCentrifugoTestingPublishTestCreate, "useCreateCentrifugoTestingPublishTestCreate");
|
|
5619
|
-
function useCreateCentrifugoTestingPublishWithLoggingCreate() {
|
|
5620
|
-
const { mutate } = (0, import_swr10.useSWRConfig)();
|
|
5621
|
-
return async (data, client) => {
|
|
5622
|
-
const result = await createCentrifugoTestingPublishWithLoggingCreate(data, client);
|
|
5623
|
-
mutate("cfg-centrifugo-testing-publish-with-logging");
|
|
5624
|
-
return result;
|
|
5625
|
-
};
|
|
5626
|
-
}
|
|
5627
|
-
__name(useCreateCentrifugoTestingPublishWithLoggingCreate, "useCreateCentrifugoTestingPublishWithLoggingCreate");
|
|
5628
|
-
function useCreateCentrifugoTestingSendAckCreate() {
|
|
5629
|
-
const { mutate } = (0, import_swr10.useSWRConfig)();
|
|
5630
|
-
return async (data, client) => {
|
|
5631
|
-
const result = await createCentrifugoTestingSendAckCreate(data, client);
|
|
5632
|
-
mutate("cfg-centrifugo-testing-send-ack");
|
|
5633
|
-
return result;
|
|
5634
|
-
};
|
|
5635
|
-
}
|
|
5636
|
-
__name(useCreateCentrifugoTestingSendAckCreate, "useCreateCentrifugoTestingSendAckCreate");
|
|
5637
|
-
|
|
5638
4383
|
// src/_api/generated/cfg_totp/_utils/hooks/index.ts
|
|
5639
4384
|
var hooks_exports2 = {};
|
|
5640
4385
|
__export(hooks_exports2, {
|
|
@@ -5650,17 +4395,17 @@ __export(hooks_exports2, {
|
|
|
5650
4395
|
});
|
|
5651
4396
|
|
|
5652
4397
|
// src/_api/generated/cfg_totp/_utils/hooks/totp__backup_codes.ts
|
|
5653
|
-
var
|
|
5654
|
-
var
|
|
4398
|
+
var import_swr8 = __toESM(require("swr"), 1);
|
|
4399
|
+
var import_swr9 = require("swr");
|
|
5655
4400
|
function useTotpBackupCodesRetrieve(client) {
|
|
5656
|
-
return (0,
|
|
4401
|
+
return (0, import_swr8.default)(
|
|
5657
4402
|
"cfg-totp-backup-code",
|
|
5658
4403
|
() => getTotpBackupCodesRetrieve(client)
|
|
5659
4404
|
);
|
|
5660
4405
|
}
|
|
5661
4406
|
__name(useTotpBackupCodesRetrieve, "useTotpBackupCodesRetrieve");
|
|
5662
4407
|
function useCreateTotpBackupCodesRegenerateCreate() {
|
|
5663
|
-
const { mutate } = (0,
|
|
4408
|
+
const { mutate } = (0, import_swr9.useSWRConfig)();
|
|
5664
4409
|
return async (data, client) => {
|
|
5665
4410
|
const result = await createTotpBackupCodesRegenerateCreate(data, client);
|
|
5666
4411
|
mutate("cfg-totp-backup-codes-regenerate");
|
|
@@ -5670,17 +4415,17 @@ function useCreateTotpBackupCodesRegenerateCreate() {
|
|
|
5670
4415
|
__name(useCreateTotpBackupCodesRegenerateCreate, "useCreateTotpBackupCodesRegenerateCreate");
|
|
5671
4416
|
|
|
5672
4417
|
// src/_api/generated/cfg_totp/_utils/hooks/totp__totp_management.ts
|
|
5673
|
-
var
|
|
5674
|
-
var
|
|
4418
|
+
var import_swr10 = __toESM(require("swr"), 1);
|
|
4419
|
+
var import_swr11 = require("swr");
|
|
5675
4420
|
function useTotpDevicesList(params, client) {
|
|
5676
|
-
return (0,
|
|
4421
|
+
return (0, import_swr10.default)(
|
|
5677
4422
|
["cfg-totp-devices", params],
|
|
5678
4423
|
() => getTotpDevicesList(params, client)
|
|
5679
4424
|
);
|
|
5680
4425
|
}
|
|
5681
4426
|
__name(useTotpDevicesList, "useTotpDevicesList");
|
|
5682
4427
|
function useCreateTotpDisableCreate() {
|
|
5683
|
-
const { mutate } = (0,
|
|
4428
|
+
const { mutate } = (0, import_swr11.useSWRConfig)();
|
|
5684
4429
|
return async (data, client) => {
|
|
5685
4430
|
const result = await createTotpDisableCreate(data, client);
|
|
5686
4431
|
mutate("cfg-totp-disable");
|
|
@@ -5690,9 +4435,9 @@ function useCreateTotpDisableCreate() {
|
|
|
5690
4435
|
__name(useCreateTotpDisableCreate, "useCreateTotpDisableCreate");
|
|
5691
4436
|
|
|
5692
4437
|
// src/_api/generated/cfg_totp/_utils/hooks/totp__totp_setup.ts
|
|
5693
|
-
var
|
|
4438
|
+
var import_swr12 = require("swr");
|
|
5694
4439
|
function useCreateTotpSetupCreate() {
|
|
5695
|
-
const { mutate } = (0,
|
|
4440
|
+
const { mutate } = (0, import_swr12.useSWRConfig)();
|
|
5696
4441
|
return async (data, client) => {
|
|
5697
4442
|
const result = await createTotpSetupCreate(data, client);
|
|
5698
4443
|
mutate("cfg-totp-setup");
|
|
@@ -5701,7 +4446,7 @@ function useCreateTotpSetupCreate() {
|
|
|
5701
4446
|
}
|
|
5702
4447
|
__name(useCreateTotpSetupCreate, "useCreateTotpSetupCreate");
|
|
5703
4448
|
function useCreateTotpSetupConfirmCreate() {
|
|
5704
|
-
const { mutate } = (0,
|
|
4449
|
+
const { mutate } = (0, import_swr12.useSWRConfig)();
|
|
5705
4450
|
return async (data, client) => {
|
|
5706
4451
|
const result = await createTotpSetupConfirmCreate(data, client);
|
|
5707
4452
|
mutate("cfg-totp-setup-confirm");
|
|
@@ -5711,9 +4456,9 @@ function useCreateTotpSetupConfirmCreate() {
|
|
|
5711
4456
|
__name(useCreateTotpSetupConfirmCreate, "useCreateTotpSetupConfirmCreate");
|
|
5712
4457
|
|
|
5713
4458
|
// src/_api/generated/cfg_totp/_utils/hooks/totp__totp_verification.ts
|
|
5714
|
-
var
|
|
4459
|
+
var import_swr13 = require("swr");
|
|
5715
4460
|
function useCreateTotpVerifyCreate() {
|
|
5716
|
-
const { mutate } = (0,
|
|
4461
|
+
const { mutate } = (0, import_swr13.useSWRConfig)();
|
|
5717
4462
|
return async (data, client) => {
|
|
5718
4463
|
const result = await createTotpVerifyCreate(data, client);
|
|
5719
4464
|
mutate("cfg-totp-verify");
|
|
@@ -5722,7 +4467,7 @@ function useCreateTotpVerifyCreate() {
|
|
|
5722
4467
|
}
|
|
5723
4468
|
__name(useCreateTotpVerifyCreate, "useCreateTotpVerifyCreate");
|
|
5724
4469
|
function useCreateTotpVerifyBackupCreate() {
|
|
5725
|
-
const { mutate } = (0,
|
|
4470
|
+
const { mutate } = (0, import_swr13.useSWRConfig)();
|
|
5726
4471
|
return async (data, client) => {
|
|
5727
4472
|
const result = await createTotpVerifyBackupCreate(data, client);
|
|
5728
4473
|
mutate("cfg-totp-verify-backup");
|
|
@@ -5732,9 +4477,9 @@ function useCreateTotpVerifyBackupCreate() {
|
|
|
5732
4477
|
__name(useCreateTotpVerifyBackupCreate, "useCreateTotpVerifyBackupCreate");
|
|
5733
4478
|
|
|
5734
4479
|
// src/_api/generated/cfg_totp/_utils/hooks/totp.ts
|
|
5735
|
-
var
|
|
4480
|
+
var import_swr14 = require("swr");
|
|
5736
4481
|
function useDeleteTotpDevicesDestroy() {
|
|
5737
|
-
const { mutate } = (0,
|
|
4482
|
+
const { mutate } = (0, import_swr14.useSWRConfig)();
|
|
5738
4483
|
return async (id, client) => {
|
|
5739
4484
|
const result = await deleteTotpDevicesDestroy(id, client);
|
|
5740
4485
|
mutate("cfg-totp-devices");
|