@dynamic-labs/sdk-api 0.0.1076 → 0.0.1077

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.0.1076",
3
+ "version": "0.0.1077",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -147,73 +147,7 @@ require('../models/WalletTransactionType.cjs');
147
147
  */
148
148
  class ChainalysisApi extends runtime.BaseAPI {
149
149
  /**
150
- * Disables the Chainalysis Sanctions API for the specified environment.
151
- * Disables the Sanctions API
152
- */
153
- async disableSanctionsApiByEnvironmentIdRaw(requestParameters, initOverrides) {
154
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
155
- throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling disableSanctionsApiByEnvironmentId.');
156
- }
157
- const queryParameters = {};
158
- const headerParameters = {};
159
- if (this.configuration && this.configuration.accessToken) {
160
- const token = this.configuration.accessToken;
161
- const tokenString = await token("bearerAuth", []);
162
- if (tokenString) {
163
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
164
- }
165
- }
166
- const response = await this.request({
167
- path: `/environments/{environmentId}/integrations/chainalysis/sanctions/disable`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
168
- method: 'PUT',
169
- headers: headerParameters,
170
- query: queryParameters,
171
- }, initOverrides);
172
- return new runtime.JSONApiResponse(response, (jsonValue) => ChainalysisConfiguration.ChainalysisConfigurationFromJSON(jsonValue));
173
- }
174
- /**
175
- * Disables the Chainalysis Sanctions API for the specified environment.
176
- * Disables the Sanctions API
177
- */
178
- async disableSanctionsApiByEnvironmentId(requestParameters, initOverrides) {
179
- const response = await this.disableSanctionsApiByEnvironmentIdRaw(requestParameters, initOverrides);
180
- return await response.value();
181
- }
182
- /**
183
- * Enables the Chainalysis Sanctions API for the specified environment.
184
- * Enable the Sanctions API
185
- */
186
- async enableSanctionsApiByEnvironmentIdRaw(requestParameters, initOverrides) {
187
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
188
- throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling enableSanctionsApiByEnvironmentId.');
189
- }
190
- const queryParameters = {};
191
- const headerParameters = {};
192
- if (this.configuration && this.configuration.accessToken) {
193
- const token = this.configuration.accessToken;
194
- const tokenString = await token("bearerAuth", []);
195
- if (tokenString) {
196
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
197
- }
198
- }
199
- const response = await this.request({
200
- path: `/environments/{environmentId}/integrations/chainalysis/sanctions/enable`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
201
- method: 'PUT',
202
- headers: headerParameters,
203
- query: queryParameters,
204
- }, initOverrides);
205
- return new runtime.JSONApiResponse(response, (jsonValue) => ChainalysisConfiguration.ChainalysisConfigurationFromJSON(jsonValue));
206
- }
207
- /**
208
- * Enables the Chainalysis Sanctions API for the specified environment.
209
- * Enable the Sanctions API
210
- */
211
- async enableSanctionsApiByEnvironmentId(requestParameters, initOverrides) {
212
- const response = await this.enableSanctionsApiByEnvironmentIdRaw(requestParameters, initOverrides);
213
- return await response.value();
214
- }
215
- /**
216
- * Returns the Chainalysis configuration for the specified environment.
150
+ * Returns the sanctions screening configuration for the specified environment. Sanction checks are always enabled.
217
151
  * Find the Chainalysis configuration for an environment.
218
152
  */
