@clossir-tech/ts-sdk 0.9.4 → 0.9.6

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.
Files changed (95) hide show
  1. package/README.md +2 -2
  2. package/esm/funcs/health-get-health-deep.d.ts +3 -4
  3. package/esm/funcs/health-get-health-deep.d.ts.map +1 -1
  4. package/esm/funcs/health-get-health-deep.js +12 -7
  5. package/esm/funcs/health-get-health-deep.js.map +1 -1
  6. package/esm/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.d.ts +1 -1
  7. package/esm/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.js +2 -4
  8. package/esm/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.js.map +1 -1
  9. package/esm/lib/config.d.ts +2 -2
  10. package/esm/lib/config.js +2 -2
  11. package/esm/models/operations/get-accounts-holdings-history.d.ts +1 -1
  12. package/esm/models/operations/get-accounts-holdings-history.d.ts.map +1 -1
  13. package/esm/models/operations/get-accounts-holdings-history.js +1 -1
  14. package/esm/models/operations/get-accounts-holdings-history.js.map +1 -1
  15. package/esm/models/operations/get-accounts-holdings.d.ts +1 -1
  16. package/esm/models/operations/get-accounts-holdings.d.ts.map +1 -1
  17. package/esm/models/operations/get-accounts-holdings.js +1 -1
  18. package/esm/models/operations/get-accounts-holdings.js.map +1 -1
  19. package/esm/models/operations/get-accounts-ledger.d.ts +1 -1
  20. package/esm/models/operations/get-accounts-ledger.d.ts.map +1 -1
  21. package/esm/models/operations/get-accounts-ledger.js +1 -1
  22. package/esm/models/operations/get-accounts-ledger.js.map +1 -1
  23. package/esm/models/operations/get-accounts-portfolio.d.ts +2 -2
  24. package/esm/models/operations/get-accounts-portfolio.d.ts.map +1 -1
  25. package/esm/models/operations/get-accounts-portfolio.js +2 -2
  26. package/esm/models/operations/get-accounts-portfolio.js.map +1 -1
  27. package/esm/models/operations/get-accounts-transactions.d.ts +1 -1
  28. package/esm/models/operations/get-accounts-transactions.d.ts.map +1 -1
  29. package/esm/models/operations/get-accounts-transactions.js +1 -1
  30. package/esm/models/operations/get-accounts-transactions.js.map +1 -1
  31. package/esm/models/operations/get-accounts-transfers.d.ts +1 -1
  32. package/esm/models/operations/get-accounts-transfers.d.ts.map +1 -1
  33. package/esm/models/operations/get-accounts-transfers.js +1 -1
  34. package/esm/models/operations/get-accounts-transfers.js.map +1 -1
  35. package/esm/models/operations/get-orgs-by-org-id-holdings-by-user-id.d.ts +1 -1
  36. package/esm/models/operations/get-orgs-by-org-id-holdings-by-user-id.d.ts.map +1 -1
  37. package/esm/models/operations/get-orgs-by-org-id-holdings-by-user-id.js +1 -1
  38. package/esm/models/operations/get-orgs-by-org-id-holdings-by-user-id.js.map +1 -1
  39. package/esm/models/operations/get-orgs-by-org-id-holdings-history.d.ts +1 -1
  40. package/esm/models/operations/get-orgs-by-org-id-holdings-history.d.ts.map +1 -1
  41. package/esm/models/operations/get-orgs-by-org-id-holdings-history.js +1 -1
  42. package/esm/models/operations/get-orgs-by-org-id-holdings-history.js.map +1 -1
  43. package/esm/models/operations/get-orgs-by-org-id-holdings.d.ts +1 -1
  44. package/esm/models/operations/get-orgs-by-org-id-holdings.d.ts.map +1 -1
  45. package/esm/models/operations/get-orgs-by-org-id-holdings.js +1 -1
  46. package/esm/models/operations/get-orgs-by-org-id-holdings.js.map +1 -1
  47. package/esm/models/operations/get-orgs-by-org-id-ledger.d.ts +1 -1
  48. package/esm/models/operations/get-orgs-by-org-id-ledger.d.ts.map +1 -1
  49. package/esm/models/operations/get-orgs-by-org-id-ledger.js +1 -1
  50. package/esm/models/operations/get-orgs-by-org-id-ledger.js.map +1 -1
  51. package/esm/models/operations/get-orgs-by-org-id-transfer-events.d.ts +1 -1
  52. package/esm/models/operations/get-orgs-by-org-id-transfer-events.d.ts.map +1 -1
  53. package/esm/models/operations/get-orgs-by-org-id-transfer-events.js +1 -1
  54. package/esm/models/operations/get-orgs-by-org-id-transfer-events.js.map +1 -1
  55. package/esm/models/operations/get-orgs-by-org-id-users-by-user-id-balance-summary.d.ts +2 -2
  56. package/esm/models/operations/get-orgs-by-org-id-users-by-user-id-balance-summary.d.ts.map +1 -1
  57. package/esm/models/operations/get-orgs-by-org-id-users-by-user-id-balance-summary.js +2 -2
  58. package/esm/models/operations/get-orgs-by-org-id-users-by-user-id-balance-summary.js.map +1 -1
  59. package/esm/models/operations/index.d.ts +0 -1
  60. package/esm/models/operations/index.d.ts.map +1 -1
  61. package/esm/models/operations/index.js +0 -1
  62. package/esm/models/operations/index.js.map +1 -1
  63. package/esm/models/operations/post-orgs-by-org-id-members-by-user-id-attest.d.ts +1 -1
  64. package/esm/sdk/health.d.ts +3 -3
  65. package/esm/sdk/health.d.ts.map +1 -1
  66. package/esm/sdk/health.js +2 -2
  67. package/esm/sdk/health.js.map +1 -1
  68. package/esm/sdk/organizations.d.ts +1 -1
  69. package/esm/sdk/organizations.js +1 -1
  70. package/jsr.json +1 -1
  71. package/package.json +5 -5
  72. package/src/funcs/health-get-health-deep.ts +16 -10
  73. package/src/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.ts +6 -4
  74. package/src/lib/config.ts +2 -2
  75. package/src/models/operations/get-accounts-holdings-history.ts +2 -2
  76. package/src/models/operations/get-accounts-holdings.ts +2 -2
  77. package/src/models/operations/get-accounts-ledger.ts +2 -2
  78. package/src/models/operations/get-accounts-portfolio.ts +4 -4
  79. package/src/models/operations/get-accounts-transactions.ts +2 -2
  80. package/src/models/operations/get-accounts-transfers.ts +2 -2
  81. package/src/models/operations/get-orgs-by-org-id-holdings-by-user-id.ts +2 -2
  82. package/src/models/operations/get-orgs-by-org-id-holdings-history.ts +2 -2
  83. package/src/models/operations/get-orgs-by-org-id-holdings.ts +2 -2
  84. package/src/models/operations/get-orgs-by-org-id-ledger.ts +2 -2
  85. package/src/models/operations/get-orgs-by-org-id-transfer-events.ts +2 -2
  86. package/src/models/operations/get-orgs-by-org-id-users-by-user-id-balance-summary.ts +4 -4
  87. package/src/models/operations/index.ts +0 -1
  88. package/src/models/operations/post-orgs-by-org-id-members-by-user-id-attest.ts +1 -1
  89. package/src/sdk/health.ts +3 -3
  90. package/src/sdk/organizations.ts +1 -1
  91. package/esm/models/operations/get-health-deep.d.ts +0 -59
  92. package/esm/models/operations/get-health-deep.d.ts.map +0 -1
  93. package/esm/models/operations/get-health-deep.js +0 -51
  94. package/esm/models/operations/get-health-deep.js.map +0 -1
  95. package/src/models/operations/get-health-deep.ts +0 -133
