@clossir-tech/ts-sdk 0.9.1 → 0.9.2
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/esm/funcs/distributions-get-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id.d.ts +2 -1
- package/esm/funcs/distributions-get-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id.d.ts.map +1 -1
- package/esm/funcs/distributions-get-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id.js +3 -2
- package/esm/funcs/distributions-get-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id.js.map +1 -1
- package/esm/funcs/distributions-get-orgs-by-org-id-assets-by-asset-id-distributions.d.ts +2 -1
- package/esm/funcs/distributions-get-orgs-by-org-id-assets-by-asset-id-distributions.d.ts.map +1 -1
- package/esm/funcs/distributions-get-orgs-by-org-id-assets-by-asset-id-distributions.js +3 -2
- package/esm/funcs/distributions-get-orgs-by-org-id-assets-by-asset-id-distributions.js.map +1 -1
- package/esm/funcs/fees-get-orgs-by-org-id-fee-distributions.d.ts +2 -1
- package/esm/funcs/fees-get-orgs-by-org-id-fee-distributions.d.ts.map +1 -1
- package/esm/funcs/fees-get-orgs-by-org-id-fee-distributions.js +2 -2
- package/esm/funcs/fees-get-orgs-by-org-id-fee-distributions.js.map +1 -1
- package/esm/funcs/fees-get-orgs-by-org-id-fee-splits.d.ts +2 -1
- package/esm/funcs/fees-get-orgs-by-org-id-fee-splits.d.ts.map +1 -1
- package/esm/funcs/fees-get-orgs-by-org-id-fee-splits.js +2 -2
- package/esm/funcs/fees-get-orgs-by-org-id-fee-splits.js.map +1 -1
- package/esm/funcs/nav-get-orgs-by-org-id-assets-by-asset-id-nav-history.d.ts +2 -1
- package/esm/funcs/nav-get-orgs-by-org-id-assets-by-asset-id-nav-history.d.ts.map +1 -1
- package/esm/funcs/nav-get-orgs-by-org-id-assets-by-asset-id-nav-history.js +2 -2
- package/esm/funcs/nav-get-orgs-by-org-id-assets-by-asset-id-nav-history.js.map +1 -1
- package/esm/funcs/nav-get-orgs-by-org-id-assets-by-asset-id-nav-latest.d.ts +2 -1
- package/esm/funcs/nav-get-orgs-by-org-id-assets-by-asset-id-nav-latest.d.ts.map +1 -1
- package/esm/funcs/nav-get-orgs-by-org-id-assets-by-asset-id-nav-latest.js +2 -2
- package/esm/funcs/nav-get-orgs-by-org-id-assets-by-asset-id-nav-latest.js.map +1 -1
- package/esm/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault-epochs.d.ts +2 -1
- package/esm/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault-epochs.d.ts.map +1 -1
- package/esm/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault-epochs.js +2 -2
- package/esm/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault-epochs.js.map +1 -1
- package/esm/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault-status.d.ts +2 -1
- package/esm/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault-status.d.ts.map +1 -1
- package/esm/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault-status.js +2 -2
- package/esm/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault-status.js.map +1 -1
- package/esm/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault.d.ts +2 -1
- package/esm/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault.d.ts.map +1 -1
- package/esm/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault.js +2 -2
- package/esm/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id.d.ts +59 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id.js +84 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-distributions.d.ts +68 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-distributions.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-distributions.js +86 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-distributions.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-nav-history.d.ts +54 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-nav-history.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-nav-history.js +59 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-nav-history.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-nav-latest.d.ts +42 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-nav-latest.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-nav-latest.js +56 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-nav-latest.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault-epochs.d.ts +77 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault-epochs.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault-epochs.js +92 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault-epochs.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault-status.d.ts +34 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault-status.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault-status.js +45 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault-status.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault.d.ts +34 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault.js +42 -0
- package/esm/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-fee-distributions.d.ts +60 -0
- package/esm/models/operations/get-orgs-by-org-id-fee-distributions.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-fee-distributions.js +66 -0
- package/esm/models/operations/get-orgs-by-org-id-fee-distributions.js.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-fee-splits.d.ts +31 -0
- package/esm/models/operations/get-orgs-by-org-id-fee-splits.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-fee-splits.js +39 -0
- package/esm/models/operations/get-orgs-by-org-id-fee-splits.js.map +1 -1
- package/esm/sdk/distributions.d.ts +2 -2
- package/esm/sdk/distributions.d.ts.map +1 -1
- package/esm/sdk/distributions.js.map +1 -1
- package/esm/sdk/fees.d.ts +2 -2
- package/esm/sdk/fees.d.ts.map +1 -1
- package/esm/sdk/fees.js.map +1 -1
- package/esm/sdk/nav.d.ts +2 -2
- package/esm/sdk/nav.d.ts.map +1 -1
- package/esm/sdk/nav.js.map +1 -1
- package/esm/sdk/vaults.d.ts +3 -3
- package/esm/sdk/vaults.d.ts.map +1 -1
- package/esm/sdk/vaults.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/distributions-get-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id.ts +10 -6
- package/src/funcs/distributions-get-orgs-by-org-id-assets-by-asset-id-distributions.ts +10 -6
- package/src/funcs/fees-get-orgs-by-org-id-fee-distributions.ts +9 -6
- package/src/funcs/fees-get-orgs-by-org-id-fee-splits.ts +6 -6
- package/src/funcs/nav-get-orgs-by-org-id-assets-by-asset-id-nav-history.ts +9 -6
- package/src/funcs/nav-get-orgs-by-org-id-assets-by-asset-id-nav-latest.ts +9 -6
- package/src/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault-epochs.ts +9 -6
- package/src/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault-status.ts +9 -6
- package/src/funcs/vaults-get-orgs-by-org-id-assets-by-asset-id-vault.ts +9 -6
- package/src/lib/config.ts +2 -2
- package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id.ts +251 -0
- package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id-distributions.ts +265 -0
- package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id-nav-history.ts +172 -0
- package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id-nav-latest.ts +155 -0
- package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault-epochs.ts +274 -0
- package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault-status.ts +149 -0
- package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id-vault.ts +144 -0
- package/src/models/operations/get-orgs-by-org-id-fee-distributions.ts +202 -0
- package/src/models/operations/get-orgs-by-org-id-fee-splits.ts +91 -0
- package/src/sdk/distributions.ts +4 -2
- package/src/sdk/fees.ts +2 -2
- package/src/sdk/nav.ts +2 -2
- package/src/sdk/vaults.ts +3 -3
|
@@ -34,7 +34,7 @@ export function navGetOrgsByOrgIdAssetsByAssetIdNAVHistory(
|
|
|
34
34
|
options?: RequestOptions,
|
|
35
35
|
): APIPromise<
|
|
36
36
|
Result<
|
|
37
|
-
|
|
37
|
+
operations.GetOrgsByOrgIdAssetsByAssetIdNavHistoryResponse,
|
|
38
38
|
| errors.ProblemDetailsError
|
|
39
39
|
| SDKError
|
|
40
40
|
| ResponseValidationError
|
|
@@ -62,7 +62,7 @@ async function $do(
|
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
64
64
|
Result<
|
|
65
|
-
|
|
65
|
+
operations.GetOrgsByOrgIdAssetsByAssetIdNavHistoryResponse,
|
|
66
66
|
| errors.ProblemDetailsError
|
|
67
67
|
| SDKError
|
|
68
68
|
| ResponseValidationError
|
|
@@ -112,7 +112,7 @@ async function $do(
|
|
|
112
112
|
);
|
|
113
113
|
|
|
114
114
|
const headers = new Headers(compactMap({
|
|
115
|
-
Accept: "application/
|
|
115
|
+
Accept: "application/json",
|
|
116
116
|
}));
|
|
117
117
|
|
|
118
118
|
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
@@ -166,7 +166,7 @@ async function $do(
|
|
|
166
166
|
};
|
|
167
167
|
|
|
168
168
|
const [result] = await M.match<
|
|
169
|
-
|
|
169
|
+
operations.GetOrgsByOrgIdAssetsByAssetIdNavHistoryResponse,
|
|
170
170
|
| errors.ProblemDetailsError
|
|
171
171
|
| SDKError
|
|
172
172
|
| ResponseValidationError
|
|
@@ -177,8 +177,11 @@ async function $do(
|
|
|
177
177
|
| UnexpectedClientError
|
|
178
178
|
| SDKValidationError
|
|
179
179
|
>(
|
|
180
|
-
M.
|
|
181
|
-
|
|
180
|
+
M.json(
|
|
181
|
+
200,
|
|
182
|
+
operations.GetOrgsByOrgIdAssetsByAssetIdNavHistoryResponse$inboundSchema,
|
|
183
|
+
),
|
|
184
|
+
M.jsonErr([403, 428], errors.ProblemDetailsError$inboundSchema, {
|
|
182
185
|
ctype: "application/problem+json",
|
|
183
186
|
}),
|
|
184
187
|
M.fail("4XX"),
|
|
@@ -34,7 +34,7 @@ export function navGetOrgsByOrgIdAssetsByAssetIdNAVLatest(
|
|
|
34
34
|
options?: RequestOptions,
|
|
35
35
|
): APIPromise<
|
|
36
36
|
Result<
|
|
37
|
-
|
|
37
|
+
operations.GetOrgsByOrgIdAssetsByAssetIdNavLatestResponse,
|
|
38
38
|
| errors.ProblemDetailsError
|
|
39
39
|
| SDKError
|
|
40
40
|
| ResponseValidationError
|
|
@@ -62,7 +62,7 @@ async function $do(
|
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
64
64
|
Result<
|
|
65
|
-
|
|
65
|
+
operations.GetOrgsByOrgIdAssetsByAssetIdNavLatestResponse,
|
|
66
66
|
| errors.ProblemDetailsError
|
|
67
67
|
| SDKError
|
|
68
68
|
| ResponseValidationError
|
|
@@ -111,7 +111,7 @@ async function $do(
|
|
|
111
111
|
);
|
|
112
112
|
|
|
113
113
|
const headers = new Headers(compactMap({
|
|
114
|
-
Accept: "application/
|
|
114
|
+
Accept: "application/json",
|
|
115
115
|
}));
|
|
116
116
|
|
|
117
117
|
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
@@ -165,7 +165,7 @@ async function $do(
|
|
|
165
165
|
};
|
|
166
166
|
|
|
167
167
|
const [result] = await M.match<
|
|
168
|
-
|
|
168
|
+
operations.GetOrgsByOrgIdAssetsByAssetIdNavLatestResponse,
|
|
169
169
|
| errors.ProblemDetailsError
|
|
170
170
|
| SDKError
|
|
171
171
|
| ResponseValidationError
|
|
@@ -176,8 +176,11 @@ async function $do(
|
|
|
176
176
|
| UnexpectedClientError
|
|
177
177
|
| SDKValidationError
|
|
178
178
|
>(
|
|
179
|
-
M.
|
|
180
|
-
|
|
179
|
+
M.json(
|
|
180
|
+
200,
|
|
181
|
+
operations.GetOrgsByOrgIdAssetsByAssetIdNavLatestResponse$inboundSchema,
|
|
182
|
+
),
|
|
183
|
+
M.jsonErr([403, 428], errors.ProblemDetailsError$inboundSchema, {
|
|
181
184
|
ctype: "application/problem+json",
|
|
182
185
|
}),
|
|
183
186
|
M.fail("4XX"),
|
|
@@ -34,7 +34,7 @@ export function vaultsGetOrgsByOrgIdAssetsByAssetIdVaultEpochs(
|
|
|
34
34
|
options?: RequestOptions,
|
|
35
35
|
): APIPromise<
|
|
36
36
|
Result<
|
|
37
|
-
|
|
37
|
+
operations.GetOrgsByOrgIdAssetsByAssetIdVaultEpochsResponse,
|
|
38
38
|
| errors.ProblemDetailsError
|
|
39
39
|
| SDKError
|
|
40
40
|
| ResponseValidationError
|
|
@@ -62,7 +62,7 @@ async function $do(
|
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
64
64
|
Result<
|
|
65
|
-
|
|
65
|
+
operations.GetOrgsByOrgIdAssetsByAssetIdVaultEpochsResponse,
|
|
66
66
|
| errors.ProblemDetailsError
|
|
67
67
|
| SDKError
|
|
68
68
|
| ResponseValidationError
|
|
@@ -112,7 +112,7 @@ async function $do(
|
|
|
112
112
|
);
|
|
113
113
|
|
|
114
114
|
const headers = new Headers(compactMap({
|
|
115
|
-
Accept: "application/
|
|
115
|
+
Accept: "application/json",
|
|
116
116
|
}));
|
|
117
117
|
|
|
118
118
|
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
@@ -166,7 +166,7 @@ async function $do(
|
|
|
166
166
|
};
|
|
167
167
|
|
|
168
168
|
const [result] = await M.match<
|
|
169
|
-
|
|
169
|
+
operations.GetOrgsByOrgIdAssetsByAssetIdVaultEpochsResponse,
|
|
170
170
|
| errors.ProblemDetailsError
|
|
171
171
|
| SDKError
|
|
172
172
|
| ResponseValidationError
|
|
@@ -177,8 +177,11 @@ async function $do(
|
|
|
177
177
|
| UnexpectedClientError
|
|
178
178
|
| SDKValidationError
|
|
179
179
|
>(
|
|
180
|
-
M.
|
|
181
|
-
|
|
180
|
+
M.json(
|
|
181
|
+
200,
|
|
182
|
+
operations.GetOrgsByOrgIdAssetsByAssetIdVaultEpochsResponse$inboundSchema,
|
|
183
|
+
),
|
|
184
|
+
M.jsonErr([401, 403, 428], errors.ProblemDetailsError$inboundSchema, {
|
|
182
185
|
ctype: "application/problem+json",
|
|
183
186
|
}),
|
|
184
187
|
M.fail("4XX"),
|
|
@@ -34,7 +34,7 @@ export function vaultsGetOrgsByOrgIdAssetsByAssetIdVaultStatus(
|
|
|
34
34
|
options?: RequestOptions,
|
|
35
35
|
): APIPromise<
|
|
36
36
|
Result<
|
|
37
|
-
|
|
37
|
+
operations.GetOrgsByOrgIdAssetsByAssetIdVaultStatusResponse,
|
|
38
38
|
| errors.ProblemDetailsError
|
|
39
39
|
| SDKError
|
|
40
40
|
| ResponseValidationError
|
|
@@ -62,7 +62,7 @@ async function $do(
|
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
64
64
|
Result<
|
|
65
|
-
|
|
65
|
+
operations.GetOrgsByOrgIdAssetsByAssetIdVaultStatusResponse,
|
|
66
66
|
| errors.ProblemDetailsError
|
|
67
67
|
| SDKError
|
|
68
68
|
| ResponseValidationError
|
|
@@ -112,7 +112,7 @@ async function $do(
|
|
|
112
112
|
);
|
|
113
113
|
|
|
114
114
|
const headers = new Headers(compactMap({
|
|
115
|
-
Accept: "application/
|
|
115
|
+
Accept: "application/json",
|
|
116
116
|
}));
|
|
117
117
|
|
|
118
118
|
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
@@ -166,7 +166,7 @@ async function $do(
|
|
|
166
166
|
};
|
|
167
167
|
|
|
168
168
|
const [result] = await M.match<
|
|
169
|
-
|
|
169
|
+
operations.GetOrgsByOrgIdAssetsByAssetIdVaultStatusResponse,
|
|
170
170
|
| errors.ProblemDetailsError
|
|
171
171
|
| SDKError
|
|
172
172
|
| ResponseValidationError
|
|
@@ -177,8 +177,11 @@ async function $do(
|
|
|
177
177
|
| UnexpectedClientError
|
|
178
178
|
| SDKValidationError
|
|
179
179
|
>(
|
|
180
|
-
M.
|
|
181
|
-
|
|
180
|
+
M.json(
|
|
181
|
+
200,
|
|
182
|
+
operations.GetOrgsByOrgIdAssetsByAssetIdVaultStatusResponse$inboundSchema,
|
|
183
|
+
),
|
|
184
|
+
M.jsonErr([401, 403, 428], errors.ProblemDetailsError$inboundSchema, {
|
|
182
185
|
ctype: "application/problem+json",
|
|
183
186
|
}),
|
|
184
187
|
M.fail("4XX"),
|
|
@@ -34,7 +34,7 @@ export function vaultsGetOrgsByOrgIdAssetsByAssetIdVault(
|
|
|
34
34
|
options?: RequestOptions,
|
|
35
35
|
): APIPromise<
|
|
36
36
|
Result<
|
|
37
|
-
|
|
37
|
+
operations.GetOrgsByOrgIdAssetsByAssetIdVaultResponse,
|
|
38
38
|
| errors.ProblemDetailsError
|
|
39
39
|
| SDKError
|
|
40
40
|
| ResponseValidationError
|
|
@@ -62,7 +62,7 @@ async function $do(
|
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
64
64
|
Result<
|
|
65
|
-
|
|
65
|
+
operations.GetOrgsByOrgIdAssetsByAssetIdVaultResponse,
|
|
66
66
|
| errors.ProblemDetailsError
|
|
67
67
|
| SDKError
|
|
68
68
|
| ResponseValidationError
|
|
@@ -109,7 +109,7 @@ async function $do(
|
|
|
109
109
|
const path = pathToFunc("/orgs/{orgId}/assets/{assetId}/vault/")(pathParams);
|
|
110
110
|
|
|
111
111
|
const headers = new Headers(compactMap({
|
|
112
|
-
Accept: "application/
|
|
112
|
+
Accept: "application/json",
|
|
113
113
|
}));
|
|
114
114
|
|
|
115
115
|
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
@@ -163,7 +163,7 @@ async function $do(
|
|
|
163
163
|
};
|
|
164
164
|
|
|
165
165
|
const [result] = await M.match<
|
|
166
|
-
|
|
166
|
+
operations.GetOrgsByOrgIdAssetsByAssetIdVaultResponse,
|
|
167
167
|
| errors.ProblemDetailsError
|
|
168
168
|
| SDKError
|
|
169
169
|
| ResponseValidationError
|
|
@@ -174,8 +174,11 @@ async function $do(
|
|
|
174
174
|
| UnexpectedClientError
|
|
175
175
|
| SDKValidationError
|
|
176
176
|
>(
|
|
177
|
-
M.
|
|
178
|
-
|
|
177
|
+
M.json(
|
|
178
|
+
200,
|
|
179
|
+
operations.GetOrgsByOrgIdAssetsByAssetIdVaultResponse$inboundSchema,
|
|
180
|
+
),
|
|
181
|
+
M.jsonErr([401, 403, 428], errors.ProblemDetailsError$inboundSchema, {
|
|
179
182
|
ctype: "application/problem+json",
|
|
180
183
|
}),
|
|
181
184
|
M.fail("4XX"),
|
package/src/lib/config.ts
CHANGED
|
@@ -65,8 +65,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "2.0.0",
|
|
68
|
-
sdkVersion: "0.9.
|
|
68
|
+
sdkVersion: "0.9.2",
|
|
69
69
|
genVersion: "2.916.4",
|
|
70
70
|
userAgent:
|
|
71
|
-
"speakeasy-sdk/typescript 0.9.
|
|
71
|
+
"speakeasy-sdk/typescript 0.9.2 2.916.4 2.0.0 @clossir-tech/ts-sdk",
|
|
72
72
|
} as const;
|
package/src/models/operations/get-orgs-by-org-id-assets-by-asset-id-distributions-by-dist-id.ts
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
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 { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { smartUnion } from "../../types/smart-union.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
6
12
|
|
|
7
13
|
export type GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdRequest = {
|
|
8
14
|
orgId: string;
|
|
@@ -10,6 +16,59 @@ export type GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdRequest = {
|
|
|
10
16
|
distId: string;
|
|
11
17
|
};
|
|
12
18
|
|
|
19
|
+
export type GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdTotalAmount =
|
|
20
|
+
| string
|
|
21
|
+
| number;
|
|
22
|
+
|
|
23
|
+
export type GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdDepositedAmount =
|
|
24
|
+
| string
|
|
25
|
+
| number;
|
|
26
|
+
|
|
27
|
+
export type GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdProcessingFeeCollected =
|
|
28
|
+
| string
|
|
29
|
+
| number;
|
|
30
|
+
|
|
31
|
+
export type GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdClaimedAmount =
|
|
32
|
+
| string
|
|
33
|
+
| number;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* A row of the `distributions` table.
|
|
37
|
+
*/
|
|
38
|
+
export type GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdDistribution = {
|
|
39
|
+
id?: string | null | undefined;
|
|
40
|
+
assetId?: string | null | undefined;
|
|
41
|
+
distributorAddress?: string | null | undefined;
|
|
42
|
+
payoutToken?: string | null | undefined;
|
|
43
|
+
totalAmount?: string | number | null | undefined;
|
|
44
|
+
depositedAmount?: string | number | null | undefined;
|
|
45
|
+
processingFeeBps?: number | null | undefined;
|
|
46
|
+
processingFeeCollected?: string | number | null | undefined;
|
|
47
|
+
claimedAmount?: string | number | null | undefined;
|
|
48
|
+
depositDeadline?: string | null | undefined;
|
|
49
|
+
recordDate?: string | null | undefined;
|
|
50
|
+
payoutDate?: string | null | undefined;
|
|
51
|
+
claimDeadline?: string | null | undefined;
|
|
52
|
+
merkleRoot?: string | null | undefined;
|
|
53
|
+
totalRecipients?: number | null | undefined;
|
|
54
|
+
status?: string | null | undefined;
|
|
55
|
+
chainEid?: number | null | undefined;
|
|
56
|
+
onChainId?: number | null | undefined;
|
|
57
|
+
createdAt?: string | null | undefined;
|
|
58
|
+
updatedAt?: string | null | undefined;
|
|
59
|
+
[additionalProperties: string]: unknown;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Response
|
|
64
|
+
*/
|
|
65
|
+
export type GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdResponse = {
|
|
66
|
+
/**
|
|
67
|
+
* A row of the `distributions` table.
|
|
68
|
+
*/
|
|
69
|
+
distribution: GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdDistribution;
|
|
70
|
+
};
|
|
71
|
+
|
|
13
72
|
/** @internal */
|
|
14
73
|
export type GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdRequest$Outbound =
|
|
15
74
|
{
|
|
@@ -38,3 +97,195 @@ export function getOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdRequestToJSON(
|
|
|
38
97
|
.parse(getOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdRequest),
|
|
39
98
|
);
|
|
40
99
|
}
|
|
100
|
+
|
|
101
|
+
/** @internal */
|
|
102
|
+
export const GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdTotalAmount$inboundSchema:
|
|
103
|
+
z.ZodMiniType<
|
|
104
|
+
GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdTotalAmount,
|
|
105
|
+
unknown
|
|
106
|
+
> = smartUnion([types.string(), types.number()]);
|
|
107
|
+
|
|
108
|
+
export function getOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdTotalAmountFromJSON(
|
|
109
|
+
jsonString: string,
|
|
110
|
+
): SafeParseResult<
|
|
111
|
+
GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdTotalAmount,
|
|
112
|
+
SDKValidationError
|
|
113
|
+
> {
|
|
114
|
+
return safeParse(
|
|
115
|
+
jsonString,
|
|
116
|
+
(x) =>
|
|
117
|
+
GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdTotalAmount$inboundSchema
|
|
118
|
+
.parse(JSON.parse(x)),
|
|
119
|
+
`Failed to parse 'GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdTotalAmount' from JSON`,
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/** @internal */
|
|
124
|
+
export const GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdDepositedAmount$inboundSchema:
|
|
125
|
+
z.ZodMiniType<
|
|
126
|
+
GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdDepositedAmount,
|
|
127
|
+
unknown
|
|
128
|
+
> = smartUnion([types.string(), types.number()]);
|
|
129
|
+
|
|
130
|
+
export function getOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdDepositedAmountFromJSON(
|
|
131
|
+
jsonString: string,
|
|
132
|
+
): SafeParseResult<
|
|
133
|
+
GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdDepositedAmount,
|
|
134
|
+
SDKValidationError
|
|
135
|
+
> {
|
|
136
|
+
return safeParse(
|
|
137
|
+
jsonString,
|
|
138
|
+
(x) =>
|
|
139
|
+
GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdDepositedAmount$inboundSchema
|
|
140
|
+
.parse(JSON.parse(x)),
|
|
141
|
+
`Failed to parse 'GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdDepositedAmount' from JSON`,
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/** @internal */
|
|
146
|
+
export const GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdProcessingFeeCollected$inboundSchema:
|
|
147
|
+
z.ZodMiniType<
|
|
148
|
+
GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdProcessingFeeCollected,
|
|
149
|
+
unknown
|
|
150
|
+
> = smartUnion([types.string(), types.number()]);
|
|
151
|
+
|
|
152
|
+
export function getOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdProcessingFeeCollectedFromJSON(
|
|
153
|
+
jsonString: string,
|
|
154
|
+
): SafeParseResult<
|
|
155
|
+
GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdProcessingFeeCollected,
|
|
156
|
+
SDKValidationError
|
|
157
|
+
> {
|
|
158
|
+
return safeParse(
|
|
159
|
+
jsonString,
|
|
160
|
+
(x) =>
|
|
161
|
+
GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdProcessingFeeCollected$inboundSchema
|
|
162
|
+
.parse(JSON.parse(x)),
|
|
163
|
+
`Failed to parse 'GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdProcessingFeeCollected' from JSON`,
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/** @internal */
|
|
168
|
+
export const GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdClaimedAmount$inboundSchema:
|
|
169
|
+
z.ZodMiniType<
|
|
170
|
+
GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdClaimedAmount,
|
|
171
|
+
unknown
|
|
172
|
+
> = smartUnion([types.string(), types.number()]);
|
|
173
|
+
|
|
174
|
+
export function getOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdClaimedAmountFromJSON(
|
|
175
|
+
jsonString: string,
|
|
176
|
+
): SafeParseResult<
|
|
177
|
+
GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdClaimedAmount,
|
|
178
|
+
SDKValidationError
|
|
179
|
+
> {
|
|
180
|
+
return safeParse(
|
|
181
|
+
jsonString,
|
|
182
|
+
(x) =>
|
|
183
|
+
GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdClaimedAmount$inboundSchema
|
|
184
|
+
.parse(JSON.parse(x)),
|
|
185
|
+
`Failed to parse 'GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdClaimedAmount' from JSON`,
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/** @internal */
|
|
190
|
+
export const GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdDistribution$inboundSchema:
|
|
191
|
+
z.ZodMiniType<
|
|
192
|
+
GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdDistribution,
|
|
193
|
+
unknown
|
|
194
|
+
> = z.pipe(
|
|
195
|
+
z.catchall(
|
|
196
|
+
z.object({
|
|
197
|
+
id: z.optional(z.nullable(types.string())),
|
|
198
|
+
asset_id: z.optional(z.nullable(types.string())),
|
|
199
|
+
distributor_address: z.optional(z.nullable(types.string())),
|
|
200
|
+
payout_token: z.optional(z.nullable(types.string())),
|
|
201
|
+
total_amount: z.optional(
|
|
202
|
+
z.nullable(smartUnion([types.string(), types.number()])),
|
|
203
|
+
),
|
|
204
|
+
deposited_amount: z.optional(
|
|
205
|
+
z.nullable(smartUnion([types.string(), types.number()])),
|
|
206
|
+
),
|
|
207
|
+
processing_fee_bps: z.optional(z.nullable(types.number())),
|
|
208
|
+
processing_fee_collected: z.optional(
|
|
209
|
+
z.nullable(smartUnion([types.string(), types.number()])),
|
|
210
|
+
),
|
|
211
|
+
claimed_amount: z.optional(
|
|
212
|
+
z.nullable(smartUnion([types.string(), types.number()])),
|
|
213
|
+
),
|
|
214
|
+
deposit_deadline: z.optional(z.nullable(types.string())),
|
|
215
|
+
record_date: z.optional(z.nullable(types.string())),
|
|
216
|
+
payout_date: z.optional(z.nullable(types.string())),
|
|
217
|
+
claim_deadline: z.optional(z.nullable(types.string())),
|
|
218
|
+
merkle_root: z.optional(z.nullable(types.string())),
|
|
219
|
+
total_recipients: z.optional(z.nullable(types.number())),
|
|
220
|
+
status: z.optional(z.nullable(types.string())),
|
|
221
|
+
chain_eid: z.optional(z.nullable(types.number())),
|
|
222
|
+
on_chain_id: z.optional(z.nullable(types.number())),
|
|
223
|
+
created_at: z.optional(z.nullable(types.string())),
|
|
224
|
+
updated_at: z.optional(z.nullable(types.string())),
|
|
225
|
+
}),
|
|
226
|
+
z.any(),
|
|
227
|
+
),
|
|
228
|
+
z.transform((v) => {
|
|
229
|
+
return remap$(v, {
|
|
230
|
+
"asset_id": "assetId",
|
|
231
|
+
"distributor_address": "distributorAddress",
|
|
232
|
+
"payout_token": "payoutToken",
|
|
233
|
+
"total_amount": "totalAmount",
|
|
234
|
+
"deposited_amount": "depositedAmount",
|
|
235
|
+
"processing_fee_bps": "processingFeeBps",
|
|
236
|
+
"processing_fee_collected": "processingFeeCollected",
|
|
237
|
+
"claimed_amount": "claimedAmount",
|
|
238
|
+
"deposit_deadline": "depositDeadline",
|
|
239
|
+
"record_date": "recordDate",
|
|
240
|
+
"payout_date": "payoutDate",
|
|
241
|
+
"claim_deadline": "claimDeadline",
|
|
242
|
+
"merkle_root": "merkleRoot",
|
|
243
|
+
"total_recipients": "totalRecipients",
|
|
244
|
+
"chain_eid": "chainEid",
|
|
245
|
+
"on_chain_id": "onChainId",
|
|
246
|
+
"created_at": "createdAt",
|
|
247
|
+
"updated_at": "updatedAt",
|
|
248
|
+
});
|
|
249
|
+
}),
|
|
250
|
+
);
|
|
251
|
+
|
|
252
|
+
export function getOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdDistributionFromJSON(
|
|
253
|
+
jsonString: string,
|
|
254
|
+
): SafeParseResult<
|
|
255
|
+
GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdDistribution,
|
|
256
|
+
SDKValidationError
|
|
257
|
+
> {
|
|
258
|
+
return safeParse(
|
|
259
|
+
jsonString,
|
|
260
|
+
(x) =>
|
|
261
|
+
GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdDistribution$inboundSchema
|
|
262
|
+
.parse(JSON.parse(x)),
|
|
263
|
+
`Failed to parse 'GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdDistribution' from JSON`,
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/** @internal */
|
|
268
|
+
export const GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdResponse$inboundSchema:
|
|
269
|
+
z.ZodMiniType<
|
|
270
|
+
GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdResponse,
|
|
271
|
+
unknown
|
|
272
|
+
> = z.object({
|
|
273
|
+
distribution: z.lazy(() =>
|
|
274
|
+
GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdDistribution$inboundSchema
|
|
275
|
+
),
|
|
276
|
+
});
|
|
277
|
+
|
|
278
|
+
export function getOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdResponseFromJSON(
|
|
279
|
+
jsonString: string,
|
|
280
|
+
): SafeParseResult<
|
|
281
|
+
GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdResponse,
|
|
282
|
+
SDKValidationError
|
|
283
|
+
> {
|
|
284
|
+
return safeParse(
|
|
285
|
+
jsonString,
|
|
286
|
+
(x) =>
|
|
287
|
+
GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdResponse$inboundSchema
|
|
288
|
+
.parse(JSON.parse(x)),
|
|
289
|
+
`Failed to parse 'GetOrgsByOrgIdAssetsByAssetIdDistributionsByDistIdResponse' from JSON`,
|
|
290
|
+
);
|
|
291
|
+
}
|