@clossir-tech/ts-sdk 0.11.1 → 0.11.3
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 +36 -34
- package/esm/funcs/accounts-get-accounts-deposit-addresses.d.ts +20 -0
- package/esm/funcs/accounts-get-accounts-deposit-addresses.d.ts.map +1 -0
- package/esm/funcs/accounts-get-accounts-deposit-addresses.js +94 -0
- package/esm/funcs/accounts-get-accounts-deposit-addresses.js.map +1 -0
- package/esm/funcs/organizations-get-orgs-by-org-id-issuer.d.ts +1 -1
- package/esm/funcs/organizations-get-orgs-by-org-id-issuer.js +4 -2
- package/esm/funcs/organizations-get-orgs-by-org-id-issuer.js.map +1 -1
- package/esm/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.d.ts +1 -1
- package/esm/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.js +2 -2
- package/esm/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.js.map +1 -1
- package/esm/funcs/organizations-put-orgs-by-org-id-compliance.d.ts +1 -1
- package/esm/funcs/organizations-put-orgs-by-org-id-compliance.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/operations/get-accounts-deposit-addresses.d.ts +146 -0
- package/esm/models/operations/get-accounts-deposit-addresses.d.ts.map +1 -0
- package/esm/models/operations/get-accounts-deposit-addresses.js +117 -0
- package/esm/models/operations/get-accounts-deposit-addresses.js.map +1 -0
- package/esm/models/operations/get-orgs-by-org-id-issuer.d.ts +30 -1
- package/esm/models/operations/get-orgs-by-org-id-issuer.d.ts.map +1 -1
- package/esm/models/operations/get-orgs-by-org-id-issuer.js +28 -1
- package/esm/models/operations/get-orgs-by-org-id-issuer.js.map +1 -1
- package/esm/models/operations/index.d.ts +1 -0
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +1 -0
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/post-attestations.d.ts +1 -1
- package/esm/models/operations/post-orgs-by-org-id-issuer-register.d.ts +23 -1
- package/esm/models/operations/post-orgs-by-org-id-issuer-register.d.ts.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-issuer-register.js +26 -1
- package/esm/models/operations/post-orgs-by-org-id-issuer-register.js.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-members-by-user-id-attest.d.ts +9 -5
- package/esm/models/operations/post-orgs-by-org-id-members-by-user-id-attest.d.ts.map +1 -1
- package/esm/models/operations/post-orgs-by-org-id-members-by-user-id-attest.js +1 -1
- package/esm/models/operations/post-orgs-by-org-id-members-by-user-id-attest.js.map +1 -1
- package/esm/sdk/accounts.d.ts +7 -0
- package/esm/sdk/accounts.d.ts.map +1 -1
- package/esm/sdk/accounts.js +10 -0
- package/esm/sdk/accounts.js.map +1 -1
- package/esm/sdk/organizations.d.ts +3 -3
- package/esm/sdk/organizations.js +3 -3
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/accounts-get-accounts-deposit-addresses.ts +193 -0
- package/src/funcs/organizations-get-orgs-by-org-id-issuer.ts +5 -2
- package/src/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.ts +2 -2
- package/src/funcs/organizations-put-orgs-by-org-id-compliance.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/operations/get-accounts-deposit-addresses.ts +346 -0
- package/src/models/operations/get-orgs-by-org-id-issuer.ts +70 -2
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/post-attestations.ts +1 -1
- package/src/models/operations/post-orgs-by-org-id-issuer-register.ts +60 -2
- package/src/models/operations/post-orgs-by-org-id-members-by-user-id-attest.ts +10 -6
- package/src/sdk/accounts.ts +18 -0
- package/src/sdk/organizations.ts +3 -3
|
@@ -201,7 +201,7 @@ export declare class Organizations extends ClientSDK {
|
|
|
201
201
|
* Attest member wallets on behalf of org
|
|
202
202
|
*
|
|
203
203
|
* @remarks
|
|
204
|
-
* 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.
|
|
204
|
+
* 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. The member must hold an approved, current Clossir verification: the attestation's KYC level is that verification's level and its expiry is capped at the verification's expiry. Returns 409 member_kyc_required, and writes nothing, when the member has no approved, current Clossir verification. kycLevel and countryCode are deprecated and ignored. 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.
|
|
205
205
|
*/
|
|
206
206
|
postOrgsByOrgIdMembersByUserIdAttest(security: operations.PostOrgsByOrgIdMembersByUserIdAttestSecurity, orgId: string, userId: string, body: operations.PostOrgsByOrgIdMembersByUserIdAttestRequestBody, options?: RequestOptions): Promise<operations.PostOrgsByOrgIdMembersByUserIdAttestResponse>;
|
|
207
207
|
/**
|
|
@@ -298,7 +298,7 @@ export declare class Organizations extends ClientSDK {
|
|
|
298
298
|
* Get issuer status for organization
|
|
299
299
|
*
|
|
300
300
|
* @remarks
|
|
301
|
-
* Returns the issuer registration status and
|
|
301
|
+
* Returns the issuer registration status for this organization with two market lists: `covered_jurisdictions`, the markets the platform operates in, and `opinion_covered_jurisdictions`, the markets covered by this organization's accepted legal opinions (the list asset creation is checked against; empty when none is on file). `issuer` is null when the organization is not registered, otherwise its nine fields: id, name, organization_id, max_kyc_level, can_revoke_others, is_active, chain_addresses, created_at and updated_at. Answers 503 when the opinion lookup fails and 500 when the issuer lookup fails.
|
|
302
302
|
*/
|
|
303
303
|
getOrgsByOrgIdIssuer(security: operations.GetOrgsByOrgIdIssuerSecurity, orgId: string, options?: RequestOptions): Promise<operations.GetOrgsByOrgIdIssuerResponse>;
|
|
304
304
|
/**
|
|
@@ -347,7 +347,7 @@ export declare class Organizations extends ClientSDK {
|
|
|
347
347
|
* Update organization compliance config
|
|
348
348
|
*
|
|
349
349
|
* @remarks
|
|
350
|
-
* Creates or updates the compliance configuration for an organization. Requires admin or compliance_officer role. A blocked_jurisdictions entry that
|
|
350
|
+
* Creates or updates the compliance configuration for an organization. Requires admin or compliance_officer role. A blocked_jurisdictions entry that is not the canonical ISO 3166-1 upper-case alpha-2 form — including a mappable alias such as UK — returns 422 validation_failed with property pointing at the entry; the value is not echoed. Resending the stored list unchanged, in any order, is accepted.
|
|
351
351
|
*/
|
|
352
352
|
putOrgsByOrgIdCompliance(orgId: string, body: operations.PutOrgsByOrgIdComplianceRequestBody, options?: RequestOptions): Promise<operations.PutOrgsByOrgIdComplianceResponse>;
|
|
353
353
|
/**
|
package/esm/sdk/organizations.js
CHANGED
|
@@ -313,7 +313,7 @@ export class Organizations extends ClientSDK {
|
|
|
313
313
|
* Attest member wallets on behalf of org
|
|
314
314
|
*
|
|
315
315
|
* @remarks
|
|
316
|
-
* 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.
|
|
316
|
+
* 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. The member must hold an approved, current Clossir verification: the attestation's KYC level is that verification's level and its expiry is capped at the verification's expiry. Returns 409 member_kyc_required, and writes nothing, when the member has no approved, current Clossir verification. kycLevel and countryCode are deprecated and ignored. 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.
|
|
317
317
|
*/
|
|
318
318
|
async postOrgsByOrgIdMembersByUserIdAttest(security, orgId, userId, body, options) {
|
|
319
319
|
return unwrapAsync(organizationsPostOrgsByOrgIdMembersByUserIdAttest(this, security, orgId, userId, body, options));
|
|
@@ -442,7 +442,7 @@ export class Organizations extends ClientSDK {
|
|
|
442
442
|
* Get issuer status for organization
|
|
443
443
|
*
|
|
444
444
|
* @remarks
|
|
445
|
-
* Returns the issuer registration status and
|
|
445
|
+
* Returns the issuer registration status for this organization with two market lists: `covered_jurisdictions`, the markets the platform operates in, and `opinion_covered_jurisdictions`, the markets covered by this organization's accepted legal opinions (the list asset creation is checked against; empty when none is on file). `issuer` is null when the organization is not registered, otherwise its nine fields: id, name, organization_id, max_kyc_level, can_revoke_others, is_active, chain_addresses, created_at and updated_at. Answers 503 when the opinion lookup fails and 500 when the issuer lookup fails.
|
|
446
446
|
*/
|
|
447
447
|
async getOrgsByOrgIdIssuer(security, orgId, options) {
|
|
448
448
|
return unwrapAsync(organizationsGetOrgsByOrgIdIssuer(this, security, orgId, options));
|
|
@@ -505,7 +505,7 @@ export class Organizations extends ClientSDK {
|
|
|
505
505
|
* Update organization compliance config
|
|
506
506
|
*
|
|
507
507
|
* @remarks
|
|
508
|
-
* Creates or updates the compliance configuration for an organization. Requires admin or compliance_officer role. A blocked_jurisdictions entry that
|
|
508
|
+
* Creates or updates the compliance configuration for an organization. Requires admin or compliance_officer role. A blocked_jurisdictions entry that is not the canonical ISO 3166-1 upper-case alpha-2 form — including a mappable alias such as UK — returns 422 validation_failed with property pointing at the entry; the value is not echoed. Resending the stored list unchanged, in any order, is accepted.
|
|
509
509
|
*/
|
|
510
510
|
async putOrgsByOrgIdCompliance(orgId, body, options) {
|
|
511
511
|
return unwrapAsync(organizationsPutOrgsByOrgIdCompliance(this, orgId, body, options));
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { ClossirCore } from "../core.js";
|
|
7
|
+
import { encodeFormQuery } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
9
|
+
import * as M from "../lib/matchers.js";
|
|
10
|
+
import { compactMap } from "../lib/primitives.js";
|
|
11
|
+
import { safeParse } from "../lib/schemas.js";
|
|
12
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
13
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
14
|
+
import { pathToFunc } from "../lib/url.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/http-client-errors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
24
|
+
import { SDKError } from "../models/errors/sdk-error.js";
|
|
25
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
26
|
+
import * as operations from "../models/operations/index.js";
|
|
27
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
28
|
+
import { Result } from "../types/fp.js";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Where the caller can receive an asset
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* One row per own wallet per chain of the asset; an organization's wallets are never listed. An issued asset is found for a member of its organization and for a caller who holds it; for anyone else it is not found. A chain the asset is not deployed on yet is a row with `deployed: false` and no address. A deployed row carries the wallet's checksummed address and `receivable`: whether the chain will accept a transfer of the asset to that wallet, read from the chain on every request. `receivable` is null when it could not be read, never true. `notReceivableReason` is given only when `receivable` is false. `inboundBridgePaused` says whether the token is paused on that chain: while it is, deposits bridged from another chain are queued, and after the token is unpaused they must be replayed; one the token refuses at replay, or that the owner drops, is not delivered. A pause does not affect a deposit sent on the chain itself and never changes `receivable`. `finalityBlocks` is null when no confirmation depth is stated for the chain. `inbound` lists up to 5 recent transfers in, newest first; when `historyStale` is true the lists may be missing transfers, and an empty list is not a statement that nothing arrived. For a cash asset every row is receivable, `inbound` is empty and `historyStale` is true. Rate limited per user (429 with Retry-After). API keys are refused.
|
|
35
|
+
*
|
|
36
|
+
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
37
|
+
*/
|
|
38
|
+
export function accountsGetAccountsDepositAddresses(
|
|
39
|
+
client: ClossirCore,
|
|
40
|
+
assetId: string,
|
|
41
|
+
options?: RequestOptions,
|
|
42
|
+
): APIPromise<
|
|
43
|
+
Result<
|
|
44
|
+
operations.GetAccountsDepositAddressesResponse,
|
|
45
|
+
| errors.ProblemDetailsError
|
|
46
|
+
| SDKError
|
|
47
|
+
| ResponseValidationError
|
|
48
|
+
| ConnectionError
|
|
49
|
+
| RequestAbortedError
|
|
50
|
+
| RequestTimeoutError
|
|
51
|
+
| InvalidRequestError
|
|
52
|
+
| UnexpectedClientError
|
|
53
|
+
| SDKValidationError
|
|
54
|
+
>
|
|
55
|
+
> {
|
|
56
|
+
return new APIPromise($do(
|
|
57
|
+
client,
|
|
58
|
+
assetId,
|
|
59
|
+
options,
|
|
60
|
+
));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
async function $do(
|
|
64
|
+
client: ClossirCore,
|
|
65
|
+
assetId: string,
|
|
66
|
+
options?: RequestOptions,
|
|
67
|
+
): Promise<
|
|
68
|
+
[
|
|
69
|
+
Result<
|
|
70
|
+
operations.GetAccountsDepositAddressesResponse,
|
|
71
|
+
| errors.ProblemDetailsError
|
|
72
|
+
| SDKError
|
|
73
|
+
| ResponseValidationError
|
|
74
|
+
| ConnectionError
|
|
75
|
+
| RequestAbortedError
|
|
76
|
+
| RequestTimeoutError
|
|
77
|
+
| InvalidRequestError
|
|
78
|
+
| UnexpectedClientError
|
|
79
|
+
| SDKValidationError
|
|
80
|
+
>,
|
|
81
|
+
APICall,
|
|
82
|
+
]
|
|
83
|
+
> {
|
|
84
|
+
const input: operations.GetAccountsDepositAddressesRequest = {
|
|
85
|
+
assetId: assetId,
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
const parsed = safeParse(
|
|
89
|
+
input,
|
|
90
|
+
(value) =>
|
|
91
|
+
z.parse(
|
|
92
|
+
operations.GetAccountsDepositAddressesRequest$outboundSchema,
|
|
93
|
+
value,
|
|
94
|
+
),
|
|
95
|
+
"Input validation failed",
|
|
96
|
+
);
|
|
97
|
+
if (!parsed.ok) {
|
|
98
|
+
return [parsed, { status: "invalid" }];
|
|
99
|
+
}
|
|
100
|
+
const payload = parsed.value;
|
|
101
|
+
const body = null;
|
|
102
|
+
|
|
103
|
+
const path = pathToFunc("/accounts/deposit-addresses")();
|
|
104
|
+
|
|
105
|
+
const query = encodeFormQuery({
|
|
106
|
+
"assetId": payload.assetId,
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
const headers = new Headers(compactMap({
|
|
110
|
+
Accept: "application/json",
|
|
111
|
+
}));
|
|
112
|
+
|
|
113
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
114
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
115
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
|
|
116
|
+
|
|
117
|
+
const context = {
|
|
118
|
+
options: client._options,
|
|
119
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
120
|
+
operationID: "getAccountsDeposit-addresses",
|
|
121
|
+
oAuth2Scopes: null,
|
|
122
|
+
|
|
123
|
+
resolvedSecurity: requestSecurity,
|
|
124
|
+
|
|
125
|
+
securitySource: client._options.bearerAuth,
|
|
126
|
+
retryConfig: options?.retries
|
|
127
|
+
|| client._options.retryConfig
|
|
128
|
+
|| { strategy: "none" },
|
|
129
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
const requestRes = client._createRequest(context, {
|
|
133
|
+
security: requestSecurity,
|
|
134
|
+
method: "GET",
|
|
135
|
+
baseURL: options?.serverURL,
|
|
136
|
+
path: path,
|
|
137
|
+
headers: headers,
|
|
138
|
+
query: query,
|
|
139
|
+
body: body,
|
|
140
|
+
userAgent: client._options.userAgent,
|
|
141
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
142
|
+
}, options);
|
|
143
|
+
if (!requestRes.ok) {
|
|
144
|
+
return [requestRes, { status: "invalid" }];
|
|
145
|
+
}
|
|
146
|
+
const req = requestRes.value;
|
|
147
|
+
|
|
148
|
+
const doResult = await client._do(req, {
|
|
149
|
+
context,
|
|
150
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
151
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
152
|
+
retryConfig: context.retryConfig,
|
|
153
|
+
retryCodes: context.retryCodes,
|
|
154
|
+
});
|
|
155
|
+
if (!doResult.ok) {
|
|
156
|
+
return [doResult, { status: "request-error", request: req }];
|
|
157
|
+
}
|
|
158
|
+
const response = doResult.value;
|
|
159
|
+
|
|
160
|
+
const responseFields = {
|
|
161
|
+
HttpMeta: { Response: response, Request: req },
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
const [result] = await M.match<
|
|
165
|
+
operations.GetAccountsDepositAddressesResponse,
|
|
166
|
+
| errors.ProblemDetailsError
|
|
167
|
+
| SDKError
|
|
168
|
+
| ResponseValidationError
|
|
169
|
+
| ConnectionError
|
|
170
|
+
| RequestAbortedError
|
|
171
|
+
| RequestTimeoutError
|
|
172
|
+
| InvalidRequestError
|
|
173
|
+
| UnexpectedClientError
|
|
174
|
+
| SDKValidationError
|
|
175
|
+
>(
|
|
176
|
+
M.json(200, operations.GetAccountsDepositAddressesResponse$inboundSchema),
|
|
177
|
+
M.jsonErr(
|
|
178
|
+
[401, 404, 422, 428, 429],
|
|
179
|
+
errors.ProblemDetailsError$inboundSchema,
|
|
180
|
+
{ ctype: "application/problem+json" },
|
|
181
|
+
),
|
|
182
|
+
M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
|
|
183
|
+
ctype: "application/problem+json",
|
|
184
|
+
}),
|
|
185
|
+
M.fail("4XX"),
|
|
186
|
+
M.fail("5XX"),
|
|
187
|
+
)(response, req, { extraFields: responseFields });
|
|
188
|
+
if (!result.ok) {
|
|
189
|
+
return [result, { status: "complete", request: req, response }];
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
return [result, { status: "complete", request: req, response }];
|
|
193
|
+
}
|
|
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* Get issuer status for organization
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* Returns the issuer registration status and
|
|
34
|
+
* Returns the issuer registration status for this organization with two market lists: `covered_jurisdictions`, the markets the platform operates in, and `opinion_covered_jurisdictions`, the markets covered by this organization's accepted legal opinions (the list asset creation is checked against; empty when none is on file). `issuer` is null when the organization is not registered, otherwise its nine fields: id, name, organization_id, max_kyc_level, can_revoke_others, is_active, chain_addresses, created_at and updated_at. Answers 503 when the opinion lookup fails and 500 when the issuer lookup fails.
|
|
35
35
|
*/
|
|
36
36
|
export function organizationsGetOrgsByOrgIdIssuer(
|
|
37
37
|
client: ClossirCore,
|
|
@@ -186,7 +186,10 @@ async function $do(
|
|
|
186
186
|
| SDKValidationError
|
|
187
187
|
>(
|
|
188
188
|
M.json(200, operations.GetOrgsByOrgIdIssuerResponse$inboundSchema),
|
|
189
|
-
M.jsonErr([403, 428], errors.ProblemDetailsError$inboundSchema, {
|
|
189
|
+
M.jsonErr([401, 403, 428], errors.ProblemDetailsError$inboundSchema, {
|
|
190
|
+
ctype: "application/problem+json",
|
|
191
|
+
}),
|
|
192
|
+
M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
|
|
190
193
|
ctype: "application/problem+json",
|
|
191
194
|
}),
|
|
192
195
|
M.fail("4XX"),
|
|
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* Attest member wallets on behalf of org
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* 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.
|
|
34
|
+
* 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. The member must hold an approved, current Clossir verification: the attestation's KYC level is that verification's level and its expiry is capped at the verification's expiry. Returns 409 member_kyc_required, and writes nothing, when the member has no approved, current Clossir verification. kycLevel and countryCode are deprecated and ignored. 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.
|
|
35
35
|
*/
|
|
36
36
|
export function organizationsPostOrgsByOrgIdMembersByUserIdAttest(
|
|
37
37
|
client: ClossirCore,
|
|
@@ -210,7 +210,7 @@ async function $do(
|
|
|
210
210
|
errors.ProblemDetailsError$inboundSchema,
|
|
211
211
|
{ ctype: "application/problem+json" },
|
|
212
212
|
),
|
|
213
|
-
M.jsonErr(503, errors.ProblemDetailsError$inboundSchema, {
|
|
213
|
+
M.jsonErr([500, 503], errors.ProblemDetailsError$inboundSchema, {
|
|
214
214
|
ctype: "application/problem+json",
|
|
215
215
|
}),
|
|
216
216
|
M.fail("4XX"),
|
|
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* Update organization compliance config
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* Creates or updates the compliance configuration for an organization. Requires admin or compliance_officer role. A blocked_jurisdictions entry that
|
|
34
|
+
* Creates or updates the compliance configuration for an organization. Requires admin or compliance_officer role. A blocked_jurisdictions entry that is not the canonical ISO 3166-1 upper-case alpha-2 form — including a mappable alias such as UK — returns 422 validation_failed with property pointing at the entry; the value is not echoed. Resending the stored list unchanged, in any order, is accepted.
|
|
35
35
|
*
|
|
36
36
|
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
37
37
|
*/
|
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.11.
|
|
68
|
+
sdkVersion: "0.11.3",
|
|
69
69
|
genVersion: "2.916.4",
|
|
70
70
|
userAgent:
|
|
71
|
-
"speakeasy-sdk/typescript 0.11.
|
|
71
|
+
"speakeasy-sdk/typescript 0.11.3 2.916.4 2.0.0 @clossir-tech/ts-sdk",
|
|
72
72
|
} as const;
|