@@ -31,7 +31,7 @@ export type Transaction = {
31
31
  tokenDecimals: number;
32
32
  tokenSymbol: string;
33
33
  direction: number;
34
- usdValue: number;
34
+ usdValue: number | null;
35
35
  marketId: string;
36
36
  orderId: string;
37
37
  fillId: string;
@@ -93,7 +93,7 @@ export const Transaction$inboundSchema: z.ZodMiniType<Transaction, unknown> = z
93
93
  tokenDecimals: types.number(),
94
94
  tokenSymbol: z._default(types.string(), ""),
95
95
  direction: types.number(),
96
- usdValue: z._default(types.number(), 0),
96
+ usdValue: types.nullable(types.number()),
97
97
  marketId: z._default(types.string(), ""),
98
98
  orderId: z._default(types.string(), ""),
99
99
  fillId: z._default(types.string(), ""),
@@ -31,7 +31,7 @@ export type GetAccountsTransfersTransfer = {
31
31
  tokenDecimals: number;
32
32
  tokenSymbol: string;
33
33
  direction: number;
34
- usdValue: number;
34
+ usdValue: number | null;
35
35
  marketId: string;
36
36
  orderId: string;
37
37
  fillId: string;
@@ -95,7 +95,7 @@ export const GetAccountsTransfersTransfer$inboundSchema: z.ZodMiniType<
95
95
  tokenDecimals: types.number(),
96
96
  tokenSymbol: z._default(types.string(), ""),
97
97
  direction: types.number(),
98
- usdValue: z._default(types.number(), 0),
98
+ usdValue: types.nullable(types.number()),
99
99
  marketId: z._default(types.string(), ""),
100
100
  orderId: z._default(types.string(), ""),
101
101
  fillId: z._default(types.string(), ""),
@@ -23,7 +23,7 @@ export type GetOrgsByOrgIdHoldingsByUserIdHolding = {
23
23
  amountRaw: string;
24
24
  amountDecimal: string;
25
25
  tokenDecimals: number;
26
- usdValue: number;
26
+ usdValue: number | null;
27
27
  lastTxHash: string;
28
28
  lastUpdated: string;
29
29
  };
@@ -76,7 +76,7 @@ export const GetOrgsByOrgIdHoldingsByUserIdHolding$inboundSchema: z.ZodMiniType<
76
76
  amountRaw: types.string(),
77
77
  amountDecimal: types.string(),
78
78
  tokenDecimals: types.number(),
79
- usdValue: z._default(types.number(), 0),
79
+ usdValue: types.nullable(types.number()),
80
80
  lastTxHash: types.string(),
81
81
  lastUpdated: types.string(),
82
82
  });