219
153
  async getChainalysisByEnvironmentIdRaw(requestParameters, initOverrides) {
@@ -238,7 +172,7 @@ class ChainalysisApi extends runtime.BaseAPI {
238
172
  return new runtime.JSONApiResponse(response, (jsonValue) => ChainalysisConfiguration.ChainalysisConfigurationFromJSON(jsonValue));
239
173
  }
240
174
  /**
241
- * Returns the Chainalysis configuration for the specified environment.
175
+ * Returns the sanctions screening configuration for the specified environment. Sanction checks are always enabled.
242
176
  * Find the Chainalysis configuration for an environment.
243
177
  */
244
178
  async getChainalysisByEnvironmentId(requestParameters, initOverrides) {
@@ -11,12 +11,6 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import { ChainalysisConfiguration } from '../models';
14
- export interface DisableSanctionsApiByEnvironmentIdRequest {
15
- environmentId: string;
16
- }
17
- export interface EnableSanctionsApiByEnvironmentIdRequest {
18
- environmentId: string;
19
- }
20
14
  export interface GetChainalysisByEnvironmentIdRequest {
21
15
  environmentId: string;
22
16
  }
@@ -25,32 +19,12 @@ export interface GetChainalysisByEnvironmentIdRequest {
25
19
  */
26
20
  export declare class ChainalysisApi extends runtime.BaseAPI {
27
21
  /**
28
- * Disables the Chainalysis Sanctions API for the specified environment.
29
- * Disables the Sanctions API
30
- */
31
- disableSanctionsApiByEnvironmentIdRaw(requestParameters: DisableSanctionsApiByEnvironmentIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<ChainalysisConfiguration>>;
32
- /**
33
- * Disables the Chainalysis Sanctions API for the specified environment.
34
- * Disables the Sanctions API
35
- */
36
- disableSanctionsApiByEnvironmentId(requestParameters: DisableSanctionsApiByEnvironmentIdRequest, initOverrides?: RequestInit): Promise<ChainalysisConfiguration>;
37
- /**
38
- * Enables the Chainalysis Sanctions API for the specified environment.
39
- * Enable the Sanctions API
40
- */
41
- enableSanctionsApiByEnvironmentIdRaw(requestParameters: EnableSanctionsApiByEnvironmentIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<ChainalysisConfiguration>>;
42
- /**
43
- * Enables the Chainalysis Sanctions API for the specified environment.
44
- * Enable the Sanctions API
45
- */
46
- enableSanctionsApiByEnvironmentId(requestParameters: EnableSanctionsApiByEnvironmentIdRequest, initOverrides?: RequestInit): Promise<ChainalysisConfiguration>;
47
- /**
48
- * Returns the Chainalysis configuration for the specified environment.
22
+ * Returns the sanctions screening configuration for the specified environment. Sanction checks are always enabled.
49
23
  * Find the Chainalysis configuration for an environment.
50
24
  */
51
25
  getChainalysisByEnvironmentIdRaw(requestParameters: GetChainalysisByEnvironmentIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<ChainalysisConfiguration>>;
52
26
  /**
53
- * Returns the Chainalysis configuration for the specified environment.
27
+ * Returns the sanctions screening configuration for the specified environment. Sanction checks are always enabled.
54
28
  * Find the Chainalysis configuration for an environment.
55
29
  */
56
30
  getChainalysisByEnvironmentId(requestParameters: GetChainalysisByEnvironmentIdRequest, initOverrides?: RequestInit): Promise<ChainalysisConfiguration>;
@@ -143,73 +143,7 @@ import '../models/WalletTransactionType.js';
143
143
  */
144
144
  class ChainalysisApi extends BaseAPI {
145
145
  /**
146
- * Disables the Chainalysis Sanctions API for the specified environment.
147
- * Disables the Sanctions API
148
- */
149
- async disableSanctionsApiByEnvironmentIdRaw(requestParameters, initOverrides) {
150
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
151
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling disableSanctionsApiByEnvironmentId.');
152
- }
153
- const queryParameters = {};
154
- const headerParameters = {};
155
- if (this.configuration && this.configuration.accessToken) {
156
- const token = this.configuration.accessToken;
157
- const tokenString = await token("bearerAuth", []);
158
- if (tokenString) {
159
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
160
- }
161
- }
162
- const response = await this.request({
163
- path: `/environments/{environmentId}/integrations/chainalysis/sanctions/disable`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
164
- method: 'PUT',
165
- headers: headerParameters,
166
- query: queryParameters,
167
- }, initOverrides);
168
- return new JSONApiResponse(response, (jsonValue) => ChainalysisConfigurationFromJSON(jsonValue));
169
- }
170
- /**
171
- * Disables the Chainalysis Sanctions API for the specified environment.
172
- * Disables the Sanctions API
173
- */
174
- async disableSanctionsApiByEnvironmentId(requestParameters, initOverrides) {
175
- const response = await this.disableSanctionsApiByEnvironmentIdRaw(requestParameters, initOverrides);
176
- return await response.value();
177
- }
178
- /**
179
- * Enables the Chainalysis Sanctions API for the specified environment.
180
- * Enable the Sanctions API
181
- */
182
- async enableSanctionsApiByEnvironmentIdRaw(requestParameters, initOverrides) {
183
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
184
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling enableSanctionsApiByEnvironmentId.');
185
- }
186
- const queryParameters = {};
187
- const headerParameters = {};
188
- if (this.configuration && this.configuration.accessToken) {
189
- const token = this.configuration.accessToken;
190
- const tokenString = await token("bearerAuth", []);
191
- if (tokenString) {
192
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
193
- }
194
- }
195
- const response = await this.request({
196
- path: `/environments/{environmentId}/integrations/chainalysis/sanctions/enable`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
197
- method: 'PUT',
198
- headers: headerParameters,
199
- query: queryParameters,
200
- }, initOverrides);
201
- return new JSONApiResponse(response, (jsonValue) => ChainalysisConfigurationFromJSON(jsonValue));
202
- }
203
- /**
204
- * Enables the Chainalysis Sanctions API for the specified environment.
205
- * Enable the Sanctions API
206
- */
207
- async enableSanctionsApiByEnvironmentId(requestParameters, initOverrides) {
208
- const response = await this.enableSanctionsApiByEnvironmentIdRaw(requestParameters, initOverrides);
209
- return await response.value();
210
- }
211
- /**
212
- * Returns the Chainalysis configuration for the specified environment.
146
+ * Returns the sanctions screening configuration for the specified environment. Sanction checks are always enabled.
213
147
  * Find the Chainalysis configuration for an environment.
214
148
  */
215
149
  async getChainalysisByEnvironmentIdRaw(requestParameters, initOverrides) {
@@ -234,7 +168,7 @@ class ChainalysisApi extends BaseAPI {
234
168
  return new JSONApiResponse(response, (jsonValue) => ChainalysisConfigurationFromJSON(jsonValue));
235
169
  }
236
170
  /**
237
- * Returns the Chainalysis configuration for the specified environment.
171
+ * Returns the sanctions screening configuration for the specified environment. Sanction checks are always enabled.
238
172
  * Find the Chainalysis configuration for an environment.
239
173
  */
240
174
  async getChainalysisByEnvironmentId(requestParameters, initOverrides) {
@@ -153,7 +153,7 @@ require('../models/WalletTransactionType.cjs');
153
153
  */
154
154
  class EnvironmentsApi extends runtime.BaseAPI {
155
155
  /**
156
- * Check if a wallet address is sanctioned using Chainalysis. Returns whether the wallet is blocked or not.
156
+ * Check if a wallet address is sanctioned. Returns whether the wallet is blocked or not.
157
157
  * Check if a wallet address is sanctioned
158
158
  */
159
159
  async checkWalletSanctionsByEnvironmentIdRaw(requestParameters, initOverrides) {
@@ -190,7 +190,7 @@ class EnvironmentsApi extends runtime.BaseAPI {
190
190
  return new runtime.JSONApiResponse(response, (jsonValue) => WalletSanctionsResponse.WalletSanctionsResponseFromJSON(jsonValue));
191
191
  }
192
192
  /**
193
- * Check if a wallet address is sanctioned using Chainalysis. Returns whether the wallet is blocked or not.
193
+ * Check if a wallet address is sanctioned. Returns whether the wallet is blocked or not.
194
194
  * Check if a wallet address is sanctioned
195
195
  */
196
196
  async checkWalletSanctionsByEnvironmentId(requestParameters, initOverrides) {
@@ -40,12 +40,12 @@ export interface VerifyApiKeyRequest {
40
40
  */
41
41
  export declare class EnvironmentsApi extends runtime.BaseAPI {
42
42
  /**
43
- * Check if a wallet address is sanctioned using Chainalysis. Returns whether the wallet is blocked or not.
43
+ * Check if a wallet address is sanctioned. Returns whether the wallet is blocked or not.
44
44
  * Check if a wallet address is sanctioned
45
45
  */
46
46
  checkWalletSanctionsByEnvironmentIdRaw(requestParameters: CheckWalletSanctionsByEnvironmentIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WalletSanctionsResponse>>;
47
47
  /**
48
- * Check if a wallet address is sanctioned using Chainalysis. Returns whether the wallet is blocked or not.
48
+ * Check if a wallet address is sanctioned. Returns whether the wallet is blocked or not.
49
49
  * Check if a wallet address is sanctioned
50
50
  */
51
51
  checkWalletSanctionsByEnvironmentId(requestParameters: CheckWalletSanctionsByEnvironmentIdRequest, initOverrides?: RequestInit): Promise<WalletSanctionsResponse>;
@@ -149,7 +149,7 @@ import '../models/WalletTransactionType.js';
149
149
  */
150
150
  class EnvironmentsApi extends BaseAPI {
151
151
  /**
152
- * Check if a wallet address is sanctioned using Chainalysis. Returns whether the wallet is blocked or not.
152
+ * Check if a wallet address is sanctioned. Returns whether the wallet is blocked or not.
153
153
  * Check if a wallet address is sanctioned
154
154
  */
155
155
  async checkWalletSanctionsByEnvironmentIdRaw(requestParameters, initOverrides) {
@@ -186,7 +186,7 @@ class EnvironmentsApi extends BaseAPI {
186
186
  return new JSONApiResponse(response, (jsonValue) => WalletSanctionsResponseFromJSON(jsonValue));
187
187
  }
188
188
  /**
189
- * Check if a wallet address is sanctioned using Chainalysis. Returns whether the wallet is blocked or not.
189
+ * Check if a wallet address is sanctioned. Returns whether the wallet is blocked or not.
190
190
  * Check if a wallet address is sanctioned
191
191
  */
192
192
  async checkWalletSanctionsByEnvironmentId(requestParameters, initOverrides) {
@@ -1103,7 +1103,7 @@ class SDKApi extends runtime.BaseAPI {
1103
1103
  return await response.value();
1104
1104
  }
1105
1105
  /**
1106
- * Check if a wallet address is sanctioned using Chainalysis. Returns whether the wallet is blocked or not.
1106
+ * Check if a wallet address is sanctioned. Returns whether the wallet is blocked or not.
1107
1107
  * Check if a wallet address is sanctioned
1108
1108
  */
1109
1109
  async checkWalletSanctionsRaw(requestParameters, initOverrides) {
@@ -1140,7 +1140,7 @@ class SDKApi extends runtime.BaseAPI {
1140
1140
  return new runtime.JSONApiResponse(response, (jsonValue) => WalletSanctionsResponse.WalletSanctionsResponseFromJSON(jsonValue));
1141
1141
  }
1142
1142
  /**
1143
- * Check if a wallet address is sanctioned using Chainalysis. Returns whether the wallet is blocked or not.
1143
+ * Check if a wallet address is sanctioned. Returns whether the wallet is blocked or not.
1144
1144
  * Check if a wallet address is sanctioned
1145
1145
  */
1146
1146
  async checkWalletSanctions(requestParameters, initOverrides) {
@@ -1649,12 +1649,12 @@ export declare class SDKApi extends runtime.BaseAPI {
1649
1649
  */
1650
1650
  checkSsoProvider(requestParameters: CheckSsoProviderRequest, initOverrides?: RequestInit): Promise<SsoProviderCheckResponse>;
1651
1651
  /**
1652
- * Check if a wallet address is sanctioned using Chainalysis. Returns whether the wallet is blocked or not.
1652
+ * Check if a wallet address is sanctioned. Returns whether the wallet is blocked or not.
1653
1653
  * Check if a wallet address is sanctioned
1654
1654
  */
1655
1655
  checkWalletSanctionsRaw(requestParameters: CheckWalletSanctionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WalletSanctionsResponse>>;
1656
1656
  /**
1657
- * Check if a wallet address is sanctioned using Chainalysis. Returns whether the wallet is blocked or not.
1657
+ * Check if a wallet address is sanctioned. Returns whether the wallet is blocked or not.
1658
1658
  * Check if a wallet address is sanctioned
1659
1659
  */
1660
1660
  checkWalletSanctions(requestParameters: CheckWalletSanctionsRequest, initOverrides?: RequestInit): Promise<WalletSanctionsResponse>;
@@ -1099,7 +1099,7 @@ class SDKApi extends BaseAPI {
1099
1099
  return await response.value();
1100
1100
  }
1101
1101
  /**
1102
- * Check if a wallet address is sanctioned using Chainalysis. Returns whether the wallet is blocked or not.
1102
+ * Check if a wallet address is sanctioned. Returns whether the wallet is blocked or not.
1103
1103
  * Check if a wallet address is sanctioned
1104
1104
  */
1105
1105
  async checkWalletSanctionsRaw(requestParameters, initOverrides) {
@@ -1136,7 +1136,7 @@ class SDKApi extends BaseAPI {
1136
1136
  return new JSONApiResponse(response, (jsonValue) => WalletSanctionsResponseFromJSON(jsonValue));
1137
1137
  }
1138
1138
  /**
1139
- * Check if a wallet address is sanctioned using Chainalysis. Returns whether the wallet is blocked or not.
1139
+ * Check if a wallet address is sanctioned. Returns whether the wallet is blocked or not.
1140
1140
  * Check if a wallet address is sanctioned
1141
1141
  */
1142
1142
  async checkWalletSanctions(requestParameters, initOverrides) {
@@ -265,7 +265,7 @@ export interface User {
265
265
  */
266
266
  wallets?: Array<Wallet>;
267
267
  /**
268
- * List of Chainalysis compliance checks performed on this user
268
+ * Deprecated. Always an empty array per-user check records are no longer surfaced. Retained for backward compatibility only.
269
269
  * @type {Array<ChainalysisCheck>}
270
270
  * @memberof User
271
271
  */
@@ -64,7 +64,7 @@ export interface UserAllOf {
64
64
  */
65
65
  wallets?: Array<Wallet>;
66
66
  /**
67
- * List of Chainalysis compliance checks performed on this user
67
+ * Deprecated. Always an empty array per-user check records are no longer surfaced. Retained for backward compatibility only.
68
68
  * @type {Array<ChainalysisCheck>}
69
69
  * @memberof UserAllOf
70
70
  */