@clossir-tech/ts-sdk 0.9.4 → 0.9.5
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 +2 -2
- package/esm/funcs/health-get-health-deep.d.ts +3 -4
- package/esm/funcs/health-get-health-deep.d.ts.map +1 -1
- package/esm/funcs/health-get-health-deep.js +12 -7
- package/esm/funcs/health-get-health-deep.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/operations/get-accounts-holdings-history.d.ts +1 -1
- package/esm/models/operations/get-accounts-holdings-history.d.ts.map +1 -1
- package/esm/models/operations/get-accounts-holdings-history.js +1 -1
- package/esm/models/operations/get-accounts-holdings-history.js.map +1 -1
- package/esm/models/operations/get-accounts-holdings.d.ts +1 -1
- package/esm/models/operations/get-accounts-holdings.d.ts.map +1 -1
- package/esm/models/operations/get-accounts-holdings.js +1 -1
- package/esm/models/operations/get-accounts-holdings.js.map +1 -1
- package/esm/models/operations/get-accounts-ledger.d.ts +1 -1
- package/esm/models/operations/get-accounts-ledger.d.ts.map +1 -1
- package/esm/models/operations/get-accounts-ledger.js +1 -1
- package/esm/models/operations/get-accounts-ledger.js.map +1 -1
- package/esm/models/operations/get-accounts-portfolio.d.ts +2 -2
- package/esm/models/operations/get-accounts-portfolio.d.ts.map +1 -1
- package/esm/models/operations/get-accounts-portfolio.js +2 -2
- package/esm/models/operations/get-accounts-portfolio.js.map +1 -1
- package/esm/models/operations/get-accounts-transactions.d.ts +1 -1
- package/esm/models/operations/get-accounts-transactions.d.ts.map +1 -1
- package/esm/models/operations/get-accounts-transactions.js +1 -1
- package/esm/models/operations/get-accounts-transactions.js.map +1 -1
- package/esm/models/operations/get-accounts-transfers.d.ts +1 -1
- package/esm/models/operations/get-accounts-transfers.d.ts.map +1 -1
- package/esm/models/operations/get-accounts-transfers.js +1 -1
- package/esm/models/operations/get-accounts-transfers.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-holdings-by-user-id.d.ts +1 -1
- package/esm/models/operations/get-orgs-by-org-id-holdings-by-user-id.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-holdings-by-user-id.js +1 -1
- package/esm/models/operations/get-orgs-by-org-id-holdings-by-user-id.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-holdings-history.d.ts +1 -1
- package/esm/models/operations/get-orgs-by-org-id-holdings-history.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-holdings-history.js +1 -1
- package/esm/models/operations/get-orgs-by-org-id-holdings-history.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-holdings.d.ts +1 -1
- package/esm/models/operations/get-orgs-by-org-id-holdings.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-holdings.js +1 -1
- package/esm/models/operations/get-orgs-by-org-id-holdings.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-ledger.d.ts +1 -1
- package/esm/models/operations/get-orgs-by-org-id-ledger.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-ledger.js +1 -1
- package/esm/models/operations/get-orgs-by-org-id-ledger.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-transfer-events.d.ts +1 -1
- package/esm/models/operations/get-orgs-by-org-id-transfer-events.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-transfer-events.js +1 -1
- package/esm/models/operations/get-orgs-by-org-id-transfer-events.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-users-by-user-id-balance-summary.d.ts +2 -2
- package/esm/models/operations/get-orgs-by-org-id-users-by-user-id-balance-summary.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-users-by-user-id-balance-summary.js +2 -2
- package/esm/models/operations/get-orgs-by-org-id-users-by-user-id-balance-summary.js.map +1 -1
- package/esm/models/operations/index.d.ts +0 -1
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +0 -1
- package/esm/models/operations/index.js.map +1 -1
- package/esm/sdk/health.d.ts +3 -3
- package/esm/sdk/health.d.ts.map +1 -1
- package/esm/sdk/health.js +2 -2
- package/esm/sdk/health.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +5 -5
- package/src/funcs/health-get-health-deep.ts +16 -10
- package/src/lib/config.ts +2 -2
- package/src/models/operations/get-accounts-holdings-history.ts +2 -2
- package/src/models/operations/get-accounts-holdings.ts +2 -2
- package/src/models/operations/get-accounts-ledger.ts +2 -2
- package/src/models/operations/get-accounts-portfolio.ts +4 -4
- package/src/models/operations/get-accounts-transactions.ts +2 -2
- package/src/models/operations/get-accounts-transfers.ts +2 -2
- package/src/models/operations/get-orgs-by-org-id-holdings-by-user-id.ts +2 -2
- package/src/models/operations/get-orgs-by-org-id-holdings-history.ts +2 -2
- package/src/models/operations/get-orgs-by-org-id-holdings.ts +2 -2
- package/src/models/operations/get-orgs-by-org-id-ledger.ts +2 -2
- package/src/models/operations/get-orgs-by-org-id-transfer-events.ts +2 -2
- package/src/models/operations/get-orgs-by-org-id-users-by-user-id-balance-summary.ts +4 -4
- package/src/models/operations/index.ts +0 -1
- package/src/sdk/health.ts +3 -3
- package/esm/models/operations/get-health-deep.d.ts +0 -59
- package/esm/models/operations/get-health-deep.d.ts.map +0 -1
- package/esm/models/operations/get-health-deep.js +0 -51
- package/esm/models/operations/get-health-deep.js.map +0 -1
- package/src/models/operations/get-health-deep.ts +0 -133
|
@@ -28,7 +28,7 @@ export type GetOrgsByOrgIdUsersByUserIdBalanceSummaryAsset = {
|
|
|
28
28
|
symbol?: string | null | undefined;
|
|
29
29
|
balance: string | number;
|
|
30
30
|
displayBalance: number;
|
|
31
|
-
valueUsd: number;
|
|
31
|
+
valueUsd: number | null;
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
/**
|
|
@@ -37,7 +37,7 @@ export type GetOrgsByOrgIdUsersByUserIdBalanceSummaryAsset = {
|
|
|
37
37
|
export type GetOrgsByOrgIdUsersByUserIdBalanceSummaryResponse = {
|
|
38
38
|
userId: string;
|
|
39
39
|
totalAssets: number;
|
|
40
|
-
totalValueUsd: number;
|
|
40
|
+
totalValueUsd: number | null;
|
|
41
41
|
assets: Array<GetOrgsByOrgIdUsersByUserIdBalanceSummaryAsset>;
|
|
42
42
|
};
|
|
43
43
|
|
|
@@ -126,7 +126,7 @@ export const GetOrgsByOrgIdUsersByUserIdBalanceSummaryAsset$inboundSchema:
|
|
|
126
126
|
symbol: z.optional(z.nullable(types.string())),
|
|
127
127
|
balance: smartUnion([types.string(), types.number()]),
|
|
128
128
|
display_balance: types.number(),
|
|
129
|
-
value_usd: types.number(),
|
|
129
|
+
value_usd: types.nullable(types.number()),
|
|
130
130
|
}),
|
|
131
131
|
z.transform((v) => {
|
|
132
132
|
return remap$(v, {
|
|
@@ -160,7 +160,7 @@ export const GetOrgsByOrgIdUsersByUserIdBalanceSummaryResponse$inboundSchema:
|
|
|
160
160
|
z.object({
|
|
161
161
|
user_id: types.string(),
|
|
162
162
|
total_assets: types.number(),
|
|
163
|
-
total_value_usd: types.number(),
|
|
163
|
+
total_value_usd: types.nullable(types.number()),
|
|
164
164
|
assets: z.array(z.lazy(() =>
|
|
165
165
|
GetOrgsByOrgIdUsersByUserIdBalanceSummaryAsset$inboundSchema
|
|
166
166
|
)),
|
|
@@ -44,7 +44,6 @@ export * from "./get-compliance-by-wallet.js";
|
|
|
44
44
|
export * from "./get-compliance-dossier-by-wallet-address.js";
|
|
45
45
|
export * from "./get-compliance-transfer-rejections.js";
|
|
46
46
|
export * from "./get-consent.js";
|
|
47
|
-
export * from "./get-health-deep.js";
|
|
48
47
|
export * from "./get-health.js";
|
|
49
48
|
export * from "./get-jurisdictions-by-alpha2.js";
|
|
50
49
|
export * from "./get-jurisdictions.js";
|
package/src/sdk/health.ts
CHANGED
|
@@ -25,14 +25,14 @@ export class Health extends ClientSDK {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
* Deep health check
|
|
28
|
+
* Deep health check (requires METRICS_TOKEN bearer)
|
|
29
29
|
*
|
|
30
30
|
* @remarks
|
|
31
|
-
* Returns detailed service connectivity status for database, cache, Kafka, and chain registry.
|
|
31
|
+
* Returns detailed service connectivity status for database, cache, Kafka, and chain registry. Requires bearer auth; returns 404 without valid token.
|
|
32
32
|
*/
|
|
33
33
|
async getHealthDeep(
|
|
34
34
|
options?: RequestOptions,
|
|
35
|
-
): Promise<
|
|
35
|
+
): Promise<void> {
|
|
36
36
|
return unwrapAsync(healthGetHealthDeep(
|
|
37
37
|
this,
|
|
38
38
|
options,
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4-mini";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
5
|
-
export declare const StatusDegraded: {
|
|
6
|
-
readonly Degraded: "degraded";
|
|
7
|
-
};
|
|
8
|
-
export type StatusDegraded = ClosedEnum<typeof StatusDegraded>;
|
|
9
|
-
export declare const GetHealthDeepStatusOk: {
|
|
10
|
-
readonly Ok: "ok";
|
|
11
|
-
};
|
|
12
|
-
export type GetHealthDeepStatusOk = ClosedEnum<typeof GetHealthDeepStatusOk>;
|
|
13
|
-
/**
|
|
14
|
-
* Overall system status
|
|
15
|
-
*/
|
|
16
|
-
export type GetHealthDeepStatusUnion = GetHealthDeepStatusOk | StatusDegraded;
|
|
17
|
-
/**
|
|
18
|
-
* Per-service connectivity status
|
|
19
|
-
*/
|
|
20
|
-
export type Services = {};
|
|
21
|
-
/**
|
|
22
|
-
* Response
|
|
23
|
-
*/
|
|
24
|
-
export type GetHealthDeepResponse = {
|
|
25
|
-
/**
|
|
26
|
-
* Overall system status
|
|
27
|
-
*/
|
|
28
|
-
status: GetHealthDeepStatusOk | StatusDegraded;
|
|
29
|
-
/**
|
|
30
|
-
* API version
|
|
31
|
-
*/
|
|
32
|
-
version: string;
|
|
33
|
-
/**
|
|
34
|
-
* Current network mode (testnet/mainnet)
|
|
35
|
-
*/
|
|
36
|
-
networkMode: string;
|
|
37
|
-
/**
|
|
38
|
-
* Current ISO 8601 timestamp
|
|
39
|
-
*/
|
|
40
|
-
timestamp: string;
|
|
41
|
-
/**
|
|
42
|
-
* Per-service connectivity status
|
|
43
|
-
*/
|
|
44
|
-
services: Services;
|
|
45
|
-
};
|
|
46
|
-
/** @internal */
|
|
47
|
-
export declare const StatusDegraded$inboundSchema: z.ZodMiniEnum<typeof StatusDegraded>;
|
|
48
|
-
/** @internal */
|
|
49
|
-
export declare const GetHealthDeepStatusOk$inboundSchema: z.ZodMiniEnum<typeof GetHealthDeepStatusOk>;
|
|
50
|
-
/** @internal */
|
|
51
|
-
export declare const GetHealthDeepStatusUnion$inboundSchema: z.ZodMiniType<GetHealthDeepStatusUnion, unknown>;
|
|
52
|
-
export declare function getHealthDeepStatusUnionFromJSON(jsonString: string): SafeParseResult<GetHealthDeepStatusUnion, SDKValidationError>;
|
|
53
|
-
/** @internal */
|
|
54
|
-
export declare const Services$inboundSchema: z.ZodMiniType<Services, unknown>;
|
|
55
|
-
export declare function servicesFromJSON(jsonString: string): SafeParseResult<Services, SDKValidationError>;
|
|
56
|
-
/** @internal */
|
|
57
|
-
export declare const GetHealthDeepResponse$inboundSchema: z.ZodMiniType<GetHealthDeepResponse, unknown>;
|
|
58
|
-
export declare function getHealthDeepResponseFromJSON(jsonString: string): SafeParseResult<GetHealthDeepResponse, SDKValidationError>;
|
|
59
|
-
//# sourceMappingURL=get-health-deep.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-health-deep.d.ts","sourceRoot":"","sources":["../../../src/models/operations/get-health-deep.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE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9B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAM/C;AAED,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,WAAW,CAC7D,qBAAqB,EACrB,OAAO,CAiBR,CAAC;AAEF,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v4-mini";
|
|
5
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import * as types from "../../types/primitives.js";
|
|
8
|
-
import { smartUnion } from "../../types/smart-union.js";
|
|
9
|
-
export const StatusDegraded = {
|
|
10
|
-
Degraded: "degraded",
|
|
11
|
-
};
|
|
12
|
-
export const GetHealthDeepStatusOk = {
|
|
13
|
-
Ok: "ok",
|
|
14
|
-
};
|
|
15
|
-
/** @internal */
|
|
16
|
-
export const StatusDegraded$inboundSchema = z.enum(StatusDegraded);
|
|
17
|
-
/** @internal */
|
|
18
|
-
export const GetHealthDeepStatusOk$inboundSchema = z.enum(GetHealthDeepStatusOk);
|
|
19
|
-
/** @internal */
|
|
20
|
-
export const GetHealthDeepStatusUnion$inboundSchema = smartUnion([
|
|
21
|
-
GetHealthDeepStatusOk$inboundSchema,
|
|
22
|
-
StatusDegraded$inboundSchema,
|
|
23
|
-
]);
|
|
24
|
-
export function getHealthDeepStatusUnionFromJSON(jsonString) {
|
|
25
|
-
return safeParse(jsonString, (x) => GetHealthDeepStatusUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetHealthDeepStatusUnion' from JSON`);
|
|
26
|
-
}
|
|
27
|
-
/** @internal */
|
|
28
|
-
export const Services$inboundSchema = z
|
|
29
|
-
.object({});
|
|
30
|
-
export function servicesFromJSON(jsonString) {
|
|
31
|
-
return safeParse(jsonString, (x) => Services$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Services' from JSON`);
|
|
32
|
-
}
|
|
33
|
-
/** @internal */
|
|
34
|
-
export const GetHealthDeepResponse$inboundSchema = z.pipe(z.object({
|
|
35
|
-
status: smartUnion([
|
|
36
|
-
GetHealthDeepStatusOk$inboundSchema,
|
|
37
|
-
StatusDegraded$inboundSchema,
|
|
38
|
-
]),
|
|
39
|
-
version: types.string(),
|
|
40
|
-
network_mode: types.string(),
|
|
41
|
-
timestamp: types.string(),
|
|
42
|
-
services: z.lazy(() => Services$inboundSchema),
|
|
43
|
-
}), z.transform((v) => {
|
|
44
|
-
return remap$(v, {
|
|
45
|
-
"network_mode": "networkMode",
|
|
46
|
-
});
|
|
47
|
-
}));
|
|
48
|
-
export function getHealthDeepResponseFromJSON(jsonString) {
|
|
49
|
-
return safeParse(jsonString, (x) => GetHealthDeepResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetHealthDeepResponse' from JSON`);
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=get-health-deep.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-health-deep.js","sourceRoot":"","sources":["../../../src/models/operations/get-health-deep.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAGxD,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,QAAQ,EAAE,UAAU;CACZ,CAAC;AAGX,MAAM,CAAC,MAAM,qBAA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,EAAE,CAAC,sBAAsB,CAAC;CAC/C,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;KAC9B,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,6BAA6B,CAC3C,UAAkB,EAC0C;IAC5D,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AAAA,CACH"}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v4-mini";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import * as types from "../../types/primitives.js";
|
|
11
|
-
import { smartUnion } from "../../types/smart-union.js";
|
|
12
|
-
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
13
|
-
|
|
14
|
-
export const StatusDegraded = {
|
|
15
|
-
Degraded: "degraded",
|
|
16
|
-
} as const;
|
|
17
|
-
export type StatusDegraded = ClosedEnum<typeof StatusDegraded>;
|
|
18
|
-
|
|
19
|
-
export const GetHealthDeepStatusOk = {
|
|
20
|
-
Ok: "ok",
|
|
21
|
-
} as const;
|
|
22
|
-
export type GetHealthDeepStatusOk = ClosedEnum<typeof GetHealthDeepStatusOk>;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Overall system status
|
|
26
|
-
*/
|
|
27
|
-
export type GetHealthDeepStatusUnion = GetHealthDeepStatusOk | StatusDegraded;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Per-service connectivity status
|
|
31
|
-
*/
|
|
32
|
-
export type Services = {};
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Response
|
|
36
|
-
*/
|
|
37
|
-
export type GetHealthDeepResponse = {
|
|
38
|
-
/**
|
|
39
|
-
* Overall system status
|
|
40
|
-
*/
|
|
41
|
-
status: GetHealthDeepStatusOk | StatusDegraded;
|
|
42
|
-
/**
|
|
43
|
-
* API version
|
|
44
|
-
*/
|
|
45
|
-
version: string;
|
|
46
|
-
/**
|
|
47
|
-
* Current network mode (testnet/mainnet)
|
|
48
|
-
*/
|
|
49
|
-
networkMode: string;
|
|
50
|
-
/**
|
|
51
|
-
* Current ISO 8601 timestamp
|
|
52
|
-
*/
|
|
53
|
-
timestamp: string;
|
|
54
|
-
/**
|
|
55
|
-
* Per-service connectivity status
|
|
56
|
-
*/
|
|
57
|
-
services: Services;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
/** @internal */
|
|
61
|
-
export const StatusDegraded$inboundSchema: z.ZodMiniEnum<
|
|
62
|
-
typeof StatusDegraded
|
|
63
|
-
> = z.enum(StatusDegraded);
|
|
64
|
-
|
|
65
|
-
/** @internal */
|
|
66
|
-
export const GetHealthDeepStatusOk$inboundSchema: z.ZodMiniEnum<
|
|
67
|
-
typeof GetHealthDeepStatusOk
|
|
68
|
-
> = z.enum(GetHealthDeepStatusOk);
|
|
69
|
-
|
|
70
|
-
/** @internal */
|
|
71
|
-
export const GetHealthDeepStatusUnion$inboundSchema: z.ZodMiniType<
|
|
72
|
-
GetHealthDeepStatusUnion,
|
|
73
|
-
unknown
|
|
74
|
-
> = smartUnion([
|
|
75
|
-
GetHealthDeepStatusOk$inboundSchema,
|
|
76
|
-
StatusDegraded$inboundSchema,
|
|
77
|
-
]);
|
|
78
|
-
|
|
79
|
-
export function getHealthDeepStatusUnionFromJSON(
|
|
80
|
-
jsonString: string,
|
|
81
|
-
): SafeParseResult<GetHealthDeepStatusUnion, SDKValidationError> {
|
|
82
|
-
return safeParse(
|
|
83
|
-
jsonString,
|
|
84
|
-
(x) => GetHealthDeepStatusUnion$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
-
`Failed to parse 'GetHealthDeepStatusUnion' from JSON`,
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/** @internal */
|
|
90
|
-
export const Services$inboundSchema: z.ZodMiniType<Services, unknown> = z
|
|
91
|
-
.object({});
|
|
92
|
-
|
|
93
|
-
export function servicesFromJSON(
|
|
94
|
-
jsonString: string,
|
|
95
|
-
): SafeParseResult<Services, SDKValidationError> {
|
|
96
|
-
return safeParse(
|
|
97
|
-
jsonString,
|
|
98
|
-
(x) => Services$inboundSchema.parse(JSON.parse(x)),
|
|
99
|
-
`Failed to parse 'Services' from JSON`,
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/** @internal */
|
|
104
|
-
export const GetHealthDeepResponse$inboundSchema: z.ZodMiniType<
|
|
105
|
-
GetHealthDeepResponse,
|
|
106
|
-
unknown
|
|
107
|
-
> = z.pipe(
|
|
108
|
-
z.object({
|
|
109
|
-
status: smartUnion([
|
|
110
|
-
GetHealthDeepStatusOk$inboundSchema,
|
|
111
|
-
StatusDegraded$inboundSchema,
|
|
112
|
-
]),
|
|
113
|
-
version: types.string(),
|
|
114
|
-
network_mode: types.string(),
|
|
115
|
-
timestamp: types.string(),
|
|
116
|
-
services: z.lazy(() => Services$inboundSchema),
|
|
117
|
-
}),
|
|
118
|
-
z.transform((v) => {
|
|
119
|
-
return remap$(v, {
|
|
120
|
-
"network_mode": "networkMode",
|
|
121
|
-
});
|
|
122
|
-
}),
|
|
123
|
-
);
|
|
124
|
-
|
|
125
|
-
export function getHealthDeepResponseFromJSON(
|
|
126
|
-
jsonString: string,
|
|
127
|
-
): SafeParseResult<GetHealthDeepResponse, SDKValidationError> {
|
|
128
|
-
return safeParse(
|
|
129
|
-
jsonString,
|
|
130
|
-
(x) => GetHealthDeepResponse$inboundSchema.parse(JSON.parse(x)),
|
|
131
|
-
`Failed to parse 'GetHealthDeepResponse' from JSON`,
|
|
132
|
-
);
|
|
133
|
-
}
|