@@ -26,7 +26,7 @@ export type GetOrgsByOrgIdHoldingsHistoryHolding = {
26
26
  amountRaw: string;
27
27
  amountDecimal: string;
28
28
  tokenDecimals: number;
29
- usdValue: number;
29
+ usdValue: number | null;
30
30
  lastTxHash: string;
31
31
  lastUpdated: string;
32
32
  };
@@ -84,7 +84,7 @@ export const GetOrgsByOrgIdHoldingsHistoryHolding$inboundSchema: z.ZodMiniType<
84
84
  amountRaw: types.string(),
85
85
  amountDecimal: types.string(),
86
86
  tokenDecimals: types.number(),
87
- usdValue: z._default(types.number(), 0),
87
+ usdValue: types.nullable(types.number()),
88
88
  lastTxHash: types.string(),
89
89
  lastUpdated: types.string(),
90
90
  });
@@ -24,7 +24,7 @@ export type GetOrgsByOrgIdHoldingsHolding = {
24
24
  amountRaw: string;
25
25
  amountDecimal: string;
26
26
  tokenDecimals: number;
27
- usdValue: number;
27
+ usdValue: number | null;
28
28
  lastTxHash: string;
29
29
  lastUpdated: string;
30
30
  };
@@ -78,7 +78,7 @@ export const GetOrgsByOrgIdHoldingsHolding$inboundSchema: z.ZodMiniType<
78
78
  amountRaw: types.string(),
79
79
  amountDecimal: types.string(),
80
80
  tokenDecimals: types.number(),
81
- usdValue: z._default(types.number(), 0),
81
+ usdValue: types.nullable(types.number()),
82
82
  lastTxHash: types.string(),
83
83
  lastUpdated: types.string(),
84
84
  });
@@ -34,7 +34,7 @@ export type GetOrgsByOrgIdLedgerEntry = {
34
34
  tokenDecimals: number;
35
35
  tokenSymbol: string;
36
36
  direction: number;
37
- usdValue: number;
37
+ usdValue: number | null;
38
38
  marketId: string;
39
39
  orderId: string;
40
40
  fillId: string;
@@ -105,7 +105,7 @@ export const GetOrgsByOrgIdLedgerEntry$inboundSchema: z.ZodMiniType<
105
105
  tokenDecimals: types.number(),
106
106
  tokenSymbol: z._default(types.string(), ""),
107
107
  direction: types.number(),
108
- usdValue: z._default(types.number(), 0),
108
+ usdValue: types.nullable(types.number()),
109
109
  marketId: z._default(types.string(), ""),
110
110
  orderId: z._default(types.string(), ""),
111
111
  fillId: z._default(types.string(), ""),
@@ -32,7 +32,7 @@ export type GetOrgsByOrgIdTransferEventsTransfer = {
32
32
  tokenDecimals: number;
33
33
  tokenSymbol: string;
34
34
  direction: number;
35
- usdValue: number;
35
+ usdValue: number | null;
36
36
  marketId: string;
37
37
  orderId: string;
38
38
  fillId: string;
@@ -98,7 +98,7 @@ export const GetOrgsByOrgIdTransferEventsTransfer$inboundSchema: z.ZodMiniType<
98
98
  tokenDecimals: types.number(),
99
99
  tokenSymbol: z._default(types.string(), ""),
100
100
  direction: types.number(),
101
- usdValue: z._default(types.number(), 0),
101
+ usdValue: types.nullable(types.number()),
102
102
  marketId: z._default(types.string(), ""),
103
103
  orderId: z._default(types.string(), ""),
104
104
  fillId: z._default(types.string(), ""),
@@ -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";
@@ -32,7 +32,7 @@ export type PostOrgsByOrgIdMembersByUserIdAttestRequestBody = {
32
32
  */
33
33
  countryCode?: string | undefined;
34
34
  /**
35
- * Attestation expiry (ISO 8601)
35
+ * Attestation expiry, an ISO 8601 date-time strictly in the future (400 otherwise). Also sent to the chain.
36
36
  */
37
37
  expiresAt?: string | undefined;
38
38
  /**
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. Used by smoke tests and monitoring.
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<operations.GetHealthDeepResponse> {
35
+ ): Promise<void> {
36
36
  return unwrapAsync(healthGetHealthDeep(
37
37
  this,
38
38
  options,
@@ -646,7 +646,7 @@ export class Organizations extends ClientSDK {
646
646
  * Attest member wallets on behalf of org
647
647
  *
648
648
  * @remarks
649
- * Triggers an attestation for one or more of a member's wallets. The organization acts as the attesting authority (e.g., a bank completing KYC for a client). If walletAddresses is omitted, all user wallets are attested. If chainEid is omitted, attestations are created on all chains where wallets exist. Returns 202 Accepted — attestations are processed asynchronously via Kafka workers. Requires staff role (admin, operator, compliance_officer) or API key with write:attestations permission.
649
+ * Triggers an attestation for one or more of a member's wallets. The organization acts as the attesting authority (e.g., a bank completing KYC for a client). If walletAddresses is omitted, all user wallets are attested. If chainEid is omitted, attestations are created on all chains where wallets exist. Returns 202 Accepted — attestations are processed asynchronously via Kafka workers. Returns 409 attestation_in_force, and writes nothing, if any selected wallet already holds an attestation on that chain that is pending, submitting or active; a new attestation can be issued once it has failed, expired or been revoked. Returns 409 attestation_reinstate_unsupported for a revoked attestation on Solana. expiresAt, when given, must be a future ISO 8601 date-time (400 otherwise). Requires staff role (admin, operator, compliance_officer) or API key with write:attestations permission.
650
650
  */
651
651
  async postOrgsByOrgIdMembersByUserIdAttest(
652
652
  security: operations.PostOrgsByOrgIdMembersByUserIdAttestSecurity,
@@ -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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B,CAC9B,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,qBAAqB,GAAG;IACnC,EAAE,EAAE,IAAI;CACA,CAAC;AAuCX,gBAAgB;AAChB,MAAM,CAAC,MAAM,4BAA4B,GAErC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;AAE3B,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAE5C,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;AAElC,gBAAgB;AAChB,MAAM,CAAC,MAAM,sCAAsC,GAG/C,UAAU,CAAC;IACb,mCAAmC;IACnC,4BAA4B;CAC7B,CAAC,CAAC;AAEH,MAAM,UAAU,gCAAgC,CAC9C,UAAkB,EAC6C;IAC/D,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CA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@@
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
- }